/* Layout: a newsroom desk. Serif headlines sit over a terminal grid of rules,
   stocks and numbers; one violet accent; green/red are reserved for the rule's
   call (in / out) and never used for decoration. Dark-only, per the brand. */
:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-2: #0f1420;
  --panel: #131927;
  --panel-2: #192133;
  --line: #232d42;
  --line-2: #2d3952;
  --ink: #eef2f9;
  --ink-2: #c3cad8;
  --muted: #8a95a9;
  --violet: #7c6cf5;
  --violet-ink: #a99dff;
  --in: #1fd093;
  --in-wash: rgba(31, 208, 147, .12);
  --in-edge: rgba(31, 208, 147, .45);
  --out: #ff5470;
  --out-wash: rgba(255, 84, 112, .12);
  --out-edge: rgba(255, 84, 112, .45);
  --band: #f2b13c;
  --s1: #7c6cf5;
  --s2: #c07f22;
  --s-price: #c9d1de;
  --s-bench: #8a95a9;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --data: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 12px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--violet-ink); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.num, td, .mono { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(11, 15, 23, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; flex-wrap: wrap; }
.logo { font: 800 22px/1 var(--ui); letter-spacing: -.5px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-the { color: var(--muted); font-weight: 600; }
.logo-tick { color: var(--in); font-size: .55em; vertical-align: super; margin-left: 1px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 2px; }
.site-nav a {
  color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.head-meta { margin-left: auto; color: var(--muted); font: 12px var(--data); }
@media (max-width: 720px) {
  .head-row { gap: 8px 12px; }
  .head-meta { display: none; }
  .site-nav { width: 100%; margin-inline: -10px; }
  .site-nav a { padding: 5px 10px; font-size: 13px; }
}

main.wrap { padding-block: 28px 64px; display: flex; flex-direction: column; gap: 44px; }
section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 11.5px/1.3 var(--data); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.h1 { font: 500 clamp(32px, 5.2vw, 52px)/1.06 var(--display); letter-spacing: -.015em; }
.h2 { font: 500 clamp(24px, 3vw, 30px)/1.15 var(--display); letter-spacing: -.01em; }
.h3 { font: 600 16px/1.3 var(--ui); }
.lede { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); font-size: 13.5px; max-width: 70ch; }
.crumbs { font: 12.5px var(--data); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- pills & state ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 600 12px/1 var(--data); letter-spacing: .04em; padding: 5px 9px 5px 8px; border-radius: 999px;
  color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.in { background: var(--in-wash); box-shadow: inset 0 0 0 1px var(--in-edge); }
.pill.in::before { background: var(--in); }
.pill.out { background: var(--out-wash); box-shadow: inset 0 0 0 1px var(--out-edge); }
.pill.out::before { background: var(--out); }
.pill.lg { font-size: 15px; padding: 8px 14px 8px 12px; }
.pill.lg::before { width: 9px; height: 9px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--data); color: var(--ink-2);
  padding: 5px 8px; border-radius: 6px; background: var(--panel-2); white-space: nowrap;
}
.tag.warn { color: var(--band); box-shadow: inset 0 0 0 1px rgba(242, 177, 60, .35); background: rgba(242, 177, 60, .08); }
.band-mark { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--band); margin-left: 4px; vertical-align: middle; }
.up { color: var(--in); }
.down { color: var(--out); }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; align-items: end; padding-top: 12px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.picker { display: flex; flex-direction: column; gap: 12px; }
.picker label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.picker select, .picker button {
  font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 11px 12px; width: 100%;
}
.picker button { background: var(--violet); border-color: var(--violet); font-weight: 600; cursor: pointer; }
.picker button:hover { filter: brightness(1.08); }
.picker-out { font-size: 13px; color: var(--muted); min-height: 1.4em; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 24px; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; }
.tile-label { font-size: 12.5px; color: var(--muted); }
.tile-value { font: 600 34px/1.05 var(--ui); letter-spacing: -.02em; }
.tile-note { font-size: 13px; color: var(--ink-2); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font: 600 11px/1.2 var(--data); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .nowrap { white-space: nowrap; }
.tbl tbody tr:hover td { background: var(--panel-2); }
.tbl .grp td { background: var(--bg-2); color: var(--muted); font: 600 11px var(--data); letter-spacing: .07em; text-transform: uppercase; padding-block: 8px; }
.sym { font: 600 13.5px var(--data); color: var(--ink); }
.sym-sub { display: block; font: 12px var(--ui); color: var(--muted); }

.board th, .board td { padding: 8px 8px; }
.board th.col { text-align: center; min-width: 92px; white-space: normal; line-height: 1.25; }
.board th.col a { color: var(--muted); }
.board th.col a:hover { color: var(--ink); }
.board td.cell { text-align: center; }
.board td.cell a:hover { text-decoration: none; filter: brightness(1.15); }
.board .stick { position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 132px; }
.board tbody tr:hover td.stick { background: var(--panel-2); }
.consensus { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 12px var(--data); color: var(--ink-2); }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 7px; height: 14px; border-radius: 2px; background: var(--line-2); }
.meter i.on { background: var(--in); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--muted); align-items: center; }

/* ---------- flips list ---------- */
.flips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.flips li a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.flips li a:hover { border-color: var(--line-2); text-decoration: none; background: var(--panel-2); }
.flips .when { font: 12px var(--data); color: var(--muted); min-width: 52px; }
.flips .what { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.flips .what span { color: var(--muted); font-size: 12.5px; }

/* ---------- thinker cards ---------- */
.thinker-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.thinker-card:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.thinker-card .name { font: 500 22px/1.15 var(--display); }
.thinker-card .role { font-size: 13px; color: var(--muted); }
.thinker-card .strat { font: 600 12px var(--data); color: var(--violet-ink); letter-spacing: .03em; }
.thinker-card .rec { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.thinker-card .rec b { font: 600 15px var(--ui); color: var(--ink); display: block; }

/* ---------- pair page ---------- */
.pair-head { display: flex; flex-direction: column; gap: 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 14px; }
.verdict { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.verdict .card { display: flex; flex-direction: column; gap: 12px; }
.verdict .big { font: 500 clamp(26px, 3.4vw, 34px)/1.1 var(--display); }
.verdict .facts { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); font-size: 13.5px; }
.verdict .facts b { color: var(--ink); font-weight: 600; }
.next-card { border-color: rgba(124, 108, 245, .45); background: linear-gradient(180deg, rgba(124, 108, 245, .10), rgba(124, 108, 245, .02)), var(--panel); }
.level { font: 600 clamp(26px, 3.4vw, 34px)/1 var(--ui); letter-spacing: -.02em; }
.level-sub { font: 13px var(--data); color: var(--muted); }
.alert-line { font-size: 13.5px; color: var(--band); border-left: 2px solid var(--band); padding-left: 10px; }
@media (max-width: 760px) { .verdict { grid-template-columns: 1fr; } }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.checks li { display: flex; gap: 8px; align-items: baseline; color: var(--ink-2); }
.checks .ok { color: var(--in); font-weight: 700; }
.checks .no { color: var(--out); font-weight: 700; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font: 500 12.5px var(--data); color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.chips a:hover { color: var(--ink); border-color: var(--line-2); text-decoration: none; }
.chips a .pill { margin-left: 6px; padding: 2px 6px; font-size: 10.5px; }
.chips a .pill::before { width: 5px; height: 5px; }

/* ---------- charts ---------- */
.chart-card { display: flex; flex-direction: column; gap: 10px; }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.key { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.key i { width: 16px; height: 2px; border-radius: 2px; display: inline-block; }
.key s { width: 12px; height: 10px; border-radius: 2px; display: inline-block; text-decoration: none; }
.chart { position: relative; width: 100%; height: 280px; outline: none; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .tt {
  position: absolute; top: 6px; pointer-events: none; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; min-width: 150px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.8);
  display: flex; flex-direction: column; gap: 3px;
}
.chart .tt .d { color: var(--muted); font: 11.5px var(--data); }
.chart .tt .row { display: flex; align-items: center; gap: 8px; }
.chart .tt .row i { width: 12px; height: 2px; border-radius: 2px; }
.chart .tt .row b { font: 600 12.5px var(--data); color: var(--ink); }
.chart .tt .row span { color: var(--muted); }
.chart-note { font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .chart { height: 230px; } }

/* ---------- rule / thinker ---------- */
.rule-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.assume { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.sources { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.against { border-left: 3px solid var(--line-2); padding-left: 14px; color: var(--ink-2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- stock cards ---------- */
.stock-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.stock-card:hover { text-decoration: none; background: var(--panel-2); border-color: var(--line-2); }
.stock-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.stock-card .px { font: 600 15px var(--data); }

/* ---------- desk teaser ---------- */
.teaser { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--ui); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
}
.btn:hover { text-decoration: none; border-color: var(--violet); }
.btn.primary { background: var(--violet); border-color: var(--violet); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); }
.foot-row { padding-block: 22px 40px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.foot-row p { max-width: 72ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- learn ---------- */
.lesson { display: flex; flex-direction: column; gap: 34px; }
.lesson .prose { max-width: 70ch; }
.lesson .prose h2 { margin-top: 4px; }
.lesson .prose p, .lesson .prose li { font-size: 16px; line-height: 1.65; }
.lesson .chart-card { max-width: 900px; }
.lesson-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lesson-card { display: flex; align-items: center; gap: 16px; color: var(--ink); padding: 16px 18px; }
.lesson-card:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.lesson-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 14px var(--data); color: var(--violet-ink); background: rgba(124, 108, 245, .12); box-shadow: inset 0 0 0 1px rgba(124, 108, 245, .4); }
.lesson-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.lesson-txt b { font: 500 19px/1.25 var(--display); }
.lesson-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lesson-nav { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.lesson-nav b { font: 500 18px/1.3 var(--display); }
.lesson-nav.next { text-align: right; }
.lesson-nav:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
@media (max-width: 600px) { .lesson-pager { grid-template-columns: 1fr; } .lesson-nav.next { text-align: left; } .lesson-card { gap: 12px; padding: 14px; } }
.mistakes { padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.rule-plain h3 a { color: var(--ink); }

/* ---------- glossary ---------- */
.gl-tools { gap: 10px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 5;
  background: var(--bg); padding-block: 10px; margin-block: -10px; }
.gl-tools input { font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 11px 12px; width: 100%; max-width: 520px; }
.gl-tools input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.gl-topic { gap: 12px; scroll-margin-top: 150px; }
.gl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.gl-entry { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 150px; min-width: 0; }
.gl-entry p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.gl-entry:target { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .18); }
.gl-more { font-size: 13px !important; }
@media (max-width: 720px) { .gl-tools { top: calc(env(safe-area-inset-top, 0px) + 92px); } .gl-topic, .gl-entry { scroll-margin-top: 190px; } }

/* ---------- v5: plays, families, practice ---------- */
:root { --s3: #3fa7c9; }
.fillbar { display: inline-block; width: 56px; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; vertical-align: middle; flex: none; }
.fillbar i { display: block; height: 100%; background: var(--in); border-radius: 4px; }
.fam-cell a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font: 12px var(--data); white-space: nowrap; }
.fam-cell a:hover { text-decoration: none; color: var(--ink); }
.fam-cell .fillbar { width: 40px; }
.board th.c { text-align: center; white-space: normal; min-width: 96px; line-height: 1.25; }
.board th.c a { color: var(--muted); }
.board th.c a:hover { color: var(--ink); }
.fam-chips { margin-top: 4px; }
.fam-chips a { font-family: var(--ui); }
.fam-sec { scroll-margin-top: 80px; }
.fam-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.fam-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--ink); }
.fam-tile:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.fam-tile .fam-n { font-size: 13px; color: var(--ink-2); }
.fam-tile .fam-n b { font: 600 22px var(--ui); color: var(--ink); margin-right: 2px; }
.fam-tile .fillbar { width: 100%; }
tr.grp[id] { scroll-margin-top: 80px; }
.chart.chart-sm { height: 170px; }
@media (max-width: 600px) { .chart.chart-sm { height: 150px; } }
.reading { font-family: var(--data); }
.reading b { color: var(--ink); font-weight: 600; }
.jump { gap: 8px; }
.jump.split > div { display: flex; flex-direction: column; gap: 8px; }
.jump select, .practice select {
  font: 500 14.5px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; width: 100%; max-width: 520px;
}
.practice-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.practice-card:hover { text-decoration: none; border-color: var(--violet); background: var(--panel-2); }
.practice-card .name { font: 500 22px/1.15 var(--display); }
.practice-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 18px; }
.practice-strip p { color: var(--ink-2); font-size: 14px; }
.books { list-style: none; padding: 0 !important; }
.books li { padding-left: 0; }
.consensus .fillbar { margin-right: 2px; }

/* ---------- v5: interactive learning ---------- */
.linkish { all: unset; cursor: pointer; color: var(--violet-ink); }
.linkish:hover { text-decoration: underline; }
.progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.progress-grid .tile-value { font-size: 28px; }
.lesson-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lesson-done { color: var(--in); font-weight: 600; }
.lesson-card.is-read .lesson-n { background: var(--in-wash); color: var(--in); box-shadow: inset 0 0 0 1px var(--in-edge); }
.quiz { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.quiz-body { display: flex; flex-direction: column; gap: 18px; }
.quiz-q { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.quiz-q legend { font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 4px; padding: 0; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink-2); font-size: 14.5px; line-height: 1.45;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--violet); color: var(--ink); }
.quiz-opt:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.quiz-opt:disabled { cursor: default; opacity: .75; }
.quiz-opt.is-right { border-color: var(--in-edge); background: var(--in-wash); color: var(--ink); opacity: 1; }
.quiz-opt.is-wrong { border-color: var(--out-edge); background: var(--out-wash); color: var(--ink); opacity: 1; }
.quiz-why { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 12px; line-height: 1.55; }
.quiz-why.ok { border-color: var(--in); }
.quiz-why.no { border-color: var(--out); }
.quiz-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.practice { gap: 16px; }
.practice-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; justify-content: space-between; }
.practice-bar label { display: flex; flex-direction: column; gap: 6px; min-width: min(100%, 220px); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: 9px 14px; font: 500 13.5px var(--ui); color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet); }
.seg button:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: -2px; }
.fc-stage { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 720px; }
.fc-card { min-height: 230px; display: flex; cursor: pointer; padding: 26px; transition: border-color .15s; }
.fc-card:hover, .fc-card:focus-visible { border-color: var(--violet); outline: none; }
.fc-card.is-flipped { background: linear-gradient(180deg, rgba(124, 108, 245, .08), rgba(124, 108, 245, .02)), var(--panel); }
.fc-face { display: flex; flex-direction: column; gap: 10px; justify-content: center; width: 100%; }
.fc-title { font: 500 clamp(28px, 4vw, 38px)/1.1 var(--display); color: var(--ink); }
.fc-text { font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.fc-face ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); font-size: 14.5px; }
.fc-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
.fc-actions .btn { justify-content: center; }
.fc-more { align-self: flex-start; }
.fc-done { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (max-width: 520px) { .fc-actions { grid-template-columns: 1fr 1fr; } .fc-actions .btn:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .fc-card { min-height: 200px; padding: 20px; } }
.ci-stage { display: flex; flex-direction: column; gap: 14px; }
.ci-head { display: flex; flex-direction: column; gap: 6px; }
.ci-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ci-charts { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ci-rules ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
@media (max-width: 860px) { .ci-grid { grid-template-columns: 1fr; } }
.ci-ask { display: flex; gap: 10px; flex-wrap: wrap; }
.ci-ask .btn { padding: 12px 18px; font-size: 15px; }
.ci-ask .btn:disabled { cursor: default; opacity: .7; }
.ci-ask .btn.is-right { border-color: var(--in); opacity: 1; box-shadow: 0 0 0 3px var(--in-wash); }
.ci-ask .btn.is-wrong { border-color: var(--out); opacity: 1; box-shadow: 0 0 0 3px var(--out-wash); }
.ci-result { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--violet); padding: 4px 0 4px 14px; max-width: 760px; }
.ci-result p { color: var(--ink-2); line-height: 1.55; }
.ci-result .h3.up { color: var(--in); }
.ci-result .h3.down { color: var(--out); }
.ci-next { display: flex; gap: 10px; flex-wrap: wrap; }
.pq { gap: 14px; max-width: 760px; }
.pq-stage { display: flex; flex-direction: column; gap: 12px; }
.pq-q { font: 500 clamp(20px, 2.6vw, 24px)/1.3 var(--display); color: var(--ink); }
.book-pick h3 { font: 500 20px/1.25 var(--display); }

/* ---------- v6: stock views, markets, watchlist ---------- */
:root { --candle-up: #26a69a; --candle-down: #ef5350; --calm: #6fb8ff; --watch: #f2b13c; --warning: #ff7a45; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--violet); }
.seg-sm button { padding: 6px 11px; font-size: 12.5px; }
.btn.sm { padding: 7px 12px; font-size: 13px; cursor: pointer; }
button.btn { cursor: pointer; }
.btn.is-on { border-color: var(--in-edge); color: var(--in); }
.note-line { font-size: 13.5px; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 10px; max-width: 72ch; }
.read-card { display: flex; flex-direction: column; gap: 10px; border-color: rgba(124, 108, 245, .4);
  background: linear-gradient(180deg, rgba(124, 108, 245, .09), rgba(124, 108, 245, .015)), var(--panel); }
.read-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.read { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: 15.5px; line-height: 1.55; max-width: 80ch; }
.sum-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
@media (max-width: 600px) { .sum-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .sum-tiles .tile { padding: 14px; } .sum-tiles .tile-value { font-size: 24px; } .sum-tiles .tile-note { font-size: 12px; } }
.sum-tiles .tile-value { font-size: 30px; }
.tile-value small { font-size: 16px; color: var(--muted); font-weight: 500; }
.tile .fillbar { width: 100%; }
.tile-link { color: var(--ink); }
/* stock overview: the most accurate play in each family */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.tp { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--ink); min-width: 0; }
.tp:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.tp-fam { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tp-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; line-height: 1.25; }
.tp-name b { min-width: 0; overflow-wrap: anywhere; }
.tp-name .pill { flex: none; }
.tp-acc { font-size: 13px; color: var(--ink-2); }
.tp-acc b { font: 600 20px var(--ui); color: var(--ink); margin-right: 2px; }
.tp-here { font-size: 12.5px; color: var(--muted); }
.top-plays > .small { margin-top: 10px; }
@media (max-width: 600px) {
  .tp-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tp { padding: 12px; gap: 5px; }
  .tp-name { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 14px; }
  .tp-acc b { font-size: 18px; }
  .tp-here { font-size: 12px; }
  .tp:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.tile-link:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.lvl-calm { color: var(--calm); } .lvl-watch { color: var(--watch); } .lvl-warning { color: var(--warning); }
.lvl { font: 600 12px var(--data); letter-spacing: .03em; }
.core-tag { font: 600 10px var(--data); letter-spacing: .06em; text-transform: uppercase; color: var(--violet-ink);
  border: 1px solid rgba(124, 108, 245, .45); border-radius: 4px; padding: 1px 4px; margin-left: 6px; vertical-align: 1px; }
.core-only tr.nc { display: none; }
.sec-head .seg { align-self: center; }

/* candlesticks */
.candles { display: flex; flex-direction: column; gap: 8px; }
.cd-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.cd-ov { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--ui); color: var(--muted);
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }
.cd-chip i { width: 12px; height: 2px; border-radius: 2px; opacity: .4; }
.cd-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); }
.cd-chip[aria-pressed="true"] i { opacity: 1; }
.cd-chip:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.cd-plot { position: relative; width: 100%; height: 360px; outline: none; touch-action: pan-y; }
.cd-plot svg { display: block; width: 100%; height: 100%; }
.cd-tip { font: 12px var(--data); color: var(--ink-2); min-height: 1.5em; }
@media (max-width: 600px) { .cd-plot { height: 280px; } }
/* news markers on the candle chart: the card a dot opens, and the list under the chart */
.candles { position: relative; }
.cd-mk { cursor: pointer; outline: none; }
.cd-mk:focus-visible circle:nth-of-type(2) { stroke: var(--violet-ink); stroke-width: 3; }
.cd-news { position: absolute; z-index: 5; width: min(360px, calc(100% - 4px)); padding: 14px 16px 12px; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font: 14px/1.45 var(--ui); color: var(--ink-2);
  max-height: min(480px, 72vh); overflow-y: auto; }
.cd-news[hidden] { display: none; }
.cd-news .cn-x { all: unset; cursor: pointer; position: absolute; top: 6px; right: 10px; font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 4px; }
.cd-news .cn-x:focus-visible { outline: 2px solid var(--violet-ink); border-radius: 4px; }
.cd-news .cn-meta { margin: 0 22px 3px 0; font: 11.5px var(--data); color: var(--muted); }
.cd-news .cn-h { display: block; margin: 0 0 10px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.cd-news a.cn-h:hover { color: var(--violet-ink); }
.cd-news .cn-more { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted); }
.cd-news .cn-imp { border-top: 1px solid var(--line); padding-top: 9px; }
.cd-news .cn-rows { display: grid; gap: 3px; margin-bottom: 7px; }
.cd-news .cn-row { display: grid; grid-template-columns: 74px 64px 1fr; gap: 8px; align-items: baseline; font: 13px var(--data); }
.cd-news .cn-l { color: var(--muted); font-family: var(--ui); }
.cd-news .cn-m { color: var(--muted); font-size: 12px; }
.cd-news .cn-verdict { margin: 0 0 6px; color: var(--ink); }
.cd-news .cn-how { margin: 0; font-size: 12px; color: var(--muted); }
.cd-newslist { border-top: 1px solid var(--line); padding-top: 10px; }
.cd-newslist .nl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.cd-newslist .nl-head span { color: var(--muted); font-size: 12px; }
.cd-newslist ul { list-style: none; margin: 0; padding: 0; }
.cd-newslist li button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px;
  align-items: baseline; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.cd-newslist li button:hover .nl-h, .cd-newslist li button:focus-visible .nl-h { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.cd-newslist li button:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: -2px; border-radius: 6px; }
.cd-newslist .nl-d { font: 12px var(--data); color: var(--muted); }
.cd-newslist .nl-h { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cd-newslist b { font: 600 12.5px var(--data); }
.cd-newslist .nl-pend { font: 12px var(--data); color: var(--violet-ink); }
.cd-newslist .nl-all { margin-top: 8px; font-size: 13px; }
.cd-newslist .nl-empty { margin: 0; font-size: 13px; color: var(--muted); }

/* heatmap */
.heatmap { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.hm-canvas { display: block; width: 100%; touch-action: pan-y; }
.hm-tip { font: 12px var(--data); color: var(--ink-2); min-height: 1.5em; }
.hm-tip a { margin-left: 6px; }
.hm-seg { align-self: flex-start; }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 4px 28px; }
.fund-grid .tbl-wrap { overflow: visible; }

/* fundamentals + crash */
.deep { align-items: start; }
.fund-card, .crash-card { display: flex; flex-direction: column; gap: 12px; }
.tbl-wrap.flat { border: none; border-radius: 0; background: transparent; }
.fund-tbl th[scope="row"] { text-transform: none; letter-spacing: 0; font: 500 13.5px var(--ui); color: var(--ink); white-space: normal; padding-left: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fund-tbl td { vertical-align: top; }
.fund-tbl td.muted { font-size: 12.5px; line-height: 1.45; min-width: 180px; }
.fund-tbl .grp td { padding-left: 0; background: transparent; }
.fund-tbl tbody tr:hover td { background: transparent; }
.about-co { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.crash-top { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.crash-level { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); min-width: 140px; }
.crash-level b { font: 600 28px/1.05 var(--ui); }
.crash-level.calm b { color: var(--calm); } .crash-level.watch b { color: var(--watch); } .crash-level.warning b { color: var(--warning); }
.crash-level.warning { border-color: rgba(255, 122, 69, .45); } .crash-level.watch { border-color: rgba(242, 177, 60, .4); }
.crash-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; flex: 0 1 380px; min-width: 220px; }
.crash-parts li { display: grid; grid-template-columns: 104px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.crash-parts b { font: 600 12px var(--data); color: var(--ink); text-align: right; }
.pips { display: flex; gap: 3px; }
.pips i { flex: 1; height: 8px; border-radius: 3px; background: var(--line-2); max-width: 46px; }
.pips i.on.calm { background: var(--calm); } .pips i.on.watch { background: var(--watch); } .pips i.on.warning { background: var(--warning); }
.why { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink); }
.crash-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 640px) { .crash-grid { grid-template-columns: 1fr; } }
.crash-bars { display: flex; flex-direction: column; gap: 12px; }
.cb { display: flex; flex-direction: column; gap: 4px; }
.cb-h { font-size: 13px; }
.cb-h .muted { font-size: 12px; }
.cb-row { display: grid; grid-template-columns: 84px 1fr 48px; gap: 8px; align-items: center; font: 12px var(--data); color: var(--ink-2); }
.cb-row b { text-align: right; color: var(--ink); font-weight: 600; }
.cb-lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-track { height: 10px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.cb-track i { display: block; height: 100%; border-radius: 3px; background: var(--muted); }
.cb-track i.calm { background: var(--calm); } .cb-track i.watch { background: var(--watch); } .cb-track i.warning { background: var(--warning); }
.cb-row.bench .cb-track i { background: var(--s-bench); opacity: .6; }
.crash-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.crash-facts li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.crash-facts b { font: 600 13px var(--data); color: var(--ink); }
.crash-facts em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* markets */
.wx.calm { color: var(--calm); } .wx.watch { color: var(--watch); } .wx.warning { color: var(--warning); }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-size: 13px; }
.gchip:hover { text-decoration: none; border-color: var(--line-2); color: var(--ink); }
.gchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.gchip.calm i { background: var(--calm); } .gchip.watch i { background: var(--watch); } .gchip.warning i { background: var(--warning); }
.gchip b { font: 600 12.5px var(--data); color: var(--ink); }
.gauges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 14px; }
.gauge { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; border-top-width: 3px; }
.gauge.calm { border-top-color: var(--calm); } .gauge.watch { border-top-color: var(--watch); } .gauge.warning { border-top-color: var(--warning); }
.g-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.g-top .eyebrow { text-transform: none; letter-spacing: 0; font: 13px var(--ui); color: var(--muted); margin-bottom: 4px; }
.g-top .h3 { font: 500 22px/1.15 var(--display); }
.g-val { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.g-val b { font: 600 26px/1 var(--ui); letter-spacing: -.02em; }
.g-status { font: 600 11px var(--data); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; }
.g-status.calm { color: var(--calm); background: rgba(111, 184, 255, .1); } .g-status.watch { color: var(--watch); background: rgba(242, 177, 60, .1); }
.g-status.warning { color: var(--warning); background: rgba(255, 122, 69, .12); }
.g-reading { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.g-peaks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); align-items: baseline; }
.g-peaks li { display: inline-flex; gap: 6px; align-items: baseline; }
.g-peaks .lab { font: 600 11px var(--data); letter-spacing: .06em; text-transform: uppercase; }
.g-peaks b { font: 600 12.5px var(--data); }
.st-calm { color: var(--calm); } .st-watch { color: var(--watch); } .st-warning { color: var(--warning); }
.gauge details { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.gauge details summary { cursor: pointer; color: var(--violet-ink); font-size: 13px; }
.gauge details p { margin-top: 8px; line-height: 1.55; }
.tops td, .tops th { white-space: nowrap; }
.st-cell { display: inline-block; min-width: 64px; padding: 4px 8px; border-radius: 6px; font: 600 12.5px var(--data); background: var(--bg-2); }
.st-cell.st-calm { background: rgba(111, 184, 255, .08); } .st-cell.st-watch { background: rgba(242, 177, 60, .1); } .st-cell.st-warning { background: rgba(255, 122, 69, .14); }
.st-cell.now { box-shadow: inset 0 0 0 1px currentColor; }
.tops .sumrow td { font-weight: 600; color: var(--ink); background: var(--bg-2); }
.sim-card { display: flex; flex-direction: column; gap: 12px; }
.sim { display: flex; flex-direction: column; gap: 14px; }
.sim-ui { display: flex; flex-direction: column; gap: 12px; }
.sim-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 700px) { .sim-row { grid-template-columns: 1fr; } }
.sim-row label { display: flex; flex-direction: column; gap: 6px; }
.sim select { font: 500 14.5px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.chip-btn { all: unset; cursor: pointer; font: 500 12.5px var(--ui); color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px; }
.chip-btn:hover { color: var(--ink); border-color: var(--violet); }
.chip-btn:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.sim-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 20px; }
.sim-sl { display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto auto; gap: 2px 10px; font-size: 13px; color: var(--ink-2); align-items: center; }
.sim-sl span { grid-column: 1 / -1; }
.sim-sl input { width: 100%; accent-color: var(--violet); }
.sim-sl b { font: 600 13px var(--data); text-align: right; color: var(--ink); }
.sim-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.sim-stats .tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.sim-stats .tile-value { font-size: 24px; }
.bd-card { display: flex; flex-direction: column; gap: 12px; }
.bd { display: flex; flex-direction: column; gap: 8px; }
.bd-row { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 84px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.bd-row b { font: 600 13px var(--data); text-align: right; color: var(--ink); }
.bd-track { height: 12px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.bd-track i { display: block; height: 100%; border-radius: 3px; background: var(--s-bench); }
.bd-track i.base { background: var(--violet); } .bd-track i.less { background: var(--warning); opacity: .8; } .bd-track i.more { background: var(--calm); }
@media (max-width: 520px) { .bd-row { grid-template-columns: 1fr 72px; } .bd-track { grid-column: 1 / -1; grid-row: 2; } }
.buckets .prose { gap: 8px; }
.tbl td.why-col { min-width: 240px; }
.mkt-tbl td:first-child { min-width: 150px; }

/* watchlist */
.wl { gap: 14px; }
.wl-add { display: flex; flex-direction: column; gap: 10px; }
.wl-add textarea { font: 500 15px/1.5 var(--data); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; width: 100%; resize: vertical; min-height: 76px; }
.wl-add textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.wl-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.wl-actions label.btn { cursor: pointer; }
.warn-text { color: var(--watch); }
.wl-plays { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.wl-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px 20px; }
.wl-fam { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wl-fam legend { font: 600 11px var(--data); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; padding: 0; }
.wl-fam label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.wl-fam input { accent-color: var(--violet); }
.wl-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.wl-sum .tile { padding: 16px; }
.wl-sum .tile-value { font-size: 28px; }
.wl-sum .tile.wide { grid-column: span 2; }
@media (min-width: 900px) { .wl-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wl-sum { grid-template-columns: 1fr 1fr; } .wl-sum .tile.wide { grid-column: 1 / -1; } }
.wl-stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--line-2); margin-top: 6px; }
.wl-stack i, .wl-key i { display: block; height: 100%; }
.wl-stack .in, .wl-key .in { background: var(--in); } .wl-stack .out, .wl-key .out { background: var(--out); } .wl-stack .split, .wl-key .split { background: var(--band); }
.wl-stack .calm, .wl-key .calm { background: var(--calm); } .wl-stack .watch, .wl-key .watch { background: var(--watch); } .wl-stack .warning, .wl-key .warning { background: var(--warning); }
.wl-stack .none, .wl-key .none { background: var(--line-2); }
.wl-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); }
.wl-key span { display: inline-flex; align-items: center; gap: 5px; }
.wl-key i { width: 9px; height: 9px; border-radius: 2px; }
.wl-tbl td { padding-block: 9px; }
.wl-tbl td:first-child { min-width: 150px; }
.wl-strip { display: inline-flex; gap: 1px; align-items: center; flex-wrap: nowrap; }
.wl-strip a, .wl-strip span { display: block; width: 7px; height: 16px; border-radius: 1.5px; background: var(--line-2); }
.wl-strip .in { background: var(--in); } .wl-strip .out { background: var(--out); opacity: .85; }
.wl-strip b { width: 4px; }
.wl-strip a:hover { outline: 1px solid var(--ink); }
.wl-x { all: unset; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.wl-x:hover { color: var(--ink); background: var(--panel-2); }
.wl-x:focus-visible { outline: 2px solid var(--violet-ink); }
.wl-status { font-size: 13px; color: var(--ink-2); }
.wl-status.queued, .wl-status.sending { color: var(--violet-ink); }
.wl-status.rejected, .wl-status.error { color: var(--watch); }
.wl-status .linkish { margin-left: 6px; }
.wl-empty { display: flex; flex-direction: column; gap: 6px; }
.how ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* articles */
.article { display: flex; flex-direction: column; gap: 26px; }
.art-body { display: flex; flex-direction: column; gap: 18px; }
.art-body .prose { max-width: 72ch; }
.art-body .prose p, .art-body .prose li { font-size: 16px; line-height: 1.68; }
.art-body .prose h2 { margin-top: 10px; }
.art-body .read { font-size: 16px; }
.art-sources ol { font-size: 13px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.art-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.art-card:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.art-card .name { font: 500 20px/1.2 var(--display); }
.art-card .tag { align-self: flex-start; }
.tag.live { color: var(--in); box-shadow: inset 0 0 0 1px var(--in-edge); background: var(--in-wash); }
.art-lookup { display: flex; flex-direction: column; gap: 8px; }
.art-lookup select { font: 500 14.5px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; max-width: 520px; }
.green-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.green-card { display: flex; flex-direction: column; gap: 10px; }
.green-card .h3 { font: 500 21px/1.2 var(--display); }
.green-card .h3 a { color: var(--ink); }
.green-facts { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.flip-list { list-style: none; padding: 0 !important; }
.flip-list .mono { display: inline-block; min-width: 52px; color: var(--muted); }

/* learn: tracks, steps and labs */
.track-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 6px; }
.track-pill { display: flex; flex-direction: column; gap: 4px; color: var(--ink); padding: 14px 16px; }
.track-pill b { font: 500 20px/1.2 var(--display); }
.track-pill:hover { text-decoration: none; border-color: var(--violet); }
.track { scroll-margin-top: 80px; }
.stepper { display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step .prose p, .step .prose li { font-size: 16px; line-height: 1.65; }
.st-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 4; display: flex; align-items: center; gap: 12px; padding: 8px 0; background: var(--bg); }
@media (max-width: 720px) { .st-bar { top: calc(env(safe-area-inset-top, 0px) + 92px); } }
.st-trk { flex: 1; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.st-trk i { display: block; height: 100%; background: var(--violet); border-radius: 3px; transition: width .3s; }
.st-next { align-self: flex-start; }
.check { display: flex; flex-direction: column; gap: 10px; max-width: 760px; border-color: rgba(124, 108, 245, .4); }
.ck-q { font-weight: 600; color: var(--ink); line-height: 1.45; }
.lab-card { display: flex; flex-direction: column; gap: 12px; }
.lab { display: flex; flex-direction: column; gap: 14px; }
.lab-ui { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px 22px; align-items: end; }
.lab-sl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--ink-2); align-items: center; }
.lab-sl span { grid-column: 1 / -1; }
.lab-sl input { width: 100%; accent-color: var(--violet); }
.lab-sl b { font: 600 13px var(--data); color: var(--ink); text-align: right; min-width: 64px; }
.lab-sel { display: flex; flex-direction: column; gap: 6px; }
.lab-sel select { font: 500 14px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; width: 100%; }
.lab-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.lab-stat { display: flex; flex-direction: column; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.lab-stat b { font: 600 20px/1.15 var(--ui); color: var(--ink); }
.lab-stat b.up { color: var(--in); } .lab-stat b.down { color: var(--out); }
.lab-log { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--violet); padding-left: 10px; line-height: 1.55; max-width: 80ch; min-height: 1.5em; }
.lab-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-bars { display: flex; flex-direction: column; gap: 6px; }
.lab-bar { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 76px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.lab-bar.on { color: var(--ink); font-weight: 600; }
.lab-bar .trk { height: 10px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.lab-bar .trk i { display: block; height: 100%; background: var(--s-bench); border-radius: 3px; }
.lab-bar.on .trk i { background: var(--violet); }
.lab-bar .trk i.neg { background: var(--warning); }
.lab-bar b { font: 600 12.5px var(--data); text-align: right; color: var(--ink); }
@media (max-width: 520px) { .lab-bar { grid-template-columns: 1fr 70px; } .lab-bar .trk { grid-column: 1 / -1; grid-row: 2; } }
.lab-plot { width: 100%; min-height: 300px; }
.lab-plot svg { display: block; width: 100%; }
.ob-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 700px) { .ob-wrap { grid-template-columns: 1fr; } }
.ob { display: flex; flex-direction: column; gap: 2px; font: 12.5px var(--data); }
.ob-row { display: grid; grid-template-columns: 1fr 64px 64px 1fr; gap: 6px; align-items: center; }
.ob-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ob-px.bid { color: var(--calm); text-align: right; } .ob-px.ask { color: var(--warning); }
.ob-sz { position: relative; height: 20px; display: flex; align-items: center; padding: 0 6px; color: var(--ink-2); }
.ob-sz i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; opacity: .25; }
.ob-sz.bid { justify-content: flex-start; } .ob-sz.bid i { right: 0; background: var(--calm); }
.ob-sz.ask { justify-content: flex-end; } .ob-sz.ask i { left: 0; background: var(--warning); }
.ob-chart { min-height: 150px; }
.cb-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 600px) { .cb-wrap { grid-template-columns: 1fr; } }
.cb-pic svg { display: block; width: 100%; max-width: 260px; }
.cb-txt { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.sc-list { display: flex; flex-direction: column; gap: 10px; }
.sc-row { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.sc-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--muted); }
.sc-row.ok .sc-dot { background: var(--calm); } .sc-row.mid .sc-dot { background: var(--watch); } .sc-row.warn .sc-dot { background: var(--warning); } .sc-row.info .sc-dot { background: var(--violet-ink); }
.sc-q { font-weight: 600; color: var(--ink); font-size: 14px; }
.sc-a { color: var(--ink-2); font-size: 14px; }
.bk-stack { height: 22px; }
.dd-bars { display: flex; flex-direction: column; gap: 8px; }
.sim-embed .card { padding: 0; border: none; background: transparent; }
@media (max-width: 600px) {
  .fund-grid .tbl-wrap { overflow: hidden; }
  .fund-tbl, .fund-tbl tbody { display: block; }
  .fund-tbl tr:not(.grp) { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); }
  .fund-tbl tr.grp { display: block; }
  .fund-tbl tr.grp td { display: block; }
  .fund-tbl th[scope="row"], .fund-tbl td { border-bottom: none; }
  .fund-tbl td.muted { grid-column: 1 / -1; min-width: 0; padding-top: 0; padding-left: 0; }
}

/* home v6 */
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.home-check, .home-pick { display: flex; flex-direction: column; gap: 10px; }
.home-check input { font: 500 15px var(--data); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; width: 100%; }
.home-check input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.home-pick { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.picker button.secondary { background: var(--panel-2); border-color: var(--line-2); }
.idx-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.idx-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; color: var(--ink); }
.idx-card:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.idx-card .px { font: 600 18px var(--data); }
.idx-card { min-width: 0; }
.idx-card .consensus { white-space: normal; flex-wrap: wrap; gap: 4px 8px; }
.green-card .g-val { min-width: 0; text-align: right; }
.green-card .g-val span { white-space: normal; }
@media (max-width: 520px) { .green-card .g-top { flex-direction: column; } .green-card .g-val { align-items: flex-start; text-align: left; } }

/* ---------- v6: header menus ---------- */
.site-nav { align-items: center; }
.nav-item { position: relative; }
.nav-item .nav-top { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav-item .nav-top:hover, .nav-item.open .nav-top, .nav-item:focus-within .nav-top { color: var(--ink); background: var(--panel); text-decoration: none; }
.nav-item .nav-top[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.dd { display: none; position: absolute; top: 100%; left: 0; padding-top: 6px; z-index: 50; min-width: 300px; }
.dd-in { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); display: flex; flex-direction: column; }
.dd a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.dd a:hover, .dd a:focus-visible { background: var(--panel-2); text-decoration: none; }
.dd a b { font: 600 13.5px var(--ui); }
.dd a span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
@media (hover: hover) { .nav-item:hover .dd { display: block; } }
.nav-item:focus-within .dd, .nav-item.open .dd { display: block; }
@media (max-width: 720px) {
  .head-row { position: relative; }
  .nav-item { position: static; }
  .nav-item .nav-top { padding: 5px 10px; font-size: 13px; }
  .dd { left: 0; right: 0; min-width: 0; padding-top: 4px; }
  .dd a { padding: 10px 12px; }
}
/* the old flat nav links (desk and story pages keep their own headers) */
.site-nav > a { color: var(--muted); }

/* ---------- v6: stock list ---------- */
.st-views { margin-top: 4px; }
.st-tools { display: flex; flex-direction: column; gap: 10px; }
.st-tools input { font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; width: 100%; max-width: 520px; }
.st-tools input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.st-tools .chips { align-items: center; gap: 6px; }
.chip-btn[aria-pressed="true"] { color: var(--ink); background: var(--panel-2); border-color: var(--violet); }
.st-tbl .stick { position: sticky; left: 0; background: var(--panel); z-index: 1; min-width: 132px; }
.st-tbl tbody tr:hover td.stick { background: var(--panel-2); }
.st-tbl td, .st-tbl th { white-space: nowrap; }
.st-tbl td.grp-col { white-space: normal; min-width: 110px; }
.st-views { align-self: flex-start; }
@media (max-width: 600px) {
  .st-tools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -16px; padding-inline: 16px; }
  .st-tools .chips::-webkit-scrollbar { display: none; }
  .st-tools .chips .chip-btn, .st-tools .chips span { flex: none; }
}

/* ---------- v7: members, the lock, top picks ---------- */
.tag.mem { color: var(--violet-ink); box-shadow: inset 0 0 0 1px rgba(124, 108, 245, .45); background: rgba(124, 108, 245, .1); gap: 5px; }
.tag.mem .lock-ic { width: 12px; height: 12px; }
.lock-ic { flex: none; }
.art-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.art-card > .tag.mem { order: 9; margin-top: auto; }
.mem-note { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.mem-note .tag { flex: none; }
.mem-note > span:last-child { flex: 1 1 260px; min-width: 0; }
.lock-card { display: flex; flex-direction: column; gap: 18px; border-color: rgba(124, 108, 245, .45);
  background: linear-gradient(180deg, rgba(124, 108, 245, .08), rgba(124, 108, 245, 0) 70%), var(--panel); padding: clamp(18px, 3vw, 28px); }
.lock-top { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lock-top .muted { max-width: 64ch; }
.lock-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 28px; align-items: end; }
@media (max-width: 720px) { .lock-split { grid-template-columns: 1fr; } }
.lock-form { display: flex; flex-direction: column; gap: 8px; }
.lock-form label { font-size: 12.5px; color: var(--muted); }
.lock-row { display: flex; gap: 8px; }
.lock-row input { flex: 1 1 auto; min-width: 0; font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; }
.lock-row input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.lock-row .btn { flex: none; cursor: pointer; }
.lock-msg { color: var(--out); }
.lock-msg.ok { color: var(--in); }
.lock-join { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.is-locked .pair-head { margin-bottom: 18px; }
.mem-card .name { font: 500 21px/1.2 var(--display); }
.mem-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.mem-card:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.mem-state { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.mem-split .card { display: flex; flex-direction: column; gap: 12px; }
.mem-tl { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; counter-reset: tl; }
.mem-tl li { position: relative; padding: 0 0 18px 34px; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; color: var(--ink-2); }
.mem-tl li::before { counter-increment: tl; content: counter(tl); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--data); color: var(--violet-ink); background: rgba(124, 108, 245, .14); box-shadow: inset 0 0 0 1px rgba(124, 108, 245, .4); }
.mem-tl li::after { content: ""; position: absolute; left: 10.5px; top: 26px; bottom: 4px; width: 1px; background: var(--line-2); }
.mem-tl li:last-child { padding-bottom: 4px; }
.mem-tl li:last-child::after { display: none; }
.mem-tl li:last-child::before { content: "✓"; color: var(--in); background: var(--in-wash); box-shadow: inset 0 0 0 1px var(--in-edge); }
.mem-tl b { color: var(--ink); font-size: 15px; }
.mem-in { display: flex; flex-direction: column; gap: 12px; }
.pp-box { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pp-box #pp-buttons { max-width: 420px; min-height: 48px; }
.pp-soon { padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; }
.pk-bar { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.pk-card { display: flex; flex-direction: column; gap: 10px; }
.pk-top { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
.pk-top .tag { margin-left: auto; }
.pk-sym { font: 600 20px var(--data); color: var(--ink); }
.pk-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-block: 1px solid var(--line); }
.pk-nums > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-nums b { font: 600 18px var(--data); }
.pk-nums .tile-label { font-size: 11.5px; }
.pk-card .chart-card { padding: 0; border: 0; background: none; }
.pk-card .chart-card .h3 { font-size: 13px; color: var(--muted); font-family: var(--ui); font-weight: 500; }
@media (max-width: 600px) { .pk-nm { display: none; } }
.wl-alerts { display: flex; flex-direction: column; gap: 10px; }
.wl-al-guest, .wl-al-mem { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.wl-al-guest > span:last-child { flex: 1 1 280px; min-width: 0; }
.wl-alerts .tag.mem { flex: none; }
.wl-al-on { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.wl-al-on input { width: 16px; height: 16px; accent-color: var(--violet); }
#wl-al-msg { flex-basis: 100%; }

/* ---------- phones: wide tables become stacked cards (rules injected by sortable.js) ---------- */
@media (max-width: 640px) {
  /* chip rows that scroll sideways show a fade so it's clear there is more */
  .st-tools .chips.st-groups { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .st-tools .chips.st-sorts { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

/* ---------- v8: column-header hints ---------- */
th[data-hint], th[data-hint] .sort-btn { cursor: help; text-decoration: underline dotted; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
th[data-hint]:hover, th[data-hint]:hover .sort-btn { text-decoration-color: var(--violet-ink); }
.hint-bubble { position: fixed; z-index: 210; max-width: min(300px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 10px;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .75);
  font: 13px/1.5 var(--ui); text-transform: none; letter-spacing: 0; white-space: normal;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none; }
.hint-bubble.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hint-bubble { transition: none; } }

/* ---------- paper trading (/paper/) ---------- */
.pt-app { display: flex; flex-direction: column; gap: 22px; }
.pt-auth { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pt-card { display: flex; flex-direction: column; gap: 14px; }
.pt-form { display: flex; flex-direction: column; gap: 12px; }
.pt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pt-form input:not([type=checkbox]), .pt-search input, .pt-share input {
  font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-width: 0; width: 100%;
}
.pt-form input:focus, .pt-search input:focus, .pt-order input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.pt-form .btn, .pt-order .btn.primary { align-self: flex-start; cursor: pointer; }
.pt-form .btn:disabled, .pt-order .btn:disabled { opacity: .6; cursor: default; }
label.pt-check { flex-direction: row; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.pt-check input { width: 17px; height: 17px; accent-color: var(--violet); margin: 0; }
.pt-msg { min-height: 1.3em; margin: 0; font-size: 13.5px; color: var(--out); }
.pt-msg.ok { color: var(--ink-2); }
.pt-msg:empty { min-height: 0; }
.pt-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.linkbtn { all: unset; cursor: pointer; color: var(--violet-ink); font-size: 14px; margin-left: auto; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.pt-tiles .tile-value { font-size: 28px; }
.pt-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-ticket { display: flex; flex-direction: column; gap: 14px; }
.pt-search { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pt-results { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); max-height: 340px; overflow-y: auto; }
.pt-results button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: baseline; width: 100%;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 14px; }
.pt-results button b { font: 600 13px var(--data); }
.pt-results button span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-results button i { font: normal 11px var(--data); color: var(--muted); }
.pt-results button:hover, .pt-results button.on { background: var(--panel); }
.pt-results p { margin: 8px 10px; }
.pt-quote { display: flex; flex-direction: column; gap: 6px; }
.pt-quote p { margin: 0; }
.pt-q-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pt-q-px b { font: 600 26px/1.1 var(--ui); letter-spacing: -.01em; }
.pt-order { display: flex; flex-direction: column; gap: 10px; }
.pt-order .lock-row input { font: 500 16px var(--data); }
.pt-order p { margin: 0; }
.tag.pt-buy { color: var(--violet-ink); }
.tag.pt-sell { color: var(--band); }
.pt-chart .chart[hidden] + .chart-note { margin-top: 6px; }
.pt-settings { display: flex; flex-direction: column; gap: 12px; }
.pt-share { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-share input { flex: 1 1 260px; font: 13px var(--data); }
.pt-more summary { cursor: pointer; color: var(--ink-2); font-size: 14px; padding: 4px 0; }
.pt-more summary:hover { color: var(--ink); }
.pt-more[open] summary { margin-bottom: 10px; }
.pt-more .pt-form { max-width: 420px; }
.pt-how ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pt-loading { margin: 0; }
.read-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pt-ideas { display: flex; flex-direction: column; gap: 12px; }
.pt-ideas p { margin: 0; }
.pt-idea-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.pt-idea { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); min-width: 0; }
.pt-idea:hover, .pt-idea:focus-visible { border-color: var(--violet); }
.pt-idea b { font: 600 13px var(--data); color: var(--ink); }
.pt-idea span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-idea i { font: normal 12px var(--data); color: var(--ink-2); }
@media (max-width: 600px) {
  .pt-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pt-tiles .tile { padding: 14px; }
  .pt-tiles .tile-value { font-size: 21px; }
  .pt-tiles .tile-note { font-size: 12px; }
}
@media (max-width: 600px) { .pt-idea:nth-child(n+7) { display: none; } }
.pt-empty { display: flex; flex-direction: column; gap: 12px; }
.pt-empty p { margin: 0; }
.pt-ex-label { margin: 6px 0 -12px; }
.pt-example { opacity: .55; pointer-events: none; }
.pt-promo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px 28px; align-items: center;
  border-color: rgba(124, 108, 245, .45); background: linear-gradient(135deg, rgba(124, 108, 245, .12), rgba(124, 108, 245, 0) 60%), var(--panel); }
.pt-promo-copy { display: flex; flex-direction: column; gap: 12px; }
.pt-promo-copy p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.pt-promo-copy .eyebrow { color: var(--violet-ink); }
.pt-promo-ideas { display: flex; flex-direction: column; gap: 10px; }
.pt-promo-ideas p { margin: 0; }
.pt-promo .pt-idea-list { grid-template-columns: 1fr 1fr; }
a.pt-idea { text-decoration: none; }
@media (max-width: 860px) { .pt-promo { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pt-promo .pt-idea-list { grid-template-columns: 1fr; } .pt-promo .pt-idea:nth-child(n+5) { display: none; } }

/* ---------- footer credits and disclaimer ---------- */
.foot-row .foot-disclaim { flex: 1 1 100%; max-width: none; color: var(--ink-2); font-size: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.foot-disclaim b { color: var(--ink); }
.foot-credits { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 8px; border-top: 1px solid var(--line); }
.foot-credits a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 13px; text-decoration: none; }
.foot-credits a:hover { color: var(--ink); text-decoration: none; }
.cs-mark { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.cs-click svg { width: 17px; height: 17px; display: block; transform: translateY(-1px); }
.cs-shift { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--data); letter-spacing: .5px; color: #0c0d10; background: #ffd400;
  border-radius: 7px; padding: 5px 10px 6px; box-shadow: 0 2px 0 #b89700, inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s, box-shadow .12s; }
.cs-shift::before { content: "\21E7"; font-size: 13px; }
.cs-credit:hover .cs-shift { transform: translateY(2px); box-shadow: 0 0 0 #b89700, inset 0 1px 0 rgba(255, 255, 255, .35); }
.ca-credit .maple { width: 17px; height: 17px; color: #e0b13a; filter: drop-shadow(0 0 6px rgba(224, 177, 58, .35)); }

/* ---------- Start/Stop light ---------- */
.light-pill { display: inline-flex; align-items: center; gap: 7px; font: 700 11.5px/1 var(--data); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; text-decoration: none; }
.light-pill i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.light-pill.start { color: var(--in); background: var(--in-wash); box-shadow: inset 0 0 0 1px var(--in-edge); }
.light-pill.stop { color: var(--out); background: var(--out-wash); box-shadow: inset 0 0 0 1px var(--out-edge); }
.light-pill.lg { font-size: 15px; padding: 10px 16px; }
.light-pill.lg i { width: 12px; height: 12px; }
a.light-pill:hover { text-decoration: none; filter: brightness(1.15); }
.light-box { margin-top: 14px; display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.light-box.start { border-color: var(--in-edge); }
.light-box.stop { border-color: var(--out-edge); }
.light-txt { flex: 1 1 320px; font-size: 14px; color: var(--ink-2); }
.light-txt b { color: var(--ink); }
.light-alert { flex: none; cursor: pointer; }

/* ---------- free email alerts (/alerts/) ---------- */
.al-app { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.al-card { display: flex; flex-direction: column; gap: 12px; }
.al-card textarea { font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-height: 84px; resize: vertical; width: 100%; }
.al-card textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chips:empty { display: none; }
.al-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.al-chip:hover { border-color: var(--line-2); text-decoration: none; }
.al-chip .light-pill { padding: 4px 8px; font-size: 10.5px; }
.al-chip span { color: var(--muted); }
.al-chips p { flex: 1 1 100%; margin: 0; }
.al-ok { color: var(--ink-2); }
.al-example { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.al-subj { margin: 0; font-size: 14px; color: var(--ink-2); }
.al-mail { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; background: var(--bg-2); }
.al-mail p, .al-mail ul { margin: 0 0 10px; }
.al-mail ul { padding-left: 20px; color: var(--ink-2); }
.al-head { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.linkbtn.al-wl { margin-left: 0; }

/* ---------- guides (/guides/) ---------- */
.g-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.g-tiles .tile-note { font-size: 12.5px; color: var(--muted); }
.g-val { font-size: 22px; }
.g-big { font: 600 26px/1.1 var(--ui); }
.g-share { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.g-share .fillbar { width: 64px; }
.g-share b { font: 600 13px var(--data); color: var(--ink); }
.g-val .g-share .fillbar { width: 80px; }
.g-val .g-share b { font-size: 22px; font-family: var(--ui); }
.g-fam { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.g-fam:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }
.g-fam .name { font: 600 18px/1.3 var(--ui); }
.g-mini { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.g-mini > span { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.g-findings { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); max-width: 80ch; line-height: 1.55; }
.g-findings b { color: var(--ink); }
.g-list { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.g-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.g-li { margin-left: auto; font: 600 13px var(--data); }
.g-recent { columns: 2; margin: 0; padding-left: 20px; }
.g-refs { padding-left: 20px; }
@media (max-width: 600px) { .g-recent { columns: 1; } }
.pt-import { display: flex; flex-direction: column; gap: 12px; }
details.pt-import { display: block; }
details.pt-import > summary { cursor: pointer; list-style-position: inside; }
details.pt-import[open] > summary { margin-bottom: 12px; }
details.pt-import > *:not(summary) { margin-top: 10px; }
.pt-import textarea { font: 500 15px var(--data); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-height: 76px; resize: vertical; width: 100%; }
.pt-import textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.pt-import p { margin: 0; }
.pt-impmode { display: flex; flex-direction: column; gap: 8px; }
.pt-import .btn.primary { align-self: flex-start; cursor: pointer; }
.pt-import .btn:disabled { opacity: .55; cursor: default; }

/* ---------- members' own rules (/rules/) ---------- */
.ru-app { display: flex; flex-direction: column; gap: 18px; }
.ru-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.ru-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ru-card .h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.ru-card .h3.ru-h-gap { margin-top: 10px; }
.ru-card p { margin: 0; }
.ru-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 600 12px var(--data); color: var(--violet-ink); flex: none; }
.ru-presets { align-self: flex-start; border: 0; border-radius: 0; overflow: visible; gap: 6px; }
.ru-presets button { border: 1px solid var(--line-2); border-radius: 999px; }
.ru-presets button[aria-pressed="true"] { box-shadow: none; border-color: var(--violet); background: rgba(124, 108, 245, .16); color: var(--ink); }
.ru-pick summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.ru-pick[open] summary { margin-bottom: 12px; }
.ru-picker { max-height: 440px; overflow: auto; padding: 2px; }
.ru-picker legend .linkish { font: 500 11px var(--data); letter-spacing: 0; text-transform: none; }
.ru-thr { display: flex; flex-direction: column; gap: 10px; }
.ru-num { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ru-num input { width: 70px; font: 600 15px var(--data); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 8px; text-align: right; }
.ru-num input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.ru-num input:disabled { opacity: .4; }
.ru-thr .ru-lab { min-width: 76px; }
.ru-lim .ru-num { flex-wrap: nowrap; flex: 1 1 260px; }
.ru-lim .ru-num span { min-width: 0; }
.ru-lims { display: flex; flex-direction: column; gap: 12px; }
.ru-lim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ru-lim:last-child { border-bottom: 0; padding-bottom: 0; }
.ru-lim-on { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.ru-lim-on input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; }
.ru-save { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ru-save .btn { cursor: pointer; }
.ru-save .btn:disabled { opacity: .5; cursor: default; }
.ru-out { display: flex; flex-direction: column; gap: 14px; }
.ru-out .sec-head { margin-bottom: 0; }
.ru-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.ru-checks:empty { display: none; }
.ru-checks p { margin: 4px 0 0; }
.ru-tiles .tile.ru-warn .tile-value { color: var(--warning); }
.ru-tbl tr.ru-diff td, .ru-example tr.ru-diff td { background: rgba(124, 108, 245, .08); }
.ru-tbl tr.ru-diff td:first-child, .ru-example tr.ru-diff td:first-child { box-shadow: inset 3px 0 0 var(--violet); }
.ru-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: rgba(124, 108, 245, .25); box-shadow: inset 3px 0 0 var(--violet); vertical-align: -1px; margin-right: 4px; }
.ru-key { margin: 0; }
.ru-example { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ru-example p, .ru-example .h3 { margin: 0; }
.tbl.stacked tr.ru-diff td, .tbl.stacked tr.ru-diff td:first-child { background: transparent; box-shadow: none; }
.tbl.stacked tr.ru-diff { background: rgba(124, 108, 245, .08); box-shadow: inset 3px 0 0 var(--violet); }

/* =====================================================================
   October 2026: one account, My Puck, and a calmer, richer shell
   ===================================================================== */
body { font-size: 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--violet); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-head { transition: background .2s ease, box-shadow .2s ease; }
.site-head.scrolled { background: rgba(11, 15, 23, .94); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }
.head-row { flex-wrap: nowrap; gap: 12px 16px; min-height: 58px; padding-block: 8px; }
.nav-item .nav-top { white-space: nowrap; }
.site-nav { flex-wrap: nowrap; }
.nav-me { display: none; }
.head-meta { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }
.head-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.head-meta.open i { background: var(--violet-ink); box-shadow: 0 0 0 0 rgba(169, 157, 255, .6); animation: livepulse 2s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(169, 157, 255, .55); } 70% { box-shadow: 0 0 0 7px rgba(169, 157, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 157, 255, 0); } }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 600 13.5px var(--ui); transition: border-color .15s, background .15s; }
.acct-btn:hover { text-decoration: none; border-color: var(--violet); background: var(--panel-2); }
.acct-btn.in { padding: 5px 14px 5px 5px; }
.acct-btn:not(.in) .acct-ava { display: none; }
.acct-ava { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px var(--ui); color: #fff; background: linear-gradient(135deg, #8f81ff, #5a4bd6); box-shadow: 0 0 0 2px rgba(124, 108, 245, .25); }
.nav-toggle { all: unset; display: none; }
.scroll-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--violet-ink)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
@media (max-width: 1220px) {
  .head-meta { display: none; }
}
@media (max-width: 1100px) {
  .head-row { gap: 10px; min-height: 56px; }
  .acct-btn { margin-left: auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 44px; margin-right: -8px; cursor: pointer; border-radius: 10px; flex: none; }
  .nav-toggle span { display: block; width: 20px; height: 2px; margin-inline: auto; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; }
  /* the header's backdrop-filter makes it the containing block for fixed children, so drop it while the sheet is open */
  .site-head.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .site-head.menu-open .site-nav {
    display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; position: fixed; left: 0; right: 0; top: 57px; bottom: 0; height: calc(100vh - 57px); height: calc(100dvh - 57px);
    margin: 0; width: auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 48px; background: var(--bg);
    border-top: 1px solid var(--line); animation: sheetin .22s ease;
  }
  @keyframes sheetin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .site-head.menu-open .nav-item { position: static; border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
  .site-head.menu-open .nav-item .nav-top { font: 500 21px/1.2 var(--display); color: var(--ink); padding: 10px 0 6px; background: none; }
  .site-head.menu-open .caret { display: none; }
  .site-head.menu-open .dd { display: block; position: static; padding: 0; min-width: 0; }
  .site-head.menu-open .dd-in { background: none; border: 0; box-shadow: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
  .site-head.menu-open .dd a { padding: 9px 0; min-height: 44px; justify-content: center; }
  .site-head.menu-open .dd a span { display: none; }
  .site-head.menu-open .dd a b { font: 500 14.5px var(--ui); color: var(--ink-2); }
  .site-head.menu-open .nav-me { display: flex; align-items: center; justify-content: center; margin-top: 18px; padding: 13px; border-radius: 12px; background: var(--violet); color: #fff; font: 600 15px var(--ui); }
  html.menu-lock, html.menu-lock body { overflow: hidden; }
}

/* ---------- member notice, closing call to action, footer ---------- */
.free-bar { background: rgba(124, 108, 245, .08); border-bottom: 1px solid rgba(124, 108, 245, .22); color: var(--ink-2); font-size: 13.5px; }
.free-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-block: 9px; }
.free-bar b { color: var(--ink); }
.foot-cta { border-top: 1px solid var(--line); background: radial-gradient(900px 260px at 18% 0%, rgba(124, 108, 245, .17), transparent 65%), var(--bg-2); }
.foot-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; padding-block: 48px; }
.foot-cta-h { font: 500 clamp(26px, 3.6vw, 40px)/1.08 var(--display); letter-spacing: -.01em; color: var(--ink); max-width: 20ch; margin: 8px 0 10px; }
.foot-cta .muted { max-width: 56ch; }
.foot-cta-act { display: flex; gap: 10px; flex-wrap: wrap; }
.site-foot > .wrap { display: flex; flex-direction: column; gap: 16px; padding-block: 12px 44px; color: var(--muted); font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; padding-block: 28px 8px; }
.foot-cols a { display: block; color: var(--ink-2); font-size: 14px; padding: 5px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-brand p { margin-top: 12px; max-width: 34ch; line-height: 1.55; }
.foot-h { font: 600 11.5px var(--data); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.site-foot .foot-disclaim { color: var(--ink-2); font-size: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.foot-meta { font-size: 12.5px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- buttons, inputs, motion ---------- */
.btn { cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease, background .15s ease; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px -8px rgba(124, 108, 245, .7); }
.btn.glow { box-shadow: 0 6px 26px -8px rgba(124, 108, 245, .65); }
.btn.glow::after { content: "→"; font-weight: 500; transition: transform .15s ease; }
.btn.glow:hover::after { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
@media (max-width: 760px) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; } }
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.rv.rv-in { opacity: 1; transform: none; }
.light-pill.start i { animation: lightpulse 2.6s ease-in-out infinite; }
@keyframes lightpulse { 0%, 100% { box-shadow: 0 0 8px currentColor; } 50% { box-shadow: 0 0 2px currentColor; } }
.linkish:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; border-radius: 4px; }

/* ---------- the account widget ---------- */
.auth { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 440px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.auth-tabs button { all: unset; flex: 1; text-align: center; cursor: pointer; padding: 10px; border-radius: 9px; font: 600 13.5px var(--ui); color: var(--muted); }
.auth-tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth-tabs button:focus-visible { outline: 2px solid var(--violet-ink); }
.auth-form { display: flex; flex-direction: column; gap: 7px; }
.auth-form > label:not(.auth-check) { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.auth-form .opt { color: var(--muted); opacity: .75; }
.auth-form input:not([type=checkbox]) { font: 500 16px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; width: 100%; }
.auth-form input:not([type=checkbox]):focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .22); }
.pw-row { position: relative; }
.pw-row input { padding-right: 64px !important; }
.pw-eye { all: unset; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; padding: 6px 8px; font: 600 12px var(--ui); color: var(--violet-ink); }
.auth-check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0 2px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--violet); }
.auth-form .btn { justify-content: center; margin-top: 8px; padding: 13px 18px; font-size: 15px; }
.auth-msg { min-height: 1.3em; font-size: 13.5px; color: var(--out); }
.auth-msg.ok { color: var(--violet-ink); }
.auth-fine { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.check-list { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 9px; color: var(--ink-2); font-size: 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(124, 108, 245, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23a99dff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.pw-details { margin-top: 10px; font-size: 13px; color: var(--muted); }
.pw-details summary { cursor: pointer; }
.pw-details .lock-form { margin-top: 10px; }
.lock-card .lock-split { align-items: start; }

/* ---------- My Puck (/me/) ---------- */
.me-app { display: flex; flex-direction: column; gap: 28px; }
.me-out-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; }
.me-out-copy { display: flex; flex-direction: column; gap: 18px; }
.h1 em, .me-h1 em, .hero-h1 em { font-style: italic; color: var(--violet-ink); }
.me-h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; }
.me-auth-card { position: sticky; top: 80px; padding: 24px; box-shadow: 0 30px 60px -40px rgba(124, 108, 245, .5); border-color: var(--line-2); }
.me-out-grid { grid-template-areas: "head auth" "rest auth"; row-gap: 18px; }
.me-out-head { grid-area: head; } .me-out-rest { grid-area: rest; } .me-auth-card { grid-area: auth; }
/* on a phone: the heading first, then the form, then what you get */
@media (max-width: 900px) { .me-out-grid { grid-template-columns: 1fr; grid-template-areas: "head" "auth" "rest"; } .me-auth-card { position: static; } }
.me-preview { margin-top: 8px; }
.mp-frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.mp-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font: 12px var(--data); color: var(--muted); }
.mp-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mp-chrome span { margin-left: 8px; }
.mp-chrome .tag { margin-left: auto; }
.mp-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mp-kpis div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mp-kpis span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-kpis b { font: 600 18px var(--ui); }
.mp-kpis small { font-size: 12px; color: var(--muted); font-weight: 500; }
.mp-on { color: var(--violet-ink); }
.mp-h { font: 600 13px var(--ui); }
.mp-h span { color: var(--muted); font-weight: 400; }
.mp-list, .me-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mp-list a, .me-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 104px minmax(0, 1fr) minmax(92px, auto); gap: 10px 14px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); color: var(--ink); }
.mp-list a:hover, .me-row:hover { text-decoration: none; background: var(--panel); }
.mp-sym { display: flex; flex-direction: column; min-width: 0; }
.mp-sym b { font: 600 14px var(--ui); }
.mp-sym span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-list .light-pill, .me-row .light-pill, .mp-sig { justify-self: start; white-space: nowrap; }
.mp-sig .sig-n { font-size: 13px; margin-left: 2px; }
.mp-bar { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--data); color: var(--ink-2); }
.mp-bar .fillbar { width: 64px; }
.mp-px { font-size: 13px; text-align: right; white-space: nowrap; }
.mp-px small { display: block; font-size: 11.5px; }
.mp-since { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.mp-foot { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .mp-kpis { grid-template-columns: 1fr 1fr; } .mp-bar .fillbar { width: 40px; } }
.me-skel { display: grid; gap: 14px; }
.me-skel div { height: 92px; border-radius: 12px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
.me-skel div:first-child { height: 60px; width: 60%; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.me-in { display: flex; flex-direction: column; gap: 22px; }
.me-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.me-hi { font-size: clamp(32px, 4.6vw, 50px); }
.me-note { border: 1px solid rgba(124, 108, 245, .35); background: rgba(124, 108, 245, .08); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.me-note.warn { border-color: rgba(242, 177, 60, .4); background: rgba(242, 177, 60, .07); }
.me-note b { color: var(--ink); }
.me-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.me-kpis .tile { padding: 16px; }
.me-kpis .tile-value { font-size: 30px; }
.me-kpis .tile-value small { font-size: 15px; color: var(--muted); font-weight: 500; }
.me-mail { font-size: 24px !important; }
.me-mail.on { color: var(--violet-ink); }
.me-mail.warn { color: var(--band); font-size: 20px !important; }
@media (max-width: 900px) { .me-kpis { grid-template-columns: 1fr 1fr; } .me-kpis .tile-value { font-size: 24px; } .me-kpis .tile:first-child { grid-column: 1 / -1; } }
.me-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.me-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 900px) { .me-grid { grid-template-columns: 1fr; } }
.me-card { display: flex; flex-direction: column; gap: 12px; }
.me-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.me-add { position: relative; }
.me-add input { width: 100%; font: 500 15px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; }
.me-add input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .22); }
.me-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9); display: flex; flex-direction: column; }
.me-sug button { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.me-sug button:hover, .me-sug button:focus-visible { background: var(--panel-2); }
.me-sug button span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-list li { position: relative; }
.me-row { padding-right: 40px; }
.me-x { all: unset; position: absolute; right: 2px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 18px; }
.me-x:hover { color: var(--ink); background: var(--panel-2); }
.me-new { color: var(--violet-ink); font-weight: 600; }
@media (max-width: 560px) {
  .mp-list a, .me-row { grid-template-columns: minmax(0, 1fr) auto minmax(72px, auto); gap: 6px 10px; }
  .mp-list a > .mp-bar, .me-row > .mp-bar { grid-column: 1; grid-row: 2; }
  .mp-list a > .mp-since, .me-row > .mp-since { grid-column: 2 / -1; grid-row: 2; text-align: right; margin-top: 0; }
}
.me-empty { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); font-size: 14px; }
.me-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--ink-2); min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .2s; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .sw { background: var(--violet); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.me-level { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.me-level:disabled { opacity: .5; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--violet); background: rgba(124, 108, 245, .07); }
.radio input { accent-color: var(--violet); margin-top: 3px; flex: none; }
.radio span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.radio b { color: var(--ink); font-weight: 600; }
.radio small { color: var(--muted); font-size: 12px; }
.me-big { font: 600 28px var(--ui); }
.me-big small { font-size: 15px; font-weight: 600; }
.me-spark { width: 100%; height: 54px; display: block; }
.me-pos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.me-pos li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.me-tools { gap: 12px; }
.me-tools .sec-head { align-items: center; justify-content: flex-start; gap: 12px; }
.me-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.me-dl dt { color: var(--muted); }
.me-dl dd { margin: 0; }
.me-acct .auth-form { max-width: 420px; margin-top: 10px; }
.me-reset { max-width: 460px; }
.me-how { max-width: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .25s; background: var(--panel-2); color: var(--ink); border: 1px solid rgba(124, 108, 245, .5); border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9); max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.warn { border-color: rgba(242, 177, 60, .55); }

/* ---------- the game's landing ---------- */
.pt-land { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pt-join { padding: 24px; display: flex; flex-direction: column; gap: 14px; border-color: var(--line-2); box-shadow: 0 30px 60px -40px rgba(124, 108, 245, .5); }
.pt-why { display: flex; flex-direction: column; gap: 14px; }
.pt-why .check-list { margin: 0; font-size: 15px; }
.pt-prev-list a { grid-template-columns: minmax(0, 1fr) auto auto; }
.pt-loading { max-width: 760px; }
@media (max-width: 860px) { .pt-land { grid-template-columns: 1fr; } }

/* ---------- home: hero, proof, steps, preview ---------- */
.hero-v2 { position: relative; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; padding-top: 28px; }
.hero-glow { position: absolute; inset: -60px 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 300px at 22% 40%, rgba(124, 108, 245, .22), transparent 70%), radial-gradient(420px 260px at 85% 30%, rgba(169, 157, 255, .10), transparent 70%); filter: blur(10px); }
.hero-h1 { font: 500 clamp(40px, 6.6vw, 80px)/.98 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.hero-v2 .lede { font-size: 18px; max-width: 54ch; }
.hero-v2 .hero-links .btn { padding: 13px 20px; font-size: 15px; }
.hero-fine { font-size: 13px; color: var(--muted); }
.feat-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-color: var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 40px 80px -50px rgba(124, 108, 245, .55); }
.feat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.feat-name { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.feat-name b { font: 700 30px var(--ui); letter-spacing: -.01em; }
.feat-name span { color: var(--muted); font-size: 14px; }
.feat-name:hover { text-decoration: none; }
.feat-row { display: flex; gap: 14px; align-items: baseline; font-size: 14px; }
.feat-px { font-size: 20px; color: var(--ink); }
.feat-light { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.feat-meter { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feat-num { font-size: 13.5px; color: var(--ink-2); }
.feat-num b { color: var(--ink); font-size: 16px; }
.feat-meter .fillbar { width: 100%; height: 10px; border-radius: 5px; }
.feat-marks { position: relative; height: 16px; font: 10.5px var(--data); color: var(--muted); }
.feat-marks span { position: absolute; white-space: nowrap; padding: 0 5px; }
.feat-marks span:first-child { transform: translateX(-100%); }
.feat-marks span::before { content: ""; position: absolute; top: -8px; width: 1px; height: 6px; background: var(--muted); }
.feat-marks span:first-child::before { right: 0; }
.feat-marks span:last-child::before { left: 0; }
.feat-check { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.feat-check input { flex: 1 1 auto; min-width: 0; font: 500 15px var(--data); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; }
.feat-check input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
@media (max-width: 900px) { .hero-v2 { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; } .hero-v2 .lede { font-size: 16.5px; } }
.proof { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.proof > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-left: 1px solid var(--line); }
.proof > div:first-child { border-left: 0; }
.proof b { font: 600 clamp(24px, 3vw, 34px)/1 var(--ui); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; } .proof > div { border-left: 0; border-top: 1px solid var(--line); } .proof > div:nth-child(-n+2) { border-top: 0; } .proof > div:nth-child(even) { border-left: 1px solid var(--line); } .proof > div:last-child { grid-column: 1 / -1; border-left: 0; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 8px; position: relative; }
.step b { font: 600 17px var(--ui); color: var(--ink); }
.step .muted { font-size: 14px; line-height: 1.55; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--data); color: var(--violet-ink); background: rgba(124, 108, 245, .14); box-shadow: inset 0 0 0 1px rgba(124, 108, 245, .4); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.mock-sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.mock-copy { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; padding-top: 12px; }
@media (max-width: 900px) { .mock-sec { grid-template-columns: 1fr; } .mock-copy { position: static; padding-top: 0; } }
.pt-house td { background: rgba(124, 108, 245, .05); }
.pt-board-lead { max-width: 80ch; }
/* ---------- stock pages: the action bar on phones ---------- */
.act-bar { display: none; }
@media (max-width: 760px) {
  .act-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(11, 15, 23, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .act-bar .btn { justify-content: center; min-height: 44px; font-size: 13.5px; padding-inline: 8px; }
  .act-bar + * { margin-bottom: 0; }
  body:has(.act-bar) .site-foot { padding-bottom: 72px; }
  .act-bar .small { display: none; }
  body:has(.act-bar) .read-top .read-acts { display: none; }
}

/* ---------- home v3: the slogan, step 1 (the market) and the screener (steps 2 to 4) ---------- */
.hero-v3 { position: relative; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: 40px; padding-top: 28px; }
.hero-v3 .lede { font-size: 18px; max-width: 54ch; }
.walk { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.walk a { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; color: var(--ink); }
.walk a:hover { text-decoration: none; background: var(--panel); border-color: var(--line); }
.walk .step-n { grid-row: 1 / 3; }
.walk b { font: 600 16px var(--ui); }
.walk span:last-child { font-size: 13.5px; color: var(--muted); }
.step-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.step-tag .step-n, .th-step .step-n, .scr-step legend .step-n { width: 24px; height: 24px; font-size: 11.5px; flex: none; }
.crash-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-color: var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 40px 80px -50px rgba(124, 108, 245, .55); scroll-margin-top: 80px; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cc-q { font: 500 clamp(26px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.01em; margin: 0; }
.cc-verdict { font-size: 15.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.cc-verdict .wx { font: 600 24px var(--display); margin-right: 4px; }
.cc-count { font-size: 13.5px; color: var(--muted); margin: 0; }
.cc-gauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cc-gauges a { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; }
.cc-gauges a:hover { text-decoration: none; border-color: var(--line-2); color: var(--ink); }
.cc-gauges i { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.cc-gauges .calm i { background: var(--calm); } .cc-gauges .watch i { background: var(--watch); } .cc-gauges .warning i { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.cc-gauges span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-gauges b { font: 600 12.5px var(--data); color: var(--ink); }
.cc-plays { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }
.cc-plays b { color: var(--ink); font-size: 15px; }
.cc-plays .light-pill { margin-left: auto; }
.cc-plays:hover { text-decoration: none; border-color: var(--line-2); }
.cc-fine { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 900px) { .hero-v3 { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 520px) { .cc-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } .walk a { padding: 6px 4px; } .walk span:last-child { display: none; } .walk .step-n { grid-row: auto; } }

.screen { scroll-margin-top: 70px; }
.scr-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 14px; }
.scr-steps { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
@media (min-width: 1001px) and (min-height: 860px) { .scr-steps { position: sticky; top: 76px; } }
.scr-step { margin: 0; padding: 12px; border: 1px solid transparent; border-radius: 12px; min-width: 0; transition: border-color .2s ease, background .2s ease; scroll-margin-top: 80px; }
.scr-step legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font: 600 15px var(--ui); color: var(--ink); }
.scr-step legend + * { clear: both; }
.scr-step.is-next { border-color: rgba(124, 108, 245, .55); background: rgba(124, 108, 245, .06); }
.scr-step.is-next legend .step-n { box-shadow: inset 0 0 0 1px var(--violet), 0 0 0 4px rgba(124, 108, 245, .18); }
.scr-step.is-done legend .step-n { color: var(--in); background: var(--in-wash); box-shadow: inset 0 0 0 1px var(--in-edge); }
.scr-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scr-side button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); }
.scr-side button b { font: 600 16px var(--ui); color: var(--ink); }
.scr-side button span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.scr-side button:hover { border-color: var(--violet); }
.scr-side button:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.scr-side button[aria-pressed="true"][data-side="buy"] { border-color: var(--in-edge); background: var(--in-wash); }
.scr-side button[aria-pressed="true"][data-side="sell"] { border-color: var(--out-edge); background: var(--out-wash); }
.scr-lab { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.scr-step select, .scr-step input[type="search"], .th-pick select, .th-search input, .me-th select {
  box-sizing: border-box; width: 100%; font: 500 14.5px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.scr-step select:focus, .scr-step input:focus, .th-pick select:focus, .th-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .2); }
.scr-step .chips { gap: 6px; }
.scr-step .chip-btn { min-height: 20px; }
.scr-min { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.scr-min output { font-size: 15px; color: var(--ink-2); }
.scr-min output b { color: var(--ink); font: 600 20px var(--ui); }
.scr-min input[type="range"] { width: 100%; accent-color: var(--violet); min-height: 28px; }
.scr-fresh { min-height: 36px; }
.scr-try { padding: 4px 12px 8px; }
.scr-try .scr-lab { margin-top: 0; }
.scr-preset .muted { font-family: var(--data); font-size: 11.5px; margin-left: 2px; }
.scr-go { display: none; justify-content: center; margin: 2px 12px 6px; }
@media (max-width: 1000px) { .scr-go { display: flex; } }
.scr-results { min-width: 0; scroll-margin-top: 76px; }
.scr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 4px 4px 10px; }
.scr-sum { margin: 0; font-size: 15px; color: var(--ink-2); }
.scr-sum b { color: var(--ink); }
.scr-sort { display: inline-flex; align-items: center; gap: 8px; }
.scr-sort select { font: 500 13px var(--ui); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.screen { --scr-cols: minmax(0, 1fr) 82px 104px 56px 96px 48px 70px 52px; }
.scr-cols { display: grid; grid-template-columns: var(--scr-cols) 36px; gap: 8px; padding: 8px 10px; font: 600 10.5px var(--data); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.scr-cols span { white-space: nowrap; }
.scr-cols span:nth-child(n+5):not(:last-child) { text-align: right; }
.scr-list { list-style: none; margin: 0; padding: 0; }
.scr-row { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.scr-row:hover { background: var(--panel); }
.scr-main { flex: 1; min-width: 0; display: grid; grid-template-columns: var(--scr-cols); gap: 8px; align-items: center; padding: 9px 6px 9px 10px; color: var(--ink); }
.scr-main:hover { text-decoration: none; }
.scr-sym { display: flex; flex-direction: column; min-width: 0; }
.scr-sym b { font: 600 14.5px var(--ui); }
.scr-sym span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-light .light-pill { padding: 5px 8px; font-size: 10.5px; }
.scr-light { white-space: nowrap; }
.scr-light .sig-n { margin-left: 2px; }
.scr-agree { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scr-num { font-size: 12.5px; color: var(--muted); }
.scr-num b { font: 600 15px var(--ui); color: var(--ink); }
.scr-agree .fillbar { width: 100%; }
.scr-agree.sell .fillbar i, .screen.selling .scr-agree .fillbar i { background: var(--out); }
.scr-fams { display: inline-flex; align-items: flex-end; justify-content: flex-end; gap: 2px; height: 22px; }
.scr-fams i { display: block; width: 6px; border-radius: 2px 2px 0 0; background: var(--in); opacity: .85; }
.scr-fams.sell i { background: var(--out); }
.scr-px { text-align: right; font-size: 13px; white-space: nowrap; }
.scr-px small { display: block; font-size: 11.5px; }
.scr-y1, .scr-risk, .scr-up { text-align: right; font-size: 13px; white-space: nowrap; }
.scr-main em { display: none; font-style: normal; font-size: 11px; color: var(--muted); margin-right: 6px; }
.scr-star { all: unset; cursor: pointer; width: 36px; height: 44px; display: grid; place-items: center; font-size: 18px; color: var(--muted); flex: none; }
.scr-star:hover, .scr-star.on { color: var(--violet-ink); }
.scr-star:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: -4px; border-radius: 8px; }
.scr-empty { padding: 18px 10px; color: var(--ink-2); }
.scr-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 4px 0; }
.scr-reset { font-size: 13px; }
.scr-toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: min(92vw, 520px);
  padding: 12px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); transition: opacity .2s ease, transform .2s ease; }
.scr-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 1180px) { .screen { --scr-cols: minmax(0, 1fr) 66px 112px 96px 50px 72px; } .scr-fams, .scr-up, .scr-cols span:nth-child(4), .scr-cols span:nth-child(8) { display: none; } }
@media (max-width: 1000px) { .scr-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .scr-cols { display: none; }
  .scr-main { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 6px; padding: 12px 4px 12px 8px; }
  .scr-sym { grid-column: 1 / 5; grid-row: 1; }
  .scr-light { grid-column: 5 / 7; grid-row: 1; justify-self: end; }
  .scr-agree { grid-column: 1 / 5; grid-row: 2; }
  .scr-px { grid-column: 5 / 7; grid-row: 2; }
  .scr-y1 { grid-column: 1 / 3; grid-row: 3; text-align: left; }
  .scr-risk { grid-column: 3 / 5; grid-row: 3; text-align: left; }
  .scr-up { display: block; grid-column: 5 / 7; grid-row: 3; }
  .scr-main em { display: inline; }
  .scr-agree .fillbar { max-width: 200px; }
}
.more-row { margin-top: 8px; }
.more-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.more-card b { font: 500 19px/1.25 var(--display); }
.more-card:hover { text-decoration: none; border-color: var(--line-2); background: var(--panel-2); }

/* ---------- the Theory tester ---------- */
.th-app { display: flex; flex-direction: column; gap: 18px; }
.th-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px 24px; padding: 18px; position: relative; z-index: 5; }
.th-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.th-step { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--ui); color: var(--ink); margin: 0; }
.th-search { position: relative; }
.th-search input { font-size: 16.5px; padding: 12px 14px; }
.th-sug { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9); }
.th-sug button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: baseline; width: 100%; padding: 10px; border-radius: 8px; }
.th-sug b { font: 600 14px var(--ui); color: var(--ink); }
.th-sug span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sug [aria-selected="true"] button, .th-sug button:hover { background: var(--bg-2); }
.th-pick select { font-size: 15.5px; padding: 11px 12px; }
.th-chips, .th-pop { gap: 6px; }
.th-pop { align-items: center; }
.th-pop a:hover { text-decoration: none; }
.th-out { display: flex; flex-direction: column; gap: 18px; transition: opacity .15s ease; }
.th-out.loading { opacity: .45; }
.th-verdict { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.th-verdict.buy { border-color: var(--in-edge); box-shadow: 0 30px 70px -50px rgba(31, 208, 147, .55); }
.th-verdict.no { border-color: var(--out-edge); box-shadow: 0 30px 70px -50px rgba(255, 84, 112, .55); }
.th-verdict.split { border-color: rgba(242, 177, 60, .45); }
.th-q { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.th-q b { color: var(--ink); }
.th-big { margin: 0; font: 600 clamp(44px, 7vw, 68px)/1 var(--display); letter-spacing: -.02em; }
.th-verdict.buy .th-big { color: var(--in); } .th-verdict.no .th-big { color: var(--out); } .th-verdict.split .th-big { color: var(--band); }
.th-line { margin: 0; font-size: 15.5px; color: var(--ink-2); max-width: 70ch; }
.th-line b { color: var(--ink); }
.th-meter { height: 10px; border-radius: 5px; background: rgba(255, 84, 112, .55); overflow: hidden; margin-top: 6px; max-width: 560px; }
.th-meter i { display: block; height: 100%; background: var(--in); }
.th-meter-l { display: flex; justify-content: space-between; max-width: 560px; font: 500 12px var(--data); color: var(--muted); }
.th-roll { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.th-tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.th-tabs button { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 14px var(--ui); color: var(--ink-2); min-height: 20px; }
.th-tabs button b { font-family: var(--data); margin-left: 4px; }
.th-tabs button:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.th-tabs [data-side="in"][aria-selected="true"] { color: var(--ink); border-color: var(--in-edge); background: var(--in-wash); }
.th-tabs [data-side="out"][aria-selected="true"] { color: var(--ink); border-color: var(--out-edge); background: var(--out-wash); }
.th-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 16px; align-items: start; }
.th-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.th-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--line-2); animation: thin .25s ease; }
@keyframes thin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.th-card.in { border-left-color: var(--in); } .th-card.out { border-left-color: var(--out); }
.th-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.th-say { font: 700 11px/1 var(--data); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; color: var(--muted); background: var(--panel-2); }
.th-say.in { color: var(--in); background: var(--in-wash); } .th-say.out { color: var(--out); background: var(--out-wash); }
.th-name { font: 600 21px var(--display); color: var(--ink); }
.th-by { flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.th-idea { margin: 0; font: italic 400 16.5px/1.45 var(--display); color: var(--ink-2); }
.th-why { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 14px; line-height: 1.5; }
.th-why dt { font: 600 11px/1.9 var(--data); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.th-why dd { margin: 0; color: var(--ink-2); }
.th-why dd b { color: var(--ink); }
.th-rd { color: var(--ink); }
.th-more { font-size: 13.5px; align-self: flex-start; }
.th-nav { display: flex; align-items: center; gap: 8px; }
.th-nav .btn { min-width: 44px; justify-content: center; }
.th-pos { font: 500 13px var(--data); color: var(--muted); min-width: 64px; text-align: center; }
.th-auto { margin-left: auto; }
.th-list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 560px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.th-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 8px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.th-list button:hover { background: var(--bg-2); }
.th-list button:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: -2px; }
.th-list [aria-current="true"] { background: var(--panel-2); border-left-color: var(--violet); }
.th-li-n { font: 500 14px var(--ui); color: var(--ink); }
.th-li-m { font-size: 12px; color: var(--muted); }
.th-solo .th-card { background: var(--panel); }
.th-order { margin: 0; }
@media (max-width: 900px) { .th-body { grid-template-columns: 1fr; } .th-list { max-height: 300px; } }
@media (max-width: 760px) { .th-pick { grid-template-columns: 1fr; } .th-why { grid-template-columns: 1fr; gap: 2px; } .th-why dd { margin-bottom: 8px; } .th-auto { margin-left: 0; } .th-nav { flex-wrap: wrap; } }
.me-th { display: flex; flex-direction: column; gap: 6px; }
.me-th .btn { margin-top: 6px; align-self: flex-start; }

/* ---------- imagery: one dark "night ice" set (assets/img, see tools/qstrat/media.py) ---------- */
html, body { overflow-x: clip; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
/* home hero: the puck whose trail is a rising chart, full bleed behind the slogan */
.hero-art { position: absolute; z-index: -1; pointer-events: none; top: 30px; left: calc(50% - 50vw); width: 100vw; height: 900px; overflow: hidden; }
.hero-art-img { width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%; opacity: .95; }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 23, .94) 0%, rgba(11, 15, 23, .78) 34%, rgba(11, 15, 23, .30) 62%, rgba(11, 15, 23, .55) 100%),
              linear-gradient(180deg, rgba(11, 15, 23, .35) 0%, rgba(11, 15, 23, 0) 30%, rgba(11, 15, 23, .2) 70%, var(--bg) 100%); }
@media (max-width: 900px) {
  .hero-art { top: -28px; height: 600px; }
  .hero-art-img { object-position: 80% 30%; opacity: 1; }
  .hero-art::after { background: linear-gradient(180deg, rgba(11, 15, 23, .5) 0%, rgba(11, 15, 23, .55) 30%, rgba(11, 15, 23, .82) 62%, var(--bg) 100%), linear-gradient(90deg, rgba(11, 15, 23, .55), rgba(11, 15, 23, 0) 70%); }
}
/* the crash card wears tonight's sky: calm, mostly calm, unsettled or stormy */
/* the crash card: solid dark blue, so the gauges read cleanly over the hero picture */
.crash-card { position: relative; background: linear-gradient(180deg, #16224a 0%, #101a38 55%, #0d1530 100%); border-color: rgba(124, 108, 245, .28); }
/* cards that lead somewhere get a picture */
.more-card { padding-top: 0; overflow: hidden; }
.more-card.no-img { padding-top: 20px; }
.more-card:not(:has(.more-img)) { padding-top: 20px; }
.more-img { display: block; margin: 0 -20px 8px; aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.more-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .9; }
.more-card:hover .more-img img { transform: scale(1.04); opacity: 1; }
.scr-side b { display: inline-flex; align-items: center; gap: 6px; }
.scr-side [data-side="buy"] .ic { color: var(--in); }
.scr-side [data-side="sell"] .ic { color: var(--out); }
/* section pages: a picture behind the title, faded into the page */
.has-art { position: relative; padding-top: 18px; min-height: 230px; }
.page-art { position: absolute; z-index: -1; pointer-events: none; top: -28px; left: calc(50% - 50vw); width: 100vw; height: 420px; overflow: hidden; }
.page-art-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--art-pos, 50% 50%); opacity: .8; }
.page-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 23, .95) 0%, rgba(11, 15, 23, .8) 38%, rgba(11, 15, 23, .35) 75%, rgba(11, 15, 23, .5) 100%),
              linear-gradient(180deg, rgba(11, 15, 23, .2) 0%, rgba(11, 15, 23, .1) 40%, var(--bg) 100%); }
@media (max-width: 760px) {
  .page-art { height: 360px; }
  .page-art::after { background: linear-gradient(180deg, rgba(11, 15, 23, .55) 0%, rgba(11, 15, 23, .78) 50%, var(--bg) 100%); }
}
/* play-family icons */
.fam-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: var(--violet-ink);
  background: rgba(124, 108, 245, .12); box-shadow: inset 0 0 0 1px rgba(124, 108, 245, .32); }
.fam-ic .ic { width: 22px; height: 22px; }
.fam-h { display: flex; align-items: center; gap: 12px; }
.g-fam .fam-ic { margin-bottom: 4px; }
.g-fam:hover .fam-ic { background: rgba(124, 108, 245, .2); }
.fam-tile .tile-label { display: flex; align-items: center; gap: 7px; }
.fam-tile .tile-label .ic { color: var(--violet-ink); }
.tbl tr.grp td .ic { color: var(--violet-ink); margin-right: 4px; }
.track-pill { display: flex; flex-direction: column; gap: 6px; }
.track-pill .fam-ic { margin-bottom: 4px; }
.th-by .ic { color: var(--violet-ink); margin-right: 5px; }
.crash-card .cc-gauges a, .crash-card .cc-plays { background: rgba(8, 12, 26, .45); border-color: rgba(255, 255, 255, .07); }
.crash-card .cc-gauges a:hover, .crash-card .cc-plays:hover { border-color: rgba(124, 108, 245, .4); }
/* top 10 this week */
.t10-tbl td { vertical-align: middle; }
.t10-n { font: 600 15px var(--data); color: var(--muted); width: 28px; }
.t10-tbl .fillbar { width: 54px; display: inline-block; vertical-align: middle; }
.t10-lists { display: flex; flex-direction: column; gap: 14px; }
.t10-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 4px 22px; align-items: start; }
@media (max-width: 860px) { .t10-body { grid-template-columns: 1fr; } }
.t10-list summary { cursor: pointer; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.t10-list summary b { color: var(--ink); }
.t10-list[open] summary { margin-bottom: 12px; }
.t10-chart { margin-bottom: 12px; }
.t10-spark { width: 100%; height: 150px; display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.t10-spark polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.t10-spark .t10-ten { stroke: var(--violet); }
.t10-spark .t10-spx { stroke: var(--muted); stroke-dasharray: 3 3; }
.t10-spark .t10-base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.t10-key { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin: 0 6px 0 10px; background: var(--violet); }
.t10-key:first-child { margin-left: 0; }
.t10-key.spx { background: var(--muted); }
.cd-news .cn-sec + .cn-sec { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.cd-news .cn-sec .cn-imp { border-top: 0; padding-top: 2px; }
/* /owner/: the owner's private sign-up list */
.owner { display: grid; gap: 16px; }
.owner .tbl td { overflow-wrap: anywhere; }
.owner-lock .pw-details { margin-top: 6px; }

/* ------------------------------------------------------------------ the play filter (assets/plays.js) */
.ps-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0; }
.ps-bar p { margin: 0; flex: 1 1 260px; min-width: 0; }
.ps-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 12px 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font: 500 13.5px var(--ui); color: var(--ink); }
.ps-chip:hover { background: var(--panel-2); border-color: var(--violet); }
.ps-chip:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 2px; }
.ps-chip .ps-chip-k { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ps-chip b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-chip .ps-caret { color: var(--violet-ink); font-size: 11px; }
.ps-chip.ps-on { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 108, 245, .16); }
.ps-chip-sm { padding: 6px 10px 6px 12px; font-size: 12.5px; }
.ps-bar-me { margin: 0 0 12px; }
.scr-step .ps-bar { margin: 4px 0 12px; }
.ps-custom .scr-preset .muted { display: none; }
.fam-tile.ps-none, .fam-cell.ps-none { opacity: .4; }
.ps-few { font: 500 10.5px var(--data); letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 5px; white-space: nowrap; }
.ps-top { font: 600 10.5px var(--data); color: var(--violet-ink); border: 1px solid rgba(124, 108, 245, .5); border-radius: 6px; padding: 1px 5px; }
.ps-accbar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); vertical-align: middle; overflow: hidden; }
.ps-accbar i { display: block; height: 100%; background: var(--violet); border-radius: 3px; }
html.ps-lock, html.ps-lock body { overflow: hidden; }

.ps-ov { position: fixed; inset: 0; z-index: 90; background: rgba(5, 8, 14, .66); display: flex; justify-content: flex-end; }
.ps-panel { width: min(480px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line-2);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .45); outline: none; animation: ps-in .18s ease-out; }
@keyframes ps-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ps-panel { animation: none; } }
.ps-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 10px; border-bottom: 1px solid var(--line); }
.ps-head h2 { margin: 0 0 6px; font: 600 21px/1.2 var(--display); }
.ps-lede { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.ps-x { all: unset; cursor: pointer; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 22px; color: var(--muted); }
.ps-x:hover { background: var(--panel-2); color: var(--ink); }
.ps-x:focus-visible { outline: 2px solid var(--violet-ink); }
.ps-presets { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 4px; }
.ps-presets .chip-btn[aria-pressed="true"] { border-color: var(--violet); color: var(--ink); background: rgba(124, 108, 245, .14); }
.ps-tools { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; border-bottom: 1px solid var(--line); }
.ps-tools .seg button { padding: 6px 10px; font-size: 12.5px; }
.ps-body { flex: 1; overflow-y: auto; padding: 4px 10px 12px; overscroll-behavior: contain; }
.ps-fam { padding: 10px 8px 6px; border-bottom: 1px solid var(--line); }
.ps-fam:last-child { border-bottom: 0; }
.ps-fam-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; position: sticky; top: -4px; background: var(--bg-2); padding: 4px 0; z-index: 1; }
.ps-fam-l { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; }
.ps-fam-n { font: 500 12px var(--data); color: var(--muted); white-space: nowrap; }
.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; grid-template-areas: "cb nm acc" ". calls here"; align-items: center; gap: 2px 10px;
  padding: 7px 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.ps-row:hover { background: var(--panel); }
.ps-row.on { color: var(--ink); }
.ps-row input { grid-area: cb; margin: 0; accent-color: var(--violet); width: 16px; height: 16px; }
.ps-fam-l input { margin: 0; accent-color: var(--violet); width: 16px; height: 16px; }
.ps-nm { grid-area: nm; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.ps-acc { grid-area: acc; display: inline-flex; align-items: center; gap: 7px; justify-self: end; }
.ps-acc b { font: 600 13px var(--data); min-width: 3ch; text-align: right; }
.ps-calls { grid-area: calls; font: 500 11px var(--data); color: var(--muted); }
.ps-here { grid-area: here; justify-self: end; font: 500 11px var(--data); color: var(--muted); white-space: nowrap; }
.ps-here b { color: var(--ink-2); }
.ps-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.ps-count { font-size: 13.5px; }
.ps-saved { flex: 1; }
@media (max-width: 600px) {
  .ps-ov { align-items: flex-end; }
  .ps-panel { width: 100%; height: 92%; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 16px 16px 0 0; animation-name: ps-up; }
  @keyframes ps-up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
  .ps-head { padding: 14px 14px 8px; }
  .ps-head h2 { font-size: 19px; }
  .ps-presets, .ps-tools { padding-left: 14px; padding-right: 14px; }
  .ps-foot { padding-left: 14px; padding-right: 14px; }
  .ps-guide { display: none; }
}

/* the guide (/guides/your-plays/) */
.ps-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ps-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
.ps-steps li > b { font-size: 16px; }
.ps-steps .ps-bar { margin: 4px 0 0; }
.ps-steps .ps-bar p { display: none; }
.ps-steps .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-steps .chip-btn[aria-pressed="true"] { border-color: var(--violet); color: var(--ink); background: rgba(124, 108, 245, .14); }
.ps-pickrow { display: inline-flex; align-items: center; gap: 9px; }
.ps-pickrow input { accent-color: var(--violet); width: 16px; height: 16px; margin: 0; flex: none; }
.ps-all td .tag { margin-left: 6px; }
.muted-tag { color: var(--muted); }
.ps-callout { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; margin: 4px 0 8px; border-color: rgba(124, 108, 245, .45); color: var(--ink); }
.ps-callout:hover { text-decoration: none; background: var(--panel-2); }

/* ------------------------------------------------------------------ your signal (tools/qstrat/factors.py, assets/plays.js) */
.ps-chips { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.sig-pill { display: inline-flex; align-items: center; font: 600 11.5px var(--data); letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.sig-pill.buy { color: var(--in); background: var(--in-wash); box-shadow: inset 0 0 0 1px var(--in-edge); }
.sig-pill.sell { color: var(--out); background: var(--out-wash); box-shadow: inset 0 0 0 1px var(--out-edge); }
.sig-pill.hold { color: var(--band); background: rgba(242, 177, 60, .1); box-shadow: inset 0 0 0 1px rgba(242, 177, 60, .4); }
.sig-n.buy, .sig-w.buy { color: var(--in); } .sig-n.sell, .sig-w.sell { color: var(--out); } .sig-n.hold, .sig-w.hold { color: var(--band); }
.sig-sc { font: 500 12px var(--data); color: var(--ink-2); }
.mp-bar .sig-pill { margin-left: 4px; padding: 2px 7px; font-size: 10.5px; }
.sig-card { padding: 18px 20px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }
.sig-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.sig-row { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.sig-badge { font: 700 22px var(--ui); letter-spacing: -.01em; padding: 6px 16px; border-radius: 10px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.sig-badge.buy { color: var(--in); background: var(--in-wash); box-shadow: inset 0 0 0 1px var(--in-edge); }
.sig-badge.sell { color: var(--out); background: var(--out-wash); box-shadow: inset 0 0 0 1px var(--out-edge); }
.sig-badge.hold { color: var(--band); background: rgba(242, 177, 60, .1); box-shadow: inset 0 0 0 1px rgba(242, 177, 60, .4); }
.sig-score b { font: 600 34px/1 var(--ui); letter-spacing: -.02em; }
.sig-score small { color: var(--muted); font-size: 15px; }
.sig-scale { position: relative; flex: 1 1 260px; max-width: 460px; height: 10px; display: flex; border-radius: 6px; overflow: visible; margin-bottom: 8px; }
.sig-zone { height: 100%; }
.sig-zone.sell { background: rgba(255, 84, 112, .35); border-radius: 6px 0 0 6px; }
.sig-zone.hold { background: rgba(242, 177, 60, .3); }
.sig-zone.buy { background: rgba(31, 208, 147, .35); border-radius: 0 6px 6px 0; }
.sig-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--bg-2); }
.sig-why { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 820px; }
.sig-tbl td, .sig-tbl th { white-space: nowrap; }
.sig-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.sig-acts .sig-alert { margin-left: auto; }
.sig-note { margin: -4px 0 0; max-width: 820px; }
@media (max-width: 600px) { .sig-acts .sig-alert { margin-left: 0; } }
.sig-all summary { cursor: pointer; font-size: 13px; color: var(--violet-ink); }
.sig-all[open] summary { margin-bottom: 8px; }
.sig-all td.small { white-space: normal; min-width: 220px; }
@media (max-width: 600px) { .sig-card { padding: 14px; } .sig-badge { font-size: 19px; } .sig-score b { font-size: 28px; } .sig-scale { flex-basis: 100%; } }

.ps-tabs { margin: 10px 18px 0; display: flex; }
.ps-tabs button { flex: 1; text-align: center; }
.ps-tools:empty { display: none; }
.ps-line { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); flex: 1 1 200px; }
.ps-line b { font: 600 13px var(--data); color: var(--ink); min-width: 2ch; }
.ps-line input, .ps-wrow input { flex: 1; min-width: 80px; accent-color: var(--violet); }
.ps-tools:has(.ps-line) { flex-wrap: wrap; gap: 6px 18px; }
.ps-wrow { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 10px; border-radius: 8px; color: var(--ink-2); }
.ps-wrow.on { color: var(--ink); background: rgba(124, 108, 245, .06); }
.ps-wtop { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ps-wval b { font: 600 13px var(--data); }
.ps-wval .muted { font: 500 11.5px var(--data); }
.ps-wrow input { width: 100%; }
.ps-wsub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.ps-wd { font-size: 11.5px; color: var(--muted); line-height: 1.35; flex: 1 1 220px; }
.ps-wsub .ps-here { align-self: flex-end; }
.ps-wnote { color: var(--muted); padding: 6px 8px 0; line-height: 1.45; }
.ps-count .sig-pill { margin-left: 4px; }

/* ------------------------------------------------------------------ what moved it (tools/qstrat/newsevents.py) */
/* ---------- news that moves stocks (tools/qstrat/newsevents.py) ---------- */
.nev { display: flex; flex-direction: column; gap: 14px; }
.nev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.nev-grid.has-next { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.nev-moves { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nev-move { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.nev-mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.nev-day { font: 600 12px var(--data); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nev-mv { color: var(--ink-2); font-size: 14px; }
.nev-mv b { font: 600 20px var(--data); margin-right: 4px; }
.nev-z { font: 500 12px var(--data); color: var(--violet-ink); padding: 3px 8px; border-radius: 999px; background: rgba(124, 108, 245, .10); box-shadow: inset 0 0 0 1px rgba(124, 108, 245, .35); }
.nev-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.nev-evs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nev-ev { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.nev-ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nev-src { font: 500 11.5px var(--data); color: var(--muted); }
.nev-h { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.nev-h a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.nev-h a:hover { text-decoration-color: var(--violet-ink); }
.nev-stat { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.nev-stat .nev-grade, .nev-stat .tag { margin-left: 4px; vertical-align: 1px; }
.nev-stat.mine { color: var(--muted); }
.nev-none { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border-left: 2px solid var(--line-2); padding-left: 10px; }
.nev-cat { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px var(--data); letter-spacing: .02em; color: var(--ink);
  padding: 4px 9px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.nev-cat i { font-style: normal; font-size: 9px; color: var(--muted); }
.nev-cat.d2 i { color: var(--ink-2); }
.nev-cat.d0 i { color: var(--ink-2); }
.nev-cat.none { color: var(--muted); font-weight: 500; }
.nev-grade { display: inline-block; font: 600 11px var(--data); letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.nev-grade.hi { color: #fff; background: var(--violet); }
.nev-grade.mid { color: var(--band); background: rgba(242, 177, 60, .10); box-shadow: inset 0 0 0 1px rgba(242, 177, 60, .40); }
.nev-grade.lo { color: var(--muted); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nev-next { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 84px;
  background: linear-gradient(180deg, rgba(124, 108, 245, .09), rgba(124, 108, 245, .015)), var(--panel); border-color: rgba(124, 108, 245, .35); }
.nev-next p { margin: 0; }
.nev-next-d { font: 500 22px/1.2 var(--display); color: var(--ink); }
.nev-next-d span { font: 500 13px var(--ui); color: var(--ink-2); margin-left: 6px; }
.nev-next-l { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.nev-tbl th, .nev-tbl td { padding-inline: 10px; }
.nev-tbl th { letter-spacing: .04em; }
.nev-tbl .sym-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; white-space: normal; max-width: 36ch; }
.nev-why { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.nev-tbl td .tag { margin-left: 6px; font-size: 10.5px; padding: 3px 6px; }
.nev-deflist { list-style: none; padding: 0 !important; gap: 8px !important; }
.nev-deflist li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13.5px; }
@media (max-width: 860px) {
  .nev-grid.has-next { grid-template-columns: minmax(0, 1fr); }
  .nev-next { position: static; }
}
@media (max-width: 600px) {
  .nev-move { padding: 14px; }
  .nev-mv b { font-size: 18px; }
  .nev-cat { white-space: normal; }
}
.ps-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin: 4px 0 8px; }
.ps-callouts .ps-callout { margin: 0; }
.ps-steps-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0; }
.sig-presets { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.sig-presets li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.sig-presets .chip-btn[aria-pressed="true"] { border-color: var(--violet); color: var(--ink); background: rgba(124, 108, 245, .14); }

/* a link to one play on a stock page (#play-<slug>) lands on its row */
tr[data-ps-play] { scroll-margin-top: 90px; }
tr[data-ps-play]:target td, tr.ps-focus td { background: rgba(124, 108, 245, .16); }
tr.ps-focus { outline: 2px solid var(--violet); outline-offset: -2px; }
.sig-src { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* each factor's graded record in the weights chooser (factorgrade.py) */
.ps-rec { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ps-rec.good::before, .ps-rec.some::before, .ps-rec.poor::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ps-rec.good::before { background: var(--in); } .ps-rec.some::before { background: var(--band); } .ps-rec.poor::before { background: var(--out); }
.ps-edge { font: 600 11px var(--data); margin-left: 4px; padding: 1px 5px; border-radius: 6px; background: var(--panel-2); color: var(--ink-2); }
.ps-edge.good { color: var(--in); } .ps-edge.poor { color: var(--out); } .ps-edge.some { color: var(--band); }
.ps-prec { flex-basis: 100%; margin: 6px 0 0; color: var(--ink-2); line-height: 1.5; }
.sig-tested { margin: -4px 0 0; color: var(--muted); max-width: 820px; }
.sig-tested.warn { color: var(--band); }
/* the watchlist's signal changes and concentration notes */
.wl-changes, .wl-conc { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.wl-changes ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wl-changes li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wl-conc { border-color: rgba(242, 177, 60, .45); background: rgba(242, 177, 60, .06); }
.wl-changes-none { margin: 0 0 10px; }
.me-changes { border: 1px solid rgba(124, 108, 245, .35); background: rgba(124, 108, 245, .07); border-radius: 12px; padding: 12px 14px; margin: 4px 0 10px; }
.me-changes ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.me-changes li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.me-ch-none { margin: 2px 0 8px; }

/* Ways to invest, by country (tools/qstrat/waystoinvest.py) */
.wti-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.wti-pick[hidden], .wti-country[hidden] { display: none; }
.wti-country { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 80px; }
.wti-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.wti-opt { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.wti-opt h3 { color: var(--ink); }
.wti-opt dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wti-opt dt { font: 600 11.5px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.wti-opt dd { margin: 0; }
.wti-opt .small:last-child { margin-top: auto; }
.wti-src { white-space: normal; }
.wti-src + .wti-src::before { content: "· "; color: var(--muted); }
.wti-check { list-style: none; padding-left: 0 !important; gap: 10px !important; }
.wti-check li { display: block; }
.wti-tag { display: inline-block; font: 600 11px/1 var(--ui); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 6px;
  border: 1px solid var(--line-2); color: var(--ink-2); margin-right: 4px; vertical-align: 1px; }
.wti-tag[data-kind="official"] { border-color: var(--in-edge); background: var(--in-wash); color: var(--ink); }
.wti-tag[data-kind="commercial"] { border-color: var(--out-edge); background: var(--out-wash); color: var(--ink); }
.wti-bars { display: flex; flex-direction: column; gap: 8px; }
.wti-bar { display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 1fr) 4.2em; align-items: center; gap: 10px; font: 13px var(--data); color: var(--ink-2); }
.wti-bar i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--out) var(--w), var(--line) var(--w)); }
.wti-bar b { text-align: right; color: var(--ink); font-weight: 600; }
.wti-top .wti-bar { grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 4.2em; }
.wti-top .wti-bar span { display: flex; flex-direction: column; color: var(--ink); }
.wti-top .wti-bar small { color: var(--muted); font-size: 11.5px; }
.wti-short { max-width: none; }
.wti-short ol, .wti-short p { max-width: 75ch; }
.wti-ex { max-width: none; }
.wti-ex .tbl td { white-space: normal; min-width: 9em; }
@media (max-width: 560px) {
  .wti-top .wti-bar { grid-template-columns: minmax(0, 1fr) 4.2em; }
  .wti-top .wti-bar i { grid-column: 1 / -1; grid-row: 2; }
}
.wti-country > .card.prose { max-width: none; }
.wti-country > .card.prose > ul, .wti-country > .card.prose > p { max-width: 80ch; }

/* edge-by-year bars (riskpieces.old_vs_new) */
.yb { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 4px; height: 190px; margin: 6px 0 4px; }
.yb-col { display: grid; grid-template-rows: 1fr 1fr auto; min-width: 0; }
.yb-top { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.yb-bot { display: flex; align-items: flex-start; }
.yb-col i { display: block; width: 100%; border-radius: 2px; min-height: 1px; }
.yb-up { background: var(--in); }
.yb-down { background: var(--out); }
.yb-lab { font: 11px/1 var(--data); color: var(--muted); text-align: center; padding-top: 6px; white-space: nowrap; }
.ovn td.r { white-space: nowrap; }
@media (max-width: 560px) { .yb { gap: 0 2px; } .yb-col:nth-child(even) .yb-lab { visibility: hidden; } }
.ovn th { white-space: normal; vertical-align: bottom; }
.ovn td:first-child { min-width: 12em; }

/* ---- phone fixes (October 13 sweep) ---- */
.narrow-only, .scr-narrow { display: none; }
@media (max-width: 640px) { .wide-only { display: none; } .narrow-only { display: inline; } li.wide-only { display: none; } }
@media (max-width: 1180px) { .scr-wide { display: none; } .scr-narrow { display: inline; } }
/* iOS Safari zooms the page on focus when a field's text is under 16px */
@media (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
/* thumb-sized targets on touch screens */
@media (pointer: coarse) {
  summary { padding-block: 8px; }
  .wl-x { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; }
  .chips a, .chip-btn { padding: 9px 12px; }
  .seg button { padding: 11px 14px; }
  .linkish { padding-block: 8px; }
  .crumbs a { display: inline-block; padding-block: 6px; }
}
.sim-row select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .wti-pick .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .wti-pick .seg button { text-align: center; }
  .wti-ex .tbl-wrap { border: 0; background: none; }
}
.to-top { position: fixed; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: 600 18px/1 var(--ui); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.to-top.on { opacity: .92; pointer-events: auto; transform: none; }
@media (min-width: 900px) { .to-top { bottom: 28px; } }
/* a list that scrolls inside its card fades at the bottom, so it doesn't look cut off */
.th-list { -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); padding-bottom: 28px; }

/* account check on the watchlist (assets/acctcheck.js) */
#wl-acct { margin-top: 18px; }
.acct { display: flex; flex-direction: column; gap: 12px; }
.acct-comp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 28px; }
.acct-bars { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acct-bars li { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; font-size: 13.5px; }
.acct-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.acct-b { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.acct-b i { display: block; height: 100%; background: var(--violet-ink); border-radius: 4px; }
.acct-v { text-align: right; font: 12.5px var(--data); color: var(--ink-2); }
.acct-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 24px; }
.acct-sl { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.acct-sl output { font: 600 13.5px var(--data); color: var(--ink); }
.acct-sl input[type=range] { width: 100%; accent-color: var(--violet); }
.acct-sl select { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font: inherit; }
.acct-chart-wrap { margin-top: 4px; }
.acct-chart { width: 100%; height: auto; display: block; }
.acct-chart .acct-grid { stroke: var(--line); stroke-width: 1; }
.acct-chart polyline { stroke-width: 2; vector-effect: non-scaling-stroke; }
.acct-l-mine { stroke: var(--violet-ink); }
.acct-l-alt { stroke: var(--in); }
.acct-l-core { stroke: var(--muted); stroke-dasharray: 4 4; }
.acct-chart-axis { display: flex; justify-content: space-between; }
.acct-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); }
.acct-key i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: -4px; }
.acct-key .k-mine { background: var(--violet-ink); } .acct-key .k-alt { background: var(--in); } .acct-key .k-core { background: var(--muted); }
