/* Canvas Pilot theme layer. Imported last so every public, account, and
   coursework surface shares the same explicit palette. */
:root,
:root[data-theme="daylight"] {
  color-scheme: light;
  --canvas-bg: #ffffff;
  --canvas-bg-raised: #f7f8fa;
  --canvas-surface: #f1f3f6;
  --canvas-surface-strong: #e8ecf2;
  --canvas-border: #d7dee8;
  --canvas-border-subtle: #e9edf2;
  --canvas-control-border: #98a2b3;
  --canvas-text: #101828;
  --canvas-text-muted: #667085;
  --canvas-blue: #3154e8;
  --canvas-green: #07966f;
  --canvas-red: #d92d20;
  --canvas-purple: #7a5af8;
  --canvas-accent: #3154e8;
  --focus: #3154e8;
  --theme-halo: #ffffff;
  --theme-topbar: #ffffff;
  --theme-rail: #f7f8fa;
  --theme-workspace-flat: #ffffff;
  --theme-panel: #f7f8fa;
  --theme-on-accent: #ffffff;
  --theme-overlay: rgba(16, 24, 40, .34);
  --theme-shadow: 0 18px 45px rgba(16, 24, 40, .09);
  --theme-shadow-soft: 0 2px 10px rgba(16, 24, 40, .05);
  background: var(--canvas-bg);
  color: var(--canvas-text);
}

:root[data-theme="obsidian"] {
  color-scheme: dark;
  --canvas-bg: #090b0e;
  --canvas-bg-raised: #111419;
  --canvas-surface: #171b20;
  --canvas-surface-strong: #22272d;
  --canvas-border: #343b43;
  --canvas-border-subtle: #252a30;
  --canvas-text: #f5f6f7;
  --canvas-text-muted: #aeb5bf;
  --canvas-blue: #91bdf5;
  --canvas-green: #75d8ad;
  --canvas-red: #ff8b80;
  --canvas-purple: #baa2ef;
  --theme-halo: #1d2427;
  --theme-topbar: #0d0f12;
  --theme-rail: #0b0d10;
  --theme-workspace-flat: #10151a;
  --theme-panel: #171b20;
  --theme-on-accent: #071716;
  --theme-overlay: rgba(2, 6, 10, .72);
  --theme-shadow: 0 22px 58px rgba(0, 0, 0, .4);
  --theme-shadow-soft: 0 8px 28px rgba(0, 0, 0, .28);
  --theme-workspace-top: #121920;
  --theme-workspace-bottom: #0a0e12;
  --theme-module-surface: #171d23;
  --theme-module-surface-strong: #1d252d;
  --theme-module-body: #10171d;
  --theme-module-shadow: rgba(0, 0, 0, .24);
}

:root[data-theme="midnight"] {
  color-scheme: dark;
  --canvas-bg: #06111c;
  --canvas-bg-raised: #0a1724;
  --canvas-surface: #0f1e2d;
  --canvas-surface-strong: #172b3d;
  --canvas-border: #30485e;
  --canvas-border-subtle: #1c3043;
  --canvas-text: #f4f7fa;
  --canvas-text-muted: #a9bacc;
  --canvas-blue: #91bdf5;
  --canvas-green: #75d8ad;
  --canvas-red: #ff8b80;
  --canvas-purple: #baa2ef;
  --theme-halo: #18324c;
  --theme-topbar: #07121e;
  --theme-rail: #07121e;
  --theme-workspace-flat: #091723;
  --theme-panel: #102132;
  --theme-on-accent: #071716;
  --theme-overlay: rgba(2, 8, 15, .74);
  --theme-shadow: 0 22px 58px rgba(0, 0, 0, .42);
  --theme-shadow-soft: 0 8px 28px rgba(0, 0, 0, .3);
  --theme-workspace-top: #0c1b28;
  --theme-workspace-bottom: #06101a;
  --theme-module-surface: #102230;
  --theme-module-surface-strong: #172c3b;
  --theme-module-body: #091824;
  --theme-module-shadow: rgba(0, 0, 0, .28);
}

:root[data-theme="soft-dark"] {
  color-scheme: dark;
  --canvas-bg: #151412;
  --canvas-bg-raised: #1b1a18;
  --canvas-surface: #25231f;
  --canvas-surface-strong: #302d28;
  --canvas-border: #47423a;
  --canvas-border-subtle: #302d28;
  --canvas-text: #f4f1eb;
  --canvas-text-muted: #bbb4a9;
  --canvas-blue: #9cc5f0;
  --canvas-green: #7bd3aa;
  --canvas-red: #ef9184;
  --canvas-purple: #c0aaed;
  --theme-halo: #302922;
  --theme-topbar: #181613;
  --theme-rail: #171512;
  --theme-workspace-flat: #1b1916;
  --theme-panel: #24211e;
  --theme-on-accent: #17120a;
  --theme-overlay: rgba(10, 8, 5, .72);
  --theme-shadow: 0 22px 58px rgba(0, 0, 0, .38);
  --theme-shadow-soft: 0 8px 28px rgba(0, 0, 0, .28);
  --theme-workspace-top: #211e1a;
  --theme-workspace-bottom: #151310;
  --theme-module-surface: #26231f;
  --theme-module-surface-strong: #302c26;
  --theme-module-body: #1a1815;
  --theme-module-shadow: rgba(0, 0, 0, .24);
}

:root[data-accent="sea-glass"] { --canvas-accent: #7c8cff; --focus: #9aa6ff; }
:root[data-accent="amber"] { --canvas-accent: #e8b765; --focus: #f2cf94; }
:root[data-accent="ice-blue"] { --canvas-accent: #91bdf5; --focus: #b4d4fa; }
:root[data-accent="teal"] { --canvas-accent: #62d2c7; --focus: #8de0d8; }
:root[data-accent="green"] { --canvas-accent: #7bd9a4; --focus: #a2e8bf; }
:root[data-accent="violet"] { --canvas-accent: #baa2ef; --focus: #d4c4fa; }
:root[data-accent="pink"] { --canvas-accent: #f08ab5; --focus: #ffb3d0; }
:root[data-theme="daylight"][data-accent="sea-glass"] { --canvas-accent: #3154e8; --focus: #3154e8; }
:root[data-theme="daylight"][data-accent="amber"] { --canvas-accent: #a86508; --focus: #a86508; }
:root[data-theme="daylight"][data-accent="ice-blue"] { --canvas-accent: #2878d4; --focus: #2878d4; }
:root[data-theme="daylight"][data-accent="teal"] { --canvas-accent: #0a746e; --focus: #0a746e; }
:root[data-theme="daylight"][data-accent="green"] { --canvas-accent: #197447; --focus: #197447; }
:root[data-theme="daylight"][data-accent="violet"] { --canvas-accent: #6f4bd8; --focus: #6f4bd8; }
:root[data-theme="daylight"][data-accent="pink"] { --canvas-accent: #b42363; --focus: #b42363; }
