:root{
  --bg:#0b0b0f;--panel:#141419;--panel2:#15161b;--line:#23232b;--text:#e7e7ea;--muted:#8a8a94;--dim:#26262c;
  --blue:#4b7bec;--blue2:#8fb0ff;--red:#e5484d;--red2:#f0948f;--green:#3dd68c;--yellow:#f2c744;
  --hd:#2c3f8f;--hr:#7b2f33;--sd:#4b7bec;--ld:#6f93f5;--nd:#a9bdf7;--tu:#f2c744;--nr:#f0a7a3;--lr:#ea7a7a;--sr:#e5484d;
}
*{box-sizing:border-box}
html{background:var(--bg);color:var(--text);font:14px/1.45 Inter,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-variant-numeric:tabular-nums;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.home{display:flex;flex-direction:column}
.muted{color:var(--muted)}
.b{color:var(--blue2)}.r{color:var(--red2)}
.cb{color:var(--blue)}.cr{color:var(--red)}
.chg{animation:chg .6s ease-out}
@keyframes chg{0%{background:rgba(255,255,255,.14)}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.cd{--c:var(--hd)}.cr{--c:var(--hr)}.sd{--c:var(--sd)}.ld{--c:var(--ld)}.nd{--c:var(--nd)}.tu{--c:var(--tu)}.nr{--c:var(--nr)}.lr{--c:var(--lr)}.sr{--c:var(--sr)}.hd{--c:var(--hd)}.hr{--c:var(--hr)}

/* top bar + tabs */
.top{display:flex;align-items:center;justify-content:space-between;height:52px}
.top .brand{font-weight:600;font-size:18px;letter-spacing:.04em}
.top .upd{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:12px}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--muted);margin:0 2px 1px 4px;vertical-align:middle}
.dot.on{background:var(--green)}
.tabs{display:flex;gap:22px;overflow-x:auto;scrollbar-width:none;box-shadow:inset 0 -1px 0 var(--line)}
.tabs::-webkit-scrollbar{display:none}
.tabs a,.tabs button{display:inline-block;padding:12px 0 10px;color:var(--muted);font-weight:500;border-bottom:2px solid transparent;white-space:nowrap;font-size:15px}
.tabs .on{color:#fff;border-bottom-color:#fff}
.note{font-size:13px;color:var(--muted);padding:10px 0 0;min-height:10px}
@media (max-width:760px){.note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}

/* headline */
.head{background:var(--panel2);border-radius:12px;padding:24px 28px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.head .hl{min-width:0}
.head h1{font-size:38px;line-height:1.15;font-weight:500;margin:0;letter-spacing:-.015em;max-width:760px}
.head .bal{font-size:14px;color:var(--muted);margin-top:8px}
.pills{display:flex;gap:10px;flex-shrink:0}
.pill{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:10px;color:#fff;font-weight:600;font-size:14px;white-space:nowrap}
.pill.d{background:rgba(75,123,236,.35)}.pill.r{background:rgba(229,72,77,.35)}

/* seat bar */
.seats{margin-top:22px}
.seats .eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:6px}
.seats .nums{display:flex;justify-content:space-between;align-items:flex-end;font-size:28px;font-weight:600;line-height:1}
.seats .nums small{font-weight:500;font-size:28px}
.seats .need{position:relative;height:18px;margin-top:6px}
.seats .need span{position:absolute;transform:translateX(-50%);font-size:12px;color:var(--muted);white-space:nowrap;line-height:1}
.seats .need span::after{content:"\25BC";display:block;text-align:center;font-size:8px;color:var(--text);margin-top:1px}
.bar{display:flex;gap:4px;height:8px;margin-top:4px}
.bar i{display:block;height:8px;border-radius:4px;min-width:8px;background:var(--c)}
.seats .caps{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:6px}
.seats .brk{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:4px;gap:12px;flex-wrap:wrap}
.seats .legend{font-size:12px;color:var(--muted);margin-top:8px}

/* chart */
.chart{margin-top:22px}
.chart .hd{display:flex;justify-content:space-between;align-items:center}
.chart h3{margin:0;font-size:14px;font-weight:600}
.chart .tog button{font-size:12px;color:var(--muted);padding:2px 8px;border-radius:6px;margin-left:4px}
.chart .tog button.on{color:#fff;background:var(--line)}
.chart svg{width:100%;height:180px;display:block;margin-top:8px}
.chart .leg{display:flex;gap:14px;font-size:11px;color:var(--muted);margin-top:4px;flex-wrap:wrap}
.chart .leg i{display:inline-block;width:10px;height:2px;vertical-align:middle;margin-right:5px}
.chart .ro{font-size:12px;color:var(--muted);min-height:18px;margin-top:2px}

/* tier board */
.board{margin-top:26px;display:grid;grid-template-columns:72px repeat(7,1fr) 72px;gap:6px}
.board .col{display:flex;flex-direction:column;gap:8px;min-width:0;padding-top:4px;box-shadow:inset 1px 0 0 var(--line)}
.board .col:first-child{box-shadow:none}
.board .col h4{margin:0;font-size:12px;font-weight:500;color:var(--muted);text-align:center;white-space:nowrap}
.board .col.d h4{color:var(--blue2)}.board .col.r h4{color:var(--red2)}.board .col.t h4{color:var(--yellow)}
.board .chips{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:0 4px}
.board .col.end .chips{padding:0 2px}
.chip{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 3px;border-radius:6px;font-size:11px;font-weight:600;color:#fff;background:var(--c)}
.chip.nd,.chip.nr,.chip.tu{color:#0b0b0f}
.chip.called{outline:1.5px solid #fff;outline-offset:-1.5px}
.chip.cd,.chip.cr{color:#fff}
.chip.small{min-width:24px;height:24px;font-size:10px}
.chip:hover{filter:brightness(1.1)}

/* map */
.map{margin-top:18px}
.map svg{width:100%;height:auto;display:block}
.map path{stroke:#0b0b0f;stroke-width:.8;cursor:pointer;fill:var(--c)}
.map path.none{fill:var(--dim);cursor:default}
.map path.nd{fill:url(#h-nd)}.map path.nr{fill:url(#h-nr)}
.map path.called{stroke:#fff;stroke-width:1.5}
.map path:hover{filter:brightness(1.12)}
.map text{fill:#fff;text-anchor:middle;pointer-events:none;font-weight:700;font-size:16px}
.map text.dark{fill:#0b0b0f}
.map text.none{fill:#6a6a74;font-weight:500;font-size:13px}
.map text .pct{font-weight:500;font-size:13px}
.map .pl{display:none}
.map .ne rect{rx:4;fill:var(--c);stroke:#0b0b0f}
.map .ne rect.none{fill:var(--dim)}
.map .ne rect.nd{fill:url(#h-nd)}.map .ne rect.nr{fill:url(#h-nr)}
.map .ne rect.called{stroke:#fff;stroke-width:1.5}
.map .ne text{font-size:14px;text-anchor:start;font-weight:600}
.map .ne text .pct{font-size:14px}
.map .ne g{cursor:pointer}
.map .ne g.none{cursor:default}

/* closest list (phone) */
.closest{display:none;margin-top:8px}
.closest .crow{display:flex;align-items:center;justify-content:space-between;gap:8px;height:54px;width:100%;text-align:left;box-shadow:inset 0 -1px 0 var(--line)}
.closest .crow b{font-weight:600}
.closest .crow span{font-weight:500}

/* cards */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:22px}
@media (min-width:1280px){.cards{grid-template-columns:repeat(3,1fr)}}
.card{text-align:left;display:block;width:100%;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px}
.card h4{margin:0;font-size:16px;font-weight:600}
.card .live{font-size:12px;color:var(--muted);margin-top:3px;min-height:18px;display:flex;gap:8px;align-items:center}
.card .live .lv{letter-spacing:.06em;font-weight:600}
.card .live .lv .rd{color:var(--red);margin-right:5px}
.card .live .dl{font-weight:600;padding:1px 7px;border-radius:9px;background:var(--line)}
.two{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px}
.two .cd{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.two .cd.rr{flex-direction:row-reverse;text-align:right}
.two .tx{min-width:0}
.two .nm{font-size:20px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;line-height:1.2}
.two .pc{font-size:28px;font-weight:700;line-height:1.15}
.two .odds{font-size:12px;color:var(--muted)}
.hs{width:56px;height:56px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;color:#fff;overflow:hidden;background:var(--line)}
.hs.d{background:var(--blue)}.hs.r{background:var(--red)}
.hs img{width:100%;height:100%;object-fit:cover;display:block}
.split{display:flex;height:4px;border-radius:2px;overflow:hidden;background:var(--line);margin-top:12px}
.split i{display:block;height:100%}
.split .d{background:var(--blue)}.split .r{background:var(--red)}
.split .g{background:transparent;width:2px}
.card .cnt{font-size:12px;color:var(--muted);text-align:center;margin-top:10px}
.card .call{font-size:13px;text-align:center;margin-top:6px;font-weight:600}

/* wire */
.wire{margin-top:26px}
.wire h3{margin:0 0 4px;font-size:14px;font-weight:600}
.wire .q{padding:10px 12px;margin:8px 0;border:1px solid #23232b;border-radius:8px;background:#101014}
.wire .q.alert{border-color:#3a2a2c;background:#160f10}
.wire h3 .rd{color:#e5484d;margin-right:6px;font-size:10px;vertical-align:1px}
.wire h3 .sub{font-weight:400;color:var(--muted);font-size:12px;margin-left:8px}
.wire .q .m{font-size:12px;color:var(--muted)}
.wire .q .m b{color:var(--text);font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.wire .tag{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.06em;padding:1px 6px;border-radius:4px;background:var(--line);color:#fff;vertical-align:1px}
.wire .q p{margin:2px 0 0;font-size:14px}
.wire .q a{font-size:11px;color:var(--muted);text-decoration:underline}
.more{font-size:13px;color:var(--muted);margin-top:4px}
.more:hover{color:var(--text)}

.closes{margin-top:26px}
.closes h3{margin:0 0 4px;font-size:14px;font-weight:600}
.closes .cl{display:grid;grid-template-columns:80px 1fr 60px;gap:12px;padding:7px 0;font-size:13px;box-shadow:inset 0 -1px 0 var(--line)}
.closes .cl .tm{color:var(--muted)}
.closes .cl b{font-weight:600}
.closes .cl .fl{text-align:right;color:var(--muted);font-size:12px}
.closes .past{color:var(--muted)}.closes .past b{color:var(--muted);font-weight:500}
.closes .next{background:var(--panel2);border-radius:8px;padding:7px 8px;margin:0 -8px}.closes .next .fl{color:var(--green)}
.links{display:flex;gap:24px;flex-wrap:wrap;margin-top:26px;font-weight:500}
.foot{font-size:12px;color:var(--muted);padding:28px 0 44px;margin-top:8px;border-top:1px solid #1f1f26}
.foot a{color:var(--muted);text-decoration:none;border-bottom:1px solid #3a3a44}
.foot a:hover{color:var(--text)}
.foot-row{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline}
.foot .sepdot{opacity:.5}
.foot-by{margin-top:10px;font-size:13px;color:var(--text)}
.foot-by a{color:var(--text);border-bottom-color:#5a5a66}

/* detail panel */
.ov{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;z-index:40}
.ov.open{display:block}
.det{position:fixed;top:0;right:0;bottom:0;width:420px;max-width:100%;background:var(--panel);z-index:50;transform:translateX(100%);transition:transform .2s ease;overflow-y:auto;padding:18px;display:none}
.det.open{display:block;transform:none}
.det .x{position:absolute;top:12px;right:14px;font-size:20px;line-height:1;color:var(--muted);width:32px;height:32px;border-radius:8px}
.det .x:hover{background:var(--line)}
.det h2{margin:0 36px 2px 0;font-size:20px;font-weight:600}
.det .sub{font-size:12px;color:var(--muted)}
.det .two .nm{font-size:15px}.det .two .pc{font-size:26px}
.det .hs{width:44px;height:44px;font-size:13px}
.det .books{font-size:12px;color:var(--muted);margin-top:8px}
.det table{width:100%;border-collapse:collapse;margin-top:12px;font-size:13px}
.det td{padding:5px 0;box-shadow:inset 0 -1px 0 var(--line)}
.det td:nth-child(2),.det td:nth-child(3){text-align:right}
.det h5{margin:16px 0 4px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.det svg{width:100%;height:60px;display:block}
.det .q{padding:8px 0}
.det .q .m{font-size:12px;color:var(--muted)}
.det .q p{margin:2px 0}
.det .q a{font-size:11px;color:var(--muted);text-decoration:underline}
.sparkline{width:90px;height:24px;display:block}

/* list pages */
.pt{font-size:28px;font-weight:600;margin:20px 0 0;letter-spacing:-.01em}
.pt span{color:var(--muted);font-weight:500}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
select,input{font:inherit;color:var(--text);background:var(--panel);border:0;border-radius:20px;padding:0 16px;height:40px;-webkit-appearance:none;appearance:none}
select{padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a94' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.filters input{flex:1;min-width:140px}
.list{margin-top:8px}
.lh,.lrow{display:grid;grid-template-columns:120px 120px 96px 1fr 100px 84px 70px 90px;gap:8px;align-items:center}
.lh{font-size:12px;color:var(--muted);padding:8px 10px}
.lrow{height:72px;padding:0 10px;border-radius:8px;width:100%;text-align:left}
.lrow:hover{background:var(--panel)}
.lrow .nm{font-weight:600}
.lrow .ch{font-weight:500;color:#fff}
.lrow .fav{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow .m1,.lrow .m2{display:none}
.lrow .sparkline path{stroke:var(--muted)}
.lrow:hover .sparkline path{stroke:#fff}
.empty{color:var(--muted);padding:20px 10px}
.stblocks{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px 18px}
.stb{display:inline-flex;align-items:center;gap:4px;font-size:12px}
.stb b{width:26px;color:var(--muted);font-weight:500}
.dch{width:14px;height:14px;border-radius:3px;display:inline-block;border:0;padding:0;background:var(--c,var(--dim))}
.dch.called{outline:1.5px solid #fff;outline-offset:-1.5px}

@media (max-width:760px){
  .home .seats{order:1}.home #headline{order:0}.home .map{order:2}.home .closest{order:3}.home .board{order:4}.home .cards{order:5}.home .chart{order:6}.home .wire{order:7}.home .closes{order:8}.home .links{order:9}.home .foot{order:10}
  .closes .cl{display:block}.closes .cl .tm{display:inline;margin-right:8px}.closes .cl .fl{display:inline;margin-left:8px}
  .chart svg{height:150px}
  .head{flex-direction:column;align-items:flex-start;gap:12px;background:none;padding:0;margin-top:14px}
  .head h1{font-size:22px}
  .pills{gap:8px}
  .pill{height:30px;font-size:13px;padding:0 10px}
  .seats{margin-top:16px}
  .seats .nums,.seats .nums small{font-size:22px}
  .bar{gap:2px}.bar i{min-width:6px}
  .board{display:flex;flex-direction:column;gap:6px;min-height:0}
  .board .col{flex-direction:row;align-items:center;gap:10px;box-shadow:none;padding:0}
  .board .col h4{width:64px;text-align:left;flex-shrink:0}
  .board .chips{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;padding:2px 0;scrollbar-width:none;flex:1;min-width:0}
  .board .chips::-webkit-scrollbar{display:none}
  .board .col.end.empty{display:none}
  .map{margin:14px -16px 0;width:calc(100% + 32px)}
  .map .dl{display:none}.map .pl{display:block;font-size:24px}
  .map .ne text{font-size:18px}
  .closest{display:block}
  .cards{grid-template-columns:1fr}
  .two .nm{font-size:17px}.two .pc{font-size:24px}
  .det{width:100%}
  .lh{display:none}
  .lrow{display:block;height:auto;padding:10px}
  .lrow>span{display:none}
  .lrow .m1,.lrow .m2{display:flex;justify-content:space-between;gap:8px}
  .lrow .m2{font-size:12px;color:var(--muted);margin-top:2px}
  .lrow .m2 span{display:inline}
  .top .brand{font-size:13px}
  .top .upd{max-width:50%}.top .mk{display:none}
  .map .ne{display:none}
  .stb{flex-wrap:wrap}
}

/* methodology page */
.doc{max-width:760px;padding:8px 0 24px;font-size:15px;line-height:1.55}
.doc h1{font-size:28px;font-weight:600;margin:20px 0 8px;letter-spacing:-.01em}
.doc .lede{font-size:17px;color:var(--text);margin:0 0 20px}
.doc h2{font-size:18px;font-weight:600;margin:30px 0 8px}
.doc h3{font-size:15px;font-weight:600;margin:20px 0 6px;color:var(--text)}
.doc p,.doc li{color:#c9c9d0}
.doc ul{padding-left:20px;margin:6px 0 12px}
.doc li{margin:5px 0}
.doc a{color:#8fb0ff;text-decoration:none;border-bottom:1px solid rgba(143,176,255,.35)}
.doc a:hover{color:#fff;border-bottom-color:#fff}
.doc code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;background:#15161b;padding:1px 5px;border-radius:4px;color:#d7d7de}
.doc .mono li{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.doc-t{width:100%;border-collapse:collapse;margin:8px 0 14px;font-size:14px}
.doc-t th,.doc-t td{text-align:left;vertical-align:top;padding:8px 10px 8px 0;border-bottom:1px solid #1f1f26}
.doc-t th{color:var(--muted);font-weight:500;width:34%;white-space:nowrap}
.doc-t td{word-break:break-word}
@media (max-width:700px){.doc-t th{width:40%;white-space:normal}}

.tog .sep{display:inline-block;width:1px;height:18px;background:#2a2a33;margin:0 6px;vertical-align:middle}
@media (max-width:700px){.chart .hd{flex-wrap:wrap}.tog{flex-wrap:wrap;gap:4px}}

.chart .tog .nw{white-space:nowrap;display:inline-flex;gap:4px}
@media (max-width:700px){.chart .tog button{padding:6px 10px;font-size:13px}.chart .tog .sep{display:none}.chart .tog{row-gap:6px}}

/* ---------- v2 additions ---------- */
.top .warn{color:#f2c744}
.anchors{display:flex;gap:18px;padding:10px 0 2px;overflow-x:auto;scrollbar-width:none;font-size:13px}
.anchors::-webkit-scrollbar{display:none}
.anchors a{color:var(--muted);white-space:nowrap;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#3a3a44}
.anchors a:hover{color:var(--text);text-decoration-color:var(--text)}
section[id]{scroll-margin-top:12px}
.head .know{margin-top:6px;line-height:1.5}
.head .know b{color:var(--text);font-weight:500}
.seats .words{font-size:14px;line-height:1.5;color:var(--text);margin:8px 0 2px;max-width:860px}
.seats .words b{font-weight:600}
.seats .legend .lg-p{display:none}
.hist{margin-top:14px;border-top:1px solid var(--line);padding-top:8px}
.hist summary{font-size:12px;color:var(--muted);cursor:pointer;list-style:none;text-transform:uppercase;letter-spacing:.06em}
.hist summary::-webkit-details-marker{display:none}
.hist summary::before{content:"▸";display:inline-block;width:12px;color:var(--muted)}
.hist[open] summary::before{content:"▾"}
.hbars{display:flex;align-items:flex-end;gap:6px;height:72px;margin-top:10px;max-width:560px}
.hb{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.hb i{display:block;width:100%;border-radius:3px 3px 0 0;background:var(--blue);min-height:2px}
.hb i.r{background:var(--red)}
.hb span{font-size:11px;color:var(--muted);margin-top:4px;line-height:1}
.hb.need span{color:#fff;font-weight:600}
.hb.need i{box-shadow:0 0 0 1.5px #fff}
.hcap{font-size:12px;color:var(--muted);margin-top:6px}
.closest .crow{height:auto;min-height:54px;padding:8px 0}
.closest .crow .ct{display:flex;flex-direction:column;min-width:0;gap:2px}
.closest .crow .cs{font-size:12px;color:var(--muted);font-weight:400}
.wire .tag.claim{background:transparent;color:var(--muted);border:1px solid var(--line);font-weight:500;letter-spacing:.02em;text-transform:none}
.chart .leg span{white-space:nowrap}
@media (max-width:760px){
  .seats .caps{display:none}
  .seats .legend .lg-d{display:none}.seats .legend .lg-p{display:inline}
  .seats .words{font-size:13px}
  .head .know{font-size:12px}
  .hbars{height:56px;gap:3px}
}

/* mock mode bar (?mock=live|called|won) */
.mockbar{position:sticky;top:0;z-index:60;background:var(--yellow);color:#0b0b0f;font-size:12px;font-weight:600;text-align:center;padding:5px 16px;letter-spacing:.02em}
.mockbar a{color:#0b0b0f;text-decoration:underline;font-weight:600}
body.mock .det{top:26px}
