/*
 * tokens.css — 设计 token 唯一定义点（真源，消费方只读）
 * ==========================================================================
 * 批次：edu-ui-token-base-20260927（lane exec-tokens）
 * 来源：templates/index.html 基线 :root 块（L10–L33）逐字节搬迁，零值变更。
 * 范围：搬迁 19 项（规格 D2 方案 A）。以下 3 项按规格**原位保留**在
 *       templates/index.html 的 :root，本文件不定义它们（消费侧同页存在
 *       双期望值，单一定义在数学上无法同时保零值）：
 *         --border-card / --border-subtle / --radius-lg
 * 规则：本文件为 token 唯一定义点；新增 token 须先经规格登记并同步
 *       scripts/check_token_sets.mjs 与 tests/test_theme_tokens.py 的基线表。
 */
:root {
    --bg-warm: #f7f3ee;
    --bg-card: #ffffff;
    --bg-card-hover: #fcf9f5;
    --text-primary: #2d2a24;
    --text-secondary: #6b635a;
    --text-muted: #6f6862;
    --accent-navy: #1e3a5f;
    --accent-navy-light: #2c5282;
    --accent-warm: #d4783c;
    --accent-warm-light: #e8955a;
    --accent-warm-glow: rgba(212, 120, 60, 0.07);
    --status-running: #1a5fb8;
    --status-actionable: #a05a20;
    --status-done: #1d7a44;
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow-sm: 0 1px 3px rgba(45, 42, 36, 0.06);
    --shadow-card: 0 2px 12px rgba(45, 42, 36, 0.07);
    --shadow-card-hover: 0 8px 28px rgba(45, 42, 36, 0.10);
}

/*
 * cool 主题块（批 5 · lane exec-core）
 * ==========================================================================
 * 形态四要素（spec §2 消费方契约 C1–C4 的产物，逐条不可违）：
 *   位置：追加在 default 块之后（同名取首次 ⇒ 默认值先出现，C3 的唯一前提）
 *   选择器：html[data-theme="cool"]（含 `[` ⇒ 不匹配裸块正则，C1）
 *   名集：只重定义既有名（不引新名，C2）
 *   禁含：3 个保留名在该文件任何位置零命中（C4）
 * 机制：由 static/js/theme_switch.js 与各页 head 的极早注入片段按
 *       localStorage 键 theme_mode 的值切换；未选 / 切回默认 ⇒ 属性被移除。
 * 边界：本块只做冷色化取值，⛔ 不新增 token 名、⛔ 不改 default 块任何取值。
 */
html[data-theme="cool"] {
    --bg-warm: #edf2f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f8fc;
    --text-primary: #1b2733;
    --text-secondary: #5b6b7c;
    --text-muted: #5c6b7d;
    --accent-navy: #123a5f;
    --accent-navy-light: #2a5d90;
    --accent-warm: #3f7fb5;
    --accent-warm-light: #5f9fd0;
    --accent-warm-glow: rgba(63, 127, 181, 0.07);
    --status-actionable: #1f5c8f;
    --shadow-sm: 0 1px 3px rgba(27, 39, 51, 0.06);
    --shadow-card: 0 2px 12px rgba(27, 39, 51, 0.07);
    --shadow-card-hover: 0 8px 28px rgba(27, 39, 51, 0.10);
}
