:root{--bg:#060a12;--ink:#f6f4ec;--muted:#a2acbc;--dim:#667b8d;--line:rgba(201,222,246,.13);--line-bright:rgba(201,222,246,.22);--amber:#f7c897;--amber-bright:#fbe3bd;--blue:#82dbfa;--glass:rgba(8,17,31,.70);--glass-strong:rgba(8,17,31,.88);color-scheme:dark;}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#050911;color:var(--ink);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}button:disabled{opacity:.48;cursor:not-allowed}#app{width:100%;height:100%;min-height:420px;position:relative;overflow:hidden;background:#050910}.scene-wrap{position:absolute;inset:0;overflow:hidden;z-index:0}.scene-wrap.painting{cursor:crosshair}.scene-wrap canvas{height:100%;width:100%;display:block;touch-action:none}.film-grain{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");mix-blend-mode:screen}.vignette{pointer-events:none;position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse 47% 52% at 52% 50%,transparent 42%,rgba(3,7,14,.4) 100%),linear-gradient(90deg,rgba(4,9,19,.55) 0%,transparent 26%,transparent 70%,rgba(4,9,18,.3) 100%)}
.masthead{position:absolute;top:0;left:0;right:0;height:81px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:24px;z-index:7;border-bottom:1px solid rgba(220,236,250,.09);background:linear-gradient(180deg,rgba(5,10,20,.82),rgba(5,10,20,.18));pointer-events:none}.masthead>*{pointer-events:auto}.brand{display:flex;gap:13px;align-items:center;font-size:11px;letter-spacing:.16em;font-weight:800;color:#eff7ff;white-space:nowrap}.brand strong{color:#8999ac;font-weight:500}.brand-symbol{position:relative;width:26px;height:26px;border:1px solid rgba(171,218,247,.6);border-radius:50%;display:flex;align-items:center;justify-content:center;transform:rotate(-22deg)}.brand-symbol i{display:block;position:absolute;height:1px;background:#c8e5f4;width:28px}.brand-symbol i:nth-child(2){transform:rotate(55deg);width:21px}.brand-symbol i:nth-child(3){transform:rotate(-55deg);width:21px}.run-id{display:flex;align-items:center;gap:14px;color:#a1afc0;font-size:10px;letter-spacing:.16em;font-weight:600;white-space:nowrap}.run-id>span:last-child{color:#f5dac0}.run-dot,.rec-dot,.measure-live i{background:#84e5ce;width:6px;height:6px;border-radius:50%;box-shadow:0 0 12px #6bffcf}.run-slash{color:#4b657b}.icon-button{display:grid;place-items:center;border:1px solid var(--line-bright);width:33px;height:33px;background:rgba(17,31,48,.7);color:var(--ink);border-radius:50%;font-weight:700;font-size:14px;transition:background .2s,transform .2s}.icon-button:hover{background:rgba(64,93,120,.6);transform:translateY(-2px)}
.panel{position:absolute;z-index:5;background:linear-gradient(154deg,rgba(9,18,33,.86),rgba(8,15,28,.74));border:1px solid rgba(178,206,226,.13);backdrop-filter:blur(25px) saturate(135%);box-shadow:0 24px 60px rgba(0,0,0,.15);scrollbar-width:thin;scrollbar-color:#35495a transparent}.info-panel{left:22px;top:101px;bottom:103px;width:337px;overflow-y:auto;border-radius:10px;padding:29px 25px 22px}.section-eyebrow{font-size:9px;line-height:1.4;letter-spacing:.20em;font-weight:750;color:#a5b9c8}.eyebrow-bar{display:inline-block;width:14px;height:1px;background:var(--amber);vertical-align:middle;margin-right:7px}.info-panel h1{font-size:clamp(42px,3.3vw,57px);line-height:.91;margin:21px 0 21px;letter-spacing:-.075em;font-weight:800}.info-panel h1 em{font-style:normal;font-weight:300;letter-spacing:-.067em;color:var(--amber)}.h1-period{color:#fcf0e0}.lead{color:#f0e2ce;font-size:14px;line-height:1.56;letter-spacing:.004em;font-weight:500;margin:0 0 15px}.intro{font-size:12px;line-height:1.74;color:#9cacbb;margin:0 0 18px}.intro-rule{height:1px;background:linear-gradient(90deg,var(--line-bright),transparent);margin:23px 0}.measure-heading{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.16em;font-weight:800;color:#d9e6f0}.measure-live{display:flex;align-items:center;gap:7px;font-size:8px;color:#91acb9;font-weight:600}.measure-live i{width:5px;height:5px}.metrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.metric{padding:14px 12px 12px;min-height:95px;border:1px solid rgba(176,205,232,.10);border-radius:6px;background:rgba(255,255,255,.028);transition:background .2s}.metric:hover{background:rgba(255,255,255,.05)}.metric-label{color:#9caebd;font-size:8px;letter-spacing:.12em;font-weight:700}.metric-value{margin-top:9px;font-size:21px;letter-spacing:-.05em;font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}.metric-value small{font-size:11px;font-weight:500;color:#b4c5d2;margin-left:2px}.metric-foot{color:#72899e;font-size:9px;margin-top:4px}
.graph-section{margin-top:28px}.graph-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.chart-title{font-size:9px;font-weight:750;letter-spacing:.14em;color:#e7e9e6}.graph-subtitle{font-size:10px;color:#849aac;margin-top:5px}.chart-badge{color:#7cacc4;border:1px solid rgba(102,177,221,.25);font-size:8px;letter-spacing:.08em;padding:5px 6px;border-radius:3px;white-space:nowrap}#densityChart{display:block;width:100%;height:auto;margin-top:11px;border-bottom:1px solid rgba(190,222,240,.07)}.chart-legend{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#9daeba;margin-top:9px;gap:8px}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:7px;height:7px;display:block;border-radius:2px}.legend-amber{background:#d8a77e}.legend-blue{background:#7bc9ef}.probe-card{border:1px solid rgba(72,187,228,.19);border-radius:7px;background:linear-gradient(130deg,rgba(42,126,163,.075),rgba(13,25,47,.07));padding:15px 13px;margin-top:22px}.probe-card-top{display:flex;justify-content:space-between;gap:10px;color:#bfe8f6;font-size:9px;letter-spacing:.13em;font-weight:800}.probe-card-top>span:last-child{color:#7babc3;font-size:8px}.probe-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:19px}.probe-stats label{font-size:8px;color:#8ba7b9;display:block;line-height:1.4;letter-spacing:.04em}.probe-stats strong{font-size:15px;letter-spacing:-.02em;font-weight:650;display:block;margin-top:5px;white-space:nowrap}.probe-card p{font-size:10px;line-height:1.6;color:#869aaf;margin:13px 0 0}
.control-panel{right:22px;top:101px;bottom:103px;width:325px;padding:25px 23px;overflow:auto;border-radius:10px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:25px}.panel-heading h2{font-size:22px;font-weight:590;letter-spacing:-.05em;margin:9px 0 0;color:#f3f1e9}.settings-glyph{font-size:25px;color:#dfa875;font-weight:300;line-height:1}.control-block{border-bottom:1px solid rgba(201,218,235,.11);padding-bottom:22px;margin-bottom:23px}.control-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 15px}.control-title label{font-size:9px;letter-spacing:.12em;font-weight:750;color:#d7e3ea;white-space:nowrap}.control-title output{font-size:11px;font-variant-numeric:tabular-nums;color:#f2c796;font-weight:650;text-align:right;white-space:nowrap}.accent-slider{--fill:50%;display:block;width:100%;height:4px;margin:0;border:none;appearance:none;-webkit-appearance:none;border-radius:4px;background:linear-gradient(90deg,#efb681 0%,#efb681 var(--fill),rgba(164,192,210,.18) var(--fill),rgba(164,192,210,.18) 100%);cursor:pointer;outline-offset:8px}.accent-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:13px;height:13px;border:3px solid #fce5c7;background:#da9360;border-radius:50%;box-shadow:0 0 0 3px rgba(232,169,108,.15),0 0 16px rgba(243,185,130,.45);cursor:grab}.accent-slider::-moz-range-thumb{width:9px;height:9px;border:3px solid #fce5c7;background:#da9360;border-radius:50%;box-shadow:0 0 0 3px rgba(232,169,108,.15);cursor:grab}.cyan-slider{background:linear-gradient(90deg,#68d3f7 0%,#68d3f7 var(--fill),rgba(164,192,210,.18) var(--fill),rgba(164,192,210,.18) 100%)}.cyan-slider::-webkit-slider-thumb{background:#77dbf4;border-color:#d8f7fc}.range-ends{display:flex;justify-content:space-between;gap:12px;margin-top:13px;font-size:9px;color:#738da0;font-weight:550}.control-explain{font-size:10px;line-height:1.68;margin:13px 0 0;color:#91a4b6}.compact-block{margin-bottom:10px;padding-bottom:22px}.primary-action,.outline-action{width:100%;border-radius:5px;padding:14px 11px;display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:800;letter-spacing:.1em;transition:background .2s,transform .2s,border-color .2s}.primary-action{background:linear-gradient(105deg,#f6caa0,#e7a778);border:1px solid #f7d2af;color:#1d2228;box-shadow:0 7px 25px rgba(218,145,83,.12);margin-top:24px}.primary-action:hover{transform:translateY(-2px);background:linear-gradient(105deg,#ffe2bc,#f5b889)}.button-icon{font-size:16px}.outline-action{margin-top:8px;background:rgba(98,186,217,.06);border:1px solid rgba(103,188,223,.29);color:#b0dce9}.outline-action:hover,.outline-action[aria-pressed=true]{border-color:rgba(111,220,239,.7);background:rgba(89,196,241,.16)}#paintState{font-size:9px;color:#78b7d0}.advanced-controls{border-bottom:1px solid rgba(201,218,235,.11);padding:0 0 19px;margin:0 0 18px}.advanced-controls summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;color:#d1dee8;font-size:9px;font-weight:770;letter-spacing:.15em;padding:12px 0}.advanced-controls summary::-webkit-details-marker{display:none}.summary-plus{font-size:17px;line-height:1;color:#b4d6e6;transition:transform .2s}.advanced-controls[open] .summary-plus{transform:rotate(45deg)}.advanced-content{padding-top:16px}.toggle-row{display:flex;align-items:center;gap:10px;min-height:34px;font-size:11px;color:#9db1c2;cursor:pointer}.toggle-row:first-of-type{margin-top:18px}.toggle-row input{accent-color:#7ccdea;width:14px;height:14px;cursor:pointer}.condition{display:flex;align-items:flex-start;gap:10px;padding:8px 0}.condition-icon{display:grid;flex:0 0 16px;place-items:center;width:16px;height:16px;border:1px solid #ab874b;color:#e7b479;border-radius:50%;font-size:10px;font-weight:750}.condition p{margin:0;font-size:10px;line-height:1.65;color:#899eae}.condition strong{font-weight:650;color:#c5cdd2}
.transport{position:absolute;z-index:6;left:22px;right:22px;bottom:19px;height:72px;border:1px solid rgba(184,211,231,.18);background:linear-gradient(125deg,rgba(12,22,38,.93),rgba(11,19,32,.85));backdrop-filter:blur(22px);box-shadow:0 12px 46px rgba(0,0,0,.24);border-radius:8px;display:flex;align-items:center;gap:0;padding:0 20px}.transport-part{display:flex;align-items:center;height:42px;gap:12px}.transport-part+.transport-part{border-left:1px solid rgba(214,225,239,.13);margin-left:20px;padding-left:20px}.play-control{display:grid;place-items:center;width:41px;height:41px;border-radius:5px;background:#efc18f;color:#1a2731;border:1px solid #f7d4ad;font-size:20px;letter-spacing:-.16em;line-height:1}.play-control:hover{background:#ffe2bc}.transport-icon{height:40px;width:37px;display:grid;place-items:center;border:1px solid rgba(170,206,234,.18);background:rgba(255,255,255,.03);border-radius:5px;color:#d7e7ee;font-size:25px}.transport-icon:hover{background:rgba(255,255,255,.1)}.transport-status{width:170px}.transport-status strong,.transport-status span{display:block}.transport-status strong{font-size:9px;letter-spacing:.11em;font-weight:750}.transport-status span{font-size:8px;color:#7b99ac;margin-top:5px;letter-spacing:.09em}.speed-part{flex:1;min-width:150px;max-width:320px}.transport-part>label{font-size:9px;letter-spacing:.13em;font-weight:750;color:#a7b7c3;white-space:nowrap}.speed-part .accent-slider{flex:1;min-width:60px}.speed-part output{font-size:12px;color:#e6c6a5;min-width:27px;text-align:right}.view-part{min-width:190px}.view-part select{background:#132236;border:1px solid rgba(179,210,232,.20);color:#d5e3ed;border-radius:4px;min-width:0;max-width:175px;padding:9px 28px 9px 8px;font-size:10px;cursor:pointer}.hint-part{margin-left:auto!important;padding-left:20px}.hint-part span:last-child{font-size:9px;color:#8297ab;letter-spacing:.075em;white-space:nowrap}.hint-part b{color:#48677f}.mouse-icon{font-size:19px;color:#9abacc}.scene-coordinates{position:absolute;z-index:2;top:104px;left:50%;transform:translateX(-50%);font-size:9px;letter-spacing:.17em;font-weight:700;color:rgba(181,210,229,.72);display:flex;align-items:center;gap:10px;pointer-events:none}.scene-coordinates .separator{color:#486784}.scene-scale{position:absolute;z-index:2;bottom:113px;left:50%;transform:translateX(-50%);font-size:9px;color:#a9c9d9;font-family:ui-monospace,Consolas,monospace;letter-spacing:.04em;text-align:center;pointer-events:none;opacity:.6}.scale-line{display:block;border-bottom:1px solid rgba(181,219,241,.56);width:82px;height:11px;position:relative;margin:0 auto 8px}.scale-line:before,.scale-line:after{content:"";position:absolute;bottom:0;width:1px;height:7px;background:rgba(181,219,241,.6)}.scale-line:before{left:0}.scale-line:after{right:0}.target-label{position:absolute;z-index:3;font-size:8px;letter-spacing:.17em;font-weight:800;color:#9ce1fa;white-space:nowrap;pointer-events:none;text-shadow:0 1px 12px rgba(0,0,0,.8);transform:translate(-20%,-150%);transition:opacity .2s}.target-cross{font-size:15px;color:#95dcfa;margin-right:8px;vertical-align:middle}.toast{pointer-events:none;position:absolute;z-index:9;bottom:128px;left:50%;transform:translate(-50%,12px);border:1px solid rgba(149,208,234,.26);background:rgba(7,19,36,.87);color:#c9e5f1;backdrop-filter:blur(22px);border-radius:5px;padding:12px 18px;font-size:11px;letter-spacing:.01em;white-space:normal;min-width:200px;max-width:70vw;text-align:center;opacity:0;transition:transform .28s,opacity .28s;box-shadow:0 6px 40px rgba(0,0,0,.26)}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-controls{display:none}
.guide-backdrop{position:fixed;z-index:20;inset:0;background:rgba(0,4,11,.83);backdrop-filter:blur(10px)}.guide-modal{position:fixed;z-index:21;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,calc(100vw - 36px));max-height:min(820px,calc(100vh - 42px));overflow-y:auto;border:1px solid rgba(182,215,239,.28);border-radius:10px;background:linear-gradient(137deg,#13253a 0%,#081320 70%,#111b2b 100%);box-shadow:0 24px 100px rgba(0,0,0,.75);padding:32px 36px 36px}.guide-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.guide-top button{width:31px;height:31px;border:1px solid var(--line-bright);background:rgba(255,255,255,.03);border-radius:50%;color:var(--ink);font-size:23px;line-height:1}.guide-modal>h2{font-size:clamp(28px,5vw,47px);letter-spacing:-.06em;margin:18px 0 10px;font-weight:560;color:#f5dfbd}.guide-lead{font-size:14px;line-height:1.74;color:#b4cad8;max-width:600px}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:27px 0 21px}.guide-step{padding:19px;border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:5px}.guide-step>span{font-size:9px;color:#e5b985;letter-spacing:.18em}.guide-step h3{font-size:17px;letter-spacing:-.03em;margin:9px 0 8px;font-weight:650}.guide-step p{font-size:11px;line-height:1.7;color:#99b0c0;margin:0}.guide-science{display:flex;gap:22px;border-top:1px solid var(--line);padding-top:22px;margin-top:18px}.science-symbol{font-size:35px;color:#93d7eb;flex-shrink:0}.guide-science h3{font-size:15px;letter-spacing:-.02em;margin:4px 0 8px}.guide-science p{font-size:11px;color:#9fb4c2;line-height:1.7;margin:0 0 10px}.guide-science .formula{font-family:ui-monospace,Menlo,Consolas,monospace;color:#f3cda4;background:rgba(233,189,124,.06);padding:11px;overflow-x:auto}.guide-science a{color:#8bdcf8}.guide-modal>.primary-action{margin-top:18px;max-width:280px}.error-screen{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:20px;background:linear-gradient(140deg,#091321,#0a1425);text-align:center}.error-screen[hidden],.guide-modal[hidden],.guide-backdrop[hidden]{display:none}.error-screen>div{max-width:580px;border:1px solid #34536a;background:#101d2b;padding:34px;border-radius:8px}.error-screen h2{font-size:26px;line-height:1.2;color:#f4dfbd}.error-screen p{color:#b4c5d1;line-height:1.6}.error-screen button{border:1px solid #7ea8b8;border-radius:4px;color:#eff9ff;background:#16364a;padding:10px 18px;margin-top:10px}
@media(max-width:1270px){.info-panel{width:310px;padding:23px 20px}.control-panel{width:300px;padding:22px 18px}.transport{padding:0 14px}.transport-part+.transport-part{margin-left:12px;padding-left:12px}.hint-part{display:none}.transport-status{width:145px}.scene-coordinates{font-size:8px}}
@media(max-width:1020px){.info-panel{width:275px;top:89px;bottom:93px;left:13px}.control-panel{width:267px;top:89px;bottom:93px;right:13px}.info-panel h1{font-size:43px}.transport{left:13px;right:13px;bottom:13px;height:68px}.transport-status{width:110px}.transport-status strong{font-size:8px}.transport-status span{display:none}.speed-part{min-width:130px}.view-part{min-width:167px}.view-part select{max-width:150px}.masthead{padding:0 19px;height:73px}.run-id{font-size:9px}}
@media(max-width:820px){.info-panel{left:13px;top:86px;bottom:auto;max-height:calc(100% - 250px);width:268px}.control-panel{display:none;top:auto;bottom:91px;left:auto;right:13px;width:310px;max-height:calc(100% - 178px);background:rgba(8,17,31,.94)}.control-panel.mobile-open{display:block}.mobile-controls{display:block;position:absolute;z-index:7;top:87px;right:13px}.mobile-controls button{padding:10px 13px;color:#cae3f0;border:1px solid rgba(151,210,234,.24);border-radius:5px;background:rgba(14,30,48,.86);font-size:11px;font-weight:700;backdrop-filter:blur(14px)}.mobile-controls button span{display:inline-block;margin-left:13px;color:#d7b893}.transport-part+.transport-part{margin-left:9px;padding-left:9px}.transport{gap:3px}.transport-status{width:100px}.run-id{display:none}.scene-coordinates{top:88px;left:51%;opacity:.55}.scene-scale{bottom:106px}}
@media(max-width:590px){.masthead{height:61px;padding:0 14px}.brand{font-size:10px;letter-spacing:.1em}.brand-symbol{width:22px;height:22px}.info-panel{top:72px;left:11px;width:min(245px,calc(100vw - 110px));padding:15px 15px 15px;max-height:calc(100vh - 240px)}.info-panel h1{font-size:35px;margin:16px 0 12px}.info-panel .lead{font-size:11px;line-height:1.45}.info-panel .intro{display:none}.info-panel .intro-rule{margin:15px 0}.section-eyebrow{font-size:8px}.metrics-grid{gap:7px}.metric{min-height:76px;padding:10px 8px}.metric-value{font-size:15px;margin-top:6px}.metric-label{font-size:7px}.metric-foot{font-size:8px}.measure-heading{font-size:8px}.measure-live{font-size:7px}.graph-section{margin-top:17px}.chart-title{font-size:8px}.chart-badge{display:none}.probe-card{margin-top:14px;padding:11px 8px}.probe-card-top{font-size:8px}.probe-stats{gap:5px}.probe-stats label{font-size:7px}.probe-stats strong{font-size:11px}.control-panel{right:9px;width:min(300px,calc(100vw - 20px));bottom:91px;max-height:calc(100% - 176px)}.mobile-controls{top:74px;right:9px}.mobile-controls button{font-size:10px;padding:9px 10px}.scene-coordinates{display:none}.target-label{font-size:7px}.transport{left:7px;right:7px;bottom:7px;height:74px;padding:0 8px;justify-content:space-between}.first-transport{gap:6px}.play-control{height:39px;width:39px}.transport-icon{width:31px;height:39px}.transport-status{display:none}.transport-part+.transport-part{margin-left:6px;padding-left:7px}.speed-part{flex:1;min-width:70px;gap:7px}.speed-part label{display:none}.speed-part .accent-slider{min-width:32px}.view-part{min-width:0;gap:5px}.view-part label{display:none}.view-part select{max-width:121px;width:121px;font-size:9px;padding:9px 6px}.scene-scale{display:none}.toast{bottom:91px;min-width:190px;max-width:80vw}.guide-modal{padding:21px 18px;max-height:calc(100vh - 24px)}.guide-grid{grid-template-columns:1fr}.guide-science{gap:11px}.science-symbol{font-size:23px}}
@media(max-height:650px) and (min-width:821px){.info-panel,.control-panel{bottom:88px;top:78px}.masthead{height:67px}.transport{bottom:7px;height:69px}.info-panel h1{font-size:40px;margin:10px 0}.intro{display:none}.intro-rule{margin:11px 0}.graph-section{margin-top:15px}.control-block{margin-bottom:13px;padding-bottom:15px}.panel-heading{margin-bottom:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
