/* Prototie PM design tokens.
   Source of truth for brand values: the Figma file "프로토타이 PM" (login / landing frames).
   Primary #3D84FF, ink #1E1F2B, hairline #EBEBEF, 12px control radius, white-to-blue hero wash.
   Concept: a quiet workspace where the documents are the loudest thing on screen. Brand blue is
   for the agent's actions and traceability links; status colours never double as decoration. */
:root {
  /* brand */
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;
  --blue-300: #9cc0ff;
  --blue-500: #3d84ff;
  --blue-600: #2f6fe4;
  --blue-700: #2259c0;
  --ink-900: #1e1f2b;
  --ink-700: #3a3c4c;

  /* surfaces & text */
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #e8ebf2;
  --line: #ebebef;
  --line-strong: #d4d7e0;
  --fg: #1e1f2b;
  --fg-2: #4d5061;
  --fg-3: #6b6f82;
  --accent: var(--blue-500); /* fills: buttons, bars, checked boxes */
  --accent-hover: var(--blue-600);
  --accent-text: var(--blue-600); /* blue used as text or thin strokes on light surfaces (AA) */
  --accent-soft: var(--blue-50);
  --on-accent: #ffffff;
  --hero-wash: linear-gradient(180deg, #ffffff 0%, rgba(61, 132, 255, 0.24) 100%);

  /* status */
  --ok: #0e8a5f;
  --ok-soft: #e3f5ee;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #c9302c;
  --bad-soft: #fde9e7;

  /* type */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "D2Coding", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-40: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);

  /* space, size, radius, elevation */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 96px;
  --h-sm: 32px;
  --h-md: 36px;
  --h-lg: 48px;
  --bar-h: 64px;
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 20px;
  --shadow-1: 0 1px 2px rgba(30, 31, 43, 0.06), 0 1px 1px rgba(30, 31, 43, 0.04);
  --shadow-2: 0 12px 32px -12px rgba(30, 31, 43, 0.18), 0 2px 6px rgba(30, 31, 43, 0.05);
  --ring: 0 0 0 3px rgba(61, 132, 255, 0.3);
  --focus-shadow: 0 8px 30px rgba(61, 132, 255, 0.15);

  /* document paper — overridden per company template */
  --doc-primary: #14213d;
  --doc-accent: #c8a45c;
  --doc-head-fill: #f4f6fa;
  --doc-head-text: #14213d;
  --doc-font: var(--font-sans);
  --paper: #ffffff;
  --paper-fg: #1e1f2b;
  --paper-line: #d9dce6;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12131a;
  --surface: #1b1c26;
  --surface-2: #242633;
  --surface-3: #30323f;
  --line: #2c2e3a;
  --line-strong: #444758;
  --fg: #f1f2f6;
  --fg-2: #b9bccb;
  --fg-3: #9195a8;
  --accent: #5c98ff;
  --accent-hover: #7aacff;
  --accent-text: #7aacff;
  --accent-soft: #1c2a47;
  --on-accent: #0d1220;
  --hero-wash: linear-gradient(180deg, #12131a 0%, rgba(61, 132, 255, 0.16) 100%);
  --ok: #4fd1a1;
  --ok-soft: #10332b;
  --warn: #f2b65a;
  --warn-soft: #3a2a10;
  --bad: #ff8a84;
  --bad-soft: #3d1818;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px rgba(92, 152, 255, 0.4);
  --focus-shadow: 0 8px 30px rgba(92, 152, 255, 0.2);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12131a;
    --surface: #1b1c26;
    --surface-2: #242633;
    --surface-3: #30323f;
    --line: #2c2e3a;
    --line-strong: #444758;
    --fg: #f1f2f6;
    --fg-2: #b9bccb;
    --fg-3: #9195a8;
    --accent: #5c98ff;
    --accent-hover: #7aacff;
    --accent-text: #7aacff;
    --accent-soft: #1c2a47;
    --on-accent: #0d1220;
    --hero-wash: linear-gradient(180deg, #12131a 0%, rgba(61, 132, 255, 0.16) 100%);
    --ok: #4fd1a1;
    --ok-soft: #10332b;
    --warn: #f2b65a;
    --warn-soft: #3a2a10;
    --bad: #ff8a84;
    --bad-soft: #3d1818;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
    --ring: 0 0 0 3px rgba(92, 152, 255, 0.4);
    --focus-shadow: 0 8px 30px rgba(92, 152, 255, 0.2);
    color-scheme: dark;
  }
}
