:root {
  --wj-font: "Segoe UI", Inter, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --wj-bg: #f4f6f7;
  --wj-sidebar: #ffffff;
  --wj-surface: #ffffff;
  --wj-raised: #edf0f2;
  --wj-hover: #f4f6f7;
  --wj-line: #d9dfe4;
  --wj-text: #20282f;
  --wj-muted: #5e6b76;
  --wj-accent: #b94f1d;
  --wj-accent-ink: #ffffff;
  --wj-accent-soft: #fff1e8;
  --wj-positive: #167653;
  --wj-positive-soft: #e7f5ee;
  --wj-negative: #b13e3e;
  --wj-negative-soft: #fff0ef;
  --wj-warning: #875b14;
  --wj-warning-soft: #fff5df;
  --wj-info: #345c99;
  --wj-info-soft: #edf3fc;
  --wj-shadow-sm: 0 1px 2px rgb(23 32 39 / 5%);
  --wj-shadow-popover: 0 18px 44px rgb(12 18 23 / 22%);
  --wj-radius-control: 6px;
  --wj-radius-panel: 8px;
  --surface: var(--wj-surface);
  --text: var(--wj-text);
  --muted: var(--wj-muted);
  --line: var(--wj-line);
  --orange: var(--wj-accent);
  color-scheme: light;
  font-family: var(--wj-font);
  font-synthesis: none;
  font-variant-numeric: lining-nums tabular-nums;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] {
  --wj-bg: #171a1e;
  --wj-sidebar: #121518;
  --wj-surface: #202429;
  --wj-raised: #292e34;
  --wj-hover: #2d3339;
  --wj-line: #3b424a;
  --wj-text: #edf0f2;
  --wj-muted: #b2bac1;
  --wj-accent: #ff9a64;
  --wj-accent-ink: #29170e;
  --wj-accent-soft: #36251e;
  --wj-positive: #72d5ad;
  --wj-positive-soft: #203a31;
  --wj-negative: #ff9e97;
  --wj-negative-soft: #41282a;
  --wj-warning: #f1ca78;
  --wj-warning-soft: #3b3425;
  --wj-info: #a6c0f2;
  --wj-info-soft: #293448;
  --wj-shadow-sm: 0 1px 2px rgb(0 0 0 / 24%);
  --wj-shadow-popover: 0 18px 44px rgb(0 0 0 / 48%);
  --surface: var(--wj-surface);
  --text: var(--wj-text);
  --muted: var(--wj-muted);
  --line: var(--wj-line);
  --orange: var(--wj-accent);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body[data-portal="customer"] {
  --cw-bg: var(--wj-bg);
  --cw-sidebar: var(--wj-sidebar);
  --cw-surface: var(--wj-surface);
  --cw-elevated: var(--wj-raised);
  --cw-input: var(--wj-surface);
  --cw-text: var(--wj-text);
  --cw-muted: var(--wj-muted);
  --cw-line: var(--wj-line);
  --cw-accent: var(--wj-accent);
  --cw-accent-text: var(--wj-accent-ink);
  --cw-accent-soft: var(--wj-accent-soft);
  --cw-positive: var(--wj-positive);
  --cw-positive-soft: var(--wj-positive-soft);
  --cw-negative: var(--wj-negative);
  --cw-negative-soft: var(--wj-negative-soft);
  --cw-warning: var(--wj-warning);
  --cw-warning-soft: var(--wj-warning-soft);
  --cw-info: var(--wj-info);
  --cw-info-soft: var(--wj-info-soft);
  --cw-shadow: var(--wj-shadow-sm);
  --surface: var(--wj-surface);
  --text: var(--wj-text);
  --muted: var(--wj-muted);
  --line: var(--wj-line);
  --orange: var(--wj-accent);
  font-family: var(--wj-font);
  color: var(--wj-text);
}
