:root { --bg: #141619; --surface: #1c1f23; --raised: #262a2f; --hair: rgba(255,255,255,0.1); --text: #e8e6e1; --text2: #aaaba7; --text3: #7b7f82; --here: #6fbf73; --live: #e98d7f;
  --mono: ui-monospace, "SF Mono", Menlo, monospace; --sans: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; --serif: Georgia, "Times New Roman", serif; }
@media (prefers-color-scheme: light) { :root { --bg: #f5f3ee; --surface: #fff; --raised: #ebe8e2; --hair: rgba(0,0,0,0.1); --text: #1d1f22; --text2: #4d5157; --text3: #6f747a; --here: #2f7a35; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.brand { font: 800 0.95rem var(--mono); letter-spacing: 0.08em; color: var(--here); }
.asof { font: 0.75rem var(--mono); color: var(--text3); }
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.foot { text-align: center; font: 0.75rem var(--mono); color: var(--text3); padding: 0 16px 32px; }
h1 { font: 700 1.6rem/1.2 var(--serif); margin: 6px 0 10px; }
h2 { font: 600 1.3rem/1.35 var(--serif); margin: 8px 0 16px; }
h3 { font: 700 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin: 22px 0 8px; }
p { margin: 0 0 12px; }
.fine { font-size: 0.85rem; color: var(--text2); }
a { color: var(--here); }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
.btn { display: block; width: 100%; min-height: 50px; border-radius: 12px; background: var(--raised); font-weight: 600; margin: 8px 0; padding: 10px 14px; }
.btn.primary { background: var(--here); color: #fff; }
.row { display: flex; gap: 8px; }
.row .btn { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 14px; margin: 10px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.check input { width: 22px; height: 22px; margin-top: 2px; }
.prog { display: flex; gap: 10px; align-items: center; font: 0.8rem var(--mono); color: var(--text3); }
.bar { flex: 1; height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--here); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--raised); font-size: 0.85rem; }
.chip.on { background: var(--here); color: #fff; }
.opt.on { outline: 2px solid var(--here); }
.nav { display: flex; justify-content: space-between; margin-top: 14px; }
.link { background: none; color: var(--text2); text-decoration: underline; padding: 6px 0; }
.explain { background: none; color: var(--here); font-weight: 600; padding: 4px 0 10px; }
.race summary { list-style: none; cursor: pointer; }
.race summary::-webkit-details-marker { display: none; }
.cand { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hair); }
.pct { font: 700 1.05rem var(--mono); }
.top1 .pct { color: var(--here); }
ul.pos { padding-left: 18px; margin: 6px 0; font-size: 0.9rem; }
ul.pos li { margin: 4px 0; }
.lines { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.line { font: 0.72rem var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--raised); }
.line.best { outline: 2px solid var(--here); }
.plan li { margin: 6px 0; }
