:root{color-scheme:dark;--bg:#071520;--panel:#0b2030;--panel2:#102839;--line:#274656;--muted:#83a3b5;--text:#e9f3f4;--cyan:#73e8ec;--gold:#f2be75;--violet:#bea6ee;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}a{color:var(--cyan)}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible,summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}::selection{background:#347989;color:#fff}.glow-halo{pointer-events:none;position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse 56vw 46vw at 30% -5%,rgba(43,117,134,.22),transparent 70%),radial-gradient(ellipse 28vw 35vw at 99% 46%,rgba(98,74,112,.12),transparent 70%)}.main-shell,.masthead{max-width:1720px;margin:auto;padding-left:clamp(15px,3.3vw,58px);padding-right:clamp(15px,3.3vw,58px)}.masthead{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1d3644}.brand{display:flex;align-items:center;gap:18px}.brand-logo{height:53px;width:53px;border:2px solid #567884;border-radius:50%;position:relative;box-shadow:0 0 24px #1e647261;transform:rotate(-23deg)}.brand-logo span{position:absolute;inset:7px;border:2px solid #73cdd0;border-radius:50%;transform:rotateX(67deg) rotate(33deg)}.brand-logo span:nth-child(2){transform:rotateY(66deg) rotate(42deg)}.brand-logo span:nth-child(3){inset:20px;background:#ffe1aa;border:0;box-shadow:0 0 15px #d4a05a}.micro-label,.eyebrow,.status,.version,.tag,.chart-number{letter-spacing:.12em;font-size:10px;font-weight:750;text-transform:uppercase;color:#78bbc3}.sep{color:#5e7785;margin:0 6px}.brand h1{font-size:30px;letter-spacing:.20em;font-weight:650;line-height:1.1;margin:4px 0}.brand h1 span:first-child{color:#86dfe0}.brand h1 .mark{font-size:9px;vertical-align:top;letter-spacing:0;margin-left:3px}.brand p{font-size:12px;letter-spacing:.075em;color:#a2bac6;margin:0}.header-right{text-align:right;display:flex;flex-direction:column;gap:9px}.status{color:#b4d8cb}.status-dot,.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#77efc5;box-shadow:0 0 9px #53d9b7;margin-right:8px}.version{color:#6d8c9b;font-size:9px}.intro{min-height:240px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:38px 0 29px}.intro .eyebrow{color:var(--gold)}.intro h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(29px,3.4vw,48px);letter-spacing:-.035em;line-height:1.1;margin:12px 0}.intro h2 em{color:var(--cyan);font-weight:400}.intro p{color:#a3bfca;font-size:13px;max-width:610px;line-height:1.65;margin:0}.intro-notation{min-width:310px;background:linear-gradient(115deg,#123040aa,#0a1a28cc);border:1px solid #305766;padding:20px 25px;border-radius:3px 30px 3px 30px;text-align:center}.intro-notation>span{font-size:10px;letter-spacing:.18em;font-weight:700;color:#8cb7c3}.intro-notation>div{font-family:Georgia,serif;font-size:39px;margin:12px 0 6px;color:var(--cyan);display:flex;align-items:center;justify-content:center;gap:17px}.intro-notation strong{font-weight:400;color:#799aaa}.fraction{display:inline-flex;flex-direction:column;font-size:22px;line-height:1.1}.fraction i{font-style:italic;display:block;padding:4px 8px}.fraction i:first-child{border-bottom:1px solid #799ead}.intro-notation small{color:#85a2ae;font-size:11px}.mode-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:3px 0 18px}.mode-tab{background:#0e2534;border:1px solid #274452;border-radius:10px;min-height:83px;text-align:left;padding:13px 12px;color:inherit;transition:background .16s,border .16s,transform .16s}.mode-tab:hover{background:#143446}.mode-tab.active{background:#15414b;border-color:#6bbbc0;box-shadow:inset 0 -3px #71ced2}.mode-tab .mode-index{font-size:9px;letter-spacing:.14em;color:#a4c0c6;display:block;margin-bottom:8px}.mode-tab strong{font-size:12px;letter-spacing:.015em;font-weight:650}.lab-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(282px,325px);gap:18px}.lab-main{min-width:0}.scene-panel,.sidebar,.chart-panel,.workbench,.manual{background:linear-gradient(145deg,#112b3b,#0b1d2d);border:1px solid #2a4856;border-radius:var(--radius);box-shadow:0 10px 44px #020c1460}.scene-top{padding:19px 21px 14px;display:flex;justify-content:space-between;gap:12px}.scene-top h3{font-size:17px;letter-spacing:.08em;font-weight:650;margin:7px 0 0}.scene-tags{display:flex;align-items:flex-start;gap:7px}.tag{color:#90b1bc;border:1px solid #426171;border-radius:4px;padding:6px 8px;font-size:9px;white-space:nowrap}.stage{height:clamp(365px,37vw,588px);position:relative;overflow:hidden;background:radial-gradient(ellipse at 60% 45%,#153b4b 0,#0b192b 60%,#081522 100%)}#scene{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.stage-vignette{pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 100px 30px #051321aa}.stage-left,.stage-right,.stage-readout{position:absolute;pointer-events:none;z-index:1}.stage-left{top:19px;left:21px;font-size:10px;letter-spacing:.11em;color:#9ab5c1}.stage-left strong{display:block;margin-top:10px;color:#eef8f8;font-size:11px}.beam{display:inline-block;width:7px;height:7px;border-radius:50%}.beam.cyan{background:#4ef0ff}.beam.orange{background:#ffb76d}.stage-right{bottom:20px;left:21px;letter-spacing:.08em;font-size:10px;color:#9bb4c0}.stage-readout{top:19px;right:21px;max-width:210px;text-align:right;padding:10px 13px;background:#061824ba;border:1px solid #49616e;border-radius:9px;white-space:pre-line;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;color:#bce7ea;line-height:1.8}kbd{font-size:10px;color:#f5d9a6}.scene-toolbar{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 17px;border-top:1px solid #284653}.transport,.button-strip{display:flex;gap:8px;flex-wrap:wrap}button{border:1px solid #3b5b67;background:#162f3d;color:#dbe8ed;border-radius:7px;padding:9px 12px;font-weight:600;font-size:12px;transition:background .15s,transform .15s}button:hover{background:#245064}button:active{transform:translateY(1px)}button.accent-button{background:#237079;color:#e3ffff;border-color:#55b7bc}button.accent-button:hover{background:#308d98}.toolbar-speed{color:#8cacb9;font-size:11px;display:flex;align-items:center;gap:7px}.toolbar-speed select{padding:7px;border:1px solid #476676;border-radius:5px;background:#102837;color:#e0eff4}.lab-caption{font-size:10px;color:#8babb9;margin:0;padding:0 19px 15px;line-height:1.5}.lab-caption .live-dot{width:5px;height:5px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.stat{border:1px solid #2b4b59;background:#102838;border-radius:10px;padding:17px 13px;min-width:0}.stat>span{font-size:9px;letter-spacing:.115em;color:#9bbbc4;font-weight:650;display:block;min-height:22px}.stat strong{display:block;color:#d2f9ef;font-size:clamp(17px,1.8vw,25px);font-family:ui-monospace,Consolas,monospace;font-weight:550;margin:8px 0}.stat small{font-size:10px;color:#7e9da9}.sidebar{min-width:0;display:flex;flex-direction:column}.panel-title{padding:23px 21px 15px;border-bottom:1px solid #284754}.panel-title span{letter-spacing:.14em;color:var(--cyan);font-size:10px;font-weight:700}.panel-title h3{font-size:24px;font-weight:580;margin:10px 0 7px}.panel-title p{font-size:12px;color:#8caab9;line-height:1.5;margin:0}.control-list{padding:13px 20px 4px;flex:1}.control{padding:12px 0;border-bottom:1px solid #274452}.control-header{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:12px}.control-header label{font-size:12px;font-weight:600;color:#d4e5eb}.control .value{font:600 12px ui-monospace,Consolas,monospace;color:var(--gold)}.control input[type=range]{width:100%;accent-color:#78d4d2;height:5px;cursor:pointer}.range-bounds{font-size:10px;color:#698c9d;display:flex;justify-content:space-between;margin-top:7px}.control select{width:100%;background:#112e40;border:1px solid #496875;color:#dff1f2;padding:10px;border-radius:6px}.control small{font-size:10px;line-height:1.5;color:#7194a1;display:block;margin-top:8px}.sidebar-bottom{padding:14px 20px 20px}.scalebar>span{font-size:9px;letter-spacing:.14em;color:#7fb4be;font-weight:700}.dualbar{height:12px;background:#213b4c;border-radius:7px;margin:12px 0 6px;display:flex;overflow:hidden}.dualbar span:first-child{background:linear-gradient(90deg,#318b9e,#79e4ec)}.dualbar span:last-child{background:linear-gradient(90deg,#e9ad65,#e9cda0)}.balance-label{display:flex;justify-content:space-between;color:#9eb6c0;font-size:11px;font-family:ui-monospace,monospace}.sidebar-note{font-size:10px;color:#7796a5;line-height:1.65;margin:20px 0 0}.charts-section,.workbench-grid,.manual{margin-top:34px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:15px}.section-heading .eyebrow{color:#6abec6}.section-heading h2,.manual h2{font-size:26px;letter-spacing:-.02em;font-weight:550;margin:9px 0 4px}.section-heading p,.manual summary p{font-size:12px;color:#8eafba;line-height:1.5;margin:0}.small-indicator{font-size:10px;font-weight:750;letter-spacing:.1em;color:#a9c7c1}.chart-grid,.workbench-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.chart-panel{padding:21px 19px 14px;min-width:0}.chart-caption{display:flex;align-items:center;gap:13px}.chart-number{color:#e0b780}.chart-caption h3{font-weight:600;margin:0;font-size:15px}canvas[id^=chart]{height:245px;width:100%;display:block;cursor:crosshair}.workbench{padding:24px;min-width:0}.section-heading.compact h2{font-size:23px}.button-strip{margin:21px 0}.notebook{max-height:265px;overflow:auto}.empty{font-size:12px;color:#81a4b2;padding:20px 0}.note-row{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:13px;border-top:1px solid #294655;padding:13px 3px}.note-row .note-number{font-size:10px;color:var(--gold);font-family:ui-monospace,monospace}.note-row strong{font-size:12px}.note-row small{display:block;color:#8da9b5;font-size:10px;line-height:1.5;margin-top:4px}.note-row button{padding:5px 9px}.challenge-filter{display:flex;gap:5px;flex-wrap:wrap;margin:22px 0 15px}.challenge-filter button{padding:8px 11px;font-size:11px}.challenge-filter button.selected{background:#2a7881;border-color:#6ac3c7}.challenge-list{display:flex;flex-wrap:wrap;gap:7px}.challenge-list button{font-size:11px;border-radius:5px;padding:8px 10px}.challenge-list button.active{border-color:#ffcb87;color:#ffe4c0}.challenge-list button.passed{color:#9dffcb;border-color:#2c946c}.question{border:1px solid #37606e;background:#102a3a;border-radius:10px;padding:15px;margin-top:17px}.question>span{color:var(--gold);font-size:9px;letter-spacing:.12em}.question h3{font-size:16px;margin:10px 0}.question p{font-size:12px;color:#b2cbd2;line-height:1.6}.question label{display:block;color:#a9c8d2;font-size:11px;margin:12px 0 8px}.answer-row{display:flex;gap:7px;flex-wrap:wrap}.answer-row input{min-width:90px;flex:1;background:#061b29;border:1px solid #40606f;border-radius:6px;color:#ecfaff;padding:9px 11px;font-size:13px}.answer-row button{padding:9px 10px}.question #questionFeedback{min-height:18px;margin-bottom:0}.question .correct{color:#a2eac1}.question .incorrect{color:#ffc6a1}.manual{padding:0 25px 26px}.manual summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:25px 0;list-style:none}.manual summary::-webkit-details-marker{display:none}.open-chevron{font-size:28px;color:var(--cyan)}.manual[open] .open-chevron{transform:rotate(180deg)}.manual-grid{columns:2;column-gap:38px;padding-top:12px;border-top:1px solid #254450}.manual-grid section{break-inside:avoid;margin:0 0 25px}.manual h3{font-size:15px;color:#b7e7e4;font-weight:650;margin:0 0 10px}.manual p{font-size:12px;line-height:1.85;color:#a6c0ca;margin:0 0 11px}.manual strong{color:#dfedee}footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:34px 0 45px;color:#718f9d;font-size:10px;letter-spacing:.075em}footer strong{color:#c3e6e6}@media(max-width:1160px){.lab-layout{grid-template-columns:minmax(0,1fr) 290px}.mode-tab{padding:10px 8px}.mode-tab strong{font-size:11px}.scene-tags .tag:first-child{display:none}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:890px){.intro-notation{display:none}.lab-layout{grid-template-columns:1fr}.sidebar{display:block}.control-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:25px}.sidebar-bottom{padding-top:24px}.mode-bar{grid-template-columns:repeat(3,1fr)}.stage{height:460px}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.manual-grid{columns:1}}@media(max-width:620px){.masthead{height:93px}.brand-logo{height:41px;width:41px}.brand h1{font-size:22px}.brand p{font-size:10px}.header-right{display:none}.intro{min-height:auto;padding:25px 0}.intro h2{font-size:32px}.intro p{font-size:12px}.mode-bar{grid-template-columns:repeat(2,1fr)}.mode-tab{min-height:61px;padding:9px}.mode-tab .mode-index{margin-bottom:5px}.scene-top{padding:13px 12px}.scene-top h3{font-size:14px}.scene-tags .tag{font-size:8px}.stage{height:360px}.stage-readout{font-size:8px;right:8px;top:12px;padding:6px}.stage-left{font-size:8px;left:10px;top:12px}.stage-right{left:10px;font-size:9px}.scene-toolbar{flex-wrap:wrap;padding:10px}.scene-toolbar button{padding:8px;font-size:11px}.lab-caption{padding:0 12px 13px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat strong{font-size:19px}.control-list{grid-template-columns:1fr}.chart-grid,.workbench-grid{grid-template-columns:1fr}canvas[id^=chart]{height:240px}.workbench{padding:17px}.manual{padding:0 16px 20px}.manual h2,.section-heading h2{font-size:22px}footer{display:block}footer span{display:block;margin-bottom:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
