/* Generált fájl — ne szerkeszd kézzel. Forrás: src/design/tokens.json, parancs: npm run build:tokens (ADR-0012). */

:root {
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fs-2xs: 0.625rem;
  --fs-xs: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.4rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-0-5: 0.125rem;
  --space-1-5: 0.375rem;
  --space-2-5: 0.625rem;
  --space-3-5: 0.875rem;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --brand-primary: var(--accent);
  --brand-secondary: var(--accent);
}

html[data-theme="dark"],
html:not([data-theme]) {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-elev: #111821;
  --surf: #141c27;
  --surf2: #1a2432;
  --surf3: #223041;
  --line: #2a3648;
  --line2: #3a4a60;
  --line3: #4a5d78;
  --text: #e8eef5;
  --muted: #93a0b3;
  --dim: #6b7a8f;
  --accent: #2ec4a0;
  --accent-dim: rgba(46, 196, 160, 0.14);
  --accent-ink: #04221a;
  --warn: #e8b86d;
  --warn-strong: #c9923a;
  --warn-ink: #1f1608;
  --warn-dim: rgba(232, 184, 109, 0.16);
  --danger: #f07167;
  --danger-dim: rgba(240, 113, 103, 0.16);
  --chart-todo: #8aa0c0;
  --chart-backlog: #4d627a;
  --chart-cancelled: #f07167;
  --status-done: #5fd983;
  --status-done-fill: #123321;
  --status-next: #f0a93d;
  --status-next-fill: #3a2a0e;
  --status-later: #8ca0ee;
  --status-later-fill: #1b213f;
  --status-off: #6a7580;
  --status-off-fill: #171c22;
  --status-planned: #4d627a;
  --status-gap: #f07167;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --drawer-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  --glow-a: rgba(46, 196, 160, 0.07);
  --glow-b: rgba(61, 87, 176, 0.06);
  --mark-from: #ffffff;
  --sidebar-grad-top: #121a24;
  --sidebar-grad-bot: #0e151e;
  --scrim: rgba(4, 8, 12, 0.55);
  --login-glow: rgba(46, 196, 160, 0.18);
  --card-bg: rgba(20, 28, 39, 0.92);
  --panel-bg: rgba(20, 28, 39, 0.88);
  --topbar-bg: rgba(17, 24, 33, 0.92);
  --form-error-fg: #ffc2bc;
  --highlight: #2ec4a0;
  --highlight-dim: rgba(46, 196, 160, 0.14);
  --on-accent: #04221a;
  --on-highlight: #04221a;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f6;
  --bg-elev: #ffffff;
  --surf: #ffffff;
  --surf2: #f3f6f9;
  --surf3: #e7edf3;
  --line: #cfd8e3;
  --line2: #b4c0cf;
  --line3: #4a5d78;
  --text: #121820;
  --muted: #4f5d6e;
  --dim: #6a7889;
  --accent: #0d8f74;
  --accent-dim: rgba(13, 143, 116, 0.12);
  --accent-ink: #ffffff;
  --warn: #c9842a;
  --warn-strong: #c9923a;
  --warn-ink: #1f1608;
  --warn-dim: rgba(201, 132, 42, 0.14);
  --danger: #c94b42;
  --danger-dim: rgba(201, 75, 66, 0.12);
  --chart-todo: #5c7394;
  --chart-backlog: #8a9bb0;
  --chart-cancelled: #c94b42;
  --status-done: #2e9e56;
  --status-done-fill: #dff3e4;
  --status-next: #b0740a;
  --status-next-fill: #fbebd2;
  --status-later: #3d57b0;
  --status-later-fill: #e4e8fa;
  --status-off: #6d7885;
  --status-off-fill: #e9ecef;
  --status-planned: #8a9bb0;
  --status-gap: #c94b42;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 28px rgba(16, 24, 32, 0.08);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --drawer-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  --glow-a: rgba(13, 143, 116, 0.08);
  --glow-b: rgba(40, 80, 140, 0.05);
  --mark-from: #121820;
  --sidebar-grad-top: #ffffff;
  --sidebar-grad-bot: #f5f8fb;
  --scrim: rgba(16, 24, 32, 0.35);
  --login-glow: rgba(13, 143, 116, 0.14);
  --card-bg: rgba(255, 255, 255, 0.96);
  --panel-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --form-error-fg: #8f2e28;
  --highlight: #0d8f74;
  --highlight-dim: rgba(13, 143, 116, 0.12);
  --on-accent: #ffffff;
  --on-highlight: #ffffff;
  --shadow-soft: 0 8px 24px rgba(16, 24, 32, 0.08);
}

/* Mindig sötét részfa (pl. a 3D-jelenet), a Portál témájától függetlenül. */
.theme-dark {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-elev: #111821;
  --surf: #141c27;
  --surf2: #1a2432;
  --surf3: #223041;
  --line: #2a3648;
  --line2: #3a4a60;
  --line3: #4a5d78;
  --text: #e8eef5;
  --muted: #93a0b3;
  --dim: #6b7a8f;
  --accent: #2ec4a0;
  --accent-dim: rgba(46, 196, 160, 0.14);
  --accent-ink: #04221a;
  --warn: #e8b86d;
  --warn-strong: #c9923a;
  --warn-ink: #1f1608;
  --warn-dim: rgba(232, 184, 109, 0.16);
  --danger: #f07167;
  --danger-dim: rgba(240, 113, 103, 0.16);
  --chart-todo: #8aa0c0;
  --chart-backlog: #4d627a;
  --chart-cancelled: #f07167;
  --status-done: #5fd983;
  --status-done-fill: #123321;
  --status-next: #f0a93d;
  --status-next-fill: #3a2a0e;
  --status-later: #8ca0ee;
  --status-later-fill: #1b213f;
  --status-off: #6a7580;
  --status-off-fill: #171c22;
  --status-planned: #4d627a;
  --status-gap: #f07167;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --drawer-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  --glow-a: rgba(46, 196, 160, 0.07);
  --glow-b: rgba(61, 87, 176, 0.06);
  --mark-from: #ffffff;
  --sidebar-grad-top: #121a24;
  --sidebar-grad-bot: #0e151e;
  --scrim: rgba(4, 8, 12, 0.55);
  --login-glow: rgba(46, 196, 160, 0.18);
  --card-bg: rgba(20, 28, 39, 0.92);
  --panel-bg: rgba(20, 28, 39, 0.88);
  --topbar-bg: rgba(17, 24, 33, 0.92);
  --form-error-fg: #ffc2bc;
  --highlight: #2ec4a0;
  --highlight-dim: rgba(46, 196, 160, 0.14);
  --on-accent: #04221a;
  --on-highlight: #04221a;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
}
