/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */

:root {
  /* ── Background & surfaces ─────────────────────── */
  --bg:           oklch(0.985 0.006 90);
  --surface:      oklch(0.975 0.008 88);
  --surface-warm: oklch(0.965 0.012 88);
  --surface-2:    oklch(1 0 0);

  /* ── Borders ───────────────────────────────────── */
  --border:       oklch(0.9 0.01 90);
  --border-light: oklch(0.93 0.008 90);

  /* ── Text ──────────────────────────────────────── */
  --text:         oklch(0.18 0.02 250);
  --text-2:       oklch(0.38 0.02 250);
  --text-3:       oklch(0.52 0.015 250);
  --label:        oklch(0.62 0.01 250);

  /* ── Accent (muted gold) ───────────────────────── */
  --gold:         oklch(0.72 0.12 75);
  --gold-light:   oklch(0.95 0.04 85);
  --gold-mid:     oklch(0.84 0.08 80);

  /* ── Semantic: bullish / bearish / hold ─────────── */
  --buy-text:     oklch(0.5 0.13 155);
  --buy-bg:       oklch(0.96 0.04 155);
  --hold-text:    oklch(0.55 0.12 75);
  --hold-bg:      oklch(0.96 0.04 85);
  --sell-text:    oklch(0.52 0.18 25);
  --sell-bg:      oklch(0.96 0.05 25);
  --reduce-text:  oklch(0.52 0.15 35);
  --reduce-bg:    oklch(0.96 0.04 35);
  --neutral-text: oklch(0.55 0.04 250);
  --neutral-bg:   oklch(0.96 0.005 250);

  /* ── Layout ────────────────────────────────────── */
  --nav-height:        52px;
  --sidebar-width:     220px;
  --sidebar-collapsed: 52px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
}

/* ═══════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Mono / tabular utilities ──────────────────────── */
.font-mono, .tabular {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ═══════════════════════════════════════════
   TOP NAVIGATION
   ═══════════════════════════════════════════ */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #1C1917;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 1000;
  gap: 0;
}

.top-nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 40px;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
}

.top-nav-items {
  display: flex;
  height: var(--nav-height);
  gap: 0;
  flex: 1;
}

.top-nav-item {
  font-size: 13px;
  font-weight: 400;
  color: #A89880;
  padding: 0 18px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
  transition: color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-left: none;
  border-right: none;
}

.top-nav-item:hover {
  color: #F5F0E8;
}

.top-nav-item.active {
  color: #F5F0E8;
  border-bottom-color: #B8924A;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════ */

.app-shell {
  display: flex;
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
  width: 100%;
}

/* ═══════════════════════════════════════════
   LEFT SIDEBAR
   ═══════════════════════════════════════════ */

.left-sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface-warm);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 0 48px;
  z-index: 100;
  flex-shrink: 0;
}

.left-sidebar::-webkit-scrollbar {
  width: 4px;
}
.left-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.left-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.sidebar-section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 0 20px;
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}

.sidebar-group-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  padding: 12px 20px 4px;
  display: block;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 38px;
  font-size: 13px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  transition: color 0.12s, background 0.12s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(200, 169, 110, 0.07);
}

.sidebar-link.active {
  color: var(--text);
  border-left-color: var(--gold);
  background: rgba(200, 169, 110, 0.10);
  font-weight: 500;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 16px;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--border);
  color: var(--text-3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-stock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 20px;
  min-height: 46px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.12s;
  gap: 3px;
}

.sidebar-stock:hover {
  background: rgba(200, 169, 110, 0.07);
}

.sidebar-stock.active {
  border-left-color: var(--gold);
  background: rgba(200, 169, 110, 0.10);
}

.sidebar-stock-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
  line-height: 1.3;
}

.sidebar-stock-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-stock-sector {
  font-size: 10px;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 40px 48px;
  min-height: calc(100vh - var(--nav-height));
  width: calc(100% - var(--sidebar-width));
  overflow-y: auto;
}

.main-content.full-width {
  margin-left: 0;
  width: 100%;
  padding: 0;
}

.main-content.full-width .news-placeholder-inner {
  padding: 40px 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.main-content:has(.stock-page) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 24px;
  min-height: 0;
}

.main-content > div:has(.stock-page) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   RECOMMENDATION CHIPS
   ═══════════════════════════════════════════ */

.rec-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.rec-buy, .rec-accumulate       { background: var(--buy-bg);     color: var(--buy-text); }
.rec-hold                        { background: var(--hold-bg);    color: var(--hold-text); }
.rec-sell                        { background: var(--sell-bg);    color: var(--sell-text); }
.rec-reduce                      { background: var(--reduce-bg);  color: var(--reduce-text); }
.rec-default                     { background: var(--neutral-bg); color: var(--neutral-text); }

/* ═══════════════════════════════════════════
   PLACEHOLDER PAGES
   ═══════════════════════════════════════════ */

.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  text-align: center;
}

.placeholder-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  color: var(--text);
  font-weight: 400;
}

.placeholder-subtitle {
  font-size: 14px;
  color: var(--text-2);
  max-width: 400px;
  line-height: 1.6;
}

.placeholder-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════
   DATA — SOURCES & REFRESH
   ═══════════════════════════════════════════ */

.data-sources-page {
  max-width: 960px;
}

.data-sources-page--loading {
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.data-sources-header {
  margin-bottom: 24px;
}

.data-sources-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 8px;
}

.data-sources-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

.data-sources-error,
.data-sources-warn {
  font-size: 14px;
  color: var(--sell-text);
}

.data-sources-warn {
  color: var(--gold-dark);
}

.data-sources-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
}

.data-sources-table th,
.data-sources-table td {
  vertical-align: middle;
}

.data-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.data-status-fresh {
  background: #22c55e;
}

.data-status-warn {
  background: #eab308;
}

.data-status-stale {
  background: #ef4444;
}

.data-sources-action-cell {
  white-space: nowrap;
}

.data-sources-stock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.data-sources-run-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.data-sources-run-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.data-sources-run-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.data-sources-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: data-spin 0.7s linear infinite;
}

@keyframes data-spin {
  to {
    transform: rotate(360deg);
  }
}

.data-sources-feedback {
  font-size: 12px;
  margin-left: 4px;
}

.data-sources-feedback--ok {
  color: #22c55e;
}

.data-sources-feedback--err {
  color: #ef4444;
}

.data-sources-h2 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
}

.data-sources-per-stock {
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   DATA — STOCK COVERAGE
   ═══════════════════════════════════════════ */

.stock-coverage-page {
  max-width: 1100px;
}

.stock-coverage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.stock-coverage-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text);
}

.stock-coverage-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

.stock-coverage-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-coverage-select-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-coverage-select {
  min-width: 220px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
}

.stock-coverage-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.stock-coverage-tab {
  padding: 10px 16px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.stock-coverage-tab:hover {
  color: var(--text);
}

.stock-coverage-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  font-weight: 500;
}

.stock-coverage-panel {
  margin-bottom: 32px;
}

.stock-coverage-loading {
  margin: 12px 0;
}

.stock-coverage-banner {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.stock-coverage-banner--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.coverage-doc-block {
  margin-bottom: 28px;
}

.coverage-doc-h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}

.coverage-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.coverage-doc-table th,
.coverage-doc-table td {
  font-size: 13px;
  white-space: nowrap;
}

.coverage-muted-cell {
  color: var(--text-3);
  text-align: center;
  padding: 16px !important;
}

.coverage-action-btn {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.coverage-action-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.coverage-kpi-panel {
  max-width: 100%;
}

.coverage-kpi-scroll {
  max-height: 70vh;
}

.coverage-kpi-table {
  font-size: 12px;
}

.coverage-kpi-table th,
.coverage-kpi-table td {
  padding: 6px 8px;
  text-align: right;
}

.coverage-kpi-table th:first-child,
.coverage-kpi-table td:first-child {
  text-align: left;
}

.coverage-kpi-sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface-warm);
  box-shadow: 1px 0 0 var(--border-light);
}

.coverage-kpi-label {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.coverage-kpi-covpct {
  font-weight: 500;
  color: var(--text-2);
}

.coverage-kpi-cell--green {
  background: rgba(34, 197, 94, 0.14);
}

.coverage-kpi-cell--red {
  background: rgba(239, 68, 68, 0.11);
  color: var(--text-2);
}

.coverage-kpi-cell--gold {
  background: rgba(212, 175, 55, 0.18);
}

.coverage-kpi-legend {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 12px;
}

.coverage-kpi-legend-swatch {
  margin-right: 4px;
}

.stock-coverage-signal .coverage-signal-score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.coverage-signal-score-label {
  font-size: 14px;
  color: var(--text-2);
}

.coverage-signal-score-num {
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  line-height: 1;
  color: var(--text);
}

.coverage-signal-score-max {
  font-size: 14px;
  color: var(--text-3);
}

.coverage-signal-note {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 20px;
}

.coverage-signal-components th,
.coverage-signal-components td {
  font-size: 13px;
}

.coverage-bullet-list {
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════ */

.label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.display-number {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .left-sidebar {
    width: var(--sidebar-collapsed);
  }
  .sidebar-section-label,
  .sidebar-group-label,
  .sidebar-badge,
  .sidebar-stock-name,
  .sidebar-stock-meta,
  .sidebar-link span {
    display: none;
  }
  .sidebar-link {
    justify-content: center;
    padding: 0;
  }
  .main-content {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
  }
}

@media (max-width: 768px) {
  .top-nav { padding: 0 16px; }
  .top-nav-logo { margin-right: 20px; font-size: 11px; }
  .top-nav-item { padding: 0 12px; font-size: 12px; }
  .main-content { padding: 24px 20px; }
  .main-content.full-width .news-placeholder-inner {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════════════════════
   BRIEF PAGE
   ═══════════════════════════════════════════ */

.brief-page {
  max-width: 1100px;
}

.brief-page--loading {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brief-muted {
  font-size: 14px;
  color: var(--text-2);
}

.brief-banner {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
}

.brief-banner--warn {
  background: var(--hold-bg);
  border: 1px solid var(--border);
  color: var(--hold-text);
}

.brief-header {
  padding-bottom: 28px;
}

.brief-header-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.brief-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.brief-date-title {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.brief-page .market-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
}

.brief-stats-strip {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.brief-stat-cell {
  flex: 1 1 160px;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  min-width: 140px;
}

.brief-stat-cell:last-child {
  border-right: none;
}

.brief-stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 10px;
}

.brief-stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.brief-stat-hint {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.brief-pos {
  color: var(--buy-text);
}

.brief-neg {
  color: var(--sell-text);
}

.brief-section-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 14px;
}

.brief-signals-section {
  margin-bottom: 36px;
}

.brief-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.brief-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.brief-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-warm);
}

.brief-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.brief-table tr:last-child td {
  border-bottom: none;
}

.brief-table th.brief-num,
.brief-table td.brief-num {
  text-align: right;
}

.brief-empty {
  text-align: center;
  color: var(--text-2);
  font-style: italic;
  padding: 28px 16px;
}

.brief-pipeline {
  padding-top: 8px;
}

.brief-pipeline-line {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.brief-pipeline-k {
  color: var(--text-3);
  margin-right: 8px;
}

/* ═══════════════════════════════════════════
   UNIVERSE PAGE
   ═══════════════════════════════════════════ */

.universe-page {
  padding: 28px 32px 48px;
  max-width: 1400px;
}

.universe-top {
  margin-bottom: 24px;
}

.universe-row1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.universe-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.universe-count-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--gold-light);
  color: var(--text);
  border: 1px solid var(--gold-mid);
  border-radius: 999px;
  padding: 2px 10px;
  min-width: 28px;
  text-align: center;
}

.universe-row2.universe-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.universe-filters--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.universe-search {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--surface);
}

.universe-rec-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.universe-rec-btn {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}

.universe-rec-btn.active {
  background: var(--surface-warm);
  border-color: var(--gold);
  color: var(--text);
  font-weight: 600;
}

.universe-flag-toggle {
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.universe-clear-filters {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}

.universe-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.universe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.universe-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-warm);
  vertical-align: bottom;
  white-space: nowrap;
}

.universe-th-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.universe-th-btn:hover {
  color: var(--text);
}

.universe-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.universe-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.universe-row:hover {
  background: rgba(184, 146, 74, 0.06);
}

.universe-row--open {
  background: rgba(184, 146, 74, 0.08);
}

.universe-row:last-child td,
.universe-expand-row:last-child td {
  border-bottom: none;
}

.universe-stock-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.universe-stock-link:hover {
  text-decoration-color: var(--gold);
  color: var(--gold);
}

.universe-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.universe-num-bold {
  font-weight: 700;
}

.universe-up-pos {
  color: var(--buy-text);
}

.universe-up-neg {
  color: var(--sell-text);
}

.universe-rr-good {
  color: var(--buy-text);
  font-weight: 600;
}

.universe-rr-mid {
  color: var(--hold-text);
  font-weight: 600;
}

.universe-rr-bad {
  color: var(--sell-text);
  font-weight: 600;
}

.universe-score-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 72px;
}

.universe-score-num {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.universe-score-bar-track {
  width: 100%;
  max-width: 64px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.universe-score-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

.universe-flag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.universe-flag-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5c4c4;
}

.universe-flag-more {
  font-size: 11px;
  color: var(--text-3);
}

.universe-muted {
  color: var(--text-3);
}

.universe-news-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.universe-news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.universe-news-dot--on {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-light);
}

.universe-news-num {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text-2);
}

.universe-empty {
  text-align: center;
  color: var(--text-2);
  font-style: italic;
  padding: 36px 16px;
}

.universe-skel-row td {
  padding: 14px 16px;
}

.universe-skel-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border-light), var(--surface-warm), var(--border-light));
  background-size: 200% 100%;
  animation: universe-shimmer 1.2s ease-in-out infinite;
}

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

.universe-expand-row td {
  padding: 0;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border);
}

.universe-expand-card {
  padding: 20px 24px 24px;
}

.universe-expand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .universe-expand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .universe-expand-grid {
    grid-template-columns: 1fr;
  }
}

.universe-expand-panel {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.universe-expand-h {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  font-weight: 600;
}

.universe-expand-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.universe-bd-row {
  display: grid;
  grid-template-columns: 92px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.universe-bd-row:last-child {
  margin-bottom: 0;
}

.universe-bd-label {
  font-size: 11px;
  color: var(--text-3);
}

.universe-bd-track {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.universe-bd-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}

.universe-bd-num {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.universe-target-visual {
  font-size: 12px;
}

.universe-target-line {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, var(--sell-bg), var(--gold-light), var(--buy-bg));
  border-radius: 3px;
  margin: 16px 0 12px;
}

.universe-target-mark {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.universe-target-mark--bear {
  background: var(--sell-text);
}

.universe-target-mark--base {
  background: var(--gold);
  width: 10px;
  height: 10px;
}

.universe-target-mark--bull {
  background: var(--buy-text);
}

.universe-target-current {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--text);
  background: none;
  margin-top: -6px;
}

.universe-target-legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 11px;
}

.universe-target-cur {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}

.universe-expand-action {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.universe-expand-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.45;
}

.universe-expand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.universe-btn-primary {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: #1c1917;
  cursor: pointer;
}

.universe-btn-primary:hover {
  filter: brightness(1.05);
}

.universe-btn-ghost {
  padding: 10px 18px;
  font-size: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════
   STOCK DEEP DIVE
   ═══════════════════════════════════════════ */

.stock-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 1280px;
}

.stock-page--empty,
.stock-page--loading {
  padding: 24px 8px;
}

.stock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.stock-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stock-title {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 500;
}

.stock-sector-pill {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.stock-refresh {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stock-split {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.stock-anchor-nav {
  flex: 0 0 160px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: calc(100vh - var(--nav-height) - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.stock-anchor-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
}

.stock-anchor-btn:hover {
  color: var(--text);
}

.stock-anchor-btn.active {
  border-left-color: var(--gold);
  color: var(--text);
  background: var(--gold-light);
}

.stock-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.stock-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 16px;
}

.stock-section:last-child {
  border-bottom: none;
}

.stock-section-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.stock-sec-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
}

.stock-sub-h {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 20px 0 10px;
}

.stock-call-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .stock-call-grid {
    grid-template-columns: 1fr;
  }
  .stock-split {
    flex-direction: column;
  }
  .stock-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    max-height: none;
    flex: none;
    width: 100%;
  }
  .stock-anchor-btn {
    width: auto;
    margin-bottom: 0;
  }
}

.stock-call-rec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stock-rec-large {
  font-size: 16px;
  font-weight: 700;
}

.stock-conv-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  border: 1px solid var(--border);
}

.stock-blended-big {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--gold);
  line-height: 1.1;
  margin-top: 12px;
}

.stock-blended-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.stock-thesis {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.stock-up-down {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stock-mini-k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.stock-mini-ul {
  margin-left: 18px;
  color: var(--text-2);
  font-size: 13px;
}

.stock-score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stock-score-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.stock-sc-label {
  color: var(--text-2);
  width: 34%;
}

.stock-sc-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 18%;
}

.stock-sc-bar {
  width: 48%;
}

.stock-bar-track {
  background: var(--border-light);
  border-radius: 3px;
  width: 100%;
  max-width: 140px;
}

.stock-bar-fill {
  background: var(--gold);
  border-radius: 3px;
}

.stock-double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.stock-double .stock-panel {
  min-height: 100%;
}

.stock-redflag-panel {
  max-width: none;
}

@media (max-width: 1024px) {
  .stock-double {
    grid-template-columns: 1fr;
  }
}

.stock-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--surface);
}

.stock-panel-h {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.stock-cat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.stock-cat-row > span:last-of-type {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.stock-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.stock-mini-table td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border-light);
}

.stock-row-flag {
  border-left: 3px solid rgba(139, 26, 26, 0.45);
}

.stock-rf-counts {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.stock-badge-high {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #fde8e8;
  color: var(--sell-text);
}

.stock-badge-med {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #fdf8ee;
  color: var(--hold-text);
}

.stock-cap-banner {
  font-size: 12px;
  padding: 10px;
  background: #fde8e8;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  color: var(--sell-text);
}

.stock-flag-row {
  display: grid;
  grid-template-columns: 120px 72px 1fr;
  gap: 8px;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.stock-flag-name {
  text-transform: capitalize;
}

.stock-sev {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stock-sev-high {
  color: var(--sell-text);
}

.stock-sev-medium {
  color: var(--hold-text);
}

.stock-composite-line {
  margin-bottom: 12px;
  font-size: 14px;
}

.stock-q-grid {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stock-q-head {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr 48px 120px 52px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.stock-q-detail {
  padding: 12px 16px;
  background: var(--gold-light);
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-light);
}

.stock-struck {
  text-decoration: line-through;
  color: var(--text-3);
}

.stock-gold {
  color: var(--gold);
  font-weight: 700;
}

.stock-tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
}

.stock-tech-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
}

.stock-tech-bar {
  width: 140px;
}

.stock-tech-int {
  color: var(--text-2);
  font-size: 12px;
}

.stock-entry-big {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface-warm);
}

.stock-entry-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-entry-num {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 12px;
}

.stock-entry-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stock-stat-k {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-stat-v {
  font-size: 13px;
  margin-top: 4px;
}

.stock-bv-line {
  margin-bottom: 12px;
  font-size: 14px;
}

.stock-pbv-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.stock-flow-box {
  flex: 1;
  min-width: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface);
  font-size: 12px;
}

.stock-flow-box h4 {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.stock-flow-result {
  margin-top: 8px;
  font-weight: 700;
}

.stock-flow-arrow {
  align-self: center;
  font-size: 20px;
  color: var(--text-3);
}

.stock-price-svg-wrap {
  margin: 16px 0;
}

.stock-price-svg {
  width: 100%;
  height: 56px;
}

.stock-upside-big {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.stock-upside-big.pos {
  color: var(--buy-text);
}

.stock-upside-big.neg {
  color: var(--sell-text);
}

.stock-scen {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.stock-scen-head {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: none;
  background: var(--surface-warm);
  font-weight: 600;
  cursor: pointer;
}

.stock-scen-body {
  padding: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.stock-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stock-table-scroll {
  max-height: 420px;
  overflow: auto;
}

.stock-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.stock-data-table th,
.stock-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.stock-data-table th {
  background: var(--surface-warm);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-muted-cell {
  color: var(--text-3);
  font-style: italic;
}

.stock-mandate-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .stock-mandate-row {
    grid-template-columns: 1fr;
  }
}

.stock-mandate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface);
}

.stock-man-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.stock-can-act {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0;
}

.stock-can-act.yes {
  color: var(--buy-text);
}

.stock-can-act.no {
  color: var(--sell-text);
}

.stock-man-meta,
.stock-man-reason {
  font-size: 13px;
  color: var(--text-2);
}

.stock-tranche-ol {
  margin: 8px 0 0 18px;
  font-size: 12px;
}

.stock-exit-ul {
  margin-left: 18px;
  font-size: 13px;
}

.stock-risk-details {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.stock-risk-ul {
  margin-top: 10px;
  margin-left: 18px;
  font-size: 13px;
}

.stock-row-soft-flag {
  border-left: 3px solid rgba(139, 26, 26, 0.25);
}

.stock-arr-up {
  color: var(--buy-text);
}

.stock-arr-down {
  color: var(--sell-text);
}

.stock-arr-flat {
  color: var(--text-3);
}

.stock-muted {
  color: var(--text-3);
}

.stock-context-sum {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.stock-news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stock-news-filters button {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.stock-news-filters button.active {
  border-color: var(--gold);
  background: var(--gold-light);
}

.stock-news-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}

.stock-news-item {
  margin-bottom: 18px;
  position: relative;
}

.stock-news-date {
  font-size: 11px;
  color: var(--text-3);
  display: block;
  margin-bottom: 6px;
}

.stock-news-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface);
}

.stock-news-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.stock-news-title.hot {
  font-weight: 700;
}

.stock-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stock-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
}

.stock-dot-dir {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stock-dot-dir.pos {
  background: var(--buy-text);
}

.stock-dot-dir.neg {
  background: var(--sell-text);
}

.stock-dot-dir.flat {
  background: var(--border);
}

.stock-empty-news {
  font-style: italic;
  color: var(--text-2);
}

/* FIX 6 — prominent concall reliability warning (amber) in Stock Deep Dive */
.stock-concall-reliability-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(212, 160, 18, 0.18);
  border: 1px solid #c99400;
  color: var(--text-1);
}
.stock-concall-reliability-banner-title {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a5b00;
  margin-bottom: 8px;
}
.stock-concall-reliability-banner-msg {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.stock-concall-reliability-banner-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-2);
}

.stock-conc-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .stock-conc-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.stock-conc-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.stock-conc-k {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-conc-v {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0;
}

.stock-tone-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
}

.stock-spark {
  width: 100%;
  max-width: 560px;
  height: 70px;
  margin-bottom: 16px;
}

.stock-dc-row {
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.stock-rec-list {
  margin: 10px 0 0 18px;
  font-size: 13px;
}

.stock-acc {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 8px;
}

.stock-acc-body {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.stock-memo-head {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.stock-memo-btn {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold);
  background: var(--gold-light);
  cursor: pointer;
}

.stock-memo-body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  max-width: 680px;
  margin-top: 16px;
  color: var(--text);
}

.stock-memo-h3 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 28px 0 12px;
}

.stock-memo-h4 {
  font-size: 14px;
  margin: 18px 0 8px;
}

.stock-memo-p {
  margin-bottom: 12px;
}

.stock-memo-ul {
  margin: 0 0 12px 20px;
}

.stock-bt-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stock-bt-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.stock-bt-k {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-bt-v {
  font-size: 22px;
  font-weight: 700;
  margin-top: 6px;
}

.stock-tier-note {
  font-size: 12px;
  color: var(--hold-text);
  margin-bottom: 12px;
}

.stock-pos {
  color: var(--buy-text);
}

.stock-neg {
  color: var(--sell-text);
}

.stock-sh-insight {
  margin-top: 12px;
  font-size: 13px;
}

.stock-skel-split {
  display: flex;
  gap: 16px;
}

.stock-skel-nav {
  width: 160px;
  height: 200px;
  background: var(--border-light);
  border-radius: var(--radius-md);
}

.stock-skel-body {
  flex: 1;
}

.stock-skel-head {
  height: 48px;
  background: var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.stock-skel-block {
  height: 120px;
  background: var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.stock-skel-block.short {
  height: 72px;
}

/* Stock Deep Dive — memo markdown, flags banner, score hero, collapsible sections */
.memo-content {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  max-width: 680px;
  color: var(--text);
}

.memo-content .memo-h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--text);
  margin: 24px 0 8px;
  font-weight: 400;
}

.memo-content .memo-h2 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 24px 0 10px;
  font-weight: 500;
}

.memo-content .memo-h3 {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin: 16px 0 6px;
}

.memo-content .memo-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.memo-content .memo-ul {
  padding-left: 20px;
  margin: 8px 0;
}

.memo-content .memo-ul li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 4px;
}

.memo-content .memo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.memo-content .memo-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.memo-content .memo-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
}

.memo-content p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}

.red-flag-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
}

.red-flag-banner-icon {
  color: #dc2626;
  font-size: 16px;
}

.red-flag-banner-text {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.4;
}

.quality-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
}

.quality-banner-icon {
  color: #b45309;
  font-size: 16px;
}

.quality-banner-text {
  flex: 1;
  font-size: 13px;
  color: #92400e;
  line-height: 1.4;
  min-width: 200px;
}

.quality-banner-btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #d97706;
  background: var(--surface);
  color: #b45309;
  cursor: pointer;
  white-space: nowrap;
}

.quality-banner-btn:hover {
  background: #fff7ed;
}

.stock-score-breakdown-card {
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.score-breakdown-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.score-breakdown-item {
  display: grid;
  grid-template-columns: 120px 48px 1fr;
  align-items: center;
  gap: 12px;
}

.score-breakdown-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-breakdown-value {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  color: var(--text);
  text-align: right;
}

.score-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 5px;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.blended-score-hero {
  font-family: 'Instrument Serif', serif;
  font-size: 64px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin: 8px 0 4px;
}

.blended-score-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.section-header:hover .section-header-label {
  color: var(--gold);
}

.section-header-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  flex: 1;
}

.section-header-summary {
  font-size: 12px;
  color: var(--text-3);
}

.section-header-toggle {
  font-size: 10px;
  color: var(--text-3);
}

.section-content {
  padding: 20px 0;
}

.q-expand-panel {
  background: var(--gold-light);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  margin: 4px 0 8px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.q-expand-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.q-expand-panel code {
  font-family: monospace;
  font-size: 12px;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}

.q-expand-panel p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .score-breakdown-item {
    grid-template-columns: 1fr 40px 1fr;
  }
}

/* ─── Portfolio section ─── */
.pf-page {
  max-width: 1120px;
  padding-bottom: 48px;
}

.pf-page--loading .pf-skel-bar {
  height: 56px;
  background: var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.pf-page--loading .pf-skel-chart {
  height: 220px;
  background: var(--border-light);
  border-radius: var(--radius-md);
}

.pf-page--loading .pf-skel-charts2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 220px;
}

.pf-page--loading .pf-skel-charts2::before,
.pf-page--loading .pf-skel-charts2::after {
  content: '';
  background: var(--border-light);
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .pf-page--loading .pf-skel-charts2 {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pf-page--loading .pf-skel-charts2::before,
  .pf-page--loading .pf-skel-charts2::after {
    min-height: 180px;
  }
}

.pf-head {
  margin-bottom: 20px;
}

.pf-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text);
}

.pf-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.pf-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px 16px;
  padding: 16px 18px;
  background: var(--surface-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.pf-stat-cell {
  min-width: 0;
}

.pf-stat-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.pf-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.pf-chart-wrap {
  margin-top: 8px;
}

.pf-chart-caption {
  font-size: 11px;
  color: var(--text-3);
  margin: 0 0 8px;
}

.pf-chart-host {
  position: relative;
  width: 100%;
}

.pf-two-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.pf-chart-panel {
  min-width: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--surface);
}

@media (max-width: 900px) {
  .pf-two-charts {
    grid-template-columns: 1fr;
  }
}

.pf-empty {
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-warm);
}

.pf-empty-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}

.pf-empty-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
  max-width: 420px;
  margin-inline: auto;
}

.pf-section-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin: 0 0 14px;
}

.pf-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pf-table th,
.pf-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.pf-table th {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-warm);
}

.pf-table tbody tr:last-child td {
  border-bottom: none;
}

.pf-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pf-pos {
  color: var(--buy-text);
}

.pf-neg {
  color: var(--sell-text);
}

.pf-weight-cell {
  min-width: 120px;
}

.pf-weight-bar-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.pf-weight-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}

.pf-weight-pct {
  font-size: 12px;
  color: var(--text-2);
}

.pf-table-orders .pf-order-reason-row td {
  padding-top: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-3);
}

.pf-order-reason {
  display: block;
  padding-left: 2px;
  line-height: 1.45;
}

.pf-col-narrow {
  width: 36px;
  text-align: center;
}

.pf-trade-toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-warm);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
}

.pf-trade-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pf-reason-preview {
  max-width: 320px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.pf-trade-expand-row td {
  background: var(--gold-light);
  padding-top: 0;
}

.pf-trade-detail {
  padding: 12px 4px 16px;
}

.pf-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.pf-dl dt {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.pf-dl dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

/* ─── Workspace section ─── */
.ws-page {
  max-width: 1100px;
  padding-bottom: 48px;
}

.ws-head {
  margin-bottom: 18px;
}

.ws-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 6px;
  color: var(--text);
}

.ws-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
  max-width: 720px;
  line-height: 1.5;
}

.ws-save {
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.ws-save--busy {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--text);
}

.ws-save--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  animation: wsFade 2s ease forwards;
}

.ws-save--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@keyframes wsFade {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.ws-scope-bar {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.ws-scope-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ws-scope-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-right: 8px;
}

.ws-pill {
  border: 1px solid var(--border);
  background: var(--surface-warm);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
}

.ws-pill.active {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--text);
}

.ws-scope-or {
  font-size: 12px;
  color: var(--text-3);
}

.ws-select {
  min-width: 200px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
}

.ws-scope-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}

.ws-muted {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
}

.ws-empty {
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  line-height: 1.5;
}

.ws-panel {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--surface);
  display: grid;
  gap: 10px;
}

.ws-h2 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
}

.ws-help {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
  margin: 0;
}

.ws-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ws-table th,
.ws-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.ws-table th {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-warm);
}

.ws-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ws-small {
  font-size: 11px;
  color: var(--text-2);
  max-width: 220px;
}

.ws-cell-null {
  background: #fef2f2;
  color: #991b1b;
  cursor: pointer;
}

.ws-cell-corr {
  background: var(--gold-light);
  cursor: pointer;
}

.ws-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.ws-modal {
  background: var(--surface);
  border-radius: var(--radius-md);
  max-width: 420px;
  width: 100%;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ws-modal-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.ws-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.ws-field-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 10px 0 4px;
}

.ws-input,
.ws-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

.ws-btn {
  border: 1px solid var(--border);
  background: var(--surface-warm);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
}

.ws-btn-primary {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--text);
}

.ws-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ws-note {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 12px;
}

.ws-q-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-q-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.ws-q-card.open {
  border-color: var(--gold);
}

.ws-q-head {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 48px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

@media (max-width: 900px) {
  .ws-q-head {
    grid-template-columns: 40px 1fr;
    grid-auto-rows: auto;
  }

  .ws-bar-grey,
  .ws-bar-gold {
    grid-column: 1 / -1;
  }
}

.ws-q-id {
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
}

.ws-q-label {
  font-size: 13px;
  color: var(--text);
}

.ws-q-w {
  font-size: 11px;
  color: var(--text-3);
}

.ws-bar-grey,
.ws-bar-gold {
  display: block;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.ws-bar-grey span,
.ws-bar-gold span {
  display: block;
  height: 100%;
  background: #9ca3af;
  border-radius: 3px;
}

.ws-bar-gold span {
  background: var(--gold);
}

.ws-q-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border-light);
}

.ws-sidebyside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.ws-big-num {
  font-size: 22px;
  font-weight: 600;
}

.ws-flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.ws-flag-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface);
}

.ws-flag-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ws-flag-head h3 {
  margin: 0;
  font-size: 15px;
}

.ws-fieldset {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin: 10px 0;
}

.ws-radio {
  display: block;
  font-size: 12px;
  margin: 4px 0;
}

.ws-sev {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ws-sev-high {
  background: #fef2f2;
  color: #991b1b;
}

.ws-sev-medium {
  background: #fffbeb;
  color: #92400e;
}

.ws-sev-low {
  background: #f3f4f6;
  color: #4b5563;
}

.ws-tag {
  font-size: 10px;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 4px;
}

.ws-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.ws-check {
  font-size: 12px;
  color: var(--text-2);
}

/* ─── News page (full viewport split below shell nav) ─── */

.main-content.full-width:has(.news-page) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-content.full-width .news-placeholder-inner.news-full-bleed {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.news-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
  width: 100%;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.news-topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
  background: var(--surface);
}

.news-topbar-title {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  color: var(--text);
  margin-right: 16px;
  flex-shrink: 0;
}

.news-filters {
  display: flex;
  gap: 8px;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.news-filters input {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  width: 160px;
  flex-shrink: 0;
}

.news-filters select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  min-width: 72px;
  max-width: 168px;
}

.news-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.news-left {
  width: 55%;
  flex: 0 0 55%;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  min-width: 0;
  box-sizing: border-box;
  background: var(--surface);
}

.news-right {
  width: 45%;
  flex: 0 0 45%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  background: var(--bg);
  min-width: 0;
  box-sizing: border-box;
}

.news-left-stats {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.news-left-stats strong {
  color: var(--text-2);
  font-weight: 600;
}

.news-feed-snippet {
  margin: 6px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-3);
  text-align: left;
}

@media (max-width: 960px) {
  .news-body {
    flex-direction: column;
  }

  .news-left,
  .news-right {
    width: 100%;
    flex: 1 1 auto;
    border-right: none;
  }

  .news-left {
    border-bottom: 1px solid var(--border);
    max-height: 45vh;
  }

  .news-right {
    flex: 1;
    min-height: 40vh;
  }
}

.news-impact-placeholder {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
}

.news-impact-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-impact-section {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.news-impact-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-impact-section--article {
  padding-bottom: 18px;
}

.news-impact-h2 {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-impact-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-impact-meta-line {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

.news-impact-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: none;
  overflow-y: visible;
  padding-right: 6px;
}

.news-impact-help {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 10px;
  line-height: 1.45;
}

.news-stock-hit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-stock-hit {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--surface);
}

.news-stock-hit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.news-stock-hit-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.news-stock-hit-why {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
}

.news-dd-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.news-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.news-impact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.news-impact-table th,
.news-impact-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.news-impact-table th {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
}

.news-price-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.news-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.news-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
}

.news-stat-k {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.news-stat-v {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.news-db-missing {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--gold);
  background: var(--gold-light);
  margin-bottom: 18px;
}

.news-db-missing-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.news-db-missing-body {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.news-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
}

.news-filters-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px 14px;
  margin-bottom: 16px;
  background: var(--surface-warm);
}

.news-filters-onerow {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 14px 20px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.news-onerow-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-onerow-block--search {
  flex: 1 1 200px;
  min-width: 140px;
  max-width: 280px;
}

.news-onerow-k {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.news-filter-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}

.news-onerow-block--select {
  flex: 0 1 160px;
  min-width: 130px;
  max-width: 220px;
}

.news-filter-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.news-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
  color: var(--text);
}

.news-pill.active {
  border-color: var(--gold);
  background: var(--gold-light);
}

.news-muted {
  font-size: 13px;
  color: var(--text-3);
}

.news-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.news-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-feed-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 14px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.news-feed-item:hover {
  background: var(--surface-warm);
}

.news-feed-item--active {
  border-left-color: var(--gold);
  background: var(--gold-light);
}

.news-feed-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.news-feed-headline {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.news-feed-headline--high {
  font-weight: 700;
}

.news-feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.news-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--text-2);
}

.news-chip--src {
  background: var(--surface-warm);
}

.news-chip--cat {
  background: var(--surface);
}

.news-dir-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.news-dir-dot--pos {
  background: #16a34a;
}

.news-dir-dot--neg {
  background: #dc2626;
}

.news-dir-dot--neu {
  background: #9ca3af;
}

.news-mat-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
}

.news-mat-badge--high {
  background: #fef2f2;
  color: #991b1b;
}

.news-mat-badge--medium {
  background: #fffbeb;
  color: #92400e;
}

.news-mat-badge--low {
  background: #f3f4f6;
  color: #4b5563;
}

.brief-banner--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.brief-inline-muted {
  margin: 0 0 16px;
  font-size: 13px;
}

.brief-table--compact th,
.brief-table--compact td {
  padding: 8px 10px;
  font-size: 12px;
}

.brief-pending-orders-section,
.brief-news-impacts-section {
  margin-top: 28px;
}

.brief-news-impacts-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 720px;
}

.brief-stock-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.brief-link-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 11px;
  text-decoration: underline;
  color: var(--gold);
  cursor: pointer;
  font-family: inherit;
}

.brief-link-btn:hover {
  color: var(--text);
}

.brief-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.brief-revert-btn {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
}

.brief-revert-btn:hover:not(:disabled) {
  border-color: var(--gold);
}

.brief-revert-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.news-impact-section--suggested {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.news-suggested-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.news-suggested-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--surface);
}

.news-suggested-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.news-suggested-stock {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.news-suggested-folder {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.news-suggested-expiry {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}

.news-suggested-sub {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-suggested-delta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-suggested-delta-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.news-suggested-dim {
  color: var(--text-2);
}

.news-suggested-num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.news-suggested-delta-pos {
  color: #15803d;
}

.news-suggested-delta-neg {
  color: #b91c1c;
}

.news-suggested-pt-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

.news-suggested-pt-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.news-suggested-pt-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.news-suggested-pt-k {
  color: var(--text-3);
}

.news-suggested-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.news-suggested-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border-light);
}

.news-suggested-btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1a12;
  font-weight: 600;
}

.news-suggested-btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.news-suggested-btn--ghost {
  background: transparent;
}

.news-suggested-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Stock Deep Dive — sticky top bar, tabs, layered technical (SPA) */
.stock-sticky-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.stock-sticky-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.stock-sticky-title {
  margin: 0;
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.stock-sticky-sector-pill {
  flex-shrink: 0;
}

.stock-sticky-centre {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.stock-sticky-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  min-width: 0;
}

.stock-sticky-stat-k {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-sticky-stat-num {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.stock-sticky-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-light);
  flex-shrink: 0;
}

.stock-sticky-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.stock-sticky-ts {
  font-size: 12px;
  color: var(--text-3);
  max-width: 200px;
  text-align: right;
}

.stock-tab-row {
  display: flex;
  gap: 8px;
  padding: 0 32px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 4px 8px;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.stock-tech-summary-card {
  margin: 16px 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-elevated, var(--surface));
}

.stock-tech-summary-line {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.45;
}

.stock-tech-summary-empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

.stock-tech-summary-link {
  margin-top: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--gold);
  text-decoration: underline;
}

.stock-timing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.stock-timing-good {
  background: rgba(45, 106, 79, 0.15);
  color: #15803d;
}

.stock-timing-wait {
  background: rgba(184, 146, 74, 0.2);
  color: #92400e;
}

.stock-timing-avoid {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.stock-timing-unknown {
  background: var(--border-light);
  color: var(--text-2);
}

.stock-tech-verdict-banner {
  padding: 20px 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: var(--surface);
}

.stock-tech-verdict-good {
  border-left: 4px solid #15803d;
}

.stock-tech-verdict-wait {
  border-left: 4px solid var(--gold);
}

.stock-tech-verdict-avoid {
  border-left: 4px solid #b91c1c;
}

.stock-tech-verdict-large {
  margin: 0 0 8px;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 600;
}

.stock-tech-reason {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-2);
}

.stock-tech-verdict-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 16px;
}

.stock-tech-vs-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stock-tech-vs-k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-tech-vs-v {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stock-tech-zone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.stock-tech-zone-k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stock-tech-zone-v {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stock-tech-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .stock-tech-cols {
    grid-template-columns: 1fr;
  }

  .stock-sticky-centre {
    justify-content: flex-start;
  }

  .stock-sticky-topbar {
    padding: 16px 20px;
  }

  .stock-tab-row {
    padding: 0 20px 12px;
  }
}

.stock-tech-layer-label {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.stock-tech-layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 40px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}

.stock-tech-layer-row--wide .stock-tech-layer-detail {
  white-space: normal;
}

.stock-tech-layer-meta {
  min-width: 0;
}

.stock-tech-layer-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 4px;
}

.stock-tech-layer-detail {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}

.stock-tech-layer-score {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.stock-micro-missing-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(184, 146, 74, 0.15);
  color: #92400e;
  font-size: 13px;
  margin-bottom: 14px;
}

.stock-tech-range-wrap {
  margin-top: 8px;
  padding: 16px 0 32px;
}

.stock-tech-range-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.stock-tech-muted {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════
   B2C DISCOVER SIDEBAR LAYOUT
   ═══════════════════════════════════════════ */

.discover-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

.discover-sidebar {
  width: 180px;
  min-width: 180px;
  background: var(--surface-warm);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
}

.discover-content {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
  min-width: 0;
}

.discover-sidebar-item {
  display: block;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-2);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}

.discover-sidebar-item:hover {
  color: var(--text);
  background: rgba(184, 146, 74, 0.04);
}

.discover-sidebar-item.active {
  color: var(--text);
  border-left-color: var(--gold);
  background: rgba(184, 146, 74, 0.06);
}

.discover-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 20px;
}

.discover-sidebar-sublabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  padding: 0 20px 4px;
  display: block;
}

@media (max-width: 768px) {
  .discover-sidebar { display: none; }
  .discover-content { padding: 16px; }
}
