/* Canonical gold, identical to product-system.css. */
:root{--gold-line:#D3A84C;--gold-text-grad:linear-gradient(120deg,#B58F3E 0%,#D3A84C 24%,#FFEC94 47%,#FFD87C 58%,#D3A84C 76%,#B58F3E 100%);--gold-fill:linear-gradient(170deg,#FFEC94,#E6BE69 30%,#D3A84C 72%,#B58F3E);--gold-glow:rgba(211,168,76,.28)}
/* Shared layout tracks: account/composer top, composer/Quick Actions bottom,
   and field/Permissions right edge are derived from these same tracks. */
.hud-surface{--hud-nav:clamp(122px,15vw,174px);--hud-right:clamp(170px,22vw,234px);--hud-pad:10px;--hud-gap:10px;--hud-composer:86px;--hud-send:32px;--hud-mic:24px;--hud-line:rgba(211,168,76,0.5);--hud-gold:#D3A84C;--hud-black:#030303;--eye-energy:0;background:#030303;color:#eee9df;font-family:'Segoe UI',Arial,sans-serif;color-scheme:dark;position:relative;box-sizing:border-box}
.hud-surface *, .hud-surface *::before,.hud-surface *::after{box-sizing:border-box}
.hud-surface button,.hud-surface summary,.hud-surface select{font-family:inherit;cursor:pointer}
.hud-surface :focus-visible{outline:2px solid #FFEC94!important;outline-offset:3px}
.hud-surface ::selection{background:#D3A84C;color:#030303}
.hud-surface .hud-scene{position:relative!important;background:#030303!important;isolation:isolate;overflow:hidden;min-height:0}
.hud-eye-geometry{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}
.hud-eye-body{transform-origin:50% 50%;transform:scaleY(calc(1 + var(--eye-energy)*.006));opacity:calc(.93 + var(--eye-energy)*.07)}
.hud-edge{stroke-width:calc(2.5 + var(--eye-energy)*.3);opacity:1}
.hud-edge-inset{opacity:.46}
.hud-edge-highlight{stroke-width:1.4;opacity:calc(.88 + var(--eye-energy)*.08)}
.hud-iris-fold{stroke-width:.6;opacity:calc(.58 + var(--eye-energy)*.09)}
.hud-filament{opacity:calc(.37 + var(--eye-energy)*.09)}
.hud-cornea{opacity:calc(.24 + var(--eye-energy)*.09)}
.hud-globe{padding:0;border:0;height:auto;position:absolute;left:50%;top:50%;width:42%;aspect-ratio:1;transform:translate(-50%,-50%);z-index:2;pointer-events:none}
.hud-globe canvas{display:block;position:absolute;inset:0;width:100%;height:100%}
.hud-globe-fallback{display:block;position:absolute;width:173.913%;height:173.913%;max-width:none;left:-39.739%;top:-39.913%;object-fit:fill;clip-path:circle(27.6% at 51.6% 51.7%)}
.hud-globe.is-globe-live .hud-globe-fallback{display:block;visibility:hidden}
.hud-character-art{display:block;width:100%;height:100%;pointer-events:none}
.hud-surface .hud-core{position:absolute;left:50%;top:50%;width:17%;aspect-ratio:1;transform:translate(-50%,-50%);padding:0;border:0;background:transparent;color:#FFEC94;z-index:10;box-shadow:none}
.hud-core>img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.hud-core-label{position:absolute;top:107%;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;width:140%;text-align:center;gap:2px;white-space:nowrap;pointer-events:none}
.hud-core-label strong{font-size:clamp(11px,1.15vw,17px);font-weight:500;letter-spacing:.13em}
.hud-core-label small{font-size:clamp(9px,.85vw,12px);color:#bbb5a9}
.hud-surface .hud-character{position:absolute;width:18%;height:23%;transform:translate(-50%,-50%);background:none;border:0;color:#eee;padding:0;z-index:5}
.hud-character>span{display:block;font-size:10px;text-align:center;background:#070604;padding:2px 5px;letter-spacing:.035em}
.hud-character:hover .hud-character-art,.hud-character:focus-visible .hud-character-art{filter:brightness(1.1)}
.hud-surface [data-eye-state="error"] .hud-edge{stroke:#D3A84C}
.hud-surface [data-eye-state="paused"] .hud-eye-body{opacity:.45}
/* Authenticated adapter, confined to Home; other panels keep their styles. */
body.engine-home.hud-surface{--home-line:var(--hud-line);--surface:#080807;--surface-2:#12110e;--bg:#030303;--text:#eee9df;--muted:#b7afa1;--gold:var(--hud-gold)}
body.engine-home.hud-surface #app{min-height:100dvh}
body.engine-home.hud-surface .topbar{position:absolute!important;top:var(--hud-pad);left:calc(var(--hud-nav) + 20px);right:var(--hud-pad);height:36px!important;min-height:36px;padding:0!important;border:0;background:none;z-index:25;gap:6px}
body.engine-home.hud-surface .topbar>.spacer{display:block;flex:1}
body.engine-home.hud-surface .home-history-nav{display:none}
body.engine-home.hud-surface .topbar .btn,body.engine-home.hud-surface .status-chip{height:30px;min-height:30px;border:1px solid rgba(211,168,76,0.34);border-radius:6px;font-size:11px;padding:4px 9px;background:#090908;box-shadow:none}
body.engine-home.hud-surface .topbar-state,body.engine-home.hud-surface .topbar-account{gap:6px;border:0;padding:0}
body.engine-home.hud-surface .status-chip{width:auto!important;min-width:58px!important;font-size:10px!important;color:#d6d3ca}
body.engine-home.hud-surface .status-chip::after{display:none!important}
body.engine-home.hud-surface .shell{min-height:100dvh;margin:0;display:block}
body.engine-home.hud-surface #rail{position:absolute;left:var(--hud-pad);top:var(--hud-pad);bottom:var(--hud-pad);height:calc(100dvh - 2*var(--hud-pad));max-height:calc(100dvh - 2*var(--hud-pad));width:var(--hud-nav);min-width:0;padding:10px 10px 0;display:grid;grid-template-rows:auto minmax(0,1fr) calc(var(--hud-composer) - 1px);gap:0;border:1px solid #3e3320;border-radius:8px;background:linear-gradient(135deg,#0b0a08,#040403 65%);overflow:visible}
body.engine-home.hud-surface .shell>main{margin-left:calc(var(--hud-nav) + 20px);padding:var(--hud-pad) var(--hud-pad) var(--hud-pad) 0;width:calc(100% - var(--hud-nav) - 20px);min-height:100dvh;max-width:none}
body.engine-home.hud-surface .hud-nav-head{display:grid;grid-template-columns:32px 32px 1fr;gap:6px;align-items:center;padding-bottom:14px}
body.engine-home.hud-surface .hud-nav-head>.brand{grid-column:1/-1;display:grid;grid-template-columns:36px 1fr;gap:0 8px;margin-top:8px;font-size:15px}
body.engine-home.hud-surface #home-brand-logo{width:36px;height:36px;grid-row:1/3;object-fit:contain;background:none;filter:none}
body.engine-home.hud-surface .hud-nav-head #hdr-brand{grid-column:2;font-size:9px;letter-spacing:.02em;color:#aaa59b}
body.engine-home.hud-surface .hud-nav-head .home-brand-name{font-size:15px;letter-spacing:0}
body.engine-home.hud-surface #rail-toggle,body.engine-home.hud-surface .hud-search-toggle{width:32px;height:30px;min-width:32px;border:1px solid rgba(211,168,76,0.33);border-radius:5px;background:#090908;color:#D3A84C;padding:5px}
body.engine-home.hud-surface .rail-search{position:absolute;left:42px;top:47px;width:min(300px,calc(100vw - 75px));z-index:60;background:#10100d;padding:6px;box-shadow:0 8px 20px #000a}
body.engine-home.hud-surface .rail-search[hidden]{display:none!important}
body.engine-home.hud-surface #omni{width:100%;height:34px;font-size:12px;background:#070706}
body.engine-home.hud-surface .rail-nav{overflow-y:auto;min-height:0;gap:4px;display:block;scrollbar-width:thin;scrollbar-color:rgba(211,168,76,0.5) #080807}
body.engine-home.hud-surface #rail .rail-dest-head,body.engine-home.hud-surface #rail .rail-dest-home button,body.engine-home.hud-surface #rail .home-rail-links .home-action{height:36px;min-height:36px;padding:7px 8px;font-size:12px;gap:8px}
body.engine-home.hud-surface #rail .ico{width:18px;height:18px;margin-right:2px}
body.engine-home.hud-surface #rail .home-rail-links{gap:2px;margin-top:4px}
body.engine-home.hud-surface .home-pinned-topics{margin-top:13px;padding:12px 4px 0;border-top:1px solid rgba(211,168,76,0.5)}
body.engine-home.hud-surface .home-pinned-topics h2{font-size:9px;letter-spacing:.03em;margin-bottom:8px}
body.engine-home.hud-surface #home-pinned-list .home-action{font-size:10px;min-height:28px;padding:5px}
body.engine-home.hud-surface #rail .rail-foot{max-height:none;margin:0;padding:9px 0 0;align-self:stretch;border-top:1px solid var(--hud-line);min-height:0;overflow:visible}
body.engine-home.hud-surface #rail .home-profile-menu>summary{height:44px;min-height:44px;padding:0;grid-template-columns:34px minmax(0,1fr) 14px;gap:0 7px}
body.engine-home.hud-surface #rail .home-profile-menu>summary>.ico{width:34px;height:34px;border-radius:0;background:url('anvella-solar-brand.webp') center/contain no-repeat;filter:none}
body.engine-home.hud-surface #rail .home-profile-menu>summary>span:first-of-type{font-size:12px}
body.engine-home.hud-surface #rail .home-profile-menu #account-name{font-size:10px;line-height:1.3}
body.engine-home.hud-surface #rail .home-profile-menu .rail-chev{width:14px;height:14px}
body.engine-home.hud-surface .app-foot{position:absolute;left:16px;bottom:14px;width:158px;padding:0;gap:8px;display:flex;font-size:8px;z-index:4}
body.engine-home.hud-surface .home-workspace{height:calc(100dvh - 2*var(--hud-pad));display:grid;grid-template-columns:minmax(0,1fr) var(--hud-right);gap:var(--hud-gap);align-items:stretch}
body.engine-home.hud-surface .home-command{height:100%;display:grid;grid-template-rows:42px minmax(0,1fr) var(--hud-composer);background:#030303;min-height:0}
body.engine-home.hud-surface .home-calendar{grid-row:1;width:265px;min-height:30px;height:30px;padding:0;margin:0 auto;translate:0;border:1px solid rgba(211,168,76,0.32);border-radius:6px;background:#080807;box-shadow:none;align-self:start;z-index:27}
body.engine-home.hud-surface .home-calendar-month{font-family:inherit;font-size:11px;color:#d8d3ca!important;-webkit-text-fill-color:#d8d3ca!important}
body.engine-home.hud-surface .home-calendar>.home-action{width:30px;height:28px;min-height:28px;flex-shrink:0}
body.engine-home.hud-surface #eye-stage.hud-scene{grid-row:2;aspect-ratio:auto;height:100%;width:100%;margin:0!important;min-height:0!important;max-height:none;border:0;filter:none!important}
body.engine-home.hud-surface #eye-stage::before,body.engine-home.hud-surface #eye-stage::after,body.engine-home.hud-surface .home-thalyn,body.engine-home.hud-surface .home-categories,body.engine-home.hud-surface .home-planet-blank,body.engine-home.hud-surface .eye-scene-fx{display:none!important}
body.engine-home.hud-surface #reactor{min-height:0;bottom:auto;right:auto;margin:0;left:50%!important;top:50%!important;width:17%!important;height:auto!important;aspect-ratio:1!important;min-width:0;transform:translate(-50%,-50%)!important;opacity:1;border:0!important;background:none!important;box-shadow:none!important;overflow:visible;z-index:15}
body.engine-home.hud-surface #reactor>*:not(.home-core-logo):not(.home-core-content){display:none!important}
body.engine-home.hud-surface #reactor .home-core-logo{display:block;visibility:visible!important;width:100%!important;height:100%!important;position:static!important;transform:none!important;filter:none!important;object-fit:contain}
body.engine-home.hud-surface #reactor .home-core-content{position:absolute!important;top:107%!important;left:50%!important;transform:translateX(-50%)!important;min-height:0!important;min-width:140%;width:auto;max-width:none;display:flex!important;visibility:visible!important;gap:2px;background:none!important;padding:0!important;white-space:nowrap;pointer-events:none}
body.engine-home.hud-surface #reactor .home-core-content::before,body.engine-home.hud-surface #reactor #reactor-text{display:none!important}
body.engine-home.hud-surface #reactor #home-eye-name{font-family:inherit!important;font-size:clamp(11px,1.1vw,16px)!important;letter-spacing:.13em!important;font-weight:500!important;color:#D3A84C!important;text-shadow:none!important}
body.engine-home.hud-surface #reactor #home-eye-hint{font-size:clamp(9px,.8vw,12px)!important;color:#beb8ac!important;text-shadow:none!important}
body.engine-home.hud-surface .orbit,body.engine-home.hud-surface .orbit-labels,body.engine-home.hud-surface .orbit-near{position:absolute!important;width:100%!important;height:100%!important;transform:none!important;left:0!important;top:0!important;opacity:1!important;inset:0;pointer-events:none}
body.engine-home.hud-surface #orbit-canvas,body.engine-home.hud-surface #orbit-front-canvas{visibility:hidden}
body.engine-home.hud-surface #eye-stage .orbit-node{width:18%!important;height:23%!important;min-width:0;min-height:0;background:none!important;border:0!important;border-radius:0!important;outline:0;box-shadow:none!important;pointer-events:auto;opacity:1!important;transition:filter .15s}
/* Keyboard focus: the node strips its own outline above, so draw one back. */
body.engine-home.hud-surface #eye-stage .orbit-node:focus-visible{outline:2px solid #FFEC94!important;outline-offset:2px;border-radius:6px!important}
body.engine-home.hud-surface #eye-stage .orbit-node::before,body.engine-home.hud-surface #eye-stage .orbit-node::after,body.engine-home.hud-surface .orbit-node-glyph{display:none!important}
body.engine-home.hud-surface #eye-stage .orbit-node-name{display:block!important;position:static!important;transform:none!important;width:100%!important;height:auto!important;max-width:none;padding:2px!important;opacity:1!important;background:#060504!important;border:0!important;box-shadow:none!important;color:#e7dfd1!important;font:500 10px/1.2 'Segoe UI',Arial,sans-serif!important}
body.engine-home.hud-surface .orbit-node .hud-character-art{height:calc(100% - 16px);filter:none}
body.engine-home.hud-surface .orbit-node.busy .hud-character-art{filter:brightness(1.12)}
body.engine-home.hud-surface .home-context{position:relative;height:100%;display:grid;grid-template-rows:1.45fr .85fr 1.2fr .9fr;gap:var(--hud-gap);padding:42px 0 0;margin:0;border:0;min-height:0}
body.engine-home.hud-surface .home-context .home-rail-panel,body.engine-home.hud-surface .home-context #today{height:auto!important;min-height:0!important;max-height:none!important;margin:0;padding:10px!important;border:1px solid rgba(211,168,76,0.31);border-radius:7px;background:linear-gradient(135deg,#0b0a08,#060605);box-shadow:none;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(211,168,76,0.49) #080807}
body.engine-home.hud-surface .home-context .home-panel-head,body.engine-home.hud-surface .today-head{min-height:24px;height:auto;gap:5px;margin:0 0 8px}
body.engine-home.hud-surface .home-context h2,body.engine-home.hud-surface #today h2{font:500 13px/1.3 'Segoe UI',Arial,sans-serif!important;color:#e8e5dd!important;background:none!important;-webkit-text-fill-color:currentColor!important;margin:0}
body.engine-home.hud-surface .home-context .home-action{font-size:9px;padding:3px 4px;min-height:24px;background:none;color:#D3A84C;white-space:nowrap;border:0}
body.engine-home.hud-surface #today-refresh{display:none}
body.engine-home.hud-surface #today-body{max-height:none;overflow:auto;font-size:10px}
body.engine-home.hud-surface .home-context .ev{font-size:10px;grid-template-columns:34px 1fr;column-gap:12px;min-height:38px;padding:5px 0}
body.engine-home.hud-surface .home-context .ev span{font-size:10px}
body.engine-home.hud-surface .home-context .ev b,body.engine-home.hud-surface .home-context .ev i{font-size:9px}
body.engine-home.hud-surface .home-context .ev::before{left:40px;width:4px;height:4px;top:10px;border:0;background:#D3A84C}
body.engine-home.hud-surface .home-context .today-body::before{display:none}
body.engine-home.hud-surface .home-context #hud-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
body.engine-home.hud-surface .home-context #hud-metrics .gauge{min-height:45px;height:auto;padding:3px 6px;gap:3px;text-align:left;background:none;border:0}
body.engine-home.hud-surface .home-context #hud-metrics .gauge:nth-child(n+3){display:none}
body.engine-home.hud-surface .home-context #hud-metrics .gauge b{font:300 23px/1.2 'Segoe UI',Arial,sans-serif}
body.engine-home.hud-surface .home-context #hud-metrics .gauge em{font-size:9px;order:2}
body.engine-home.hud-surface .home-context #hud-metrics .gauge i{display:none}
body.engine-home.hud-surface .home-activity-list{gap:7px;font-size:10px}
body.engine-home.hud-surface .home-activity-list li{border:0;padding:0;font-size:10px;gap:2px}
body.engine-home.hud-surface .home-context .home-quick-links{grid-template-columns:1fr 1fr;gap:6px}
body.engine-home.hud-surface .home-quick-links .home-action{border:1px solid rgba(211,168,76,0.34);font-size:9px;min-height:30px;padding:4px}
body.engine-home.hud-surface #home-context-toggle{position:absolute!important;left:-30px;top:42px;width:24px!important;min-width:24px!important;height:34px;padding:4px!important;z-index:30;border:1px solid rgba(211,168,76,0.34);background:#090908;color:#D3A84C;border-radius:5px}
body.engine-home.hud-surface #home-context-toggle::after{display:none}
body.engine-home.hud-surface .home-workspace.home-context-collapsed{grid-template-columns:minmax(0,1fr) 0}
body.engine-home.hud-surface .home-context[hidden]{display:block!important;visibility:hidden;pointer-events:none}
body.engine-home.hud-surface .home-context[hidden] #home-context-toggle{visibility:visible;pointer-events:auto}
body.engine-home.hud-surface .home-command .composer-panel{grid-row:3;position:relative;align-self:stretch;height:var(--hud-composer);min-height:0!important;margin:0!important;padding:8px!important;border:1px solid var(--hud-line);border-radius:6px;box-shadow:none;background:#080807;overflow:visible;z-index:20}
body.engine-home.hud-surface .composer-panel>h2,body.engine-home.hud-surface .composer-hint,body.engine-home.hud-surface .composer-dot,body.engine-home.hud-surface .composer-rail,body.engine-home.hud-surface #thread-toggle{display:none!important}
body.engine-home.hud-surface .home-command .composer{display:grid;grid-template-columns:var(--hud-mic) minmax(0,1fr) var(--hud-send);grid-template-rows:32px 28px;gap:8px;align-items:center;margin:0;padding:0;border:0;background:none}
body.engine-home.hud-surface .home-command #say{grid-column:2!important;grid-row:1!important;width:100%!important;height:32px!important;min-height:32px!important;max-height:32px;padding:7px 9px;margin:0;font:11px/16px 'Segoe UI',Arial,sans-serif;border:1px solid rgba(211,168,76,0.38);border-radius:5px;background:#0c0c0a;color:#eee;overflow-y:auto;resize:none;box-shadow:none}
body.engine-home.hud-surface #say::placeholder{color:#aca596;opacity:1}
body.engine-home.hud-surface .composer-actions{display:contents!important}
body.engine-home.hud-surface #mic{grid-column:1;grid-row:1;width:24px!important;height:32px!important;min-height:32px!important;margin:0;padding:3px;border:0;background:none;box-shadow:none;font-size:0!important}
body.engine-home.hud-surface #mic::after{width:18px;height:24px}
body.engine-home.hud-surface #send{grid-column:3!important;grid-row:1!important;width:32px!important;height:32px!important;min-height:32px!important;min-width:32px!important;padding:4px;margin:0;border:1px solid rgba(211,168,76,0.66);border-radius:50%;background:linear-gradient(125deg,rgba(211,168,76,0.66),#D3A84C 48%,#D3A84C);box-shadow:none}
body.engine-home.hud-surface .composer-secondary{overflow:visible;grid-row:2!important;grid-column:1/3!important;display:flex!important;flex-wrap:nowrap;gap:6px;align-items:center;min-height:28px;padding:0;margin:0}
body.engine-home.hud-surface .composer-secondary button,body.engine-home.hud-surface .composer-secondary summary{height:28px!important;min-height:28px!important;padding:4px 7px!important;min-width:0!important;font:11px/18px 'Segoe UI',Arial,sans-serif!important;border:1px solid rgba(211,168,76,0.4)!important;border-radius:5px!important;background:#0a0907!important;color:#D3A84C;box-shadow:none}
body.engine-home.hud-surface .home-model-picker,body.engine-home.hud-surface .home-effort-picker{min-width:0!important;width:auto;flex:0 0 auto}
body.engine-home.hud-surface .home-model-picker>summary,body.engine-home.hud-surface .home-effort-picker>summary{min-width:66px!important;display:flex;align-items:center;gap:10px}
body.engine-home.hud-surface .home-composer-more{position:relative;margin:0!important;margin-left:auto!important}
body.engine-home.hud-surface .home-composer-more>summary{list-style:none;display:flex;align-items:center;gap:8px}
body.engine-home.hud-surface .home-composer-more>summary::after{content:'⌄';font-size:10px}
body.engine-home.hud-surface #home-permissions-link{margin:0!important;min-width:0!important;width:auto;padding:4px 7px!important;white-space:nowrap;flex-shrink:0}
body.engine-home.hud-surface #home-project-link{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.engine-home.hud-surface .home-effort-picker:not([open]) .home-effort-control{display:none!important}
body.engine-home.hud-surface .home-effort-picker .home-effort-control{position:absolute;bottom:calc(100% + 8px);left:0;display:grid;min-width:135px;gap:4px;padding:6px;background:#0b0a08;border:1px solid rgba(211,168,76,0.53);border-radius:5px;z-index:70}
body.engine-home.hud-surface .home-effort-control button{width:100%;text-align:left}
body.engine-home.hud-surface button:disabled{opacity:.45;cursor:not-allowed}
body.engine-home.hud-surface #hud-effort-note,body.engine-home.hud-surface .home-routing-status{position:absolute;bottom:calc(100% + 8px);left:8px;max-width:100%;font-size:11px;background:#151108;padding:4px;z-index:40}
body.engine-home.hud-surface #hud-effort-note:empty{display:none}
/* Near-opaque paint avoids incorrect partial WebGL occlusion by a scrolling
   transcript in Chromium; text and controls keep their full opacity. */
body.engine-home.hud-surface #thread{position:absolute!important;bottom:calc(100% + 8px);left:0;right:0;max-height:180px;display:none;padding:12px;background:#090908fe;border:1px solid rgba(211,168,76,0.51);border-radius:6px;overflow-y:auto;z-index:30;box-shadow:0 8px 24px #000a}
body.engine-home.hud-surface .composer-panel:focus-within #thread:has(.msg),body.engine-home.hud-surface .composer-panel[data-reply-visible] #thread{display:block}
body.engine-home.hud-surface .home-chat-expanded{position:fixed!important;inset:8vh 12vw!important;height:auto!important;z-index:1000;padding:16px!important;display:flex;flex-direction:column}
body.engine-home.hud-surface .home-chat-expanded #thread{display:block;position:static!important;flex:1;max-height:none;margin-bottom:12px}
body.engine-home.hud-surface .home-chat-expanded .composer{flex-shrink:0}
body.engine-home.hud-surface #attachments:not(:empty),body.engine-home.hud-surface #pending:not([hidden]),body.engine-home.hud-surface #working:not([hidden]){position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:#11100b;border:1px solid rgba(211,168,76,0.51);padding:8px;font-size:11px;z-index:35}
body.engine-home.hud-surface #attachments:empty{display:none}
body.engine-home.hud-surface .hud-project-picker{position:relative}
body.engine-home.hud-surface .hud-project-picker>summary{list-style:none}
body.engine-home.hud-surface .hud-project-options{position:absolute;left:0;bottom:calc(100% + 8px);min-width:160px;padding:8px;background:#0b0a08;border:1px solid rgba(211,168,76,0.53);border-radius:6px;z-index:60}
body.engine-home.hud-surface .hud-project-options #hud-projects{display:grid;gap:4px}
body.engine-home.hud-surface .hud-project-picker:not([open]) .hud-project-options{display:none}
/* Phone: stable Eye and full controls, rails disclose rather than covering copy. */
@media(max-width:760px){
 body.engine-home.hud-surface .shell>main{margin-left:0;width:100%;padding:54px 8px 10px}
 body.engine-home.hud-surface .topbar{left:8px;right:8px;top:8px}
 body.engine-home.hud-surface #rail{position:fixed;left:8px;top:46px;height:calc(100dvh - 56px);width:min(80vw,264px);z-index:120;background:#080807}
 body.engine-home.hud-surface #rail.collapsed{display:none!important}
 body.engine-home.hud-surface .hud-nav-head #rail-toggle{position:fixed;left:8px;top:8px}
 body.engine-home.hud-surface .home-workspace{display:flex;flex-direction:column;height:auto;gap:10px}
 body.engine-home.hud-surface .home-command{height:620px;min-height:620px;grid-template-rows:38px minmax(0,1fr) var(--hud-composer)}
 body.engine-home.hud-surface .home-context{height:auto;min-height:520px;padding:0;grid-template-rows:1fr 1fr 1fr 1fr}
 body.engine-home.hud-surface #home-context-toggle{top:0;left:auto;right:0}
 body.engine-home.hud-surface .home-calendar{width:245px}
 body.engine-home.hud-surface .composer-secondary{overflow:visible;gap:4px}
 body.engine-home.hud-surface .composer-secondary button,body.engine-home.hud-surface .composer-secondary summary{font-size:9px!important;padding:4px 3px!important}
 body.engine-home.hud-surface .home-model-picker>summary,body.engine-home.hud-surface .home-effort-picker>summary{min-width:49px!important;gap:5px}
 body.engine-home.hud-surface .app-foot{position:static;width:auto;justify-content:center;padding:10px;font-size:10px}
 body.engine-home.hud-surface .orbit-node-name{font-size:9px!important}
 body.engine-home.hud-surface .home-chat-expanded{inset:6vh 8px!important}
}
@media(prefers-reduced-motion:reduce){.hud-surface .hud-eye-body{transform:none}.hud-surface *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

body.engine-home.hud-surface #rail{min-height:0;grid-template-rows:auto minmax(0,1fr);padding-bottom:var(--hud-composer)}
body.engine-home.hud-surface #rail .rail-foot{position:absolute;left:10px;right:10px;bottom:0;height:calc(var(--hud-composer) - 1px);width:auto}
body.engine-home.hud-surface #rail .home-profile-menu>summary{height:44px;margin:0}
body.engine-home.hud-surface .hud-metrics-band{margin:0!important;padding:0!important;border:0!important;display:block!important}
body.engine-home.hud-surface .hud-metrics-band>h2{display:none!important}
body.engine-home.hud-surface .home-more-actions>summary{font-size:10px;min-height:24px;height:24px}
body.engine-home.hud-surface .home-more-actions:not([open]){position:absolute;top:8px;right:8px}
body.engine-home.hud-surface .home-context .home-rail-panel{position:relative}
body.engine-home.hud-surface .topbar .status-dot{width:6px;height:6px;box-shadow:none}
body.engine-home.hud-surface .status-chip{display:flex!important;align-items:center;gap:6px}
body.engine-home.hud-surface .hud-nav-head .home-brand-name{white-space:nowrap}
body.engine-home.hud-surface .home-context h2{padding-right:0}
body.engine-home.hud-surface .orbit-node .hud-character-art{align-self:end;height:calc(100% - 16px)}

body.engine-home.hud-surface .hud-project-picker>summary::after{content:"⌄";margin-left:8px;font-size:10px}
body.engine-home.hud-surface .composer-secondary summary{position:relative}
body.engine-home.hud-surface .home-more-actions:not([open]){top:8px}
body.engine-home.hud-surface .home-more-actions:not([open])~*{margin:0}
body.engine-home.hud-surface .home-context .home-quick-links{padding-top:4px}
body.engine-home.hud-surface #hud-metrics-more{font-size:9px}

body.engine-home.hud-surface .home-header-controls{position:static;top:auto;right:auto;width:auto;height:30px;min-width:0;gap:6px;margin:0;align-items:center}
body.engine-home.hud-surface .home-header-controls #engine-chip{height:30px;min-height:30px;width:72px;min-width:72px;display:flex;justify-content:center;gap:6px}
body.engine-home.hud-surface .home-header-controls #engine-chip .dot{width:6px;height:6px;margin:0;box-shadow:none}
body.engine-home.hud-surface .home-header-controls #kill,body.engine-home.hud-surface .home-header-controls #home-notifications{width:30px;min-width:30px;height:30px;min-height:30px;padding:5px}
body.engine-home.hud-surface .home-header-controls #console-theme-toggle{width:72px;min-width:72px;height:30px;min-height:30px;font-size:11px}
body.engine-home.hud-surface .home-header-controls #kill::before{width:14px;height:14px;border:0;background-color:transparent}
body.engine-home.hud-surface .home-header-controls #home-notifications::before,body.engine-home.hud-surface .home-header-controls #console-theme-toggle::before{display:none}
body.engine-home.hud-surface .home-header-controls #home-notifications svg{width:17px;height:17px}
body.engine-home.hud-surface .home-context{z-index:24}
body.engine-home.hud-surface .hud-project-picker{min-width:0;flex:0 1 88px}
body.engine-home.hud-surface .hud-project-picker>summary{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){body.engine-home.hud-surface .hud-project-picker{flex-basis:60px}body.engine-home.hud-surface .home-model-picker{flex:0 1 74px}body.engine-home.hud-surface .home-model-picker>summary{gap:4px}body.engine-home.hud-surface #composer-model{max-width:51px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.engine-home.hud-surface .hud-project-picker>summary::after{margin-left:4px}}

body.engine-home.hud-surface .home-workspace{position:relative}
body.engine-home.hud-surface #home-context-toggle{left:calc(100% - var(--hud-right) - 30px);right:auto;z-index:60}
body.engine-home.hud-surface .home-context-collapsed #home-context-toggle{left:auto;right:0}
@media(max-width:760px){body.engine-home.hud-surface #home-context-toggle{left:auto;right:0;top:634px}}

body.engine-home.hud-surface .home-model-options .pickrow{height:auto!important;min-height:44px!important;white-space:normal!important;overflow:hidden;line-height:1.3!important;padding:8px!important;display:flex;align-items:center;gap:7px}
body.engine-home.hud-surface .home-model-options .picktag{font-size:10px;overflow-wrap:anywhere;min-width:0}
body.engine-home.hud-surface .home-header-controls{margin-left:auto}
body.engine-home.hud-surface .today-title,body.engine-home.hud-surface .today-title em{font:500 13px/1.3 Segoe UI,Arial,sans-serif;color:#e8e5dd;background:none;-webkit-text-fill-color:#e8e5dd}
body.engine-home.hud-surface .home-metrics-panel>.home-panel-head{margin-bottom:4px}
body.engine-home.hud-surface #hud-metrics-more{display:block;margin:2px 0 0;font-size:9px;height:22px;min-height:22px}
body.engine-home.hud-surface #metrics-more-btn{position:static!important;display:block;margin:3px 0 0;width:auto;min-height:22px;height:22px;padding:2px 4px;font-size:9px}
body.engine-home.hud-surface .home-quick-links .home-action{height:32px!important;min-height:32px!important;padding:4px;line-height:1.2;gap:5px}
body.engine-home.hud-surface .home-quick-links .ico{width:16px;height:16px;min-width:16px}
.hud-surface .hud-core-label,body.engine-home.hud-surface #reactor .home-core-content{background:#030303e8!important;border-radius:3px;padding:3px 5px!important}
.hud-surface .hud-core-label strong,.hud-surface .hud-core-label small,body.engine-home.hud-surface #reactor #home-eye-name,body.engine-home.hud-surface #reactor #home-eye-hint{text-shadow:0 0 10px #000!important}
body.engine-home.hud-surface #reactor #home-eye-name{background:none!important;-webkit-text-fill-color:currentColor!important}

/* Reference correction: retain independent controls; broaden only the decorative Eye.
   All layers use the same mathematical centre as the globe and original medallion. */
.hud-eye-geometry{left:-8%;width:116%;right:auto}
.hud-constellations{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.hud-surface .hud-scene{background:radial-gradient(ellipse at 50% 50%,#25190b44 0%,#030303 68%)!important}
.hud-surface .hud-character>span,body.engine-home.hud-surface #eye-stage .orbit-node-name{background:linear-gradient(90deg,transparent,#080603e8 28%,#080603e8 72%,transparent)!important;text-shadow:0 1px 3px #000}
.hud-surface .hud-core-label,body.engine-home.hud-surface #reactor .home-core-content{background:#030303ee!important;padding:3px 5px!important;border-radius:6px}
.hud-surface .hud-core-label strong{font-size:clamp(13px,1.65vw,18px)}
.hud-surface .hud-core-label small{font-size:clamp(10px,1.2vw,12px)}
@media(min-width:761px) and (max-width:960px){
 body.engine-home.hud-surface .hud-nav-head{padding-bottom:7px;gap:5px}
 body.engine-home.hud-surface .hud-nav-head>.brand{grid-template-columns:32px 1fr;gap:0 4px}
 body.engine-home.hud-surface .hud-nav-head #hdr-brand{font-size:7px;white-space:nowrap}
 body.engine-home.hud-surface .rail-nav>button{height:31px;padding:6px 4px}
 body.engine-home.hud-surface .home-pinned-topics>button{height:22px;padding:4px;font-size:9px}
 body.engine-home.hud-surface .home-context{grid-template-rows:1.25fr .8fr 1.45fr .9fr}
 body.engine-home.hud-surface .home-context .home-rail-panel{padding:8px!important}
 body.engine-home.hud-surface .home-context .home-panel-head{margin-bottom:4px}
 body.engine-home.hud-surface .home-quick-links .home-action{height:26px!important;min-height:26px!important}
}

@media(min-width:761px){
 .hud-surface{--hud-composer:76px}
 body.engine-home.hud-surface .home-command .composer-panel{padding:5px!important}
 body.engine-home.hud-surface .home-command .composer{row-gap:4px}
}
@media(min-width:761px) and (max-width:960px){
 body.engine-home.hud-surface .home-context .home-rail-panel{padding:6px!important}
 body.engine-home.hud-surface .today-head{min-height:18px!important;height:18px}
 .preview-hud .sample-event{padding:3px 0}
 .preview-hud .sample-metrics{padding:3px 0;line-height:1.1}
 .preview-hud .sample-metrics b{font-size:22px;line-height:1.1}
 .preview-hud .sample-metrics small{display:block;font-size:8px;line-height:1.2;margin-top:3px}
 body.engine-home.hud-surface .rail-nav>button{height:29px}
 body.engine-home.hud-surface .home-pinned-topics{margin-top:7px;padding-top:7px}
 body.engine-home.hud-surface .home-pinned-topics>button{height:20px}
}

/* The original medallion's artwork has a wider black margin on its left.
   Centre the visible circular mark; clip only the black corners, not the ring. */
.hud-core>img,body.engine-home.hud-surface #reactor .home-core-logo{clip-path:circle(44% at 56% 50%);transform:translateX(-6%)!important}
.hud-surface #home-brand-logo{clip-path:circle(44% at 56% 50%)}
.hud-surface .hud-globe-fallback{left:-43.8%;top:-30.8%;width:181.818%;height:181.818%;clip-path:circle(27.5% at 51.6% 46.5%)}

.hud-surface .rail-foot summary>img{clip-path:inset(0 0 15% 0)}
body.engine-home.hud-surface #rail .home-profile-menu>summary>.ico{background-size:34px 39px;background-position:center top;clip-path:inset(0 0 4px 0)}

/* Neutralise old card intrinsic sizes without hiding long account content. */
body.engine-home.hud-surface .home-context .home-rail-panel{line-height:1.35;min-width:0;overflow-x:hidden}
body.engine-home.hud-surface .today-head>em{font:500 13px/1.3 'Segoe UI',Arial,sans-serif;color:#e8e5dd;background:none;-webkit-text-fill-color:#e8e5dd}
body.engine-home.hud-surface .today-head,body.engine-home.hud-surface .home-panel-head{min-height:20px;height:20px;flex-shrink:0}
body.engine-home.hud-surface #today-body{min-height:0;max-width:100%;width:100%}
body.engine-home.hud-surface .home-activity-list>li:only-child.muted{min-height:0;height:auto;padding:0;margin:0}
@media(min-width:761px){body.engine-home.hud-surface .home-panel-head>.home-action,body.engine-home.hud-surface .today-head>.home-action{min-height:20px;height:20px}}
@media(min-width:761px) and (max-width:960px){
 body.engine-home.hud-surface .today-head{min-height:20px!important;height:20px!important}
 body.engine-home.hud-surface .hud-nav-head{padding-bottom:3px}
 body.engine-home.hud-surface .home-pinned-topics h2{margin-bottom:5px}
}

body.engine-home.hud-surface .home-context #today{overflow:hidden;gap:0}
body.engine-home.hud-surface #today-body{flex:1 1 auto;overflow:auto}
@media(min-width:761px) and (max-width:960px){body.engine-home.hud-surface .home-context #today{padding:6px!important}}

/* Keep contrast behind the label, without a wide panel across the geography. */
.hud-surface .hud-core-label,body.engine-home.hud-surface #reactor .home-core-content{width:max-content;min-width:0;max-width:none}

/* Extra window height must not stretch the authored Eye or its character slots. */
body.engine-home.hud-surface #eye-stage.hud-scene{height:auto;aspect-ratio:1000/640;max-height:100%;align-self:center}

/* The HUD is black and gold in every console theme. Light mode re-points the shared
   tokens to ink-on-paper, which left charcoal text (rgb 42,41,37) on near-black panels
   and a beige body behind them. Pin the dark values for this scope only. The first five
   tokens repeat the HUD's own values from the body.engine-home.hud-surface rule above
   (this selector is more specific, so it must restate them, not replace them). Tokens
   built from others with var() resolve where they are declared (:root), so each derived
   token is restated here too. */
:root[data-mode="light"] body.engine-home.hud-surface,:root[data-theme="light"] body.engine-home.hud-surface{
 color-scheme:dark;background:#030303;color:#eee9df;
 --bg:#030303;--surface:#080807;--surface-2:#12110e;--text:#eee9df;--muted:#b7afa1;--home-line:var(--hud-line);--gold:var(--hud-gold);
 --raised:#2E261B;--line:#3A3024;--ink:#000;--text-2:#C8BAA6;--on-accent:#1B160E;--surface-shadow:#000;--dept-color:var(--hud-gold);
 --gold-dim:rgba(211,168,76,0.14);--gold-mid:rgba(211,168,76,0.26);
 --gold-deep:#956D13;--gold-metal-mid:#B58F3E;--gold-light:#E6BE69;--gold-spec:#FFEC94;
 --gold-sheen:linear-gradient(135deg,#B58F3E 0%,#D3A84C 22%,#FFD87C 46%,#FFEC94 52%,#E6BE69 66%,#B58F3E 100%);
 --wash-primary:var(--gold-sheen);--wash-meter:linear-gradient(90deg,var(--gold-mid),var(--gold));
 --ok-fg:#A9B787;--warn-fg:#D3A84C;--danger-fg:#D98A7C;--sage:#A9B787;--danger:#D98A7C;--warn-yellow:#D3A84C;
 --ok-bg:color-mix(in srgb,#A9B787 11%,transparent);--ok-line:color-mix(in srgb,#A9B787 34%,transparent);
 --warn-bg:color-mix(in srgb,#D3A84C 11%,transparent);--warn-line:color-mix(in srgb,#D3A84C 34%,transparent);
 --danger-bg:color-mix(in srgb,#D98A7C 10%,transparent);--danger-line:color-mix(in srgb,#D98A7C 38%,transparent);
 --info-fg:var(--gold);--info-bg:var(--gold-dim);--info-line:var(--gold-mid);
 --neutral-fg:#b7afa1;--neutral-bg:color-mix(in srgb,#b7afa1 12%,transparent);--neutral-line:color-mix(in srgb,#b7afa1 32%,transparent);
 --focus-halo:0 0 0 4px #12100Ce0}
/* The viewport itself (scrollbars) follows the HUD, not the light console theme. */
:root:has(body.hud-surface){color-scheme:dark}

/* Fixed reference ornament; the account renderer retains its own geometry. */
