:root{color-scheme:light;--paper:#f2efe6;--panel:#fffdf7;--ink:#1e3031;--muted:#647373;--line:#d8ded7;--accent:#d85f3f;--accent2:#087e80;--blue:#286a91;--gold:#bd8b37;--shadow:0 14px 34px rgba(31,54,51,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink)}body{min-height:100vh}button,input{font:inherit}button{cursor:pointer}.topbar{height:62px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,253,247,.88)}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.12em;font-size:11px}.brand-mark{width:30px;height:30px;border:1.5px solid var(--accent);border-radius:50%;display:grid;place-items:center;color:var(--accent);font-family:Georgia,serif;font-size:18px}.top-meta{font-size:11px;color:var(--muted);letter-spacing:.13em;text-transform:uppercase}.layout{width:min(1600px,100%);margin:0 auto;padding:18px;display:grid;grid-template-columns:258px minmax(0,1fr) 226px;gap:16px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.controls{padding:18px 16px;position:sticky;top:14px}.eyebrow{font-size:9px;letter-spacing:.18em;text-transform:uppercase;color:var(--accent2);font-weight:800}.panel h2{font-family:Georgia,"Times New Roman",serif;font-size:21px;font-weight:500;margin:6px 0 16px}.control{margin:0 0 17px}.control-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:7px}.control label{font-size:12px;font-weight:650}.control output{font-size:11px;color:var(--accent2);font-variant-numeric:tabular-nums;font-weight:750}.control input[type=range]{width:100%;accent-color:var(--accent);height:4px}.range-ends{display:flex;justify-content:space-between;font-size:9px;color:#82908c;margin-top:1px}.control-note{font-size:10px;color:var(--muted);line-height:1.4;margin-top:5px}.actions{display:flex;gap:8px;margin-top:8px}.btn{border:1px solid #cbd5cf;background:#f8f7f0;color:var(--ink);border-radius:8px;padding:9px 10px;font-size:11px;font-weight:750;transition:background .15s,border-color .15s}.btn:hover{background:#edf2ec;border-color:#9aafa7}.btn.primary{background:var(--ink);border-color:var(--ink);color:white}.btn.primary:hover{background:#315253}.btn:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid rgba(216,95,63,.38);outline-offset:3px}.stage{min-width:0}.stage-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;padding:5px 3px 14px}.stage-head h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em;font-size:clamp(23px,2.5vw,34px);margin:5px 0 4px}.stage-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.stage-code{font-size:10px;color:var(--muted);letter-spacing:.14em;white-space:nowrap}.hero-strip{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.hero-chip{padding:6px 9px;border:1px solid var(--line);border-radius:99px;background:#faf9f3;font-size:10px;color:#526260}.hero-chip strong{color:var(--ink);font-variant-numeric:tabular-nums}.schematic-card{overflow:hidden}.schematic-top{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.schematic-top span:last-child{color:var(--accent2);font-weight:800}.schematic-wrap{height:250px;background:linear-gradient(135deg,#f8f6ee,#e8eee7);position:relative}.schematic-wrap canvas{width:100%;height:100%;display:block}.schematic-caption{position:absolute;bottom:10px;left:13px;right:13px;display:flex;justify-content:space-between;pointer-events:none;color:#62716d;font-size:9px;letter-spacing:.04em}.graphs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.graph-card{padding:12px 13px 8px;min-width:0}.graph-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:5px}.graph-title strong{font-family:Georgia,serif;font-size:15px;font-weight:500}.graph-title span{font-size:9px;color:var(--muted)}.graph-card canvas{width:100%;height:156px;display:block}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:9px;color:var(--muted);padding:2px 0 4px}.legend i{display:inline-block;width:15px;height:2px;vertical-align:middle;margin-right:4px}.readouts{padding:17px 14px;position:sticky;top:14px}.readouts h2{font-family:Georgia,serif;font-size:19px;font-weight:500;margin:6px 0 12px}.metric{padding:11px 0;border-bottom:1px solid var(--line)}.metric:last-of-type{border-bottom:0}.metric-name{font-size:10px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}.metric-value{font-family:Georgia,serif;font-size:25px;margin-top:3px;font-variant-numeric:tabular-nums}.metric-value small{font-family:Inter,system-ui,sans-serif;font-size:10px;color:var(--muted)}.metric-sub{font-size:9px;color:var(--muted);margin-top:2px}.state-pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:6px 9px;background:#e8f3ee;color:#176c55;font-size:10px;font-weight:800}.state-pill.warn{background:#fff0e6;color:#b64f2e}.state-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.science{margin-top:12px;padding:12px 14px}.science summary{font-size:11px;font-weight:800;cursor:pointer}.science-body{font-size:11px;line-height:1.55;color:#586864;padding-top:9px}.equation{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#264d4b;background:#f0f3ed;border-radius:6px;padding:6px 8px;margin:5px 0;font-size:10px;overflow-wrap:anywhere}.fineprint{font-size:9px;color:#87918c;margin-top:10px;line-height:1.5}.foot{font-size:9px;color:#87918c;padding:12px 3px 0}.embed-mode{height:100vh;height:100dvh;overflow:hidden}.embed-mode .topbar{display:none}.embed-mode .layout{height:100vh;height:100dvh;padding:10px;grid-template-rows:minmax(0,1fr);overflow:hidden}.embed-mode .controls,.embed-mode .readouts{overflow:auto;max-height:100%;}.embed-mode .stage{min-height:0;overflow:auto}.embed-mode .schematic-wrap{height:clamp(180px,32vh,280px)}.embed-mode .graphs{grid-template-columns:1fr 1fr}.embed-mode .graph-card canvas{height:120px}
@media(max-width:1100px){.layout{grid-template-columns:230px minmax(0,1fr)}.readouts{grid-column:1/-1;position:static;display:grid;grid-template-columns:repeat(3,1fr);gap:0 18px}.readouts h2,.readouts .eyebrow,.readouts .state-pill{grid-column:1/-1}.metric{padding:8px 0}.stage-head h1{font-size:28px}}
@media(max-width:720px){.topbar{height:52px;padding:0 14px}.top-meta{display:none}.layout{display:flex;flex-direction:column;padding:12px;gap:12px}.stage{order:0;width:100%}.controls{order:1;position:static;width:100%}.readouts{order:2;width:100%;display:block;position:static}.stage-head{align-items:flex-start}.stage-head h1{font-size:25px}.stage-code{display:none}.schematic-wrap{height:220px}.graphs{grid-template-columns:1fr}.graph-card canvas{height:145px}.controls{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}.controls>.eyebrow,.controls>h2,.controls>.actions,.controls>.control-note{grid-column:1/-1}.controls h2{margin-bottom:10px}.control{margin-bottom:12px}.readouts{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.readouts>.eyebrow,.readouts>h2,.readouts>.state-pill{grid-column:1/-1}}
@media(max-width:420px){.hero-chip{font-size:9px}.stage-head p{max-width:260px}.schematic-wrap{height:190px}.graphs{gap:9px}.controls{grid-template-columns:1fr 1fr;padding:14px}.control label{font-size:11px}.metric-value{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:720px){.embed-mode .layout{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(150px,30vh);gap:8px;padding:8px}.embed-mode .stage{order:0;overflow:auto;min-height:0}.embed-mode .controls{order:1;display:block;position:static;max-height:100%;overflow:auto;padding:10px 12px}.embed-mode .controls h2{font-size:16px;margin:3px 0 8px}.embed-mode .controls .control{display:inline-block;vertical-align:top;width:48%;margin:0 1% 7px 0}.embed-mode .controls .actions{margin-top:5px}.embed-mode .readouts{display:none}.embed-mode .schematic-wrap{height:clamp(160px,26vh,220px)}.embed-mode .graphs{grid-template-columns:1fr 1fr}.embed-mode .graph-card{padding:7px}.embed-mode .graph-card canvas{height:85px}.embed-mode .graph-title strong{font-size:12px}.embed-mode .stage-head{padding:2px 2px 7px}.embed-mode .stage-head h1{font-size:20px}.embed-mode .hero-strip{margin-bottom:6px}.embed-mode .hero-chip{padding:4px 7px}}
