/* OpenLink design tokens (2.5.0 UI). Bản giống hệt: server/public/tokens.css – sửa cả hai (test so khớp).
   Mặc định: tối (charcoal / xanh đen, accent xanh dương nhẹ). data-theme="light" | "system" do người dùng chọn. */
:root {
  color-scheme: dark;
  /* màu nền / bề mặt */
  --bg: #0b0f17;
  --surface: #121927;
  --surface-2: #182132;
  --surface-3: #1f2a3f;
  --border: #243049;
  --border-strong: #33415f;
  /* chữ */
  --text: #e8edf6;
  --text-2: #b9c3d6;
  --muted: #8b97ae;
  /* accent + trạng thái */
  --accent: #6aa8ff;
  --accent-strong: #2d6fdf;
  --accent-hover: #3b7ef0;
  --accent-soft: rgba(106, 168, 255, .13);
  --on-accent: #ffffff;
  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, .13);
  --warn: #f5b942;
  --warn-soft: rgba(245, 185, 66, .13);
  --bad: #ff7b7b;
  --bad-strong: #d63c3c;
  --bad-soft: rgba(255, 123, 123, .13);
  /* typography */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-lg: 15px;
  --fs-xl: 20px;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  /* spacing (4px grid) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  /* radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 999px;
  /* shadow / focus */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-2: 0 10px 30px rgba(0, 0, 0, .45);
  --ring: 0 0 0 3px rgba(106, 168, 255, .45);
  /* controls */
  --ctl-h: 34px;
  --ctl-h-sm: 28px;
  --dur: .15s;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eceff6;
  --border: #dde3ee;
  --border-strong: #c5cede;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5f6b80;
  --accent: #1f62d6;
  --accent-strong: #1f62d6;
  --accent-hover: #2a6fe6;
  --accent-soft: rgba(31, 98, 214, .1);
  --ok: #0f8a55;
  --ok-soft: rgba(15, 138, 85, .1);
  --warn: #a76200;
  --warn-soft: rgba(217, 140, 0, .12);
  --bad: #c62828;
  --bad-strong: #c62828;
  --bad-soft: rgba(198, 40, 40, .1);
  --sh-1: 0 1px 2px rgba(15, 23, 42, .08);
  --sh-2: 0 10px 30px rgba(15, 23, 42, .18);
  --ring: 0 0 0 3px rgba(31, 98, 214, .3);
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #f3f5f9;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --surface-3: #eceff6;
    --border: #dde3ee;
    --border-strong: #c5cede;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #5f6b80;
    --accent: #1f62d6;
    --accent-strong: #1f62d6;
    --accent-hover: #2a6fe6;
    --accent-soft: rgba(31, 98, 214, .1);
    --ok: #0f8a55;
    --ok-soft: rgba(15, 138, 85, .1);
    --warn: #a76200;
    --warn-soft: rgba(217, 140, 0, .12);
    --bad: #c62828;
    --bad-strong: #c62828;
    --bad-soft: rgba(198, 40, 40, .1);
    --sh-1: 0 1px 2px rgba(15, 23, 42, .08);
    --sh-2: 0 10px 30px rgba(15, 23, 42, .18);
    --ring: 0 0 0 3px rgba(31, 98, 214, .3);
  }
}
