:root{color-scheme:dark;--bg:#071319;--surface:#0d1c24;--surface-2:#10242c;--border:#29424a;--muted:#92a9ad;--text:#f0f7f5;--cyan:#68d7d2;--amber:#efbb7a;--green:#9bd5ad;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{min-width:320px}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{min-height:100svh;display:flex;flex-direction:column}.topbar{height:78px;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 clamp(18px,3.2vw,52px);background:#09171c;border-bottom:1px solid #213840}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-mark{display:grid;place-items:center;width:42px;height:42px;flex:none;border:1px solid #3b8183;border-radius:12px;color:#9ee8db;background:linear-gradient(145deg,#1a4145,#102429);box-shadow:0 0 28px #59c9c12a}.brand-mark .icon{width:24px;height:24px}.brand strong{display:block;letter-spacing:-.055em;font-size:21px;line-height:1.16}.brand-dot{color:var(--cyan)}.brand-subtitle{display:block;color:var(--muted);font-size:11px;letter-spacing:.04em;margin-top:3px}.header-actions{display:flex;align-items:center;gap:23px}.course-pill{color:#9fbbb9;white-space:nowrap;font-size:10px;letter-spacing:.13em;font-weight:750}.status-dot,.live-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#74d8af;box-shadow:0 0 12px #74d8af88}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:11px 16px;font-size:12px;font-weight:720;white-space:nowrap}.button-primary{background:#a6e5d9;color:#073135;box-shadow:0 5px 22px #2dd9bf22}.button-primary:hover{background:#c4f5e9}.button-primary:disabled{opacity:.45;cursor:wait}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 346px;flex:1;min-height:0}.stage{min-height:590px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 53% 51%,#1e3c43 0%,#0b2029 55%,#07171d 100%)}.three-stage,.three-stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.three-stage canvas{touch-action:none;cursor:grab}.three-stage canvas:active{cursor:grabbing}.stage:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(0deg,#051016ed 0%,transparent 30%,transparent 74%,#07161f9c 100%)}.stage-top,.stage-bottom,.stage-key{position:absolute;z-index:2;pointer-events:none}.stage-top{top:27px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow,.stage-mode,.stage-index,.overline,.section-number,.preview-caption,.scale-labels,.footer-note{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.eyebrow{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid #6bc5bf39;border-radius:6px;background:#102830c2;color:#b1dfd9;font-size:10px;letter-spacing:.1em}.stage-mode{color:#bacdcc;font-size:10px;letter-spacing:.13em}.stage-bottom{bottom:74px;left:clamp(24px,4vw,62px);right:32px;display:flex;justify-content:space-between;align-items:end;gap:18px}.stage-index{font-size:10px;font-weight:700;color:var(--cyan);letter-spacing:.14em}.stage-intro h1{font-size:clamp(30px,3.5vw,52px);margin:10px 0 10px;line-height:1.05;letter-spacing:-.055em;font-weight:760}.stage-intro h1 span{color:var(--cyan)}.stage-intro p{color:#c2d1d0;font-size:13px;line-height:1.6;margin:0;max-width:440px}.stage-hint{display:flex;align-items:center;gap:9px;color:#a9c0c0;font-size:10px;line-height:1.5;white-space:nowrap}.stage-hint .icon{color:var(--cyan);width:24px;height:24px}.stage-key{left:clamp(24px,4vw,62px);right:32px;bottom:24px;border-top:1px solid #94bab233;padding-top:14px;display:flex;gap:24px;align-items:center;color:#b1c9c7;font-size:11px;font-weight:650}.stage-key span{display:inline-flex;align-items:center;gap:8px}.key-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}.cyan{background:var(--cyan);box-shadow:0 0 12px #68d7d2a0}.amber{background:var(--amber);box-shadow:0 0 12px #efbb7a9a}.key-dash{display:inline-block;width:15px;border-top:1px dashed #abc9d3;flex:none}
.sidebar{background:#0b1a20;border-left:1px solid #294149;padding:27px 25px 28px;overflow-y:auto;min-height:0;scrollbar-color:#3b5960 transparent}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding-bottom:25px}.overline{display:block;color:#75b8ae;font-size:10px;letter-spacing:.16em;font-weight:700}.panel-heading h2{font-size:20px;letter-spacing:-.04em;margin:6px 0 0}.icon-button{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;border:1px solid #36505a;background:#142831;color:#bad5d2}.icon-button:hover{background:#214049;color:white}.control-section{border-top:1px solid #294149;padding:19px 0 21px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-head h3{font-size:13px;margin:0;font-weight:740}.section-number{color:#64818a;font-size:10px}.segmented{display:flex;gap:3px;padding:4px;background:#09161c;border:1px solid #29434a;border-radius:10px}.view-button{min-width:0;flex:1;border:0;background:none;color:#96afb1;font-weight:700;font-size:11px;border-radius:7px;padding:9px 2px}.view-button:hover{color:white}.view-button.active{background:#23474b;color:#bcf8eb;box-shadow:inset 0 0 0 1px #487d7c}.slider-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#b6cecd}.slider-label output{color:#a5eadc;font-size:16px;font-weight:760;letter-spacing:-.03em}input[type=range]{display:block;width:100%;height:5px;margin:20px 0 11px;appearance:none;border-radius:8px;background:linear-gradient(to right,var(--cyan) 30%,#2a4650 30%);cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:3px solid #d9fff3;background:#247478;border-radius:50%;box-shadow:0 0 0 4px #67d5c722}input[type=range]::-moz-range-thumb{width:11px;height:11px;border:3px solid #d9fff3;background:#247478;border-radius:50%;box-shadow:0 0 0 4px #67d5c722}.scale-labels{display:flex;justify-content:space-between;color:#79969b;font-size:10px}.help-copy{font-size:11px;line-height:1.6;color:#90a9aa;margin:15px 0 0}.toggle-row{display:flex;align-items:center;justify-content:space-between;position:relative;padding:9px 0;font-size:12px;color:#b8d0cd;cursor:pointer}.toggle-row>span:first-child{display:flex;align-items:center;gap:10px}.toggle-row .icon{width:15px;height:15px;color:var(--cyan)}.toggle-row input{position:absolute;opacity:0;width:1px;height:1px}.switch{width:32px;height:18px;position:relative;border-radius:20px;background:#3a5359;transition:background .18s}.switch:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;background:white;border-radius:50%;transition:transform .18s}.toggle-row input:checked+.switch{background:#438e88}.toggle-row input:checked+.switch:after{transform:translateX(14px)}.toggle-row input:focus-visible+.switch{outline:2px solid var(--cyan);outline-offset:2px}
.sensor-section{padding-bottom:18px}.preview-frame{border-radius:8px;overflow:hidden;border:1px solid #406670;position:relative;background:#091117;aspect-ratio:8/5}.preview-frame canvas{width:100%;height:100%;display:block;object-fit:cover}.preview-corner{position:absolute;top:9px;right:9px;border:1px solid #8fe1d277;border-radius:3px;background:#0b252bc9;color:#d5fff6;font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.08em;padding:5px 6px}.preview-caption{display:flex;justify-content:space-between;color:#84a8a6;letter-spacing:.03em;font-size:9px;margin-top:10px}.preview-caption .status-dot{width:6px;height:6px}.readout{margin-top:4px;padding:18px 16px 16px;border:1px solid #3f666b;border-radius:11px;background:linear-gradient(150deg,#143038,#102229)}.readout .overline{font-size:9px}.equation{color:#e0f3ec;text-align:center;font-family:Georgia,serif;font-style:italic;font-size:22px;margin:13px 0;border-bottom:1px solid #3c5d62;padding-bottom:15px}.readout-line{display:flex;justify-content:space-between;gap:8px;color:#abc5c2;font-size:11px;line-height:2.3}.readout-line strong{color:#d6f6ef;font-size:11px;font-variant-numeric:tabular-nums}.footer{min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px clamp(18px,3.2vw,52px);border-top:1px solid #213840;background:#09171c;color:#8ca6a5;font-size:11px}.footer-note{font-size:10px;color:#658682;white-space:nowrap}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 312px}.sidebar{padding-left:18px;padding-right:18px}.course-pill{display:none}.stage-hint{display:none}}
@media(max-width:800px){.workspace{display:block}.stage{height:57svh;min-height:430px;max-height:630px}.sidebar{border-left:0;border-top:1px solid #294149;display:grid;grid-template-columns:1fr 1fr;gap:0 24px;overflow:visible;padding:22px clamp(19px,4vw,40px)}.panel-heading,.readout{grid-column:1/-1}.panel-heading{padding-bottom:12px}.control-section{min-width:0}.sensor-section{grid-row:span 2}.readout{margin-top:4px}.stage-intro p{max-width:390px}}
@media(max-width:570px){.topbar{height:68px;min-height:68px;padding:0 16px}.brand-mark{height:37px;width:37px}.brand strong{font-size:17px}.brand-subtitle{font-size:10px}.header-actions{gap:5px}.button{padding:9px 10px;font-size:11px}.button .icon{width:16px}.stage{height:53svh;min-height:395px}.stage-top{left:18px;right:18px;top:17px}.eyebrow{font-size:9px;padding:7px 8px}.stage-mode{font-size:9px}.stage-bottom{left:20px;right:20px;bottom:69px}.stage-intro h1{font-size:33px}.stage-intro p{font-size:11px;max-width:295px}.stage-key{left:20px;right:20px;gap:14px;font-size:10px;bottom:20px}.sidebar{display:block;padding:19px 20px 28px}.panel-heading{padding-bottom:15px}.sensor-section{grid-row:auto}.footer{align-items:start;flex-direction:column;gap:5px;padding:13px 18px;line-height:1.5}.footer-note{font-size:9px}}
@media(max-width:380px){.brand-subtitle{display:none}.button span{display:none}.button{width:37px;height:37px}.stage-intro h1{font-size:30px}.stage-intro p{max-width:270px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Updated controls, explanatory sections, and accessible dialogs. */
.button-ghost{background:#14272e;border-color:#35505a;color:#e3f2ef}.button-ghost:hover{background:#203b43}.language-button{font-weight:800;min-width:45px}
.stage-key{flex-wrap:wrap}.stage-key [class^=axis-],.toggle-row .axis-x{width:13px;height:4px;display:inline-block;border:0;border-radius:3px;box-shadow:none}
.axis-x{background:#ff6a67}.axis-y{background:#68da8d}.axis-z{background:#6d9dff}
.stage-intro h1{max-width:590px}
.pose-label{display:block;font:700 10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.07em;color:#87b3b2;margin-top:7px;white-space:nowrap}
.panel-heading{gap:10px}.heading-text{min-width:0}.collapse-button{font-size:23px;line-height:1}
.sidebar-body{display:block}.workspace.controls-collapsed{grid-template-columns:minmax(0,1fr) 72px}
.sidebar.collapsed{padding:17px 12px}.sidebar.collapsed .sidebar-body,.sidebar.collapsed .heading-text{display:none}.sidebar.collapsed .panel-heading{padding:0;justify-content:center}
.second-slider{margin-top:21px}.second-slider+input[type=range]{margin-top:18px}
.move-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.move-grid button{min-width:0;min-height:37px;padding:6px 3px;background:#152d35;color:#d8ebea;border:1px solid #40606a;border-radius:8px;font-size:11px;font-weight:700}
.move-grid button:hover{border-color:#74cec5;background:#20424a}.move-grid .centre-button{background:#3d555b;color:#f7dcaa}
.keyboard-hint{text-align:center;margin-top:12px;font-size:10px}.restore-button{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;margin-top:20px;padding:11px;background:#5b4023;color:#f6dcaf;border:1px solid #b48442;border-radius:8px;font-size:11px;font-weight:750}.restore-button:hover{background:#74532f}
.preview-frame{aspect-ratio:16/9}.slider-label output{font-variant-numeric:tabular-nums}
.learning{padding:70px clamp(24px,5vw,85px) 64px;background:#090f14;border-top:1px solid #28434b}
.learning-heading h2,.modal-head h2{font-family:Georgia,serif;letter-spacing:-.025em;font-size:clamp(27px,2.4vw,38px);font-weight:600;line-height:1.12;margin:7px 0 30px}
.pipeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #294149;border-bottom:1px solid #294149;padding:18px 0 24px;gap:0}
.pipeline article{padding:0 18px;min-height:125px;border-left:1px solid #294149}.pipeline article:first-child{border-left:0;padding-left:0}.pipeline article>span{display:block;color:var(--amber);font:700 11px ui-monospace,monospace;margin:0 0 16px}
.pipeline h3{font-size:13px;margin:0 0 8px}.pipeline p,.tech-grid p{color:#9db6b7;line-height:1.58;font-size:11px;margin:0}
.technology h2{font-family:Georgia,serif;font-size:24px;letter-spacing:-.02em;margin:29px 0 20px}.tech-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.tech-grid article{padding:16px;border:1px solid #304750;background:#12212a;min-height:92px}.tech-grid strong{font:700 11px ui-monospace,monospace;color:#e4ba72}.tech-grid p{margin-top:8px}
.modal{width:min(1000px,calc(100vw - 32px));max-width:1000px;max-height:min(92svh,1100px);padding:0;background:#101c24;border:1px solid #46616d;border-radius:17px;color:#f4f8f8;box-shadow:0 30px 100px #0009;overflow:hidden}
.modal[open]{display:flex;flex-direction:column}.modal::backdrop{background:#03090cc9;backdrop-filter:blur(6px)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #36515d;padding:26px 30px 22px;flex:none}
.modal-head .overline{color:var(--amber)}.modal-head h2{margin:6px 0 0}.close-button{border-radius:50%;width:40px;height:40px;flex:none;font-size:26px;line-height:1}
.modal-content{padding:25px 30px 30px;overflow-y:auto;overscroll-behavior:contain}.info-content{display:flex;flex-direction:column;gap:12px}
.info-card{display:grid;grid-template-columns:65px 1fr;gap:12px;border:1px solid #36535e;border-radius:11px;background:#172831;padding:20px 22px}
.info-card>strong{font:800 17px ui-monospace,monospace;color:#67d4e7}.info-card h3{font-size:17px;margin:0 0 9px}.info-card p{font-size:13px;color:#b7c9ca;margin:0;line-height:1.6}
.modal-done{align-self:center;margin-top:8px;min-width:180px}
.format-toggle{display:flex;gap:9px;margin-bottom:13px}.format-toggle button{background:#111e26;border:1px solid #41616d;border-radius:100px;padding:8px 17px;color:#dceeed;font-size:12px;font-weight:720}.format-toggle button.active{background:#71d6e9;color:#09242d;border-color:#71d6e9}
.capture-frame{border-radius:9px;overflow:hidden;border:1px solid #46616a;background:#07151d;aspect-ratio:16/9}.capture-frame canvas{width:100%;height:100%;display:block}
.capture-note{background:#182d38;border-left:3px solid #67cee8;padding:12px 14px;color:#bed2d2;font-size:12px;line-height:1.55;margin:14px 0 19px}
.metadata{border:1px solid #36515b;border-radius:10px;background:#182830;padding:19px 21px}.metadata h3{font-size:11px;letter-spacing:.15em;color:#69d2ea;margin:6px 0 14px}
.metadata h3:not(:first-child){margin-top:22px}.metadata dl{display:grid;grid-template-columns:1fr auto;gap:8px 12px;margin:0;font-size:12px}.metadata dt{color:#bacbd0}.metadata dd{color:#f3f9f8;font-weight:700;text-align:right;margin:0;font-variant-numeric:tabular-nums}
.capture-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:18px}
@media(max-width:1100px){.pipeline{grid-template-columns:repeat(3,minmax(0,1fr))}.pipeline article:nth-child(4){border-left:0;padding-left:0}.tech-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.sidebar.collapsed{padding:13px 20px}.sidebar.collapsed .heading-text{display:block}.sidebar.collapsed .panel-heading{justify-content:space-between}.workspace.controls-collapsed{display:block}.pipeline{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}.pipeline article:nth-child(3),.pipeline article:nth-child(5){border-left:0;padding-left:0}.pipeline article:nth-child(4){border-left:1px solid #294149;padding-left:18px}.learning{padding:45px 27px}.header-actions{gap:8px}}
@media(max-width:570px){.topbar{gap:8px}.brand{gap:8px}.brand strong{font-size:15px}.brand-mark{width:32px;height:32px}.header-actions{gap:5px}.header-actions .button{padding:8px 7px;font-size:10px}.header-actions .button .icon{width:15px;height:15px}.header-actions .button-primary span{display:none}.header-actions .button-primary{width:35px;height:35px}.header-actions .language-button{min-width:33px}.stage-key{gap:9px;font-size:9px}.stage-key span{gap:4px}.stage-intro h1{font-size:31px}.pipeline{display:block}.pipeline article,.pipeline article:first-child,.pipeline article:nth-child(3),.pipeline article:nth-child(4),.pipeline article:nth-child(5){padding:15px 0;min-height:0;border-left:0;border-bottom:1px solid #294149}.pipeline article:last-child{border-bottom:0}.pipeline article>span{margin-bottom:5px}.tech-grid{display:block}.tech-grid article{margin-top:9px;min-height:0}.modal-head{padding:17px 18px}.modal-content{padding:17px}.modal-head h2{font-size:25px}.info-card{grid-template-columns:35px 1fr;padding:13px;gap:8px}.info-card h3{font-size:14px}.info-card p{font-size:11px}.metadata{padding:14px}.metadata dl{font-size:10px}.capture-actions .button{width:100%}}
@media(max-width:380px){.brand-mark{display:none}.brand{flex:1}.header-actions .button{width:35px;height:35px}.header-actions .button-ghost:not(.language-button) span{display:none}.capture-actions .button span{display:inline}.capture-actions .button{min-height:43px}}
