/* Токены оформления. Если у проекта есть дизайн-система — замените значения здесь (references/08-ui.md),
   остальной CSS пользуется только переменными. */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --border: #dfe3e8; --border-strong: #c5ccd5;
  --text: #17202b; --text-2: #5a6675; --text-3: #8a95a3;
  --accent: #2f5bd3; --accent-2: #e8eefc; --accent-text: #ffffff;
  --ok: #1f8a4c; --ok-bg: #e6f4ec; --bad: #c8322f; --bad-bg: #fbeaea; --warn: #9a6400; --warn-bg: #fdf3e1;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs: 12px; --fs-s: 13px; --fs-m: 14px; --fs-l: 16px; --fs-xl: 20px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06);
  --touch: 40px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1318; --surface: #161b22; --surface-2: #1d232c; --border: #2a313b; --border-strong: #3a434f;
    --text: #e6eaef; --text-2: #a5afbb; --text-3: #737e8b;
    --accent: #6d93ff; --accent-2: #1c2a4d; --accent-text: #0f1318;
    --ok: #4cc27f; --ok-bg: #12301f; --bad: #ff7a73; --bad-bg: #3a1716; --warn: #f0b354; --warn-bg: #362810;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1318; --surface: #161b22; --surface-2: #1d232c; --border: #2a313b; --border-strong: #3a434f;
  --text: #e6eaef; --text-2: #a5afbb; --text-3: #737e8b;
  --accent: #6d93ff; --accent-2: #1c2a4d; --accent-text: #0f1318;
  --ok: #4cc27f; --ok-bg: #12301f; --bad: #ff7a73; --bad-bg: #3a1716; --warn: #f0b354; --warn-bg: #362810;
}
