/* Nezabudnite design tokens, generated from tokens.json (manual v0.7, 1. 10. 2026).
   Do not edit by hand: change tokens.json in the manual and regenerate.
   Font URLs are relative to this file; adjust them if the fonts live elsewhere. */

@font-face { font-family: "Figtree"; src: url("fonts/Figtree-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #F4F8FD;
  --surface: #FFFFFF;
  --surface-muted: #EAF0F8;
  --border: #DCE5F2;
  --border-strong: #7F91AD;
  --text: #142B4D;
  --text-muted: #4A5D7A;
  --primary: #2A63B8;
  --on-primary: #FFFFFF;
  --primary-soft: #DCE7F5;
  --primary-strong: #1F4F96;
  --focus: var(--primary);
  --due-overdue: #C2410C;
  --on-due-overdue: #FFFFFF;
  --due-today: #F5C842;
  --on-due-today: #142B4D;
  --due-week: #2A63B8;
  --on-due-week: #FFFFFF;
  --due-later: #DCE7F5;
  --on-due-later: #142B4D;
  --due-later-mark: var(--border-strong);
  --done: #4F7F4B;
  --on-done: #FFFFFF;
  --warning: #8A5A00;
  --warning-soft: #FFF4D6;
  --error: #B42318;
  --error-soft: #FDECEA;
  --toast: #142B4D;
  --on-toast: #FFFFFF;
  --toast-action: #F5C842;
  --scrim: rgba(20, 43, 77, 0.45);
  --shadow-card: 0 1px 2px rgba(20, 43, 77, 0.06);
  --shadow-raised: 0 8px 24px rgba(20, 43, 77, 0.18);
}

[data-theme="dark"] {
  --bg: #0E1A2E;
  --surface: #172742;
  --surface-muted: #1E3150;
  --border: #263B5E;
  --border-strong: #5D739A;
  --text: #EAF1FB;
  --text-muted: #9DB0CC;
  --primary: #7FB0F5;
  --on-primary: #0E1A2E;
  --primary-soft: #1E3A63;
  --primary-strong: #A9CBFA;
  --focus: var(--primary);
  --due-overdue: #F28A52;
  --on-due-overdue: #0E1A2E;
  --due-today: #F5C842;
  --on-due-today: #0E1A2E;
  --due-week: #7FB0F5;
  --on-due-week: #0E1A2E;
  --due-later: #2A3F63;
  --on-due-later: #EAF1FB;
  --due-later-mark: var(--border-strong);
  --done: #7CC07A;
  --on-done: #0E1A2E;
  --warning: #F5C842;
  --warning-soft: #3A3218;
  --error: #FF8A80;
  --error-soft: #3A1F22;
  --toast: #EAF1FB;
  --on-toast: #0E1A2E;
  --toast-action: #1F4F96;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Follow the phone's setting when no data-theme is set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1A2E;
    --surface: #172742;
    --surface-muted: #1E3150;
    --border: #263B5E;
    --border-strong: #5D739A;
    --text: #EAF1FB;
    --text-muted: #9DB0CC;
    --primary: #7FB0F5;
    --on-primary: #0E1A2E;
    --primary-soft: #1E3A63;
    --primary-strong: #A9CBFA;
    --focus: var(--primary);
    --due-overdue: #F28A52;
    --on-due-overdue: #0E1A2E;
    --due-today: #F5C842;
    --on-due-today: #0E1A2E;
    --due-week: #7FB0F5;
    --on-due-week: #0E1A2E;
    --due-later: #2A3F63;
    --on-due-later: #EAF1FB;
    --due-later-mark: var(--border-strong);
    --done: #7CC07A;
    --on-done: #0E1A2E;
    --warning: #F5C842;
    --warning-soft: #3A3218;
    --error: #FF8A80;
    --error-soft: #3A1F22;
    --toast: #EAF1FB;
    --on-toast: #0E1A2E;
    --toast-action: #1F4F96;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --touch-target: 48px;
  --appbar-height: 56px;
  --content-max: 600px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --toast-clearance: 128px;
  --opacity-disabled: 0.45;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

.type-display { font-family: var(--font-sans); font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; }
.type-title { font-family: var(--font-sans); font-size: 24px; line-height: 32px; font-weight: 700; }
.type-headline { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.type-task { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.type-body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.type-button { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.type-small { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.type-chip { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 600; }
.type-label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.type-due { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.type-amount { font-family: var(--font-mono); font-size: 16px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.type-code { font-family: var(--font-mono); font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }
.type-countdown { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
