/* Turnaround color schemes. Tungsten (amber on charcoal) is the default and needs no overrides.
   html[data-theme] is set by /app/theme.js before the page paints. Loaded last on every app page. */

html[data-theme="bluehour"]{
  --warn:#6cc6ff; --warn-bg:#13283a; --warn-soft:#13283a;
  --bg:#0c1016; --surface:#121820; --surface2:#18202a; --sunken:#18202a; --surface3:#1e2834; --draft-bg:#1b2430;
  --line:#233040; --line2:#1a2430; --ink:#e2e9f0; --ink2:#a9b6c4; --muted:#8593a3;
  --key:#6cc6ff; --amber:#6cc6ff; --accent:#6cc6ff; --key-rgb:108,198,255; --dim:#2c4f66; --key-soft:#13283a;
}
html[data-theme="phosphor"]{
  --warn:#4be08a; --warn-bg:#12261a; --warn-soft:#12261a;
  --bg:#0b0f0d; --surface:#111714; --surface2:#17201b; --sunken:#17201b; --surface3:#1c2721; --draft-bg:#18211c;
  --line:#22302a; --line2:#1a241f; --ink:#dde7e1; --ink2:#a8b8ae; --muted:#82948a;
  --key:#4be08a; --amber:#4be08a; --accent:#4be08a; --key-rgb:75,224,138; --dim:#2a5a3d; --key-soft:#12261a;
}
html[data-theme="magenta"]{
  --warn:#ff6bb3; --warn-bg:#2b1522; --warn-soft:#2b1522;
  --bg:#120f14; --surface:#19151c; --surface2:#211b25; --sunken:#211b25; --surface3:#29212e; --draft-bg:#231c27;
  --line:#2e2633; --line2:#241e29; --ink:#ece3ee; --ink2:#bcaec0; --muted:#9a8c9f;
  --key:#ff6bb3; --amber:#ff6bb3; --accent:#ff6bb3; --key-rgb:255,107,179; --dim:#6a2f4b; --key-soft:#2b1522;
}
html[data-theme="tealorange"]{
  --warn:#ff8a3d; --warn-bg:#2b1a0e; --warn-soft:#2b1a0e;
  --bg:#0b1416; --surface:#102024; --surface2:#15292e; --sunken:#15292e; --surface3:#1a3137; --draft-bg:#16292d;
  --line:#1f383e; --line2:#182c31; --ink:#e0ecec; --ink2:#a9c0c1; --muted:#85a0a2;
  --key:#ff8a3d; --amber:#ff8a3d; --accent:#ff8a3d; --key-rgb:255,138,61; --dim:#6b3a1c; --key-soft:#2b1a0e;
}
html[data-theme="oled"]{
  --warn:#f2f2f2; --warn-bg:#1c1c1c; --warn-soft:#1c1c1c;
  --bg:#000; --surface:#0b0b0b; --surface2:#141414; --sunken:#141414; --surface3:#1b1b1b; --draft-bg:#171717;
  --line:#232323; --line2:#1a1a1a; --ink:#e8e8e8; --ink2:#b4b4b4; --muted:#8a8a8a;
  --key:#f2f2f2; --amber:#f2f2f2; --accent:#f2f2f2; --key-rgb:242,242,242; --dim:#555; --key-soft:#1c1c1c;
}
html[data-theme="darkroom"]{
  --warn:#ff5a4e; --warn-bg:#2b1311; --warn-soft:#2b1311;
  --bg:#0f0a0a; --surface:#170f0f; --surface2:#1f1414; --sunken:#1f1414; --surface3:#271919; --draft-bg:#211616;
  --line:#2e1e1e; --line2:#241818; --ink:#f0dcdc; --ink2:#c9adad; --muted:#a08585;
  --key:#ff5a4e; --amber:#ff5a4e; --accent:#ff5a4e; --key-rgb:255,90,78; --dim:#6b2a25; --key-soft:#2b1311;
}

/* Daylight: a light mode. The timecode monitors stay black, like real monitors. */
html[data-theme="daylight"]{
  color-scheme:light;
  --bg:#f3f2ee; --surface:#ffffff; --surface2:#f1f0ec; --sunken:#f1f0ec; --surface3:#e9e8e3; --draft-bg:#ebe9e3;
  --line:#dcdad3; --line2:#e8e6e0; --ink:#1b1d21; --ink2:#3d4249; --muted:#6b7178;
  --key:#b86a00; --amber:#b86a00; --accent:#b86a00; --key-rgb:184,106,0; --dim:#d9b98a; --key-soft:#fbeedb;
  --ok:#1f8a43; --ok-soft:#e1f4e7; --ok-bg:#e1f4e7; --ok-line:#b5dfc3;
  --warn:#b4580a; --warn-soft:#fdecd9; --warn-bg:#fdecd9;
  --bad-soft:#fde4e2; --blue:#2f6fd0; --blue-soft:#e3eefb; --blue-ink:#1f5aa8; --moon:#6b7787; --gold:#d98a1c;
  --slate:#111315; --slate-ink:#e8ebef;
}
html[data-theme="daylight"] body{background:var(--bg)}
/* inside the black monitors, put the dark palette back */
html[data-theme="daylight"] :is(.hero,.mon,.out,.glass,#boot){
  --ink:#e8ebef; --ink2:#aab2bc; --muted:#9aa3ad; --line:#2a2e34; --line2:#1f2328; --surface:#16191d; --surface2:#1d2126; --surface3:#22262c;
  --key:#ffb347; --amber:#ffb347; --accent:#ffb347; --key-rgb:255,179,71; --dim:#6b5634; --key-soft:#2a2114; --key-ink:#101215;
  --ok:#34c759; --blue:#5aa9ff; --gold:#ffb347;
  color:var(--ink);
}
html[data-theme="daylight"] input, html[data-theme="daylight"] select, html[data-theme="daylight"] textarea{color:var(--ink)}
html[data-theme="daylight"] ::placeholder{color:#9aa0a6}
/* calendar & holds in daylight */
html[data-theme="daylight"] .cal button.h1, html[data-theme="daylight"] .lg-h1{background:#dbe8fb;border-color:#3b7bd0!important;color:#163c73}
html[data-theme="daylight"] .cal button.unavail{background:repeating-linear-gradient(135deg,#fbe3e1 0 6px,#f6d0cc 6px 12px);border-color:#e3a59e;color:#9b2f25}
html[data-theme="daylight"] .lg-un{background:repeating-linear-gradient(135deg,#fbe3e1 0 4px,#f6d0cc 4px 8px)}
/* Blue hour: holds go violet so they don't blend with booked days */
html[data-theme="bluehour"] .cal button.h1, html[data-theme="bluehour"] .lg-h1{background:#3a2d73;border-color:#8b74e8!important}
html[data-theme="bluehour"] .cal button.h2, html[data-theme="bluehour"] .lg-h2{border-color:#8b74e8!important}
