/* 토스 — TDS(Toss Design System) 값을 기존 토큰 이름에 맞춘 로컬 적용 팔레트.
   흰 캔버스(background) 위 옅은 테두리의 흰 카드(card), 채움 입력·묶음(muted), 파란 강조.
   accent는 이 프로젝트에서 호버·옅은 강조 면으로 쓰이므로 TDS weak blue를 넣는다.
   글자 대비는 모두 WCAG AA(작은 글자 4.5:1) 기준이며 tests/toss-theme.test.js가 검증한다.
   - 주 버튼 면(primary)은 흰 글자 기준: 밝은 모드 #1b64da 5.4:1, 어두운 모드 #1f6ce0 4.9:1.
     TDS 기본 파랑 #3182f6(흰 글자 3.7:1)은 포커스 링·로고에만 쓴다.
   - 옅은 강조 글자(accent-foreground): 밝은 모드 #1b64da, 어두운 모드 #6aa6ff — card·background·accent 면 4.8:1 이상.
   - 보조 글자(muted-foreground): 밝은 모드 #5f6b78(background 5.4:1), 어두운 모드 #a3a9b4(card 6.9:1).
   - 상태 글자(success·warning·pending·destructive)는 card·background 면 4.5:1 이상.
     어두운 모드 destructive(#ff6b77)는 밝아서 채움 면 위 글자(destructive-foreground)를 진한 색으로 둔다.
   이 파일은 색 토큰만 둔다. 글꼴·떠 있는 버튼 등 toss Shell 전용 규칙은 globals.css(.toss-app 범위)에 있다. */
:root {
  --background: #ffffff;
  --foreground: #191f28;
  --card: #ffffff;
  --card-foreground: #191f28;
  --muted: #f2f4f6;
  --muted-foreground: #5f6b78;
  --border: #e5e8eb;
  --input: #d1d6db;
  --ring: #3182f6;
  --destructive: #c41d2c;
  --destructive-foreground: #ffffff;
  /* accent = TDS weak blue(호버 면·옅은 강조 면) */
  --accent: #e8f3ff;
  --accent-foreground: #1b64da;
  --popover: #ffffff;
  --popover-foreground: #191f28;
  --primary: #1b64da;
  --primary-foreground: #ffffff;
  --success: #0f7034;
  --warning: #a84600;
  --pending: #6b3fd6;
  --logo-color: #3182f6;
  /* 좌측 레일 — 흰 면 + 연회색 선택 */
  --sidebar: #ffffff;
  --sidebar-foreground: #4e5968;
  --sidebar-accent: #f2f4f6;
  --sidebar-accent-foreground: #191f28;
  --sidebar-border: #e5e8eb;
  --header-bg: hsla(0, 0%, 100%, 0.85);
  --header-mega-bg: hsla(0, 0%, 100%, 0.94);
}

.dark {
  --background: #101013;
  --foreground: #f9fafb;
  --card: #202027;
  --card-foreground: #f9fafb;
  /* 채움 면·보조 글자·테두리는 카드(#202027) 위에서도 칸이 보이도록 한 단계 밝힌다. */
  --muted: #31323a;
  --muted-foreground: #a3a9b4;
  --border: #3a3c46;
  --input: #4b4d58;
  --ring: #5c9cf9;
  --destructive: #ff6b77;
  --destructive-foreground: #191f28;
  --accent: #1c2a43;
  --accent-foreground: #6aa6ff;
  --popover: #202027;
  --popover-foreground: #f9fafb;
  --primary: #1f6ce0;
  --primary-foreground: #ffffff;
  --success: #4cc27a;
  --warning: #ff9f40;
  --pending: #b69cff;
  --logo-color: #5c9cf9;
  --sidebar: #17171c;
  --sidebar-foreground: #b3b8c2;
  --sidebar-accent: #2a2b31;
  --sidebar-accent-foreground: #f9fafb;
  --sidebar-border: #2a2b31;
  --header-bg: hsla(240, 9%, 7%, 0.85);
  --header-mega-bg: hsla(240, 9%, 9%, 0.94);
}
