/* ============================================================
   복지 지원금 찾기 — 화면 스타일
   기조: 공공기관처럼 차분하고, 숫자와 조건이 먼저 읽히게.
   장식용 그라데이션·과한 그림자를 쓰지 않는다.
   ============================================================ */

:root {
  --ink:        #0B1B2B;
  --ink-2:      #3D4F5F;
  --ink-3:      #6B7C8C;
  --line:       #DCE3E9;
  --line-2:     #EDF1F4;
  --bg:         #F3F6F8;
  --surface:    #FFFFFF;

  --navy:       #12354F;
  --navy-600:   #1B4A6B;
  --navy-100:   #E8EFF5;

  --teal:       #0E7C66;
  --teal-100:   #E4F3EF;
  --amber:      #9A6207;
  --amber-100:  #FDF3DF;
  --plum:       #6B3FA0;
  --plum-100:   #F0EAF9;
  --rose:       #A32B36;
  --rose-100:   #FBEAEC;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;

  --shadow-1: 0 1px 2px rgba(11, 27, 43, .06), 0 1px 3px rgba(11, 27, 43, .04);
  --shadow-2: 0 2px 6px rgba(11, 27, 43, .07), 0 8px 24px rgba(11, 27, 43, .06);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2.5px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── 상단 바 ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 58px; padding: 0 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 2px 12px rgba(11, 27, 43, .18);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.brand-text em {
  font-style: normal; font-size: 11.5px; font-weight: 500;
  color: rgba(255, 255, 255, .68); letter-spacing: .01em;
}
.topbar-meta {
  font-size: 12px; text-align: right; line-height: 1.4;
  color: rgba(255, 255, 255, .78); flex: none;
}
.topbar-meta strong { color: #fff; font-weight: 700; }
.topbar-meta .sub { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); }
.skeleton-text { color: rgba(255, 255, 255, .45); }

/* ── 레이아웃 ────────────────────────────────────────────── */
#app { max-width: 900px; margin: 0 auto; padding: 0 20px 64px; }
.stage { padding-top: 28px; }

/* ── 조건 고르기 (한 화면) ──────────────────────────────── */
.finder-intro { text-align: center; margin-bottom: 22px; }
.finder-intro h1 {
  font-size: 27px; font-weight: 800; letter-spacing: -.035em;
  line-height: 1.35; color: var(--ink);
}
.finder-intro p {
  margin: 10px auto 0; max-width: 520px;
  font-size: 14.5px; line-height: 1.75; color: var(--ink-2);
}
.finder-intro strong { color: var(--navy); font-weight: 700; }
.br-m { display: none; }

.finder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.fset { border: 0; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.fset:first-of-type { border-top: 0; }
.fset.is-flash { animation: flash 1.2s ease both; }
@keyframes flash {
  0%, 100% { background: transparent; }
  20%, 60% { background: var(--navy-100); }
}
@media (prefers-reduced-motion: reduce) { .fset.is-flash { animation: none; } }

.fset-head {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  width: 100%; padding: 16px 22px 0;
}
.fset-no {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  transform: translateY(3px);
}
.fset-title { font-size: 16.5px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.fset-hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.fset-body { padding: 14px 22px 20px; }

/* 나이 — 직접 입력이 먼저, 구간 버튼은 지름길 */
.age-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.age-input {
  display: inline-flex; align-items: baseline; gap: 6px; flex: none;
  padding: 4px 16px 4px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #FBFCFD;
  transition: border-color .18s, background .18s;
}
.age-input:focus-within { border-color: var(--navy-600); background: #fff; }
.age-input input {
  width: 92px; border: 0; background: none; text-align: center;
  font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--ink);
  padding: 2px 0;
}
.age-input input::-webkit-outer-spin-button,
.age-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.age-input input[type=number] { -moz-appearance: textfield; }
.age-input input::placeholder { color: #C4CDD5; }
.age-unit { font-size: 16px; font-weight: 600; color: var(--ink-3); }

.age-band { flex: 1 1 200px; min-width: 0; font-size: 13.5px; line-height: 1.7; }
.age-band strong {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  background: var(--navy-100); color: var(--navy);
  font-size: 13.5px; font-weight: 700; margin-right: 7px;
}
.age-band span { color: var(--ink-2); }
.age-band .age-empty { color: var(--ink-3); font-size: 13px; }
.age-band .age-bad { color: var(--rose); font-weight: 600; }

.age-or {
  margin: 18px 0 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--ink-3);
}
.quickpick { display: flex; flex-wrap: wrap; gap: 6px; }
.quickpick button {
  padding: 7px 13px; border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  line-height: 1.25; text-align: center;
  transition: border-color .15s, color .15s, background .15s;
}
.quickpick button small {
  display: block; margin-top: 2px;
  font-size: 10.5px; font-weight: 500; color: var(--ink-3);
}
.quickpick button:hover { border-color: var(--navy-600); color: var(--navy); background: var(--navy-100); }
.quickpick button:hover small { color: var(--navy-600); }
.quickpick button.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.quickpick button.is-on small { color: rgba(255, 255, 255, .72); }

/* 지역 선택 */
.region-grid {
  display: grid; gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
.region-grid button {
  padding: 13px 8px; border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
}
.region-grid button small {
  display: block; margin-top: 3px;
  font-size: 11px; font-weight: 500; color: var(--ink-3);
}
.region-grid button:hover { border-color: var(--navy-600); background: var(--navy-100); color: var(--navy); }
.region-grid button.is-on {
  border-color: var(--navy); background: var(--navy); color: #fff;
}
.region-grid button.is-on small { color: rgba(255, 255, 255, .7); }

.region-grid button.is-none { border-style: dashed; color: var(--ink-3); }
.region-grid button.is-none small { color: #A9B4BE; }
.region-grid button.is-none.is-on { background: var(--ink-3); border-color: var(--ink-3); color: #fff; }

.region-warn {
  margin-top: 14px; padding: 11px 14px; text-align: left;
  border: 1px solid #F0DCAE; border-left: 3px solid #D9A63C; border-radius: var(--r-sm);
  background: var(--amber-100);
  font-size: 13px; line-height: 1.7; color: #6E4708;
}
.region-warn strong { font-weight: 700; }

.region-sub { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); text-align: left; }
.field-label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3);
}
.field-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; pointer-events: none;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
}
.select-wrap select {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 48px; padding: 0 38px 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  font-size: 15px; font-weight: 500;
}
.select-wrap select:focus { border-color: var(--navy-600); }
.select-sm select { height: 40px; font-size: 13.5px; padding: 0 32px 0 12px; }
.select-sm.select-wrap::after { right: 12px; width: 7px; height: 7px; }

/* 상황 선택 */
.situation-list {
  display: grid; gap: 7px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.sit {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sit:hover { border-color: var(--navy-600); background: var(--navy-100); }
.sit.is-on { border-color: var(--navy); background: var(--navy-100); }
.sit input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.sit-body { min-width: 0; }
/* span 이라 기본이 inline 이다. block 으로 두지 않으면 이름과 설명이 한 줄로 붙는다. */
.sit-name { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.sit-desc { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* 관심 주제 */
.thema-list { display: flex; flex-wrap: wrap; gap: 6px; }
.thm {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border: 1.5px solid var(--line); border-radius: 20px;
  background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.thm:hover { border-color: var(--navy-600); background: var(--navy-100); color: var(--navy); }
.thm.is-on { border-color: var(--navy); background: var(--navy-100); color: var(--navy); }
.thm input { width: 15px; height: 15px; accent-color: var(--navy); flex: none; }
.thm em {
  font-style: normal; font-size: 11.5px; font-weight: 700;
  color: var(--ink-3); padding: 1px 6px; border-radius: 10px; background: var(--line-2);
}
.thm.is-on em { background: #fff; color: var(--navy-600); }

/* 검색 버튼 줄 — 모바일에서는 화면 아래에 붙어 따라온다 */
.finder-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.finder-live { font-size: 14px; color: var(--ink-2); }
.finder-live strong { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.finder-live .live-zero { color: var(--rose); font-weight: 600; font-size: 13.5px; }
.finder-acts { display: flex; align-items: center; gap: 8px; }
.btn-search { min-width: 168px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 50px; padding: 0 26px;
  border-radius: var(--r); font-size: 15.5px; font-weight: 700;
  transition: background .16s, border-color .16s, color .16s;
}
.btn-primary { background: var(--navy); color: #fff; min-width: 132px; }
.btn-primary:hover { background: var(--navy-600); }
.btn-wide { min-width: 190px; }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--navy-600); color: var(--navy); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 13px; border-radius: var(--r-sm); }

.stage-foot {
  margin: 18px auto 0; max-width: 560px;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-3); text-align: center;
}
.stage-foot strong { color: var(--ink-2); font-weight: 700; }

/* ── 결과 ────────────────────────────────────────────────── */
.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.result-count { font-size: 15px; color: var(--ink-2); }
.result-count strong {
  font-size: 30px; font-weight: 800; letter-spacing: -.03em;
  color: var(--navy); margin-right: 3px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 13px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chip-edit { cursor: pointer; }
.chip-edit:hover { border-color: var(--navy-600); color: var(--navy); }
.chip-x {
  display: grid; place-items: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--line-2); color: var(--ink-3);
  font-size: 11px; line-height: 1;
}
.chip-x:hover { background: var(--rose-100); color: var(--rose); }
.chip.is-empty { border-style: dashed; color: var(--ink-3); font-weight: 500; }

.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px; margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.search-field {
  position: relative; display: flex; align-items: center; gap: 8px;
  flex: 1 1 260px; min-width: 0; height: 40px; padding: 0 10px 0 12px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #FBFCFD; color: var(--ink-3);
}
.search-field:focus-within { border-color: var(--navy-600); background: #fff; }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: none;
  font-size: 14px; color: var(--ink);
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear { padding: 4px; font-size: 12px; color: var(--ink-3); }
.search-clear:hover { color: var(--rose); }

.switch {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 13px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.switch:has(input:checked) { border-color: var(--navy); background: var(--navy-100); color: var(--navy); }
.switch input { width: 16px; height: 16px; accent-color: var(--navy); }

.prv-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px;
  scrollbar-width: thin;
}
.prv-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 14px; border-radius: 20px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.prv-tab:hover { border-color: var(--navy-600); color: var(--navy); }
.prv-tab.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }
.prv-tab .n {
  padding: 1px 7px; border-radius: 10px;
  background: var(--line-2); color: var(--ink-3);
  font-size: 11.5px; font-weight: 700;
}
.prv-tab.is-on .n { background: rgba(255, 255, 255, .22); color: #fff; }

/* 결과 카드 */
.list {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.item { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }
.item:hover { background: #FAFCFD; }

.item-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.badge {
  padding: 2.5px 8px; border-radius: 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent;
}
.b-nat    { background: var(--navy-100); color: var(--navy); }
.b-loc    { background: var(--plum-100); color: var(--plum); }
.b-cash   { background: var(--teal-100); color: var(--teal); }
.b-voucher{ background: var(--amber-100); color: var(--amber); }
.b-goods  { background: var(--amber-100); color: var(--amber); }
.b-reduce { background: var(--rose-100); color: var(--rose); }
.b-loan   { background: var(--plum-100); color: var(--plum); }
.b-service{ background: var(--navy-100); color: var(--navy-600); }
.b-etc    { background: var(--line-2); color: var(--ink-3); }
.b-online { background: var(--teal-100); color: var(--teal); }
.b-new    { background: #E9F7EC; color: #14733A; border-color: #B8E3C4; }
.b-changed{ background: var(--amber-100); color: var(--amber); border-color: #F0DCAE; }
.b-only   { background: #FFF; color: var(--ink-3); border-color: var(--line); }

.item-name {
  font-size: 17px; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.4; color: var(--ink);
}
.item-org { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.item-desc {
  margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; flex-wrap: wrap;
}
.item-tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.tag {
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--line); background: #FBFCFD;
  font-size: 11.5px; color: var(--ink-3);
}
.item-link {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--navy-100); color: var(--navy);
  font-size: 13px; font-weight: 700;
  transition: background .15s;
}
.item-link:hover { background: #D6E4EF; }

.more-btn {
  display: block; width: 100%; margin-top: 12px; padding: 15px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  font-size: 14px; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow-1);
  transition: background .15s;
}
.more-btn:hover { background: var(--navy-100); }

/* 결과 아래 — 다시 찾기 */
.result-again { margin-top: 16px; text-align: center; }
.result-again .btn { min-width: 220px; }

/* 결과 없음 */
.empty { padding: 60px 24px; text-align: center; }
.empty-icon { font-size: 34px; margin-bottom: 12px; opacity: .5; }
.empty-title { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.empty-sub { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.empty-acts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ── 광고 ────────────────────────────────────────────────── */
.ad-slot {
  margin: 14px 0; padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; min-width: 0;
}
.ad-slot .adsbygoogle { display: block; width: 100%; max-width: 100%; min-width: 0; }
/* 광고를 못 채웠을 때 빈 칸을 남기지 않는다 */
.ad-slot .adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-inline { margin: 0; border: 0; border-radius: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #FAFBFC; }

/* ── 상태 ────────────────────────────────────────────────── */
.state { text-align: center; padding: 72px 20px; }
.state-icon { font-size: 38px; margin-bottom: 12px; }
.state-title { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.state-sub { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-3); }
.state .btn { margin-top: 20px; }
.spinner {
  width: 38px; height: 38px; margin: 0 auto 18px;
  border: 3.5px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 푸터 ────────────────────────────────────────────────── */
.sitefoot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 20px 40px;
  text-align: center;
}
.sitefoot p { max-width: 660px; margin: 0 auto; }
.foot-src { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.foot-src a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
.foot-note { margin-top: 10px; font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }
.foot-meta { margin-top: 12px; font-size: 11.5px; color: #9AA8B4; }

/* ── 모바일 ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  #app { padding: 0 14px 48px; }
  .stage { padding-top: 20px; }
  .topbar { height: 54px; padding: 0 14px; }
  .brand-text strong { font-size: 15px; }
  .topbar-meta { font-size: 11px; }

  .br-m { display: inline; }
  .finder-intro h1 { font-size: 22px; }
  .finder-intro p { font-size: 13.5px; }
  .finder { border-radius: var(--r); }

  .fset-head { padding: 15px 15px 0; gap: 7px; }
  .fset-title { font-size: 15.5px; }
  .fset-hint { flex: 1 1 100%; font-size: 12px; }
  .fset-body { padding: 12px 15px 18px; }

  .age-row { gap: 12px; }
  .age-input input { width: 78px; font-size: 30px; }
  .age-band { flex: 1 1 100%; }
  .quickpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quickpick button { padding: 8px 4px; font-size: 12.5px; }

  .region-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .region-grid button { padding: 11px 4px; font-size: 13px; }
  .region-grid button small { font-size: 10px; }

  .situation-list { grid-template-columns: 1fr; }
  .thm { font-size: 13px; padding: 7px 11px; }

  /* 조건 화면이 길어서 끝까지 내려가야 검색 버튼이 나오면 불편하다.
     화면 아래에 붙여 어디서든 바로 누를 수 있게 한다. */
  .finder-foot {
    position: sticky; z-index: 40;
    bottom: 0; bottom: env(safe-area-inset-bottom, 0);
    margin: 10px -14px 0; padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -3px 14px rgba(11, 27, 43, .1);
    flex-wrap: nowrap; gap: 10px;
  }
  @supports (backdrop-filter: blur(6px)) {
    .finder-foot { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); }
  }
  .finder-live { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
  .finder-live strong { font-size: 18px; }
  .finder-acts { flex: none; gap: 6px; }
  .finder-acts .btn { height: 46px; }
  #resetAll { padding: 0 13px; font-size: 13.5px; }
  .btn-search { min-width: 0; padding: 0 18px; }
  .stage-foot { margin-top: 14px; }

  .result-count strong { font-size: 25px; }
  .toolbar { padding: 10px; }
  .search-field { flex: 1 1 100%; }
  .switch, .select-sm { flex: 1 1 auto; }

  .item { padding: 15px 14px; }
  .item-name { font-size: 16px; }
  .item-desc { font-size: 13.5px; }
  .item-foot { flex-direction: column; align-items: stretch; }
  .item-link { justify-content: center; }
}

@media (max-width: 380px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}
