/* 디자인 토큰: 밝은 테마 기본, [data-theme="dark"] 로 다크 테마 */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "D2Coding", Menlo, Consolas, monospace;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-hover: #f3f5f9;
  --border: #e4e7ec;
  --border-strong: #cfd4dc;
  --text: #121826;
  --text-2: #475467;
  --muted: #6b7385;

  --primary: #2f5bea;
  --primary-hover: #234ad0;
  --primary-weak: #edf1fe;
  --primary-text: #2448c4;
  --on-primary: #ffffff;

  /* 상태 색은 항상 아이콘·글자와 함께 쓴다 */
  --good: #0ca30c;
  --good-text: #067306;
  --good-bg: #e9f6e9;
  --critical: #d03b3b;
  --critical-text: #b12828;
  --critical-bg: #fdeded;
  --warning: #e9a00a;
  --warning-text: #8a5800;
  --warning-bg: #fff5de;
  --neutral: #98a0ad;
  --neutral-bg: #eef0f3;

  --term-bg: #0d1014;
  --term-surface: #161a20;
  --term-border: #262c35;
  --term-text: #d6dae1;
  --term-muted: #7f8896;
  --term-user: #5fd38d;
  --term-path: #6aa8ff;
  --term-err: #ff8a80;
  --term-sys: #e7c46a;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.22);
  --topbar-h: 60px;
  --sidebar-w: 248px;
}

[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #161a21;
  --surface-2: #1b2029;
  --surface-hover: #1f2530;
  --border: #282e39;
  --border-strong: #3a4250;
  --text: #e8eaef;
  --text-2: #b6bcc8;
  --muted: #8b93a3;

  --primary: #5b80ff;
  --primary-hover: #7695ff;
  --primary-weak: rgba(91, 128, 255, 0.15);
  --primary-text: #92adff;
  --on-primary: #ffffff;

  --good: #0ca30c;
  --good-text: #4fd14f;
  --good-bg: rgba(12, 163, 12, 0.16);
  --critical: #e05252;
  --critical-text: #ff8b8b;
  --critical-bg: rgba(224, 82, 82, 0.16);
  --warning: #fab219;
  --warning-text: #f8c55a;
  --warning-bg: rgba(250, 178, 25, 0.14);
  --neutral: #6f7888;
  --neutral-bg: #232934;

  --term-bg: #0a0c10;
  --term-surface: #12161c;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
