/* FS design tokens. Light by default, dark through prefers-color-scheme. */
:root {
  color-scheme: light dark;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #f0f2f3;
  --surface-3: #e6e9eb;
  --border: #dde1e4;
  --border-strong: #c5cbd0;
  --text: #1b2226;
  --text-2: #4d585f;
  --text-3: #6f7a81;

  --accent: #0f766e;
  --accent-hover: #0d655e;
  --accent-text: #ffffff;
  --accent-soft: #e3f3f1;
  --accent-soft-text: #0b5c56;

  --danger: #c62828;
  --danger-hover: #a91f1f;
  --danger-soft: #fdecec;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --ok: #1f7a3d;
  --ok-soft: #e5f5ea;

  --focus: 0 0 0 3px rgba(15, 118, 110, 0.35);
  --shadow-1: 0 1px 2px rgba(16, 24, 28, 0.06), 0 1px 3px rgba(16, 24, 28, 0.06);
  --shadow-2: 0 8px 24px rgba(16, 24, 28, 0.12), 0 2px 6px rgba(16, 24, 28, 0.08);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --bar-h: 60px;
  --tap: 40px;
  --gutter: clamp(16px, 3vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1416;
    --surface: #161c1f;
    --surface-2: #1c2427;
    --surface-3: #253034;
    --border: #2a3438;
    --border-strong: #3a474c;
    --text: #e6ecee;
    --text-2: #b0bcc1;
    --text-3: #8b989e;

    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-text: #04201d;
    --accent-soft: #11302d;
    --accent-soft-text: #7fe7d8;

    --danger: #f87171;
    --danger-hover: #fca5a5;
    --danger-soft: #3a1a1a;
    --warn: #fbbf24;
    --warn-soft: #362a10;
    --ok: #4ade80;
    --ok-soft: #12301d;

    --focus: 0 0 0 3px rgba(45, 212, 191, 0.4);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}
