/* 星尘 / 晨光。只有颜色随主题变化，现有页面盒模型由原样式表负责。 */
/* 定稿主标只允许整体等比展示。 */
html body img[data-brand-logo]{display:block;height:40px;width:auto;object-fit:contain;object-position:center;flex:0 0 auto;max-width:100%;padding:0;border:0;border-radius:0;transform:none;filter:none;clip-path:none;mask:none}
html body .yx-brand-lockup{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;min-width:0;color:var(--yx-text);font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0;text-decoration:none}
html body .yx-brand-lockup .yx-brand-wordmark{display:block;flex:0 0 auto;color:inherit;font-size:19px;font-weight:500;line-height:1.2;letter-spacing:0;white-space:nowrap}
html #app main.content>.top .nx-header-brand{height:auto;min-height:32px;overflow:visible}
html #app main.content>.top:has(.yx-brand-lockup){height:108px;min-height:108px;align-items:center;padding-top:8px;padding-bottom:8px;overflow:visible}
html #app main.content>.top .yx-topnav{margin-left:10px;flex:1 1 auto;min-width:0}
html #app main.content>.top .top-account{flex:0 0 auto}
html .live-brand{display:flex;flex-direction:row;align-items:center}
html body .live-brand .yx-brand-wordmark{font-size:19px;font-weight:500;line-height:1.2;letter-spacing:0;margin:0;color:var(--yx-text)}

html,body{background:var(--yx-bg)}
:root {
 color-scheme:dark;
 --yx-color-scheme:dark;
 --yx-bg:#05060B;--yx-bg-raise:#12141D;--yx-bg-deep:#05060B;
 --yx-surface:rgba(255,255,255,.05);--yx-surface-strong:#191C27;--yx-surface-hover:rgba(255,255,255,.10);
 --yx-text:#EDF1F7;--yx-text-2:#AEB8CC;--yx-text-3:#8793AA;
 --yx-hairline:rgba(255,255,255,.10);--yx-hairline-strong:rgba(255,255,255,.20);
  --yx-accent:#C7D0FF;--yx-accent-hover:#D8DFFF;--yx-accent-text:#C7D0FF;--yx-accent-ink:#101223;--yx-burst:#DCE7FF;--yx-live-confirm:#D8B56A;--yx-live-confirm-ink:#20180A;--yx-card-matte:#191C27;--yx-blob-warm:#FFCEA0;--yx-blob-green:#C4D6B2;--yx-blob-blue:#B4CCE8;--yx-firework-gold:#FFD98A;--yx-firework-teal:#7CE8D8;--yx-firework-blue:#A8BFFF;--yx-firework-pink:#FF9DAE;
  --yx-accent-soft:rgba(199,208,255,.12);--yx-accent-surface:#232736;
  --yx-field:#191C27;--yx-success:#a2d7b5;--yx-warning:#e9c58a;--yx-danger:#ffb5ad;--yx-info:#a6d3e3;
 --yx-success-bg:#203d2b;--yx-warning-bg:#40351f;--yx-danger-bg:#492b2a;
 --yx-shadow:rgba(0,0,0,.45);--yx-highlight:rgba(255,255,255,.08);--yx-overlay:rgba(3,7,15,.72);
 --yx-photo-ink:#fff;--yx-photo-mask:rgba(0,0,0,.66);--yx-transparent:transparent;
 --bg:var(--yx-bg)!important;--bg-raise:var(--yx-bg-raise);--surface:var(--yx-surface)!important;--surface-strong:var(--yx-surface-strong);
 --text:var(--yx-text)!important;--text-2:var(--yx-text-2);--text-3:var(--yx-text-3);
 --hairline:var(--yx-hairline);--hairline-strong:var(--yx-hairline-strong);
 --accent:var(--yx-accent)!important;--accent-text:var(--yx-accent-text);--accent-ink:var(--yx-accent-ink);--field:var(--yx-field);
 --success:var(--yx-success);--warning:var(--yx-warning);--danger:var(--yx-danger)!important;--info:var(--yx-info);
}
:root[data-theme="light"] {
 color-scheme:light;--yx-color-scheme:light;
 --yx-bg:#EBECEF;--yx-bg-raise:#F5F6F8;--yx-bg-deep:#E5E7EB;
 --yx-surface:rgba(255,255,255,.72);--yx-surface-strong:#FFFFFF;--yx-surface-hover:rgba(255,255,255,.94);
 --yx-text:#15181C;--yx-text-2:#454E5C;--yx-text-3:#5F6672;
 --yx-hairline:rgba(21,24,28,.08);--yx-hairline-strong:rgba(21,24,28,.16);
  --yx-accent:#D43A1E;--yx-accent-hover:#FF4D2E;--yx-accent-text:#B93018;--yx-accent-ink:#FFFFFF;--yx-burst:#D43A1E;--yx-live-confirm:#B78A3C;--yx-live-confirm-ink:#FFF8EA;--yx-card-matte:#FFFFFF;--yx-blob-warm:#E4B783;--yx-blob-green:#A3B98D;--yx-blob-blue:#91B4DB;--yx-firework-gold:#B78A3C;--yx-firework-teal:#3D9E91;--yx-firework-blue:#5275CC;--yx-firework-pink:#C76C78;
  --yx-accent-soft:rgba(212,58,30,.10);--yx-accent-surface:#FDECE7;
  --yx-field:#FFFFFF;--yx-success:#286343;--yx-warning:#76511c;--yx-danger:#9b3533;--yx-info:#285e7e;
 --yx-success-bg:#e0f0e5;--yx-warning-bg:#f7edda;--yx-danger-bg:#fae8e6;
 --yx-shadow:rgba(21,24,28,.10);--yx-highlight:rgba(255,255,255,.55);--yx-overlay:rgba(21,24,28,.42);
}
/* 独立浮层按钮不参与文档流，不为现有栏位预留或挤占空间。 */
#yx-theme-toggle {
 position:fixed;top:8px;right:8px;z-index:10000;box-sizing:border-box;
 width:30px;height:30px;min-height:30px;padding:6px;margin:0;border:1px solid var(--hairline-strong);
 border-radius:50%;display:grid;place-items:center;background:var(--surface-strong);color:var(--text);
 box-shadow:0 2px 8px var(--yx-shadow);cursor:pointer;
}
#yx-theme-toggle:hover {background:var(--yx-surface-hover);color:var(--accent-text)}
#yx-theme-toggle:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
#yx-theme-toggle svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#yx-theme-toggle .yx-moon {display:none}
:root[data-tone="light"] #yx-theme-toggle .yx-sun {display:none}
:root[data-tone="light"] #yx-theme-toggle .yx-moon {display:block}

/* 首页样板专属 Token；只在 #home 生效，不改变工作台与直播配色。 */
/* ============================================================
   烟火里 · 登录页设计系统与动效规范
   配色：苍玉（暗）/ 冰川（浅）双主题
   日期：2026-10-21
   ============================================================ */

#home {
  --home-font-display: "Sora", "Noto Sans SC", sans-serif;
  --home-font-body: "Noto Sans SC", sans-serif;

  /* 圆角 */
  --home-r-sm: 8px; --home-r-md: 12px; --home-r-lg: 18px; --home-r-xl: 26px; --home-r-pill: 9999px;

  /* 间距：8px 基准 */
  --home-sp-xs: 4px; --home-sp-sm: 8px; --home-sp-md: 16px; --home-sp-lg: 24px;
  --home-sp-xl: 32px; --home-sp-2xl: 48px; --home-sp-3xl: 64px;

  /* 语义色 */
  --home-success: #34D399; --home-warning: #FBBF24; --home-danger: #F87171; --home-info: #60A5FA;

  /* 动效 Token */
  --home-dur-fast: 160ms;
  --home-dur-base: 240ms;
  --home-dur-slow: 420ms;
  --home-dur-enter: 700ms;
  --home-ease-out: cubic-bezier(.22,.8,.28,1);
  --home-ease-spring: cubic-bezier(.22,1,.36,1);
}

/* ---------- 苍玉（暗色，默认） ---------- */
#home {
  color-scheme: dark;
  --home-bg: #07120E;
  --home-bg-raise: #0C1A15;
  --home-glass: rgba(232,245,239,.05);
  --home-glass-strong: rgba(232,245,239,.09);
  --home-hairline: rgba(232,245,239,.10);
  --home-hairline-strong: rgba(232,245,239,.20);
  --home-toplight: rgba(232,245,239,.16);
  --home-text: #E8F5EF;
  --home-text-2: #93ACA1;
  --home-text-3: #88A096;
  --home-accent: var(--yx-accent);
  --home-accent-soft: var(--yx-accent-text);
  --home-accent-text: var(--yx-accent-text);
  --home-accent-ink: var(--yx-accent-ink);
  --home-field: rgba(232,245,239,.055);
  --home-glow: 0 0 26px color-mix(in srgb,var(--yx-accent) 26%,transparent);
  --home-sh-md: 0 10px 36px rgba(0,0,0,.34);
  --home-sh-lg: 0 28px 90px rgba(0,0,0,.5);
  --home-aurora-op: .30;
}

/* ---------- 冰川（浅色，按 tone 匹配所有浅色主题：晨光/青瓷/玄墨/流沙） ---------- */
:root[data-tone="light"] #home {
  color-scheme: light;
  --home-bg: #F4F6F9;
  --home-bg-raise: #FFFFFF;
  --home-glass: rgba(255,255,255,.76);
  --home-glass-strong: rgba(255,255,255,.94);
  --home-hairline: rgba(19,26,38,.10);
  --home-hairline-strong: rgba(19,26,38,.20);
  --home-toplight: rgba(255,255,255,.95);
  --home-text: #131A26;
  --home-text-2: #5B6472;
  --home-text-3: #66707F;
  --home-accent: var(--yx-accent);
  --home-accent-soft: var(--yx-accent-text);
  --home-accent-text: var(--yx-accent-text);
  --home-accent-ink: var(--yx-accent-ink);
  --home-field: rgba(19,26,38,.045);
  --home-glow: 0 0 22px rgba(48,86,224,.22);
  --home-sh-md: 0 10px 36px rgba(19,26,38,.10);
  --home-sh-lg: 0 28px 90px rgba(19,26,38,.16);
  --home-aurora-op: .10;
}


#home{--home-constant-1:rgba(62,207,165,.28);--home-constant-2:rgba(48,86,224,.18);--home-constant-3:rgba(62,207,165,.4);--home-constant-4:rgba(255,255,255,.4);--home-constant-5:rgba(48,86,224,.28);--home-constant-6:rgba(255,255,255,.5);--home-constant-7:rgba(255,255,255,.45);--home-constant-8:rgba(255,255,255,.35);--home-constant-9:rgba(62,207,165,.16);--home-constant-10:rgba(48,86,224,.14);--home-constant-11:rgba(248,113,113,.14);--home-constant-12:#fff;--home-constant-13:rgba(0,0,0,.18);--home-constant-14:#000;}
:root[data-tone="light"] #home{--home-accent-soft-text:#3056E0;--home-button-end:#3658D4;--home-beam-opacity:.34;}
#home{--home-accent-soft-text:var(--home-accent-soft);--home-button-end:var(--home-accent-soft);--home-beam-opacity:1;}

#yx-theme-panel{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;background:var(--yx-overlay)}#yx-theme-panel[hidden]{display:none!important}#yx-theme-panel .yx-theme-card{background:var(--yx-surface-strong);border:1px solid var(--yx-hairline-strong);border-radius:16px;padding:18px 18px 16px;box-shadow:0 18px 60px var(--yx-shadow);display:grid;gap:12px}#yx-theme-panel .yx-theme-title{margin:0;font-size:12px;color:var(--yx-text-3)}#yx-theme-panel .yx-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.yx-theme-option{display:grid;gap:7px;justify-items:center;padding:10px 12px;border:1px solid var(--yx-hairline);border-radius:12px;background:transparent;color:var(--yx-text-2);font-size:12px;line-height:1;cursor:pointer}.yx-theme-option:hover{border-color:var(--yx-hairline-strong);color:var(--yx-text)}.yx-theme-option[aria-checked="true"]{border-color:var(--yx-accent);color:var(--yx-text);box-shadow:inset 0 0 0 1px var(--yx-accent)}.yx-theme-option:focus-visible{outline:2px solid var(--yx-accent);outline-offset:2px}.yx-theme-dot{width:34px;height:34px;border-radius:50%;display:block}.yx-theme-option[data-yx-theme-opt="dark"] .yx-theme-dot{background:#05060B;box-shadow:inset 0 0 0 2px var(--yx-accent)}.yx-theme-option[data-yx-theme-opt="light"] .yx-theme-dot{background:#EBECEF;box-shadow:inset 0 0 0 2px var(--yx-accent)}

/* v3 视觉收口：卡片实色 / 发丝线 / 选中胶囊（浅色中性值按 tone 匹配所有浅色主题，强调色由各主题块覆盖） */
:root {
 --pv-card:#16181F;
 --pv-field:rgba(255,255,255,.05);
 --pv-line:rgba(255,255,255,.08);
 --pv-line-soft:rgba(255,255,255,.06);
 --pv-nav-hover:rgba(255,255,255,.05);
 --pv-nav-active:#232736;
 --pv-card-shadow:rgba(0,0,0,.5);
 --pv-card-inset:rgba(255,255,255,.04);
 --pv-panel-wash:rgba(255,255,255,.02);
 --pv-focus:rgba(199,208,255,.45);
 --pv-accent-glow:rgba(199,208,255,.5);
 --pv-dust-glow:rgba(150,180,255,.55);
 --yx-mark-shadow:rgba(14,11,8,.22);
}
:root[data-tone="light"] {
 --pv-card:#FFFFFF;
 --pv-field:rgba(21,24,28,.045);
 --pv-line:rgba(21,24,28,.08);
 --pv-line-soft:rgba(21,24,28,.06);
 --pv-nav-hover:rgba(21,24,28,.05);
 --pv-nav-active:#F0F1F4;
 --pv-card-shadow:rgba(21,24,28,.08);
 --pv-card-inset:rgba(255,255,255,0);
 --pv-panel-wash:rgba(21,24,28,.02);
 --pv-focus:rgba(212,58,30,.4);
 --pv-accent-glow:rgba(212,58,30,.35);
 --pv-dust-glow:rgba(150,180,255,.55);
}

/* ================================================================
   指令61O: 多主题系统（切换入口:右上角主题按钮）
   青瓷 jade(墨绿·浅) / 玄墨 ink(黑标·浅) / 极光 violet(深空紫·深) / 流沙 sand(暖沙赤陶·浅)
   全部仅定义颜色变量;对比度由 tests/theme.test.cjs 强制 ≥4.5
   ================================================================ */

/* ---------- 青瓷（jade · 墨绿强调 · 浅色） ---------- */
:root[data-theme="jade"] {
 color-scheme:light;--yx-color-scheme:light;
 --yx-bg:#EAEFE6;--yx-bg-raise:#F4F7F0;--yx-bg-deep:#E4EAE0;
 --yx-surface:rgba(255,255,255,.72);--yx-surface-strong:#FFFFFF;--yx-surface-hover:rgba(255,255,255,.94);
 --yx-text:#141915;--yx-text-2:#3E4942;--yx-text-3:#57635B;
 --yx-hairline:rgba(20,25,21,.08);--yx-hairline-strong:rgba(20,25,21,.16);
 --yx-accent:#1F6B3B;--yx-accent-hover:#2E7F4C;--yx-accent-text:#1B5A31;--yx-accent-ink:#FFFFFF;--yx-burst:#1F6B3B;--yx-live-confirm:#B78A3C;--yx-live-confirm-ink:#FFF8EA;--yx-card-matte:#FFFFFF;--yx-blob-warm:#DFC9A6;--yx-blob-green:#93B8A2;--yx-blob-blue:#91B4DB;--yx-firework-gold:#B78A3C;--yx-firework-teal:#3D9E91;--yx-firework-blue:#5275CC;--yx-firework-pink:#C76C78;
 --yx-accent-soft:rgba(31,107,59,.10);--yx-accent-surface:#E2F0E7;
 --yx-field:#FFFFFF;--yx-success:#286343;--yx-warning:#76511c;--yx-danger:#9b3533;--yx-info:#285e7e;
 --yx-success-bg:#e0f0e5;--yx-warning-bg:#f7edda;--yx-danger-bg:#fae8e6;
 --yx-shadow:rgba(18,28,20,.10);--yx-highlight:rgba(255,255,255,.55);--yx-overlay:rgba(18,28,20,.42);
 --pv-focus:rgba(31,107,59,.40);--pv-accent-glow:rgba(31,107,59,.35);
}

/* ---------- 玄墨（ink · 黑标强调 · 浅色） ---------- */
:root[data-theme="ink"] {
 color-scheme:light;--yx-color-scheme:light;
 --yx-bg:#EDEEF1;--yx-bg-raise:#F6F7F9;--yx-bg-deep:#E7E8EC;
 --yx-surface:rgba(255,255,255,.72);--yx-surface-strong:#FFFFFF;--yx-surface-hover:rgba(255,255,255,.94);
 --yx-text:#16171C;--yx-text-2:#43474F;--yx-text-3:#5C6069;
 --yx-hairline:rgba(22,23,28,.08);--yx-hairline-strong:rgba(22,23,28,.16);
 --yx-accent:#191A22;--yx-accent-hover:#2E3040;--yx-accent-text:#26272F;--yx-accent-ink:#FFFFFF;--yx-burst:#191A22;--yx-live-confirm:#B78A3C;--yx-live-confirm-ink:#FFF8EA;--yx-card-matte:#FFFFFF;--yx-blob-warm:#D8D2C8;--yx-blob-green:#C4CCC2;--yx-blob-blue:#C3CCDD;--yx-firework-gold:#9A8F6E;--yx-firework-teal:#55736B;--yx-firework-blue:#4E5A75;--yx-firework-pink:#8A6E74;
 --yx-accent-soft:rgba(25,26,34,.08);--yx-accent-surface:#E9EAEF;
 --yx-field:#FFFFFF;--yx-success:#286343;--yx-warning:#76511c;--yx-danger:#9b3533;--yx-info:#285e7e;
 --yx-success-bg:#e0f0e5;--yx-warning-bg:#f7edda;--yx-danger-bg:#fae8e6;
 --yx-shadow:rgba(22,23,28,.10);--yx-highlight:rgba(255,255,255,.55);--yx-overlay:rgba(22,23,28,.42);
 --pv-focus:rgba(25,26,34,.40);--pv-accent-glow:rgba(25,26,34,.30);
}

/* ---------- 极光（violet · 深空紫强调 · 深色 AURORA） ---------- */
:root[data-theme="violet"] {
 color-scheme:dark;--yx-color-scheme:dark;
 --yx-bg:#0A0A12;--yx-bg-raise:#12141F;--yx-bg-deep:#07070E;
 --yx-surface:rgba(255,255,255,.05);--yx-surface-strong:#171827;--yx-surface-hover:rgba(255,255,255,.10);
 --yx-text:#EDEFF9;--yx-text-2:#B0B4C8;--yx-text-3:#8A8FA6;
 --yx-hairline:rgba(237,239,249,.10);--yx-hairline-strong:rgba(237,239,249,.20);
 --yx-accent:#C7CBFF;--yx-accent-hover:#D8DCFF;--yx-accent-text:#C7CBFF;--yx-accent-ink:#101223;--yx-burst:#DCE7FF;--yx-live-confirm:#D8B56A;--yx-live-confirm-ink:#20180A;--yx-card-matte:#171827;--yx-blob-warm:#FFCEA0;--yx-blob-green:#C4D6B2;--yx-blob-blue:#B4CCE8;--yx-firework-gold:#FFD98A;--yx-firework-teal:#7CE8D8;--yx-firework-blue:#A8BFFF;--yx-firework-pink:#FF9DAE;
 --yx-accent-soft:rgba(199,203,255,.12);--yx-accent-surface:#232438;
 --yx-field:#171827;--yx-success:#a2d7b5;--yx-warning:#e9c58a;--yx-danger:#ffb5ad;--yx-info:#a6d3e3;
 --yx-success-bg:#203d2b;--yx-warning-bg:#40351f;--yx-danger-bg:#492b2a;
 --yx-shadow:rgba(0,0,0,.5);--yx-highlight:rgba(255,255,255,.08);--yx-overlay:rgba(4,4,12,.72);
 --pv-card:#141625;--pv-nav-active:#232539;--pv-focus:rgba(199,203,255,.45);--pv-accent-glow:rgba(199,203,255,.5);--pv-dust-glow:rgba(199,203,255,.55);
}

/* ---------- 流沙（sand · 暖沙赤陶强调 · 浅色 SAND） ---------- */
:root[data-theme="sand"] {
 color-scheme:light;--yx-color-scheme:light;
 --yx-bg:#EDE9E1;--yx-bg-raise:#F5F2EB;--yx-bg-deep:#E7E2D8;
 --yx-surface:rgba(255,255,255,.72);--yx-surface-strong:#FFFFFF;--yx-surface-hover:rgba(255,255,255,.94);
 --yx-text:#1E1B16;--yx-text-2:#47423A;--yx-text-3:#5F5A50;
 --yx-hairline:rgba(30,27,22,.08);--yx-hairline-strong:rgba(30,27,22,.16);
 --yx-accent:#B0452A;--yx-accent-hover:#C25234;--yx-accent-text:#9A3A22;--yx-accent-ink:#FFFFFF;--yx-burst:#B0452A;--yx-live-confirm:#B78A3C;--yx-live-confirm-ink:#FFF8EA;--yx-card-matte:#FFFFFF;--yx-blob-warm:#E8CBA4;--yx-blob-green:#C2C4A4;--yx-blob-blue:#C0C8DA;--yx-firework-gold:#A87A44;--yx-firework-teal:#57887E;--yx-firework-blue:#6B7A9E;--yx-firework-pink:#A87078;
 --yx-accent-soft:rgba(176,69,42,.10);--yx-accent-surface:#F3E2DB;
 --yx-field:#FFFFFF;--yx-success:#2F6040;--yx-warning:#76511c;--yx-danger:#9B352F;--yx-info:#2E5E77;
 --yx-success-bg:#e2eee2;--yx-warning-bg:#f7edda;--yx-danger-bg:#fae8e6;
 --yx-shadow:rgba(35,30,22,.10);--yx-highlight:rgba(255,255,255,.55);--yx-overlay:rgba(35,30,22,.42);
 --pv-focus:rgba(176,69,42,.40);--pv-accent-glow:rgba(176,69,42,.35);
}

/* ---------- 暗夜鎏金（gold-dark · 香槟金强调 · 深色 GOLD DARK） ---------- */
:root[data-theme="gold-dark"] {
 color-scheme:dark;--yx-color-scheme:dark;
 --yx-bg:#12161C;--yx-bg-raise:#1A2129;--yx-bg-deep:#0D1116;
 --yx-surface:rgba(255,255,255,.035);--yx-surface-strong:#1A2129;--yx-surface-hover:rgba(255,255,255,.07);
 --yx-text:#ECE7DD;--yx-text-2:#A79C89;--yx-text-3:#90897E;
 --yx-hairline:rgba(236,231,221,.10);--yx-hairline-strong:rgba(236,231,221,.20);
 --yx-accent:#D9B978;--yx-accent-hover:#E8CC96;--yx-accent-text:#E0C389;--yx-accent-ink:#201A10;
 --yx-burst:#D9B978;--yx-live-confirm:#D9B978;--yx-live-confirm-ink:#201A10;
 --yx-card-matte:#1A2129;--yx-blob-warm:#D9B978;--yx-blob-green:#8FA88F;--yx-blob-blue:#8FA0BC;
 --yx-firework-gold:#E8CC96;--yx-firework-teal:#7FBFA8;--yx-firework-blue:#A8BCE8;--yx-firework-pink:#D9A0A8;
 --yx-accent-soft:rgba(217,185,120,.12);--yx-accent-surface:#3D3426;
 --yx-field:#141A20;--yx-success:#8FC99A;--yx-warning:#E0B25E;--yx-danger:#D97070;--yx-info:#8FB0DD;
 --yx-success-bg:#24382A;--yx-warning-bg:#3A3020;--yx-danger-bg:#3A2424;
 --yx-shadow:rgba(0,0,0,.5);--yx-highlight:rgba(255,255,255,.06);--yx-overlay:rgba(8,10,14,.75);
 --pv-focus:rgba(217,185,120,.45);--pv-accent-glow:rgba(217,185,120,.35);--pv-dust-glow:rgba(217,185,120,.5);
}

/* ---------- 暖米轻奢（cream · 香槟金强调 · 浅色 CREAM） ---------- */
:root[data-theme="cream"] {
 color-scheme:light;--yx-color-scheme:light;
 --yx-bg:#FBFAF7;--yx-bg-raise:#F7F6F1;--yx-bg-deep:#F5F4F2;
 --yx-surface:rgba(255,255,255,.72);--yx-surface-strong:#FFFFFF;--yx-surface-hover:rgba(255,255,255,.94);
 --yx-text:#2A2620;--yx-text-2:#746D62;--yx-text-3:#726D65;
 --yx-hairline:rgba(42,38,32,.09);--yx-hairline-strong:rgba(42,38,32,.17);
 --yx-accent:#B08D54;--yx-accent-hover:#C09A5E;--yx-accent-text:#876839;--yx-accent-ink:#201A10;
 --yx-burst:#B08D54;--yx-live-confirm:#B08D54;--yx-live-confirm-ink:#FFF8EA;
 --yx-card-matte:#FFFFFF;--yx-blob-warm:#E4C9A0;--yx-blob-green:#B7C2A6;--yx-blob-blue:#B8C3D6;
 --yx-firework-gold:#B08D54;--yx-firework-teal:#5E9B8C;--yx-firework-blue:#7088B8;--yx-firework-pink:#C08C8C;
 --yx-accent-soft:rgba(176,141,84,.10);--yx-accent-surface:#F3EADA;
 --yx-field:#FFFFFF;--yx-success:#3D7A53;--yx-warning:#926521;--yx-danger:#AD5151;--yx-info:#4E6F9D;
 --yx-success-bg:#E6F0E8;--yx-warning-bg:#F7EEDD;--yx-danger-bg:#F8E6E6;
 --yx-shadow:rgba(80,64,40,.08);--yx-highlight:rgba(255,255,255,.55);--yx-overlay:rgba(42,38,32,.42);
 --pv-focus:rgba(176,141,84,.40);--pv-accent-glow:rgba(176,141,84,.35);--pv-dust-glow:rgba(176,141,84,.45);
}

/* 主题色卡:每个主题一枚固定色环 */
.yx-theme-option[data-yx-theme-opt="light"] .yx-theme-dot{background:#EBECEF;box-shadow:inset 0 0 0 2px #D43A1E}
.yx-theme-option[data-yx-theme-opt="jade"] .yx-theme-dot{background:#EAEFE6;box-shadow:inset 0 0 0 2px #1F6B3B}
.yx-theme-option[data-yx-theme-opt="ink"] .yx-theme-dot{background:#EDEEF1;box-shadow:inset 0 0 0 2px #191A22}
.yx-theme-option[data-yx-theme-opt="sand"] .yx-theme-dot{background:#EDE9E1;box-shadow:inset 0 0 0 2px #B0452A}
.yx-theme-option[data-yx-theme-opt="violet"] .yx-theme-dot{background:#0A0A12;box-shadow:inset 0 0 0 2px #C7CBFF}
.yx-theme-option[data-yx-theme-opt="dark"] .yx-theme-dot{background:#05060B;box-shadow:inset 0 0 0 2px #C7D0FF}
.yx-theme-option[data-yx-theme-opt="gold-dark"] .yx-theme-dot{background:#12161C;box-shadow:inset 0 0 0 2px #D9B978}
.yx-theme-option[data-yx-theme-opt="cream"] .yx-theme-dot{background:#FBFAF7;box-shadow:inset 0 0 0 2px #B08D54}

/* ===== 61U 全局细节打磨：动效令牌 · 按压触感 · 焦点环 · 字体体系 · 下拉统一 ===== */
:root{
  --yx-dur-fast:120ms;--yx-dur:200ms;--yx-dur-slow:300ms;
  --yx-ease:cubic-bezier(.25,1,.5,1);
}
/* 字体体系（方案B）：本地 Noto Sans SC + Sora 已由 fonts.css 提供 */
html body{font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',system-ui,-apple-system,sans-serif}
/* 焦点环全站统一品牌红 */
html button:focus-visible,html a:focus-visible,html select:focus-visible,html input:focus-visible,html textarea:focus-visible,html summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--yx-accent,var(--accent))!important;outline-offset:3px!important}
/* 按压触感：120ms 回弹归位 */
html button:not(:disabled):active{transform:scale(.97)!important;transition-duration:var(--yx-dur-fast)!important}
html button.primary:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 6px 16px -6px color-mix(in srgb,var(--yx-accent,var(--accent)) 45%,transparent)}
html button.primary:not(:disabled):active{transform:scale(.97);box-shadow:0 2px 8px -4px color-mix(in srgb,var(--yx-accent,var(--accent)) 40%,transparent)}
/* 表单控件过渡收窄（根治 transition:all） */
html select,html input,html textarea{transition:border-color var(--yx-dur) var(--yx-ease),background var(--yx-dur) var(--yx-ease),box-shadow var(--yx-dur) var(--yx-ease),color var(--yx-dur) var(--yx-ease)}
/* 下拉框统一：一枚 chevron 打天下 */
html select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--yx-text-3,var(--muted)) 50%),linear-gradient(135deg,var(--yx-text-3,var(--muted)) 50%,transparent 50%);background-position:calc(100% - 18px) 55%,calc(100% - 13px) 55%;background-size:5px 5px;background-repeat:no-repeat;padding-right:30px!important}
html select:focus{border-color:var(--yx-accent,var(--accent))!important;box-shadow:0 8px 24px -12px color-mix(in srgb,var(--yx-shadow,rgba(0,0,0,.2)) 60%,transparent)!important}
/* 数字等宽：价格/余额/队列 */
html #rPrice,html #ciCost,html #rBalance,html .m-cost,html #liveQueue{font-variant-numeric:tabular-nums}
html .m-cost{font-size:14px!important}
/* 滚动条基线（未自定义处统一） */
html ::-webkit-scrollbar{width:6px;height:6px}
html ::-webkit-scrollbar-track{background:transparent}
html ::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--yx-text) 18%,transparent);border-radius:999px}
html ::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--yx-text) 30%,transparent)}
/* textarea 手感 */
html textarea{resize:vertical}
/* 文本选区品牌化 */
html ::selection{background:color-mix(in srgb,var(--yx-accent,var(--accent)) 22%,transparent)}
/* 作品卡悬浮 */
html #works .r-work{transition:transform var(--yx-dur) var(--yx-ease),box-shadow var(--yx-dur) var(--yx-ease)}
html #works .r-work:hover{transform:translateY(-2px);box-shadow:0 14px 32px -18px color-mix(in srgb,var(--yx-shadow,rgba(0,0,0,.25)) 70%,transparent)}
/* 动效弱化偏好：按压/悬浮位移归零，色彩反馈保留 */
@media (prefers-reduced-motion:reduce){
  html button:not(:disabled):active,html button.primary:not(:disabled):hover,html #works .r-work:hover{transform:none}
}
/* 图文种草 · 账本式工作台独立页视觉令牌。颜色只在本文件定义，页面样式统一引用 var()，避免游离硬编码。 */
:root{--x-ink:rgb(20 23 26);--x-paper:rgb(250 249 247);--x-white:rgb(255 255 255);--x-card:var(--x-white);--x-text:rgb(28 32 35);--x-muted:rgb(108 116 121);--x-line:rgb(226 228 226);--x-fire:rgb(214 71 31);--x-fire-soft:rgb(253 239 233);--x-ok:rgb(31 110 76);--x-ok-soft:rgb(233 244 237);--x-side-2:rgb(195 200 203);--x-side-text:rgb(232 234 234);--x-side-muted:rgb(166 173 178);--x-side-active:rgba(255,255,255,.09);--x-side-note:rgb(140 148 153);--x-side-line:rgb(55 60 64);--x-wash:rgb(252 251 249);--x-frame:rgb(243 241 238);--x-chip:rgb(240 238 235);--x-disabled:rgb(188 190 190);--x-skeleton:rgb(235 233 230)}

/* ===== 指令71：AI 门店诊断独立页颜色令牌 =====
   颜色只在 theme.css 定义（tests/theme.test.cjs 全局护栏）；
   public/diagnose.css 只引用 var(--dg-*)，避免与 --text/--bg 等全局令牌被 !important 覆盖。 */
:root{
 --dg-ink-900:#14171A;
 --dg-ink-800:#1D2226;
 --dg-ink-700:#2A3035;
 --dg-paper:#FAF9F7;
 --dg-paper-2:#F3F1EE;
 --dg-line:#E2DFDA;
 --dg-text:#1A1D1F;
 --dg-text-2:#5C6268;
 --dg-text-3:#8A9096;
 --dg-fire:#D6471F;
 --dg-fire-soft:#FBEDE7;
 --dg-fire-line:#E9A188;
 --dg-ok:#2F7A55;
 --dg-ok-soft:#E9F2EC;
 --dg-x1:#EDECE9;
 --dg-x2:#4A403A;
 --dg-x3:#221C19;
 --dg-x4:#8C9499;
 --dg-x5:#7E878D;
 --dg-x6:#4C555B;
 --dg-x7:#fff;
 --dg-x8:rgba(214,71,31,.18);
 --dg-x9:#A6ADB1;
 --dg-x10:#C9CFD2;
 --dg-x11:#6E777D;
 --dg-x12:#D7DADB;
 --dg-x13:#6B747A;
 --dg-x14:#C3C8CB;
 --dg-x15:#4A5359;
 --dg-x16:#AEB5B9;
 --dg-x17:#3E6B54;
 --dg-x18:#9FCDB2;
 --dg-x19:rgba(47,122,85,.12);
 --dg-x20:#8A4C32;
 --dg-x21:#E7AB95;
 --dg-x22:rgba(214,71,31,.12);
 --dg-x23:#5A6166;
 --dg-x24:#E8EAEA;
 --dg-x25:rgba(250,249,247,.92);
 --dg-x26:#E6E1DA;
 --dg-x27:#C9C4BC;
 --dg-x28:#BDB7AE;
 --dg-x29:#BE3C19;
 --dg-x30:#C9E2D3;
}
