
:root{--bg:#060b14;--paper:#f7f3f0;--muted:#8896aa;--line:rgba(164,193,211,.14);--mint:#77e6d8;--lilac:#bba2fb;--gold:#f6c99a;--body:'DM Sans',system-ui,-apple-system,Segoe UI,sans-serif;--head:'Space Grotesk',system-ui,sans-serif}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:var(--body);background:var(--bg);color:#e9edf4;-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button,select{color:inherit}
#app{height:100vh;height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) min(370px,33vw);min-width:0;overflow:hidden}.stage{position:relative;overflow:hidden;min-width:0;background:radial-gradient(ellipse at 45% 50%,#142236 0%,#050916 69%)}#viewport{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;cursor:grab}#viewport:active{cursor:grabbing}.stage-fog{pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,8,15,.58),transparent 22%,transparent 69%,rgba(3,8,15,.75));z-index:1}.stage-header{position:absolute;left:clamp(24px,3.7vw,64px);right:35px;top:33px;display:flex;align-items:center;justify-content:space-between;gap:16px;z-index:2}.identity{display:flex;align-items:center;gap:13px}.crest{width:39px;height:39px;border:1px solid rgba(119,230,216,.54);border-radius:50%;display:grid;place-items:center;position:relative;color:var(--mint);font-size:25px}.crest:after{content:'';position:absolute;width:47px;height:17px;border:1px solid rgba(119,230,216,.54);border-radius:50%;transform:rotate(-35deg)}.eyebrow{color:#a2b9c9;letter-spacing:2.5px;font-size:9px;font-weight:700}.divider-dot{margin:0 5px;color:var(--gold)}.lab-name{font-family:var(--head);font-weight:700;font-size:17px;letter-spacing:2px;margin-top:4px}.lab-name span{color:var(--mint)}.header-right{display:flex;align-items:center;gap:14px}.seed{font-size:9px;letter-spacing:1.5px;color:#7e92a6}.live-label{border:1px solid rgba(130,234,209,.26);border-radius:100px;padding:9px 12px;font-size:9px;letter-spacing:1.2px;color:#b7e9de;background:rgba(44,125,116,.12);white-space:nowrap}.live-dot{display:inline-block;width:6px;height:6px;margin-right:6px;background:#65e6c7;border-radius:50%;box-shadow:0 0 11px #75f2da;vertical-align:1px;animation:blink 2.5s infinite}@keyframes blink{50%{opacity:.4}}.intro{pointer-events:none;position:absolute;left:clamp(27px,4.3vw,73px);top:clamp(125px,17vh,203px);max-width:390px;z-index:2;text-shadow:0 2px 20px rgba(0,0,0,.8)}.overline{font-size:10px;color:#c1d2d9;letter-spacing:2.3px;font-weight:700;display:flex;align-items:center;gap:9px}.dash{background:var(--mint);width:18px;height:1px}.intro h1{font-family:var(--head);font-size:clamp(33px,3.8vw,62px);font-weight:500;letter-spacing:-2px;line-height:1.11;margin:18px 0 15px}.intro h1 em{font-weight:400;font-family:Georgia,serif;color:#9ee5d9}.intro p{color:#9dabbc;font-size:12px;max-width:310px;line-height:1.8;margin:0}.stage-key{position:absolute;bottom:111px;left:clamp(26px,4vw,70px);z-index:3;display:flex;gap:19px;flex-wrap:wrap;font-size:10px;color:#9bacc0}.stage-key span{display:flex;align-items:center;gap:8px}.swatch{display:inline-block;border-radius:50%;width:7px;height:7px;box-shadow:0 0 8px currentColor}.swatch.mint{background:var(--mint);color:var(--mint)}.swatch.lilac{background:var(--lilac);color:var(--lilac)}.swatch.gold{background:var(--gold);color:var(--gold)}.stage-focus{position:absolute;right:35px;bottom:140px;max-width:227px;padding:17px 19px;background:rgba(10,20,35,.54);border:1px solid rgba(169,193,218,.11);border-radius:11px;box-shadow:0 12px 38px rgba(0,0,0,.16);backdrop-filter:blur(18px);z-index:3}.focus-tag{font-size:9px;color:var(--mint);letter-spacing:1.8px;font-weight:700}.stage-focus strong{display:block;font-size:14px;font-weight:600;margin-top:8px;font-family:var(--head)}.stage-focus p{font-size:11px;line-height:1.6;color:#a0afbe;margin-bottom:0}.canvas-hint{position:absolute;bottom:75px;left:clamp(26px,4vw,70px);color:#718ba1;font-size:9px;letter-spacing:1.1px;z-index:2}.canvas-hint span{margin:0 7px;color:#4f7581}.stage-footer{position:absolute;left:clamp(26px,4vw,70px);right:36px;bottom:26px;padding-top:17px;border-top:1px solid rgba(172,196,215,.13);display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#5b7187;letter-spacing:1.1px;z-index:2}.toast{position:absolute;top:100px;left:50%;transform:translate(-50%,-12px);z-index:10;padding:12px 19px;color:#e4fff7;background:rgba(18,56,59,.86);border:1px solid rgba(119,230,216,.42);border-radius:9px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;font-size:12px;max-width:85%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.error-overlay{position:absolute;inset:0;z-index:25;background:#09121f;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;text-align:center}.error-overlay[hidden]{display:none}.error-mark{font-size:50px;color:var(--mint)}.error-overlay h2{font-size:24px}.error-overlay p{color:var(--muted);max-width:420px;line-height:1.6}.error-overlay button{padding:13px 27px;background:var(--mint);border:0;color:#112b2d;border-radius:7px}
.console{position:relative;z-index:8;min-width:0;display:flex;flex-direction:column;border-left:1px solid rgba(177,201,221,.14);background:linear-gradient(145deg,rgba(17,28,44,.98),rgba(9,16,27,.99));box-shadow:-15px 0 60px rgba(0,0,0,.28)}.console-head{flex:none;min-height:108px;padding:33px 29px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.console-kicker{display:block;color:var(--mint);font-size:9px;letter-spacing:2.1px;font-weight:700}.console-head h2{font-size:20px;font-weight:600;font-family:var(--head);letter-spacing:-.5px;margin:7px 0 0}.console-version{font-size:11px;color:#7c95a7;border:1px solid rgba(151,192,202,.19);border-radius:20px;padding:7px 9px}.console-version span{color:var(--mint)}.console-scroll{overflow-y:auto;overscroll-behavior:contain;padding:23px 29px 34px;scrollbar-width:thin;scrollbar-color:#274656 transparent}.measurement-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.measurement{padding:15px 15px 14px;min-height:102px;border:1px solid rgba(167,193,212,.11);border-radius:10px;background:linear-gradient(132deg,rgba(37,58,76,.38),rgba(22,35,53,.25))}.measurement.primary{background:linear-gradient(135deg,rgba(54,118,119,.3),rgba(28,55,65,.24));border-color:rgba(129,222,211,.25)}.measurement span{display:block;font-size:9px;letter-spacing:1.2px;color:#8299ab;font-weight:700}.measurement strong{display:block;font-family:var(--head);color:#edf4fa;font-size:27px;letter-spacing:-.7px;font-weight:500;margin-top:7px;font-variant-numeric:tabular-nums}.measurement.primary strong{color:#a6ffee}.measurement small{display:block;font-size:10px;color:#657e90;margin-top:5px}.control-section{padding:24px 0;border-bottom:1px solid var(--line)}.section-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:9px;font-weight:700;letter-spacing:1.6px;color:#c0ccda;margin-bottom:18px}.section-caption span:last-child{color:#658092;font-size:8px;letter-spacing:1px}.section-caption .section-detail{color:var(--mint)!important}.playback{display:flex;gap:8px;align-items:stretch}.action-button{border:1px solid rgba(144,176,195,.2);background:rgba(49,72,90,.22);min-height:38px;display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 12px;font-size:11px;color:#dce7f2;border-radius:7px;transition:background .18s,border-color .18s,transform .18s;white-space:nowrap}.action-button:hover{background:rgba(68,108,118,.38);border-color:rgba(133,212,208,.45);transform:translateY(-1px)}.primary-action{background:rgba(115,233,210,.16);border-color:rgba(107,232,213,.4);color:#a8faeb}.speed-select{min-width:76px;flex:1;padding:2px 0 0 6px}.speed-select label{font-size:8px;color:#8297a7;display:flex;justify-content:space-between;gap:5px;letter-spacing:.6px}.speed-select b{color:#d8f8f1}.speed-select input{margin-top:12px}.selector-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:17px 0 12px}.selector-row label{font-size:9px;letter-spacing:1px;font-weight:700;color:#94aabd}.selector-row select{width:49%;background:#1a2c40;border:1px solid rgba(164,202,213,.18);border-radius:6px;padding:8px 7px;font-size:11px;max-width:100%}.tool-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tool-row button{font-size:10px;padding:10px 6px}.drawing-btn.armed{background:rgba(183,158,255,.2);border-color:#bba2fb;color:#dccaff}.microcopy{color:#71879a;font-size:10.5px;line-height:1.7;margin:12px 0 0}.param{margin-bottom:18px}.param:last-child{margin-bottom:0}.param label{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px;color:#b1c1d0;font-size:11px}.param output{font-weight:700;color:#d3f5ef;white-space:nowrap;font-size:11px}.param abbr{color:var(--mint);text-decoration:none}input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:4px;background:linear-gradient(90deg,rgba(117,230,211,.68),rgba(59,89,109,.65));border-radius:10px;cursor:pointer;display:block}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;background:#a1ffee;border:2px solid #183642;border-radius:50%;box-shadow:0 0 0 2px rgba(111,224,210,.23)}input[type=range]::-moz-range-thumb{width:10px;height:10px;background:#a1ffee;border:2px solid #183642;border-radius:50%}.limits{display:flex;justify-content:space-between;margin-top:7px;color:#557083;font-size:9px}.plot-head{display:flex;justify-content:space-between;gap:5px;align-items:center}.plot-head strong{font-size:12px;color:#e5f4f3;font-weight:600}.plot-head span{font-size:10px;color:var(--mint)}.plot-wrap{height:170px;position:relative;margin-top:10px;border-radius:8px;background:linear-gradient(#0b1b2a,#0a1725);border:1px solid rgba(139,177,200,.12);overflow:hidden}#lightCurve{width:100%;height:100%;display:block}.plot-footer{display:flex;justify-content:space-between;color:#658095;letter-spacing:.7px;font-size:9px;margin-top:9px}.camera-row{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:17px}.camera-btn{padding:10px 5px;color:#889eb2;background:rgba(48,68,85,.23);border:1px solid rgba(144,180,198,.13);border-radius:6px;font-size:10px}.camera-btn.active{border-color:rgba(108,230,216,.42);background:rgba(106,224,205,.14);color:#c4fcf0}.toggle-line{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:15px 0;font-size:11px;color:#b1c4d0;cursor:pointer}.toggle-line span{display:flex;align-items:center;gap:9px}.line-chip{width:18px;height:3px;display:inline-block;border-radius:3px}.lilac-chip{background:var(--lilac)}.gold-chip{background:var(--gold)}.mint-chip{background:var(--mint)}.toggle-line input{position:absolute;opacity:0;pointer-events:none}.toggle-art{width:33px;height:19px;border-radius:30px;background:#263848;border:1px solid rgba(154,188,203,.15);position:relative;transition:.15s}.toggle-art:before{content:'';width:13px;height:13px;position:absolute;left:2px;top:2px;background:#6f8695;border-radius:50%;transition:.15s}.toggle-line input:checked+.toggle-art{background:rgba(65,184,164,.4);border-color:rgba(125,230,214,.48)}.toggle-line input:checked+.toggle-art:before{left:16px;background:#a3ffe9}.toggle-line input:focus-visible+.toggle-art{outline:2px solid #a3ffe9;outline-offset:2px}details{border-top:1px solid rgba(174,196,207,.1);padding:13px 0}details:last-child{border-bottom:1px solid rgba(174,196,207,.1)}details summary{font-size:11px;color:#c4dae3;cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between}details summary:after{content:'+';font-size:17px;color:var(--mint);font-weight:400;line-height:12px}details[open] summary:after{content:'−'}details p,details li{font-size:10.5px;color:#879cac;line-height:1.8}details ol{padding-left:20px}.console-end{padding-top:25px;text-align:center;font-size:9px;letter-spacing:1.5px;color:#597082}.mini-star{color:var(--mint);font-size:20px;display:block;margin-bottom:8px}
@media(max-width:1180px){#app{grid-template-columns:minmax(0,1fr) 340px}.console-head{padding-left:22px;padding-right:22px}.console-scroll{padding-left:22px;padding-right:22px}.stage-focus{max-width:183px;right:22px}.intro{top:130px}.intro h1{font-size:40px}.header-right .seed{display:none}}
@media(max-width:760px){#app{display:flex;flex-direction:column;height:100dvh;overflow:hidden}.stage{height:57%;min-height:270px;flex:1 1 57%}.console{width:100%;height:43%;min-height:240px;flex:1 1 43%;border-left:0;border-top:1px solid rgba(177,201,221,.23);border-radius:17px 17px 0 0;box-shadow:0 -18px 45px rgba(0,0,0,.23);margin-top:-9px}.console-head{padding:13px 20px 12px;min-height:70px}.console-head h2{font-size:17px;margin-top:4px}.console-scroll{padding:15px 20px 30px}.measurement{min-height:92px}.stage-header{top:16px;left:18px;right:18px}.eyebrow{font-size:7px;letter-spacing:1.2px}.lab-name{font-size:13px}.crest{width:30px;height:30px;font-size:20px}.crest:after{width:36px;height:13px}.header-right .live-label{font-size:8px;padding:7px 9px}.intro{left:22px;top:85px;max-width:260px}.intro h1{font-size:30px;letter-spacing:-1px;margin:9px 0}.intro p{font-size:10px;max-width:220px;line-height:1.6}.overline{font-size:8px;letter-spacing:1px}.stage-key{left:22px;bottom:55px;gap:10px;font-size:8px}.canvas-hint{left:22px;bottom:34px;font-size:7px;letter-spacing:.2px}.stage-footer{left:22px;right:20px;bottom:12px;padding-top:7px;font-size:7px}.stage-footer span:last-child{display:none}.stage-focus{bottom:80px;right:12px;max-width:150px;padding:10px 12px}.stage-focus strong{font-size:11px;margin-top:5px}.stage-focus p{font-size:9px;line-height:1.4}.focus-tag{font-size:7px}.stage-focus{display:none}}
@media(max-width:420px){.intro{top:82px}.intro h1{font-size:27px}.intro p{max-width:180px}.live-label{letter-spacing:.5px!important}.stage-key{flex-wrap:nowrap;gap:8px}.stage-key span{font-size:7px;gap:4px}.console-scroll{padding-left:16px;padding-right:16px}.console-head{padding-left:16px;padding-right:16px}.selector-row{flex-direction:column;align-items:stretch}.selector-row select{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.csv-button{display:block;margin:11px 0 0 auto;border:1px solid rgba(125,226,215,.26);color:#9ff3e6;background:rgba(40,91,89,.2);padding:7px 10px;border-radius:5px;font-size:9px;font-weight:700;letter-spacing:1px}.csv-button:hover{background:rgba(62,144,133,.31)}
