:root{color-scheme:dark;--font-ui:Inter,"Segoe UI",Arial,sans-serif;--navy:#07111d;--graphite:#111d2b;--deepblue:#164f85;--surface:#0d1825;--surface2:#142231;--text:#e6eef7;--muted:#8d9bad;--cyan:#42c6dc;--green:#63c987;--red:#dc6670;--border:#243445;--radius:6px;--font:var(--font-ui);--nexus-bg:#101b27;--nexus-hud:#142231;--nexus-stage:#121f2c;--nexus-panel:#152432;--nexus-surface:#182837;--nexus-surface-elevated:#1d3041;--nexus-register:#172634;--nexus-input:#132230;--nexus-hover:#15283a;--nexus-active:rgba(66,198,220,.08);--nexus-active-border:#286f82;--nexus-user-message:#102b3a;--nexus-border:#243445;--nexus-text:#e6eef7;--nexus-text-muted:#8d9bad;--nexus-text-faint:#607083;--nexus-primary:#2873ae;--nexus-accent:#42c6dc;--nexus-success:#63c987;--nexus-success-soft:rgba(99,201,135,.12);--nexus-warning:#d9b65b;--nexus-danger:#dc6670;--nexus-scroll:rgba(66,198,220,.28);--nexus-shadow:0 18px 55px rgba(0,0,0,.38)}
:root[data-theme="light"]{color-scheme:light;--navy:#e9eff5;--graphite:#dce5ed;--deepblue:#155b91;--surface:#f7f9fb;--surface2:#edf2f6;--text:#12202e;--muted:#5c6d7e;--cyan:#087c98;--green:#248151;--red:#b74752;--border:#ced8e1;--nexus-bg:#e9eff5;--nexus-hud:#f8fafc;--nexus-stage:#f1f5f8;--nexus-panel:#f4f7f9;--nexus-surface:#f8fafc;--nexus-surface-elevated:#ffffff;--nexus-input:#f2f6f9;--nexus-hover:#e8f1f6;--nexus-active:rgba(8,124,152,.08);--nexus-active-border:#78aeba;--nexus-user-message:#e5f2f6;--nexus-border:#ced8e1;--nexus-text:#12202e;--nexus-text-muted:#5c6d7e;--nexus-text-faint:#8b99a7;--nexus-primary:#155b91;--nexus-accent:#087c98;--nexus-success:#248151;--nexus-success-soft:rgba(36,129,81,.12);--nexus-warning:#956c0d;--nexus-danger:#b74752;--nexus-scroll:rgba(8,124,152,.24);--nexus-shadow:0 16px 42px rgba(29,55,76,.16)}

/* 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:#08131f;--nexus-copilot:#0c1926;--nexus-register:#101b27;--nexus-elevation:0 8px 22px rgba(0,0,0,.24)}
:root[data-theme="light"]{--nexus-workspace:#f7fafc;--nexus-copilot:#eef4f7;--nexus-register:#e8eef3;--nexus-elevation:0 8px 22px rgba(29,55,76,.13)}

/* 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:-.6rem 0 1.4rem rgba(0,0,0,.28);--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 .75rem 2rem rgba(0,0,0,.34);--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 .28rem .8rem rgba(0,0,0,.16);--window-shadow-interaction:0 1rem 2.6rem rgba(0,0,0,.48);--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 .25rem .75rem rgba(29,55,76,.08);--window-shadow-interaction:0 1rem 2.4rem rgba(29,55,76,.24)}

/* 0.15.8 approved stage texture and translucent taskbar tokens. */
:root{--stage-texture-dot:rgba(120,145,175,.13);--stage-texture-line:rgba(120,145,175,.035);--taskbar-border:rgba(132,151,174,.24);--taskbar-fallback:#141a22;--taskbar-translucent:rgba(20,26,34,.78)}
:root[data-theme="light"]{--stage-texture-dot:rgba(55,78,104,.13);--stage-texture-line:rgba(55,78,104,.035);--taskbar-border:rgba(49,67,88,.2);--taskbar-fallback:#edf1f5;--taskbar-translucent:rgba(237,241,245,.78)}

/* 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(20,26,34,.30)}
:root[data-theme="light"]{--taskbar-translucent:rgba(237,241,245,.30)}
: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}
