@font-face{font-family:Plex;src:url('/public/fonts/IBMPlexMono-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--bg:#080908;--ink:#ded9bd;--dim:#aaa58b;--line:#38372d;--green:#71957d;--hot:#cd796e;--cell:13px;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{font:400 12px/13px Plex,monospace;transition:background-color .3s,color .3s}button,input,a{font:inherit;color:inherit}button{cursor:pointer;border:0;background:transparent}a{text-decoration:none}button,a{-webkit-tap-highlight-color:transparent}button:hover,a:hover{color:#fff9df}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:1px solid var(--ink);outline-offset:5px}::selection{background:var(--ink);color:var(--bg)}[hidden]{display:none!important}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;z-index:20;top:12px;left:12px;padding:12px;background:var(--ink);color:var(--bg)}
.stage{position:relative;width:min(1008px,calc(100% - 128px));height:100dvh;min-height:600px;margin:auto;display:grid;grid-template-rows:78px minmax(0,1fr);padding-bottom:13px}.frame-top{position:relative;display:flex;align-items:flex-start;justify-content:space-between;padding:39px 7px 0}.brand{display:flex;align-items:center;gap:7px}.github{color:var(--dim)}.brand,.github{position:relative}.brand:after,.github:after{content:'';position:absolute;inset:-14px -8px}.intro{position:relative;min-height:0}.intro-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.intro-bottom{position:absolute;bottom:26px;left:7px;right:7px;display:flex;justify-content:space-between;gap:24px}.intro-bottom>div{display:flex;gap:16px}.theme-key{color:var(--dim);padding:0}.enter{background:var(--ink);color:var(--bg);padding:0 7px}.enter:hover{color:var(--bg);background:#fff9df}.intro-modes{position:absolute;top:67%;width:100%;display:grid;grid-template-columns:1fr 1fr;pointer-events:none}.intro-modes span{display:block;width:max-content;padding-inline:7px;color:var(--bg);background:var(--ink)}body[data-view=intro] .stage{width:min(720px,calc(100% - 96px))}
.projects{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 46px 170px 13px}.editor{min-height:0;display:grid;grid-template-columns:230px minmax(0,1fr)}.wheel{position:relative;min-height:0;border-right:1px solid var(--line);touch-action:none;user-select:none;outline-offset:-1px!important;isolation:isolate}.wheel:after{content:'scroll · drag the wheel';position:absolute;left:7px;bottom:5px;color:var(--dim);font-size:10px;z-index:4;pointer-events:none}.wheel-ink{position:absolute;left:-150px;top:0;width:380px;height:100%;pointer-events:none}.wheel-list{position:absolute;inset:0;overflow:hidden}.wheel-item{position:absolute;top:50%;left:80px;width:112px;height:80px;border:1px solid var(--line);padding:0;text-align:left;transform-origin:center;will-change:transform;transition:border-color .2s;background:var(--bg)}.wheel-thumb{display:block;width:100%;height:calc(100% - 14px);object-fit:cover;filter:sepia(.35) saturate(.45);opacity:.65}.wheel-label{display:block;height:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:4px;font-size:8px;color:var(--dim)}.wheel-item[aria-selected=true]{border-color:var(--ink);z-index:3}.wheel-item[aria-selected=true] .wheel-thumb{opacity:1}.wheel-item[aria-selected=true] .wheel-label{color:var(--ink)}.wheel-item[aria-selected=true]:after{content:'▶';position:absolute;left:calc(100% + 5px);top:40%;color:var(--ink)}.wheel-text{display:grid;height:64px;place-items:center;font-size:20px;color:var(--ink)}
.pane{position:relative;min-width:0;min-height:0;padding:12px 16px 0;overflow:hidden}.winbar{position:relative;z-index:1;margin:0 0 1px 28px;color:var(--dim);font-size:11px}.blueprint{display:block;width:calc(100% - 214px);height:300px;border:1px solid #514e3c}.buffer{position:relative;width:calc(100% - 214px);height:calc(100% - 330px);min-height:80px;overflow:auto;padding-top:14px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;white-space:pre-wrap;overflow-wrap:anywhere;outline-offset:-1px!important}.prompt{color:var(--dim);margin:0}.prompt em{color:var(--green);font-style:normal}.terminal-command{margin:0;color:var(--ink)}.terminal-block{margin:0 0 13px}.terminal-line{margin:0;min-height:13px}.terminal-line a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.terminal-prompt{display:inline-block;width:7px;height:12px;background:var(--ink);vertical-align:bottom}.terminal-artwork{display:block;max-width:100%;max-height:225px;object-fit:contain;margin:13px 0;cursor:zoom-in}.terminal-artwork.zoomed{max-height:none;width:100%;cursor:zoom-out}.entity{position:absolute;right:8px;top:72px;width:190px;height:220px;pointer-events:none}.bar{display:grid;grid-template-columns:230px repeat(6,minmax(50px,1fr)) 170px;border-top:1px solid var(--line);padding-top:8px;gap:10px;font-size:10px;line-height:13px;position:relative;z-index:2}.bar-id>span{font-size:11px;letter-spacing:1px}.key-feedback{display:block;margin-top:4px;color:var(--dim);font-size:9px;white-space:nowrap}.stat>span,.snapshot>span:first-child{display:block;color:var(--dim);font-size:9px;letter-spacing:.7px}.stat b{display:block;font-weight:400;font-size:12px}.stat:nth-child(2) b,.stat:nth-child(3) b,.stat:nth-child(4) b{color:var(--hot)}.worm-switch{font-size:10px;padding:0}.snapshot{display:grid;grid-template-columns:1fr auto;gap:1px 5px;font-size:9px}.snapshot-date{color:var(--dim)}.spark{grid-column:1/-1;width:100%;height:15px}.study-note{grid-row:4;margin:0;color:var(--dim);font-size:8px;letter-spacing:.4px}.tabline{display:none}.command{position:absolute;z-index:10;bottom:13px;left:0;right:0;border-top:1px solid var(--line);background:var(--bg);display:flex;align-items:center;gap:7px;min-height:39px}.command-input{flex:1;min-width:0;border:none;background:transparent;outline-offset:0;caret-color:var(--ink);height:32px}.command-help{font-size:10px;color:var(--dim)}.transition{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:15;opacity:0}.transition.active{opacity:1}.pane.is-changing .buffer{animation:terminal-enter .25s ease-out}.loading .intro{opacity:.4}.load-error{color:var(--hot);margin-top:26px}
@keyframes terminal-enter{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.stage{width:calc(100% - 64px)}.editor{grid-template-columns:210px minmax(0,1fr)}.blueprint,.buffer{width:100%}.entity{right:0;top:72px;opacity:.2;width:140px;height:160px}.bar{grid-template-columns:210px repeat(4,minmax(45px,1fr)) 150px;gap:6px}.entity-state{display:none}}
@media(max-width:700px){.stage,body[data-view=intro] .stage{width:calc(100% - 28px);min-height:480px;grid-template-rows:65px minmax(0,1fr);padding-bottom:13px}.frame-top{padding:27px 7px 0}.projects{grid-template-rows:32px minmax(0,1fr) 74px 13px}.tabline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 7px;min-height:32px}.tab-file{color:var(--dim);margin-left:auto;margin-right:14px}.editor{grid-template-columns:1fr;position:relative}.pane{padding:14px 7px 0}.blueprint{height:225px;width:100%}.buffer{height:calc(100% - 254px);width:100%;padding-top:14px}.entity{width:100px;height:125px;top:34px;right:15px;opacity:.15}.wheel{display:none;position:absolute;inset:0;z-index:5;background:var(--bg);border-right:0}.drawer-open .wheel{display:block}.wheel-item{left:calc(50% - 28px)}.wheel-ink{left:calc(50% - 180px);width:380px}.bar{grid-row:3;grid-template-columns:repeat(4,1fr);gap:5px;padding-top:7px;font-size:10px}.bar-id{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px}.key-feedback{font-size:8px;margin-top:0}.snapshot{display:none}.study-note{font-size:7px;letter-spacing:0}.intro-bottom{bottom:22px;flex-wrap:wrap;gap:18px}.intro-bottom>div{margin-left:auto}.intro-modes{top:64%}.command{bottom:13px}.command-help{display:none}.worm-switch{padding:0;min-height:15px}.intro-bottom a,.intro-bottom button{padding:7px}.intro-canvas{height:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.wheel-item{will-change:auto}}

.wheel-list{margin:0;padding:0;list-style:none}.wheel-thumb-text{display:grid;place-items:center;font-size:22px}.wheel-item[data-index="0"] .wheel-thumb{object-fit:contain;padding:14px 25px}.buffer:focus-visible{outline-color:var(--ink)}

.wheel-item[data-index="5"] .wheel-thumb{object-fit:contain;padding:12px}.wheel-item[data-index="7"] .wheel-thumb-text{font-size:11px;letter-spacing:3px;line-height:20px}.wheel-item[data-index="8"] .wheel-thumb-text{background:var(--bg);color:var(--ink)}.swatches{display:flex;gap:13px;margin-top:13px}.swatches button{min-height:32px;min-width:32px;border:1px solid var(--line)}

.pane:has(.blueprint[hidden]) .buffer{height:calc(100% - 20px)}

@media(max-width:700px){
 .stage,body[data-view=intro] .stage{width:calc(100% - 40px);grid-template-rows:78px minmax(0,1fr)}
 .frame-top{padding-top:39px}.projects{grid-template-rows:26px minmax(0,1fr) 45px 0}.tabline{min-height:26px;height:26px}
 .pane{padding:6px 0 0 14px}.winbar{display:none}.blueprint{height:240px}.buffer{height:calc(100% - 260px)}
 .entity{position:fixed;top:0;left:calc(50% - 50px);right:auto;width:100px;height:96px;opacity:.5}
 .bar{grid-template-columns:minmax(0,1fr) 115px;gap:7px}.bar-id{display:block;grid-column:auto}.bar .stat{display:none}.key-feedback{margin-top:4px}
 .snapshot{display:grid;grid-template-columns:1fr}.snapshot>span:first-child{font-size:7px}.snapshot-date{display:none}.spark{height:12px}.study-note{display:none}
}

.terminal-entry{display:block;text-align:left;color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:5px 0;min-height:26px}

.intro-canvas{position:fixed;inset:0;width:100vw;height:100dvh}.frame-top,.intro-bottom,.intro-modes{z-index:1}body[data-view=intro] .frame-top{padding-inline:0}
html[data-motion=still] .intro-modes{top:auto;bottom:62px;grid-template-columns:1fr}html[data-motion=still] .intro-modes span+span{display:none}
@media(max-width:700px){body[data-view=intro] .stage{width:calc(100% - 112px)}.intro-modes{top:auto;bottom:62px;grid-template-columns:1fr}.intro-modes span+span{display:none}.intro-bottom{left:0;right:0}.intro-bottom>span{display:none}.intro-bottom>div{gap:8px}.intro-bottom a,.intro-bottom button{padding:0 7px}}

/* Single editor composition pinned to the supplied reference captures. */
body[data-view=intro] .stage{width:min(1200px,60vw)}
body[data-view=intro] .frame-top,.intro-bottom{font-size:clamp(12px,1vw,16px);line-height:1.2}
.intro-modes{position:fixed;top:70dvh;bottom:auto;left:18vw;width:66vw;display:flex;align-items:center;gap:8px;height:clamp(15px,1.2vw,21px);background:#151514;font-size:clamp(11px,.93vw,16px);line-height:1;white-space:nowrap}
.intro-modes span{padding:0;background:none;color:var(--dim);min-width:0}
.intro-modes .mode-label{align-self:stretch;display:flex;align-items:center;padding-inline:7px;background:var(--ink);color:var(--bg)}
.intro-modes[data-mode=INSERT] .mode-label{background:var(--green)}
.intro-file{overflow:hidden;text-overflow:ellipsis}.intro-position{margin-left:auto;padding-right:5px!important}
.intro-command{position:fixed;top:calc(70dvh + clamp(15px,1.2vw,21px));left:18vw;margin:0;color:var(--dim);font-size:clamp(11px,.93vw,16px);line-height:1.2}
.transition.active{pointer-events:auto}
.portal-brand{position:fixed;top:50%;left:50%;z-index:16;display:flex;flex-direction:column;align-items:center;gap:clamp(16px,2.4vmin,28px);visibility:hidden;opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(var(--portal-brand-scale,.98))}
.portal-brand img{display:block;width:var(--portal-logo-size,144px);height:var(--portal-logo-size,144px);filter:none;image-rendering:pixelated}
.portal-brand span{display:block;width:clamp(176px,32vmin,320px);max-width:72vw;aspect-ratio:57/7;color:transparent;font-size:0;background:url("/public/assets/supa-agent-code-wordmark.svg") center/contain no-repeat}
.transition.active+.portal-brand{visibility:visible;opacity:var(--portal-brand-opacity,0)}
.intro-mascot{--mascot-size:clamp(128px,16vw,220px);position:fixed;left:auto;right:12vw;top:100px;width:var(--mascot-size);height:var(--mascot-size);opacity:.6;filter:blur(.2px);pointer-events:none;user-select:none;z-index:0}
.intro-canvas{z-index:1}
@media(max-width:700px){.intro-mascot{--mascot-size:112px;right:20px;top:80px}}
html[data-motion=still] .intro-modes{top:70dvh;bottom:auto;display:flex}
html[data-motion=still] .intro-modes span+span{display:block}
@media(max-width:700px){
 body[data-view=intro] .stage{width:calc(100% - 40px)}
 .intro-modes,html[data-motion=still] .intro-modes{left:20px;width:calc(100vw - 40px);top:70dvh;bottom:auto;display:flex}
 .intro-modes span+span{display:block}.intro-command{left:20px}
 .intro-bottom>span{display:block;font-size:11px}.intro-bottom{gap:10px;bottom:22px}.intro-bottom>div{gap:8px}
}

/* Product records retain the approved terminal geometry and palette. */
.workspace-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 12px;font-size:11px;line-height:1.5}
.workspace-controls select{max-width:100%;min-width:0;flex:1;background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:6px;font:inherit}
.workspace-controls button,.workspace-controls a{min-height:32px;padding:5px 0;text-decoration:underline;text-underline-offset:4px;color:var(--dim)}
.workspace-controls button:disabled{opacity:.65}.terminal-heading{font-size:14px;line-height:1.5;margin:20px 0 8px}.terminal-notice{color:var(--dim);margin:10px 0;line-height:1.6}
.buffer{line-height:1.6;height:calc(100% - 394px)}.terminal-line{margin-bottom:12px}.terminal-command{margin-bottom:12px}.terminal-entry{min-height:44px;padding:10px 0;line-height:1.5;overflow-wrap:anywhere}
.pane:has(.blueprint[hidden]) .buffer{height:calc(100% - 85px)}.saved-draft{margin:18px 0;padding:12px 0;border-block:1px solid var(--line)}.saved-draft blockquote{margin:0 0 12px;line-height:1.7;white-space:pre-wrap}.saved-draft figcaption{font-size:11px;line-height:1.6}
.calculation{margin:12px 0;color:var(--dim)}.calculation summary{cursor:pointer;min-height:32px}.calculation[open]{animation:terminal-enter .2s ease-out}.wheel-label{font-size:11px;height:18px;line-height:18px}.wheel-thumb{height:calc(100% - 18px)}.wheel-thumb-text{font-size:15px;letter-spacing:1px}.wheel-item[data-index="8"] .wheel-thumb-text{background:var(--bg);color:var(--ink)}.wheel-item[data-index="7"] .wheel-thumb-text{font-size:15px;letter-spacing:1px}.wheel-item[data-index="5"] .wheel-thumb{padding:0}.wheel:after{font-size:11px}.bar,.key-feedback,.stat>span,.snapshot>span:first-child,.snapshot-date,.study-note,.worm-switch{font-size:11px}.bar{grid-template-columns:200px repeat(6,minmax(42px,1fr)) 150px;gap:6px}.study-note{line-height:1.5}.bar-id>span{letter-spacing:0}.stat:nth-child(n) b{color:var(--ink)}.entity-state{opacity:1}.command-help{font-size:11px}.command button{min-height:44px;min-width:44px}.theme-key,.enter{min-height:32px;display:inline-flex;align-items:center}
@media(max-width:1100px){.bar{grid-template-columns:190px repeat(4,minmax(45px,1fr)) 130px}.blueprint{height:260px}.buffer{height:calc(100% - 370px)}}
@media(max-width:700px){
 .workspace-controls{gap:5px 12px}.workspace-controls select{width:calc(100% - 60px)}.workspace-controls button,.workspace-controls a{min-height:44px}.pane{padding:8px 0 0}.blueprint{height:160px}.buffer{height:calc(100% - 286px)}.pane:has(.blueprint[hidden]) .buffer{height:calc(100% - 120px)}
 .projects{grid-template-rows:44px minmax(0,1fr) 52px 0}.tabline{height:44px;min-height:44px}.bar{grid-template-columns:minmax(0,1fr) 115px}.key-feedback,.snapshot>span:first-child{font-size:11px}.snapshot{overflow:hidden}.intro-bottom>span{max-width:50%;line-height:1.5}.intro-bottom>div{align-items:center}.intro-bottom a,.intro-bottom button{min-height:44px;min-width:44px}.wheel-label{white-space:normal;height:auto;line-height:1.3}.wheel-item{height:90px}.menu-open{overflow:hidden}.drawer-open .wheel{position:fixed;inset:122px 0 0;z-index:12}.drawer-open .tabline{position:fixed;top:78px;left:20px;right:20px;z-index:13;background:var(--bg)}.drawer-open .wheel:after{bottom:20px}.drawer-open .wheel-ink{left:calc(50% - 180px)}.drawer-open .wheel-item{left:calc(50% - 56px)}.command{position:fixed;bottom:0;left:20px;right:20px;z-index:14}.intro-bottom{bottom:14px}
}
.pane{display:flex;flex-direction:column}.workspace-controls,.winbar{flex-shrink:0}.blueprint{height:200px;flex-shrink:0}.buffer,.pane:has(.blueprint[hidden]) .buffer{height:auto;min-height:80px;flex:1}.projects{grid-template-rows:minmax(0,1fr) 58px 56px 20px}.terminal-heading:first-of-type{margin-top:12px}
@media(max-width:700px){.projects{grid-template-rows:44px minmax(0,1fr) 52px 0}.blueprint{height:130px}.workspace-controls{margin-bottom:4px}.intro-bottom>span{font-size:11px}.buffer{font-size:12px}.drawer-open .wheel{inset:122px 0 0}}

.terminal-heading{font-weight:400}.snapshot-date{overflow-wrap:anywhere}.snapshot{min-width:0}.key-feedback{white-space:normal}

.snapshot{grid-template-columns:1fr}.snapshot-date{white-space:nowrap}
@media(max-width:700px){.workspace-controls label{flex:0 0 32px}.workspace-controls select{flex:1 1 calc(100% - 48px)}.workspace-controls button,.workspace-controls a{flex:0 0 auto}.workspace-controls{column-gap:10px}}

@media(max-width:700px){.workspace-controls select{min-height:44px}}

/* Workspace utilities live in the footer's command panel, away from records. */
.footer-command{display:block;min-height:44px;width:100%;padding:0;text-align:left;line-height:1.3}
.footer-command>span{font-size:11px}.footer-command .key-feedback{margin-top:4px}
.command{flex-wrap:wrap;padding-block:6px}.command-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;flex:1 0 100%}
.command-actions button,.command-actions a{display:inline-flex;align-items:center;min-height:44px;padding:4px 0;color:var(--dim);text-decoration:underline;text-underline-offset:4px}
.wheel-item[data-index="0"] .wheel-thumb{padding:6px 14px;filter:none;image-rendering:auto}

/* Input illustration reserves its own space below saved-record status. */
.workspace-hands{display:block;grid-row:3;width:100%;height:144px;pointer-events:none}
.projects{grid-template-rows:minmax(0,1fr) 58px 144px 20px}
@media(max-width:700px){.projects{grid-template-rows:44px minmax(0,1fr) 52px 100px 0}.workspace-hands{grid-row:4;height:100px}.study-note{grid-row:5}}

/* Illustrated section index: decorative schematics, never saved-record previews. */
.wheel-item[data-index] .wheel-preview{padding:5px 7px;filter:none;color:var(--ink)}
.wheel-item .wheel-thumb{height:calc(100% - 30px);opacity:.82}
.wheel-item .wheel-label{height:30px;padding:0 7px 4px;display:flex;flex-direction:column;justify-content:flex-end;gap:1px;line-height:13px;white-space:normal;overflow:visible}
.wheel-name{display:block;font-size:12px;color:var(--ink);overflow-wrap:anywhere}
.wheel-planned{display:block;font-size:10px;color:var(--dim)}
.wheel-item:hover{border-color:var(--dim)}

/* Keep the input illustration at the viewport edge on every workspace view. */
body[data-view=projects] .stage{height:100dvh;min-height:0;padding-bottom:0}
.projects{--hands-height:clamp(112px,16dvh,160px);grid-template-rows:minmax(0,1fr) 58px 20px calc(var(--hands-height) + env(safe-area-inset-bottom,0px))}
.workspace-hands{position:fixed;left:50%;bottom:env(safe-area-inset-bottom,0px);transform:translateX(-50%);width:min(1008px,calc(100vw - 64px));height:var(--hands-height);z-index:2}
.study-note{grid-row:3}
.blueprint{height:clamp(220px,26dvh,300px)}
@media(max-width:700px){
 .projects{--hands-height:clamp(96px,15dvh,124px);grid-template-rows:44px minmax(0,1fr) 52px calc(var(--hands-height) + env(safe-area-inset-bottom,0px))}
 .workspace-hands{width:calc(100vw - 40px)}
 .blueprint{height:clamp(190px,30dvh,290px)}
}
@media(max-width:700px) and (max-height:650px){.blueprint{height:160px}.projects{--hands-height:96px}}

/* In-page agent picker keeps its popup inside the current viewport/iframe. */
.agent-picker{position:relative;min-width:0;flex:1}
.workspace-controls .agent-trigger{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);text-align:left;text-decoration:none;line-height:1.5}
#agent-selected-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agent-chevron{width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);flex:none;margin:0 2px 3px 0}
.agent-trigger:disabled{color:var(--dim)}
.agent-options{position:fixed;z-index:14;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--line);background:var(--bg);padding:3px;scrollbar-width:thin;scrollbar-color:var(--line) var(--bg)}
.workspace-controls .agent-option{display:block;width:100%;min-height:44px;padding:10px;text-align:left;text-decoration:none;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:var(--ink);background:var(--bg)}
.agent-option[aria-selected=true]{color:var(--green)!important;background:#141816!important}
.agent-option:focus-visible{outline-offset:-2px}
.autonomy-form{display:grid;gap:12px;margin:14px 0;white-space:normal;line-height:1.6}
.autonomy-form textarea{display:block;width:100%;resize:vertical;min-height:88px;padding:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;caret-color:var(--ink)}
.autonomy-form textarea:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
[data-economy=jobs] select,[data-economy=jobs] input:not([type=checkbox]){width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;color-scheme:dark}
[data-economy=jobs] select:focus-visible,[data-economy=jobs] input:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.autonomy-consent{display:flex;align-items:flex-start;gap:10px}.autonomy-consent input{flex:none;width:18px;height:18px;margin:3px 0;accent-color:var(--green)}
.autonomy-panel button{min-height:44px;padding:8px 10px;border:1px solid var(--line);text-align:left;white-space:normal}.autonomy-panel>button{margin:8px 8px 8px 0}
.schedule-form select,.schedule-form input[type=number]{display:block;min-height:44px;width:100%;margin-top:6px;padding:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;color-scheme:dark}.schedule-policy{display:grid;gap:14px;min-width:0;margin:0;padding:12px;border:1px solid var(--line)}.schedule-policy legend{padding:0 6px}.schedule-form :disabled{opacity:.6}.schedule-form select:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
/* Keep native scrolling, with a single-pixel terminal line in supporting browsers. */
@supports selector(::-webkit-scrollbar){
  .buffer,.agent-options{scrollbar-width:auto;scrollbar-color:auto}
  .buffer::-webkit-scrollbar,.agent-options::-webkit-scrollbar{width:1px;height:1px}
  .buffer::-webkit-scrollbar-thumb,.agent-options::-webkit-scrollbar-thumb{background:var(--line);border-radius:0}
  .buffer::-webkit-scrollbar-track,.agent-options::-webkit-scrollbar-track{background:transparent}
  .buffer::-webkit-scrollbar-button,.agent-options::-webkit-scrollbar-button{display:none}
}

/* Static texture sits behind the interface; text and hit targets stay crisp. */
body{isolation:isolate}
body:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:url('/public/assets/terminal-grain.svg'),radial-gradient(ellipse at 50% 35%,rgba(113,125,84,.035),transparent 68%)}
.blueprint{border-color:var(--line)}
.wheel-item[aria-selected=true]{border-color:var(--ink)}
.wheel-item[aria-selected=true] .wheel-preview{color:var(--ink)}
.intro-mascot{opacity:.48;animation:entity-arrival 1.7s cubic-bezier(.16,1,.3,1) both}
.pane.is-changing .buffer{animation:terminal-enter .32s cubic-bezier(.16,1,.3,1)}
@keyframes entity-arrival{from{opacity:.08}to{opacity:.48}}
@media(prefers-reduced-motion:reduce){.intro-mascot{animation:none;transform:none}.pane.is-changing .buffer{animation:none}}

/* Immediate text access stays in the existing identity toolbar, without another row. */
.workspace-controls .skip-typing{flex:0 0 auto;max-width:90px;min-height:44px;padding:8px;color:var(--ink);line-height:1.3;text-underline-offset:3px}
@media(max-width:700px){.workspace-controls .skip-typing{font-size:9px}}
@media(hover:hover){.agent-trigger:not(:disabled):hover{border-color:var(--green)}.agent-option:hover{background:#141816}}

.buffer{padding-inline:8px}

/* Launch controls inherit the existing terminal form language. */
.launch-panel input:not([type=checkbox]){display:block;min-height:44px;width:100%;min-width:0;max-width:100%;margin-top:6px;padding:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;caret-color:var(--ink);color-scheme:dark}
.launch-panel input:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.launch-panel :disabled{opacity:.6}
