/* ===== Erstantwort · design tokens (loaded first in index.html, before style.css) =====
   Colours come from Telegram themeParams (--tg-theme-*), which the SDK writes for the light and dark theme;
   fixed status colours for HOT/WARM/COLD and OK. Components live in style.css / design.css.
   0.8.0: --hint is mixed a quarter towards the text colour, so small grey text passes WCAG AA (4.5:1)
   on white and on the grey page in both themes (Telegram's own #8e8e93 alone gives about 3.3:1). */
:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --bg2: var(--tg-theme-secondary-bg-color, #f0f0f5);
  --sec: var(--tg-theme-section-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #111113);
  --hint: color-mix(in srgb, var(--tg-theme-hint-color, #6d6d72) 75%, var(--tg-theme-text-color, #111113));
  --link: var(--tg-theme-link-color, #2481cc);
  --btn: var(--tg-theme-button-color, #3390ec);
  --btn-text: var(--tg-theme-button-text-color, #ffffff);
  --sep: var(--tg-theme-section-separator-color, rgba(60,60,67,.16));
  --danger: var(--tg-theme-destructive-text-color, #d93a3a);
  --hot: #b4410c; --hot-bg: #ffe9d6; --hot-line: #f97316;
  --warm: #8a5a00; --warm-bg: #fdf0c4; --warm-line: #eab308;
  --cold: #54545c; --cold-bg: #ececf0; --cold-line: #9a9aa6;
  --ok: #1d7f4c; --ok-bg: #dcf5e6;
  --plan: #6d4fc2; --plan-bg: #ebe5fa;
  --btn-soft: color-mix(in srgb, var(--btn) 14%, var(--sec));
  --r: 18px; --r-sm: 12px; --gap: 16px;
  /* Toast: inverted theme colours instead of a fixed #222. */
  --toast-bg: var(--text); --toast-text: var(--bg);
  /* The AI badge: readable on the light and the dark theme. */
  --ai: color-mix(in srgb, var(--btn) 80%, var(--text));
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.04);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
html[data-theme="dark"] {
  --tg-theme-bg-color: #1c1c1e; --tg-theme-secondary-bg-color: #0f0f10; --tg-theme-section-bg-color: #2a2a2d;
  --tg-theme-text-color: #f5f5f7; --tg-theme-hint-color: #9b9ba3; --tg-theme-link-color: #6ab3f3;
  --tg-theme-button-color: #8774e1; --tg-theme-button-text-color: #ffffff;
  --tg-theme-section-separator-color: rgba(255,255,255,.12); --tg-theme-destructive-text-color: #ff6b6b;
  --hot: #ffb27a; --hot-bg: #4a2511; --hot-line: #fb923c;
  --warm: #f5d77a; --warm-bg: #40340f; --warm-line: #eab308;
  --cold: #c9c9d1; --cold-bg: #38383c; --cold-line: #7a7a85;
  --ok: #7fe0a8; --ok-bg: #153d27;
  --plan: #c3b2f5; --plan-bg: #302649;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
}
