/* BizPeel-inspired Swiss Editorial & Pastel Bento Design Tokens */
:root {
  /* Core surfaces */
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #eeeee8;
  --surface-3: #e5e5de;
  --hover: #f2f2ec;
  --grid-line: rgba(17, 17, 17, 0.045);

  /* Editorial report surfaces */
  --paper-outer: #e9e7e1;
  --paper-cream: #faf9f5;
  --paper-sand: #f5f3ee;
  --paper-tag: #edebe5;

  /* Borders & rings */
  --border: #deded7;
  --border-strong: #b8b8b0;
  --border-ink: #151515;
  --ring: #60605c;
  --overlay: rgba(17, 17, 17, 0.48);

  /* Ink & typography colors */
  --text: #111111;
  --text-2: #343432;
  --text-3: #60605c;
  --text-inverse: #ffffff;
  --on-color: #111111;

  /* Primary interactive ink (BizPeel monochrome CTA) */
  --brand: #111111;
  --brand-hover: #2b2b28;
  --brand-soft: #eeeee8;
  --brand-ink: #111111;
  --on-brand: #ffffff;

  /* BizPeel 4-pastel signature bento palette */
  --mint: #7ee8b5;
  --mint-soft: rgba(126, 232, 181, 0.22);
  --butter: #ffe45c;
  --butter-soft: rgba(255, 228, 92, 0.28);
  --sky: #8fd3ff;
  --sky-soft: rgba(143, 211, 255, 0.24);
  --lilac: #9b8cff;
  --lilac-soft: rgba(155, 140, 255, 0.20);
  --peach: #ffb38a;

  /* Editorial report 4-accent square system */
  --ed-cobalt: #2b44ff;
  --ed-cobalt-hover: #1f36e0;
  --ed-coral: #ff5a3c;
  --ed-teal: #19c6be;
  --ed-teal-soft: rgba(25, 198, 190, 0.11);
  --ed-yellow: #ffd23f;

  /* Semantic status */
  --pos: #186641;
  --pos-soft: #e3f7ec;
  --neg: #b42318;
  --neg-soft: #fdecec;
  --neg-ink: #b42318;
  --warn: #725500;
  --warn-soft: #fff5c4;
  --warn-fill: #ffe45c;
  --info: #2b44ff;
  --info-soft: #e8ecff;

  /* Charts */
  --chart-1: #19c6be;
  --chart-peak: #ff5a3c;
  --chart-2: #2b44ff;
  --chart-3: #111111;
  --chart-4: #9b8cff;
  --chart-grid: #e5e5de;

  /* Flat editorial elevation (borders > shadows) */
  --shadow-1: none;
  --shadow-2: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-3: 0 24px 60px rgba(17, 17, 17, 0.20);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Type scale */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 36px;
  --fs-kpi: 28px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Font families */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Songti SC", "Noto Serif SC", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-num: "Inter", ui-monospace, "SF Mono", monospace;

  /* Layers & motion */
  --z-header: 20;
  --z-dropdown: 30;
  --z-modal: 40;
  --z-toast: 50;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur: 220ms;

  /* Layout chrome */
  --header-h: 64px;
  --container-max: 1200px;
  --footer-bg: var(--surface);
  --kpi-bg: var(--surface);
  --input-bg: var(--surface);
  --focus-ring: 0 0 0 3px rgba(17, 17, 17, 0.16);
}

:root[data-theme="dark"] {
  --bg: #050505;
  --surface: #101010;
  --surface-2: #1a1a1a;
  --surface-3: #242424;
  --hover: #1d1d1c;
  --grid-line: rgba(255, 255, 255, 0.055);

  --paper-outer: #0d0d0c;
  --paper-cream: #161614;
  --paper-sand: #1c1c19;
  --paper-tag: #242420;

  --border: #262626;
  --border-strong: #3a3a3a;
  --border-ink: #f6f6f3;
  --ring: #b8b8b0;
  --overlay: rgba(0, 0, 0, 0.72);

  --text: #f6f6f3;
  --text-2: #deded7;
  --text-3: #a8a8a0;
  --text-inverse: #111111;
  --on-color: #111111;

  --brand: #f6f6f3;
  --brand-hover: #ffffff;
  --brand-soft: #222220;
  --brand-ink: #f6f6f3;
  --on-brand: #111111;

  --pos: #7ee8b5;
  --pos-soft: rgba(126, 232, 181, 0.14);
  --neg: #ff958b;
  --neg-soft: rgba(255, 149, 139, 0.14);
  --neg-ink: #ff958b;
  --warn: #ffe45c;
  --warn-soft: rgba(255, 228, 92, 0.14);
  --warn-fill: #ffe45c;
  --info: #8fd3ff;
  --info-soft: rgba(143, 211, 255, 0.14);

  --ed-teal-soft: rgba(25, 198, 190, 0.14);
  --chart-3: #f6f6f3;
  --chart-grid: #262626;

  --shadow-1: none;
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.65);
  --footer-bg: var(--surface);
  --focus-ring: 0 0 0 3px rgba(246, 246, 243, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}
