/* TrendBot Console — generated from tokens.json */

:root, [data-theme="dark"] {
  --bg: #0d1014;
  --surface: #141920;
  --surface-raised: #1b212a;
  --surface-sunken: #0a0c10;
  --line: #29313c;
  --line-strong: #66727f;
  --ink: #e7ebf0;
  --ink-muted: #a0a9b6;
  --ink-faint: #6c7685;
  --accent: #6cb6ff;
  --accent-hover: #9ccdff;
  --accent-soft: #10263d;
  --on-accent: #06121f;
  --focus: #9ccdff;
  --success: #3ecf74;
  --success-ink: #5fe08f;
  --success-soft: #0f2a1b;
  --danger: #c93a31;
  --danger-ink: #ff8a80;
  --danger-soft: #34140f;
  --on-danger: #ffffff;
  --warning: #f0b44a;
  --warning-ink: #f5c46b;
  --warning-soft: #2f2310;
  --on-warning: #1f1400;
  --profit: var(--success-ink);
  --loss: var(--danger-ink);
  --mode-paper: #a0a9b6;
  --mode-testnet: var(--warning);
  --mode-live: var(--danger);
  --chart-price: #c4ccd6;
  --chart-stop: #ec5a72;
  --chart-entry: #4a96e0;
  --chart-high: var(--ink);
  --chart-ema50: #cf7a28;
  --chart-ema20: #22a99c;
  --chart-equity: var(--chart-entry);
  --chart-equity-fill: var(--accent-soft);
  --chart-bench: var(--ink-muted);
  --chart-dd: #4a1c26;
  --chart-grid: var(--line);
  --chart-crosshair: var(--ink-muted);
  --hist-pos: var(--success);
  --hist-neg: var(--chart-stop);
  --shadow-overlay: 0 16px 40px rgba(0,0,0,0.55);
}

[data-theme="light"] {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #eef1f4;
  --line: #dfe3e8;
  --line-strong: #76818f;
  --ink: #11161d;
  --ink-muted: #535e6e;
  --ink-faint: #8a94a3;
  --accent: #0a63c2;
  --accent-hover: #0853a3;
  --accent-soft: #e6f0fb;
  --on-accent: #ffffff;
  --focus: #0a63c2;
  --success: #1f9d55;
  --success-ink: #137a3f;
  --success-soft: #e5f5ec;
  --danger: #c93a31;
  --danger-ink: #b42318;
  --danger-soft: #fdecea;
  --on-danger: #ffffff;
  --warning: #f0b44a;
  --warning-ink: #8a5300;
  --warning-soft: #fff3d6;
  --on-warning: #1f1400;
  --mode-paper: #535e6e;
  --chart-price: #2e3742;
  --chart-stop: #c8324f;
  --chart-entry: #0a63c2;
  --chart-ema50: #b35e00;
  --chart-ema20: #008c80;
  --chart-dd: #f9dde3;
  --shadow-overlay: 0 16px 40px rgba(17,22,29,0.16);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-sunken: #eef1f4;
    --line: #dfe3e8;
    --line-strong: #76818f;
    --ink: #11161d;
    --ink-muted: #535e6e;
    --ink-faint: #8a94a3;
    --accent: #0a63c2;
    --accent-hover: #0853a3;
    --accent-soft: #e6f0fb;
    --on-accent: #ffffff;
    --focus: #0a63c2;
    --success: #1f9d55;
    --success-ink: #137a3f;
    --success-soft: #e5f5ec;
    --danger: #c93a31;
    --danger-ink: #b42318;
    --danger-soft: #fdecea;
    --on-danger: #ffffff;
    --warning: #f0b44a;
    --warning-ink: #8a5300;
    --warning-soft: #fff3d6;
    --on-warning: #1f1400;
    --mode-paper: #535e6e;
    --chart-price: #2e3742;
    --chart-stop: #c8324f;
    --chart-entry: #0a63c2;
    --chart-ema50: #b35e00;
    --chart-ema20: #008c80;
    --chart-dd: #f9dde3;
    --shadow-overlay: 0 16px 40px rgba(17,22,29,0.16);
  }
}

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --control-sm: 28px;
  --control-md: 36px;
  --control-lg: 44px;
  --row-h: 40px;
  --banner-h: 32px;
  --sidebar-w: 232px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.num-xl { font-family: var(--font-mono); font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.num-lg { font-family: var(--font-mono); font-size: 24px; line-height: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.num-md { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
.num-sm { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.title { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.heading { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.body { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; }
