/*
 * Design tokens of the Fortnox MCP console. Source: Sketchpad project `fortnox-mcp` (color.role.*, radius.*,
 * type.*), copied from `exceedloop`. Page CSS uses these variables only: no hardcoded colors elsewhere.
 * Light is the default. Dark follows `prefers-color-scheme`, or `data-theme="dark"` (admin theme switch).
 */
:root {
  --color-primary: #5b3fd9;
  --color-on-primary: #ffffff;
  --color-secondary: #697580;
  --color-surface: #ffffff;
  --color-elevated: #ffffff;
  --color-background: #f5f6f7;
  --color-border: #dfe4e7;
  --color-text: #20262d;
  --color-muted: #5b6670;
  --color-subtle: #f0f2f3;
  --color-topbar: #ffffff;
  --color-hover: #e6e9eb;
  --color-primary-subtle: #eef1f7;
  --color-overlay: #20262d;
  --color-shadow: #20262d;
  --color-success-bg: #e3f5ec;
  --color-success-fg: #0d7d4a;
  --color-warning-bg: #fff4d6;
  --color-warning-fg: #8a6a00;
  --color-danger-bg: #fbe7e7;
  --color-danger-fg: #b91c1c;
  --color-info-bg: #e6eeff;
  --color-info-fg: #1e4fc7;
  --color-link: #2457d6;
  --color-code-bg: #f0f2f3;
  --color-sidebar-ink: #0f1533;
  --color-sidebar-ink-text: #e8ebf7;
  --color-sidebar-ink-muted: #a3abc7;
  --color-sidebar-ink-active: #2b3170;
  --color-sidebar-ink-accent: #a594ff;
  --color-positive: #007b71;

  --radius-chip: 12px;
  --radius-card: 20px;
  /* Design literal 14 (splash code block, organization cards on a phone). */
  --radius-panel: 14px;
  /* Icon tiles of the splash key points (design literal 12). */
  --radius-icon-tile: 12px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --radius-xsm: 8px;
  --radius-code: 4px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-primary: #a594ff;
    --color-on-primary: #170f3a;
    --color-secondary: #aeb5c0;
    --color-surface: #202328;
    --color-elevated: #292d33;
    --color-background: #111418;
    --color-border: #373d45;
    --color-text: #f1f3f5;
    --color-muted: #929ba7;
    --color-subtle: #292d33;
    --color-topbar: #202328;
    --color-hover: #292d33;
    --color-primary-subtle: #262c38;
    --color-overlay: #000000;
    --color-shadow: #000000;
    --color-success-bg: #0f3b2e;
    --color-success-fg: #34d399;
    --color-warning-bg: #3f3420;
    --color-warning-fg: #facc15;
    --color-danger-bg: #402326;
    --color-danger-fg: #f87171;
    --color-info-bg: #16243f;
    --color-info-fg: #8db0ff;
    --color-link: #8db0ff;
    --color-code-bg: #16191e;
    --color-sidebar-ink: #0b1022;
    --color-sidebar-ink-active: #262b62;
    --color-sidebar-ink-muted: #8e97b5;
    --color-positive: #00d9c0;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --color-primary: #a594ff;
  --color-on-primary: #170f3a;
  --color-secondary: #aeb5c0;
  --color-surface: #202328;
  --color-elevated: #292d33;
  --color-background: #111418;
  --color-border: #373d45;
  --color-text: #f1f3f5;
  --color-muted: #929ba7;
  --color-subtle: #292d33;
  --color-topbar: #202328;
  --color-hover: #292d33;
  --color-primary-subtle: #262c38;
  --color-overlay: #000000;
  --color-shadow: #000000;
  --color-success-bg: #0f3b2e;
  --color-success-fg: #34d399;
  --color-warning-bg: #3f3420;
  --color-warning-fg: #facc15;
  --color-danger-bg: #402326;
  --color-danger-fg: #f87171;
  --color-info-bg: #16243f;
  --color-info-fg: #8db0ff;
  --color-link: #8db0ff;
  --color-code-bg: #16191e;
  --color-sidebar-ink: #0b1022;
  --color-sidebar-ink-active: #262b62;
  --color-sidebar-ink-muted: #8e97b5;
  --color-positive: #00d9c0;
  color-scheme: dark;
}
