/* Generisano iz tokens.json (build_tokens.py) — ne menjati ručno. */

:root, [data-theme="dark"] {
  --color-bg: #0b0e13;
  --color-surface: #121720;
  --color-surface-2: #1a212c;
  --color-surface-hover: #222a37;
  --color-border: #263040;
  --color-border-input: #5f6d82;
  --color-text: #e6eaf0;
  --color-text-muted: #9aa5b4;
  --color-accent: #2f66e0;
  --color-on-accent: #ffffff;
  --color-accent-text: #79a2ff;
  --color-buy: #2f66e0;
  --color-on-buy: #ffffff;
  --color-buy-text: #79a2ff;
  --color-sell: #c93636;
  --color-on-sell: #ffffff;
  --color-sell-text: #ff7373;
  --color-warning: #e0a526;
  --color-on-warning: #14100a;
  --color-warning-text: #f0bd4f;
  --color-danger: #c93636;
  --color-on-danger: #ffffff;
  --color-danger-text: #ff7373;
  --color-focus: #79a2ff;
  --color-chart-bg: #0b0e13;
  --color-chart-grid: #1a212c;
  --color-chart-up: #3ccf8e;
  --color-chart-down: #ff7373;
  --color-up-text: #3ccf8e;
  --color-down-text: #ff7373;
}

[data-theme="light"] {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-surface-2: #ffffff;
  --color-surface-hover: #eaeef3;
  --color-border: #dfe4ea;
  --color-border-input: #7b8696;
  --color-text: #121722;
  --color-text-muted: #566173;
  --color-accent: #2f66e0;
  --color-on-accent: #ffffff;
  --color-accent-text: #2556c7;
  --color-buy: #2f66e0;
  --color-on-buy: #ffffff;
  --color-buy-text: #2556c7;
  --color-sell: #c93636;
  --color-on-sell: #ffffff;
  --color-sell-text: #b02e2e;
  --color-warning: #e0a526;
  --color-on-warning: #14100a;
  --color-warning-text: #8a5a00;
  --color-danger: #c93636;
  --color-on-danger: #ffffff;
  --color-danger-text: #b02e2e;
  --color-focus: #2556c7;
  --color-chart-bg: #ffffff;
  --color-chart-grid: #eef1f5;
  --color-chart-up: #0f6e4c;
  --color-chart-down: #b02e2e;
  --color-up-text: #0f6e4c;
  --color-down-text: #b02e2e;
}

:root {
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-2xs: 11px;
  --leading-2xs: 14px;
  --weight-2xs: 500;
  --text-xs: 12px;
  --leading-xs: 16px;
  --weight-xs: 400;
  --text-sm: 13px;
  --leading-sm: 18px;
  --weight-sm: 400;
  --text-base: 14px;
  --leading-base: 20px;
  --weight-base: 400;
  --text-lg: 16px;
  --leading-lg: 22px;
  --weight-lg: 600;
  --text-xl: 20px;
  --leading-xl: 26px;
  --weight-xl: 600;
  --text-display: 28px;
  --leading-display: 34px;
  --weight-display: 700;
  --text-price: 18px;
  --leading-price: 22px;
  --weight-price: 600;
  --space-0: 0px;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 12px;
  --space-6: 16px;
  --space-7: 20px;
  --space-8: 24px;
  --space-9: 32px;
  --space-10: 48px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.24);
  --shadow-pop: 0 12px 32px rgba(0,0,0,.40);
  --motion-fast: 100ms;
  --motion-base: 160ms;
  --motion-ease: cubic-bezier(.2,.8,.2,1);
  --motion-tick-flash: 450ms;
  --layout-header: 44px;
  --layout-status-bar: 24px;
  --layout-market-watch: 280px;
  --layout-symbol-panel: 320px;
  --layout-trade-watch: 260px;
  --layout-grid-row: 28px;
  --layout-control-sm: 28px;
  --layout-control-md: 32px;
  --layout-control-lg: 40px;
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { :root { --motion-fast: 0ms; --motion-base: 0ms; --motion-tick-flash: 0ms; } }
