@font-face{font-family:'Mona Sans';src:url('assets/mona-sans.woff2') format('woff2');font-weight:200 900;font-stretch:75% 125%;font-display:swap}@font-face{font-family:'JetBrains Mono';src:url('assets/jetbrains-mono.woff2') format('woff2');font-weight:100 800;font-display:swap}
:root{color-scheme:dark;--header-h:91px;--bg:#0f1113;--panel:#141719;--panel2:#1a1d21;--line:#2b3035;--soft-line:#23272b;--ink:#f1f2f0;--muted:#aeb4b9;--dim:#9aa2a9;--orange:#ff4f00;--orange-light:#ff6a26;--green:#34c38a;--mono:'JetBrains Mono',monospace;--sans:'Mona Sans',Arial,sans-serif;font-family:var(--sans);font-size:16px;font-weight:400;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:hover{color:#fff}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--orange-light);outline-offset:4px}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit}svg{display:block}button svg{pointer-events:none}button span{pointer-events:none}button .icon{flex-shrink:0}.icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block}.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}.meta{font-size:12px;color:var(--dim)}.subdued{color:var(--dim);font-size:12px}.secondary{color:var(--muted);font-size:13px}.eyebrow,.section-label{font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.09em;color:var(--dim);text-transform:uppercase}.section-label{margin:0;letter-spacing:.045em}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--dim);border-radius:7px;flex-shrink:0}.icon-button:hover{background:#252a2e;color:var(--ink)}.icon-button.active{color:var(--orange-light);background:#ff4f0012}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:20px;top:-80px;z-index:100;background:var(--orange);color:var(--bg);padding:12px 20px;border-radius:6px}.skip-link:focus{top:10px}
.app-layout{display:grid;grid-template-columns:64px 226px minmax(440px,1fr) 342px;height:calc(100dvh - 31px)}.nav-rail{border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:20px 0 14px;background:#101214}.rail-top,.rail-bottom{display:flex;flex-direction:column;gap:14px}/* The brand mark at the head of the rail. It sits a little apart from the
   buttons below it -- a logo is not a nav item, and giving it the same 14px
   gap made it read as a fourth button. The extra bottom margin plus the hair
   line is the usual way to say 'this is the mark, those are the controls'. */
.rail-brand{width:40px;height:34px;display:grid;place-items:center;margin-bottom:6px;padding-bottom:12px;border-bottom:1px solid var(--soft-line);opacity:.95}.rail-brand:hover{opacity:1}.rail-brand img{width:22px;height:22px}.rail-brand img.theme-dark-asset{display:block}[data-theme="light"] .rail-brand img.theme-dark-asset{display:none}.rail-brand img.theme-light-asset{display:none}[data-theme="light"] .rail-brand img.theme-light-asset{display:block}.rail-button{width:40px;height:40px;display:grid;place-items:center;color:var(--dim);border-radius:8px;position:relative}.rail-button .icon{width:20px;height:20px}.rail-button:hover{background:#22262a}.rail-button.active{background:#ff4f0015;color:var(--orange-light)}.rail-button.active:before{position:absolute;content:'';width:2px;height:18px;left:-12px;background:var(--orange);border-radius:1px}.work-panel{border-right:1px solid var(--line);background:#121416;padding:17px 17px 0;display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin}.panel-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.panel-title-row .icon-button{width:24px;height:24px}.work-card{text-align:left;padding:14px 13px 12px;background:linear-gradient(125deg,#252a2e,#1c2024);border:1px solid #3b4249;border-radius:9px;display:flex;flex-direction:column;gap:8px;width:100%}.work-card:hover{border-color:#59616a}.work-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.work-symbol{width:26px;height:26px;display:grid;place-items:center;background:#383e44;border:1px solid #424a51;border-radius:5px;color:#d2d6d9}.work-symbol .icon{width:15px}.work-card strong{font-size:15px;font-weight:550}.work-card .secondary{font-size:12px;color:#9da5ac}.work-progress{height:3px;border-radius:3px;background:#394047;margin-top:8px;overflow:hidden}.work-progress span{display:block;background:#b3bbc2;width:50%;height:100%}.work-foot{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:2px}.steps-section{padding-top:25px}.work-steps{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-direction:column}.work-steps li{display:flex;gap:12px;position:relative;min-height:57px;color:var(--dim);font-size:13px}.work-steps li:after{content:'';height:29px;width:1px;position:absolute;left:9px;top:24px;background:var(--line)}.work-steps li:last-child:after{display:none}.step-indicator{width:20px;height:20px;border:1px solid #3b4248;display:flex;align-items:center;justify-content:center;border-radius:50%;font:10px var(--mono);flex-shrink:0}.step-indicator .icon{width:12px;height:12px}.work-steps li small{display:block;color:#8b949b;font-size:12px;padding-top:5px;line-height:1.35}.work-steps li.done .step-indicator{background:#25312e;border-color:#344640;color:#91baaa}.work-steps li.current{color:var(--ink)}.work-steps li.current .step-indicator{border-color:var(--orange);color:#ff8a52;background:#ff4f001f}.work-steps li.current small{color:var(--orange-light)}.assembly-section{padding:21px 0 20px;border-top:1px solid var(--soft-line);margin-top:3px}.section-heading{display:flex;align-items:center;justify-content:space-between}.assembly-root{display:flex;width:100%;align-items:center;gap:9px;margin:17px 0 12px;padding:0;font-size:13px;text-align:left;color:#c6cbd0}.assembly-root .icon{width:16px;height:16px}.assembly-root>span:last-child{margin-left:auto}.cylinder-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.cylinder-grid button{border:1px solid #32383e;border-radius:4px;font:12px var(--mono);color:var(--dim);height:30px;position:relative;background:#171a1d}.cylinder-grid button:hover{border-color:#68727c;color:var(--ink)}.cylinder-grid button.selected{color:var(--orange-light);border-color:#a5411c;background:#ff4f0013}.cylinder-grid button span{height:3px;width:3px;border-radius:50%;position:absolute;right:5px;top:5px;background:var(--orange)}.assembly-key{display:flex;gap:7px;align-items:center;margin-top:13px;font-size:12px;color:var(--dim)}.tiny-square{width:5px;height:5px;border:1px solid var(--orange);border-radius:1px}.sources-section{border-top:1px solid var(--soft-line);padding:20px 0 12px}.source-row{display:flex;width:100%;align-items:center;gap:9px;text-align:left;padding:14px 0 3px;font-size:13px;color:#b8bfc5}.source-row>.icon,.source-row>span:first-child .icon{width:15px;color:var(--dim)}.source-row small{font-size:11px;color:var(--dim);display:block;margin-top:4px}.source-row>span:last-child{margin-left:auto}.source-row>span:last-child .icon{width:12px;height:12px}.connected-dot{height:5px;width:5px;background:#73998d;border-radius:50%}.left-bottom{margin-top:auto;border-top:1px solid var(--soft-line);display:flex;align-items:center;gap:10px;padding:18px 0;color:var(--dim);font-size:12px}.left-bottom .icon{width:16px}.left-bottom small{display:block;margin-top:4px;font-size:11px;color:#8b949b}
.main-workspace{min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden;background:#141719}.workspace-toolbar{height:var(--header-h);flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:relative;z-index:3;border-bottom:1px solid #ffffff05;background:#141719}.breadcrumb{font:11px var(--mono);color:var(--dim);letter-spacing:.09em;display:flex;gap:10px}.breadcrumb>span:nth-child(2){color:#535d66}.workspace-toolbar h1{font-size:24px;letter-spacing:-.025em;font-weight:550;margin:10px 0 0;display:flex;align-items:center;gap:14px}.run-status{font-size:11px;font-weight:400;border:1px solid #3b434a;border-radius:4px;padding:4px 6px;letter-spacing:0;color:#b0bac1;background:#262c31}.toolbar-actions{display:flex;gap:5px}/* The stage gradient must REACH the toolbar's colour at its edges, not jump
   to a different one. The toolbar is a flat #141719; this gradient used to
   run #3b424a -> #0d0f11, so its centre was far brighter than the header AND
   its rim far darker, putting a visible two-tone step across the full width
   of the panel exactly where they meet. The header and the stage are one
   surface and should read as one.
   Now it blooms from a softer centre and settles ON #141719, so the seam
   disappears while the subject still sits in a pool of light -- which is the
   depth cue the gradient was there for in the first place. */
.spatial-stage{flex:1;min-height:300px;position:relative;overflow:hidden;background:radial-gradient(ellipse 62% 58% at 50% 44%,#232931 0%,#1c2126 40%,#171b1e 74%,#141719 100%)}.scene-canvas{position:absolute;inset:0;isolation:isolate}.scene-canvas canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.scene-canvas canvas.construction-overlay{z-index:0;pointer-events:none}
.scene-canvas canvas:not(.construction-overlay){z-index:1}.scene-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#171b1e;z-index:6;font-size:15px;transition:opacity .4s;pointer-events:none}.scene-loading small{font-size:12px;color:var(--dim)}.scene-loading.loaded{opacity:0}.loader-ring{width:30px;height:30px;border:1px solid #515960;border-top-color:var(--orange);border-radius:50%;animation:spin 1s linear infinite}.stage-topline{position:absolute;left:27px;right:27px;top:12px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.stage-topline>*{pointer-events:auto}.view-control{position:relative}.view-menu-trigger{display:flex;align-items:center;gap:8px;font-size:12px;color:#9ea8b0;padding:7px 0}.view-menu-trigger .icon{width:14px;height:14px}.view-menu-trigger>span:last-child .icon{width:12px}.dropdown{position:absolute;top:35px;left:0;background:#242a2f;border:1px solid #414b53;box-shadow:0 10px 30px #0005;border-radius:8px;min-width:140px;padding:6px;z-index:10}.dropdown button{display:block;width:100%;text-align:left;padding:9px 10px;font-size:13px;border-radius:4px}.dropdown button:hover{background:#333b43}.model-caption{font:10px var(--mono);letter-spacing:.07em;color:#8e99a2;display:flex;gap:7px;align-items:center}.live-dot{width:5px;height:5px;background:#a5afb7;border-radius:50%;display:inline-block;flex-shrink:0}.selection-callout{position:absolute;top:86px;right:24px;z-index:2;width:176px;background:#171b1de6;border:1px solid #485057;border-left:2px solid var(--orange);border-radius:0 7px 7px 0;padding:13px 12px;backdrop-filter:blur(15px);box-shadow:0 8px 24px #0002}.selection-callout:after{content:'';position:absolute;top:50%;left:-38px;width:35px;height:1px;background:linear-gradient(to left,#9d623d,#9d623d00)}.callout-head{font:10px var(--mono);letter-spacing:.06em;color:#c9d0d5;display:flex;align-items:center;gap:6px}.selection-dot{width:4px;height:4px;background:var(--orange);border-radius:1px}/* GLOVES. The glyph stays 12px -- the callout head is a 10px mono row and a
   bigger X would shout -- but a 12px hit target is not something a technician
   in gloves can land on. Pad the button out to 32px and pull the padding back
   out with a matching negative margin, so the box grows and nothing moves. */
.plain-icon{margin-left:auto;color:var(--dim);padding:10px;margin:-10px -10px -10px auto}.plain-icon .icon{width:12px;height:12px}.callout-value{display:flex;align-items:baseline;gap:4px;margin:13px 0 5px;font:24px var(--mono);letter-spacing:-.07em}.callout-value small{font-size:14px;letter-spacing:-.02em;color:var(--dim)}.callout-value .delta{font:10px var(--mono);color:var(--orange-light);letter-spacing:0;margin-left:auto}.callout-sub{font-size:11px;color:var(--dim);white-space:nowrap}.callout-link{font-size:11px;color:#c1c9d0;display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 0 0;margin-top:12px;border-top:1px solid var(--line)}.callout-link .icon{width:13px;height:13px}.scene-label{position:absolute;font:9px var(--mono);letter-spacing:.13em;color:#67747d;pointer-events:none}.left-label{left:28px;bottom:134px;display:flex;align-items:center;gap:8px}.label-line{height:1px;width:18px;background:#4b5963}.orientation{position:absolute;left:24px;bottom:78px;width:54px;height:54px;overflow:visible;pointer-events:none}.orientation .gz-line{stroke-width:1.5;stroke-linecap:round;fill:none}.orientation .gz-label{font:10px var(--mono);text-anchor:middle;dominant-baseline:central;fill:currentColor;stroke:none}.orientation .gz-hub{fill:#bcc3c8;stroke:none}.scene-tools{position:absolute;right:26px;bottom:92px;display:flex;flex-direction:column;gap:3px;border:1px solid #3b444b;border-radius:7px;background:#171b1ec9;padding:2px}.scene-tools .icon-button{width:29px;height:29px}.scene-tools .icon{width:15px;height:15px}.scene-bottom{position:absolute;left:50%;bottom:39px;transform:translateX(-50%);display:flex;gap:10px;align-items:center;white-space:nowrap}.scene-modes{display:flex;padding:4px;gap:2px;border:1px solid #414a51;border-radius:9px;background:#181c1fe8;box-shadow:0 8px 16px #0003;backdrop-filter:blur(20px)}.scene-modes button{display:flex;gap:6px;align-items:center;padding:9px 11px;font-size:12px;color:#929fa9;border-radius:5px;transition:background .2s}.scene-modes .icon{width:15px;height:15px}.scene-modes button.active{background:#3d454d;color:#fff;box-shadow:0 1px 3px #0003}.scene-modes button:hover{color:var(--ink)}.overlay-button{display:flex;gap:6px;align-items:center;font-size:12px;background:#181c1fe8;color:#929fa9;border:1px solid #414a51;border-radius:8px;padding:13px 11px}.overlay-button .icon{width:15px;height:15px}.overlay-button.active{border-color:#a34421;color:var(--orange-light);background:#2a201d}.stage-hint{position:absolute;bottom:14px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:8px;color:#707d87;font-size:10px}.stage-hint>.icon,.stage-hint>span:first-child .icon{width:12px;height:12px}.stage-hint .mono{font-size:9px}
.telemetry-panel{border-top:1px solid var(--line);padding:0 25px;background:#131618;flex-shrink:0}.telemetry-header{display:flex;align-items:center;justify-content:space-between;height:47px;border-bottom:1px solid var(--soft-line)}.telemetry-tabs{display:flex;gap:22px;height:100%}.telemetry-tabs button{font-size:12px;color:var(--dim);padding:0;position:relative}.telemetry-tabs button.active{color:var(--ink)}.telemetry-tabs button.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#d6dadd}.telemetry-source{font:9px var(--mono);letter-spacing:.05em;color:#7b8790;display:flex;align-items:center;gap:6px}.telemetry-source .live-dot{width:4px;height:4px}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:17px 0 15px}.metric-card{padding:0 18px;text-align:left;position:relative;min-width:0;border-right:1px solid var(--line)}.metric-card:first-child{padding-left:0}.metric-card:last-child{border-right:0;padding-right:0}.metric-label{font-size:11px;color:#a9b2b9;display:flex;align-items:center;gap:6px}.metric-label .icon{width:13px;height:13px}.metric-label>span:last-child{margin-left:auto;color:#64717b}.metric-label>span:last-child .icon{width:11px}.metric-value-row{display:flex;align-items:baseline;gap:5px;margin-top:11px;min-height:34px}.metric-value{font:28px var(--mono);letter-spacing:-.07em;color:#e5e8e9}.metric-unit{font-size:12px;color:#85939d;margin-left:2px}.metric-delta{font:10px var(--mono);color:var(--orange-light);margin-left:auto}.pressure-stroke{font:8px var(--mono);color:#8c9aa5;margin-left:auto;letter-spacing:.03em}.sparkline{width:100%;height:33px;margin-top:6px;overflow:visible}.data-path{stroke:var(--orange-light);fill:none;stroke-width:1.6;vector-effect:non-scaling-stroke}.chart-fill{fill:#ff4f000d;stroke:none}.baseline-path{stroke:#5f6d76;stroke-dasharray:3 4;fill:none;stroke-width:.6}.neutral .data-path{stroke:#a0aeb8;stroke-width:1.2}.metric-caption{display:flex;justify-content:space-between;font-size:9px;color:#85919b;margin-top:8px;gap:6px;white-space:nowrap}.metric-caption>span:last-child{color:#64717b}.metric-card:hover .metric-label{color:var(--ink)}.compare-strip{border-top:1px solid var(--soft-line);display:flex;align-items:center;gap:20px;padding:10px 0;font-size:10px;color:var(--muted)}.compare-strip[hidden]{display:none}.compare-strip>span{display:flex;align-items:center;gap:6px}.compare-strip>span:last-child{margin-left:auto;font-size:9px;color:var(--dim)}.compare-strip b{font-family:var(--mono);font-size:10px;font-weight:400}.comparison-key{height:5px;width:5px;background:#9daab3;display:inline-block;border-radius:50%;flex-shrink:0}.comparison-key.orange{background:var(--orange)}
.playback-bar{height:47px;display:flex;align-items:center;gap:12px;padding:0 24px;border-top:1px solid var(--line);background:#101315;flex-shrink:0}.play-button{color:#c6cdd2;display:grid;place-items:center;width:22px;padding:0}.play-button .icon{height:14px;width:14px}.playback-title{font-size:11px;color:#a4aeb5;white-space:nowrap}.timeline{height:18px;position:relative;flex:1;margin:0 9px;overflow:hidden}.timeline-track{position:absolute;inset:7px 0 6px;background:repeating-linear-gradient(to right,#40505c 0px,#40505c 1px,transparent 1px,transparent 5px);opacity:.6}.timeline-progress{position:absolute;top:7px;bottom:6px;left:0;width:30%;background:repeating-linear-gradient(to right,#a9b3bb 0px,#a9b3bb 1px,transparent 1px,transparent 5px)}.timeline-marker{position:absolute;width:2px;height:13px;top:3px;left:30%;background:#f1f2f0}.elapsed{font-size:10px;color:#a0acb5}.playback-separator{width:1px;height:16px;background:var(--line);margin:0 2px}.playback-speed{display:flex;align-items:center;gap:6px;white-space:nowrap;font:10px var(--mono);color:#a3aeb6;padding:0}.playback-speed .icon{width:12px}
.assistant-panel{background:#111416;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}.assistant-header{height:var(--header-h);display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--soft-line);flex-shrink:0}.assistant-identity{display:flex;align-items:center;gap:9px}.assistant-identity img{width:38px;height:38px;margin-left:-5px}.assistant-identity h2{font-weight:550;font-size:16px;margin:0 0 4px;letter-spacing:-.02em}.assistant-identity div>span{font-size:11px;color:var(--dim)}.assistant-header .icon{width:16px}.assistant-context{display:flex;align-items:center;gap:6px;padding:11px 18px;background:#1a1e22;border-bottom:1px solid var(--line);font-size:10px;color:#aab6bf;flex-shrink:0}.assistant-context .icon{height:12px;width:12px}.context-badge{font:8px var(--mono);color:#7b8994;margin-left:auto;letter-spacing:.03em}.chat-thread{flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#38414a transparent;padding:0 21px 8px;min-height:100px}.thread-divider{display:flex;align-items:center;gap:11px;color:#6f7c87;font:9px var(--mono);letter-spacing:.08em;white-space:nowrap;padding:25px 0}.thread-divider:before,.thread-divider:after{content:'';height:1px;flex:1;background:var(--soft-line)}.message-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#d5dade;margin-bottom:12px;font-weight:500}.message-label time{margin-left:auto;font-size:10px;font-weight:400;color:#64727d}.ai-origin{width:5px;height:5px;background:var(--orange);border-radius:50%}.assistant-message{font-size:14px;color:#b7c1c8;line-height:1.65;margin-bottom:20px}.assistant-message p{margin:0 0 12px}.assistant-message strong{font-weight:500;color:#eef0ef}.assistant-message .message-note{font-size:12px;color:#929ea7;line-height:1.6;margin:13px 0 14px}.evidence-card{border:1px solid #3c444b;border-radius:7px;padding:12px 13px 9px;background:#1b2024;margin-top:15px}.evidence-card>div{display:flex;align-items:center;gap:7px;font-size:12px}.evidence-card .icon{width:14px;height:14px;color:var(--orange-light)}.evidence-flag{font:9px var(--mono);letter-spacing:.04em;color:var(--orange-light);margin-left:auto}.evidence-card dl{margin:14px 0 11px}.evidence-card dl div{display:flex;justify-content:space-between;align-items:baseline;margin-top:7px}.evidence-card dt{font-size:12px;color:#919fa9}.evidence-card dd{font:12px var(--mono);margin:0;color:#c4cdd3}.evidence-card dl div:first-child dd{color:var(--orange-light)}.evidence-card p{font-size:10px;color:#697a87;margin:0;border-top:1px solid #30383f;padding-top:8px}.assistant-action{display:flex;justify-content:center;align-items:center;gap:8px;border:1px solid #9d451f;border-radius:6px;background:#ff4f000c;color:var(--orange-light);font-size:12px;width:100%;padding:11px 9px;transition:background .15s}.assistant-action:hover{background:#ff4f001d;color:#ff814b}.assistant-action .icon{width:15px;height:15px}.user-message{margin:16px 0 22px;padding:10px 13px;border:1px solid #3a454d;border-radius:9px 9px 2px 9px;background:#242c32;font-size:13px;line-height:1.55;color:#e2e8eb;margin-left:20px;overflow-wrap:anywhere}.message-source{font:9px var(--mono);color:#71828f;line-height:1.6}.message-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.message-buttons button{border:1px solid #48535d;border-radius:5px;padding:6px 8px;font-size:11px;color:#bcc8d0}.message-buttons button:hover{background:#28333b}.message-status{display:flex;align-items:center;gap:7px;color:#93b7aa;font-size:11px;margin:10px 0}.message-status .icon{width:13px;height:13px}.typing{display:flex;gap:4px;padding:12px 0}.typing i{width:4px;height:4px;border-radius:50%;background:#b2bdc5;animation:pulse 1s infinite}.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}.suggestions{padding:11px 21px 12px}.suggestions>.section-label{font-size:9px;color:#74828e;letter-spacing:.08em}.suggestion-buttons{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:10px}.suggestion-buttons button{display:flex;align-items:center;gap:8px;font-size:11px;color:#afbcc6;border:1px solid #343d45;border-radius:5px;padding:8px 9px;background:#181e22;max-width:100%}.suggestion-buttons button:hover{background:#232b31;border-color:#586772}.suggestion-buttons .icon{width:13px;height:13px;color:#91a1ae}.composer-area{padding:4px 15px 12px;flex-shrink:0}.composer{border:1px solid #4b565f;background:#20262b;border-radius:9px;padding:12px 12px 10px;box-shadow:0 3px 18px #0002;transition:border-color .2s}.composer:focus-within{border-color:#8896a0}.composer textarea{resize:none;width:100%;background:none;border:0;outline:none;line-height:1.55;font-size:13px;padding:0;min-height:47px;display:block;caret-color:var(--orange)}.composer textarea::placeholder{color:#8f9ca7}.composer textarea:focus-visible{outline:none}.composer-bottom{display:flex;align-items:center;gap:8px;margin-top:7px}.composer-context{font-size:9px;color:#92a0ac;display:flex;align-items:center;gap:5px;margin-right:auto}.composer-context .icon{width:12px;height:12px}.mic-button{width:29px;height:29px;padding:6px;color:#c0cbd4;border-radius:5px;display:grid;place-items:center}.mic-button .icon{width:16px;height:16px}.mic-button:hover{background:#353f48}.mic-button.listening{color:var(--orange-light);background:#ff4f0020;animation:voicePulse 1.6s infinite}.send-button{width:29px;height:29px;background:#dee2e4;color:#182026;display:grid;place-items:center;border-radius:5px}.send-button:hover{background:#fff;color:#0f1113}.send-button .icon{width:15px;height:15px}.composer-meta{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:9px;color:#768794;padding:0 3px}.composer-meta>span:last-child{display:flex;align-items:center;gap:5px}.composer-meta button{padding:0;color:inherit}.composer-meta .icon{width:11px;height:11px}.app-status{height:31px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#101214;font-size:9px;color:#7b8993;gap:16px}.app-status>div{display:flex;align-items:center;gap:10px}.app-status>div:first-child>span:nth-child(2){font:8px var(--mono);letter-spacing:.07em;color:#9eabb5}.status-square{width:5px;height:5px;background:#92a8a0;border-radius:1px}.status-divider{color:#424f58}.app-status button{display:flex;align-items:center;gap:5px;color:#8a99a5;font-size:9px;padding-left:15px}.app-status .icon{width:12px;height:12px}.mobile-assistant-toggle{display:none}
.toast{position:fixed;bottom:52px;left:50%;transform:translateX(-50%);background:#303940;border:1px solid #56646e;color:#eff3f5;padding:12px 18px;border-radius:8px;font-size:13px;box-shadow:0 8px 25px #0004;z-index:70;max-width:min(500px,90vw);line-height:1.5}.toast[hidden]{display:none}dialog{background:#181d21;color:var(--ink);border:1px solid #45515a;border-radius:14px;width:min(590px,92vw);padding:0;box-shadow:0 30px 100px #0008;max-height:85dvh}dialog::backdrop{background:#080b0db8;backdrop-filter:blur(6px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #343f47}.dialog-header h2{font-size:19px;font-weight:550;letter-spacing:-.02em;margin:0}.dialog-content{padding:23px;font-size:14px;line-height:1.7;color:#b6c2cb}.dialog-content>p:first-child{margin-top:0}.dialog-content a{color:var(--orange-light)}.dialog-content h3{font-size:14px;color:var(--ink);margin-top:24px}.dialog-content strong{font-weight:550;color:#e4eaee}.dialog-content .mono{font-size:12px}.dialog-content ul,.dialog-content ol{padding-left:23px}.dialog-content li{margin:9px 0}.dialog-content table{width:100%;border-collapse:collapse}.dialog-content td{padding:10px 3px;border-bottom:1px solid #333d45}.dialog-content td:last-child{text-align:right;color:#eff2f4}.dialog-content kbd{font:12px var(--mono);background:#2e3942;border:1px solid #4a5965;padding:3px 7px;border-radius:4px}.dialog-primary{background:var(--orange);color:#0f1113;padding:11px 16px;border-radius:6px;font-size:14px;font-weight:550;margin-top:15px;display:inline-flex;align-items:center;gap:8px}.dialog-primary:hover{background:var(--orange-light);color:#0f1113}.dialog-secondary{border:1px solid #546570;padding:10px 14px;border-radius:6px;font-size:13px;margin-top:15px;color:#d5e0e8}.speed-range{accent-color:var(--orange);width:100%;margin:24px 0 4px}.range-labels{display:flex;justify-content:space-between;font:11px var(--mono);color:#8495a2}.speed-display{font:42px var(--mono);color:#f1f2f0;letter-spacing:-.05em;display:block;margin-top:8px}.speed-display small{font:16px var(--sans);color:#8e9da7}.activity-list{display:flex;flex-direction:column;gap:17px}.activity-entry{display:grid;grid-template-columns:65px 1fr;gap:12px;font-size:13px}.activity-entry time{font:10px var(--mono);color:#8495a2;padding-top:4px}.activity-entry strong{display:block;font-weight:500;margin-bottom:3px}.activity-entry p{margin:0;color:#8b9ca8;font-size:12px}.large-chart{width:100%;height:145px;background:#13191e;border:1px solid #34424d;border-radius:7px;padding:15px;margin-top:20px}.large-chart .data-path{stroke-width:2}.dialog-warning{border-left:2px solid var(--orange);padding:9px 13px;background:#ff4f0008;font-size:12px;margin:17px 0}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #34414b}.setting-row:last-child{border-bottom:0}.setting-row p{margin:4px 0 0;color:#8297a5;font-size:12px}.setting-row input{accent-color:var(--orange);width:18px;height:18px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:34px 22px;color:var(--dim)}.empty-state .icon{width:22px;height:22px;color:#5d676f}.empty-state strong{font-size:14px;font-weight:500;color:var(--muted)}.empty-state p{margin:0;font-size:12px;line-height:1.55;max-width:34ch}.chat-thread .empty-state{padding:48px 10px}.dialog-command-list{display:grid;gap:10px}.dialog-command-list button{text-align:left;border:1px solid #3c4c57;background:#202b33;padding:14px;border-radius:7px;font-size:14px;display:flex;align-items:center;gap:10px}.dialog-command-list button .icon{width:17px}.dialog-command-list button:hover{border-color:#758996}.inspection-status{margin:10px 0;padding:10px 13px;font-size:12px;border:1px solid #3f5a4e;background:#1c3028;color:#a7cbbd;border-radius:5px}.body-focus .app-layout{grid-template-columns:64px minmax(440px,1fr) 342px}.body-focus .work-panel{display:none}.body-focus .selection-callout{right:45px}.mobile-chat-open .assistant-panel{display:flex}.contrast-mode{--dim:#a5b0b8;--muted:#c5cdd3}.contrast-mode .metric-caption,.contrast-mode .stage-hint{color:#a0adb6}.contrast-mode .assistant-message .message-note{color:#b8c5ce}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{0%,100%{opacity:.3}50%{opacity:1}}@keyframes voicePulse{0%,100%{box-shadow:0 0 0 0 #ff4f0020}50%{box-shadow:0 0 0 7px #ff4f0000}}
@media(min-width:1680px){.app-layout{grid-template-columns:70px 250px minmax(500px,1fr) 370px}.app-layout{height:calc(100dvh - 31px)}.work-panel{padding:21px 22px 0}.work-card{padding:17px 15px}.steps-section{padding-top:30px}.work-steps li{min-height:64px;font-size:14px}.work-steps li:after{height:36px}.assembly-section{padding:26px 0}.cylinder-grid button{height:34px}.sources-section{padding-top:23px}.source-row{font-size:14px}:root{--header-h:99px}.workspace-toolbar h1{font-size:27px}.stage-topline{top:18px}.selection-callout{top:105px;right:34px;width:184px}.metric-grid{padding:22px 0 19px}.metric-value{font-size:33px}.metric-label{font-size:12px}.metric-caption{font-size:10px}.telemetry-header{height:50px}.telemetry-tabs button{font-size:13px}.assistant-header{padding:0 22px}.assistant-context{padding:12px 21px;font-size:11px}.chat-thread{padding:0 24px 10px}.assistant-message{font-size:15px}.assistant-message .message-note{font-size:13px}.evidence-card{padding:15px}.evidence-card dt,.evidence-card dd{font-size:13px}.assistant-action{font-size:13px}.suggestions{padding:16px 24px}.suggestion-buttons button{font-size:12px}.composer-area{padding:7px 19px 17px}.composer textarea{font-size:14px;min-height:55px}.composer-context{font-size:10px}.composer-meta{font-size:10px}.scene-modes button{font-size:13px}.scene-bottom{bottom:43px}.stage-hint{font-size:11px;bottom:15px}.body-focus .app-layout{grid-template-columns:70px minmax(500px,1fr) 370px}}
@media(max-height:820px) and (min-width:1101px){.app-layout{height:calc(100dvh - 28px)}.app-status{height:28px}.work-panel{padding-top:12px}.panel-title-row{margin-bottom:7px}.work-card{padding:10px 12px;gap:5px}.work-card-top{margin-bottom:2px}.steps-section{padding-top:20px}.work-steps{margin-top:13px}.work-steps li{min-height:49px}.work-steps li:after{height:22px}.assembly-section{padding:15px 0}.sources-section{padding-top:15px}.left-bottom{padding:12px 0}:root{--header-h:77px}.workspace-toolbar h1{font-size:22px;margin-top:8px}.metric-grid{padding:13px 0}.metric-value{font-size:26px}.sparkline{height:25px;margin-top:4px}.metric-caption{margin-top:6px}.telemetry-header{height:41px}.playback-bar{height:40px}.assistant-message{font-size:13px}.thread-divider{padding:19px 0}.assistant-message .message-note{font-size:11px}.suggestions{padding-top:6px;padding-bottom:10px}.suggestion-buttons{flex-direction:row;flex-wrap:wrap;gap:6px}.suggestion-buttons button{font-size:10px;padding:7px}.suggestion-buttons .icon{width:11px}.composer textarea{min-height:39px}.composer-area{padding-bottom:9px}.evidence-card{margin-top:12px;padding:10px 12px}.scene-loading{font-size:14px}.selection-callout{top:65px}.left-label{display:none}}
@media(max-width:1320px){.app-layout{grid-template-columns:54px 198px minmax(380px,1fr) 310px}.nav-rail{padding-top:17px}.rail-button.active:before{left:-7px}.work-panel{padding-left:13px;padding-right:13px}.workspace-toolbar{padding:0 22px}.selection-callout{width:157px;right:17px;padding:11px}.callout-head{font-size:9px}.callout-value{font-size:22px}.callout-value .delta{font-size:9px}.callout-sub{font-size:10px}.callout-link{font-size:10px}.callout-value{margin-top:11px}.stage-topline{left:21px;right:21px}.model-caption{font-size:8px}.scene-bottom{gap:7px}.scene-modes button{font-size:11px;padding:8px 9px}.overlay-button{font-size:11px;padding:12px 9px}.scene-modes .icon,.overlay-button .icon{width:13px}.telemetry-panel{padding:0 20px}.telemetry-source{font-size:8px}.telemetry-tabs{gap:16px}.telemetry-tabs button{font-size:11px}.metric-card{padding:0 13px}.metric-label{font-size:10px;gap:5px}.metric-label .icon{width:12px}.metric-value{font-size:26px}.metric-unit{font-size:11px}.metric-caption{font-size:8px}.pressure-stroke{font-size:7px}.metric-delta{font-size:9px}.metric-caption>span:last-child{display:none}.chat-thread{padding-left:17px;padding-right:17px}.assistant-header{padding-left:15px;padding-right:15px}.assistant-context{padding:11px 15px;font-size:9px}.context-badge{font-size:7px}.assistant-message{font-size:13px}.suggestions{padding-left:17px;padding-right:17px}.composer-area{padding-left:12px;padding-right:12px}.composer-context{font-size:8px}.composer textarea{font-size:12px}.app-status{font-size:8px}.body-focus .app-layout{grid-template-columns:54px minmax(400px,1fr) 310px}}
@media(max-width:1100px){.app-layout{grid-template-columns:54px minmax(380px,1fr) 310px}.work-panel{display:none}.main-workspace{min-width:0}.metric-label{font-size:11px}.metric-caption{font-size:9px}.selection-callout{width:160px}.workspace-toolbar h1{font-size:23px}.body-focus .app-layout{grid-template-columns:54px minmax(380px,1fr) 310px}}
@media(max-width:800px){body{overflow:auto}.app-layout{height:auto;min-height:calc(100dvh - 30px);display:block}.nav-rail,.work-panel{display:none}.main-workspace{min-height:calc(100dvh - 30px);overflow:visible}:root{--header-h:80px}.workspace-toolbar{padding:0 20px}.workspace-toolbar h1{font-size:23px}.breadcrumb{font-size:10px}.spatial-stage{height:49dvh;min-height:360px;flex:unset}.stage-topline{left:20px;right:20px;top:4px}.selection-callout{top:51px;right:16px;width:146px;padding:10px}.callout-head{font-size:8px}.callout-value{font-size:21px}.callout-sub{font-size:9px}.callout-link{font-size:10px;margin-top:10px;padding-top:10px}.callout-value .delta{font-size:8px}.callout-value small{font-size:12px}.model-caption{font-size:8px}.scene-bottom{bottom:38px;gap:6px}.scene-modes button{padding:9px 8px;gap:5px;font-size:10px}.scene-modes .icon{width:12px}.overlay-button{padding:13px 8px;font-size:10px;gap:4px}.overlay-button .icon{width:12px}.orientation{left:15px;bottom:92px;transform:scale(.88);transform-origin:left bottom}.scene-tools{right:18px;bottom:95px}.left-label{display:none}.stage-hint{font-size:9px;gap:6px;bottom:16px}.stage-hint .mono{font-size:8px}.telemetry-panel{padding:0 19px}.telemetry-header{height:44px}.telemetry-tabs{gap:16px}.telemetry-tabs button{font-size:11px}.telemetry-source{font-size:7px;letter-spacing:0}.telemetry-source .live-dot{display:none}.metric-grid{padding:18px 0}.metric-label{font-size:9px}.metric-label>span:first-child{display:none}.metric-card{padding:0 12px}.metric-value{font-size:25px}.metric-unit{font-size:10px;margin-left:0}.metric-value-row{gap:3px;margin-top:12px;flex-wrap:wrap}.metric-delta{font-size:8px;display:none}.pressure-stroke{display:none}.metric-caption{font-size:8px}.sparkline{height:30px}.playback-bar{padding:0 19px;height:46px}.playback-title{font-size:10px}.playback-speed{font-size:9px}.compare-strip{flex-wrap:wrap;font-size:9px;gap:7px 13px}.compare-strip>span:last-child{margin:0}.assistant-panel{display:none;position:fixed;right:0;top:0;bottom:0;width:min(370px,100%);z-index:30;box-shadow:-30px 0 80px #0008;border-left:1px solid #4e5c67}.assistant-message{font-size:14px}.assistant-context{font-size:10px}.context-badge{font-size:8px}.chat-thread{padding:0 22px}.suggestions{padding:12px 20px}.composer-area{padding:8px 15px 18px}.composer textarea{font-size:14px;min-height:49px}.composer-context{font-size:10px}.composer-meta{font-size:10px}.app-status{height:30px;padding:0 15px}.app-status>div:first-child>span:nth-last-child(-n+2),.app-status>div:last-child{display:none}.mobile-assistant-toggle{position:fixed;bottom:43px;right:16px;display:flex;gap:8px;align-items:center;background:var(--orange);color:#0f1113;padding:12px 15px;border-radius:8px;z-index:40;font-size:12px;font-weight:600;box-shadow:0 4px 15px #0005}.mobile-assistant-toggle .icon{width:16px;height:16px}.mobile-chat-open .mobile-assistant-toggle{top:81px;bottom:auto;right:18px;padding:7px;background:#313c45;color:#c8d4dd;font-size:0;box-shadow:none}.mobile-chat-open .assistant-header .icon-button{margin-right:38px}.toast{bottom:94px}.body-focus .app-layout{display:block}.body-focus .selection-callout{right:16px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readability pass: reserve small type for secondary instrumentation. */
.work-card strong{font-size:16px}.work-card .secondary{font-size:12px}.work-steps li{font-size:14px}.work-steps li small{font-size:12px}.assembly-root,.source-row{font-size:14px}.cylinder-grid button{font-size:13px;height:32px}.source-row small{font-size:12px;line-height:1.4}.assembly-key{font-size:12px}.left-bottom{font-size:12px}.left-bottom small{font-size:12px}.breadcrumb{font-size:12px;letter-spacing:.05em}.run-status{font-size:12px}.view-menu-trigger{font-size:13px}.model-caption{font-size:10px}.callout-head{font-size:11px;letter-spacing:.02em}.callout-sub{font-size:12px;white-space:normal}.callout-link{font-size:12px}.selection-callout{width:182px}.callout-value .delta{font-size:11px}.scene-modes button,.overlay-button{font-size:14px}.stage-hint{font-size:12px}.stage-hint .mono{font-size:10px}.telemetry-tabs button{font-size:14px}.telemetry-source{font-size:10px}.metric-label{font-size:13px}.metric-label>span:last-child .icon{width:12px}.metric-caption{font-size:11px}.metric-unit{font-size:13px}.metric-delta{font-size:11px}.pressure-stroke{font-size:9px}.playback-title{font-size:12px}.elapsed,.playback-speed{font-size:11px}.assistant-header h2{font-size:18px}.assistant-identity div>span{font-size:12px}.assistant-context{font-size:12px}.context-badge{font-size:9px}.thread-divider{font-size:10px}.message-label{font-size:13px}.message-label time{font-size:12px}.assistant-message{font-size:16px;line-height:1.55}.assistant-message .message-note{font-size:13px;line-height:1.55}.evidence-card>div{font-size:14px}.evidence-card dt,.evidence-card dd{font-size:13px}.evidence-flag{font-size:10px}.evidence-card p{font-size:11px}.assistant-action{font-size:14px}.suggestions>.section-label{font-size:10px}.suggestion-buttons button{font-size:13px}.composer textarea{font-size:14px}.composer-context{font-size:11px}.composer-meta{font-size:11px}.user-message{font-size:14px}.message-source{font-size:11px}.message-buttons button{font-size:13px}.message-status{font-size:13px}.app-status{font-size:10px}.app-status>div:first-child>span:nth-child(2){font-size:9px}.app-status button{font-size:10px}.work-panel{scrollbar-width:none}.work-panel::-webkit-scrollbar{display:none}.dialog-content{font-size:16px}.dialog-content .meta{font-size:12px}.dialog-content h3{font-size:16px}
@media(min-width:801px) and (max-width:1320px){.scene-modes button,.overlay-button{font-size:13px}.metric-label{font-size:12px}.metric-label>span:last-child{display:none}.metric-caption{font-size:10px}.telemetry-source{font-size:9px}.telemetry-tabs button{font-size:13px}.selection-callout{width:166px}.callout-head{font-size:10px}.callout-sub{font-size:11px}.callout-value .delta{font-size:10px}.assistant-context{font-size:11px}.context-badge{display:none}.assistant-message{font-size:15px}.suggestion-buttons button{font-size:12px}.composer-context{font-size:10px}.composer-meta{font-size:10px}.work-steps li{font-size:13px}}
@media(max-width:800px){.selection-callout{width:159px}.callout-head{font-size:10px}.callout-sub{font-size:11px}.callout-value .delta{font-size:9px}.callout-link{font-size:11px}.scene-modes button{font-size:12px;min-height:34px}.overlay-button{min-height:44px}.overlay-button>span:last-child{display:none}.stage-hint{font-size:10px}.stage-hint .mono{font-size:9px}.telemetry-source{font-size:8px}.telemetry-tabs button{font-size:12px}.metric-label{font-size:11px}.metric-label>span:last-child{display:none}.metric-unit{font-size:11px}.metric-caption{font-size:9px}.assistant-message{font-size:16px}.context-badge{display:none}.assistant-context{font-size:12px}.app-status{font-size:9px}}
[hidden]{display:none!important}
.suggestion-buttons{flex-direction:row;flex-wrap:wrap;gap:7px}.suggestion-buttons button{font-size:12px;padding:8px}.mobile-components{display:none}.component-picker{grid-template-columns:repeat(2,1fr);gap:12px}.component-picker button{height:48px;font-size:14px}
@media(max-width:800px){.mobile-components{display:flex}.toolbar-actions>[data-action="focus"]{display:none}.selection-callout{top:44px;left:20px;right:20px;width:auto;display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:10px 12px}.callout-head{grid-column:1;grid-row:1;font-size:10px}.callout-value{grid-column:2;grid-row:1 / span 2;margin:0;align-self:center;gap:4px;font-size:22px}.callout-sub{grid-column:1;grid-row:2;font-size:10px;white-space:nowrap;padding-top:5px}.callout-link{display:none}.callout-value .delta{font-size:10px;margin-left:7px}.selection-callout:after{display:none}.callout-head .plain-icon{margin-left:7px}.metric-value{font-size:23px}.metric-value-row{gap:2px}.metric-unit{font-size:10px}}

/* Theme controls and Anemona's concrete / white product surface. */
.theme-light-asset{display:none}
.theme-options{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--bg);flex-shrink:0}
.theme-options button{display:flex;align-items:center;gap:7px;border-radius:5px;padding:8px 10px;font-size:14px;color:var(--dim)}
.theme-options .icon{width:15px;height:15px}.theme-options button.active{background:#39434b;color:#f1f2f0}
:root[data-theme="light"]{color-scheme:light;--bg:#f1f2f0;--panel:#ffffff;--panel2:#e7e9e7;--line:#daddde;--soft-line:#e6e8e8;--ink:#0f1113;--muted:#4a5056;--dim:#5f656b;--orange-light:#c03a00;--green:#0b7a52}
[data-theme="light"] .theme-light-asset{display:block}[data-theme="light"] .theme-dark-asset{display:none}
[data-theme="light"] button:hover{color:var(--ink)}
[data-theme="light"] .nav-rail,[data-theme="light"] .work-panel,[data-theme="light"] .assistant-panel,[data-theme="light"] .app-status,[data-theme="light"] .playback-bar,[data-theme="light"] .telemetry-panel{background:#fff}
[data-theme="light"] .main-workspace,[data-theme="light"] .workspace-toolbar{background:#f1f2f0}
[data-theme="light"] .workspace-toolbar{border-bottom-color:#e6e8e8}
[data-theme="light"] .icon-button:hover,[data-theme="light"] .rail-button:hover{background:#e7e9e7;color:#0f1113}
[data-theme="light"] .icon-button.active,[data-theme="light"] .rail-button.active{background:#ffe6d9;color:#c03a00}
[data-theme="light"] .work-card{background:linear-gradient(125deg,#fff,#f5f6f4);border-color:#c3c8cb;box-shadow:0 3px 12px #0f111305}
[data-theme="light"] .work-card:hover{border-color:#868d94}
[data-theme="light"] .work-symbol{background:#e7e9e7;border-color:#daddde;color:#4a5056}
[data-theme="light"] .work-card .secondary,[data-theme="light"] .work-foot{color:#5f656b}
[data-theme="light"] .work-progress{background:#daddde}[data-theme="light"] .work-progress span{background:#5f656b}
[data-theme="light"] .step-indicator{border-color:#c3c8cb;color:#5f656b}
[data-theme="light"] .work-steps li small{color:#5f656b}
[data-theme="light"] .work-steps li.done .step-indicator{background:#ddf1e7;border-color:#b9d8ca;color:#0b7a52}
[data-theme="light"] .work-steps li.current .step-indicator{background:#ffe6d9;border-color:#ff4f00;color:#c03a00}
[data-theme="light"] .work-steps li.current small{color:#c03a00}
[data-theme="light"] .assembly-root,[data-theme="light"] .source-row{color:#4a5056}
[data-theme="light"] .cylinder-grid button{background:#f7f8f6;border-color:#daddde;color:#4a5056}
[data-theme="light"] .cylinder-grid button:hover{border-color:#868d94;color:#0f1113}
[data-theme="light"] .cylinder-grid button.selected{background:#ffe6d9;border-color:#e3865f;color:#a83200}
[data-theme="light"] .left-bottom small{color:#5f656b}
[data-theme="light"] .run-status{background:#e7e9e7;border-color:#c3c8cb;color:#4a5056}
[data-theme="light"] .spatial-stage{background:radial-gradient(ellipse at 48% 40%,#fbfbfa 0%,#f4f5f3 56%,#f1f2f0 100%)}
[data-theme="light"] .scene-loading{background:#f1f2f0;color:#0f1113}
[data-theme="light"] .loader-ring{border-color:#c3c8cb;border-top-color:#ff4f00}
[data-theme="light"] .view-menu-trigger,[data-theme="light"] .model-caption{color:#5f656b}
[data-theme="light"] .live-dot{background:#5f656b}
[data-theme="light"] .dropdown{background:#fff;border-color:#c3c8cb;box-shadow:0 10px 30px #0f111315}
[data-theme="light"] .dropdown button:hover{background:#f1f2f0}
[data-theme="light"] .selection-callout{background:#ffffffed;border-color:#c3c8cb;border-left-color:#ff4f00;box-shadow:0 5px 22px #0f111309}
[data-theme="light"] .callout-head{color:#4a5056}
[data-theme="light"] .callout-link{color:#4a5056}[data-theme="light"] .callout-link:hover{color:#0f1113}
[data-theme="light"] .callout-value .delta{color:#c03a00}
[data-theme="light"] .scene-label,[data-theme="light"] .orientation,[data-theme="light"] .stage-hint{color:#5f656b}
[data-theme="light"] .label-line{background:#6f757b}
[data-theme="light"] .orientation .gz-hub{fill:#4a5056}
[data-theme="light"] .scene-tools,[data-theme="light"] .scene-modes{background:#fffffff0;border-color:#c3c8cb;box-shadow:0 4px 12px #0f111309}
[data-theme="light"] .scene-modes button{color:#5f656b}
[data-theme="light"] .scene-modes button:hover{background:#f1f2f0;color:#0f1113}
[data-theme="light"] .scene-modes button.active{background:#0f1113;color:#f1f2f0;box-shadow:0 1px 3px #0f111318}
[data-theme="light"] .overlay-button{background:#fffffff0;border-color:#c3c8cb;color:#5f656b}
[data-theme="light"] .overlay-button.active{background:#ffe6d9;border-color:#df9a7d;color:#c03a00}
[data-theme="light"] .telemetry-tabs button.active:after{background:#0f1113}
[data-theme="light"] .telemetry-source{color:#5f656b}
[data-theme="light"] .metric-label{color:#4a5056}
[data-theme="light"] .metric-label>span:last-child,[data-theme="light"] .metric-unit,[data-theme="light"] .pressure-stroke,[data-theme="light"] .metric-caption,[data-theme="light"] .metric-caption>span:last-child{color:#5f656b}
[data-theme="light"] .metric-value{color:#0f1113}
[data-theme="light"] .chart-fill{fill:#ff4f000b}
[data-theme="light"] .neutral .data-path{stroke:#5f656b}
[data-theme="light"] .baseline-path{stroke:#868d94}
[data-theme="light"] .comparison-key{background:#5f656b}[data-theme="light"] .comparison-key.orange{background:#ff4f00}
[data-theme="light"] .play-button{color:#4a5056}
[data-theme="light"] .playback-title,[data-theme="light"] .elapsed,[data-theme="light"] .playback-speed{color:#5f656b}
[data-theme="light"] .timeline-track{background:repeating-linear-gradient(to right,#c3c8cb 0px,#c3c8cb 1px,transparent 1px,transparent 5px)}
[data-theme="light"] .timeline-progress{background:repeating-linear-gradient(to right,#5f656b 0px,#5f656b 1px,transparent 1px,transparent 5px)}
[data-theme="light"] .timeline-marker{background:#0f1113}
[data-theme="light"] .assistant-context{background:#f1f2f0;color:#4a5056}
[data-theme="light"] .context-badge,[data-theme="light"] .thread-divider,[data-theme="light"] .message-label time{color:#5f656b}
[data-theme="light"] .message-label{color:#0f1113}
[data-theme="light"] .assistant-message{color:#4a5056}
[data-theme="light"] .assistant-message strong{color:#0f1113}
[data-theme="light"] .assistant-message .message-note{color:#5f656b}
[data-theme="light"] .evidence-card{background:#f7f8f6;border-color:#daddde}
[data-theme="light"] .evidence-card dt{color:#5f656b}[data-theme="light"] .evidence-card dd{color:#0f1113}
[data-theme="light"] .evidence-card dl div:first-child dd{color:#c03a00}
[data-theme="light"] .evidence-card p{color:#5f656b;border-color:#daddde}
[data-theme="light"] .assistant-action{background:#fff5ef;border-color:#db9778;color:#c03a00}
[data-theme="light"] .assistant-action:hover{background:#ffe6d9;border-color:#c03a00;color:#a83200}
[data-theme="light"] .user-message{background:#e7e9e7;border-color:#daddde;color:#0f1113}
[data-theme="light"] .message-source{color:#5f656b}
[data-theme="light"] .message-buttons button{border-color:#c3c8cb;color:#4a5056;background:#fff}
[data-theme="light"] .message-buttons button:hover{background:#f1f2f0}
[data-theme="light"] .message-status{color:#0b7a52}
[data-theme="light"] .typing i{background:#5f656b}
[data-theme="light"] .suggestions>.section-label{color:#5f656b}
[data-theme="light"] .suggestion-buttons button{color:#4a5056;border-color:#daddde;background:#f7f8f6}
[data-theme="light"] .suggestion-buttons button:hover{background:#e7e9e7;border-color:#c3c8cb}
[data-theme="light"] .suggestion-buttons .icon{color:#5f656b}
[data-theme="light"] .composer{background:#fff;border-color:#c3c8cb;box-shadow:0 3px 18px #0f111306}
[data-theme="light"] .composer:focus-within{border-color:#868d94}
[data-theme="light"] .composer textarea::placeholder,[data-theme="light"] .composer-context,[data-theme="light"] .composer-meta{color:#5f656b}
[data-theme="light"] .mic-button{color:#4a5056}
[data-theme="light"] .mic-button:hover{background:#e7e9e7}
[data-theme="light"] .mic-button.listening{background:#ffe6d9;color:#c03a00}
[data-theme="light"] .send-button{background:#0f1113;color:#f1f2f0}
[data-theme="light"] .send-button:hover{background:#343b40;color:#fff}
[data-theme="light"] .app-status,[data-theme="light"] .app-status button,[data-theme="light"] .app-status>div:first-child>span:nth-child(2){color:#5f656b}
[data-theme="light"] .status-square{background:#0b7a52}[data-theme="light"] .status-divider{color:#868d94}
[data-theme="light"] .empty-state{color:#5f656b}[data-theme="light"] .empty-state .icon{color:#949a9f}[data-theme="light"] .empty-state strong{color:#3b4247}[data-theme="light"] .toast{background:#fff;border-color:#c3c8cb;color:#0f1113;box-shadow:0 8px 25px #0f111318}
[data-theme="light"] dialog{background:#fff;border-color:#c3c8cb;color:#0f1113;box-shadow:0 30px 100px #0f111333}
[data-theme="light"] dialog::backdrop{background:#0f11134d}
[data-theme="light"] .dialog-header{border-color:#daddde}
[data-theme="light"] .dialog-content{color:#4a5056}
[data-theme="light"] .dialog-content strong,[data-theme="light"] .dialog-content td:last-child{color:#0f1113}
[data-theme="light"] .dialog-content td{border-color:#daddde}
[data-theme="light"] .dialog-content kbd{background:#f1f2f0;border-color:#c3c8cb;color:#0f1113}
[data-theme="light"] .dialog-primary:hover{background:#ff6a26;color:#0f1113}
[data-theme="light"] .dialog-secondary{border-color:#c3c8cb;color:#4a5056;background:#f7f8f6}
[data-theme="light"] .range-labels{color:#5f656b}
[data-theme="light"] .speed-display{color:#0f1113}[data-theme="light"] .speed-display small{color:#5f656b}
[data-theme="light"] .activity-entry time,[data-theme="light"] .activity-entry p{color:#5f656b}
[data-theme="light"] .large-chart{background:#f7f8f6;border-color:#daddde}
[data-theme="light"] .large-chart text{fill:#5f656b}
[data-theme="light"] .dialog-warning{background:#fff5ef;color:#4a5056}
[data-theme="light"] .setting-row{border-color:#daddde}[data-theme="light"] .setting-row p{color:#5f656b}
[data-theme="light"] .dialog-command-list button{border-color:#daddde;background:#f7f8f6;color:#0f1113}
[data-theme="light"] .dialog-command-list button:hover{border-color:#868d94;background:#f1f2f0}
[data-theme="light"] .inspection-status{border-color:#b9d8ca;background:#ddf1e7;color:#0b7a52}
[data-theme="light"] .theme-options{background:#f1f2f0}
[data-theme="light"] .theme-options button.active{background:#fff;color:#0f1113;box-shadow:0 1px 4px #0f111312}
[data-theme="light"] .skip-link{color:#0f1113}
[data-theme="light"] .contrast-mode{--dim:#3c444b;--muted:#30373d}
[data-theme="light"] .contrast-mode .metric-caption,[data-theme="light"] .contrast-mode .stage-hint,[data-theme="light"] .contrast-mode .assistant-message .message-note,[data-theme="light"] .contrast-mode .source-row small,[data-theme="light"] .contrast-mode .composer-meta{color:#3c444b}
@media(max-width:800px){[data-theme="light"] .mobile-chat-open .mobile-assistant-toggle{background:#e7e9e7;color:#0f1113}[data-theme="light"] .assistant-panel{box-shadow:-25px 0 70px #0f111326;border-left-color:#c3c8cb}}

/* ==========================================================================
   Anemona Station — fixes on top of the Workbench shell.
   Everything above this line is Jose's design system, carried over verbatim
   except --dim (see FIX 5). Each rule below names the bug it closes.
   ========================================================================== */

/* FIX 5 — contrast. The default --dim was #868d94, which fails WCAG AA on the
   small instrumentation type. Raised to #9aa2a9 at the token (above), and the
   handful of places that hard-coded a dimmer grey are lifted to match. No
   type below 10px anywhere: the 8px and 9px micro-labels go to 10px. */
.model-caption,.telemetry-source,.context-badge,.thread-divider,
.metric-caption,.compare-strip,.compare-strip b,.app-status,
.composer-context,.composer-meta,.suggestions>.section-label,
.message-source,.evidence-flag,.stage-hint .mono,.scene-label{font-size:10px}
.app-status>div:first-child>span:nth-child(2){font-size:10px}
.metric-caption{color:#9aa2a9}.metric-caption>span:last-child{color:#949ea7}
.telemetry-source{color:#9aa2a9}.model-caption{color:#a4aeb6}
.stage-hint{color:#929ea8}.scene-label{color:#8b96a0}
.metric-label>span:last-child{color:#8b959e}
.evidence-card p{color:#8e9aa5}.message-source{color:#919eaa}
.composer-meta{color:#949fab}.composer-context{color:#a3aeb9}
.context-badge{color:#96a2ad}.thread-divider{color:#8c98a3}
.message-label time{color:#8b959f}.app-status{color:#949fa9}
.app-status button{color:#9aa6b1}.suggestions>.section-label{color:#8f9ba6}
.metric-value{color:#eceeef}
[data-theme="light"] .metric-caption,[data-theme="light"] .telemetry-source,
[data-theme="light"] .model-caption,[data-theme="light"] .stage-hint,
[data-theme="light"] .scene-label,[data-theme="light"] .context-badge,
[data-theme="light"] .thread-divider,[data-theme="light"] .composer-meta,
[data-theme="light"] .composer-context,[data-theme="light"] .evidence-card p,
[data-theme="light"] .message-source,[data-theme="light"] .app-status,
[data-theme="light"] .app-status button,[data-theme="light"] .metric-label>span:last-child,
[data-theme="light"] .suggestions>.section-label,[data-theme="light"] .message-label time,
[data-theme="light"] .metric-caption>span:last-child{color:#555b61}

/* the selection callout, at Jose's published size */
.selection-callout{width:182px;min-height:155px;display:flex;flex-direction:column}
.selection-callout .callout-sub{margin-bottom:auto}

/* FIX 4 — the 390 px column overflow. At Jose's build the thermal button and
   the third metric card clipped out of the viewport, and the floating "Ask
   Anemona" FAB sat on top of the elapsed time in the playback bar.
   The stage furniture wraps instead of overflowing, the metric grid scrolls
   horizontally with snap points rather than being cut off, and the playback
   bar reserves the FAB's footprint. */
@media(max-width:460px){
  /* stage: the mode switch and the thermal toggle share the width */
  .scene-bottom{left:12px;right:12px;transform:none;justify-content:center;
    flex-wrap:wrap;gap:8px;white-space:normal;bottom:46px}
  .scene-modes{flex:0 1 auto;max-width:100%}
  .scene-modes button{padding:9px 7px;font-size:11px;gap:4px}
  .overlay-button{padding:10px 10px;font-size:11px;min-height:0}
  .overlay-button>span:last-child{display:inline}   /* the word "Térmico" stays */
  .stage-hint{bottom:12px;font-size:10px;padding:0 12px;flex-wrap:wrap}

  /* telemetry: three cards no longer squeeze — they scroll, and snap */
  .metric-grid{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;
    scrollbar-width:none;padding:14px 0 12px;margin:0 -19px;padding-left:19px}
  .metric-grid::-webkit-scrollbar{display:none}
  .metric-card{flex:0 0 76%;scroll-snap-align:start;padding:0 14px;min-width:0}
  .metric-card:first-child{padding-left:0}
  .metric-card:last-child{border-right:0;padding-right:19px;flex-basis:80%}
  .metric-value{font-size:24px}
  .metric-label>span:first-child{display:inline-flex}

  /* playback: keep the clock and the speed clear of the floating FAB */
  .playback-bar{padding-right:96px;gap:9px}
  .mobile-assistant-toggle{bottom:8px;padding:10px 13px}
}
@media(max-width:380px){
  .metric-card{flex-basis:84%}
  .scene-modes button span:last-child{display:none}  /* icons only, labels off */
  .scene-modes button{padding:9px 10px}
}

/* The callout's leader line, now actually aimed at the projected 3D anchor of
   the selected subsystem rather than drawn at a fixed length and angle. */
.selection-callout:after{
  width:var(--leader-len,35px);
  opacity:var(--leader-show,1);
  transform:rotate(var(--leader-rot,0deg));
  transform-origin:right center;
  left:auto;right:100%;
  transition:opacity .2s}
@media(max-width:800px){.selection-callout:after{display:none}}

/* backend status in the composer meta */
#backend-status[data-state="live"]{color:var(--green)}
#backend-status[data-state="down"],#backend-status[data-state="demo"]{color:#c69a7a}
[data-theme="light"] #backend-status[data-state="demo"],
[data-theme="light"] #backend-status[data-state="down"]{color:#9a5a2a}

/* FIX 4, continued — narrow widths.
   Jose's mobile rule re-lays the callout as a two-column strip, so the desktop
   182x155 box must not impose its height there. */
@media(max-width:800px){
  .selection-callout{min-height:0;display:grid}
  .selection-callout .callout-sub{margin-bottom:0}
}
@media(max-width:460px){
  /* the telemetry tabs wrapped onto two lines and pushed the source label down */
  .telemetry-header{height:auto;min-height:44px;gap:10px}
  .telemetry-tabs{gap:14px}
  .telemetry-tabs button{white-space:nowrap}
  .telemetry-source{text-align:right;line-height:1.3}

  /* keep the FAB clear of the footer as well as the playback clock */
  .mobile-assistant-toggle{bottom:38px}
  .app-status{padding-right:12px}
}

@media(max-width:460px){
  /* the callout strip: keep the big mono number inside the box */
  .selection-callout{left:12px;right:12px;padding:9px 11px;
    grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .selection-callout .callout-value{font-size:19px;white-space:nowrap;
    justify-self:end;align-self:center}
  .selection-callout .callout-value small{font-size:11px}
  .selection-callout .callout-value .delta{margin-left:6px;font-size:10px}
  .selection-callout .callout-head{min-width:0}
  .selection-callout .callout-head>span:nth-child(2){overflow:hidden;
    text-overflow:ellipsis;white-space:nowrap}
  .callout-sub{font-size:10px;overflow:hidden;text-overflow:ellipsis}

  /* the first metric card needs the same gutter as the rest */
  .metric-grid{margin:0;padding-left:0}
  .metric-card:first-child{padding-left:0}
  .metric-card:last-child{padding-right:0}

  /* the playback bar ends before the FAB begins, so nothing is covered */
  .playback-bar{padding-right:12px}
  .playback-bar .playback-speed{display:none}      /* the thrust is in the H1 */
  .mobile-assistant-toggle{bottom:36px;right:12px}
}

@media(max-width:460px){
  /* the FAB floats over the playback bar's right end, so the bar stops short of
     it: the elapsed clock stays readable instead of sitting under the button. */
  .playback-bar{padding-right:124px}
  .selection-callout .callout-head>span:nth-child(2){font-size:10px}
}

/* ============================================================ the part switch
   The assembly header in the left rail was a label with a chevron that opened
   nothing. It is now the real part selector: the three things this station can
   have on the bench. Same component as the view menu, so it inherits the
   dropdown's light-mode treatment for free. */
.part-switch{position:relative}
.part-switch .assembly-root{cursor:pointer}
.part-switch .assembly-root:hover{color:var(--ink)}
.part-menu{top:30px;left:-6px;right:-6px;min-width:0}
.part-menu button{display:flex;flex-direction:column;gap:3px;line-height:1.3}
.part-menu button small{font-size:11px;color:var(--dim)}
.part-menu button[aria-selected="true"]{color:var(--orange-light);background:#ff4f0012}
.part-menu button[aria-selected="true"] small{color:#c08462}

/* ---------------------------------------------------------- Conjunto / Pieza
   The scope control. Conjunto is the whole assembly running; Pieza lifts ONE
   subsystem out of an otherwise intact engine. It sits beside the display modes
   because it answers a different question — not "how is it drawn" but "how much
   of it am I looking at". */
.scope-switch{display:flex;padding:4px;gap:2px;border:1px solid #414a51;border-radius:9px;
  background:#181c1fe8;box-shadow:0 8px 16px #0003;backdrop-filter:blur(20px)}
.scope-switch button{padding:9px 12px;font-size:12px;color:#929fa9;border-radius:5px;transition:background .2s}
.scope-switch button:hover{color:var(--ink)}
.scope-switch button.active{background:#3d454d;color:#fff;box-shadow:0 1px 3px #0003}
.scope-switch button:disabled{opacity:.38;cursor:not-allowed}
.scope-switch button:disabled:hover{color:#929fa9}
[data-theme="light"] .scope-switch{background:#fffffff0;border-color:#d3d7d9}
[data-theme="light"] .scope-switch button{color:#5f656b}
[data-theme="light"] .scope-switch button.active{background:#e4e6e4;color:#0f1113}

/* ----------------------------------------------------------- the throttle
   The playback bar's right-hand chip was a dead "190 kN" label. It is now the
   throttle: the one input the whole physics model runs off, so the slider and
   every number on the panels are the same quantity seen two ways. Hidden
   entirely — not greyed — on a part with no kinematics, because a control that
   cannot do anything is worse than no control. */
.throttle-control{display:flex;align-items:center;gap:9px}
.throttle-control[hidden]{display:none}
.throttle-range{-webkit-appearance:none;appearance:none;width:84px;height:3px;border-radius:2px;
  background:linear-gradient(to right,var(--orange) 0 var(--fill,100%),#394047 var(--fill,100%) 100%);
  cursor:pointer;flex-shrink:0}
.throttle-range::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;border-radius:50%;
  background:#e7eaec;border:1px solid #8b949b;cursor:pointer}
.throttle-range::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:#e7eaec;
  border:1px solid #8b949b;cursor:pointer;border-width:1px}
.throttle-range:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
#throttle-readout{min-width:72px;justify-content:flex-end}

/* The motion-scale tag, the way teardown prints it. The shaft runs at 16 717
   rpm, which at 60 fps is a strobe, so the PICTURE is geared down by 0.004 and
   says so. The panels report the real figure; this tag is what keeps the two
   from being read as the same claim. */
.motion-tag{font-size:10px;letter-spacing:.07em;color:#9aa2a9;white-space:nowrap;flex-shrink:0;
  border:1px solid #2f373d;border-radius:3px;padding:3px 5px}
.motion-tag[hidden]{display:none}
[data-theme="light"] .motion-tag{color:#5f656b;border-color:#dcdfe0}

@media(max-width:800px){
  .scope-switch button{padding:9px 9px;font-size:10px}
  .scene-bottom{flex-wrap:wrap;justify-content:center}
  .throttle-range{width:54px}
  .motion-tag{display:none}
  #throttle-readout{min-width:0}
}

/* ============================================================ evidence layer
   The citation chip, the thread metric card and the gap block.

   The grades carry colour on purpose: A is the calm published figure and C is
   the derived one that must be read with a hedge. They must not look alike,
   because telling them apart at a glance in front of a customer IS the
   product. A reading with no grade shows no chip at all. */
.message-cite{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:11px 0 2px;
  font:9px var(--mono);letter-spacing:.03em;line-height:1.7}
.cite-grade{border:1px solid currentColor;border-radius:3px;padding:2px 5px;
  letter-spacing:.05em;flex-shrink:0}
.cite-grade-a{color:#56b48c}
.cite-grade-b{color:#c0a85a}
.cite-grade-c{color:var(--orange-light)}
.cite-doc{color:#93a0ab;overflow-wrap:anywhere}
.cite-note{color:#6c7984}

/* the metric card the backend would stream as a widget */
.thread-metric{border:1px solid #3c444b;border-radius:7px;background:#1b2024;
  padding:11px 13px 9px;margin:14px 0}
.thread-metric-top{display:flex;align-items:center;gap:9px;font-size:12px;color:#b7c1c8}
.thread-metric-top>span:first-child{overflow-wrap:anywhere}
.thread-metric-top .cite-grade{margin-left:auto;font:9px var(--mono)}
.thread-metric-value{display:flex;align-items:baseline;gap:6px;margin:9px 0 8px}
.thread-metric-value strong{font:400 27px var(--mono);color:#eef0ef;letter-spacing:-.02em}
.thread-metric-value small{font-size:12px;color:#93a0ab}
.thread-metric-delta{margin-left:auto;font:11px var(--mono);color:var(--orange-light)}
.thread-metric p{font-size:10px;color:#697a87;margin:0;
  border-top:1px solid #30383f;padding-top:8px;line-height:1.6}

/* the refusal. Deliberately NOT styled as an error: a gap is a record that was
   created, so it reads as a green-edged receipt rather than a red failure. */
.thread-gap{border:1px solid #35474040;border-left:2px solid var(--green);
  border-radius:0 7px 7px 0;background:#18201d;padding:12px 13px 10px;margin:14px 0}
.thread-gap-top{display:flex;align-items:center;gap:7px;font-size:12px;color:#d5dade;
  margin-bottom:9px}
.thread-gap-top .icon{width:14px;height:14px;color:var(--green)}
.thread-gap p{font-size:12px;color:#9fadb5;margin:0 0 8px;line-height:1.6}
.thread-gap em{color:#cdd6db;font-style:normal}
.thread-gap-near{color:#8b99a2}
.thread-gap-logged{display:flex;align-items:center;gap:6px;font:9px var(--mono);
  letter-spacing:.03em;color:#6f9184;margin:0;border-top:1px solid #2a3531;padding-top:8px}
.thread-gap-logged .icon{width:11px;height:11px;color:var(--green)}

/* the work-order sequence, inline in a reply */
.thread-steps{list-style:none;margin:12px 0;padding:0;font-size:12px;color:#9fadb5}
.thread-steps li{display:flex;align-items:center;gap:9px;padding:6px 0;line-height:1.5}
.thread-steps li>span{width:18px;height:18px;border-radius:50%;border:1px solid #3c444b;
  display:grid;place-items:center;font:9px var(--mono);flex-shrink:0;color:#8995a0}
.thread-steps li small{margin-left:auto;font:9px var(--mono);color:#6c7984;flex-shrink:0}
.thread-steps li.is-current{color:#eef0ef}
.thread-steps li.is-current>span{border-color:var(--orange);color:var(--orange-light)}

[data-theme="light"] .thread-metric{background:#f7f8f6;border-color:#daddde}
[data-theme="light"] .thread-metric-top{color:#2c3237}
[data-theme="light"] .thread-metric-value strong{color:#0f1113}
[data-theme="light"] .thread-metric-value small,
[data-theme="light"] .thread-metric p{color:#5f656b}
[data-theme="light"] .thread-metric p{border-color:#daddde}
[data-theme="light"] .thread-metric-delta{color:#c03a00}
[data-theme="light"] .cite-doc{color:#4a5056}
[data-theme="light"] .cite-note{color:#6a7076}
[data-theme="light"] .cite-grade-a{color:#17795a}
[data-theme="light"] .cite-grade-c{color:#c03a00}
[data-theme="light"] .thread-gap{background:#f2f7f4;border-color:#cfe0d8;
  border-left-color:#17795a}
[data-theme="light"] .thread-gap-top{color:#1d2227}
[data-theme="light"] .thread-gap-top .icon,
[data-theme="light"] .thread-gap-logged .icon{color:#17795a}
[data-theme="light"] .thread-gap p{color:#4a5056}
[data-theme="light"] .thread-gap em{color:#1d2227}
[data-theme="light"] .thread-gap-logged{color:#2f6d57;border-color:#d6e3dc}
[data-theme="light"] .thread-steps{color:#4a5056}
[data-theme="light"] .thread-steps li>span{border-color:#c3c8cb;color:#5f656b}
[data-theme="light"] .thread-steps li small{color:#6a7076}
[data-theme="light"] .thread-steps li.is-current{color:#0f1113}
[data-theme="light"] .thread-steps li.is-current>span{border-color:#c03a00;color:#c03a00}

/* the part menu's two families */
.menu-group + .menu-group{margin-top:4px;border-top:1px solid #3a434a;padding-top:4px}
.menu-group-label{display:block;font:9px var(--mono);letter-spacing:.09em;color:#6e7a83;padding:5px 10px 3px}
[data-theme="light"] .menu-group + .menu-group{border-color:#e2e4e5}

/* ------------------------------------------------- the voice-wave dock
   The two text segments ("Dictado" / "Conversar") are gone. They asked the
   technician to read a setting in order to use a control, and they said
   nothing about whether the station could hear. In their place: ONE mic that
   carries its own state, with a waveform that moves only when real audio is
   arriving, and a small hands-free switch beside it.

   WHY THE BARS ARE NOT A CSS LOOP. `--level` is written from the worklet's
   measured RMS every 20 ms (station-voice.js paint()). A waveform that
   animates on a timer would move in a silent bay and over a dead headset,
   which is precisely the lie this panel exists not to tell. At level 0 the
   bars sit at their 2px rest height and do not move at all. */
.voice-dock{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-right:6px}

/* ------------------------------------------------------- STOP THE VOICE
   "I need a way to stop it — when you don't want to listen to it any more,
   you just stop it."

   This is a SEPARATE CONTROL, not a mode of the mic button, and that is the
   whole point. The speaker toggle in the header mutes the next answer as
   well as this one and lives 400 px away from where the technician is
   looking; the mic button in hands-free already means "interrupt and take my
   words". Neither is "shut up, I am done listening". This is.

   It exists ONLY while the station is speaking. A stop button that is
   present and dead for the other 95% of the session teaches people to
   ignore it; one that appears because there is something to stop is the
   obvious target at exactly the moment it is wanted.

   Signal orange, filled, and the widest thing in the dock, because it is
   pressed by someone who has already decided and does not want to aim. */
.voice-stop{display:flex;align-items:center;gap:6px;height:32px;padding:0 10px;
  border-radius:8px;border:1px solid #9d451f;background:#ff4f0014;
  color:var(--orange-light);font-size:11px;font-weight:500;letter-spacing:.01em;
  flex-shrink:0;cursor:pointer;
  animation:stopIn .16s cubic-bezier(.2,.8,.2,1);
  transition:background .14s,border-color .14s,color .14s}
.voice-stop[hidden]{display:none}
.voice-stop .icon{width:11px;height:11px}
.voice-stop:hover{background:#ff4f0026;border-color:var(--orange);color:#ff814b}
/* The press must look instant even before the 80 ms ramp has finished, or
   the technician presses it twice. */
.voice-stop:active{background:#ff4f0038;transform:scale(.97)}
.voice-stop:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
@keyframes stopIn{from{opacity:0;transform:translateX(4px) scale(.94)}
  to{opacity:1;transform:none}}
/* Narrow rail: the word goes, the square stays. The target does not shrink. */
@media (max-width:1180px){.voice-stop-text{display:none}
  .voice-stop{padding:0 9px}}
[data-theme="light"] .voice-stop{background:#ff4f0010;border-color:#e8b49c;color:#c03a00}
[data-theme="light"] .voice-stop:hover{background:#ff4f001f;border-color:#c03a00}
@media (prefers-reduced-motion:reduce){.voice-stop{animation:none}
  .voice-stop:active{transform:none}}

.mic-button{position:relative;display:flex;align-items:center;gap:0;
  width:auto;min-width:29px;height:32px;padding:0 7px;border-radius:8px;
  transition:background .18s,color .18s,padding .18s}
.mic-button .mic-glyph{width:16px;height:16px;flex-shrink:0}

/* The wave is width-0 at rest so the control is just a mic until there is
   something to show. It opens only when the mic is actually taking words. */
.voice-wave{display:flex;align-items:center;gap:3px;height:22px;
  width:0;overflow:hidden;opacity:0;margin-left:0;
  transition:width .22s cubic-bezier(.2,.8,.2,1),opacity .18s,margin-left .22s}
.voice-wave i{display:block;width:2.5px;border-radius:1.5px;background:currentColor;
  height:3px;transform-origin:center;
  transition:height .07s linear}

/* CAPTURING — Signal, and the bars take their height from the real level.
   Each bar gets its own phase (--i) so the shape reads as a wave rather than
   seven identical blocks, but the AMPLITUDE is the measured level: all seven
   collapse together when the room goes quiet. */
.mic-button.capturing,.mic-button.listening{color:var(--orange);background:#ff4f0018}
.mic-button.capturing .voice-wave,.mic-button.listening .voice-wave{
  width:41px;opacity:1;margin-left:7px}
.mic-button.capturing .voice-wave i,.mic-button.listening .voice-wave i{
  height:calc(3px + var(--level) * var(--gain,1) * 19px);
  animation:waveBreathe 1.1s ease-in-out infinite;
  animation-delay:calc(var(--i) * -.13s)}
/* The per-bar gain is what makes it a wave: the middle bars swing furthest,
   the edges least, exactly as a voice envelope does. */
.voice-wave i:nth-child(1),.voice-wave i:nth-child(7){--gain:.42}
.voice-wave i:nth-child(2),.voice-wave i:nth-child(6){--gain:.68}
.voice-wave i:nth-child(3),.voice-wave i:nth-child(5){--gain:.9}
.voice-wave i:nth-child(4){--gain:1}
/* `waveBreathe` only ever scales what the level already produced — at level 0
   the height is 2px and scaling it is still flat. It never invents motion. */
@keyframes waveBreathe{0%,100%{transform:scaleY(.82)}50%{transform:scaleY(1.18)}}

/* ARMED — hands-free at rest. The mic is open but nothing has been said, so
   the bars show, neutral and still, at rest height: "I can hear you" without
   claiming to be hearing anything. */
.mic-button.armed:not(.capturing){color:#cfd8de;background:#2a333a}
.mic-button.armed:not(.capturing) .voice-wave{width:41px;opacity:.6;margin-left:7px}
.mic-button.armed:not(.capturing) .voice-wave i{height:3px;animation:none}

/* THINKING / ANSWERING — a calm travelling swell, deliberately unlike the
   capture wave: slower, lower, neutral-coloured, and NOT level-driven,
   because the level means nothing while the station holds the floor. */
.station-speaking .mic-button:not(.capturing),
.voice-thinking .mic-button:not(.capturing){color:#9fb0bd;background:#262f36}
.station-speaking .mic-button:not(.capturing) .voice-wave,
.voice-thinking .mic-button:not(.capturing) .voice-wave{
  width:41px;opacity:.9;margin-left:7px}
.station-speaking .mic-button:not(.capturing) .voice-wave i,
.voice-thinking .mic-button:not(.capturing) .voice-wave i{
  height:11px;animation:waveThink 1.5s ease-in-out infinite;
  animation-delay:calc(var(--i) * -.17s)}
@keyframes waveThink{0%,100%{transform:scaleY(.3);opacity:.5}
  50%{transform:scaleY(1);opacity:1}}

/* DUCKED — barge-in stage 1: the station heard something and went quiet
   while it decides whether that something was a person.
   The real feedback here is AUDIBLE (the output drops 18 dB), which is the
   right channel for an audio interaction. This is a whisper of a visual to
   go with it: the thinking wave slows and dims, so a technician glancing up
   sees the station holding back rather than carrying on.
   Deliberately NOT Signal (#FF4F00) — a duck is the station listening, not
   an act/live state — and deliberately no banner or overlay: a duck that
   turns out to be a knock lasts ~200 ms, and anything larger would read as
   the interface flickering. */
.voice-ducked .mic-button:not(.capturing) .voice-wave{opacity:.45}
.voice-ducked .mic-button:not(.capturing) .voice-wave i{
  animation-duration:2.4s}

/* The old ring stays for the paddle, which has no wave of its own. */
.mic-button{--level:0}
.mic-button.active::after{content:'';position:absolute;inset:-2px;border-radius:7px;
  border:1px solid var(--orange);
  opacity:calc(.25 + var(--level) * .75);
  transform:scale(calc(1 + var(--level) * .22));
  transition:opacity .06s linear, transform .06s linear;pointer-events:none}
.mic-button:hover{background:#353f48}
/* The SNR gate refused the utterance. Amber, not red: nothing failed, the
   floor was simply too loud to be sure, and the technician should repeat. */
.mic-button.blocked{color:#e0a33a;background:#e0a33a1f}
/* No microphone. The control stays clickable — a disabled button does not
   even acknowledge the press — and says why, every time. */
.mic-button.mic-dead{color:#8b949c}
.mic-button.mic-dead .voice-wave{width:0;opacity:0;margin-left:0}

/* ------------------------------------------------- the hands-free switch
   Hands-free is still selectable, but as a SWITCH on the mic rather than as
   one of two things to read. A switch is right here where the segments were
   wrong: there is a default (dictation, the safe one — nothing opens the mic
   until a press) and one opt-in departure from it, which is exactly what a
   switch means. Its state is legible without acting on it (dot + label +
   aria-checked), and leaving hands-free is the same single click that
   entered it. */
.handsfree-toggle{position:relative;display:grid;place-items:center;flex-shrink:0;
  width:30px;height:30px;padding:0;border-radius:8px;
  border:1px solid #39424a;background:#1a1f23;color:#aab6bf;
  transition:background .15s,color .15s,border-color .15s}
.handsfree-toggle:hover{color:#cfd8de;background:#262e34}

/* Both glyphs occupy the SAME cell and cross-fade, so the bars appear to grow
   in place instead of one mark being swapped for another. */
.handsfree-glyph{grid-area:1/1;display:grid;place-items:center;
  width:17px;height:17px;transition:opacity .16s,transform .16s}
.handsfree-glyph .icon{width:17px;height:17px}
.handsfree-glyph-on{opacity:0;transform:scaleY(.55)}
.handsfree-toggle[aria-checked="true"] .handsfree-glyph-off{opacity:0;transform:scaleY(1.6)}
.handsfree-toggle[aria-checked="true"] .handsfree-glyph-on{opacity:1;transform:none}

/* ON is Signal — hands-free IS a live, open microphone, which is exactly what
   the brand book reserves Signal for. OFF is neutral: no Signal anywhere.
   Colour is the SECOND cue, never the only one: the glyph itself changes from
   five flat stubs to a tall swell, so the state survives greyscale. */
.handsfree-toggle[aria-checked="true"]{color:var(--orange);background:#ff4f0018;
  border-color:#9d451f}
.handsfree-toggle[aria-checked="true"]:hover{background:#ff4f0026;color:var(--orange)}
/* A third cue, and the only moving one: while hands-free is ON *and* the mic
   is genuinely open, the bars breathe. Motion means live, never decoration. */
body.voice-mode-conversation:not(.voice-no-mic) .handsfree-toggle[aria-checked="true"]
  .handsfree-glyph-on{animation:handsfreeBreathe 1.8s ease-in-out infinite}
@keyframes handsfreeBreathe{0%,100%{transform:scaleY(.86)}50%{transform:scaleY(1.06)}}

.handsfree-toggle:focus-visible,.mic-button:focus-visible{outline:1px solid var(--orange);
  outline-offset:1px}
/* Unavailable without a mic: dimmed, struck through, still pressable, still
   answers with the reason. */
.voice-no-mic .handsfree-toggle{color:#6c757d}

/* The composer row is 370 px wide. The context label restates the chip above
   it, so it is what yields when the dock needs the room. */
.composer-bottom .composer-context{min-width:0;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis}
.composer-bottom .composer-context>span:last-child{overflow:hidden;text-overflow:ellipsis}
@media(max-width:1320px){.composer-bottom .composer-context{display:none}}
/* The switch is already icon-only at every width, so there is nothing left
   to drop on a narrow rail. It stays 30px from 1680 down to the phone. */

/* A waveform is motion, and motion is not the only way this says what it
   says: colour, bar height and the label all carry it too. With reduced
   motion the bars still take their height from the real level — that is
   information, not decoration — they simply stop oscillating. */
@media(prefers-reduced-motion:reduce){
  .voice-wave i{transition:none;animation:none !important}
  /* The hands-free switch loses its breathing and its cross-fade; the glyph
     swap and the Signal colour still carry on/off with no motion at all. */
  .handsfree-glyph{transition:none;animation:none !important}
  .handsfree-glyph-on,.handsfree-toggle[aria-checked="true"] .handsfree-glyph-off,
  .handsfree-toggle[aria-checked="true"] .handsfree-glyph-on{transform:none}
  .mic-button.capturing .voice-wave i,.mic-button.listening .voice-wave i{
    animation:none !important}
  .station-speaking .mic-button:not(.capturing) .voice-wave i,
  .voice-thinking .mic-button:not(.capturing) .voice-wave i{
    animation:none !important;height:11px;opacity:.75}
  .voice-wave,.mic-button{transition:none}
}

/* ------------------------------------------------------------- light theme */
[data-theme="light"] .mic-button{color:#4a5056}
[data-theme="light"] .mic-button:hover{background:#e7e9e7}
[data-theme="light"] .mic-button.capturing,
[data-theme="light"] .mic-button.listening{background:#ffe6d9;color:#c03a00}
[data-theme="light"] .mic-button.armed:not(.capturing){background:#e4e7e9;color:#3a4046}
[data-theme="light"] .station-speaking .mic-button:not(.capturing),
[data-theme="light"] .voice-thinking .mic-button:not(.capturing){
  background:#e4e7e9;color:#53606b}
[data-theme="light"] .mic-button.mic-dead{color:#8a9097}
[data-theme="light"] .handsfree-toggle{background:#eceeec;border-color:#d7dad8;color:#5a6066}
[data-theme="light"] .handsfree-toggle:hover{background:#e7e9e7;color:#2a2f33}
[data-theme="light"] .handsfree-toggle[aria-checked="true"]{background:#ffe6d9;color:#c03a00;
  border-color:#e8a883}
[data-theme="light"] .handsfree-toggle[aria-checked="true"]:hover{background:#ffdac8;color:#a83200}
[data-theme="light"] body.voice-no-mic .handsfree-toggle{color:#8a9097}


/* Hands-free at rest: the mic is open and nothing has been said yet. A thin
   steady ring, no fill and no motion — "ready", not "recording". It must be
   distinguishable from capturing at a glance, because the difference is
   whether your words are being taken. */
.mic-button.armed{box-shadow:inset 0 0 0 1px #5c6b76}

/* Actually taking words. THIS is an act state, so this is where Signal goes:
   solid fill, no animation (the ring driven by --level already moves with the
   real input, and two moving things on one 29 px target is noise). */
.mic-button.capturing{box-shadow:inset 0 0 0 1px #9d451f}
[data-theme="light"] .mic-button.armed{box-shadow:inset 0 0 0 1px #b6bdc2}
[data-theme="light"] .mic-button.capturing{box-shadow:inset 0 0 0 1px #e8a883}

/* In hands-free the button's job changes while the station talks: it is the
   stop control. Say so by shape — a square-ish inset — rather than swapping
   the icon, which would make the one target on the row mean two things. */
body.voice-mode-conversation.station-speaking .mic-button:not(.capturing){
  box-shadow:inset 0 0 0 1px #55616b}

/* No microphone: permission refused, no device, or a WebView that cannot
   capture. Struck through rather than disabled — a disabled control gives no
   feedback when pressed, and "nothing happened" is the complaint this state
   most needs to pre-empt. Pressing it still answers, with the reason. */
.mic-button.mic-dead{color:#6c7781}
.mic-button.mic-dead::before{content:'';position:absolute;left:4px;right:4px;top:50%;
  height:1px;background:#8a949d;transform:rotate(-38deg);pointer-events:none}
.mic-button.mic-dead::after{display:none}
[data-theme="light"] .mic-button.mic-dead{color:#8b9097}
[data-theme="light"] .mic-button.mic-dead::before{background:#9aa0a6}
/* Hands-free is meaningless with no mic. The icon-only switch cannot say so
   in words, so it says it in the same visual language the mic uses: the SAME
   strike-through, at the same angle. Dimmed but still pressable — pressing it
   still raises "Sin micrófono · escribe la pregunta", which is the whole point
   of not disabling it. */
body.voice-no-mic .handsfree-toggle{opacity:.72}
body.voice-no-mic .handsfree-toggle::before{content:'';position:absolute;
  left:5px;right:5px;top:50%;height:1px;background:#8a949d;
  transform:rotate(-38deg);pointer-events:none}
[data-theme="light"] body.voice-no-mic .handsfree-toggle::before{background:#9aa0a6}
/* Never animate a switch over a dead mic: there is nothing live to signal. */
body.voice-no-mic .handsfree-glyph-on{animation:none !important}

/* ---------------------------------------- the blocked-microphone panel
   Shown only when the browser has BLOCKED the mic for this site, which is
   the one mic failure nothing on this panel can fix: the browser will never
   prompt again, so the instruction has to point outside the page, at the
   padlock in the address bar.

   A toast was the wrong vessel for it. A toast lasts 2.6 s and the
   technician is being asked to go look at browser chrome; by the time they
   look back, the thing that told them what to look for is gone. So this
   stays until it is dismissed, and it sits directly above the text box it
   is telling them to use instead — voice is an enhancement, and a blocked
   mic must read as "voice is off", never as "the station is broken". That
   is what the second paragraph is for, and why it is not the small print. */
.mic-blocked{display:none;border:1px solid #6a4a2c;border-left:2px solid var(--orange);
  border-radius:8px;background:#1d1a17;padding:11px 13px 10px;margin:0 0 9px;
  font-size:12px;line-height:1.55;color:#c9cfd4}
.mic-blocked.is-open{display:block}
.mic-blocked strong{display:block;font-size:13px;font-weight:550;color:var(--ink);
  margin-bottom:5px;letter-spacing:-.01em}
.mic-blocked p{margin:0 0 6px}
.mic-blocked b{font-weight:550;color:#e9edf0}
.mic-blocked .mic-blocked-fallback{color:#a7b0b8;margin-bottom:8px}
.mic-blocked .mic-blocked-close{border:1px solid #4e5a64;border-radius:5px;
  padding:5px 10px;font-size:11px;color:#d3dae0;background:#232a30}
.mic-blocked .mic-blocked-close:hover{background:#2d353c;color:var(--ink)}
[data-theme="light"] .mic-blocked{background:#fff6ef;border-color:#e4bb96;
  border-left-color:var(--orange);color:#4a5158}
[data-theme="light"] .mic-blocked strong{color:#16191c}
[data-theme="light"] .mic-blocked b{color:#1d2226}
[data-theme="light"] .mic-blocked .mic-blocked-fallback{color:#5d656c}
[data-theme="light"] .mic-blocked .mic-blocked-close{background:#fff;
  border-color:#c8ccd0;color:#2d3338}
[data-theme="light"] .mic-blocked .mic-blocked-close:hover{background:#f1f3f4}

/* The station is speaking. A quiet mark on the assistant's identity dot
   rather than a banner: it is continuous state, not an event. */
body.station-speaking .ai-origin{animation:voiceSpeak 1.1s ease-in-out infinite}
@keyframes voiceSpeak{0%,100%{opacity:.35;transform:scale(1)}50%{opacity:1;transform:scale(1.5)}}
[data-theme="light"] .mic-button.blocked{background:#f6e2bd;color:#8a5a00}

/* ------------------------------------------------- the thinking rail
   The agent's steps, shown while it works and folded away once the answer
   lands. Read under a face shield from a metre back, so: one line per step,
   a mark you can read by shape as well as by colour, and nothing that moves
   except the step that is actually running.

   Colour follows the brand book. Signal (--orange) is reserved for act/live,
   so ONLY the running step carries it; a step that has finished is a quiet
   neutral, and a step that found nothing is dim rather than red — the
   station declining to invent a number is correct behaviour, not an error,
   and painting it red would teach the floor to read a refusal as a fault. */
.agent-steps{margin:2px 0 18px}
.steps-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.agent-steps[data-collapsed="1"] .steps-list{display:none}

.step-row{display:grid;grid-template-columns:13px 1fr auto;align-items:baseline;
  gap:9px;font-size:12.5px;line-height:1.5;color:#7f8a93;padding:2px 0;
  /* Steps arrive one at a time; a step that appears without motion reads as
     a list that was already there. 90 ms, once, no loop. */
  animation:stepIn .09s ease-out both}
@keyframes stepIn{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}

/* The mark. A ring while running, a filled dot when done, a hollow dash when
   the store had nothing. Shape carries the state; colour only reinforces it. */
.step-mark{width:7px;height:7px;border-radius:50%;align-self:center;
  box-shadow:inset 0 0 0 1px #4b545c;transform:translateY(-1px)}
.step-row[data-state="running"]{color:var(--ink)}
.step-row[data-state="running"] .step-mark{box-shadow:inset 0 0 0 1px var(--orange);
  background:var(--orange);animation:stepPulse 1.15s ease-in-out infinite}
@keyframes stepPulse{0%,100%{opacity:.35}50%{opacity:1}}
.step-row[data-state="done"] .step-mark{background:#5f686f;box-shadow:none}
.step-row[data-state="failed"] .step-mark{background:none;box-shadow:inset 0 0 0 1px #6d757c}

/* The label gets the room; the outcome is a short fixed phrase, so it is the
   one that may shrink. A label cut mid-word is the failure mode here — it is
   the only part of the line the model wrote for a person. */
.step-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.step-outcome{font:9.5px var(--mono);letter-spacing:.02em;color:#626b72;
  white-space:nowrap;text-align:right;flex-shrink:0;opacity:.9}
.step-row[data-state="running"] .step-outcome{color:#8b949b}

/* The folded summary. Reads as a footnote on the answer above it, not as a
   control: the technician who wants the detail can open it, the one who
   wants the number never has to see it. */
.steps-summary{display:flex;align-items:center;gap:7px;padding:3px 0;
  font:10px var(--mono);letter-spacing:.06em;color:#626b72;text-align:left}
.steps-summary:hover{color:var(--muted)}
.steps-summary .icon{width:12px;height:12px;transition:transform .14s ease}
.agent-steps[data-collapsed="1"] .steps-caret .icon{transform:rotate(-90deg)}
.steps-flag{color:#7b858d}
.steps-flag:before{content:'·';margin-right:6px}

[data-theme="light"] .step-row{color:#6a7076}
[data-theme="light"] .step-row[data-state="running"]{color:var(--ink)}
[data-theme="light"] .step-mark{box-shadow:inset 0 0 0 1px #b6bcc0}
[data-theme="light"] .step-row[data-state="running"] .step-mark{
  background:var(--orange-light);box-shadow:inset 0 0 0 1px var(--orange-light)}
[data-theme="light"] .step-row[data-state="done"] .step-mark{background:#9aa1a6}
[data-theme="light"] .step-outcome,[data-theme="light"] .steps-summary,
[data-theme="light"] .steps-flag{color:#767c82}

@media (prefers-reduced-motion:reduce){
  .step-row{animation:none}
  .step-row[data-state="running"] .step-mark{animation:none;opacity:1}
}

/* The construction field is no longer DOM. It is real line geometry in the
   scene (stage-look.js buildConstructionRings) so that it foreshortens with
   the camera instead of sitting on the glass; its theme ink is pushed in from
   viewer.js as a material colour, because materials are not styleable here. */

/* ==========================================================================
   Ajustes — the demo-piece picker.
   A <select>, not the toggles above it, so `.setting-row input` (which pins a
   checkbox to 18px square) does not apply. Sized to hold the longest part name
   without the row reflowing, and themed in both schemes because the dialog is
   the one surface that is read in a lit workshop as often as a dark one.
   ========================================================================== */
.setting-select{background:#202b33;color:#e4eaee;border:1px solid #45515a;border-radius:6px;
  padding:8px 10px;font:13px var(--sans);min-width:188px;max-width:230px}
.setting-select:hover{border-color:#758996}
.setting-select:focus-visible{outline:2px solid var(--orange);outline-offset:1px}
.setting-select optgroup{background:#202b33;color:#8297a5;font-size:11px}
.setting-select option{background:#202b33;color:#e4eaee}
[data-theme="light"] .setting-select{background:#fff;color:#0f1113;border-color:#daddde}
[data-theme="light"] .setting-select:hover{border-color:#868d94}
[data-theme="light"] .setting-select optgroup{background:#fff;color:#5f656b}
[data-theme="light"] .setting-select option{background:#fff;color:#0f1113}

/* ======================================================================
   GRAPH MEMORY — the mind behind the station.

   It OVERLAYS the main workspace rather than replacing it, so the chat rail
   stays live underneath: ask on the right, watch the neuron pop on the
   left, on one machine. Tokens only (--ink/--dim/--line/--panel), so it
   inherits both themes with no second palette.

   Colour on the canvas means ONE thing: which subsystem a node belongs to,
   in low-chroma tints. Signal #FF4F00 means act/live and nothing else: the
   live pulse, a hole in the documentation, the neuron that just appeared.
   ====================================================================== */
.graph-memory{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;
  background:var(--bg);animation:gm-in .22s cubic-bezier(.2,.7,.3,1)}
@keyframes gm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.graph-memory[hidden]{display:none}

.gm-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  padding:18px 22px 14px;border-bottom:1px solid var(--line);flex-shrink:0}
.gm-title h2{margin:0;font-size:21px;font-weight:560;letter-spacing:-.025em;line-height:1.1}
.gm-title p{margin:3px 0 0;font-size:12.5px;color:var(--dim);line-height:1.35}
.gm-top-right{display:flex;align-items:center;gap:10px}
/* Where you are in the memory: the whole bench, or one part inside it. */
.gm-crumb{display:flex;align-items:center;gap:7px;margin:0 0 3px;font-family:var(--mono);font-size:10px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.gm-crumb[hidden]{display:none}
.gm-crumb button{color:var(--dim);border-bottom:1px solid var(--line);padding:0 0 1px;letter-spacing:inherit;
  text-transform:inherit;font:inherit}
.gm-crumb button:hover{color:var(--ink)}
.gm-crumb i{font-style:normal;color:var(--dim)}
.gm-crumb b{font-weight:500;color:var(--ink)}
.gm-open-part{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:8px;
  border:1px solid var(--ink);background:var(--ink);color:var(--bg);font-size:12.5px;font-weight:500}
.gm-open-part:hover{opacity:.9}
.gm-rels{display:flex;flex-direction:column;gap:4px}
.gm-rel-row{display:flex;flex-direction:column;gap:2px;padding:7px 9px;border-radius:7px;border:1px solid var(--soft-line);
  text-align:left;width:100%;transition:background .12s}
.gm-rel-row:hover{background:var(--panel2)}
.gm-rel-row>span:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;color:var(--ink)}
.gm-rel-row>span:first-child b{font-family:var(--mono);font-size:10px;font-weight:400;color:var(--dim);flex-shrink:0}
.gm-rel-row small{font-size:10.5px;color:var(--dim);line-height:1.35}
.gm-rel-kind{font-family:var(--mono);font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--dim)}
.gm-rel-kind.is-doc{color:var(--muted)}.gm-rel-kind.is-conn{color:var(--ink)}
.gm-cc-part{align-self:flex-start;font-family:var(--mono);font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink);padding:2px 6px;border-radius:4px;background:var(--panel2);margin-right:4px}
.gm-time-part{margin:6px 0 2px;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.gm-glyph-part{width:12px;height:12px;border:2px solid var(--ink);background:transparent}
.gm-line-doc i{border-color:var(--muted);border-top-width:2px}
.gm-line-people i{border-top-style:dotted;border-color:var(--dim)}
.gm-line-family i{border-color:var(--line);border-top-width:3px}
.gm-line-conn i{border-color:var(--ink);border-top-width:2px}
.gm-tabs{display:flex;gap:2px;padding:2px;background:var(--panel2);border-radius:8px}
.gm-tabs button{padding:6px 14px;border-radius:6px;font-size:12.5px;color:var(--dim);
  letter-spacing:-.005em;transition:background .14s,color .14s}
.gm-tabs button[aria-selected="true"]{background:var(--panel);color:var(--ink);
  box-shadow:0 1px 2px rgba(0,0,0,.14)}
[data-theme="light"] .gm-tabs button[aria-selected="true"]{box-shadow:0 1px 2px rgba(15,17,19,.07)}

.gm-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px}
.gm-body[hidden]{display:none}
.gm-canvas-wrap{position:relative;min-width:0;overflow:hidden}
#gm-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}

/* The faintest instrument grid: a surface for the nodes to sit on, far
   below the contrast of the lightest edge. Dots, not lines, so it never
   reads as part of the graph. */
.gm-canvas-wrap:before{content:'';position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(var(--line) .9px,transparent 1px);
  background-size:26px 26px;opacity:.55}
[data-theme="light"] .gm-canvas-wrap:before{opacity:.75}

.gm-zoomhint{position:absolute;right:14px;top:12px;font-family:var(--mono);font-size:9.5px;
  letter-spacing:.04em;color:var(--dim);opacity:.7;pointer-events:none}

.gm-side{border-left:1px solid var(--line);padding:18px 18px 22px;overflow-y:auto;
  background:var(--panel);display:flex;flex-direction:column;gap:18px}
/* THE WHOLE BENCH GETS THE WHOLE CANVAS. Sixteen parts' maps do not read in
   the column left over beside a 300 px panel, so on the bench the panel is a
   drawer over the map's right edge: it opens on a click, a selection or a
   live question, and the map underneath never changes size (no re-fit
   mid-turn). Inside one part it is the column it always was. */
.gm-side-tab{display:none}
.graph-memory.is-bench .gm-body{grid-template-columns:minmax(0,1fr);position:relative}
.graph-memory.is-bench .gm-side{position:absolute;top:0;right:0;bottom:0;width:300px;z-index:5;
  transform:translateX(100%);visibility:hidden;
  transition:transform .22s cubic-bezier(.2,.7,.3,1),visibility 0s linear .22s}
.graph-memory.is-bench.side-open .gm-side{transform:none;visibility:visible;
  box-shadow:-14px 0 30px rgba(0,0,0,.22);transition:transform .22s cubic-bezier(.2,.7,.3,1)}
[data-theme="light"] .graph-memory.is-bench.side-open .gm-side{box-shadow:-14px 0 30px rgba(15,17,19,.09)}
.graph-memory.is-bench .gm-side-tab{display:inline-flex;align-items:center;gap:6px;position:absolute;right:12px;top:10px;z-index:4;
  padding:5px 10px;border-radius:7px;border:1px solid var(--line);background:var(--panel);color:var(--muted);
  font-family:var(--mono);font-size:10px;letter-spacing:.07em;text-transform:uppercase;transition:right .22s cubic-bezier(.2,.7,.3,1)}
.graph-memory.is-bench .gm-side-tab:hover{color:var(--ink);border-color:var(--dim)}
.graph-memory.is-bench.side-open .gm-side-tab{right:312px}
.graph-memory.is-bench .gm-zoomhint{right:auto;left:14px}
/* (the bar's own entry animation resets its transform: place it by its left edge) */
.graph-memory.is-bench .gm-livebar{left:14px;top:34px;transform:none}
.graph-memory.is-bench.side-open .gm-legend{right:312px}

/* The headline number: one hero, big, tabular, with its caveat under it. */
.gm-stat-block{display:flex;flex-direction:column;gap:6px}
.gm-hero{display:flex;align-items:baseline;gap:3px;font-family:var(--mono);
  font-variant-numeric:tabular-nums;line-height:1}
.gm-hero span{font-size:46px;font-weight:300;letter-spacing:-.03em;color:var(--ink)}
.gm-hero small{font-size:17px;color:var(--dim)}
.gm-hero-empty{margin:0;font-size:15px;color:var(--dim)}
.gm-stat-block p{margin:0;font-size:11.5px;line-height:1.45}

.gm-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gm-tile{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid var(--line);
  border-radius:9px;background:var(--bg)}
.gm-tile b{font-size:20px;font-weight:400;letter-spacing:-.02em;color:var(--ink);line-height:1.1}
.gm-tile span{font-size:11px;color:var(--dim)}
.gm-tile.is-gap b{color:var(--orange)}
.gm-tile.is-fix b{color:var(--green)}

.gm-recent{display:flex;flex-direction:column;gap:6px}
.gm-recent-row{display:flex;flex-direction:column;gap:3px;text-align:left;padding:8px 9px;
  border-radius:7px;border:1px solid var(--soft-line);width:100%;transition:background .12s}
.gm-recent-row:hover{background:var(--panel2)}
.gm-recent-q{font-size:12px;color:var(--ink);line-height:1.3;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.gm-recent-out{display:flex;align-items:center;gap:6px;font-size:10.5px;color:var(--dim)}
.gm-recent-out small{margin-left:auto;font-family:var(--mono);font-size:10px}
.gm-pill{font-style:normal;font-family:var(--mono);font-size:9.5px;letter-spacing:.04em;padding:2px 6px;
  border-radius:4px;background:var(--panel2);color:var(--dim)}
.gm-pill.is-gap{background:color-mix(in srgb,var(--orange) 14%,transparent);color:var(--orange-light)}

.gm-grade{display:inline-block;font-family:var(--mono);font-size:9px;font-weight:500;letter-spacing:.06em;
  padding:1px 5px;border-radius:3px;margin-left:6px;vertical-align:1px;
  background:var(--panel2);color:var(--dim);border:1px solid var(--line)}
.gm-grade-a{color:var(--green);border-color:color-mix(in srgb,var(--green) 40%,transparent)}
.gm-grade-c{color:var(--dim);border-style:dashed}

.gm-kv{margin:0;display:flex;flex-direction:column;gap:0}
.gm-kv>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:7px 0;border-bottom:1px solid var(--soft-line)}
.gm-kv>div:last-child{border-bottom:0}
.gm-kv dt{font-size:12.5px;color:var(--dim)}
.gm-kv dd{margin:0;font-size:12.5px;color:var(--ink);text-align:right;max-width:62%;word-break:break-word}
.gm-hint{margin:0;font-size:11.5px;color:var(--dim);line-height:1.45}

.gm-node-head{display:flex;flex-direction:column;gap:5px}
.gm-node-head h3{margin:0;font-size:15px;font-weight:500;line-height:1.3;letter-spacing:-.012em}
.gm-node-head .section-label i{font-style:normal}
.gm-links{display:flex;flex-direction:column;gap:4px}
.gm-link{display:flex;align-items:baseline;gap:9px;padding:6px 8px;border-radius:6px;
  text-align:left;font-size:12px;color:var(--ink);width:100%;transition:background .12s}
.gm-link:hover{background:var(--panel2)}
.gm-rel{font-family:var(--mono);font-size:10px;letter-spacing:.05em;color:var(--dim);
  text-transform:uppercase;flex-shrink:0;min-width:92px}
.gm-guess{font-style:italic;opacity:.75;text-transform:none;letter-spacing:0}
.gm-link>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gm-clear{align-self:flex-start;font-size:12px;color:var(--dim);padding:5px 0;border-bottom:1px solid var(--line)}
.gm-clear:hover{color:var(--ink)}

/* ---------------------------------------------------- the live chain */
.gm-now{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gm-now .section-label{display:inline-flex;align-items:center;gap:7px}
.gm-now .gm-livedot{display:none}
.gm-now.is-live .gm-livedot{display:inline-block}
.gm-now-time{font-size:11px;color:var(--dim)}
.gm-chain{list-style:none;margin:0;padding:0 0 0 2px;display:flex;flex-direction:column;position:relative}
.gm-chain:before{content:'';position:absolute;left:7px;top:10px;bottom:10px;width:1px;background:var(--line)}
.gm-step{position:relative;display:flex;gap:12px;padding:7px 0;cursor:pointer;
  animation:gm-step-in .32s cubic-bezier(.2,.7,.3,1) both}
.gm-step.is-old{animation:none}
.gm-step.is-old.is-question .gm-step-dot{animation:none}
@keyframes gm-step-in{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
.gm-step-dot{position:relative;z-index:1;flex-shrink:0;width:11px;height:11px;margin-top:3px;border-radius:50%;
  background:var(--panel);border:1.5px solid var(--muted)}
.gm-step.is-question .gm-step-dot{background:var(--orange);border-color:var(--orange);
  box-shadow:0 0 0 0 rgba(255,79,0,.5);animation:gm-ping 1.6s 2}
.gm-step.is-search .gm-step-dot{border-style:dashed}
.gm-step.is-fact .gm-step-dot{background:var(--tint,var(--muted));border-color:var(--tint,var(--muted))}
.gm-step.is-doc .gm-step-dot{border-radius:2px;border-color:var(--ink)}
.gm-step.is-gap .gm-step-dot{border-color:var(--orange);border-style:dashed;background:transparent}
.gm-step.is-answer .gm-step-dot{background:var(--ink);border-color:var(--ink)}
.gm-step-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.gm-step-title{font-family:var(--mono);font-size:9.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim)}
.gm-step.is-gap .gm-step-title{color:var(--orange-light)}
.gm-step-text{font-size:12.5px;color:var(--ink);line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;
  -webkit-box-orient:vertical;overflow:hidden}
.gm-step-meta{font-family:var(--mono);font-size:10.5px;color:var(--dim)}

/* The legend doubles as the filter row: one control, bottom-left, out of
   the way of the hubs. Second row explains the four line styles. */
.gm-legend{position:absolute;left:14px;bottom:12px;display:flex;flex-direction:column;gap:6px;
  max-width:calc(100% - 28px);pointer-events:none}
.gm-legend-row{display:flex;flex-wrap:wrap;gap:5px;pointer-events:auto}
.gm-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;
  border:1px solid var(--line);border-radius:999px;background:var(--panel);
  font-size:11px;color:var(--dim);transition:border-color .14s,color .14s}
.gm-chip:hover{border-color:var(--muted);color:var(--ink)}
.gm-chip.is-on{border-color:var(--ink);color:var(--ink);background:var(--panel2)}
.gm-chip b{font-family:var(--mono);font-size:10px;font-weight:400;color:var(--dim)}
.gm-chip.is-on b{color:var(--ink)}
.gm-glyph{width:9px;height:9px;border-radius:50%;flex-shrink:0;background:var(--muted)}
.gm-glyph-subsystem{background:var(--ink)}
.gm-glyph-question{background:color-mix(in srgb,var(--muted) 35%,transparent);border:1px solid var(--muted)}
.gm-glyph-spec_card{width:7px;height:7px}
.gm-glyph-document{border-radius:2px;background:var(--panel);border:1px solid var(--muted);width:11px;height:8px}
.gm-glyph-gap{background:color-mix(in srgb,var(--orange) 12%,transparent);border:1.5px dashed var(--orange)}
.gm-glyph-correction{background:var(--green)}
.gm-glyph-operator{background:var(--dim)}
.gm-legend-lines{gap:12px;padding-left:2px}
.gm-line{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:9.5px;
  letter-spacing:.03em;color:var(--dim)}
.gm-line i{width:18px;height:0;border-top:1.5px solid var(--muted)}
.gm-line-gap i{border-top-style:dashed;border-color:var(--orange)}
.gm-line-fix i{border-color:var(--green)}
.gm-line-inferred i{border-top-style:dotted;border-color:var(--dim)}
.gm-line-hint{margin-left:auto;opacity:.8}

.gm-tip{position:absolute;pointer-events:none;z-index:3;max-width:260px;
  padding:7px 10px;border:1px solid var(--line);border-radius:7px;
  background:var(--panel);color:var(--ink);font-size:12px;line-height:1.35;
  box-shadow:0 6px 20px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:2px}
[data-theme="light"] .gm-tip{box-shadow:0 6px 20px rgba(15,17,19,.1)}
.gm-tip-kind{font-family:var(--mono);font-size:9.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--dim)}
.gm-tip-sub{font-family:var(--mono);font-size:10.5px;color:var(--dim)}
.gm-tip-rels{display:flex;flex-direction:column;gap:2px;margin:2px 0;padding-top:5px;border-top:1px solid var(--line)}
.gm-tip-row{font-size:11px;color:var(--muted)}
.gm-tip-row b{font-weight:600;color:var(--ink)}

/* The live bar. Signal, while something has just happened. */
.gm-livebar{position:absolute;left:50%;top:14px;transform:translateX(-50%);
  display:flex;align-items:center;gap:9px;padding:7px 14px;border-radius:999px;
  background:var(--panel);border:1px solid var(--line);font-size:12px;color:var(--ink);
  box-shadow:0 8px 26px rgba(0,0,0,.32);animation:gm-in .2s both;z-index:2}
[data-theme="light"] .gm-livebar{box-shadow:0 8px 26px rgba(15,17,19,.11)}
.gm-livedot{width:7px;height:7px;border-radius:50%;background:var(--orange);
  box-shadow:0 0 0 0 rgba(255,79,0,.5);animation:gm-ping 1.5s infinite}
@keyframes gm-ping{0%{box-shadow:0 0 0 0 rgba(255,79,0,.5)}70%{box-shadow:0 0 0 8px rgba(255,79,0,0)}100%{box-shadow:0 0 0 0 rgba(255,79,0,0)}}

.gm-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;text-align:center;padding:40px;pointer-events:none}
.gm-empty.is-below{justify-content:flex-start;padding-top:52%}
.gm-empty strong{font-size:15px;font-weight:500}
.gm-empty p{margin:0;max-width:330px;font-size:12.5px;color:var(--dim);line-height:1.5}

/* ------------------------------------------------- the reasoning pane */
.gm-reason-pane{display:block;overflow-y:auto}
.gm-reason{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:0;min-height:100%}
.gm-reason-main{padding:18px 22px 28px;min-width:0}
.gm-reason-side{border-left:1px solid var(--line);background:var(--panel);padding:18px;
  display:flex;flex-direction:column;gap:14px}
.gm-reason-head{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.gm-reason-head h3{margin:0;font-size:15px;font-weight:520;letter-spacing:-.012em}
.gm-reason-head p{margin:0;font-size:11.5px}
.gm-live-word{color:var(--orange-light);font-weight:500}

.gm-chains{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.gm-cc{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start;
  padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);cursor:pointer;
  transition:border-color .14s;animation:gm-step-in .32s cubic-bezier(.2,.7,.3,1) both}
.gm-cc:hover{border-color:var(--muted)}
.gm-cc.is-live{border-color:var(--orange);box-shadow:0 0 0 3px color-mix(in srgb,var(--orange) 12%,transparent)}
.gm-cc.has-gap{border-left:3px solid var(--orange)}
.gm-cc-q{display:flex;flex-direction:column;gap:4px;min-width:0}
.gm-cc-when{font-size:10px;color:var(--dim);letter-spacing:.02em}
.gm-cc-when b{font-weight:500;color:var(--ink)}
.gm-cc-q strong{font-size:13px;font-weight:500;line-height:1.3;color:var(--ink);letter-spacing:-.005em}
.gm-cc-group{align-self:flex-start;font-family:var(--mono);font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--tint,var(--dim));padding:2px 6px;border-radius:4px;
  background:color-mix(in srgb,var(--tint,var(--dim)) 12%,transparent)}
.gm-cc-flow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.gm-stage{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}
.gm-fl{display:inline-flex;flex-direction:column;gap:1px;padding:6px 9px;border-radius:7px;
  background:var(--bg);border:1px solid var(--soft-line);font-size:11.5px;color:var(--ink);max-width:260px;line-height:1.3}
.gm-fl em{font-style:normal;font-family:var(--mono);font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
.gm-fl b{font-weight:500;font-family:var(--mono);font-size:11px}
.gm-fl small{font-family:var(--mono);font-size:10px;color:var(--dim)}
.gm-fl .gm-grade{margin-left:0;align-self:flex-start}
.gm-fl-fact{border-left:3px solid var(--tint,var(--muted))}
.gm-fl-doc{border-style:solid;border-color:var(--muted)}
.gm-fl-gap{border-color:var(--orange);border-style:dashed;color:var(--orange-light)}
.gm-fl-gap em{color:var(--orange-light)}
.gm-fl-fix{border-left:3px solid var(--green)}
.gm-fl-answer{background:var(--panel2);border-color:transparent}
.gm-fl-thinking{flex-direction:row;align-items:center;gap:7px;color:var(--dim);border-style:dashed}
.gm-fl-thinking i{width:7px;height:7px;border-radius:50%;background:var(--orange);animation:gm-ping 1.4s infinite}
.gm-arrow{width:10px;height:0;border-top:1px solid var(--line);flex-shrink:0;position:relative}
.gm-arrow:after{content:'';position:absolute;right:-1px;top:-3px;border:3px solid transparent;border-left-color:var(--muted)}

.gm-card{border:1px solid var(--line);border-radius:11px;background:var(--bg);
  padding:14px 15px 15px;display:flex;flex-direction:column;gap:12px;min-width:0}
.gm-card header{display:flex;flex-direction:column;gap:3px}
.gm-card h3{margin:0;font-size:13.5px;font-weight:520;letter-spacing:-.012em}
.gm-card header p{margin:0;font-size:11px;line-height:1.45}
.gm-card-lead{border-color:var(--muted)}
.gm-none{margin:0;font-size:12px;color:var(--dim);line-height:1.5;list-style:none}

.gm-bars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.gm-bars li{display:flex;flex-direction:column;gap:4px;min-width:0}
.gm-bar-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px}
.gm-bar-top span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.gm-bar-top b{font-weight:400;font-size:10.5px;color:var(--dim);flex-shrink:0}
.gm-bar{height:6px;border-radius:4px;background:var(--panel2);overflow:hidden}
.gm-bar i{display:block;height:100%;border-radius:4px;background:var(--muted);transition:width .4s cubic-bezier(.2,.7,.3,1)}

.gm-blockers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.gm-blockers li{border-bottom:1px solid var(--soft-line)}
.gm-blockers li:last-child{border-bottom:0}
.gm-blockers button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:9px 2px}
.gm-blocker-meter{width:4px;height:28px;border-radius:2px;background:var(--panel2);display:flex;align-items:flex-end;flex-shrink:0;overflow:hidden}
.gm-blocker-meter i{display:block;width:100%;border-radius:2px;background:var(--orange);opacity:.82}
.gm-blocker-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gm-blocker-text strong{font-size:12.5px;font-weight:480;line-height:1.3;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.gm-blocker-text small{font-size:10.5px;color:var(--dim);font-family:var(--mono);letter-spacing:.01em}
.gm-blockers button:hover .gm-blocker-text strong{color:var(--orange-light)}
.gm-flag{flex-shrink:0;font-family:var(--mono);font-size:9px;letter-spacing:.08em;padding:3px 6px;border-radius:4px;
  background:color-mix(in srgb,var(--orange) 14%,transparent);color:var(--orange-light)}

.gm-corr{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.gm-corr li{display:flex;flex-direction:column;gap:3px;cursor:pointer}
.gm-corr-text{display:flex;flex-direction:column;gap:1px;font-size:11.5px;line-height:1.35}
.gm-corr-text s{color:var(--dim)}
.gm-corr-text b{font-weight:450;color:var(--ink)}
.gm-observer{align-self:flex-start;font-family:var(--mono);font-size:10px;padding:2px 6px;border-radius:4px;
  background:var(--panel2);color:var(--dim);white-space:nowrap}
.gm-observer.is-machine{color:var(--green);background:color-mix(in srgb,var(--green) 13%,transparent)}

@media (max-width:1180px){
  .gm-body{grid-template-columns:minmax(0,1fr)}
  .gm-side{display:none}
  .gm-reason{grid-template-columns:minmax(0,1fr)}
  .gm-reason-side{border-left:0;border-top:1px solid var(--line)}
  .gm-cc{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  .graph-memory,.gm-livebar,.gm-step,.gm-cc{animation:none}
  .gm-livedot,.gm-fl-thinking i,.gm-step.is-question .gm-step-dot{animation:none}
  .gm-bar i{transition:none}
}

/* The rail button pulses when the memory gains something while it is closed.
   Signal, because this is the definition of "live": the mind just changed. */
.rail-button.is-pinging{color:var(--orange-light)}
.rail-button.is-pinging:after{content:'';position:absolute;top:6px;right:6px;
  width:6px;height:6px;border-radius:50%;background:var(--orange);
  animation:gm-ping 1.5s infinite}
@media (prefers-reduced-motion:reduce){.rail-button.is-pinging:after{animation:none}}

/* THE MEMORY CLAIMS THE ROOM IT NEEDS.
   The workspace column is 698px wide once the work panel and the assistant
   rail have taken theirs, which is portrait — and a portrait node-link map
   is a column of dots, not a mind. While the memory is open the work panel
   folds away, which is honest as well as useful: the work order describes
   the job in front of you, and the memory is about the whole assembly over
   time. The ASSISTANT rail deliberately stays, because asking a question
   while watching the node light is the entire demo. */
body.graph-memory-open .work-panel{display:none}
body.graph-memory-open .app-layout{grid-template-columns:64px minmax(640px,1fr) 342px}
@media (min-width:1500px){
  body.graph-memory-open .app-layout{grid-template-columns:70px minmax(700px,1fr) 370px}
}

/* The empty state sits BELOW the lone part node rather than on top of it.
   Centred, the copy and the single mark landed on the same pixels and the
   whole thing read as a rendering fault instead of as an invitation. */
.gm-empty.is-below{justify-content:flex-start;padding-top:46%}
.gm-hero-empty{margin:0;font-size:15px;font-weight:450;color:var(--muted);line-height:1.2}

/* ── The chest camera ──────────────────────────────────────────────────
   A live pane docked above the composer, the width of the thread. It is
   deliberately NOT a full-bleed viewfinder: the 3D model is the other half
   of the answer, and the station moves it to the component it identified,
   so covering it would hide the thing the camera just earned.

   Signal (#FF4F00) appears here on the live dot and on the lit camera
   button only — the two places that mean "this is on and capturing". The
   pane itself stays Carbon/Concrete, like every other instrument. */
.camera-pane{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#15191c;margin-bottom:8px}
.camera-frame{position:relative;aspect-ratio:16/10;background:#0c0f11;display:grid;place-items:center}
.camera-frame video{width:100%;height:100%;object-fit:cover;display:block}
.camera-meta{display:flex;align-items:center;gap:8px;padding:6px 8px 6px 9px;border-top:1px solid var(--soft-line);font-size:9px;color:#8a98a3}
.camera-meta>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.camera-live{display:flex;align-items:center;gap:5px;font:8px var(--mono);letter-spacing:.07em;color:#aab6bf;flex-shrink:0}
.camera-live i{width:5px;height:5px;border-radius:50%;background:var(--orange);animation:pulse 1.8s infinite}
.camera-meta button{margin-left:auto;padding:2px;color:#8a98a3;display:grid;place-items:center;flex-shrink:0}
.camera-meta button:hover{color:#d5dade}
.camera-meta .icon{width:12px;height:12px}

/* The button lives in the voice dock and borrows .mic-button's geometry, so
   the two read as one control group rather than a feature bolted beside it. */
.camera-button .camera-glyph-on{display:none}
.camera-button[aria-pressed="true"]{color:var(--orange-light);background:#ff4f0020}
.camera-button[aria-pressed="true"] .camera-glyph-off{display:none}
.camera-button[aria-pressed="true"] .camera-glyph-on{display:grid}

/* A frame travelled with this question. Stated on the message itself,
   because "what did it look at?" must be answerable from the transcript
   alone — the same reason every number carries its document. */
.message-frame{display:flex;align-items:center;gap:6px;font:9px var(--mono);letter-spacing:.04em;color:#8a98a3;margin-top:8px}
.message-frame .icon{width:12px;height:12px}

[data-theme="light"] .camera-pane{background:#f4f5f4;border-color:#d7dad9}
[data-theme="light"] .camera-frame{background:#e6e8e7}
[data-theme="light"] .camera-meta{color:#5f656b;border-color:#dfe2e1}
[data-theme="light"] .camera-live{color:#4a5056}
[data-theme="light"] .camera-meta button{color:#5f656b}
[data-theme="light"] .camera-meta button:hover{color:#1a1f23}
[data-theme="light"] .camera-button[aria-pressed="true"]{background:#ffe6d9;color:#c03a00}
[data-theme="light"] .message-frame{color:#5f656b}

/* THE CAMERA CARD ON THE STAGE (app.js syncCameraLayout). While the camera
   is on, the pane above leaves the rail and sits top-left on the 3D stage as
   a picture-in-picture card: --cam-card-w (~28 % of the stage, set from the
   stage and the picture) wide, at the picture's own aspect (--cam-ar), so
   the glasses' 504×896 portrait and a landscape webcam both fill it. The
   «Perspectiva» selector moves to the card's right; the decorative left
   label, which the card would sit on, steps aside. Same tokens as the pane:
   Carbon/Concrete, Signal only on the live dot. */
.camera-pane.camera-card{position:absolute;z-index:4;top:12px;left:27px;width:var(--cam-card-w,260px);margin:0;
  border-color:#414b53;box-shadow:0 10px 30px #0006;border-radius:10px;background:#15191ce6;backdrop-filter:blur(12px)}
.camera-card .camera-frame{aspect-ratio:var(--cam-ar,1.6)}
.camera-card .camera-frame video{object-fit:contain}
.camera-card .camera-meta{font-size:10px;padding:7px 9px}
.camera-card .camera-live{font-size:9px}
.camera-card .camera-meta .icon{width:14px;height:14px}
.camera-card .glasses-card{max-height:46vh;overflow:auto}
.camera-card .camera-source button{white-space:nowrap;letter-spacing:.02em;padding:4px 3px}
.has-camera-card .stage-topline{left:calc(27px + var(--cam-card-w,260px) + 16px)}
.has-camera-card .left-label{display:none}
.has-camera-card .orientation{left:calc(27px + var(--cam-card-w,260px) + 12px)}
@media(min-width:1680px){.camera-pane.camera-card{top:18px}}
@media(max-width:1320px){.camera-pane.camera-card{left:21px}.has-camera-card .stage-topline{left:calc(21px + var(--cam-card-w,260px) + 14px)}}
@media(max-width:800px){.camera-pane.camera-card{left:20px;top:8px}.has-camera-card .stage-topline{left:calc(20px + var(--cam-card-w,200px) + 12px)}}
[data-theme="light"] .camera-pane.camera-card{background:#f4f5f4e6;border-color:#cfd3d2;box-shadow:0 10px 28px #1a1f2322}

/* The legend follows the map: Signal marks what must be acted on.
   `--orange-light` rather than raw #FF4F00, because the light theme's
   token is the darker #C03A00 that passes contrast on Concrete. */
.gm-disc.is-gap,.gm-ring.is-gap{background:var(--orange);border-color:var(--orange)}
.gm-ring.is-gap{background:none}
[data-theme="light"] .gm-disc.is-gap,[data-theme="light"] .gm-ring.is-gap{background:var(--orange);border-color:var(--orange)}
[data-theme="light"] .gm-ring.is-gap{background:none}
.gm-rank-gap button b{color:var(--orange-light)}
[data-theme="light"] .gm-rank-gap button b{color:var(--orange-light)}
.gm-flag{background:color-mix(in srgb,var(--orange) 15%,transparent);color:var(--orange-light)}
[data-theme="light"] .gm-flag{background:#ffe6d9;color:#c03a00}

/* The gap chip is INK with a ring, not Signal.
   Signal on the map is now a capped budget (the worst 8 by blocker score),
   not a property of being a gap — so a permanently-orange legend swatch
   would promise a correspondence that is deliberately not there. The ring
   shape is what identifies a gap; the count tells the whole truth. */
.gm-disc.is-gap,.gm-ring.is-gap{background:var(--ink);border-color:var(--ink)}
.gm-ring.is-gap{background:none}
[data-theme="light"] .gm-disc.is-gap,[data-theme="light"] .gm-ring.is-gap{background:var(--ink);border-color:var(--ink)}
[data-theme="light"] .gm-ring.is-gap{background:none}

/* ======================================================================
   DOCUMENTACIÓN — the documents the model stands on.
   Replaces the Térmico control in the scene bar; see documents.js for why
   this is a full-workspace overlay rather than a dialog or a third rail.

   COLOUR, AND THE RULE IT FOLLOWS. The brand book reserves Signal #FF4F00
   for act/live -- "if nothing needs doing, nothing is orange", with the
   page staying ~70% concrete/white, ~25% carbon/graphite and <=5% Signal.
   A released drawing is the most settled object in this product: nothing
   about it needs doing. So this panel is Carbon/Concrete throughout, built
   from tokens only (--ink/--dim/--line/--panel/--panel2) so it inherits
   both themes with no second palette, and Signal appears in exactly ONE
   place -- `.docs-stance.is-bare`, the line on a part whose figures have no
   document behind them. That is the only thing in here anybody can act on.

   The four provenance classes are told apart by WEIGHT, not by hue: a
   released document gets a filled ink dot, the sample set a half-filled
   one, and the two non-document classes an open ring. Four hues would have
   been easier to read quickly and would have said that a derived value is
   a kind of document, which is the one thing this panel exists to deny.
   ====================================================================== */
.docs-view{position:absolute;inset:0;z-index:40;display:flex;flex-direction:column;
  background:var(--bg);animation:docs-in .22s cubic-bezier(.2,.7,.3,1)}
@keyframes docs-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.docs-view[hidden]{display:none}

/* The scene bar's button. The geometry is .overlay-button's, inherited, so
   it still sits as a peer of Marcha/Sección/Despiece. Only the ACTIVE state
   is overridden: .overlay-button.active is orange, which was right for a
   thermal map (a live overlay on the metal) and is wrong for a panel of
   released drawings. Open-and-settled is graphite. */
#docs-button.active{border-color:#6a747d;color:var(--ink);background:#2b3137}
[data-theme="light"] #docs-button.active{background:#e7e9e7;border-color:#b4babd;color:var(--ink)}

.docs-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  padding:18px 22px 15px;border-bottom:1px solid var(--line);flex-shrink:0}
.docs-eyebrow{font-family:var(--mono);font-size:10px;letter-spacing:.11em;color:var(--dim)}
.docs-top h2{margin:5px 0 0;font-size:21px;font-weight:550;letter-spacing:-.01em}
.docs-stance{margin:8px 0 0;font-size:13px;color:var(--muted);max-width:74ch;line-height:1.45}
/* THE ONE SIGNAL IN THE PANEL. A part with no document behind any figure is
   the single actionable fact here -- it is a documentation gap, and the
   product's job is to make it impossible to miss. */
.docs-stance.is-bare{color:var(--ink);display:flex;gap:8px;align-items:flex-start}
.docs-flag{width:3px;align-self:stretch;min-height:19px;background:var(--orange);
  border-radius:2px;flex-shrink:0;margin-top:1px}
.docs-close{width:34px;height:34px;display:grid;place-items:center;color:var(--dim);
  border-radius:7px;flex-shrink:0}
.docs-close:hover{background:var(--panel2);color:var(--ink)}
.docs-close .icon{width:16px;height:16px}

.docs-body{flex:1;display:grid;grid-template-columns:300px minmax(0,1fr);min-height:0}
.docs-dim{color:var(--dim)}

/* ------------------------------------------------------------ the rail */
.docs-rail{border-right:1px solid var(--line);overflow-y:auto;padding:4px 0 24px;
  scrollbar-width:thin}
.docs-group{padding:16px 16px 4px;border-bottom:1px solid var(--soft-line)}
.docs-group:last-child{border-bottom:0}
.docs-group-head{display:flex;align-items:center;gap:8px}
.docs-group-label{font-family:var(--mono);font-size:10px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--ink)}
.docs-group-n{margin-left:auto;font-size:11px;color:var(--dim)}
/* Weight, not hue -- see the header note. */
.docs-kind-dot{width:8px;height:8px;border-radius:50%;border:1px solid var(--ink);flex-shrink:0}
.docs-kind-dot.k-released{background:var(--ink)}
.docs-kind-dot.k-sample{background:linear-gradient(90deg,var(--ink) 50%,transparent 50%)}
.docs-kind-dot.k-station{background:linear-gradient(180deg,var(--ink) 50%,transparent 50%)}
.docs-kind-dot.k-derived,.docs-kind-dot.k-representative{background:none;border-color:var(--dim)}
.docs-group-note{margin:7px 0 11px;font-size:11px;line-height:1.45;color:var(--dim)}

.docs-row{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;
  padding:10px 11px;border-radius:7px;border:1px solid transparent;margin-bottom:5px}
.docs-row:hover{background:var(--panel2)}
.docs-row.is-on{background:var(--panel2);border-color:var(--line)}
.docs-row-top{display:flex;align-items:flex-start;gap:7px}
.docs-row-title{font-size:13px;line-height:1.3;color:var(--ink);font-weight:450}
.docs-chip-open{margin-left:auto;font:9px var(--mono);letter-spacing:.07em;color:var(--dim);
  border:1px solid var(--line);border-radius:3px;padding:2px 4px;flex-shrink:0}
.docs-row.is-on .docs-chip-open{color:var(--ink);border-color:var(--dim)}
.docs-row-id{font-size:10px;color:var(--dim);word-break:break-all}
.docs-row-foot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:2px}
.docs-cites{font-size:11px;color:var(--muted)}

/* The grade chip. A/B/C is the product's spine, so it is drawn the same way
   everywhere it appears: a mono letter in a hairline box, with the count of
   figures at that grade beside it. No colour -- a grade is not a warning,
   it is a provenance, and colouring C red would editorialise a number the
   station is proud of having calculated. */
.docs-grade{display:inline-flex;align-items:center;gap:3px;font:10px var(--mono);
  color:var(--muted);border:1px solid var(--line);border-radius:3px;padding:1px 4px;cursor:help}
.docs-grade small{font-size:9px;color:var(--dim)}
.docs-grade.g-A{color:var(--ink);border-color:var(--dim)}

/* ---------------------------------------------------------- the reader */
.docs-reader{overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column}
.docs-reader-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  padding:19px 24px 15px;border-bottom:1px solid var(--soft-line);flex-shrink:0}
.docs-reader-head h3{margin:0;font-size:16px;font-weight:550;letter-spacing:-.005em}
.docs-reader-sub{margin:5px 0 0;font-size:11px;color:var(--dim);word-break:break-all}
.docs-reader-meta{display:flex;align-items:center;gap:10px;flex-shrink:0}
.docs-kind-pill{font:9px var(--mono);letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:4px 7px}
.docs-kind-pill.k-released{color:var(--ink);border-color:var(--dim)}
.docs-source-link{display:inline-flex;align-items:center;gap:5px;font-size:11px;
  color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:1px}
.docs-source-link:hover{color:var(--ink)}
.docs-source-link .icon{width:12px;height:12px}

/* The page itself. Concrete behind it in both themes, because a drawing is
   ink on paper and a dark surround makes a white page glare. */
/* `flex-shrink:0` IS LOAD-BEARING HERE. Without it the stage is a flex item
   in the reader's column and the browser shrank it to fit, while the canvas
   inside kept its own intrinsic height — so the rendered drawing spilled out
   of its own container and the "DE AQUÍ SALEN ESTAS CIFRAS" heading printed
   on top of the page. Caught in the first real render; `node --check` and
   the DOM both looked perfectly healthy. */
.docs-stage{padding:22px 24px;background:var(--panel2);min-height:260px;flex-shrink:0;
  display:flex;flex-direction:column;align-items:center;gap:14px;overflow:hidden}
/* width:100% + height:auto, NOT max-width: a canvas carries width/height
   attributes (here 2x device pixels for legible 6pt dimension text), and
   max-width alone leaves the ATTRIBUTE height in the layout, which is what
   overflowed. Setting width explicitly makes height:auto recompute. */
.docs-page{width:100%;max-width:980px;height:auto;background:#fff;
  border:1px solid var(--line);box-shadow:0 2px 10px #0f111312;display:block}
[data-theme="light"] .docs-page{box-shadow:0 2px 12px #0f111310}

.docs-loading{display:flex;align-items:center;gap:10px;padding:46px 0;font-size:13px;color:var(--dim)}
.docs-spin{width:13px;height:13px;border:1.5px solid var(--line);border-top-color:var(--dim);
  border-radius:50%;animation:docs-spin .8s linear infinite}
@keyframes docs-spin{to{transform:rotate(360deg)}}
.docs-empty{display:flex;flex-direction:column;gap:7px;padding:44px 22px;text-align:center;
  font-size:13px;color:var(--muted);margin:auto}
.docs-empty strong{color:var(--ink);font-weight:550}

/* NO FILE. The honest branch, and the one most documents land in. It is a
   STATEMENT, not an error state: centred, quiet, and worded differently for
   "we have not mirrored this" than for "this is not a document at all",
   because conflating the two would imply a drawing exists somewhere for a
   value the station chose itself. */
.docs-nofile{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center;
  padding:44px 20px;max-width:56ch;margin:auto}
.docs-nofile-mark{color:var(--dim);display:grid;place-items:center}
.docs-nofile-mark .icon{width:22px;height:22px}
.docs-nofile-mark.is-bare{color:var(--muted)}
.docs-nofile strong{font-size:15px;font-weight:550;color:var(--ink)}
.docs-nofile p{margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
.docs-nofile p.docs-dim{font-size:12px}

/* ------------------------------------------- what this document backs */
.docs-backs{padding:20px 24px 30px}
.docs-backs-head{display:flex;align-items:center;justify-content:space-between;
  padding-bottom:11px;border-bottom:1px solid var(--line)}
.docs-back-list{list-style:none;margin:0;padding:0}
.docs-back-list li{display:grid;grid-template-columns:minmax(0,1.15fr) auto auto;
  gap:4px 12px;align-items:baseline;padding:11px 8px;border-bottom:1px solid var(--soft-line);
  border-radius:5px}
.docs-back-label{font-size:13px;color:var(--ink)}
.docs-back-value{font-size:13px;color:var(--ink);text-align:right;letter-spacing:-.02em}
.docs-back-value small{font-size:11px;color:var(--dim);margin-left:2px}
/* The clause spans the full row under the figure: it is the part that is
   actually checkable against the page above, so it gets room to be read
   rather than being truncated into a tooltip. */
.docs-back-clause{grid-column:1/-1;font-size:11px;line-height:1.45;color:var(--dim)}
.docs-back-list li.is-linked{cursor:pointer}
.docs-back-list li.is-linked:hover{background:var(--panel2)}

/* ------------------------------------------------------------ the DXF
   RP-008334-DS-1, redrawn from the parsed table in parts-rpi-dxf.js. It is
   strokes, not fills, because that is what the source is: a vector plan
   view with no colour information in it at all. Inventing a silkscreen
   green here would be the panel's own small lie. */
.dxf-wrap{width:100%;display:flex;flex-direction:column;gap:11px}
.dxf-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.dxf-sides{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:7px;
  background:var(--panel)}
.dxf-sides button{padding:6px 11px;font-size:12px;color:var(--dim);border-radius:5px}
.dxf-sides button:hover{color:var(--ink)}
.dxf-sides button.is-on{background:var(--panel2);color:var(--ink)}
[data-theme="light"] .dxf-sides button.is-on{background:#e7e9e7}
.dxf-note{font-size:9px;letter-spacing:.08em;color:var(--dim)}
.dxf-canvas{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px}
[data-theme="light"] .dxf-canvas{background:#fff}
.dxf-svg{width:100%;height:auto;display:block}
.dxf-outline{fill:none;stroke:var(--ink);stroke-width:.35}
.dxf-body{fill:none;stroke:var(--dim);stroke-width:.12}
.dxf-major{stroke:var(--muted);stroke-width:.22}
.dxf-pad{fill:none;stroke:var(--muted);stroke-width:.1}
.dxf-pin1{fill:none;stroke:var(--ink);stroke-width:.22}
.dxf-hole{fill:none;stroke:var(--ink);stroke-width:.22}
.dxf-centre{stroke:var(--dim);stroke-width:.08}
.dxf-legend{fill:var(--ink);stroke:none;font-family:var(--mono)}
.dxf-desig{fill:var(--dim);stroke:none;font-family:var(--mono);font-size:.7px}
.dxf-caption{margin:0;font-size:11px;line-height:1.55;color:var(--dim);max-width:78ch}

/* Narrow: the rail becomes a strip above the reader rather than disappearing.
   A documents panel that hides the document list on a laptop in portrait is
   a documents panel you cannot navigate. */
@media(max-width:1100px){
  .docs-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .docs-rail{border-right:0;border-bottom:1px solid var(--line);max-height:36vh}
  .docs-back-list li{grid-template-columns:minmax(0,1fr) auto auto}
}

/* THE RAIL ICON FOR DOCUMENTS IS NOT ORANGE. `.rail-button.active` is Signal
   with a Signal tick beside it, which is right for the memory board (it
   pulses when a node lights -- that IS live) and wrong here: an open panel
   of released drawings is not an act and nothing on it needs doing. Per the
   brand rule, if nothing needs doing, nothing is orange. Graphite instead,
   with the same tick in ink so the "you are here" affordance survives. */
body.docs-open .rail-button[data-action="procedures"].active{background:var(--panel2);color:var(--ink)}
body.docs-open .rail-button[data-action="procedures"].active:before{background:var(--ink)}
[data-theme="light"] body.docs-open .rail-button[data-action="procedures"].active{background:#e7e9e7}

/* An uncited document says so rather than printing an empty list under a
   heading that promises figures. See documents.js backs(). */
.docs-cites.is-uncited{color:var(--dim);font-style:italic}
.docs-uncited{margin:13px 0 0;font-size:13px;line-height:1.5;color:var(--muted);max-width:72ch}
.docs-provides{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.docs-provides li{position:relative;padding-left:15px;font-size:12px;line-height:1.5;color:var(--dim)}
.docs-provides li:before{content:'';position:absolute;left:0;top:7px;width:4px;height:4px;
  border-radius:50%;background:var(--dim)}

/* The clause-language note. Quiet: it explains a verbatim quotation, it is
   not a warning. See documents.js backs(). */
.docs-lang-note{margin:11px 0 0;font-size:11px;line-height:1.5;color:var(--dim);max-width:70ch}

/* THE SCOPE SELECTOR, on the stage, beside the display modes. On a system the
   owner wants to say «now I only work on the Pi» without leaving the node:
   «Todo · Pi 3B · Sense HAT · Pico · Cámara». Same vocabulary and the same chrome
   as Completa/Sección/Despiece, because it is the same kind of control — what the
   stage is ABOUT, as those are HOW it is shown. Hidden on any part that is not a
   system; a selector that offers one choice is noise in the corner of the frame. */
/* THE SCOPE MENU — «Todo · Pi 3B · Sense HAT · Pico · Cámara» as the
   «Perspectiva» component on the stage's other corner: same trigger, same
   .dropdown, anchored to its right edge so it opens INTO the stage. Each row
   is a menuitemcheckbox; the tick shows only when aria-checked is true, so the
   state is read off the same attribute assistive tech reads. */
.topline-right{display:flex;align-items:center;gap:16px}
.scope-control[hidden]{display:none}
.scope-menu{left:auto;right:0;min-width:268px}
.scope-menu .scope-item-label{white-space:nowrap}
.scope-menu button{display:grid;grid-template-columns:16px 1fr auto;align-items:center;gap:8px}
.scope-menu .scope-check{width:14px;height:14px;display:inline-flex;visibility:hidden;color:var(--orange)}
.scope-menu .scope-check .icon{width:14px;height:14px}
.scope-menu button[aria-checked="true"] .scope-check{visibility:visible}
.scope-menu button[aria-checked="true"] .scope-item-label{color:var(--ink)}
.scope-menu small{font:10px var(--mono);letter-spacing:.04em;color:var(--dim)}
.scope-sep{height:1px;margin:4px 6px;background:#414b53}
[data-theme="light"] .scope-sep{background:#dfe2e3}
[data-theme="light"] .scope-menu button[aria-checked="true"] .scope-item-label{color:#0f1113}

/* THE SYSTEM BREADCRUMB. «Volver al sistema» sits with the toolbar actions while a
   module opened from a system is on the bench; hidden otherwise. A labelled button,
   not an icon, because the way back is the one control a visitor must never hunt for. */
.system-back{display:flex;gap:7px;align-items:center;width:auto;padding:0 11px;font-size:12px;color:#c1c9d0;border:1px solid #3b444b;border-radius:7px}
.system-back[hidden]{display:none}
.system-back .icon{width:14px;height:14px}
[data-theme="light"] .system-back{color:#4a5056;border-color:#daddde}

/* evidence grade on a work step (demo/work-orders.js): A documented, C derived */
.work-steps .step-grades{display:inline-flex;gap:3px;margin-left:6px;vertical-align:1px}.work-steps .step-grades .cite-grade{font:9px var(--mono);padding:1px 4px}.work-steps-empty{color:var(--dim)}.work-steps li.work-steps-empty:after{display:none}
/* A how-to answer is a numbered procedure in the rail (answer-text.js). */
.assistant-message .answer-steps{margin:0 0 12px;padding-left:24px}
.assistant-message .answer-steps li{margin:0 0 7px;padding-left:3px}
.assistant-message .answer-steps li::marker{font:12px var(--mono);color:var(--orange-light)}
[data-theme="light"] .assistant-message .answer-steps li::marker{color:#c03a00}

/* THE STAGE NOTE (app.js): what the camera tints mean, or the board the answer
   is about that is not on screen, with the one tap that brings it in. Sits over
   the mode bar, centred; quiet by default, Signal only on the act (the button). */
.stage-note{position:absolute;left:50%;bottom:96px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:7px 8px 7px 13px;border:1px solid var(--line);border-radius:8px;background:color-mix(in srgb,var(--panel) 92%,transparent);backdrop-filter:blur(14px);font-size:12px;color:var(--muted);z-index:6;white-space:nowrap;box-shadow:0 6px 18px #0003}
.stage-note[hidden]{display:none}
.stage-note .note-item{display:inline-flex;align-items:center;gap:6px}
.stage-note .note-key{width:9px;height:9px;border-radius:2px;display:inline-block}
.stage-note .note-key--confirm{background:var(--green)}
.stage-note .note-key--warn{background:#e0a33a}
.stage-note .note-key--wrong{background:var(--orange)}
.stage-note .note-key--target{background:transparent;border:2px solid var(--orange)}
.stage-note button{font-size:12px;padding:6px 10px;border-radius:6px;border:1px solid var(--orange);color:var(--orange-light);background:transparent}
.stage-note button:hover{background:color-mix(in srgb,var(--orange) 14%,transparent)}
@media(max-width:800px){.stage-note{bottom:100px;white-space:normal;flex-wrap:wrap;justify-content:center}}
