/* Wallsti design tokens. Dark-first; light mirrors it (system setting, or the
   theme button, which sets data-theme on <html>). */
:root {
  --bg: #0d1117; --surface: #141a22; --surface-2: #1a212b; --line: #252e3a; --line-2: #313c4a;
  --fg: #e8edf3; --muted: #8b97a7; --faint: #5d6878;
  --accent: #f5b83d; --accent-ink: #1b1302; --accent-soft: rgba(245, 184, 61, .14);
  --up: #2fbf84; --down: #f2564b; --up-soft: rgba(47, 191, 132, .16); --down-soft: rgba(242, 86, 75, .16);
  --flat: #7d8898;
  --ev-analyst: #6ea8ff; --ev-insider: #c28bff; --ev-congress: #35c3c9; --ev-catalyst: var(--accent);
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eef1f4; --line: #dde2e8; --line-2: #c9d0d9;
    --fg: #111820; --muted: #566273; --faint: #8a95a3;
    --accent: #b97a06; --accent-ink: #ffffff; --accent-soft: rgba(185, 122, 6, .12);
    --up: #0f8a57; --down: #cf3a2f; --up-soft: rgba(15, 138, 87, .12); --down-soft: rgba(207, 58, 47, .11);
    --flat: #7a8594; --ev-analyst: #2f6fd6; --ev-insider: #8a4fd6; --ev-congress: #10868c;
    --shadow: 0 12px 40px rgba(20, 30, 45, .16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eef1f4; --line: #dde2e8; --line-2: #c9d0d9;
  --fg: #111820; --muted: #566273; --faint: #8a95a3;
  --accent: #b97a06; --accent-ink: #ffffff; --accent-soft: rgba(185, 122, 6, .12);
  --up: #0f8a57; --down: #cf3a2f; --up-soft: rgba(15, 138, 87, .12); --down-soft: rgba(207, 58, 47, .11);
  --flat: #7a8594; --ev-analyst: #2f6fd6; --ev-insider: #8a4fd6; --ev-congress: #10868c;
  --shadow: 0 12px 40px rgba(20, 30, 45, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
a.link { color: var(--accent); text-decoration: none; }
a.link:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 32px; height: 32px; display: block; flex: none; }
.brand b { font: 700 20px/1 var(--font-display); letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--fg); background: var(--surface-2); }
.spacer { flex: 1; }
.searchbtn { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px; min-width: 220px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 9px; color: var(--muted); cursor: pointer; font-size: 14px; }
.searchbtn kbd, .kbd { font: 600 11px var(--font-data); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--muted); margin-left: auto; }
.iconbtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.iconbtn svg { width: 17px; height: 17px; }

main { max-width: 1320px; margin: 0 auto; padding: 26px 20px 60px; }
.site-foot { max-width: 1320px; margin: 0 auto; padding: 0 20px 40px; color: var(--faint); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* ---------- ranking ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-bottom: 18px; }
.head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.head p { margin: 6px 0 0; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.seg a, .seg button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.seg [aria-current="page"], .seg [aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chipbtn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chipbtn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }

.tablewrap { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-x: auto; }
table.rank { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1040px; }
.rank th { background: var(--surface); text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
/* Column headers stay under the site header while scrolling. A scrolling box
   would trap them, so the wrapper only scrolls sideways when the table can't fit. */
@media (min-width: 1100px) {
  .tablewrap.rankwrap { overflow: visible; }
  .rank thead th { position: sticky; top: calc(var(--top-h, 57px) + env(safe-area-inset-top, 0px)); z-index: 5; box-shadow: 0 1px 0 var(--line); }
  .rank thead th:first-child { border-top-left-radius: 14px; }
  .rank thead th:last-child { border-top-right-radius: 14px; }
}
.r5 { display: grid; gap: 6px; justify-items: start; }
.r5 .rk { font: 500 12px var(--font-data); color: var(--muted); }
.r5 .rk b { color: var(--fg); font-weight: 600; }
.upside { display: grid; gap: 3px; justify-items: start; min-width: 170px; }
.upside .sigs { margin-bottom: 3px; }
.newact { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--fg); background: var(--accent-soft);
  border-radius: 6px; padding: 2px 7px; max-width: 220px; white-space: normal; line-height: 1.3; }
.newact.up { color: var(--up); } .newact.down { color: var(--down); }
.newdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.rank th.wrap { white-space: normal; line-height: 1.35; }
.rank td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank tbody tr:last-child td:first-child { border-bottom-left-radius: 14px; }
.rank tbody tr:last-child td:last-child { border-bottom-right-radius: 14px; }
.rank tbody tr { cursor: pointer; transition: background .12s; }
.rank tbody tr:hover { background: var(--surface-2); }
.rank tbody tr:last-child td { border-bottom: 0; }
.rank .sigs { max-width: 190px; }
.rank .evchips { flex-direction: column; align-items: flex-start; gap: 4px; }
.r { text-align: right; }
.pos { width: 36px; color: var(--faint); font: 600 13px var(--font-data); }
.tick { display: flex; align-items: center; gap: 8px; min-width: 128px; }
.tick b { font: 700 15px var(--font-data); letter-spacing: 0; }
.tick a { text-decoration: none; }
.tick small { display: block; color: var(--muted); font-size: 12.5px; max-width: 124px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 2px; line-height: 0; }
.star[aria-pressed="true"] { color: var(--accent); }
.star svg { width: 16px; height: 16px; }
.px b { font: 600 14.5px var(--font-data); display: block; }
.px span { font: 500 12.5px var(--font-data); }
.spark { display: block; }
.ment { min-width: 140px; }
.ment .n { font: 600 14.5px var(--font-data); }
.ment .g { font: 500 12px var(--font-data); margin-left: 6px; }
.pn { height: 5px; border-radius: 3px; background: var(--down-soft); margin-top: 6px; overflow: hidden; display: flex; }
.pn i { display: block; height: 100%; background: var(--up); }
.pn i + i { background: var(--down); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill.buy { color: var(--up); background: var(--up-soft); } .pill.sell { color: var(--down); background: var(--down-soft); }
.pill.hold { color: var(--muted); background: var(--surface-2); }
.pill .src { font-size: 10px; font-weight: 700; letter-spacing: .05em; opacity: .8; }
.sigs { display: flex; gap: 6px; flex-wrap: wrap; }
.grades { display: inline-flex; gap: 3px; }
.gr { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font: 700 11px var(--font-data); }
.gA { background: var(--up-soft); color: var(--up); } .gB { background: color-mix(in srgb, var(--up) 8%, transparent); color: var(--up); }
.gC { background: var(--surface-2); color: var(--muted); } .gD { background: color-mix(in srgb, var(--down) 8%, transparent); color: var(--down); }
.gE, .gF { background: var(--down-soft); color: var(--down); } .gS { background: var(--accent-soft); color: var(--accent); }
.upside b { font: 600 14px var(--font-data); } .upside small { display: block; color: var(--muted); font-size: 12px; }
.evchips { display: flex; gap: 6px; flex-wrap: wrap; }
.ev { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.ev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev.congress { color: var(--ev-congress); background: color-mix(in srgb, var(--ev-congress) 12%, transparent); }
.ev.insider { color: var(--ev-insider); background: color-mix(in srgb, var(--ev-insider) 12%, transparent); }
.ev.analyst { color: var(--ev-analyst); background: color-mix(in srgb, var(--ev-analyst) 12%, transparent); }
.flows { display: grid; gap: 1px; font-size: 12px; min-width: 200px; max-width: 240px; }
.flows .fl { display: flex; gap: 5px; align-items: baseline; flex-wrap: wrap; }
.flows .fl + .last, .flows .last + .fl { margin-top: 0; }
.flows .last + .fl, .flows .fl + .fl { margin-top: 5px; }
.flows .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; min-width: 60px; }
.flows .congress .lbl { color: var(--ev-congress); } .flows .insider .lbl { color: var(--ev-insider); }
.flows b { font: 600 12.5px var(--font-data); }
.flows .w { color: var(--faint); font-size: 11px; margin-left: 2px; }
.flows .last { color: var(--muted); font-size: 11.5px; line-height: 1.35; padding-left: 65px; }
.flows .last.hot { color: var(--fg); }
.flows .newact { margin: 2px 0 4px 65px; justify-self: start; }
.card .flows { max-width: none; }
.upside .win { font-size: 11.5px; margin-top: 2px; white-space: nowrap; }
.rank td[data-tab] { transition: background .12s; }
.rank tbody tr:hover td[data-tab]:hover { background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); }
.why { max-width: 200px; font-size: 13px; line-height: 1.4; }
.why b { display: block; font-weight: 600; }
.why span { color: var(--muted); }
.dash { color: var(--faint); }
.cards { display: none; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; cursor: pointer; display: grid; gap: 10px; }
.card .row1 { display: flex; align-items: center; gap: 10px; }
.card .row1 .px { margin-left: auto; text-align: right; }
.card .row2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card .evchips { flex-direction: row; }
@media (max-width: 860px) {
  .tablewrap.rankwrap { display: none; } .cards { display: grid; }
  .searchbtn { min-width: 0; } .searchbtn span.t { display: none; }
  .nav { display: none; }
}

/* ---------- stock page ---------- */
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.crumb:hover { color: var(--fg); }
.shead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 18px; }
.shead h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1; display: flex; align-items: center; gap: 12px; }
.shead h1 .star svg { width: 22px; height: 22px; }
.shead .nm { color: var(--muted); margin-top: 8px; font-size: 15px; }
.bigpx { text-align: right; }
.bigpx b { font: 600 clamp(26px, 3.4vw, 34px) var(--font-data); display: block; letter-spacing: -.02em; }
.bigpx span { font: 500 14px var(--font-data); }
.shead .sigs { margin-top: 12px; }
@media (max-width: 640px) { .shead { grid-template-columns: 1fr; } .bigpx { text-align: left; } }

.whycard { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; display: grid; gap: 10px; }
.whycard .top-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.whycard h2 { font-size: 21px; font-weight: 700; }
.whycard ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.whycard li::marker { color: var(--accent); }
.whycard .note { font-size: 12.5px; color: var(--muted); }
.previewtag { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 2px 7px; border-radius: 5px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { text-decoration: none; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--fg); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; min-width: 0; }
.panel + .panel, .stack-gap > * + * { margin-top: 16px; }
.panel h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.charthead { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.toggle[aria-pressed="true"] { color: var(--fg); border-color: var(--line-2); background: var(--surface-2); }
.toggle i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.toggle[aria-pressed="false"] i { opacity: .35; }
.chart { height: 430px; position: relative; }
.chart.short { height: 360px; }
.clegend { font: 500 12.5px var(--font-data); color: var(--muted); min-height: 18px; margin-bottom: 6px; }
.clegend b { color: var(--fg); font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-family: var(--font-data); font-weight: 600; }

.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 62px 12px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tl:last-child { border-bottom: 0; }
.tl time { font: 500 12px var(--font-data); color: var(--muted); padding-top: 2px; }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.tl .k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tl a { color: var(--muted); font-size: 12px; }
.dot.analyst, .tl .analyst { color: var(--ev-analyst); } .dot.analyst { background: var(--ev-analyst); }
.dot.insider, .tl .insider { color: var(--ev-insider); } .dot.insider { background: var(--ev-insider); }
.dot.congress, .tl .congress { color: var(--ev-congress); } .dot.congress { background: var(--ev-congress); }
.empty { color: var(--muted); font-size: 14px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 10px; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 15px; }
.tile .v { font: 600 22px var(--font-data); letter-spacing: -.02em; margin-top: 4px; }
.tile .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.comment { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 4px; }
.comment:first-of-type { border-top: 0; padding-top: 0; }
.comment .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.comment .body { font-size: 14px; overflow-wrap: anywhere; }
.comment .ttl { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.comment ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.group-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.snap { font-size: 14.5px; line-height: 1.6; border-left: 3px solid var(--accent); padding-left: 14px; margin: 0; max-width: 72ch; }

.gauge { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--down), color-mix(in srgb, var(--down) 40%, var(--surface-2)) 30%, var(--surface-2) 50%, color-mix(in srgb, var(--up) 40%, var(--surface-2)) 70%, var(--up)); position: relative; margin: 26px 0 8px; }
.gauge i { position: absolute; top: -6px; width: 4px; height: 22px; border-radius: 2px; background: var(--fg); transform: translateX(-2px); box-shadow: 0 0 0 3px var(--surface); }
.gauge-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.cnt { display: flex; gap: 14px; font: 600 13px var(--font-data); margin-top: 12px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.scroll { overflow-x: auto; }

table.list { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.list.wide { min-width: 560px; }
.list th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.list tr:last-child td { border-bottom: 0; }
.list td.n { font-family: var(--font-data); text-align: right; white-space: nowrap; }
.list th.n { text-align: right; }
.fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.range { position: relative; height: 72px; margin: 10px 8px 4px; }
.range .bar { position: absolute; top: 32px; height: 8px; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--ev-analyst) 25%, transparent), var(--ev-analyst)); }
.range .mk { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: 11.5px; white-space: nowrap; }
.range .mk i { display: block; width: 2px; height: 16px; background: var(--muted); margin: 3px auto 0; }
.range .mk.cur { top: 30px; } .range .mk.cur i { height: 12px; width: 12px; border-radius: 50%; background: var(--fg); border: 3px solid var(--surface); margin: 0 auto 3px; box-shadow: 0 0 0 1px var(--fg); }
.range .mk.below { top: 44px; }
.stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.stackbar i { display: block; height: 100%; }
.stackl { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.stackl span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }

/* ---------- landing, prose, messages ---------- */
.landing { max-width: 720px; margin: 6vh auto 0; display: grid; gap: 16px; }
.landing h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.landing p { color: var(--muted); font-size: 16px; margin: 0; max-width: 62ch; }
.landing .examples { display: flex; gap: 8px; flex-wrap: wrap; }
.landing .examples a { font: 600 13px var(--font-data); text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 10px; border-radius: 8px; }
.landing .examples a:hover { border-color: var(--accent); }
.bigsearch { display: flex; gap: 8px; }
.bigsearch input { flex: 1; min-width: 0; font: 600 18px var(--font-data); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); text-transform: uppercase; }
.bigsearch button, .btn { font-weight: 700; padding: 10px 18px; border-radius: 10px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: none; border: 1px solid var(--line-2); color: var(--fg); }
.message { max-width: 620px; margin: 10vh auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.message h1 { font-size: clamp(48px, 9vw, 96px); font-weight: 800; }
.message p { color: var(--muted); margin: 0; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--fg); line-height: 1.65; }
.prose a { color: var(--accent); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.team div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.team a { color: var(--muted); font-size: 13px; margin-right: 10px; }

/* ---------- market backdrop ---------- */
.backdrop { border-bottom: 1px solid var(--line); background: var(--surface); }
.backdrop-in { max-width: 1320px; margin: 0 auto; padding: 8px 20px; display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 13px; }
.backdrop-in::-webkit-scrollbar { display: none; }
.bd-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-right: 4px; }
.bd-item { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.bd-item:hover { border-color: var(--line-2); }
.bd-item b { font-weight: 600; }
.bd-item.next { color: var(--muted); }
.bd-next { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.tone { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tone.in-line { background: var(--surface-2); color: var(--muted); }
.rx { display: inline-flex; gap: 8px; font: 500 12px var(--font-data); color: var(--muted); white-space: nowrap; }
.rx b { font-weight: 600; color: var(--fg); }
.rx b.up { color: var(--up); } .rx b.down { color: var(--down); }
table.macro td { padding: 7px 8px; vertical-align: middle; }
table.macro td.t { width: 52px; color: var(--muted); }
table.macro tr.past td { opacity: .92; }
table.macro tr:not(.past) td { color: var(--muted); }
.imp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--line-2); }
.imp.high { background: var(--down); } .imp.medium { background: var(--accent); }
.tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.hot { background: var(--down-soft); color: var(--down); } .tag.cool { background: var(--up-soft); color: var(--up); }

/* ---------- search palette, consent ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 8, 12, .55); z-index: 50; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.palette { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 16px 18px; font: 500 17px var(--font-body); color: var(--fg); outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.palette li { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--surface-2); }
.palette li b { font: 700 14px var(--font-data); width: 64px; }
.palette li span { color: var(--muted); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.consent p { margin: 0; flex: 1; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
