/* Trascenter — one centered column, same frame on every page.
   Pure black. One accent (yellow). Red only for risk and losses.
   Structure from research publications; data rows in the style of a stock app. */
:root {
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --line: #222222;
  --line-soft: #171717;
  --fg: #f2f2f0;
  --fg-dim: #a3a39c;
  --fg-mute: #6d6d67;
  --accent: #ffd60a;
  --accent-ink: #141100;
  --accent-soft: rgba(255, 214, 10, 0.1);
  --risk: #ff3833;
  --risk-soft: rgba(255, 56, 51, 0.1);
  --warn: #f2a93b;
  --warn-soft: rgba(242, 169, 59, 0.1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --col: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 500 15px/1.55 var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-mute); }
.chg-up { color: var(--accent); }
.chg-down { color: var(--risk); }

/* The single column every page lives in */
.col {
  width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; display: block; }
.brand-name { font-weight: 700; font-size: 15px; }
.topsearch { position: relative; flex: 1; max-width: 300px; margin: 0 auto; }
.search-ico { position: absolute; left: 12px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); color: var(--fg-mute); pointer-events: none; }
.topsearch input {
  width: 100%; background: var(--surface); border: 1px solid var(--line-soft); color: var(--fg);
  border-radius: 999px; padding: 7px 14px 7px 32px; font: 14px var(--font);
}
.topsearch input::placeholder, .bigsearch input::placeholder { color: var(--fg-mute); }
.topsearch input:focus, .bigsearch input:focus { outline: none; border-color: var(--accent); }
.tabs { display: flex; gap: 22px; }
.tabs a {
  text-decoration: none; color: var(--fg-mute); font-weight: 600; font-size: 13px;
  padding: 8px 0 10px; border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }

.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); min-width: 260px;
}
.suggest li { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: #222; }
.suggest .tk { font-family: var(--mono); font-weight: 500; color: var(--accent); min-width: 52px; }
.suggest .nm { color: var(--fg-dim); font-size: 14px; }
.suggest .tag { margin-left: auto; font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font: 600 14px var(--font);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.btn-ghost:hover { border-color: #3a3a3a; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--fg); display: grid; place-items: center; cursor: pointer; font-size: 15px;
}
.icon-btn:hover { border-color: #333; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Page frame ---------- */
#view { flex: 1; outline: none; }
.page { padding-top: 36px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.page-head { display: grid; gap: 10px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-mute); font-weight: 600; }
.page-title { font-weight: 600; font-size: clamp(30px, 5vw, 38px); line-height: 1.1; letter-spacing: -0.025em; }
.page-title .tone { display: block; color: #6b6b6b; }

/* ---------- Stock rows (sparkline + change pill) ---------- */
.srows { border-top: 1px solid var(--line-soft); }
.srow {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 112px; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none;
}
.srow .tk { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.srow .nm { display: block; font-size: 13px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow svg { width: 96px; height: 40px; display: block; }
.srow .val { display: grid; justify-items: end; gap: 5px; }
.srow .price { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.chg-pill {
  min-width: 78px; text-align: right; padding: 4px 8px; border-radius: 6px;
  font: 600 13px var(--mono); font-variant-numeric: tabular-nums;
}
.chg-pill.up { background: var(--accent); color: var(--accent-ink); }
.chg-pill.down { background: var(--risk); color: #fff; }
.chg-pill.flat { background: var(--surface-2); color: var(--fg-mute); }
.srow.locked .lk { filter: blur(5px); user-select: none; }

/* ---------- News sheet (glass, slides up from the bottom) ---------- */
.has-sheet { padding-bottom: 150px; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 30;
  width: min(calc(var(--col) + 32px), 100%); transform: translateX(-50%);
  padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
}
.sheet-inner {
  background: rgba(30, 30, 30, 0.72);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
  max-height: 120px; overflow: hidden; transition: max-height 0.35s ease;
}
.sheet.open .sheet-inner { max-height: 72vh; overflow-y: auto; }
.sheet-handle { display: block; width: 100%; background: none; border: 0; padding: 10px 0 4px; cursor: pointer; }
.sheet-handle span { display: block; width: 38px; height: 5px; border-radius: 3px; background: #555; margin: 0 auto; }
.sheet-head { padding: 4px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; }
.sheet-head h2 { font-size: 24px; font-weight: 600; }
.sheet-head p { color: #8a8a8a; font-size: 15px; }
.news { padding: 6px 20px 20px; }
.news-item { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: grid; gap: 6px; }
.news-item:last-child { border-bottom: 0; }
.news-src { font-size: 12px; color: #8a8a8a; }
.news-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.news-sum { font-size: 14px; color: #8a8a8a; }
.news-time { font-size: 12px; color: #6b6b6b; }
.news-note { font-size: 12px; color: #6b6b6b; padding: 0 20px 18px; }

/* Tablet-width desktop windows: news is a normal section inside the column. */
@media (min-width: 900px) {
  .has-sheet { padding-bottom: 64px; }
  .sheet { position: static; transform: none; width: auto; padding: 0; }
  .sheet-inner { max-height: none; border-radius: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: var(--surface); box-shadow: none; }
  .sheet-handle { display: none; }
  .sheet-head { cursor: default; padding-top: 18px; }
  .sheet-head h2 { font-size: 20px; }
}

/* PC: wide layout like a trading terminal. The main column grows and news becomes a right column. */
@media (min-width: 1200px) {
  :root { --col: 1360px; }
  .page.has-sheet { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; grid-auto-flow: dense; }
  .page.has-sheet > * { grid-column: 1; }
  .page.has-sheet > .sheet { grid-column: 2; grid-row: 1 / span 7; position: sticky; top: 112px; align-self: start; }
  .page.has-sheet > .sheet .sheet-inner { max-height: calc(100vh - 136px); overflow-y: auto; scrollbar-width: thin; }
  .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .learn { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.page-sub { color: var(--fg-dim); font-size: 16px; max-width: 58ch; }
.section-title { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section { display: grid; gap: 14px; }
.pill { font-size: 11px; font-weight: 600; color: var(--fg-dim); border: 1px solid var(--line); background: var(--surface); padding: 3px 9px; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center; }

/* ---------- Research: carousel ---------- */
.carousel { display: grid; gap: 14px; }
.deck { position: relative; }
.deck::after { /* stacked-card hint like a pile of readings */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -8px; height: 20px; z-index: -1;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); opacity: 0.6;
}
.card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  min-height: 236px; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px;
}
.card-body { display: grid; align-content: start; gap: 10px; min-width: 0; }
.card-foot { margin-top: auto; align-self: end; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.card-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.card-desc { color: var(--fg-dim); font-size: 14px; max-width: 46ch; }
.card-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.card-art { border-radius: 10px; overflow: hidden; background: #0d0d0d; border: 1px solid var(--line-soft); position: relative; min-height: 180px; }
.card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card.quote { grid-template-columns: minmax(0, 1fr); background:
  radial-gradient(120% 140% at 100% 0%, rgba(255, 214, 10, 0.12), transparent 55%), var(--surface); }
.quote-text { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.28; font-weight: 600; letter-spacing: -0.02em; max-width: 30ch; }
.quote-text::before { content: "“"; color: var(--accent); margin-right: 2px; }
.quote-text::after { content: "”"; color: var(--accent); }
.quote-by { color: var(--fg-dim); font-size: 14px; }
.quote-by strong { color: var(--fg); font-weight: 600; }
.quote-src { color: var(--fg-mute); font-size: 12px; }
.carousel-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; }
.progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width 0.25s ease; }
.counter { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); min-width: 40px; text-align: right; }

/* ---------- Research: desk notes (locked) ---------- */
.notes { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.note { margin: 10px; background: var(--surface); border-radius: 10px; padding: 16px; display: grid; gap: 12px; }
.note .blur { color: var(--fg-dim); filter: blur(5px); user-select: none; }
.note-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.note-meta .num { font-size: 11px; color: var(--fg-mute); }
.notes-foot { text-align: center; padding: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; }
.notes-foot a { text-decoration: none; }

/* ---------- Research: radar teaser ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; text-decoration: none; }
.teaser:hover { border-color: #2e2e2e; }
.teaser .tk { font-family: var(--mono); color: var(--accent); margin-right: 8px; }
.teaser .badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.mini { display: inline-block; font-size: 12px; line-height: 1.4; padding: 4px 9px; border-radius: 6px; font-weight: 600; }
.mini.yes { background: var(--accent-soft); color: var(--accent); }
.mini.mixed { background: var(--warn-soft); color: var(--warn); }
.mini.no, .mini.alert { background: var(--risk-soft); color: var(--risk); }
.teaser svg { width: 200px; height: 86px; display: block; }

/* ---------- Radar ---------- */
.radar-head { text-align: center; justify-items: center; }
.radar-head .page-sub { margin: 0 auto; }
.bigsearch { position: relative; width: 100%; max-width: 520px; margin: 6px auto 0; }
.bigsearch input {
  width: 100%; background: var(--surface); border: 1px solid rgba(255, 214, 10, 0.28); color: var(--fg);
  border-radius: 999px; padding: 14px 20px; font: 16px var(--font);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--fg-dim); padding: 6px 12px; border-radius: 999px; font: 600 12px var(--mono); text-decoration: none; }
.chip:hover { color: var(--fg); border-color: #3a3a3a; }
.table { border-top: 1px solid var(--line-soft); }
.trow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.trow .idx { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.trow .tk { font-weight: 700; font-size: 14px; }
.trow .nm { font-size: 12px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow.locked .lk { filter: blur(4px); user-select: none; }
.thead { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); font-weight: 600; }
.empty { color: var(--fg-mute); font-size: 14px; padding: 6px 0; }

/* ---------- Report ---------- */
.demo-banner { background: var(--accent-soft); border: 1px solid rgba(255, 214, 10, 0.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.demo-banner strong { color: var(--accent); }
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.report-head .meta { font-size: 12px; color: var(--fg-mute); font-family: var(--mono); }
.price-big { font-family: var(--mono); font-size: 28px; text-align: right; }
.price-chg { font-family: var(--mono); font-size: 13px; text-align: right; }
.head-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.toc { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: -24px; padding-bottom: 4px; }
.toc a { white-space: nowrap; font-size: 12px; color: var(--fg-mute); text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-soft); }
.toc a:hover { color: var(--fg); border-color: #333; }
.block { display: grid; gap: 16px; scroll-margin-top: 110px; }
.block-head { display: flex; align-items: baseline; gap: 10px; }
.block-head .idx { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); }
.block-head h2 { font-size: 20px; }
.block-head .sig { margin-left: auto; font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.prose { color: var(--fg-dim); font-size: 16px; }

.chart-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 14px 6px; }
.chart-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.chart-tabs button { background: none; border: 0; color: var(--fg-mute); font: 500 12px var(--mono); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.chart-tabs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.chart-svg { width: 100%; height: 210px; display: block; }

.takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.takeaways li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; color: var(--fg-dim); }
.takeaways li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; background: var(--accent); }
.takeaways li.risk::before { background: var(--risk); }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--bg); padding: 16px; display: grid; gap: 4px; align-content: start; }
.metric .label { font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.metric .value { font-family: var(--mono); font-size: 22px; }
.metric .means { font-size: 13px; color: var(--fg-dim); }

.questions { display: grid; gap: 10px; }
.q { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.badge.yes { background: var(--accent-soft); color: var(--accent); }
.badge.mixed { background: var(--warn-soft); color: var(--warn); }
.badge.no { background: var(--risk-soft); color: var(--risk); }
.q h3 { font-size: 16px; margin: 2px 0 4px; }
.verdict { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.verdict.yes { color: var(--accent); }
.verdict.mixed { color: var(--warn); }
.verdict.no { color: var(--risk); }
.q p { color: var(--fg-dim); font-size: 14px; }
.note-line { font-size: 13px; color: var(--fg-mute); }

.trap { border: 1px solid rgba(255, 56, 51, 0.35); background: linear-gradient(180deg, var(--risk-soft), transparent 70%); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.trap-title { color: var(--risk); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.trap h3 { font-size: 20px; }
.trap p { color: var(--fg-dim); }
.trap .check { color: var(--fg); font-size: 14px; }

.scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scn { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; }
.scn .name { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.scn.bear .name { color: var(--risk); }
.scn.bull .name { color: var(--accent); }
.scn .if { font-size: 14px; }
.scn .then { font-size: 14px; color: var(--fg-dim); }
.scn .watch { font-size: 12px; color: var(--fg-mute); border-top: 1px solid var(--line-soft); padding-top: 8px; }

.risks { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.risks li { counter-increment: r; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; color: var(--fg-dim); }
.risks li::before { content: counter(r); font-family: var(--mono); color: var(--risk); }
.risks strong { color: var(--fg); }

.learn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.learn-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; text-decoration: none; }
.learn-card:hover { border-color: #2e2e2e; }
.learn-card .term { font-weight: 600; }
.learn-card p { font-size: 13px; color: var(--fg-dim); }

.ask-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.ask-box form { display: flex; gap: 8px; }
.ask-box input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 10px 16px; font: inherit; }
.ask-box input:focus { outline: none; border-color: var(--accent); }
.ask-answer { font-size: 14px; color: var(--fg-dim); border-left: 2px solid var(--accent); padding-left: 12px; }

/* ---------- Feeds (13F moves, Form 4 insiders) ---------- */
.feed { border-top: 1px solid var(--line-soft); }
.feed-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--fg-dim); }
.avatar.tkav { border-radius: 10px; font: 600 10px var(--mono); color: var(--accent); }
.feed-title { display: block; font-weight: 600; font-size: 15px; }
.feed-sub { display: block; font-size: 13px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-right { display: grid; justify-items: end; gap: 5px; }
.feed-meta { font-size: 12px; color: var(--fg-mute); }
.blurline { filter: blur(5px); user-select: none; color: var(--fg-dim); font-size: 13px; }

/* ---------- Investors page ---------- */
.inv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inv-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; }
.inv-card:hover { border-color: #2a2a2a; }
.inv-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.inv-name { font-size: 16px; font-weight: 600; }
.inv-style { font-size: 13px; color: var(--fg-dim); }
.inv-holds { display: grid; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.inv-holds div { display: flex; justify-content: space-between; }
.inv-foot { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 640px) { .inv-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Market clocks and session bars (quiet, near the bottom) ---------- */
.clocks-wrap { gap: 12px; }
.clocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.clock-cell { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; }
.clock { width: 52px; height: 52px; grid-row: 1 / 4; }
.clock-city { font-weight: 600; font-size: 13px; }
.clock-time { font-size: 11px; color: var(--fg-mute); }
.clock-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fg-mute); white-space: nowrap; }
.clock-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #3a3a3a; }
.clock-status.is-open { color: var(--fg); }
.clock-status.is-open .dot { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, 0.6); }
.sessions { --ses-label: 70px; position: relative; display: grid; gap: 6px; margin-top: 4px; }
.ses-axis { position: relative; height: 16px; margin-left: var(--ses-label); border-bottom: 1px solid var(--line-soft); }
.ses-axis span { position: absolute; top: 0; transform: translateX(-50%); font: 10px var(--mono); color: var(--fg-mute); }
.ses-axis span:first-child { transform: none; }
.ses-row { display: grid; grid-template-columns: var(--ses-label) minmax(0, 1fr); align-items: center; }
.ses-name { font-size: 11px; color: var(--fg-mute); }
.ses-track { position: relative; height: 5px; background: var(--surface); border-radius: 3px; }
.ses-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #333; }
.ses-bar.on { background: var(--accent); box-shadow: 0 0 10px rgba(255, 214, 10, 0.35); }
.ses-bar.off { background: #1d1d1d; }
.ses-now { position: absolute; top: 16px; bottom: 0; width: 1px; background: var(--accent); opacity: 0.8; }
.ses-now::before { content: ""; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) { .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } }

/* ---------- TradingView widget slots ---------- */
/* Widgets sit directly on the page, no card frame, so they read as part of Trascenter.
   The page is color-scheme: dark; TradingView's frame is not, and browsers paint an opaque
   backdrop behind a frame whose scheme differs, so the widget box opts back into light. */
.tv-slot { position: relative; }
.tv-box { position: relative; color-scheme: light; }
.tv-box .tradingview-widget-container__widget { height: 100%; width: 100%; }
.tv-box iframe { background: transparent !important; }
.tv-box .tradingview-widget-copyright { display: none; }
.tv-slot:has(iframe) .tv-fallback { display: none; }
.tv-slot:not(:has(iframe)) .tv-box { height: 0; overflow: hidden; }
.tv-chart .tv-box { height: 600px; }
.tv-chart iframe { height: 600px !important; width: 100% !important; }
.tv-fin iframe { height: 880px !important; }
.tv-fin .tv-box { height: 880px; }
.tv-news .tv-box { height: 640px; }
.tv-chart { margin-inline: -8px; }
.tv-slot:not(:has(iframe)) { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; }
.tv-news:not(:has(iframe)) { background: none; border: 0; padding: 0; }
.tv-note { font-size: 13px; color: var(--fg-mute); }
@media (min-width: 1200px) { .tv-news .tv-box { height: calc(100vh - 260px); } }

/* ---------- 4Q Portfolio chart ---------- */
.pf { gap: 12px; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pf-sub { font-size: 13px; color: var(--fg-mute); margin-top: 4px; }
.pf-legend { display: flex; gap: 18px; font-size: 13px; color: var(--fg-dim); }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.pf-y i { background: var(--accent); }
.pf-g i { background: #6b6b6b; }
.pf-y b { color: var(--accent); font-weight: 500; }
.pf-g b { color: var(--fg-dim); font-weight: 500; }
.pf-chart-wrap { position: relative; }
.pf-chart { width: 100%; height: 300px; display: block; }
.pf-watermark { position: absolute; left: 8px; bottom: 30px; font-size: 11px; color: #4a4a4a; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.pf-tabs { display: flex; gap: 4px; }
.pf-tabs button { background: none; border: 0; color: var(--fg-mute); font: 500 12px var(--mono); padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.pf-tabs button:hover { color: var(--fg); }
.pf-tabs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }

/* ---------- 4 Questions (scored) ---------- */
.q4 { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.q4-head { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.q4-n { color: var(--fg-mute); font-size: 13px; }
.q4-head h3 { font-size: 17px; }
.q4-score { display: inline-flex; align-items: baseline; gap: 2px; }
.q4-score b { font-size: 26px; font-weight: 500; }
.q4-score span { font-size: 13px; color: var(--fg-mute); }
.q4-score.yes b { color: var(--accent); }
.q4-score.mixed b { color: var(--warn); }
.q4-score.no b { color: var(--risk); }
.q4-meter { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.q4-meter span { display: block; height: 100%; }
.q4-meter .yes { background: var(--accent); }
.q4-meter .mixed { background: var(--warn); }
.q4-meter .no { background: var(--risk); }
.q4-text { color: var(--fg-dim); font-size: 15px; }
.q4-ev { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.q4-ev li { font-size: 12px; color: var(--fg-dim); background: var(--bg); border: 1px solid var(--line-soft); padding: 4px 9px; border-radius: 999px; }
.q4-con { font-size: 14px; color: var(--fg); border-top: 1px solid var(--line-soft); padding-top: 10px; }
.q4-con span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-right: 10px; }
.q4-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; margin-bottom: 4px; font-size: 12px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.q4-total b { font-size: 30px; color: var(--accent); letter-spacing: 0; margin-left: 6px; }
@media (max-width: 640px) { .q4-total { justify-content: flex-start; } .pf-chart { height: 220px; } }

/* ---------- 4Q list (compact rows) ---------- */
.q4list { border-top: 1px solid var(--line-soft); }
.q4row { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.q4row .q4-score b { font-size: 24px; }
.q4-what { color: var(--fg-mute); font-size: 13px; padding-left: 38px; }
.q4row .q4-con { border-top: 0; padding: 0 0 0 38px; color: var(--fg-dim); }
.q4row .q4-con em { font-style: normal; }
.trap-row .q4-n, .trap-row h3 { color: var(--risk); }

/* ---------- Business / Timing, tiers, heat ---------- */
.bt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.bt-cell { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.bt-cell span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.bt-cell b { font-size: 28px; font-weight: 500; }
.bt-cell b small { font-size: 13px; color: var(--fg-mute); margin-left: 2px; }
.bt-cell em { font-style: normal; font-size: 12px; color: var(--fg-mute); }
.bt-cell.pass b { color: var(--accent); }
.bt-cell.fail b { color: var(--warn); }
.bt-status { grid-column: 1 / -1; font-size: 17px; font-weight: 600; padding: 4px 2px 0; }
.tier { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; font: 700 12px var(--font); letter-spacing: 0.02em; background: var(--surface-2); color: var(--fg-mute); border: 1px solid var(--line); text-transform: none; }
.tier-S { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tier-A { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 214, 10, 0.35); }
.tier-B { background: var(--warn-soft); color: var(--warn); border-color: rgba(242, 169, 59, 0.3); }
.q4-total .tier { margin-right: 10px; }
.board-sc { display: inline-flex; align-items: center; gap: 10px; }
.q4-heat { font-size: 13px; color: var(--fg-mute); }
.q4-heat span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 10px; }
.q4-heat b { color: var(--fg); font-weight: 500; }

/* ---------- Grade badge (the hook) ---------- */
.rh-left { display: flex; gap: 20px; align-items: center; min-width: 0; }
.rh-left > div:last-child { min-width: 0; }
.grade { flex-shrink: 0; width: 104px; height: 104px; border-radius: 22px; display: grid; place-content: center; justify-items: center; gap: 0; border: 1px solid; }
.grade b { font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.grade span { font-size: 15px; margin-top: 4px; }
.grade-hi { color: var(--accent); background: rgba(255, 214, 10, 0.08); border-color: rgba(255, 214, 10, 0.5);
  box-shadow: 0 0 32px rgba(255, 214, 10, 0.35), inset 0 0 22px rgba(255, 214, 10, 0.12); text-shadow: 0 0 18px rgba(255, 214, 10, 0.6); }
.grade-mid { color: var(--warn); background: var(--warn-soft); border-color: rgba(242, 169, 59, 0.45); }
.grade-lo { color: var(--risk); background: var(--risk-soft); border-color: rgba(255, 56, 51, 0.45); box-shadow: 0 0 24px rgba(255, 56, 51, 0.18); }
.grade-none { color: var(--fg-mute); background: var(--surface); border-color: var(--line); }
.verdict-line { margin-top: 8px; font-size: 18px; font-weight: 600; color: var(--fg); }
.q4-verdict { font-size: 19px; font-weight: 600; line-height: 1.35; padding: 2px 0 0; }
.q4-verdict.yes { color: var(--fg); }
.q4-verdict.mixed { color: var(--fg); }
.q4-verdict.no { color: var(--fg); }
.q4-score b { font-size: 24px; }
@media (max-width: 640px) { .grade { width: 80px; height: 80px; border-radius: 18px; } .grade b { font-size: 38px; } .rh-left { gap: 14px; } }

/* ---------- Track record ---------- */
.track-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; color: var(--fg-dim); }
.rule .num { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner { padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 8px; font-size: 13px; color: var(--fg-mute); }
.footer-inner strong { color: var(--fg-dim); }
.footer-links { display: flex; gap: 8px; }
.footer-links a { color: var(--fg-dim); text-decoration: none; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .topsearch { display: none; }
  .topcta { margin-left: auto; }
  .card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .card-art { min-height: 140px; order: -1; }
  .scenarios, .learn, .metrics { grid-template-columns: minmax(0, 1fr); }
  .report-head { grid-template-columns: minmax(0, 1fr); }
  .price-big, .price-chg { text-align: left; }
  .head-actions { justify-content: flex-start; }
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: minmax(0, 1fr) 72px 96px; gap: 10px; }
  .srow svg { width: 72px; }
  .chg-pill { min-width: 70px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Glass + Apple-like finish ---------- */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)) !important;
  backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.card, .teaser, .inv-card, .scn, .learn-card, .trap, .ask-box, .chart-card, .metrics, .notes, .track-empty, .sheet-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.metric { background: rgba(0, 0, 0, 0.35); }
h1, h2, h3, .page-title, .section-title, .card-title { font-weight: 700; }
.page-title { font-weight: 700; letter-spacing: -0.03em; }
.tabs a, .btn, .chip, .pill, .eyebrow, .verdict, .trap-title { font-weight: 600; }

/* ---------- Report hero card: identity + grade + compact chart ---------- */
.hero-card { border-radius: 22px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.hc-id { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.hc-name { min-width: 0; display: grid; gap: 4px; }
.hc-name .head-actions { justify-content: flex-start; margin-top: 10px; }
.hc-chart { display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; min-width: 0; }
.hc-quote { display: flex; align-items: baseline; gap: 10px; }
.hc-tk { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--fg-mute); }
.hc-quote b { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.hc-quote span:last-child { font-weight: 600; }
.hero-card .chart-svg { height: 190px; }
.hc-note { font-size: 11px; color: var(--fg-mute); }
@media (max-width: 900px) { .hero-card { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Design pass from references (Apple Stocks, TradingView):
   no boxes on lists, hairline rows, big bold type, solid color pills,
   glass only on floating surfaces.
   ========================================================= */
:root {
  --surface: #1c1c1e; --surface-2: #2c2c2e; --line: #2c2c2e; --line-soft: #1f1f21;
  --fg: #ffffff; --fg-dim: #98989f; --fg-mute: #6e6e73;
}
.card, .teaser, .inv-card, .scn, .learn-card, .trap, .ask-box, .chart-card, .metrics, .notes, .track-empty {
  background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none;
}
.glass { background: var(--surface) !important; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0 !important; box-shadow: none !important; }
.sheet-inner { background: rgba(44, 44, 46, 0.72); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); border: 0; }
.page-title { font-size: clamp(34px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.page-title .tone { color: #6e6e73; font-weight: 700; }
.block-head h2, .section-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

/* Hero: TradingView-style card, chart bleeds to the edges */
.hero-card { background: var(--surface); border: 0; border-radius: 22px; padding: 24px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; overflow: hidden; }
.hc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hc-id { display: flex; gap: 18px; align-items: center; min-width: 0; }
.hc-name .page-title { font-size: clamp(34px, 4vw, 42px); }
.hc-name .page-title .tone { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.hc-quote { display: grid; justify-items: end; gap: 8px; }
.hc-quote b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.pill-chg { min-width: 92px; text-align: right; padding: 5px 10px; border-radius: 8px; font-size: 17px; font-weight: 600; }
.pill-chg.up { background: var(--accent); color: var(--accent-ink); }
.pill-chg.down { background: var(--risk); color: #fff; }
.verdict-line { font-size: 19px; font-weight: 600; color: var(--fg); margin: 6px 0 0; }
.hc-chart-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.hc-svg { margin: 0 -24px; width: calc(100% + 48px); height: 190px; }
.hc-note { margin-top: -30px; }
.grade { width: 84px; height: 84px; border-radius: 20px; border: 0; }
.grade b { font-size: 44px; font-weight: 800; }
.grade span { font-size: 14px; font-weight: 700; margin-top: 2px; }
.grade-hi { background: var(--accent); color: var(--accent-ink); text-shadow: none; box-shadow: 0 0 28px rgba(255, 214, 10, 0.35); }
.grade-mid { background: var(--warn); color: #1a1000; }
.grade-lo { background: var(--risk); color: #fff; box-shadow: none; }
.grade-none { background: var(--surface-2); color: var(--fg-mute); }

/* Business / Timing: two plain tiles */
.bt { gap: 12px; }
.bt-cell { border-radius: 18px; padding: 18px 20px; }
.bt-cell b { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.bt-cell.pass b { color: var(--accent); }
.bt-cell.fail b { color: var(--fg); }

/* The 4 Questions: Apple list rows, hairline separators, solid score pills */
.questions { gap: 0; border-top: 1px solid var(--line); }
.q4.glass { background: transparent !important; border-radius: 0; padding: 24px 0; border-bottom: 1px solid var(--line) !important; gap: 10px; }
.q4-head { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
.q4-n { font-size: 15px; font-weight: 700; color: var(--fg-mute); }
.q4-head h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.pill-score { min-width: 76px; text-align: right; padding: 5px 10px; border-radius: 8px; font-size: 18px; font-weight: 700; }
.pill-score.yes { background: var(--accent); color: var(--accent-ink); }
.pill-score.mixed { background: var(--warn); color: #1a1000; }
.pill-score.no { background: var(--risk); color: #fff; }
.q4-verdict { font-size: 18px; font-weight: 600; padding-left: 38px; }
.q4-text { padding-left: 38px; color: var(--fg-dim); font-size: 16px; }
.q4-ev, .q4-heat { padding-left: 38px; }
.q4-ev li { background: var(--surface); border: 0; color: var(--fg-dim); font-weight: 600; }

/* ---------- Bigger header + glass tab lens ---------- */
.topbar-row { padding-top: 16px; padding-bottom: 10px; gap: 20px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.topsearch { max-width: 380px; }
.topsearch input { padding: 10px 16px 10px 38px; font-size: 15px; font-weight: 500; background: var(--surface); border-color: transparent; }
.search-ico { left: 14px; width: 15px; height: 15px; }
.topcta { padding: 9px 18px; font-size: 14px; }
.tabs { padding-bottom: 10px; }
.tabs-track { position: relative; display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.tabs a { position: relative; z-index: 1; padding: 9px 18px; font-size: 15px; font-weight: 600; border: 0 !important; border-radius: 10px; color: var(--fg-dim); transition: color 0.2s ease; }
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--fg); }
.tab-lens {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; opacity: 0; border-radius: 10px; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .tab-lens { transition: none; } }
@media (max-width: 640px) { .tabs-track { display: flex; overflow-x: auto; } .tabs a { padding: 8px 12px; font-size: 14px; } }

/* Fully rounded (capsule) tab bar and lens */
.tabs-track { border-radius: 999px; padding: 5px; }
.tabs a { border-radius: 999px; }
.tab-lens { top: 5px; bottom: 5px; border-radius: 999px; }

/* Market hours: larger, and bars visible on the new surface color */
.clocks { gap: 16px; }
.clock-cell { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
.clock { width: 76px; height: 76px; }
.clock-city { font-size: 17px; font-weight: 700; }
.clock-time { font-size: 14px; font-weight: 600; color: var(--fg-dim); }
.clock-status { font-size: 13px; font-weight: 600; }
.clock-status .dot { width: 7px; height: 7px; background: #48484a; }
.sessions { --ses-label: 96px; gap: 10px; margin-top: 14px; }
.ses-axis { height: 20px; }
.ses-axis span { font-size: 12px; font-weight: 600; }
.ses-name { font-size: 14px; font-weight: 600; color: var(--fg-dim); }
.ses-track { height: 10px; border-radius: 999px; background: #0e0e0f; box-shadow: inset 0 0 0 1px #232325; }
.ses-bar { border-radius: 999px; background: #48484a; }
.ses-bar.off { background: #2c2c2e; }
.ses-bar.on { background: var(--accent); }
.ses-now { top: 20px; width: 2px; margin-left: -1px; }
@media (max-width: 640px) { .clock-cell { grid-template-columns: 60px minmax(0, 1fr); } .clock { width: 60px; height: 60px; } .sessions { --ses-label: 76px; } }

/* ---------- Market hours: larger, visible bars, glowing open session ---------- */
.clocks { gap: 16px; }
.clock-cell { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
.clock { width: 76px; height: 76px; }
.clock-city { font-size: 17px; font-weight: 700; }
.clock-time { font-size: 14px; font-weight: 600; color: var(--fg-dim); }
.clock-status { font-size: 13px; font-weight: 600; }
.clock-status .dot { width: 7px; height: 7px; background: #48484a; }
.clock-cell.is-open .clock { filter: drop-shadow(0 0 10px rgba(255, 214, 10, 0.45)); }
.clock-cell.is-open .clock-rim { stroke: #ffd60a; }
.sessions { --ses-label: 96px; gap: 10px; margin-top: 10px; }
.ses-axis { height: 20px; }
.ses-axis span { font-size: 12px; font-weight: 600; font-family: var(--font); }
.ses-name { font-size: 14px; font-weight: 600; color: var(--fg-dim); }
.ses-track { height: 10px; border-radius: 999px; background: #0e0e0f; box-shadow: inset 0 0 0 1px #1f1f21; }
.ses-bar { border-radius: 999px; background: #48484a; }
.ses-bar.off { background: #2c2c2e; }
.ses-bar.on { background: var(--accent); box-shadow: 0 0 14px rgba(255, 214, 10, 0.7), 0 0 4px rgba(255, 214, 10, 0.9); animation: sesPulse 2.4s ease-in-out infinite; }
@keyframes sesPulse { 50% { box-shadow: 0 0 22px rgba(255, 214, 10, 0.9), 0 0 6px rgba(255, 214, 10, 1); } }
.ses-now { top: 20px; width: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .ses-bar.on { animation: none; } }
@media (max-width: 640px) { .clock-cell { grid-template-columns: 56px minmax(0, 1fr); } .clock { width: 56px; height: 56px; } .sessions { --ses-label: 72px; } }

/* ---------- 4Q news: SEC filings tagged by question ---------- */
.qtag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: #000; }
.qtag.q1 { background: #ffd60a; }
.qtag.q2 { background: #64d2ff; }
.qtag.q3 { background: #ff9f0a; }
.qtag.q4 { background: #bf5af2; color: #fff; }
.qfilter { display: flex; gap: 6px; padding: 14px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.qfilter button { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font: 600 13px var(--sans, Inter, sans-serif); background: rgba(255, 255, 255, 0.08); color: var(--fg-dim, #98989f); cursor: pointer; }
.qfilter button[aria-selected="true"] { background: #fff; color: #000; }
.filing { display: block; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: inherit; text-decoration: none; }
a.filing:hover { background: rgba(255, 255, 255, 0.04); }
.filing-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.filing-src { font-size: 12px; font-weight: 600; color: var(--fg-mute, #6e6e73); }
.filing-date { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--fg-mute, #6e6e73); }
.filing-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.filing-title strong { font-weight: 800; margin-right: 4px; }
.filing-meta { display: block; margin-top: 3px; font-size: 13px; color: var(--fg-dim, #98989f); }
#filings .news-note { padding: 10px 16px 4px; }
.sheet-sub { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; padding: 18px 16px 10px; }

/* ---------- Q3 movers / Q4 economy ---------- */
.q34 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .q34 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.q34-col { background: var(--surface, #1c1c1e); border-radius: 18px; padding: 4px 4px 12px; min-width: 0; }
.q34-col .sheet-sub { padding: 14px 14px 8px; }
.q34-col .note-line { padding: 0 14px; }
.tv-q34 .tv-box { height: 460px; }
.tv-q34:not(:has(iframe)) .tv-fallback { padding: 0 14px; }

/* ---------- live 13F holdings ---------- */
.inv-holds.live > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; font-weight: 600; }
.inv-holds.live .num-r { font-variant-numeric: tabular-nums; font-weight: 700; }
.chg-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-left: 6px; background: rgba(255, 255, 255, 0.08); color: var(--fg-dim, #98989f); }
.chg-tag.new, .chg-tag.added { background: var(--accent); color: var(--accent-ink); }
.chg-tag.trimmed { background: #ff3833; color: #fff; }

/* News panel scrollbar: thin floating pill that stays inside the rounded corners */
@media (min-width: 1200px) {
  .page.has-sheet > .sheet .sheet-inner { scrollbar-width: auto; scrollbar-color: auto; }
  .page.has-sheet > .sheet .sheet-inner::-webkit-scrollbar { width: 12px; }
  .page.has-sheet > .sheet .sheet-inner::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
  .page.has-sheet > .sheet .sheet-inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; border: 4px solid transparent; background-clip: padding-box; }
  .page.has-sheet > .sheet .sheet-inner::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.32); }
  .page.has-sheet > .sheet .sheet-inner::-webkit-scrollbar-button { display: none; height: 0; }
  @supports not selector(::-webkit-scrollbar) {
    .page.has-sheet > .sheet .sheet-inner { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
  }
}

/* Back-tested portfolio stats */
.pf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.06); border-radius: 16px; overflow: hidden; margin-top: 18px; }
@media (min-width: 820px) { .pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-stats > div { background: var(--surface, #1c1c1e); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pf-stats span { font-size: 12px; font-weight: 600; color: var(--fg-mute, #6e6e73); }
.pf-stats b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-stats em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--fg-dim, #98989f); }

/* Home: the 4 Questions, plainly */
.fq-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .fq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fq-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fq-card { background: var(--surface, #1c1c1e); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.fq-n { font-size: 13px; font-weight: 800; color: var(--accent); }
.fq-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.fq-card p { font-size: 14px; color: var(--fg-dim, #98989f); line-height: 1.45; }
.fq-trap .fq-n { color: #ff3833; }

/* Radar board (generated reports) */
.rboard .thead, .rboard .trow { grid-template-columns: 28px minmax(0, 1fr) 124px 110px 110px; }
.rspark svg { display: block; }
.rprice { display: grid; gap: 1px; font-size: 12px; font-weight: 700; color: var(--fg-dim); text-align: right; padding-right: 14px; }
.rprice b { color: var(--fg); font-size: 14px; }
.rprice em { font-style: normal; font-size: 12px; }
.rprice em.up { color: var(--accent); } .rprice em.dn { color: var(--risk); }
.rprice small { font-size: 11px; color: var(--fg-mute); font-weight: 600; }
.rprice.warn small { color: var(--warn); } .rprice.good small { color: var(--accent); }
.rprice.warn { color: var(--warn); } .rprice.good { color: var(--accent); }
.rscore { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; }
.rscore b { font-size: 15px; color: var(--fg); }
.rscore i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--w), var(--line) var(--w)); }
.rboard .trow > span:nth-child(2) { min-width: 0; overflow: hidden; }
.rboard .trow .nm { display: block; }
@media (max-width: 620px) {
  .rboard .thead { display: none; }
  .rboard .trow { grid-template-columns: 16px minmax(0, 1fr) 56px 80px 30px; gap: 8px; }
  .rboard .trow .idx { font-size: 11px; }
  .rspark svg { width: 56px; height: 28px; }
  .rprice { padding-right: 0; }
  .rscore { grid-template-columns: 1fr; text-align: right; } .rscore i { display: none; }
}

/* board motion */
.rboard .trow { animation: rowIn .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rspark .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLn 1.1s ease-out forwards; animation-delay: calc(var(--i, 0) * 35ms + .15s); }
@keyframes drawLn { to { stroke-dashoffset: 0; } }
.rscore i { animation: growBar .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 35ms + .1s); transform-origin: left; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rboard .trow:hover { background: rgba(255,255,255,.02); }
@media (prefers-reduced-motion: reduce) { .rboard .trow, .rspark .ln, .rscore i { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 640px) { .ses-axis span.minor { display: none; } }

/* beta gating */
.beta-note { margin: 4px 0 14px; padding: 10px 14px; border-left: 2px solid var(--accent); background: rgba(255, 214, 10,.06); font-size: 13.5px; color: var(--fg-dim); }
.beta-note b { color: var(--accent); } .beta-note a { color: var(--fg); }
.plus-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--accent); border: 1px solid rgba(255, 214, 10,.4); vertical-align: 2px; }
.lockn { filter: blur(5px); user-select: none; color: var(--fg-mute) !important; }
.rscore i.lockbar { background: var(--line); }
.trow.lockd .rprice small { color: var(--fg-mute); }
.blurx { filter: blur(6px); opacity: .55; user-select: none; pointer-events: none; }
.trow.lockd:hover .blurx { opacity: .7; }

/* 4Q carousel: card slides in from the side it came from; art draws itself */
.qcard.in-next { animation: cardInR .45s cubic-bezier(.2,.8,.2,1) both; }
.qcard.in-prev { animation: cardInL .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cardInR { from { opacity: 0; transform: translateX(28px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cardInL { from { opacity: 0; transform: translateX(-28px) scale(.985); } to { opacity: 1; transform: none; } }
.qcard .card-title { font-size: 24px; }
.qcard .card-desc { line-height: 1.6; }
.qcard .card-art { display: grid; place-items: center; background: radial-gradient(120% 100% at 50% 0%, rgba(255, 214, 10,.06), transparent 60%), #0d0d0d; }
.qcard .card-art svg { position: static; width: 92%; height: auto; }
.qa-draw { animation: qaRing 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes qaRing { from { stroke-dashoffset: 188.5; } }
.card-art svg circle.qa-draw[stroke-dasharray="364.4"] { animation-name: qaRingL; }
@keyframes qaRingL { from { stroke-dashoffset: 364.4; } }
.qa-bar { transform-box: fill-box; transform-origin: bottom; animation: qaBar .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes qaBar { from { transform: scaleY(0); } }
.qa-line { stroke-dasharray: 1; animation: qaLine 1.3s ease-out both; }
@keyframes qaLine { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.deck::before { content: ""; position: absolute; left: 28px; right: 28px; bottom: -16px; height: 20px; z-index: -2; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); opacity: .3; }
@media (max-width: 640px) { .qcard { grid-template-columns: 1fr; } .qcard .card-art { min-height: 150px; order: -1; } }
@media (prefers-reduced-motion: reduce) { .qcard, .qa-draw, .qa-bar, .qa-line { animation: none; } }

/* Superinvestors: in development */
.inv-card { min-width: 0; overflow: hidden; }
.inv-card * { min-width: 0; }
.dev-note { margin: 0 0 16px; padding: 12px 14px; border-left: 2px solid var(--accent); background: rgba(255, 214, 10,.06); font-size: 14px; color: var(--fg-dim); }
.dev-note b { color: var(--accent); } .dev-note a { color: var(--fg); }
.dev-blur { filter: blur(7px); opacity: .5; user-select: none; pointer-events: none; max-height: 640px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }

/* =========================================================
   Trascenter reel language (2026-11-06)
   60 black / 30 white / 10 #FFD60A. No grey slabs: boxes are
   black with a hairline stroke; key cards get the reel glow.
   Type: Inter, AE tracking -88 on display type, thin glow.
   ========================================================= */
:root {
  --surface: #000; --surface-2: #050505;
  --line: rgba(255, 255, 255, 0.12); --line-soft: rgba(255, 255, 255, 0.08);
  --stroke: 1px solid rgba(255, 255, 255, 0.1);
  --glow-text: 0 0 14px rgba(255, 255, 255, 0.28);
}
body { letter-spacing: -0.02em; text-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
h1, h2, h3, .page-title, .card-title, .section-title, .block-head h2, .brand-name,
.hc-quote b, .bt-cell b, .grade b, .pf-stats b, .fq-card h3, .q4-head h3, .quote-text, .sheet-head h2 {
  letter-spacing: -0.088em; text-shadow: var(--glow-text);
}
.page-title { line-height: 1.02; }
.page-title .tone { display: block; letter-spacing: -0.06em; text-shadow: none; }
.eyebrow, .hc-tk, .tag, .suggest .tag { text-shadow: none; }
.btn, .topcta, .pill-chg, .pill-score, .grade, .chg-pill, .qtag { text-shadow: none; }

/* Boxes: black + hairline stroke (no plastic grey) */
.card, .teaser, .inv-card, .scn, .learn-card, .ask-box, .chart-card, .metrics, .notes, .track-empty,
.hero-card, .bt-cell, .q34-col, .fq-card, .tv-slot:not(:has(iframe)), .q, .q4:not(.glass), .note,
.glass, .deck::before, .deck::after {
  background: #000 !important; border: var(--stroke) !important; box-shadow: none !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pf-stats, .metrics { background: rgba(255, 255, 255, 0.08); }
.pf-stats > div, .metric { background: #000; }
.q4.glass { border: 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; }
.qcard .card-art { background: radial-gradient(120% 100% at 50% 0%, rgba(255, 214, 10, .07), transparent 60%), #000; border: var(--stroke); }
.topsearch input, .btn-ghost, .icon-btn, .chip, .pill, .q4-ev li, .ask-box input, .tabs-track {
  background: transparent; border: var(--stroke);
}
.tab-lens { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.suggest { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: var(--stroke); }
.suggest li:hover, .suggest li[aria-selected="true"] { background: rgba(255, 255, 255, 0.06); }
.grade-none, .chg-pill.flat, .tier, .avatar { background: transparent; border: var(--stroke); }

/* News panel: black, stroked; floating sheet on mobile is black glass */
.sheet-inner { background: rgba(0, 0, 0, 0.72) !important; backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border: var(--stroke) !important; }
@media (min-width: 1200px) { .page.has-sheet > .sheet .sheet-inner { background: #000 !important; } }
.filing { border-bottom-color: rgba(255, 255, 255, 0.06); }
.qfilter button { background: transparent; border: var(--stroke); }
.qfilter button[aria-selected="true"] { background: #fff; color: #000; border-color: #fff; }
.qtag, .qtag.q1, .qtag.q2, .qtag.q3, .qtag.q4 { background: transparent; color: var(--fg); border: 1px solid rgba(255, 255, 255, 0.28); }
.qtag.q1 { color: var(--accent); border-color: rgba(255, 214, 10, 0.5); }

/* Reel glow card: drifting yellow light + gradient hairline */
@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 82%; }
@property --gy { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
.qcard, .hero-card { position: relative; isolation: isolate; overflow: hidden; border-color: transparent !important; }
.qcard::before, .hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(48% 120% at var(--gx) var(--gy), rgba(222, 226, 40, 0.30), rgba(255, 214, 10, 0.10) 38%, transparent 70%);
  animation: reelGlow 9s ease-in-out infinite alternate;
}
.qcard::after, .hero-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 214, 10, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@keyframes reelGlow {
  0% { --gx: 88%; --gy: 30%; }
  50% { --gx: 70%; --gy: 70%; }
  100% { --gx: 95%; --gy: 55%; }
}
/* Other boxes light up the same way on hover */
.fq-card, .teaser, .learn-card, .inv-card, .bt-cell { transition: border-color .3s, box-shadow .3s; }
.fq-card:hover, .teaser:hover, .learn-card:hover, .inv-card:hover {
  border-color: rgba(255, 214, 10, 0.35) !important; box-shadow: 0 0 28px rgba(255, 214, 10, 0.08), inset 0 0 40px rgba(255, 214, 10, 0.04) !important;
}
@media (prefers-reduced-motion: reduce) { .qcard::before, .hero-card::before { animation: none; } }
/* small links/buttons inside headings keep normal tracking */
h1 a, h2 a, h3 a, h2 button, .block-head a, .block-head button { letter-spacing: -0.01em; text-shadow: none; }
/* One weight everywhere: Inter SemiBold (user's reel type) */
body, body * { font-weight: 600 !important; }

/* Home 4Q card: fluted (reeded) glass over a livelier glow, plain thin white stroke */
@property --gx2 { syntax: "<percentage>"; inherits: false; initial-value: 60%; }
@property --gy2 { syntax: "<percentage>"; inherits: false; initial-value: 80%; }
.qcard { border: 1px solid rgba(255, 255, 255, 0.22) !important; }
.qcard::before {
  background:
    radial-gradient(42% 110% at var(--gx) var(--gy), rgba(222, 226, 40, 0.42), rgba(255, 214, 10, 0.14) 40%, transparent 70%),
    radial-gradient(30% 80% at var(--gx2) var(--gy2), rgba(255, 214, 10, 0.22), transparent 70%);
  animation: reelGlowQ 5.5s ease-in-out infinite alternate, reelGlow2 7s ease-in-out infinite alternate;
}
@keyframes reelGlow2 {
  0% { --gx2: 55%; --gy2: 85%; }
  50% { --gx2: 80%; --gy2: 15%; }
  100% { --gx2: 65%; --gy2: 60%; }
}
.qcard::after {
  padding: 0; -webkit-mask: none; mask: none; z-index: -1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.015) 6px,
    rgba(0, 0, 0, 0) 14px, rgba(0, 0, 0, 0.32) 25px, rgba(255, 255, 255, 0.09) 26px);
}
@keyframes reelGlowQ {
  0% { --gx: 92%; --gy: 20%; }
  35% { --gx: 62%; --gy: 75%; }
  70% { --gx: 85%; --gy: 90%; }
  100% { --gx: 70%; --gy: 35%; }
}
/* Home 4Q card: no stroke, softer corners */
.qcard { border-color: transparent !important; border-radius: 26px !important; }
.qcard .card-art { border-radius: 18px; }
.deck::before, .deck::after { border-radius: 26px !important; }
/* Fluted glass: no white highlights, soft dark ribs only */
.qcard::after {
  background: repeating-linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.1) 12px, rgba(0, 0, 0, 0.26) 22px, rgba(0, 0, 0, 0.08) 26px);
}

/* Fluted glass: sharp dark ribs (no white) */
.qcard::after {
  background: repeating-linear-gradient(90deg,
    rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.12) 14px, rgba(0, 0, 0, 0.36) 24px, rgba(0, 0, 0, 0) 24.6px, rgba(0, 0, 0, 0) 26px);
}

/* Deck transition: front card flies toward the viewer and dissolves (blur + fade);
   the next card rises from the stack behind into place. Prev plays it in reverse. */
.qcard.leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.qcard.out-next { z-index: 2; animation: deckOutFwd .45s cubic-bezier(.4, 0, .2, 1) both; }
.qcard.in-next { animation: deckInFromBack .45s cubic-bezier(.2, .8, .2, 1) both; }
.qcard.out-prev { z-index: 0; animation: deckOutBack .45s cubic-bezier(.4, 0, .2, 1) both; }
.qcard.in-prev { position: relative; z-index: 2; animation: deckInFromFront .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes deckOutFwd { to { opacity: 0; transform: scale(1.07) translateY(-6px); filter: blur(12px); } }
@keyframes deckInFromBack { from { opacity: .3; transform: translateY(18px) scale(.94); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes deckOutBack { to { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(5px); } }
@keyframes deckInFromFront { from { opacity: 0; transform: scale(1.07) translateY(-6px); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .qcard.out-next, .qcard.out-prev, .qcard.in-next, .qcard.in-prev { animation-duration: .01s; } }
/* orange is not in the palette: warnings render white */
:root { --warn: #ffffff; --warn-soft: rgba(255, 255, 255, 0.08); }

/* ---------- My Portfolio (#/portfolio) ---------- */
.mp-page { gap: 28px; }
.mp-add { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 10px; max-width: 620px; }
.mp-add input { height: 46px; border-radius: 14px; padding: 0 16px; color: var(--fg); font: inherit; font-size: 15px; background: transparent; border: var(--stroke); outline: none; transition: border-color .2s, box-shadow .2s; }
.mp-add input:focus { border-color: rgba(255, 214, 10, .6); box-shadow: 0 0 0 4px rgba(255, 214, 10, .08); }
.mp-add .btn { height: 46px; border-radius: 14px; padding: 0 22px; }
.mp-msg { grid-column: 1 / -1; color: var(--fg-dim); font-size: 13px; min-height: 0; }
.mp-msg:empty { display: none; }
#mp { display: grid; gap: 22px; }
.mp-empty { border: var(--stroke); border-radius: 22px; padding: 34px 24px; display: grid; gap: 14px; justify-items: start; color: var(--fg-dim); }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--stroke); border-radius: 22px; overflow: hidden; }
.mp-stats > div { padding: 18px 20px; display: grid; gap: 6px; border-left: var(--stroke); }
.mp-stats > div:first-child { border-left: 0; }
.mp-stats span { color: var(--fg-mute); font-size: 13px; }
.mp-stats b { font-size: 24px; letter-spacing: -0.06em; text-shadow: var(--glow-text); white-space: nowrap; }
.mp-stats b small { font-size: 13px; color: var(--fg-mute); letter-spacing: -0.02em; text-shadow: none; }
.mp-stats b.up { color: var(--fg); } .mp-stats b.dn { color: var(--risk); } .mp-stats b.acc { color: var(--accent); }
.mp-box { border: var(--stroke); border-radius: 22px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.mp-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; }
.mp-donut { width: 100%; max-width: 250px; justify-self: center; }
.mp-seg { transition: opacity .25s; animation: mpSeg .9s cubic-bezier(.2, .8, .2, 1) var(--d) both; }
@keyframes mpSeg { from { opacity: 0; stroke-width: 2; } }
.mp-dv { fill: var(--fg); font: 600 19px var(--font); letter-spacing: -0.06em; }
.mp-dl { fill: var(--fg-mute); font: 600 12px var(--font); letter-spacing: -0.02em; }
.mp-table { display: grid; }
.mp-tr { display: grid; grid-template-columns: minmax(0, 1.3fr) 92px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .07); transition: opacity .25s; }
.mp-tr:first-child { border-top: 0; }
.mp-tk { display: grid; min-width: 0; } .mp-tk b { font-size: 15px; } .mp-tk span { color: var(--fg-mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-lots input { width: 100%; height: 34px; border-radius: 10px; border: var(--stroke); background: transparent; color: var(--fg); font: inherit; font-size: 14px; padding: 0 10px; text-align: right; }
.mp-lots input:focus { outline: none; border-color: rgba(255, 214, 10, .6); }
.mp-v { display: grid; text-align: right; font-size: 14px; } .mp-v small { color: var(--fg-mute); font-size: 11.5px; }
.mp-w { display: grid; gap: 5px; font-size: 13px; text-align: right; }
.mp-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mp-bar i { display: block; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .7); animation: mpBar .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.mp-bar i.top { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, .6); }
@keyframes mpBar { from { transform: scaleX(0); } }
.mp-x { width: 28px; height: 28px; border-radius: 50%; border: var(--stroke); background: transparent; color: var(--fg-mute); font-size: 16px; line-height: 1; cursor: pointer; }
.mp-x:hover { color: var(--fg); border-color: rgba(255, 255, 255, .4); }
.mp-seg.dim, .mp-tr.dim { opacity: .3; }
.mp-sub { color: var(--fg-dim); font-size: 14px; max-width: 70ch; }
.mp-sgrid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 30px; align-items: center; }
.mp-radar { width: 100%; overflow: visible; }
.mp-grid circle, .mp-grid line { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.mp-wedge { fill: rgba(255, 255, 255, .06); transition: d .5s; }
.mp-blob { transform-origin: 170px 170px; animation: mpBlob 1s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes mpBlob { from { transform: scale(.2); opacity: 0; } }
.mp-blob path:last-of-type { transition: d .6s cubic-bezier(.2, .8, .2, 1); }
.mp-ax { cursor: pointer; outline: none; }
.mp-ax text { fill: var(--fg-mute); font: 600 13px var(--font); letter-spacing: -0.02em; transition: fill .2s; }
.mp-ax .mp-axn { fill: currentColor; }
.mp-ax:hover text, .mp-ax:focus-visible text { fill: var(--fg); }
.mp-ax.on text { fill: var(--fg); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .5)); }
.mp-ax.on .mp-axn { fill: var(--accent); }
.mp-panel { display: grid; gap: 10px; align-content: start; }
.mp-pt { font-size: 24px; letter-spacing: -0.088em; text-shadow: var(--glow-text); display: flex; align-items: baseline; gap: 8px; }
.mp-pt b { color: var(--accent); margin-left: 6px; } .mp-pt small { color: var(--fg-mute); font-size: 14px; letter-spacing: -0.02em; text-shadow: none; }
.mp-pa { color: var(--fg-dim); font-size: 14px; }
.mp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 8px; }
.mp-cols h3 { font-size: 14px; letter-spacing: -0.04em; color: var(--fg); margin-bottom: 4px; }
.mp-up h3 { color: var(--accent); }
.mp-hr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); color: inherit; text-decoration: none; }
.mp-hn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; } .mp-hn span { color: var(--fg-mute); font-size: 12.5px; }
.mp-hr:hover .mp-hn b { color: var(--accent); }
.mp-hs { font-size: 13px; text-align: right; } .mp-hs small { color: var(--fg-mute); }
.mp-hw { font-size: 12px; color: var(--fg-mute); text-align: right; }
.mp-up .mp-bar i { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, .5); }
.mp-dn .mp-bar i { background: rgba(255, 255, 255, .45); }
.mp-q4note { color: var(--fg-dim); font-size: 14px; max-width: 52ch; border-left: 2px solid rgba(255, 255, 255, .3); padding-left: 12px; margin-top: 6px; }
@media (max-width: 900px) {
  .mp-split, .mp-sgrid { grid-template-columns: 1fr; }
  .mp-stats { grid-template-columns: 1fr 1fr; } .mp-stats > div:nth-child(3) { border-left: 0; } .mp-stats > div:nth-child(n+3) { border-top: var(--stroke); }
  .mp-radar { max-width: 420px; justify-self: center; }
}
@media (max-width: 560px) {
  .mp-add { grid-template-columns: 1fr 110px; } .mp-add .btn { grid-column: 1 / -1; }
  .mp-tr { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr) 26px; } .mp-w { display: none; }
  .mp-cols { grid-template-columns: 1fr; } .mp-box { padding: 18px; } .mp-stats b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mp-seg, .mp-bar i, .mp-blob { animation: none; } }
.mp-panel.mp-in { animation: mpIn .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mpIn { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
.mp-add input { min-width: 0; width: 100%; }
.mp-add > * { min-width: 0; }
/* Scorecard: overall 4Q average leads the panel; the selected question sits under it */
.mp-avg { display: flex; align-items: baseline; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mp-avg span { color: var(--fg-mute); font-size: 14px; margin-right: 6px; }
.mp-avg b { font-size: 40px; line-height: 1; letter-spacing: -0.088em; color: var(--accent); text-shadow: 0 0 18px rgba(255, 214, 10, .35); }
.mp-avg small { color: var(--fg-mute); font-size: 14px; }
.mp-pt { font-size: 19px; } .mp-pt b { color: var(--fg); }
/* Scorecard panel: portfolio-wide only (4Q average + each question's portfolio average) */
.mp-qlist { display: grid; }
.mp-qr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.mp-qr:first-child { border-top: 0; }
.mp-qn { font-size: 16px; letter-spacing: -0.06em; } .mp-qn b { color: var(--accent); margin-right: 4px; }
.mp-qn small { display: block; color: var(--fg-mute); font-size: 12.5px; letter-spacing: -0.02em; margin-top: 2px; }
.mp-qr .mp-hs { font-size: 18px; letter-spacing: -0.06em; align-self: center; }
.mp-qr .mp-bar { grid-column: 1 / -1; }
.mp-qr .mp-bar i { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, .5); }
.mp-qr .mp-bar i.lo { background: var(--risk); box-shadow: 0 0 8px rgba(255, 56, 51, .5); }
.mp-ax { cursor: default; } .mp-ax text { fill: var(--fg-dim); } .mp-ax .mp-axn { fill: var(--fg); }
.mp-list .mp-bar i { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, .5); }
.mp-list .mp-bar i.lo { background: var(--risk); box-shadow: 0 0 8px rgba(255, 56, 51, .5); }
.mp-list .mp-hr:first-child { border-top: 0; }

/* Font recipe everywhere: no uppercase, no wide tracking on small labels (2026-11-08) */
body * { text-transform: none !important; }
.eyebrow, .thead, .suggest .tag, .block-head .sig, .metric .label, .verdict, .trap-title, .scn .name,
.pf-watermark, .q4-con span, .q4-total, .bt-cell span, .tier, .q4-heat span, .hc-tk, .qtag, .plus-tag {
  letter-spacing: -0.02em !important;
}
.eyebrow { font-size: 14px; color: var(--fg-dim); }
.thead { font-size: 12.5px; }
.page-title .ai { color: var(--accent); text-shadow: 0 0 18px rgba(255, 214, 10, 0.45); }

/* ---------- Market News (home) ---------- */
.news { gap: 14px; }
.news-sub { color: var(--fg-dim); font-size: 14px; margin-top: -6px; }
.nfilters { display: grid; gap: 8px; }
.nfrow { display: flex; flex-wrap: wrap; gap: 6px; }
.nf { height: 32px; padding: 0 13px; border-radius: 999px; border: var(--stroke); background: transparent; color: var(--fg-dim); font: inherit; font-size: 13px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.nf:hover { color: var(--fg); border-color: rgba(255, 255, 255, .3); }
.nf.on { background: #fff; color: #000; border-color: #fff; }
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.ncard { display: grid; grid-template-rows: auto 1fr; border: var(--stroke); border-radius: 22px; overflow: hidden; background: #000; transition: border-color .3s, transform .3s; animation: nIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.ncard:hover { border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
@keyframes nIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.ncard.lead { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto; }
.nimg { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.ncard.lead .nimg { aspect-ratio: auto; min-height: 280px; }
.nimg > svg, .nimg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nimg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.1) 12px, rgba(0,0,0,.34) 22px, rgba(0,0,0,0) 22.6px, rgba(0,0,0,0) 24px),
              linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75)); }
.nchip { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nkey { position: absolute; z-index: 1; left: 14px; bottom: 10px; font-size: 26px; line-height: 1.1; letter-spacing: -0.088em; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.ncard.lead .nkey { font-size: 40px; }
.nbody { display: grid; gap: 10px; align-content: start; padding: 16px 18px 18px; }
.ncard.lead .nbody { padding: 26px 28px; align-content: center; }
.nmeta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--fg-mute); }
.nq { color: var(--accent); }
.ntitle { font-size: 18px; line-height: 1.25; letter-spacing: -0.06em; text-shadow: var(--glow-text); }
.ncard.lead .ntitle { font-size: 28px; letter-spacing: -0.088em; }
.nmean { color: var(--fg-dim); font-size: 14px; line-height: 1.5; }
.nmean b { display: block; color: var(--fg); font-size: 13px; margin-bottom: 3px; }
.nlinks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 2px; }
.nlinks a { color: var(--fg-mute); text-decoration: none; transition: color .2s; }
.nlinks a:hover { color: var(--fg); }
.nlinks a + a { color: var(--accent); }
.nempty { color: var(--fg-dim); border: var(--stroke); border-radius: 18px; padding: 22px; }
.nempty a { color: var(--accent); }
@media (max-width: 1000px) { .ngrid { grid-template-columns: 1fr 1fr; } .ncard.lead { grid-template-columns: 1fr; } .ncard.lead .nimg { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .ngrid { grid-template-columns: 1fr; } .ncard.lead .ntitle { font-size: 22px; } .ncard.lead .nbody { padding: 18px; } .nfrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .nf { flex: none; } }
@media (prefers-reduced-motion: reduce) { .ncard { animation: none; } }
/* Tabs never wrap; on narrow screens the track scrolls sideways */
.tabs-track a { white-space: nowrap; }
@media (max-width: 560px) { .tabs-track { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .tabs-track::-webkit-scrollbar { display: none; } .tabs-track a { padding-left: 12px; padding-right: 12px; } }
.mp-page .news, .page > .news { padding: 0; margin: 0; }

/* ---------- Market News as a list (TradingView "Top stories" style) ---------- */
.nlist { display: grid; margin-top: 6px; }
.nhead, .nrow { display: grid; grid-template-columns: 96px 150px minmax(0, 1fr) 140px 130px; gap: 16px; align-items: center; }
.nhead { padding: 0 10px 10px; font-size: 12.5px; color: var(--fg-mute); border-bottom: 1px solid var(--line); }
.nhead span:last-child, .np { text-align: right; }
.nrow { width: 100%; padding: 13px 10px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s;
  animation: nRow .4s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * 40ms) both; }
@keyframes nRow { from { opacity: 0; transform: translateY(6px); } }
.nrow:hover, .nrow:focus-visible { background: rgba(255, 255, 255, .035); outline: none; }
.nrow:hover .nh { color: #fff; text-shadow: var(--glow-text); }
.nt, .np { font-size: 13px; color: var(--fg-mute); white-space: nowrap; }
.ninst { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; }
.ninst b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh { font-size: 15px; color: var(--fg); letter-spacing: -0.03em; transition: color .2s; }
.nqq { font-size: 13px; color: var(--accent); white-space: nowrap; }
@media (max-width: 900px) {
  .nhead { display: none; }
  .nrow { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  .nrow .ninst { grid-column: 1; } .nrow .nt { grid-column: 2; grid-row: 1; text-align: right; }
  .nrow .nh { grid-column: 1 / -1; } .nrow .nqq { grid-column: 1; } .nrow .np { grid-column: 2; }
}
/* News panel */
.npanel { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: npFade .25s ease both; }
.npanel[hidden] { display: none; }
@keyframes npFade { from { opacity: 0; } }
body.np-open { overflow: hidden; }
.npanel-in { position: relative; width: min(640px, 100%); max-height: 88vh; overflow: auto; background: #000; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 30px 32px 26px; display: grid; gap: 14px;
  animation: npIn .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes npIn { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(6px); } }
.np-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: var(--stroke); background: transparent; color: var(--fg-dim); font-size: 20px; cursor: pointer; }
.np-x:hover { color: #fff; }
.np-meta { font-size: 13px; color: var(--fg-mute); }
.npanel-in h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.088em; text-shadow: var(--glow-text); padding-right: 30px; }
.np-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.np-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: var(--stroke); font-size: 13px; }
.np-chip.q { padding-left: 12px; color: var(--accent); }
.np-key { font-size: 34px; letter-spacing: -0.088em; text-shadow: 0 0 18px rgba(255, 255, 255, .3); }
.np-mean { border-top: 1px solid var(--line); padding-top: 14px; }
.np-mean h3 { font-size: 15px; color: var(--accent); margin-bottom: 6px; letter-spacing: -0.04em; }
.np-mean p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; }
.np-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.np-rep { color: var(--accent); font-size: 14px; text-decoration: none; }
.np-foot { font-size: 12px; color: var(--fg-mute); }
@media (max-width: 560px) { .npanel { padding: 0; place-items: end stretch; } .npanel-in { border-radius: 24px 24px 0 0; padding: 26px 20px 22px; max-height: 92vh; } .npanel-in h2 { font-size: 23px; } }

/* ---------- Updates bell (2026-11-24): black + thin white stroke, yellow only for the unread dot and the link ---------- */
.bell { position: relative; flex-shrink: 0; }
.bell-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--fg-dim); cursor: pointer; transition: color .2s; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { color: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.bell-btn svg { width: 21px; height: 21px; }
.bell-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #000, 0 0 10px rgba(255, 214, 10, .7); }
.bell-dot[hidden] { display: none; }
.bell-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
  background: #000; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px 18px 14px; display: grid; gap: 4px;
  animation: npIn .3s cubic-bezier(.2, .8, .2, 1) both; }
.bell-panel[hidden] { display: none; }
.bell-head { font-size: 15px; letter-spacing: -0.04em; color: var(--fg); }
.bell-empty { color: var(--fg-mute); font-size: 14px; padding: 8px 0; }
.upd-list { list-style: none; margin: 0; padding: 0; }
.upd { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.upd:last-child { border-bottom: 0; }
.upd-meta { font-size: 12px; color: var(--fg-mute); }
.upd-title { font-size: 14.5px; color: var(--fg); letter-spacing: -0.03em; line-height: 1.3; }
.upd-text { font-size: 13.5px; color: var(--fg-dim); line-height: 1.5; }
.bell-all { justify-self: start; margin-top: 6px; font-size: 14px; color: var(--accent); text-decoration: none; }
.bell-all:hover { text-shadow: 0 0 12px rgba(255, 214, 10, .5); }
.upd-page { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.upd-page .upd { padding: 18px 0; gap: 5px; }
.upd-page .upd-title { font-size: 19px; letter-spacing: -0.06em; text-shadow: var(--glow-text); }
.upd-page .upd-text { font-size: 15px; max-width: 62ch; }
@media (max-width: 640px) { .bell { margin-left: auto; } .topcta { margin-left: 0; } .bell-panel { position: fixed; top: 58px; right: 12px; } }

/* ---------- Home hero (2026-11-24, demo v2): title + question deck left, glass backtest chart right, nothing overlaps.
   The reel glow (drifting yellow lights + dark flutes) fills the whole section, left side included. ---------- */
.h4 { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "head chart" "deck chart"; gap: 30px 44px; align-items: start; padding: 10px 0 40px; }
.h4-head { grid-area: head; padding-top: 14px; }
.h4-left { grid-area: deck; min-width: 0; }
.h4-stage { grid-area: chart; align-self: center; }
.h4-bg { position: absolute; top: -50px; bottom: -30px; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; pointer-events: none;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent); mask: linear-gradient(to bottom, transparent, #000 14%, #000 72%, transparent); }
body { overflow-x: clip; }   /* the full-width hero glow must never cause sideways scrolling */
.h4-bg::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(48% 90% at var(--gx) var(--gy), rgba(222, 226, 40, 0.38), rgba(255, 214, 10, 0.13) 45%, transparent 78%),
    radial-gradient(55% 85% at calc(100% - var(--gx2)) var(--gy2), rgba(255, 214, 10, 0.26), rgba(255, 214, 10, 0.07) 50%, transparent 80%),
    radial-gradient(45% 75% at 12% 40%, rgba(255, 214, 10, 0.16), transparent 75%),
    radial-gradient(40% 70% at 92% 60%, rgba(255, 214, 10, 0.12), transparent 75%);
  animation: h4GlowA 8s ease-in-out infinite alternate, h4GlowB 11s ease-in-out infinite alternate; }
@keyframes h4GlowA { 0% { --gx: 72%; --gy: 25%; } 35% { --gx: 38%; --gy: 70%; } 70% { --gx: 85%; --gy: 85%; } 100% { --gx: 55%; --gy: 35%; } }
@keyframes h4GlowB { 0% { --gx2: 80%; --gy2: 80%; } 50% { --gx2: 62%; --gy2: 25%; } 100% { --gx2: 88%; --gy2: 55%; } }
.h4-bg::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.1) 14px, rgba(0, 0, 0, 0.3) 24px, rgba(0, 0, 0, 0) 24.6px, rgba(0, 0, 0, 0) 26px); }
/* Glass chart card: translucent, frosted, thin light edge. Flat (no tilt). */
.h4-chart { margin: 0; }
.h4-glass { position: relative; overflow: hidden; border-radius: 28px; padding: 18px 20px 16px; display: grid; gap: 10px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.07));
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5); }
.h4-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.04) 65%, rgba(255, 255, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.h4-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.h4-tag { font-size: 13px; color: var(--fg); padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.25); }
.h4-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--fg-dim); }
.h4-legend span { display: inline-flex; align-items: center; gap: 7px; }
.h4-legend i { width: 14px; height: 2px; border-radius: 2px; }
.k-4q { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, 0.8); }
.k-spy { background: rgba(255, 255, 255, 0.7); }
.h4-svg { width: 100%; height: clamp(220px, 26vw, 320px); display: block; overflow: visible; }
.h4-base { stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 3 5; }
.h4-4q, .h4-spy { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.h4-4q { stroke: var(--accent); stroke-width: 2.6; filter: drop-shadow(0 0 6px rgba(255, 214, 10, 0.55)); }
.h4-spy { stroke: rgba(255, 255, 255, 0.72); stroke-width: 1.6; }
.h4-lines { animation: h4Reveal 1.6s cubic-bezier(.3, .7, .2, 1) .15s both; }
@keyframes h4Reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.h4-area { opacity: 0; animation: h4Fade .8s ease 1.2s forwards; }
@keyframes h4Fade { to { opacity: 1; } }
.h4-svg text { font: 600 12px var(--font); fill: var(--fg-mute); letter-spacing: -0.02em; }
.h4-svg .e-4q { fill: var(--accent); font-size: 14px; }
.h4-svg .e-spy { fill: var(--fg); font-size: 13px; }
.h4-cap { font-size: 12px; color: var(--fg-mute); line-height: 1.45; max-width: 64ch; }

/* Question deck: a real stack. Two cards peek out below the top one (offset down, slightly smaller).
   Next: the top card is slid off to the left with a small turn, as a hand would, and the card under it
   rises into place. Previous: the last card slides back in from the left onto the top, and the current one settles under it. */
.h4-deck { width: 100%; max-width: 560px; }
.h4-deck .deck { position: relative; isolation: isolate; margin-bottom: 22px; }
.h4-deck .deck::before, .h4-deck .deck::after { content: ""; position: absolute; border-radius: 24px !important; pointer-events: none;
  background: linear-gradient(160deg, rgba(52, 52, 48, 0.85), rgba(34, 34, 32, 0.85)) !important; border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; height: auto; top: 0; opacity: 1; }
.h4-deck .deck::after { left: 14px; right: 14px; bottom: -11px; z-index: -1; transform: none; }
.h4-deck .deck::before { left: 30px; right: 30px; bottom: -21px; z-index: -2; opacity: .7; }
.h4-deck .qcard { grid-template-columns: minmax(0, 1fr) 128px; gap: 18px; min-height: 250px; padding: 22px; border-radius: 24px !important;
  background: linear-gradient(160deg, rgba(58, 58, 54, 0.78), rgba(30, 30, 28, 0.84)) !important;
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%; }
.h4-deck .qcard::before, .h4-deck .qcard::after { display: none; }
.h4-deck .qcard .card-title { font-size: 20px; }
.h4-deck .qcard .card-desc { font-size: 13.5px; line-height: 1.55; }
.h4-deck .qcard .card-art { display: grid; place-items: center; align-self: center; min-height: 0; aspect-ratio: 1; border-radius: 18px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 214, 10, .08), transparent 60%), rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); }
.h4-deck .qcard .card-art svg { position: static; width: 100%; height: auto; }
/* transitions: the deck stays in place, only depth changes.
   Next: the top card sinks to the back of the stack and fades; the card under it comes up into place.
   Previous: the card at the back comes up to the top; the current one sinks one step and fades. */
.h4-deck .qcard.leaving { position: absolute; inset: 0 0 auto 0; pointer-events: none; }
.h4-deck .qcard.out-next { z-index: 3; animation: h4Sink .38s cubic-bezier(.4, 0, .6, 1) both; }
.h4-deck .qcard.in-next { z-index: 2; animation: h4Rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.h4-deck .qcard.in-prev { position: relative; z-index: 3; animation: h4Return .5s cubic-bezier(.2, .7, .2, 1) both; }
.h4-deck .qcard.out-prev { z-index: 1; animation: h4Sink .4s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes h4Sink { to { transform: translateY(16px) scale(.92); opacity: 0; } }
@keyframes h4Rise { from { transform: translateY(11px) scale(.95); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes h4Return { from { transform: translateY(16px) scale(.92); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.h4-deck .carousel-bar { margin-top: 4px; }
@media (max-width: 1000px) {
  .h4 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "chart" "deck"; gap: 24px; }
  .h4-deck { max-width: none; }
}
@media (max-width: 520px) { .h4-deck .qcard { grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; padding: 18px; } .h4-deck .qcard .card-art { order: 0; min-height: 0; } .h4-deck .qcard .card-title { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .h4-bg::before { animation: none; }
  .h4-lines, .h4-area { animation: none; opacity: 1; }
  .h4-deck .qcard.out-next, .h4-deck .qcard.in-next, .h4-deck .qcard.in-prev, .h4-deck .qcard.out-prev { animation-duration: .01s; }
}

/* ---------- 4 Questions home (2026-11-25): market line + 4-box score strip ---------- */
.mkt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 -24px; font-size: 13px; color: var(--fg-dim); letter-spacing: -0.02em; }
.mkt-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.mkt-dot.on { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, 0.8); }
.mkt-note { flex-basis: 100%; padding-left: 15px; line-height: 1.4; }
.qb { display: inline-flex; gap: 4px; vertical-align: middle; }
.qb > span { width: 10px; height: 10px; border-radius: 2.5px; border: 1px solid rgba(255, 255, 255, 0.22); }
.qb > .qb-yes { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 5px rgba(255, 214, 10, 0.45); }
.qb > .qb-mixed { border-color: var(--accent); }
.qb > .qb-none { border-style: dashed; border-color: rgba(255, 255, 255, 0.14); }
.rscore .qb { grid-column: 2; margin-top: -2px; }
.wq { display: inline-flex; align-items: center; gap: 7px; margin-left: 9px; vertical-align: 2px; }
.wq b { font-size: 13px; color: var(--fg-dim); }
@media (max-width: 620px) {
  .rboard .trow { grid-template-columns: 16px minmax(0, 1fr) 52px 74px 50px; }
  .rscore { gap: 5px; justify-items: end; }
  .rscore .qb { grid-column: 1; margin-top: 0; }
  .qb { gap: 3px; }
  .qb > span { width: 9.5px; height: 9.5px; }
}

/* ---------- 4 Questions page (2026-11-25): Apple Stocks-like header, glass search, "⋯" menu, report panel ---------- */
.q4h { display: grid; gap: 10px; }
.q4h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q4h-title { margin: 0; text-align: left; font-size: clamp(32px, 9vw, 44px); }
.q4h .mkt { margin: -4px 0 4px; }
.q4h-menu { position: relative; }
.q4h-more { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--fg);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.q4h-more svg { width: 20px; height: 20px; fill: currentColor; }
.q4h-more[aria-expanded="true"] { background: rgba(255, 255, 255, 0.16); }
.q4m { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 248px; padding: 6px; display: grid;
  background: rgba(28, 28, 26, 0.72); backdrop-filter: blur(26px) saturate(160%); -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); animation: npIn .22s cubic-bezier(.2, .8, .2, 1) both; }
.q4m[hidden] { display: none; }
.q4m button { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--fg); font: 600 15px var(--font); letter-spacing: -0.02em; text-align: left; cursor: pointer; }
.q4m button + button { border-top: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0; }
.q4m button:hover { background: rgba(255, 255, 255, 0.06); }
.q4m button i { font-style: normal; color: var(--fg-mute); font-size: 13px; }
.q4m button[aria-checked="true"] i { color: var(--accent); }
.q4m .q4m-back { color: var(--fg-dim); }
/* glass search, "Stocks" placeholder */
.gsearch { position: relative; display: flex; align-items: center; gap: 8px; }
.gsearch input { flex: 1; min-width: 0; height: 42px; padding: 0 14px 0 38px; border-radius: 12px; font: 600 16px var(--font); color: var(--fg);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.gsearch input::placeholder { color: rgba(255, 255, 255, 0.38); }
.gsearch input:focus { outline: none; border-color: rgba(255, 214, 10, 0.5); }
.gsearch-ico { position: absolute; left: 13px; top: 13px; width: 16px; height: 16px; color: rgba(255, 255, 255, 0.45); pointer-events: none; }
.gsearch-x { border: 0; background: none; color: var(--accent); font: 600 15px var(--font); cursor: pointer; padding: 0 2px; }
.gsearch.adding input { border-color: rgba(255, 214, 10, 0.55); }
.gsearch .suggest { top: 48px; left: 0; right: 0; z-index: 30; }
/* watchlist edit mode */
.section-title .wl-done { margin-left: auto; border: 0; background: none; color: var(--accent); font: 600 15px var(--font); cursor: pointer; }
.wl-erow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.wl-rm { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--risk); color: #fff; font: 700 17px/1 var(--font); cursor: pointer; }
.wl-erow .tk { font-size: 17px; }
.wl-mv { display: flex; gap: 6px; }
.wl-mv button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: var(--fg); cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--fg); background: rgba(30, 30, 28, 0.8); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* report panel: glass bottom sheet over the list */
html.sp-lock, html.sp-lock body { overflow: hidden; }
.sp { position: fixed; inset: 0; z-index: 90; --spf: 0; }
.sp[hidden] { display: none; }
.sp-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, calc(0.18 + var(--spf) * 0.3)); }
.sp-sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 760px;
  height: calc(100vh - 10px); height: calc(100dvh - 10px - env(safe-area-inset-top)); display: flex; flex-direction: column;
  border-radius: 22px 22px 0 0; overflow: hidden; will-change: transform; transform: translate3d(0, 110%, 0);
  background: linear-gradient(180deg, rgba(40, 40, 37, 0.72), rgba(16, 16, 15, 0.82));
  backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 -20px 60px rgba(0, 0, 0, 0.5); }
.sp-grab { flex: none; height: 26px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sp-grab span { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.32); }
.sp-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: var(--fg-dim); font: 600 20px/1 var(--font); }
.sp-body { flex: 1; min-height: 0; overflow-y: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 18px calc(28px + env(safe-area-inset-bottom)); display: block; }
.sp-body > * + * { margin-top: 18px; }
.sp-loading { color: var(--fg-mute); padding: 20px 0; }
/* news strip: only in full screen */
.sp-news { display: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 4px 18px 2px; }
.sp-news::-webkit-scrollbar { display: none; }
.sp-sheet.is-full .sp-news { display: flex; animation: npIn .35s cubic-bezier(.2, .8, .2, 1) both; }
.sp-nc { flex: none; width: min(78%, 300px); scroll-snap-align: start; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.sp-nc img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.sp-nm { font-size: 12px; color: var(--fg-mute); }
.sp-nc b { font-size: 14.5px; line-height: 1.3; color: var(--fg); letter-spacing: -0.03em; }
.sp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-right: 38px; }
.sp-t { font-size: 30px; letter-spacing: -0.088em; line-height: 1; text-shadow: var(--glow-text); }
.sp-n { margin-top: 5px; font-size: 13.5px; color: var(--fg-mute); }
.sp-px { display: grid; justify-items: end; gap: 3px; white-space: nowrap; }
.sp-px b { font-size: 18px; } .sp-px em { font-style: normal; font-size: 13px; } .sp-px .up { color: var(--accent); } .sp-px .dn { color: var(--risk); }
.sp-score { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-score > b { font-size: 34px; letter-spacing: -0.06em; color: var(--accent); text-shadow: 0 0 16px rgba(255, 214, 10, .35); }
.sp-score > small { color: var(--fg-mute); margin-right: 6px; }
.sp-score .qb > span { width: 10px; height: 10px; }
.sp-wl { margin-left: auto; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: var(--fg); font: 600 13px var(--font); cursor: pointer; }
.sp-wl.on { border-color: var(--accent); color: var(--accent); }
.sp-read { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); }
.sp-read h3, .sp-list h3 { font-size: 13px; color: var(--fg-mute); letter-spacing: -0.02em; }
.sp-verdict { font-size: 19px; line-height: 1.4; letter-spacing: -0.04em; color: var(--fg); }
.sp-list ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--fg-dim); }
.sp-list.own h3 { color: var(--accent); } .sp-list.brk h3 { color: var(--risk); }
/* word-by-word reveal: each word comes in from blur + transparency */
.wd { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(3px); animation: wdIn .55s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes wdIn { to { opacity: 1; filter: blur(0); transform: none; } }
.sp-q { display: grid; gap: 4px; }
.sp-q h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -0.05em; }
.sp-q h3 > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--accent-ink); background: var(--accent); letter-spacing: 0; }
.sp-q h3 b { margin-left: auto; font-size: 17px; } .sp-q h3 small { color: var(--fg-mute); font-size: 12px; }
.sp-ask { font-size: 13px; color: var(--fg-mute); }
.sp-lbl { color: var(--accent); font-size: 15px; }
.sp-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.sp-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.sp-rows .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: rgba(255, 255, 255, 0.2); }
.sp-rows .dot.lbl { background: transparent; border: 1px solid var(--accent); }
.sp-rows b { font-size: 14px; color: var(--fg); } .sp-rows b em { font-style: normal; color: var(--accent); }
.sp-rows p { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--fg-dim); }
.sp-note { color: var(--fg-dim); font-size: 14px; }
.sp-foot { font-size: 12px; color: var(--fg-mute); line-height: 1.6; }
.sp-foot a { color: var(--accent); text-decoration: none; font-size: 14px; }
@media (min-width: 761px) { .sp-sheet { border-radius: 22px 22px 0 0; } .sp-body { padding-left: 26px; padding-right: 26px; } }
@media (prefers-reduced-motion: reduce) { .wd { animation: none; opacity: 1; filter: none; transform: none; } .sp-sheet { transition: none !important; } }
.sp-rows .dot.m2 { background: var(--accent); box-shadow: 0 0 8px rgba(255, 214, 10, .5); } .sp-rows .dot.m1 { background: rgba(255, 214, 10, .5); }
.sp-rows .dot.m0 { background: #8a8a84; } .sp-rows .dot.m-1 { background: #ff8a85; } .sp-rows .dot.m-2 { background: var(--risk); }

/* ---------- report panel v2 (2026-11-25): price chart, closed questions, 60 black / 30 white / 10 yellow ---------- */
.sp-t, .sp-score > b { text-shadow: none; }
.sp-n, .sp-px em, .sp-list ul, .sp-rows p { color: var(--fg); }
.sp-px em { font-size: 13px; }
.sp-list.brk h3 { color: var(--fg); }
.sp-chart { margin-top: 12px; }
.sp-chart svg.sp-psvg { width: 100%; height: 150px; display: block; overflow: visible; }
.sp-ch-ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--fg-mute); }
.sp-rng { display: flex; gap: 4px; margin-top: 10px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.sp-rng button { flex: 1; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--fg); font: 600 13px var(--font); cursor: pointer; }
.sp-rng button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.16); }
.sp-ln { animation: h4Fade .5s ease both; }
/* row dots by band */
.sp-rows .dot { background: transparent; border: 1.5px solid var(--fg); box-shadow: none; }
.sp-rows .dot.yes { background: var(--accent); border-color: var(--accent); }
.sp-rows .dot.mixed { border-color: var(--accent); }
.sp-rows .dot.none { border-style: dashed; border-color: rgba(255, 255, 255, 0.4); }
/* questions: closed by default */
.sp-qs-all { display: grid; gap: 0; }
.sp-q { border-top: 1px solid rgba(255, 255, 255, 0.1); gap: 0; }
.sp-qh { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto 14px; align-items: center; gap: 10px;
  padding: 14px 0; border: 0; background: transparent; color: var(--fg); text-align: left; cursor: pointer; font: inherit; }
.sp-qn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--accent-ink); background: var(--accent); }
.sp-qt { min-width: 0; display: grid; gap: 2px; }
.sp-qt b { font-size: 17px; letter-spacing: -0.05em; }
.sp-qt small { font-size: 12.5px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-qs { font-size: 16px; white-space: nowrap; } .sp-qs small { color: var(--fg-mute); font-size: 11px; margin-left: 1px; }
.sp-qh .qb > span { width: 11px; height: 11px; }
.sp-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg); transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.sp-q.open .sp-chev { transform: rotate(-135deg) translateY(-2px); }
.sp-qb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.sp-qb > div { overflow: hidden; min-height: 0; }
.sp-q.open .sp-qb { grid-template-rows: 1fr; }
.sp-q.open .sp-qb > div { padding-bottom: 10px; }
.sp-qb .sp-rows { margin-top: 0; }
.sp .qb > .qb-yes { box-shadow: none; }
.gsearch-ico { z-index: 1; }

/* ---------- 2026-11-25: white bird logo, short board, watchlist rows, scrolled top bar (Midas-like) ---------- */
.brand-mark.brand-white { width: 30px; height: 30px; border-radius: 0; background: none; object-fit: contain; }
.bd-tog { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-shadow: inherit; cursor: pointer; }
.chev-s { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.bd-tog[aria-expanded="true"] .chev-s, .wl-list.open .wl-row .chev-s { transform: rotate(-135deg) translateY(-1px); }
.rboard.short .trow:nth-child(n+7) { display: none; }      /* child 1 is the header row: rows 1–5 stay */
.wls { border-top: 1px solid var(--line-soft); }
.wl-list { border-bottom: 1px solid var(--line-soft); }
.wl-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 14px; align-items: center; gap: 14px; padding: 14px 0;
  border: 0; background: none; color: var(--fg); text-align: left; cursor: pointer; font: inherit; }
.wl-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); }
.wl-ic img { width: 22px; height: 22px; }
.wl-nm { display: grid; gap: 2px; min-width: 0; }
.wl-nm b { font-size: 17px; letter-spacing: -0.03em; }
.wl-nm small { font-size: 13px; color: var(--fg-mute); }
.wl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.wl-body > div { overflow: hidden; min-height: 0; }
.wl-list.open .wl-body { grid-template-rows: 1fr; }
.wl-body .srows { border-top: 1px solid var(--line-soft); margin-left: 58px; }
.wl-body .srows .srow:last-child, .wl-body .wl-erow:last-child { border-bottom: 0; }
@media (max-width: 520px) { .wl-body .srows { margin-left: 0; } }
/* top bar: after scrolling, no divider; the content under it fades to black and blurs (falls back to a plain fade) */
.topbar { transition: border-color .25s, background-color .25s; }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -44px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 62%, rgba(0, 0, 0, 0) 100%); }
.topbar.scrolled { border-bottom-color: transparent; background-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar.scrolled::before { opacity: 1; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .topbar::before { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
}
/* M1.3 Caution under Q1: open = yellow outline (score not affected); confirmed = red text, no box (Q1 held at 4) */
.sp-cau { margin: -4px 0 12px 36px; display: grid; gap: 4px; }
.sp-cau.open { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--accent); }
.sp-cau b { font-size: 13.5px; color: var(--fg); }
.sp-cau.open b { color: var(--accent); }
.sp-cau.confirmed b, .sp-cau.confirmed p { color: var(--risk); }
.sp-cau p { font-size: 13.5px; line-height: 1.5; color: var(--fg); margin: 0; }
.sp-cau a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 2026-11-26 fixes: 4 Questions intro, watchlist rows, portfolio search ---------- */
/* The 4 Questions, short, under the search. No box: hairlines only. Closed state kept in localStorage "tc.qintro". */
.qi { margin: 4px 0 26px; border-bottom: 1px solid var(--line-soft); }
.qi-tog { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.qi-tog[aria-expanded="true"] .chev-s { transform: rotate(-135deg) translateY(-1px); }
.qi-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.qi-body > div { overflow: hidden; min-height: 0; }
.qi.open .qi-body { grid-template-rows: 1fr; }
.qi-list { list-style: none; margin: 0; padding: 0 0 12px; }
.qi-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.qi-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--accent-ink, #000); background: var(--accent); }
.qi-t { min-width: 0; display: flex; flex-direction: column; }
.qi-t b { font-weight: 600; color: var(--fg); font-size: 15px; }
.qi-t small { color: var(--fg-dim); font-size: 13px; letter-spacing: -0.02em; }
.qi-w { color: var(--fg); font-size: 13px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .qi-body { transition: none; } }
/* watchlist rows use the board's row */
.wl-body .srows .wlboard { border-top: 0; }
.wlboard .trow:last-child { border-bottom: 0; }
/* portfolio: ticker field with suggestions, storage note */
.mp-tw { position: relative; min-width: 0; }
.mp-tw .suggest { top: 50px; left: 0; right: 0; z-index: 30; }
.mp-save { margin: 14px 0 0; color: var(--fg); font-size: 14px; max-width: 620px; }
.sp-src { margin: 12px 0 0; color: var(--fg-dim); font-size: 12px; }

/* ---------- report panel context (2026-11-26): key figures, next report, folds, score history, what changed, breakdown ---------- */
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin: 14px 0 0; }
.sp-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.sp-stats dt { color: var(--fg-dim); font-size: 13px; letter-spacing: -0.02em; white-space: nowrap; }
.sp-warn { margin: 10px 0 0; color: var(--fg-dim); font-size: 13px; line-height: 1.45; letter-spacing: -0.01em; }
.sp-stats dd { margin: 0; color: var(--fg); font-size: 14px; white-space: nowrap; }
.sp-next { margin: 10px 0 0; color: var(--fg); font-size: 13px; letter-spacing: -0.02em; }
.sp-next:empty { display: none; }
.sp-fold { border-top: 1px solid var(--line-soft); }
.sp-fold:last-of-type { border-bottom: 1px solid var(--line-soft); }
.sp-fh { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 16px; cursor: pointer; text-align: left; }
.sp-fh[aria-expanded="true"] .chev-s { transform: rotate(-135deg) translateY(-1px); }
.sp-fb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.sp-fb > div { overflow: hidden; min-height: 0; }
.sp-fold.open .sp-fb { grid-template-rows: 1fr; }
.sp-fold.open .sp-fb > div { padding-bottom: 14px; }
.sp-hsvg { display: block; width: 100%; height: auto; }
.sp-hgrid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.sp-hax { fill: var(--fg-dim); font-size: 10px; font-family: inherit; }
.sp-small { margin: 8px 0 0; color: var(--fg-dim); font-size: 12px; letter-spacing: -0.02em; }
.sp-chg { list-style: none; margin: 8px 0 0; padding: 0; }
.sp-chg li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.sp-chg li:last-child { border-bottom: 0; }
.sp-chg li > span { min-width: 0; display: flex; flex-direction: column; }
.sp-chg b { color: var(--fg); font-weight: 600; font-size: 14px; }
.sp-chg small { color: var(--fg-dim); font-size: 13px; }
.sp-chg em { font-style: normal; color: var(--fg); font-size: 13px; white-space: nowrap; }
.sp-why { margin: 0 0 8px; color: var(--fg-dim); font-size: 13px; letter-spacing: -0.02em; line-height: 1.45; overflow-wrap: anywhere; }
.sp-why b { color: var(--fg); font-weight: 600; }
@media (max-width: 360px) { .sp-stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sp-fb { transition: none; } }

/* 2026-11-28: tighter 4 Questions page, round search, market report window */
.q4page { gap: 14px; }
.q4page .qi { margin: 0; }
.q4h-menu { display: flex; gap: 8px; }
.q4h-mr svg { width: 18px; height: 18px; fill: none; }
.gsearch input { border-radius: 999px; }
.mr { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.mr-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .25s ease; }
.mr-card { position: relative; width: min(100%, 380px); max-height: min(78vh, 620px); overflow-y: auto; padding: 22px 20px 18px; border-radius: 24px;
  background: rgba(28, 28, 30, 0.78); border: 1px solid rgba(255, 255, 255, 0.10); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  transform: translateY(12px) scale(.97); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.mr.in .mr-scrim { opacity: 1; }
.mr.in .mr-card { transform: none; opacity: 1; }
.mr-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.10); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.mr-eye { margin: 0 0 6px; font-size: 13px; color: var(--fg-dim); }
.mr-h { margin: 0 40px 14px 0; display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.04em; color: var(--fg); }
.mr-lead { margin: 0 0 16px; font-size: 17px; line-height: 1.4; color: var(--fg); font-weight: 600; letter-spacing: -0.02em; }
.mr-row { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mr-row h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--fg); }
.mr-row p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fg); }
.mr-foot { margin: 12px 0 0; font-size: 12px; color: var(--fg-dim); }
html.mr-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mr-scrim, .mr-card { transition: none; } }

/* 2026-11-28: score ring on the report panel chart (yellow only) */
.sp-chart { position: relative; }
.sp-ring { position: absolute; top: 0; right: 0; z-index: 2; width: 76px; height: 76px; display: grid; place-items: center; }
.sp-head .sp-ring { position: relative; top: auto; right: auto; margin-left: auto; margin-right: 8px; }
.sp-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sp-ring-tr { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 4; }
.sp-ring-v { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); animation: ringIn 1.1s cubic-bezier(.2, .8, .2, 1) .25s forwards; }
@keyframes ringIn { to { stroke-dashoffset: var(--o); } }
.sp-ring b { position: relative; font-size: 21px; font-weight: 600; color: var(--fg); letter-spacing: -0.03em; }
@media (prefers-reduced-motion: reduce) { .sp-ring-v { animation: none; stroke-dashoffset: var(--o); } }
.sp-chart:has(.sp-ring) { padding-top: 82px; }
/* 2026-11-28: no header line; no news strip in the report; soft blurred edges instead of hard cuts */
.topbar, .topbar.scrolled { border-bottom: 0 !important; }
.sp-news, .sp-sheet.is-full .sp-news { display: none !important; }
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(56px + env(safe-area-inset-bottom)); z-index: 15; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent); mask-image: linear-gradient(to top, #000 30%, transparent); }
.q4h-mr { position: relative; }
.q4h-mr.unread::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #000; }
/* soft edges on the report: the content itself fades out (no overlay, no hard cut); top only after scrolling */
.sp-body { --ft: 0px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ft), #000 calc(100% - 64px), transparent 100%); }
.sp-sheet.scrolled .sp-body { --ft: 48px; }
/* Performance tab + reports (2026-11-28) */
.perf { gap: 22px; }
.pf-eye { font-size: 12px; font-weight: 600; color: var(--fg-mute); letter-spacing: 0.02em; margin-bottom: 6px; }
.pf-box { display: grid; gap: 10px; }
.pf-leg { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.pf-leg span { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-dim); }
.pf-leg i { width: 14px; height: 2px; border-radius: 2px; background: var(--fg-dim); }
.pf-leg .lg-y i { background: var(--accent); } .pf-leg .lg-y b { color: var(--accent); } .pf-leg b { color: var(--fg); font-weight: 600; }
.pf-svg { width: 100%; height: 220px; overflow: visible; }
.pf-4q, .pf-spy { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pf-4q { stroke: var(--accent); stroke-width: 2.2; } .pf-spy { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.4; }
.pf-t { fill: var(--fg-mute); font-size: 12px; }
.pf-note { font-size: 13px; color: var(--fg-mute); line-height: 1.5; }
.pf-h { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 4px; }
.rp-row { display: grid; grid-template-columns: 92px 1fr 14px; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--fg); text-decoration: none; }
.rp-d { font-size: 13px; color: var(--fg-mute); } .rp-t { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.rp-page { max-width: 680px; }
.rp-back { display: inline-block; margin: 4px 0 18px; color: var(--fg-dim); text-decoration: none; font-size: 15px; font-weight: 600; }
.rp-h { font-size: clamp(30px, 7vw, 40px); font-weight: 600; line-height: 1.08; letter-spacing: -0.045em; }
.rp-dek { margin-top: 10px; font-size: 17px; color: var(--fg-dim); line-height: 1.45; }
.rp-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 8px; }
.rp-box { display: grid; justify-items: center; gap: 9px; }
.rp-art .rp-box > span { width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--accent); display: grid; place-items: center; color: #000; }
.rp-box svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rp-art .rp-box.rp-qm > span { background: transparent; border: 2px solid var(--accent); color: var(--accent); font-size: clamp(28px, 8vw, 44px); font-weight: 600; }
.rp-art .rp-box > b { position: static;  font-size: 12px; font-weight: 600; color: var(--fg-dim); }
.rp-text { margin-top: 18px; }
.rp-text p { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); margin-top: 14px; }
.rp-text p b { color: var(--fg); }
.rp-text h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; margin-top: 30px; }
.rp-text .rp-fine { font-size: 13px; color: var(--fg-mute); margin-top: 28px; }
.rp-row .chev-s { transform: rotate(-45deg); }
.rp-art .rp-box { position: relative; min-width: 0; }
/* four tabs fit on a phone */
@media (max-width: 560px) { .tabs-track { justify-content: space-between; } .tabs-track a { padding-left: 10px; padding-right: 10px; font-size: 14px; letter-spacing: -0.01em; } }
@media (max-width: 380px) { .tabs-track a { padding-left: 8px; padding-right: 8px; font-size: 13.5px; } }
/* 2026-11-28 evening: smoother question rows; the half-open panel never hands the gesture to the browser */
.sp-qb { display: block; height: 0; overflow: hidden; transition: height .34s cubic-bezier(.2, .8, .2, 1); contain: layout paint; }
.sp-q.open .sp-qb { grid-template-rows: none; }
.sp-qb > div { overflow: visible; padding-bottom: 10px; opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity .28s ease, transform .34s cubic-bezier(.2, .8, .2, 1); }
.sp-q.open .sp-qb > div { opacity: 1; transform: none; }
.sp-sheet:not(.is-full) .sp-body { touch-action: none; }
.sp-sheet.is-full .sp-body { touch-action: pan-y; }
/* market report: anchored near the top (rows that load later grow downward, nothing jumps); quiet rise + fade */
.mr { place-items: start center; padding-top: calc(env(safe-area-inset-top) + 12vh); }
.mr-card { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); transition: opacity .32s cubic-bezier(.2, .8, .2, 1), transform .42s cubic-bezier(.2, .8, .2, 1); will-change: transform, opacity; }
.mr-scrim { transition: opacity .32s ease; }
.mr.in .mr-card { opacity: 1; transform: none; }
.mr-row { animation: mrRow .3s ease both; }
@keyframes mrRow { from { opacity: 0; } to { opacity: 1; } }
.tabs-track, .tabs-track a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.tabs-track a { -webkit-touch-callout: none; }
/* one look for every pop-up: the report panel's grey glass, and the same blurred page behind it */
.npanel { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: none; opacity: 0; transition: opacity .3s ease; }
.npanel.in { opacity: 1; }
.npanel-in, .bell-panel { background: linear-gradient(180deg, rgba(40, 40, 37, 0.86), rgba(22, 22, 21, 0.92)); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5); }
.npanel-in { transform: translate3d(0, 18px, 0); transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
.npanel.in .npanel-in { transform: none; }
.np-rep { background: none; border: 0; padding: 0; font: 600 15px/1.3 var(--font); color: var(--accent); cursor: pointer; }
html.bell-on body::before { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: npFade .25s ease both; }
@keyframes npFade { from { opacity: 0; } to { opacity: 1; } }
html.bell-on .topbar { z-index: 50; }
/* Performance: page and chart come in like the rest of the site */
.perf > *, .rp-page > * { animation: nIn .55s cubic-bezier(.2, .8, .2, 1) both; }
.perf > *:nth-child(2) { animation-delay: .08s; } .perf > *:nth-child(3) { animation-delay: .16s; }
.pf-lines { animation: h4Reveal 1.4s cubic-bezier(.4, 0, .2, 1) .25s both; }
.pf-fill { opacity: 0; animation: h4Fade .8s ease 1.2s forwards; }
.rp-row { animation: rowIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.3s + var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) { .perf > *, .rp-page > *, .pf-lines, .pf-fill, .rp-row { animation: none; opacity: 1; } }
/* Report typography: one clear hierarchy (eyebrow > title > dek > lead > subheads > body > fine print) */
.rp-page .pf-eye { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.rp-h { font-size: clamp(32px, 8.5vw, 44px); font-weight: 600; letter-spacing: -0.05em; color: var(--fg); }
.rp-dek { font-size: 18px; font-weight: 400; color: var(--fg-dim); letter-spacing: -0.01em; }
.rp-text p { font-size: 17px; font-weight: 400; line-height: 1.65; color: rgba(255, 255, 255, 0.72); letter-spacing: -0.005em; margin-top: 16px; }
.rp-text p.rp-lead { font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--fg); letter-spacing: -0.02em; margin-top: 0; }
.rp-text p b { font-weight: 600; color: var(--fg); }
.rp-text h2 { font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--fg); letter-spacing: -0.04em; margin-top: 40px; }
.rp-text h2 + p { margin-top: 10px; }
.rp-text .rp-fine { font-size: 13px; font-weight: 400; color: var(--fg-mute); margin-top: 36px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
/* ---------- Portfolio (2026-11-28 rebuild): summary, 4Q card, holdings with swipe actions, reports ahead ---------- */
.mp2 { gap: 26px; }
.mp2 > * { animation: nIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.mp2-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp2-plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#mp { display: grid; gap: 30px; }
#mp > section { animation: nIn .5s cubic-bezier(.2, .8, .2, 1) both; }
#mp > section:nth-child(2) { animation-delay: .06s; } #mp > section:nth-child(3) { animation-delay: .12s; } #mp > section:nth-child(4) { animation-delay: .18s; }
.mp2-total { font-size: clamp(40px, 11vw, 56px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; color: var(--fg); }
.mp2-pl { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.mp2-pl span { display: grid; gap: 3px; }
.mp2-pl small { font-size: 13px; color: var(--fg-mute); font-weight: 500; }
.mp2-pl b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.mp2-pl b i { font-style: normal; font-size: 14px; opacity: .8; margin-left: 2px; }
.mp2-pl .up { color: var(--fg); } .mp2-pl .dn { color: var(--risk); } .mp2-dim { color: var(--fg-mute); }
.mp2-note, .mp2-hint { margin-top: 8px; font-size: 12.5px; color: var(--fg-mute); }
.mp2-h { font-size: 15px; font-weight: 600; color: var(--fg-dim); margin-bottom: 10px; letter-spacing: -0.01em; }
.mp2-h small { color: var(--fg-mute); font-size: 13px; margin-left: 4px; }
.mp2-sc { display: flex; align-items: baseline; gap: 8px; }
.mp2-sc b { font-size: 44px; font-weight: 600; letter-spacing: -0.06em; color: var(--accent); line-height: 1; }
.mp2-sc small { font-size: 15px; color: var(--fg-mute); margin-right: 10px; }
.mp2-sc .qb { align-self: center; gap: 4px; } .mp2-sc .qb > span { width: 13px; height: 13px; }
.mp2-weak { margin-top: 10px; font-size: 15px; color: var(--fg-dim); line-height: 1.45; } .mp2-weak b { color: var(--fg); font-weight: 600; }
.mp2-list { display: grid; }
.mp2-row { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.07); transition: opacity .25s ease, max-height .3s ease; max-height: 120px; }
.mp2-row.gone { opacity: 0; max-height: 0; }
.mp2-fg { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto 104px; align-items: center; gap: 12px; padding: 14px 0;
  background: #000; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.mp2-tk { display: grid; gap: 3px; min-width: 0; } .mp2-tk b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.mp2-tk small { font-size: 13px; color: var(--fg-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp2-fg .qb { gap: 3px; } .mp2-fg .qb > span { width: 10px; height: 10px; }
.mp2-v { display: grid; justify-items: end; gap: 3px; font-size: 16px; font-weight: 600; }
.mp2-v small { font-size: 13px; font-weight: 500; } .mp2-v small.up { color: var(--fg-dim); } .mp2-v small.dn { color: var(--risk); }
.mp2-acts { position: absolute; inset: 0 0 0 auto; display: flex; width: 148px; }
.mp2-acts button { flex: 1; border: 0; font: 600 14px/1 var(--font); color: var(--fg); background: rgba(255, 255, 255, 0.12); cursor: pointer; }
.mp2-acts button.rm { background: rgba(255, 255, 255, 0.2); }
.mp2-next { display: grid; }
.mp2-nr { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: none; color: var(--fg); font: 500 15px/1.2 var(--font); cursor: pointer; text-align: left; }
.mp2-nr b { font-weight: 600; } .mp2-nr span { color: var(--fg-dim); font-size: 14px; }
.mp2-empty { padding: 28px 0; display: grid; gap: 18px; } .mp2-empty p { font-size: 17px; color: var(--fg-dim); line-height: 1.5; }
.mp2-eb { display: flex; gap: 10px; flex-wrap: wrap; }
.mp2-ed .mr-card { display: grid; gap: 14px; overflow: visible; }
.mp2-ed .mr-eye { margin: 0; } .mp2-ed .mr-h { margin: 0; }
.mp2-f { display: grid; gap: 6px; font-size: 13px; color: var(--fg-dim); font-weight: 500; }
.mp2-f em { font-style: normal; color: var(--fg-mute); }
.mp2-f input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.06); color: var(--fg); font: 600 17px/1 var(--font); outline: none; }
.mp2-f input:focus { border-color: rgba(255, 214, 10, 0.6); }
.mp2-f .mp-tw { position: relative; display: block; }
.mp2-f .suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 3; }
.mp2-save { width: 100%; height: 48px; }
.mp2-del { border: 0; background: none; color: var(--fg-mute); font: 600 14px/1 var(--font); padding: 6px 0; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .mp2 > *, #mp > section { animation: none; } }
.mp2 .mp-save { font-size: 12.5px; color: var(--fg-mute); font-weight: 500; line-height: 1.5; }
.mp2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp2-px { margin: -6px 0 0; font-size: 12.5px; color: var(--fg-mute); min-height: 15px; }
.mp2-f input:disabled { opacity: .45; }
/* swipe actions like Apple Stocks: round buttons with a label */
.mp2-acts { width: 164px; align-items: center; justify-content: space-evenly; gap: 0; }
.mp2-acts button { flex: none; width: 70px; display: grid; justify-items: center; gap: 5px; background: none; color: var(--fg-dim); font: 500 12px/1 var(--font); }
.mp2-acts i { width: 58px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: var(--fg); }
.mp2-acts button.rm { background: none; } .mp2-acts button.rm i { background: var(--risk); color: #fff; }
.mp2-acts svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mp2-acts button:active i { transform: scale(.94); }
/* value chart */
.mp2-cp { font-size: 30px; font-weight: 600; letter-spacing: -0.05em; margin-bottom: 8px; } .mp2-cp.up { color: var(--fg); } .mp2-cp.dn { color: var(--risk); }
.mp2-cp small { font-size: 15px; color: var(--fg-dim); letter-spacing: -0.01em; margin-left: 6px; }
.mp2-svg { width: 100%; height: 170px; overflow: visible; display: block; }
.mp2-ln { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; animation: h4Reveal 1.1s cubic-bezier(.4, 0, .2, 1) both; }
.mp2-area { opacity: 0; animation: h4Fade .6s ease .8s forwards; }
.mp2-base { stroke: rgba(255, 255, 255, 0.2); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.mp2-dot { fill: var(--accent); opacity: 0; animation: h4Fade .3s ease 1s forwards; }
.mp2-ax { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-mute); margin-top: 6px; }
.mp2-rng { margin-top: 12px; }
.mp2-wait { font-size: 15px; color: var(--fg-dim); }
/* iOS date field: keep it inside its box */
.mp2-f { min-width: 0; }
.mp2-f input { min-width: 0; max-width: 100%; box-sizing: border-box; display: block; }
.mp2-f input[type="date"] { -webkit-appearance: none; appearance: none; text-align: left; line-height: 46px; }
.mp2-f input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.mp2-f input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; }
.sp-rng button { min-width: 0; padding-left: 0; padding-right: 0; }
/* account button + settings */
.acct { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--fg); margin-left: 10px; }
.acct svg, .st-av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.st-page { gap: 22px; } .st-page > * { animation: nIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.st-h { font-size: 13px; font-weight: 600; color: var(--fg-mute); margin: 0 0 8px 4px; letter-spacing: .02em; }
.st-card { border-radius: 18px; background: linear-gradient(180deg, rgba(40, 40, 37, 0.6), rgba(22, 22, 21, 0.7)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); padding: 4px 16px; }
.st-acct { display: flex; align-items: center; gap: 14px; padding: 16px; }
.st-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 214, 10, 0.14); color: var(--accent); flex: none; }
.st-av svg { width: 26px; height: 26px; }
.st-acct b, .st-row b, .st-cta b { display: block; font-size: 16px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.st-acct small, .st-row small, .st-cta small { display: block; margin-top: 3px; font-size: 13px; color: var(--fg-mute); font-weight: 500; line-height: 1.4; }
.st-cta { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; text-decoration: none; background: rgba(255, 214, 10, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.35); }
.st-cta b { color: var(--accent); } .st-cta .chev-s, .st-row .chev-s { transform: rotate(-45deg); flex: none; opacity: .6; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; text-decoration: none; }
.st-card > .st-row:last-of-type { border-bottom: 0; }
.st-btn { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; }
.st-warn { color: var(--risk) !important; }
.st-sw { position: absolute; opacity: 0; pointer-events: none; }
.st-row i:not(.chev-s) { flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background .25s; }
.st-row i:not(.chev-s)::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.st-sw:checked + i { background: var(--accent); } .st-sw:checked + i::after { transform: translateX(20px); }
.st-note, .st-msg { font-size: 12.5px; color: var(--fg-mute); padding: 4px 0 12px; } .st-msg:empty { display: none; }
.al-t { border: 0; background: none; padding: 0; text-align: left; font: 600 14px/1.4 var(--font); color: var(--fg); cursor: pointer; }
/* METHOD §10g data notes: "!" next to a score scored without some data (yellow, not red: missing data is not a risk) */
.fl { font-size: 0.6em; font-weight: 700; color: #ffd60a; margin-left: 2px; vertical-align: super; }
.sp-fl { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border: 1.5px solid #ffd60a; border-radius: 50%; color: #ffd60a; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; }
.sp-flag { margin: 0 0 8px; color: var(--fg); font-size: 13px; letter-spacing: -0.02em; line-height: 1.45; }
.sp-flag b { color: #ffd60a; margin-right: 4px; }
.sp-chart.ring-only { padding-top: 0; min-height: 80px; }
/* board tabs + sort */
.bd-head { display: flex; align-items: center; gap: 10px; }
.bd-head .section-title { margin: 0; flex: 1; }
.bd-sort select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center / 12px; color: var(--fg); font: 600 13px/1 var(--font); cursor: pointer; }
.bd-tabs { display: flex; gap: 6px; margin: 12px 0 4px; }
.bd-tabs button { height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--fg-dim); font: 600 14px/1 var(--font); cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.bd-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--fg); }
.bd-more { display: block; width: 100%; margin-top: 10px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.06); color: var(--fg); font: 600 15px/1 var(--font); cursor: pointer; }
.bd-more small { color: var(--fg-mute); font-weight: 500; margin-left: 6px; }
#bd-body .rboard .trow { animation-delay: calc(min(var(--i, 0), 12) * 30ms); }
.bd-less { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--fg-mute); font: 600 13px/1 var(--font); cursor: pointer; padding: 8px; }
.bd-less { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--fg-dim); font: 600 14px/1 var(--font); cursor: pointer; padding: 8px; }
.sp-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.mp2-ed { z-index: 120; }
@media (max-width: 420px) { .sp-btns .sp-wl { padding-left: 12px; padding-right: 12px; font-size: 13px; } }
/* header: yellow mark, bigger round buttons, tabs that never move, glass search */
.brand-mark.brand-white { width: 34px; height: 34px; }
.topbar-row { align-items: center; }
.bell, .acct { align-self: center; }
.bell-btn, .acct { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--fg);
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.bell-btn svg { width: 22px; height: 22px; } .acct svg { width: 22px; height: 22px; }
.acct { margin-left: 10px; }
.bell-dot { top: 9px; right: 10px; }
@media (max-width: 640px) { .bell { margin-left: auto; } }
@media (max-width: 560px) {
  .tabs-track { width: 100%; overflow: hidden !important; justify-content: space-between; scroll-behavior: auto; }
  .tabs-track a { flex: 0 1 auto; }
}
.gsearch input { height: 46px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid transparent; border-color: rgba(255, 255, 255, 0.16) rgba(255, 255, 255, 0.07) rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.25); }
.gsearch input:focus { border-color: rgba(255, 214, 10, 0.55) rgba(255, 214, 10, 0.25) rgba(255, 214, 10, 0.12); }
.gsearch-ico { top: 15px; left: 15px; } .gsearch input { padding-left: 42px; }
/* search: hairline edge, softer highlight */
.gsearch input { height: 44px; border: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.09); }
.gsearch input:focus { box-shadow: inset 0 0.5px 0 rgba(255, 214, 10, 0.5), inset 0 0 0 0.5px rgba(255, 214, 10, 0.3); }
.gsearch-ico { top: 14px; }
/* chart reveals start most of the way drawn: the last stretch draws in, the rest fades in (no long left-to-right wait) */
@keyframes h4Reveal { from { clip-path: inset(0 28% 0 0); opacity: .35; } 35% { opacity: 1; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes drawLn { from { stroke-dashoffset: .3; opacity: .4; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes qaLine { from { stroke-dashoffset: .3; opacity: .4; } to { stroke-dashoffset: 0; opacity: 1; } }
.rspark .ln { stroke-dashoffset: .3; animation-duration: .8s; }
.h4-lines { animation-duration: .9s; animation-delay: .05s; }
.pf-lines { animation-duration: .9s; animation-delay: .1s; }
.mp2-ln { animation-duration: .8s; }
.pf-fill { animation-delay: .5s; } .mp2-area { animation-delay: .45s; }
.sp-ring-v { animation-duration: .9s; animation-delay: .1s; }
@keyframes ringIn { from { stroke-dashoffset: calc(var(--o) + (var(--c) - var(--o)) * .3); } to { stroke-dashoffset: var(--o); } }
.sp-ring-v { animation-fill-mode: both; }
/* bell + account sit as a pair; the bell panel opens below the buttons */
.acct { margin-left: -10px; }
@media (max-width: 640px) { .bell-panel { top: calc(72px + env(safe-area-inset-top)); max-height: calc(100vh - 96px - env(safe-area-inset-top)); } }
.bell-panel { background: linear-gradient(180deg, rgba(40, 40, 37, 0.97), rgba(24, 24, 23, 0.98)); }
/* rises are yellow, falls red: everywhere */
.mp-stats b.up, .mp2-pl .up, .mp2-v small.up, .mp2-cp.up { color: var(--accent); }
.mp2-cp small { color: inherit; opacity: .75; }
@media (max-width: 640px) { .bell-panel { max-height: 70vh; } }
/* reveals: already moving when they start, one steady pace, a soft stop (no speed-up / slow-down wave) */
@keyframes h4Reveal { from { clip-path: inset(0 28% 0 0); opacity: .7; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes drawLn { from { stroke-dashoffset: .3; opacity: .7; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes qaLine { from { stroke-dashoffset: .3; opacity: .7; } to { stroke-dashoffset: 0; opacity: 1; } }
.h4-lines, .pf-lines, .mp2-ln, .rspark .ln, .qa-line, .sp-ring-v { animation-timing-function: cubic-bezier(.33, .66, .66, 1); }
