/* Kiwi colour tokens (v1.4): ONE set for the web app (pip.css) and the Teams pages (panel/config).
   Light = Kiwi forest/mint/lime. Dark = Fluent greys (#1f1f1f / #292929, text #fff / #d6d6d6, stroke #666). Contrast = Teams high contrast.
   Theme choice: <html data-theme="light|dark|contrast"> (Teams pages set it from ?theme={app.theme} before first paint and on
   theme change); with no data-theme the OS preference (prefers-color-scheme) decides. */
:root {
  color-scheme: light;
  --forest: #103D2B; --forest-deep: #0B2B20; --botanical: #337D4B; --mint: #EAF5E5; --mint-2: #F3F9EF; --lime: #E6F59B; --lime-line: #D5E58A;
  --paper: #FBFCF8; --ink: #1F2B24; --muted: #5E6B63; --line: #DDE6DA; --line-soft: #EEF2EC; --line-strong: #BFD6B8; --card: #FFFFFF;
  --surface-2: #F6F8F5; --assist-bg: #FDFEFB; --glow: #E3F1DC; --focus: #E3F1DC;
  --brand: #103D2B; --brand-deep: #0B2B20; --on-brand: #FFFFFF; --danger: #B42318; --on-danger: #FFFFFF;
  --amber: #B7791F; --amber-bg: #FDF3DC; --amber-ink: #8A5A0B; --red: #B42318; --red-bg: #FDECEA; --red-line: #F1C4BF;
  --blue-bg: #EAF1FB; --blue: #2D5BA8; --grey-bg: #EEF0EE; --ok: #2E9B57; --dot-off: #9AA59E;
  --note-bg: #F7FBEF; --note-line: #E2EDCF; --note-y-bg: #FDFBE7; --note-y-line: #F0EAB8;
  --warm-bg: #FFFBF0; --warm-bg-2: #FFF4D6; --warm-line: #EBCB8B; --warm-line-2: #F1E2BC;
  --shadow: 0 1px 2px rgba(16,61,43,.06), 0 4px 14px rgba(16,61,43,.06);
}

/* dark: the same block twice (OS preference unless a theme is forced, and data-theme=dark) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="contrast"]) {
    color-scheme: dark;
    --forest: #CFE8C9; --forest-deep: #E4F3E0; --botanical: #8FD48A; --mint: #22362A; --mint-2: #262F29; --lime: #3E4A16; --lime-line: #56661F;
    --paper: #1F1F1F; --ink: #FFFFFF; --muted: #D6D6D6; --line: #666666; --line-soft: #3D3D3D; --line-strong: #7A8A7F; --card: #292929;
    --surface-2: #2E2E2E; --assist-bg: #242424; --glow: #233A2B; --focus: #2F4A38;
    --brand: #2F6B45; --brand-deep: #285C3B; --on-brand: #FFFFFF; --danger: #C4314B; --on-danger: #FFFFFF;
    --amber: #F2C661; --amber-bg: #3D3016; --amber-ink: #F2C661; --red: #FF9A90; --red-bg: #3E1F1F; --red-line: #7A3B3B;
    --blue-bg: #1E2A3D; --blue: #9DBEF2; --grey-bg: #3A3A3A; --ok: #6CCB8A; --dot-off: #8A8A8A;
    --note-bg: #263026; --note-line: #3F5240; --note-y-bg: #34301C; --note-y-line: #5C5428;
    --warm-bg: #332B1A; --warm-bg-2: #3D3318; --warm-line: #7A6431; --warm-line-2: #5C4C28;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --forest: #CFE8C9; --forest-deep: #E4F3E0; --botanical: #8FD48A; --mint: #22362A; --mint-2: #262F29; --lime: #3E4A16; --lime-line: #56661F;
  --paper: #1F1F1F; --ink: #FFFFFF; --muted: #D6D6D6; --line: #666666; --line-soft: #3D3D3D; --line-strong: #7A8A7F; --card: #292929;
  --surface-2: #2E2E2E; --assist-bg: #242424; --glow: #233A2B; --focus: #2F4A38;
  --brand: #2F6B45; --brand-deep: #285C3B; --on-brand: #FFFFFF; --danger: #C4314B; --on-danger: #FFFFFF;
  --amber: #F2C661; --amber-bg: #3D3016; --amber-ink: #F2C661; --red: #FF9A90; --red-bg: #3E1F1F; --red-line: #7A3B3B;
  --blue-bg: #1E2A3D; --blue: #9DBEF2; --grey-bg: #3A3A3A; --ok: #6CCB8A; --dot-off: #8A8A8A;
  --note-bg: #263026; --note-line: #3F5240; --note-y-bg: #34301C; --note-y-line: #5C5428;
  --warm-bg: #332B1A; --warm-bg-2: #3D3318; --warm-line: #7A6431; --warm-line-2: #5C4C28;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
}

/* Teams high contrast: black, white text, yellow accents/links, white strokes */
:root[data-theme="contrast"] {
  color-scheme: dark;
  --forest: #FFFFFF; --forest-deep: #FFFFFF; --botanical: #FFFF00; --mint: #000000; --mint-2: #000000; --lime: #000000; --lime-line: #FFFFFF;
  --paper: #000000; --ink: #FFFFFF; --muted: #FFFFFF; --line: #FFFFFF; --line-soft: #FFFFFF; --line-strong: #FFFF00; --card: #000000;
  --surface-2: #000000; --assist-bg: #000000; --glow: #000000; --focus: #FFFF00;
  --brand: #FFFF00; --brand-deep: #1AEBFF; --on-brand: #000000; --danger: #FFFF00; --on-danger: #000000;
  --amber: #FFFF00; --amber-bg: #000000; --amber-ink: #FFFF00; --red: #FFFF00; --red-bg: #000000; --red-line: #FFFF00;
  --blue-bg: #000000; --blue: #1AEBFF; --grey-bg: #000000; --ok: #3FF23F; --dot-off: #FFFFFF;
  --note-bg: #000000; --note-line: #FFFFFF; --note-y-bg: #000000; --note-y-line: #FFFF00;
  --warm-bg: #000000; --warm-bg-2: #000000; --warm-line: #FFFF00; --warm-line-2: #FFFF00;
  --shadow: none;
}
