/* Alphyx Insights — shared styles
   Brand: deep navy, teal arrow accent, warm off-white. "Look closer ↗" */

:root {
  /* brand */
  --navy-900: #0b1520;
  --navy-800: #111c2b;
  --navy-700: #182637;
  --navy-600: #22344a;
  --teal: #3a9aa3;
  --teal-bright: #5cc1c9;
  --teal-soft: rgba(58,154,163,0.12);
  --cream: #f1efe8;

  /* surfaces (light) */
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f0efea;
  --text: #121b26;
  --text-2: #4a5866;
  --text-3: #7a8794;
  --line: #e2e1db;
  --line-strong: #cfcdc5;

  /* market colors */
  --up: #138a5a;
  --up-bg: rgba(19,138,90,0.10);
  --down: #c8433a;
  --down-bg: rgba(200,67,58,0.10);
  --hold: #a07a12;
  --hold-bg: rgba(160,122,18,0.12);

  --radius: 10px;
  --shadow: 0 1px 2px rgba(11,21,32,0.05), 0 4px 16px rgba(11,21,32,0.04);
  --max: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Source Serif 4", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1520;
    --surface: #111c2b;
    --surface-2: #182637;
    --text: #eceae3;
    --text-2: #a9b4bf;
    --text-3: #7b8896;
    --line: #1f2f42;
    --line-strong: #2b3f56;
    --up: #3ccf8e;
    --up-bg: rgba(60,207,142,0.12);
    --down: #ff6b5e;
    --down-bg: rgba(255,107,94,0.12);
    --hold: #e2b44a;
    --hold-bg: rgba(226,180,74,0.14);
    --teal-soft: rgba(92,193,201,0.14);
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1520;
  --surface: #111c2b;
  --surface-2: #182637;
  --text: #eceae3;
  --text-2: #a9b4bf;
  --text-3: #7b8896;
  --line: #1f2f42;
  --line-strong: #2b3f56;
  --up: #3ccf8e;
  --up-bg: rgba(60,207,142,0.12);
  --down: #ff6b5e;
  --down-bg: rgba(255,107,94,0.12);
  --hold: #e2b44a;
  --hold-bg: rgba(226,180,74,0.14);
  --teal-soft: rgba(92,193,201,0.14);
  --shadow: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--teal); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.arrow { color: var(--teal-bright); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ───────── Header ───────── */
.site-header {
  background: var(--navy-800);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand img { width: 34px; height: 34px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { color: var(--teal-bright); font-weight: 600; }

.search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-700);
  border: 1px solid var(--navy-600);
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  color: #8fa0b1;
}
.search:focus-within { border-color: var(--teal); }
.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--cream);
  font: inherit;
  font-size: 14px;
  min-width: 0;
}
.search input::placeholder { color: #7d8fa1; }
.search kbd {
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--navy-600);
  border-radius: 4px;
  padding: 1px 6px;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.btn-ghost { color: var(--cream); }
.btn-ghost:hover { color: var(--teal-bright); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-bright); color: var(--navy-900); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--cream);
}
.icon-btn:hover { background: var(--navy-700); }
.menu-btn { display: none; }

.main-nav { border-top: 1px solid rgba(255,255,255,0.06); }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a {
  display: block;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #b9c4cf;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a.active { color: var(--cream); border-bottom-color: var(--teal); }
.main-nav .premium { color: var(--teal-bright); }

/* ───────── Market strip ───────── */
.market-strip {
  background: var(--navy-900);
  color: #c9d3dc;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.market-strip .wrap { display: flex; align-items: center; gap: 16px; height: 38px; }
.strip-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8fa0b1; flex-shrink: 0;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 3px rgba(92,193,201,0.2); }
.ticker-track { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.ticker-track::-webkit-scrollbar { display: none; }
.tick { display: flex; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick b { font-weight: 600; color: var(--cream); }
.tick .up { color: #3ccf8e; }
.tick .down { color: #ff7a6e; }
.demo-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #7d8fa1; border: 1px solid var(--navy-600); border-radius: 4px; padding: 1px 6px; flex-shrink: 0;
}

/* ───────── Layout ───────── */
.page { padding: 28px 0 64px; }
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 124px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.card-head a { font-size: 13px; color: var(--teal); font-weight: 600; }
.card-body { padding: 6px 18px 12px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 36px 0 14px;
}
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.section-head a { font-size: 13px; color: var(--teal); font-weight: 600; white-space: nowrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--cream);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 100%;
  z-index: -1;
}
.hero-arrow {
  position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px;
  z-index: -1; opacity: 0.55;
}
.hero .eyebrow { color: var(--teal-bright); margin-bottom: 14px; }
.hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero h1 a:hover { color: var(--teal-bright); }
.hero p.dek { color: #b9c4cf; font-size: 16px; max-width: 56ch; margin-bottom: 18px; }
.hero .byline { color: #93a3b3; }
.hero .byline b { color: var(--cream); }
.hero-side { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(255,255,255,0.08); padding-left: 24px; }
.hero-side a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-side a:last-child { border-bottom: 0; }
.hero-side .t { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--cream); }
.hero-side a:hover .t { color: var(--teal-bright); }
.hero-side .m { font-size: 12px; color: #8fa0b1; margin-top: 4px; display: flex; gap: 8px; align-items: center; }

/* ───────── Article list ───────── */
.feed { list-style: none; }
.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item h3 { font-size: 17px; line-height: 1.32; font-weight: 650; letter-spacing: -0.015em; margin: 6px 0; text-wrap: pretty; }
.feed-item p { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.meta b { color: var(--text-2); font-weight: 600; }
.meta svg { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.thumb {
  width: 132px; height: 88px; border-radius: 8px;
  background: var(--navy-800);
  position: relative; overflow: hidden;
}
.thumb svg { width: 100%; height: 100%; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  padding: 2px 7px; border-radius: 5px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line);
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip .up, .chip .down { font-size: 11px; }
.tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); font-weight: 500;
}

.rating {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; white-space: nowrap;
}
.r-strong-buy { background: var(--up); color: #fff; }
.r-buy { background: var(--up-bg); color: var(--up); }
.r-hold { background: var(--hold-bg); color: var(--hold); }
.r-sell { background: var(--down-bg); color: var(--down); }
.r-strong-sell { background: var(--down); color: #fff; }

.premium-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); padding: 2px 7px; border-radius: 4px;
}

/* ───────── Tables / lists in sidebar ───────── */
.q-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.q-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.q-table tr:last-child td { border-bottom: 0; }
.q-table td:first-child b { display: block; font-weight: 600; font-size: 13.5px; }
.q-table td:first-child span { font-size: 12px; color: var(--text-3); }
.q-table .num { text-align: right; }
.q-table .chg {
  text-align: right; width: 84px;
}
.pill-chg {
  display: inline-block; min-width: 68px; text-align: center;
  font-size: 12.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px;
}
.pill-chg.up { background: var(--up-bg); }
.pill-chg.down { background: var(--down-bg); }
.spark { width: 64px; height: 22px; }

.trend-list { list-style: none; counter-reset: trend; }
.trend-list li {
  counter-increment: trend;
  display: grid; grid-template-columns: 22px 1fr; gap: 8px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 600; line-height: 1.35;
}
.trend-list li:last-child { border-bottom: 0; }
.trend-list li::before {
  content: counter(trend);
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--teal);
}
.trend-list .meta { margin-top: 4px; font-weight: 400; }

/* ───────── Promo / CTA ───────── */
.promo {
  background: var(--navy-800);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.promo h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 8px; }
.promo p { color: #b9c4cf; font-size: 14px; margin-bottom: 16px; }
.promo ul { list-style: none; margin-bottom: 18px; display: grid; gap: 7px; font-size: 13.5px; color: #d6dde4; }
.promo li { display: flex; gap: 8px; }
.promo li::before { content: "↗"; color: var(--teal-bright); font-weight: 700; }
.promo .btn { width: 100%; height: 42px; }

/* ───────── Quant ratings grid ───────── */
.ratings-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;
}
.stock-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.stock-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stock-card .sym { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.stock-card .name { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-card .px { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.grade { text-align: center; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.grade b {
  display: block; font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface-2); border-radius: 4px; padding: 3px 0; margin-bottom: 3px;
}
.grade b.g-a { background: var(--up-bg); color: var(--up); }
.grade b.g-c { background: var(--hold-bg); color: var(--hold); }
.grade b.g-d { background: var(--down-bg); color: var(--down); }

/* ───────── News list ───────── */
.news-list { list-style: none; }
.news-list li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-top: 2px; }
.news-list a { font-weight: 600; font-size: 14.5px; line-height: 1.38; }

/* ───────── Footer ───────── */
.site-footer {
  background: var(--navy-900);
  color: #9fb0c0;
  padding: 48px 0 28px;
  font-size: 13.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-bottom: 36px; }
.foot-grid h4 { color: var(--cream); font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--teal-bright); }
.foot-brand p { margin-top: 12px; max-width: 30ch; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: #74879a;
}
.disclaimer { max-width: 80ch; }

/* ───────── Article page ───────── */
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 48px; justify-content: space-between; align-items: start; }
.crumbs { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.crumbs a { color: var(--teal); font-weight: 600; }
.article-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 700;
  margin: 12px 0 16px; text-wrap: balance;
}
.article-head .dek { font-size: 18px; color: var(--text-2); line-height: 1.5; }
.author-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 0; margin: 22px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-700); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
  border: 2px solid var(--teal);
}
.author-row .who b { display: block; font-size: 15px; }
.author-row .who span { font-size: 13px; color: var(--text-3); }
.author-row .actions { margin-left: auto; display: flex; gap: 8px; }

.summary-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0;
}
.summary-box h2 { font-size: 13px; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; font-weight: 500; }
.summary-box ul { padding-left: 18px; display: grid; gap: 8px; font-size: 15.5px; }
.summary-box li::marker { color: var(--teal); }

.prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-family: var(--sans); font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; margin: 1.8em 0 0.6em; }
.prose blockquote {
  font-family: var(--sans); font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
  border-left: 3px solid var(--teal); padding: 4px 0 4px 20px; margin: 1.6em 0; color: var(--text);
}
.prose figure { margin: 1.8em 0; font-family: var(--sans); }
.prose figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th { text-align: right; font-weight: 600; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.data-table td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table th:first-child, .data-table td:first-child { text-align: left; padding-left: 0; }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

.paywall {
  position: relative; margin-top: -120px; padding-top: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg) 120px);
}
.paywall .promo { text-align: center; padding: 32px 24px; }
.paywall .promo ul { justify-content: center; text-align: left; max-width: 340px; margin: 0 auto 20px; }
.paywall .promo .btn { width: auto; padding: 0 28px; }

.disclosure { font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; }
.disclosure b { color: var(--text-2); }

.comments { margin-top: 36px; }
.comment { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment .avatar { width: 36px; height: 36px; font-size: 13px; border-width: 1px; }
.comment b { font-size: 14px; }
.comment time { font-size: 12px; color: var(--text-3); margin-left: 6px; }
.comment p { font-size: 14.5px; margin-top: 4px; color: var(--text-2); }
.comment-input {
  width: 100%; min-height: 80px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; resize: vertical;
}
.comment-input:focus { outline: none; border-color: var(--teal); }

.symbol-card { padding: 18px; }
.symbol-card .px { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13.5px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--text-3); }
.kv dd { font-weight: 600; text-align: right; }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .grid, .article-grid { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
  .ratings-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .search, .header-actions .btn-ghost, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .thumb { width: 88px; height: 64px; }
  .ratings-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .author-row .actions { margin-left: 0; width: 100%; }
  .prose { font-size: 17px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 6px; }
}

/* ───────── Symbol page ───────── */
.sym-head {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 20px 40px;
  padding-bottom: 20px;
}
.sym-head .sym-actions { justify-self: end; }
@media (max-width: 1080px) { .sym-head { grid-template-columns: minmax(0, 1fr) auto; } .sym-head .sym-actions { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 760px) { .sym-head { grid-template-columns: minmax(0, 1fr); } }
.sym-title { display: flex; align-items: center; gap: 14px; }
.sym-logo {
  width: 52px; height: 52px; border-radius: 12px; background: var(--navy-800); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 13px;
  border: 1px solid var(--navy-600); flex-shrink: 0;
}
.sym-title h1 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.025em; line-height: 1.15; }
.sym-title h1 .mono { color: var(--teal); font-size: 0.8em; margin-right: 6px; }
.sym-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.sym-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.sym-price .px { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
.sym-price .chg { font-size: 16px; font-weight: 600; }
.sym-price .when { font-size: 12.5px; color: var(--text-3); width: 100%; }
.sym-actions { display: flex; gap: 8px; }

.sym-tabs { position: sticky; top: 103px; z-index: 10; background: var(--bg); margin-bottom: 24px; }

.chart-card { padding: 18px 18px 10px; }
.chart-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.range { display: flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 3px; overflow-x: auto; }
.range button { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 6px; color: var(--text-3); }
.range button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.range-chg { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-chart { width: 100%; height: 300px; display: block; touch-action: pan-y; }
.price-chart text { font-family: var(--sans); font-size: 11px; fill: var(--text-3); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(4n) { border-right: 0; }
.stat:nth-last-child(-n+4) { border-bottom: 0; }
.stat dt { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.stat dd { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }

.ratings-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.rs { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rs:last-child { border-right: 0; }
.rs .lbl { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.rs .score { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rs .rating { align-self: flex-start; }
.rs small { font-size: 12px; color: var(--text-3); }
.meter { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--down), var(--hold) 50%, var(--up)); position: relative; margin: 4px 0; }
.meter i { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }

.factor-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.factor-table td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.factor-table tr:last-child td { border-bottom: 0; }
.factor-table td:last-child { text-align: right; width: 64px; }
.factor-table .grade b { display: inline-block; width: 44px; margin: 0; text-align: center; }
.factor-table small { display: block; font-size: 12px; color: var(--text-3); }

.data-table.compact td, .data-table.compact th { padding: 9px 10px; }
.table-scroll { overflow-x: auto; }
.beat { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.beat.up { background: var(--up-bg); }
.beat.down { background: var(--down-bg); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.about p { font-size: 14.5px; color: var(--text-2); padding: 14px 0 4px; }

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(4n) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .ratings-summary { grid-template-columns: 1fr; }
  .rs { border-right: 0; border-bottom: 1px solid var(--line); }
  .rs:last-child { border-bottom: 0; }
  .two-col { grid-template-columns: 1fr; }
  .price-chart { height: 220px; }
  .sym-actions { width: 100%; }
  .sym-actions .btn { flex: 1 1 auto; padding: 0 10px; min-width: 0; }
}

/* ───────── Screener ───────── */
.scr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.scr-head h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; line-height: 1.15; margin-top: 6px; }
.scr-head p:not(.eyebrow) { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }

.presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 20px; }
.presets::-webkit-scrollbar { display: none; }
.preset {
  flex-shrink: 0; text-align: left; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); min-width: 180px;
}
.preset b { display: block; font-size: 14px; }
.preset span { font-size: 12px; color: var(--text-3); }
.preset:hover { border-color: var(--teal); }
.preset[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.preset[aria-pressed="true"] b { color: var(--teal); }

.scr-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: 124px; }
.filters summary { list-style: none; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filter-group { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > label, .filter-group legend {
  display: block; font-size: 12px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.filter-group fieldset { border: 0; }
.select, .num-input {
  width: 100%; height: 36px; padding: 0 10px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
}
.select:focus, .num-input:focus { outline: none; border-color: var(--teal); }
.range-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; font-size: 12px; color: var(--text-3); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.seg input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.filters-foot { display: flex; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.filters-foot .btn { flex: 1; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.results-bar b { font-size: 15px; }
.results-bar .muted { font-size: 13px; color: var(--text-3); }
.scr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.scr-table th {
  position: sticky; top: 0; background: var(--surface-2); z-index: 1;
  text-align: right; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-3); padding: 0; white-space: nowrap; border-bottom: 1px solid var(--line-strong);
}
.scr-table th button { width: 100%; text-align: inherit; padding: 10px 8px; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
.scr-table th button:hover { color: var(--text); }
.scr-table th[aria-sort] button { color: var(--teal); }
.scr-table th[aria-sort="ascending"] button::after { content: " ↑"; }
.scr-table th[aria-sort="descending"] button::after { content: " ↓"; }
.scr-table th:first-child button, .scr-table td:first-child { padding-left: 18px; }
.scr-table th:last-child button, .scr-table td:last-child { padding-right: 18px; }
.scr-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.scr-table tbody tr:hover { background: var(--surface-2); }
.scr-table .l { text-align: left; }
.scr-table td.l a b { font-family: var(--mono); font-weight: 600; color: var(--teal); }
.scr-table td.l small { display: block; color: var(--text-3); font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.scr-table .grade b { display: inline-block; width: 30px; margin: 0; text-align: center; font-size: 12px; }
.empty { padding: 48px 18px; text-align: center; color: var(--text-3); }

@media (max-width: 1080px) {
  .scr-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
}
@media (min-width: 1081px) {
  .filters summary { pointer-events: none; }
  .filters summary .toggle-hint { display: none; }
}

/* ───────── Pricing ───────── */
.pricing-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-800); color: var(--cream);
  padding: clamp(48px, 8vw, 88px) 0 clamp(120px, 14vw, 160px);
  text-align: center;
}
.pricing-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 100%;
}
.pricing-hero .hero-arrow { right: -60px; bottom: -120px; width: 420px; height: 420px; opacity: 0.5; }
.pricing-hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
  margin: 14px auto 16px; max-width: 16ch; text-wrap: balance;
}
.pricing-hero p.lead { color: #b9c4cf; font-size: clamp(16px, 2vw, 18px); max-width: 52ch; margin: 0 auto 28px; }

.billing {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: 999px;
}
.billing button {
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #b9c4cf;
  display: inline-flex; align-items: center; gap: 8px;
}
.billing button[aria-pressed="true"] { background: var(--cream); color: var(--navy-900); }
.save-tag { font-size: 11px; font-weight: 700; color: var(--teal-bright); letter-spacing: 0.02em; }
.billing button[aria-pressed="true"] .save-tag { color: var(--teal); }

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: clamp(-120px, -12vw, -96px); position: relative; z-index: 2;
}
.plan { padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border: 2px solid var(--teal); box-shadow: 0 12px 40px rgba(11,21,32,0.18); }
.plan-flag {
  position: absolute; top: -13px; left: 28px;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan h2 { font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.plan h2 .arrow { font-size: 18px; }
.plan .for { font-size: 14px; color: var(--text-2); min-height: 42px; }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price .amt { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price .per { font-size: 14px; color: var(--text-3); }
.price-note { font-size: 13px; color: var(--text-3); margin-top: -10px; min-height: 20px; }
.plan .btn { height: 44px; width: 100%; font-size: 15px; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: "↗"; color: var(--teal); font-weight: 700; }
.plan li.inherit { font-weight: 600; }
.plan li.inherit::before { content: "+"; }

.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  margin: 32px 0 0; font-size: 13.5px; color: var(--text-2);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 16px; height: 16px; color: var(--teal); }

.compare { margin-top: 72px; }
.compare h2, .faq h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; text-align: center; margin-bottom: 8px; }
.compare > p, .faq > p { text-align: center; color: var(--text-2); margin-bottom: 28px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table thead th { font-size: 15px; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.cmp-table thead th.hl { color: var(--teal); }
.cmp-table td.hl { background: var(--teal-soft); }
.cmp-table tr.group td {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
  background: var(--surface-2); padding: 10px 16px;
}
.cmp-table small { display: block; font-size: 12px; color: var(--text-3); }
.yes { color: var(--teal); font-weight: 700; }
.no { color: var(--text-3); }

.faq { margin: 72px auto 0; max-width: 800px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding: 0 0 18px; font-size: 15px; max-width: 68ch; }

.final-cta { margin-top: 72px; text-align: center; padding: clamp(32px, 5vw, 56px); }
.final-cta h3 { font-size: clamp(24px, 3.4vw, 34px); max-width: 22ch; margin: 10px auto 12px; }
.final-cta p { max-width: 48ch; margin: 0 auto 22px; }
.final-cta .btn { width: auto; padding: 0 28px; }

/* ───────── News ───────── */
.news-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 8px; }
.lead-story { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lead-story h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; }
.lead-story p { color: var(--text-2); font-size: 15px; }
.lead-story .thumb { width: 100%; height: 150px; border-radius: 8px; }
.side-stories { display: flex; flex-direction: column; }
.side-stories a { display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.side-stories a:last-child { border-bottom: 0; }
.side-stories .t { font-weight: 650; font-size: 15px; line-height: 1.35; }
.breaking {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--down); background: var(--down-bg); padding: 2px 7px; border-radius: 4px;
}
.breaking::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .breaking::before { animation: none; } }

.filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips button {
  flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface);
}
.filter-chips button:hover { border-color: var(--teal); color: var(--teal); }
.filter-chips button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.timeline { list-style: none; }
.day-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
  padding: 14px 18px 8px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.tl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-item time { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); padding-top: 2px; }
.tl-item h3 { font-size: 15.5px; line-height: 1.38; font-weight: 650; letter-spacing: -0.01em; }
.tl-item p { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.tl-item .meta { margin-top: 8px; }
.tl-item[hidden], .day-label[hidden] { display: none; }

.movers td { padding: 8px 0; }
.econ td:first-child { font-family: var(--mono); font-size: 12px; color: var(--text-3); width: 52px; }
.econ td b { font-weight: 600; font-size: 13.5px; }
.econ td span:not(.impact) { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.side-stories a { flex: 1; }
.impact { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: 1px; }
.impact i { width: 4px; height: 10px; border-radius: 1px; background: var(--line-strong); }
.impact.h i { background: var(--down); }
.impact.m i:nth-child(-n+2) { background: var(--hold); }

.newsletter { padding: 20px; }
.newsletter h3 { font-size: 16px; margin-bottom: 4px; }
.newsletter p { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input { flex: 1; min-width: 0; }

@media (max-width: 860px) { .news-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan .for, .price-note { min-height: 0; }
}
@media (max-width: 760px) {
  .cmp-table th, .cmp-table td { padding: 11px 8px; font-size: 13px; }
}


/* ───────── Analysis hub ───────── */
.hero .hero-h { font-size: clamp(24px, 3vw, 34px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
.hero .hero-h a:hover { color: var(--teal-bright); }

.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.theme { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; transition: border-color .15s; }
.theme:hover { border-color: var(--teal); }
.theme b { font-size: 14.5px; margin-top: 8px; }
.theme > span:last-child { font-size: 12px; color: var(--text-3); }
.theme-ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  background: var(--surface-2); color: var(--text-2);
}
.theme-ic.up { background: var(--up-bg); color: var(--up); }
.theme-ic.down { background: var(--down-bg); color: var(--down); }
.theme-ic.pro { background: var(--teal-soft); color: var(--teal); }

.an-count { font-size: 13px; color: var(--text-3); }
.an-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.an-toolbar .filter-chips { min-width: 0; }
.an-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); font-weight: 600; flex-shrink: 0; }
.an-sort .select { width: auto; height: 32px; }
#an-feed .feed-item[hidden] { display: none; }
.an-empty { padding: 32px 0; text-align: center; color: var(--text-3); }

.debate .card-head .chip { font-size: 12px; }
.debate-q { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; margin: 10px 0 12px; }
.debate .side { padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; border-left: 3px solid; }
.debate .side a { display: block; font-weight: 600; font-size: 14px; line-height: 1.36; margin-top: 4px; }
.debate .side .meta { margin-top: 6px; }
.debate .bull { background: var(--up-bg); border-color: var(--up); }
.debate .bull .tag { color: var(--up); }
.debate .bear { background: var(--down-bg); border-color: var(--down); }
.debate .bear .tag { color: var(--down); }
.sent { margin-top: 12px; }
.sent-bar { height: 8px; border-radius: 99px; background: var(--down); overflow: hidden; }
.sent-bar span { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--surface); }
.sent-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 6px; font-weight: 600; }

.authors { list-style: none; }
.authors li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.authors li:last-child { border-bottom: 0; }
.authors .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-700); color: var(--teal-bright); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.authors b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.authors li div span { font-size: 12px; color: var(--text-3); }
.follow { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-2); }
.follow:hover { border-color: var(--teal); color: var(--teal); }
.follow[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

@media (max-width: 760px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 8px; border-bottom: 0; }
  .an-sort { justify-content: flex-end; }
}

/* ───────── Alphyx Ratings ───────── */
.rt-hero { margin-bottom: 8px; align-items: center; }
.rt-hero .chip-row { gap: 10px; }
.rt-hero .btn-ghost { border: 1px solid rgba(255,255,255,0.18); }
.rt-sample, .rt-found { display: flex; flex-direction: column; gap: 12px; }
.rt-sample { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 20px; }
.rt-sample-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rt-sample-top .sym { display: block; font-family: var(--mono); font-weight: 600; font-size: 16px; }
.rt-sample-top .nm { font-size: 12.5px; color: var(--text-3); }
.rt-sample .nm { color: #93a3b3; }
.rt-score { display: flex; align-items: baseline; gap: 6px; }
.rt-score b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.rt-score span { color: var(--text-3); font-size: 15px; }
.rt-sample .rt-score span { color: #93a3b3; }
.scale { position: relative; display: grid; grid-template-columns: 1fr 2fr 2fr 2fr 1fr; gap: 3px; height: 8px; }
.scale i { border-radius: 2px; }
.scale .b1 { background: var(--down); } .scale .b2 { background: var(--down-bg); }
.scale .b3 { background: var(--hold-bg); } .scale .b4 { background: var(--up-bg); } .scale .b5 { background: var(--up); }
.rt-sample .scale .b2 { background: color-mix(in srgb, var(--down) 45%, transparent); }
.rt-sample .scale .b3 { background: color-mix(in srgb, var(--hold) 45%, transparent); }
.rt-sample .scale .b4 { background: color-mix(in srgb, var(--up) 45%, transparent); }
.scale .marker { position: absolute; top: -5px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.rt-sample .scale .marker { background: var(--cream); box-shadow: 0 0 0 2px var(--navy-800); }
.scale-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #93a3b3; margin-top: -6px; }
.rt-sample .grade { color: #93a3b3; }
.rt-sample .grade b { background: rgba(255,255,255,0.07); color: var(--cream); }
.rt-sample .grade b.g-a { background: color-mix(in srgb, var(--up) 25%, transparent); color: #7fe0a8; }
.rt-sample .grade b.g-d { background: color-mix(in srgb, var(--down) 25%, transparent); color: #ff9c94; }

.rt-bands { padding: 6px 18px; }
.band { display: grid; grid-template-columns: 112px 110px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.band:last-child { border-bottom: 0; }
.band .rating { justify-self: start; }
.band b { font-family: var(--mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.band .share { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.band .share i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.band small { font-size: 12.5px; color: var(--text-3); text-align: right; }
.rt-note { font-size: 13.5px; color: var(--text-3); margin-top: 10px; }

.factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.factor { padding: 16px 18px; }
.factor .f-n { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.factor h3 { font-size: 16px; margin: 6px 0 4px; letter-spacing: -0.01em; }
.factor p { font-size: 13.5px; color: var(--text-2); }
.f-sum { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }

.rt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rt-table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.rt-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rt-table th:first-child, .rt-table td:first-child { padding-left: 18px; }
.rt-table tr:last-child td { border-bottom: 0; }
.rt-table td:first-child a { display: block; }
.rt-table td:first-child b { display: block; font-family: var(--mono); font-weight: 600; }
.rt-table td:first-child span { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.rt-table td:first-child a:hover b { color: var(--teal); }
.rt-table .sc { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); margin-left: 8px; }
.rt-table td.grade { width: 56px; }
.rt-table td.grade b { width: 34px; margin: 0; }
.rt-changes td { white-space: nowrap; }
.rt-changes .to { margin: 0 6px; font-weight: 700; }
.rt-changes .dt { color: var(--text-3); font-size: 12.5px; }

.lookup form { display: flex; gap: 8px; margin: 10px 0 4px; }
.lookup .select { flex: 1; min-width: 0; }
.lookup .btn { height: 36px; }
.rt-found { padding: 14px 0 6px; }
.rt-found .rt-score b { font-size: 32px; }
.rt-open { font-size: 13px; font-weight: 600; color: var(--teal); }
.rt-miss { font-size: 13.5px; color: var(--text-3); padding: 12px 0 6px; }
.rt-not p { font-size: 13.5px; color: var(--text-2); padding: 8px 0; }
.rt-not a { color: var(--teal); font-weight: 600; }

@media (max-width: 1080px) { .rt-hero { grid-template-columns: minmax(0, 1fr); } .rt-sample { max-width: 420px; } }
@media (max-width: 760px) {
  .factors { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: 104px minmax(0, 1fr) auto; }
  .band small { white-space: nowrap; }
  .band b { display: none; }
  .rt-table th, .rt-table td { padding: 9px 8px; }
  .rt-table td:first-child span { display: none; }
}

/* ───────── Earnings ───────── */
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.week button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left;
  padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.week button:hover { border-color: var(--teal); }
.week small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.week b { font-size: 15px; }
.week span { font-size: 12px; color: var(--text-3); }
.week button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.week button[aria-pressed="true"] b { color: var(--teal); }
.week button[data-day="all"] { justify-content: center; }

.ec-table .r { text-align: right; }
.ec-table td { white-space: nowrap; }
.when { font-size: 12.5px; font-weight: 600; }
.when.bmo { color: var(--hold); }
.when.amc { color: var(--teal); }
.ec-day { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-right: 8px; }
.mv { font-family: var(--mono); font-size: 12.5px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); }

.reported { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rep { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rep-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.rep-top b { display: block; font-family: var(--mono); font-weight: 600; font-size: 15px; }
.rep-top span:not(.pill-chg) { font-size: 12px; color: var(--text-3); }
.rep-top .pill-chg { min-width: 0; }
.rep-row { display: grid; grid-template-columns: 62px auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.rep-row > span:first-child { color: var(--text-3); }
.rep-row b { font-variant-numeric: tabular-nums; }
.rep-row .vs { font-size: 12px; color: var(--text-3); }
.beat, .miss { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.beat { background: var(--up-bg); color: var(--up); }
.miss { background: var(--down-bg); color: var(--down); }
.rep-g { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rep-link { font-size: 13px; font-weight: 600; color: var(--teal); margin-top: auto; }

.season { padding-top: 12px; }
.season .ss { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin-bottom: 12px; font-size: 13.5px; }
.season .ss span { color: var(--text-2); }
.season .ss b { font-variant-numeric: tabular-nums; }
.season .share { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.season .share i { display: block; height: 100%; background: var(--teal); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.stat-row span { display: block; font-size: 12px; color: var(--text-3); }
.stat-row b { font-size: 20px; letter-spacing: -0.02em; }

@media (max-width: 1080px) { .reported { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .week { display: flex; overflow-x: auto; scrollbar-width: none; }
  .week::-webkit-scrollbar { display: none; }
  .week button { flex: 0 0 104px; }
}

/* ───────── Portfolio ───────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-head-actions .btn { height: 38px; }
.pf-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi > span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.kpi b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi small { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi small .rating { font-size: 10px; padding: 2px 6px; }

.pf-add { padding: 16px 18px; margin-top: 16px; }
.pf-add-fields { display: grid; grid-template-columns: 1.1fr 0.8fr 1fr auto; gap: 12px; align-items: end; }
.pf-add label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.pf-add .select { text-transform: none; letter-spacing: 0; font-weight: 400; }
.pf-add-btns { display: flex; gap: 8px; }
.pf-add-btns .btn { height: 36px; }
.pf-msg { font-size: 13px; color: var(--text-2); margin-top: 8px; min-height: 1em; }
.pf-msg:empty { display: none; }

.pf-view button { padding: 6px 12px; font-size: 13px; }
.pf-table .r { text-align: right; }
.pf-table td { white-space: nowrap; }
.pf-table .sub { display: block; font-size: 11.5px; color: var(--text-3); }
.pf-table td.up .sub, .pf-table td.down .sub { color: inherit; opacity: 0.8; }
.pf-table .v { font-weight: 600; }
.pf-table .rm { width: 36px; padding-right: 12px; }
.pf-table .rm button { width: 26px; height: 26px; border-radius: 6px; color: var(--text-3); font-size: 17px; line-height: 1; }
.pf-table .rm button:hover { background: var(--down-bg); color: var(--down); }

.alloc { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.alloc svg { width: 112px; height: 112px; }
.alloc .d-n { font-size: 22px; font-weight: 700; fill: var(--text); font-family: var(--sans); }
.alloc .d-l { font-size: 10px; fill: var(--text-3); font-family: var(--sans); }
.alloc ul { list-style: none; display: grid; gap: 6px; }
.alloc li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.alloc li i { width: 10px; height: 10px; border-radius: 3px; }
.alloc li span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alloc li b { font-variant-numeric: tabular-nums; font-weight: 600; }

.checks { list-style: none; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.checks li:last-child { border-bottom: 0; }
.checks .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.checks .ok .ic { background: var(--up-bg); color: var(--up); }
.checks .warn .ic { background: var(--hold-bg); color: var(--hold); }
.checks a { color: var(--teal); font-weight: 600; white-space: nowrap; }

@media (max-width: 1080px) { .pf-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pf-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-summary .kpi:first-child { grid-column: 1 / -1; }
  .pf-add-fields { grid-template-columns: 1fr 1fr; }
  .pf-add-fields label:first-child, .pf-add-btns { grid-column: 1 / -1; }
  .pf-add-btns .btn { flex: 1; }
  .pf-head-actions { width: 100%; }
  .pf-head-actions .btn { flex: 1; }
}

/* ───────── Dividends ───────── */
.exdates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.exd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
.exd:hover { border-color: var(--teal); }
.exd-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 48px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); }
.exd-date small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.exd-date b { font-size: 13px; white-space: nowrap; }
.exd-sym b { display: block; font-family: var(--mono); font-weight: 600; }
.exd-sym span { font-size: 12px; color: var(--text-3); }
.exd-y { font-weight: 700; font-variant-numeric: tabular-nums; }

.dv-table .r { text-align: right; }
.dv-table td { white-space: nowrap; }
.dv-table .yv { font-weight: 700; }
.po.hold { color: var(--hold); font-weight: 600; }
.po.down { color: var(--down); font-weight: 600; }
.aristo { font-size: 10px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 1px 5px; border-radius: 4px; margin-left: 4px; }
.dv-table td.grade { width: 64px; }
.dv-table td.grade b { width: 34px; margin: 0; }

.calc { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.calc-in { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.calc-in label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.calc-in .chk { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.calc-in .chk input { width: 16px; height: 16px; accent-color: var(--teal); }
.calc-in input[type="range"] { accent-color: var(--teal); padding: 0; height: 24px; border: 0; background: none; }
.calc-in output { font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 600; }
.in-pre { position: relative; display: flex; align-items: center; }
.in-pre i { position: absolute; font-style: normal; color: var(--text-3); font-size: 14px; pointer-events: none; }
.in-pre i:first-child { left: 10px; }
.in-pre i:last-child { right: 10px; }
.in-pre i:first-child + input { padding-left: 22px; }
.in-pre .select { font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; }
.calc-out { padding: 18px; min-width: 0; }
.calc-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.calc-kpis > div { display: flex; flex-direction: column; gap: 2px; }
.calc-kpis span { font-size: 12px; color: var(--text-3); }
.calc-kpis span b { font-size: inherit; color: inherit; font-weight: 600; letter-spacing: 0; }
.calc-kpis > div > b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-kpis > div:first-child > b { color: var(--teal); font-size: 26px; }
.calc-kpis small { font-size: 12px; color: var(--text-3); }
.calc-chart { width: 100%; height: 180px; display: block; }
.calc-chart text { font-family: var(--sans); font-size: 11px; fill: var(--text-3); }

.safe-key { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0 4px; }
.safe-key span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.sg { display: inline-block; width: 28px; text-align: center; font-family: var(--mono); font-size: 13px; border-radius: 4px; padding: 2px 0; background: var(--surface-2); color: var(--text); }
.sg.g-a { background: var(--up-bg); color: var(--up); }
.sg.g-c { background: var(--hold-bg); color: var(--hold); }
.sg.g-d { background: var(--down-bg); color: var(--down); }

@media (max-width: 1080px) { .exdates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .exdates { grid-template-columns: minmax(0, 1fr); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc-kpis { grid-template-columns: 1fr 1fr; }
  .calc-kpis > div:first-child { grid-column: 1 / -1; }
}

/* ───────── Markets ───────── */
.idx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.idx { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 10px; text-align: left; padding: 14px 16px; }
.idx:hover { border-color: var(--teal); }
.idx[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.idx-n { font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.idx b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.idx > span:not(.idx-n) { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.idx .spark { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 72px; height: 32px; }
.chart-name { font-size: 15px; margin-right: 6px; }

.heat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; min-height: 84px; border: 1px solid var(--line); color: var(--text); }
.tile:hover { border-color: var(--teal); }
.tile span { font-size: 13px; font-weight: 600; line-height: 1.25; }
.tile b { font-size: 18px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: auto; }
.tile small { font-family: var(--mono); font-size: 11px; color: var(--text-2); }

.movers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.movers-grid .q-table td:first-child a { display: block; }
.movers-grid .q-table td:first-child span { display: block; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.breadth { padding-top: 12px; }
.br { margin-bottom: 14px; }
.br-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.br-bar { height: 8px; border-radius: 99px; background: var(--down); overflow: hidden; }
.br-bar i { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--surface); }
.breadth .stat-row { padding: 12px 0; }
.breadth .stat-row:last-child { padding-bottom: 4px; }
.breadth .stat-row b { font-size: 18px; }
.breadth .stat-row small { font-size: 12px; font-weight: 600; }

.world .num { color: var(--text-3); font-size: 12.5px; }
.world span { display: flex; align-items: center; gap: 6px; }
.st { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); opacity: 0.6; }
.st.open { background: var(--up); opacity: 1; }

@media (max-width: 1080px) { .idx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .heat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .heat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movers-grid { grid-template-columns: minmax(0, 1fr); }
  .idx { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .idx .spark { display: none; }
  .idx b { font-size: 17px; }
}

/* ───────── ETFs ───────── */
.etf-table .r { text-align: right; }
.etf-table td { white-space: nowrap; }
.etf-table tr.on td { background: var(--teal-soft); }
.cmp-col { width: 36px; padding-right: 0 !important; }
.cmp-col input { width: 16px; height: 16px; accent-color: var(--teal); vertical-align: middle; }
.cmp-col input:disabled { opacity: 0.35; }
.th-sort { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; gap: 4px; align-items: center; }
.th-sort:hover { color: var(--text); }
.th-sort[data-dir="asc"]::after { content: "↑"; color: var(--teal); }
.th-sort[data-dir="desc"]::after { content: "↓"; color: var(--teal); }
.er { font-variant-numeric: tabular-nums; }
.er.lo { color: var(--up); font-weight: 600; }
.er.hi { color: var(--down); font-weight: 600; }
.conc { display: inline-block; width: 44px; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-right: 8px; vertical-align: middle; }
.conc i { display: block; height: 100%; background: var(--teal); }

.compare-box { margin-top: 20px; }
.compare-box .card-head .follow { padding: 4px 10px; }
.cmp-etf th, .cmp-etf td { vertical-align: top; }
.cmp-etf thead th { background: var(--surface-2); }
.cmp-etf thead th b { font-family: var(--mono); font-size: 14px; color: var(--text); text-transform: none; letter-spacing: 0; }
.cmp-etf .x { margin-left: 8px; color: var(--text-3); font-size: 15px; line-height: 1; }
.cmp-etf .x:hover { color: var(--down); }
.cmp-etf tbody th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-transform: none; letter-spacing: 0; background: none; padding-left: 18px; white-space: nowrap; width: 170px; }
.cmp-etf td.best { color: var(--up); font-weight: 700; }
.cmp-etf .hold { display: block; font-family: var(--mono); font-size: 12px; }
.cmp-etf .hold i { font-style: normal; color: var(--text-3); }
.muted { color: var(--text-3); font-size: 12.5px; }
.overlap { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.overlap h4 { font-size: 13.5px; margin-bottom: 8px; }
.ov { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 5px 0; font-size: 13px; }
.ov > span:first-child { font-family: var(--mono); font-weight: 600; }
.ov-bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.ov-bar i { display: block; height: 100%; background: var(--teal); }
.ov b { text-align: right; font-variant-numeric: tabular-nums; }
.flows .num span { font-weight: 600; }
.trend-list li div { font-size: 14px; }

@media (max-width: 760px) {
  .ov { grid-template-columns: 96px minmax(0, 1fr) 48px; }
  .cmp-etf tbody th { width: auto; }
}
.etf-table td:nth-child(2) a { display: block; }
.etf-table td:nth-child(2) b { display: block; font-family: var(--mono); font-weight: 600; }
.etf-table td:nth-child(2) span { font-size: 12px; color: var(--text-3); }
.etf-table td:nth-child(2) a:hover b { color: var(--teal); }
@media (max-width: 760px) { .etf-table td:nth-child(2) span { display: none; } }

/* ───────── Stock page tabs ───────── */
.sym-panel { display: flex; flex-direction: column; gap: 20px; }
.sym-panel[hidden] { display: none; }
.sym-panel .card > .table-scroll .data-table th:first-child,
.sym-panel .card > .table-scroll .data-table td:first-child { padding-left: 18px; }
.sym-panel .card > .table-scroll .data-table th:last-child,
.sym-panel .card > .table-scroll .data-table td:last-child { padding-right: 18px; }
.sym-panel .card-head .range { padding: 2px; }
.sym-panel .card-head .range button { padding: 4px 10px; font-size: 12px; }

.mini-chart { width: 100%; height: 200px; display: block; margin-top: 8px; }
.mini-chart.tall { height: 240px; }
.mini-chart text { font-family: var(--sans); font-size: 11px; fill: var(--text-3); }
.mini-chart text.val { font-size: 11px; font-weight: 600; fill: var(--text-2); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.ring { border-radius: 50%; border: 2px solid var(--text-3); background: none; }
.legend i.dash { width: 14px; height: 0; border-top: 2px dashed var(--text-3); border-radius: 0; }

.rh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
.rh-top > div { display: flex; align-items: center; gap: 10px; }
.score-lg { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rh-top small { font-size: 12.5px; color: var(--text-3); }

.fg-table td.grade { text-align: center; }
.fg-table td.grade b { display: inline-block; width: 34px; text-align: center; font-family: var(--mono); font-size: 13px; border-radius: 4px; padding: 2px 0; background: var(--surface-2); }
.fg-table td.grade b.g-a { background: var(--up-bg); color: var(--up); }
.fg-table td.grade b.g-c { background: var(--hold-bg); color: var(--hold); }
.fg-table td.grade b.g-d { background: var(--down-bg); color: var(--down); }
.fg-table th:not(:first-child) { text-align: center; }
.fg-table td:last-child { text-align: left; white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
.pctl { display: inline-block; width: 60px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-right: 8px; vertical-align: middle; }
.pctl i { display: block; height: 100%; background: var(--teal); }

.dist { display: grid; gap: 8px; padding: 10px 0 4px; }
.dist > div { display: grid; grid-template-columns: 78px minmax(0, 1fr) 24px; gap: 10px; align-items: center; font-size: 13px; }
.dist span:first-child { color: var(--text-2); }
.dist b { text-align: right; font-variant-numeric: tabular-nums; }
.dist-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 99px; }

.pt { padding: 10px 0 4px; }
.pt-avg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.pt-avg span { font-size: 12.5px; color: var(--text-3); }
.pt-avg b { font-size: 24px; letter-spacing: -0.02em; }
.pt-avg small { font-size: 12.5px; font-weight: 600; }
.pt-range { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--down-bg), var(--hold-bg), var(--up-bg)); }
.pt-mean { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--teal); }
.pt-cur { position: absolute; top: -6px; width: 2px; height: 20px; margin-left: -1px; background: var(--text); }
.pt-cur em { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pt-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 8px; }

.next-er { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 18px; align-items: center; }
.next-er h3 { font-size: 19px; letter-spacing: -0.02em; margin: 4px 0; }
.next-er .muted { font-size: 13.5px; }
.er-kpis { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 22px; }
.er-kpis dt { font-size: 12px; color: var(--text-3); }
.er-kpis dd { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-kpis dd span { font-size: 14px; }

.fin-table tr.strong td { font-weight: 700; }
.fin-table td small { display: block; font-size: 11px; font-weight: 600; }
.fin-table thead th:first-child { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }

.val-call { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.val-call p { font-size: 14.5px; color: var(--text-2); }
.val-call p b { color: var(--text); }
.val-call .rating { flex-shrink: 0; margin-top: 2px; }
.val-table td.grade { text-align: center; }
.val-table td.grade b { display: inline-block; width: 34px; text-align: center; font-family: var(--mono); font-size: 13px; border-radius: 4px; padding: 2px 0; background: var(--surface-2); }
.val-table td.grade b.g-c { background: var(--hold-bg); color: var(--hold); }
.val-table td.grade b.g-d { background: var(--down-bg); color: var(--down); }

.an-sum { display: grid; grid-template-columns: repeat(3, 88px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; }
.an-sum > div { display: flex; flex-direction: column; }
.an-sum > div b { font-size: 24px; letter-spacing: -0.02em; }
.an-sum > div:nth-child(1) b { color: var(--up); }
.an-sum > div:nth-child(2) b { color: var(--hold); }
.an-sum > div:nth-child(3) b { color: var(--down); }
.an-sum > div span { font-size: 12px; color: var(--text-3); }
.an-sum p { font-size: 13.5px; color: var(--text-2); }
#sym-an .feed-item[hidden] { display: none; }

@media (max-width: 1080px) {
  .next-er { grid-template-columns: minmax(0, 1fr); }
  .er-kpis { grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 28px; }
}
@media (max-width: 760px) {
  .an-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-sum p { grid-column: 1 / -1; }
  .val-call { flex-direction: column; }
  .mini-chart text.val { font-size: 9.5px; }
}
.sym-panel .data-table td, .sym-panel .data-table th { white-space: nowrap; }
.no-div { font-size: 13.5px; color: var(--text-2); padding: 10px 0 6px; }
.empty-tab { padding: 28px 22px; }
.empty-tab h3 { font-size: 18px; margin-bottom: 6px; }
.empty-tab p { color: var(--text-2); font-size: 14.5px; }
.empty-tab a { color: var(--teal); font-weight: 600; }
.sym-missing { padding: 32px 28px; margin-top: 8px; }
.sym-missing h1 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 6px; }
.sym-missing p { color: var(--text-2); margin-bottom: 14px; }

/* hidden always wins over component display rules */
[hidden] { display: none !important; }

/* Live data tag */
.demo-tag.live-tag { color: var(--up) !important; border-color: color-mix(in srgb, var(--up) 45%, transparent) !important; }
