/* 색 · 글자 · 간격 토큰 — 화면 CSS 는 색값을 직접 쓰지 않고 여기 이름만 씀.
   7차 (2026-11-24 운영자 방향 '토스 웹처럼 · 글자 적게'): 흰 바탕 · 옅은 회색 면 · 선 대신 여백 · 큰 라운드 · 큰 단추 · 파랑 하나.
   6차까지는 APS 화면에서 가져온 남색 머리 띠와 테두리 판이었음. 상태 3단계 --st-* 와 그래프 계열 --cat-* 는 그때 값 그대로.
   대비: 글자 4.5 이상 · 큰 글자 3 이상. 입력 칸은 테두리 대신 회색 면으로 구분하고, 초점이 가면 파란 테두리 (HANDOFF 5장 7차). */
:root{
  /* 바탕 · 글자 · 선 */
  --bg:#ffffff;--panel:#ffffff;--sunken:#f2f4f6;--fg:#191f28;--fg2:#333d4b;--muted:#4e5968;--faint:#66707d;
  --line:#e5e8eb;--line2:#d1d6db;--line-input:#b0b8c1;
  --field-bg:var(--sunken);          /* 입력 칸 · 칩의 면. 회색 면(.card) 안에서는 흰색으로 바뀜 */
  /* 머리 띠 (흰색) · 떠 있는 알림 */
  --app:#ffffff;--app-fg:#191f28;--app-line:#f2f4f6;--app-chip:rgba(2,32,71,.05);
  --pop:#333d4b;--pop-fg:#ffffff;--scrim:rgba(0,0,0,.45);
  /* 강조 = 파랑 하나 (보라 · 그라데이션 없음) */
  --accent:#1b64da;--accent-ink:#1957c2;--accent-bg:#e8f3ff;--accent-line:#c9e2ff;--on-accent:#ffffff;
  --focus:rgba(27,100,218,.36);
  /* 상태 3단계 (색 + 모양 + 글자: ■ 위험 · ▲ 주의 · ● 정보 · ○ 정상) */
  --st-danger:#b3261e;--st-danger-bg:#fdecea;--st-danger-line:#f1a9a0;
  --st-warn:#8a5a00;--st-warn-bg:#fff4e0;--st-warn-line:#f0c890;
  --st-info:#1565c0;--st-info-bg:#e8f0fb;--st-info-line:#90caf9;
  --st-ok:#1b5e20;--st-ok-bg:#e8f5e9;--st-ok-line:#a5d6a7;
  --st-off:#707070;
  /* 알림 상자 (연노랑) */
  --note-bg:#fff8e1;--note-line:#ffe082;--note-edge:#c9a227;--note-t:#5f4a00;
  /* 그래프 계열 (색약 고려 Okabe-Ito) */
  --cat-1:#0072b2;--cat-2:#009e73;--cat-3:#cc79a7;--cat-4:#4d4d4d;--cat-5:#e69f00;--cat-6:#d55e00;
  --chart-grid:#e5e8eb;--chart-fill:rgba(27,100,218,.18);

  /* 글자 (글꼴 파일은 내려받지 않음 · 기기에 Pretendard 가 있으면 그것, 없으면 기본 한글 글꼴) */
  --font:"Pretendard Variable",Pretendard,"Apple SD Gothic Neo","Malgun Gothic","Segoe UI",system-ui,-apple-system,sans-serif;
  --fs-xs:.8125rem;--fs-s:.875rem;--fs-body:1rem;--fs-lg:1.125rem;--fs-h3:1.125rem;--fs-h2:1.25rem;--fs-h1:1.625rem;--fs-hero:2.25rem;
  --lh:1.6;--lh-tight:1.35;
  /* 간격 (4px 단위) */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;--sp-8:64px;
  --gutter:20px;--w-page:1080px;--w-form:560px;--w-read:720px;
  /* 라운드 (작은 표시 6 · 단추와 입력 칸 12 · 카드 16 · 큰 판과 시트 24 · 알약 999) */
  --r1:6px;--r2:12px;--r3:16px;--r4:24px;--rf:999px;
  /* 그림자는 떠 있는 것만 */
  --sh-pop:0 8px 24px rgba(0,0,0,.14);--sh-modal:0 12px 32px rgba(0,0,0,.2);
  /* 높이 (큰 단추 52px) · 움직임 */
  --h-ctl:52px;--h-ctl-s:40px;--h-head:60px;
  /* 노치 · 홈 막대 여백. 화면을 끝까지 그릴 때만 값이 생김 (앱 껍데기 안 · web/js/shell.js). 보통 브라우저에서는 0 */
  --safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px);--safe-l:env(safe-area-inset-left,0px);--safe-r:env(safe-area-inset-right,0px);
  --h-top:calc(var(--h-head) + var(--safe-t));   /* 머리 높이 + 노치. 머리 아래에 붙는 것은 이 값을 씀 */
  --t-fast:.12s;--t:.2s;
}
@media (min-width:720px){
  :root{--gutter:24px;--fs-h1:2rem;--fs-hero:3.5rem;--fs-h2:1.375rem}
}
@media (prefers-reduced-motion:reduce){
  :root{--t-fast:0s;--t:0s}
}
