:root{color-scheme:dark;--font-ui:Inter,"SF Pro Text","Segoe UI",Arial,sans-serif;--navy:#0b1524;--graphite:#141f31;--deepblue:#2f79c8;--surface:#101b2d;--surface2:#17263b;--text:#e4ebf5;--muted:#9ba9bd;--cyan:#5e9edb;--green:#2eaa72;--red:#d35763;--border:#2a3a52;--radius:6px;--font:var(--font-ui);--nexus-bg:#0b1422;--nexus-hud:rgba(14,24,39,.84);--nexus-stage:#101b2d;--nexus-panel:rgba(18,29,45,.88);--nexus-surface:#162337;--nexus-surface-elevated:rgba(21,33,51,.9);--nexus-register:rgba(17,27,42,.9);--nexus-input:#0f1c2d;--nexus-hover:#1a2a40;--nexus-active:rgba(77,141,219,.14);--nexus-active-border:#5d84b6;--nexus-user-message:#142438;--nexus-border:#2a3a52;--nexus-text:#e4ebf5;--nexus-text-muted:#9ba9bd;--nexus-text-faint:#72839a;--nexus-primary:#2f79c8;--nexus-accent:#5e9edb;--nexus-success:#2eaa72;--nexus-success-soft:rgba(46,170,114,.16);--nexus-warning:#b88a33;--nexus-danger:#d35763;--nexus-scroll:rgba(94,158,219,.3);--nexus-shadow:0 14px 34px rgba(6,13,23,.3)}
:root[data-theme="light"]{color-scheme:light;--navy:#f3f6fb;--graphite:#e8eef6;--deepblue:#2f76c2;--surface:#f9fbfe;--surface2:#f1f5fa;--text:#1b2b3e;--muted:#5f7288;--cyan:#3f84cc;--green:#23895b;--red:#c34f5a;--border:#d4deea;--nexus-bg:#f4f7fb;--nexus-hud:rgba(255,255,255,.86);--nexus-stage:#f6f9fd;--nexus-panel:rgba(255,255,255,.9);--nexus-surface:#ffffff;--nexus-surface-elevated:rgba(255,255,255,.94);--nexus-register:rgba(249,251,255,.92);--nexus-input:#f2f6fb;--nexus-hover:#edf3fa;--nexus-active:rgba(47,118,194,.1);--nexus-active-border:#9ab5d4;--nexus-user-message:#eef4fb;--nexus-border:#d4deea;--nexus-text:#1b2b3e;--nexus-text-muted:#5f7288;--nexus-text-faint:#8696a9;--nexus-primary:#2f76c2;--nexus-accent:#3f84cc;--nexus-success:#23895b;--nexus-success-soft:rgba(35,137,91,.12);--nexus-warning:#a67827;--nexus-danger:#c34f5a;--nexus-scroll:rgba(63,132,204,.22);--nexus-shadow:0 12px 30px rgba(35,62,94,.14)}

/* Nexus 0.6.1: system-wide semantic scale and stabilized Shell V3 surfaces. */
:root{--nexus-ui-scale:1;--nexus-unit:calc(1rem * var(--nexus-ui-scale));--nexus-rail-width:calc(220px * var(--nexus-ui-scale));--nexus-rail-collapsed:calc(48px * var(--nexus-ui-scale));--nexus-collapsed-tab:calc(42px * var(--nexus-ui-scale));--nexus-copilot-width:clamp(280px,20vw,42vw);--nexus-history-width:clamp(220px,17vw,300px);--nexus-workspace:#0f1a2b;--nexus-copilot:rgba(18,29,45,.9);--nexus-register:rgba(20,31,47,.92);--nexus-elevation:0 10px 24px rgba(6,13,23,.28)}
:root[data-theme="light"]{--nexus-workspace:#f8fbff;--nexus-copilot:#f1f6fc;--nexus-register:#ecf3fb;--nexus-elevation:0 8px 22px rgba(35,62,94,.12)}

/* Nexus 0.7.0 — documented Shell V4 layer scale. */
:root{--nexus-z-workspace:1;--nexus-z-modules:30;--nexus-z-copilot:40;--nexus-z-history:50;--nexus-z-menu:70;--nexus-z-system:80;--nexus-z-fullscreen:100;--nexus-motion:180ms ease-out;--nexus-module-width:14rem;--nexus-edge-tab:3rem;--nexus-copilot-width:25.625rem;--nexus-history-width:18rem}
html[data-ui-scale="100"]{font-size:16px}html[data-ui-scale="115"]{font-size:18.4px}

/* Nexus 0.7.1 — lateral geometry shared by the stage and both right panels. */
:root{--nexus-copilot-base:280px;--nexus-history-width:clamp(12rem,16vw,16rem);--nexus-right-reserve:min(calc(40vw - var(--nexus-edge-tab)),calc(var(--nexus-copilot-base) + var(--nexus-history-width)));--nexus-panel-gap:.75rem}

/* Nexus 0.7.2 — adaptive physical geometry and product density. */
:root{--nexus-module-width:12.75rem;--nexus-module-collapsed:2.625rem;--nexus-copilot-base:17.5rem;--nexus-history-width:14rem;--nexus-workspace-min:24rem;--nexus-workspace-gutter:1rem;--nexus-control-height:2.25rem;--nexus-composer-max:8rem}

/* Nexus 0.7.4 — features reuse the stable 0.7.2 physical geometry. */
:root{--nexus-copilot-base:22.5rem;--nexus-composer-max:10rem;--nexus-info:var(--nexus-accent);--nexus-critical:var(--nexus-danger);--nexus-z-notifications:90}
/* Nexus 0.10.8 — shared stabilization geometry. */
:root{--nexus-overlay-shadow:-.55rem 0 1.5rem rgba(10,19,33,.24);--nexus-stage-inline-margin:1rem}

/* Nexus 0.10.10 — canonical shell geometry tokens. */
:root{--nexus-panel-border-color:var(--nexus-border);--nexus-panel-border-width:1px;--nexus-panel-radius:.375rem;--nexus-overlay-shadow:0 .7rem 1.8rem rgba(10,19,33,.28);--nexus-stage-inline-margin:clamp(.75rem,1.5vw,1.5rem);--nexus-stage-max-width:96rem}

/* Nexus 0.10.11 — shared cockpit motion and symmetric edge controls. */
:root{--nexus-panel-open-duration:220ms;--nexus-panel-open-easing:cubic-bezier(.2,.8,.2,1);--nexus-edge-tab-height:7.5rem;--nexus-panel-control-size:1.9rem}

/* Nexus 0.15.7: canonical workstation visual contract. */
:root{--window-shadow-idle:0 .24rem .65rem rgba(9,17,29,.2);--window-shadow-interaction:0 .85rem 2.1rem rgba(8,15,25,.34);--window-border-idle:var(--nexus-panel-border-color);--window-border-active:color-mix(in srgb,var(--nexus-accent) 32%,var(--nexus-panel-border-color))}
:root[data-theme="light"]{--window-shadow-idle:0 .22rem .6rem rgba(35,62,94,.08);--window-shadow-interaction:0 .8rem 2rem rgba(35,62,94,.18)}

/* 0.15.8 approved stage texture and translucent taskbar tokens. */
:root{--stage-texture-dot:rgba(96,126,166,.09);--stage-texture-line:rgba(96,126,166,.024);--taskbar-border:rgba(116,144,178,.22);--taskbar-fallback:#132133;--taskbar-translucent:rgba(19,33,51,.7)}
:root[data-theme="light"]{--stage-texture-dot:rgba(64,98,138,.08);--stage-texture-line:rgba(64,98,138,.022);--taskbar-border:rgba(94,120,153,.18);--taskbar-fallback:#f2f6fb;--taskbar-translucent:rgba(242,246,251,.74)}

/* Nexus 0.15.10 — canonical Copilot reservation and translucent footer. */
:root{--nexus-copilot-standard-width:360px;--nexus-copilot-base:var(--nexus-copilot-standard-width);--taskbar-translucent:rgba(19,33,51,.32)}
:root[data-theme="light"]{--taskbar-translucent:rgba(242,246,251,.34)}
:root[data-ui-scale="115"]{--nexus-copilot-standard-width:414px}

/* Nexus 0.15.11 canonical Copilot measures. */
:root{--nexus-copilot-standard-width:360px;--nexus-copilot-width:var(--nexus-copilot-standard-width);--nexus-collapsed-track:42px}
:root[data-ui-scale="115"]{--nexus-copilot-standard-width:414px;--nexus-collapsed-track:48px}
