/* Палитра тем. Подключается на всех страницах приложения. */
:root, [data-theme="light"] {
    --ink: #101828; --muted: #667085; --line: #e4e7ec; --soft: #f5f7fb;
    --accent: #2f5bea; --accent-dark: #1f45c4; --accent-soft: #eef3ff;
    --neg: #d64545; --pos: #1e8e5a; --warn: #b54708;
    --card: #ffffff; --bg: #eef1f7;
    --field: #fcfcfe; --hover: #f7f9fd;
    --neg-bg: #fdeeee; --pos-bg: #eefaf3; --warn-bg: #fffaeb;
    --muted-bg: #f2f4f8; --chip-bg: #ffffff;
    --shadow: 0 18px 40px -24px rgba(16, 24, 40, .35);
    --header-1: #3f6cf0; --header-2: #123a8f;
    --board-bg: #eef1f7; --col-bg: #f4f6fb; --col-line: #e4e7ec;
    --st-new: #475467; --st-added: #1f45c4; --st-offer: #8a5300;
    --st-work: #5b21b6; --st-client: #166b45; --st-refused: #b42318;
    --tag-gis-bg: #e3f6ec; --tag-gis-fg: #126b45;
    --tag-google-bg: #fdeaea; --tag-google-fg: #b42318;
    --tag-zoon-bg: #e4f3fa; --tag-zoon-fg: #0b5a78;
    --tag-yandex-bg: #feecec; --tag-yandex-fg: #9b1c1c;
    --tag-flamp-bg: #eee9ff; --tag-flamp-fg: #4c1d95;
    --tag-yell-bg: #fdf4dc; --tag-yell-fg: #7a5300;
  }
  [data-theme="dark"] {
    --ink: #e7ecf5; --muted: #8b98b0; --line: #26314a; --soft: #151c2c;
    --accent: #5b8cff; --accent-dark: #9db8ff; --accent-soft: #1b2740;
    --neg: #ff7a7a; --pos: #4ecf8a; --warn: #f0b34a;
    --card: #131a29; --bg: #0b0f19;
    --field: #0f1520; --hover: #1a2233;
    --neg-bg: #33202a; --pos-bg: #142a24; --warn-bg: #332a17;
    --muted-bg: #1c2436; --chip-bg: #1a2233;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .75);
    --header-1: #1e3a8a; --header-2: #0b1c3d;
    --board-bg: #0b0f19; --col-bg: #111827; --col-line: #222c42;
    --st-new: #9aa7bd; --st-added: #7ba4ff; --st-offer: #f0b34a;
    --st-work: #b794ff; --st-client: #4ecf8a; --st-refused: #ff8f8f;
    --tag-gis-bg: #0e3a2b; --tag-gis-fg: #4ecf8a;
    --tag-google-bg: #3a1b1b; --tag-google-fg: #ff8f8f;
    --tag-zoon-bg: #0f3346; --tag-zoon-fg: #56c4e8;
    --tag-yandex-bg: #3a1010; --tag-yandex-fg: #ff9b9b;
    --tag-flamp-bg: #2a2340; --tag-flamp-fg: #b39dff;
    --tag-yell-bg: #3a2f10; --tag-yell-fg: #e8c76a;
  }
html[data-theme="dark"] { color-scheme: dark; }

/* Переключатель темы в шапке */
.theme-btn { display: inline-flex; align-items: center; gap: 7px; width: auto; margin: 0;
  padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.14); color: #ffffff; font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; box-shadow: none; }
.theme-btn:hover { background: rgba(255,255,255,.26); box-shadow: none; }
