/* ─────────────────────────────────────────────
   멍멍위키 — 댕댕이 잔디 톤
   기본(라이트): 햇살 크림 + 싱그러운 잔디 + 따뜻한 골든
   시스템 다크: 포근한 밤 산책 잔디 톤
   ───────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  /* 바탕 — 화사한 햇살 크림 */
  --bg: #fffcf1;
  --bg-glow-grass: rgba(104, 212, 140, .20);
  --bg-glow-sun: rgba(255, 205, 88, .22);
  --surface: #ffffff;
  --surface-2: #fbfdf6;
  --surface-3: #f1f8ec;
  --ink: #1b2a20;
  --ink-soft: #4e6155;
  --ink-mute: #84958a;
  --line: #efe6ce;
  --line-soft: #f7f1df;

  /* 싱그러운 잔디 그린 */
  --mint: #2fa85f;
  --mint-deep: #167246;
  --mint-tint: #e2f8e9;
  /* 따뜻한 골든 포인트 */
  --sun: #f6b81f;
  --sun-deep: #8c6100;
  --sun-tint: #fff3ca;
  --sky: #3f9dd0;
  --sky-deep: #266f96;
  --sky-tint: #e7f5fd;
  --coral: #f4795b;
  --coral-deep: #bf4d31;
  --coral-tint: #ffeae3;

  --shadow-s: 0 1px 2px rgba(60, 72, 60, .05), 0 6px 14px -8px rgba(60, 72, 60, .16);
  --shadow-m: 0 2px 6px rgba(60, 72, 60, .05), 0 22px 44px -26px rgba(60, 72, 60, .34);
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 34px;
  --maxw: 1180px;
  --topbar-h: 64px;
  --fade-start: rgba(255, 253, 248, 0);
  --fade-end: #fffdf8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 한글은 어절 단위로 끊습니다 — 단어 중간에서 잘리거나 한 글자만 다음 줄로 떨어지지 않게 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 화면 위쪽에서 스며드는 잔디빛·햇살빛 — 스크롤해도 은은하게 남는 배경 레이어 */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 58vh; min-height: 380px;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--bg-glow-sun) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(90% 92% at 6% 0%, var(--bg-glow-grass) 0%, rgba(255, 255, 255, 0) 76%);
}

h1, h2, h3 { line-height: 1.24; letter-spacing: -0.032em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--mint); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 16px; }

/* ── 상단 바 ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; height: var(--topbar-h);
  padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--mint-tint), var(--sun-tint));
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; fill: var(--mint-deep); }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: -0.045em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.topbar-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

/* 🎵 배경음악 토글 — 기본은 꺼짐 */
.bgm-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 13px; font-weight: 800; line-height: 1;
  color: var(--mint-deep); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.bgm-btn:hover { background: var(--mint-tint); border-color: #cfeadd; }
.bgm-btn:active { transform: scale(.97); }
.bgm-btn:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.bgm-btn .bgm-ico { font-size: 13px; line-height: 1; }
.bgm-btn.is-on { background: var(--mint-tint); border-color: #cfeadd; }
.bgm-btn.is-on .bgm-ico { animation: bgm-bob 1.7s ease-in-out infinite; }
.bgm-btn.is-loading { opacity: .65; }
@keyframes bgm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* 🐕 우리 댕댕이 — 헤더 독립 버튼(탭에서 분리) */
.mydog-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 13px; font-weight: 800; line-height: 1;
  color: var(--mint-deep); background: var(--mint-tint);
  border: 1px solid #cfeadd; border-radius: 999px;
  padding: 8px 13px; cursor: pointer; white-space: nowrap;
  min-width: 0; flex: 0 1 auto;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.mydog-pill .mydog-pill-ico { font-size: 14px; line-height: 1; flex: 0 0 auto; }
.mydog-pill .mydog-pill-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mydog-pill:hover { background: #d9f3e5; border-color: #bfe6d3; }
.mydog-pill:active { transform: scale(.97); }
.mydog-pill:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.mydog-pill.is-active { background: var(--mint); border-color: var(--mint); color: #fff; }
/* 히어로 배지 — 헤더에서 내려온 「전국 N곳」 */
.eyebrow-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-count {
  font-size: 12.5px; font-weight: 800; color: var(--mint-deep);
  background: var(--mint-tint); padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.lede-dog { color: var(--mint-deep); font-weight: 800; }

/* ── 히어로 ─────────────────────────────── */
.hero { max-width: var(--maxw); margin: 22px auto 0; padding: 0 20px; }
.hero-card {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 26px; align-items: center;
  /* 풀밭에 내리쬐는 햇살 — 잔디빛 + 골든 + 하늘빛 */
  background:
    radial-gradient(115% 130% at 6% 0%, #e2f9e9 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(105% 120% at 100% 6%, #fff3ce 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(120% 120% at 88% 100%, #e2f3ff 0%, rgba(255, 255, 255, 0) 64%),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-m);
  padding: 28px 30px 26px;
}
.eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--mint-deep);
  background: var(--mint-tint); padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; line-height: 1.22; letter-spacing: -.03em; word-break: keep-all; }
.hero-copy { min-width: 0; }
.hl {
  background: linear-gradient(transparent 58%, #ffe9ad 58%);
  padding: 0 2px; border-radius: 4px;
}
/* 부제 — 기능 나열 / 무료·비저장 안내를 각각 한 줄로 끊어 정돈 */
.lede {
  margin-top: 12px; color: var(--ink-soft); font-size: 15px;
  line-height: 1.66; letter-spacing: -.003em;
  max-width: 40ch; word-break: keep-all; text-wrap: pretty;
}
.lede-l { display: block; }
.lede-l + .lede-l { margin-top: 1px; }

/* ── 검색창 — 아래 필터 버튼들과 한눈에 구분되도록 민트 테두리·그림자로 띄웁니다 ── */
.searchbar {
  position: relative; margin-top: 20px; display: flex; align-items: center;
  width: 100%; max-width: 100%;
  background: var(--surface); border: 2px solid var(--mint);
  border-radius: 18px;
  box-shadow: 0 10px 22px -14px rgba(45, 122, 74, .55), 0 2px 6px rgba(45, 122, 74, .10);
  transition: border-color .15s, box-shadow .15s;
}
.searchbar:hover { border-color: var(--mint-deep); }
.searchbar:focus-within {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(47, 163, 107, .16), 0 10px 22px -14px rgba(45, 122, 74, .6);
}
.search-icon { width: 23px; height: 23px; fill: var(--mint-deep); margin: 0 4px 0 16px; flex: 0 0 auto; }
.searchbar input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: 16px 16px 16px 8px; font-size: 16px; font-weight: 600; color: var(--ink);
}
.searchbar input::placeholder { color: var(--ink-mute); font-weight: 500; }

/* 현황 칩 — 맨 윗줄은 전체 요약(단독), 아래는 5개 동등 그리드 (유형만·숫자만) */
.stat-chips { display: grid; gap: 8px; margin-top: 16px; }
.stat-total {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 999px; text-align: center;
  background: linear-gradient(135deg, #ddf8e7, #f4fdf7);
  border: 1.5px solid #b9e8cb; color: var(--mint-deep);
  font-size: 14.5px; font-weight: 800; letter-spacing: -.01em;
}
.stat-total strong { font-size: 20px; font-weight: 900; line-height: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stat-grid .stat { display: flex; align-items: center; justify-content: center; text-align: center; }
.stat {
  font-size: 13px; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 600;
}
.stat strong { color: var(--mint-deep); font-weight: 900; font-size: 14.5px; margin-left: 4px; }
.stat.is-sun strong { color: var(--sun-deep); }
.stat.is-sky strong { color: var(--sky-deep); }
.stat.is-shop strong { color: #a83a68; }

/* ☰ 화면 메뉴 — 예전 히어로의 7탭 줄을 헤더 안 드롭다운으로 접었습니다(2026-11-26)
   · 헤더 오른쪽 끝의 작은 ☰ 버튼 하나만 남기고, 화면 전환은 이 메뉴가 맡습니다.
   · 「우리 땅땅이」·「찜한 곳」은 그대로 헤더의 독립 버튼입니다. */
.sector-menu { position: relative; flex: 0 0 auto; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 38px; padding: 0 13px 0 11px;
  font: inherit; font-size: 13.5px; font-weight: 900; line-height: 1;
  color: var(--mint-deep); background: var(--mint-tint);
  border: 1.5px solid #9fd3b1; border-radius: 12px;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.menu-btn .menu-btn-ico { font-size: 15px; line-height: 1; }
.menu-btn .menu-btn-label { font-size: 13.5px; font-weight: 900; letter-spacing: -.03em; }
.menu-btn:hover { background: #d3f0e0; border-color: #7cc39a; }
.menu-btn:active { transform: scale(.96); }
.menu-btn:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.menu-btn[aria-expanded="true"] { background: var(--mint); border-color: var(--mint); color: #fff; }
.sector-menu.is-open .menu-btn-ico { color: var(--mint-deep); }

.sector-menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  width: min(78vw, 268px); padding: 9px 9px 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 44px -28px rgba(31, 42, 36, .8), 0 2px 10px rgba(31, 42, 36, .08);
  max-height: calc(100vh - 96px); overflow-y: auto;
}
.sector-menu-panel[hidden] { display: none; }
.sector-menu-title {
  margin: 2px 6px 7px; font-size: 11px; font-weight: 900; letter-spacing: .04em;
  color: var(--ink-mute);
}
/* 7개 화면 — 아이콘 · 이름을 한 줄씩, 손가락으로 누르기 좋은 높이 */
.tabs { display: grid; gap: 3px; margin: 0; padding: 0; background: none; border: 0; }
.tab {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px;
  width: 100%; text-align: left; white-space: nowrap;
  font-size: 14px; font-weight: 800; color: var(--ink-soft); line-height: 1.2;
  padding: 9px 10px; border-radius: 11px; letter-spacing: -.03em;
  transition: background .15s, color .15s;
}
.tab .tab-ico { flex: 0 0 auto; font-size: 16px; line-height: 1; }
.tab .tab-label { display: block; font-size: 14px; font-weight: 800; letter-spacing: -.03em; }
.tab:hover { color: var(--mint-deep); background: var(--mint-tint); }
.tab.is-active { background: var(--mint-tint); color: var(--mint-deep); box-shadow: inset 0 0 0 1.5px rgba(47, 163, 107, .38); }
.tabs-mag { margin: 8px 2px 0; padding-top: 7px; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.35; }
.tabs-mag a { display: inline-block; max-width: 100%; color: var(--mint-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

.hero-art { position: relative; min-width: 0; }
.hero-art img {
  width: 100%; height: auto; aspect-ratio: 1400 / 788; object-fit: cover; object-position: center;
  border-radius: var(--r-l); box-shadow: var(--shadow-m);
  border: 6px solid #fff; background: #eaf6ea;
}
.art-badge {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(255, 255, 255, .95); color: var(--mint-deep);
  font-size: 13px; font-weight: 900; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow-s);
}

/* ── 필터 ───────────────────────────────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.finder {
  position: relative; z-index: 5;
  margin-top: 18px; padding: 12px 14px;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow-s);
}
/* 유형·조건 칩 — 가로 스크롤 없이 여러 줄로 한눈에 (모든 화면 크기 공통) */
.quick-wrap { position: relative; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 0; }
.quick-chips::-webkit-scrollbar { display: none; }
/* hidden 속성이 칩의 display 규칙에 덮이지 않게 (대형견 전용 칩 등) */
.qchip[hidden], .quick-chips [hidden] { display: none !important; }
.qchip {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; font-size: 13.5px; font-weight: 800; color: var(--chip-ink, var(--ink-soft));
  background: var(--chip-bg, var(--surface)); border: 1.5px solid var(--chip-line, #e4ddc7);
  padding: 0 15px; border-radius: 999px; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.qchip:hover { border-color: var(--mint); color: var(--mint-deep); background: var(--mint-tint); }
.qchip[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #fff; box-shadow: 0 6px 14px -8px rgba(47, 163, 107, .9); }
.qchip:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.qchip[disabled] { opacity: .38; }
.qchip.qchip--free[aria-pressed="true"] { background: var(--mint); }
.qchip.qchip--express[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); box-shadow: 0 6px 14px -8px rgba(63, 157, 208, .9); }
.qchip.qchip--split[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #3a2c00; box-shadow: 0 6px 14px -8px rgba(242, 181, 46, .9); }
.qchip.qchip--cafe[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); box-shadow: 0 6px 14px -8px rgba(244, 121, 91, .9); }
.qchip[aria-pressed="true"]::before { content: "✓"; font-weight: 900; }

/* 조건 영역 머리글 — 유형·조건 / 권역 */
.filter-head, .zone-head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 7px; }
.zone-head { margin-top: 15px; }
.filter-head .reset, .zone-head .reset { margin-left: auto; }
.filter-title { font-size: 12.5px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }

.reset {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; background: var(--surface);
}
.reset:hover { color: var(--ink); border-color: var(--ink-mute); }

.zone-row { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.zchip {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 999px; background: #f6f3ec; white-space: nowrap;
}
.zchip[aria-pressed="true"] { background: var(--mint-tint); color: var(--mint-deep); font-weight: 900; }
.zchip--all { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.zchip-count {
  font-size: 11px; font-weight: 900; color: var(--mint-deep); background: #fff;
  border-radius: 999px; padding: 1px 7px;
}
.zchip[aria-pressed="true"] .zchip-count { background: #fff; }
.zone-now {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800;
  color: var(--ink-soft); margin: 0;
}
.zone-now::before { content: "📍"; font-size: 11px; line-height: 1; }

/* ── 권역 선택 지도 ──
   이름표는 지도 위에 얹은 HTML 버튼입니다. 바탕·테두리·글씨를 한 덩어리로
   지정해 라이트/다크 어느 쪽에서도 명도 대비 7:1 이상이 나오게 했습니다. */
.zone-map { display: block; }
.zone-map-card {
  margin-top: 10px; padding: 10px 12px 8px; background: #fbfaf6;
  border: 1px solid var(--line); border-radius: var(--r-m, 14px);
}
.zone-map-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.zone-map-title { font-size: 12px; font-weight: 900; color: var(--ink); }
.zone-map-count {
  display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 900; color: var(--mint-deep); background: var(--mint-tint);
  vertical-align: 1px;
}
/* 권역을 고른 뒤에만 나타나는 「전체 보기」 — 지도 헤더 오른쪽 끝 */
.zone-all {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 4px;
  min-height: 28px; padding: 0 11px; border-radius: 999px; line-height: 1;
  font-size: 11.5px; font-weight: 800; color: var(--mint-deep);
  background: var(--mint-tint); border: 1.5px solid #9fd3b1;
}
.zone-all::before { content: "↺"; font-size: 12px; font-weight: 900; }
.zone-all:hover { background: #d9f2e2; }
.zone-all[hidden] { display: none; }
.zone-map-hint { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.zone-map-stage { position: relative; width: 100%; max-width: 336px; margin: 4px auto 0; }
.krmap { display: block; width: 100%; height: auto; }
.kr-labels { position: absolute; inset: 0; pointer-events: none; }
.kr-g { cursor: pointer; }
.kr-path {
  fill: #e3ddc8; stroke: #bdb298; stroke-width: 1; stroke-linejoin: round;
  transition: fill .15s;
}
.kr-g:hover .kr-path { fill: #d2c6a2; }
.kr-g.is-zero .kr-path { fill: #efece1; }
.kr-g[aria-pressed="true"] .kr-path { fill: #8fd6b4; stroke: #12724f; stroke-width: 1.6; }
.kr-island { stroke: #a99f82; stroke-width: 1; }
.kr-g[aria-pressed="true"] .kr-island { stroke: #5fae83; }
/* 권역 이름표 (HTML 버튼) */
.kr-btn {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 2px 7px 1px; border-radius: 10px; white-space: nowrap;
  background: #ffffff; color: #0b1d15; border: 1.6px solid #123c2b;
  font-family: inherit; font-size: 11px; font-weight: 900; line-height: 1.3;
  letter-spacing: -.01em; cursor: pointer; pointer-events: auto;
  box-shadow: 0 1px 2px rgba(18, 40, 28, .18);
  transition: background .15s, color .15s, box-shadow .15s;
}
.kr-btn .kr-name { display: block; }
.kr-btn .kr-count { display: block; font-size: 10px; font-weight: 800; color: #0a5c3b; }
.kr-btn:hover { background: #eefaf2; }
.kr-btn:focus-visible { outline: 2px solid #123c2b; outline-offset: 2px; }
.kr-btn.is-zero { background: #f4f2ea; border-color: #8f9a93; color: #3f4b45; }
.kr-btn.is-zero .kr-count { color: #4a564f; }
.kr-btn[aria-pressed="true"] {
  background: #0b5b40; border-color: #0b5b40; color: #ffffff;
  box-shadow: 0 0 0 2.5px rgba(126, 240, 182, .95), 0 2px 4px rgba(11, 91, 64, .3);
}
.kr-btn[aria-pressed="true"] .kr-count { color: #d9ffe9; }
.kr-isle-tag {
  background: #22403a; border-color: #22403a; color: #ffffff;
  font-size: 9.5px; font-weight: 800; padding: 2px 7px; cursor: default;
}
.kr-leader { stroke: #8d9482; stroke-width: 1; stroke-dasharray: 2 2; }
/* 지역 이름 바로 위에 빼꼼 올라탄 댕댕이 — 이미지라 강제 다크에서도 색이 뒤집히지 않습니다. */
.kr-dog {
  position: absolute; left: 50%; bottom: calc(100% - 2px);
  width: 26px; height: 26px; display: block; transform: translateX(-50%);
  pointer-events: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 2px 2px rgba(18, 40, 28, .3));
}
.kr-leaders, .kr-isle-tag { pointer-events: none; }
.kr-isle-tag { pointer-events: none; }
.zone-map-credit { font-size: 10px; line-height: 1.4; color: #6c7570; text-align: center; margin: 2px 0 0; padding: 0 2px; }
@media (min-width: 900px) {
  .zone-map-stage { max-width: 420px; }
  .zone-map-card { padding: 12px 16px 10px; }
}

/* ── 결과 ───────────────────────────────── */
.results { margin-top: 26px; scroll-margin-top: calc(var(--topbar-h) + 120px); }
/* 2026-11-28 — 결과 제목 줄은 사용자 요청으로 화면에서 없앴습니다. */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(316px, 100%), 1fr)); gap: 16px; }

.card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 18px; box-shadow: var(--shadow-s);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: #e4f3e9; }

.card-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.card-head h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.03em; }
.card-head h3 span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); margin-top: 3px; letter-spacing: 0; }
.card-head h3 .card-ico { display: inline-block; font-size: 16px; line-height: 1; margin-right: 5px; vertical-align: -1px; }

.pill {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 900; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.pill--free { background: var(--mint-tint); color: var(--mint-deep); }
.pill--paid { background: var(--coral-tint); color: var(--coral-deep); }
.pill--unknown { background: #f3f1ea; color: #7b7568; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.tag--mint { background: var(--mint-tint); color: var(--mint-deep); }
.tag--sky { background: var(--sky-tint); color: var(--sky-deep); }
.tag--sun { background: var(--sun-tint); color: var(--sun-deep); }
.tag--ghost { background: #f7f4ed; color: var(--ink-soft); }

.micro { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.micro li { background: #fbf9f3; border: 1px solid #f4efe4; border-radius: 13px; padding: 8px 10px; min-width: 0; }
.micro-k { display: block; font-size: 11px; font-weight: 700; color: var(--ink-mute); letter-spacing: 0; }
.micro-v { display: block; font-size: 14px; font-weight: 800; color: var(--ink); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.micro-v.is-warn { color: #a1761a; }

.owner { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.owner svg { width: 14px; height: 14px; fill: var(--mint); flex: 0 0 auto; margin-top: 2px; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

/* ── 카드 대표 사진(위키미디어 공용) ─────────── */
.shots { margin: 10px 0 2px; }
.shots-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.shots-k { font-size: 11.5px; font-weight: 900; color: var(--sky-deep); background: var(--sky-tint); padding: 3px 9px; border-radius: 7px; }
.shots-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shots-strip.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots-strip.is-one { grid-template-columns: 1fr; }
.shots-strip.is-mini { grid-template-columns: 2fr 1fr; }
.shot { display: block; border-radius: 12px; overflow: hidden; background: #eef2ee; aspect-ratio: 4 / 3; border: 1px solid var(--line-soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots-credit { margin-top: 6px; font-size: 10.5px; line-height: 1.5; color: var(--ink-mute); font-weight: 600; }
.shots-credit a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }

/* 미니 지도 미리보기 — 탭하면 사이트 안 지도 모달 */
.shot--mini { position: relative; padding: 0; margin: 0; cursor: pointer; background: #e7ecea; }
.shot--mini img { filter: saturate(0.95); }
.mini-k, .mini-credit {
  position: absolute; font-size: 9.5px; font-weight: 900; line-height: 1.2; border-radius: 6px;
  padding: 2px 6px; pointer-events: none; white-space: nowrap;
}
.mini-k { left: 5px; top: 5px; color: #fff; background: rgba(24, 36, 34, 0.72); }
.mini-credit { right: 4px; bottom: 4px; color: #22302e; background: rgba(255, 255, 255, 0.86); font-weight: 800; }

/* 3번째 칸 — 더 많은 현장 사진이 필요할 때만 새 창으로 */
.shot--more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-align: center; text-decoration: none; border: 1px dashed #b9c9c3;
  background: linear-gradient(160deg, #f2f8f5 0%, #e8f1ee 100%); padding: 6px;
}
.shot--more .more-emoji { font-size: 18px; line-height: 1; }
.shot--more .more-label { font-size: 10.5px; font-weight: 900; color: #2d5b4f; line-height: 1.25; word-break: keep-all; }
.shot--more .more-sub { font-size: 9.5px; font-weight: 800; color: #6d857e; }
.shot--more:hover, .shot--more:focus-visible { border-color: #6ea38f; background: #eaf5f0; }


.tag--dist { background: var(--ink); color: #fff; font-weight: 900; }

/* ── 정렬 바 (위: 내 주변 거리순 블록 / 아래: 인기·추천 2분할) ───── */
.sortbar { display: grid; gap: 9px; margin: 0 0 16px; }
.near-block { display: block; }
.near-on-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; max-width: 380px; padding: 12px 18px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 14px; font-weight: 900; letter-spacing: -.02em; color: #fff;
  background: linear-gradient(128deg, #34b268 0%, #1c8a52 55%, #14663d 100%);
  box-shadow: 0 14px 26px -20px rgba(20, 102, 61, .9); cursor: pointer;
  transition: transform .15s, filter .15s;
}
.near-on-pill:hover { transform: translateY(-1px); filter: brightness(1.03); }
.near-on-pill:focus-visible { outline: 2px solid #123c2b; outline-offset: 2px; }
.near-on-pill[disabled] { opacity: .7; cursor: default; transform: none; }
.near-on-ico { font-size: 15px; line-height: 1; }
.near-off-msg { font-size: 11.5px; font-weight: 700; line-height: 1.45; color: var(--ink-mute); margin: 7px 2px 0; }
.near-off-msg.is-err { color: var(--coral-deep); font-weight: 800; }
.sort-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 5px; max-width: 560px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-s);
}
.sort-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 14.5px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink-soft);
  padding: 11px 4px; border-radius: 12px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.sort-tab .sort-ico { font-size: 14px; line-height: 1; }
.sort-tab:hover { background: var(--surface-3); }
.sort-tab[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(27, 42, 32, .65); }
.sort-tab[aria-pressed="true"]:hover { background: var(--ink); }

.near-cta {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px;
  max-width: 560px; padding: 13px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(128deg, #34b268 0%, #1c8a52 55%, #14663d 100%);
  box-shadow: 0 14px 26px -18px rgba(20, 102, 61, .85);
}
.near-cta-ico {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); font-size: 20px; line-height: 1;
}
.near-cta-text { min-width: 0; }
.near-cta-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.near-cta-title { display: block; font-size: 15px; font-weight: 900; letter-spacing: -0.03em; }
.near-radius-pill {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2;
  padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #0d5137;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.near-cta .near-note { font-size: 11.5px; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .92); margin: 2px 0 0; }
.near-cta .near-note.is-err { color: #ffe1d3; font-weight: 800; }
.near-cta.is-on { background: linear-gradient(128deg, #2b9a5c 0%, #176b43 60%, #0f5433 100%); }

/* 2026-11-28 — 반경 줄 아래 오른쪽 끝 줄: 「반경 안에 0곳」 안내는 왼쪽,
   「✕ 끄기」는 오른쪽 끝. 반경 알약과 섞이지 않게 따로 내렸습니다. */
.near-cta-foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end;
  gap: 8px 10px; flex-wrap: wrap; margin-top: 2px;
}
.near-cta-foot .radius-empty { margin-right: auto; }
.near-cta-foot .near-btn { margin-left: auto; }

/* 「✕ 끄기」 — 반경 알약(흰 테두리·흰 배경)과 확실히 다른 닫기 전용 버튼 */
.near-cta .near-btn, .near-cta.is-on .near-btn { background: rgba(0, 0, 0, .28); color: #fff; border-color: rgba(255, 255, 255, .34); }
.near-note { font-size: 11.5px; color: var(--ink-mute); font-weight: 600; margin: 0; }
.near-note.is-err { color: var(--coral-deep); }

/* ── 내 위치 반경 칩 ────────────────────────────────
   내 위치를 켰을 때만 나타나고, 거리순·인기순·추천순 모두에 걸립니다. */
.radius-row {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 1px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .28);
}
.radius-k { font-size: 11px; font-weight: 800; letter-spacing: -.02em; color: rgba(255, 255, 255, .84); margin-right: 2px; }
.rchip {
  font-family: inherit; font-size: 12px; font-weight: 900; letter-spacing: -.02em;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; line-height: 1.2;
  background: rgba(255, 255, 255, .14); color: #fff; border: 1.4px solid rgba(255, 255, 255, .52);
  transition: background .15s, color .15s, border-color .15s;
}
.rchip:hover { background: rgba(255, 255, 255, .28); }
.near-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  margin-left: auto; font-family: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: -.02em;
  padding: 6px 11px; border-radius: 999px; cursor: pointer; line-height: 1.2; white-space: nowrap;
  background: rgba(0, 0, 0, .28); color: #fff; border: 1px solid rgba(255, 255, 255, .34);
  transition: background .15s, border-color .15s;
}
/* 닫기 표시는 글자가 아니라 CSS로 그려, 버튼 글자(끄기·확인 중…)를 바꿔도 그대로 남습니다 */
.near-btn::before { content: "✕"; font-size: 10.5px; line-height: 1; opacity: .9; }
.near-btn.is-busy::before { content: none; }
.near-btn:hover { background: rgba(0, 0, 0, .4); border-color: rgba(255, 255, 255, .5); }
.near-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.near-btn[disabled] { opacity: .7; cursor: default; }
.rchip[aria-pressed="true"] { background: #fff; color: #0d5137; border-color: #fff; box-shadow: 0 3px 8px -5px rgba(0, 0, 0, .55); }
.rchip[aria-pressed="true"]:hover { background: #fff; }
.rchip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.radius-empty {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0; font-size: 11.5px; font-weight: 700; line-height: 1.45; color: #fff;
}
.radius-empty button {
  font-family: inherit; font-size: 11.5px; font-weight: 900; padding: 6px 11px; border-radius: 999px;
  background: #fff; color: #0d5137; border: 0; cursor: pointer; white-space: nowrap;
}
.radius-empty button:hover { filter: brightness(1.04); }
.radius-row[hidden], .radius-empty[hidden], .near-cta[hidden], .near-on-pill[hidden], .near-off-msg[hidden] { display: none !important; }

/* 카드 위 순위 배지 (인기순·추천순 상위 3곳) */
.tag--rank { font-weight: 900; }
.tag--rank-hot { background: #ffe6d8; color: #b4471f; }
.tag--rank-pick { background: #fff1c9; color: #8a5c00; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13.5px; font-weight: 800; padding: 11px 10px; border-radius: 13px; white-space: nowrap;
  transition: filter .15s, background .15s;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn--call { background: var(--mint); color: #fff; }
.btn--call:hover { filter: brightness(1.06); }
.btn--call.is-missing { background: #f5f2ea; color: var(--ink-mute); font-weight: 700; }
.btn--map { background: var(--surface); color: var(--mint-deep); border: 1.5px solid #d9eee2; }
.btn--map:hover { background: var(--mint-tint); }

.more { border-top: 1px dashed var(--line); padding-top: 10px; }
.more summary { font-size: 12.5px; font-weight: 700; color: var(--ink-mute); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ▾"; }
.more[open] summary::after { content: " ▴"; }
.more-body { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.more-body b { font-weight: 800; color: var(--ink); margin-right: 6px; font-size: 12px; }
.more-body a { color: var(--sky-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── 카드 상세정보 접기/펼치기 ───────────────────────────
   기본은 접어 두어 목록이 가볍습니다. 펼칠 때만 메타 박스가 나타납니다. */
.card-detail { display: grid; gap: 12px; }
.card-detail[hidden] { display: none; }
.card-detail.is-open { animation: detailIn .22s ease both; }
@keyframes detailIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card-detail.is-open { animation: none; }
}
.detail-toggle {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; padding: 9px 12px; margin-top: -2px;
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink-mute); background: none;
  border: 1px dashed var(--line); border-radius: 12px;
  cursor: pointer;
}
.detail-toggle:hover { color: var(--mint-deep); border-color: #cfe6d6; background: #f8fcf4; }
.detail-toggle:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.detail-toggle[aria-expanded="true"] { color: var(--mint-deep); border-color: #d8ebdd; }
.detail-toggle .dt-ico { font-size: 11px; line-height: 1; }

.empty { text-align: center; padding: 46px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-l); }
.empty-emoji { font-size: 34px; margin-bottom: 8px; }
.empty p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; letter-spacing: -.015em; word-break: keep-all; }
.empty .reset { margin-top: 14px; }

/* ── 팁 ─────────────────────────────────── */
.tips { margin-top: 44px; }
.tips h2 { font-size: 22px; font-weight: 900; margin-bottom: 14px; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tip { border-radius: var(--r-l); padding: 20px; border: 1px solid var(--line-soft); }
.tip--mint { background: linear-gradient(160deg, #e6faec, #ffffff); }
.tip--sun { background: linear-gradient(160deg, #fff5d6, #ffffff); }
.tip--sky { background: linear-gradient(160deg, #e8f6ff, #ffffff); }
.tip-icon { font-size: 26px; }
.tip h3 { font-size: 16.5px; font-weight: 800; margin: 8px 0 6px; }
.tip p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; letter-spacing: -.015em; word-break: keep-all; }
/* 뒤쪽 「어절 유지 · line-height 1.62」 묶음보다 이 카드 본문이 우선하도록 한 번 더 지정 (2026-11-28) */
.tips .tip p { line-height: 1.65; letter-spacing: -.015em; word-break: keep-all; }

.about {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 14px 18px;
}
.about summary { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; }
.about-body { display: grid; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }

/* ── 매거진 티저 (2026-11-28 — 기본은 접힘, 누르면 펼침) ─────────────
   홈 화면이 가이드 카드 6장 때문에 길어지던 것을 「자료 기준과 한계」처럼
   한 줄 요약 + 펼치기 토글로 바꿨습니다. 자바스크립트 없는 <details>. */
.magazine-teaser { margin-top: 34px; }
.mag-fold { display: block; }
.mag-sum {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title cta" "sub sub";
  align-items: center; gap: 4px 10px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-s); cursor: pointer; list-style: none;
  transition: background .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.mag-sum::-webkit-details-marker { display: none; }
.mag-sum:hover { background: var(--surface-3); }
.mag-sum:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.mag-title { grid-area: title; font-size: 18px; font-weight: 900; letter-spacing: -.02em; line-height: 1.35; color: var(--ink); word-break: keep-all; }
.mag-title-ico { font-size: 16px; margin-right: 2px; }
.mag-sub { grid-area: sub; font-size: 12.5px; line-height: 1.6; letter-spacing: -.015em; color: var(--ink-soft); word-break: keep-all; }
.mag-cta {
  grid-area: cta; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap;
  color: var(--mint-deep); background: var(--mint-tint);
  padding: 7px 11px; border-radius: 999px;
}
.mag-cta-off { display: none; }
.mag-chev { font-size: 10px; line-height: 1; transition: transform .16s; }
.mag-fold[open] .mag-sum { background: var(--surface-3); }
.mag-fold[open] .mag-cta-on { display: none; }
.mag-fold[open] .mag-cta-off { display: inline; }
.mag-fold[open] .mag-chev { display: inline-block; transform: rotate(180deg); }
.mag-panel { margin-top: 14px; animation: magFade .18s ease-out; }
@keyframes magFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mag-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
  font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; color: var(--mint-deep); word-break: keep-all;
}
.mag-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .mag-panel { animation: none; }
  .mag-chev { transition: none; }
}
.more-link { font-size: 13.5px; font-weight: 800; color: var(--mint-deep); white-space: nowrap; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.teaser-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; box-shadow: var(--shadow-s); transition: transform .16s, box-shadow .16s;
}
.teaser-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.teaser-card img { width: 100%; height: 168px; object-fit: cover; }
.teaser-body { padding: 15px 17px 18px; }
.teaser-tag { font-size: 11.5px; font-weight: 900; color: var(--sky-deep); background: var(--sky-tint); padding: 4px 9px; border-radius: 7px; }
.teaser-body h3 { font-size: 16px; font-weight: 800; margin: 9px 0 6px; }
.teaser-body p { font-size: 13.5px; color: var(--ink-soft); }

/* ── 푸터 ───────────────────────────────── */
.footer { margin-top: 52px; background: #f9fcef; border-top: 1px solid var(--line); }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px 24px; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-mute); word-break: keep-all; }
.footer strong { color: var(--ink-soft); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.footer-meta a { color: var(--mint-deep); font-weight: 800; }

.noscript { padding: 16px 20px; background: var(--sun-tint); font-size: 14px; color: var(--sun-deep); }

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 980px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px 18px 22px; }
  .hero-art { display: block; order: -1; }
  .hero-art img { border-radius: 22px; border-width: 4px; }
  .art-badge { right: 10px; bottom: 10px; font-size: 12px; padding: 6px 11px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 14.5px; }
}

@media (max-width: 620px) {
  :root { --topbar-h: 96px; }
  .quick-chips { gap: 6px; }
  .qchip { min-height: 34px; font-size: 12.5px; padding: 0 11px; gap: 4px; }
  .hero-count { font-size: 11.5px; padding: 4px 9px; }
  .hero { margin-top: 14px; padding: 0 14px; }
  .hero-card { border-radius: 26px; padding: 14px 14px 18px; }
  .hero-art img { border-radius: 18px; border-width: 3px; }
  .hero h1 { font-size: 26px; }
  .eyebrow { font-size: 12.5px; }
  main { padding: 0 14px; }
  .finder { border-radius: 18px; padding: 10px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 16px; }
  .results { scroll-margin-top: calc(var(--topbar-h) + 108px); }
  .sort-tab { font-size: 13.5px; padding: 10px 2px; gap: 4px; }
  .sort-tab .sort-ico { font-size: 13px; }
  .near-cta { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; padding: 13px 14px; border-radius: 16px; }
  .near-cta-ico { width: 38px; height: 38px; font-size: 18px; }
  .near-cta-title { font-size: 14.5px; }
  .near-cta-foot .near-btn { margin-left: auto; }
  .teaser-card img { height: 148px; }
  .stat-chips { gap: 6px; margin-top: 14px; }
  .stat-total { padding: 10px 16px; font-size: 14px; }
  .stat-total strong { font-size: 19px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .stat-grid .stat:last-child { grid-column: 1 / -1; }
  .stat { font-size: 12.5px; padding: 9px 8px; }
  .stat strong { font-size: 13.5px; }
  .sector-menu-panel { width: min(84vw, 264px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .teaser-card:hover { transform: none; }
}

/* ── 카테고리 칩 색상 (6종) ─────────────────── */
.qchip .q-emoji { margin-right: 5px; font-size: 14px; }
.qchip--park[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); }
.qchip--express[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); }
.qchip--cafe[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #3a2c00; box-shadow: 0 6px 14px -8px rgba(242, 181, 46, .9); }
.qchip--dine[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); }
.qchip--stay[aria-pressed="true"] { background: #7b6bd6; border-color: #7b6bd6; }
.qchip--shop[aria-pressed="true"] { background: #e0709a; border-color: #e0709a; }
.qchip--toggle { border-style: dashed; }
.qchip--toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.qchip:disabled { opacity: .42; cursor: not-allowed; }

.pill--cafe { background: var(--sun-tint); color: var(--sun-deep); }
.pill--dine { background: var(--coral-tint); color: var(--coral-deep); }
.pill--stay { background: #eeeafd; color: #5646a8; }
.pill--shop { background: #fdeaf2; color: #a83a68; }

.stat em { font-style: normal; font-size: 11.5px; color: var(--ink-mute); font-weight: 600; margin-left: 4px; }
.more-body .more-note { color: var(--ink-mute); font-size: 12.5px; }

@media (max-width: 620px) {
  .stat em { display: none; }
}

/* ── 슈퍼사이트 확장: 공원·훈련·할인·집 찾아줄개 ───────────── */
.qchip--trail[aria-pressed="true"] { background: #3f7d4e; border-color: #3f7d4e; }
/* 2026-11-28 — 🏔️ 산·등산로 칩·배지·카드 (공원 초록과 구분되는 돌·흙 톤) */
.qchip--mtn[aria-pressed="true"] { background: #6b5540; border-color: #6b5540; }
.qchip--train[aria-pressed="true"] { background: #6b5bd2; border-color: #6b5bd2; }
.qchip--deal { border-style: solid; background: #fff8e8; border-color: #f0cf8a; color: #8a5a00; font-weight: 900; }
.qchip--deal[aria-pressed="true"] { background: #e9a11c; border-color: #e9a11c; color: #fff; box-shadow: 0 6px 14px -8px rgba(233, 161, 28, .95); }

.tag--deal { background: #fff1cf; color: #8a5a00; border: 1px solid #f2d79a; font-weight: 900; }
.tag--leaf { background: #e8f5ea; color: #2f6b3c; }
.tag--mtn { background: #f3ece2; color: #6b5540; }
.tag--violet { background: #eeeafd; color: #5646a8; }
.pill--park { background: #e8f5ea; color: #2f6b3c; }
.pill--mtn { background: #f3ece2; color: #6b5540; }
.card--mtn .card-title .card-ico { filter: none; }
.pill--train { background: #eeeafd; color: #5646a8; }

.stat.is-leaf strong { color: #2f6b3c; }
.stat.is-violet strong { color: #5646a8; }
.stat.is-deal strong { color: #a06a00; }

.deal-line {
  margin: 0 0 10px; padding: 8px 11px; border-radius: 10px;
  background: #fff8e8; border: 1px dashed #eccb84; color: #7a5100; font-size: 12.5px;
}
.deal-line b { font-weight: 900; }

.deal {
  margin: 10px 0 4px; padding: 12px 13px; border-radius: 14px;
  background: #fffaf0; border: 1px solid #f1dcae;
}
.deal-title { font-size: 13px; font-weight: 900; color: #7a5100; margin-bottom: 6px; }
.deal-title span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 800; color: #9a6a10; }
.deal-list { margin: 6px 0 0 2px; padding-left: 16px; display: grid; gap: 4px; }
.deal-list li { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.deal-note { margin-top: 7px; font-size: 12px; color: var(--ink-mute); line-height: 1.5; }
.deal-src { margin-top: 6px; font-size: 11.5px; color: var(--ink-mute); }
.deal-src a { color: #8a5a00; font-weight: 800; text-decoration: underline; }
.deal--pending { background: #f7f4ed; border-color: var(--line); }
.deal--pending .deal-title { color: var(--ink-soft); }

.spots {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: 2px 0 10px; padding: 9px 11px; border-radius: 12px;
  background: #f2f9f3; border: 1px solid #dcefdf;
}
.spots-k { font-size: 12px; font-weight: 900; color: #2f6b3c; margin-right: 2px; }
.spot { font-size: 12px; color: #356b40; background: #fff; border: 1px solid #dcefdf; border-radius: 999px; padding: 3px 9px; }

/* 집 찾아줄개 */
.lost { margin-top: 34px; }
.lost-card-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-s); padding: 22px; display: grid; gap: 16px;
}
.lost-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lost-head-row h2 { font-size: 21px; font-weight: 900; min-width: 0; }
/* ❤️ 찜한 아이 — 제목 오른쪽 끝에 붙여 한 줄로 (2026-11-28) */
.lost-head-row .lost-head-fav { flex: 0 0 auto; margin-left: auto; font-size: 12.5px; padding: 6px 11px; }
.lost-head-row .lost-head-fav .lchip-n { margin-left: 3px; }
.lost-head-row p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 8px; }
/* 버튼 글자가 「시스/템)」처럼 단어 중간에서 끊기지 않게 — 괄호 앞에서 깔끔하게 줄바꿈 */
.keep-word { white-space: nowrap; }
.lost-links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800;
  padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-soft);
}
.lost-links a.is-main { background: var(--mint); border-color: var(--mint); color: #fff; }
.lost-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.lost-step { background: #fbf8f1; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.lost-step b { display: block; font-size: 13px; font-weight: 900; color: var(--mint-deep); margin-bottom: 4px; }
.lost-step p { font-size: 12.5px; line-height: 1.6; color: var(--ink-soft); }
/* 카드 그리드 — 페이지당 12건이 어느 화면에서도 마지막 줄까지 꽉 차게
   · 모바일/소형(<900px): 1줄 2마리 × 6줄
   · PC(>=900px): 1줄 3마리 × 4줄 */
.lost-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.lost-list > * { min-width: 0; }
@media (min-width: 900px) {
  .lost-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.lost-empty {
  display: flex; align-items: center; gap: 14px; padding: 22px;
  border: 1px dashed #d9d1c2; border-radius: 16px; background: #fffdf8;
}
.lost-emoji { font-size: 36px; }
.lost-empty p { font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.lost-soft { display: inline-block; margin-top: 5px; font-size: 12px; color: var(--ink-mute); }
.lost-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.lost-card img { width: 100%; height: 180px; object-fit: cover; }
.lost-body { padding: 14px; display: grid; gap: 6px; }
.lost-head { display: flex; align-items: center; justify-content: space-between; }
.lost-head h3 { font-size: 16px; font-weight: 900; }
.lost-meta { font-size: 12.5px; color: var(--ink-mute); }
.lost-warn {
  font-size: 12.5px; color: #8a5a00; background: #fff8e8; border: 1px solid #f1dcae;
  border-radius: 10px; padding: 10px 12px; line-height: 1.62; letter-spacing: -.015em; word-break: keep-all;
}
/* 안내 박스 공통 — 제목은 자기 줄, 본문은 아래 줄 (2026-11-28 사용자 요청) */
.lost-callout-t {
  display: block; font-size: 12.5px; font-weight: 900; line-height: 1.5;
  letter-spacing: -.015em; color: #7a4a00; margin: 0 0 3px;
}
.lost-callout-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.lost-callout-list li {
  position: relative; padding-left: 11px; font-weight: 700;
  line-height: 1.62; letter-spacing: -.015em; word-break: keep-all;
}
.lost-callout-list li::before { content: "-"; position: absolute; left: 1px; top: 0; opacity: .75; }
/* 「자료 기준과 한계」 안내 문단 — 굵은 제목은 자기 줄, 본문은 아래 줄 (2026-11-28) */
.guide-item { word-break: keep-all; }
.guide-t { display: block; font-weight: 900; color: var(--ink); letter-spacing: -.015em; margin-bottom: 1px; }
/* 안내·모달 박스 공통 타이포그래피 (2026-11-28)
   · line-height 1.6~1.65, 한글 자간 -.015em, word-break: keep-all
   → 「받지 않습니다.」·「신고해 주세요.」 같은 문장이 단어 중간에서 똑 끊기지 않게 */
.lost-urgent-note, .lost-adopt-tip, .lost-soft, .lost-source, .lost-modal-note, .lost-modal-soft,
.lost-step p, .dog-fav-note, .orgs-note, .signs-note, .signs-lead, .signs-tip, .vet-note,
.food-note, .mbti-note, .eyes-note, .eyes-caption, .map-note, .map-sub, .footer-note,
.tip p, .lm-note, .lm-sec p, .lm-line, .fd-note, .fd-why {
  line-height: 1.62;
  letter-spacing: -.015em;
  word-break: keep-all;
}

/* 🏡 집 찾아줄개 안쪽 2단 전환 — [유기·실종 공고 | 🐾 동물보호단체]
   상단 7개 메인 탭은 그대로 두고, 이 화면 안에서만 공고/단체를 오갑니다. */
.lost-view {
  display: flex; gap: 4px; margin-bottom: 10px; padding: 4px;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px;
}
.lost-seg {
  flex: 1 1 0; min-width: 0; font: inherit; font-size: 13px; font-weight: 900;
  color: var(--ink-soft); background: none; border: 0; border-radius: 999px;
  padding: 9px 6px; white-space: nowrap; cursor: pointer;
}
.lost-seg:hover { color: var(--mint-deep); }
.lost-seg.is-on {
  background: var(--mint); color: #fff;
  box-shadow: 0 6px 14px -10px rgba(45, 122, 74, .9);
}
.lost-seg.is-on:hover { color: #fff; }
.lost-seg:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
/* display:grid 를 쓰는 카드 상자도 hidden 이면 확실히 접히게 */
.lost-card-box[hidden] { display: none; }

/* 🐾 동물보호단체 — 단체명 + 한 줄 소개 + 활동 태그 + [공식 홈페이지 ↗]
   · 후원 계좌·금액·모금 버튼 없음(안내 카드만) · 390px에서 2열, PC에서 3열 */
.lost-orgs-box { gap: 14px; }
.orgs-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.orgs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) {
  .orgs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
.org-card {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 11px 10px;
}
.org-name { font-size: 13px; font-weight: 900; line-height: 1.3; color: var(--ink); }
.org-short { flex: 1 1 auto; font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); }
.org-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.org-tag {
  font-size: 10.5px; font-weight: 800; color: var(--mint-deep); background: var(--mint-tint);
  border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.org-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; font-weight: 900; color: var(--mint-deep);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px; white-space: nowrap; text-decoration: none;
}
.org-link:hover { border-color: var(--mint); background: var(--mint-tint); }
.org-link:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.orgs-note { font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); }
@media (max-width: 380px) {
  .lost-seg { font-size: 12px; padding: 8px 4px; }
  .org-card { padding: 10px 9px 9px; }
  .org-name { font-size: 12.5px; }
}
/* 넓은 화면에서는 전환 바가 화면 끝까지 늘어나지 않게 — 두 칸 알약 폭만 */
@media (min-width: 621px) {
  .lost-view { max-width: 430px; }
}
/* 다크 모드 — 밝은 전환 바·카드가 남지 않게 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lost-view { background: var(--surface-2); }
  html:not([data-theme="light"]) .lost-seg { color: var(--ink-soft); }
  html:not([data-theme="light"]) .lost-seg.is-on { background: #86e0ac; color: #082015; box-shadow: none; }
  html:not([data-theme="light"]) .lost-seg.is-on:hover { color: #082015; }
  html:not([data-theme="light"]) .org-card { background: var(--surface-2); }
  html:not([data-theme="light"]) .org-link { background: var(--surface-3); }
  html:not([data-theme="light"]) .org-link:hover { background: rgba(60, 178, 116, .18); border-color: var(--mint); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .lost-view { background: var(--surface-2); }
  html[data-theme="dark"] .lost-seg { color: var(--ink-soft); }
  html[data-theme="dark"] .lost-seg.is-on { background: #86e0ac; color: #082015; box-shadow: none; }
  html[data-theme="dark"] .lost-seg.is-on:hover { color: #082015; }
  html[data-theme="dark"] .org-card { background: var(--surface-2); }
  html[data-theme="dark"] .org-link { background: var(--surface-3); }
  html[data-theme="dark"] .org-link:hover { background: rgba(60, 178, 116, .18); border-color: var(--mint); }
/* dd-theme-forced-end */


/* 실종·유기동물 공고 — 종류·지역·상태 필터 */
.lost-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.lost-sub strong { color: var(--mint-deep); }
.lost-filters { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.lost-filters[hidden] { display: none; }
.lost-frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lost-frow[hidden] { display: none; }
/* 조건 칸 — 좁은 화면에서도 줄이 어긋나지 않게 라벨 너비를 맞춥니다 */
.lost-frow--picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.lost-frow--pair { gap: 6px 16px; }
.lost-frow--summary { justify-content: space-between; min-height: 24px; }
.lost-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lost-flabel { font-size: 12px; font-weight: 900; color: var(--ink-mute); margin-right: 2px; min-width: 42px; }
.lost-fnote { font-size: 11px; font-weight: 700; color: var(--ink-mute); }
/* 🏡 집 찾아줄개 — 강아지 전용 안내 (고양이 필터를 두지 않습니다) */
.lost-dogonly { font-size: 12.5px; font-weight: 800; color: var(--mint-deep); word-break: keep-all; }
.lchip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); white-space: nowrap;
}
.lchip[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #fff; box-shadow: 0 6px 14px -10px rgba(45,122,74,.9); }
.lchip .lchip-n { font-size: 11.5px; font-weight: 800; opacity: .8; }
.lost-pick { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.lost-pick select {
  flex: 1 1 auto; min-width: 0; font: inherit; font-weight: 800; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
/* 고른 조합 + 초기화 — 필터를 좁힐수록 무엇으로 보고 있는지 한 줄로 */
.lost-combo { min-width: 0; font-size: 12.5px; font-weight: 800; color: var(--mint-deep); word-break: keep-all; }
.lost-combo b { color: var(--ink); }
.lost-combo.is-hint { font-weight: 700; color: var(--ink-mute); }
.lost-reset-chip {
  flex: 0 0 auto; font: inherit; font-size: 11.5px; font-weight: 900; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
}
.lost-reset-chip:hover { border-color: var(--mint); color: var(--mint-deep); }
.lost-reset-chip[hidden] { display: none; }
/* 넓은 화면: 지역·견종 선택 칸은 글자 폭만큼만 (가로로 늘어나 보이지 않게) */
@media (min-width: 621px) {
  .lost-frow--picks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .lost-pick select { flex: 0 0 auto; min-width: 168px; max-width: 260px; }
}

.lost-count { font-size: 12.5px; color: var(--ink-mute); }
.lost-count strong { color: var(--mint-deep); }
/* 1 2 3 4 5 숫자 페이지네이션 */
.lost-pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; padding: 4px 0 2px;
}
.lost-pagination[hidden] { display: none; }
.lost-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 11px;
  font: inherit; font-size: 13.5px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.lost-page:hover:not(:disabled) { border-color: var(--mint); color: var(--mint-deep); }
.lost-page[aria-current="page"] {
  background: var(--mint); border-color: var(--mint); color: #fff;
  box-shadow: 0 6px 14px -10px rgba(45, 122, 74, .9);
}
.lost-page[aria-current="page"]:hover { color: #fff; }
.lost-page:disabled { opacity: .36; cursor: default; }
.lost-page--arrow { font-size: 11.5px; padding: 0 9px; }
.lost-page-gap { font-size: 12px; font-weight: 900; color: var(--ink-mute); padding: 0 1px; }
/* 운동장 찾기 목록 — 한 페이지 5곳, 1 2 3 4 5 숫자 페이지네이션 (390px 한 줄) */
.pagination {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: 6px; margin: 18px 0 4px;
}
.pagination[hidden] { display: none; }
.place-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 11px;
  font: inherit; font-size: 14px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 11px;
}
.place-page:hover:not(:disabled) { border-color: var(--mint); color: var(--mint-deep); }
.place-page[aria-current="page"] {
  background: var(--mint); border-color: var(--mint); color: #fff;
  box-shadow: 0 6px 14px -10px rgba(45, 122, 74, .9);
}
.place-page[aria-current="page"]:hover { color: #fff; }
.place-page:disabled { opacity: .36; cursor: default; }
.place-page--arrow { font-size: 17px; padding: 0 10px; }
.place-page-gap { font-size: 12px; font-weight: 900; color: var(--ink-mute); padding: 0 1px; }
@media (max-width: 380px) {
  .pagination { gap: 4px; }
  .place-page { min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; }
  .place-page--arrow { padding: 0 7px; }
}
.lost-source { font-size: 11.5px; color: var(--ink-mute); line-height: 1.6; }
.lost-source a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 2px; }
/* 카드 — 사진 4:3 고정 + 본문은 한 줄씩 고정 높이. 그래서 옆 카드와 각이 1px도 어긋나지 않습니다. */
.la-card {
  display: flex; flex-direction: column; height: 100%; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
/* 사진은 카드 전면 상단 — 공공데이터 실사 사진(popfile). 실패 시에만 종류별 기본 안내 카드로 폴백 */
.la-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(135deg, #eef6ee 0%, #e3f0e6 100%);
  display: grid; place-items: center;
}
.la-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  background: #eef5ee;
}
.la-photo .la-ph {
  display: none; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: #4c7a5b; padding: 0 12px; text-align: center;
}
.la-photo .la-ph b { font-size: 40px; line-height: 1; }
.la-photo.is-missing img { display: none; }
.la-photo.is-missing .la-ph { display: flex; }
.la-credit {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  font-size: 10.5px; font-weight: 800; color: #fff; background: rgba(24, 40, 28, .62);
  padding: 3px 7px; border-radius: 999px; backdrop-filter: blur(2px);
}
.la-body {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  padding: clamp(9px, 2.2vw, 13px) clamp(9px, 2.4vw, 14px) clamp(9px, 2vw, 12px);
}
.la-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; }
.la-kind {
  min-width: 0; font-size: 11.5px; font-weight: 900; color: var(--mint-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.la-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 3px 7px; white-space: nowrap; }
.la-badge.is-rescue { background: #e8f4ec; color: #2f6b3c; }
.la-badge.is-loss { background: #fdeee9; color: #a63d20; }
.la-title {
  font-size: 13px; font-weight: 900; line-height: 1.4; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.la-meta { font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-meta b { color: var(--ink); font-weight: 800; }
/* 크기·체중 · 중성화 — 공고에 값이 있을 때만 (없으면 자리만 비워 카드 높이를 맞춥니다) */
.la-tags { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-height: 18px; overflow: hidden; }
.la-tag {
  flex: 0 1 auto; min-width: 0; font-size: 10.5px; font-weight: 800; line-height: 1.35;
  padding: 2px 6px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.la-tag--size { background: #eef5fa; color: #2b5a78; }
.la-tag--neuter.is-done { background: #e8f4ec; color: #2f6b3c; }
.la-tag--neuter.is-none { background: #f6f2e8; color: #6d6047; }
/* ③ 지역·날짜 한 줄 — 좁은 화면에서는 지역만 줄고 날짜·D-day는 끝까지 보입니다 */
.la-when {
  display: flex; align-items: baseline; gap: 5px; min-width: 0;
  font-size: 11.5px; line-height: 1.45; color: var(--ink-soft);
}
.la-where { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.la-where b { color: var(--ink); font-weight: 800; }
.la-date { flex: 0 0 auto; white-space: nowrap; }
.la-date b { color: var(--ink); font-weight: 800; }
/* ④ 색·특징 — 1~2줄 고정이라 카드 높이가 흔들리지 않습니다 */
.la-note {
  font-size: 11.5px; color: var(--ink-mute); line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; min-height: 2.9em;
}
/* ⑤ 보호소·전화 — 바닥 정렬(margin-top:auto)로 모든 카드의 아래 줄이 나란히 */
.la-tail { margin-top: auto; display: flex; flex-direction: column; gap: 5px; padding-top: 6px; }
.la-center {
  display: flex; align-items: baseline; gap: 5px; min-width: 0;
  font-size: 11px; line-height: 1.45; color: var(--ink-soft);
}
.la-shelter { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.la-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; min-height: 26px; }
.la-tel-inline { flex: 0 0 auto; color: var(--mint-deep); font-weight: 900; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.la-tel-note { flex: 0 0 auto; color: var(--muted, #6b7280); font-weight: 700; white-space: nowrap; }
.la-tel { font-size: 12.5px; font-weight: 900; color: var(--mint-deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: #fff; }
.la-link { font-size: 11.5px; font-weight: 900; color: #fff; background: var(--mint); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }
/* 카드 전체가 「상세 보기」 버튼 — 사진·본문 아무 데나 눌러도 상세 창이 열립니다.
   (찜·공유 버튼, 전화·공고 링크는 그대로 자기 일을 합니다) */
.la-card { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.la-card:hover { border-color: #b9d8c5; box-shadow: 0 12px 26px -20px rgba(18, 60, 40, .7); }
.la-card:active { transform: translateY(1px); }
.la-card:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.la-open {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  font-size: 10.5px; font-weight: 900; color: #fff; background: rgba(24, 40, 28, .62);
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(2px);
}

/* ─────────────────── 🏡 집 찾아줄개 · 공고 상세 창 ───────────────────
   카드에서 잘려 보이던 특징·발견 장소·공고 기간·보호센터를 한 번에 펼쳐 봅니다. */
html.lm-open { overflow: hidden; }
.lm-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.lm-modal[hidden] { display: none; }
.lm-backdrop {
  position: absolute; inset: 0; background: rgba(24, 32, 27, .55);
  backdrop-filter: blur(3px); animation: mapFade .16s ease-out;
}
.lm-sheet {
  position: relative; width: min(460px, 100%); max-height: min(88vh, 800px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 32px 70px -34px rgba(20, 30, 24, .65);
  padding-bottom: 12px; animation: mapRise .2s ease-out;
}
.lm-head { position: relative; padding: 18px 20px 10px; }
.lm-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: -.01em;
  color: var(--mint-deep); background: var(--mint-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.lm-title { font-size: 20px; font-weight: 900; padding-right: 44px; word-break: keep-all; }
.lm-sub { margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); word-break: keep-all; }
.lm-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: #f4f1e9; color: var(--ink-soft); font-size: 14px; font-weight: 900; display: grid; place-items: center;
}
.lm-close:hover { background: #ece7db; }
.lm-photo {
  position: relative; margin: 0 14px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #eef6ee 0%, #e3f0e6 100%); display: grid; place-items: center;
}
.lm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-photo .lm-ph {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: #4c7a5b;
}
.lm-photo .lm-ph b { font-size: 46px; line-height: 1; }
.lm-credit {
  position: absolute; right: 10px; bottom: 10px; font-size: 10.5px; font-weight: 800; color: #fff;
  background: rgba(24, 40, 28, .62); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(2px);
}
.lm-body { padding: 12px 18px 4px; display: grid; gap: 10px; }
.lm-state {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start;
  font-size: 12px; font-weight: 900; color: var(--mint-deep);
  background: var(--mint-tint); border-radius: 999px; padding: 5px 11px;
}
.lm-state b { color: #a63d20; }
.lm-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lm-facts li {
  display: flex; gap: 6px; align-items: baseline; min-width: 0;
  font-size: 12.5px; background: #fbf9f3; border: 1px solid #f4efe4; border-radius: 10px; padding: 7px 10px;
}
.lm-k { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; color: var(--ink-soft); }
.lm-v { font-weight: 800; color: var(--ink); min-width: 0; word-break: keep-all; }
.lm-sec h3 { font-size: 11px; font-weight: 900; color: var(--mint-deep); margin-bottom: 3px; }
.lm-sec p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); word-break: keep-all; }
.lm-line { font-size: 13px; line-height: 1.6; color: var(--ink); word-break: keep-all; }
.lm-line.lm-soft, .lm-sec p.lm-soft { color: var(--ink-mute); }
.lm-dday { color: #a63d20; }
.lm-tel {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 2px;
  font-size: 13px; font-weight: 900; color: var(--mint-deep); text-decoration: none;
  background: #fff; border: 1.5px solid #b9dcc8; border-radius: 999px; padding: 7px 13px;
}
.lm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.lm-btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit;
  font-size: 13px; font-weight: 900; color: #fff; background: var(--mint);
  border: 0; border-radius: 12px; padding: 11px 16px; text-decoration: none; cursor: pointer;
}
.lm-btn:hover { filter: brightness(1.06); }
.lm-note { font-size: 11px; line-height: 1.6; color: var(--ink-mute); word-break: keep-all; }
@media (max-width: 620px) {
  .lm-modal { padding: 0; place-items: end center; }
  .lm-sheet { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .lm-photo { margin: 0 12px; }
  .lm-body { padding: 12px 14px 4px; }
}


/* ⏳ 공고 임박 — 사진 위 빨간 배지(기본 목록에서도 바로 보입니다) */
.la-urgent {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  /* 우측 상단 「자세히 ›」 배지와 겹치지 않게 — 넘치는 글자는 말줌임표로 */
  max-width: calc(100% - 84px);
  font-size: 10.5px; font-weight: 900; line-height: 1.3;
  color: #fff; background: rgba(190, 40, 22, .94);
  border-radius: 8px; padding: 3px 7px;
  box-shadow: 0 4px 10px -4px rgba(110, 18, 6, .85);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lchip--urgent { border-color: #f0c9bb; color: #a63d20; background: #fff6f2; }
.lchip--urgent .lchip-n { font-size: 11px; font-weight: 900; opacity: .85; }
.lchip--urgent[aria-pressed="true"] { background: #be2816; border-color: #be2816; color: #fff; box-shadow: 0 6px 14px -10px rgba(150, 30, 12, .95); }
.lchip--soon { border-color: #f1dcae; color: #8a5a00; background: #fff8e8; }
.lchip--soon .lchip-n { font-size: 11px; font-weight: 900; opacity: .85; }
.lchip--soon[aria-pressed="true"] { background: #c8871a; border-color: #c8871a; color: #fff; box-shadow: 0 6px 14px -10px rgba(160, 105, 10, .95); }
.lost-urgent-note {
  font-size: 12.5px; line-height: 1.55; color: #8a3a1c; background: #fff4ef;
  border: 1px solid #f3d3c4; border-radius: 10px; padding: 8px 11px; word-break: keep-all;
}
.lost-urgent-note[hidden] { display: none; }
.lost-urgent-note strong { color: #b0301a; }

/* 💡 유기견 입양 혜택 — 한 줄 안내 박스(금액은 단정하지 않음) */
.lost-adopt-tip {
  font-size: 12.5px; line-height: 1.55; color: #2f6b3c; background: #f2f9f3;
  border: 1px solid #dcefdf; border-radius: 10px; padding: 9px 11px; word-break: keep-all;
}
.lost-adopt-tip strong { color: var(--mint-deep); }

/* 📣 우리 강아지 실종 신고 — 공식(animal.go.kr) 절차 안내 */
/* 📣 우리 강아지 실종 신고 — 위급한 행동이 한눈에 들어오도록 따뜻한 코랄·레드 그라데이션 */
.lost-report {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  background: linear-gradient(180deg, #fff7f3 0%, #fff1ea 100%);
  border: 1px solid #ffd9c9; border-radius: 14px; padding: 10px 12px;
}
.lost-report-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto;
  font: inherit; font-size: 15.5px; font-weight: 900; line-height: 1.2; letter-spacing: -.015em;
  color: #fff; background: linear-gradient(135deg, #ff8a4c 0%, #f4552f 52%, #e0311f 100%);
  border: 1px solid #d94a2b; border-radius: 13px; padding: 14px 18px; white-space: nowrap;
  text-shadow: 0 1px 1px rgba(120, 24, 8, .28);
  box-shadow: 0 12px 22px -12px rgba(214, 62, 26, .75), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -2px 0 rgba(150, 30, 10, .18);
}
.lost-report-btn::after { content: "›"; font-size: 19px; font-weight: 900; line-height: .9; margin-left: 1px; }
.lost-report-btn:hover { background: linear-gradient(135deg, #ff9a5f 0%, #fb6540 52%, #e93a26 100%); box-shadow: 0 14px 24px -12px rgba(214, 62, 26, .82), inset 0 1px 0 rgba(255, 255, 255, .38); }
.lost-report-btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 6px 14px -10px rgba(214, 62, 26, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lost-report-btn:focus-visible { outline: 2px solid #b8341c; outline-offset: 2px; }
.lost-report-sub { flex: 1 1 220px; font-size: 12px; line-height: 1.55; color: var(--ink-soft); word-break: keep-all; }
.lost-report-sub strong { color: var(--mint-deep); }

/* 실종 신고 안내 창 */
html.lost-report-open { overflow: hidden; }
.lost-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.lost-modal[hidden] { display: none; }
.lost-modal-backdrop {
  position: absolute; inset: 0; background: rgba(24, 32, 27, .55); backdrop-filter: blur(3px);
}
.lost-modal-sheet {
  position: relative; width: min(520px, 100%); max-height: min(88vh, 780px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 32px 70px -34px rgba(20, 30, 24, .65);
}
.lost-modal-head { position: relative; padding: 18px 20px 12px; }
.lost-modal-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 900;
  color: var(--mint-deep); background: var(--mint-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.lost-modal-title { font-size: 19px; font-weight: 900; padding-right: 44px; word-break: keep-all; }
.lost-modal-sub { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); word-break: keep-all; }
.lost-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: #f4f1e9; color: var(--ink-soft); font-size: 14px; font-weight: 900;
  display: grid; place-items: center;
}
.lost-modal-close:hover { background: #ece7db; }
.lost-modal-body { padding: 0 20px 20px; display: grid; gap: 12px; }
.lost-modal-steps { display: grid; gap: 8px; counter-reset: lr; }
.lost-modal-steps li {
  display: grid; gap: 2px; padding: 10px 12px; background: #fbf8f1;
  border: 1px solid var(--line); border-radius: 12px; word-break: keep-all;
}
.lost-modal-steps b { font-size: 13px; font-weight: 900; color: var(--mint-deep); }
.lost-modal-steps span { font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.lost-modal-note {
  font-size: 12.5px; line-height: 1.6; color: #8a5a00; background: #fff8e8;
  border: 1px solid #f1dcae; border-radius: 10px; padding: 10px 12px; word-break: keep-all;
}
.lost-modal-note strong { display: block; color: #7a4a00; margin-bottom: 2px; }
.lost-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lost-modal-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900;
  padding: 10px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); white-space: nowrap;
}
.lost-modal-btn.is-main { background: var(--mint); border-color: var(--mint); color: #fff; }
.lost-modal-soft { font-size: 11.5px; line-height: 1.6; color: var(--ink-mute); word-break: keep-all; }

@media (max-width: 620px) {
  .lost-card-box { padding: 16px; }
  .lost-empty { align-items: flex-start; }
  /* 필터가 늘어도 복잡해 보이지 않게 — 라벨 너비는 그대로 두고 칩만 작게 */
  .lost-filters { gap: 8px; padding-top: 12px; }
  .lost-frow { gap: 5px; }
  .lost-flabel { min-width: 40px; font-size: 11.5px; }
  .lchip { font-size: 12.5px; padding: 6px 10px; gap: 4px; }
  .lost-fnote { font-size: 10.5px; }
  .lost-pick { font-size: 12.5px; gap: 5px; }
  .lost-pick select { padding: 7px 8px; }
  .lost-frow--pair { gap: 6px 12px; }
  .lost-frow--summary { min-height: 22px; }
  .lost-combo { font-size: 12px; }
  .lost-reset-chip { font-size: 11px; padding: 4px 9px; }
  .lost-report { padding: 10px; }
  .lost-report-btn { width: 100%; justify-content: center; font-size: 15px; padding: 13px 14px; }
  .lost-modal { place-items: end center; padding: 0; }
  .lost-modal-sheet { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .lost-modal-head { padding: 16px 16px 10px; }
  .lost-modal-body { padding: 0 16px 18px; }
  .lost-modal-btn { width: 100%; justify-content: center; }
}

/* 좁은 화면(<=560px): 지역·날짜, 보호소·전화는 두 줄로 펼쳐 잘림 없이 보여 줌
   — 두 줄은 모든 카드에 빠짐없이 있어 카드 높이는 그대로 나란합니다 */
@media (max-width: 560px) {
  .la-when { flex-direction: column; align-items: flex-start; gap: 0; }
  .la-where, .la-date { width: 100%; max-width: 100%; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
  .la-center { flex-direction: column; align-items: flex-start; gap: 1px; min-height: 2.9em; }
  .la-shelter { width: 100%; }
  .la-credit { font-size: 9.5px; padding: 2px 5px; right: 6px; bottom: 6px; }
}

/* 320px 초소형 화면 — 2열을 유지하면서 패딩·글자만 줄여 카드가 깨지지 않게 */
@media (max-width: 380px) {
  .lost-card-box { padding: 11px; }
  .lost-list { gap: 8px; }
  .la-body { gap: 3px; padding: 8px 9px 9px; }
  .la-title { font-size: 12.5px; }
  .la-kind, .la-when, .la-note { font-size: 11px; }
  .la-badge { font-size: 10px; padding: 2px 6px; }
  .la-tags { gap: 3px; }
  .la-tag { font-size: 9px; padding: 2px 4px; }
  .lost-flabel { min-width: 36px; font-size: 11px; }
  .lchip { font-size: 11.5px; padding: 5px 8px; }
  .la-center { font-size: 10.5px; }
  .la-page { min-width: 32px; height: 32px; font-size: 12.5px; padding: 0 8px; }
  .lost-pagination { gap: 4px; }
}

/* 공원·훈련 카드는 긴 안내문이 잘리지 않게 한 줄씩 펼침 */
.card--park .micro,
.card--training .micro { grid-template-columns: 1fr; }
.card--park .micro-v,
.card--training .micro-v { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }

.lost { scroll-margin-top: calc(var(--topbar-h) + 14px); }
.lost-empty { grid-column: 1 / -1; }
.lost-empty p { flex: 1; min-width: 0; }

/* ───────────────────────────── 인앱 지도 모달 ─────────────────────────────
   📍 지도 버튼을 눌러도 사이트를 떠나지 않습니다. 지도 그림은 OpenStreetMap
   무료 타일을 이 창 안에서만 불러오고, 저작권은 모달 안에 표기합니다. */
html.map-open { overflow: hidden; }

.btn-map-emoji { font-size: 13.5px; line-height: 1; }
.map-inline {
  font: inherit; font-size: inherit; font-weight: 700; padding: 0;
  color: var(--sky-deep); text-decoration: underline; text-underline-offset: 2px;
}

.map-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.map-modal[hidden] { display: none; }

.map-backdrop {
  position: absolute; inset: 0;
  background: rgba(24, 32, 27, .55);
  backdrop-filter: blur(3px);
  animation: mapFade .16s ease-out;
}

.map-sheet {
  position: relative;
  width: min(440px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 32px 70px -34px rgba(20, 30, 24, .65);
  padding-bottom: 10px;
  animation: mapRise .2s ease-out;
}

.map-head { position: relative; padding: 18px 20px 12px; }
.map-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: -.01em;
  color: var(--mint-deep); background: var(--mint-tint);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.map-title { font-size: 20px; font-weight: 900; padding-right: 44px; }
.map-sub { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); }
.map-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f4f1e9; color: var(--ink-soft);
  font-size: 14px; font-weight: 900; display: grid; place-items: center;
}
.map-close:hover { background: #ece7db; }

.map-stage {
  position: relative; margin: 0 14px; height: 232px;
  border-radius: 18px; overflow: hidden;
  background: #e9efe6; border: 1px solid var(--line);
}
.map-stage.is-flat { background: repeating-linear-gradient(45deg, #eef3ea, #eef3ea 10px, #e6ece1 10px, #e6ece1 20px); }
.map-tiles { position: absolute; left: 50%; top: 50%; width: 768px; height: 768px; }
.map-tile { position: absolute; width: 256px; height: 256px; display: block; }
.map-tile.is-broken { display: none; }

.map-pin {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 30px; height: 30px; transform: translate(-50%, -100%);
  color: #e5533d; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .38));
  pointer-events: none;
}
.map-pin svg { width: 100%; height: 100%; fill: currentColor; }
.map-pulse {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: rgba(229, 83, 61, .3);
  box-shadow: 0 0 0 4px rgba(229, 83, 61, .16);
  animation: mapPulse 1.9s ease-out infinite;
  pointer-events: none;
}

.map-zoom { position: absolute; right: 8px; top: 8px; z-index: 4; display: grid; gap: 6px; }
.map-z {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255, 255, 255, .95); color: #2c3a31;
  border: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  font-size: 17px; font-weight: 900; line-height: 1; display: grid; place-items: center;
}
.map-z[disabled] { opacity: .38; cursor: default; }

.map-zlevel {
  position: absolute; right: 10px; bottom: 8px; z-index: 4;
  font-size: 10px; font-weight: 700; color: #4a5a50;
  background: rgba(255, 255, 255, .82); padding: 2px 6px; border-radius: 6px;
}
.map-credit {
  position: absolute; left: 6px; bottom: 6px; z-index: 4; margin: 0;
  font-size: 10px; font-weight: 600; color: #3d4a42;
  background: rgba(255, 255, 255, .86); padding: 2px 6px; border-radius: 6px;
}
.map-credit a { text-decoration: underline; text-underline-offset: 1px; }
.map-fallback {
  position: absolute; left: 12px; right: 12px; bottom: 38px; z-index: 5; margin: 0;
  font-size: 12px; line-height: 1.5; text-align: center; color: #7a5100;
  background: #fff8e8; border: 1px dashed #eccb84; border-radius: 10px; padding: 8px 10px;
}

.map-body { padding: 14px 18px 6px; display: grid; gap: 10px; }
.map-addr { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.map-addr-k {
  flex: 0 0 auto; margin-top: 2px; font-size: 11px; font-weight: 900;
  color: var(--mint-deep); background: var(--mint-tint); padding: 3px 7px; border-radius: 6px;
}
.map-addr strong { font-weight: 800; word-break: keep-all; }
.map-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.map-facts li {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 12.5px; background: #fbf9f3; border: 1px solid #f4efe4;
  border-radius: 10px; padding: 7px 10px;
}
.map-fact-k { flex: 0 0 auto; font-weight: 800; color: var(--ink-soft); }
.map-fact-v { font-weight: 700; color: var(--ink); min-width: 0; word-break: keep-all; }

.map-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.map-copy { width: auto; background: var(--mint); color: #fff; padding: 10px 16px; border-radius: 12px; }
.map-copy:hover { filter: brightness(1.06); }
.map-copy.is-done { background: var(--mint-deep); }
.map-coord { font-size: 11px; font-weight: 600; color: var(--ink-mute); }

.map-note { font-size: 11px; line-height: 1.55; color: var(--ink-mute); }

/* 모달 하단 보조 버튼 — 원할 때만 외부 지도로 */
.map-out { margin-top: 10px; margin-bottom: 6px; padding-top: 10px; border-top: 1px dashed var(--line-soft); }
.map-out-k { font-size: 10.5px; font-weight: 800; color: var(--ink-mute); margin-bottom: 6px; }
.map-out-row { display: flex; gap: 8px; flex-wrap: wrap; }
.map-out-btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 12px; font-weight: 900; color: #1f3b34; background: #f1f7f4;
  border: 1px solid #cfe0d8; border-radius: 10px; padding: 8px 12px;
}
.map-out-btn em { font-style: normal; font-size: 9.5px; font-weight: 800; color: #78938a; }
.map-out-btn:hover, .map-out-btn:focus-visible { background: #e6f2ec; border-color: #8fbcaa; }


.map-toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 130;
  transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 40px); text-align: center;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800;
  padding: 11px 18px; border-radius: 999px;
  transition: opacity .18s, transform .18s;
}
.map-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes mapFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mapRise { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes mapUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes mapPulse {
  0% { box-shadow: 0 0 0 4px rgba(229, 83, 61, .18); }
  70% { box-shadow: 0 0 0 18px rgba(229, 83, 61, 0); }
  100% { box-shadow: 0 0 0 18px rgba(229, 83, 61, 0); }
}

@media (max-width: 520px) {
  .map-modal { place-items: end center; padding: 0; }
  .map-sheet {
    width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0;
    border-bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom));
    animation: mapUp .22s ease-out;
  }
  .map-head { padding: 16px 16px 10px; }
  .map-title { font-size: 18.5px; }
  .map-stage { height: 200px; margin: 0 12px; }
  .map-body { padding: 12px 14px 4px; }
  .map-copy { flex: 1 1 auto; }
  /* 바텀시트에서는 토스트를 시트 위쪽 여백에 띄워 버튼·정보를 가리지 않게 */
  .map-toast { top: 14px; bottom: auto; transform: translate(-50%, -10px); }
  .map-toast.is-on { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .map-sheet, .map-backdrop, .map-pulse { animation: none; }
}

/* 다크 테마 대응 — 지도 모달은 밤 산책 톤으로 어둡게, 지도 타일은 색을 뒤집어 눈부심을 줄입니다. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .map-backdrop { background: rgba(4, 10, 7, .76); }
  html:not([data-theme="light"]) .map-sheet { background: #16241c; border-color: #2b3f33; color: #e8f1e6; }
  html:not([data-theme="light"]) .map-kicker { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html:not([data-theme="light"]) .map-title { color: #eff6ec; }
  html:not([data-theme="light"]) .map-sub, html:not([data-theme="light"]) .map-coord, html:not([data-theme="light"]) .map-note { color: #b3c6b8; }
  html:not([data-theme="light"]) .map-close { background: #1e2f24; color: #d5e6d8; }
  html:not([data-theme="light"]) .map-close:hover { background: #27402f; }
  html:not([data-theme="light"]) .map-stage { background: #1a2b21; border-color: #2b3f33; }
  html:not([data-theme="light"]) .map-tile { filter: invert(1) hue-rotate(180deg) brightness(.86) contrast(.9); }
  html:not([data-theme="light"]) .map-z { background: rgba(24, 38, 29, .94); border-color: rgba(255, 255, 255, .1); color: #e6f1e4; }
  html:not([data-theme="light"]) .map-zlevel { background: rgba(14, 24, 18, .8); color: #bccfbe; }
  html:not([data-theme="light"]) .map-credit { background: rgba(14, 24, 18, .84); color: #bccfbe; }
  html:not([data-theme="light"]) .map-addr-k { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html:not([data-theme="light"]) .map-addr strong { color: #eff6ec; }
  html:not([data-theme="light"]) .map-facts li { background: #1c2e23; border-color: #2b3f33; }
  html:not([data-theme="light"]) .map-fact-k { color: #adc2b2; }
  html:not([data-theme="light"]) .map-fact-v { color: #e8f1e6; }
  html:not([data-theme="light"]) .map-copy { background: #2e9463; color: #fff; }
  html:not([data-theme="light"]) .map-fallback { background: #2e2818; border-color: #56461f; color: #f0d79c; }
  html:not([data-theme="light"]) .map-toast { background: #e8f2e8; color: #14241a; }
  html:not([data-theme="light"]) .map-out-btn { color: #cfe6d6; background: #1b2c21; border-color: #33493b; }
  html:not([data-theme="light"]) .map-out-btn em { color: #93a89a; }
  html:not([data-theme="light"]) .map-out-btn:hover, html:not([data-theme="light"]) .map-out-btn:focus-visible { background: #24382b; border-color: #4f7a63; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .map-backdrop { background: rgba(4, 10, 7, .76); }
  html[data-theme="dark"] .map-sheet { background: #16241c; border-color: #2b3f33; color: #e8f1e6; }
  html[data-theme="dark"] .map-kicker { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html[data-theme="dark"] .map-title { color: #eff6ec; }
  html[data-theme="dark"] .map-sub, html[data-theme="dark"] .map-coord, html[data-theme="dark"] .map-note { color: #b3c6b8; }
  html[data-theme="dark"] .map-close { background: #1e2f24; color: #d5e6d8; }
  html[data-theme="dark"] .map-close:hover { background: #27402f; }
  html[data-theme="dark"] .map-stage { background: #1a2b21; border-color: #2b3f33; }
  html[data-theme="dark"] .map-tile { filter: invert(1) hue-rotate(180deg) brightness(.86) contrast(.9); }
  html[data-theme="dark"] .map-z { background: rgba(24, 38, 29, .94); border-color: rgba(255, 255, 255, .1); color: #e6f1e4; }
  html[data-theme="dark"] .map-zlevel { background: rgba(14, 24, 18, .8); color: #bccfbe; }
  html[data-theme="dark"] .map-credit { background: rgba(14, 24, 18, .84); color: #bccfbe; }
  html[data-theme="dark"] .map-addr-k { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html[data-theme="dark"] .map-addr strong { color: #eff6ec; }
  html[data-theme="dark"] .map-facts li { background: #1c2e23; border-color: #2b3f33; }
  html[data-theme="dark"] .map-fact-k { color: #adc2b2; }
  html[data-theme="dark"] .map-fact-v { color: #e8f1e6; }
  html[data-theme="dark"] .map-copy { background: #2e9463; color: #fff; }
  html[data-theme="dark"] .map-fallback { background: #2e2818; border-color: #56461f; color: #f0d79c; }
  html[data-theme="dark"] .map-toast { background: #e8f2e8; color: #14241a; }
  html[data-theme="dark"] .map-out-btn { color: #cfe6d6; background: #1b2c21; border-color: #33493b; }
  html[data-theme="dark"] .map-out-btn em { color: #93a89a; }
  html[data-theme="dark"] .map-out-btn:hover, html[data-theme="dark"] .map-out-btn:focus-visible { background: #24382b; border-color: #4f7a63; }
/* dd-theme-forced-end */


/* ── 집 찾아줄개 공고 상세 창: 다크 테마 ── */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lm-backdrop { background: rgba(4, 10, 7, .76); }
  html:not([data-theme="light"]) .lm-sheet { background: #16241c; border-color: #2b3f33; color: #e8f1e6; }
  html:not([data-theme="light"]) .lm-kicker { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html:not([data-theme="light"]) .lm-title { color: #eff6ec; }
  html:not([data-theme="light"]) .lm-sub, html:not([data-theme="light"]) .lm-note { color: #b3c6b8; }
  html:not([data-theme="light"]) .lm-close { background: #1e2f24; color: #d5e6d8; }
  html:not([data-theme="light"]) .lm-close:hover { background: #27402f; }
  html:not([data-theme="light"]) .lm-photo { background: #1a2b21; }
  html:not([data-theme="light"]) .lm-photo .lm-ph { color: #9fc6ab; }
  html:not([data-theme="light"]) .lm-state { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html:not([data-theme="light"]) .lm-state b, html:not([data-theme="light"]) .lm-dday { color: #ffb59a; }
  html:not([data-theme="light"]) .lm-facts li { background: #1c2e23; border-color: #2b3f33; }
  html:not([data-theme="light"]) .lm-k { color: #adc2b2; }
  html:not([data-theme="light"]) .lm-v, html:not([data-theme="light"]) .lm-line { color: #e8f1e6; }
  html:not([data-theme="light"]) .lm-line.lm-soft, html:not([data-theme="light"]) .lm-sec p.lm-soft { color: #a9bdae; }
  html:not([data-theme="light"]) .lm-sec h3 { color: #86e0ac; }
  html:not([data-theme="light"]) .lm-sec p { color: #c4d7c8; }
  html:not([data-theme="light"]) .lm-tel { color: #9ff0c0; background: #0f1e16; border-color: #3f6a52; }
  html:not([data-theme="light"]) .lm-btn { background: #2e9463; color: #fff; }
  html:not([data-theme="light"]) .la-card:hover { border-color: #3f6a52; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .lm-backdrop { background: rgba(4, 10, 7, .76); }
  html[data-theme="dark"] .lm-sheet { background: #16241c; border-color: #2b3f33; color: #e8f1e6; }
  html[data-theme="dark"] .lm-kicker { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html[data-theme="dark"] .lm-title { color: #eff6ec; }
  html[data-theme="dark"] .lm-sub, html[data-theme="dark"] .lm-note { color: #b3c6b8; }
  html[data-theme="dark"] .lm-close { background: #1e2f24; color: #d5e6d8; }
  html[data-theme="dark"] .lm-close:hover { background: #27402f; }
  html[data-theme="dark"] .lm-photo { background: #1a2b21; }
  html[data-theme="dark"] .lm-photo .lm-ph { color: #9fc6ab; }
  html[data-theme="dark"] .lm-state { background: rgba(88, 198, 137, .18); color: #86e0ac; }
  html[data-theme="dark"] .lm-state b, html[data-theme="dark"] .lm-dday { color: #ffb59a; }
  html[data-theme="dark"] .lm-facts li { background: #1c2e23; border-color: #2b3f33; }
  html[data-theme="dark"] .lm-k { color: #adc2b2; }
  html[data-theme="dark"] .lm-v, html[data-theme="dark"] .lm-line { color: #e8f1e6; }
  html[data-theme="dark"] .lm-line.lm-soft, html[data-theme="dark"] .lm-sec p.lm-soft { color: #a9bdae; }
  html[data-theme="dark"] .lm-sec h3 { color: #86e0ac; }
  html[data-theme="dark"] .lm-sec p { color: #c4d7c8; }
  html[data-theme="dark"] .lm-tel { color: #9ff0c0; background: #0f1e16; border-color: #3f6a52; }
  html[data-theme="dark"] .lm-btn { background: #2e9463; color: #fff; }
  html[data-theme="dark"] .la-card:hover { border-color: #3f6a52; }
/* dd-theme-forced-end */


/* ── 권역 선택 지도: 좁은 화면·다크 테마 ── */
@media (max-width: 620px) {
  .zone-row { gap: 6px; }
  .zone-now { order: 3; width: 100%; margin: 2px 0 0; font-size: 11.5px; }
  .zone-map-card { padding: 8px 8px 6px; }
  .zone-map-hint { display: none; }
  .zone-map-stage { max-width: 100%; }
  .kr-btn { font-size: 11px; padding: 2px 6px 1px; }
  .kr-dog { width: 24px; height: 24px; }
}
@media (max-width: 350px) {
  .kr-btn { font-size: 10px; padding: 1.5px 5px 1px; border-width: 1.4px; }
  .kr-btn .kr-count { font-size: 9px; }
  .kr-dog { width: 22px; height: 22px; }
  .rchip, .near-btn { font-size: 11px; padding: 5px 8px; }
  .radius-row { gap: 4px; }
  .radius-k { font-size: 10px; }
  .kr-isle-tag { font-size: 9px; }
  .zchip { font-size: 12.5px; padding: 6px 11px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .zone-map-card { background: #16241c; border-color: #2b3f33; }
  html:not([data-theme="light"]) .zone-map-title { color: #e9f2e5; }
  html:not([data-theme="light"]) .zone-map-hint, html:not([data-theme="light"]) .zone-now { color: #b3c6b8; }
  html:not([data-theme="light"]) .zone-map-credit { color: #9db2a3; }
  html:not([data-theme="light"]) .kr-path { fill: #2b4436; stroke: #4d6d57; }
  html:not([data-theme="light"]) .kr-g:hover .kr-path { fill: #3a5c47; }
  html:not([data-theme="light"]) .kr-g.is-zero .kr-path { fill: #223428; }
  html:not([data-theme="light"]) .kr-g[aria-pressed="true"] .kr-path { fill: #2e8f63; stroke: #8effc2; stroke-width: 1.6; }
  html:not([data-theme="light"]) .kr-btn { background: #061410; border-color: #5aa87f; color: #f6fffa; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
  html:not([data-theme="light"]) .kr-btn .kr-count { color: #8ff0b8; }
  html:not([data-theme="light"]) .kr-btn:hover { background: #0d2419; }
  html:not([data-theme="light"]) .kr-btn.is-zero { background: #1b2a21; border-color: #46614f; color: #cfdbd4; }
  html:not([data-theme="light"]) .kr-btn.is-zero .kr-count { color: #b6c6bc; }
  html:not([data-theme="light"]) .kr-btn[aria-pressed="true"] { background: #0d6b4b; border-color: #8effc2; color: #ffffff; box-shadow: 0 0 0 2.5px rgba(126, 240, 182, .9), 0 2px 4px rgba(0, 0, 0, .45); }
  html:not([data-theme="light"]) .kr-btn[aria-pressed="true"] .kr-count { color: #d9ffe9; }
  html:not([data-theme="light"]) .kr-isle-tag { background: #0b2318; border-color: #4c8f6d; color: #f6fffa; }
  html:not([data-theme="light"]) .kr-leader { stroke: #4a6656; }
  html:not([data-theme="light"]) .kr-island { stroke: #6d8f7b; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .zone-map-card { background: #16241c; border-color: #2b3f33; }
  html[data-theme="dark"] .zone-map-title { color: #e9f2e5; }
  html[data-theme="dark"] .zone-map-hint, html[data-theme="dark"] .zone-now { color: #b3c6b8; }
  html[data-theme="dark"] .zone-map-credit { color: #9db2a3; }
  html[data-theme="dark"] .kr-path { fill: #2b4436; stroke: #4d6d57; }
  html[data-theme="dark"] .kr-g:hover .kr-path { fill: #3a5c47; }
  html[data-theme="dark"] .kr-g.is-zero .kr-path { fill: #223428; }
  html[data-theme="dark"] .kr-g[aria-pressed="true"] .kr-path { fill: #2e8f63; stroke: #8effc2; stroke-width: 1.6; }
  html[data-theme="dark"] .kr-btn { background: #061410; border-color: #5aa87f; color: #f6fffa; box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
  html[data-theme="dark"] .kr-btn .kr-count { color: #8ff0b8; }
  html[data-theme="dark"] .kr-btn:hover { background: #0d2419; }
  html[data-theme="dark"] .kr-btn.is-zero { background: #1b2a21; border-color: #46614f; color: #cfdbd4; }
  html[data-theme="dark"] .kr-btn.is-zero .kr-count { color: #b6c6bc; }
  html[data-theme="dark"] .kr-btn[aria-pressed="true"] { background: #0d6b4b; border-color: #8effc2; color: #ffffff; box-shadow: 0 0 0 2.5px rgba(126, 240, 182, .9), 0 2px 4px rgba(0, 0, 0, .45); }
  html[data-theme="dark"] .kr-btn[aria-pressed="true"] .kr-count { color: #d9ffe9; }
  html[data-theme="dark"] .kr-isle-tag { background: #0b2318; border-color: #4c8f6d; color: #f6fffa; }
  html[data-theme="dark"] .kr-leader { stroke: #4a6656; }
  html[data-theme="dark"] .kr-island { stroke: #6d8f7b; }
/* dd-theme-forced-end */


/* ── 카드 공식 안내 링크 (지자체·공공기관 확인 URL만) ── */
.card-actions.is-three { grid-template-columns: 1fr 1fr 1fr; }
.btn--site { background: #f2f7ff; color: #1f4f8a; border: 1.5px solid #d6e6f8; }
.btn--site:hover { background: #e6f0fb; }
@media (max-width: 620px) {
  .card-actions.is-three .btn { font-size: 12.5px; padding-inline: 6px; }
}
/* ═══════════════════════════════════════════════════════════
   2026-11-20 · 댕댕이 생활 수첩 5섹터
   (운동장 찾기 · 집 찾아줄개 · 댕댕이 시선 · 댕댕이 성향 · 조심할 음식!)
   ═══════════════════════════════════════════════════════════ */

/* ── 섹터 공통 ─────────────────────────────── */
.sector { scroll-margin-top: calc(var(--topbar-h) + 70px); }
.sector[hidden] { display: none !important; }
.sector:focus { outline: none; }

.sec-head { margin: 8px 2px 14px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 900; letter-spacing: -.01em;
  color: var(--mint-deep); background: var(--mint-tint);
  padding: 6px 13px; border-radius: 999px;
}
.sec-title {
  margin-top: 10px; font-size: clamp(20px, 2.3vw, 27px); font-weight: 900; letter-spacing: -.045em;
  word-break: keep-all; text-wrap: balance;
}
.sec-title strong { color: var(--mint-deep); }
.sec-sub { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); max-width: 62ch; word-break: keep-all; }
#sec-lost .sec-kicker { color: var(--sun-deep); background: var(--sun-tint); }
#sec-eyes .sec-kicker { color: var(--sky-deep); background: var(--sky-tint); }
#sec-eyes .sec-title strong { color: var(--sky-deep); }
#sec-mbti .sec-kicker { color: #574ab5; background: #efeafc; }
#sec-mbti .sec-title strong { color: #574ab5; }
#sec-food .sec-kicker { color: var(--coral-deep); background: var(--coral-tint); }
#sec-food .sec-title strong { color: var(--coral-deep); }

/* 운동장 찾기 — 검색·현황·거리순 패널 */
.find-lead {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 16px 18px 18px; box-shadow: var(--shadow-s);
}
.find-lead .searchbar { margin-top: 0; }
.find-lead .stat-chips { margin-top: 14px; }

/* ═══════════════════════════════════════════════
   👀 댕댕이 시선
   ═══════════════════════════════════════════════ */
.eyes-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 16px 16px 18px; box-shadow: var(--shadow-s);
}
.eyes-stage {
  position: relative; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden;
  background: #e9efe9; cursor: ew-resize; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  border: 1px solid #e6ece6;
}
.eyes-stage:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.eyes-stage canvas { display: block; width: 100%; height: 100%; }
.eyes-tag {
  position: absolute; top: 10px; display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 900; color: #fff; white-space: nowrap;
  background: rgba(20, 27, 23, .58); padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); pointer-events: none;
}
.eyes-tag--human { left: 10px; }
.eyes-tag--pet { right: 10px; background: rgba(42, 111, 151, .82); }
.eyes-line {
  position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .35); pointer-events: none;
}
.eyes-handle {
  position: absolute; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: flex; align-items: center; justify-content: center; gap: 1px;
  border-radius: 50%; background: #fff; color: #2a3a31;
  font-size: 11px; font-weight: 900; letter-spacing: -.1em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28); pointer-events: none;
}
.eyes-drag {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap;
  background: rgba(20, 27, 23, .5); padding: 4px 11px; border-radius: 999px;
  pointer-events: none; transition: opacity .2s;
}
.eyes-stage.is-drag .eyes-drag { opacity: 0; }
.eyes-caption {
  margin-top: 11px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  text-align: center; line-height: 1.5; word-break: keep-all;
}
/* 강아지 전용 안내 칩 — 눈·성향·음식 모두 '강아지 기준' 한 줄로 통일 */
.sp-one {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; padding: 11px 12px;
  font-size: 13.5px; font-weight: 900; letter-spacing: -.02em;
  color: #1d3a31; background: #eaf7ee; border: 1.5px solid #cfe9da; border-radius: 14px;
  word-break: keep-all; text-align: center;
}
/* 액션 — 초직관: 노란 메인 버튼 하나, 저장은 그 아래 차분한 보조 버튼 */
.eyes-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.eyes-upload {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, #ffd85f, #f3b01f);
  color: #3a2c00; border: 2px solid #c98a00; border-radius: 15px; padding: 15px 10px;
  font-size: 15.5px; font-weight: 900; letter-spacing: -.02em; word-break: keep-all;
  box-shadow: 0 14px 26px -16px rgba(242, 181, 46, .95);
}
.eyes-upload:hover { filter: brightness(1.02); }
.eyes-upload:active { transform: translateY(1px); }
.eyes-save {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 8px; font-size: 12.5px; font-weight: 800; color: var(--ink-mute);
}
.eyes-save:hover { border-color: var(--sky); color: var(--sky-deep); }
.eyes-save:active { transform: translateY(1px); }
/* 다른 장면 고르기 — 위 버튼들과 확실히 갈라지는 강조 박스(따뜻한 배경 + 실선 테두리) */
.eyes-samples-wrap {
  margin-top: 16px; padding: 12px 12px 13px;
  background: linear-gradient(180deg, #fff9e6, #fff2cd);
  border: 2.5px solid #e9a70c; border-radius: 20px;
  box-shadow: 0 16px 30px -24px rgba(120, 82, 0, .55), inset 0 1px 0 #fffdf6;
}
.eyes-samples-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eyes-samples-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 900; letter-spacing: -.03em; color: #4a3500;
}
.eyes-samples-ico { font-size: 15px; line-height: 1; }
.eyes-index {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 3px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0;
  color: #fff; background: #a86c00; border: 1.5px solid #7d5000;
}
.eyes-nav { display: flex; gap: 6px; }
.eyes-nav-btn {
  width: 40px; height: 40px; padding: 0 0 2px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; background: #fff;
  border: 2px solid #d19100; color: #8a5a00; font-size: 20px; font-weight: 900; line-height: 1;
  box-shadow: 0 2px 5px rgba(120, 82, 0, .18);
}
.eyes-nav-btn:hover { background: #fff4d6; border-color: #b37400; color: #6b4a00; }
.eyes-nav-btn:active { transform: scale(.94); }
.eyes-samples-note { margin-top: 4px; font-size: 11px; font-weight: 700; color: #7a6417; }
/* 6종 썸네일 — 390px에서 3장 + 3장(두 줄 꽉 찬 3×2), 기존보다 살짝만 큰 아담한 크기 */
.eyes-samples {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 10px auto 0; max-width: 282px;
}
.eyes-sample {
  position: relative;
  padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid #e6cf96; background: #eef1ee; line-height: 0;
  box-shadow: 0 1px 3px rgba(90, 66, 0, .12);
}
.eyes-sample img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.eyes-sample span {
  position: absolute; left: 0; right: 0; bottom: 0; line-height: 1.25;
  font-size: 11px; font-weight: 900; color: #fff; text-align: left; letter-spacing: -.02em;
  padding: 12px 5px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}
.eyes-sample span b { font-size: 11.5px; margin-right: 3px; }
.eyes-sample[aria-pressed="true"] {
  border-color: #fff; box-shadow: 0 0 0 2.5px #e9a70c, 0 4px 10px -5px rgba(110, 74, 0, .5);
}
.eyes-sample[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 3px; right: 3px;
  width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #e9a70c; color: #3a2c00;
  font-size: 12px; font-weight: 900; line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.eyes-sample[aria-pressed="true"] span { background: linear-gradient(transparent, rgba(122, 80, 0, .97)); color: #fff6dc; }
.eyes-note {
  margin-top: 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-mute);
  background: #f7faf7; border-radius: 12px; padding: 9px 11px; line-height: 1.55;
}
/* 👀 강아지 시선 핵심 3줄 — 2026-11-28 사용자 요청(이렇게 보여서 뭐가 달라지는지) */
.eyes-tips {
  margin-top: 12px; padding: 11px 13px; border-radius: 14px;
  background: #f3f8f4; border: 1px solid #dfeade;
}
.eyes-tips-k {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 900; color: #2f6b3c;
  letter-spacing: -.015em; word-break: keep-all;
}
.eyes-tips-list {
  margin: 0; padding-left: 16px; display: grid; gap: 3px;
  font-size: 12px; color: var(--ink-soft);
  line-height: 1.65; letter-spacing: -.015em; word-break: keep-all;
}
.eyes-tips-list b { color: var(--ink); }
/* 장면별 1줄 포인트 — 캡션 앞에 작은 라벨만 붙여 볼륨은 그대로 */
.eyes-caption::before { content: "이 장면 포인트 · "; font-weight: 900; color: #2f6b3c; }
.eyes-science { margin-top: 10px; }
.eyes-science summary {
  font-size: 12px; font-weight: 800; color: var(--sky-deep); cursor: pointer; padding: 6px 0;
}
.eyes-science > div { margin-top: 6px; display: grid; gap: 6px; }
.eyes-science p { font-size: 12px; color: var(--ink-soft); line-height: 1.65; }
.eyes-science b { color: var(--ink); }
.eyes-science-warn { color: var(--coral-deep) !important; font-weight: 700; }

/* ═══════════════════════════════════════════════
   🧠 댕댕이 성향
   ═══════════════════════════════════════════════ */
.mbti-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 18px 16px; box-shadow: var(--shadow-s); max-width: 640px;
}
.mbti-panel[hidden] { display: none !important; }
.mbti-lead { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); text-align: center; line-height: 1.6; word-break: keep-all; }
.mbti-start {
  width: 100%; margin-top: 14px; padding: 15px; border-radius: 15px;
  background: linear-gradient(135deg, #3cb377, #1c7a4e); color: #fff;
  font-size: 16px; font-weight: 900;
  box-shadow: 0 14px 26px -18px rgba(28, 122, 78, .95);
}
.mbti-start:active { transform: translateY(1px); }
.mbti-meta { margin-top: 10px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-mute); }
.mbti-progress-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 800; color: var(--ink-soft);
}
.mbti-progress-head b { color: #574ab5; font-size: 13px; }
.mbti-bar { height: 8px; margin-top: 7px; border-radius: 999px; background: #eef0f5; overflow: hidden; }
.mbti-bar > span { display: block; height: 100%; width: 12.5%; border-radius: 999px; background: linear-gradient(90deg, #7c6fe0, #574ab5); transition: width .25s ease; }
.mbti-q {
  margin-top: 18px; font-size: clamp(18px, 2vw, 22px); font-weight: 900; line-height: 1.38;
  letter-spacing: -.03em; min-height: 2.7em; word-break: keep-all;
}
.mbti-choices { display: grid; gap: 10px; margin-top: 12px; }
.mbti-choice {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #f7f8fc; border: 1.5px solid #e8e7f2; border-radius: 16px;
  padding: 15px 14px; font-size: 14px; font-weight: 700; color: var(--ink);
  transition: background .15s, border-color .15s, transform .12s;
  min-height: 58px;
}
.mbti-choice:hover { border-color: #b9b0e8; background: #f3f1fd; }
.mbti-choice:active { transform: scale(.995); }
.mbti-choice-k {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
  background: #fff; border: 1.5px solid #e2dff3; color: #574ab5;
}
.mbti-choice-t { line-height: 1.45; }
.mbti-prev { margin-top: 12px; padding: 8px 12px 8px 0; font-size: 12.5px; font-weight: 800; color: var(--ink-mute); }
.mbti-prev:disabled { opacity: .35; }
.mbti-result {
  border-radius: 20px; padding: 20px 16px; text-align: center;
  background: linear-gradient(160deg, #eefaf2, #fff8e4); border: 1px solid #dff0e5;
}
.mbti-result--cat { background: linear-gradient(160deg, #eef5fd, #f6f2ff); border-color: #dfe8fb; }
.mbti-result-kicker { font-size: 11.5px; font-weight: 900; color: var(--mint-deep); }
.mbti-result--cat .mbti-result-kicker { color: #2f6bd8; }
.mbti-result-emoji { font-size: 46px; line-height: 1; margin-top: 8px; }
.mbti-result-code { margin-top: 8px; font-size: 12.5px; font-weight: 900; letter-spacing: .18em; color: var(--ink-mute); }
.mbti-result-nick { margin-top: 2px; font-size: clamp(20px, 2.4vw, 25px); font-weight: 900; letter-spacing: -.04em; }
.mbti-result-summary { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.65; text-align: left; word-break: keep-all; }
.mbti-rows { margin-top: 14px; display: grid; gap: 8px; text-align: left; }
.mbti-row { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 11px 13px; }
.mbti-row b { display: block; font-size: 11.5px; font-weight: 900; color: #574ab5; margin-bottom: 3px; }
.mbti-row--walk b { color: var(--mint-deep); }
.mbti-row--care b { color: var(--coral-deep); }
.mbti-row span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.6; }
.mbti-result-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 12px; }
.mbti-share {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #574ab5; color: #fff; border-radius: 14px; padding: 14px 8px;
  font-size: 14px; font-weight: 900;
}
.mbti-again { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 8px; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.mbti-preview-wrap { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mbti-preview-k { font-size: 11.5px; font-weight: 900; color: var(--ink-mute); text-align: center; }
/* 예시 유형 4개는 글자 길이가 달라도 좌우 라인이 맞도록 한 열 스택으로 정돈합니다.
   (예전 flex-wrap + center 는 390px 에서 1·2·1 로 들쭉날쭉 줄바꿈됐습니다)
   grid-template-columns: max-content → 칩 너비가 가장 긴 글자에 맞춰 모두 같아지고,
   블록 전체는 가운데로 모입니다. 아주 긴 글자는 칩 안에서 줄바꿈됩니다. */
.mbti-preview {
  display: grid; grid-template-columns: minmax(0, max-content); justify-content: center;
  gap: 6px; margin-top: 8px; max-width: 100%;
}
.mbti-preview-chip {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px;
  width: 100%; min-width: 0; max-width: 100%; text-align: left;
  font-size: 11.5px; font-weight: 800; color: #574ab5;
  background: #f3f1fd; border-radius: 12px; padding: 6px 11px; word-break: keep-all;
}
.mbti-preview-chip b { font-size: 13px; }
.mbti-note { margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-mute); min-height: 1.3em; text-align: center; }

/* ═══════════════════════════════════════════════
   🚨 조심할 음식!
   ═══════════════════════════════════════════════ */
.food-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 16px 16px 18px; box-shadow: var(--shadow-s);
}
.food-search {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 2px solid var(--coral-tint); border-radius: 16px;
  box-shadow: var(--shadow-s); transition: border-color .15s, box-shadow .15s;
}
.food-search:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(244, 121, 91, .12); }
.food-search-ico { width: 20px; height: 20px; fill: var(--ink-mute); margin: 0 4px 0 14px; flex: 0 0 auto; }
.food-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  padding: 15px 8px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.food-search input::placeholder { color: var(--ink-mute); font-weight: 600; }
.food-search input::-webkit-search-cancel-button,
.food-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.food-clear {
  flex: 0 0 auto; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%;
  background: #f2f2ee; color: var(--ink-soft); font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
}
.food-quick {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.food-quick::-webkit-scrollbar { display: none; }
.food-quick-k { flex: 0 0 auto; font-size: 11px; font-weight: 900; color: var(--ink-mute); }
.food-quick button {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--coral-deep);
  background: var(--coral-tint); border-radius: 999px; padding: 7px 12px; white-space: nowrap;
}
.food-quick button:hover { background: #ffdfd4; }
.food-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.food-filters .sp-one { flex: 1 1 190px; margin-top: 0; padding: 11px 12px; }
.food-risk { display: flex; gap: 5px; overflow-x: auto; flex: 1 1 100%; scrollbar-width: none; padding-bottom: 2px; }
.food-risk::-webkit-scrollbar { display: none; }
.food-risk button {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 8px 11px;
  border-radius: 999px; background: #f6f5f0; color: var(--ink-soft);
  border: 1.5px solid transparent; white-space: nowrap;
}
.food-risk button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.food-risk button[data-risk="danger"][aria-pressed="true"] { background: #d8452f; }
.food-risk button[data-risk="caution"][aria-pressed="true"] { background: #c98a09; }
.food-risk button[data-risk="safe"][aria-pressed="true"] { background: #1f8a4c; }
.food-count { margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
.food-count b { color: var(--ink-soft); }
.food-count-all { color: var(--ink-mute); font-weight: 600; }
.food-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.fd-card {
  background: #fff; border: 1px solid var(--line-soft); border-left: 5px solid #d9d3c7;
  border-radius: 16px; padding: 13px 14px;
}
.fd-card--danger { border-left-color: #e04834; background: #fff9f7; }
.fd-card--caution { border-left-color: #e3a008; background: #fffdf5; }
.fd-card--safe { border-left-color: #22935a; background: #f8fdf9; }
.fd-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fd-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 900; padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1px solid currentColor; color: #7d7267;
}
.fd-card--danger .fd-badge { color: #c93a25; }
.fd-card--caution .fd-badge { color: #a9740a; }
.fd-card--safe .fd-badge { color: #1c7a4e; }
.fd-also { font-size: 10.5px; font-weight: 700; color: var(--ink-mute); }
.fd-name { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 900; letter-spacing: -.03em; }
.fd-emoji { font-size: 19px; line-height: 1; }
.fd-why { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.62; word-break: keep-all; }
.fd-facts { margin-top: 9px; display: grid; gap: 5px; }
.fd-facts div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
.fd-facts dt { font-size: 11px; font-weight: 900; color: var(--ink-mute); padding-top: 1px; }
.fd-facts dd { margin: 0; font-size: 12px; font-weight: 600; color: var(--ink-soft); line-height: 1.55; }
.fd-note {
  margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--sky-deep);
  background: var(--sky-tint); border-radius: 10px; padding: 7px 10px; line-height: 1.5;
}
.food-empty { text-align: center; padding: 26px 10px; }
.food-empty-emoji { font-size: 30px; }
.food-empty p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.food-note { margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--ink-mute); }
.food-emergency {
  margin-top: 12px; font-size: 11.5px; font-weight: 700; line-height: 1.6;
  color: #8a2d1c; background: #fff0eb; border: 1px dashed #f3b7a6;
  border-radius: 14px; padding: 11px 13px;
}
.food-emergency strong { color: #7a2415; }

/* ═══════════════════════════════════════════════
   🏥 병원 가기 전 이상신호 체크
   ═══════════════════════════════════════════════ */
.signs-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 16px 16px 18px; box-shadow: var(--shadow-s);
}
.signs-disclaimer {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 700; line-height: 1.6;
  color: #7a4a00; background: var(--sun-tint); border: 1px solid #f0dda2;
  border-radius: 14px; padding: 10px 12px;
}
.signs-disclaimer strong { color: #6b3f00; }
.signs-disclaimer--foot { margin: 14px 0 0; }
.signs-chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.signs-chips::-webkit-scrollbar { display: none; }
.signs-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 800; color: var(--ink-soft); letter-spacing: -.03em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.signs-chip:hover { border-color: #cfe8d4; color: var(--mint-deep); }
.signs-chip.is-active {
  background: var(--mint-tint); border-color: #b7e7c9; color: var(--mint-deep);
}
.signs-body { min-height: 40px; }
.signs-loading { font-size: 12.5px; color: var(--ink-mute); }
.signs-item-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.signs-emoji { font-size: 20px; line-height: 1; }
.signs-name { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.signs-count {
  margin-left: auto; font-size: 11px; font-weight: 800; color: var(--mint-deep);
  background: var(--mint-tint); border-radius: 999px; padding: 4px 9px;
}
.signs-block { border-radius: 16px; padding: 12px 13px; margin-top: 10px; }
.signs-block h4 {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px; font-size: 13px; font-weight: 900; letter-spacing: -.03em;
}
.signs-block--red { background: #fff0ee; border: 1px solid #f6c4ba; }
.signs-block--red h4 { color: #a02c15; }
.signs-block--record { background: var(--surface-2); border: 1px solid var(--line); }
.signs-block--record h4 { color: var(--mint-deep); }
.signs-block--never { background: #f6f7f4; border: 1px solid #e4e8df; }
.signs-block--never h4 { color: #4b5245; }
.signs-list { margin: 0; padding: 0; list-style: none; }
.signs-list li {
  position: relative; padding-left: 15px; margin-top: 6px;
  font-size: 12.5px; font-weight: 600; line-height: 1.55; color: var(--ink-soft);
}
.signs-list li:first-child { margin-top: 0; }
.signs-list li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45;
}
.signs-list--red li { color: #8f3a26; }
.signs-list--never li { color: #4b5245; }
.signs-checks { margin: 0; padding: 0; list-style: none; }
.signs-checks li { margin-top: 6px; }
.signs-checks li:first-child { margin-top: 0; }
.signs-check {
  display: flex; align-items: flex-start; gap: 8px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; line-height: 1.55; color: var(--ink-soft);
}
.signs-check input {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--mint);
  cursor: pointer;
}
.signs-check input:checked + .signs-check-text { color: var(--ink); font-weight: 800; }
.signs-check-text { min-width: 0; }
.signs-copy {
  margin-top: 11px; font-size: 12px; font-weight: 800; color: var(--mint-deep);
  background: var(--surface); border: 1px solid #bfe6cd; border-radius: 12px;
  padding: 8px 12px; cursor: pointer;
}
.signs-copy:hover { background: var(--mint-tint); }
.signs-copy-note { margin: 7px 0 0; font-size: 11px; font-weight: 700; color: var(--mint-deep); }
.signs-note { margin: 10px 0 0; font-size: 11px; font-weight: 600; color: var(--ink-mute); }
.signs-bring-box {
  margin-top: 12px; background: var(--sky-tint); border: 1px solid #cbe6f5;
  border-radius: 14px; padding: 10px 13px;
}
.signs-bring-box summary {
  font-size: 12.5px; font-weight: 900; color: var(--sky-deep); cursor: pointer; letter-spacing: -.02em;
}
.signs-bring { margin: 8px 0 0; padding: 0; list-style: none; }
.signs-bring li {
  position: relative; padding-left: 15px; margin-top: 5px;
  font-size: 12px; font-weight: 600; line-height: 1.5; color: #2c5c75;
}
.signs-bring li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45;
}

@media (min-width: 620px) {
  /* 넓은 화면에서는 썸네일 6장을 한 줄로(3×2로 접지 않음) — 아담한 크기는 그대로 유지 */
  .eyes-samples { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 560px; }
}

@media (min-width: 820px) {
  .food-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbti-card { padding: 22px 22px 20px; max-width: 720px; }
  .eyes-card { max-width: 920px; }
  /* 사진(920) 아래 글·버튼·썸네일은 한 줄로 가운데 — 왼쪽에 붙어 비어 보이지 않게 */
  .eyes-actions, .eyes-samples-wrap, .eyes-note, .eyes-caption { max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 620px) {
  .sec-head { margin: 4px 2px 12px; }
  .sec-sub { font-size: 12.5px; }
  .find-lead { padding: 13px 13px 15px; border-radius: 20px; }
  .find-lead .searchbar input { padding: 14px 14px 14px 6px; }
  .eyes-card, .mbti-card, .food-card, .signs-card { padding: 13px 13px 15px; border-radius: 20px; }
  .eyes-stage { border-radius: 16px; }
  .eyes-handle { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .eyes-samples { gap: 7px; }
  .eyes-nav-btn { width: 32px; height: 32px; font-size: 19px; }
  .eyes-upload { padding: 15px 8px; font-size: 14.5px; }
  .sp-one { padding: 12px 10px; font-size: 13px; }
  .mbti-q { font-size: 19px; min-height: 3.1em; }
  .mbti-choice { padding: 14px 12px; font-size: 13.5px; }
  .fd-card { padding: 12px 12px 13px; }
  .fd-name { font-size: 15.5px; }
}

@media (max-width: 430px) {
  /* 좁은 폰 헤더 — 2단 구성은 그대로, 글자만 한 단계 줄임 */
  .topbar-in { padding: 8px 10px 9px; gap: 6px 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-text strong { font-size: 18px; letter-spacing: -.05em; }
  .topbar-meta { gap: 5px; }
  .bgm-btn, .mydog-pill, .fav-pill { font-size: 12.5px; }
  .fav-pill .fav-pill-label { font-size: 12px; }
  .menu-btn { height: 32px; padding: 0 10px 0 8px; }
  .menu-btn .menu-btn-ico, .menu-btn .menu-btn-label { font-size: 13px; }
  .hero-count { font-size: 11px; padding: 4px 8px; }
}

@media (max-width: 380px) {
  /* 좁은 폰 — 제목만 한 단계 줄이고 로고 그림은 남깁니다 */
  .brand-text strong { font-size: 17px; }
  .food-risk { flex-wrap: wrap; overflow: visible; }
  .fd-facts div { grid-template-columns: 54px minmax(0, 1fr); gap: 6px; }
  .eyes-tag { font-size: 10.5px; padding: 4px 9px; }
  .mbti-result-actions { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  /* 아주 좁은 폰 — 제목·버튼을 한 단계 더 줄입니다(스크린리더 이름은 aria-label 그대로) */
  .brand-text strong { font-size: 16px; }
  .brand-mark { display: none; }
  .bgm-btn, .mydog-pill, .fav-pill { font-size: 12px; }
  .fav-pill .fav-pill-label { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  .mbti-bar > span { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   🌙 밤 산책 다크 모드 (시스템 설정을 그대로 따름)
   칙칙한 진흙색 대신 — 달빛이 남은 잔디·포근한 골든 포인트.
   라이트 모드는 위쪽 :root 의 댕댕이 잔디 톤을 그대로 씁니다.
   ═══════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #101b14;
  --bg-glow-grass: rgba(88, 198, 137, .13);
  --bg-glow-sun: rgba(246, 184, 31, .09);
  --surface: #16241c;
  --surface-2: #1a2b21;
  --surface-3: #20342a;
  --ink: #eaf3e6;
  --ink-soft: #b5c7b7;
  --ink-mute: #8ba394;
  --line: #2b3f33;
  --line-soft: #233429;
  --mint: #2e9463;
  --mint-deep: #86e0ac;
  --mint-tint: rgba(60, 178, 116, .20);
  --sun: #eeb02a;
  --sun-deep: #f5d089;
  --sun-tint: rgba(238, 176, 42, .16);
  --sky: #4aa6d8;
  --sky-deep: #9bd6f2;
  --sky-tint: rgba(74, 166, 216, .18);
  --coral: #ef7f60;
  --coral-deep: #ffab92;
  --coral-tint: rgba(239, 127, 96, .18);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 14px -8px rgba(0, 0, 0, .6);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 44px -26px rgba(0, 0, 0, .8);
  --fade-start: rgba(22, 36, 28, 0);
  --fade-end: #16241c;
}
  /* 히어로 형광펜 — 달빛 골드 */
  html:not([data-theme="light"]) .hl { background: linear-gradient(transparent 58%, rgba(246, 184, 31, .42) 58%); }
  /* 상단 바 · 히어로 */
  html:not([data-theme="light"]) .topbar { background: rgba(16, 27, 20, .88); }
  html:not([data-theme="light"]) .hero-card {
  background:
  radial-gradient(115% 130% at 6% 0%, rgba(64, 176, 112, .22) 0%, rgba(22, 36, 28, 0) 56%),
  radial-gradient(105% 120% at 100% 6%, rgba(238, 176, 42, .13) 0%, rgba(22, 36, 28, 0) 62%),
  radial-gradient(120% 120% at 88% 100%, rgba(74, 166, 216, .11) 0%, rgba(22, 36, 28, 0) 64%),
  var(--surface);
}
  html:not([data-theme="light"]) .hero-art img { border-color: #1d3025; background: #1a2b21; }
  html:not([data-theme="light"]) .art-badge { background: rgba(22, 36, 28, .94); }
  html:not([data-theme="light"]) .finder { background: rgba(22, 36, 28, .95); }
  html:not([data-theme="light"]) .bgm-btn:hover, html:not([data-theme="light"]) .bgm-btn.is-on { border-color: var(--line); }
  html:not([data-theme="light"]) .mydog-pill { border-color: var(--line); background: rgba(60, 178, 116, .16); }
  html:not([data-theme="light"]) .mydog-pill:hover { background: rgba(60, 178, 116, .26); border-color: var(--line); }
  html:not([data-theme="light"]) .mydog-pill.is-active { background: var(--mint); border-color: var(--mint); color: #08150e; }
  html:not([data-theme="light"]) .hero-count { background: rgba(60, 178, 116, .18); }
  /* ☰ 화면 메뉴 · 칩 */
  html:not([data-theme="light"]) .sector-menu-panel { background: var(--surface); border-color: var(--line); box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .9), 0 2px 10px rgba(0, 0, 0, .45); }
  html:not([data-theme="light"]) .menu-btn { background: var(--surface-2); border-color: var(--line); }
  html:not([data-theme="light"]) .menu-btn:hover, html:not([data-theme="light"]) .menu-btn[aria-expanded="true"] { background: rgba(60, 178, 116, .2); border-color: #35503f; }
  html:not([data-theme="light"]) .qchip:hover, html:not([data-theme="light"]) .reset:hover { background: rgba(255, 255, 255, .05); }
  html:not([data-theme="light"]) .zchip, html:not([data-theme="light"]) .tag--ghost, html:not([data-theme="light"]) .pill--unknown { background: var(--surface-3); }
  html:not([data-theme="light"]) .zchip-count { background: var(--surface); }
  html:not([data-theme="light"]) .zchip[aria-pressed="true"] .zchip-count { background: #dcefe1; color: #12261a; }
  html:not([data-theme="light"]) .tag--dist { background: #dbeedf; color: #12261a; }
  html:not([data-theme="light"]) .qchip--toggle[aria-pressed="true"] { background: #cfe7d7; color: #10241a; }
  html:not([data-theme="light"]) .food-risk button[aria-pressed="true"] { background: var(--mint-tint); color: var(--mint-deep); }
  html:not([data-theme="light"]) .stat-total { background: linear-gradient(135deg, rgba(60, 178, 116, .22), rgba(60, 178, 116, .08)); border-color: #2f5a41; }
  /* 카드 · 패널의 흰 바탕을 밤 잔디 톤으로 */
  html:not([data-theme="light"]) .lost-card, html:not([data-theme="light"]) .la-card, html:not([data-theme="light"]) .fd-card, html:not([data-theme="light"]) .mbti-row, html:not([data-theme="light"]) .mbti-again, html:not([data-theme="light"]) .lchip, html:not([data-theme="light"]) .lost-page, html:not([data-theme="light"]) .place-page, html:not([data-theme="light"]) .lost-links a, html:not([data-theme="light"]) .la-tel, html:not([data-theme="light"]) .eyes-upload, html:not([data-theme="light"]) .lost-pick select, html:not([data-theme="light"]) .lost-reset-chip, html:not([data-theme="light"]) .food-search { background: var(--surface-2); }
  html:not([data-theme="light"]) .lost-links a.is-main, html:not([data-theme="light"]) .lost-page[aria-current="page"], html:not([data-theme="light"]) .place-page[aria-current="page"], html:not([data-theme="light"]) .lchip[aria-pressed="true"], html:not([data-theme="light"]) .near-btn[aria-pressed="true"], html:not([data-theme="light"]) .btn--call, html:not([data-theme="light"]) .la-link { background: var(--mint); color: #fff; }
  html:not([data-theme="light"]) .la-link { color: #fff; }
  html:not([data-theme="light"]) .micro li, html:not([data-theme="light"]) .zone-map-card, html:not([data-theme="light"]) .lost-step, html:not([data-theme="light"]) .lost-empty, html:not([data-theme="light"]) .eyes-note { background: var(--surface-3); }
  html:not([data-theme="light"]) .eyes-tips { background: var(--surface-3); border-color: #2c4536; }
  html:not([data-theme="light"]) .eyes-tips-k { color: #93e2b4; }
  html:not([data-theme="light"]) .micro li { border-color: #2a4034; }
  html:not([data-theme="light"]) .lost-empty { border-color: #33463a; }
  html:not([data-theme="light"]) .micro-v.is-warn { color: #f0c061; }
  html:not([data-theme="light"]) .detail-toggle { color: var(--ink-soft); border-color: #2a4034; }
  html:not([data-theme="light"]) .detail-toggle:hover { color: #9ef0bf; border-color: #356049; background: rgba(60, 178, 116, .12); }
  html:not([data-theme="light"]) .detail-toggle[aria-expanded="true"] { color: #9ef0bf; border-color: #356049; }
  html:not([data-theme="light"]) .card:hover { border-color: #2f4a3a; }
  html:not([data-theme="light"]) .near-btn, html:not([data-theme="light"]) .btn--map { border-color: #2c4a38; }
  html:not([data-theme="light"]) .sort-tabs { background: var(--surface-2); border-color: var(--line); }
  html:not([data-theme="light"]) .sort-tab { color: var(--ink-soft); }
  html:not([data-theme="light"]) .sort-tab:hover { background: var(--surface-3); }
  html:not([data-theme="light"]) .sort-tab[aria-pressed="true"] { background: #dbeedf; color: #12261a; box-shadow: none; }
  html:not([data-theme="light"]) .sort-tab[aria-pressed="true"]:hover { background: #dbeedf; }
  html:not([data-theme="light"]) .near-cta .near-btn, html:not([data-theme="light"]) .near-cta.is-on .near-btn { background: rgba(0, 0, 0, .42); color: #ffe9e2; border-color: rgba(255, 255, 255, .38); }
  html:not([data-theme="light"]) .tag--rank-hot { background: rgba(239, 127, 96, .24); color: #ffb79f; }
  html:not([data-theme="light"]) .tag--rank-pick { background: rgba(238, 176, 42, .22); color: #f5d089; }
  html:not([data-theme="light"]) .btn--site { background: rgba(74, 166, 216, .16); color: #9bd6f2; border-color: rgba(74, 166, 216, .34); }
  html:not([data-theme="light"]) .btn--site:hover { background: rgba(74, 166, 216, .26); }
  html:not([data-theme="light"]) .btn--call.is-missing { background: var(--surface-3); }
  html:not([data-theme="light"]) .shot { background: #1d2f24; }
  html:not([data-theme="light"]) .shot--mini { background: #1d2f24; }
  html:not([data-theme="light"]) .shot--mini img { filter: saturate(.8) brightness(.74) contrast(1.04); }
  html:not([data-theme="light"]) .mini-credit { background: rgba(22, 36, 28, .86); color: #cfe6d6; }
  html:not([data-theme="light"]) .shot--more { border-color: #3a5a47; background: linear-gradient(160deg, #1c2f23 0%, #182a1f 100%); }
  html:not([data-theme="light"]) .shot--more .more-label { color: #bfe6cf; }
  html:not([data-theme="light"]) .shot--more .more-sub { color: #93b4a1; }
  html:not([data-theme="light"]) .shot--more:hover, html:not([data-theme="light"]) .shot--more:focus-visible { border-color: #4f8a6b; background: #20372a; }
  /* 공원 포토스팟 · 할인 안내 */
  html:not([data-theme="light"]) .spots { background: #1a2f22; border-color: #2c4a37; }
  html:not([data-theme="light"]) .spots-k { color: #93e2b4; }
  html:not([data-theme="light"]) .spot { background: var(--surface); border-color: #2c4a37; color: #bfe6cf; }
  html:not([data-theme="light"]) .deal-line { background: #2a2417; border-color: #4a3f22; color: #e9d39a; }
  html:not([data-theme="light"]) .deal { background: #221f13; border-color: #3d361e; }
  html:not([data-theme="light"]) .deal-title { color: #e9d39a; }
  html:not([data-theme="light"]) .deal-title span, html:not([data-theme="light"]) .deal-src a { color: #d8c184; }
  html:not([data-theme="light"]) .deal--pending { background: var(--surface-3); }
  html:not([data-theme="light"]) .qchip--deal { background: #2a2417; border-color: #4a3f22; color: #e9d39a; }
  html:not([data-theme="light"]) .tag--deal { background: #2a2417; color: #e9d39a; border-color: #4a3f22; }
  html:not([data-theme="light"]) .tag--leaf, html:not([data-theme="light"]) .pill--park { background: rgba(88, 198, 137, .18); color: #93e2b4; }
  html:not([data-theme="light"]) .tag--mtn, html:not([data-theme="light"]) .pill--mtn { background: rgba(214, 178, 133, .18); color: #e3c39a; }
  html:not([data-theme="light"]) .tag--violet, html:not([data-theme="light"]) .pill--train, html:not([data-theme="light"]) .pill--stay { background: rgba(124, 111, 224, .20); color: #c3b8ff; }
  html:not([data-theme="light"]) .pill--shop { background: rgba(224, 112, 154, .20); color: #ffa8c8; }
  html:not([data-theme="light"]) .qchip--trail[aria-pressed="true"] { background: var(--mint); }
  html:not([data-theme="light"]) .stat.is-leaf strong { color: #93e2b4; }
  html:not([data-theme="light"]) .stat.is-violet strong { color: #c3b8ff; }
  html:not([data-theme="light"]) .stat.is-deal strong { color: #f0c061; }
  /* 집 찾아줄개 */
  html:not([data-theme="light"]) .lost-warn { background: #2a2417; border-color: #4a3f22; color: #e9d39a; }
  html:not([data-theme="light"]) .lost-callout-t { color: #f2dca6; }
  html:not([data-theme="light"]) .la-photo { background: linear-gradient(135deg, #1b2f24 0%, #17281e 100%); }
  html:not([data-theme="light"]) .la-photo img { background: #1b2f24; }
  html:not([data-theme="light"]) .la-photo .la-ph { color: #8fc9a6; }
  html:not([data-theme="light"]) .la-badge.is-rescue { background: rgba(88, 198, 137, .18); color: #93e2b4; }
  html:not([data-theme="light"]) .la-badge.is-loss { background: rgba(239, 127, 96, .18); color: #ffab92; }
  html:not([data-theme="light"]) .la-tag--size { background: rgba(74, 166, 216, .16); color: #9bd6f2; }
  html:not([data-theme="light"]) .la-tag--neuter.is-done { background: rgba(88, 198, 137, .16); color: #93e2b4; }
  html:not([data-theme="light"]) .la-tag--neuter.is-none { background: rgba(238, 176, 42, .14); color: #e9d39a; }
  html:not([data-theme="light"]) .lost-combo { color: #86e0ac; }
  html:not([data-theme="light"]) .lost-combo b { color: #eaf3e6; }
  html:not([data-theme="light"]) .lost-reset-chip:hover { border-color: var(--mint); color: var(--mint-deep); }
  html:not([data-theme="light"]) .la-tel-note { color: #a6b8ad; }
  /* 👀 댕댕이 시선 */
  html:not([data-theme="light"]) .eyes-stage { background: #1c2f24; border-color: #2a4034; }
  html:not([data-theme="light"]) .sp-one { background: #1d3a2c; border-color: #2c5341; color: #eaf3e6; }
  html:not([data-theme="light"]) .eyes-sample { background: #1d2f24; border-color: #3a533f; box-shadow: none; }
  html:not([data-theme="light"]) .eyes-upload { border-color: #ffe08a; box-shadow: 0 14px 26px -18px rgba(0, 0, 0, .9); }
  html:not([data-theme="light"]) .eyes-save { border-color: #3a4b3f; color: #a6b8ad; }
  /* 다른 장면 고르기 강조 박스 — 어두운 화면에서도 밝은 금빛 실선으로 경계가 살아 있게 */
  html:not([data-theme="light"]) .eyes-samples-wrap {
  background: linear-gradient(180deg, #23301f, #1c281b);
  border-color: #f0c061;
  box-shadow: 0 18px 32px -24px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
}
  html:not([data-theme="light"]) .eyes-samples-title { color: #ffedb8; }
  html:not([data-theme="light"]) .eyes-index { background: #f0c061; border-color: #ffe6a8; color: #3a2c00; }
  html:not([data-theme="light"]) .eyes-samples-note { color: #d8c795; }
  html:not([data-theme="light"]) .eyes-nav-btn { background: #25382a; border-color: #f0c061; color: #ffe6a8; box-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
  html:not([data-theme="light"]) .eyes-nav-btn:hover { background: #2f4534; border-color: #ffd782; color: #fff6dc; }
  html:not([data-theme="light"]) .eyes-sample[aria-pressed="true"] { border-color: #fff6dc; box-shadow: 0 0 0 3px #f0c061, 0 6px 12px -6px rgba(0, 0, 0, .8); }
  html:not([data-theme="light"]) .eyes-sample[aria-pressed="true"]::after { background: #f0c061; color: #3a2c00; }
  /* 🧠 댕댕이 성향 — 밤에도 보랏빛이 살아 있게 */
  html:not([data-theme="light"]) #sec-mbti .sec-kicker { color: #c3b8ff; background: rgba(124, 111, 224, .20); }
  html:not([data-theme="light"]) #sec-mbti .sec-title strong { color: #c3b8ff; }
  html:not([data-theme="light"]) .mbti-progress-head b { color: #c3b8ff; }
  html:not([data-theme="light"]) .mbti-bar { background: #22362a; }
  html:not([data-theme="light"]) .mbti-choice { background: var(--surface-2); border-color: #34405c; }
  html:not([data-theme="light"]) .mbti-choice:hover { background: #232e46; border-color: #4c5a86; }
  html:not([data-theme="light"]) .mbti-choice-k { background: var(--surface-3); border-color: #3a4462; color: #c3b8ff; }
  html:not([data-theme="light"]) .mbti-result { background: linear-gradient(160deg, #17301f, #2a2916); border-color: #2b4a35; }
  html:not([data-theme="light"]) .mbti-result--cat { background: linear-gradient(160deg, #16273a, #241f38); border-color: #2f3f5c; }
  html:not([data-theme="light"]) .mbti-result--cat .mbti-result-kicker { color: #9bd6f2; }
  html:not([data-theme="light"]) .mbti-row b { color: #c3b8ff; }
  html:not([data-theme="light"]) .mbti-preview-chip { background: rgba(124, 111, 224, .20); color: #c3b8ff; }
  html:not([data-theme="light"]) .mbti-share { background: #6b5bd2; }
  html:not([data-theme="light"]) .mbti-again { border-color: var(--line); }
  /* 🚨 조심할 음식! */
  html:not([data-theme="light"]) .food-search { border-color: rgba(239, 127, 96, .34); }
  html:not([data-theme="light"]) .food-clear, html:not([data-theme="light"]) .food-risk button { background: var(--surface-3); }
  html:not([data-theme="light"]) .food-quick button:hover { background: rgba(239, 127, 96, .28); }
  html:not([data-theme="light"]) .fd-card { border-left-color: #3a4a3f; }
  html:not([data-theme="light"]) .fd-card--danger { background: #2a1a18; }
  html:not([data-theme="light"]) .fd-card--caution { background: #2a2517; }
  html:not([data-theme="light"]) .fd-card--safe { background: #16281d; }
  html:not([data-theme="light"]) .fd-badge { background: var(--surface); color: var(--ink-soft); }
  html:not([data-theme="light"]) .fd-card--danger .fd-badge { color: #ff9a85; }
  html:not([data-theme="light"]) .fd-card--caution .fd-badge { color: #f0c061; }
  html:not([data-theme="light"]) .fd-card--safe .fd-badge { color: #7fdca4; }
  html:not([data-theme="light"]) .food-emergency { color: #ffbda9; background: #2b1a15; border-color: #5c3327; }
  html:not([data-theme="light"]) .food-emergency strong { color: #ffd2c4; }
  /* 🏥 병원 가기 전 이상신호 체크 */
  html:not([data-theme="light"]) .signs-card { background: var(--surface); }
  html:not([data-theme="light"]) .signs-disclaimer { color: #e9d39a; background: #2a2417; border-color: #4a3f22; }
  html:not([data-theme="light"]) .signs-disclaimer strong { color: #f5e3b3; }
  html:not([data-theme="light"]) .signs-chip { background: var(--surface-2); border-color: var(--line); }
  html:not([data-theme="light"]) .signs-chip.is-active { background: rgba(60, 178, 116, .22); border-color: #2f5a41; }
  html:not([data-theme="light"]) .signs-name { color: var(--ink); }
  html:not([data-theme="light"]) .signs-item-head { border-bottom-color: var(--line-soft); }
  html:not([data-theme="light"]) .signs-block--red { background: #2b1a15; border-color: #5c3327; }
  html:not([data-theme="light"]) .signs-block--red h4 { color: #ffab92; }
  html:not([data-theme="light"]) .signs-list--red li { color: #ffbda9; }
  html:not([data-theme="light"]) .signs-block--record { background: var(--surface-2); border-color: var(--line); }
  html:not([data-theme="light"]) .signs-block--never { background: #1b2a21; border-color: #2c3f33; }
  html:not([data-theme="light"]) .signs-block--never h4 { color: #c7d5c9; }
  html:not([data-theme="light"]) .signs-list--never li { color: #b5c7b7; }
  html:not([data-theme="light"]) .signs-check { color: #b5c7b7; }
  html:not([data-theme="light"]) .signs-check input:checked + .signs-check-text { color: #eaf3e6; }
  html:not([data-theme="light"]) .signs-copy { background: var(--surface); border-color: #2f5a41; }
  html:not([data-theme="light"]) .signs-copy:hover { background: rgba(60, 178, 116, .18); }
  html:not([data-theme="light"]) .signs-bring-box { background: rgba(74, 166, 216, .12); border-color: #2b4254; }
  html:not([data-theme="light"]) .signs-bring li { color: #9bd6f2; }
  /* 푸터 */
  html:not([data-theme="light"]) .footer { background: #0e1a13; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101b14;
  --bg-glow-grass: rgba(88, 198, 137, .13);
  --bg-glow-sun: rgba(246, 184, 31, .09);
  --surface: #16241c;
  --surface-2: #1a2b21;
  --surface-3: #20342a;
  --ink: #eaf3e6;
  --ink-soft: #b5c7b7;
  --ink-mute: #8ba394;
  --line: #2b3f33;
  --line-soft: #233429;
  --mint: #2e9463;
  --mint-deep: #86e0ac;
  --mint-tint: rgba(60, 178, 116, .20);
  --sun: #eeb02a;
  --sun-deep: #f5d089;
  --sun-tint: rgba(238, 176, 42, .16);
  --sky: #4aa6d8;
  --sky-deep: #9bd6f2;
  --sky-tint: rgba(74, 166, 216, .18);
  --coral: #ef7f60;
  --coral-deep: #ffab92;
  --coral-tint: rgba(239, 127, 96, .18);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 14px -8px rgba(0, 0, 0, .6);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 44px -26px rgba(0, 0, 0, .8);
  --fade-start: rgba(22, 36, 28, 0);
  --fade-end: #16241c;
}
  /* 히어로 형광펜 — 달빛 골드 */
  html[data-theme="dark"] .hl { background: linear-gradient(transparent 58%, rgba(246, 184, 31, .42) 58%); }
  /* 상단 바 · 히어로 */
  html[data-theme="dark"] .topbar { background: rgba(16, 27, 20, .88); }
  html[data-theme="dark"] .hero-card {
  background:
  radial-gradient(115% 130% at 6% 0%, rgba(64, 176, 112, .22) 0%, rgba(22, 36, 28, 0) 56%),
  radial-gradient(105% 120% at 100% 6%, rgba(238, 176, 42, .13) 0%, rgba(22, 36, 28, 0) 62%),
  radial-gradient(120% 120% at 88% 100%, rgba(74, 166, 216, .11) 0%, rgba(22, 36, 28, 0) 64%),
  var(--surface);
}
  html[data-theme="dark"] .hero-art img { border-color: #1d3025; background: #1a2b21; }
  html[data-theme="dark"] .art-badge { background: rgba(22, 36, 28, .94); }
  html[data-theme="dark"] .finder { background: rgba(22, 36, 28, .95); }
  html[data-theme="dark"] .bgm-btn:hover, html[data-theme="dark"] .bgm-btn.is-on { border-color: var(--line); }
  html[data-theme="dark"] .mydog-pill { border-color: var(--line); background: rgba(60, 178, 116, .16); }
  html[data-theme="dark"] .mydog-pill:hover { background: rgba(60, 178, 116, .26); border-color: var(--line); }
  html[data-theme="dark"] .mydog-pill.is-active { background: var(--mint); border-color: var(--mint); color: #08150e; }
  html[data-theme="dark"] .hero-count { background: rgba(60, 178, 116, .18); }
  /* ☰ 화면 메뉴 · 칩 */
  html[data-theme="dark"] .sector-menu-panel { background: var(--surface); border-color: var(--line); box-shadow: 0 24px 44px -24px rgba(0, 0, 0, .9), 0 2px 10px rgba(0, 0, 0, .45); }
  html[data-theme="dark"] .menu-btn { background: var(--surface-2); border-color: var(--line); }
  html[data-theme="dark"] .menu-btn:hover, html[data-theme="dark"] .menu-btn[aria-expanded="true"] { background: rgba(60, 178, 116, .2); border-color: #35503f; }
  html[data-theme="dark"] .qchip:hover, html[data-theme="dark"] .reset:hover { background: rgba(255, 255, 255, .05); }
  html[data-theme="dark"] .zchip, html[data-theme="dark"] .tag--ghost, html[data-theme="dark"] .pill--unknown { background: var(--surface-3); }
  html[data-theme="dark"] .zchip-count { background: var(--surface); }
  html[data-theme="dark"] .zchip[aria-pressed="true"] .zchip-count { background: #dcefe1; color: #12261a; }
  html[data-theme="dark"] .tag--dist { background: #dbeedf; color: #12261a; }
  html[data-theme="dark"] .qchip--toggle[aria-pressed="true"] { background: #cfe7d7; color: #10241a; }
  html[data-theme="dark"] .food-risk button[aria-pressed="true"] { background: var(--mint-tint); color: var(--mint-deep); }
  html[data-theme="dark"] .stat-total { background: linear-gradient(135deg, rgba(60, 178, 116, .22), rgba(60, 178, 116, .08)); border-color: #2f5a41; }
  /* 카드 · 패널의 흰 바탕을 밤 잔디 톤으로 */
  html[data-theme="dark"] .lost-card, html[data-theme="dark"] .la-card, html[data-theme="dark"] .fd-card, html[data-theme="dark"] .mbti-row, html[data-theme="dark"] .mbti-again, html[data-theme="dark"] .lchip, html[data-theme="dark"] .lost-page, html[data-theme="dark"] .place-page, html[data-theme="dark"] .lost-links a, html[data-theme="dark"] .la-tel, html[data-theme="dark"] .eyes-upload, html[data-theme="dark"] .lost-pick select, html[data-theme="dark"] .lost-reset-chip, html[data-theme="dark"] .food-search { background: var(--surface-2); }
  html[data-theme="dark"] .lost-links a.is-main, html[data-theme="dark"] .lost-page[aria-current="page"], html[data-theme="dark"] .place-page[aria-current="page"], html[data-theme="dark"] .lchip[aria-pressed="true"], html[data-theme="dark"] .near-btn[aria-pressed="true"], html[data-theme="dark"] .btn--call, html[data-theme="dark"] .la-link { background: var(--mint); color: #fff; }
  html[data-theme="dark"] .la-link { color: #fff; }
  html[data-theme="dark"] .micro li, html[data-theme="dark"] .zone-map-card, html[data-theme="dark"] .lost-step, html[data-theme="dark"] .lost-empty, html[data-theme="dark"] .eyes-note { background: var(--surface-3); }
  html[data-theme="dark"] .eyes-tips { background: var(--surface-3); border-color: #2c4536; }
  html[data-theme="dark"] .eyes-tips-k { color: #93e2b4; }
  html[data-theme="dark"] .eyes-caption::before { color: #93e2b4; }
  html[data-theme="dark"] .micro li { border-color: #2a4034; }
  html[data-theme="dark"] .lost-empty { border-color: #33463a; }
  html[data-theme="dark"] .micro-v.is-warn { color: #f0c061; }
  html[data-theme="dark"] .detail-toggle { color: var(--ink-soft); border-color: #2a4034; }
  html[data-theme="dark"] .detail-toggle:hover { color: #9ef0bf; border-color: #356049; background: rgba(60, 178, 116, .12); }
  html[data-theme="dark"] .detail-toggle[aria-expanded="true"] { color: #9ef0bf; border-color: #356049; }
  html[data-theme="dark"] .card:hover { border-color: #2f4a3a; }
  html[data-theme="dark"] .near-btn, html[data-theme="dark"] .btn--map { border-color: #2c4a38; }
  html[data-theme="dark"] .sort-tabs { background: var(--surface-2); border-color: var(--line); }
  html[data-theme="dark"] .sort-tab { color: var(--ink-soft); }
  html[data-theme="dark"] .sort-tab:hover { background: var(--surface-3); }
  html[data-theme="dark"] .sort-tab[aria-pressed="true"] { background: #dbeedf; color: #12261a; box-shadow: none; }
  html[data-theme="dark"] .sort-tab[aria-pressed="true"]:hover { background: #dbeedf; }
  html[data-theme="dark"] .near-cta .near-btn, html[data-theme="dark"] .near-cta.is-on .near-btn { background: rgba(0, 0, 0, .42); color: #ffe9e2; border-color: rgba(255, 255, 255, .38); }
  html[data-theme="dark"] .tag--rank-hot { background: rgba(239, 127, 96, .24); color: #ffb79f; }
  html[data-theme="dark"] .tag--rank-pick { background: rgba(238, 176, 42, .22); color: #f5d089; }
  html[data-theme="dark"] .btn--site { background: rgba(74, 166, 216, .16); color: #9bd6f2; border-color: rgba(74, 166, 216, .34); }
  html[data-theme="dark"] .btn--site:hover { background: rgba(74, 166, 216, .26); }
  html[data-theme="dark"] .btn--call.is-missing { background: var(--surface-3); }
  html[data-theme="dark"] .shot { background: #1d2f24; }
  html[data-theme="dark"] .shot--mini { background: #1d2f24; }
  html[data-theme="dark"] .shot--mini img { filter: saturate(.8) brightness(.74) contrast(1.04); }
  html[data-theme="dark"] .mini-credit { background: rgba(22, 36, 28, .86); color: #cfe6d6; }
  html[data-theme="dark"] .shot--more { border-color: #3a5a47; background: linear-gradient(160deg, #1c2f23 0%, #182a1f 100%); }
  html[data-theme="dark"] .shot--more .more-label { color: #bfe6cf; }
  html[data-theme="dark"] .shot--more .more-sub { color: #93b4a1; }
  html[data-theme="dark"] .shot--more:hover, html[data-theme="dark"] .shot--more:focus-visible { border-color: #4f8a6b; background: #20372a; }
  /* 공원 포토스팟 · 할인 안내 */
  html[data-theme="dark"] .spots { background: #1a2f22; border-color: #2c4a37; }
  html[data-theme="dark"] .spots-k { color: #93e2b4; }
  html[data-theme="dark"] .spot { background: var(--surface); border-color: #2c4a37; color: #bfe6cf; }
  html[data-theme="dark"] .deal-line { background: #2a2417; border-color: #4a3f22; color: #e9d39a; }
  html[data-theme="dark"] .deal { background: #221f13; border-color: #3d361e; }
  html[data-theme="dark"] .deal-title { color: #e9d39a; }
  html[data-theme="dark"] .deal-title span, html[data-theme="dark"] .deal-src a { color: #d8c184; }
  html[data-theme="dark"] .deal--pending { background: var(--surface-3); }
  html[data-theme="dark"] .qchip--deal { background: #2a2417; border-color: #4a3f22; color: #e9d39a; }
  html[data-theme="dark"] .tag--deal { background: #2a2417; color: #e9d39a; border-color: #4a3f22; }
  html[data-theme="dark"] .tag--leaf, html[data-theme="dark"] .pill--park { background: rgba(88, 198, 137, .18); color: #93e2b4; }
  html[data-theme="dark"] .tag--mtn, html[data-theme="dark"] .pill--mtn { background: rgba(214, 178, 133, .18); color: #e3c39a; }
  html[data-theme="dark"] .tag--violet, html[data-theme="dark"] .pill--train, html[data-theme="dark"] .pill--stay { background: rgba(124, 111, 224, .20); color: #c3b8ff; }
  html[data-theme="dark"] .pill--shop { background: rgba(224, 112, 154, .20); color: #ffa8c8; }
  html[data-theme="dark"] .qchip--trail[aria-pressed="true"] { background: var(--mint); }
  html[data-theme="dark"] .stat.is-leaf strong { color: #93e2b4; }
  html[data-theme="dark"] .stat.is-violet strong { color: #c3b8ff; }
  html[data-theme="dark"] .stat.is-deal strong { color: #f0c061; }
  /* 집 찾아줄개 */
  html[data-theme="dark"] .lost-warn { background: #2a2417; border-color: #4a3f22; color: #e9d39a; }
  html[data-theme="dark"] .lost-callout-t { color: #f2dca6; }
  html[data-theme="dark"] .la-photo { background: linear-gradient(135deg, #1b2f24 0%, #17281e 100%); }
  html[data-theme="dark"] .la-photo img { background: #1b2f24; }
  html[data-theme="dark"] .la-photo .la-ph { color: #8fc9a6; }
  html[data-theme="dark"] .la-badge.is-rescue { background: rgba(88, 198, 137, .18); color: #93e2b4; }
  html[data-theme="dark"] .la-badge.is-loss { background: rgba(239, 127, 96, .18); color: #ffab92; }
  html[data-theme="dark"] .la-tag--size { background: rgba(74, 166, 216, .16); color: #9bd6f2; }
  html[data-theme="dark"] .la-tag--neuter.is-done { background: rgba(88, 198, 137, .16); color: #93e2b4; }
  html[data-theme="dark"] .la-tag--neuter.is-none { background: rgba(238, 176, 42, .14); color: #e9d39a; }
  html[data-theme="dark"] .lost-combo { color: #86e0ac; }
  html[data-theme="dark"] .lost-combo b { color: #eaf3e6; }
  html[data-theme="dark"] .lost-reset-chip:hover { border-color: var(--mint); color: var(--mint-deep); }
  html[data-theme="dark"] .la-tel-note { color: #a6b8ad; }
  /* 👀 댕댕이 시선 */
  html[data-theme="dark"] .eyes-stage { background: #1c2f24; border-color: #2a4034; }
  html[data-theme="dark"] .sp-one { background: #1d3a2c; border-color: #2c5341; color: #eaf3e6; }
  html[data-theme="dark"] .eyes-sample { background: #1d2f24; border-color: #3a533f; box-shadow: none; }
  html[data-theme="dark"] .eyes-upload { border-color: #ffe08a; box-shadow: 0 14px 26px -18px rgba(0, 0, 0, .9); }
  html[data-theme="dark"] .eyes-save { border-color: #3a4b3f; color: #a6b8ad; }
  /* 다른 장면 고르기 강조 박스 — 어두운 화면에서도 밝은 금빛 실선으로 경계가 살아 있게 */
  html[data-theme="dark"] .eyes-samples-wrap {
  background: linear-gradient(180deg, #23301f, #1c281b);
  border-color: #f0c061;
  box-shadow: 0 18px 32px -24px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06);
}
  html[data-theme="dark"] .eyes-samples-title { color: #ffedb8; }
  html[data-theme="dark"] .eyes-index { background: #f0c061; border-color: #ffe6a8; color: #3a2c00; }
  html[data-theme="dark"] .eyes-samples-note { color: #d8c795; }
  html[data-theme="dark"] .eyes-nav-btn { background: #25382a; border-color: #f0c061; color: #ffe6a8; box-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
  html[data-theme="dark"] .eyes-nav-btn:hover { background: #2f4534; border-color: #ffd782; color: #fff6dc; }
  html[data-theme="dark"] .eyes-sample[aria-pressed="true"] { border-color: #fff6dc; box-shadow: 0 0 0 3px #f0c061, 0 6px 12px -6px rgba(0, 0, 0, .8); }
  html[data-theme="dark"] .eyes-sample[aria-pressed="true"]::after { background: #f0c061; color: #3a2c00; }
  /* 🧠 댕댕이 성향 — 밤에도 보랏빛이 살아 있게 */
  html[data-theme="dark"] #sec-mbti .sec-kicker { color: #c3b8ff; background: rgba(124, 111, 224, .20); }
  html[data-theme="dark"] #sec-mbti .sec-title strong { color: #c3b8ff; }
  html[data-theme="dark"] .mbti-progress-head b { color: #c3b8ff; }
  html[data-theme="dark"] .mbti-bar { background: #22362a; }
  html[data-theme="dark"] .mbti-choice { background: var(--surface-2); border-color: #34405c; }
  html[data-theme="dark"] .mbti-choice:hover { background: #232e46; border-color: #4c5a86; }
  html[data-theme="dark"] .mbti-choice-k { background: var(--surface-3); border-color: #3a4462; color: #c3b8ff; }
  html[data-theme="dark"] .mbti-result { background: linear-gradient(160deg, #17301f, #2a2916); border-color: #2b4a35; }
  html[data-theme="dark"] .mbti-result--cat { background: linear-gradient(160deg, #16273a, #241f38); border-color: #2f3f5c; }
  html[data-theme="dark"] .mbti-result--cat .mbti-result-kicker { color: #9bd6f2; }
  html[data-theme="dark"] .mbti-row b { color: #c3b8ff; }
  html[data-theme="dark"] .mbti-preview-chip { background: rgba(124, 111, 224, .20); color: #c3b8ff; }
  html[data-theme="dark"] .mbti-share { background: #6b5bd2; }
  html[data-theme="dark"] .mbti-again { border-color: var(--line); }
  /* 🚨 조심할 음식! */
  html[data-theme="dark"] .food-search { border-color: rgba(239, 127, 96, .34); }
  html[data-theme="dark"] .food-clear, html[data-theme="dark"] .food-risk button { background: var(--surface-3); }
  html[data-theme="dark"] .food-quick button:hover { background: rgba(239, 127, 96, .28); }
  html[data-theme="dark"] .fd-card { border-left-color: #3a4a3f; }
  html[data-theme="dark"] .fd-card--danger { background: #2a1a18; }
  html[data-theme="dark"] .fd-card--caution { background: #2a2517; }
  html[data-theme="dark"] .fd-card--safe { background: #16281d; }
  html[data-theme="dark"] .fd-badge { background: var(--surface); color: var(--ink-soft); }
  html[data-theme="dark"] .fd-card--danger .fd-badge { color: #ff9a85; }
  html[data-theme="dark"] .fd-card--caution .fd-badge { color: #f0c061; }
  html[data-theme="dark"] .fd-card--safe .fd-badge { color: #7fdca4; }
  html[data-theme="dark"] .food-emergency { color: #ffbda9; background: #2b1a15; border-color: #5c3327; }
  html[data-theme="dark"] .food-emergency strong { color: #ffd2c4; }
  /* 🏥 병원 가기 전 이상신호 체크 */
  html[data-theme="dark"] .signs-card { background: var(--surface); }
  html[data-theme="dark"] .signs-disclaimer { color: #e9d39a; background: #2a2417; border-color: #4a3f22; }
  html[data-theme="dark"] .signs-disclaimer strong { color: #f5e3b3; }
  html[data-theme="dark"] .signs-chip { background: var(--surface-2); border-color: var(--line); }
  html[data-theme="dark"] .signs-chip.is-active { background: rgba(60, 178, 116, .22); border-color: #2f5a41; }
  html[data-theme="dark"] .signs-name { color: var(--ink); }
  html[data-theme="dark"] .signs-item-head { border-bottom-color: var(--line-soft); }
  html[data-theme="dark"] .signs-block--red { background: #2b1a15; border-color: #5c3327; }
  html[data-theme="dark"] .signs-block--red h4 { color: #ffab92; }
  html[data-theme="dark"] .signs-list--red li { color: #ffbda9; }
  html[data-theme="dark"] .signs-block--record { background: var(--surface-2); border-color: var(--line); }
  html[data-theme="dark"] .signs-block--never { background: #1b2a21; border-color: #2c3f33; }
  html[data-theme="dark"] .signs-block--never h4 { color: #c7d5c9; }
  html[data-theme="dark"] .signs-list--never li { color: #b5c7b7; }
  html[data-theme="dark"] .signs-check { color: #b5c7b7; }
  html[data-theme="dark"] .signs-check input:checked + .signs-check-text { color: #eaf3e6; }
  html[data-theme="dark"] .signs-copy { background: var(--surface); border-color: #2f5a41; }
  html[data-theme="dark"] .signs-copy:hover { background: rgba(60, 178, 116, .18); }
  html[data-theme="dark"] .signs-bring-box { background: rgba(74, 166, 216, .12); border-color: #2b4254; }
  html[data-theme="dark"] .signs-bring li { color: #9bd6f2; }
  /* 푸터 */
  html[data-theme="dark"] .footer { background: #0e1a13; }
/* dd-theme-forced-end */


/* ═══════════════════════════════════════════════════════════
   2026-11-20 · 🐕 우리 강아지 · 🐾 발도장
   (프로필 등록 · 방문 스탬프 · 추억 사진 1~3장 · 100% 이 기기 안 저장)
   ═══════════════════════════════════════════════════════════ */

/* ── 섹터 메뉴(☰) — 좁은 폰에서도 이름이 한 줄에 들어가게 ── */
@media (max-width: 440px) {
  .tab { font-size: 13.5px; padding: 8px 9px; gap: 8px; }
  .tab .tab-label { font-size: 13.5px; }
}

/* ── 카드의 발도장 버튼 (전화·발도장·지도·공식 안내 = 2×2) ── */
.card-actions.is-four { grid-template-columns: 1fr 1fr; }
.btn--stamp { background: #fff6e2; color: #8a5a00; border: 1.5px solid #f2e2c0; }
.btn--stamp:hover { background: var(--sun-tint); }
.btn--stamp.is-done { background: var(--mint-tint); color: var(--mint-deep); border-color: #c6ebd6; }
@media (max-width: 620px) {
  .card-actions.is-four .btn { font-size: 12.5px; padding-inline: 6px; }
}

/* ── 우리 강아지 탭 공통 ── */
.mydog { display: grid; gap: 12px; max-width: 760px; }
.mydog-main, .mydog-side { display: grid; gap: 12px; min-width: 0; align-content: start; }
.mydog-loading { font-size: 13px; color: var(--ink-mute); padding: 18px 4px; }
.dog-switch { display: flex; gap: 7px; flex-wrap: wrap; }
.dog-chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 800; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 4px;
}
.dog-chip.is-on { background: var(--mint-tint); border-color: #c6ebd6; color: var(--mint-deep); }
/* 다견 전환 — 이름 앞 번호(1·2·3) 배지. 여러 마리일 때 지금 몇 번째 댕댕이인지 한눈에 */
.dog-chip-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 3px; margin-right: 1px;
  border-radius: 999px; background: var(--mint-tint); color: var(--mint-deep);
  font-size: 10.5px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.dog-chip.is-on .dog-chip-num { background: var(--mint); color: #fff; }
.dog-chip--add { border-style: dashed; color: var(--ink-mute); font-weight: 700; }
.dog-flash {
  display: flex; align-items: center; gap: 7px;
  background: var(--mint-tint); color: var(--mint-deep);
  font-size: 13px; font-weight: 800; padding: 10px 14px; border-radius: 14px;
}

/* ── 등록·수정 폼 ── */
.dog-form {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 16px; box-shadow: var(--shadow-s); display: grid; gap: 11px;
}
.dog-form-head { display: flex; align-items: center; gap: 12px; }
/* 대표 사진 칸 — 원형 아바타(점선 테두리) + 「📷 사진 등록」 알약 버튼.
   아이콘만 작게 걸쳐 두면 사진 올리는 곳인지 알아보기 어려워서,
   글자가 있는 버튼을 아바타 바로 아래에 두고 테두리·카메라가 잘리지 않게 여유를 둡니다. */
.dog-photo { flex: 0 0 auto; display: grid; justify-items: center; gap: 7px; }
.dog-ava-wrap { position: relative; display: grid; place-items: center; }
.dog-ava-pick {
  width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; overflow: visible;
  background: var(--surface-3); border: 1.5px dashed #cfe6d6;
}
.dog-ava-ring { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.dog-ava-pick img { width: 100%; height: 100%; object-fit: cover; }
.dog-ava-emoji { font-size: 28px; line-height: 1; }
.dog-ava-wrap.has-photo .dog-ava-pick { border-style: solid; border-color: var(--mint); }
.dog-photo-x {
  position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 11px; font-weight: 900; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.dog-photo-x:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.dog-photo-cta {
  display: inline-flex; align-items: center; gap: 3px;
  font: inherit; font-size: 12px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
  color: var(--mint-deep); background: var(--mint-tint);
  border: 1.5px solid #a9dfbe; border-radius: 999px;
  padding: 7px 11px; min-height: 32px; white-space: nowrap; cursor: pointer;
}
.dog-photo-cta:hover { background: #d3f3de; border-color: var(--mint); }
.dog-photo-cta:active { transform: translateY(1px); }
.dog-photo-cta:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.dog-form-title { font-size: 16px; font-weight: 900; letter-spacing: -.03em; }
.dog-form-sub { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; line-height: 1.45; }
.dog-field { display: grid; gap: 5px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.dog-field > span { display: flex; align-items: center; gap: 4px; }
.dog-field em { font-style: normal; font-weight: 700; color: var(--ink-mute); font-size: 11px; }
.dog-field b { color: var(--mint-deep); }
.dog-field input {
  font: inherit; font-size: 15px; width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 13px;
  background: var(--surface-2); color: var(--ink);
}
.dog-field input::placeholder { color: var(--ink-mute); font-size: 13.5px; }
.dog-field input:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.dog-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.dog-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; background: var(--surface-3); padding: 4px; border-radius: 14px; }
.dog-seg button { padding: 9px 6px; border-radius: 11px; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.dog-seg button[aria-pressed="true"] { background: var(--surface); color: var(--mint-deep); box-shadow: var(--shadow-s); }
.dog-seg--size { justify-self: start; grid-template-columns: auto auto; padding: 3px; }
.dog-seg--size button { padding: 7px 18px; font-size: 12.5px; }
.dog-size-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dog-size-k { font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.dog-size-tag {
  font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--ink-mute);
}
.dog-size-tag[data-size="중소형견"] { background: var(--mint-tint); color: var(--mint-deep); }
.dog-size-tag[data-size="대형견"] { background: var(--sun-tint); color: var(--sun-deep); }
.dog-size-note { font-size: 11px; color: var(--ink-mute); }
.dog-form-msg { font-size: 12.5px; font-weight: 800; color: var(--coral-deep); background: var(--coral-tint); padding: 8px 12px; border-radius: 11px; }
.dog-form-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 2px; }
.dog-save { background: var(--mint); color: #fff; border-radius: 14px; padding: 12px; font-size: 14.5px; font-weight: 900; }
.dog-save:hover { filter: brightness(1.05); }
.dog-cancel { background: var(--surface-3); color: var(--ink-soft); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; font-weight: 800; }
.dog-form-note { font-size: 11px; color: var(--ink-mute); }
.dog-remove { justify-self: start; margin-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ── 프로필 카드 ── */
.dog-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 16px; box-shadow: var(--shadow-s); display: grid; gap: 14px;
}
.dog-card-main { display: flex; align-items: center; gap: 13px; }
.dog-ava {
  width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-3); font-size: 26px;
}
.dog-ava--big { width: 70px; height: 70px; font-size: 33px; }
.dog-ava img { width: 100%; height: 100%; object-fit: cover; }
.dog-id { min-width: 0; }
.dog-name { font-size: 20px; font-weight: 900; letter-spacing: -.035em; line-height: 1.2; }
.dog-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.dog-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.dog-tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-soft); }
.dog-tag--size { background: var(--mint-tint); color: var(--mint-deep); }
.dog-metrics {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px 2px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.dog-metric { display: flex; flex-direction: column; }
.dog-metric strong { font-size: 23px; font-weight: 900; line-height: 1.05; color: var(--mint-deep); }
.dog-metric span { font-size: 11px; font-weight: 700; color: var(--ink-mute); margin-top: 2px; }
.dog-metric--bar { gap: 5px; }
.dog-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.dog-bar i { display: block; height: 100%; min-width: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--sun)); }
.dog-metric--bar em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ink-mute); }
.dog-btns { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.dog-primary { background: var(--mint); color: #fff; border-radius: 14px; padding: 12px; font-size: 14px; font-weight: 900; }
.dog-primary:hover { filter: brightness(1.05); }
.dog-ghost { background: var(--surface-3); color: var(--ink-soft); border-radius: 14px; padding: 12px 14px; font-size: 13px; font-weight: 800; }

/* ── 발도장 앨범 ── */
.stamp-book { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow-s); }
.stamp-book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.stamp-book-head h3 { font-size: 14.5px; font-weight: 900; }
.stamp-book-head p { font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
.stamp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.stamp-card {
  display: block; width: 100%; text-align: left; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 15px;
}
.stamp-card:hover { border-color: #cfe6d6; }
.stamp-thumb { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-3); }
.stamp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stamp-multi {
  position: absolute; right: 6px; bottom: 6px; font-style: normal;
  font-size: 10px; font-weight: 900; color: #fff; background: rgba(20, 27, 23, .62);
  padding: 2px 7px; border-radius: 999px;
}
.stamp-body { display: grid; gap: 3px; padding: 9px 10px 11px; }
.stamp-place { display: flex; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.stamp-place i { font-style: normal; flex: 0 0 auto; }
.stamp-date { font-size: 10.5px; font-weight: 700; color: var(--ink-mute); }
.stamp-memo { font-size: 11px; color: var(--ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.stamp-empty { display: grid; justify-items: center; gap: 9px; text-align: center; padding: 20px 10px 14px; }
.stamp-empty-ico { font-size: 32px; line-height: 1; }
.stamp-empty p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.stamp-empty .dog-ghost { padding: 9px 15px; font-size: 12.5px; }

/* ── 백업·복원 ── */
.dog-backup { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 15px; }
.dog-backup summary { cursor: pointer; font-size: 13px; font-weight: 900; color: var(--ink-soft); }
.dog-backup-note { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: var(--ink-mute); }
.dog-backup-btns { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.dog-backup-btns .dog-ghost { padding: 9px 12px; font-size: 12px; }
.dog-backup-msg { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--mint-deep); }
.dog-wipe { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }

/* ── 발도장 창(모달) ── */
body.stamp-open { overflow: hidden; }
.stamp-modal { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; }
.stamp-modal[hidden] { display: none; }
.stamp-backdrop { position: absolute; inset: 0; background: rgba(16, 27, 20, .46); }
.stamp-sheet {
  position: relative; width: 100%; max-width: 560px; margin: 0 auto; outline: none;
  background: var(--surface); border-radius: 26px 26px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-m);
  display: grid; gap: 13px;
}
.stamp-sheet-head { position: relative; padding-right: 36px; }
.stamp-kicker { font-size: 11px; font-weight: 900; color: var(--sun-deep); letter-spacing: .01em; }
.stamp-title { font-size: 18.5px; font-weight: 900; letter-spacing: -.035em; margin-top: 2px; line-height: 1.25; }
.stamp-sub { font-size: 12px; font-weight: 700; color: var(--ink-mute); margin-top: 3px; }
.stamp-x {
  position: absolute; right: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-soft); font-size: 13px; line-height: 1;
}
.stamp-fields { display: grid; gap: 9px; }
.stamp-field { display: grid; gap: 5px; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.stamp-field em { font-style: normal; font-weight: 700; color: var(--ink-mute); font-size: 11px; }
.stamp-field input {
  font: inherit; font-size: 15px; width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--ink);
}
.stamp-field input:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.stamp-photos { display: grid; gap: 7px; }
.stamp-photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.stamp-slot {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: var(--surface-3); display: grid; place-items: center;
}
.stamp-slot img { width: 100%; height: 100%; object-fit: cover; }
.stamp-slot-x {
  position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(20, 27, 23, .66); color: #fff; font-size: 10.5px; line-height: 1;
}
.stamp-slot--add { border: 1.5px dashed #cfe6d6; color: var(--mint-deep); font-weight: 900; font-size: 13px; gap: 1px; }
.stamp-slot--add em { font-style: normal; font-size: 10.5px; font-weight: 700; }
.stamp-hint { font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
.stamp-hint.is-warn { color: var(--coral-deep); }
.stamp-paw {
  position: relative; display: grid; justify-items: center; gap: 2px;
  padding: 14px 12px 12px; border-radius: 20px; border: 2px dashed #c6ebd6;
  background: var(--mint-tint); color: var(--mint-deep);
  transition: transform .12s ease, background .2s ease;
}
.stamp-paw-ico { font-size: 32px; line-height: 1; }
.stamp-paw-label { font-size: 14px; font-weight: 900; }
.stamp-paw:disabled { opacity: .5; cursor: not-allowed; }
.stamp-paw.is-pressed { transform: scale(.955); background: #d3f2df; }
.stamp-paw.is-warn { animation: stampShake .36s ease; }
.stamp-ink { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; opacity: 0; pointer-events: none; }
.stamp-paw.is-stamped .stamp-ink { animation: stampInk .75s ease-out; }
@keyframes stampInk {
  0% { opacity: 0; transform: scale(1.7) rotate(-18deg); }
  28% { opacity: .92; }
  70% { opacity: .92; transform: scale(.98) rotate(-7deg); }
  100% { opacity: 0; transform: scale(1.04) rotate(-7deg); }
}
@keyframes stampShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.stamp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stamp-del { font-size: 11.5px; font-weight: 700; color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; }
.stamp-note { font-size: 11px; color: var(--ink-mute); }
.stamp-toast { font-size: 11.5px; font-weight: 800; color: var(--coral-deep); }
.stamp-toast:empty { display: none; }

@media (min-width: 960px) {
  /* 프로필 카드는 왼쪽, 발도장 앨범은 오른쪽 — 넓은 화면에서 빈 공간이 남지 않게 */
  .mydog.is-split { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); max-width: 1020px; align-items: start; }
  .mydog.is-split .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mydog.is-split .stamp-empty { padding: 34px 14px 26px; }
}
@media (min-width: 621px) {
  .stamp-modal { align-items: center; padding: 20px; }
  .stamp-sheet { border-radius: 26px; max-height: 88vh; padding: 20px 20px 18px; }
}
@media (max-width: 420px) {
  .dog-form-actions { grid-template-columns: 1fr; }
  .dog-btns { grid-template-columns: 1fr; }
  .dog-metrics { grid-template-columns: auto auto; }
  .dog-metric--bar { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp-paw, .stamp-paw.is-pressed { transition: none; transform: none; }
  .stamp-paw.is-stamped .stamp-ink, .stamp-paw.is-warn { animation: none; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .dog-ava-pick { border-color: #35513d; }
  html:not([data-theme="light"]) .dog-ava-wrap.has-photo .dog-ava-pick { border-color: var(--mint); }
  html:not([data-theme="light"]) .dog-photo-cta { background: rgba(60, 178, 116, .18); border-color: #2f5940; color: #86e0ac; }
  html:not([data-theme="light"]) .dog-photo-cta:hover { background: rgba(60, 178, 116, .28); border-color: #4d8f68; }
  html:not([data-theme="light"]) .dog-photo-x { background: var(--surface-2); border-color: #2b3f33; color: var(--ink-soft); }
  html:not([data-theme="light"]) .dog-field input, html:not([data-theme="light"]) .stamp-field input { background: #1a2b21; border-color: #2b3f33; }
  html:not([data-theme="light"]) .btn--stamp { background: rgba(238, 176, 42, .16); color: #f5d089; border-color: #584722; }
  html:not([data-theme="light"]) .stamp-paw { background: rgba(60, 178, 116, .18); border-color: #2f5940; color: #86e0ac; }
  html:not([data-theme="light"]) .stamp-paw.is-pressed { background: rgba(60, 178, 116, .3); }
  html:not([data-theme="light"]) .stamp-slot--add { border-color: #2f5940; }
  html:not([data-theme="light"]) .dog-save, html:not([data-theme="light"]) .dog-primary { color: #06210f; }
  html:not([data-theme="light"]) .dog-size-tag[data-size="중소형견"] { background: rgba(60, 178, 116, .22); }
  html:not([data-theme="light"]) .dog-size-tag[data-size="대형견"] { background: rgba(238, 176, 42, .18); }
  html:not([data-theme="light"]) .stamp-backdrop { background: rgba(0, 0, 0, .62); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .dog-ava-pick { border-color: #35513d; }
  html[data-theme="dark"] .dog-ava-wrap.has-photo .dog-ava-pick { border-color: var(--mint); }
  html[data-theme="dark"] .dog-photo-cta { background: rgba(60, 178, 116, .18); border-color: #2f5940; color: #86e0ac; }
  html[data-theme="dark"] .dog-photo-cta:hover { background: rgba(60, 178, 116, .28); border-color: #4d8f68; }
  html[data-theme="dark"] .dog-photo-x { background: var(--surface-2); border-color: #2b3f33; color: var(--ink-soft); }
  html[data-theme="dark"] .dog-field input, html[data-theme="dark"] .stamp-field input { background: #1a2b21; border-color: #2b3f33; }
  html[data-theme="dark"] .btn--stamp { background: rgba(238, 176, 42, .16); color: #f5d089; border-color: #584722; }
  html[data-theme="dark"] .stamp-paw { background: rgba(60, 178, 116, .18); border-color: #2f5940; color: #86e0ac; }
  html[data-theme="dark"] .stamp-paw.is-pressed { background: rgba(60, 178, 116, .3); }
  html[data-theme="dark"] .stamp-slot--add { border-color: #2f5940; }
  html[data-theme="dark"] .dog-save, html[data-theme="dark"] .dog-primary { color: #06210f; }
  html[data-theme="dark"] .dog-size-tag[data-size="중소형견"] { background: rgba(60, 178, 116, .22); }
  html[data-theme="dark"] .dog-size-tag[data-size="대형견"] { background: rgba(238, 176, 42, .18); }
  html[data-theme="dark"] .stamp-backdrop { background: rgba(0, 0, 0, .62); }
/* dd-theme-forced-end */


/* ─────────────────────────────────────────────
   ❤️ 찜 · 🔗 공유 · 📱 토스 안내 띠 · 🔗 공유 링크 착지 (2026-11-21)
   ───────────────────────────────────────────── */

/* 카드의 찜·공유 줄 — 사진 아래·태그 위, 카드마다 같은 자리 */
.card-tools {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  margin: -2px 0 0;
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: 0;
  color: var(--ink-soft); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px; cursor: pointer; line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.tool-btn .tool-ico { font-size: 12.5px; line-height: 1; }
.tool-btn:hover { border-color: var(--mint); color: var(--mint-deep); background: var(--mint-tint); }
.tool-btn:active { transform: scale(.97); }
.tool-btn:disabled { opacity: .5; cursor: progress; }
.tool-btn--fav { color: var(--ink-soft); }
/* 2026-11-28 — 미찜 상태에서도 ❤️(빨간 하트)가 그대로 보이고,
   찜한 상태는 따뜻한 분홍·코랄 틴트 배경 + 진한 글자로 구분합니다. */
.tool-btn--fav .tool-ico { font-size: 13.5px; }
.tool-btn--fav.is-on { background: #ffe3ec; border-color: #f5a6bd; color: #a8153f; font-weight: 900; }
.tool-btn--fav.is-on:hover { background: #ffd7e4; border-color: #ef8aab; }
.tool-btn--share:hover { border-color: var(--sky); color: var(--sky-deep); background: var(--sky-tint); }

/* 집 찾아줄개 카드 — 사진 아래 본문 끝에 같은 두 버튼 */
.la-body .card-tools { margin-top: 8px; justify-content: stretch; }
.la-body .card-tools .tool-btn { flex: 1 1 0; justify-content: center; padding: 6px 6px; }

/* 빠른 필터의 ❤️ 칩 (개수 배지) */
.qchip--fav { border-style: solid; }
.qchip--fav .qchip-n {
  display: inline-block; min-width: 17px; margin-left: 4px; padding: 1px 5px;
  font-size: 10.5px; font-weight: 900; border-radius: 999px;
  background: rgba(0, 0, 0, .09); color: inherit; text-align: center;
}
.qchip--fav[aria-pressed="true"] { background: #e5486f; border-color: #e5486f; color: #fff; box-shadow: 0 6px 14px -8px rgba(229, 72, 111, .9); }
.qchip--fav[aria-pressed="true"]::before { content: ""; }
.qchip--fav.is-empty .qchip-n { background: rgba(0, 0, 0, .06); }

/* 집 찾아줄개 필터의 ❤️ 찜한 아이 */
.lchip--fav { border-style: solid; }
.lchip--fav .lchip-n { margin-left: 4px; font-weight: 900; }
.lchip--fav[aria-pressed="true"] { background: #e5486f; border-color: #e5486f; color: #fff; }
.lchip--fav[aria-pressed="true"]::before { content: ""; }
.lost-frow--fav { gap: 8px; align-items: center; }

/* 공유 링크로 들어온 카드 강조 */
.card.is-target, .la-card.is-target {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(47, 168, 95, .3), var(--shadow-m);
  animation: targetPulse 1.5s ease 2;
}
@keyframes targetPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 168, 95, .3), var(--shadow-m); }
  50% { box-shadow: 0 0 0 9px rgba(47, 168, 95, .12), var(--shadow-m); }
}

/* 짧은 알림(토스트) — 복사 완료 등 */
.app-toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px);
  z-index: 90; max-width: min(92vw, 460px);
  padding: 11px 18px; border-radius: 999px;
  background: rgba(27, 42, 32, .94); color: #f4fbf5;
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em; text-align: center;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.app-toast[hidden] { display: none; }
.app-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 📱 토스 앱 안내 띠 — 휴대폰에서만 JS가 켭니다 */
.toss-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "ico txt open close" ". note note note";
  align-items: center; gap: 6px 10px;
  max-width: var(--maxw); margin: 10px auto 0; padding: 10px 14px;
  background: linear-gradient(180deg, #f2fbf4, #e7f7ec);
  border: 1px solid #cfeeda; border-radius: 18px;
  box-shadow: var(--shadow-s);
}
.toss-banner[hidden] { display: none; }
.toss-banner-ico { grid-area: ico; font-size: 20px; line-height: 1; }
.toss-banner-txt {
  grid-area: txt; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--mint-deep);
  /* 2026-11-28 — 「토스 앱이 있다면 더 빠르게 열 / 수 있어요.」처럼 마지막 어절만 다음 줄로
     떨어지던 것을 문장 단위로 끊고(문구에 <br>), 줄간격·자간을 다듬었습니다. */
  word-break: keep-all; line-height: 1.6; letter-spacing: -0.015em;
}
.toss-banner-txt strong { font-weight: 900; }
.toss-banner-open {
  grid-area: open; font: inherit; font-size: 12px; font-weight: 900;
  padding: 8px 13px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--mint); color: #fff; box-shadow: 0 8px 16px -10px rgba(47, 168, 95, .95);
  white-space: nowrap;
}
.toss-banner-open:hover { filter: brightness(1.05); }
.toss-banner-open:disabled { opacity: .6; cursor: progress; }
.toss-banner-close {
  grid-area: close; font: inherit; font-size: 13px; line-height: 1;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .7); border: 1px solid #d7eee0; color: var(--ink-mute);
}
.toss-banner-note { grid-area: note; margin: 0; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.toss-banner-note[hidden] { display: none; }

@media (max-width: 520px) {
  .card-tools { justify-content: stretch; }
  .card-tools .tool-btn { flex: 1 1 0; justify-content: center; padding: 6px 8px; }
  .toss-banner { margin: 8px 10px 0; padding: 10px 12px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .card.is-target, .la-card.is-target { animation: none; }
  .app-toast { transition: none; }
  .tool-btn:active { transform: none; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tool-btn { background: #1a2b21; border-color: #2b3f33; color: #c9dccd; }
  html:not([data-theme="light"]) .tool-btn:hover { background: rgba(60, 178, 116, .16); border-color: #2f5940; color: #86e0ac; }
  html:not([data-theme="light"]) .tool-btn--fav.is-on { background: rgba(229, 72, 111, .2); border-color: #6d2a3d; color: #ffadc0; }
  html:not([data-theme="light"]) .tool-btn--share:hover { background: rgba(63, 157, 208, .18); border-color: #2c4f66; color: #9ed3f0; }
  html:not([data-theme="light"]) .qchip--fav[aria-pressed="true"] { background: #b8385a; border-color: #b8385a; color: #fff; }
  html:not([data-theme="light"]) .lchip--fav[aria-pressed="true"] { background: #b8385a; border-color: #b8385a; color: #fff; }
  html:not([data-theme="light"]) .toss-banner { background: linear-gradient(180deg, #1a2b21, #152419); border-color: #2b3f33; }
  html:not([data-theme="light"]) .toss-banner-txt { color: #86e0ac; }
  html:not([data-theme="light"]) .toss-banner-close { background: #1e2f24; border-color: #2b3f33; color: #b3c6b8; }
  html:not([data-theme="light"]) .toss-banner-note { color: #b3c6b8; }
  html:not([data-theme="light"]) .app-toast { background: rgba(233, 244, 235, .95); color: #14251b; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .tool-btn { background: #1a2b21; border-color: #2b3f33; color: #c9dccd; }
  html[data-theme="dark"] .tool-btn:hover { background: rgba(60, 178, 116, .16); border-color: #2f5940; color: #86e0ac; }
  html[data-theme="dark"] .tool-btn--fav.is-on { background: rgba(229, 72, 111, .2); border-color: #6d2a3d; color: #ffadc0; }
  html[data-theme="dark"] .tool-btn--share:hover { background: rgba(63, 157, 208, .18); border-color: #2c4f66; color: #9ed3f0; }
  html[data-theme="dark"] .qchip--fav[aria-pressed="true"] { background: #b8385a; border-color: #b8385a; color: #fff; }
  html[data-theme="dark"] .lchip--fav[aria-pressed="true"] { background: #b8385a; border-color: #b8385a; color: #fff; }
  html[data-theme="dark"] .toss-banner { background: linear-gradient(180deg, #1a2b21, #152419); border-color: #2b3f33; }
  html[data-theme="dark"] .toss-banner-txt { color: #86e0ac; }
  html[data-theme="dark"] .toss-banner-close { background: #1e2f24; border-color: #2b3f33; color: #b3c6b8; }
  html[data-theme="dark"] .toss-banner-note { color: #b3c6b8; }
  html[data-theme="dark"] .app-toast { background: rgba(233, 244, 235, .95); color: #14251b; }
/* dd-theme-forced-end */


/* ═══════════════════════════════════════════════════════════
   2026-11-23 · 🚑 동물병원
   (내 주변 가까운 순 · 🚑 24시 필터 · 시·도 선택 · 인앱 지도)
   ═══════════════════════════════════════════════════════════ */

/* 이상신호 체크 → 동물병원 바로가기 */
.signs-hop { margin: 12px 0 0; }
.signs-hop-btn {
  border: 1.5px solid #cfe9d9; background: var(--mint-tint); color: var(--mint-deep);
  font-weight: 900; font-size: 13.5px; padding: 10px 14px; border-radius: 999px;
  letter-spacing: -.02em; cursor: pointer;
}
.signs-hop-btn:hover { background: #d3f3e0; }

.vet-panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 14px 14px 15px; box-shadow: var(--shadow-s);
}
.vet-toprow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vet-near, .vet-toggle {
  border: 1.5px solid #e3ead9; background: var(--surface-2); color: var(--ink-soft);
  font-size: 13px; font-weight: 900; letter-spacing: -.02em;
  padding: 12px 8px; border-radius: 14px; cursor: pointer; min-height: 46px;
  transition: background .15s, color .15s, border-color .15s;
}
.vet-near:hover, .vet-toggle:hover { border-color: #cfe3d4; color: var(--mint-deep); }
.vet-near.is-on { background: var(--mint); border-color: var(--mint); color: #fff; }
.vet-near:disabled { opacity: .65; cursor: progress; }
.vet-toggle.is-on { background: var(--coral-tint); border-color: #f6c3b3; color: var(--coral-deep); }

.vet-note { margin: 9px 2px 0; font-size: 12px; color: var(--ink-mute); line-height: 1.55; word-break: keep-all; }
.vet-note.is-err { color: var(--coral-deep); }

.vet-filters { display: grid; grid-template-columns: var(--flabel-w, 50px) minmax(0, 1fr); gap: 4px 8px; margin-top: 10px; align-items: center; }
.vet-filters .fpicks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vet-sel { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vet-sel > span { font-size: 11.5px; font-weight: 800; color: var(--ink-mute); padding-left: 2px; }
.vet-filters select, .vet-sel select {
  width: 100%; min-width: 0; appearance: none; background: var(--surface-2);
  border: 1.5px solid #e3ead9; border-radius: var(--field-r, 12px); padding: 0 30px 0 12px; min-height: 40px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.vet-search { display: block; min-width: 0; }
.vet-search input {
  width: 100%; border: 1.5px solid #e3ead9; border-radius: var(--field-r, 12px); background: var(--surface-2);
  padding: 0 13px; min-height: 40px; font: inherit; font-size: 13.5px; color: var(--ink);
}
.vet-search input:focus, .vet-sel select:focus { outline: 2px solid #bfe7cd; outline-offset: 1px; }

.vet-emergency {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 16px;
  background: var(--coral-tint); border: 1px solid #fbdccf;
  font-size: 12.5px; line-height: 1.55; color: #7d3a26; word-break: keep-all;
}

.vet-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vet-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 13px 14px 12px; box-shadow: var(--shadow-s);
}
.vet-card-top { display: flex; align-items: flex-start; gap: 8px; }
.vet-name { margin: 0; font-size: 15.5px; font-weight: 900; line-height: 1.3; letter-spacing: -.025em; word-break: keep-all; }
.vet-badge {
  flex: none; margin-left: auto; background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 900; padding: 4px 9px; border-radius: 999px; letter-spacing: -.02em;
}
.vet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 7px 0 0; font-size: 12px; color: var(--ink-mute); }
.vet-dist { font-weight: 900; color: var(--mint-deep); background: var(--mint-tint); padding: 2px 8px; border-radius: 999px; }
.vet-loc { font-weight: 700; }
.vet-hours { color: var(--ink-soft); }
.vet-addr { margin: 7px 0 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; word-break: keep-all; text-wrap: pretty; }
.vet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.vet-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 42px; border-radius: 12px; font-size: 13.5px; font-weight: 900;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent; letter-spacing: -.02em;
}
.vet-btn--tel { background: var(--mint-tint); color: var(--mint-deep); border-color: #cdebd8; }
.vet-btn--tel:hover { background: #d8f5e3; }
.vet-btn--map { background: var(--surface-2); color: var(--ink-soft); border-color: #e3ead9; }
.vet-btn--map:hover { background: var(--surface-3); color: var(--mint-deep); }
.vet-btn--off { background: var(--surface-2); color: var(--ink-mute); border-color: var(--line-soft); font-weight: 700; cursor: default; }

.vet-loading, .vet-empty { margin: 8px 2px; font-size: 13.5px; color: var(--ink-mute); }
.vet-empty { text-align: center; padding: 22px 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; }
.vet-empty p:first-child { font-size: 26px; margin: 0 0 4px; }

.vet-src { margin: 16px 2px 0; font-size: 11.5px; color: var(--ink-mute); line-height: 1.55; word-break: keep-all; }
.vet-disclaimer { margin: 6px 2px 0; font-size: 11.5px; color: var(--ink-mute); line-height: 1.55; word-break: keep-all; }

@media (min-width: 700px) {
  .vet-panel { padding: 18px 20px 20px; }
  .vet-filters { grid-template-columns: var(--flabel-w, 64px) minmax(0, 1fr); }
  .vet-filters .fpicks { grid-template-columns: repeat(2, minmax(0, 220px)); }
  .vet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vet-toprow { grid-template-columns: 1fr 1fr; max-width: 560px; }
}

@media (max-width: 400px) {
  .vet-near, .vet-toggle { font-size: 12px; padding: 11px 6px; }
  .vet-name { font-size: 15px; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .vet-panel, html:not([data-theme="light"]) .vet-card { background: #16241c; border-color: #2b3f33; }
  html:not([data-theme="light"]) .vet-near, html:not([data-theme="light"]) .vet-toggle, html:not([data-theme="light"]) .vet-btn--map, html:not([data-theme="light"]) .vet-btn--off { background: #1c2e23; border-color: #2f4636; color: #cfdfd3; }
  html:not([data-theme="light"]) .vet-near.is-on { background: #2e9463; border-color: #2e9463; color: #fff; }
  html:not([data-theme="light"]) .vet-toggle.is-on { background: #3a231b; border-color: #6b3a29; color: #ffb49a; }
  html:not([data-theme="light"]) .vet-sel select, html:not([data-theme="light"]) .vet-search input { background-color: #1c2e23; border-color: #2f4636; color: #e8f1e6; }
  html:not([data-theme="light"]) .vet-sel > span, html:not([data-theme="light"]) .vet-note, html:not([data-theme="light"]) .vet-src, html:not([data-theme="light"]) .vet-disclaimer, html:not([data-theme="light"]) .vet-meta { color: #a9bfb0; }
  html:not([data-theme="light"]) .vet-name { color: #eff6ec; }
  html:not([data-theme="light"]) .vet-addr { color: #c6d7c9; }
  html:not([data-theme="light"]) .vet-emergency { background: #33221b; border-color: #5c3527; color: #ffc7b2; }
  html:not([data-theme="light"]) .vet-dist { background: #1f3a2a; color: #86e0ac; }
  html:not([data-theme="light"]) .vet-btn--tel { background: #1f3a2a; border-color: #2f543c; color: #86e0ac; }
  html:not([data-theme="light"]) .vet-badge { background: #d2603f; }
  html:not([data-theme="light"]) .vet-empty { background: #16241c; border-color: #2b3f33; }
  html:not([data-theme="light"]) .signs-hop-btn { background: #1f3a2a; border-color: #2f543c; color: #86e0ac; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .vet-panel, html[data-theme="dark"] .vet-card { background: #16241c; border-color: #2b3f33; }
  html[data-theme="dark"] .vet-near, html[data-theme="dark"] .vet-toggle, html[data-theme="dark"] .vet-btn--map, html[data-theme="dark"] .vet-btn--off { background: #1c2e23; border-color: #2f4636; color: #cfdfd3; }
  html[data-theme="dark"] .vet-near.is-on { background: #2e9463; border-color: #2e9463; color: #fff; }
  html[data-theme="dark"] .vet-toggle.is-on { background: #3a231b; border-color: #6b3a29; color: #ffb49a; }
  html[data-theme="dark"] .vet-sel select, html[data-theme="dark"] .vet-search input { background-color: #1c2e23; border-color: #2f4636; color: #e8f1e6; }
  html[data-theme="dark"] .vet-sel > span, html[data-theme="dark"] .vet-note, html[data-theme="dark"] .vet-src, html[data-theme="dark"] .vet-disclaimer, html[data-theme="dark"] .vet-meta { color: #a9bfb0; }
  html[data-theme="dark"] .vet-name { color: #eff6ec; }
  html[data-theme="dark"] .vet-addr { color: #c6d7c9; }
  html[data-theme="dark"] .vet-emergency { background: #33221b; border-color: #5c3527; color: #ffc7b2; }
  html[data-theme="dark"] .vet-dist { background: #1f3a2a; color: #86e0ac; }
  html[data-theme="dark"] .vet-btn--tel { background: #1f3a2a; border-color: #2f543c; color: #86e0ac; }
  html[data-theme="dark"] .vet-badge { background: #d2603f; }
  html[data-theme="dark"] .vet-empty { background: #16241c; border-color: #2b3f33; }
  html[data-theme="dark"] .signs-hop-btn { background: #1f3a2a; border-color: #2f543c; color: #86e0ac; }
/* dd-theme-forced-end */


/* ═══════════════════════════════════════════════════════════════
   2026-11-23 · 「유형 · 조건」 필터 한눈에 보기
   · 가로 스크롤·오른쪽 페이드 없이 여러 줄로 모두 보이게
   · 선택/미선택 칩의 명도 대비를 라이트·다크 모두에서 선명하게
   · 머리글(제목·초기화)과 상단 고정 탭 배경 정리
   ═══════════════════════════════════════════════════════════════ */

/* 칩 기본(미선택) — 패널 바탕과 구분되도록 살짝 눌러 둔 크림 톤 */
:root {
  --chip-bg: #f5f1e4;
  --chip-line: #d8cfb6;
  --chip-ink: #3f5247;
  --chip-sel-bg: #14663e;
  --chip-sel-ink: #ffffff;
  --chip-sel-shadow: 0 6px 14px -8px rgba(20, 102, 62, .85);
}
.qchip { color: var(--chip-ink); background: var(--chip-bg); border-color: var(--chip-line); }
.qchip:hover { background: #e6f4e8; border-color: #9fd3b1; color: var(--mint-deep); }

/* 선택된 칩 — 진한 잔디 바탕 + 흰 글씨(한 가지 색으로 통일해 대비를 확실히) */
.qchip[aria-pressed="true"],
.qchip.qchip--free[aria-pressed="true"],
.qchip.qchip--park[aria-pressed="true"],
.qchip.qchip--express[aria-pressed="true"],
.qchip.qchip--cafe[aria-pressed="true"],
.qchip.qchip--dine[aria-pressed="true"],
.qchip.qchip--stay[aria-pressed="true"],
.qchip.qchip--shop[aria-pressed="true"],
.qchip.qchip--trail[aria-pressed="true"],
.qchip.qchip--mtn[aria-pressed="true"],
.qchip.qchip--train[aria-pressed="true"],
.qchip.qchip--toggle[aria-pressed="true"] {
  background: var(--chip-sel-bg); border-color: var(--chip-sel-bg);
  color: var(--chip-sel-ink); box-shadow: var(--chip-sel-shadow);
}
.qchip[aria-pressed="true"]:hover { background: #105634; border-color: #105634; color: var(--chip-sel-ink); }
.qchip.qchip--fav[aria-pressed="true"] { background: #cf3d5e; border-color: #cf3d5e; color: #fff; box-shadow: 0 6px 14px -8px rgba(207, 61, 94, .75); }
.qchip.qchip--fav[aria-pressed="true"]:hover { background: #b8324f; border-color: #b8324f; color: #fff; }
.qchip[aria-pressed="true"]::before { content: "✓"; font-weight: 900; }
.qchip--fav[aria-pressed="true"]::before { content: ""; }

/* 할인·감면만 골든 포인트 유지 — 어두운 글씨로 대비 확보 */
.qchip.qchip--deal { background: #fff6e0; border-color: #ecc877; color: #7a5100; }
.qchip.qchip--deal[aria-pressed="true"] {
  background: #e2a013; border-color: #e2a013; color: #2a1d00;
  box-shadow: 0 6px 14px -8px rgba(190, 128, 10, .9);
}

/* 머리글 — 제목과 초기화 버튼 줄맞춤 */
.filter-head, .zone-head { min-height: 30px; margin: 0 2px 10px; }
.filter-head .reset, .zone-head .reset {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  min-height: 30px; padding: 0 11px; font-size: 12px; line-height: 1;
  background: transparent; border: 1.5px solid var(--chip-line); color: var(--chip-ink);
}
.filter-head .reset::before, .zone-head .reset::before { content: "↺"; font-size: 13px; font-weight: 900; }
.filter-head .reset:hover, .zone-head .reset:hover { background: var(--mint-tint); border-color: #9fd3b1; color: var(--mint-deep); }

/* 상단 바 — 뒤 글씨가 비치지 않게 배경 불투명도 확보 */
.topbar {
  background: rgba(255, 253, 248, .97);
  backdrop-filter: saturate(150%) blur(14px);
}

/* 다크 모드 — 어두운 바탕 위에 밝은 선택 칩, 미선택은 한 단계만 밝게 */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
  --chip-bg: #1d2f25;
  --chip-line: #35503f;
  --chip-ink: #cfe0d4;
  --chip-sel-bg: #86e6ad;
  --chip-sel-ink: #082015;
  --chip-sel-shadow: 0 6px 16px -8px rgba(134, 230, 173, .55);
}
  html:not([data-theme="light"]) .qchip:hover { background: #253b2e; border-color: #457157; color: #eaf3e6; }
  html:not([data-theme="light"]) .qchip[aria-pressed="true"]:hover { background: #9ef0bf; border-color: #9ef0bf; color: var(--chip-sel-ink); }
  html:not([data-theme="light"]) .qchip.qchip--deal { background: #2a2417; border-color: #6a5723; color: #f0d79a; }
  html:not([data-theme="light"]) .qchip.qchip--deal[aria-pressed="true"] {
  background: #f5c95c; border-color: #f5c95c; color: #2a1d00;
  box-shadow: 0 6px 14px -8px rgba(245, 201, 92, .6);
}
  html:not([data-theme="light"]) .qchip.qchip--fav[aria-pressed="true"] { background: #d9536f; border-color: #d9536f; color: #fff; }
  html:not([data-theme="light"]) .filter-head .reset, html:not([data-theme="light"]) .zone-head .reset { background: transparent; border-color: var(--chip-line); color: var(--chip-ink); }
  html:not([data-theme="light"]) .filter-head .reset:hover, html:not([data-theme="light"]) .zone-head .reset:hover { background: rgba(60, 178, 116, .16); border-color: var(--mint); color: var(--mint-deep); }
  html:not([data-theme="light"]) .zone-all { background: rgba(60, 178, 116, .2); border-color: #3f7a58; color: #b9f0cf; }
  html:not([data-theme="light"]) .zone-all:hover { background: rgba(60, 178, 116, .3); }
  html:not([data-theme="light"]) .zone-map-count { background: rgba(60, 178, 116, .2); color: #b9f0cf; }
  html:not([data-theme="light"]) .topbar { background: rgba(16, 27, 20, .97); }
  html:not([data-theme="light"]) .finder { border-color: #2b3f33; }
  html:not([data-theme="light"]) .searchbar {
  background: var(--surface-2); border-color: #3aa76a;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(58, 167, 106, .18);
}
  html:not([data-theme="light"]) .searchbar:hover, html:not([data-theme="light"]) .searchbar:focus-within { border-color: #6fdc9d; }
  html:not([data-theme="light"]) .search-icon { fill: #86e0ac; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] {
  --chip-bg: #1d2f25;
  --chip-line: #35503f;
  --chip-ink: #cfe0d4;
  --chip-sel-bg: #86e6ad;
  --chip-sel-ink: #082015;
  --chip-sel-shadow: 0 6px 16px -8px rgba(134, 230, 173, .55);
}
  html[data-theme="dark"] .qchip:hover { background: #253b2e; border-color: #457157; color: #eaf3e6; }
  html[data-theme="dark"] .qchip[aria-pressed="true"]:hover { background: #9ef0bf; border-color: #9ef0bf; color: var(--chip-sel-ink); }
  html[data-theme="dark"] .qchip.qchip--deal { background: #2a2417; border-color: #6a5723; color: #f0d79a; }
  html[data-theme="dark"] .qchip.qchip--deal[aria-pressed="true"] {
  background: #f5c95c; border-color: #f5c95c; color: #2a1d00;
  box-shadow: 0 6px 14px -8px rgba(245, 201, 92, .6);
}
  html[data-theme="dark"] .qchip.qchip--fav[aria-pressed="true"] { background: #d9536f; border-color: #d9536f; color: #fff; }
  html[data-theme="dark"] .filter-head .reset, html[data-theme="dark"] .zone-head .reset { background: transparent; border-color: var(--chip-line); color: var(--chip-ink); }
  html[data-theme="dark"] .filter-head .reset:hover, html[data-theme="dark"] .zone-head .reset:hover { background: rgba(60, 178, 116, .16); border-color: var(--mint); color: var(--mint-deep); }
  html[data-theme="dark"] .zone-all { background: rgba(60, 178, 116, .2); border-color: #3f7a58; color: #b9f0cf; }
  html[data-theme="dark"] .zone-all:hover { background: rgba(60, 178, 116, .3); }
  html[data-theme="dark"] .zone-map-count { background: rgba(60, 178, 116, .2); color: #b9f0cf; }
  html[data-theme="dark"] .topbar { background: rgba(16, 27, 20, .97); }
  html[data-theme="dark"] .finder { border-color: #2b3f33; }
  html[data-theme="dark"] .searchbar {
  background: var(--surface-2); border-color: #3aa76a;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(58, 167, 106, .18);
}
  html[data-theme="dark"] .searchbar:hover, html[data-theme="dark"] .searchbar:focus-within { border-color: #6fdc9d; }
  html[data-theme="dark"] .search-icon { fill: #86e0ac; }
/* dd-theme-forced-end */


/* 좁은 화면 — 칩을 두 줄 이상으로 접어 모두 보이게, 손가락 크기는 유지 */
@media (max-width: 620px) {
  .filter-head, .zone-head { margin-bottom: 8px; }
  .zone-head { margin-top: 12px; padding-top: 10px; }
  .qchip .q-emoji { font-size: 12.5px; margin-right: 0; }
}

/* ─────── ❤️ 찜한 곳 — 상단 헤더 버튼 + 「🐕 우리 댕댕이」 수첩 안 모음 ───────
   예전 「유형 · 조건」의 ❤️ 찜한 곳 칩을 이쪽으로 옮겼습니다.
   헤더 버튼은 이름·개수만큼 폭을 확보하고, 좁은 폰에서는 여백만 줄입니다. */
.fav-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font: inherit; font-size: 12.5px; font-weight: 900; line-height: 1;
  color: #b8385a; background: #fff1f4;
  border: 1px solid #f3c9d4; border-radius: 0 999px 999px 0;
  margin-left: -1px;
  padding: 8px 11px; cursor: pointer; white-space: nowrap; flex: 0 0 auto;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
/* 🐕 우리 댕댕이 + ❤️ 찜한 곳 — 한 덩이로 붙여 폰 헤더 폭을 아낍니다 */
.topbar-dog { display: inline-flex; align-items: stretch; flex: 0 1 auto; min-width: 0; }
.topbar-dog .mydog-pill { border-radius: 999px 0 0 999px; border-right-color: transparent; padding-right: 7px; }
.fav-pill .fav-pill-ico { font-size: 13px; line-height: 1; }
.fav-pill .fav-pill-label { font-size: 12px; font-weight: 900; letter-spacing: -.03em; }
.fav-pill .fav-pill-n {
  font-variant-numeric: tabular-nums; min-width: 16px; text-align: center;
  background: rgba(184, 56, 90, .12); border-radius: 999px; padding: 2px 5px;
}
.fav-pill:hover { background: #ffe4ea; border-color: #eeb0c1; }
.fav-pill:active { transform: scale(.97); }
.fav-pill:focus-visible { outline: 2px solid #e5486f; outline-offset: 2px; }
.fav-pill.is-empty { color: #96707c; background: #fdf1f4; border-color: #efd5dd; }
/* 0곳일 때는 숫자를 숨겨 「찜한 곳」 문구만 남깁니다 — 폰 헤더 폭을 아끼고 더 담백하게 */
.fav-pill.is-empty .fav-pill-n { display: none; }
.fav-pill.is-on { background: #cf3d5e; border-color: #cf3d5e; color: #fff; }
.fav-pill.is-on .fav-pill-n { background: rgba(255, 255, 255, .22); }

.dog-fav {
  max-width: 760px; margin: 0 0 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-l); box-shadow: var(--shadow-s);
  scroll-margin-top: calc(var(--topbar-h) + 76px);
}
.dog-fav:focus { outline: none; }
.dog-fav:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
.dog-fav-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.dog-fav-head h3 { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 900; }
.dog-fav-heart { font-size: 14px; line-height: 1; }
.dog-fav-n {
  font-size: 11.5px; font-weight: 900; color: #b8385a; background: #fff1f4;
  border: 1px solid #f3c9d4; border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums;
}
.dog-fav-filter {
  font: inherit; font-size: 12px; font-weight: 800; color: var(--mint-deep);
  background: var(--mint-tint); border: 1px solid #cfeadd; border-radius: 999px;
  padding: 7px 12px; min-height: 32px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.dog-fav-filter:hover { background: #d9f3e5; border-color: #bfe6d3; }
.dog-fav-filter:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.dog-fav-note { margin: 6px 0 10px; font-size: 11.5px; line-height: 1.55; color: var(--ink-mute); }
.dog-fav-note strong { color: var(--ink-soft); }
.dog-fav-list { display: grid; gap: 6px; }
.dog-fav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font: inherit; color: inherit; background: var(--surface-3);
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 9px 10px; cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}
.dog-fav-item:hover { background: var(--mint-tint); border-color: #9fd3b1; }
.dog-fav-item:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.dog-fav-ico { flex: 0 0 auto; font-size: 17px; line-height: 1; }
.dog-fav-body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.dog-fav-body strong { font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dog-fav-body small { font-size: 11px; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dog-fav-go { flex: 0 0 auto; font-weight: 900; color: var(--ink-mute); }
.dog-fav-empty { display: grid; justify-items: center; gap: 6px; padding: 10px 8px 4px; text-align: center; }
.dog-fav-empty-ico { font-size: 22px; line-height: 1; }
.dog-fav-empty p { font-size: 12.5px; line-height: 1.55; color: var(--ink-mute); }
.dog-fav-empty .dog-ghost { margin-top: 2px; }

@media (max-width: 620px) {
  .fav-pill { padding: 6px 8px; font-size: 11px; gap: 2px; }
  .topbar-dog .mydog-pill { padding-right: 6px; }
  .dog-fav { padding: 12px; border-radius: 20px; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .fav-pill { background: rgba(229, 72, 111, .16); border-color: #5c2f3c; color: #ffc2cf; }
  html:not([data-theme="light"]) .fav-pill .fav-pill-n { background: rgba(255, 255, 255, .1); }
  html:not([data-theme="light"]) .fav-pill:hover { background: rgba(229, 72, 111, .26); border-color: #7a3a48; }
  html:not([data-theme="light"]) .fav-pill.is-empty { background: rgba(229, 72, 111, .10); border-color: #4a2d36; color: #e3aab6; }
  html:not([data-theme="light"]) .fav-pill.is-empty .fav-pill-n { background: rgba(255, 255, 255, .08); }
  html:not([data-theme="light"]) .fav-pill.is-on { background: #d9536f; border-color: #d9536f; color: #fff; }
  html:not([data-theme="light"]) .dog-fav { background: var(--surface); border-color: #2b3f33; }
  html:not([data-theme="light"]) .dog-fav-n { background: rgba(229, 72, 111, .18); border-color: #5c2f3c; color: #ffc2cf; }
  html:not([data-theme="light"]) .dog-fav-filter { background: rgba(60, 178, 116, .16); border-color: #35503f; color: #cfe0d4; }
  html:not([data-theme="light"]) .dog-fav-filter:hover { background: rgba(60, 178, 116, .26); border-color: var(--mint); }
  html:not([data-theme="light"]) .dog-fav-item { background: rgba(255, 255, 255, .04); border-color: #2b3f33; }
  html:not([data-theme="light"]) .dog-fav-item:hover { background: rgba(60, 178, 116, .16); border-color: var(--mint); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .fav-pill { background: rgba(229, 72, 111, .16); border-color: #5c2f3c; color: #ffc2cf; }
  html[data-theme="dark"] .fav-pill .fav-pill-n { background: rgba(255, 255, 255, .1); }
  html[data-theme="dark"] .fav-pill:hover { background: rgba(229, 72, 111, .26); border-color: #7a3a48; }
  html[data-theme="dark"] .fav-pill.is-empty { background: rgba(229, 72, 111, .10); border-color: #4a2d36; color: #e3aab6; }
  html[data-theme="dark"] .fav-pill.is-empty .fav-pill-n { background: rgba(255, 255, 255, .08); }
  html[data-theme="dark"] .fav-pill.is-on { background: #d9536f; border-color: #d9536f; color: #fff; }
  html[data-theme="dark"] .dog-fav { background: var(--surface); border-color: #2b3f33; }
  html[data-theme="dark"] .dog-fav-n { background: rgba(229, 72, 111, .18); border-color: #5c2f3c; color: #ffc2cf; }
  html[data-theme="dark"] .dog-fav-filter { background: rgba(60, 178, 116, .16); border-color: #35503f; color: #cfe0d4; }
  html[data-theme="dark"] .dog-fav-filter:hover { background: rgba(60, 178, 116, .26); border-color: var(--mint); }
  html[data-theme="dark"] .dog-fav-item { background: rgba(255, 255, 255, .04); border-color: #2b3f33; }
  html[data-theme="dark"] .dog-fav-item:hover { background: rgba(60, 178, 116, .16); border-color: var(--mint); }
/* dd-theme-forced-end */


@media (max-width: 340px) {
  /* 아주 좁은 폰 — 사이트 제목이 잘리지 않도록 ❤️ 개수는 숨기고 하트만 남깁니다 */
  .fav-pill .fav-pill-n { display: none; }
  .fav-pill { padding: 6px 6px; }
}

/* ═══════════════════════════════════════════════════════════
   · 섹션마다 반복되던 이름 배지(.sec-kicker)를 걷어낸 자리 정리
   · 면책은 맨 아래 <footer> 한 곳에만 — 응급 탭은 한 줄만
   2026-11-26 · 히어로 탭 줄을 헤더의 ☰ 메뉴로 접었습니다(그리드 규칙 삭제).
   ═══════════════════════════════════════════════════════════ */

/* 섹션 제목 — 이름 배지가 없어져 제목이 맨 위에서 시작 */
.sec-head > .sec-title:first-child { margin-top: 0; }
.sec-head { margin: 6px 2px 14px; }

/* 응급 탭의 한 줄 안내 — 박스 없이 담백하게 */
.sec-oneline {
  display: block;
  margin-top: 14px; font-size: 13px; font-weight: 700;
  color: var(--ink-soft); line-height: 1.55; word-break: keep-all;
}
.sec-oneline > span[aria-hidden="true"] { margin-right: 5px; }
.sec-oneline strong { color: var(--ink); font-weight: 900; }

@media (max-width: 620px) {
  .sec-oneline { font-size: 12.5px; }
}

/* ── 하단 푸터 — 초슬림 4줄(핵심 안내 + 변책 한 줄 + 자료 확인일 + 접이식 상세) ── */
.footer { background: #f6fbf0; border-top: 1px solid var(--line); }
.footer-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 20px 24px;
  display: grid; gap: 6px;
  font-size: 12.5px; color: var(--ink-soft); word-break: keep-all;
}
.footer-strong { font-size: 13px; font-weight: 900; color: var(--mint-deep); letter-spacing: -.01em; }
.footer-note { font-size: 12px; line-height: 1.6; color: var(--ink-mute); }
.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 12px; color: var(--ink-mute);
}
.footer-meta a { color: var(--mint-deep); font-weight: 800; }
/* 접이식 상세 — 기본은 닫혀 있어 화면이 가볌고, 필요할 때만 펼칩니다 */
/* 파트너 추천 배지(검은망고) — 푸터 높이를 키우지 않도록 한 줄·작게 */
.footer-badge { margin: 2px 0 0; line-height: 0; }
.footer-badge a { display: inline-block; max-width: 100%; border-radius: 12px; }
.footer-badge img { display: inline-block; max-width: 100%; height: 48px; width: auto; }
.footer-badge a:hover, .footer-badge a:focus-visible { opacity: .88; }
.footer-badge a:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
.footer-more { border-top: 1px solid var(--line-soft); padding-top: 4px; margin-top: 2px; }
.footer-more summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  min-height: 34px; font-size: 12px; font-weight: 800; color: var(--ink-soft);
}
.footer-more summary::-webkit-details-marker { display: none; }
.footer-more summary::before {
  content: "▶"; font-size: 8.5px; color: var(--mint-deep);
  transition: transform .15s ease;
}
.footer-more[open] summary::before { transform: rotate(90deg); }
.footer-more summary:hover, .footer-more summary:focus-visible { color: var(--mint-deep); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px; padding: 6px 0 2px;
}
.footer-sec h3 {
  font-size: 12px; font-weight: 900; letter-spacing: -.01em;
  color: var(--mint-deep); margin-bottom: 3px;
}
.footer-sec p { font-size: 12px; line-height: 1.6; color: var(--ink-mute); }
.footer strong { color: var(--ink-soft); font-weight: 800; }
.footer-detail { font-size: 11.5px; color: var(--ink-mute); padding-top: 4px; }
/* 홈 화면에 추가 — 첫 화면(히어로)을 방해하지 않도록 푸터 링크 줄에만 작게 */
.pwa-install {
  font: inherit; font-size: inherit; font-weight: 800;
  color: var(--mint-deep); background: none; border: 0; padding: 0;
  cursor: pointer; white-space: nowrap; text-align: left;
}
.pwa-install:hover { text-decoration: underline; }
.pwa-install:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 620px) {
  .footer-in { padding: 16px 16px 20px; gap: 5px; }
  .footer-grid { gap: 12px; }
  .footer-meta { gap: 6px 10px; font-size: 11.5px; }
  .footer-note { font-size: 11.5px; }
  .footer-badge img { height: 42px; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .footer { background: #0e1a13; }
  html:not([data-theme="light"]) .footer-sec p, html:not([data-theme="light"]) .footer-note, html:not([data-theme="light"]) .footer-detail { color: var(--ink-mute); }
  html:not([data-theme="light"]) .footer-meta { color: var(--ink-mute); }
  html:not([data-theme="light"]) .footer-more summary { color: var(--ink-soft); }
  html:not([data-theme="light"]) .footer-more summary:hover, html:not([data-theme="light"]) .footer-more summary:focus-visible { color: #9ef0bf; }
  html:not([data-theme="light"]) .sec-oneline { color: var(--ink-soft); }
  html:not([data-theme="light"]) .sec-oneline strong { color: var(--ink); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .footer { background: #0e1a13; }
  html[data-theme="dark"] .footer-sec p, html[data-theme="dark"] .footer-note, html[data-theme="dark"] .footer-detail { color: var(--ink-mute); }
  html[data-theme="dark"] .footer-meta { color: var(--ink-mute); }
  html[data-theme="dark"] .footer-more summary { color: var(--ink-soft); }
  html[data-theme="dark"] .footer-more summary:hover, html[data-theme="dark"] .footer-more summary:focus-visible { color: #9ef0bf; }
  html[data-theme="dark"] .sec-oneline { color: var(--ink-soft); }
  html[data-theme="dark"] .sec-oneline strong { color: var(--ink); }
/* dd-theme-forced-end */


/* 다크 모드 — 밝은 바탕 상자를 남겨 두던 실종 신고 안내를 어두운 톤으로.
   (흰 바탕 + 밝은 글씨로 읽기 어려웠던 곳) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lost-report { background: linear-gradient(180deg, #2b1a15 0%, #241512 100%); border-color: #5a3227; }
  html:not([data-theme="light"]) .lost-report-btn { color: #fff; border-color: #ff8f6b; background: linear-gradient(135deg, #ff8f57 0%, #f05a35 52%, #d8341f 100%); }
  html:not([data-theme="light"]) .lost-report-btn:hover { background: linear-gradient(135deg, #ffa06b 0%, #f76b45 52%, #e2412a 100%); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .lost-report { background: linear-gradient(180deg, #2b1a15 0%, #241512 100%); border-color: #5a3227; }
  html[data-theme="dark"] .lost-report-btn { color: #fff; border-color: #ff8f6b; background: linear-gradient(135deg, #ff8f57 0%, #f05a35 52%, #d8341f 100%); }
  html[data-theme="dark"] .lost-report-btn:hover { background: linear-gradient(135deg, #ffa06b 0%, #f76b45 52%, #e2412a 100%); }
/* dd-theme-forced-end */


/* 데스크톱·태블릿의 ☰ 메뉴도 비슷한 크기 — 화면 전환 이름이 한눈에 읽히게 */
@media (min-width: 621px) {
  .tab { font-size: 14px; }
  .tab .tab-label { font-size: 14px; }
  .tab .tab-ico { font-size: 17px; }
}

/* ─────────────────────────────────────────────
   한글 문장 줄바꿈 다듬기 (2026-11-24)
   · 어절 유지: body 에 word-break: keep-all — 단어 중간에서 잘리지 않습니다.
   · 두 문장이 한 줄에 붙어 어색하게 꺾이던 안내는 마크업에서 문장 단위 <br />로 나눴습니다.
   · text-wrap: pretty — 마지막 줄에 한 단어만 남는 '고아 줄'을 줄입니다(지원 브라우저 한정).
   ───────────────────────────────────────────── */
p, li, dd, figcaption,
.card-title, .teaser-body p, .tip p, .fd-why, .fd-note,
.sec-sub, .sec-oneline, .zone-map-hint, .zone-map-credit, .sort-hint,
.near-note, .near-off-msg, .radius-empty,
.lost-soft, .lost-warn, .lost-adopt-tip, .lost-source, .lost-step p, .lost-fnote, .lost-dogonly, .lost-combo,
.dog-form-sub, .dog-backup-note, .mbti-lead, .mbti-result-summary, .mbti-row span,
.eyes-note, .eyes-caption, .eyes-samples-note,
.vet-note, .vet-addr, .vet-src, .vet-disclaimer,
.signs-note, .signs-lead, .signs-tip, .signs-bring li,
.footer-note, .footer-sec p, .footer-detail, .map-note, .map-sub {
  text-wrap: pretty;
}

/* 굵은 글씨 안의 군더더기 꺾임 방지 — '보호센터 보호동물', '24시간' 처럼
   붙어 있어야 읽히는 말은 한 덩어리로 둡니다. */
.nowrap, .keep-word { white-space: nowrap; }

/* 접이식 「자료 기준과 한계」 안의 굵은 말 — '직접 합성한 자체 창작 음원'처럼
   붙어 읽혀야 하는 덩어리가 두 줄로 쪼개지지 않게 합니다(문단 안에서만). */
.about-body strong { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════
   2026-11-25 · 다른 화면(탭)으로 들어가면 큰 히어로 배너를 접고 바로 본론
   2026-11-26 · 7탭 줄이 헤더의 ☰ 메뉴로 옮겨, 첫 화면이 아니면 히어로 카드를
   아예 숨깁니다(예전에는 「탭 줄만 있는 얇은 띠」가 남았습니다).
   · 첫 화면(운동장 찾기)에서만 강아지 일러스트 + 큰 제목을 보여 줍니다.
   · 다시 「운동장 찾기」로 돌아오면 큰 히어로가 그대로 되살아납니다.
   ═══════════════════════════════════════════════════════════════════════ */
body.is-sector-focus .hero { display: none; }
/* 앱(앱인토스)은 헤더가 없어 음악·우리 땅땅이·찜한 곳·☰ 메뉴가 히어로 안에 있습니다.
   앱 번들(from-web.mjs)에서 이 숨김을 풀고, 그 버튼 줄만 남깁니다. */

/* ═══════════════════════════════════════════════════════════════════════
   2026-11-26 · 📉 사이트 볼륨감 낮추기 (사용자 요청)
   · 상단 7탭 줄 → 헤더 ☰ 메뉴, 목록 위 요약 줄·정렬 안내 줄 삭제에 맞춰
     남은 덩어리의 여백·패딩을 한 단계씩 줄였습니다.
   · 글자 크기는 그대로 둡니다 — 읽기 편한 크기는 지키고 '사이 여백'만 다이어트.
   · 목표: 390px 첫 화면에서 운동장 카드가 한 화면 안에 들어오게.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 620px) {
  .hero { margin-top: 10px; padding: 0 12px; }
  .hero-card { gap: 11px; padding: 11px 11px 13px; border-radius: 22px; }
  .hero h1 { font-size: 23px; line-height: 1.25; }
  .hero-art img { border-radius: 16px; max-height: 164px; object-fit: cover; object-position: center 42%; }
  .art-badge { right: 8px; bottom: 8px; font-size: 11px; padding: 5px 9px; }
  main { padding: 0 12px; }
  .sec-head { margin: 2px 2px 9px; }
  .find-lead { padding: 11px 11px 12px; border-radius: 18px; }
  .find-lead .stat-chips { margin-top: 10px; }
  .stat-chips { gap: 5px; }
  .stat-total { padding: 8px 14px; font-size: 13px; }
  .stat-total strong { font-size: 17px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .stat-grid .stat:last-child { grid-column: 1 / -1; }
  .stat { font-size: 12px; padding: 7px 6px; }
  .stat strong { font-size: 13px; }
  .filter-head, .zone-head { margin-bottom: 7px; }
  .results { margin-top: 16px; }
  .sortbar { gap: 7px; margin-bottom: 12px; }
  .sort-tabs { padding: 4px; border-radius: 14px; }
  .sort-tab { padding: 9px 4px; font-size: 13.5px; }
  .near-cta { padding: 11px 12px; gap: 8px 10px; border-radius: 15px; }
  .near-cta-ico { width: 34px; height: 34px; font-size: 16px; }
  .near-cta .near-note { font-size: 11px; line-height: 1.4; margin-top: 1px; }
  .near-on-pill { padding: 11px 16px; }
  .grid { gap: 10px; }
  .card { gap: 10px; padding: 14px; border-radius: 20px; }
  .card-head h3 { font-size: 16.5px; }
  .zone-map-card { padding: 9px 10px 7px; }
  .zone-map-stage { max-width: 312px; }
  .quick-chips { gap: 6px; }
  .qchip { min-height: 32px; font-size: 12.5px; padding: 0 12px; }
  .sector-menu-panel { padding: 8px; }
}

/* 아주 좁은 폰(≤380px) — 통계 칩 3칸은 이름이 두 줄로 접히므로 2칸으로 */
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ═══════════════════════════════════════════════════════════════════════
   2026-11-27 · 📱 폰 헤더 2단 — 제목·퀵버튼 글자 볼륨을 함께 키웁니다
   1행: [🐾 멍멍위키]                                    [☰ 분류]
   2행: [🎵 BGM]      [🐕 우리 댕댕이]      [❤️ 찜한 곳 0]   ← 같은 폭 3칸
   · 부제(운동장·시선·성향·음식)는 걷어내 제목이 숨 쉴 자리를 냈습니다.
   · 360~430px 어디서도 제목이 잘리거나 버튼과 겹치지 않습니다.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 620px) {
  :root { --topbar-h: 96px; }
  .topbar-in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand menu" "meta meta";
    height: auto; align-items: center;
    padding: 9px 12px 10px; gap: 7px 10px;
  }
  .brand { grid-area: brand; gap: 8px; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: -.05em; }
  .topbar-meta { grid-area: meta; width: 100%; gap: 6px; }
  .sector-menu { grid-area: menu; }
  /* 붙여 둔 두 알약을 풀어 3칸을 똑같이 나눕니다 */
  .topbar-dog { display: contents; }
  .topbar-dog .mydog-pill { border-radius: 999px; border-right-color: #cfeadd; padding-right: 6px; }
  .topbar-meta > .bgm-btn,
  .topbar-dog > .mydog-pill,
  .topbar-dog > .fav-pill {
    flex: 1 1 0; min-width: 0; min-height: 38px; justify-content: center;
    padding: 0 6px; gap: 4px; font-size: 13px;
  }
  .bgm-btn .bgm-ico, .mydog-pill .mydog-pill-ico, .fav-pill .fav-pill-ico { font-size: 14px; }
  .fav-pill { margin-left: 0; border-radius: 999px; }
  .fav-pill .fav-pill-label { display: inline; font-size: 12.5px; }
  .menu-btn { height: 34px; padding: 0 11px 0 9px; }
  .menu-btn .menu-btn-ico, .menu-btn .menu-btn-label { font-size: 13.5px; }
}

@media (max-width: 430px) {
  .topbar-in { padding: 8px 10px 9px; gap: 6px 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .brand-text strong { font-size: 18px; }
  .topbar-meta { gap: 5px; }
  .topbar-meta > .bgm-btn, .topbar-dog > .mydog-pill, .topbar-dog > .fav-pill { font-size: 12.5px; }
  .fav-pill .fav-pill-label { font-size: 12px; }
  .menu-btn { height: 32px; padding: 0 10px 0 8px; }
  .menu-btn .menu-btn-ico, .menu-btn .menu-btn-label { font-size: 13px; }
}

@media (max-width: 380px) {
  .brand-text strong { font-size: 17px; }
}

@media (max-width: 340px) {
  .brand-text strong { font-size: 16px; }
  .brand-mark { display: none; }
  .topbar-meta > .bgm-btn, .topbar-dog > .mydog-pill, .topbar-dog > .fav-pill { font-size: 12px; }
  .fav-pill .fav-pill-label { display: none; }
}

@media (prefers-color-scheme: dark) {
  /* ☰ 분류 — 밤에도 한눈에 보이는 민트 알약 */
  html:not([data-theme="light"]) .menu-btn { background: rgba(60, 178, 116, .2); border-color: #3f7a58; color: #b9f0cf; }
  html:not([data-theme="light"]) .menu-btn:hover, html:not([data-theme="light"]) .menu-btn[aria-expanded="true"] { background: rgba(60, 178, 116, .32); border-color: #4e8f68; color: #eaf3e6; }
  html:not([data-theme="light"]) .stat.is-shop strong { color: #ffb3cb; }
}
/* dd-theme-forced-start */
/* ☰ 분류 — 밤에도 한눈에 보이는 민트 알약 */
  html[data-theme="dark"] .menu-btn { background: rgba(60, 178, 116, .2); border-color: #3f7a58; color: #b9f0cf; }
  html[data-theme="dark"] .menu-btn:hover, html[data-theme="dark"] .menu-btn[aria-expanded="true"] { background: rgba(60, 178, 116, .32); border-color: #4e8f68; color: #eaf3e6; }
  html[data-theme="dark"] .stat.is-shop strong { color: #ffb3cb; }
/* dd-theme-forced-end */


/* ═══════════════════════════════════════════════════════════════════════
   2026-11-27 · 🎛️ 공통 필터·하위 구분 규격 (모든 화면 한 벌)
   · 칩: 높이 36px · 모서리 알약 · 글자 13px/800 · 아이콘+글자+숫자 한 줄
   · 줄: 라벨 50px 고정 열 + 칩 묶음 → 화면이 바뀌어도 라벨·칩 시작점이 같습니다
   · 활성: 라이트 = 잔디 그린 바탕 + 흰 글자 / 다크 = 밝은 민트 + 진한 글자
     (위험·임박·24시 같은 뜻이 있는 칩만 제 색을 유지합니다)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --chip-h: 36px;
  --chip-fs: 13px;
  --chip-px: 12px;
  --chip-gap: 6px;
  --chip-r: 999px;
  --field-r: 12px;
  --flabel-w: 50px;
}

/* ── 필터 한 줄: 라벨 + 칩 묶음 ── */
.frow { display: grid; grid-template-columns: var(--flabel-w) minmax(0, 1fr); align-items: center; gap: 4px 8px; }
.frow[hidden] { display: none; }
.flabel {
  display: inline-flex; align-items: center; min-height: var(--chip-h);
  font-size: 11px; font-weight: 900; letter-spacing: -.02em; color: var(--ink-mute); line-height: 1.1;
  word-break: keep-all;
}
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--chip-gap); min-width: 0; }
.fchips--two, .fchips--three, .fchips--four { display: grid; gap: var(--chip-gap); }
.fchips--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fchips--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fchips--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fchips--two > *, .fchips--three > *, .fchips--four > * { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; }
/* 2026-11-27 — 「15kg 기준」은 마지막 칩(대형견) 아래 우측에 붙입니다 */
.fnote { grid-column: 1 / -1; font-size: 10.5px; font-weight: 700; color: var(--ink-mute); line-height: 1.3; text-align: right; margin: -1px 0 0; }
.fpicks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--chip-gap); min-width: 0; }

/* ── 칩 공통 뼈대 ── */
.lchip, .qchip, .rchip, .food-risk button, .food-quick button,
.dog-switch .dog-chip, .dog-fav-filter, .lost-reset-chip, .vet-near, .vet-toggle {
  min-height: var(--chip-h);
  padding: 0 var(--chip-px);
  border-radius: var(--chip-r);
  font-size: var(--chip-fs);
  font-weight: 800;
  line-height: 1.1;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap;
  letter-spacing: -.01em;
}
/* 숫자·배지·이모지는 같은 크기로 — 칩마다 들쭉날쭉하지 않게 */
.lchip .lchip-n, .qchip .q-n, .food-risk button .n { font-size: 11.5px; font-weight: 900; }
.lchip .lchip-n { margin-left: 2px; }
.qchip .q-emoji { font-size: 13px; margin-right: 2px; }
.vet-near, .vet-toggle { font-size: 12.5px; }

/* ── 하위 구분(세그먼트) 바: 알약 트랙 + 같은 높이의 칸 ── */
.lost-view, .sort-tabs {
  display: grid; gap: 4px; padding: 4px; max-width: none;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: none;
}
.lost-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sort-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.lost-seg, .sort-tab {
  min-height: 34px; padding: 0 8px; border-radius: 999px;
  font-size: 13px; font-weight: 900; letter-spacing: -.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.lost-seg.is-on, .sort-tab[aria-pressed="true"] {
  background: var(--mint); color: #fff; box-shadow: none;
}
.sort-tab[aria-pressed="true"]:hover { background: var(--mint); color: #fff; }

/* ── 입력칸(셀렉트·검색)도 한 벌 ── */
.fpicks select, .lost-pick select, .vet-sel select, .vet-search input, .food-search, .lost-pick select {
  border-radius: var(--field-r);
}

/* ── 이 섹션 뒤에서 ≤620 규칙이 다시 잡히지 않도록 모바일 보정 ── */
@media (max-width: 620px) {
  :root { --chip-px: 10px; --flabel-w: 48px; }
  .fchips--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-risk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .food-risk button { width: 100%; }
}
@media (min-width: 621px) {
  :root { --flabel-w: 64px; --flabel-w-lg: 64px; }
  .fchips--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  :root { --chip-fs: 12.5px; --flabel-w: 44px; }
  .flabel { font-size: 10.5px; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lchip { background: var(--surface-2); border-color: #35503f; color: #cfe0d4; }
  html:not([data-theme="light"]) .lchip[aria-pressed="true"] { background: #86e6ad; border-color: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .lchip--urgent { border-color: #6b3a29; background: #2a1a15; color: #ffb49a; }
  html:not([data-theme="light"]) .lchip--urgent[aria-pressed="true"] { background: #e2543c; border-color: #e2543c; color: #fff; }
  html:not([data-theme="light"]) .lchip--soon { border-color: #6a5723; background: #2a2417; color: #f0d79a; }
  html:not([data-theme="light"]) .lchip--soon[aria-pressed="true"] { background: #f5c95c; border-color: #f5c95c; color: #2a1d00; }
  html:not([data-theme="light"]) .lchip--fav { background: rgba(229, 72, 111, .16); border-color: #5c2f3c; color: #ffc2cf; }
  html:not([data-theme="light"]) .lchip--fav[aria-pressed="true"] { background: #d9536f; border-color: #d9536f; color: #fff; }
  html:not([data-theme="light"]) .dog-chip.is-on { background: #86e6ad; border-color: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .dog-chip.is-on .dog-chip-num { background: rgba(8, 32, 21, .18); color: #082015; }
  html:not([data-theme="light"]) .lost-view, html:not([data-theme="light"]) .sort-tabs { background: var(--surface-2); border-color: var(--line); }
  html:not([data-theme="light"]) .lost-seg.is-on, html:not([data-theme="light"]) .sort-tab[aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .lost-seg.is-on:hover { color: #082015; }
  html:not([data-theme="light"]) .vet-near.is-on { background: #86e6ad; border-color: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .vet-filters .vet-sel > span, html:not([data-theme="light"]) .flabel { color: var(--ink-mute); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .lchip { background: var(--surface-2); border-color: #35503f; color: #cfe0d4; }
  html[data-theme="dark"] .lchip[aria-pressed="true"] { background: #86e6ad; border-color: #86e6ad; color: #082015; }
  html[data-theme="dark"] .lchip--urgent { border-color: #6b3a29; background: #2a1a15; color: #ffb49a; }
  html[data-theme="dark"] .lchip--urgent[aria-pressed="true"] { background: #e2543c; border-color: #e2543c; color: #fff; }
  html[data-theme="dark"] .lchip--soon { border-color: #6a5723; background: #2a2417; color: #f0d79a; }
  html[data-theme="dark"] .lchip--soon[aria-pressed="true"] { background: #f5c95c; border-color: #f5c95c; color: #2a1d00; }
  html[data-theme="dark"] .lchip--fav { background: rgba(229, 72, 111, .16); border-color: #5c2f3c; color: #ffc2cf; }
  html[data-theme="dark"] .lchip--fav[aria-pressed="true"] { background: #d9536f; border-color: #d9536f; color: #fff; }
  html[data-theme="dark"] .dog-chip.is-on { background: #86e6ad; border-color: #86e6ad; color: #082015; }
  html[data-theme="dark"] .dog-chip.is-on .dog-chip-num { background: rgba(8, 32, 21, .18); color: #082015; }
  html[data-theme="dark"] .lost-view, html[data-theme="dark"] .sort-tabs { background: var(--surface-2); border-color: var(--line); }
  html[data-theme="dark"] .lost-seg.is-on, html[data-theme="dark"] .sort-tab[aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html[data-theme="dark"] .lost-seg.is-on:hover { color: #082015; }
  html[data-theme="dark"] .vet-near.is-on { background: #86e6ad; border-color: #86e6ad; color: #082015; }
  html[data-theme="dark"] .vet-filters .vet-sel > span, html[data-theme="dark"] .flabel { color: var(--ink-mute); }
/* dd-theme-forced-end */


/* ── 2026-11-27 공통 규격 마무리: 셀렉트·검색칸·음식 탭 다크 보정 ── */
.fpicks select {
  width: 100%; min-width: 0; appearance: none;
  background-color: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--field-r); padding: 0 30px 0 12px; min-height: 40px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.fpicks select:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
.lost-filters { gap: 8px; }
@media (max-width: 620px) {
  .food-quick { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .vet-filters select, html:not([data-theme="light"]) .vet-search input { background-color: #1c2e23; border-color: #2f4636; color: #e8f1e6; }
  html:not([data-theme="light"]) .food-risk button { background: var(--surface-2); color: var(--ink-soft); border-color: transparent; }
  html:not([data-theme="light"]) .food-risk button[aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .food-risk button[data-risk="danger"][aria-pressed="true"] { background: #e2543c; color: #fff; }
  html:not([data-theme="light"]) .food-risk button[data-risk="caution"][aria-pressed="true"] { background: #f5c95c; color: #2a1d00; }
  html:not([data-theme="light"]) .food-risk button[data-risk="safe"][aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .dog-fav-filter { background: rgba(60, 178, 116, .16); border-color: #35503f; color: #cfe0d4; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .vet-filters select, html[data-theme="dark"] .vet-search input { background-color: #1c2e23; border-color: #2f4636; color: #e8f1e6; }
  html[data-theme="dark"] .food-risk button { background: var(--surface-2); color: var(--ink-soft); border-color: transparent; }
  html[data-theme="dark"] .food-risk button[aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html[data-theme="dark"] .food-risk button[data-risk="danger"][aria-pressed="true"] { background: #e2543c; color: #fff; }
  html[data-theme="dark"] .food-risk button[data-risk="caution"][aria-pressed="true"] { background: #f5c95c; color: #2a1d00; }
  html[data-theme="dark"] .food-risk button[data-risk="safe"][aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html[data-theme="dark"] .dog-fav-filter { background: rgba(60, 178, 116, .16); border-color: #35503f; color: #cfe0d4; }
/* dd-theme-forced-end */


/* ── 넓은 화면: 칩이 화면 끝까지 늘어나지 않게 폭 상한 ── */
@media (min-width: 621px) {
  .lost-view { max-width: 520px; }
  .fchips--two { grid-template-columns: repeat(2, minmax(0, 200px)); }
  .fchips--three { grid-template-columns: repeat(3, minmax(0, 150px)); }
  .fchips--four { grid-template-columns: repeat(4, minmax(0, 150px)); }
  .fpicks { grid-template-columns: repeat(2, minmax(0, 240px)); }
}

/* web-only-daangn-cafe-start */
/* ═══════════════════════════════════════════════════════════
   2026-11-28 · 🥕 견주 모임 당근 카페 유입 배너 (웹 전용)
   운동장 목록과 「가기 전, 이 3가지만」 사이 한 곳에만 둡니다.
   앱인토스 번들에는 이 블록이 HTML·CSS 모두 들어가지 않습니다
   (projects/dog-playground-toss/scripts/from-web.mjs 가 제거).
   ═══════════════════════════════════════════════════════════ */
.cafe-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 26px 0 0;
  padding: 13px 15px;
  background: linear-gradient(135deg, #fff7ee 0%, #fffdf7 52%, #fff2e4 100%);
  border: 1.5px solid #ffdcbd;
  border-radius: var(--r-m);
  box-shadow: 0 1px 2px rgba(120, 74, 30, .04), 0 10px 22px -18px rgba(120, 74, 30, .35);
  word-break: keep-all;
}
.cafe-banner-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ffdcbd;
  font-size: 20px;
  line-height: 1;
}
.cafe-banner-copy {
  flex: 1 1 140px;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.cafe-banner-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #8a3d00;
}
.cafe-banner-text {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #7b5a45;
}
.cafe-banner-link {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ff6f0f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px -10px rgba(255, 111, 15, .9);
}
.cafe-banner-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cafe-banner-link:hover { background: #ec6208; color: #fff; }
.cafe-banner-link:active { transform: translateY(1px); }
.cafe-banner-link:focus-visible { outline: 2.5px solid #8a3d00; outline-offset: 2px; }
@media (max-width: 440px) {
  .cafe-banner { gap: 9px 10px; padding: 12px; }
  .cafe-banner-ico { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
  .cafe-banner-title { font-size: 14px; }
  .cafe-banner-text { font-size: 12px; }
  .cafe-banner-link { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cafe-banner {
  background: linear-gradient(135deg, #2b1e15 0%, #241a13 55%, #2c1f15 100%);
  border-color: #5b3a24;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 22px -18px rgba(0, 0, 0, .8);
}
  html:not([data-theme="light"]) .cafe-banner-ico { background: #35241a; border-color: #5b3a24; }
  html:not([data-theme="light"]) .cafe-banner-title { color: #ffc79b; }
  html:not([data-theme="light"]) .cafe-banner-text { color: #d7b69c; }
  html:not([data-theme="light"]) .cafe-banner-link { background: #ff8a3d; color: #2a1400; }
  html:not([data-theme="light"]) .cafe-banner-link:hover { background: #ffa05c; color: #2a1400; }
  html:not([data-theme="light"]) .cafe-banner-link:focus-visible { outline-color: #ffc79b; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .cafe-banner {
  background: linear-gradient(135deg, #2b1e15 0%, #241a13 55%, #2c1f15 100%);
  border-color: #5b3a24;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 22px -18px rgba(0, 0, 0, .8);
}
  html[data-theme="dark"] .cafe-banner-ico { background: #35241a; border-color: #5b3a24; }
  html[data-theme="dark"] .cafe-banner-title { color: #ffc79b; }
  html[data-theme="dark"] .cafe-banner-text { color: #d7b69c; }
  html[data-theme="dark"] .cafe-banner-link { background: #ff8a3d; color: #2a1400; }
  html[data-theme="dark"] .cafe-banner-link:hover { background: #ffa05c; color: #2a1400; }
  html[data-theme="dark"] .cafe-banner-link:focus-visible { outline-color: #ffc79b; }
/* dd-theme-forced-end */


/* web-only-daangn-cafe-end */
/* 2026-11-28 · 다크 모드에서 「가기 전, 이 3가지만」 카드 글자가 묻히던 문제 보정.
   라이트 전용 그라데이션(#e6faec 등)을 그대로 쓰는데 글자색만 다크로 바뀌어
   흰 바탕에 흰 글씨가 되던 부분 — 배경을 야간 잔디 톤으로 바꿉니다. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .tip { border-color: var(--line); }
  html:not([data-theme="light"]) .tip--mint { background: linear-gradient(160deg, rgba(60, 178, 116, .22), var(--surface)); }
  html:not([data-theme="light"]) .tip--sun { background: linear-gradient(160deg, rgba(238, 176, 42, .18), var(--surface)); }
  html:not([data-theme="light"]) .tip--sky { background: linear-gradient(160deg, rgba(74, 166, 216, .18), var(--surface)); }
  html:not([data-theme="light"]) .tip h3 { color: var(--ink); }
  html:not([data-theme="light"]) .tip p { color: var(--ink-soft); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .tip { border-color: var(--line); }
  html[data-theme="dark"] .tip--mint { background: linear-gradient(160deg, rgba(60, 178, 116, .22), var(--surface)); }
  html[data-theme="dark"] .tip--sun { background: linear-gradient(160deg, rgba(238, 176, 42, .18), var(--surface)); }
  html[data-theme="dark"] .tip--sky { background: linear-gradient(160deg, rgba(74, 166, 216, .18), var(--surface)); }
  html[data-theme="dark"] .tip h3 { color: var(--ink); }
  html[data-theme="dark"] .tip p { color: var(--ink-soft); }
/* dd-theme-forced-end */


/* ═══════════════════════════════════════════════════════════════════════
   2026-11-28 · 📱 상단 바 슬림화 (사용자 요청)
   · sticky 해제 — 스크롤을 내려도 상단 바가 화면을 덮지 않습니다(맨 위에만).
   · 폰에서도 한 줄: [🐾 제목] … [🎵][🐕][❤️][☰ 분류] — 분류가 맨 오른쪽.
     세 버튼은 아이콘만 남긴 30~32px 알약이라 390px에서도 넘치지 않습니다.
     (버튼 이름은 aria-label·title 로 남아 스크린리더·길게 누르기에 그대로)
   ═══════════════════════════════════════════════════════════════════════ */
.topbar { position: relative; top: auto; z-index: 50; }

@media (max-width: 620px) {
  :root { --topbar-h: 52px; }
  .topbar-in {
    display: flex; align-items: center; gap: 8px;
    height: auto; min-height: 52px; padding: 8px 12px 9px;
  }
  .brand { flex: 0 1 auto; min-width: 0; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-text strong { font-size: 16.5px; letter-spacing: -.05em; }
  .topbar-meta { margin-left: auto; width: auto; flex: 0 0 auto; gap: 5px; }
  .topbar-dog { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 0 0 auto; }
  .topbar-dog .mydog-pill { border-radius: 999px; border-right-color: #cfeadd; padding: 0; }
  .topbar-meta > .bgm-btn,
  .topbar-dog > .mydog-pill,
  .topbar-dog > .fav-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; min-width: 32px; min-height: 0;
    padding: 0; gap: 0; border-radius: 999px; flex: 0 0 auto; font-size: 14px;
  }
  /* 아이콘만 — 상단 바(.topbar) 안에서만. 앱인토스 히어로 퀵버튼(.hero-quick)은 글자를 그대로 둡니다.
     위쪽 620px 블록의 「.fav-pill .fav-pill-label { display: inline }」보다 우선하도록 같이 지정 */
  .topbar .bgm-btn .bgm-label,
  .topbar .mydog-pill .mydog-pill-label,
  .topbar .fav-pill .fav-pill-label { display: none; }
  .bgm-btn .bgm-ico, .mydog-pill .mydog-pill-ico, .fav-pill .fav-pill-ico { font-size: 15px; }
  .fav-pill { margin-left: 0; width: auto; min-width: 32px; padding: 0 8px; gap: 2px; }
  .fav-pill .fav-pill-n { min-width: 14px; padding: 1px 4px; font-size: 10px; }
  .sector-menu { flex: 0 0 auto; margin-left: 1px; }
  .menu-btn { height: 32px; padding: 0 10px 0 8px; gap: 4px; }
  .menu-btn .menu-btn-ico, .menu-btn .menu-btn-label { font-size: 12.5px; }
}

@media (prefers-color-scheme: dark) and (max-width: 620px) {
  /* 아이콘만 남긴 알약 — 다크에서는 테두리를 한 단계 어둡게 */
  html:not([data-theme="light"]) .topbar-dog .mydog-pill { border-right-color: var(--line); }
}
/* dd-theme-forced-start */
@media (max-width: 620px) {
  /* 아이콘만 남긴 알약 — 다크에서는 테두리를 한 단계 어둡게 */
  html[data-theme="dark"] .topbar-dog .mydog-pill { border-right-color: var(--line); }
}
/* dd-theme-forced-end */


@media (max-width: 430px) {
  .topbar-in { padding: 8px 10px 9px; gap: 6px; }
  .brand { gap: 6px; }
  .brand-mark { width: 27px; height: 27px; border-radius: 9px; }
  .brand-mark svg { width: 16px; height: 16px; }
  .brand-text strong { font-size: 15px; letter-spacing: -.05em; }
  .topbar-meta { gap: 4px; }
  .topbar-dog { gap: 4px; }
  .topbar-meta > .bgm-btn,
  .topbar-dog > .mydog-pill,
  .topbar-dog > .fav-pill { width: 30px; min-width: 30px; height: 30px; }
  .fav-pill { width: auto; min-width: 30px; padding: 0 7px; }
  .menu-btn { height: 30px; padding: 0 9px 0 7px; }
  .menu-btn .menu-btn-ico, .menu-btn .menu-btn-label { font-size: 12px; }
}

@media (max-width: 380px) {
  /* 아주 좁은 폰 — 분류는 ☰ 아이콘만(aria-label 그대로), 제목은 한 단계 더 */
  .brand-text strong { font-size: 14.5px; }
  .menu-btn { padding: 0; width: 30px; height: 30px; justify-content: center; }
  .menu-btn .menu-btn-label { display: none; }
  .menu-btn .menu-btn-ico { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   2026-11-28 · 히어로 제목 한 줄 (사용자 요청)
   「댕댕이 집사 필수, 여기 다 있다멍!」이 두 줄로 꺾이지 않도록
   줄바꿈을 없애고, 폭에 맞춰 글자 크기가 줄어들게 했습니다.
   · 자간 -.02em · 어절 유지(keep-all) — 320px까지 한 줄 유지
   ═══════════════════════════════════════════════════════════════════════ */
.hero h1 {
  font-size: clamp(15px, 5.55vw, 33px);
  letter-spacing: -.02em; line-height: 1.3;
  white-space: nowrap; word-break: keep-all;
}
.hero h1 .hl { padding: 0 1px; }

/* ═══════════════════════════════════════════════════════════════════════
   2026-11-28 · 🏡 집 찾아줄개 필터 슬림화 (사용자 요청)
   · 늘 보이는 줄은 ① 공고상태 ② 지역·견종 ③ 마감임박 ④ 세부 필터 네 줄.
     크기·성별·중성화는 「세부 필터」 안으로 넣어 기본은 접어 둡니다.
   · 미선택 칩은 회색 채우기 대신 얇은 테두리 + 투명 바탕 (라이트·다크 공통)
     → 알약이 많아도 눈이 덜 아프도록 높이·글자를 한 단계 줄였습니다.
   ═══════════════════════════════════════════════════════════════════════ */
.lost-filters { gap: 7px; border-top: 0; padding-top: 0; }
.lost-filters .lost-dogonly { margin: 0; font-size: 11px; font-weight: 700; color: var(--ink-mute); letter-spacing: -.01em; }

/* 공고상태 — 알약 4칸을 한 줄 트랙에 */
.lost-seg-line {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px;
  padding: 3px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 12px;
}
.lost-seg-line .lchip {
  min-height: 30px; padding: 0 2px; gap: 3px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-soft);
  font-size: 11.5px; font-weight: 800; letter-spacing: -.02em;
}
.lost-seg-line .lchip:hover { background: rgba(47, 168, 95, .10); color: var(--mint-deep); }
.lost-seg-line .lchip[aria-pressed="true"] {
  background: var(--mint); border: 0; color: #fff; font-weight: 900; box-shadow: none;
}

/* 지역·견종 — 두 칸 셀렉트 */
.lost-pick-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lost-pick-line select {
  width: 100%; min-width: 0; height: 34px; padding: 0 10px;
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink-soft); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px;
}
.lost-pick-line select:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 1px; }

/* 마감임박 — 두 알약을 한 줄에 */
.lost-urgent-line { display: flex; flex-wrap: wrap; gap: 6px; }
.lost-urgent-line .lchip {
  min-height: 30px; padding: 0 10px; gap: 4px; background: transparent;
  font-size: 12px; font-weight: 800; letter-spacing: -.01em;
}
.lost-urgent-line .lchip-n { font-size: 11px; font-weight: 900; opacity: .8; }

/* 세부 필터 — 기본 접힘 */
.lost-more {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.lost-more[open] { background: var(--surface); }
.lost-more-sum {
  display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px;
  font-size: 12px; font-weight: 800; letter-spacing: -.01em; color: var(--ink-soft);
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.lost-more-sum::-webkit-details-marker { display: none; }
.lost-more-sum:hover { color: var(--mint-deep); }
.lost-more-sum:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; border-radius: 12px; }
.lost-more-t { flex: 1 1 auto; }
.lost-more-n {
  font-variant-numeric: tabular-nums; min-width: 18px; padding: 1px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 900; text-align: center;
  background: var(--mint); color: #fff;
}
.lost-more-n[hidden] { display: none; }
.lost-more-sum.is-on { color: var(--mint-deep); }
.lost-more-chev { font-size: 10px; line-height: 1; transition: transform .16s; }
.lost-more[open] .lost-more-chev { transform: rotate(180deg); }
.lost-detail-body { display: grid; gap: 6px; padding: 8px 10px 10px; border-top: 1px dashed var(--line); }
.lost-detail-body .flabel { font-size: 10.5px; }
.lost-detail-body .fchips--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lost-detail-body .lchip {
  min-height: 30px; padding: 0 4px; background: transparent;
  font-size: 11.5px; font-weight: 800; letter-spacing: -.02em;
}
.lost-detail-body .lchip[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #fff; }
.lost-detail-body .fnote { font-size: 10px; }

/* 미선택 알약은 회색 채우기 없이 — 라이트·다크 공통 */
.lost-filters .lchip:not([aria-pressed="true"]) { background: transparent; box-shadow: none; }
.lost-urgent-line .lchip--urgent:not([aria-pressed="true"]) { border-color: #f0cdbe; color: #b4492a; }
.lost-urgent-line .lchip--soon:not([aria-pressed="true"]) { border-color: #ecd9ab; color: #8a6a12; }

@media (max-width: 620px) {
  .lost-filters { gap: 6px; }
  .lost-seg-line .lchip { font-size: 11px; }
  .lost-urgent-line .lchip { flex: 1 1 0; justify-content: center; padding: 0 6px; }
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lost-seg-line { background: rgba(255, 255, 255, .035); border-color: #2b3f33; }
  html:not([data-theme="light"]) .lost-seg-line .lchip { background: transparent; color: #c3d4c6; }
  html:not([data-theme="light"]) .lost-seg-line .lchip:hover { background: rgba(134, 230, 173, .12); color: #a9edc4; }
  html:not([data-theme="light"]) .lost-seg-line .lchip[aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .lost-pick-line select { background: #1a2b21; border-color: #2b3f33; color: #cfded2; }
  html:not([data-theme="light"]) .lost-urgent-line .lchip--urgent:not([aria-pressed="true"]) { border-color: #5c3327; color: #ffb49a; }
  html:not([data-theme="light"]) .lost-urgent-line .lchip--soon:not([aria-pressed="true"]) { border-color: #5a4a22; color: #f0d79a; }
  html:not([data-theme="light"]) .lost-more { background: #182a20; border-color: #2b3f33; }
  html:not([data-theme="light"]) .lost-more[open] { background: #16241c; }
  html:not([data-theme="light"]) .lost-more-n { background: #86e6ad; color: #082015; }
  html:not([data-theme="light"]) .lost-more-sum.is-on { color: #a9edc4; }
  html:not([data-theme="light"]) .lost-detail-body { border-top-color: #2b3f33; }
  html:not([data-theme="light"]) .lost-detail-body .lchip[aria-pressed="true"] { background: #86e6ad; border-color: #86e6ad; color: #082015; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .lost-seg-line { background: rgba(255, 255, 255, .035); border-color: #2b3f33; }
  html[data-theme="dark"] .lost-seg-line .lchip { background: transparent; color: #c3d4c6; }
  html[data-theme="dark"] .lost-seg-line .lchip:hover { background: rgba(134, 230, 173, .12); color: #a9edc4; }
  html[data-theme="dark"] .lost-seg-line .lchip[aria-pressed="true"] { background: #86e6ad; color: #082015; }
  html[data-theme="dark"] .lost-pick-line select { background: #1a2b21; border-color: #2b3f33; color: #cfded2; }
  html[data-theme="dark"] .lost-urgent-line .lchip--urgent:not([aria-pressed="true"]) { border-color: #5c3327; color: #ffb49a; }
  html[data-theme="dark"] .lost-urgent-line .lchip--soon:not([aria-pressed="true"]) { border-color: #5a4a22; color: #f0d79a; }
  html[data-theme="dark"] .lost-more { background: #182a20; border-color: #2b3f33; }
  html[data-theme="dark"] .lost-more[open] { background: #16241c; }
  html[data-theme="dark"] .lost-more-n { background: #86e6ad; color: #082015; }
  html[data-theme="dark"] .lost-more-sum.is-on { color: #a9edc4; }
  html[data-theme="dark"] .lost-detail-body { border-top-color: #2b3f33; }
  html[data-theme="dark"] .lost-detail-body .lchip[aria-pressed="true"] { background: #86e6ad; border-color: #86e6ad; color: #082015; }
/* dd-theme-forced-end */


/* dd-theme-ui-start */
/* ═══════════════════════════════════════════════════════════════════════
   2026-11-28 · 🌗 화면 테마 직접 고르기 (사용자 요청)
   · 기본은 기기 설정(prefers-color-scheme) 그대로 — 위쪽 다크 블록이 두 벌로 나뉘어
     「기기 설정 다크」와 「사용자가 고른 다크(html[data-theme="dark"])」에 함께 적용됩니다.
   · 상단 바 오른쪽 ☀️/🌙 원형 버튼 1탭으로 전환. 순서: [🌗][🎵][🐕][❤️][☰ 분류] — 분류는 맨 끝.
   · ☰ 메뉴 안에도 「화면 테마 · 라이트 / 다크」 두 칸을 두어 글자로도 고를 수 있게 했습니다.
   · 어느 쪽이든 고른 값은 이 브라우저(localStorage dd-theme)에만 남습니다(개인정보 아님).
   ═══════════════════════════════════════════════════════════════════════ */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  font: inherit; font-size: 15px; line-height: 1;
  color: var(--mint-deep); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.theme-btn .theme-ico { font-size: 15px; line-height: 1; }
.theme-btn:hover { background: var(--mint-tint); border-color: #cfeadd; }
.theme-btn:active { transform: scale(.96); }
.theme-btn:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }

/* ☰ 메뉴 안 테마 선택 줄 */
.sector-menu-theme {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 6px 8px; padding: 0 0 8px; border-bottom: 1px solid var(--line-soft);
}
.sector-menu-theme-k { font-size: 11px; font-weight: 900; letter-spacing: .04em; color: var(--ink-mute); }
.theme-switch {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px;
}
.theme-opt {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 9px; border-radius: 999px;
  font: inherit; font-size: 11.5px; font-weight: 800; line-height: 1.3;
  color: var(--ink-soft); white-space: nowrap;
}
.theme-opt:hover { color: var(--mint-deep); }
.theme-opt[aria-pressed="true"] {
  background: var(--mint-tint); color: var(--mint-deep);
  box-shadow: inset 0 0 0 1px rgba(47, 163, 107, .38);
}
.theme-opt:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 1px; }

/* 폰 — 기존 🎵·🐕·❤️ 알약과 같은 크기로 줄여 390px 한 줄 유지 */
@media (max-width: 620px) {
  .topbar-meta > .theme-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 999px;
    flex: 0 0 auto; font-size: 14px;
  }
  .theme-btn .theme-ico { font-size: 15px; }
}
@media (max-width: 430px) {
  .topbar-meta > .theme-btn { width: 28px; min-width: 28px; height: 28px; }
  .theme-btn .theme-ico { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .topbar-meta > .theme-btn { width: 26px; min-width: 26px; height: 26px; }
  .theme-btn .theme-ico { font-size: 12.5px; }
  .brand-text strong { font-size: 14.2px; }
}
/* 320px 급 아주 좁은 폰 — 테마 버튼이 한 자리 더 늘어난 만큼 제목을 한 단계 더 줄여 잘리지 않게 */
@media (max-width: 340px) {
  .brand-text strong { font-size: 13.6px; }
}
/* dd-theme-ui-end */

/* ══════════════════════════════════════════════════════════════════
   💬 Q&A · 건의하기 (2026-11-28)
   · 본문을 늘리지 않습니다 — 푸터·☰ 메뉴의 작은 버튼 하나로만 열립니다.
   · 위: 접히는 질문 5개(기본 접힘) / 아래: 개인정보 입력란이 없는 익명 건의.
   · 새로 넣은 글자는 모두 어절 단위 줄바꿈 + 1.6 줄간격 + -0.015em 자간.
   ══════════════════════════════════════════════════════════════════ */

/* 푸터·☰ 메뉴의 작은 열기 버튼 — 두 곳 다 같은 모양 */
.footer-qa,
.menu-qa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  margin: 0; padding: 0 10px; min-height: 28px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--mint-deep);
  font: inherit; font-size: 12px; font-weight: 800;
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
  cursor: pointer;
}
.footer-qa:hover,
.menu-qa-btn:hover { background: var(--mint-tint); border-color: #9fd3b1; }
.footer-qa:active,
.menu-qa-btn:active { transform: translateY(1px); }
.footer-qa:focus-visible,
.menu-qa-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.menu-qa { margin: 6px 2px 2px; }
.menu-qa-btn { width: 100%; min-height: 34px; font-size: 12.5px; border-radius: 10px; }

/* 푸터 한 줄 면책 — 모바일 390px 기준 2줄 이내 */
.footer-note {
  font-size: 12px; line-height: 1.6; letter-spacing: -.015em; word-break: keep-all;
}

/* 어두운 배경 + 아래에서 올라오는 시트 */
.qa-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0; background: rgba(16, 27, 20, .52);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.qa-modal[hidden] { display: none; }
body.is-qa-open { overflow: hidden; }

.qa-sheet {
  display: flex; flex-direction: column;
  width: min(560px, 100%); max-height: min(88vh, 720px);
  background: var(--surface); color: var(--ink);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-m);
  border-top: 1px solid var(--line);
  animation: qa-rise .18s ease-out;
}
@keyframes qa-rise { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qa-sheet { animation: none; } }

.qa-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px 10px; border-bottom: 1px solid var(--line-soft);
}
.qa-title {
  margin: 0; font-size: 15px; font-weight: 900;
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
}
.qa-x {
  flex: 0 0 auto; width: 30px; height: 30px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.qa-x:hover { background: var(--surface-3); }

/* 시트 안쪽만 스크롤 — 머리글은 늘 보입니다 */
.qa-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 14px 16px; }

/* 접히는 질문 5개 */
.qa-faq { display: grid; gap: 6px; margin: 0 0 12px; }
.qa-item { border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-2); }
.qa-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 6px;
  padding: 9px 11px; min-height: 36px;
  font-size: 12.5px; font-weight: 800; color: var(--ink);
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::before {
  content: "＋"; flex: 0 0 auto; color: var(--mint-deep); font-weight: 900; font-size: 11px;
  line-height: 1.55;
}
.qa-item[open] summary::before { content: "－"; }
.qa-item[open] summary { color: var(--mint-deep); }
.qa-item p {
  margin: 0; padding: 0 11px 10px 27px;
  font-size: 12px; color: var(--ink-soft);
  line-height: 1.6; letter-spacing: -.015em; word-break: keep-all;
}

/* 익명 건의 — 개인정보 칸 없음 */
.qa-form { display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 11px; }
.qa-form-k {
  margin: 0 0 2px; font-size: 12.5px; font-weight: 900; color: var(--ink);
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
}
.qa-form-k span { font-size: 11.5px; font-weight: 700; color: var(--ink-mute); }
.qa-label {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: var(--ink-soft);
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
}
.qa-count { color: var(--ink-mute); font-weight: 700; font-variant-numeric: tabular-nums; }
.qa-count[data-full="1"] { color: var(--coral-deep); }
.qa-select,
.qa-text {
  width: 100%; font: inherit; font-size: 12.5px;
  line-height: 1.6; letter-spacing: -.015em; word-break: keep-all;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px;
}
.qa-select { min-height: 38px; }
.qa-text { resize: vertical; min-height: 84px; }
.qa-select:focus-visible,
.qa-text:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.qa-msg {
  margin: 2px 0 0; padding: 7px 10px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700;
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
  background: var(--mint-tint); color: var(--mint-deep);
}
.qa-msg[data-tone="warn"] { background: var(--sun-tint); color: var(--sun-deep); }
.qa-msg[data-tone="send"] { background: var(--sky-tint); color: var(--sky-deep); }
.qa-recent {
  margin: 2px 0 0; font-size: 11px; color: var(--ink-mute);
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
}
.qa-send {
  margin-top: 4px; width: 100%; min-height: 42px;
  border: 0; border-radius: 12px; background: var(--mint); color: #fff;
  font: inherit; font-size: 13px; font-weight: 900;
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all; cursor: pointer;
}
.qa-send:hover { background: var(--mint-deep); }
.qa-send:active { transform: translateY(1px); }
.qa-send[data-busy="1"] { opacity: .7; cursor: progress; }
.qa-send:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.qa-note {
  margin: 0; text-align: center; font-size: 11px; color: var(--ink-mute);
  line-height: 1.55; letter-spacing: -.015em; word-break: keep-all;
}

/* 넓은 화면은 가운데 창으로 */
@media (min-width: 720px) {
  .qa-modal { align-items: center; padding: 24px; }
  .qa-sheet { border-radius: 18px; border: 1px solid var(--line); }
}

/* 아주 좁은 폰(320px) — 좌우 여백만 줄여 한 줄에 담습니다 */
@media (max-width: 360px) {
  .qa-scroll { padding: 8px 10px 14px; }
  .qa-head { padding: 10px 10px 8px; }
  .qa-item summary { font-size: 12px; padding: 8px 9px; }
  .footer-qa { font-size: 11.5px; padding: 0 8px; }
}

/* ── 어두운 테마 보정 (기기 설정) ── */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .qa-sheet { background: var(--surface); border-top-color: var(--line); }
  html:not([data-theme="light"]) .qa-x { background: var(--surface-3); }
  html:not([data-theme="light"]) .footer-qa,
  html:not([data-theme="light"]) .menu-qa-btn { background: var(--surface-2); border-color: var(--line); }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .qa-sheet { background: var(--surface); border-top-color: var(--line); }
html[data-theme="dark"] .qa-x { background: var(--surface-3); }
html[data-theme="dark"] .footer-qa,
html[data-theme="dark"] .menu-qa-btn { background: var(--surface-2); border-color: var(--line); }
/* dd-theme-forced-end */

/* ═══════════════════════════════════════════════════════════
   2026-11-28 · 🧹 장소 카드 컴팩트화 (사용자 요청)
   기본(접힌) 카드 = 제목·구/군 + 우측 무료/유료 + 작은 ❤️·🔗
                   + 사진 1장 + 핵심 태그 1줄 + 액션 한 줄 + ▾ 상세정보 보기
   긴 할인 안내·공식 안내·주소·출처·사진 크레딧은 상세정보 안으로 접었습니다.
   ═══════════════════════════════════════════════════════════ */
.card--compact { gap: 7px; padding: 12px; }
.card--compact .card-head { align-items: flex-start; gap: 8px; }
.card--compact .card-head h3 { font-size: 15.5px; line-height: 1.35; }
.card--compact .card-head h3 span { font-size: 11.5px; margin-top: 1px; }
.card--compact .card-head h3 .card-ico { font-size: 14px; margin-right: 4px; }

/* 머리 오른쪽 — 알약 + 작은 아이콘 두 개를 한 줄에 */
.card-head-side { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.card-head-side .pill { font-size: 11px; font-weight: 900; padding: 4px 8px; }
.card--compact .card-tools--ico { margin: 0; gap: 4px; flex: 0 0 auto; }
.tool-btn--ico {
  width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 9px;
}
.tool-btn--ico .tool-ico { font-size: 13px; }
.tool-btn--ico.tool-btn--fav .tool-ico { font-size: 13.5px; }

/* 사진 1장 — 넓고 낮게(모바일 340px 폭에서 약 136px) */
.card--compact .shots { margin: 0; }
.card--compact .shots-strip.is-one { grid-template-columns: 1fr; }
.card--compact .shot { aspect-ratio: 3 / 1; border-radius: 11px; }
.card--compact .shot--mini { aspect-ratio: 3 / 1; }
.card--compact .mini-credit { font-size: 9px; padding: 1px 5px; }

/* 태그 한 줄 */
.card--compact .card-tags { gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.card--compact .tag { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }

/* 액션 한 줄 — 📞 전화 · 📍 지도 · 🐾 발도장 */
.card-actions.is-three { grid-template-columns: 1.05fr 0.95fr 1fr; gap: 6px; margin-top: 0; }
.card--compact .btn { font-size: 12.5px; font-weight: 800; padding: 9px 6px; border-radius: 11px; gap: 5px; }
.card--compact .btn svg { width: 14px; height: 14px; }
.card--compact .btn-map-emoji { font-size: 12.5px; }

/* ▾ 상세정보 보기 */
.card--compact .detail-toggle { padding: 7px 10px; font-size: 12px; margin-top: 0; }

/* 상세정보 안으로 들어간 공식 안내 */
.card-official { display: flex; flex-wrap: wrap; gap: 8px; }
.card-official:empty { display: none; }
.card-official .btn { font-size: 12.5px; padding: 9px 12px; }
.card-detail .shots-credit { margin-top: 2px; }

@media (max-width: 360px) {
  .card--compact { padding: 11px; }
  .card-actions.is-three { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
  .card--compact .btn { font-size: 11.5px; padding: 8px 4px; }
  .card-head-side .pill { padding: 3px 7px; font-size: 10.5px; }
  .tool-btn--ico { width: 26px; height: 26px; }
}

/* 다크 테마 — 새 카드 부품 보정 (두 벌) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .card-head-side .pill { box-shadow: none; }
  html:not([data-theme="light"]) .card-official .btn--site { background: rgba(74, 166, 216, .16); color: #9bd6f2; border-color: rgba(74, 166, 216, .34); }
  html:not([data-theme="light"]) .card--compact .shot { border-color: #2a4034; background: #1a2b21; }
}
/* dd-theme-forced-start */
html[data-theme="dark"] .card-official .btn--site { background: rgba(74, 166, 216, .16); color: #9bd6f2; border-color: rgba(74, 166, 216, .34); }
html[data-theme="dark"] .card--compact .shot { border-color: #2a4034; background: #1a2b21; }
/* dd-theme-forced-end */
