:root{color-scheme:dark;--bg:#0b1117;--panel:#111a22;--panel2:#141f29;--line:#263542;--muted:#82929f;--text:#e8f0f4;--soft:#b9c7cf;--accent:#55d6c2;--accent2:#f0a96b;--danger:#ed8e75;--radius:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--bg);color:var(--text);overflow:hidden}body{font-size:13px;letter-spacing:.01em}.app-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 34% -15%,rgba(39,91,93,.18),transparent 42%),var(--bg)}.topbar{height:64px;flex:0 0 64px;border-bottom:1px solid #1d2b36;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(10,16,22,.94);z-index:2}.brand-lockup{display:flex;align-items:center;gap:13px}.brand-mark{width:31px;height:31px;border:1px solid rgba(85,214,194,.4);border-radius:9px;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:6px;background:rgba(85,214,194,.07)}.brand-mark span{width:4px;border-radius:4px 4px 1px 1px;background:var(--accent);display:block}.brand-mark span:nth-child(1){height:8px;opacity:.55}.brand-mark span:nth-child(2){height:14px}.brand-mark span:nth-child(3){height:10px;opacity:.75}.eyebrow,.micro-label{font-size:9px;font-weight:800;letter-spacing:.16em;color:#7f929f}.eyebrow{display:flex;align-items:center;gap:8px}.live-dot{width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 9px var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:17px;line-height:1.2;font-weight:650;letter-spacing:-.02em;margin-top:3px}.top-meta{display:flex;align-items:center;gap:14px}.process-tag{font-size:9px;letter-spacing:.12em;color:#9db0bc;border:1px solid #2b3b47;border-radius:20px;padding:7px 10px}.icon-button{border:1px solid #2b3b47;background:#111b24;color:#b6c6cf;border-radius:50%;width:30px;height:30px;font-size:15px;cursor:pointer}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:16px;padding:16px 18px 14px;min-height:0;flex:1}.stage-column{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px}.stage-head{display:flex;align-items:center;justify-content:space-between;min-height:42px}.stage-heading{min-width:0}.stage-title-row{display:flex;align-items:center;gap:10px;margin-top:4px}.stage-title-row h2{font-size:15px;font-weight:650;letter-spacing:-.02em}.stage-status{font-size:8px;letter-spacing:.13em;border:1px solid #334653;color:#a8bac4;border-radius:20px;padding:4px 7px}.stage-tools{display:flex;gap:7px}.quiet-button{border:1px solid #2a3b47;background:#111a22;color:#aebdc6;border-radius:7px;padding:7px 9px;font-size:9px;letter-spacing:.1em;font-weight:750;cursor:pointer}.quiet-button:hover,.icon-button:hover,.square-button:hover{border-color:#57707c;color:#e7f2f5}.canvas-frame{position:relative;min-height:220px;flex:1;border:1px solid #263844;border-radius:15px;overflow:hidden;background:radial-gradient(ellipse at 52% 44%,#172a32 0%,#0d1921 55%,#0a1219 100%);box-shadow:inset 0 0 50px rgba(0,0,0,.28),0 14px 34px rgba(0,0,0,.16)}canvas{display:block;width:100%;height:100%;outline:none}.canvas-hud{position:absolute;top:14px;display:flex;align-items:center;gap:7px;color:#8fa2ad;font-size:8px;font-weight:800;letter-spacing:.13em;pointer-events:none}.hud-left{left:15px}.hud-right{right:15px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.hud-right b{color:#b9cbd3;font-size:8px;letter-spacing:.1em}.hud-dot{width:6px;height:6px;border-radius:50%;background:#627986}.canvas-frame.is-running .hud-dot{background:var(--accent);box-shadow:0 0 9px var(--accent)}.canvas-legend{position:absolute;bottom:13px;left:15px;display:flex;gap:14px;flex-wrap:wrap;color:#9aadb7;font-size:9px;pointer-events:none}.canvas-legend span{display:flex;align-items:center;gap:6px}.canvas-legend i{display:inline-block;width:7px;height:7px;border-radius:50%}.legend-ion{background:#5bd5d2;box-shadow:0 0 7px #5bd5d2}.legend-copper{background:#d98d55}.legend-gas{background:#c5e5ee;border:1px solid #e7f8ff}.stage-caption{display:flex;align-items:flex-start;gap:10px;padding:9px 12px;border:1px solid #1f303a;border-radius:9px;background:rgba(17,27,35,.72);min-height:48px}.caption-icon{color:var(--accent);font-size:16px;line-height:1}.stage-caption p{font-size:11px;color:#a9bac4;line-height:1.45}.step-strip{display:flex;align-items:center;gap:7px;padding:1px 4px 0}.step-node{background:none;border:0;color:#70828e;display:flex;align-items:center;gap:6px;padding:5px 2px;cursor:pointer;white-space:nowrap}.step-node span{width:21px;height:21px;border:1px solid #344653;border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:800}.step-node b{font-size:9px;font-weight:650}.step-node.active{color:#dce9ee}.step-node.active span{background:rgba(85,214,194,.14);border-color:var(--accent);color:var(--accent)}.step-node.done span{border-color:#477a73;color:var(--accent)}.step-link{height:1px;flex:1;min-width:6px;background:#2a3944}.control-column{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;padding-right:2px;scrollbar-width:thin;scrollbar-color:#31424e transparent}.control-card,.science-panel{background:linear-gradient(145deg,rgba(21,32,42,.98),rgba(15,24,32,.98));border:1px solid #273844;border-radius:var(--radius);padding:13px 14px;box-shadow:0 7px 18px rgba(0,0,0,.12)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-head h2{font-size:14px;font-weight:650;margin-top:3px;letter-spacing:-.02em}.sim-clock{font-variant-numeric:tabular-nums;color:#a9bbc5;font-size:11px;border:1px solid #2d404d;border-radius:6px;padding:6px 8px;background:#0d171f}.transport-controls{display:grid;grid-template-columns:1fr 76px 37px;gap:7px;margin-top:11px}.primary-button,.square-button{height:36px;border-radius:8px;cursor:pointer;font-weight:750;letter-spacing:.04em}.primary-button{background:var(--accent);border:1px solid var(--accent);color:#09201f;font-size:11px;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 5px 16px rgba(85,214,194,.12)}.primary-button:hover{background:#7ae4d4}.play-icon{font-size:10px}.square-button{background:#182630;border:1px solid #334955;color:#c1d0d8;font-size:9px}.reset-button{font-size:18px;line-height:1}.run-note{font-size:9px;color:#80939f;margin-top:8px;line-height:1.35}.quality-word{font-size:8px;letter-spacing:.12em;font-weight:850;color:var(--accent);border:1px solid rgba(85,214,194,.32);border-radius:20px;padding:5px 7px}.quality-word.warn{color:var(--accent2);border-color:rgba(240,169,107,.35)}.quality-word.poor{color:var(--danger);border-color:rgba(237,142,117,.35)}.quality-row{display:flex;align-items:center;gap:14px;margin-top:10px}.quality-number{min-width:76px;display:flex;align-items:baseline;gap:3px}.quality-number strong{font-size:30px;letter-spacing:-.06em;font-weight:650;font-variant-numeric:tabular-nums}.quality-number span{font-size:10px;color:#81939e}.quality-track{height:7px;border-radius:10px;background:#273640;overflow:hidden;flex:1}.quality-fill{height:100%;width:96%;border-radius:10px;background:linear-gradient(90deg,#368e85,#66dfc8);transition:width .25s ease}.quality-explain{font-size:9px;color:#9cafb9;line-height:1.4;margin:4px 0 10px}.readout-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #263641;border-bottom:1px solid #263641}.readout{padding:8px 7px 7px 0;min-width:0}.readout:nth-child(odd){border-right:1px solid #263641}.readout:nth-child(even){padding-left:10px}.readout:nth-child(n+3){border-top:1px solid #263641}.readout span{display:flex;align-items:center;gap:5px;color:#8fa1ac;font-size:9px;white-space:nowrap}.readout i{font-style:normal;text-transform:uppercase;font-size:6px;letter-spacing:.08em;color:#5d8b87}.readout b{display:block;font-size:17px;font-weight:650;letter-spacing:-.03em;margin-top:4px;font-variant-numeric:tabular-nums}.readout small{font-size:9px;font-weight:600;color:#94a8b3;letter-spacing:0}.check-line{display:flex;gap:8px;align-items:flex-start;padding-top:9px}.check-mark{width:15px;height:15px;flex:0 0 15px;border-radius:50%;display:grid;place-items:center;background:rgba(85,214,194,.14);color:var(--accent);font-size:10px}.check-line b{display:block;font-size:9px;color:#b9cbd3}.check-line span:not(.check-mark){display:block;font-size:8px;color:#81939e;line-height:1.35;margin-top:2px}.settings-heading{margin-bottom:10px}.text-button{background:none;border:0;color:var(--accent);font-size:8px;letter-spacing:.1em;font-weight:800;cursor:pointer;padding:5px}.preset-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:12px}.preset-button{border:1px solid #2c3e4a;background:#101b23;border-radius:8px;display:flex;align-items:center;text-align:left;gap:8px;padding:8px 7px;cursor:pointer;color:#c7d5dc;min-width:0}.preset-button.selected{border-color:rgba(85,214,194,.65);background:rgba(85,214,194,.07)}.preset-button b{font-size:9px;display:block;font-weight:700}.preset-button small{display:block;font-size:7px;color:#81939e;margin-top:3px;white-space:nowrap}.preset-dot{width:7px;height:7px;border-radius:50%;flex:0 0 7px}.smooth-dot{background:var(--accent);box-shadow:0 0 8px rgba(85,214,194,.55)}.overload-dot{background:var(--danger)}.slider-list{display:flex;flex-direction:column;gap:11px}.slider-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}.slider-top label{font-size:9px;color:#b7c6ce;font-weight:600}.slider-top label span{color:#718894;font-size:10px;cursor:help}.slider-top output{font-size:9px;color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}input[type=range]{width:100%;height:4px;margin:0;appearance:none;background:linear-gradient(90deg,var(--accent) 0%,var(--accent) var(--fill,50%),#34434e var(--fill,50%),#34434e 100%);border-radius:10px;cursor:pointer;display:block}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#d8fff7;border:2px solid #39aa9d;box-shadow:0 0 0 3px rgba(85,214,194,.12)}input[type=range]::-moz-range-thumb{width:9px;height:9px;border-radius:50%;background:#d8fff7;border:2px solid #39aa9d;box-shadow:0 0 0 3px rgba(85,214,194,.12)}input[type=range]:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.range-ends{display:flex;justify-content:space-between;color:#637782;font-size:7px;margin-top:4px;font-variant-numeric:tabular-nums}.two-up{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-up>div{min-width:0}.science-panel{padding:0;overflow:hidden}.science-panel summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:12px 14px;cursor:pointer}.science-panel summary::-webkit-details-marker{display:none}.science-panel summary b{display:block;font-size:12px;margin-top:3px}.chevron{color:#8ca0aa;font-size:17px;transition:transform .2s}.science-panel[open] .chevron{transform:rotate(180deg)}.science-content{padding:0 14px 13px;color:#9eafb8;font-size:9px;line-height:1.5}.science-content h3{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#d2e0e5;margin:9px 0 5px}.science-content p{margin:5px 0}.science-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#a7e9dd;font-size:9px}.disclaimer{color:#c0d0d6!important;font-style:italic;border-top:1px solid #2a3b46;padding-top:8px;margin-top:9px!important}.panel-foot{display:flex;justify-content:space-between;gap:8px;color:#566b77;font-size:7px;letter-spacing:.1em;padding:0 3px 4px}.embed-mode{height:100vh;height:100dvh;overflow:hidden}.embed-mode .app-shell{height:100vh;height:100dvh}.embed-mode .workspace{min-height:0}.embed-mode .control-column{overscroll-behavior:contain}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 340px;gap:12px;padding:13px}.topbar{padding:0 17px}.control-card{padding:11px 12px}.readout b{font-size:16px}}
@media(max-width:760px){.topbar{height:56px;flex-basis:56px;padding:0 12px}.brand-mark{width:28px;height:28px}.eyebrow{font-size:7px}.brand-lockup{gap:9px}h1{font-size:15px}.process-tag{display:none}.workspace{display:flex;flex-direction:column;gap:9px;padding:9px 10px 10px;overflow:hidden}.stage-column{flex:0 0 auto;min-height:0;gap:7px}.stage-head{min-height:32px}.stage-title-row h2{font-size:13px}.stage-tools{gap:5px}.quiet-button{padding:6px 7px;font-size:7px}.canvas-frame{height:clamp(205px,32dvh,275px);min-height:205px;flex:0 0 auto;border-radius:12px}.canvas-legend{bottom:9px;left:10px;gap:9px;font-size:7px}.canvas-hud{top:10px;font-size:7px}.hud-left{left:10px}.hud-right{right:10px}.stage-caption{min-height:36px;padding:7px 9px;gap:7px}.stage-caption p{font-size:9px;line-height:1.35}.caption-icon{font-size:14px}.step-strip{gap:3px;padding:0}.step-node{gap:4px;padding:3px 0}.step-node span{width:18px;height:18px;font-size:7px}.step-node b{font-size:7px}.step-link{min-width:2px}.control-column{flex:1 1 auto;min-height:0;overflow:auto;padding:0 1px 2px;gap:8px}.control-card,.science-panel{border-radius:12px;padding:10px 11px}.card-head h2{font-size:12px}.micro-label{font-size:8px}.sim-clock{font-size:9px;padding:5px 7px}.transport-controls{margin-top:8px;grid-template-columns:1fr 70px 34px}.primary-button,.square-button{height:32px}.run-note{font-size:8px;margin-top:6px}.quality-row{margin-top:6px}.quality-number strong{font-size:25px}.quality-explain{font-size:8px;margin:2px 0 7px}.readout{padding:6px 5px 6px 0}.readout:nth-child(even){padding-left:8px}.readout span{font-size:8px}.readout b{font-size:15px;margin-top:2px}.check-line{padding-top:7px}.check-line span:not(.check-mark){font-size:7px}.settings-heading{margin-bottom:8px}.preset-row{margin-bottom:9px}.preset-button{padding:7px 6px;gap:6px}.preset-button b{font-size:8px}.preset-button small{font-size:6px}.slider-list{gap:9px}.slider-top label{font-size:8px}.slider-top output{font-size:8px}.range-ends{font-size:6px}.science-panel summary{padding:10px 11px}.science-content{padding:0 11px 11px;font-size:8px}.science-content code{font-size:8px}.panel-foot{font-size:6px;padding-bottom:2px}}
@media(max-width:390px){.canvas-frame{height:clamp(190px,29dvh,240px);min-height:190px}.step-node b{font-size:6px}.step-node span{width:17px;height:17px}.step-strip{gap:2px}.stage-tools .quiet-button{font-size:6px;padding:6px}.readout span{font-size:7px}.readout i{font-size:5px}.control-card{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
