:root{color-scheme:dark;--bg:#0b1116;--panel:#111a20;--panel-2:#152129;--line:#26343c;--muted:#8fa0a8;--text:#e8f0f1;--soft:#b9c7cb;--accent:#76e3d0;--accent-dim:rgba(118,227,208,.13);--radius:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{overflow-x:hidden}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:78px;flex:0 0 78px;display:grid;grid-template-columns:230px minmax(300px,1fr) auto;align-items:center;gap:24px;padding:0 28px;border-bottom:1px solid var(--line);background:#0d151b}.brand-lockup{display:flex;align-items:center;gap:11px}.brand-mark{width:27px;height:27px;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:5px;border:1px solid rgba(118,227,208,.42);border-radius:9px;transform:rotate(45deg)}.brand-mark span{display:block;width:3px;border-radius:3px;background:var(--accent);transform:rotate(-45deg)}.brand-mark span:nth-child(1){height:7px}.brand-mark span:nth-child(2){height:13px}.brand-mark span:nth-child(3){height:9px}.brand-name{font-size:11px;letter-spacing:.14em;font-weight:800}.brand-name span{color:var(--accent);font-weight:650}.brand-sub,.eyebrow{font-size:8px;letter-spacing:.18em;color:var(--muted);margin-top:4px}.top-title{min-width:0}.top-title h1{font-size:16px;line-height:1.2;margin:4px 0 0;font-weight:650;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eyebrow{margin:0;color:var(--accent);font-weight:700}.top-actions{display:flex;align-items:center;gap:10px}.quality-button,.science-jump{border:1px solid var(--line);background:#121d24;color:var(--soft);border-radius:8px;padding:10px 12px;font-size:9px;letter-spacing:.1em;font-weight:800;cursor:pointer}.quality-button{color:var(--accent);border-color:rgba(118,227,208,.28)}.science-jump span{color:var(--accent);margin-left:5px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:0}.stage-panel{min-width:0;min-height:0;display:flex;flex-direction:column;padding:18px 20px 14px 24px;border-right:1px solid var(--line);background:radial-gradient(ellipse at 52% 44%,#17242a 0%,#10191f 52%,#0d151a 100%)}.stage-topline,.stage-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto}.stage-topline{height:20px;margin-bottom:10px}.stage-label,.stage-note,.stage-footer{font-size:9px;letter-spacing:.13em;color:var(--muted);font-weight:750}.stage-label{color:#c8d4d6;display:flex;align-items:center;gap:8px}.stage-label i{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px rgba(118,227,208,.7)}.stage-note{font-size:8px}.canvas-wrap{position:relative;flex:1;min-height:240px;overflow:hidden;border:1px solid rgba(143,160,168,.17);border-radius:15px;background:radial-gradient(ellipse at 50% 48%,#18272d,#10191f 67%,#0c1419);box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 16px 50px rgba(0,0,0,.18)}#scene{display:block;width:100%;height:100%;touch-action:pan-y}.canvas-chip{position:absolute;top:14px;padding:7px 9px;border:1px solid rgba(143,160,168,.2);border-radius:7px;background:rgba(11,17,22,.78);backdrop-filter:blur(8px);font-size:8px;letter-spacing:.13em;color:#b9c8ca;font-weight:750}.chip-left{left:14px;display:flex;align-items:center;gap:7px}.chip-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent)}.chip-right{right:14px;color:var(--accent)}.scale-mark{position:absolute;left:17px;bottom:42px;display:flex;flex-direction:column;gap:3px;font-size:9px;color:#d0dbdc}.scale-mark span{height:2px;width:45px;background:var(--accent)}.scale-mark small{font-size:7px;letter-spacing:.12em;color:var(--muted)}.dish-caption{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);width:min(78%,560px);padding:8px 12px;text-align:center;border-radius:8px;background:rgba(8,14,18,.78);border:1px solid rgba(143,160,168,.16);font-size:10px;line-height:1.4;color:#c7d3d5;backdrop-filter:blur(8px)}.stage-footer{height:32px;padding-top:9px;font-size:8px;letter-spacing:.08em}.stage-footer>span{display:flex;align-items:center;gap:6px;white-space:nowrap}.legend-ring{width:12px;height:3px;border-radius:3px;background:var(--accent)}.legend-front{width:12px;border-top:1px dashed #a5b8bc}.footer-model{margin-left:auto;color:#687a82;font-size:7px}.control-panel{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 18px 22px;background:#0e171d;scrollbar-width:thin;scrollbar-color:#34444b transparent}.readout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.readout-card{min-width:0;padding:10px 9px 9px;background:linear-gradient(150deg,#17242b,#111b21);border:1px solid #293840;border-radius:10px}.readout-label{display:block;font-size:7px;letter-spacing:.11em;color:#9bacb1;font-weight:800;white-space:nowrap}.readout-label em{font-style:normal;color:#6d8e8c;font-size:6px;margin-left:2px}.readout-card strong{display:block;margin-top:7px;font-size:20px;letter-spacing:-.04em;font-weight:650;white-space:nowrap}.readout-card strong small{font-size:10px;color:#aab9bd;letter-spacing:0;font-weight:550}.readout-foot{display:block;margin-top:2px;color:#7d8e95;font-size:7px}.transport-row{display:grid;grid-template-columns:1.15fr 1fr .8fr;gap:7px;margin:11px 0 17px}.transport-row button{height:35px;border-radius:8px;font-size:8px;letter-spacing:.1em;font-weight:850;cursor:pointer}.primary-button{border:1px solid var(--accent);background:var(--accent);color:#0b1718}.play-icon{font-size:10px;margin-right:5px}.square-button{border:1px solid #34434a;background:#172229;color:#c7d2d5}.reset-button{color:#9baab0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.section-heading>span{font-size:9px;font-weight:850;letter-spacing:.13em;color:#dce6e7}.section-heading small{font-size:7px;letter-spacing:.08em;color:#73858d}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preset-button{min-height:49px;text-align:left;padding:8px 9px;border:1px solid #2b3b42;border-radius:9px;background:#131f25;color:#d9e3e4;cursor:pointer}.preset-button b{display:block;font-size:9px;font-weight:750}.preset-button span{display:block;margin-top:4px;font-size:7px;color:#84969c}.preset-button.active{border-color:rgba(118,227,208,.65);background:linear-gradient(135deg,rgba(118,227,208,.13),rgba(118,227,208,.04));box-shadow:inset 0 0 0 1px rgba(118,227,208,.08)}.preset-button.active b{color:var(--accent)}.failure-preset.active{border-color:rgba(118,227,208,.65)}.failure-preset.active b{color:var(--accent)}.controls-section{margin-top:18px}.control-item{margin:13px 0 14px}.control-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.control-head label{font-size:9px;color:#cbd7d9;font-weight:650}.control-head output{font-size:9px;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{appearance:none;width:100%;height:16px;margin:5px 0 0;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(90deg,var(--accent) var(--range-progress,0%),#40545a var(--range-progress,0%))}input[type=range]::-moz-range-track{height:3px;border-radius:4px;background:#40545a}input[type=range]::-moz-range-progress{height:3px;background:var(--accent)}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;margin-top:-4.5px;background:var(--accent);border:2px solid #0e171d;box-shadow:0 0 0 1px var(--accent)}input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid #0e171d;box-shadow:0 0 0 1px var(--accent)}input[type=range]:focus-visible{outline:1px solid var(--accent);outline-offset:4px;border-radius:4px}.range-ends{display:flex;justify-content:space-between;font-size:7px;color:#70838a;margin-top:0}.last-control{margin-bottom:0}.experiment-card{margin-top:18px;padding:12px;border:1px solid #2b3b42;border-radius:11px;background:linear-gradient(145deg,#17252b,#121d23)}.experiment-head{display:flex;justify-content:space-between;align-items:center}.section-kicker{font-size:7px;color:var(--accent);letter-spacing:.16em;font-weight:850}.experiment-head h2{font-size:12px;margin:4px 0 0;font-weight:700}.experiment-icon{font-size:24px;color:var(--accent);opacity:.8}.experiment-card p{font-size:8px;line-height:1.5;color:#9eafb4;margin:8px 0}.experiment-button{height:31px;width:100%;display:flex;justify-content:space-between;align-items:center;padding:0 10px;border:1px solid rgba(118,227,208,.5);border-radius:7px;background:rgba(118,227,208,.08);color:var(--accent);font-size:8px;letter-spacing:.12em;font-weight:850;cursor:pointer}.experiment-result{font-size:8px;line-height:1.45;color:#aebdc0;margin-top:9px;min-height:24px}.checks-section{margin-top:18px}.check-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:7px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(38,52,60,.75)}.check-mark{width:15px;height:15px;display:grid;place-items:center;border-radius:50%;background:rgba(118,227,208,.12);color:var(--accent);font-size:9px}.check-row b{display:block;font-size:8px;color:#d4dfe0}.check-row small{display:block;margin-top:3px;font-size:7px;color:#7e9198}.check-row strong{font-size:7px;letter-spacing:.04em;color:var(--accent);white-space:nowrap}.science-panel{margin-top:17px;border:1px solid #2b3b42;border-radius:10px;background:#121e24}.science-panel summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;cursor:pointer;font-size:9px;font-weight:850;letter-spacing:.12em}.science-panel summary::-webkit-details-marker{display:none}.science-panel summary:after{content:"＋";color:var(--accent);font-size:13px;margin-left:auto}.science-panel[open] summary:after{content:"−"}.summary-hint{font-size:7px;color:#788b92;letter-spacing:.08em;font-weight:600}.science-content{padding:0 12px 13px;border-top:1px solid #293940}.science-content h3{font-size:9px;margin:12px 0 5px;color:#dce6e7}.science-content p{font-size:8px;line-height:1.55;color:#9fb0b5;margin:0 0 8px}.science-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#b9e9df;font-size:7px;white-space:normal}.not-affiliated{padding-top:6px;border-top:1px solid #2a3a40;color:#7d9096!important}.panel-foot{font-size:6px;line-height:1.5;letter-spacing:.09em;color:#65777e;margin-top:12px;text-align:center}.embed-mode .topbar{display:none}.embed-mode .app-shell{height:100vh;height:100dvh;min-height:0}.embed-mode .workspace{height:100vh;height:100dvh;flex:1;min-height:0}.embed-mode .stage-panel{padding-top:13px}.embed-mode .control-panel{padding-top:13px}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:1050px){.topbar{grid-template-columns:190px minmax(200px,1fr) auto;padding:0 18px;gap:14px}.workspace{grid-template-columns:minmax(0,1fr) 350px}.stage-panel{padding-left:16px;padding-right:14px}.control-panel{padding-left:14px;padding-right:14px}.readout-card strong{font-size:18px}}@media(max-width:760px){.topbar{height:68px;flex-basis:68px;grid-template-columns:1fr auto;padding:0 14px}.brand-lockup{display:none}.top-title h1{font-size:13px}.top-actions{gap:6px}.quality-button,.science-jump{padding:8px 9px;font-size:8px}.workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100vh - 68px)}.stage-panel{height:44vh;min-height:280px;max-height:480px;flex:0 0 44vh;padding:10px 10px 7px;border-right:0;border-bottom:1px solid var(--line)}.stage-topline{height:15px;margin-bottom:6px}.stage-label{font-size:8px}.stage-note{font-size:7px}.canvas-wrap{min-height:0;border-radius:11px}.stage-footer{height:23px;padding-top:6px;font-size:7px;gap:8px}.footer-model{display:none}.control-panel{flex:1;min-height:0;overflow:visible;padding:13px 12px 22px}.readout-card{padding:8px 7px}.readout-label{font-size:6px}.readout-card strong{font-size:18px}.readout-foot{font-size:6px}.transport-row{margin:9px 0 14px}.preset-button{min-height:44px}.controls-section{margin-top:15px}.experiment-card{margin-top:15px}.checks-section{margin-top:15px}.dish-caption{font-size:8px;bottom:9px}.scale-mark{bottom:33px}.chip-left,.chip-right{top:9px;padding:6px 7px;font-size:7px}.embed-mode .workspace{height:100dvh;min-height:0}.embed-mode .stage-panel{height:41dvh;min-height:220px;max-height:none;flex-basis:41dvh;padding:9px 9px 6px}.embed-mode .control-panel{overflow-y:auto;flex:1;padding:10px 11px 18px}.embed-mode .stage-footer{height:20px}.embed-mode .readout-card strong{font-size:17px}}@media(max-width:390px){.topbar{padding:0 10px}.top-title h1{font-size:12px}.science-jump{font-size:7px;padding:8px 7px}.quality-button{font-size:7px;padding:8px 7px}.stage-note{letter-spacing:.06em}.readout-card strong{font-size:16px}.readout-label{letter-spacing:.06em}.control-head label{font-size:8px}.control-head output{font-size:8px}.range-ends{font-size:6px}}
/* Fixed viewport composition keeps the stage and its scrollable controls inside the exhibit frame. */
.app-shell{height:100vh;height:100dvh;min-height:0;overflow:hidden}
@media(max-width:760px){
  .workspace{height:calc(100vh - 68px);height:calc(100dvh - 68px);min-height:0;flex:1}
  .control-panel{overflow-y:auto}
  .stage-footer>.footer-model{display:none}
}
