/* ============================================================
   전도 대시보드 (evang-dashboard) — 2026-10-01 간결판
   사용자 확정 시안(evang-dash-mockups/evang.html)과 같게: 옅은 회색 바탕 위 흰 카드, 기획서 톤
   (단계 색 머리 · 번호 배지 · 아이콘, 남색 합계 줄, 라벨 위 필터줄).
   흰 바탕 고정(2026-09-29 사용자 「흰색 바탕이어야 해. 한글 문서하고 비슷하게」): 앱이 다크 모드여도
   이 화면은 항상 밝다 — 앱 토큰(--panel 등)을 빌리지 않고 .evd 안에서 색을 고정하고 color-scheme: light.
   클래스는 앱 공통 CSS 와 겹치지 않게 evd-(전도현황)·fz-(신앙단계분포) 접두를 쓰고, 모든 규칙을 .evd 아래에 둔다.
   표 안의 짧은 이름(.grp .sub .c .adv …)은 .evd-et 안에서만 쓴다.
   ============================================================ */

.evd {
  --evd-card: #ffffff;
  --evd-bg: #f3f5f9;
  --evd-line: #e3e7ef;
  --evd-line-strong: #cdd4e0;
  --evd-text: #1b2333;
  --evd-muted: #6b7482;
  --evd-faint: #b3bac6;
  --evd-track: #e9edf3;
  --evd-soft: #f5f7fb;
  --evd-info-soft: #eef4fb;
  --evd-warn-soft: #fff7ed;
  --evd-navy: #1e2a5a;
  --evd-navy-ink: #ffffff;
  /* 기획서 단계 색: 섭외 파랑 · 찾기 초록 · 합당한자 주황 · 육적따기 보라 · 복음방 청록 · 센터확답 남색 */
  --evd-blue: #2563eb;
  --evd-green: #2e9a47;
  --evd-orange: #f08a17;
  --evd-purple: #7a4bc4;
  --evd-teal: #12969c;
  --evd-navy-step: #1f3f9e;
  --evd-indigo: #4f46e5;
  --evd-slate: #64748b;
  --evd-red: #dc2626;
  /* 타율 전용 색(목표 대비 단계 색과 헷갈리지 않게 한 색) · 병목 주황 */
  --evd-adv: #1d4ed8;
  --evd-adv-soft: #eef3ff;
  --evd-low: #c2410c;
  --evd-low-soft: #fff1e6;
  --evd-shadow: 0 1px 2px rgba(20, 35, 80, 0.05);
  /* 2026-10-01 글씨 키움(사용자 「전체적으로 글씨 좀 크게」): 한 단계씩 약 +2px. 가장 작은 글자도 13px. */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.625rem;
  --fs-title: 1.75rem;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--evd-text);
  color-scheme: light;
  background: var(--evd-bg);
  padding: 16px;
  border-radius: 12px;
  min-width: 0;
  word-break: keep-all;
  container: evd-root / inline-size;
}
.evd *, .evd *::before, .evd *::after { box-sizing: border-box; }
.evd.is-busy .evd-card { opacity: 0.72; transition: opacity 0.2s; }

.evd .tone-blue { --tone: var(--evd-blue); }
.evd .tone-green { --tone: var(--evd-green); }
.evd .tone-orange { --tone: var(--evd-orange); }
.evd .tone-purple { --tone: var(--evd-purple); }
.evd .tone-teal { --tone: var(--evd-teal); }
.evd .tone-navy { --tone: var(--evd-navy-step); }
.evd .tone-indigo { --tone: var(--evd-indigo); }
.evd .tone-slate { --tone: var(--evd-slate); }
.evd .tone-red { --tone: var(--evd-red); }
.evd .num { font-variant-numeric: tabular-nums; }
.evd .evd-ico { width: 20px; height: 20px; flex: none; color: var(--tone, var(--evd-navy)); vertical-align: middle; }
.evd .evd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex: none; }
.evd .evd-bn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 4px; background: var(--tone, var(--evd-navy)); color: #fff; font-size: 0.8125rem; font-weight: 800; line-height: 1; flex: none; }
.evd button:focus-visible, .evd select:focus-visible, .evd summary:focus-visible { outline: 2px solid var(--evd-adv); outline-offset: 1px; }

/* ── 머리 · 필터 (기획서: 라벨 위 · 선택 상자 · 일간/주간/월간 · 기준일) ── */
.evd .evd-head { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; background: var(--evd-card); border: 1px solid var(--evd-line); border-radius: 10px; box-shadow: var(--evd-shadow); }
/* 원주 개강 일정 D-day(2026-10-05) — 넓으면 제목 오른쪽, 좁으면 제목 아래 한 줄. */
.evd .evd-ddays { position: absolute; top: 12px; right: 18px; display: flex; gap: 8px; }
.evd .evd-dday { display: grid; justify-items: center; gap: 1px; min-width: 104px; padding: 6px 12px; border: 1px solid var(--evd-line); border-radius: 10px; background: var(--evd-soft); }
.evd .evd-dday span { font-size: var(--fs-xs); font-weight: 700; color: var(--evd-muted); }
.evd .evd-dday strong { font-size: 1.25rem; font-weight: 900; line-height: 1.15; color: var(--evd-text); }
.evd .evd-dday em { font-style: normal; font-size: var(--fs-xs); color: var(--evd-muted); }
.evd .evd-dday.is-open { border-color: color-mix(in srgb, var(--evd-blue) 45%, var(--evd-line)); background: color-mix(in srgb, var(--evd-blue) 8%, var(--evd-card)); }
.evd .evd-dday.is-open strong { color: var(--evd-blue); }
@media (max-width: 900px) { .evd .evd-ddays { position: static; flex-wrap: wrap; } .evd .evd-dday { flex: 1 1 96px; min-width: 0; } }
.evd .evd-title h2 { margin: 0; font-size: var(--fs-title); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--evd-navy); }
.evd .evd-title p { margin: 2px 0 0; color: var(--evd-muted); font-size: var(--fs-md); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.evd .evd-scope { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--evd-soft); color: var(--evd-text); font-size: var(--fs-xs); font-weight: 600; }
.evd .evd-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--evd-line); }
.evd .evd-field { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-sm); font-weight: 600; color: var(--evd-text); min-width: 0; margin: 0; }
.evd .evd-field select { min-width: 124px; max-width: 100%; height: 38px; border: 1px solid var(--evd-line-strong); border-radius: 6px; background: var(--evd-card); color: var(--evd-text); padding: 0 8px; font: inherit; font-size: var(--fs-md); font-weight: 400; margin: 0; }
.evd .evd-field select:disabled { background: var(--evd-soft); color: var(--evd-muted); opacity: 1; }
.evd .evd-period { display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 160px; height: 38px; padding: 0 4px; border: 1px solid var(--evd-line-strong); border-radius: 6px; background: var(--evd-card); color: var(--evd-text); font-size: var(--fs-md); font-weight: 400; white-space: nowrap; }
.evd .evd-period b { padding: 0 4px; font-weight: 700; }
.evd .evd-nav { border: 0; background: transparent; color: var(--evd-text); font-size: var(--fs-lg); line-height: 1; width: 28px; height: 28px; padding: 0; cursor: pointer; border-radius: 6px; }
.evd .evd-nav:hover:not([disabled]) { background: var(--evd-soft); }
.evd .evd-nav[disabled] { opacity: 0.3; cursor: default; }
.evd .evd-seg { display: inline-flex; border: 1px solid var(--evd-line-strong); border-radius: 6px; overflow: hidden; height: 38px; background: var(--evd-card); }
.evd .evd-seg button { border: 0; border-radius: 0; background: var(--evd-card); color: var(--evd-text); padding: 0 18px; margin: 0; font: inherit; font-size: var(--fs-md); cursor: pointer; min-height: 0; height: auto; }
.evd .evd-seg button + button { border-left: 1px solid var(--evd-line-strong); }
.evd .evd-seg button.is-on { background: var(--evd-navy); color: var(--evd-navy-ink); font-weight: 700; }
.evd .evd-seg button:disabled { color: var(--evd-faint); cursor: default; }
.evd .evd-seg.sm { height: 32px; }
.evd .evd-seg.sm button { padding: 0 10px; font-size: var(--fs-sm); }
.evd .evd-base { margin-left: auto; align-self: center; font-size: var(--fs-md); color: var(--evd-muted); white-space: nowrap; }
.evd .evd-base b { color: var(--evd-text); font-weight: 700; }
.evd .evd-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.evd .evd-tabs [role="tab"] { height: 38px; border: 1px solid var(--evd-line-strong); background: var(--evd-card); color: var(--evd-text); border-radius: 6px; padding: 0 16px; margin: 0; font: inherit; font-size: var(--fs-md); cursor: pointer; }
.evd .evd-tabs [role="tab"].is-on { background: var(--evd-navy); color: var(--evd-navy-ink); border-color: var(--evd-navy); font-weight: 700; }
.evd .evd-refresh { margin-left: auto; height: 38px; border: 1px solid var(--evd-line-strong); background: var(--evd-card); color: var(--evd-text); border-radius: 6px; padding: 0 12px; font: inherit; font-size: var(--fs-md); cursor: pointer; }
.evd .evd-refresh:hover { background: var(--evd-soft); }
.evd .evd-banner { padding: 8px 12px; border-radius: 8px; background: var(--evd-info-soft); color: var(--evd-text); font-size: var(--fs-md); }
.evd .evd-banner.is-warn { background: var(--evd-warn-soft); }

/* ── 카드 ── */
.evd .evd-card { container: evd-card / inline-size; background: var(--evd-card); border: 1px solid var(--evd-line); border-radius: 10px; padding: 16px; box-shadow: var(--evd-shadow); min-width: 0; }
.evd .evd-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 28px; margin-bottom: 12px; }
.evd .evd-sec-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 28px; color: var(--evd-navy); }
.evd .evd-tools { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.evd .evd-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--evd-navy); color: var(--evd-navy-ink); font-size: var(--fs-sm); font-weight: 800; flex: none; }
.evd .evd-sub { color: var(--evd-muted); font-size: var(--fs-md); line-height: 28px; }
.evd .evd-note { margin: 10px 0 0; color: var(--evd-muted); font-size: var(--fs-sm); line-height: 1.6; }
.evd .evd-note b { color: var(--evd-text); font-weight: 700; }
.evd .evd-pending { margin: 0; padding: 12px 16px; border: 1px dashed var(--evd-line-strong); border-radius: 10px; color: var(--evd-muted); font-size: var(--fs-md); line-height: 1.55; background: var(--evd-card); }
.evd .evd-empty { text-align: center; padding: 32px 16px; color: var(--evd-muted); font-size: var(--fs-md); }
.evd .evd-empty strong { display: block; color: var(--evd-text); font-size: var(--fs-lg); margin-bottom: 6px; }
.evd .evd-empty p { margin: 0; color: var(--evd-muted); font-size: var(--fs-md); }
.evd .evd-retry { text-align: center; margin: 0; }

/* ── ① 단계별 현황 — 기획서 카드 + 머리 띠에 타율(도넛 + 근거) ── */
.evd .evd-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 12px; }
.evd .evd-scard { container: evd-scard / inline-size; position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--evd-line); border-radius: 10px; background: var(--evd-card); }
.evd .evd-shead { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 10px; min-width: 0; }
.evd .evd-shead .evd-ico { width: 24px; height: 24px; }
.evd .evd-shead b { color: var(--tone); font-size: 1.125rem; font-weight: 800; line-height: 1.3; min-width: 0; }
.evd .evd-scard:not(.is-drop) .evd-shead { justify-content: center; }
/* 좁은 카드에서 긴 단계명(수강신청서)이 칸을 넘어 오른쪽으로 쏠리지 않게 여백·간격만 줄인다. */
@container evd-scard (max-width: 175px) { .evd .evd-shead { gap: 4px; padding-left: 6px; padding-right: 6px; } }
.evd .evd-shead small { margin-left: auto; color: var(--evd-muted); font-size: var(--fs-xs); white-space: nowrap; }
.evd .evd-sadv { --ring: var(--tone); display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 8px; padding: 4px 6px; min-height: 58px; border-radius: 8px; background: color-mix(in srgb, var(--tone) 6%, #fff); color: var(--ring); min-width: 0; }
.evd .evd-ring { position: relative; flex: none; width: 50px; height: 50px; }
.evd .evd-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.evd .evd-ring .trk { fill: none; stroke: var(--evd-track); stroke-width: 4.2; }
.evd .evd-ring .val { fill: none; stroke: var(--ring); stroke-width: 4.2; stroke-linecap: round; }
.evd .evd-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ring); font-variant-numeric: tabular-nums; }
.evd .evd-ring b small { font-size: 0.66rem; font-weight: 700; margin: 2px 0 0 0.5px; }
.evd .evd-sadv-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.evd .evd-sadv-txt span { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; font-size: var(--fs-sm); font-weight: 700; color: var(--evd-text); line-height: 18px; }
.evd .evd-sadv-txt em { font-style: normal; font-size: var(--fs-xs); color: var(--evd-muted); line-height: 17px; }
.evd .evd-sadv.is-none { --ring: var(--evd-faint); background: var(--evd-soft); }
.evd .evd-sadv.is-none .evd-ring b { font-weight: 600; font-size: 1rem; }
.evd .evd-sadv.is-none .evd-sadv-txt span { color: var(--evd-muted); }
.evd .evd-sadv.is-low { --ring: var(--evd-low); background: var(--evd-low-soft); }
.evd .evd-pill { font-style: normal; padding: 0 6px; border-radius: 999px; background: var(--evd-low); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 18px; white-space: nowrap; }
.evd .evd-arrow { position: absolute; left: -13px; top: 66px; width: 14px; height: 18px; display: grid; place-items: center; color: var(--evd-adv); font-size: 11px; z-index: 1; }
/* 목표·달성률 — 라벨과 값을 한 칸씩 묶는다. */
.evd .evd-sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; padding: 8px 10px 0; text-align: center; }
.evd .evd-sgrid > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.evd .evd-sgrid span { font-size: var(--fs-xs); color: var(--evd-muted); line-height: 18px; white-space: nowrap; }
.evd .evd-sgrid b { font-size: 1.125rem; font-weight: 800; line-height: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@container evd-scard (max-width: 259px) {
  .evd .evd-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.evd .evd-sgrid b.rate { color: var(--tone); }
.evd .evd-sgrid b.drop { color: var(--evd-text); }
.evd .evd-sgrid b.zero { color: var(--evd-faint); font-weight: 600; }
.evd .evd-sbar { display: block; height: 6px; margin: 8px 10px 12px; border-radius: 999px; background: var(--evd-track); overflow: hidden; }
.evd .evd-sbar i { display: block; height: 100%; background: var(--tone); border-radius: 999px; }
.evd .evd-scard[data-evd-stepcard] { cursor: pointer; }
.evd .evd-scard.is-open { border-color: var(--tone); }
.evd .evd-smore { display: flex; align-items: center; justify-content: center; gap: 4px; margin: -4px 10px 8px; padding: 2px 0; border: 0; border-radius: 6px; background: none; color: var(--evd-muted); font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.evd .evd-smore:hover { color: var(--tone); background: var(--evd-soft); }
.evd .evd-smore:focus-visible { outline: 2px solid var(--tone); outline-offset: 1px; }
.evd .evd-sdet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin: 0 8px 10px; padding: 8px; border-radius: 8px; background: var(--evd-soft); text-align: center; }
.evd .evd-sdet[hidden] { display: none; }
.evd .evd-sdet > div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.evd .evd-sdet > div.wide { grid-column: 1 / -1; }
.evd .evd-sdet dt { font-size: var(--fs-xs); color: var(--evd-muted); line-height: 18px; white-space: nowrap; }
.evd .evd-sdet dd { margin: 0; font-size: 1rem; font-weight: 800; line-height: 22px; color: var(--evd-text); font-variant-numeric: tabular-nums; }
.evd .evd-sdet dd.drop { color: var(--evd-text); }
.evd .evd-sdet dd.zero { color: var(--evd-faint); font-weight: 600; }
.evd .evd-scard.is-drop { border-color: #f1c2c2; background: #fff9f9; }
.evd .evd-scard.is-drop .evd-shead b { color: var(--evd-text); }
.evd .evd-dropval { display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 4px 0 2px; color: var(--evd-text); }
.evd .evd-dropval strong { font-size: 2.125rem; font-weight: 800; line-height: 36px; letter-spacing: -0.02em; }
.evd .evd-dropval small { font-size: var(--fs-sm); color: var(--evd-muted); }
.evd .evd-droplines { display: flex; flex-direction: column; gap: 1px; padding: 0 10px 10px; font-size: var(--fs-sm); color: var(--evd-muted); line-height: 20px; }
.evd .evd-droplines div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; }
.evd .evd-droplines b { color: var(--evd-text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── ② 부서별 단계별 상세 현황 (기획서 0002) ── */
.evd .evd-twrap { border: 1px solid var(--evd-line); border-radius: 8px; overflow-x: auto; overflow-y: hidden; }
/* 2026-10-01: 칸이 좁으면 숫자 덩어리 사이(<wbr>)에서 줄을 바꾼다 — 표가 카드 밖으로 밀려 가로 스크롤이 생기지 않게. 숫자 하나는 끊지 않는다. */
.evd table.evd-et { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; font-size: 0.875rem; white-space: normal; }
.evd .evd-et th, .evd .evd-et td { font-size: inherit; text-transform: none; padding: 3px 5px; height: 34px; line-height: 17px; border: 0; border-bottom: 1px solid var(--evd-line); text-align: right; vertical-align: middle; background: var(--evd-card); color: var(--evd-text); font-variant-numeric: tabular-nums; }
.evd .evd-et thead th { color: var(--evd-muted); font-weight: 600; text-align: center; font-size: var(--fs-xs); background: var(--evd-soft); }
.evd .evd-et .corner { background: var(--evd-navy) !important; color: #fff !important; text-align: center; font-size: var(--fs-sm) !important; font-weight: 800 !important; width: 104px; }
.evd .evd-et thead .sth { height: 38px; color: var(--tone); font-size: var(--fs-md); font-weight: 800; border-left: 1px solid var(--evd-line); border-bottom: 2px solid var(--tone); background: color-mix(in srgb, var(--tone) 10%, #fff); }
.evd .evd-et thead .sth .in { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 5px; }
.evd .evd-et thead .sth .evd-ico { width: 17px; height: 17px; }
.evd .evd-et thead .sth .evd-bn { min-width: 18px; height: 18px; font-size: 0.75rem; }
.evd .evd-et thead tr.sub2 th { white-space: nowrap; background: color-mix(in srgb, var(--tone, #fff) 4%, #fff); }
/* 숫자 열 머리글도 본문과 같이 오른쪽 */
.evd .evd-et thead tr.sub2 th { text-align: right; }
.evd .evd-et .gs { border-left: 1px solid var(--evd-line); }
.evd .evd-et th.ath { color: var(--evd-adv); }
.evd .evd-et td.goal { font-weight: 700; white-space: nowrap; }
.evd .evd-et tr.sub td.goal { font-weight: 600; }
.evd .evd-et th.dth { color: var(--evd-text); font-weight: 400; }
.evd .evd-et tbody th, .evd .evd-et tfoot th { text-align: left; padding-left: 10px; width: 112px; white-space: nowrap; }
.evd .evd-et tr.grp th, .evd .evd-et tr.grp td { background: #fbfcfe; box-shadow: inset 0 1px 0 var(--evd-line-strong); font-weight: 800; height: 38px; }
.evd .evd-et tr.grp:hover th, .evd .evd-et tr.grp:hover td { background: #f3f6fc; }
.evd .evd-fold { display: inline-flex; align-items: center; gap: 4px; text-align: left; border: 0; background: transparent; padding: 0; margin: 0; font: inherit; font-weight: 800; color: var(--tone); cursor: pointer; white-space: nowrap; min-height: 0; font-size: var(--fs-md); }
.evd .evd-fold .car { display: inline-block; width: 12px; color: var(--evd-muted); font-size: 0.8125rem; }
.evd .evd-fold .evd-ico { width: 17px; height: 17px; }
.evd .evd-et tr.grp td.c { color: var(--tone); }
.evd .evd-et tr.sub th { font-weight: 500; color: var(--evd-text); padding-left: 30px; font-size: var(--fs-sm); white-space: normal; min-width: 110px; }
/* 누적/목표·퍼센트·머리글을 모두 칸 오른쪽 끝에 맞춘다. */
.evd .evd-et td.c { white-space: nowrap; text-align: right; }
.evd .evd-et td.c small { color: var(--evd-muted); font-size: var(--fs-xs); font-weight: 400; margin-left: 1px; }
.evd .evd-et td.c .r2 { display: none; text-align: right; }
.evd .evd-et td.muted, .evd .evd-et td .zero { color: var(--evd-faint); font-weight: 400; }
.evd .evd-et td.dc { color: var(--evd-text); font-weight: 700; text-align: right; min-width: 34px; white-space: nowrap; }
.evd .evd-et td.dc.zero { color: var(--evd-faint); font-weight: 400; }
.evd .evd-et td.adv { color: var(--evd-adv); background: #f7f9ff; text-align: right; }
.evd .evd-et td.adv b { display: block; font-size: 1rem; font-weight: 800; line-height: 18px; white-space: nowrap; }
.evd .evd-et td.adv small { display: block; font-size: var(--fs-xs); line-height: 15px; color: var(--evd-muted); font-weight: 400; }
.evd .evd-et td.adv.none { color: var(--evd-faint); font-weight: 400; }
.evd .evd-et td.adv.none b { font-weight: 400; font-size: var(--fs-xs); }
.evd .evd-et td.adv.low { color: var(--evd-low); background: var(--evd-low-soft); }
.evd .evd-et td.adv.low b::before { content: "▼"; font-size: 0.7rem; margin-right: 2px; vertical-align: 1px; }
.evd .evd-et tr.grp td.adv { background: #f0f4ff; }
.evd .evd-et tr.grp td.adv.low { background: var(--evd-low-soft); }
/* 전체 합계 — 남색 줄 */
.evd .evd-et tfoot th, .evd .evd-et tfoot td { background: var(--evd-navy); color: #fff; font-weight: 800; border-bottom: 0; height: 40px; }
.evd .evd-et tfoot td.c small, .evd .evd-et tfoot td.adv small { color: rgba(255, 255, 255, 0.7); }
.evd .evd-et tfoot td.adv { background: #2a3a78; color: #fff; }
.evd .evd-et tfoot td.adv.low { background: #9a3412; color: #fff; }
.evd .evd-et tfoot td.muted, .evd .evd-et tfoot td .zero, .evd .evd-et tfoot td.dc.zero { color: rgba(255, 255, 255, 0.55); }
.evd .evd-et tfoot td.dc { color: #fff; }
.evd .evd-et tfoot .gs { border-left-color: rgba(255, 255, 255, 0.16); }
.evd .evd-et tr.toggle td { text-align: left; padding: 4px 12px 4px 30px; height: 32px; background: var(--evd-card); }
.evd .evd-mini-btn { border: 1px solid var(--evd-line-strong); background: var(--evd-card); color: var(--evd-text); border-radius: 999px; padding: 2px 12px; margin: 0; font: inherit; font-size: var(--fs-sm); cursor: pointer; min-height: 0; }
.evd .evd-mini-btn:hover { background: var(--evd-soft); }
.evd .evd-et tr.toggle span { margin-left: 8px; color: var(--evd-muted); font-size: var(--fs-sm); }
.evd .evd-et .nar { display: none; }
.evd .evd-et.only-adv td.adv b { font-size: 1.125rem; line-height: 20px; }
.evd .evd-et.only-adv th, .evd .evd-et.only-adv td { height: 42px; padding: 3px 10px; }

/* 좁은 화면 블록 */
.evd .evd-blocks { display: none; flex-direction: column; gap: 8px; }
.evd .evd-blk { border: 1px solid var(--evd-line); border-radius: 8px; background: var(--evd-card); overflow: hidden; }
.evd .evd-blk > summary, .evd .evd-blk-head { display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 44px; font-size: var(--fs-lg); font-weight: 800; cursor: pointer; list-style: none; border-bottom: 1px solid var(--evd-line); color: var(--tone, var(--evd-text)); }
.evd .evd-blk > summary .evd-ico { width: 18px; height: 18px; }
.evd .evd-blk > summary::-webkit-details-marker, .evd .evd-rgn > summary::-webkit-details-marker { display: none; }
.evd .evd-blk > summary::after, .evd .evd-rgn > summary::after { content: "▾"; margin-left: auto; color: var(--evd-muted); font-size: var(--fs-xs); }
.evd .evd-blk:not([open]) > summary { border-bottom: 0; }
.evd .evd-blk:not([open]) > summary::after, .evd .evd-rgn:not([open]) > summary::after { content: "▸"; }
.evd .evd-blk > summary small { font-weight: 400; color: var(--evd-muted); font-size: var(--fs-sm); }
.evd .evd-blk.total { border-color: var(--evd-navy); }
.evd .evd-blk-head { background: var(--evd-navy); color: #fff; cursor: default; border-bottom: 0; }
.evd .evd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px; }
.evd .evd-tile { display: flex; flex-direction: column; min-width: 0; padding: 8px; border: 1px solid var(--evd-line); border-top: 3px solid var(--tone); border-radius: 6px; }
.evd .evd-tile-name { display: flex; align-items: center; gap: 4px; font-size: var(--fs-md); font-weight: 800; color: var(--tone); line-height: 1.3; }
.evd .evd-tile-name .evd-bn { min-width: 18px; height: 18px; font-size: 0.75rem; }
.evd .evd-tile-val { font-size: var(--fs-sm); line-height: 26px; }
.evd .evd-tile-val b { font-size: 1.25rem; font-weight: 800; }
.evd .evd-tile-val b.tn { color: var(--tone); }
.evd .evd-tile-val small { color: var(--evd-muted); font-size: var(--fs-xs); }
.evd .evd-tile-rate { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; font-size: var(--fs-xs); color: var(--evd-muted); white-space: nowrap; line-height: 18px; }
.evd .evd-tile-rate .d { color: var(--evd-text); font-weight: 700; }
.evd .evd-tile-rate .d.zero { color: var(--evd-faint); font-weight: 400; }
.evd .evd-tile-adv { margin-top: 4px; padding: 3px 6px; border-radius: 4px; background: var(--evd-adv-soft); color: var(--evd-adv); font-size: var(--fs-xs); line-height: 20px; }
.evd .evd-tile-adv b { font-size: 1.0625rem; font-weight: 800; white-space: nowrap; }
.evd .evd-tile-adv small { color: var(--evd-muted); font-size: var(--fs-xs); white-space: nowrap; }
.evd .evd-tile-adv.none { background: var(--evd-soft); color: var(--evd-muted); }
.evd .evd-tile-adv.low { background: var(--evd-low-soft); color: var(--evd-low); }
.evd .evd-rgns { border-top: 1px solid var(--evd-line); }
.evd .evd-rgn + .evd-rgn { border-top: 1px dashed var(--evd-line); }
.evd .evd-rgn > summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: var(--fs-md); color: var(--evd-muted); cursor: pointer; list-style: none; flex-wrap: wrap; }
.evd .evd-rs { color: var(--evd-low); font-size: var(--fs-sm); }
.evd .evd-rgn[open] > summary { color: var(--evd-text); font-weight: 700; }
.evd .evd-rgn .evd-tiles { padding-top: 0; }
.evd .evd-rgn-empty { margin: 0; padding: 8px 12px; font-size: var(--fs-sm); color: var(--evd-muted); border-top: 1px dashed var(--evd-line); }

/* 보조 패널: 전도부 집계(전체 폭) */
.evd .evd-mini { width: 100%; border-collapse: collapse; margin: 0; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.evd .evd-mini th, .evd .evd-mini td { font-size: inherit; text-transform: none; vertical-align: middle; padding: 0 4px; height: 36px; border: 0; border-bottom: 1px solid var(--evd-line); text-align: right; background: transparent; color: var(--evd-text); }
.evd .evd-mini th:first-child { text-align: left; padding-left: 0; }
.evd .evd-mini thead th { color: var(--evd-muted); font-weight: 600; font-size: var(--fs-sm); }
.evd .evd-mini .bad { color: var(--evd-red); font-weight: 700; }
.evd .evd-mini .bad.zero { color: var(--evd-faint); font-weight: 400; }
.evd .evd-mini tfoot th, .evd .evd-mini tfoot td { font-weight: 800; background: var(--evd-navy); color: #fff; border-bottom: 0; }
.evd .evd-mini tfoot th:first-child { padding-left: 10px; }
.evd .evd-mini tfoot td { padding-right: 4px; }
.evd .evd-mini tfoot td.bad { color: #ffb4b4; }

/* ===== 신앙단계분포 (.fz- 접두) — 구현 화면의 구획·기능 그대로, 기획서 톤(흰 바탕·남색·옅은 단계 머리) ===== */
.evd .fz {
  --fz-stall-1: #c92a2a; --fz-stall-2: #e0392c; --fz-stall-3: #f4622a; --fz-stall-4: #f59e0b;
  --fz-act-1: #14b8a6; --fz-act-2: #06b6d4; --fz-act-3: #0ea5e9; --fz-act-4: #2563eb; --fz-act-5: #0e8f62;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  container: fz-root / inline-size;
}
.evd .fz-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evd .fz-chips button { height: 36px; border: 1px solid var(--evd-line); background: var(--evd-card); color: var(--evd-text); border-radius: 999px; padding: 0 16px; margin: 0; font: inherit; font-size: var(--fs-md); cursor: pointer; }
.evd .fz-chips button.is-on { background: var(--evd-navy); border-color: var(--evd-navy); color: var(--evd-navy-ink); font-weight: 700; }
.evd .fz-chips-note { color: var(--evd-muted); font-size: var(--fs-sm); }
.evd .fz-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.evd .fz-head .evd-sec-head { margin-bottom: 4px; min-width: 0; }
.evd .fz-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evd .fz-period .evd-seg.sm { height: 38px; }
.evd .fz-period .evd-seg.sm button { padding: 0 14px; font-size: var(--fs-md); }
.evd .fz-nav small { color: var(--evd-muted); font-size: var(--fs-sm); }
.evd .fz-badge { font-style: normal; font-size: var(--fs-xs); padding: 0 6px; border-radius: 999px; background: var(--evd-navy); color: var(--evd-navy-ink); vertical-align: 1px; font-weight: 700; }
.evd .fz-pnote { margin: 0 0 12px; }
.evd .fz-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.evd .fz-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; border: 1px solid var(--evd-line); border-top: 3px solid var(--tone); border-radius: 8px; background: var(--evd-card); box-shadow: var(--evd-shadow); }
.evd .fz-kpi > * { min-width: 0; }
.evd .fz-kpi-top { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.evd .fz-kpi-top b { color: var(--tone); font-size: var(--fs-md); font-weight: 800; line-height: 1.3; min-width: 0; }
.evd .fz-kpi-val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; min-height: 38px; white-space: nowrap; }
.evd .fz-kpi-val strong { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; line-height: 38px; color: var(--evd-text); }
.evd .fz-kpi.tone-red .fz-kpi-val strong { color: var(--evd-red); }
.evd .fz-kpi-val small { color: var(--evd-muted); font-size: var(--fs-sm); font-weight: 500; }
.evd .fz-kpi-sub { color: var(--evd-muted); font-size: var(--fs-xs); line-height: 18px; min-height: 18px; }
.evd .fz-help { margin-top: 12px; font-size: var(--fs-md); color: var(--evd-muted); }
.evd .fz-help summary { cursor: pointer; color: var(--evd-text); font-weight: 600; width: max-content; max-width: 100%; }
.evd .fz-help dl { margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; }
.evd .fz-help dt { font-weight: 800; color: var(--evd-text); margin-bottom: 2px; }
.evd .fz-help dd { margin: 0; line-height: 1.55; }
.evd .fz-help b { color: var(--evd-text); }

/* 분포 막대 */
.evd .fz-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.evd .fz-plot { display: grid; grid-template-columns: repeat(var(--cols), minmax(42px, 1fr)); column-gap: 4px; min-width: calc(var(--cols) * 46px); padding-top: 26px; }
.evd .fz-band { grid-row: 1; margin-top: -26px; margin-inline: -4px; position: relative; z-index: 0; border-radius: 8px; background: color-mix(in srgb, var(--fz-stall-2) 6%, transparent); border: 1px dashed color-mix(in srgb, var(--fz-stall-2) 40%, transparent); pointer-events: none; }
.evd .fz-band em { position: absolute; top: 4px; left: 8px; font-style: normal; font-size: var(--fs-xs); font-weight: 700; line-height: 18px; color: var(--fz-stall-1); white-space: nowrap; }
.evd .fz-col { grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding-bottom: 4px; }
.evd .fz-col.is-unclass::before { content: ""; position: absolute; left: -4px; top: -16px; bottom: 0; border-left: 1px dashed var(--evd-line); }
.evd .fz-v { font-size: var(--fs-sm); font-weight: 800; line-height: 20px; margin-bottom: 2px; white-space: nowrap; }
.evd .fz-track { display: flex; align-items: flex-end; width: 70%; max-width: 44px; height: 150px; border-radius: 6px 6px 0 0; background: var(--evd-soft); overflow: hidden; }
.evd .fz-track i { display: block; width: 100%; border-radius: 6px 6px 0 0; }
.evd .fz-col.is-peak .fz-track { outline: 2px solid var(--fz-stall-1); outline-offset: 2px; }
.evd .fz-code { margin-top: 4px; font-size: var(--fs-sm); font-weight: 700; line-height: 18px; white-space: nowrap; }
.evd .fz-pct { font-size: var(--fs-xs); line-height: 18px; color: var(--evd-muted); white-space: nowrap; }
.evd .fz-delta { font-size: var(--fs-xs); font-weight: 700; line-height: 18px; min-height: 18px; white-space: nowrap; }
.evd .fz-delta.is-up { color: var(--evd-green); }
.evd .fz-delta.is-down { color: var(--evd-red); }
.evd .fz-delta.is-flat, .evd .fz-delta.is-na { color: var(--evd-muted); font-weight: 400; }
.evd .fz-stack { display: flex; height: 26px; margin-top: 12px; border-radius: 6px; overflow: hidden; background: var(--evd-track); }
.evd .fz-seg { display: grid; place-items: center; min-width: 0; overflow: hidden; container-type: inline-size; }
.evd .fz-seg.is-edge { box-shadow: inset 2px 0 0 var(--evd-card); }
.evd .fz-seg b { color: #fff; font-size: var(--fs-xs); white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
@container (max-width: 40px) { .evd .fz-seg b { display: none; } }
.evd .fz-legend { margin-top: 16px; }
.evd .fz-legend-title { margin: 0 0 8px; font-size: var(--fs-md); font-weight: 700; color: var(--evd-muted); }
.evd .fz-legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }
.evd .fz-lrow { display: grid; grid-template-columns: 10px 56px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0; font-size: var(--fs-sm); border-bottom: 1px dashed var(--evd-line); }
.evd .fz-sw { width: 10px; height: 10px; border-radius: 3px; }
.evd .fz-lcode { font-size: var(--fs-md); white-space: nowrap; }
.evd .fz-ldesc { color: var(--evd-muted); min-width: 0; line-height: 1.45; }
.evd .fz-lrow .fz-delta { text-align: right; }

/* 정체 진단 · 지역별 — 넓으면 나란히(0.9 : 1.1), 좁으면 쌓는다 */
.evd .fz-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container fz-root (min-width: 1200px) { .evd .fz-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.evd .fz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 8px; margin: 0 0 12px; }
.evd .fz-stats > div { padding: 8px 12px; border-radius: 8px; background: var(--evd-soft); min-width: 0; }
.evd .fz-stats dt { font-size: var(--fs-sm); color: var(--evd-muted); line-height: 18px; white-space: nowrap; }
.evd .fz-stats dd { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--evd-muted); line-height: 26px; white-space: nowrap; }
.evd .fz-stats dd b { font-size: 1.25rem; color: var(--evd-text); font-weight: 800; }
.evd .fz-stats > div:first-child dd b { color: var(--fz-stall-1); }
.evd .fz-insight { margin: 0 0 16px; font-size: var(--fs-md); line-height: 1.6; color: var(--evd-muted); }
.evd .fz-insight b { color: var(--evd-text); }
.evd .fz-fs-title { margin: 0 0 8px; font-size: var(--fs-md); font-weight: 700; }
.evd .fz-fs-title small { color: var(--evd-muted); font-weight: 400; font-size: var(--fs-xs); }
.evd .fz-fs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.evd .fz-fs li { display: grid; grid-template-columns: 48px minmax(0, 1fr) 64px 132px; align-items: center; gap: 8px; min-height: 28px; font-size: var(--fs-md); }
.evd .fz-bar { display: block; height: 14px; border-radius: 3px; background: var(--evd-track); overflow: hidden; }
.evd .fz-bar i { display: block; height: 100%; border-radius: 3px; background: var(--fz-stall-2); }
.evd .fz-fs-n { text-align: right; color: var(--evd-muted); font-size: var(--fs-xs); white-space: nowrap; }
.evd .fz-fs-n b { color: var(--evd-text); font-size: var(--fs-md); }
.evd .fz-fs-top { color: var(--evd-muted); font-size: var(--fs-xs); text-align: right; white-space: nowrap; }
.evd .fz-twrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--evd-line); border-radius: 8px; }
.evd .fz-table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; font-size: 0.875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evd .fz-table th, .evd .fz-table td { font-size: inherit; text-transform: none; vertical-align: middle; padding: 0 6px; height: 34px; border: 0; border-bottom: 1px solid var(--evd-line); text-align: center; background: var(--evd-card); color: var(--evd-text); }
.evd .fz-table thead th { font-size: var(--fs-xs); font-weight: 700; }
.evd .fz-table .fz-corner { background: var(--evd-navy); color: var(--evd-navy-ink); text-align: left; padding-left: 12px; width: 96px; }
.evd .fz-table .fz-sth { color: var(--evd-text); border-bottom: 2px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--evd-card)); }
.evd .fz-table .fz-gray { background: var(--evd-soft); color: var(--evd-muted); }
.evd .fz-table tbody th { text-align: left; padding-left: 12px; font-weight: 600; color: var(--evd-text); }
.evd .fz-table td.zero { color: var(--evd-line-strong); }
.evd .fz-table td.muted { color: var(--evd-muted); }
.evd .fz-table td.strong { font-weight: 800; }
.evd .fz-table td.peak { font-weight: 800; color: var(--evd-blue); background: color-mix(in srgb, var(--evd-blue) 9%, var(--evd-card)); }
.evd .fz-table tfoot th, .evd .fz-table tfoot td { background: var(--evd-navy); color: var(--evd-navy-ink); font-weight: 800; border-bottom: 0; }
.evd .fz-table tfoot th { text-align: left; padding-left: 12px; }
.evd .fz-peak-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; background: color-mix(in srgb, var(--evd-blue) 18%, var(--evd-card)); border: 1px solid color-mix(in srgb, var(--evd-blue) 45%, transparent); }
.evd .fz-blocks { display: none; flex-direction: column; gap: 8px; }
.evd .fz-blk { border: 1px solid var(--evd-line); border-radius: 8px; background: var(--evd-card); overflow: hidden; }
.evd .fz-blk > summary, .evd .fz-blk-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 44px; font-size: var(--fs-md); font-weight: 700; cursor: pointer; list-style: none; border-bottom: 1px solid var(--evd-line); flex-wrap: wrap; }
.evd .fz-blk > summary::-webkit-details-marker { display: none; }
.evd .fz-blk > summary small { margin-left: auto; font-weight: 400; color: var(--evd-muted); font-size: var(--fs-sm); }
.evd .fz-blk > summary::after { content: "▾"; margin-left: 8px; color: var(--evd-muted); font-size: var(--fs-xs); }
.evd .fz-blk:not([open]) > summary { border-bottom: 0; }
.evd .fz-blk:not([open]) > summary::after { content: "▸"; }
.evd .fz-blk.is-total { border-color: var(--evd-navy); }
.evd .fz-blk-head { background: var(--evd-navy); color: var(--evd-navy-ink); cursor: default; border-bottom: 0; font-weight: 800; }
.evd .fz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 8px; }
.evd .fz-cell { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 8px; border-radius: 6px; background: var(--evd-soft); min-width: 0; }
.evd .fz-cell small { font-size: var(--fs-xs); color: var(--evd-muted); white-space: nowrap; }
.evd .fz-cell b { font-size: var(--fs-lg); font-weight: 700; }
.evd .fz-cell.peak { background: color-mix(in srgb, var(--evd-blue) 12%, var(--evd-card)); }
.evd .fz-cell.peak b { color: var(--evd-blue); font-weight: 800; }
.evd .fz-cell.is-muted b { color: var(--evd-muted); }
.evd .fz-cell.is-total { background: color-mix(in srgb, var(--evd-navy) 8%, var(--evd-card)); }
.evd .fz-cell.is-total b { font-weight: 800; }

@container evd-card (max-width: 860px) {
  .evd .fz-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container evd-card (max-width: 760px) {
  .evd .fz-table { font-size: var(--fs-xs); }
  .evd .fz-table th, .evd .fz-table td { padding: 0 3px; }
  .evd .fz-table .fz-corner, .evd .fz-table tbody th, .evd .fz-table tfoot th { width: 64px; padding-left: 8px; }
  .evd .fz-table tbody th { white-space: normal; }
}
@container evd-card (max-width: 599px) {
  .evd .fz-twrap { display: none; }
  .evd .fz-blocks { display: flex; }
}
@container evd-card (max-width: 520px) {
  .evd .fz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evd .fz-kpis > .fz-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .evd .fz-kpi { padding: 10px; }
  .evd .fz-kpi-val strong { font-size: 1.375rem; }
  .evd .fz-track { height: 110px; }
  /* 좁은 카드(모바일): 막대를 여러 줄로 접어 가로로 밀지 않게(2026-10-01). 순서는 그대로 왼쪽→오른쪽·위→아래.
     정체 구간 띠는 칸마다 옅은 바탕으로 바꾸고, 「정체 구간」 글자는 맨 위 범례로 옮긴다. */
  .evd .fz-plot { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); min-width: 0; padding-top: 0; row-gap: 10px; }
  .evd .fz-plot > .fz-col { grid-column: auto !important; grid-row: auto; }
  .evd .fz-band { grid-column: 1 / -1 !important; grid-row: auto; margin: 0; border: 0; background: none; }
  .evd .fz-band em { position: static; display: inline-flex; align-items: center; gap: 6px; }
  .evd .fz-band em::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--fz-stall-2) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--fz-stall-2) 45%, transparent); }
  .evd .fz-col.is-stall { border-radius: 6px; background: color-mix(in srgb, var(--fz-stall-2) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fz-stall-2) 30%, transparent); }
  .evd .fz-col.is-unclass::before { display: none; }
  .evd .fz-legend-grid { grid-template-columns: minmax(0, 1fr); }
  .evd .fz-fs li { grid-template-columns: 48px minmax(0, 1fr) 64px; height: auto; row-gap: 0; }
  .evd .fz-fs-top { grid-column: 2 / -1; text-align: left; }
  .evd .fz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .evd .fz-period { width: 100%; }
  .evd .fz-period .evd-seg.sm { width: auto; }
  .evd .fz-period .evd-period { flex: 1 1 auto; justify-content: space-between; }
  .evd .fz-chips-note { flex-basis: 100%; }
}

/* ── 폭 조정 — 카드 폭 기준(880px 미만에서 표→블록) ── */
@container evd-card (max-width: 1500px) {
  .evd .evd-et .wid { display: none; }
  .evd .evd-et .nar { display: table-cell; }
  .evd .evd-et td.c .r2 { display: block; font-size: var(--fs-xs); line-height: 15px; color: var(--evd-muted); font-weight: 400; }
  .evd .evd-et td.c { line-height: 17px; }
  .evd table.evd-et { font-size: 0.875rem; }
  .evd .evd-et th, .evd .evd-et td { padding: 0 4px; }
}
@container evd-card (max-width: 1100px) {
  .evd .evd-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .evd .evd-arrow { display: none; }
}
@container evd-card (max-width: 999px) {
  .evd table.evd-et { font-size: var(--fs-xs); }
  .evd .evd-et thead .sth { font-size: var(--fs-sm); }
  .evd .evd-et th, .evd .evd-et td { padding: 0 3px; }
  .evd .evd-et .corner, .evd .evd-et tbody th, .evd .evd-et tfoot th { width: 84px; padding-left: 8px; }
  .evd .evd-et tr.sub th { padding-left: 22px; }
  .evd .evd-et thead .sth .evd-ico { display: none; }
}
@container evd-card (max-width: 879px) {
  .evd .evd-twrap { display: none; }
  .evd .evd-blocks { display: flex; }
}
/* 앱 안 폭(~1000px 화면, 카드 ~640px)에서 4열이면 칸이 150px 라 목표·누적 숫자가 붙는다 → 3열. */
@container evd-card (max-width: 760px) {
  .evd .evd-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container evd-card (max-width: 620px) {
  .evd .evd-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .evd .evd-flow > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .evd .evd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evd .evd-sgrid { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 640px) {
  .evd { gap: 12px; padding: 12px; }
  .evd .evd-head { padding: 12px; gap: 10px; }
  .evd .evd-title h2 { font-size: 1.5rem; }
  .evd .evd-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding-top: 10px; }
  .evd .evd-field select, .evd .evd-period { width: 100%; min-width: 0; }
  .evd .evd-seg.evd-axis { grid-column: 1 / -1; width: 100%; }
  .evd .evd-seg.evd-axis button { flex: 1 1 0; }
  .evd .evd-base { grid-column: 1 / -1; margin-left: 0; }
  .evd .evd-card { padding: 12px; }
  .evd .evd-sub { flex-basis: 100%; line-height: 20px; font-size: var(--fs-sm); }
  .evd .evd-tools { margin-left: 0; }
  .evd .evd-refresh { margin-left: 0; }
}
