/* Onorari colour constants (light + dark), the only source of the app's colours.
   Style "A · Ruhig" (2026-11-20): a neutral light-grey page, white cards and fields, one purple accent,
   colour only for actions and status. The style guide is docs/style-guide.md.

   bg = page background · side-bg = sidebar · surface = cards, fields, windows · surface-2 = table heads, quiet areas
   line = borders and dividers · line-strong = field borders, stronger dividers · ink = main text · muted = secondary text
   accent = buttons, links, the current item · accent-soft = its light background · accent-strong = accent text on accent-soft
   logo / logo-dot = the logo's lines and dots (lighter lines in dark mode, so they stay clear on the dark background)
   good/warn/bad = paid / open / overdue and errors · gig = Aufträge · shadow = the soft shadow under cards */

:root{
  --bg:#F6F6F8; --side-bg:#FBFBFC; --surface:#FFFFFF; --surface-2:#FAFAFC; --line:#E7E7EC; --line-strong:#D2D2DA;
  --ink:#18181F; --muted:#646472;
  --accent:#8055B1; --accent-ink:#FFFFFF; --accent-soft:#F1ECF9; --accent-strong:#5E3A92;
  --logo:#8055B1; --logo-dot:#5E3A92;
  --good:#17663D; --good-soft:#E6F4EC;
  --warn:#8A5300; --warn-soft:#FFF2D9;
  --bad:#B42318; --bad-soft:#FDE8E7;
  --gig:#2F5BA8; --gig-soft:#E8EFFB;
  --scrim:rgba(20,20,32,.40);
  --shadow:0 1px 2px rgba(20,20,40,.05);
  --shadow-lg:0 12px 32px rgba(20,20,40,.14), 0 2px 6px rgba(20,20,40,.06);
}

/* dark: follows the system unless the user picked light, or forced via data-theme="dark" */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0F0F14; --side-bg:#121218; --surface:#18181F; --surface-2:#1D1D25; --line:#2A2A34; --line-strong:#3A3A46;
  --ink:#ECECF1; --muted:#A1A1AE;
  --accent:#8055B1; --accent-ink:#FFFFFF; --accent-soft:#2A2140; --accent-strong:#C7AEEA;
  --logo:#A07CD6; --logo-dot:#C7AEEA;
  --good:#5FC48E; --good-soft:#15291E;
  --warn:#E3B562; --warn-soft:#2D2414;
  --bad:#F08A80; --bad-soft:#341C1A;
  --gig:#8DB0F0; --gig-soft:#1A2438;
  --scrim:rgba(0,0,0,.66);
  --shadow:0 1px 2px rgba(0,0,0,.30);
  --shadow-lg:0 16px 40px rgba(0,0,0,.50);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F0F14; --side-bg:#121218; --surface:#18181F; --surface-2:#1D1D25; --line:#2A2A34; --line-strong:#3A3A46;
  --ink:#ECECF1; --muted:#A1A1AE;
  --accent:#8055B1; --accent-ink:#FFFFFF; --accent-soft:#2A2140; --accent-strong:#C7AEEA;
  --logo:#A07CD6; --logo-dot:#C7AEEA;
  --good:#5FC48E; --good-soft:#15291E;
  --warn:#E3B562; --warn-soft:#2D2414;
  --bad:#F08A80; --bad-soft:#341C1A;
  --gig:#8DB0F0; --gig-soft:#1A2438;
  --scrim:rgba(0,0,0,.66);
  --shadow:0 1px 2px rgba(0,0,0,.30);
  --shadow-lg:0 16px 40px rgba(0,0,0,.50);
  color-scheme:dark}
