/* DUSK: indigo surfaces, lilac = active, sky = secondary. CEO's prototype: disk/ac/ceo/5-skins. */
:root[data-theme="dusk"] {
  --shell-bg: radial-gradient(ellipse 80% 60% at 50% -10%, oklch(0.32 0.07 295) 0%, transparent 70%), linear-gradient(180deg, oklch(0.20 0.045 285) 0%, oklch(0.12 0.03 270) 100%);

  /* ── Knob defaults (Settings overrides these per skin) ── */
  --s-opacity: 92;
  --s-blur: 0;
  --s-border: 8;
  --s-glow: 0;
  --s-spread: 0;

  /* ── Surfaces, from the knobs ── */
  --window-bg: oklch(0.215 0.03 285 / calc(var(--s-opacity) / 100));
  --window-border: oklch(1 0 0 / calc(var(--s-border) / 100));
  --window-border-w: 1px;
  --window-glow: oklch(1 0 0 / calc(var(--s-glow) / 100));
  --window-text: oklch(0.94 0.012 290);
  --window-text-muted: oklch(0.94 0.012 290 / 0.6);
  --window-blur: calc(var(--s-blur) * 1px);
  --glass-filter: blur(var(--window-blur));
  --window-shadow: 0 0 calc(var(--s-spread) * 1px) oklch(1 0 0 / calc(var(--s-glow) / 100)), 0 1px 2px oklch(0 0 0 / 0.4), 0 16px 40px oklch(0 0 0 / 0.35);
  --text-shadow: none;

  --dock-bg: var(--window-bg);
  --dock-border: var(--window-border);
  --dock-glow: none;

  /* ── Meaning ── */
  --accent: oklch(0.80 0.07 225);
  --active: oklch(0.80 0.10 305);
  --active-text: oklch(0.80 0.10 305);
  --hover-text: oklch(0.96 0.01 290);
  --edge: oklch(0.96 0.01 290);
  --text-faint: oklch(0.94 0.012 290 / 0.38);
  --separator: oklch(1 0 0 / 0.1);

  /* ── Controls ── */
  --ctl-bg: oklch(0.175 0.03 285 / 0.8);
  --ctl-edge: inset 0 0 0 1px oklch(1 0 0 / 0.1);
  --ctl-edge-hover: inset 0 0 0 1px oklch(1 0 0 / 0.4);
  --selected-bg: oklch(0.80 0.10 305 / 0.08);
  --selected-edge: inset 0 0 0 1px oklch(0.80 0.10 305);
  --row-bg: transparent;
  --row-edge: inset 0 0 0 1px oklch(1 0 0 / 0.08);
  --row-hover-bg: oklch(1 0 0 / 0.05);
  --row-edge-hover: inset 0 0 0 1px oklch(1 0 0 / 0.3);
  --msg-bg: transparent;
  --msg-edge: inset 0 0 0 1px oklch(1 0 0 / 0.08);
  --msg-edge-hover: inset 0 0 0 1px oklch(1 0 0 / 0.25);
  --msg-open-bg: oklch(0.185 0.03 285 / 0.9);
  --msg-open-edge: inset 0 0 0 1px oklch(1 0 0 / 0.08);
  --chip-bg: transparent;
  --chip-edge: inset 0 0 0 1px oklch(0.80 0.07 225);
  --dash-color: oklch(0.94 0.012 290 / 0.6);
  --dash-edge: inset 0 0 0 1px oklch(1 0 0 / 0.2);
  --add-edge: inset 0 0 0 1px oklch(0.80 0.07 225 / 0.55);
  --add-edge-hover: inset 0 0 0 1px oklch(0.80 0.07 225);
  --active-glow: 0 0 3px oklch(0.80 0.10 305 / 0.5);
  --title-shadow: none;
  --select-arrow: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23e8e8e4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --hit-bg: oklch(0.80 0.10 305 / 0.3);

  --sig-done: oklch(0.80 0.10 305);
  --sig-attention: oklch(0.85 0.12 85);
  --sig-answer: oklch(0.96 0.01 290);
  --sig-working: oklch(0.80 0.07 225);
  --sig-dispatch: oklch(0.8 0.11 50);
  --sig-watchdog: oklch(0.78 0.11 305);

  /* ── Dock button states ── */
  --nav-icon: oklch(0.94 0.012 290 / 0.6);
  --nav-sleep-icon: oklch(0.94 0.012 290);
  --nav-sleep-glow-1: transparent;
  --nav-sleep-glow-2: transparent;
  --nav-sleep-strip-core: oklch(0.80 0.07 225 / 0.4);
  --nav-sleep-strip-edge: oklch(0.80 0.07 225 / 0.4);
  --nav-sleep-strip-glow-1: transparent;
  --nav-sleep-strip-glow-2: transparent;
  --nav-sleep-strip-opacity: 1;
  --nav-active-icon: oklch(0.80 0.10 305);
  --nav-active-glow-1: oklch(0.80 0.10 305 / 0.5);
  --nav-active-glow-2: transparent;
  --nav-wash: oklch(0.80 0.10 305 / 0.08);
  --nav-shade-a: transparent;
  --nav-shade-b: transparent;
  --nav-shade-c: transparent;
  --nav-hover-glow-1: transparent;
  --nav-hover-glow-2: transparent;
  --lane-bg: oklch(0.80 0.10 305);
  --lane-shadow: 2px 0 6px oklch(0.80 0.10 305 / 0.5);
  --lane-shadow-travel: 2px 0 6px oklch(0.80 0.10 305 / 0.5);

  /* ── Tooltips and badges ── */
  --neon-bg: oklch(0.27 0.035 285);
  --neon-core: oklch(0.94 0.012 290);
  --neon-light: transparent;
  --neon-glow: transparent;
  --badge-core: oklch(0.80 0.10 305);
  --badge-glow: transparent;

  /* ── Terminal: dark in every skin, so programs' colours stay readable ── */

  /* ── Static tokens ── */
  --bar-bg: oklch(0.12 0.03 270);
  --bar-border: oklch(1 0 0 / 0.1);

  --notif-info-bg: oklch(0.27 0.035 285);
  --notif-info-border: oklch(1 0 0 / 0.2);
  --notif-info-text: oklch(0.94 0.012 290);
  --notif-ok-bg: oklch(0.27 0.035 285);
  --notif-ok-border: oklch(1 0 0 / 0.2);
  --notif-ok-text: oklch(0.82 0.13 155);
  --notif-err-bg: oklch(0.27 0.035 285);
  --notif-err-border: oklch(0.72 0.16 25);
  --notif-err-text: oklch(0.72 0.16 25);

  --btn-hover: oklch(1 0 0 / 0.08);
  --btn-active: oklch(1 0 0 / 0.14);

  --neon-edge: oklch(1 0 0 / 0.12);
  --neon-shadow: 0 8px 20px oklch(0 0 0 / 0.4);
  --badge-shadow: none;

  --tip-bg: var(--neon-bg);
  --tip-text: var(--neon-core);

  --item-hover: oklch(1 0 0 / 0.06);
  --item-active: oklch(0.80 0.10 305 / 0.1);
  --item-border: oklch(1 0 0 / 0.12);

  --badge-bg: oklch(0.80 0.10 305);
  --badge-text: oklch(0.18 0.04 290);

  --bg: oklch(0.12 0.03 270);
  --text: oklch(0.94 0.012 290);
  --text-muted: oklch(0.94 0.012 290 / 0.6);
}
