:root{color-scheme:dark;--bg:#06111b;--panel:#0d1c25;--panel-2:#10242c;--line:#25404a;--line-soft:#1b343d;--text:#e4efeb;--muted:#829ea2;--dim:#56717b;--mint:#91dfc3;--teal:#46d1c5;--gold:#dfc98f;--purple:#a3a1dc;--paper:#d5e1d9;--sans:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:13px;line-height:1.45}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:2px solid var(--teal);outline-offset:3px}button{color:inherit}::-webkit-scrollbar{width:7px}::-webkit-scrollbar-thumb{background:#294d53;border:2px solid transparent;border-radius:20px}::-webkit-scrollbar-track{background:#0d2129}
.app-shell{min-height:100vh;display:flex;flex-direction:column;overflow:hidden}.topbar{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#091822;border-bottom:1px solid #254049;gap:20px}.brand{display:flex;align-items:center;gap:9px;font-family:var(--mono);font-size:11px;font-weight:800;letter-spacing:.12em;white-space:nowrap}.brandmark{display:grid;place-items:center;font-size:21px;color:#8edcc0;width:30px;height:30px;border:1px solid #5b9b8e;border-radius:8px;background:#112c2d;box-shadow:inset 0 0 15px #1d5550}.brandthin{color:#658a92;font-weight:600}.titlebar{display:flex;align-items:center;gap:15px;min-width:0}.section-eyebrow,.index-tag,.stage-overline{color:#86c9b7;font-family:var(--mono);letter-spacing:.13em;font-size:10px;font-weight:600}.titlebar strong{font-size:15px;letter-spacing:.015em;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{display:flex;align-items:center;gap:22px}.status-indicator{display:flex;align-items:center;gap:8px;color:#9fcebd;white-space:nowrap;font:600 10px var(--mono);letter-spacing:.12em}.status-indicator i,.pulse{width:6px;height:6px;display:inline-block;border-radius:50%;background:#6de2ad;box-shadow:0 0 0 4px #6de2ad17,0 0 10px #6de2ad8f}.minor-btn{border:1px solid #37525b;background:#122631;border-radius:6px;font:600 10px var(--mono);letter-spacing:.05em;padding:9px 12px}.minor-btn span{color:var(--mint);margin-left:7px}
.workspace{min-height:0;flex:1;display:grid;grid-template-columns:282px minmax(420px,1fr) 276px;grid-template-rows:minmax(0,1fr);height:calc(100vh - 90px);min-height:530px}.control-col{border-right:1px solid var(--line);background:linear-gradient(180deg,#10222b 0%,#0c1a24 100%);display:flex;flex-direction:column;min-height:0}.panel-top{height:51px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;padding:0 17px;border-bottom:1px solid var(--line-soft)}.fine-label{font:500 9px var(--mono);letter-spacing:.06em;color:#567b82}.control-inner{padding:19px 16px 22px;overflow:auto;flex:1}.label-2{color:#ceded7;font:700 11px var(--mono);letter-spacing:.05em;margin-bottom:12px}.presets{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.preset{border:1px solid #32505a;background:#122b35;font:700 9px var(--mono);color:#91a9a9;letter-spacing:.01em;padding:10px 3px;border-radius:6px;white-space:nowrap}.preset:hover{border-color:#69b8a4}.preset.selected{background:#234b46;border-color:#75bfa6;color:#b9efd7;box-shadow:inset 0 1px #b4e9c517}.small-hint{font-size:11px;color:#829da0;margin:12px 0 0}.divider-line{border-top:1px solid var(--line-soft);margin:18px 0}.param-count{font-size:9px;color:#70888e;float:right}.param{margin:0 0 17px}.param-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}.param-name{color:#b8ced0;font-size:11px;font-weight:600}.param-value{font:600 11px var(--mono);color:#9ce8d1}.param-note{font:400 9px var(--mono);color:#69888b;margin-top:5px;display:flex;justify-content:space-between}.param input{width:100%;margin:0;display:block;accent-color:#76cbb4;appearance:none;background:transparent;height:12px;cursor:pointer}.param input::-webkit-slider-runnable-track,#speed::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:linear-gradient(90deg,#82d3b9 0%,#41766f 45%,#25434b 100%)}.param input::-webkit-slider-thumb,#speed::-webkit-slider-thumb{appearance:none;margin-top:-5px;width:13px;height:13px;border-radius:50%;border:3px solid #b5edd9;background:#1f6257;box-shadow:0 0 0 2px #143c3b}.param input::-moz-range-track{background:#3a6462;height:4px}.param input::-moz-range-thumb{border:2px solid #b5edd9;background:#1f6257}.control-footnote{font-size:10px;color:#729299;line-height:1.6}.control-footnote span{color:#6bccad}.left-bottom{height:40px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:4px;padding:0 15px;border-top:1px solid var(--line);font:500 9px var(--mono);color:#6d9393}
.stage{position:relative;overflow:hidden;min-width:0;min-height:0;background:#091a23;isolation:isolate}.stage canvas#scene{position:absolute;display:block;inset:0;width:100%;height:100%;touch-action:none}.stage:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;box-shadow:inset 0 0 130px 30px #04101970;background:linear-gradient(180deg,#07131ec9 0%,#07172300 34%,#04121900 60%,#04111be8 100%)}.stage-head{position:absolute;z-index:2;top:24px;left:31px;right:24px;display:flex;align-items:start;justify-content:space-between;gap:14px;pointer-events:none}.stage-head h1{font-size:clamp(23px,2.4vw,34px);line-height:1.18;letter-spacing:-.055em;margin:11px 0 11px;font-weight:550;color:#e8f6e8}.stage-head h1 em{font-weight:350;font-style:normal;color:#8acdbf}.stage-head p{font-size:12px;color:#91aaa9;max-width:325px;margin:0;line-height:1.55}.scale-tag{text-align:right;font:700 10px var(--mono);color:#bdddd1;white-space:nowrap;line-height:1.4;border-top:1px solid #7ab5a6;padding-top:9px}.scale-cross{color:#a4d6c6;margin-right:4px}.scale-sub{font-size:8px;color:#6b9090;font-weight:400;letter-spacing:.05em}.stage-left-rail{position:absolute;z-index:2;left:17px;top:44%;transform:rotate(-90deg) translateX(-50%);transform-origin:left center;display:flex;align-items:center;gap:16px;font:500 8px var(--mono);letter-spacing:.12em;color:#5b8688;white-space:nowrap;pointer-events:none}.stage-left-rail i{width:22px;height:1px;background:#397578}.stage-right-rail{position:absolute;z-index:2;right:18px;top:44%;display:flex;gap:8px;align-items:center;writing-mode:vertical-rl;font:500 9px var(--mono);letter-spacing:.1em;color:#719e9f;pointer-events:none}.stage-right-rail #renderer-pill{color:#9fdacb}.scene-caption{position:absolute;z-index:2;left:31px;bottom:100px;font:600 10px var(--mono);letter-spacing:.11em;display:flex;align-items:center;gap:9px;color:#b2d9cd;pointer-events:none}.eyedot{width:7px;height:7px;background:#9ddeaa;border-radius:50%;box-shadow:0 0 11px #8cebbb}.caption-sep{color:#598b91}.stage-controls{position:absolute;z-index:3;left:20px;right:20px;bottom:38px;min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #37615e96;border-radius:10px;padding:6px 9px;background:#102933e3;backdrop-filter:blur(14px);box-shadow:0 12px 30px #0006}.playback-controls,.view-controls{display:flex;align-items:center;gap:7px}.play-button{border:1px solid #81d3b7;background:#9ce1bf;color:#0c3534;width:34px;height:34px;border-radius:6px;font-size:16px;font-weight:800}.icon-button{background:#1a353e;border:1px solid #35505a;color:#bcdbd2;width:32px;height:32px;border-radius:6px;font-size:21px;line-height:1}.icon-button:hover,.view-chip:hover{background:#24494e}.control-small-label{font:600 9px var(--mono);color:#789fa2;display:flex;flex-direction:column;margin-left:9px;white-space:nowrap}.control-small-label span{color:#c5ded6;margin-top:1px}.playback-controls #speed{width:64px;appearance:none;background:transparent;accent-color:#a1e3cf}.playback-controls #speed::-webkit-slider-thumb{width:10px;height:10px;margin-top:-4px}.view-chip{background:transparent;color:#78999d;border:1px solid transparent;border-radius:5px;padding:9px 7px;font:700 9px var(--mono)}.view-chip.selected{background:#31534e;color:#c2efdc;border-color:#467e72}.stage-bottom-label{position:absolute;z-index:2;left:24px;bottom:12px;right:24px;text-align:center;color:#557f80;letter-spacing:.12em;font:500 8px var(--mono);pointer-events:none}.stage-bottom-label span{padding:0 9px;color:#4e7777}
.data-col{min-height:0;overflow:auto;background:#101f27;border-left:1px solid var(--line)}.data-top{display:flex;align-items:flex-end;justify-content:space-between;gap:5px;border-bottom:1px solid var(--line-soft);padding:14px 15px 12px}.data-top h2{font-size:15px;font-weight:580;margin:5px 0 0;letter-spacing:-.02em}.live-caption{display:flex;align-items:center;gap:7px;font:600 8px var(--mono);color:#7aaf9a;letter-spacing:.05em;margin-bottom:2px}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--line)}.metric{padding:12px 11px 11px;min-height:99px;border-right:1px solid #274149;border-bottom:1px solid #274149;overflow:hidden}.metric:nth-child(2n){border-right:none}.metric:nth-last-child(-n+2){border-bottom:none}.metric>span{font:600 8px var(--mono);color:#7e9f9d;letter-spacing:.055em;white-space:nowrap}.metric>span b{font-size:7px}.metric strong{font-size:clamp(21px,2.3vw,28px);letter-spacing:-.045em;display:block;color:#d5f4e5;font-weight:620;margin-top:8px;line-height:1.05;white-space:nowrap}.metric:nth-child(2) strong,.metric:nth-child(4) strong{color:#d7d2a8}.metric strong span{font-size:11px;font-weight:500;letter-spacing:0;color:#9dbbb4;margin-left:3px}.metric small{display:block;font:500 8px var(--mono);letter-spacing:.01em;color:#62878b;margin-top:7px;white-space:nowrap}.chart-panel{padding:14px 13px 11px;border-bottom:1px solid var(--line)}.chart-title,.render-title{display:flex;align-items:center;justify-content:space-between;gap:6px}.chart-title span,.render-title>span{font:700 10px var(--mono);color:#bfdbd2;letter-spacing:.03em}.chart-title small{font:500 8px var(--mono);color:#6b8e92}#plot{display:block;width:100%;height:103px;margin-top:9px}.chart-legend{display:flex;justify-content:space-between;gap:5px;margin-top:1px;font:600 9px var(--mono);color:#a5b9b3}.chart-legend span:before{content:'';display:inline-block;margin-right:6px;width:9px;height:2px;vertical-align:middle}.legend-air:before{background:#67e2b6}.legend-tissue:before{background:#77aede}.legend-elater:before{background:#e5c67e}.validation{padding:14px 13px 13px;border-bottom:1px solid var(--line);background:#142a31}.validation-head{display:flex;justify-content:space-between;gap:5px;font:700 9px var(--mono);color:#d5e0ce}.verify-mark{color:#83d6ba;font-size:8px}.validation-rows{margin-top:10px;border-top:1px solid #31525a;padding-top:5px}.validation-rows div{display:flex;justify-content:space-between;gap:4px;padding:4px 0;font-size:10px;color:#94b7b2}.validation-rows b{font:600 10px var(--mono);color:#d6eee3;white-space:nowrap}.validation-rows .difference{margin-top:5px;border-top:1px dashed #31585a;padding-top:8px}.validation-rows .difference b{color:#83e4ba}.validation p{font:500 8px/1.55 var(--mono);color:#709392;margin:6px 0 0}.render-options{padding:13px;border-bottom:1px solid var(--line)}.quality-switch{display:flex;background:#0a1d25;border:1px solid #315056;padding:2px;border-radius:6px}.quality-switch button{border:0;background:none;font:700 8px var(--mono);color:#719293;padding:5px 7px;border-radius:4px}.quality-switch button.selected{background:#2e5654;color:#c8f1df}.switch-list{display:grid;grid-template-columns:1fr 1fr;gap:9px 5px;margin-top:12px}.switch-list label{font-size:10px;color:#9fbdb7;display:flex;align-items:center;gap:5px;white-space:nowrap}.switch-list label:last-child{grid-column:1/-1}.switch-list input{accent-color:#86d5b9;width:13px;height:13px;margin:0}.science-open{margin:12px 13px 17px;width:calc(100% - 26px);display:flex;align-items:center;justify-content:space-between;text-align:left;background:linear-gradient(125deg,#183e3b,#193039);border:1px solid #49756d;border-radius:9px;padding:12px 13px}.science-open b{font:700 11px var(--mono);color:#c9f0d7}.science-open small{display:block;font:500 8px var(--mono);color:#81a29e;margin-top:5px}.science-chevron{font-size:24px;color:#b2e9d0}.bottom-note{min-height:26px;display:flex;justify-content:space-between;align-items:center;padding:4px 16px;gap:10px;background:#06131b;border-top:1px solid #254048;font:500 9px var(--mono);color:#789298}.bottom-note span{color:#64858b}.bottom-note i{font-style:normal;color:#4a686d}
.science-backdrop{position:fixed;inset:0;background:#020d13b3;backdrop-filter:blur(4px);z-index:19}.science-panel{z-index:20;position:fixed;right:0;top:0;bottom:0;width:min(510px,100vw);border-left:1px solid #5a877b;background:#0c1f28;box-shadow:-20px 0 65px #0009;display:flex;flex-direction:column;animation:slideIn .22s ease}.hidden{display:none!important}@keyframes slideIn{from{transform:translateX(25px);opacity:0}to{transform:translateX(0);opacity:1}}.science-header{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid #2a4a4d}.science-header h2{font-size:29px;letter-spacing:-.045em;margin:4px 0 0}.science-header button{background:#15363c;border:1px solid #42766b;width:35px;height:35px;border-radius:50%;font-size:22px;color:#c3e5d8}.science-scroll{overflow-y:auto;padding:23px 26px 46px;font-size:13px;line-height:1.7;color:#a6c2ba}.science-hero{font-size:23px;color:#d3eee0;line-height:1.25;font-weight:400;letter-spacing:-.03em;margin-bottom:21px}.science-scroll strong{color:#b5dcc8}.science-scroll h3{font-size:15px;color:#d0f1d9;margin:26px 0 7px;letter-spacing:-.02em}.science-scroll a{color:#9be8cd}.equation{border-left:2px solid #81d4b6;background:#17343a;padding:14px 17px;margin:16px 0;color:#dbf0e5;font:500 14px/1.65 var(--mono);overflow:auto;white-space:nowrap}.equation.small-eq{font-size:11px}.science-table{display:grid;border:1px solid #2e5155;border-radius:7px;overflow:hidden}.science-table div{display:flex;justify-content:space-between;align-items:center;padding:10px;gap:12px;border-bottom:1px solid #2c4d52;font-size:11px}.science-table div:last-child{border-bottom:0}.science-table b{font:600 9px var(--mono);color:#81c5ae;text-align:right}.license-text{border-top:1px solid #2d4f50;padding-top:20px;margin-top:28px;font-size:11px;color:#719b95}
@media(min-width:1500px){.workspace{grid-template-columns:315px minmax(520px,1fr) 314px}.control-inner{padding-left:23px;padding-right:23px}.metric{min-height:107px}.metric strong{font-size:29px}.data-col{font-size:14px}}
@media(max-width:1100px) and (min-width:761px){.workspace{grid-template-columns:245px minmax(390px,1fr) 252px}.control-inner{padding:14px 12px}.metric{padding:11px 7px}.metric>span{font-size:8px}.metric small{font-size:7px}.view-chip{font-size:8px;padding:8px 4px}.stage-head{left:22px}.status-indicator{display:none}.brandthin{display:none}}
@media(max-width:760px){.topbar{height:57px;padding:0 13px;gap:7px}.brand{font-size:10px}.brandthin{display:none}.brandmark{width:26px;height:26px;font-size:18px}.titlebar{gap:5px}.section-eyebrow{display:none}.titlebar strong{font-size:12px;font-weight:500}.top-actions{gap:6px}.status-indicator{display:none}.minor-btn{padding:8px 6px;font-size:8px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0}.stage{order:0;height:min(66vh,470px);min-height:375px;flex:none;border-bottom:1px solid var(--line)}.control-col{order:2;overflow:visible;border-right:0;border-top:1px solid var(--line)}.control-inner{overflow:visible;padding:19px 17px}.panel-top{height:44px}.left-bottom{display:flex}.data-col{order:1;overflow:visible;border-left:0}.stage-head{left:18px;right:15px;top:20px}.stage-head h1{font-size:25px}.stage-head p{font-size:10px;max-width:200px}.scale-tag{font-size:9px}.scale-sub{font-size:7px}.stage-left-rail,.stage-right-rail{display:none}.stage-controls{left:10px;right:10px;bottom:32px;flex-wrap:wrap;gap:3px;padding:5px}.view-controls{gap:2px}.playback-controls{gap:3px}.view-chip{font-size:8px;padding:9px 5px}.playback-controls #speed{width:46px}.control-small-label{margin-left:3px}.icon-button{height:29px;width:29px}.play-button{height:30px;width:30px}.stage-bottom-label{bottom:10px;font-size:7px;letter-spacing:.02em}.scene-caption{left:15px;bottom:90px}.data-top{padding:15px}.metric-grid{grid-template-columns:repeat(3,1fr)}.metric{min-height:93px;border-right:1px solid var(--line-soft);padding:13px 10px}.metric:nth-child(2n){border-right:1px solid var(--line-soft)}.metric:nth-child(3n){border-right:0}.metric:nth-last-child(-n+3){border-bottom:0}.metric>span{font-size:8px}.metric strong{font-size:23px}.metric small{font-size:7px}.chart-panel{padding:17px 15px}.validation{padding:15px}.render-options{padding:15px}.switch-list{grid-template-columns:repeat(3,1fr)}.switch-list label{font-size:9px;white-space:normal}.switch-list label:last-child{grid-column:auto}.science-open{max-width:none}.bottom-note{min-height:47px;line-height:1.5;padding:10px 13px}.bottom-note span{display:none}.param{margin-bottom:20px}.param input{height:18px}.presets{max-width:450px}}
@media(max-width:410px){.titlebar strong{max-width:104px}.stage-head h1{font-size:23px}.metric{padding:10px 7px}.metric strong{font-size:21px}.metric>span{font-size:7px}.metric small{font-size:6.5px}.stage-controls{gap:2px}.view-chip{font-size:7px;padding:8px 4px}.scale-tag{font-size:8px}}
body.embed .topbar,body.embed .control-col,body.embed .data-col,body.embed .bottom-note{display:none!important}body.embed .workspace{display:block;height:100vh;min-height:0}body.embed .stage{width:100vw;height:100vh;min-height:0}body.embed .stage-head{top:16px}body.embed .stage-head h1{font-size:clamp(20px,3vw,29px)}body.embed .stage-head p{display:none}body.embed .stage-bottom-label{display:none}body.embed .stage-controls{bottom:15px;left:15px;right:15px}body.embed .scene-caption{bottom:83px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition:none!important}}
/* Lock the desktop instrument to the requested 1280×720 viewport; independently scroll long sidebars. */
@media(min-width:761px){.app-shell{height:100vh;min-height:0}.workspace{height:auto;min-height:0;flex:1 1 0;overflow:hidden}}
@media(max-width:760px){.app-shell{height:auto;min-height:100vh;overflow:visible}.workspace{overflow:visible}}
