:root{--paper:#FAF9F5;--ink:#1E293B;--muted:#62635f;--line:#d8d7ce;--q:#B5396B;--k:#3E6D8E;--v:#3F7A6B;--soft:#eeede7;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:18px/1.4 system-ui,-apple-system,sans-serif}main{max-width:1680px;margin:auto;padding:22px 28px}header{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px}header b{font-size:24px}header span{font-size:14px;color:var(--muted)}header a{margin-left:auto;color:var(--k);font-size:14px}button,input,a{font:inherit}button{border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit;padding:8px 12px;cursor:pointer}button:hover:not(:disabled){background:var(--soft)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--k);outline-offset:3px}button[aria-pressed=true]{border-color:var(--q);color:var(--q);background:#b5396b0b}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:16px 0}nav button{text-align:left;font-size:16px}.intro{display:grid;grid-template-columns:1fr 380px;gap:30px;margin:5px 0 15px}.eyebrow{text-transform:uppercase;font-size:12px;letter-spacing:1.3px;color:var(--q);margin:0 0 6px}h1{font:34px/1.15 Georgia,serif;margin:0}#setup{margin:0;font-size:16px;align-self:center}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:30px}.experiment{border:1px solid var(--line);border-radius:12px;padding:12px 16px 8px;display:flex;flex-direction:column;min-width:0}.scroll-scene{flex:1;display:flex;min-height:0}svg{width:100%;min-height:0;flex:1;display:block}svg text{font:22px system-ui,sans-serif;fill:var(--ink)}svg .small{font-size:17px;fill:var(--muted)}svg .tiny{font-size:14px;fill:var(--muted)}svg .bold{font-weight:650}svg .key{fill:var(--k)}svg .value{fill:var(--v)}svg .cue{fill:var(--q)}svg .large{font-size:27px;font-weight:650}aside{min-width:0}h2{font-size:20px;margin:0 0 7px}#challenge p{font-size:15px;color:var(--muted);margin:0 0 12px}#predictions{display:grid;grid-template-columns:1fr 1fr;gap:7px}#predictions button{font-size:16px}.primary{background:var(--ink);color:var(--paper);border-color:var(--ink);width:100%;margin-top:12px}.primary:hover:not(:disabled){background:#35445a}.primary:disabled{opacity:.6;cursor:default}#result{border-left:3px solid var(--v);padding:0 0 0 14px;margin-top:12px;font-size:16px}#result p{margin:0 0 8px}#result .verdict{font-size:20px;font-weight:650}#result .prediction-note{font-size:12px;color:var(--muted)}fieldset{padding:15px 0 0;margin:18px 0 14px;border:0;border-top:1px solid var(--line)}legend{font-size:12px;letter-spacing:.6px;color:var(--muted);padding-right:8px;text-transform:uppercase}label{display:flex;justify-content:space-between;font-size:16px}input[type=range]{width:100%;accent-color:var(--q);cursor:pointer;margin:8px 0 0}output{font-variant-numeric:tabular-nums;font-weight:600}.ends{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin-bottom:10px}.check{justify-content:flex-start;gap:8px;align-items:center;margin-top:12px}.check input{accent-color:var(--q);width:17px;height:17px}.actions{display:flex;gap:8px}.actions button{font-size:14px}.scope{font-size:12px;color:var(--muted);text-align:center;margin:10px 0 0}footer{border-top:1px solid var(--line);padding-top:12px;margin-top:18px;display:flex;justify-content:space-between;gap:20px;align-items:center}footer p{font-size:16px;margin:0;max-width:1160px}footer button{font-size:14px;white-space:nowrap}dialog{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;max-width:1000px;width:92vw;padding:25px;max-height:88vh;overflow:auto}dialog::backdrop{background:#1e293b66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}dialog p{font-size:16px}.math-formula{font:18px/1.8 ui-monospace,monospace;padding:15px;background:var(--soft);border-radius:8px}table{border-collapse:collapse;font-size:14px;width:100%}th,td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}[hidden]{display:none!important}.bar{transition:width .4s ease}.pulse{animation:pulse .6s ease-out}@keyframes pulse{from{opacity:.2}to{opacity:1}}
body.embed main{padding:12px 20px}body.embed header{padding-bottom:9px}body.embed nav{padding:10px 0}body.embed .intro{margin:4px 0 12px}body.embed .workbench{height:calc(100vh - 251px);min-height:430px}body.embed .experiment{padding-top:0}body.embed footer{margin-top:12px}body.embed #result{font-size:15px}body.embed fieldset{margin-top:12px;padding-top:10px}body.embed h1{font-size:31px}
@media(max-width:1100px){main{padding:16px}.workbench,.intro{grid-template-columns:minmax(0,1fr) 300px;gap:20px}header span{display:none}h1{font-size:29px}nav button{font-size:14px}.actions button{font-size:12px}.experiment{padding:8px}}
@media(max-width:760px){header{flex-wrap:wrap;gap:7px}header a{margin-left:0}nav{grid-template-columns:1fr 1fr}.intro,.workbench,body.embed .workbench{display:flex;flex-direction:column;height:auto;min-height:0}.intro{gap:12px}.scroll-scene{overflow:auto;display:block}svg{min-width:780px;height:318px}.experiment{display:block}.scope{text-align:left}.experiment::before{content:'Swipe to see all sources →';font-size:12px;color:var(--muted)}aside{margin-top:4px}footer{align-items:flex-start;flex-direction:column}footer p{font-size:15px}h1,body.embed h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.workbench{grid-template-rows:minmax(0,1fr);min-height:500px}.experiment{min-height:0}.scroll-scene{position:relative;flex:1 1 0}.scroll-scene svg{position:absolute;inset:0;width:100%;height:100%}body.embed .workbench{height:calc(100vh - 270px)}
@media(max-width:760px){.workbench,body.embed .workbench{min-height:0;height:auto}.scroll-scene{position:static}.scroll-scene svg{position:static;width:780px;height:318px}}
