/* Erobella CRM — light / dark theme (David 19 Oct: "i also wanna build a dark mode toggle").
   Every page links this file in <head> right after /theme.js. theme.js sets <html data-theme="light|dark"> before the first paint from
   the user's choice (Light / Dark / System; System follows prefers-color-scheme), so this file only needs the one attribute selector.
   The light values live where they always did — b2c.css (--b2c-*) and the design system's colors_and_type.css (--eb-*); this file
   adds the few tokens the B2B page needed and every dark value. Contrast: body text ≥ 7:1 on cards, grey meta ≥ 4.5:1, each status
   colour ≥ 4.5:1 on its own tint (WCAG AA). */

:root {
  color-scheme: light;
  /* B2B (public/b2b/index.html): tokens that did not exist in the design system */
  --eb-ok: rgb(62,108,40);              /* "Connected", "Converted", live */
  --eb-sel: var(--eb-ink);              /* a selected segment / filter chip, white text on it */
  --eb-knob: #fff;                      /* switch knobs */
  --eb-gold-text: var(--eb-gold-ink);   /* gold text on a translucent gold tint (solid gold keeps --eb-gold-ink) */
}

:root[data-theme="dark"] {
  color-scheme: dark;                   /* native inputs, selects, date pickers and scrollbars go dark too */

  /* ── B2C neutrals (b2c.css) ── */
  --b2c-ink: rgb(236,234,228);
  --b2c-ink-2: rgb(208,205,195);
  --b2c-grey: rgb(160,161,166);
  --b2c-faint: rgb(134,132,124);
  --b2c-dash: rgb(92,90,83);
  --b2c-line: rgb(50,49,45);
  --b2c-line-2: rgb(66,64,59);
  --b2c-divider: rgb(42,41,38);
  --b2c-tile: rgb(36,35,32);
  --b2c-chip: rgb(48,47,43);
  --b2c-field: rgb(38,37,34);
  --b2c-paper: rgb(18,18,16);
  --b2c-card: rgb(28,28,25);
  --b2c-dark: rgb(78,76,68);            /* primary button, selected tab: white text stays readable (8:1) */
  --b2c-nav: rgb(10,10,9);
  --b2c-pink: rgb(236,84,140);
  --b2c-link: rgb(244,114,162);
  --b2c-link-2: rgb(250,152,190);
  --b2c-glass: rgba(28,28,25,0.92);    /* sticky action bars, the inbox day pill */

  /* ── B2C status colours ── */
  --b2c-red: rgb(250,125,125);
  --b2c-red-bg: rgb(66,27,27);
  --b2c-red-line: rgb(112,50,50);
  --b2c-green: rgb(136,202,110);
  --b2c-green-2: rgb(152,214,128);
  --b2c-green-bg: rgb(29,51,29);
  --b2c-green-line: rgb(54,94,48);
  --b2c-amber: rgb(240,172,84);
  --b2c-amber-2: rgb(236,166,88);
  --b2c-amber-bg: rgb(62,43,17);
  --b2c-amber-line: rgb(106,76,34);
  --b2c-blue: rgb(134,170,250);
  --b2c-blue-bg: rgb(27,39,70);

  /* ── B2C one-off colours (var(--b2c-x-<light hex>, <light>) in the pages): light tints → the same hue, dark; text → lightened ── */
--b2c-x-146e96: rgb(130,204,237);   /* light rgb(20,110,150) */
  --b2c-x-15803d: rgb(132,235,171);   /* light rgb(21,128,61) */
  --b2c-x-1d345c: rgb(146,174,221);   /* light rgb(29,52,92) */
  --b2c-x-207850: rgb(142,225,187);   /* light rgb(32,120,80) */
  --b2c-x-285096: rgb(142,172,225);   /* light rgb(40,80,150) */
  --b2c-x-289696: rgb(142,225,225);   /* light rgb(40,150,150) */
  --b2c-x-2a78d6: rgb(135,179,232);   /* light rgb(42,120,214) */
  --b2c-x-334155: rgb(166,180,201);   /* light rgb(51,65,85) */
  --b2c-x-346e2d: rgb(160,214,154);   /* light rgb(52,110,45) */
  --b2c-x-3498db: rgb(134,193,233);   /* light rgb(52,152,219) */
  --b2c-x-4278d2: rgb(140,173,228);   /* light rgb(66,120,210) */
  --b2c-x-462f00: rgb(240,205,120);   /* light rgb(70,47,0): gold-ink text on a pale yellow tint */
  --b2c-x-4aa050: rgb(157,210,161);   /* light rgb(74,160,80) */
  --b2c-x-5b3e96: rgb(173,154,213);   /* light rgb(91,62,150) */
  --b2c-x-6246c8: rgb(162,145,222);   /* light rgb(98,70,200) */
  --b2c-x-643caa: rgb(174,149,218);   /* light rgb(100,60,170) */
  --b2c-x-704800: rgb(237,199,130);   /* light rgb(112,72,0) */
  --b2c-x-7a4206: rgb(237,185,130);   /* light rgb(122,66,6) */
  --b2c-x-82320f: rgb(237,163,130);   /* light rgb(130,50,15) */
  --b2c-x-824600: rgb(237,188,130);   /* light rgb(130,70,0) */
  --b2c-x-825ac8: rgb(174,148,219);   /* light rgb(130,90,200) */
  --b2c-x-8a5c00: rgb(237,201,130);   /* light rgb(138,92,0) */
  --b2c-x-8c1414: rgb(237,130,130);   /* light rgb(140,20,20) */
  --b2c-x-8c1e1e: rgb(230,137,137);   /* light rgb(140,30,30) */
  --b2c-x-8c5f0a: rgb(237,200,130);   /* light rgb(140,95,10) */
  --b2c-x-961446: rgb(237,130,171);   /* light rgb(150,20,70) */
  --b2c-x-96500a: rgb(237,184,130);   /* light rgb(150,80,10) */
  --b2c-x-965a00: rgb(237,194,130);   /* light rgb(150,90,0) */
  --b2c-x-966e0a: rgb(237,207,130);   /* light rgb(150,110,10) */
  --b2c-x-96be82: rgb(176,206,161);   /* light rgb(150,190,130) */
  --b2c-x-a0461e: rgb(232,165,135);   /* light rgb(160,70,30) */
  --b2c-x-a09d94: rgb(193,191,185);   /* light rgb(160,157,148) */
  --b2c-x-a0a096: rgb(192,192,185);   /* light rgb(160,160,150) */
  --b2c-x-a64a06: rgb(237,176,130);   /* light rgb(166,74,6) */
  --b2c-x-aa2020: rgb(232,135,135);   /* light rgb(170,32,32) */
  --b2c-x-aaa8a0: rgb(192,191,185);   /* light rgb(170,168,160) */
  --b2c-x-b01e55: rgb(234,133,171);   /* light rgb(176,30,85) */
  --b2c-x-b05a14: rgb(237,178,130);   /* light rgb(176,90,20) */
  --b2c-x-c82828: rgb(231,136,136);   /* light rgb(200,40,40) */
  --b2c-x-d6d3c8: rgb(84,82,75);   /* light rgb(214,211,200): the chart's baseline */
  --b2c-x-dc7878: rgb(226,142,142);   /* light rgb(220,120,120) */
  --b2c-x-dcf0d4: rgb(42,57,36);   /* light rgb(220,240,212) */
  --b2c-x-dcf8c6: rgb(22,84,66);   /* light rgb(220,248,198) */
  --b2c-x-debe5a: rgb(231,208,136);   /* light rgb(222,190,90) */
  --b2c-x-e2e8f0: rgb(37,42,49);   /* light rgb(226,232,240) */
  --b2c-x-e79628: rgb(237,192,130);   /* light rgb(231,150,40) */
  --b2c-x-e8eefc: rgb(25,33,51);   /* light rgb(232,238,252) */
  --b2c-x-e8f0fc: rgb(25,35,51);   /* light rgb(232,240,252) */
  --b2c-x-e8f4fa: rgb(27,42,49);   /* light rgb(232,244,250) */
  --b2c-x-ece9fc: rgb(29,25,50);   /* light rgb(236,233,252) */
  --b2c-x-eceae4: rgb(47,45,40);   /* light rgb(236,234,228) */
  --b2c-x-edece6: rgb(46,45,39);   /* light rgb(237,236,230) */
  --b2c-x-eff5fd: rgb(23,34,48);   /* light rgb(239,245,253) */
  --b2c-x-f0c8c8: rgb(63,37,37);   /* light rgb(240,200,200) */
  --b2c-x-f0ecfa: rgb(33,27,47);   /* light rgb(240,236,250) */
  --b2c-x-f0eee8: rgb(45,43,37);   /* light rgb(240,238,232) */
  --b2c-x-f0efeb: rgb(43,42,38);   /* light rgb(240,239,235) */
  --b2c-x-f0f8ec: rgb(35,46,30);   /* light rgb(240,248,236) */
  --b2c-x-f1ecfa: rgb(34,27,47);   /* light rgb(241,236,250) */
  --b2c-x-f4bea8: rgb(78,49,37);   /* light rgb(244,190,168) */
  --b2c-x-f5debe: rgb(68,54,34);   /* light rgb(245,222,190) */
  --b2c-x-f5f4f0: rgb(41,39,34);   /* light rgb(245,244,240) */
  --b2c-x-f6f4ef: rgb(14,14,12);   /* light rgb(246,244,239) */
  --b2c-x-fad2e2: rgb(60,28,41);   /* light rgb(250,210,226) */
  --b2c-x-fafdf8: rgb(31,41,25);   /* light rgb(250,253,248) */
  --b2c-x-fcf0f5: rgb(46,25,34);   /* light rgb(252,240,245) */
  --b2c-x-fcfcfa: rgb(36,36,29);   /* light rgb(252,252,250) */
  --b2c-x-fde1e1: rgb(55,24,24);   /* light rgb(253,225,225) */
  --b2c-x-fde4e4: rgb(54,24,24);   /* light rgb(253,228,228) */
  --b2c-x-fdf2f2: rgb(46,23,23);   /* light rgb(253,242,242) */
  --b2c-x-fef6d6: rgb(60,53,24);   /* light rgb(254,246,214) */
  --b2c-x-ffe8d4: rgb(62,41,23);   /* light rgb(255,232,212) */
  --b2c-x-ffecf3: rgb(52,20,32);   /* light rgb(255,236,243) */
  --b2c-x-ffeee6: rgb(54,31,21);   /* light rgb(255,238,230) */
  --b2c-x-fff0f6: rgb(50,19,32);   /* light rgb(255,240,246) */
  --b2c-x-fff1ea: rgb(53,31,20);   /* light rgb(255,241,234) */
  --b2c-x-fff4d6: rgb(61,51,23);   /* light rgb(255,244,214) */
  --b2c-x-fff5dc: rgb(58,48,22);   /* light rgb(255,245,220) */
  --b2c-x-fff6ea: rgb(53,39,20);   /* light rgb(255,246,234) */
  --b2c-x-fff7d6: rgb(61,53,23);   /* light rgb(255,247,214) */
  --b2c-x-fff8fb: rgb(47,18,30);   /* light rgb(255,248,251) */
  --b2c-x-fffbeb: rgb(52,46,20);   /* light rgb(255,251,235) */

  /* ── B2B + login page: the design system's tokens (colors_and_type.css) ── */
  --eb-ink: rgb(236,234,228);
  --eb-ink-2: rgb(244,242,236);
  --eb-ink-3: rgb(202,199,189);
  --eb-ink-4: rgb(160,161,166);
  --eb-mute: rgb(130,128,121);
  --eb-hair: rgb(70,68,62);
  --eb-hair-2: rgb(54,53,48);
  --eb-hair-3: rgb(44,43,39);
  --eb-paper: rgb(18,18,16);
  --eb-paper-2: rgb(34,33,30);
  --eb-paper-3: rgb(42,41,37);
  --eb-card: rgb(28,28,25);
  --eb-invert: rgb(78,76,68);
  --eb-pink-2: rgb(244,114,162);
  --eb-blue: rgb(134,170,250);
  --eb-error: rgb(250,125,125);
  --eb-error-bg: rgb(66,27,27);
  --eb-ok: rgb(140,204,112);
  --eb-sel: rgb(78,76,68);
  --eb-knob: rgb(240,238,232);
  --eb-gold-text: rgb(240,202,96);
  --shadow-xs: 0 1px 2px 0 rgba(0,0,0,0.4);
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px 0 rgba(0,0,0,0.5);
}
:root[data-theme="dark"] body { background: var(--b2c-paper); color: var(--b2c-ink); }
/* the Erobella wordmark glyph is a pink gradient: fine on dark. Images and video are never dimmed. */
