
:root {
    --heat-0:#e3e9ee;
    --heat-1:#f3dc9e; --heat-2:#edb866; --heat-3:#e3913f; --heat-4:#cf6430;
    --heat-5:#ae3a2a; --heat-6:#7f1d29; --heat-7:#3f0d1f;
    --flow-1:#d4efea; --flow-2:#a8dcd3; --flow-3:#77c3b8; --flow-4:#4ba79c;
    --flow-5:#2a8a80; --flow-6:#176d66; --flow-7:#0b4d49;
    --cause-shot:#6250d6; --cause-destroyed:#eb6834; --cause-crash:#1baf7a; --cause-other:#eda100;
}
body.dark {
    --heat-0:#1b2b3b;
    --heat-1:#4a3a22; --heat-2:#6e4d22; --heat-3:#9a5f22; --heat-4:#c46d2a;
    --heat-5:#e0823a; --heat-6:#f2a45c; --heat-7:#ffd49a;
    --flow-1:#16332f; --flow-2:#1d4d47; --flow-3:#256b62; --flow-4:#2f8c80;
    --flow-5:#43ad9f; --flow-6:#6fcfc0; --flow-7:#b2ece2;
    --cause-shot:#9085e9; --cause-destroyed:#d95926; --cause-crash:#199e70; --cause-other:#c98500;
}
.c-shot { --c:var(--cause-shot); }
.c-destroyed { --c:var(--cause-destroyed); }
.c-crash { --c:var(--cause-crash); }
.c-other { --c:var(--cause-other); }
i.sw { display:inline-block; width:10px; height:10px; border-radius:2px; background:var(--c); margin-right:5px; vertical-align:-1px; }
.legend-row { display:flex; flex-wrap:wrap; gap:6px 16px; padding:10px 18px 0; font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
.statband.answer { grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); }
.statband.answer > div { display:flex; flex-direction:column; gap:3px; }
.statband.answer .delta { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
.statband.answer .sides { display:flex; flex-wrap:wrap; gap:2px 12px; font-size:12.5px; color:var(--text-muted); }
.statband.answer .sides b { color:var(--text-color); font-weight:600; font-variant-numeric:tabular-nums; }
.statband.answer .spk { display:block; margin-top:8px; overflow:visible; }
.statband.answer .spk rect { fill:var(--text-color); opacity:.72; }
.statband.answer .spk polyline { fill:none; stroke:var(--text-color); stroke-width:1.6; }
.statband.answer .spk circle { fill:var(--text-color); }
.statband.answer .spk-note { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.06em; color:var(--text-muted); }
.units { display:flex; flex-wrap:wrap; gap:2px; align-items:center; }
.units > span { display:contents; }
.units i { display:block; width:10px; height:10px; border-radius:2px; background:var(--c); transition:opacity .15s; }
.units i.hollow { background:transparent; box-shadow:inset 0 0 0 1.5px var(--text-muted); }
.lwall[data-only="shot"] .units i:not(.c-shot),
.lwall[data-only="destroyed"] .units i:not(.c-destroyed),
.lwall[data-only="crash"] .units i:not(.c-crash),
.lwall[data-only="other"] .units i:not(.c-other) { opacity:.12; }
.lwall .console { border:none; border-bottom:1px solid var(--hairline); border-radius:0; margin:0; }
.lwall .chips a i.sw { margin-right:6px; }
.lw-grid {
    display:grid;
    grid-template-columns:170px repeat(var(--sides, 2), minmax(0, 1fr));
    column-gap:24px;
    padding:4px 18px 14px;
}
.lw-colh {
    font-family:var(--font-display);
    font-weight:600;
    font-size:20px;
    text-transform:uppercase;
    letter-spacing:.02em;
    padding:12px 0 8px;
    border-bottom:2px solid var(--side);
}
.lw-colh .lw-tot { font-family:var(--font-mono); font-size:12px; color:var(--text-muted); margin-left:8px; font-weight:500; }
.lw-rl, .lw-cell { border-top:1px solid var(--hairline); padding:10px 0 9px; min-width:0; }
.lw-rl {
    font-family:var(--font-display);
    font-weight:600;
    font-size:15px;
    text-transform:uppercase;
    letter-spacing:.02em;
    line-height:1.15;
}
.lw-rl small { display:block; font-family:var(--font-mono); font-weight:400; font-size:10.5px; text-transform:none; letter-spacing:.02em; color:var(--text-muted); margin-top:2px; }
.lw-rl.lw-dmg { color:var(--text-muted); }
.lw-cnt { display:block; font-family:var(--font-mono); font-size:11px; color:var(--text-muted); margin-bottom:5px; font-variant-numeric:tabular-nums; }
@media (max-width:768px) {
    .lw-grid { grid-template-columns:repeat(var(--sides, 2), minmax(0, 1fr)); column-gap:14px; padding:4px 14px 12px; }
    .lw-sp { display:none; }
    .lw-rl { grid-column:1 / -1; padding-bottom:0; }
    .lw-cell { border-top:none; padding-top:6px; }
    .units i { width:8px; height:8px; }
}
.ltypes {
    display:grid;
    grid-template-columns:200px repeat(var(--sides, 2), minmax(0, 1fr));
    gap:7px 22px;
    align-items:center;
    padding:14px 18px 16px;
}
.ltypes .lt-h { font-family:var(--font-display); font-weight:600; font-size:15px; text-transform:uppercase; letter-spacing:.03em; }
.ltypes .lt-name { font-weight:500; font-size:14px; line-height:1.2; }
.ltypes .lt-name small { display:block; font-family:var(--font-mono); font-size:10.5px; color:var(--text-muted); }
.ltypes .units i { width:8px; height:8px; }
.ltypes .lt-n { font-family:var(--font-mono); font-size:11px; font-weight:500; color:var(--text-muted); margin-left:6px; }
@media (max-width:768px) {
    .ltypes { grid-template-columns:repeat(var(--sides, 2), minmax(0, 1fr)); gap:4px 14px; }
    .ltypes > span:first-child { display:none; }
    .ltypes .lt-name { grid-column:1 / -1; margin-top:8px; }
}
.tempo-wrap { padding:14px 18px 4px; }
svg.tempo { display:block; width:100%; max-width:var(--tw); min-width:min(880px, var(--tw)); height:auto; }
svg.tempo circle[class^="c-"] { fill:var(--c); }
svg.tempo .axis { stroke:var(--hairline-strong); stroke-width:1; }
svg.tempo .yr { stroke:var(--hairline); stroke-dasharray:2 3; }
svg.tempo .yl, svg.tempo .lane { font-family:var(--font-mono); font-size:11px; fill:var(--text-muted); }
svg.tempo .lane { font-weight:500; fill:var(--text-color); text-transform:uppercase; letter-spacing:.06em; }
svg.tempo .hit { fill:transparent; }
svg.tempo .hit:hover { fill:var(--signal-soft); }
svg.tempo .tag { fill:var(--text-color); }
svg.tempo .tagline { stroke:var(--text-color); stroke-width:1; }
svg.tempo .tagn { fill:var(--panel); font-family:var(--font-mono); font-size:9.5px; font-weight:600; text-anchor:middle; dominant-baseline:central; }
ol.marks {
    list-style:none;
    margin:0;
    padding:16px 18px 18px;
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
    gap:16px 22px;
    border-top:1px solid var(--hairline);
    margin-top:12px;
}
ol.marks li { display:grid; grid-template-columns:24px minmax(0, 1fr); column-gap:10px; align-content:start; scroll-margin-top:90px; }
ol.marks .mk-n {
    grid-row:span 4;
    width:22px; height:22px;
    border-radius:50%;
    background:var(--text-color);
    color:var(--panel);
    font-family:var(--font-mono);
    font-size:11px;
    font-weight:600;
    line-height:22px;
    text-align:center;
}
ol.marks .mk-d { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
ol.marks .mk-h { font-family:var(--font-display); font-weight:600; font-size:16px; text-transform:uppercase; letter-spacing:.02em; line-height:1.1; margin-top:2px; }
ol.marks .mk-h a { color:inherit; }
ol.marks p { margin:3px 0 0; font-size:13.5px; line-height:1.45; }
ol.marks .mk-fig { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); margin-top:4px; }
.cal-side ol.marks { grid-template-columns:1fr; border-top:none; margin-top:0; padding:16px 16px 18px; }
.cal .console { border:none; border-bottom:1px solid var(--hairline); border-radius:0; margin:0; }
.cal-legend { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; padding:10px 18px; border-bottom:1px solid var(--hairline); font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
.cal-legend .ramp { display:inline-flex; align-items:center; gap:2px; }
.cal-legend .ramp svg { display:block; }
.cal-legend .now { width:11px; height:11px; border:2px solid var(--signal); border-radius:2px; display:inline-block; vertical-align:-1px; margin-right:4px; }
.cal-legend .mk { width:16px; height:16px; border-radius:50%; background:var(--text-color); color:var(--panel); font-size:9px; font-weight:600; text-align:center; line-height:16px; display:inline-block; margin-right:4px; }
.cal-body { display:grid; grid-template-columns:minmax(0, 1fr) 290px; }
.cal-years { padding:12px 18px 8px; min-width:0; }
.cal-side { border-left:1px solid var(--hairline); min-width:0; }
.calrow { display:grid; grid-template-columns:132px minmax(0, 1fr); column-gap:12px; align-items:start; }
.calrow + .calrow { margin-top:6px; }
.calmeta { padding-top:22px; display:flex; flex-direction:column; }
.calmeta .cy { font-family:var(--font-display); font-weight:700; font-size:34px; line-height:.9; }
.calmeta .ct { font-family:var(--font-display); font-weight:600; font-size:19px; line-height:1.1; margin-top:3px; font-variant-numeric:tabular-nums; }
.calmeta .cs { font-family:var(--font-mono); font-size:10px; line-height:1.45; letter-spacing:.04em; color:var(--text-muted); margin-top:3px; }
.cal svg, .calstrip svg { display:block; width:100%; height:auto; }
.cal svg text, .calstrip svg text { font-family:var(--font-mono); font-size:10.5px; fill:var(--text-muted); }
.cal rect.c, .calstrip rect.c, .cal-legend rect.c { rx:1.5px; }
.l0 { fill:var(--heat-0); }
.l1 { fill:var(--heat-1); } .l2 { fill:var(--heat-2); } .l3 { fill:var(--heat-3); } .l4 { fill:var(--heat-4); }
.l5 { fill:var(--heat-5); } .l6 { fill:var(--heat-6); } .l7 { fill:var(--heat-7); }
.flow .l1 { fill:var(--flow-1); } .flow .l2 { fill:var(--flow-2); } .flow .l3 { fill:var(--flow-3); }
.flow .l4 { fill:var(--flow-4); } .flow .l5 { fill:var(--flow-5); } .flow .l6 { fill:var(--flow-6); }
.flow .l7 { fill:var(--flow-7); }
rect.c.n { fill:none; }
.cal rect.c:hover, .calstrip rect.c:hover { stroke:var(--text-color); stroke-width:1.5; }
.cal .ol { fill:none; pointer-events:none; stroke-width:1.6; }
.cal .ol.mk { stroke:var(--text-color); }
.cal .ol.now { stroke:var(--signal); stroke-width:2; }
.cal .tagline { stroke:var(--text-color); stroke-width:1; }
.cal .tag { fill:var(--text-color); }
.cal .tagn { fill:var(--panel); font-size:9.5px; font-weight:600; text-anchor:middle; dominant-baseline:central; }
.cal .ledger-foot { border-top:1px solid var(--hairline); }
@media (max-width:1100px) {
    .cal-body { grid-template-columns:minmax(0, 1fr); }
    .cal-side { border-left:none; border-top:1px solid var(--hairline); }
    .cal-side ol.marks { grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width:576px) {
    .calrow { grid-template-columns:minmax(0, 1fr); }
    .calmeta { padding-top:8px; flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:2px 10px; }
    .calmeta .cy { font-size:26px; }
    .cal-years { padding:8px 12px; }
}
.hubrows { padding:0; }
.hubrow { display:grid; grid-template-columns:280px minmax(0, 1fr); gap:16px 26px; padding:18px; border-bottom:1px solid var(--hairline); align-items:start; }
.hubrow:last-child { border-bottom:none; }
.hubrow h3 { font-family:var(--font-display); font-weight:600; font-size:22px; text-transform:uppercase; letter-spacing:.02em; margin:6px 0 0; line-height:1.05; }
.hubrow h3 a { color:inherit; }
.hubrow .hb-fig { font-family:var(--font-display); font-weight:600; font-size:34px; line-height:1; margin-top:10px; font-variant-numeric:tabular-nums; }
.hubrow .hb-fig small { font-family:var(--font-mono); font-size:11px; font-weight:400; color:var(--text-muted); margin-left:6px; }
.hubrow .hb-sub { font-size:13px; color:var(--text-muted); margin-top:4px; }
.hubrow .hb-parties { display:flex; flex-wrap:wrap; gap:4px 8px; font-size:12.5px; margin-top:8px; color:var(--text-muted); }
.hubrow .hb-go { margin-top:10px; display:inline-block; }
.calstrip { min-width:0; }
.calstrip .cal-legend { border:none; padding:6px 0 0; }
@media (max-width:768px) {
    .hubrow { grid-template-columns:minmax(0, 1fr); }
}
.cvtip {
    position:fixed;
    z-index:60;
    pointer-events:none;
    max-width:300px;
    background:var(--panel);
    color:var(--text-color);
    border:1px solid var(--hairline-strong);
    border-radius:6px;
    padding:8px 10px;
    font-size:12.5px;
    line-height:1.4;
    box-shadow:var(--shadow-panel);
}
.cvtip-h { font-family:var(--font-display); font-weight:600; font-size:14px; text-transform:uppercase; letter-spacing:.03em; margin-bottom:3px; }
.cvtip-m { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
.cvtip-k { margin-top:4px; padding-top:4px; border-top:1px solid var(--hairline); font-weight:500; }
@media (min-width:1101px) {
    .cal-side { contain:size; overflow-y:auto; }
}
.wrail svg { display:block; width:100%; max-width:640px; height:auto; overflow:visible; }
.wrail .wr-lead { margin:0 0 10px; }
.wr-bar { fill:var(--hairline-strong); }
.wr-bar.cur { fill:var(--heat-3); }
.wr-bar:hover { fill:var(--signal); }
.wr-base { stroke:var(--hairline-strong); }
.wr-tick { stroke:var(--text-muted); }
.wr-tl { font-family:var(--font-mono); font-size:10px; fill:var(--text-muted); text-anchor:middle; }
.wr-tl.end { text-anchor:end; }
.wr-now { stroke:var(--signal); stroke-width:2; }
.wr-nowt { font-family:var(--font-mono); font-size:10.5px; font-weight:600; fill:var(--text-color); }
.mx-wrap { padding:12px 18px 4px; }
svg.mx { display:block; width:100%; min-width:820px; height:auto; }
.mx-band { fill:var(--panel-2); }
.mx-band.odd { fill:transparent; }
.mx-band:hover { fill:var(--signal-soft); }
.mx-yr { stroke:var(--hairline); stroke-dasharray:2 3; }
.mx-yl, .mx-note, .mx-max { font-family:var(--font-mono); font-size:10.5px; fill:var(--text-muted); }
.mx-max { text-anchor:end; }
.mx-lab { font-family:var(--font-display); font-weight:600; font-size:15px; text-transform:uppercase; letter-spacing:.02em; fill:var(--text-color); }
.mx-base { stroke:var(--hairline-strong); }
.mx-area { fill:var(--c); opacity:.16; }
.mx-line { fill:none; stroke:var(--c); stroke-width:1.5; stroke-linejoin:round; }
.mx-end { fill:var(--c); }
svg.mx .tag { fill:var(--text-color); }
svg.mx .tagline { stroke:var(--text-color); stroke-width:1; opacity:.5; }
svg.mx .tagn { fill:var(--panel); font-family:var(--font-mono); font-size:9px; font-weight:600; text-anchor:middle; dominant-baseline:central; }
.mx-xhair { stroke:var(--text-color); stroke-width:1; pointer-events:none; }
ol.mx-phases { list-style:none; margin:0; padding:10px 18px 16px; display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:8px 20px; border-top:1px solid var(--hairline); font-size:13px; }
ol.mx-phases li { display:grid; grid-template-columns:24px minmax(0, 1fr); column-gap:8px; }
ol.mx-phases .mk-n { grid-row:span 2; width:20px; height:20px; border-radius:50%; background:var(--panel-2); border:1px solid var(--hairline-strong); font-family:var(--font-mono); font-size:10.5px; line-height:18px; text-align:center; }
ol.mx-phases b { font-family:var(--font-display); font-weight:600; font-size:15px; text-transform:uppercase; letter-spacing:.02em; }
ol.mx-phases span:not(.mk-n) { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
.nb-wrap { padding:12px 18px 0; }
svg.nb { display:block; width:100%; min-width:720px; height:auto; }
.nb-grid { stroke:var(--hairline); }
.nb-tick { font-family:var(--font-mono); font-size:10.5px; fill:var(--text-muted); text-anchor:end; dominant-baseline:central; }
.nb-month { font-family:var(--font-mono); font-size:10.5px; fill:var(--text-muted); }
.nb-band { fill:var(--flow-3); opacity:.28; }
.nb-median { fill:none; stroke:var(--flow-5); stroke-width:1.2; stroke-dasharray:4 3; }
.nb-prev { fill:none; stroke:var(--text-muted); stroke-width:1.3; }
.nb-cur { fill:none; stroke:var(--signal); stroke-width:2.2; stroke-linejoin:round; }
.nb-end { fill:var(--signal); }
.nb-endt { font-family:var(--font-mono); font-size:11px; font-weight:600; fill:var(--text-color); }
.nbk { display:inline-block; width:16px; height:3px; vertical-align:middle; margin-right:6px; }
.nbk.cur { background:var(--signal); }
.nbk.prev { background:var(--text-muted); }
.nbk.med { border-top:2px dashed var(--flow-5); height:0; }
.nbk.rng { height:10px; background:var(--flow-3); opacity:.4; }
.nb-legend { padding-bottom:12px; }
.mixbars { border-top:1px solid var(--hairline); padding:12px 18px 16px; display:flex; flex-direction:column; gap:6px; }
.mix-head { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); margin-bottom:2px; }
.mix-row { display:grid; grid-template-columns:44px minmax(0, 1fr) 210px; gap:12px; align-items:center; font-size:12.5px; }
.mix-y { font-family:var(--font-mono); font-size:11.5px; }
.mix-bar { display:flex; height:12px; border-radius:2px; overflow:hidden; gap:2px; }
.mix-bar i { display:block; width:var(--pct); background:var(--c); }
.mix-n { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); }
@media (max-width:576px) { .mix-row { grid-template-columns:40px minmax(0, 1fr); } .mix-n { grid-column:2; } }
.zg { padding:14px 18px 10px; display:flex; flex-direction:column; gap:4px; }
.zg-row { display:grid; grid-template-columns:190px minmax(0, 1fr) 96px; gap:12px; align-items:center; }
.zg-lab { font-size:13px; line-height:1.15; }
.zg-row svg { display:block; width:100%; height:auto; }
.zg-row svg text { font-family:var(--font-mono); font-size:10px; fill:var(--text-muted); }
.zg-tot { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); text-align:right; }
.zg-tot b { color:var(--text-color); font-weight:600; }
@media (max-width:768px) { .zg-row { grid-template-columns:minmax(0, 1fr) 80px; } .zg-lab { grid-column:1 / -1; margin-top:6px; } .zg-row svg { grid-column:1; } }
table.data.heatmap.tmx th.low, table.data.heatmap.tmx td.hm.low {
    background-image:repeating-linear-gradient(135deg, transparent 0 5px, var(--hairline-strong) 5px 6px);
    color:var(--text-muted);
}
table.tmx th, table.tmx td { padding-left:8px; padding-right:8px; }
table.tmx tr.tmx-share th { font-family:var(--font-mono); font-size:10.5px; font-weight:500; text-transform:none; letter-spacing:0; color:var(--text-muted); }
table.tmx tr.tmx-share .bar { display:block; width:100%; max-width:56px; margin:0 0 3px auto; }
table.amx th .amx-code { display:block; font-size:9.5px; }
.il-card { margin-bottom:14px; }
.il-wrap { padding:10px 18px 4px; }
svg.il { display:block; width:100%; min-width:760px; height:auto; }
.il-lab { font-family:var(--font-display); font-weight:600; font-size:13.5px; text-transform:uppercase; letter-spacing:.02em; fill:var(--text-color); dominant-baseline:central; }
.il-n { font-family:var(--font-mono); font-size:10.5px; font-weight:400; fill:var(--text-muted); }
.il-lane { stroke:var(--hairline); }
.il-yr { stroke:var(--hairline); stroke-dasharray:2 3; }
.il-yl { font-family:var(--font-mono); font-size:10.5px; fill:var(--text-muted); }
.il-dot { fill:var(--signal); fill-opacity:.55; stroke:var(--panel); stroke-width:1; }
svg.il a:hover .il-dot { fill-opacity:1; }
svg.il .tag { fill:var(--text-color); }
svg.il .tagn { fill:var(--panel); font-family:var(--font-mono); font-size:9.5px; font-weight:600; text-anchor:middle; dominant-baseline:central; }
.pk-mark { display:inline-flex; align-items:center; gap:7px; }
.pk-mark .mk-n { width:18px; height:18px; border-radius:50%; background:var(--text-color); color:var(--panel); font-family:var(--font-mono); font-size:10px; font-weight:600; line-height:18px; text-align:center; flex:none; }
.mx-xhair[hidden] { display:none; }
