:root{color-scheme:light;--bg:#f5f4ef;--surface:#fff;--text:#192e38;--muted:#4f626b;--line:#ccd5d7;--blue:#006d91;--orange:#b4430e;--exact:#526475;--focus:#7b3abe;--grid:#e3e8e9}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#111c23;--surface:#192932;--text:#edf3f4;--muted:#b2c3cb;--line:#405863;--blue:#67c9e9;--orange:#ffa277;--exact:#cad6df;--focus:#d4a6ff;--grid:#2d414a}}
:root[data-theme=dark]{color-scheme:dark;--bg:#111c23;--surface:#192932;--text:#edf3f4;--muted:#b2c3cb;--line:#405863;--blue:#67c9e9;--orange:#ffa277;--exact:#cad6df;--focus:#d4a6ff;--grid:#2d414a}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:1rem}body{margin:0;background:var(--bg);color:var(--text);font:17px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--blue);text-underline-offset:3px}a:hover{text-decoration-thickness:2px}button,input,select{font:inherit}button,select{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:.5rem .8rem;min-height:44px}button{cursor:pointer}button:hover:not(:disabled){border-color:var(--blue)}button:disabled{opacity:.45;cursor:default}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}input[type=range]{width:100%;accent-color:var(--blue);min-height:44px}input[type=checkbox]{accent-color:var(--blue);width:20px;height:20px;flex-shrink:0}.skip{position:absolute;top:-80px;left:1rem;background:var(--surface);padding:.7rem;z-index:2}.skip:focus{top:1rem}header,main,footer{max-width:1160px;margin:auto;padding:0 2rem}header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-top:1.6rem;font-size:.85rem}header a{text-decoration:none;font-weight:650}section{padding:4rem 0;border-bottom:1px solid var(--line)}.intro{padding-top:4.5rem}h1,h2,h3{line-height:1.15;letter-spacing:-.025em;margin-top:0}h1{font-size:clamp(2.5rem,6vw,4.8rem);max-width:900px;margin-bottom:1.5rem}h2{font-size:clamp(1.8rem,4vw,2.7rem);max-width:900px}h3{font-size:1.15rem;margin-bottom:1rem}.lede{font-size:1.35rem;max-width:750px}p{max-width:900px}p:last-child{margin-bottom:0}.eyebrow{font:650 .8rem/1.5 system-ui;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);margin:0 0 1rem}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin:2.5rem 0}.stats strong{display:block;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.3}.stats span{display:block;color:var(--muted);font-size:.9rem;margin-top:.4rem}nav{display:flex;flex-wrap:wrap;gap:2rem;margin-top:1.5rem}.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:1.6rem;margin-top:2rem}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}.slider{flex:1;min-width:240px;max-width:450px;font-weight:600}.slider output{font-variant-numeric:tabular-nums;color:var(--blue)}.check{display:flex;align-items:center;gap:.7rem;font-size:.9rem}.toy-layout,.plot-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:2rem}.errors p{font-size:.9rem;color:var(--muted)}dl{margin:1rem 0}dl div{padding:.65rem 0;border-bottom:1px solid var(--line)}dt{font-size:.9rem;color:var(--muted)}dd{margin:0;font-size:1.6rem;font-weight:650;font-variant-numeric:tabular-nums}.legend{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;font-size:.8rem}.exact{color:var(--exact)}.plain{color:var(--blue)}.rotated{color:var(--orange)}.weight-row{display:grid;grid-template-columns:55px 1fr;gap:.7rem;margin-bottom:1rem;font-size:.9rem}.bars{display:grid;gap:4px}.bar{display:flex;align-items:center;gap:8px;min-height:19px}.bar span:first-child{height:9px;border-radius:2px}.bar.exact span:first-child{background:var(--exact)}.bar.plain span:first-child{background:var(--blue)}.bar.rotated span:first-child{background:var(--orange)}.bar span:last-child{font:12px ui-monospace,monospace;white-space:nowrap}details{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem;font-size:.9rem}summary{cursor:pointer;font-weight:600;padding:.3rem 0}.table-scroll{overflow-x:auto;margin:1rem 0;max-width:100%}table{border-collapse:collapse;width:100%;font-size:.8rem;font-variant-numeric:tabular-nums}caption{text-align:left;color:var(--muted);padding:.5rem 0}th,td{padding:.7rem .65rem;border-bottom:1px solid var(--line);text-align:left}th{color:var(--muted);font-weight:600}td button{font-size:.8rem}#vectors td:not(:first-child){font:12px ui-monospace,monospace;white-space:nowrap}.filters label{display:grid;gap:.4rem;font-size:.85rem;flex:1;min-width:155px}.filters select{width:100%}#head-count{font-weight:600;font-size:.9rem}#plot{width:100%;height:auto;display:block;touch-action:pan-y}#plot text{fill:var(--muted);font-family:system-ui;font-size:13px}#plot .grid{stroke:var(--grid)}#plot .zero{stroke:var(--muted);stroke-dasharray:5 4}#plot .diagonal{stroke:var(--muted);opacity:.45;stroke-dasharray:2 4}#plot circle{cursor:pointer;fill:var(--blue);opacity:.5}#plot circle.hurt{fill:var(--orange);opacity:.8}#plot circle.selected{opacity:1;stroke:var(--text);stroke-width:2}#inspection{background:var(--bg);border-radius:8px;padding:1.2rem;align-self:start}#inspection p{font-size:.9rem}#inspection dd{font-size:1.1rem}#inspection .verdict{font-weight:650}.pagination{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.85rem}.closing{max-width:900px;border:0}footer{padding-top:1rem;padding-bottom:3rem;font-size:.8rem;color:var(--muted)}
@media(max-width:760px){header,main,footer{padding-left:1.1rem;padding-right:1.1rem}header{font-size:.75rem;align-items:flex-start}header button{font-size:.75rem}section{padding:2.5rem 0}.intro{padding-top:3rem}.stats{gap:1rem;grid-template-columns:1fr}.stats div{display:flex;justify-content:space-between;align-items:center;gap:1rem}.stats span{max-width:150px;text-align:right}.stats strong{font-size:1.7rem}.card{padding:1rem}.toy-layout,.plot-layout{grid-template-columns:1fr;gap:1.2rem}.controls{gap:1rem}.slider{max-width:none}.legend{gap:.3rem .8rem}.pagination{font-size:.75rem}.pagination button{font-size:.75rem}th,td{padding:.6rem .4rem}.filters label{min-width:125px}h1{font-size:2.7rem}.lede{font-size:1.15rem}#inspection{padding:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
