:root{color-scheme:dark;font-family:Inter,Segoe UI,system-ui,sans-serif;font-synthesis:none;--bg: #0b1118;--surface: #121c26;--surface-strong: #172532;--line: #294052;--line-soft: #1d2e3c;--text: #f2f5f7;--text-muted: #9aabb8;--accent: #48a9e6;--accent-strong: #72c4f4;--good: #45c47a;--warning: #f0b44d;--danger: #ef6b62;--radius-sm: .35rem;--radius-md: .7rem;--space-1: .35rem;--space-2: .6rem;--space-3: .9rem;--space-4: 1.25rem;--space-5: 1.75rem;--space-6: 2.5rem;--rail-height: 4rem;--footer-height: 2.2rem}*,*:before,*:after{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{min-width:320px;background:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),var(--bg);background-size:32px 32px;color:var(--text);-webkit-font-smoothing:antialiased}button,a{font:inherit}button:focus-visible,a:focus-visible,h1:focus-visible{outline:3px solid var(--accent-strong);outline-offset:3px}.runtime-root{width:100%;height:100dvh;display:grid;grid-template-rows:var(--rail-height) minmax(0,1fr) var(--footer-height);overflow:hidden}.status-rail{display:flex;align-items:center;gap:clamp(1rem,3vw,3rem);min-width:0;padding:0 clamp(1rem,2.5vw,2.5rem);border-bottom:1px solid var(--line);background:#0d161ef5}.brand{display:inline-flex;align-items:center;gap:.7rem;color:var(--text);text-decoration:none;font-weight:700;letter-spacing:.01em;white-space:nowrap}.brand__mark{width:2rem;height:2rem;display:grid;place-items:center;border:1px solid var(--accent);border-radius:var(--radius-sm);color:var(--accent-strong);font-size:.9rem}.status-facts{display:flex;align-items:center;gap:clamp(1rem,2.5vw,2.5rem);min-width:0;margin:0}.status-facts>div{display:grid;gap:.05rem}.status-facts dt,.job-panel dt{color:var(--text-muted);font-size:.68rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.status-facts dd,.job-panel dd{margin:0;font-weight:650}.connection{display:inline-flex;align-items:center;gap:.5rem;margin-left:auto;color:#b8e8ca;font-size:.8rem;font-weight:650;white-space:nowrap}.connection__dot{width:.6rem;height:.6rem;border-radius:999px;background:var(--good);box-shadow:0 0 0 4px #45c47a1f}.scene-host{min-width:0;min-height:0;overflow:hidden}.runtime-scene{width:min(100%,82rem);height:100%;margin:0 auto;padding:clamp(1.25rem,3.5vw,3.75rem);display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(1.25rem,3vh,2.5rem);overflow:auto;scrollbar-gutter:stable}.runtime-scene--center{place-content:center;justify-items:center;text-align:center}.scene-heading{max-width:54rem}.scene-kicker{display:block;margin-bottom:var(--space-2);color:var(--accent-strong);font-size:.75rem;font-weight:750;letter-spacing:.1em;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:var(--space-3);font-size:clamp(2rem,4.5vw,4.5rem);line-height:1.02;letter-spacing:-.045em}h2{margin-bottom:var(--space-3);font-size:clamp(1.25rem,2vw,1.8rem)}.scene-heading p,.runtime-scene--center p{max-width:45rem;margin-bottom:0;color:var(--text-muted);font-size:clamp(1rem,1.5vw,1.2rem);line-height:1.6}.job-panel{align-self:center;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;margin:0;border:1px solid var(--line);border-radius:var(--radius-md);background:linear-gradient(145deg,#172532f0,#101b25f0);box-shadow:0 1.2rem 3rem #00000038}.job-panel>div{min-width:0;padding:clamp(1rem,2vw,1.7rem);border-right:1px solid var(--line-soft)}.job-panel>div:last-child{border-right:0}.job-panel dd{margin-top:var(--space-2);overflow-wrap:anywhere;line-height:1.4}.status-chip{display:inline-flex;align-items:center;min-height:2rem;padding:.25rem .7rem;border-radius:999px;font-size:.76rem}.status-chip--ready{background:#f0b44d1f;color:#ffd18a}.scene-kicker--good{color:#78dda0}.scene-kicker--danger{color:#ff9a92}.measurement-form{align-self:center;display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,2vw,1.5rem);width:100%;padding:clamp(1rem,2.5vw,2rem);border:1px solid var(--line);border-radius:var(--radius-md);background:#121c26f2}.measurement-field{display:grid;gap:.55rem}.measurement-field--wide{grid-column:1 / -1}.measurement-field label,.draft-editor label{font-size:.8rem;font-weight:750;letter-spacing:.04em}.measurement-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg)}.measurement-control:focus-within{border-color:var(--accent)}.measurement-control input,.measurement-field select,.draft-editor input,.draft-editor textarea{width:100%;min-height:3.25rem;padding:.75rem .9rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font:inherit}.measurement-control input{border:0;background:transparent;font-family:Cascadia Mono,Consolas,monospace;font-size:1.25rem}.measurement-control input:focus,.measurement-field select:focus,.draft-editor input:focus,.draft-editor textarea:focus{outline:2px solid var(--accent);outline-offset:2px}.measurement-control span{padding:0 .9rem;color:var(--text-muted)}.measurement-field small{color:var(--text-muted)}.inline-error{grid-column:1 / -1;margin:0;padding:.7rem .9rem;border-left:3px solid var(--danger);background:#ef6b621a;color:#ffc1bc}.result-panel,.confirmation-panel{align-self:center;display:grid;gap:.8rem;width:100%;padding:clamp(1.25rem,3vw,2.5rem);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}.result-panel strong{font-family:Cascadia Mono,Consolas,monospace;font-size:clamp(1.5rem,4vw,3.5rem);letter-spacing:.04em}.result-panel--good{border-color:#45c47a8c;background:linear-gradient(135deg,rgba(69,196,122,.12),var(--surface))}.result-panel--good strong{color:#78dda0}.result-panel--danger{border-color:#ef6b628c;background:linear-gradient(135deg,rgba(239,107,98,.12),var(--surface))}.result-panel--danger strong{color:#ff9a92}.result-panel ul{margin:0;padding-left:1.25rem;line-height:1.7}.draft-editor{align-self:center;display:grid;gap:.6rem;width:100%;padding:clamp(1rem,2.5vw,2rem);border:1px solid var(--line);background:var(--surface)}.draft-editor textarea{min-height:8rem;resize:vertical;line-height:1.5}.draft-editor__meta{display:flex;justify-content:space-between;gap:1rem;color:var(--text-muted);font-size:.78rem}.confirmation-panel{max-height:100%;overflow:auto;border-left:4px solid var(--warning)}.confirmation-panel p{margin-bottom:0;white-space:pre-wrap;color:#cbd5dc;line-height:1.55}.scene-actions__group{display:flex;justify-content:flex-end;gap:var(--space-3)}.danger-action{min-height:3.25rem;padding:.75rem 1.1rem;border:1px solid rgba(239,107,98,.6);border-radius:var(--radius-sm);background:transparent;color:#ffaaa4;font-weight:700;cursor:pointer}.primary-action--danger{border-color:#ff9a92;background:var(--danger);color:#170908}.reference-code{font-family:Cascadia Mono,Consolas,monospace;overflow-wrap:anywhere}.instruction-panel{align-self:center;display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(1rem,3vw,2.5rem);padding:clamp(1.25rem,3vw,2.5rem);border-left:4px solid var(--accent);background:var(--surface)}.instruction-panel__number{color:var(--accent-strong);font-family:Cascadia Mono,Consolas,monospace;font-size:clamp(2rem,5vw,4rem);font-weight:750;line-height:1}.instruction-panel ol{margin:0;padding-left:1.25rem;color:#d7e0e6;line-height:1.8}.scene-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--space-3)}.scene-actions--split{justify-content:space-between}.primary-action,.secondary-action{min-height:3.25rem;border-radius:var(--radius-sm);font-weight:750;cursor:pointer}.primary-action{min-width:min(100%,20rem);display:inline-flex;align-items:center;justify-content:space-between;gap:2rem;padding:.85rem 1.2rem;border:1px solid var(--accent-strong);background:var(--accent);color:#071018;box-shadow:0 .8rem 2rem #48a9e62e}.primary-action:hover{background:var(--accent-strong)}.secondary-action{padding:.75rem 1.1rem;border:1px solid var(--line);background:var(--surface);color:var(--text)}.secondary-action:hover{border-color:var(--accent)}.milestone-note{color:var(--text-muted);font-size:.82rem;text-align:right}.runtime-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-width:0;padding:0 clamp(1rem,2.5vw,2.5rem);border-top:1px solid var(--line-soft);color:var(--text-muted);font-size:.72rem}.runtime-footer__build{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.runtime-tools{display:flex;align-items:center;gap:.45rem;min-width:0}.runtime-tools button,.dialog-heading button{min-width:2.25rem;min-height:2.25rem;padding:.35rem .65rem;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);cursor:pointer}.runtime-tools button span{color:var(--text-muted);font-size:.68rem}.runtime-dialog{width:min(calc(100% - 2rem),38rem);max-height:min(80dvh,44rem);padding:clamp(1rem,3vw,2rem);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-strong);color:var(--text);box-shadow:0 2rem 6rem #0000008c}.runtime-dialog::backdrop{background:#03080cc2;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.dialog-heading h2{margin:0}.runtime-dialog>label{display:block;margin:1rem 0 .4rem;font-weight:700}.runtime-dialog>input{width:100%;min-height:3rem;margin-bottom:.8rem;padding:.7rem;border:1px solid var(--line);background:var(--bg);color:var(--text)}.runtime-dialog .primary-action{width:100%}.assistant-reply{margin:1rem 0 0;padding:1rem;border-left:3px solid var(--accent);background:var(--bg);line-height:1.55}.shortcut-list{display:grid;gap:.6rem;margin:0}.shortcut-list>div{display:grid;grid-template-columns:minmax(8rem,.6fr) 1fr;gap:1rem;padding:.7rem 0;border-top:1px solid var(--line-soft)}.shortcut-list dt{font-weight:750}.shortcut-list dd{margin:0;color:var(--text-muted)}.boot-indicator{width:2.6rem;height:2.6rem;margin-bottom:var(--space-4);border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}.scene-forward-enter-active,.scene-forward-leave-active,.scene-back-enter-active,.scene-back-leave-active,.scene-neutral-enter-active,.scene-neutral-leave-active{transition:opacity .18s ease,transform .18s ease}.scene-forward-enter-from,.scene-back-leave-to{opacity:0;transform:translate(1.5rem)}.scene-forward-leave-to,.scene-back-enter-from{opacity:0;transform:translate(-1.5rem)}.scene-neutral-enter-from,.scene-neutral-leave-to{opacity:0}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:760px){:root{--rail-height: 3.5rem;--footer-height: 2rem}.status-rail{gap:.8rem}.brand>span:last-child,.status-facts__operator{display:none}.status-facts{gap:.8rem}.status-facts dt{font-size:.58rem}.status-facts dd{font-size:.78rem}.connection{font-size:0}.runtime-scene{padding:1.1rem;gap:1rem}h1{font-size:clamp(1.8rem,10vw,2.8rem)}.job-panel{grid-template-columns:1fr 1fr}.job-panel>div{border-right:0;border-bottom:1px solid var(--line-soft)}.job-panel>div:nth-child(odd){border-right:1px solid var(--line-soft)}.job-panel>div:nth-last-child(-n+2){border-bottom:0}.instruction-panel,.measurement-form{grid-template-columns:1fr}.measurement-field--wide{grid-column:auto}.scene-actions__group,.draft-editor__meta{align-items:stretch;flex-direction:column}.scene-actions__group>*,.danger-action{width:100%}.instruction-panel__number{font-size:1.5rem}.scene-actions,.scene-actions--split{align-items:stretch;flex-direction:column-reverse}.primary-action,.secondary-action{width:100%;min-height:3.4rem}.milestone-note{text-align:left}.runtime-footer>span:first-child{display:none}.runtime-footer{justify-content:flex-end}.runtime-tools>button:first-child span,.runtime-footer__build{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important}}
