/* SRK Family design tokens. Theme B "Calm slate", light. One source of truth for every page. */
:root {
  color-scheme: light;
  /* colour */
  --bg: #F2F5F9; --surface: #FFFFFF; --text: #18212B; --muted: #637184;
  --border: #DCE3EC; --border-strong: #C3CEDB;
  --accent: #2F6FDB; --accent-hover: #2560C4; --accent-soft: #E1EBFB; --on-accent: #FFFFFF;
  --ok: #1F7A45; --ok-soft: #E3F3EA;
  --warn: #8A5A00; --warn-soft: #FBF0D9;
  --bad: #B83232; --bad-soft: #FBE7E7;
  /* nutrient colours (badges, bars, tiles) */
  --n-protein: #6A4CD6; --n-protein-soft: #ECE8FB;
  --n-carbs: #B5650A; --n-carbs-soft: #FDEFD3;
  --n-fat: #C23B69; --n-fat-soft: #FBE5ED;
  --n-fibre: #1B8758; --n-fibre-soft: #DDF3E8;
  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  /* shape */
  --r-sm: 8px; --r-md: 12px;
  /* type scale */
  --fs-cap: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 24px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* controls */
  --ctl: 44px; --ctl-sm: 36px;
  --sidebar: 240px;
}
/* Dark is only used if someone turns it on explicitly with data-theme="dark". It never follows the device. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12171E; --surface: #1C2430; --text: #E8EEF5; --muted: #93A1B3;
  --border: #2A3544; --border-strong: #3A485B;
  --accent: #5B9BF5; --accent-hover: #7AAEF7; --accent-soft: #1E2F4A; --on-accent: #12171E;
  --ok: #5FD08A; --ok-soft: #173325; --warn: #F0B445; --warn-soft: #3A2D12; --bad: #FF8A8A; --bad-soft: #3D1D1D;
  --n-protein: #A996F7; --n-protein-soft: #2A2250; --n-carbs: #F0B445; --n-carbs-soft: #3A2D12;
  --n-fat: #F29BB8; --n-fat-soft: #3D1D2A; --n-fibre: #5FD08A; --n-fibre-soft: #173325;
}
