:root{
  color-scheme:dark;
  --bg:#080d13;--panel:#101923;--panel-2:#131f2a;--panel-3:#172431;--line:#253341;--line-soft:#1d2a36;
  --text:#e7eff4;--muted:#93a2ad;--dim:#647580;--accent:#66e2ca;--accent-soft:rgba(102,226,202,.12);--accent-line:rgba(102,226,202,.34);
  --ink:#4dbba9;--metal:#82919b;--web:#d7dfe4;--radius:14px;--gap:16px;
  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{min-height:100vh;background:radial-gradient(ellipse at 32% 0%,rgba(34,65,75,.18),transparent 44%),var(--bg)}
button,input{font:inherit}
button{color:inherit}
button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.app-shell{max-width:1680px;margin:0 auto;min-height:100vh;padding:0 24px;display:flex;flex-direction:column}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-soft);flex:0 0 auto}
.brand-lockup{display:flex;align-items:center;gap:14px;min-width:0}
.brand-mark{width:34px;height:34px;border:1px solid var(--accent-line);border-radius:10px;display:flex;align-items:center;justify-content:center;gap:3px;background:linear-gradient(145deg,rgba(102,226,202,.12),rgba(102,226,202,.025));transform:rotate(-8deg)}
.brand-mark span{display:block;width:3px;border-radius:4px;background:var(--accent);transform:rotate(8deg)}.brand-mark span:nth-child(1){height:9px;opacity:.65}.brand-mark span:nth-child(2){height:17px}.brand-mark span:nth-child(3){height:12px;opacity:.8}
.brand-copy{min-width:0}.eyebrow,.section-kicker{font-size:9px;letter-spacing:.16em;font-weight:750;color:var(--muted);line-height:1.3}.eyebrow{display:flex;align-items:center;gap:8px}.eyebrow-dot{width:3px;height:3px;border-radius:50%;background:var(--accent)}
h1{font-size:17px;line-height:1.2;letter-spacing:-.035em;margin:4px 0 0;font-weight:680}
.top-meta{display:flex;align-items:center;gap:18px}.live-indicator,.offline-label{font-size:9px;letter-spacing:.13em;font-weight:750;color:var(--muted)}.live-indicator{display:flex;align-items:center;gap:7px;color:var(--accent)}.live-indicator i{width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px rgba(102,226,202,.75)}.offline-label{padding-left:18px;border-left:1px solid var(--line)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:22px;padding:20px 0 14px;flex:1;min-height:0}
.stage-column{min-width:0;display:flex;flex-direction:column;min-height:0}
.stage-head{display:flex;align-items:flex-end;justify-content:space-between;padding:0 2px 13px;flex:0 0 auto}.stage-heading-row{display:flex;align-items:center;gap:12px;margin-top:5px}h2{font-size:19px;line-height:1.2;letter-spacing:-.035em;margin:0;font-weight:660}.cutaway-tag{border:1px solid var(--line);border-radius:5px;padding:4px 7px;font-size:8px;letter-spacing:.13em;color:var(--muted);font-weight:700;display:inline-flex;align-items:center;gap:6px}.cutaway-dot{width:5px;height:5px;background:var(--accent);border-radius:50%}.stage-readout{text-align:right}.readout-label{display:block;font-size:8px;letter-spacing:.15em;color:var(--dim);font-weight:750}.stage-readout strong{display:block;font-size:11px;color:var(--accent);margin-top:4px;letter-spacing:.02em}
.canvas-frame{position:relative;min-height:330px;flex:1;border:1px solid #263744;border-radius:var(--radius);overflow:hidden;background:#0b131b;box-shadow:0 14px 40px rgba(0,0,0,.18)}canvas{width:100%;height:100%;display:block}
.canvas-top-left{position:absolute;left:16px;top:14px;display:flex;align-items:center;gap:9px;pointer-events:none}.canvas-coordinate,.canvas-scale{font-size:8px;letter-spacing:.14em;color:#8ea1ac;font-weight:750}.canvas-separator{height:12px;width:1px;background:#42535e}.canvas-legend{position:absolute;left:16px;bottom:15px;display:flex;gap:13px;pointer-events:none}.canvas-legend span{display:flex;align-items:center;gap:5px;color:#91a1ab;font-size:8px;letter-spacing:.04em}.canvas-legend i{width:6px;height:6px;border-radius:2px;display:inline-block}.legend-ink{background:var(--accent)}.legend-metal{background:#8997a0}.legend-web{background:#d7dfe4}.canvas-bottom-right{position:absolute;right:16px;bottom:15px;font-size:8px;letter-spacing:.12em;color:#6e818d;display:flex;align-items:center;gap:7px}.orbit-dot{width:5px;height:5px;border:1px solid var(--accent);border-radius:50%;box-shadow:0 0 8px rgba(102,226,202,.5)}
.phase-strip{height:53px;display:flex;align-items:center;gap:10px;padding:0 8px;flex:0 0 auto}.phase-step{display:flex;align-items:center;gap:7px;background:transparent;border:0;padding:6px 7px;border-radius:7px;cursor:pointer;color:var(--dim);transition:background .2s,color .2s}.phase-step:hover{background:rgba(255,255,255,.04);color:var(--text)}.phase-step.active{background:var(--accent-soft);color:var(--accent)}.phase-number{font-size:9px;letter-spacing:.07em;font-weight:800}.phase-name{font-size:10px;font-weight:650}.phase-connector{height:1px;background:var(--line);flex:1;max-width:56px}
.explain-bar{border-top:1px solid var(--line-soft);padding:13px 3px 4px;display:flex;align-items:flex-start;gap:12px;min-height:72px;flex:0 0 auto}.explain-icon{width:29px;height:29px;border-radius:8px;border:1px solid var(--accent-line);background:var(--accent-soft);display:flex;align-items:center;justify-content:center;font-size:9px;color:var(--accent);font-weight:800;flex:0 0 auto}.explain-copy{min-width:0;flex:1}.explain-copy strong{font-size:11px;font-weight:700;display:block;margin:1px 0 4px}.explain-copy p{font-size:10px;line-height:1.5;color:var(--muted);margin:0;max-width:680px}.explain-state{font-size:8px;letter-spacing:.12em;font-weight:800;color:var(--accent);white-space:nowrap;padding-top:3px}
.control-column{min-width:0;display:flex;flex-direction:column;gap:13px;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 2px 0;scrollbar-width:thin;scrollbar-color:#31414d transparent}.panel{background:linear-gradient(145deg,rgba(19,31,42,.98),rgba(14,23,32,.98));border:1px solid var(--line);border-radius:var(--radius);padding:15px 16px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.panel-heading h2{font-size:15px;margin-top:4px}.model-chip{font-size:8px;letter-spacing:.11em;font-weight:800;color:var(--accent);border:1px solid var(--accent-line);border-radius:5px;padding:5px 7px;background:var(--accent-soft);white-space:nowrap}
.quality-row{display:flex;align-items:center;gap:15px;padding:13px 0 12px}.quality-gauge{width:94px;height:94px;position:relative;flex:0 0 auto}.quality-gauge svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}.gauge-track,.gauge-value{fill:none;stroke-width:7}.gauge-track{stroke:#263541}.gauge-value{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:295.3;stroke-dashoffset:35.4;filter:drop-shadow(0 0 5px rgba(102,226,202,.25));transition:stroke-dashoffset .35s ease}.gauge-number{position:absolute;inset:0;display:flex;align-items:baseline;justify-content:center;gap:2px;padding-top:34px}.gauge-number strong{font-size:27px;line-height:1;font-weight:720;letter-spacing:-.06em}.gauge-number span{font-size:9px;color:var(--dim)}.quality-copy{min-width:0;flex:1}.quality-copy>strong{font-size:11px;display:block;margin-bottom:5px}.quality-copy p{font-size:9px;line-height:1.45;color:var(--muted);margin:0 0 10px}.quality-meter{height:4px;border-radius:5px;background:#293742;overflow:hidden}.quality-meter span{height:100%;display:block;width:88%;background:var(--accent);border-radius:5px;transition:width .35s ease}.quality-scale{display:flex;justify-content:space-between;margin-top:5px;color:#63747f;font-size:7px;letter-spacing:.1em;font-weight:750}
.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.metric-card{padding:10px 9px 9px;background:rgba(5,11,17,.26);border:1px solid var(--line-soft);border-radius:8px;min-width:0}.metric-label{font-size:7px;letter-spacing:.12em;color:var(--dim);font-weight:800;display:block;white-space:nowrap}.metric-value{display:flex;align-items:baseline;gap:4px;margin:6px 0 3px}.metric-value strong{font-size:18px;letter-spacing:-.05em;font-weight:680;white-space:nowrap}.metric-value span{font-size:9px;color:var(--accent);font-weight:700}.metric-note{display:block;font-size:7px;color:#72828d;line-height:1.35}.check-line{margin-top:10px;padding-top:9px;border-top:1px solid var(--line-soft);display:flex;align-items:center;gap:6px;font-size:8px;color:var(--muted)}.check-line b{color:#c6d2d9;font-weight:700}.check-mark{width:14px;height:14px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:9px}.check-line > strong{margin-left:auto;color:var(--accent);font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}.check-line span strong{font-size:8px;color:#c5d2d8;margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.controls-panel{padding-bottom:13px}.controls-heading{align-items:center}.text-button{background:transparent;border:0;color:var(--dim);font-size:8px;letter-spacing:.12em;font-weight:800;padding:6px;cursor:pointer}.text-button:hover{color:var(--accent)}.preset-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0 13px}.preset-button{min-width:0;text-align:left;display:flex;align-items:center;gap:8px;padding:9px 8px;border-radius:8px;background:rgba(7,13,19,.35);border:1px solid var(--line);cursor:pointer;transition:border-color .2s,background .2s}.preset-button:hover{border-color:#526672}.preset-button.selected{border-color:var(--accent-line);background:var(--accent-soft)}.preset-glyph{width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#1b2a34;color:var(--accent);font-size:15px;flex:0 0 auto}.preset-button b{font-size:9px;display:block;white-space:nowrap}.preset-button small{display:block;font-size:7px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sliders{display:flex;flex-direction:column;gap:10px}.slider-control{min-width:0}.slider-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:4px}.slider-top label{font-size:9px;color:#c5d1d8;font-weight:650;display:flex;align-items:center;gap:5px}.info-tip{display:inline-flex;width:12px;height:12px;align-items:center;justify-content:center;border:1px solid #4a5c67;border-radius:50%;font-size:8px;color:#8ea0aa;font-style:normal;cursor:help}.slider-top output{font-size:10px;font-weight:750;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}.slider-top output small{font-size:8px;color:#9ab1b8;font-weight:650}.slider-control input[type=range]{width:100%;height:14px;appearance:none;background:transparent;display:block;margin:0;cursor:pointer;--range-fill:50%}.slider-control input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-fill),#34434e var(--range-fill),#34434e 100%)}.slider-control input[type=range]::-moz-range-track{height:3px;border-radius:4px;background:#34434e}.slider-control input[type=range]::-moz-range-progress{height:3px;background:var(--accent);border-radius:4px}.slider-control input[type=range]::-webkit-slider-thumb{appearance:none;width:11px;height:11px;margin-top:-4px;border-radius:50%;background:var(--accent);border:2px solid #0c171c;box-shadow:0 0 0 1px var(--accent)}.slider-control input[type=range]::-moz-range-thumb{width:8px;height:8px;border-radius:50%;background:var(--accent);border:2px solid #0c171c;box-shadow:0 0 0 1px var(--accent)}.range-ends{display:flex;justify-content:space-between;font-size:7px;color:#667782;letter-spacing:.01em}
.playback-row{display:flex;justify-content:space-between;align-items:center;margin-top:15px;padding-top:12px;border-top:1px solid var(--line-soft);gap:8px}.playback-buttons{display:flex;align-items:center;gap:6px}.primary-button,.icon-button{height:30px;border-radius:7px;border:1px solid var(--line);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s}.primary-button{padding:0 12px;gap:7px;background:var(--accent);color:#082019;border-color:var(--accent);font-size:9px;font-weight:800;min-width:70px}.primary-button:hover{background:#8bf0dd}.play-icon{font-size:9px}.icon-button{width:31px;background:#182530;color:#b8c6ce;font-size:13px}.icon-button:hover{border-color:var(--accent-line);color:var(--accent)}.quality-toggle{display:flex;padding:3px;background:#0a1118;border:1px solid var(--line);border-radius:7px;gap:2px}.quality-toggle button{border:0;border-radius:4px;padding:5px 7px;background:transparent;color:#71828d;font-size:7px;letter-spacing:.1em;font-weight:800;cursor:pointer}.quality-toggle button.active{background:#263742;color:var(--accent)}.utility-row{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.utility-button{background:transparent;border:0;padding:3px 0;color:#9eafb8;font-size:8px;display:flex;align-items:center;gap:6px;cursor:pointer}.utility-button span{font-size:13px;color:var(--accent)}.utility-button:hover{color:var(--accent)}.utility-note{font-size:7px;letter-spacing:.08em;color:#63747f}
.science-panel{padding:0;overflow:hidden}.science-panel summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:12px 15px}.science-panel summary::-webkit-details-marker{display:none}.science-panel summary span:first-child{display:flex;flex-direction:column;gap:3px}.science-panel summary b{font-size:11px}.summary-plus{color:var(--accent);font-size:18px;font-weight:300;transition:transform .2s}.science-panel[open] .summary-plus{transform:rotate(45deg)}.science-content{padding:0 15px 14px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.equation-block{background:rgba(5,11,17,.25);border:1px solid var(--line-soft);border-radius:7px;padding:9px}.equation-name{font-size:7px;letter-spacing:.1em;color:var(--muted);font-weight:800;text-transform:uppercase}.equation-block code{display:block;color:var(--accent);font-size:11px;margin:7px 0 5px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}.equation-block p,.model-limits p{font-size:8px;line-height:1.5;color:#93a2ad;margin:0}.model-limits{grid-column:1/-1;padding:9px 2px 0}.model-limits b{display:block;color:#cbd7dd;font-size:9px;margin-bottom:5px}.model-limits p+p{margin-top:6px;color:#82949f}
.footer{height:30px;border-top:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;color:#62727d;font-size:7px;letter-spacing:.12em;font-weight:750;flex:0 0 auto}.footer span:first-child{display:flex;align-items:center;gap:8px}.footer i{width:3px;height:3px;border-radius:50%;background:var(--accent)}.footer span:last-child{letter-spacing:.04em;font-weight:500}
body.embed-mode{height:100vh;height:100dvh;overflow:hidden}.embed-mode .app-shell{height:100vh;height:100dvh;min-height:0;overflow:hidden}.embed-mode .workspace{min-height:0;overflow:hidden}.embed-mode .control-column{min-height:0}.embed-mode .footer{height:25px}
@media(max-width:1050px){.app-shell{padding:0 18px}.workspace{grid-template-columns:minmax(0,1fr) 350px;gap:15px}.panel{padding:13px}.quality-gauge{width:84px;height:84px}.gauge-number{padding-top:30px}.gauge-number strong{font-size:24px}.metrics-grid{gap:5px}.metric-card{padding:8px 7px}.metric-value strong{font-size:16px}}
@media(max-width:760px){.app-shell{padding:0 12px}.topbar{height:61px}.brand-mark{width:29px;height:29px}.eyebrow{font-size:7px}.brand-copy h1{font-size:15px}.top-meta{gap:8px}.offline-label{display:none}.workspace{display:flex;flex-direction:column;gap:12px;padding:12px 0 8px;overflow:hidden}.stage-column{flex:0 0 auto;min-height:0}.stage-head{padding-bottom:8px}.stage-heading-row h2{font-size:16px}.stage-readout strong{font-size:9px}.canvas-frame{height:clamp(250px,39vh,350px);min-height:250px;flex:0 0 auto}.canvas-top-left{left:10px;top:10px}.canvas-coordinate,.canvas-scale{font-size:7px}.canvas-legend{left:10px;bottom:10px;gap:9px}.canvas-legend span{font-size:7px}.canvas-bottom-right{right:10px;bottom:10px;font-size:7px}.phase-strip{height:40px;gap:4px;padding:0}.phase-step{gap:5px;padding:6px 5px}.phase-number{font-size:8px}.phase-name{font-size:9px}.phase-connector{max-width:none}.explain-bar{padding:8px 1px 3px;min-height:54px;gap:8px}.explain-icon{width:24px;height:24px;font-size:8px}.explain-copy strong{font-size:9px;margin-bottom:2px}.explain-copy p{font-size:8px;line-height:1.35}.explain-state{font-size:6px;letter-spacing:.07em}.control-column{flex:1;min-height:0;overflow-y:auto;gap:10px;padding-right:1px}.panel{border-radius:11px;padding:12px}.outcome-panel{flex:0 0 auto}.controls-panel{flex:0 0 auto}.science-panel{flex:0 0 auto}.panel-heading h2{font-size:14px}.quality-row{padding:10px 0}.quality-gauge{width:78px;height:78px}.gauge-number{padding-top:28px}.gauge-number strong{font-size:22px}.quality-copy>strong{font-size:10px}.quality-copy p{font-size:8px;margin-bottom:7px}.metric-card{padding:8px 7px}.metric-label{font-size:6px}.metric-value strong{font-size:16px}.metric-note{font-size:6px}.check-line{font-size:7px;gap:4px}.preset-row{margin:10px 0;gap:6px}.preset-button{padding:8px 6px;gap:6px}.preset-button b{font-size:8px}.preset-button small{font-size:6px}.preset-glyph{width:22px;height:22px}.sliders{gap:9px}.slider-top label{font-size:8px}.slider-top output{font-size:9px}.range-ends{font-size:6px}.playback-row{margin-top:11px;padding-top:10px}.science-content{grid-template-columns:1fr 1fr;gap:7px}.equation-block{padding:7px}.equation-block code{font-size:9px}.footer{height:24px;font-size:6px}.footer span:last-child{display:none}.embed-mode .workspace{flex:1}.embed-mode .stage-column{flex:0 0 auto}.embed-mode .canvas-frame{height:clamp(245px,37vh,320px)}.embed-mode .control-column{flex:1;min-height:0}.embed-mode .footer{flex:0 0 22px}}
@media(max-width:390px){.app-shell{padding:0 9px}.canvas-frame{height:clamp(235px,36vh,300px);min-height:235px}.canvas-legend{gap:6px}.canvas-legend span{font-size:6px}.phase-step{padding:5px 3px}.phase-name{font-size:8px}.explain-state{display:none}.preset-button small{max-width:110px}.metric-value strong{font-size:15px}.control-column{gap:8px}.panel{padding:10px}.quality-row{gap:10px}.quality-gauge{width:70px;height:70px}.gauge-number{padding-top:25px}.gauge-number strong{font-size:20px}.metric-card{padding:7px 5px}.metric-label{letter-spacing:.08em}.metric-note{font-size:5.5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.control-column > .panel{flex:0 0 auto}
@keyframes stageReveal{from{opacity:0;transform:translateY(8px) scale(.992);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
.canvas-frame{animation:stageReveal .85s cubic-bezier(.2,.7,.2,1) both}
