/* MAGI 設計系統 token（網頁改版 P1）。
   只在這一支寫色值；元件（magi-ds-components.css）與系統管理頁（magi-system-admin.css）只讀 --ds-*。
   三處各一套：沒有 data-magi-theme（無 JavaScript）時、淺色 forest、深色 cyber。
   P1 不改預設主題（留 P2），所以無主題時沿用淺色值，與 magi-theme.css 的 :root 一致。
   每一組「文字 token／底色 token」都在 tests/test_web_theme_tokens_and_invite_entry.py 量 WCAG AA。 */

:root {
  --ds-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  --ds-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ds-radius: 10px;
  --ds-radius-sm: 6px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-touch: 44px;
}

:root:not([data-magi-theme]) {
  --ds-bg: #f4f6f2;
  --ds-surface: #ffffff;
  --ds-surface-2: #eef3ef;
  --ds-text: #17201b;
  --ds-muted: #4f5d54;
  --ds-line: #c9d4cb;
  --ds-accent: #1f6b45;
  --ds-on-accent: #ffffff;
  --ds-accent-text: #1a5c3b;
  --ds-accent-soft: #e3efe7;
  --ds-ok-text: #1a5c3b;
  --ds-ok-soft: #e3efe7;
  --ds-warn-text: #8a4b00;
  --ds-warn-soft: #fbeedd;
  --ds-bad-text: #a32020;
  --ds-bad-soft: #fbe4e4;
  --ds-info-text: #1d4ed8;
  --ds-info-soft: #e5edfd;
  --ds-focus: #1f6b45;
  --ds-shadow: 0 8px 24px rgba(19, 32, 27, 0.08);
}

:root[data-magi-theme="forest"] {
  --ds-bg: #f4f6f2;
  --ds-surface: #ffffff;
  --ds-surface-2: #eef3ef;
  --ds-text: #17201b;
  --ds-muted: #4f5d54;
  --ds-line: #c9d4cb;
  --ds-accent: #1f6b45;
  --ds-on-accent: #ffffff;
  --ds-accent-text: #1a5c3b;
  --ds-accent-soft: #e3efe7;
  --ds-ok-text: #1a5c3b;
  --ds-ok-soft: #e3efe7;
  --ds-warn-text: #8a4b00;
  --ds-warn-soft: #fbeedd;
  --ds-bad-text: #a32020;
  --ds-bad-soft: #fbe4e4;
  --ds-info-text: #1d4ed8;
  --ds-info-soft: #e5edfd;
  --ds-focus: #1f6b45;
  --ds-shadow: 0 8px 24px rgba(19, 32, 27, 0.08);
}

:root[data-magi-theme="cyber"] {
  --ds-bg: #0b1210;
  --ds-surface: #111a17;
  --ds-surface-2: #17231f;
  --ds-text: #e6efe9;
  --ds-muted: #a3b3aa;
  --ds-line: #2b3a34;
  --ds-accent: #2dd4bf;
  --ds-on-accent: #06201c;
  --ds-accent-text: #5eead4;
  --ds-accent-soft: #123a33;
  --ds-ok-text: #5eead4;
  --ds-ok-soft: #123a33;
  --ds-warn-text: #fbbf24;
  --ds-warn-soft: #3a2a0a;
  --ds-bad-text: #fca5a5;
  --ds-bad-soft: #3b1414;
  --ds-info-text: #93c5fd;
  --ds-info-soft: #13233f;
  --ds-focus: #5eead4;
  --ds-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* 網頁 P2-S4：未指定主題（含無 JS、系統為深色）一律是上面 :root 的淺色；深色只在使用者明確選了才出現。 */
