/* Designové tokeny podle DESIGN.md (Veřejná správa eSSL). Výchozí je tmavý režim. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* povrchy */
  --bg: #0b1117;
  --surface: #111827;
  --surface-2: #1f2937;
  --surface-3: #283548;
  --border: #334155;
  --border-strong: #475569;

  /* text */
  --text: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #7c8da3;

  /* akcent */
  --primary: #14b8a6;
  --primary-hover: #0d9488;
  --on-primary: #0b1117;
  --link: #4fdbc8;
  --focus: #14b8a6;

  /* stavy */
  --st-open-fg: #38bdf8;
  --st-open-bg: #0c4a6e;
  --st-done-fg: #34d399;
  --st-done-bg: #064e3b;
  --st-closed-fg: #94a3b8;
  --st-closed-bg: #1e293b;
  --st-destroyed-fg: #f87171;
  --st-destroyed-bg: #7f1d1d;
  --warn-fg: #ffb59e;
  --warn-bg: #5a2a1c;
  --warn: #f38764;
  --danger: #f87171;
  --danger-bg: #7f1d1d;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --ok: #34d399;
  --info: #38bdf8;

  --shadow-overlay: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  --scrim: rgba(3, 7, 12, 0.66);

  /* typografie */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* tvar a rozestupy */
  --r-sm: 0.125rem;
  --r: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --gutter: 1rem;
  --margin: 1.5rem;
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 0.75rem;
  --sp-lg: 1rem;
  --sp-xl: 1.5rem;

  --sidebar-w: 240px;
  --topbar-h: 56px;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border: #cbd5e1;
  --border-strong: #94a3b8;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #5b6b80;

  --primary: #0f766e;
  --primary-hover: #115e59;
  --on-primary: #ffffff;
  --link: #0f766e;
  --focus: #0f766e;

  --st-open-fg: #075985;
  --st-open-bg: #e0f2fe;
  --st-done-fg: #065f46;
  --st-done-bg: #d1fae5;
  --st-closed-fg: #475569;
  --st-closed-bg: #e2e8f0;
  --st-destroyed-fg: #991b1b;
  --st-destroyed-bg: #fee2e2;
  --warn-fg: #9a3412;
  --warn-bg: #ffedd5;
  --warn: #c2410c;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --danger-soft: rgba(185, 28, 28, 0.08);
  --ok: #047857;
  --info: #0369a1;

  --shadow-overlay: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  --scrim: rgba(15, 23, 42, 0.45);
}
