/* PhosphorDB design tokens. Mirrors crates/phosphor-app/src/theme.rs (Theme::dark / Theme::light),
   same names as Theme::tokens(). Do not edit by hand: the Rust test `theme_site_tokens_css_matches_the_app`
   fails when a value drifts. Marketing-only values belong in site.css. */

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0d0b;
  --panel: #0e0d0b;
  --panel2: #15140f;
  --raised: #1c1a15;
  --line: rgba(236, 230, 218, 0.09);
  --line2: rgba(236, 230, 218, 0.18);
  --text: #ece6da;
  --dim: #a39d90;
  --faint: #6b665c;
  --accent: #c8f56a;
  --onAccent: #141a05;
  --sel: rgba(200, 245, 106, 0.06);
  --ins: #8fe388;
  --upd: #f2b35b;
  --del: #ef6b5b;
  --read: #8cb4f0;
  --insf: rgba(200, 245, 106, 0.2);
  --updf: rgba(242, 179, 91, 0.32);
  --delt: rgba(239, 107, 91, 0.12);
  --addbg: rgba(143, 227, 136, 0.1);
  --kw: #c8f56a;
  --str: #e8c99a;
  --num: #f2b35b;
  --fn: #8cb4f0;
  --l1: #b9a7f0;
  --l2: #7fc8c2;
  --l3: #e8c99a;
  --l4: #f0a3c0;
  --l5: #a39d90;
  --match: rgba(200, 245, 106, 0.18);
  --matchCur: rgba(200, 245, 106, 0.38);
  --editSel: rgba(140, 180, 240, 0.28);
  --shadow-sheet: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-record-card: 0 30px 80px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3efe6;
  --panel: #f3efe6;
  --panel2: #ebe6da;
  --raised: #fffdf8;
  --line: rgba(26, 24, 20, 0.1);
  --line2: rgba(26, 24, 20, 0.2);
  --text: #1a1814;
  --dim: #5e584d;
  --faint: #8f897a;
  --accent: #4d7c0f;
  --onAccent: #f7fbe9;
  --sel: rgba(77, 124, 15, 0.08);
  --ins: #2f7d32;
  --upd: #b45309;
  --del: #b91c1c;
  --read: #1d4ed8;
  --insf: rgba(101, 163, 13, 0.24);
  --updf: rgba(217, 119, 6, 0.24);
  --delt: rgba(185, 28, 28, 0.08);
  --addbg: rgba(47, 125, 50, 0.1);
  --kw: #4d7c0f;
  --str: #92400e;
  --num: #b45309;
  --fn: #1d4ed8;
  --l1: #6d4fc9;
  --l2: #0f766e;
  --l3: #92400e;
  --l4: #be185d;
  --l5: #5e584d;
  --match: rgba(77, 124, 15, 0.18);
  --matchCur: rgba(77, 124, 15, 0.34);
  --editSel: rgba(29, 78, 216, 0.18);
  --shadow-sheet: 0 30px 80px rgba(26, 24, 20, 0.25);
  --shadow-record-card: 0 30px 80px rgba(26, 24, 20, 0.16);
}

/* No JavaScript (or before theme.js runs): dark by default ... */
:root:not([data-theme]) {
  color-scheme: dark;
  --bg: #0e0d0b;
  --panel: #0e0d0b;
  --panel2: #15140f;
  --raised: #1c1a15;
  --line: rgba(236, 230, 218, 0.09);
  --line2: rgba(236, 230, 218, 0.18);
  --text: #ece6da;
  --dim: #a39d90;
  --faint: #6b665c;
  --accent: #c8f56a;
  --onAccent: #141a05;
  --sel: rgba(200, 245, 106, 0.06);
  --ins: #8fe388;
  --upd: #f2b35b;
  --del: #ef6b5b;
  --read: #8cb4f0;
  --insf: rgba(200, 245, 106, 0.2);
  --updf: rgba(242, 179, 91, 0.32);
  --delt: rgba(239, 107, 91, 0.12);
  --addbg: rgba(143, 227, 136, 0.1);
  --kw: #c8f56a;
  --str: #e8c99a;
  --num: #f2b35b;
  --fn: #8cb4f0;
  --l1: #b9a7f0;
  --l2: #7fc8c2;
  --l3: #e8c99a;
  --l4: #f0a3c0;
  --l5: #a39d90;
  --match: rgba(200, 245, 106, 0.18);
  --matchCur: rgba(200, 245, 106, 0.38);
  --editSel: rgba(140, 180, 240, 0.28);
  --shadow-sheet: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-record-card: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ... and light when the system asks for it. Same values as the light block above. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f3efe6;
    --panel: #f3efe6;
    --panel2: #ebe6da;
    --raised: #fffdf8;
    --line: rgba(26, 24, 20, 0.1);
    --line2: rgba(26, 24, 20, 0.2);
    --text: #1a1814;
    --dim: #5e584d;
    --faint: #8f897a;
    --accent: #4d7c0f;
    --onAccent: #f7fbe9;
    --sel: rgba(77, 124, 15, 0.08);
    --ins: #2f7d32;
    --upd: #b45309;
    --del: #b91c1c;
    --read: #1d4ed8;
    --insf: rgba(101, 163, 13, 0.24);
    --updf: rgba(217, 119, 6, 0.24);
    --delt: rgba(185, 28, 28, 0.08);
    --addbg: rgba(47, 125, 50, 0.1);
    --kw: #4d7c0f;
    --str: #92400e;
    --num: #b45309;
    --fn: #1d4ed8;
    --l1: #6d4fc9;
    --l2: #0f766e;
    --l3: #92400e;
    --l4: #be185d;
    --l5: #5e584d;
    --match: rgba(77, 124, 15, 0.18);
    --matchCur: rgba(77, 124, 15, 0.34);
    --editSel: rgba(29, 78, 216, 0.18);
    --shadow-sheet: 0 30px 80px rgba(26, 24, 20, 0.25);
    --shadow-record-card: 0 30px 80px rgba(26, 24, 20, 0.16);
  }
}
