/* Echolert: the colors of every page - the side panel, the welcome page and the privacy page - in
   light and dark. A calm "operations console" look: deep navy in dark mode, white and pale blue-grey in light
   mode, cyan / teal accents and a glowing green "active" dot.

   Light or dark: data-theme="light" | "dark" on <html> (lib/theme.js, lib/theme-boot.js). Every color is given
   for both with light-dark() (Chrome 123 and later: the manifest's minimum), which follows the color-scheme set
   here; without data-theme (no saved choice and no script) it follows Windows. Text colors keep at least 4.5:1 on the backgrounds they are used on, in both
   themes (tests/unit.js). */
:root {
  color-scheme: light dark;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Surfaces */
  --bg: light-dark(#f1f5f9, #060a12);
  --bg-glow: light-dark(rgba(8, 145, 178, 0.07), rgba(34, 211, 238, 0.09));
  --panel: light-dark(#ffffff, #0b1220);
  --panel-2: light-dark(#f4f7fb, #0f1828);
  --panel-3: light-dark(#e9eff6, #152036);
  --border: light-dark(#dbe3ed, #1a2638);
  --border-strong: light-dark(#c4d0de, #263752);

  /* Text */
  --text: light-dark(#0b1424, #e7eef8);
  --text-2: light-dark(#253248, #c3cedd);
  --muted: light-dark(#526078, #8e9eb6);

  /* Cyan / teal accent: the waveform, highlights, primary buttons */
  --accent: light-dark(#0891b2, #22d3ee);
  --accent-2: light-dark(#0d9488, #2dd4bf);
  --accent-strong: light-dark(#0e7490, #22d3ee);
  --accent-strong-hover: light-dark(#0b6178, #67e8f9);
  --accent-ink: light-dark(#ffffff, #03222b);
  /* Text in the accent color (labels, the fixed "Notify me when"): at least 4.5:1 on every panel. */
  --accent-text: light-dark(#0e7490, #22d3ee);
  --accent-soft: light-dark(rgba(8, 145, 178, 0.09), rgba(34, 211, 238, 0.1));
  --accent-line: light-dark(rgba(8, 145, 178, 0.32), rgba(34, 211, 238, 0.32));
  --accent-glow: light-dark(rgba(8, 145, 178, 0.2), rgba(34, 211, 238, 0.4));

  /* States */
  --live: light-dark(#16a34a, #34d399);
  --live-ring: light-dark(rgba(22, 163, 74, 0.16), rgba(52, 211, 153, 0.16));
  --live-glow: light-dark(rgba(22, 163, 74, 0.35), rgba(52, 211, 153, 0.6));
  --live-text: light-dark(#137535, #4ade80);
  --link: light-dark(#0e7490, #67e8f9);
  --focus: light-dark(#0891b2, #67e8f9);
  --warn: light-dark(#a1460a, #fbbf24);
  --warn-dot: #f59e0b;
  --warn-bg: light-dark(#fff5e1, #221b0a);
  --warn-line: light-dark(rgba(161, 70, 10, 0.3), rgba(251, 191, 36, 0.28));
  --info-bg: light-dark(#ebf7fb, #0a1a24);
  --live-bg: light-dark(#e9f7ef, #0b2018);
  --error-bg: light-dark(#fdeeee, #2a1216);
  --neutral-bg: light-dark(#eef2f7, #16213a);

  /* Live feed: the "Event detected" box, and the speakers' avatars (white letter on each color). */
  --alert-bg: light-dark(#effafd, #0a1925);
  --alert-border: light-dark(#b6e3ee, #134a5e);
  --av-0: #1d4ed8;
  --av-1: #047857;
  --av-2: #b45309;
  --av-3: #6d28d9;
  --av-4: #be185d;
  --av-5: #0e7490;

  --radius: 12px;
  --shadow: 0 1px 2px light-dark(rgba(15, 23, 42, 0.06), rgba(0, 0, 0, 0.45)),
    0 8px 20px -14px light-dark(rgba(15, 23, 42, 0.28), rgba(0, 0, 0, 0.9));
  --shadow-pop: 0 18px 48px -12px light-dark(rgba(15, 23, 42, 0.35), rgba(0, 0, 0, 0.85));
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
