:root {
  --bg: #f7f8f7;
  --panel: #ffffff;
  --ink: #16201b;
  --muted: #67736c;
  --line: #e5e8e5;
  --line-strong: #d3d8d4;
  --accent: #16794a;
  --accent-soft: #eaf4ee;
  --accent-ink: #ffffff;
  --warn-bg: #fff8e8;
  --warn-ink: #7a5b00;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 27, 0.05);
  --shadow-md: 0 2px 8px rgba(22, 32, 27, 0.06);
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

.topbar {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.back-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  margin-right: 2px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.back-link:hover { background: #f0f3f1; color: var(--ink); }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { color: var(--muted); font-size: 13px; flex: 1; }

.ghost-btn, .primary-btn, .dialog-actions button {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.ghost-btn:hover, .dialog-actions button:hover { background: #f2f4f2; }
.primary-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.primary-btn:hover { opacity: 0.92; }
.primary-btn:disabled { opacity: 0.5; cursor: default; }

.key-banner {
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 10px 24px;
  font-size: 13px;
  border-bottom: 1px solid #f0e4c8;
}
.hidden { display: none; }

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px 24px 60px;
  align-items: start;
}

.tool-nav {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  position: sticky;
  top: 76px;
  box-shadow: var(--shadow-sm);
}
.tool-nav h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 14px 10px 6px;
}
.tool-nav h3:first-child { margin-top: 6px; }
.tool-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.tool-item:hover { background: #f0f3f1; }
.tool-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

#toolForm, .tool-header, .result-box {
  max-width: 720px;
}

.tool-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 300px;
  box-shadow: var(--shadow-sm);
}
.placeholder { color: var(--muted); }

/* ── 단일 검색 화면 (2026-07-30 재편) ────────────────────────────────
   종전: 좌측 도구 목록 10개 × 개별 폼. 같은 위치를 보려고 좌표를 옮겨 적어야 했다.
   현재: 상단 검색 하나로 위치를 정하고, 그 위치에 딸린 내용을 아래 섹션에서 이어 본다.
   (.layout/.tool-nav/.tool-item/.tool-panel 규칙은 설정 화면·리포트 카드가 공유하는
    치수 기준이라 남겨 둔다) */
.finder {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}
.search-form { display: flex; gap: 8px; margin-bottom: 18px; }
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-form input::placeholder { color: #a3aca7; }
.search-form .primary-btn { padding: 0 22px; flex: 0 0 auto; }
.finder-msg {
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.finder-msg.error { background: #fdf1ed; color: #8c3a22; }

.candidate-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.candidate-box h3 { font-size: 14px; margin: 0 0 4px; }
.candidate-box .hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.candidate-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.candidate-item:last-child { margin-bottom: 0; }
.candidate-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.candidate-item .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.section-tabs button {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.section-tabs button:hover { background: #f0f3f1; }
.section-tabs button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.section-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.section-panel .result-box { max-width: none; }
.section-desc { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.section-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.section-controls .ctl { display: flex; flex-direction: column; gap: 7px; }
.section-controls .ctl > .ctl-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.section-controls .ctl input[type="text"],
.section-controls .ctl input[type="month"] {
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  min-width: 190px;
}
.section-controls .ctl input:focus { outline: none; border-color: var(--accent); }
.section-controls .ctl.wide { flex: 1 1 260px; }
.section-controls .ctl-check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.section-controls .ctl-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.section-run { align-self: flex-end; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.field label .req {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: 1px;
}
.field .desc { font-size: 12px; color: var(--muted); margin-bottom: 7px; line-height: 1.5; }
.field input[type="text"],
.field input[type="number"],
.field input[type="month"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #a3aca7; }
.field textarea { min-height: 84px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.field.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.field.checkbox input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); }
.checkbox-label { margin: 0 !important; cursor: pointer; }
.checkbox-title { display: block; font-size: 13px; font-weight: 600; }
.checkbox-help { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* 세그먼트 컨트롤 (라디오 그룹) */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #f0f3f1;
  border-radius: 9px;
  padding: 4px;
}
.segmented-item input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-item span {
  display: block;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.segmented-item span:hover { color: var(--ink); }
.segmented-item input:checked + span {
  background: var(--panel);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.segmented-item input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* 다중 선택 칩 */
.chip-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: block;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip-check span:hover { border-color: var(--muted); color: var(--ink); }
.chip-check input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* 고급 옵션 접기 */
.advanced-options {
  border-top: 1px solid var(--line);
  margin: 4px 0 18px;
  padding-top: 14px;
}
.advanced-options summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
  user-select: none;
  padding: 4px 0;
}
.advanced-options summary::-webkit-details-marker { display: none; }
.advanced-options summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  font-weight: 600;
}
.advanced-options[open] summary::before { content: "−"; }
.advanced-options summary:hover { color: var(--ink); }
.advanced-body { padding-top: 14px; }

/* 위치 선택 위젯 */
.location-picker {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfb;
}
.location-search { display: flex; gap: 8px; }
.location-search-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.location-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.location-search-btn {
  padding: 9px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.location-search-btn:disabled { opacity: 0.5; cursor: default; }
.location-status { font-size: 12px; color: var(--accent); margin: 8px 0 0; min-height: 16px; }
.location-status.error { color: #b23b26; }
.location-map {
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef1ec;
  z-index: 0;
}
.location-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

.submit-row { margin-top: 4px; margin-bottom: 0; }
.submit-row .primary-btn { padding: 11px 24px; font-size: 15px; }

.result-box {
  margin-top: 18px;
}
.result-box.hidden { display: none; }

/* ---- 로딩 상태 ---- */
.loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding: 20px 4px;
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 리포트 카드 공통 ---- */
.report {
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}
.result-box.error .report { border-color: #e3b8ab; }

.report-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.report-header-text { flex: 1; min-width: 0; }
.report-title { font-size: 18px; font-weight: 700; word-break: keep-all; overflow-wrap: break-word; letter-spacing: -0.02em; }
.report-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.report-badges { display: flex; gap: 6px; flex-shrink: 0; }
.report-header.error .report-title { color: #8a2c1f; }

.report-section { margin-top: 22px; }
.report-section:first-child { margin-top: 0; }
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

/* ---- 배지 ---- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1ec;
  color: var(--ink);
  white-space: nowrap;
}
.badge-green { background: #e2f1e7; color: #1f5f3f; }
.badge-blue { background: #e3ecf7; color: #1f4d7a; }
.badge-amber { background: #fdf0d5; color: #8a5a00; }
.badge-gray { background: #eceae5; color: #5c6560; }

/* ---- 통계 그리드 ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.stat-label { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.stat-value { font-size: 15px; font-weight: 600; word-break: break-word; }

/* ---- 표 ---- */
.table-wrap { overflow-x: auto; }
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.report-table th, .report-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.report-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.report-table tbody tr:hover { background: #f4f6f3; }

/* ---- 미니 카드 그리드 (주변 시설/주소 후보 등) ---- */
.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.mini-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.mini-card-title { font-size: 13px; font-weight: 600; }
.mini-card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mini-card-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--accent);
  background: #eef1ec;
  border-radius: 999px;
  padding: 2px 8px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* ---- 분양공고 카드 ---- */
.announce-grid { display: flex; flex-direction: column; gap: 12px; }
.announce-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
/* 카드 클릭 → 주택형별 상세 (app.js가 data-* 를 읽어 이어서 조회한다) */
.announce-card[role="button"] { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.announce-card[role="button"]:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.announce-card[role="button"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.announce-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.announce-more { margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.announce-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.announce-title { font-size: 15px; font-weight: 700; word-break: keep-all; overflow-wrap: break-word; }
.announce-address { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.mini-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.timeline-item { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.timeline-item span { color: var(--muted); }
.timeline-item b { font-size: 13px; }

/* ---- 기타 블록 ---- */
.breadcrumb { font-size: 14px; }
.facility-line { font-size: 13px; margin-bottom: 6px; line-height: 1.5; }
.facility-line b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.info-block {
  background: #eef4ee;
  border: 1px solid #cfe3cf;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.warning-block {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}
.suggestion-list { font-size: 13px; margin: 0 0 12px; padding-left: 18px; color: var(--muted); }
.empty-note { color: var(--muted); font-size: 13px; padding: 10px 0; }
.leaflet-map {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background: #eef1ec;
  z-index: 0;
}
.inline-json {
  font-family: monospace;
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---- 원본 JSON (details) ---- */
.raw-json { margin-top: 18px; }
.raw-json summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}
.raw-json summary:hover { color: var(--ink); }
.raw-json pre {
  margin-top: 8px;
  background: #f2f4f1;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 420px;
  overflow: auto;
}

.tool-header { margin-bottom: 24px; }
.tool-header h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -0.025em; }
.tool-header .group-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.tool-header p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.55; }

dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: min(440px, 90vw);
}
dialog::backdrop { background: rgba(0,0,0,0.35); }
#settingsForm { padding: 22px; }
#settingsForm h2 { margin-top: 0; }
.hint { font-size: 12px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.ok { background: var(--accent); }
.status-dot.missing { background: #c1462b; }
.status-dot.optional { background: #c9c4b6; }
.optional-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: #f0f3f1;
  border-radius: 4px;
  padding: 1px 5px;
}

.key-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 0;
}
.key-status-text { margin-left: auto; color: var(--muted); font-size: 12px; }

button[type="submit"] { display: inline-block; }

/* ---- 반응형: 좁은 화면(태블릿 세로/모바일)에서 2열 그리드를 접어 세로로 쌓는다 ---- */
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; padding: 14px 16px; }
  .subtitle { flex-basis: 100%; order: 1; }
  #settingsBtn { order: 0; margin-left: auto; }

  .layout {
    grid-template-columns: 1fr;
    padding: 14px 16px 40px;
    gap: 14px;
  }

  .tool-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tool-nav h3 {
    flex-basis: 100%;
    margin: 10px 4px 2px;
  }
  .tool-nav h3:first-child { margin-top: 4px; }
  .tool-item {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
  }

  .tool-panel { padding: 16px; }
  #toolForm, .tool-header, .result-box { max-width: none; }

  .finder { padding: 14px 16px 40px; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex-basis: 100%; }
  .search-form .primary-btn { width: 100%; padding: 12px 0; }
  .section-tabs button { flex: 1 1 40%; }
  .section-panel { padding: 16px; }
  .section-controls .ctl { flex: 1 1 100%; }
  .section-controls .ctl input[type="text"],
  .section-controls .ctl input[type="month"] { min-width: 0; width: 100%; }

  .report { padding: 16px 14px; }

  .report-header { flex-wrap: wrap; }
  .report-badges { flex-basis: 100%; margin-left: 40px; }

  /* 표는 가로 스크롤 대신 라벨:값 카드 목록으로 재구성 (드래그 없이 전체 확인 가능) */
  .table-wrap { overflow-x: visible; }
  .report-table thead { display: none; }
  .report-table, .report-table tbody, .report-table tr, .report-table td {
    display: block;
    width: 100%;
  }
  .report-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: var(--panel);
  }
  .report-table tr:last-child { margin-bottom: 0; }
  .report-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--line);
    white-space: normal;
    text-align: right;
  }
  .report-table td:last-child { border-bottom: none; }
  .report-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
    white-space: nowrap;
  }
  .report-table tbody tr:hover { background: var(--panel); }
}
