/* =============================================================
   勤天工作台 · 设计令牌（tokens.css）
   主题切换：<html data-theme="graphite | sand | night">
   ============================================================= */

:root,
:root[data-theme="graphite"] {
  color-scheme: dark;

  --c-brand: #F7C948;
  --c-brand-hover: #FFD75E;
  --c-brand-active: #E2B13A;
  --c-brand-ink: #1E3A5F;
  --c-navy: #1E3A5F;
  --c-cream: #FBF3DF;
  --c-accent: #F2704A;
  --c-brand-text: #F7C948;
  --c-brand-text-hover: #FFD75E;

  --c-bg: #14161B;
  --c-bg-soft: #1B1F27;
  --c-panel: #101318;
  --c-panel-glow: rgba(247, 201, 72, 0.14);
  --c-tick: rgba(247, 201, 72, 0.22);
  --c-surface: #1C2029;
  --c-surface-soft: #232833;
  --c-surface-hover: #2A303C;
  --c-field: #161A21;

  --c-text: #F3F5F9;
  --c-text-2: #AEB6C4;
  --c-text-3: #7B8393;

  --c-line: #2C323D;
  --c-line-strong: #3B4351;

  --c-danger: #F2704A;
  --c-success: #57C08A;
  --c-focus: rgba(247, 201, 72, 0.34);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sh-2: 0 12px 32px rgba(0, 0, 0, 0.38);
  --sh-3: 0 28px 70px rgba(0, 0, 0, 0.48);
  --sh-brand: 0 12px 26px rgba(247, 201, 72, 0.20);
  --sh-inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

:root[data-theme="sand"] {
  color-scheme: light;

  --c-brand: #F7C948;
  --c-brand-hover: #FFD75E;
  --c-brand-active: #E2B13A;
  --c-brand-ink: #1E3A5F;
  --c-navy: #1E3A5F;
  --c-cream: #FBF3DF;
  --c-accent: #C9481F;
  --c-brand-text: #9A6A05;
  --c-brand-text-hover: #7A5303;

  --c-bg: #F6EEDC;
  --c-bg-soft: #FBF6E8;
  --c-panel: #F1E5CB;
  --c-panel-glow: rgba(242, 185, 46, 0.26);
  --c-tick: rgba(30, 58, 95, 0.18);
  --c-surface: #FFFCF3;
  --c-surface-soft: #F8F0DD;
  --c-surface-hover: #F2E7CF;
  --c-field: #FFFDF8;

  --c-text: #1E3A5F;
  --c-text-2: #56657A;
  --c-text-3: #7E8A9B;

  --c-line: #E4D8BE;
  --c-line-strong: #D2C1A0;

  --c-danger: #D9502F;
  --c-success: #2F9A63;
  --c-focus: rgba(30, 58, 95, 0.18);

  --sh-1: 0 1px 2px rgba(30, 58, 95, 0.08);
  --sh-2: 0 10px 26px rgba(30, 58, 95, 0.10);
  --sh-3: 0 24px 60px rgba(30, 58, 95, 0.14);
  --sh-brand: 0 10px 22px rgba(226, 177, 58, 0.32);
  --sh-inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

:root[data-theme="night"] {
  color-scheme: dark;

  --c-brand: #FFD24A;
  --c-brand-hover: #FFDE74;
  --c-brand-active: #E9BC33;
  --c-brand-ink: #12233A;
  --c-navy: #1E3A5F;
  --c-cream: #FBF3DF;
  --c-accent: #FF7B54;
  --c-brand-text: #FFD24A;
  --c-brand-text-hover: #FFDE74;

  --c-bg: #000000;
  --c-bg-soft: #08090C;
  --c-panel: #040507;
  --c-panel-glow: rgba(247, 201, 72, 0.12);
  --c-tick: rgba(247, 201, 72, 0.16);
  --c-surface: #0A0B0E;
  --c-surface-soft: #111318;
  --c-surface-hover: #181B21;
  --c-field: #060709;

  --c-text: #F5F7FA;
  --c-text-2: #9AA2B1;
  --c-text-3: #6A7180;

  --c-line: #1A1D23;
  --c-line-strong: #2A2F38;

  --c-danger: #FF7B54;
  --c-success: #57C08A;
  --c-focus: rgba(255, 210, 74, 0.30);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.8);
  --sh-2: 0 12px 32px rgba(0, 0, 0, 0.85);
  --sh-3: 0 28px 70px rgba(0, 0, 0, 0.9);
  --sh-brand: 0 12px 30px rgba(255, 210, 74, 0.18);
  --sh-inset-light: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

:root {
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 72px;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 30px;
  --fs-3xl: 38px;

  --lh-tight: 1.28;
  --lh-normal: 1.62;
  --ls-tight: -0.01em;
  --ls-wide: 0.18em;

  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --h-control: 46px;
  --h-control-sm: 40px;
  --w-card: 404px;
  --dur-fast: 0.15s;
  --dur-base: 0.2s;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}
