/* Design tokens. Light is the default; dark only when chosen in Settings. */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Paper and ink: warm neutrals, like a printed ledger */
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --surface-3: #e8e6e0;
  --ink: #16181d;
  --ink-2: #3d424d;
  --ink-3: #6f7480;
  --line: #e4e2dc;
  --line-strong: #cbc8c0;

  /* Ink is the primary action colour; one green accent for links, selection and money */
  --primary: #16181d;
  --primary-hover: #2b2f38;
  --primary-ink: #ffffff;
  --accent: #0b6e55;
  --accent-hover: #095c47;
  --accent-ink: #ffffff;
  --accent-soft: #e9f3ef;
  --chain: #2563eb;
  --chain-bg: #e8f0fe;

  /* Status */
  --good: #15803d;
  --good-bg: #e8f6ee;
  --warn: #b45309;
  --warn-bg: #fdf3e3;
  --bad: #c0362c;
  --bad-bg: #fdecea;
  --info: #1d5fae;
  --info-bg: #e7f0fb;
  --dss: #d1242f;
  --dss-bg: #fdebec;

  /* Company identity colour (hue set per company) */
  --tenant-h: 220;
  --tenant: hsl(var(--tenant-h) 60% 48%);
  --tenant-bg: hsl(var(--tenant-h) 70% 96%);
  --tenant-ink: #ffffff;

  --radius: 8px;
  --radius-sm: 6px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --shadow-sm: none;
  --shadow: 0 1px 2px rgb(22 24 29 / 6%), 0 3px 10px rgb(22 24 29 / 5%);
  --shadow-lg: 0 10px 38px rgb(15 23 42 / 18%), 0 2px 8px rgb(15 23 42 / 8%);
  --focus: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111214;
  --surface: #191b1e;
  --surface-2: #202327;
  --surface-3: #2a2d32;
  --ink: #ecebe7;
  --ink-2: #bdbbb4;
  --ink-3: #8f8d86;
  --line: #2a2c30;
  --line-strong: #3c3f45;
  --primary: #ecebe7;
  --primary-hover: #ffffff;
  --primary-ink: #16181d;
  --accent: #4fc3a1;
  --accent-hover: #6fd4b5;
  --accent-ink: #06231b;
  --accent-soft: #14302a;
  --chain: #7fb0ff;
  --chain-bg: #15233d;
  --good: #5fd58b;
  --good-bg: #12301f;
  --warn: #f3bb55;
  --warn-bg: #3a2d10;
  --bad: #ff8d80;
  --bad-bg: #3d1a17;
  --info: #86b8f5;
  --info-bg: #14283f;
  --dss: #ff7b72;
  --dss-bg: #3d1a1c;
  --tenant: hsl(var(--tenant-h) 70% 62%);
  --tenant-bg: hsl(var(--tenant-h) 40% 17%);
  --tenant-ink: #0b1020;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 14px rgb(0 0 0 / 30%);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 60%);
  color-scheme: dark;
}
