.lc-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.psx-side-btn .lc-icon { margin-right: 8px; opacity: 0.85; }
.psx-icon-btn .lc-icon { display: block; }
.lc-demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--psx-accent, var(--lc-22c55e)); flex-shrink: 0; }

/* iOS inset list groups */
.ios-group {
  background: var(--lc-bg-card, var(--bg2));
  border-radius: 12px;
  border: 1px solid var(--lc-border, var(--bg4));
  overflow: hidden;
  margin: 0 16px 16px;
}
.ios-group .setting-row,
.ios-group .field-row {
  border-bottom: 1px solid var(--lc-border, var(--bg4));
}
.ios-group .setting-row:last-child,
.ios-group .field-row:last-child { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

#lc-price-health-host:empty { display: none; }
#lc-price-health-host.hidden { display: none; }
.lc-price-health {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* C-43: wrap long stale copy instead of truncating at ~393 */
  flex-wrap: wrap;
  padding: 8px 16px;
  background: rgba(240, 185, 11, 0.08);
  border-bottom: 1px solid rgba(240, 185, 11, 0.18);
  font-size: 0.72rem;
  color: var(--psx-text-2);
  line-height: 1.35;
  min-height: 32px;
}
.lc-price-health-msg {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
  flex: 1;
}
.lc-price-health-btn {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(240, 185, 11, 0.4);
  background: rgba(240, 185, 11, 0.15);
  color: var(--psx-text-1);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.lc-price-health-dismiss {
  margin-left: auto;
  padding: 2px 8px;
  border: none;
  background: transparent;
  color: var(--psx-text-3);
  cursor: pointer;
  font-size: 0.85rem;
  /* LDG-V3-2: Dismiss ≥ 44×44 */
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lc-screen-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lc-space-3);
}

.lc-dash-actions {
  padding: 0 var(--lc-space-4) var(--lc-space-4);
}

.lc-btn-primary {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--lc-radius);
  background: var(--psx-accent);
  color: var(--lc-ffffff);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.lc-empty-note {
  padding: var(--lc-space-5) var(--lc-space-4);
  font-size: 14px;
  color: var(--psx-text-2);
  line-height: 1.5;
}

.lc-disclaimer {
  font-size: 11px;
  color: var(--psx-text-3);
  padding: var(--lc-space-4);
  line-height: 1.5;
}

/* Forms */
.lc-form-block {
  margin: 0 var(--lc-space-4) var(--lc-space-4);
  padding: var(--lc-space-4);
  border-radius: var(--lc-radius-lg);
  background: var(--psx-bg-card);
  box-shadow: var(--lc-shadow);
}

.lc-field-input,
.lc-form-block .field-input,
.lc-form-block .field-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--psx-border);
  background: var(--psx-bg);
  color: var(--psx-text);
  font-size: 16px;
  font-family: inherit;
}

.lc-form-block .field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--psx-text-3);
  margin-bottom: 6px;
}

.lc-form-block .field {
  margin-bottom: var(--lc-space-3);
}

/* Skeleton */
.lc-skeleton-wrap {
  padding: var(--lc-space-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lc-skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--psx-bg-card) 0%, color-mix(in srgb, var(--psx-text) 8%, transparent) 50%, var(--psx-bg-card) 100%);
  background-size: 200% 100%;
  animation: lc-skeleton-shimmer 1.2s ease-in-out infinite;
}

.lc-skeleton-line:nth-child(2) { width: 88%; }
.lc-skeleton-line:nth-child(3) { width: 72%; }
.lc-skeleton-line:nth-child(4) { width: 94%; }

@keyframes lc-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Bottom sheet Pro */
body.lc-pro .bottom-sheet.open .bs-backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.lc-pro .bottom-sheet .bs-panel {
  border-radius: 20px 20px 0 0;
  background: var(--psx-bg-elevated, var(--psx-bg-card));
  border-top: 1px solid var(--psx-border);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
}

body.lc-pro .bottom-sheet .bs-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* Toasts */
body.lc-pro .toast-wrap {
  bottom: calc(var(--psx-nav, 72px) + 16px);
  z-index: 9000;
}

body.lc-pro .toast {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--psx-bg-card);
  border: 1px solid var(--psx-border);
  box-shadow: var(--lc-shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.35));
  font-size: 14px;
  font-weight: 600;
  pointer-events: auto;
}

/* Onboarding */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.ob-shell {
  width: 100%;
  max-width: 420px;
  background: var(--psx-bg-card);
  border-radius: 24px;
  border: 1px solid var(--psx-border);
  box-shadow: var(--lc-shadow-lg, 0 24px 80px rgba(0, 0, 0, 0.5));
  padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
}

.ob-brand { font-size: 20px; font-weight: 800; }
.ob-brand em { font-style: normal; color: var(--psx-accent); }
.ob-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin: 16px 0 8px; }
.ob-desc { font-size: 14px; color: var(--psx-text-2); line-height: 1.55; margin-bottom: 16px; }
.ob-panel { display: none; }
.ob-panel.on { display: block; }
.ob-progress { display: flex; gap: 8px; justify-content: center; margin: 12px 0 8px; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--psx-border); }
.ob-dot.on { background: var(--psx-accent); width: 22px; border-radius: 999px; }

/* Pro modal */
.lc-pro-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lc-pro-modal.open { display: flex; }

.lc-pro-modal-card {
  background: rgba(11, 14, 17, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  padding: 36px 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
}

.lc-pro-modal-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lc-f59e0b);
  margin-bottom: 8px;
}

.lc-pro-modal-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lc-ffffff);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.lc-pro-modal-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  line-height: 1.5;
}

.lc-pro-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.lc-pro-plan {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.lc-pro-plan--highlight {
  background: rgba(245, 158, 11, 0.08);
  border: 2px solid rgba(245, 158, 11, 0.4);
  position: relative;
}

.lc-pro-plan-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--lc-f59e0b);
  color: var(--lc-000000);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.lc-pro-btn-waitlist {
  width: 100%;
  padding: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--lc-f59e0b);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: inherit;
}

.lc-pro-btn-dismiss {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* Motion */
.psx-screen.lc-screen-enter {
  animation: lc-screen-in 0.22s var(--lc-ease, cubic-bezier(0.25, 0.1, 0.25, 1)) both;
}

@keyframes lc-screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* A11y */
:focus-visible {
  outline: 2px solid var(--psx-accent);
  outline-offset: 2px;
}

.psx-skip-link:focus-visible {
  left: 12px;
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .psx-screen.lc-screen-enter,
  .lc-skeleton-line,
  .cap-reveal {
    animation: none !important;
    transition: none !important;
  }
}

/* RTL Urdu */
body.lc-rtl .lc-screen-head,
body.lc-rtl .lc-market-row,
body.lc-rtl .lc-dash {
  direction: rtl;
  text-align: right;
}

body.lc-rtl .lc-screen-head--row {
  flex-direction: row-reverse;
}

body.lc-rtl .lc-market-row .lc-market-meta {
  text-align: left;
}

body.lc-rtl .psx-bottom-nav,
body.lc-rtl .psx-sidebar {
  direction: rtl;
}

/* Range bar (52-week range, fair-value gauge) */
.lc-range-bar { padding: 6px 0 2px; }
.lc-range-bar-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--psx-down) 0%, var(--lc-f0b90b) 50%, var(--psx-up) 100%);
  opacity: .9;
}
.lc-range-bar-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--psx-text);
  border: 3px solid var(--psx-bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.lc-range-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--psx-text-3);
  font-variant-numeric: tabular-nums;
}
.lc-range-bar-mid { color: var(--psx-text); }

/* Glossary accordion */
.lc-glossary-item { border-bottom: 1px solid var(--psx-border); }
.lc-glossary-item:last-child { border-bottom: none; }
.lc-glossary-item summary {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lc-glossary-item summary::-webkit-details-marker { display: none; }
.lc-glossary-item summary::after { content: '+'; color: var(--psx-text-3); font-weight: 700; }
.lc-glossary-item[open] summary::after { content: '−'; }
.lc-glossary-item p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--psx-text-2);
}

/* Verdict banner tint */
.lc-verdict--healthy { border-left: 3px solid var(--psx-up); }
.lc-verdict--caution { border-left: 3px solid var(--lc-f0b90b); }
.lc-verdict--risky { border-left: 3px solid var(--psx-down); }

/* Nastaliq-style scripts need taller lines to avoid diacritic clipping */
body.lc-rtl {
  line-height: 1.75;
}
body.lc-rtl h1, body.lc-rtl h2, body.lc-rtl h3,
body.lc-rtl .lc-dash-hero-val, body.lc-rtl .psx-nav-btn {
  line-height: 1.5;
}
body.lc-rtl .rt-table td, body.lc-rtl .rt-table th,
body.lc-rtl .bs-panel, body.lc-rtl .lc-sector-card {
  direction: rtl;
  text-align: right;
}

/* Perf budget hint — contain paints on scroll lists */
.lc-dash .lc-market-row,
.lc-dash .tx-row {
  contain: layout style paint;
}

.lc-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--psx-text-2);
  font-size: 13px;
  background: var(--psx-bg-card);
  border-radius: var(--lc-radius);
  border: 1px dashed var(--psx-border);
}

.lc-chart-fallback { padding: 0 var(--lc-space-2) var(--lc-space-3); }

.lc-chart-caption {
  font-size: 11px;
  padding: 8px var(--lc-space-4) 0;
  text-align: center;
}

.lc-chart-loading {
  padding: 48px 16px;
  text-align: center;
  color: var(--psx-text-2);
  font-size: 14px;
}

.psx-muted {
  color: var(--psx-text-2);
  font-size: 13px;
  line-height: 1.5;
}

.perf-chart {
  display: block;
  align-items: stretch;
  padding: 8px;
}

.lc-ticker-spark {
  display: inline-block;
  vertical-align: middle;
  width: 72px;
  height: 28px;
  margin-right: 8px;
}

.lc-ticker-spark svg { height: 28px; }

.psx-ticker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--psx-text-2);
}

.lc-intl-pick-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 8px;
  position: relative;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}

.lc-intl-pick {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--psx-border);
  border-radius: 10px;
  background: var(--psx-bg-card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--psx-text);
  touch-action: manipulation;
}

.lc-intl-pick.on { border-color: var(--psx-accent); background: color-mix(in srgb, var(--psx-accent) 10%, var(--psx-bg-card)); }

.lc-intl-pick span { font-size: 12px; color: var(--psx-text-2); }

.lc-movers-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.lc-mover-chip {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--psx-bg-card);
  box-shadow: var(--lc-shadow);
  cursor: pointer;
  font-family: inherit;
  color: var(--psx-text);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.lc-mover-chip em { font-style: normal; font-size: 12px; font-weight: 600; }

.lc-sector-head--btn {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.lc-sector-head--btn.on h4 { color: var(--psx-accent); }

.lc-card-sub { font-size: 12px; color: var(--psx-text-2); margin-top: 4px; }

.lc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--psx-text-2);
}

.lc-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 12px 0;
  color: var(--psx-text-2);
}

.lc-alert-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--psx-up-bg);
  color: var(--psx-up);
}

.rt-wl-card.lc-alert-hit { box-shadow: 0 0 0 2px var(--psx-up); }

.hub-chart { margin: 0 var(--lc-space-4) var(--lc-space-5); }

#research-tv-chart { min-height: 400px; }

.psx-tv-chart { min-height: 380px; }

.lc-search-wrap {
  margin: 0 var(--lc-space-4) var(--lc-space-4);
  position: relative;
}

.lc-search-wrap input[type="search"],
.lc-search-wrap .field-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--lc-radius-md, 12px);
  border: 1px solid var(--psx-border, rgba(255,255,255,.12));
  background: var(--psx-surface-2, rgba(255,255,255,.04));
  color: var(--psx-text);
  font-size: 16px;
}

.lc-search-hint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--psx-text-2);
}

.lc-search-results {
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  border-radius: var(--lc-radius-md, 12px);
  border: 1px solid var(--psx-border, rgba(255,255,255,.1));
  background: var(--psx-surface, var(--lc-111111));
}

.lc-search-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--psx-border, rgba(255,255,255,.06));
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.lc-search-hit:last-child { border-bottom: 0; }
.lc-search-hit.on,
.lc-search-hit:hover,
.lc-search-hit:focus-visible {
  background: var(--psx-accent-bg, rgba(59,130,246,.12));
  outline: 2px solid transparent;
}

.lc-search-hit strong { font-size: 14px; }
.lc-search-hit span { font-size: 12px; color: var(--psx-text-2); }

.lc-search-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--psx-text-2);
  margin: 0;
}

.lc-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 var(--lc-space-4) var(--lc-space-4);
}

@media (min-width: 600px) {
  .lc-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .lc-portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.lc-portfolio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: var(--lc-radius-md, 14px);
  border: 1px solid var(--psx-border, rgba(255,255,255,.1));
  background: var(--psx-surface, var(--lc-141414));
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--lc-shadow, 0 1px 3px rgba(0,0,0,.2));
  transition: border-color .15s, box-shadow .15s;
}

.lc-portfolio-card:hover,
.lc-portfolio-card:focus-visible {
  border-color: var(--psx-accent, var(--lc-3b82f6));
  outline: 2px solid transparent;
}

.lc-portfolio-card.on {
  border-color: var(--psx-accent, var(--lc-3b82f6));
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

.lc-portfolio-card--empty .lc-portfolio-card-meta em { color: var(--psx-text-2); }

.lc-portfolio-card--add {
  border-style: dashed;
  background: transparent;
}

.lc-portfolio-card-icon {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--psx-bg-muted, rgba(255,255,255,.06));
  color: var(--psx-text-2);
}
.lc-portfolio-spark { flex-shrink: 0; opacity: .85; }
.lc-portfolio-spark svg { display: block; height: 24px; width: 64px; }

.lc-portfolio-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lc-portfolio-card-body strong {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Sparkline is decoration — drop it before it crowds the name column */
@media (max-width: 460px) {
  .lc-portfolio-spark { display: none; }
}

.lc-portfolio-card-desc {
  font-size: 12px;
  color: var(--psx-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-portfolio-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.lc-portfolio-card-meta em {
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lc-portfolio-card-meta span {
  font-size: 12px;
  font-weight: 600;
}

.lc-portfolio-card-meta label {
  font-size: 11px;
  color: var(--psx-text-2);
  font-weight: 500;
}

.lc-portfolio-invested {
  font-size: 11px;
  color: var(--psx-orange, var(--lc-f97316));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lc-portfolio-pnl {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lc-portfolio-footnote {
  font-size: 11px;
  color: var(--psx-text-2);
  margin: 8px 4px 0;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .lc-portfolio-card-meta {
    min-width: 108px;
    text-align: right;
  }
  .lc-portfolio-card-meta .lc-portfolio-card-value {
    font-size: 15px;
  }
}

/* Onboarding overlay */
.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: env(safe-area-inset-top) 12px calc(12px + env(safe-area-inset-bottom));
}
.ob-shell {
  width: min(480px, 100%);
  max-height: 92dvh;
  overflow: auto;
  background: var(--psx-surface, var(--lc-18181b));
  border: 1px solid var(--psx-border, rgba(255,255,255,0.08));
  border-radius: 20px 20px 12px 12px;
  padding: 20px 20px 28px;
}
.ob-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ob-brand { font-size: 18px; font-weight: 800; }
.ob-brand em { color: var(--psx-accent, var(--lc-6366f1)); font-style: normal; }
.ob-skip-top { background: none; border: none; color: var(--psx-text-2); font-size: 13px; cursor: pointer; }
.ob-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.ob-dot.on { background: var(--psx-accent, var(--lc-6366f1)); }
.ob-panel { display: none; }
.ob-panel.on { display: block; }
.ob-hero-icon { font-size: 2.5rem; margin-bottom: 8px; }
.ob-title { font-size: 1.35rem; font-weight: 800; margin: 0 0 8px; }
.ob-desc { font-size: 14px; color: var(--psx-text-2); line-height: 1.5; margin: 0 0 16px; }
.ob-features { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ob-cta { width: 100%; }
.ob-nav { display: flex; gap: 10px; margin-top: 16px; }
.ob-nav .btn-primary { flex: 1; }
.ob-proxy-note { font-size: 12px; color: var(--psx-text-2); display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.ob-proxy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lc-22c55e); }

.lc-news-row {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--lc-border, rgba(255,255,255,0.06));
  text-decoration: none;
  color: inherit;
}
.lc-news-row:last-child { border-bottom: none; }
.lc-news-row:hover { background: rgba(255,255,255,0.03); }
.lc-news-title {
  font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.lc-news-meta { font-size: 11px; color: var(--psx-text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-news-hint { font-size: 12px; color: var(--psx-text-2); margin: 5px 0 0; line-height: 1.4; }
.lc-news-hint:empty { display: none; }
.tx-type-dot.tax { background: rgba(239, 68, 68, 0.15); }
.tx-type-dot.fee { background: rgba(251, 146, 60, 0.15); }
.tx-tag { font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.tx-tag--internal { background: rgba(139, 92, 246, 0.15); color: var(--lc-a78bfa); }
.tx-tag--custodial { background: rgba(59, 130, 246, 0.15); color: var(--lc-60a5fa); }
.tx-link { background: none; border: none; padding: 0; color: var(--psx-orange, var(--lc-f97316)); font-weight: 600; cursor: pointer; font-size: inherit; }
.t-muted { color: var(--psx-text-2); }

.lc-portfolio-card { position: relative; }
.lc-portfolio-spark { margin-top: 6px; opacity: 0.9; }
.lc-portfolio-spark .lc-chart-svg { max-height: 28px; }
.lc-portfolio-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: var(--lc-ef4444);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.lc-price-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--psx-text-2);
  vertical-align: middle;
  margin-left: 4px;
}
.lc-price-badge--stale { background: rgba(245, 158, 11, 0.2); color: var(--lc-f59e0b); }
.lc-stale-chip {
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: var(--lc-f59e0b);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: default;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}
[data-theme="light"] .lc-portfolio-card { background: var(--lc-ffffff); border-color: rgba(0,0,0,.08); }
[data-theme="light"] .lc-price-badge { background: rgba(0,0,0,.06); }
[data-theme="light"] .lc-stale-chip { background: rgba(245, 158, 11, 0.15); }
.lc-freshness-chip {
  border: 1px solid var(--psx-border);
  background: var(--psx-bg-muted);
  color: var(--psx-text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  margin-right: 8px;
}
.lc-freshness-chip.lc-freshness--warn {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--lc-f59e0b);
  background: rgba(245, 158, 11, 0.1);
}
.lc-freshness-chip.lc-freshness--ok { color: var(--psx-text-3); }
[data-theme="light"] .lc-search-results { background: var(--lc-ffffff); border-color: rgba(0,0,0,.08); }
.lc-sector-head { position: sticky; top: 0; z-index: 2; background: var(--psx-surface, var(--lc-141414)); }
[data-theme="light"] .lc-sector-head { background: var(--lc-ffffff); }

.lc-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--psx-text-1, var(--lc-e4e4e7));
  cursor: pointer;
}
.lc-check-row input { width: 18px; height: 18px; accent-color: var(--psx-accent, var(--lc-6366f1)); }

/* PIN lock overlay */
/* PIN overlay is position:fixed; body scroll lock via LcScrollLock (not overflow:hidden). */
.lc-pin-lock {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}
.lc-pin-lock.hidden { display: none; }
.lc-pin-card {
  width: min(100%, 340px);
  text-align: center;
}
.lc-pin-logo { font-size: 2.5rem; margin-bottom: 12px; }
.lc-pin-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lc-ffffff);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.lc-pin-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
}
.lc-pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 16px;
}
.lc-pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s, border-color 0.15s;
}
.lc-pin-dot--on {
  background: var(--lc-f59e0b);
  border-color: var(--lc-f59e0b);
}
.lc-pin-error {
  font-size: 13px;
  color: var(--lc-f87171);
  min-height: 20px;
  margin: 0 0 12px;
}
.lc-pin-error.hidden { display: none; }
.lc-pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto;
}
.lc-pin-key {
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lc-ffffff);
  font-size: 1.35rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.lc-pin-key:active { background: rgba(245, 158, 11, 0.25); }
.lc-pin-key--spacer { visibility: hidden; pointer-events: none; }
[data-theme="light"] .lc-pin-lock { background: rgba(250, 250, 250, 0.96); }
[data-theme="light"] .lc-pin-title { color: var(--lc-09090b); }
[data-theme="light"] .lc-pin-sub { color: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .lc-pin-key {
  background: var(--lc-ffffff);
  color: var(--lc-09090b);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .lc-pin-dot { border-color: rgba(0, 0, 0, 0.25); }

/* ── Terminal polish v3.39 ── */
:root {
  --lc-elev-1: 0 1px 0 color-mix(in srgb, var(--psx-text) 4%, transparent);
  --lc-elev-2: 0 1px 2px color-mix(in srgb, var(--psx-text) 8%, transparent), 0 0 0 1px var(--psx-border);
}
body.lc-pro[data-theme="dark"] {
  --lc-elev-1: 0 1px 0 rgba(255, 255, 255, 0.04);
  --lc-elev-2: 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--psx-border);
}

.lc-num,
.psx-table td,
.psx-table th,
.lc-dash-hero-val,
.lc-market-price,
.lc-pulse-pill b,
.psx-index-val,
.lc-ticker-pill strong {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.lc-empty-state {
  text-align: center;
  padding: var(--lc-space-8) var(--lc-space-4);
  margin: var(--lc-space-4);
  border-radius: var(--lc-radius-lg);
  border: 1px solid var(--psx-border);
  background: var(--psx-bg-card);
  box-shadow: var(--lc-elev-1);
}
.lc-empty-icon { font-size: 2rem; opacity: 0.35; margin-bottom: var(--lc-space-3); }
.lc-empty-state h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.lc-empty-state p { font-size: 0.85rem; color: var(--psx-text-2); line-height: 1.5; margin-bottom: var(--lc-space-4); }

.lc-cmd-stale {
  margin: 0 0 var(--lc-space-3);
  padding: 10px 12px;
  border-radius: var(--lc-radius-md, 8px);
  border: 1px solid color-mix(in srgb, #c9a227 35%, var(--psx-border));
  background: color-mix(in srgb, #c9a227 10%, var(--psx-bg-card));
}
.lc-cmd-stale-msg {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--psx-text-2);
}

.lc-error-state {
  text-align: center;
  padding: var(--lc-space-6) var(--lc-space-4);
  margin: var(--lc-space-4);
  border-radius: var(--lc-radius-lg);
  border: 1px solid color-mix(in srgb, var(--psx-down) 35%, var(--psx-border));
  background: color-mix(in srgb, var(--psx-down-bg) 40%, var(--psx-bg-card));
  box-shadow: var(--lc-elev-1);
}
.lc-error-icon {
  width: 36px; height: 36px; line-height: 36px; border-radius: 50%;
  margin: 0 auto 12px; font-weight: 800;
  background: var(--psx-down-bg); color: var(--psx-down);
}
.lc-error-state h2 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.lc-error-state p { font-size: 0.82rem; color: var(--psx-text-2); margin-bottom: 12px; }

.psx-skel-news, .psx-skel-table { padding: 8px 0; }
.psx-skel-hold-row {
  display: grid;
  grid-template-columns: 48px 1fr 64px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--psx-border);
}

.lc-sparkline { display: block; vertical-align: middle; opacity: 0.9; }
.psx-table .lc-spark-cell { width: 64px; padding: 8px 6px; }

.lc-tap-active { transform: scale(0.97); transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1); }
.lc-tap-target { transition: transform 0.12s var(--lc-ease); }

.lc-sector-card,
.lc-portfolio-grid .lc-portfolio-card,
.lc-form-block {
  box-shadow: var(--lc-elev-2);
  border: 1px solid var(--psx-border);
}

.psx-btn:focus-visible,
.psx-nav-btn:focus-visible,
.psx-side-btn:focus-visible,
.lc-link-btn:focus-visible,
.lc-tool-card:focus-visible,
.psx-icon-btn:focus-visible,
.lc-cmdk-input:focus-visible {
  outline: 2px solid var(--psx-accent);
  outline-offset: 2px;
}

.lc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.lc-cmdk {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px;
}
.lc-cmdk.hidden { display: none; }
.lc-cmdk-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.lc-cmdk-panel {
  position: relative; width: min(520px, 100%);
  background: var(--psx-bg-card); border: 1px solid var(--psx-border);
  border-radius: var(--lc-radius-lg); box-shadow: var(--lc-elev-2);
  overflow: hidden;
}
.lc-cmdk-input {
  width: 100%; padding: 14px 16px; border: none; border-bottom: 1px solid var(--psx-border);
  background: transparent; color: var(--psx-text); font-size: 16px; font-family: inherit;
}
.lc-cmdk-list { list-style: none; max-height: 280px; overflow: auto; margin: 0; padding: 6px; }
.lc-cmdk-item {
  width: 100%; text-align: left; padding: 10px 12px; border: none; border-radius: 10px;
  background: transparent; color: var(--psx-text); font-size: 14px; font-family: inherit; cursor: pointer;
}
.lc-cmdk-item.on, .lc-cmdk-item:hover { background: var(--psx-accent-soft); }
.lc-cmdk-hint {
  padding: 8px 14px 12px; font-size: 11px; color: var(--psx-text-3);
}
.lc-cmdk-hint kbd {
  display: inline-block; padding: 1px 5px; border-radius: 4px;
  border: 1px solid var(--psx-border); font-size: 11px; margin-right: 4px;
}

@media (max-width: 899px) { .lc-cmdk { display: none; } }

.lc-pnl-chart-wrap { margin-top: 16px; }
.lc-range-picker {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px;
}
.lc-range-btn {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--psx-border);
  background: transparent; color: var(--psx-text-2); font-size: 11px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
.lc-range-btn.on { background: var(--psx-accent-soft); color: var(--psx-accent); border-color: var(--psx-accent); }
.lc-freshness--live { border-color: var(--lc-22c55e); color: var(--lc-22c55e); }
.lc-currency-btn { font-size: 11px; font-weight: 700; min-width: 44px; letter-spacing: 0.02em; }

.lc-orderbook-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 12px; border-radius: 12px; border: 1px solid var(--psx-border); background: var(--psx-surface-2);
}
.lc-orderbook-side { display: flex; flex-direction: column; gap: 4px; }
.lc-orderbook-side--bid { text-align: left; }
.lc-orderbook-side--ask { text-align: right; }
.lc-orderbook-label { font-size: 11px; color: var(--psx-text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.lc-orderbook-mid { text-align: center; font-size: 12px; color: var(--psx-text-2); }
.lc-orderbook-ohlc {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--psx-text-2);
}
.lc-peer-list { display: flex; flex-direction: column; gap: 6px; }
.lc-peer-row {
  display: grid; grid-template-columns: 64px 1fr auto auto; gap: 8px; align-items: center;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--psx-border); background: var(--psx-surface);
  text-align: left; font-family: inherit; color: inherit; cursor: pointer;
}
.lc-announce-row {
  display: block; width: 100%; text-align: left; padding: 12px; border: none; border-bottom: 1px solid var(--psx-border);
  background: transparent; color: inherit; font-family: inherit; cursor: pointer;
}
.lc-announce-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lc-announce-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--psx-accent-soft); color: var(--psx-accent);
}

