/* Factorium — generated from tokens.json */
:root, [data-theme="light"] {
  --surface: #f2f5fa;
  --surface-raised: #ffffff;
  --surface-sunken: #e9edf3;
  --line: #d6dde7;
  --line-strong: #7d8aa0;
  --ink: #121a2a;
  --ink-muted: #3d4a5e;
  --ink-disabled: #5f6a7d;
  --brand: #1f4e9c;
  --brand-strong: #163a78;
  --brand-soft: #e6edf8;
  --brand-muted: #a9bfe4;
  --on-brand: #ffffff;
  --focus: var(--brand);
  --sidebar: #0f2547;
  --sidebar-active: #1f4e9c;
  --on-sidebar: #ffffff;
  --on-sidebar-muted: #a9b8d0;
  --success: #18703f;
  --success-soft: #e2f2e8;
  --warning: #8a5300;
  --warning-soft: #fcf0d9;
  --danger: #b42318;
  --danger-soft: #fbe6e4;
  --on-danger: #ffffff;
  --hold: #5a4a8a;
  --hold-soft: #ece8f6;
  --neutral-soft: #e9edf3;
  --shadow-1: 0 1px 2px rgba(16,30,54,0.06);
  --shadow-2: 0 8px 24px rgba(16,30,54,0.14);
}
[data-theme="dark"] {
  --surface: #0d131d;
  --surface-raised: #151d2a;
  --surface-sunken: #090e16;
  --line: #283246;
  --line-strong: #66748c;
  --ink: #e6ebf2;
  --ink-muted: #9caabe;
  --ink-disabled: #7a879b;
  --brand: #78a6f2;
  --brand-strong: #a6c4f7;
  --brand-soft: #14233d;
  --brand-muted: #2f4f84;
  --on-brand: #0b1424;
  --focus: var(--brand);
  --sidebar: #0a1120;
  --sidebar-active: #1c3462;
  --on-sidebar: #e6ebf2;
  --on-sidebar-muted: #8d9bb2;
  --success: #5cc98a;
  --success-soft: #0f2a1c;
  --warning: #f0bb5a;
  --warning-soft: #2d2210;
  --danger: #ff8b80;
  --danger-soft: #381513;
  --on-danger: #1a0806;
  --hold: #b9a8ec;
  --hold-soft: #221c38;
  --neutral-soft: #222b3b;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.55);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --font-sans: "IBM Plex Sans Thai", "IBM Plex Sans", "Noto Sans Thai", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.display { font-family: var(--font-sans); font-size: 32px; line-height: 44px; font-weight: 600; letter-spacing: -0.01em; }
.heading-1 { font-family: var(--font-sans); font-size: 24px; line-height: 34px; font-weight: 600; }
.heading-2 { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.heading-3 { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; }
.body-sm { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 500; }
.button { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 500; }
.caption { font-family: var(--font-sans); font-size: 13px; line-height: 21px; font-weight: 400; }
.code { font-family: var(--font-mono); font-size: 14px; line-height: 22px; font-weight: 500; }
.metric { font-family: var(--font-mono); font-size: 28px; line-height: 36px; font-weight: 500; }
/* สีไอคอนเมนูบนแถบข้างสีเข้ม (เพิ่มเอง ไม่ได้ generate จาก tokens.json) */
:root {
  --side-icon: #8fb5f5;
}
