:root{--accent:#9bc9d8;--ink:#e9f0f5;--muted:#9db0c1;--line:#2b4056;--panel:#17283b;--deep:#0b1828;--gold:#f7d18d;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:radial-gradient(circle at 26% -10%,#29425c 0,#0c1726 36%,#08121f 92%);font:14px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;min-height:100vh}button,input{font:inherit}button{cursor:pointer;transition:background-color .2s,transform .2s,border-color .2s}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button:hover{transform:translateY(-1px)}header,main,footer{max-width:1520px;margin:auto;padding-left:clamp(18px,4vw,62px);padding-right:clamp(18px,4vw,62px)}header{padding-top:28px;padding-bottom:27px;border-bottom:1px solid #ffffff15;display:flex;justify-content:space-between;align-items:center;gap:22px}header a{color:#dce8ef;text-decoration:none;font-weight:750;letter-spacing:.13em;font-size:12px}header .topright{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.dot{height:7px;width:7px;background:#95dabd;border-radius:50%;box-shadow:0 0 12px #95dabd}main{padding-top:38px;padding-bottom:60px}.eyebrow{display:flex;align-items:center;gap:12px;color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.22em;font-weight:800}.eyebrow:before{content:'';height:1px;width:26px;background:var(--accent)}h1{font-size:clamp(32px,4vw,56px);font-weight:760;letter-spacing:-.055em;line-height:1.12;max-width:850px;margin:14px 0 12px}h2{font-size:20px;margin:0 0 5px;letter-spacing:-.025em;line-height:1.3}h3{font-size:14px;margin:0;letter-spacing:.01em}p{margin:0}#subtitle{font-size:17px;color:#d7dce1;max-width:690px;margin:0 0 13px}#description{font-size:14px;color:var(--muted);max-width:920px;margin:0 0 28px}.workspace{display:grid;grid-template-columns:minmax(0,1.66fr) minmax(320px,.95fr);gap:19px;align-items:start}.left,.right{min-width:0}.visual{position:relative;background:radial-gradient(circle at 50% 43%,#162c45,#091626 75%);border:1px solid #39506a;border-radius:17px;overflow:hidden;min-height:510px;box-shadow:0 32px 70px #0004}.visual:fullscreen{border:0;border-radius:0;width:100vw;height:100vh}.visual:fullscreen canvas{height:100%}.visual canvas{display:block;width:100%;height:510px;cursor:grab;touch-action:none;outline:none}.visual canvas.grabbed{cursor:ew-resize}.viewport-top{z-index:2;position:absolute;left:20px;right:20px;top:17px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.viewport-top>div{pointer-events:auto}.viewport-title{font-size:10px;letter-spacing:.16em;color:#a6c1d7;font-weight:800;background:#0b1a2acc;padding:9px 13px;border-radius:6px;border:1px solid #39516c}.viewport-title span{color:var(--accent)}.toolbar{display:flex;gap:7px}.iconbtn{color:#d7e8f2;background:#102338d9;border:1px solid #4a627b;border-radius:7px;height:36px;padding:0 12px;font-size:12px;backdrop-filter:blur(8px)}.iconbtn:hover{background:#26425d}.viewport-bottom{position:absolute;left:18px;bottom:18px;right:18px;display:flex;justify-content:space-between;gap:12px;align-items:flex-end;pointer-events:none}.viewport-bottom>div{border:1px solid #37506b;color:#c9dce8;background:#0c1b2edf;border-radius:6px;padding:8px 10px;font-size:11px;letter-spacing:.035em;pointer-events:auto}.viewport-bottom strong{color:#f5d19a}.alert{position:absolute;top:80px;left:20px;right:20px;background:#793c43e8;color:#fff;border-radius:6px;padding:13px}.viewnote{margin:14px 2px 18px;display:flex;gap:8px;color:#92aabc;font-size:12px}.viewnote:before{content:'✣';color:var(--gold)}.panel{background:linear-gradient(158deg,#182b3e,#112235 80%);border:1px solid var(--line);border-radius:14px;padding:23px;margin-bottom:18px;box-shadow:0 11px 29px #0002}.panel-header{display:flex;justify-content:space-between;align-items:start;gap:14px;margin-bottom:20px}.kicker{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:var(--accent);font-weight:800;margin-bottom:5px}.smallpill{border:1px solid #395066;border-radius:6px;padding:6px 8px;font-size:10px;white-space:nowrap;color:#a7bece}.parameter{margin-bottom:20px}.parameter-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:8px}.parameter label{font-weight:630;font-size:12px;color:#d4e0e9}.parameter output{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px;color:#fff}.parameter output small{font-family:inherit;font-size:10px;color:var(--muted)}input[type=range]{width:100%;appearance:none;background:#314558;height:5px;border-radius:8px;display:block;cursor:pointer;margin:6px 0}input[type=range]::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border-radius:50%;background:var(--accent);border:3px solid #d5e5e8;box-shadow:0 0 0 3px #3a4e62}input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--accent);border:3px solid #d5e5e8}.slider-limits{display:flex;justify-content:space-between;margin-top:8px;color:#728ca0;font-size:10px}.controls-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.primarybtn,.secondarybtn{border-radius:7px;padding:10px 12px;font-size:12px;font-weight:750;border:1px solid #51687e;background:#253c51;color:#ecf4fa}.primarybtn{background:var(--accent);border-color:var(--accent);color:#112135}.secondarybtn:hover{background:#38576f}.results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.reading{min-height:110px;background:#0d1e30;border:1px solid #263f56;border-radius:9px;padding:15px 13px;display:flex;flex-direction:column;justify-content:center;min-width:0}.reading.primary{background:linear-gradient(140deg,#1e3a4e,#122739);border-color:#577b85}.reading span{color:#a0b5c5;font-size:10px;line-height:1.4;min-height:29px}.reading strong{color:#f0f5f8;font-size:clamp(17px,2vw,24px);line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.045em;overflow-wrap:anywhere}.reading.primary strong{color:var(--gold)}.reading small{color:#96aabd;font-size:10px;margin-top:5px}#chart{display:block;width:100%;height:180px;cursor:crosshair;touch-action:none}.graph-note{font-size:11px;color:#90a8b9}.lesson{background:#142436;border:1px solid #2f465d;border-radius:12px;padding:20px;margin-top:8px}.formula{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px;overflow-wrap:anywhere;color:#f1d29f;background:#0a1b2d;padding:16px;border:1px solid #2a4359;border-radius:7px;margin:13px 0}.lesson p{color:#adc0cd;font-size:13px}.challenge{margin-top:24px;background:linear-gradient(120deg,#213344,#192739);border:1px solid #3b5569;border-radius:16px;padding:clamp(19px,2.5vw,31px)}.challenge .panel-header{margin-bottom:16px}.challenge-actions{display:flex;flex-wrap:wrap;gap:9px}.exercise-top{display:flex;align-items:center;gap:10px;margin-bottom:15px;color:#a8c6d6;font-size:11px}.exercise-type{padding:4px 8px;border:1px solid #476072;border-radius:5px;color:var(--accent)}.progress-track{height:5px;background:#30475b;border-radius:10px;margin:0 0 22px;overflow:hidden}.progress-fill{height:100%;width:0;background:var(--accent);transition:width .3s}.question-title{font-size:16px;line-height:1.5;font-weight:650;max-width:800px;margin-bottom:17px}.challenge-setup{display:flex;flex-wrap:wrap;gap:9px 16px;margin-bottom:13px;color:#b4c8d8;font-size:12px}.challenge-setup span{border-bottom:1px solid #3a5064;padding-bottom:3px}.challenge-setup b{color:#ecf2f5}#numeric-answer{background:#0b1c2e;border:1px solid #526d7f;color:#ecf4fa;border-radius:6px;padding:12px 15px;max-width:320px;width:100%;margin-bottom:10px}.choice-grid{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 13px}.choice{border:1px solid #587084;border-radius:7px;background:#233a4e;color:#d6e4ee;padding:10px 16px}.choice.active{background:#456d7c;color:white;border-color:#d0e4e6}.quiz-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.feedback{font-size:12px;min-height:27px;color:#e8c49d;margin:12px 0;max-width:840px}.feedback.passed{color:#9be2ba}.feedback.error{color:#f4c8a1}#hint-text{font-size:12px;color:#d6cb9c;margin-top:10px}#score{font-size:13px;color:var(--gold);font-weight:750}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start;margin-top:24px}.bottom-grid .panel{margin-bottom:0}.docline{color:var(--muted);font-size:12px;margin:7px 0}.mono{font-family:ui-monospace,monospace;font-size:10px;color:#9caec1;word-break:break-word}footer{padding-top:20px;padding-bottom:40px;border-top:1px solid #1e3447;color:#748fa3;font-size:11px;display:flex;justify-content:space-between;gap:12px}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr)}.right{display:grid;grid-template-columns:1fr 1fr;gap:18px}.right .panel{margin-bottom:0}.right .panel:first-child{grid-row:span 2}.visual,.visual canvas{min-height:480px;height:480px}}@media(max-width:700px){header{padding-top:17px;padding-bottom:17px}main{padding-top:24px}h1{font-size:35px}.right{display:block}.right .panel{margin-bottom:16px}.visual,.visual canvas{min-height:360px;height:360px}.viewport-top{left:9px;right:9px;top:9px}.viewport-bottom{left:8px;right:8px;bottom:10px}.viewport-bottom>div{font-size:9px;padding:6px}.viewport-title{font-size:9px;padding:7px}.toolbar{gap:5px}.iconbtn{height:32px;padding:0 8px;font-size:10px}.bottom-grid{grid-template-columns:1fr}.results{gap:7px}.reading{padding:10px 7px;min-height:98px}.reading span{font-size:9px}.reading strong{font-size:17px}.panel{padding:17px}.challenge{margin-top:20px}.challenge-actions{margin-top:8px}.topright .dot{display:none}footer{flex-direction:column}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
