/* Workspace selectable themes: Daylight, Collective, Bridge, Terminal, Neon, Deep Space.
   Opt-in only: every rule is scoped to one of these data-theme values (set by theme.js from the Appearance
   choice). Enterprise (default), Bright, Dark, Follow device and Previous colours are untouched by this file.
   Tokens extend the app.css set (--bg --surface --text --muted --line --accent --soft --error) with
   --on-accent --surface-2 --field --ok --warn --bad --idle --focus --deck-1..3 --head-font --radius-card.
   Artwork in /assets/themes/*.svg is original; no remote assets (CSP img-src 'self'). No animation. */

/* ---------------------------------------------------------------- tokens */
:root[data-theme="daylight"]{color-scheme:light;--bg:#f6f7fb;--surface:#ffffff;--surface-2:#f1f3f9;--field:#ffffff;--text:#1d2333;--muted:#545c70;--line:#d3d8e6;--accent:#4338ca;--on-accent:#ffffff;--soft:#eceafd;--error:#b42318;--ok:#16683a;--warn:#8a5300;--bad:#b42318;--idle:#545c70;--focus:#4338ca;--deck-1:#4338ca;--deck-2:#0e7c86;--deck-3:#8a5300;--head-font:inherit;--radius-card:14px;--theme-art:url("themes/daylight-waves.svg")}
:root[data-theme="collective"]{color-scheme:dark;--bg:#040705;--surface:#0a110c;--surface-2:#0f1912;--field:#0c150f;--text:#d8f5df;--muted:#8fb89a;--line:#24432d;--accent:#3ddc84;--on-accent:#03140a;--soft:#10281a;--error:#ff7070;--ok:#5ef08f;--warn:#ffcc4d;--bad:#ff7070;--idle:#a0aea6;--focus:#b6ffd3;--deck-1:#3ddc84;--deck-2:#d4f27a;--deck-3:#7fd6c2;--head-font:Bahnschrift,"DIN Alternate","Segoe UI",system-ui,sans-serif;--radius-card:2px;--theme-art:url("themes/collective-lattice.svg")}
:root[data-theme="bridge"]{color-scheme:dark;--bg:#0a1230;--surface:#121c44;--surface-2:#18245a;--field:#0f1838;--text:#eef1ff;--muted:#b4bce6;--line:#2f3d7d;--accent:#ffb347;--on-accent:#1a1000;--soft:#2a2a55;--error:#ff8f8f;--ok:#7ee2a8;--warn:#ffcf70;--bad:#ff8f8f;--idle:#aab2da;--focus:#ffe0a8;--deck-1:#ffb347;--deck-2:#b7a6ff;--deck-3:#7fc8ff;--head-font:"Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;--radius-card:14px;--theme-art:url("themes/bridge-arcs.svg")}
:root[data-theme="terminal"]{color-scheme:dark;--bg:#0b0e0b;--surface:#10140f;--surface-2:#151b14;--field:#0d110c;--text:#cfe8cc;--muted:#93ab8f;--line:#2c3a2a;--accent:#7ee787;--on-accent:#071207;--soft:#18261a;--error:#ff7b72;--ok:#7ee787;--warn:#e3c567;--bad:#ff7b72;--idle:#9aaa97;--focus:#e3c567;--deck-1:#7ee787;--deck-2:#e3c567;--deck-3:#9fd0c4;--head-font:ui-monospace,"Cascadia Mono",Consolas,monospace;--radius-card:0;--theme-art:none}
:root[data-theme="neon"]{color-scheme:dark;--bg:#121217;--surface:#1a1a22;--surface-2:#21212c;--field:#16161d;--text:#f1eefa;--muted:#b3aec8;--line:#363650;--accent:#3ee6ff;--on-accent:#04161a;--soft:#1b2a36;--error:#ff6b97;--ok:#5cf2a6;--warn:#ffd166;--bad:#ff6b97;--idle:#aaa5bf;--focus:#ff8ae6;--deck-1:#3ee6ff;--deck-2:#ff4fd8;--deck-3:#ffd166;--head-font:inherit;--radius-card:6px;--theme-art:url("themes/neon-horizon.svg")}
:root[data-theme="deepspace"]{color-scheme:dark;--bg:#060a1a;--surface:#0d1430;--surface-2:#121a3a;--field:#0a1028;--text:#e6ecff;--muted:#a8b3d8;--line:#273466;--accent:#8fb4ff;--on-accent:#06102a;--soft:#18244c;--error:#ff9a9a;--ok:#7fe0b0;--warn:#ffd27a;--bad:#ff9a9a;--idle:#a6aecb;--focus:#d7b8ff;--deck-1:#8fb4ff;--deck-2:#d7b8ff;--deck-3:#ffd27a;--head-font:inherit;--radius-card:12px;--theme-art:url("themes/space-orbit.svg")}

/* ---------------------------------------------------------------- shared components (all six) */
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body{background-color:var(--bg);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body>header{background:var(--surface) var(--theme-art) no-repeat 38% center/auto 100%;border-bottom:1px solid var(--line);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .brand{color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .mark{background:var(--accent);color:var(--on-accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(h1,h2,h3){font-family:var(--head-font)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .card{background:var(--surface);border-color:var(--line);border-radius:var(--radius-card);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(button,.button):not([role="switch"]){background:var(--surface-2);border-color:var(--line);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(button,.button):not([role="switch"]):hover:not(:disabled){background:var(--soft);border-color:var(--accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:650}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) button.primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.08)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(button,.button).danger{border-color:var(--bad);color:var(--bad)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(input:not([role="switch"]),select,textarea){background:var(--field);border-color:var(--line);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(input,select,textarea)::placeholder{color:var(--muted);opacity:1}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :focus-visible{outline:2px solid var(--focus);outline-offset:2px}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) input[role="switch"]{background:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) input[role="switch"]:checked{background:var(--accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) input[role="switch"]::before{background:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) input[role="switch"]:checked::before{background:var(--on-accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) nav button:not(.active):not([aria-current="page"]){background:transparent;border-color:transparent}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) nav button:not(.active):not([aria-current="page"]):hover{background:var(--soft)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) nav button.active,html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) nav button[aria-current="page"]{background:var(--soft);color:var(--text);box-shadow:inset 3px 0 var(--accent);font-weight:650}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) th{color:var(--muted);border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) td{border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) tbody tr:hover{background:color-mix(in srgb,var(--soft) 55%,transparent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(.badge,.result,.stats>div){background:var(--surface-2);border-color:var(--line);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(dialog,[role="dialog"]){background:var(--surface);color:var(--text);border:1px solid var(--accent);border-radius:var(--radius-card)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) dialog::backdrop{background:color-mix(in srgb,var(--bg) 72%,transparent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) #notice{background:var(--surface-2);color:var(--text);border-color:var(--accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .error{color:var(--error)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .card.warning{border-left:5px solid var(--bad)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(.muted,.hint,small){color:var(--muted)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body.user-portal{--up-tint:var(--surface-2)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) footer{color:var(--muted)}

/* Status colours that were fixed hex values in module stylesheets. Shape/text cues are unchanged. */
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-dot{background:var(--idle)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-dot.ok{background:var(--ok)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-dot.warn{background:var(--warn)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-dot.bad{background:var(--bad)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-block{border-left-color:var(--warn)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .nc-link-online{border-color:var(--ok);color:var(--ok);background:color-mix(in srgb,var(--ok) 12%,transparent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .nc-link-waiting{border-color:var(--idle);color:var(--idle);background:color-mix(in srgb,var(--idle) 12%,transparent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .nc-link-offline{border-color:var(--warn);color:var(--warn);background:color-mix(in srgb,var(--warn) 12%,transparent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .nc-link-revoked{border-color:var(--bad);color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,transparent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-plan-ready,html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-gate-open{border-color:var(--ok);color:var(--ok)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-plan-near{border-color:var(--warn);color:var(--warn)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-notice{border-left-color:var(--warn)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-incompatible{border-color:var(--bad);color:var(--bad)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-featured .ca-highlight{background:linear-gradient(115deg,var(--surface-2),var(--soft));border-color:var(--line);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .jb-tasks .jb-filters button{background:var(--accent);color:var(--on-accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-sym.ok{color:var(--ok)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-sym.part,html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-sym.unk{color:var(--warn)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .sv-sym.no{color:var(--idle)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-highlight>.ca-tile{color:var(--text);min-width:0}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-highlight :is(.ca-description,.ca-later,.ca-reference){color:var(--muted)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-highlight .ca-ready{color:var(--ok)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-copy :is(strong,span){min-width:0;max-width:100%;overflow-wrap:anywhere}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ca-ui .ca-avail{white-space:normal}

/* ---------------------------------------------------------------- Overview deck (overview.css hard-codes the Enterprise deck for every theme) */
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov{--ov-panel:var(--surface);--ov-line:var(--line);--ov-line-soft:var(--line);--ov-ink:var(--text);--ov-muted:var(--muted);--ov-a:var(--deck-1);--ov-b:var(--deck-3);--ov-grid:var(--line);--ov-track:var(--soft);--ov-surface-2:var(--surface-2);--ov-surface-3:var(--soft);--ov-ok:var(--ok);--ov-warn:var(--warn);--ov-warn-ink:var(--warn);--ov-bad:var(--bad)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body:has(.ov){background:var(--bg);color:var(--text);color-scheme:inherit}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body:has(.ov)>header{background-color:var(--surface);border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body:has(.ov)>header .brand{color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .shell:has(.ov){border:0;border-radius:0;background:none}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .shell:has(.ov)>nav{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .shell:has(.ov)>nav :is(button,summary){color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .shell:has(.ov)>nav :is(button.active,button[aria-current="page"]){background:var(--soft);color:var(--text);border-radius:8px;box-shadow:inset 3px 0 var(--accent);font-weight:650}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .shell:has(.ov) .stats>div{background:var(--surface-2);border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :is(button:not([role="switch"]),select,input:not([role="switch"])){background:var(--field);color:var(--text);border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov button:not([role="switch"]):hover{border-color:var(--accent);background:var(--soft)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :focus-visible{outline-color:var(--focus)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-bar>h2,html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-history>.ov-panel-head h2{color:var(--muted)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-bar .monitor-controls .ov-switch{color:var(--text);border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-tile{--deck:var(--deck-1);background:var(--surface);color:var(--text);border:1px solid var(--line);border-top:2px solid var(--deck);border-radius:var(--radius-card)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :is(.ov-tile-memory,.ov-tile-storage,.ov-tile[data-monitor-key="memory"]){--deck:var(--deck-2);background:var(--surface)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-tile-network{--deck:var(--deck-3);background:var(--surface)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :is(.ov-tile-label,.gpu-metric .ov-tile-label){color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-tile-value{color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov progress::-webkit-progress-bar{background:var(--soft)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-chart{--deck:var(--deck-1);background:var(--surface);border:1px solid var(--line);border-top:2px solid var(--deck);border-radius:var(--radius-card)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :is(.ov-chart:nth-child(2),.ov-chart.ov-deck-pool){--deck:var(--deck-2)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :is(.ov-chart:nth-child(3),.ov-chart.ov-deck-machines){--deck:var(--deck-3)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-chart-head h3{background:none;color:var(--text);border-radius:0;min-width:0;padding:12px 16px 4px;font-size:14px;font-weight:650}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-tile::before{display:none}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .monitor-chart{background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),var(--line) 20%)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .chart-series-0.chart-line{stroke:var(--deck-1)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .chart-series-1.chart-line{stroke:var(--deck-3)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-chart:nth-child(3) .chart-series-0.chart-line{stroke:var(--deck-1)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-chart:nth-child(3) .chart-series-0 .ov-swatch{background:var(--deck-1)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov .ov-chart:nth-child(3) .chart-series-1.chart-line{stroke:var(--deck-3)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov :is(.ov-y,.ov-x,.ov-ring-label span,.ov-capacity-legend>span){color:var(--muted)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-chart>p.muted{color:var(--muted);background:repeating-linear-gradient(0deg,transparent,transparent 39px,var(--line) 40px)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-ring-track{stroke:var(--deck-1)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-ring-used{stroke:var(--deck-2)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-ring-unknown .ov-ring-track{stroke:var(--idle)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-machine-list{border-top-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-machine-list>div{border-bottom-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-machine-state{color:var(--ok)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(.ov-storage-details,.ov-more,.ov-fold){border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-storage-details>summary{color:var(--accent)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .shell:has(.ov) .content>.card{background:var(--surface);border-color:var(--line);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .ov-gpu .gpu-reading{background:var(--surface-2);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) :is(.gpu-identity .hint,.gpu-metric .hint){color:var(--muted)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .gpu-metric progress{accent-color:var(--deck-1)}

/* ---------------------------------------------------------------- standalone desktop / machine access chrome */
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .enterprise-desktop{background:var(--bg);color:var(--text)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .enterprise-desktop :is(header,.toolbar,.help,.status,.notice){background:var(--surface);color:var(--text);border-color:var(--line)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .enterprise-desktop :is(button,select,input){background:var(--surface-2);color:var(--text);border:1px solid var(--line);border-radius:var(--radius-card)}
html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) .enterprise-desktop a{color:var(--accent)}

/* ---------------------------------------------------------------- per-theme character */
/* Collective: angular corner brackets, circuit backdrop, hexagonal mark, uppercase headings. */
html:is(:root[data-theme="collective"]) body{background:linear-gradient(#040705b3,#040705b3),url("themes/collective-circuit.svg") 0 0/240px 240px repeat,var(--bg)}
html:is(:root[data-theme="collective"]) body>header{border-bottom-color:var(--accent)}
html:is(:root[data-theme="collective"]) .mark{clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);border-radius:0;padding-inline:14px}
html:is(:root[data-theme="collective"]) :is(h1,h2,h3){text-transform:uppercase;letter-spacing:.04em}
html:is(:root[data-theme="collective"]) .card{position:relative;box-shadow:none}
html:is(:root[data-theme="collective"]) .card::before,html:is(:root[data-theme="collective"]) .card::after{content:"";position:absolute;width:14px;height:14px;pointer-events:none;border:0 solid var(--accent)}
html:is(:root[data-theme="collective"]) .card::before{top:-1px;left:-1px;border-top-width:2px;border-left-width:2px}
html:is(:root[data-theme="collective"]) .card::after{bottom:-1px;right:-1px;border-bottom-width:2px;border-right-width:2px}
html:is(:root[data-theme="collective"]) :is(button,.button,input,select,textarea){border-radius:2px}

/* Bridge: navy/amber/violet, softly rounded panels with a slim coloured rail; round mark kept. */
html:is(:root[data-theme="bridge"]) body>header{background-image:var(--theme-art),linear-gradient(90deg,#121c44,#1a1850);background-repeat:no-repeat;background-position:38% center,0 0;background-size:auto 100%,auto}
html:is(:root[data-theme="bridge"]) .mark{border-radius:999px}
html:is(:root[data-theme="bridge"]) :is(button,.button){border-radius:10px}
html:is(:root[data-theme="bridge"]) :is(input,select,textarea){border-radius:10px}
html:is(:root[data-theme="bridge"]) .card:not(.ov-panel):not(.ov *){box-shadow:inset 3px 0 var(--deck-1)}
html:is(:root[data-theme="bridge"]) .card:nth-of-type(even):not(.ov-panel):not(.ov *){box-shadow:inset 3px 0 var(--deck-2)}
html:is(:root[data-theme="bridge"]) nav button{border-radius:10px}

/* Terminal: monospace, square edges, prompt markers, no imagery. */
html:is(:root[data-theme="terminal"]){font-family:ui-monospace,"Cascadia Mono","JetBrains Mono",Consolas,monospace}
html:is(:root[data-theme="terminal"]) :is(.card,button,.button,input,select,textarea,.badge,.mark,dialog){border-radius:0}
html:is(:root[data-theme="terminal"]) :is(h1,h2){text-transform:uppercase;letter-spacing:.04em}
html:is(:root[data-theme="terminal"]) .card:not(dialog)>h2::before{content:"> " / "";color:var(--accent)}
html:is(:root[data-theme="terminal"]) .card{box-shadow:none}

/* Neon: charcoal with a static cyan-to-magenta edge; no animated glow. */
html:is(:root[data-theme="neon"]) body>header{border-bottom:2px solid transparent;border-image:linear-gradient(90deg,#3ee6ff,#ff4fd8) 1}
html:is(:root[data-theme="neon"]) .card{position:relative;box-shadow:0 0 0 1px #3ee6ff1f}
html:is(:root[data-theme="neon"]) .card::before{content:"";position:absolute;left:18px;right:18px;top:-1px;height:2px;background:linear-gradient(90deg,#3ee6ff,#ff4fd8);pointer-events:none}
html:is(:root[data-theme="neon"]) nav button[aria-current="page"],html:is(:root[data-theme="neon"]) nav button.active{box-shadow:inset 3px 0 #ff4fd8;background:#2a1f33}

/* Deep Space: sparse static starfield behind translucent-feeling panels. */
html:is(:root[data-theme="deepspace"]) body{background:url("themes/space-stars.svg") 0 0/420px 420px repeat,radial-gradient(1200px 600px at 85% -10%,#22285e88,transparent 70%),var(--bg)}
html:is(:root[data-theme="deepspace"]) :is(.card,.shell:has(.ov)>nav){background:color-mix(in srgb,var(--surface) 92%,transparent)}

/* Daylight: soft elevation. */
html:is(:root[data-theme="daylight"]) .card{box-shadow:0 1px 2px #1d233310,0 8px 24px #1d23330d}

/* ---------------------------------------------------------------- small screens, forced colours */
@media (max-width:700px){html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body>header{background-image:none}}
@media (forced-colors:active){html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body,html:is(:root[data-theme="daylight"],:root[data-theme="collective"],:root[data-theme="bridge"],:root[data-theme="terminal"],:root[data-theme="neon"],:root[data-theme="deepspace"]) body>header{background-image:none}html:is(:root[data-theme="collective"]) .card::before,html:is(:root[data-theme="collective"]) .card::after,html:is(:root[data-theme="neon"]) .card::before{display:none}}
