/* 新风格的取值（issue 917 P1）：纸墨 paper / 红白 kohaku。「经典」＝tokens.css 本身，这里一个字都不碰它。
   用法：页面在写 data-theme 的同一个元素上写 data-style（主页 <body>、cc.html <html>）；本文件排在 tokens.css 后面加载。
   每套风格三块，变量名与 tokens.css 一一对应：
     [data-style="x"]                       浅色的颜色 + 不分深浅的字号 / 圆角
     [data-style="x"][data-theme="dark"]    深色的颜色（浅色那块里的颜色变量这里必须个个都有，漏一个深色下就会露出浅色值）
   深色块里的 --style-placeholder 目前没有规则在用（提示文字只在主页浅色下单独上色），为了深浅两块对齐才写着。
   --style-* 是 tokens.css 说明里登记的「覆盖位」：经典不定义（落回各处的原值），新风格在这里统一给值。
   守这些约定的是 tests/test_style_tokens_917.py。 */

/* ───────── 纸墨：纸色底、墨色字、细线小圆角，强调色朱砂红 ───────── */
[data-style="paper"] {
  --bg-primary: #f6f2e9; --bg-secondary: #fcfaf4; --bg-tertiary: #e9e2d2; --bg-input: #f1ecdf;
  --text-primary: #1d1a16; --text-secondary: #55503f; --text-muted: #746b59;
  --msg-user: #eee8da; --msg-ai: transparent;
  --scrollbar: #d8cfbc; --scrollbar-hover: #c4b9a2; --shadow: rgba(60,45,20,0.14);
  --code-bg: #efe9db; --code-inline-bg: rgba(60,45,20,0.07);
  --text-strong: #1d1a16; --code-inline: #8c2c18;
  --bg: #f6f2e9; --panel: #fcfaf4; --panel2: #e9e2d2; --text: #1d1a16; --muted: #746b59;
  --border: #d8cfbc; --border-strong: #c4b9a2;
  --accent: #a5361f; --accent-hover: #8c2c18;
  --accent-soft: rgba(165,54,31,0.09); --accent-glow: rgba(165,54,31,0.18);
  --accent-grad: linear-gradient(135deg, #a5361f 0%, #a5361f 100%);
  --danger: #b3261e;
  --surface-canvas: #f6f2e9; --surface-side: #eee8da; --surface-raised: #fcfaf4;
  --style-danger: #b3261e; --style-danger-soft: rgba(179,38,30,0.10); --style-on-danger: #fbf3e6;
  --style-warn: #8a5a12; --style-warn-soft: rgba(138,90,18,0.12);
  --style-ok: #4d6b3c; --style-ok-soft: rgba(77,107,60,0.12);
  --style-on-accent: #fbf3e6; --style-accent-soft: rgba(165,54,31,0.09);
  --style-scrim: rgba(40,32,20,0.45); --style-shadow: rgba(60,45,20,0.10);
  --style-chrome: #f6f2e9; --style-placeholder: #8a8170;

  --fs-micro: 11px; --fs-tiny: 12px; --fs-small: 12px; --fs-ui: 14px; --fs-body: 14px; --fs-lead: 16px; --fs-large: 16px;
  --fs-heading-sm: 16px; --fs-heading: 16px; --fs-heading-lg: 21px; --fs-subtitle: 21px; --fs-title: 28px; --fs-display: 44px;
  --radius-2xs: 1px; --radius-xs: 2px; --radius-sm: 3px; --radius-md: 3px; --radius-ml: 4px; --radius-lg: 4px;
  --radius-xl: 4px; --radius-pill: 999px;
  --radius-round: 999px;   /* 发送 / 停止 / 附件 / 麦克风这几个圆钮保持圆的（admin 11-13，同红白） */
}
[data-style="paper"][data-theme="dark"] {
  --bg-primary: #181613; --bg-secondary: #211e1a; --bg-tertiary: #2a2621; --bg-input: #262220;
  --text-primary: #ece5d6; --text-secondary: #bdb4a2; --text-muted: #948b7a;
  --msg-user: #262220; --msg-ai: transparent;
  --scrollbar: #3a352d; --scrollbar-hover: #4a4339; --shadow: rgba(0,0,0,0.5);
  --code-bg: #110f0d; --code-inline-bg: rgba(255,240,220,0.07);
  --text-strong: #fbf6ea; --code-inline: #e58a72;
  --bg: #181613; --panel: #211e1a; --panel2: #2a2621; --text: #ece5d6; --muted: #948b7a;
  --border: #2f2b25; --border-strong: #4a4339;
  --accent: #d2573b; --accent-hover: #e06a4e;
  --accent-soft: rgba(210,87,59,0.14); --accent-glow: rgba(210,87,59,0.28);
  --accent-grad: linear-gradient(135deg, #d2573b 0%, #d2573b 100%);
  --danger: #ef6b5b;
  --surface-canvas: #181613; --surface-side: #110f0d; --surface-raised: #211e1a;
  --style-danger: #ef6b5b; --style-danger-soft: rgba(239,107,91,0.16); --style-on-danger: #fff4e8;
  --style-warn: #d6a650; --style-warn-soft: rgba(214,166,80,0.16);
  --style-ok: #8fb078; --style-ok-soft: rgba(143,176,120,0.16);
  --style-on-accent: #fff4e8; --style-accent-soft: rgba(210,87,59,0.14);
  --style-scrim: rgba(0,0,0,0.6); --style-shadow: rgba(0,0,0,0.35);
  --style-chrome: #181613; --style-placeholder: #7f7768;
}

/* ───────── 红白：近白底、纯黑字、黑线直角，强调色锦鲤红 ───────── */
[data-style="kohaku"] {
  --bg-primary: #fbfbf9; --bg-secondary: #ffffff; --bg-tertiary: #e9e9e3; --bg-input: #f4f4f0;
  --text-primary: #101012; --text-secondary: #4b4b52; --text-muted: #6b6b74;
  --msg-user: #e9e9e3; --msg-ai: transparent;
  --scrollbar: #cfcfc8; --scrollbar-hover: #a9a9a2; --shadow: rgba(16,16,18,0.10);
  --code-bg: #f0f0ec; --code-inline-bg: rgba(16,16,18,0.07);
  --text-strong: #101012; --code-inline: #b92d14;
  --bg: #fbfbf9; --panel: #ffffff; --panel2: #e9e9e3; --text: #101012; --muted: #6b6b74;
  --border: #deded8; --border-strong: #101012;
  --accent: #d7381c; --accent-hover: #b92d14;
  --accent-soft: rgba(215,56,28,0.08); --accent-glow: rgba(215,56,28,0.20);
  --accent-grad: linear-gradient(135deg, #d7381c 0%, #d7381c 100%);
  --danger: #c4161c;
  --surface-canvas: #fbfbf9; --surface-side: #f0f0ec; --surface-raised: #ffffff;
  --style-danger: #c4161c; --style-danger-soft: rgba(196,22,28,0.10); --style-on-danger: #ffffff;
  --style-warn: #9a5b00; --style-warn-soft: rgba(154,91,0,0.12);
  --style-ok: #1f7a4d; --style-ok-soft: rgba(31,122,77,0.12);
  --style-on-accent: #ffffff; --style-accent-soft: rgba(215,56,28,0.08);
  --style-scrim: rgba(16,16,18,0.5); --style-shadow: transparent;
  --style-chrome: #fbfbf9; --style-placeholder: #8b8b93;

  --fs-micro: 11px; --fs-tiny: 12px; --fs-small: 12px; --fs-ui: 14px; --fs-body: 14px; --fs-lead: 16px; --fs-large: 16px;
  --fs-heading-sm: 16px; --fs-heading: 16px; --fs-heading-lg: 22px; --fs-subtitle: 22px; --fs-title: 32px; --fs-display: 56px;
  --radius-2xs: 0px; --radius-xs: 0px; --radius-sm: 0px; --radius-md: 0px; --radius-ml: 0px; --radius-lg: 0px;
  --radius-xl: 0px; --radius-pill: 0px;
  --radius-round: 999px;   /* 发送 / 停止 / 附件 / 麦克风这几个圆钮保持圆的（admin 11-13：方的太丑）；红白里另一个带圆角的是用户气泡 */
}
[data-style="kohaku"][data-theme="dark"] {
  --bg-primary: #0e0e10; --bg-secondary: #18181b; --bg-tertiary: #26262a; --bg-input: #18181b;
  --text-primary: #f3f3ef; --text-secondary: #b8b8bf; --text-muted: #8f8f99;
  --msg-user: #26262a; --msg-ai: transparent;
  --scrollbar: #3a3a40; --scrollbar-hover: #55555c; --shadow: rgba(0,0,0,0.5);
  --code-bg: #060607; --code-inline-bg: rgba(255,255,255,0.08);
  --text-strong: #ffffff; --code-inline: #ff8a73;
  --bg: #0e0e10; --panel: #18181b; --panel2: #26262a; --text: #f3f3ef; --muted: #8f8f99;
  --border: #2b2b30; --border-strong: #e6e6e1;
  --accent: #ff5b3d; --accent-hover: #ff7a61;
  --accent-soft: rgba(255,91,61,0.14); --accent-glow: rgba(255,91,61,0.30);
  --accent-grad: linear-gradient(135deg, #ff5b3d 0%, #ff5b3d 100%);
  --danger: #ff5a5f;
  --surface-canvas: #0e0e10; --surface-side: #060607; --surface-raised: #18181b;
  --style-danger: #ff5a5f; --style-danger-soft: rgba(255,90,95,0.16); --style-on-danger: #101012;
  --style-warn: #f0b34a; --style-warn-soft: rgba(240,179,74,0.16);
  --style-ok: #45c088; --style-ok-soft: rgba(69,192,136,0.16);
  --style-on-accent: #101012; --style-accent-soft: rgba(255,91,61,0.14);
  --style-scrim: rgba(0,0,0,0.65); --style-shadow: transparent;
  --style-chrome: #0e0e10; --style-placeholder: #6f6f78;
}
