:root{--bg:#07101e;--panel:#0d1727;--panel2:#0c192a;--edge:#273449;--line:#25364b;--text:#e3f4f6;--sub:#8da5b6;--dim:#5f7a8b;--teal:#62e9de;--blue:#55b8e4;--gold:#f3c87b;--purple:#a88bff;--radius:12px;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}body{overflow-x:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--teal);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}#app{min-height:100svh;background:radial-gradient(ellipse at 51% 34%,#10253a 0%,#081423 39%,#07101e 80%)}.eyebrow,.mini-label{font-size:9px;letter-spacing:1.4px;font-weight:750;color:#88a7b9}.topbar{height:63px;border-bottom:1px solid #233549;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(5,12,25,.81)}.brand-mark,.top-links,.transport,.transport-main,.speed-group{display:flex;align-items:center;gap:12px}.brand-logo{font-size:24px;color:var(--teal);text-shadow:0 0 22px #5becf47c}.brand-name{font-size:11px;letter-spacing:2px;font-weight:800}.brand-name small{font-size:10px;color:#728d9e;font-weight:500;letter-spacing:1px}.tiny-badge{border:1px solid #24525c;background:#102b37;border-radius:20px;padding:8px 12px;letter-spacing:1px;font-size:9px;font-weight:800;color:#a4e9d7;display:flex;align-items:center;gap:8px}.live-dot{display:inline-block;width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#56e6be;box-shadow:0 0 0 3px #2bcbb024,0 0 12px #38f2c4}.seed{font-size:10px;letter-spacing:1px;color:#748d9d}.icon-btn{background:#172b40;border:1px solid #325269;border-radius:8px;width:29px;height:29px;color:#aee6e5;font-size:16px}.layout{display:grid;grid-template-columns:267px minmax(0,1fr) 288px;gap:0;max-width:1700px;margin:auto;min-height:calc(100svh - 91px)}.panel{background:linear-gradient(160deg,#101d2d,#0b1626 84%);min-width:0}.controls-panel{border-right:1px solid var(--line);padding:20px 16px 15px;display:flex;flex-direction:column;gap:19px}.metrics-panel{border-left:1px solid var(--line);padding:20px 14px;overflow-y:auto;max-height:calc(100svh - 92px)}.panel-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px}.menu-icon{color:#628193;font-size:18px}.left-intro h2{font-size:22px;font-weight:650;letter-spacing:-.9px;margin:0 0 7px}.left-intro p{margin:0;line-height:1.5;font-size:11px;color:#8fa8b7}.mini-label{display:block;margin:2px 0 11px}.presets{margin-top:-4px}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.preset{border:1px solid #2b4054;background:#111f31;min-height:62px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:5px 2px}.preset b{font-size:19px;line-height:1;color:#6e9aad}.preset span{font-size:9px;white-space:nowrap;color:#92a7b7}.preset.active{border-color:#46cabf;background:#113b44;box-shadow:0 0 14px #34d9d111 inset}.preset.active b,.preset.active span{color:#7de7dd}.slider-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:9px}.slider-head label{font-weight:570;font-size:11px;color:#c7d9e3}.slider-head output{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:750;color:#6ce9dc}.slide-group{padding:0 0 14px;border-bottom:1px solid #1b3040;margin-bottom:13px}.slide-group:last-child{border-bottom:0;margin-bottom:0}.slide-group input[type=range]{height:4px;appearance:none;display:block;width:100%;border-radius:8px;background:linear-gradient(90deg,#5be2d9 var(--pct),#23364a var(--pct));outline:0}.slide-group input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:#c3fff6;border-radius:50%;border:3px solid #30a9aa;box-shadow:0 0 0 2px #174754}.range-labels{display:flex;justify-content:space-between;font-size:9px;color:#566f81;margin-top:8px;font-family:ui-monospace,monospace}.left-foot{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid #1d3343;font-size:10px;color:#7cd6d1;line-height:1.45}.left-foot small{font-size:9px;letter-spacing:1px;color:#5e788c}.source-mark{font-size:20px}.viewer{min-width:0;display:flex;flex-direction:column;position:relative;background:radial-gradient(ellipse at 50% 39%,#102b40aa 0%,#091726 70%)}.viewer-head{display:flex;justify-content:space-between;align-items:flex-start;padding:22px 25px 0;position:relative;z-index:2;pointer-events:none}.viewer-head h1{font-size:clamp(23px,2.5vw,35px);letter-spacing:-1.5px;line-height:1.08;margin:8px 0 9px;font-weight:730}.viewer-head h1 em{font-style:normal;color:#68e2da}.viewer-head p{font-size:10px;letter-spacing:.1px;color:#9ab2c1;margin:0}.glow{color:#51bcbe}.viewer-pill{display:flex;align-items:center;gap:9px;border:1px solid #26626b55;background:#0b2934d6;padding:10px 11px;border-radius:9px;font-size:9px;font-weight:750;letter-spacing:1px;line-height:1.6;color:#a8dbdc;text-align:right;white-space:nowrap}.viewer-pill small{font-size:8px;letter-spacing:.8px;color:#517f92}.render-area{position:relative;flex:1;min-height:360px;max-height:calc(100svh - 269px);overflow:hidden;isolation:isolate}#sceneCanvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline:none}#sceneCanvas:active{cursor:grabbing}.scene-hint{position:absolute;z-index:1;pointer-events:none;font-size:9px;letter-spacing:.9px;font-weight:750;color:#7c9cab}.scene-hint.top{left:25px;top:13px}.scene-hint.bottom{left:25px;bottom:15px;color:#587b8d;font-size:8px}.hint-sep{color:#395c6d;margin:0 7px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.dot.cyan{background:#55eedb;box-shadow:0 0 9px #49e0d9}.dot.amber{background:#fbd28b;box-shadow:0 0 9px #d9c179}.scale{position:absolute;right:27px;bottom:42px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#87a9b8;font-size:9px;letter-spacing:.8px;pointer-events:none}.scale-line{display:block;width:64px;height:6px;border-bottom:2px solid #8db7bd;border-left:2px solid #8db7bd;border-right:2px solid #8db7bd}.scene-toolbar{display:flex;justify-content:space-between;gap:8px;position:absolute;left:24px;right:22px;bottom:42px;z-index:2;pointer-events:none}.toolbar-group{display:flex;gap:4px;pointer-events:auto}.view{height:31px;min-width:32px;border:1px solid #2a4d62;border-radius:6px;background:#0b1b2ccf;color:#a1baca;padding:0 8px;font-weight:800;font-size:13px}.view span{font-size:8px;letter-spacing:.7px;font-weight:800;margin-left:4px}.view.active,.view:hover{border-color:#4ac9cf;color:#a5ffff;background:#15434ddd}.transport{justify-content:space-between;min-height:74px;padding:12px 23px;border-top:1px solid #243949;border-bottom:1px solid #243949;background:#081525c9;z-index:2}.transport-main{gap:8px}.round-play{height:39px;width:39px;border:1px solid #5ae6dc;background:#2b9f9b;color:#fff;border-radius:50%;font-weight:900;font-size:17px}.step-btn{height:30px;width:31px;border:1px solid #2a4659;border-radius:7px;background:#132639;color:#a3bdcc;font-size:18px}.time{margin-left:10px}.time strong{display:block;font-size:20px;font-weight:650;letter-spacing:1px;font-family:ui-monospace,monospace}.time strong small{font-family:inherit;font-size:9px;color:#68899a;font-weight:500}.speed-group{gap:4px}.speed-group .eyebrow{margin-right:6px}.speed-group button{border:1px solid #254157;background:#142538;border-radius:5px;font-size:10px;padding:6px 9px;color:#a6b9c6}.speed-group button.active{background:#2c6372;color:#d7ffff;border-color:#4ed9d3}.state-heading{display:flex;gap:9px;align-items:center;margin:19px 0 12px;font-size:10px;letter-spacing:1.4px;font-weight:800;color:#b7d6d7}.fps{margin-left:auto;font-size:9px;color:#5f8c97;font-family:ui-monospace,monospace}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.metric{background:#122334;border:1px solid #283b4f;border-radius:9px;min-height:96px;padding:12px 10px}.metric.highlight{background:linear-gradient(130deg,#113c47,#102534);border-color:#2c6e73}.metric>span{display:block;color:#90b5c3;font-size:8px;font-weight:800;letter-spacing:.8px}.metric strong{display:block;margin:10px 0 7px;font-family:ui-monospace,Consolas,monospace;font-size:21px;letter-spacing:-1px;color:#eef9f7;white-space:nowrap}.metric.highlight strong{color:#6cf6e4}.metric strong small{font-size:10px;font-family:ui-sans-serif,system-ui;font-weight:600;color:#8dacbd;letter-spacing:0}.metric em{font-style:normal;font-size:8px;line-height:1.2;display:block;color:#627f91}.chart-card,.toggles,.validation{margin-top:15px;padding-top:14px;border-top:1px solid #23364a}.chart-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a9c3cc;font-size:10px;font-weight:800;letter-spacing:1px}.chart-sub{font-size:8px;color:#52798e;font-weight:600}.chart-card canvas{margin-top:12px;width:100%;height:90px;display:block}.chart-ticks{display:flex;justify-content:space-between;font-size:8px;color:#54788b;font-family:ui-monospace,monospace}.toggles label{display:flex;align-items:center;gap:9px;font-size:10px;color:#aac1cc;margin-top:12px;cursor:pointer}.toggles label span{flex:1}.toggles input{appearance:none;width:13px;height:13px;background:#112335;border:1px solid #436176;border-radius:3px;margin:0}.toggles input:checked{background:#5dded6;border-color:#5dded6;box-shadow:inset 0 0 0 3px #103741}.swatch{width:7px;height:7px;border-radius:50%;background:#6de4df;box-shadow:0 0 7px #5de0da}.swatch.cells{background:#f1d29e;box-shadow:0 0 7px #f1d29e}.swatch.trails{background:#74c8e5}.swatch.specks{background:#7d9aba}#quality{background:#113847;color:#6ee1dc;border:1px solid #317982;border-radius:5px;padding:5px 8px;font-size:9px;font-weight:800}.verified{font-size:8px;color:#77e6c0;letter-spacing:1px}.validation-row{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:9px;color:#7996a8}.validation-row b{font-family:ui-monospace,monospace;font-size:10px;color:#c3dcde}.validation-row:last-of-type b{color:#7bdfc7}.validation p{font-size:9px;line-height:1.5;color:#66869b;margin-bottom:4px}.metrics-panel details{margin-top:15px;border:1px solid #345c6e;border-radius:9px;background:#13283a}.metrics-panel summary{padding:13px 12px;cursor:pointer;font-size:11px;font-weight:750;letter-spacing:1px;color:#83d9d5;list-style:none}.metrics-panel summary::-webkit-details-marker{display:none}.metrics-panel summary span:first-child{font-size:16px;margin-right:7px}.metrics-panel summary .down{float:right;font-size:15px}.science-content{border-top:1px solid #345365;padding:13px 12px;color:#adc2cc;font-size:11px;line-height:1.62}.science-content h3{color:#d6f9f0;font-size:15px;margin:1px 0}.science-content h4{color:#83dddb;font-size:11px;margin:12px 0 5px}.science-content p{margin:6px 0}.science-content a{color:#84e4e6}.equation{background:#071e2e;border-radius:6px;padding:11px 8px;color:#aff4df;font-size:10px;font-family:ui-monospace,Consolas,monospace;white-space:normal;overflow-wrap:anywhere;line-height:1.7}.disclaimer{font-style:italic;color:#7290a5;border-top:1px solid #385067;padding-top:9px}.bottom-bar{height:28px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #233449;background:#06111f;padding:0 20px;color:#5d8190;font-size:8px;font-weight:700;letter-spacing:1px}
@media(min-height:840px) and (min-width:901px){.render-area{max-height:none}.viewer{min-height:calc(100svh - 91px)}}
@media(max-width:1150px) and (min-width:901px){.layout{grid-template-columns:232px minmax(0,1fr) 245px}.controls-panel{padding-inline:12px}.metrics-panel{padding-inline:10px}.viewer-head{padding-inline:15px}.scene-hint.top{left:15px}.scene-toolbar{left:12px;right:12px}.viewer-pill{display:none}.metric strong{font-size:19px}.preset span{font-size:8px}.view span{display:none}.speed-group .eyebrow{display:none}}
@media(max-width:900px){.topbar{height:59px;padding:0 14px}.tiny-badge{display:none}.layout{grid-template-columns:minmax(0,1fr);display:flex;flex-direction:column}.viewer{order:0;min-height:525px}.controls-panel{order:2;border-top:1px solid var(--line);border-right:0;padding:20px 15px;gap:16px}.metrics-panel{order:1;border-top:1px solid var(--line);border-left:0;max-height:none;overflow:visible;padding:19px 15px}.viewer-head{padding:19px 15px 0}.viewer-head h1{font-size:27px}.viewer-pill{display:none}.render-area{min-height:320px;max-height:none;flex:1}.transport{min-height:69px;padding:10px 14px}.scene-toolbar{left:12px;right:12px}.scene-hint.top{left:14px}.scene-hint.bottom{left:14px}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{min-height:92px}.metric strong{font-size:20px}.sliders{display:grid;grid-template-columns:1fr 1fr;column-gap:22px}.slide-group{margin-bottom:0}.bottom-bar{height:32px}.bottom-bar span:first-child,.bottom-bar span:last-child{display:none}.bottom-bar{justify-content:center}.left-foot{margin-top:0}.metrics-panel details{margin-bottom:12px}}
@media(max-width:600px){.brand-name small{display:none}.brand-name{font-size:10px;letter-spacing:1px}.seed{font-size:8px}.top-links{gap:8px}.viewer{min-height:514px}.viewer-head h1{font-size:26px;letter-spacing:-1px}.viewer-head p{font-size:9px;max-width:320px}.render-area{min-height:300px}.scene-hint.top{font-size:8px}.scene-hint.bottom{font-size:7px}.view{padding:0 6px}.view span{display:none}.scene-toolbar{bottom:39px}.scale{right:13px;bottom:82px}.transport{gap:10px}.time{margin-left:3px}.time strong{font-size:17px}.speed-group button{padding:6px}.speed-group .eyebrow{display:none}.metric-grid{grid-template-columns:1fr 1fr}.metric{min-height:91px}.metric strong{font-size:22px}.slide-group{padding-bottom:17px}.sliders{gap:7px 16px}.slider-head label{font-size:10px}.slider-head output{font-size:10px}.left-intro h2{font-size:20px}.bottom-bar{font-size:7px} }
body.embed .topbar,body.embed .bottom-bar,body.embed .controls-panel,body.embed .metrics-panel{display:none}body.embed #app,body.embed .layout,body.embed .viewer{height:100dvh;min-height:0}body.embed .viewer-head{padding-top:10px}body.embed .viewer-head h1{font-size:21px}body.embed .viewer-head p{display:none}body.embed .render-area{min-height:100px;max-height:none}body.embed .transport{min-height:56px;padding:8px 16px}body.embed .viewer-pill{display:none}
@media(min-width:901px){.controls-panel{height:calc(100svh - 91px);overflow-y:auto;overscroll-behavior:contain}.controls-panel::-webkit-scrollbar,.metrics-panel::-webkit-scrollbar{width:5px}.controls-panel::-webkit-scrollbar-thumb,.metrics-panel::-webkit-scrollbar-thumb{background:#2c5265;border-radius:5px}}

body.embed .layout{grid-template-columns:minmax(0,1fr)}
