/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #f8f7f4;
  --line: #e4e2dc;
  --line-strong: #d3d0c8;
  --text: #121211;
  --text-2: #52514e;
  --text-3: #6b6a65;  /* ≥4.5:1 on --bg for small muted text */
  --on-signal: #ffffff;  /* text on --up/--down buttons */
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-soft: #e5f1ec;
  --up: #0b7a0b;
  --up-soft: #e3f3e3;
  --down: #c0302f;
  --down-soft: #fbe8e7;
  --warn: #8a5a00;
  --warn-soft: #fbf1dc;
  --grid: #ecebe6;
  --shadow: 0 1px 2px rgba(18, 18, 17, .04), 0 2px 8px rgba(18, 18, 17, .04);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111110; --surface: #1a1a19; --surface-2: #212120; --line: #2c2c2a; --line-strong: #3a3a37;
    --text: #f0efec; --text-2: #c3c2b7; --text-3: #8f8e86;
    --accent: #5cc0a2; --accent-ink: #0d1f1a; --accent-soft: #1b2e28;
    --up: #4cc94c; --up-soft: #17301a; --down: #f07070; --down-soft: #3a1c1c; --on-signal: #0d140d;
    --warn: #e0b360; --warn-soft: #2e2615; --grid: #262624;
    --shadow: none;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111110; --surface: #1a1a19; --surface-2: #212120; --line: #2c2c2a; --line-strong: #3a3a37;
  --text: #f0efec; --text-2: #c3c2b7; --text-3: #8f8e86;
  --accent: #5cc0a2; --accent-ink: #0d1f1a; --accent-soft: #1b2e28;
  --up: #4cc94c; --up-soft: #17301a; --down: #f07070; --down-soft: #3a1c1c; --on-signal: #0d140d;
  --warn: #e0b360; --warn-soft: #2e2615; --grid: #262624;
  --shadow: none;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--text-3); }
.eyebrow { font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- app bar ---------- */
.appbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.appbar-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: var(--accent-ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { color: var(--text-2); text-decoration: none; padding: 7px 12px; border-radius: 99px; font-size: .92rem; font-weight: 550; white-space: nowrap; }
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }

.page { max-width: 1240px; margin: 0 auto; padding: 28px 16px 56px; }

/* ---------- day header ---------- */
.dayhead { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.dayhead h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 750; margin: 6px 0 6px; letter-spacing: -0.02em; }
.sub { color: var(--text-2); }
.pager { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--text); color: var(--bg);
  text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; border: 0; cursor: pointer; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn:hover { opacity: .88; }

/* ---------- market strip ---------- */
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 10px; box-shadow: var(--shadow); min-width: 0; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tile-name { font-size: .82rem; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0 4px; letter-spacing: -0.01em; }
.tile-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asof { font-size: .76rem; color: var(--text-3); margin: 8px 2px 24px; }

.chg { display: inline-flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 650; padding: 2px 7px; border-radius: 6px;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg span { font-size: .62rem; }
.chg.up { color: var(--up); background: var(--up-soft); }
.chg.down { color: var(--down); background: var(--down-soft); }

.spark { width: 84px; height: 30px; flex: none; overflow: visible; }
.spark.sm { width: 64px; height: 26px; }
.spark .line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spark.up .line { stroke: var(--up); } .spark.down .line { stroke: var(--down); }
.spark .area { opacity: .14; } .spark.up .area { fill: var(--up); } .spark.down .area { fill: var(--down); }

.info { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-3);
  font-size: .68rem; font-weight: 700; font-style: italic; font-family: Georgia, serif; line-height: 1; padding: 0; cursor: help; flex: none;
  display: inline-grid; place-items: center; vertical-align: 1px; }
.info:hover { color: var(--text); border-color: var(--text-3); }
.tip { position: fixed; z-index: 100; max-width: 280px; background: var(--text); color: var(--bg); font-size: .8rem; line-height: 1.45;
  padding: 8px 10px; border-radius: 8px; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.tip b { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.col-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-title { font-size: 1.15rem; font-weight: 700; margin: 32px 2px 12px; }

/* ---------- brief ---------- */
.brief { padding: 24px 26px; }
.lede { font-size: 1.14rem; line-height: 1.6; margin-top: 8px; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.theme { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; }
.theme h3 { font-size: 1rem; margin-bottom: 6px; }
.theme p { font-size: .93rem; color: var(--text-2); }
.refs { margin-top: 8px; font-size: .8rem; }
.refs a { font-weight: 600; text-decoration: none; }
.concept { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.concept h3 { font-size: 1.15rem; margin: 4px 0 6px; }

/* ---------- story cards ---------- */
.ep { padding: 22px 26px; margin-bottom: 16px; scroll-margin-top: 80px; }
.ep-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: .85rem; flex: none; }
.s1 { background: var(--s1); } .s2 { background: var(--s2); } .s3 { background: var(--s3); } .s4 { background: var(--s4); }
.s5 { background: var(--s5); } .s6 { background: var(--s6); } .s7 { background: var(--s7); } .s8 { background: var(--s8); }
.ep-who { flex: 1; min-width: 0; }
.ep-src { font-weight: 650; font-size: .92rem; }
.ep-meta { font-size: .8rem; color: var(--text-3); }
.level { font-size: .72rem; font-weight: 650; text-transform: capitalize; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.level.intermediate { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.level.advanced { background: var(--warn-soft); color: var(--warn); }
.ep-title { font-size: 1.32rem; font-weight: 720; margin: 16px 0 4px; letter-spacing: -0.015em; }
.ep-orig { font-size: .85rem; color: var(--text-3); margin-bottom: 10px; }
.tldr { font-size: 1.03rem; color: var(--text); }
.ep h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 22px 0 10px; font-weight: 650; }
.h4-note { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 4px; }

.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.fig { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fig-v { font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.fig-c { font-size: .8rem; color: var(--text-2); line-height: 1.4; margin-top: 2px; }

.points { margin: 0; padding: 0; list-style: none; counter-reset: pt; }
.points li { counter-increment: pt; position: relative; padding-left: 34px; margin-bottom: 12px; }
.points li::before { content: counter(pt); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); font-size: .74rem; font-weight: 700; display: grid; place-items: center; color: var(--text-2); }
.pt { display: block; font-weight: 600; }
.why { display: block; color: var(--text-2); font-size: .94rem; margin-top: 2px; }

.lesson { background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; margin-top: 18px; }
.lesson p { margin-top: 4px; }
.ops { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .94rem; }
.ops li { margin-bottom: 6px; }
.terms { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.term { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.term dt { font-weight: 700; font-size: .94rem; }
.term dd { margin: 2px 0 0; font-size: .9rem; color: var(--text-2); }
.ex { display: block; font-size: .82rem; color: var(--text-3); margin-top: 4px; }
.ep-foot { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.ticker { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; }
.ticker:hover { border-color: var(--accent); color: var(--accent); }
.ticker.off { cursor: default; color: var(--text-3); font-weight: 600; border-style: dashed; }
.quality { font-size: .8rem; color: var(--text-3); }
.skipped { color: var(--text-3); font-size: .9rem; margin-top: 8px; }

/* ---------- sidebar ---------- */
.side { padding: 18px 18px 16px; }
.side-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.cos { list-style: none; margin: 0 -8px; padding: 0; }
.co-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; }
.co-row:hover { background: var(--surface-2); }
.cos li + li .co-row { border-top: 1px solid var(--line); border-radius: 0; }
.cos li + li .co-row:hover { border-radius: 10px; }
.co-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--text-2); flex: none; }
.co-logo.lg { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }
.co-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-name { font-weight: 650; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-sym { font-size: .78rem; color: var(--text-3); }
.mention { color: var(--accent); font-weight: 600; }
.co-px { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.co-price { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.side-note { font-size: .78rem; color: var(--text-3); margin-top: 8px; }
.mini-terms { margin: 0; }
.mini-terms dt { font-weight: 700; font-size: .9rem; margin-top: 10px; }
.mini-terms dt:first-child { margin-top: 0; }
.mini-terms dd { margin: 1px 0 0; font-size: .86rem; color: var(--text-2); }
.side-link { display: inline-block; margin-top: 12px; font-size: .86rem; font-weight: 600; text-decoration: none; }
.watch { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--text-2); }
.watch li { margin-bottom: 6px; }

/* ---------- company dialog ---------- */
.co-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--text); padding: 24px 26px; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.co-dialog::backdrop { background: rgba(10, 10, 10, .5); backdrop-filter: blur(3px); }
.dlg-head { display: flex; align-items: center; gap: 14px; }
.dlg-head > div { flex: 1; min-width: 0; }
.dlg-head h2 { font-size: 1.5rem; font-weight: 750; }
.close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.dlg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 18px 0 14px; }
.dlg-price .big { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dlg-price .cur { color: var(--text-3); font-weight: 600; margin-left: -6px; }
.dlg-price .chg { font-size: .95rem; padding: 4px 9px; align-self: center; }
.range { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.range button { border: 0; background: none; padding: 8px 14px; font-weight: 650; font-size: .88rem; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.range button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.range-chg { margin-left: auto; font-size: .86rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.range-chg.up { color: var(--up); } .range-chg.down { color: var(--down); }
.chart { position: relative; height: 240px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart.up .line { stroke: var(--up); } .chart.down .line { stroke: var(--down); }
.chart .area { opacity: .12; } .chart.up .area { fill: var(--up); } .chart.down .area { fill: var(--down); }
.chart .xhair { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart.up .dot { fill: var(--up); } .chart.down .dot { fill: var(--down); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin: 18px 0 0; }
.stats div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 8px; }
.stats dt { color: var(--text-2); font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.stats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; font-size: .9rem; }
.dlg-sec { margin-top: 22px; }
.dlg-sec h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 8px; }
.news, .links { list-style: none; margin: 0; padding: 0; }
.news li, .links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news a { display: block; font-weight: 600; color: var(--text); text-decoration: none; }
.news a:hover { color: var(--accent); }
.news .muted { font-size: .8rem; }
.dlg-foot { font-size: .76rem; color: var(--text-3); margin-top: 18px; }

/* ---------- other pages ---------- */
.page > h1 { font-size: 2rem; font-weight: 750; margin-bottom: 6px; letter-spacing: -0.02em; }
.page > h1 + .muted { margin-bottom: 20px; }
.gterm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.gterm h3 { margin-bottom: 4px; }
.gterm .ex { font-size: .88rem; }
.gterm .refs { margin-top: 8px; }
.search { width: 100%; max-width: 480px; padding: 11px 14px; font-size: 1rem; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); margin: 4px 0 18px; }
.arch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.arch ul { padding-left: 18px; margin: 8px 0 0; }
.sitefoot { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; font-size: .8rem; color: var(--text-3); border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .appbar-in { gap: 12px; }
  .brand span { display: none; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile-price { font-size: 1.1rem; }
  .spark { width: 60px; }
  .brief, .ep { padding: 18px 16px; }
  .co-dialog { padding: 18px 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .dlg-price .big { font-size: 1.9rem; }
}
.co-dialog:focus, .co-dialog:focus-visible { outline: none; }
.fig.long .fig-v { font-size: .95rem; font-weight: 650; line-height: 1.35; }

/* ---------- intro banner ---------- */
.small { font-size: .82rem; font-weight: 500; letter-spacing: 0; }
.intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 24px; font-size: .95rem; color: var(--text-2); }
.intro > div { flex: 1; min-width: 260px; }
.intro strong { color: var(--text); margin-right: 4px; }

/* ---------- what's hot ---------- */
.hot { margin-bottom: 8px; }
.hot-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 2px 12px; }
.hot-head .section-title { margin: 0; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); }
.hot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hot-card { position: relative; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.hot-card.lead { grid-column: 1 / -1; padding: 20px 22px 16px; }
.hot-card.lead h3 { font-size: 1.25rem; }
.hot-rank { position: absolute; top: 14px; right: 16px; font-size: .78rem; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.hot-card h3 { font-size: 1.02rem; font-weight: 700; padding-right: 22px; }
.hot-card p { font-size: .92rem; color: var(--text-2); }
.hot-why .eyebrow { margin-right: 4px; }
.hot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 8px; }
.hot-src { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; }
.hot-src a { font-weight: 600; text-decoration: none; }
.hot-src a::after { content: " ↗"; font-weight: 400; }
.hot + .section-title, .hot ~ .brief { margin-top: 8px; }
.col-main > .brief { margin-top: 24px; }

/* ---------- movers ---------- */
.mv-tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.mv-tabs button { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 4px 11px; font-size: .8rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.mv-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.mv-list { list-style: none; margin: 0; padding: 0; }
.mv-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mv-list li:last-child { border-bottom: 0; }
.mv-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- about & sources ---------- */
.about-hero { max-width: 760px; padding: 24px 0 12px; }
.about-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 14px; }
.about-hero .lede { color: var(--text-2); margin-bottom: 20px; }
.about-sec { margin-top: 40px; }
.about-sec h2 { font-size: 1.35rem; font-weight: 750; margin-bottom: 14px; }
.why-grid, .src-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.why, .src { padding: 16px 18px; }
.why h3, .src h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why p, .src p { font-size: .92rem; color: var(--text-2); }
.src .muted { margin-bottom: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.steps h3 { font-size: 1rem; margin-bottom: 2px; }
.steps p { font-size: .92rem; color: var(--text-2); }
.fine { max-width: 760px; padding-left: 18px; color: var(--text-2); }
.fine li { margin-bottom: 10px; }
.feed-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feed { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: .86rem; font-weight: 600; }
.sitefoot p + p { margin-top: 8px; }
@media (max-width: 640px) { .hot-grid { grid-template-columns: minmax(0, 1fr); } }

/* =================== everyday features =================== */
body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }

/* app bar tools */
.bar-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tool { height: 34px; min-width: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text-2); }
.tool:hover { color: var(--text); border-color: var(--line-strong); }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { fill: currentColor !important; stroke: none !important; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
@media (hover: none) { .pal-in .kbd { display: none; } } /* no Esc key on a phone */
.kbd { font-size: .7rem; font-weight: 650; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.streak { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--warn-soft);
  color: var(--warn); font-size: .9rem; font-variant-numeric: tabular-nums; }
.streak.pop { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* action bar */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 20px; }
.act { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; text-align: left; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease; }
a.act:hover, button.act:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.act b { display: block; font-size: .95rem; }
.act small { display: block; font-size: .8rem; color: var(--text-3); }
.act-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.act.primary { background: linear-gradient(135deg, #1f6f5c, #2a8f76); border-color: transparent; color: #fff; }
.act.primary small { color: rgba(255, 255, 255, .78); }
.act.primary .act-ic { background: rgba(255, 255, 255, .18); }
.act.progress { cursor: default; }
.ring { width: 40px; height: 40px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .6s ease; }

/* story card actions */
.ep-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share, .readbtn { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--text-2); }
.share:hover, .readbtn:hover { color: var(--text); border-color: var(--text-3); }
.readbtn .chk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .7rem; margin-right: 2px; }
.readbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.readbtn[aria-pressed="true"] .chk { border-color: transparent; background: rgba(255, 255, 255, .25); }
.ep.is-read { opacity: .72; }
.ep.is-read:hover { opacity: 1; }
.hot-foot .share { height: 26px; padding: 0 10px; font-size: .76rem; }

/* quiz */
.quiz { padding: 22px 26px; margin: 24px 0 16px; scroll-margin-top: 80px; }
.quiz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.quiz-head h2 { font-size: 1.25rem; margin-top: 4px; }
.quiz-score { font-size: 1.4rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.q { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.q-text { font-weight: 650; margin-bottom: 10px; display: flex; gap: 10px; }
.q-n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-size: .75rem; display: grid; place-items: center; flex: none; }
.q-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.q-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--surface-2); cursor: pointer; font-size: .92rem; line-height: 1.35; transition: border-color .15s, transform .1s; }
.q-opt:hover:not(:disabled) { border-color: var(--accent); }
.q-opt:active:not(:disabled) { transform: scale(.98); }
.q-opt:disabled { cursor: default; }
.q-key { width: 24px; height: 24px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: .72rem; font-weight: 800; display: grid; place-items: center; flex: none; }
.q-opt.right { border-color: var(--up); background: var(--up-soft); }
.q-opt.right .q-key { background: var(--up); color: var(--on-signal); border-color: var(--up); }
.q-opt.wrong { border-color: var(--down); background: var(--down-soft); }
.q-opt.wrong .q-key { background: var(--down); color: var(--on-signal); border-color: var(--down); }
.q.done .q-opt:not(.right):not(.wrong) { opacity: .55; }
.q-exp { margin: 10px 0 6px; font-size: .92rem; color: var(--text-2); }
.q-exp::before { content: attr(data-verdict) " "; font-weight: 750; }
.q.ok .q-exp::before { color: var(--up); } .q.no .q-exp::before { color: var(--down); }
.q.burst .q-opt.right { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }

/* mood gauge */
.gauge { position: relative; width: 200px; margin: 4px auto 0; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.g-track { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.g-fill { fill: none; stroke: url(#gg); stroke-width: 10; stroke-linecap: round; opacity: .9; }
.g-needle { stroke: var(--text); stroke-width: 3; stroke-linecap: round; transform-origin: 60px 60px; transition: transform 1s cubic-bezier(.3, 1.3, .5, 1); }
.g-hub { fill: var(--text); }
.g-read { text-align: center; margin-top: -2px; }
.g-score { display: block; font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.g-label { font-size: .85rem; font-weight: 650; color: var(--text-2); }
.g-parts { list-style: none; margin: 12px 0 0; padding: 0; font-size: .82rem; }
.g-parts li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.g-parts b { font-variant-numeric: tabular-nums; color: var(--text); }

/* watchlist stars + earnings */
.co-li { position: relative; }
.co-li .co-row { padding-right: 38px; }
.star { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none;
  font-size: 1.05rem; color: var(--text-3); cursor: pointer; border-radius: 8px; }
.star:hover { color: var(--warn); background: var(--surface-2); }
.star[aria-pressed="true"] { color: var(--warn); }
.star.lg { position: static; transform: none; width: 36px; height: 36px; font-size: 1.3rem; border: 1px solid var(--line); background: var(--surface-2); border-radius: 50%; }
.cos li.starred .co-name::after { content: " ★"; color: var(--warn); font-size: .75rem; }
.earn { list-style: none; margin: 0; padding: 0; }
.earn li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.earn li:first-child { border-top: 0; }
.earn li.starred { background: linear-gradient(90deg, var(--warn-soft), transparent); border-radius: 8px; }
.earn-date { width: 44px; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 3px 0; line-height: 1.1; flex: none; background: var(--surface); }
.earn-date b { display: block; font-size: 1.1rem; }
.earn-date small { font-size: .68rem; text-transform: uppercase; color: var(--down); font-weight: 700; }
.earn-co { border: 0; background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; padding: 0; min-width: 0; }

/* ⌘K palette */
.palette { width: min(640px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); overflow: hidden; }
.palette::backdrop { background: rgba(10, 10, 10, .45); backdrop-filter: blur(3px); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 1.8; flex: none; }
.pal-in input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 1.05rem; }
.pal-res { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.pal-res a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.pal-res li[aria-selected="true"] a, .pal-res a:hover { background: var(--surface-2); }
.pal-k { grid-row: span 3; align-self: start; font-size: .68rem; font-weight: 750; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-top: 2px; }
.k-term { background: var(--warn-soft); color: var(--warn); } .k-company { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.k-hot { background: var(--down-soft); color: var(--down); }
.pal-t { font-weight: 650; font-size: .95rem; }
.pal-s { font-size: .84rem; color: var(--text-2); }
.pal-m { font-size: .75rem; color: var(--text-3); }
.pal-none, .pal-hint { padding: 14px 18px; color: var(--text-3); font-size: .9rem; margin: 0; }

/* toast */
.toast { position: fixed; inset: auto; margin: 0; border: 0; overflow: visible; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 200; background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: all .25s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body:has(.player:not([hidden])) .toast { bottom: 124px; }

/* audio player */
.player { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; width: min(760px, calc(100vw - 24px));
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 12px; padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 50px rgba(0, 0, 0, .25); animation: rise .3s ease; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.pl-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1rem; cursor: pointer; }
.pl-mid { min-width: 0; }
.pl-title { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.pl-title b { color: var(--text); }
.pl-seek { width: 100%; accent-color: var(--accent); margin: 4px 0 0; }
.pl-time { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pl-speed, .pl-tx { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: .8rem; font-weight: 650; cursor: pointer; }
.pl-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; font-size: 1.2rem; color: var(--text-3); cursor: pointer; }
.pl-script { grid-column: 1 / -1; max-height: 34vh; overflow-y: auto; font-size: .92rem; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 10px; }
.pl-script p { margin-bottom: 8px; }
body:has(.player:not([hidden])) .sitefoot { padding-bottom: 120px; }

/* Today in 60 seconds */
.stories { position: fixed; inset: 0; z-index: 150; background: #0b0b0a; display: grid; place-items: center; touch-action: pan-y; user-select: none; }
.st-bars { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 32px));
  display: flex; gap: 4px; z-index: 3; }
.st-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.st-bars span.full { background: #fff; }
.st-bars i { display: block; height: 100%; width: 0; background: #fff; }
.st-bars i.run { animation: fillbar linear forwards; }
@keyframes fillbar { to { width: 100%; } }
.st-x { position: absolute; top: max(28px, calc(env(safe-area-inset-top) + 14px)); right: max(16px, calc(50vw - 260px)); z-index: 4; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.st-card { position: relative; z-index: 2; width: min(520px, calc(100vw - 32px)); height: min(820px, calc(100vh - 90px)); border-radius: 24px;
  padding: 64px 32px 32px; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 16px; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, #2a8f76 0%, #123d33 55%, #0d1f1a 100%); pointer-events: none; }
.st-card.in { animation: stin .35s ease; }
@keyframes stin { from { opacity: 0; transform: scale(.97); } }
.st-card.k-hot { background: radial-gradient(120% 80% at 0% 0%, #b8432f 0%, #4a1c16 55%, #1d0e0c 100%); }
.st-card.k-story { background: radial-gradient(120% 80% at 100% 0%, #3a5fb0 0%, #172a52 55%, #0c1427 100%); }
.st-card.k-concept { background: radial-gradient(120% 80% at 0% 100%, #b08a1f 0%, #4a3a0d 55%, #1f1907 100%); }
.st-card.k-quiz { background: radial-gradient(120% 80% at 50% 0%, #7b5bd6 0%, #33246b 55%, #150f2e 100%); }
.st-card h2 { font-size: clamp(1.6rem, 5.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.st-card p { font-size: 1.08rem; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.st-label, .st-why span { font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.st-brand { position: absolute; top: 30px; left: 32px; font-weight: 800; font-size: .95rem; opacity: .9; }
.st-why { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 14px; font-size: .98rem !important; }
.st-why span { display: block; margin-bottom: 4px; }
.st-mood { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .12); border-radius: 99px; padding: 6px 14px 6px 6px; align-self: flex-start; font-weight: 600; }
.st-mood b { background: #fff; color: #123d33; border-radius: 99px; padding: 2px 9px; }
.st-tap { margin-top: auto; font-weight: 650; opacity: .75; }
.st-cta { pointer-events: auto; align-self: flex-start; margin-top: 8px; background: #fff; color: #111; text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 99px; }
.st-nav { position: absolute; top: 0; bottom: 0; width: 40%; border: 0; background: none; z-index: 1; cursor: pointer; }
.st-nav.prev { left: 0; } .st-nav.next { right: 0; width: 60%; }
.stories { -webkit-tap-highlight-color: transparent; } /* no big flash over the tap zones on Android */
.st-nav:focus-visible { outline-offset: -4px; border-radius: 0; }

@media (max-width: 640px) {
  .search-btn .kbd { display: none; }
  /* fade the right edge so it's clear the section tabs scroll sideways (Learn, Play… are often off-screen) */
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 20px; }
  .tabs { flex: 1; min-width: 0; }
  .tabs a { padding: 7px 9px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .act.primary { grid-column: 1 / -1; }
  .q-opts { grid-template-columns: 1fr; }
  .quiz { padding: 18px 16px; }
  .player { grid-template-columns: auto 1fr auto auto auto; bottom: 10px; }  /* 5 columns: keep × on the same row */
  .pl-x { width: 28px; }
  .pl-speed, .pl-tx { padding: 0 7px; font-size: .74rem; }
  .player { gap: 8px; padding: 10px; }
  .st-card { height: calc(100vh - 80px); border-radius: 20px; padding: 60px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.col-side, .col-side > * { min-width: 0; }
.co-row, .mv-list li { min-width: 0; }

/* close button sits beside the story card on wider screens instead of over its corner */
@media (min-width: 700px) { .st-x { right: calc(50vw - 260px - 56px); top: max(40px, calc(50vh - min(410px, 50vh - 45px))); } }
/* reduced motion: keep the story timer readable (the bar is the only cue for how long a slide stays) */
@media (prefers-reduced-motion: reduce) { .st-bars i.run { animation-duration: 9s !important; } }
/* "In this episode" segment list */
.segs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; font-size: .78rem; }
.segs > span:first-child { color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; align-self: center; margin-right: 2px; }
.seg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--text-2); }

/* ---------- read tick on story cards ---------- */
.readtick { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text-3);
  font-size: 1rem; font-weight: 800; cursor: pointer; flex: none; transition: all .2s ease; }
.readtick:hover { border-color: var(--accent); color: var(--accent); }
.readtick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
button.act.progress { cursor: pointer; font: inherit; }

/* ---------- account ---------- */
.acct-btn { padding: 0 10px; }
.acct-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.acct-btn .lbl { font-size: .84rem; font-weight: 650; }
.acct-btn.in { padding: 0; width: 34px; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 800; }
.acct-btn.in img { width: 100%; height: 100%; object-fit: cover; }
.acct { width: min(440px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text);
  padding: 28px 26px 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); }
.acct::backdrop { background: rgba(10, 10, 10, .5); backdrop-filter: blur(3px); }
.acct .close { position: absolute; top: 14px; right: 14px; }
.acct h2 { font-size: 1.35rem; font-weight: 750; margin: 8px 0 6px; }
.acct p.muted { font-size: .92rem; }
.acct-badge { width: 52px; height: 52px; border-radius: 16px; background: var(--warn-soft); display: grid; place-items: center; font-size: 1.6rem; }
.acct-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 11px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 650; cursor: pointer; }
.acct-google:hover { background: var(--surface-2); }
.acct-google svg { width: 20px; height: 20px; }
.acct-form { margin-top: 16px; }
.acct-form label { display: block; font-size: .8rem; font-weight: 650; color: var(--text-2); margin-bottom: 6px; }
.acct-row { display: flex; gap: 8px; }
.acct-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; }
.acct-row input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.acct-msg { margin-top: 12px; font-size: .88rem; background: var(--accent-soft); color: var(--text); padding: 10px 12px; border-radius: 10px; }
.acct-fine { margin-top: 16px; font-size: .76rem; color: var(--text-3); }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.acct-stats div { background: var(--surface-2); border-radius: 12px; padding: 12px 8px; text-align: center; }
.acct-stats b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.acct-stats span { font-size: .74rem; color: var(--text-3); }
.acct-status { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); margin-bottom: 16px; }
.acct-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
@media (max-width: 640px) { .acct-btn .lbl { display: none; } }

/* =================== story cards + sheets =================== */
.stories-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 32px 2px 12px; }
.stories-head .section-title { margin: 0; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sc { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 16px 16px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; color: var(--text);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; min-width: 0; }
.sc:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.sc:active { transform: scale(.98); }
.sc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .68rem; }
.sc-src { font-size: .8rem; font-weight: 650; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sc-done { display: none; font-size: .72rem; font-weight: 750; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: 2px 8px; flex: none; }
.sc-title { font-weight: 720; font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-tldr { font-size: .86rem; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 4px; font-size: .74rem; color: var(--text-3); }
.sc-tick { font-weight: 700; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 5px; color: var(--text-2); }
.sc.is-read { background: var(--surface-2); }
.sc.is-read .sc-done { display: inline-block; }
.sc.is-read .sc-title { color: var(--text-2); }

.sheet { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10, 10, 10, .5); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheetin .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheetin { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet .ep { padding: 22px 26px 0; margin: 0; }
.sheet .ep-head .close { margin-left: 4px; }
.sheet-grab { display: none; }
.sheet-tags { margin-top: 22px; }
.sheet-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 8px; font-size: .9rem; font-weight: 600; }
.sheet-links a { text-decoration: none; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 18px; margin-top: 12px;
  background: linear-gradient(transparent, var(--surface) 30%); }
.readbtn.big { flex: 1; height: 48px; font-size: 1rem; border-radius: 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.readbtn.big .chk { border-color: currentColor; }
.readbtn.big[aria-pressed="true"] { background: var(--surface-2); color: var(--accent); border-color: var(--accent); }
.sheet-foot .btn { height: 48px; border-radius: 14px; padding: 0 18px; }

@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; gap: 10px; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .sheet[open] { animation: sheetup .32s cubic-bezier(.2, .9, .3, 1); }
  @keyframes sheetup { from { transform: translateY(100%); } }
  .sheet .ep { padding: 6px 16px 0; }
  .sheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 12px; }
  .sheet-foot { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* =================== play: games + social =================== */
.pos { color: var(--up); font-weight: 650; } .neg { color: var(--down); font-weight: 650; }
.small { font-size: .82rem; }
.mini { height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-size: .8rem; font-weight: 650; cursor: pointer; white-space: nowrap; }
.mini:hover { border-color: var(--text-3); }
.mini.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.mini.buy { background: var(--up); color: var(--on-signal); border-color: transparent; }
.mini.sell { background: var(--down); color: var(--on-signal); border-color: transparent; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.predict, .trade { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.pr-q { font-size: .86rem; font-weight: 650; margin-bottom: 8px; }
.pr-btns { display: flex; gap: 8px; }
.pr { flex: 1; height: 38px; border-radius: 10px; border: 1.5px solid; font-weight: 750; cursor: pointer; background: var(--surface); }
.pr.up { color: var(--up); border-color: var(--up); } .pr.down { color: var(--down); border-color: var(--down); }
.pr.up:hover { background: var(--up-soft); } .pr.down:hover { background: var(--down-soft); }
.trade-row { display: flex; gap: 6px; align-items: center; }
.trade-qty { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; }
.trade-est { min-height: 1.2em; margin-top: 6px; }
.play-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.play-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; }
.play-guest { padding: 16px 18px; max-width: 320px; display: grid; gap: 6px; }
.play-guest .btn { justify-content: center; }
@media (max-width: 640px) { .play-guest { max-width: none; flex: 1 1 100%; } }
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.play-card { padding: 20px 22px; min-width: 0; }
.play-card.lb { grid-column: 1 / -1; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pc-head h2 { font-size: 1.1rem; font-weight: 750; }
.pf-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pf-total { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pf-split { display: flex; gap: 18px; } .pf-split div { display: flex; flex-direction: column; } .pf-split b { font-variant-numeric: tabular-nums; }
.qt { display: grid; gap: 6px; margin-bottom: 14px; }
.qt select { height: 34px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; padding: 0 8px; }
.pf-table, .lb-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pf-table th, .lb-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.pf-table td, .lb-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pf-table th.num, .lb-table th.num { text-align: right; }
.sub-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 16px 0 6px; }
.olist { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.olist li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.st { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.st-filled, .st-right { background: var(--up-soft); color: var(--up); } .st-rejected, .st-wrong { background: var(--down-soft); color: var(--down); }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.invite { margin-bottom: 4px; }
.invite input { font-size: .8rem; }
.friends { margin-top: 14px; }
.friend { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.f-av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.f-main { flex: 1; min-width: 0; font-size: .9rem; } .f-act { font-size: .78rem; color: var(--text-3); }
.seg-tabs, .board-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.seg-tabs button, .board-tabs button { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 5px 12px; font-size: .82rem; font-weight: 650; color: var(--text-2); cursor: pointer; }
.seg-tabs button[aria-selected="true"], .board-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.board-tabs { margin-bottom: 8px; }
.lb-table .rank { width: 36px; font-weight: 750; }
.lb-table tr.me { background: var(--accent-soft); }
@media (max-width: 860px) { .play-grid { grid-template-columns: 1fr; } .practice-grid { grid-template-columns: 1fr; } .pf-table th:nth-child(3), .pf-table td:nth-child(3) { display: none; } }

/* =================== learn =================== */
.intro-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.learn-hero { max-width: 820px; margin-bottom: 28px; }
.learn-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 10px; }
.learn-hero .lede { color: var(--text-2); }
.learn-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.learn-progress > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.ring.big { width: 52px; height: 52px; }
.unit { margin-top: 30px; }
.unit-head { margin-bottom: 12px; }
.unit-n { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.unit-head h2 { font-size: 1.3rem; font-weight: 750; margin: 2px 0 2px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.lc { position: relative; display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.lc:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.lc-n { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; flex: none; }
.lc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lc-title { font-weight: 700; line-height: 1.3; }
.lc-hook { font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.lc-meta { font-size: .74rem; color: var(--text-3); white-space: nowrap; }
.lc-done { display: none; position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 800; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.lc.is-done { background: var(--surface-2); }
.lc.is-done .lc-done { display: grid; }
.lc.is-done .lc-n { background: var(--accent); color: var(--accent-ink); }
.lesson .lp { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.65; }
.example { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.example p { margin-top: 6px; font-size: .95rem; }
.tryit { display: flex; gap: 12px; background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.tryit p { font-size: .92rem; margin-top: 2px; }
.lquiz { margin-top: 10px; }
/* right-answer bounce: subtle, so full-width options never spill off narrow screens */
@keyframes nudge { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.q.burst .q-opt.right { animation: nudge .45s cubic-bezier(.3, 1.6, .5, 1); }

/* =================== practice + resources =================== */
.diff { display: inline-block; font-size: .64rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 99px; vertical-align: 2px; margin-left: 4px; }
.d-foundation { background: var(--up-soft); color: var(--up); }
.d-intermediate { background: var(--warn-soft); color: var(--warn); }
.d-advanced { background: var(--down-soft); color: var(--down); }
.res { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.res a:hover { border-color: var(--accent); }
.res-type { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lvl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.lvl { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; color: var(--text); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.lvl:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.lvl-top { display: flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.lvl-best { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--accent); }
.pr-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 12px 0 6px; }
.pr-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.pr-more { font-size: .88rem; margin-top: 6px; }
.pr-done { text-align: center; padding: 30px 0 10px; }
.pr-score { font-size: 3.4rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }

/* calibration + coach */
.conf { display: flex; flex-direction: column; gap: 2px; font-size: .8rem; color: var(--text-2); margin-bottom: 8px; }
.conf input { accent-color: var(--accent); }
.calib { margin: 8px 0 12px; }
.cal-row { display: grid; grid-template-columns: 64px 1fr 74px; align-items: center; gap: 8px; font-size: .8rem; margin: 4px 0; }
.cal-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.cal-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--accent); }
.cal-fill.over { background: var(--warn); }
.cal-ideal { position: absolute; top: -3px; bottom: -3px; border-left: 2px dashed var(--text-3); }
.cal-v { text-align: right; font-variant-numeric: tabular-nums; }
.coach { display: grid; gap: 8px; margin-bottom: 12px; }
.tip-card { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: .86rem; background: var(--surface-2); }
.tip-card.warn { background: var(--warn-soft); } .tip-card.good { background: var(--up-soft); }
.tip-card a { font-weight: 650; white-space: nowrap; }

/* admin insights */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adm-card { padding: 18px 20px; min-width: 0; } .adm-card.wide { grid-column: 1 / -1; }
.adm-card h2 { font-size: 1.05rem; font-weight: 750; } .adm-card > p { margin: 2px 0 10px; }
.adm-svg { width: 100%; height: 200px; display: block; overflow: visible; }
.adm-svg .grid { stroke: var(--grid); } .adm-svg .axis { fill: var(--text-3); font-size: 11px; }
.adm-svg .ln { fill: none; stroke: var(--s1); stroke-width: 2; } .adm-svg .ln2 { fill: none; stroke: var(--s1); stroke-width: 2; opacity: .35; }
.adm-svg .dt { fill: var(--s1); stroke: var(--surface); stroke-width: 2; }
.hb { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; align-items: center; gap: 8px; font-size: .84rem; margin: 6px 0; }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.hb-t { height: 10px; border-radius: 5px; background: var(--surface-2); } .hb-f { display: block; height: 100%; border-radius: 5px; background: var(--s1); }
.hb-v { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
@media (max-width: 860px) { .adm-grid { grid-template-columns: 1fr; } }

/* scorecard */
.sc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 8px; }
.sc-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.sc-stats b { font-size: 1.6rem; font-variant-numeric: tabular-nums; } .sc-stats span { font-size: .78rem; color: var(--text-3); }
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.claim { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.cl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cl-claim { font-weight: 650; margin: 8px 0 4px; }
.claim blockquote { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--line-strong); color: var(--text-2); font-style: italic; font-size: .92rem; }
@media (max-width: 640px) { .sc-stats { grid-template-columns: 1fr 1fr; } }
/* admin: live + people */
.adm-live { padding: 12px 18px; margin-bottom: 12px; }
.live-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.live-now b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.adm-people { margin-bottom: 16px; }
.tbl-wrap { overflow-x: auto; }
.tbl-wrap .lb-table { min-width: 720px; }
/* developer tools */
.acct-dev { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px; }
.dev-links { display: grid; gap: 8px; margin-top: 8px; }
.dev-links a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.dev-links a:hover { border-color: var(--accent); }
.dev-links span { font-size: .8rem; color: var(--text-3); }
.adm-tabs { margin-bottom: 12px; }
.manage { white-space: nowrap; }
.manage select { height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; }
.manage .st { margin-right: 4px; }

/* =================== Today: editorial redesign =================== */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 4px 2px 12px; }
.sec-head .section-title { margin: 0; display: flex; align-items: center; gap: 8px; }
.intro { position: relative; }
.intro .close { width: 30px; height: 30px; font-size: 1rem; }

/* hero: the #1 story */
.hero { position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; cursor: pointer; overflow: hidden;
  padding: 26px 26px 22px; border-radius: 20px; border: 1px solid var(--line); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2a8f76 0%, #164a3d 45%, #0f1f1b 100%); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease; }
.hero:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
.hero::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); pointer-events: none; }
.hero-kicker { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.hero-title { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.hero-dek { font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hero-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-srcs span { font-size: .74rem; font-weight: 650; background: rgba(255, 255, 255, .14); border-radius: 99px; padding: 3px 10px; }
.hero-cta { font-weight: 750; background: #fff; color: #0f1f1b; border-radius: 99px; padding: 8px 16px; font-size: .9rem; white-space: nowrap; }

/* rail: the rest of the top stories, swipeable */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 12px; overflow-x: auto; padding: 12px 2px 6px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; min-height: 150px;
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease; }
.rail-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.rail-n { font-size: .72rem; font-weight: 800; color: var(--text-3); }
.rail-title { font-weight: 720; font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rail-dek { font-size: .82rem; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-src { margin-top: auto; font-size: .74rem; font-weight: 650; color: var(--accent); }

/* in short + concept */
.know-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.know { padding: 18px 20px; }
.know-lede { margin: 6px 0 10px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.know-list { list-style: none; margin: 0; padding: 0; }
.know-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line);
  background: none; cursor: pointer; text-align: left; color: var(--text); }
.know-list button:hover .kt { color: var(--accent); }
.kn { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex: none; }
.kt { flex: 1; font-weight: 650; line-height: 1.35; }
.kgo { color: var(--text-3); font-size: 1.3rem; }
.concept-card { display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; padding: 18px 20px; color: var(--text);
  background: linear-gradient(160deg, var(--warn-soft), var(--surface) 70%); transition: transform .15s ease; }
.concept-card:hover { transform: translateY(-2px); }
.concept-card .eyebrow { color: var(--warn); }
.cc-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.cc-dek { font-size: .9rem; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-cta { margin-top: auto; font-weight: 700; color: var(--warn); font-size: .9rem; }
.story-grid.mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.story-grid.mini .sc { min-height: 0; }

/* sidebar: shorter definitions */
.mini-terms dd { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 640px) {
  .hero { padding: 20px 18px 18px; border-radius: 18px; }
  .rail { grid-auto-columns: 78%; margin: 0 -16px; padding: 12px 16px 6px; scroll-padding: 0 16px; }
  .know-grid { grid-template-columns: 1fr; }
}

/* =================== phone card stack =================== */
.stack, .stack-hint { display: none; }
@media (max-width: 640px) {
  .top .hero, .top .rail { display: none; }
  .stack { display: block; position: relative; isolation: isolate; height: 430px; margin: 4px 0 6px; touch-action: pan-x pan-y; }  /* isolate: card z-indexes (up to 100) must stay below the app bar, tab bar and player */
  .stack-hint { display: block; text-align: center; margin: 4px 0 0; }
  .stack-card { position: absolute; inset: 0 0 42px 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px;
    border-radius: 22px; color: #fff; cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28); will-change: transform; transform-origin: 50% 100%; touch-action: none; }
  .stack-card:active { cursor: grabbing; }
  .stack-card.c0 { background: radial-gradient(130% 120% at 100% 0%, #2a8f76, #164a3d 50%, #0f1f1b); }
  .stack-card.c1 { background: radial-gradient(130% 120% at 0% 0%, #3a5fb0, #1b2f5c 50%, #0d1529); }
  .stack-card.c2 { background: radial-gradient(130% 120% at 100% 0%, #b8432f, #5a2119 50%, #1f0e0b); }
  .stack-card.c3 { background: radial-gradient(130% 120% at 0% 0%, #7b5bd6, #382a78 50%, #150f2e); }
  .stack-end { background: var(--surface); color: var(--text); border: 1px solid var(--line); justify-content: center; align-items: flex-start; }
  .stack-end .sk-dek { color: var(--text-2); }
  .sk-top { display: flex; align-items: center; gap: 8px; }
  .sk-n { font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
  .sk-tick { font-size: .7rem; font-weight: 800; background: rgba(255, 255, 255, .18); border-radius: 6px; padding: 2px 7px; }
  .sk-title { font-size: 1.55rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
  .sk-dek { font-size: .98rem; line-height: 1.5; color: rgba(255, 255, 255, .86); flex: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sk-why { font-size: .88rem; line-height: 1.45; background: rgba(255, 255, 255, .1); border-radius: 12px; color: rgba(255, 255, 255, .9);
    /* border instead of padding: overflow clips at the padding edge, so padding would show a sliver of the 4th line */
    border: solid transparent; border-width: 10px 12px; flex: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sk-why b { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 2px; }
  .sk-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sk-src { font-size: .74rem; font-weight: 650; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sk-open { flex: none; font-size: .84rem; font-weight: 750; background: #fff; color: #111; border-radius: 99px; padding: 7px 14px; }
}
/* today's call */
.call-card { margin-top: 22px; padding: 18px 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--s7) 14%, var(--surface)), var(--surface) 70%); }
.call-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.call-top h2 { font-size: 1.15rem; font-weight: 720; margin: 4px 0 2px; line-height: 1.3; }
.call-card .pr { height: 46px; font-size: 1rem; }
.call-more { display: inline-block; margin-top: 12px; font-weight: 650; text-decoration: none; }
.lb-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 4px; }
.lb-empty span { color: var(--text-2); font-size: .9rem; }
.lb-empty .btn { margin-top: 4px; }

/* =================== Play: brokerage-style =================== */
.play-guest-hero { padding: 28px 26px; margin-bottom: 18px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--up) 30%, var(--surface)), var(--surface) 60%); }
.play-guest-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.big-cta { margin-top: 14px; height: 48px; padding: 0 22px; font-size: 1rem; background: var(--up); color: var(--on-signal); }
.pf-hero { position: relative; padding: 8px 2px 20px; margin-bottom: 8px; }
.pf-label { font-size: .9rem; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.pf-hero .pf-total { font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; margin: 4px 0 8px; }
.pf-changes { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-chip.up { color: var(--up); background: var(--up-soft); } .pf-chip.down { color: var(--down); background: var(--down-soft); }
.pf-chip:empty { display: none; }
.pf-chart { height: 140px; margin: 16px 0 10px; }
.pf-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pf-chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pf-chart .fill { opacity: .12; } .pf-chart .base { stroke: var(--line-strong); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.pf-chart .up .ln { stroke: var(--up); } .pf-chart .up .fill { fill: var(--up); }
.pf-chart .down .ln { stroke: var(--down); } .pf-chart .down .fill { fill: var(--down); }
.pf-flat { height: 100%; display: flex; align-items: center; } .pf-flat span { flex: 1; border-top: 2px dashed var(--line-strong); }
.pf-bp { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: .9rem; color: var(--text-2); }
.pf-bp b { color: var(--text); font-variant-numeric: tabular-nums; }
.pf-pending { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--text); font-size: .88rem; line-height: 1.6; }
.pend { display: inline-block; background: var(--surface); border-radius: 6px; padding: 0 7px; margin: 0 2px; font-weight: 650; font-size: .8rem; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.trade-btn { height: 48px; padding: 0 30px; font-size: 1rem; font-weight: 750; background: var(--up); color: var(--on-signal); }
.pf-hero.down .trade-btn, .pf-hero.down .big-cta { background: var(--down); }
.play-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.play-main, .play-side { display: grid; gap: 16px; min-width: 0; }

.race { display: grid; gap: 10px; }
.racer { display: grid; grid-template-columns: 28px minmax(60px, 120px) 1fr 76px; align-items: center; gap: 10px; }
.racer.me .r-name { font-weight: 800; }
.r-rank { font-weight: 800; text-align: center; }
.r-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-track { height: 14px; background: var(--surface-2); border-radius: 7px; overflow: hidden; }
.r-bar { display: block; height: 100%; border-radius: 7px; transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.r-bar.up { background: linear-gradient(90deg, color-mix(in srgb, var(--up) 60%, transparent), var(--up)); }
.r-bar.down { background: linear-gradient(90deg, color-mix(in srgb, var(--down) 60%, transparent), var(--down)); }
.r-val { text-align: right; font-variant-numeric: tabular-nums; }

.holdings, .tk-list { list-style: none; margin: 0; padding: 0; }
.h-row, .tk-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; color: var(--text); }
.holdings li:first-child .h-row, .tk-list li:first-child .tk-item { border-top: 0; }
.h-row:hover, .tk-item:hover { background: var(--surface-2); border-radius: 10px; }
.h-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-id .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-val { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-variant-numeric: tabular-nums; }
.h-spark { width: 60px; height: 24px; flex: none; } .h-spark path { fill: none; stroke-width: 1.8; }
.h-spark.up path { stroke: var(--up); } .h-spark.down path { stroke: var(--down); }
.h-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 2px; }

.trade-sheet { width: min(560px, calc(100vw - 24px)); }
.tk-search { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font: inherit; margin: 12px 0 6px; }
.tk-hint { margin-bottom: 8px; }
.tk-list { max-height: 55vh; overflow-y: auto; }
.tk-price { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 14px; }
.tk-price span:first-child { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-side, .tk-unit { margin-bottom: 10px; }
.tk-side button { flex: 1; }
.tk-amount { display: flex; align-items: center; gap: 6px; font-size: 2.2rem; font-weight: 800; border-bottom: 2px solid var(--line-strong); padding: 6px 0; margin: 6px 0 10px; }
.tk-amount span { color: var(--text-3); }
.tk-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.tk-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tk-est { min-height: 1.4em; margin-bottom: 4px; }
.tk-go { width: 100%; height: 52px; font-size: 1rem; font-weight: 750; margin-top: 12px; background: var(--up); color: var(--on-signal); }
.tk-go.sell { background: var(--down); }
.tk-go:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; opacity: 1; }
.tk-note { margin-top: 10px; }
.tk-done { text-align: center; padding: 30px 10px 20px; }
.tk-check { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: var(--up); color: var(--on-signal); font-size: 2.2rem; font-weight: 800; display: grid; place-items: center; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.tk-done p { margin: 6px 0 18px; }
@media (max-width: 860px) { .play-cols { grid-template-columns: 1fr; } .racer { grid-template-columns: 26px minmax(50px, 90px) 1fr 70px; } }
/* earn more */
.earn-ways { list-style: none; margin: 0 0 8px; padding: 0; }
.earn-ways li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.earn-ways li:first-child { border-top: 0; }
.earn-ways b { color: var(--up); font-variant-numeric: tabular-nums; } .earn-ways li.neg b { color: var(--down); }
.stale { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); font-size: .9rem; }
.call-made { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); margin-top: 4px; }
.tk-group { font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 14px 4px 4px; }

/* =================== phone bottom tab bar =================== */
.tabbar { display: none; }
@media (max-width: 640px) {
  .tabs { display: none; }
  .brand span { display: inline; font-size: .98rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 6px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none;
    color: var(--text-3); text-decoration: none; font: inherit; font-size: .68rem; font-weight: 650; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar .tb-ic { font-size: 1.25rem; line-height: 1.2; filter: grayscale(1); opacity: .75; transition: transform .15s ease; }
  .tabbar [aria-current="page"] { color: var(--text); }
  .tabbar [aria-current="page"] .tb-ic { filter: none; opacity: 1; transform: translateY(-1px) scale(1.08); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }  /* the tab bar grows by the home-indicator inset */
  .player { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toast { bottom: 90px; }
  body:has(.player:not([hidden])) .toast { bottom: calc(180px + env(safe-area-inset-bottom)); }
  .more-links { display: grid; gap: 8px; margin: 4px 0 12px; }
  .more-links a { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
  .more-links a span { grid-row: span 2; font-size: 1.4rem; text-align: center; }
  .more-links small { color: var(--text-3); }
  .more-links a[hidden] { display: none; }
  .more-close { width: 100%; height: 46px; margin-bottom: 8px; }
}

/* =================== phone: market strip as a slim swipeable ticker row =================== */
@media (max-width: 640px) {
  .strip { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; grid-template-columns: none; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 4px; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .strip::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; padding: 9px 11px 8px; border-radius: 14px; }
  .tile-top { gap: 4px; }
  .tile-name { font-size: .74rem; }
  .tile .info { width: 16px; height: 16px; font-size: .6rem; }
  .tile-price { font-size: 1.02rem; margin: 1px 0 3px; }
  .tile-bot { gap: 4px; }
  .tile .chg { font-size: .7rem; padding: 1px 5px; }
  .tile .spark { width: 50px; height: 22px; }
  .asof { font-size: .7rem; margin: 6px 2px 16px; line-height: 1.4; }
}
@media (max-width: 640px) {
  .actions .act.progress { grid-column: 1 / -1; padding: 8px 12px; }
  .actions .act.primary + .act:nth-last-child(2) { grid-column: 1 / -1; }  /* the only half-width card (e.g. no audio today): fill the row */
  .actions .act.progress .ring { width: 30px; height: 30px; }
  .actions .act.progress small { display: inline; margin-left: 6px; }
  .actions .act.progress > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; }
}

/* about: under the hood */
.eng .lede { color: var(--text-2); max-width: 760px; margin-bottom: 16px; }
.eng-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.eng-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; }
.eng-stats b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; } .eng-stats span { font-size: .78rem; color: var(--text-3); }
.eng-flow { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 18px; }
.ef { flex: 1 0 150px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.ef span { font-size: 1.4rem; } .ef small { color: var(--text-2); line-height: 1.4; }
.ef-arrow { align-self: center; color: var(--text-3); font-weight: 800; }
.eng-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.eng-card { padding: 16px 18px; } .eng-card h3 { font-size: 1rem; margin-bottom: 6px; } .eng-card p { font-size: .9rem; color: var(--text-2); }
.eng-stack { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.eng-stack summary { font-weight: 700; cursor: pointer; } .eng-stack ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); font-size: .9rem; }
.eng-stack li { margin-bottom: 6px; }
@media (max-width: 640px) { .ef-arrow { display: none; } .ef { flex-basis: 70%; } }
.sc-empty { padding: 20px 22px; margin-bottom: 16px; }
.sc-empty h2 { font-size: 1.2rem; margin: 4px 0 6px; } .sc-empty > p { color: var(--text-2); max-width: 70ch; }
.sc-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; padding: 0; }
.sc-steps li { counter-increment: s; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.sc-steps li::before { content: counter(s); font-weight: 800; color: var(--accent); font-size: .8rem; }
.sc-steps span { font-size: .82rem; color: var(--text-3); }
.sc-example { position: relative; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px 16px; opacity: .85; }
.sc-ex-tag { position: absolute; top: -10px; right: 12px; background: var(--surface); padding: 0 8px; font-size: .7rem; font-weight: 750; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* =================== light days: fewer cards get more room (desktop/tablet) =================== */
.sc-points { display: none; }
@media (min-width: 641px) {
  .rail-few { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .rail-few.rail-1 { grid-template-columns: 1fr; } .rail-few.rail-2 { grid-template-columns: 1fr 1fr; } .rail-few.rail-3 { grid-template-columns: repeat(3, 1fr); }
  .rail-few .rail-card { min-height: 0; padding: 18px 20px; }
  .rail-few .rail-title { font-size: 1.08rem; }
  .rail-few .rail-dek { -webkit-line-clamp: 4; font-size: .9rem; }
  .rail-few.rail-1 .rail-dek, .rail-few.rail-2 .rail-dek { -webkit-line-clamp: 5; }
  .story-grid.few { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
  .story-grid.few .sc { padding: 20px 20px 16px; gap: 10px; }
  .story-grid.few .sc-title { font-size: 1.12rem; -webkit-line-clamp: 4; }
  .story-grid.few .sc-tldr { -webkit-line-clamp: 6; font-size: .92rem; }
  .story-grid.few .sc-points { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 4px; padding: 0; }
  .story-grid.few .sc-points span { position: relative; padding-left: 16px; font-size: .86rem; line-height: 1.45; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .story-grid.few .sc-points span::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .story-grid.few-1 .sc { padding: 26px 28px 20px; }
  .story-grid.few-1 .sc-title { font-size: 1.4rem; letter-spacing: -0.02em; }
  .story-grid.few-1 .sc-tldr { font-size: 1rem; -webkit-line-clamp: 8; max-width: 70ch; }
  .story-grid.few-1 .sc-points span { font-size: .95rem; max-width: 70ch; }
}
@media (min-width: 641px) {
  .story-grid.few { grid-template-columns: 1fr 1fr; }
  .story-grid.few-1 { grid-template-columns: 1fr; }
  .story-grid.few-3 .sc:first-child { grid-column: 1 / -1; }
  .story-grid.few-3 .sc:first-child .sc-title { font-size: 1.3rem; }
  .story-grid.few-3 .sc:first-child .sc-tldr, .story-grid.few-3 .sc:first-child .sc-points span { max-width: 75ch; }
}

/* =================== Play: daily range game + your stats =================== */
.rg-q { margin: 2px 0 14px; line-height: 1.5; }
.rg-viz { position: relative; height: 34px; border-radius: 10px; background: var(--surface-2); overflow: hidden; margin-bottom: 6px; }
.rg-band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 35%, transparent); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); transition: left .08s, width .08s; }
.rg-now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); }
.rg-now::after { content: "now"; position: absolute; top: 9px; left: 6px; font-size: .68rem; font-weight: 700; color: var(--text-2); }
.rg-nums { display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.rg-sl { display: grid; grid-template-columns: 64px 1fr 72px; align-items: center; gap: 10px; margin: 6px 0; font-size: .86rem; color: var(--text-2); }
.rg-sl input { width: 100%; accent-color: var(--accent); }
.rg-sl b { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.rg-est { margin: 8px 0 12px; line-height: 1.45; }
#rg-go { width: 100%; }
.rg-mine { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; line-height: 1.45; }
.rg-hist { margin-top: 10px; } .rg-hist li { font-size: .84rem; } .rg-sum { color: var(--text-2); }
.qs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
@media (max-width: 640px) { .qs-grid { grid-template-columns: 1fr 1fr; } }
.qs { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.qs span { font-size: .76rem; color: var(--text-3); font-weight: 650; }
.qs b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.qs small { font-size: .74rem; color: var(--text-3); line-height: 1.3; }

/* Play: make it obvious the money is pretend */
.pg-facts { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.pg-facts li { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: .92rem; line-height: 1.4; }
.pg-fine { margin-top: 10px; }
.pf-play { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  border: 1px solid currentColor; border-radius: 99px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.play-guest-hero .big-cta { max-width: 100%; white-space: normal; }

/* Play: TrendBot */
.bot-intro { margin: 0 0 12px; line-height: 1.5; color: var(--text-2); }
.bot-how { margin-top: 12px; font-size: .88rem; color: var(--text-2); }
.bot-how summary { cursor: pointer; font-weight: 700; color: var(--text); }
.bot-how ol { padding-left: 18px; line-height: 1.5; } .bot-how li { margin: 6px 0; }
#tb-moves li { align-items: flex-start; } #tb-moves li > span:first-child { display: flex; flex-direction: column; gap: 2px; }

/* Standalone lesson pages (SEO) */
.crumbs { margin: 4px 2px 10px; } .crumbs a { color: inherit; }
.lesson-page { padding: 22px 24px; max-width: 760px; } .lesson-page h1 { font-size: 1.7rem; margin: 6px 0 8px; }
.lesson-page h2 { font-size: 1.12rem; margin: 22px 0 6px; } .lesson-page p { line-height: 1.65; }
.lesson-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.lesson-index { columns: 2; column-gap: 28px; padding-left: 20px; line-height: 1.9; max-width: 760px; }
.lesson-index a[aria-current] { font-weight: 800; }
@media (max-width: 640px) { .lesson-index { columns: 1; } .lesson-page { padding: 18px 16px; } }

/* Economy this week */
.ec { list-style: none; margin: 0; padding: 0; }
.ec li { border-top: 1px solid var(--line); padding: 9px 0; }
.ec li:first-child { border-top: 0; }
.ec a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: inherit; text-decoration: none; }
.ec a:hover .ec-label { text-decoration: underline; }
.ec-id { display: flex; flex-direction: column; min-width: 0; }
.ec-label { font-weight: 600; font-size: .92rem; }
.ec-id small { color: var(--text-2); font-size: .76rem; }
.ec-val { font-variant-numeric: tabular-nums; font-size: 1.05rem; white-space: nowrap; }
.ec-why { margin: 4px 0 0; color: var(--text-2); font-size: .78rem; line-height: 1.4; }
.ec-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 14px 0 4px; }
.ec-rel { font-size: .88rem; }
