/* Div-PM 색과 글꼴. 색은 여기 한 곳에서만 정한다(docs/design/mockup.html 기준).
   Basecoat 변수 이름(--background 등)을 그대로 덮어쓰고, 상태 색은 --ok 등으로 더한다. */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("../vendor/pretendard-1.3.9/PretendardVariable.302ec55f5b43.woff2") format("woff2-variations");
}

:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #0a0a0a;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #0a0a0a;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #a3a3a3;
  --destructive: #dc2626;
  --sidebar: #f5f5f5;
  --sidebar-foreground: #0a0a0a;
  --sidebar-border: #e5e5e5;

  /* 상태 색: 글자 / 배지 바탕 */
  --ok: #16a34a;   --ok-bg: #f0fdf4;
  --warn: #d97706; --warn-bg: #fffbeb;
  --bad: #dc2626;  --bad-bg: #fef2f2;
  --info: #2563eb; --info-bg: #eff6ff;
}

html.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #171717;
  --card-foreground: #fafafa;
  --popover: #171717;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #0a0a0a;
  --secondary: #1f1f1f;
  --secondary-foreground: #fafafa;
  --muted: #1f1f1f;
  --muted-foreground: #a3a3a3;
  --accent: #1f1f1f;
  --accent-foreground: #fafafa;
  --border: #2a2a2a;
  --input: #2a2a2a;
  --ring: #525252;
  --destructive: #f87171;
  --sidebar: #1f1f1f;
  --sidebar-foreground: #fafafa;
  --sidebar-border: #2a2a2a;

  --ok: #4ade80;   --ok-bg: #0f2417;
  --warn: #fbbf24; --warn-bg: #2a2008;
  --bad: #f87171;  --bad-bg: #2c1212;
  --info: #60a5fa; --info-bg: #0f1c33;
}

/* 상태 배지: Basecoat .badge에 상태 색만 더한다. 글자를 늘 함께 쓴다. */
.badge.status[data-status="ok"], .badge.status[data-status="done"] { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.status[data-status="risk"], .badge.status[data-status="today"] { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.status[data-status="late"], .badge.status[data-status="blocked"] { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.status[data-status="active"] { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge.status[data-status="hold"], .badge.status[data-status="shipped"], .badge.status[data-status="candidate"],
.badge.status[data-status="stopped"], .badge.status[data-status="waiting"], .badge.status[data-status="na"] { background: var(--muted); color: var(--muted-foreground); border-color: transparent; }
