/* =========================================================================
   포켓몬카드모아 — style.css
   모바일 우선 · 옐로/네이비 톤 · 카드형 UI
   ========================================================================= */

:root {
  --navy: #101f3c;
  --navy-2: #1b2f57;
  --navy-3: #27406e;
  --yellow: #ffcb05;
  --yellow-2: #ffd93d;
  --yellow-soft: #fff4c7;
  --blue: #2f6df6;
  --blue-soft: #e9f0ff;
  --paper: #f5f7fb;
  --card: #ffffff;
  --line: #e5eaf3;
  --line-2: #eef1f7;
  --ink: #14203a;
  --ink-2: #33415c;
  --muted: #65718a;
  --muted-2: #6b7689;
  --green: #12854a;
  --green-soft: #e5f6ec;
  --amber: #b26a06;
  --amber-soft: #fdf3e0;
  --grey: #77839a;
  --grey-soft: #eef1f6;
  --red: #c0392b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 60, 0.05), 0 4px 14px rgba(16, 31, 60, 0.05);
  --shadow: 0 2px 6px rgba(16, 31, 60, 0.06), 0 18px 40px rgba(16, 31, 60, 0.09);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--navy); }

:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ------------------------------------------------------------- 공통 요소 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 16px rgba(255, 203, 5, 0.35); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

/* ── 헤더 「문의하기」 (2026-11-20) ──
   회색 글자처럼 보이던 문제 수정: 흰 바탕 + 남색 1.5px 테두리(대배 15:1)에 ✉ 아이콘,
   높이 38px · 13.5px 굵은 글자. å 작은 화면(359px 이하)에서도 숨기지 않습니다. */
.header-actions .btn.header-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 15px;
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 31, 60, 0.08);
}
.header-actions .btn.header-inquiry::before { content: "✉"; font-size: 13px; font-weight: 400; }
.header-actions .btn.header-inquiry:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 679px) {
  .header-actions .btn.header-inquiry { min-height: 36px; padding: 7px 11px; font-size: 13px; }
}

/* ── 헤더 「📲 앱 설치」 (2026-11-25) ──
   PWA 로 홈 화면에 추가할 수 있는 브라우저에서만 pwa.js 가 hidden 을 풉니다.
   브랜드 옐로 알약 + 남색 글자로 다른 두 버튼(문의하기·재고 제보)과 구분합니다. */
.header-actions .btn.header-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1.5px solid rgba(16, 31, 60, 0.12);
  background: var(--yellow);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(16, 31, 60, 0.08);
}
/* 패밀리 브랜드 공통 규칙: 글자색은 그대로 --navy — 노랑 위에서도 8.6:1 로 읽힙니다. */
.header-actions .btn.header-install:hover { background: var(--yellow-2); }
.header-install .install-ico { font-size: 14px; line-height: 1; }
/* 좁은 폭은 헤더가 빡빡해 아이콘만 남깁니다(글자는 읽히지 않게 두되 스크린리더에는 남김).
   680~899px 는 브랜드·5탭·문의·제보로 이미 한 줄이 꽉 차서 버튼을 숨깁니다(아래 규칙). */
@media (min-width: 900px) and (max-width: 1119px) {
  .header-actions .btn.header-install { padding: 9px 10px; min-width: 38px; justify-content: center; }
  .header-actions .btn.header-install .install-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}
@media (min-width: 680px) and (max-width: 899px) {
  .header-actions .btn.header-install { display: none; }
}
.btn-block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grey-soft);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-yellow { background: var(--yellow-soft); color: #7a5a00; }
.chip-blue { background: var(--blue-soft); color: #1f4fbe; }
.chip-line { background: #fff; border: 1px solid var(--line); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.in { background: var(--green-soft); color: var(--green); }
.status-badge.check { background: #f1f4fa; color: #475569; }
.status-badge.check::before { background: #fff; border: 2px solid #64748b; box-sizing: border-box; }
.status-badge.none { background: var(--grey-soft); color: var(--grey); }
/* 세븐일레븐 정책상 매장 위치만 안내 — 실패(주황)가 아닌 중립 안내 톤 */
.status-badge.policy { background: #edf2fa; color: #3d5474; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
}

.section { padding: 44px 0; }
[id] { scroll-margin-top: 78px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.section-head .head-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-head .head-link:hover { text-decoration: underline; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ----------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--navy), var(--navy-3));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(16, 31, 60, 0.22);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.09em;
  font-weight: 700;
}
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; --moa-tab-count: 5; }
.nav-btn {
  border: 0;
  background: none;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: var(--paper); color: var(--ink); }
.nav-btn.is-active { background: var(--navy); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.header-date {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.header-date::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 133, 74, 0.14);
}
/* 헤더 「데이터 기준」 배지 — 모든 폭에서 화면에 나오지 않게 숨김(2026-11-25 요청, v4.53).
   마크업(.header-date, data-copy="headerDate")은 지우지 않고 그대로 둡니다 — 모아 어드민
   ③ 문구 화면이 이 키를 계속 찾아 편집할 수 있어야 하고, 지우면 미리보기에서 대상이 사라집니다.
   데이터 기준일 안내는 아래 푸터(footerDataDate)에 그대로 남아 있습니다. */
.header-date { display: none; }

/* --------------------------------------------------------------- 히어로 */
.hero {
  position: relative;
  margin: 20px 0 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 203, 5, 0.24), transparent 62%),
    radial-gradient(600px 380px at 5% 110%, rgba(47, 109, 246, 0.32), transparent 65%),
    linear-gradient(135deg, #0b1830 0%, #152a4f 52%, #1f3a69 100%);
  color: #fff;
  padding: 34px 26px 30px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  mask-image: linear-gradient(120deg, black 30%, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 26px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero-tag b { color: var(--yellow); }
.hero h1 {
  margin: 16px 0 0;
  font-size: 31px;
  line-height: 1.24;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-sub { margin: 12px 0 0; color: #c6d3ea; font-size: 14.5px; max-width: 640px; }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.price-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: 118px;
}
.price-box span { display: block; font-size: 11.5px; color: #a9b9d6; font-weight: 600; }
.price-box strong { display: block; font-size: 19px; letter-spacing: -0.02em; margin-top: 2px; }
.price-box.is-key {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}
.price-box.is-key span { color: #7a5a00; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* 광고 — 애드센스 Auto Ads가 콘텐츠 화면에만 자동으로 붙습니다.
   빈 광고 플레이스홀더 박스는 두지 않습니다(2026-11-20 정책 대응). */

/* --------------------------------------------------------- 정가 구매처 */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.channel-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8e0ee; }
.channel-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.channel-kind {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.channel-kind.official { background: var(--yellow-soft); color: #7a5a00; }
.channel-kind.online { background: var(--blue-soft); color: #1f4fbe; }
.channel-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 999px;
  padding: 3px 9px;
}
.channel-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.channel-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.channel-price strong { font-size: 24px; letter-spacing: -0.03em; }
.channel-price span { font-size: 12.5px; color: var(--muted); }
.channel-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.channel-features li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.channel-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yellow);
}
.channel-tip {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}
.channel-tip b { color: var(--navy); }
.channel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.channel-links a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 7px 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.channel-links a:hover { border-color: var(--navy); background: var(--paper); }
.channel-links a::after { content: "↗"; font-size: 11px; color: var(--muted); }

/* ----------------------------------------------------------- 카드팩 트렌드 */
.trend-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.trend-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.trend-card.is-hot { border-color: var(--yellow); box-shadow: 0 10px 30px rgba(255, 203, 5, 0.18); }
.trend-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-2));
}
.trend-card:not(.is-hot)::before { background: linear-gradient(90deg, #dbe3f0, #eef1f7); }
.trend-head { display: flex; align-items: center; gap: 8px; }
.trend-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
}
.trend-card.is-hot .trend-tag { background: var(--navy); color: var(--yellow); }
.trend-head .trend-code { font-size: 11px; color: var(--muted-2); font-weight: 700; margin-left: auto; }
.trend-card h3 { margin: 10px 0 2px; font-size: 18px; letter-spacing: -0.02em; }
.trend-price { display: flex; gap: 16px; margin: 10px 0 6px; }
.trend-price div { font-size: 12px; color: var(--muted); }
.trend-price strong { display: block; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.trend-config { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.trend-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.trend-note { font-size: 12.5px; color: var(--ink-2); margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ------------------------------------------------------------ 체크 포인트 */
.tip-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tip-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.tip-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--yellow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.tip-card h4 { margin: 0 0 3px; font-size: 14.5px; }
.tip-card p { margin: 0; font-size: 12.8px; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------- 제휴 슬롯 */
.affiliate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff9e0, #fff 70%);
  border: 1.5px solid #ffe58a;
}
.affiliate-head { display: flex; align-items: center; gap: 8px; }
.affiliate-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #fff;
  border: 1px solid #ffdf7a;
  color: #8a6a00;
  padding: 3px 8px;
  border-radius: 6px;
}
.affiliate h4 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.affiliate p { margin: 0; font-size: 12.5px; color: var(--muted); }
.affiliate .affiliate-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.affiliate small { font-size: 11px; color: var(--muted-2); }

/* 실제 제휴 배너 (쿠팡 파트너스 위젯 iframe 120×240, 넓은 화면 3열 · 좁은 화면 2+1 가운데 정렬) */
.affiliate .affiliate-widget {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 6px 0 2px;
  min-width: 0;
  max-width: 100%;
}
.affiliate .affiliate-slot {
  flex: 0 0 120px;
  width: 120px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 27, 61, 0.06);
}
.affiliate .affiliate-slot iframe {
  display: block;
  width: 120px;
  height: 240px;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
/* v4.45 — 모바일(≤480px)에서도 120×240 위젯 3개가 한 줄(3열)
   390px 화면: 안쪽 폭 390-36(wrap)-28(카드 여백)=326px, 슬롯 100×3 + 6×2 = 312px → 잘림·가로 스크롤 없이 들어갑니다.
   슬롯 상자를 100×200 으로 고정하고 내부 iframe 은 0.8333 배율로 줄여 원래 비율(120×240)을 그대로 유지합니다. */
@media (max-width: 480px) {
  .affiliate { padding: 12px; }
  .affiliate .affiliate-widget {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0 0;
    overflow: hidden;
  }
  .affiliate .affiliate-slot {
    flex: 0 0 100px;
    width: 100px;
    height: 200px;
    border-radius: 10px;
  }
  .affiliate .affiliate-slot iframe {
    width: 120px;
    height: 240px;
    max-width: none;
    transform: scale(0.8333333);
    transform-origin: top left;
    border-radius: 10px;
  }
}
/* 360~375px(아이폰 mini·SE 등) — 카드 안쪽 폭 300~315px 에 3열이 들어가도록 92×184 슬롯 */
@media (max-width: 375px) {
  .affiliate .affiliate-slot { flex: 0 0 92px; width: 92px; height: 184px; }
  .affiliate .affiliate-slot iframe { transform: scale(0.7666667); }
}
/* 359px 이하(≈320px) — 안쪽 폭 320-36-24=260px 에 3열이 들어가도록 80×160 슬롯 */
@media (max-width: 359px) {
  .affiliate { padding: 12px; }
  .affiliate .affiliate-widget { gap: 6px; }
  .affiliate .affiliate-slot { flex: 0 0 80px; width: 80px; height: 160px; }
  .affiliate .affiliate-slot iframe { transform: scale(0.6666667); }
}
.affiliate .affiliate-disclosure {
  display: block;
  padding-top: 10px;
  border-top: 1px dashed #ffe58a;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ 지도 */
.map-page-head { padding: 26px 0 6px; }
.map-page-head h1 { margin: 6px 0 8px; font-size: 27px; letter-spacing: -0.03em; }
.map-page-head p { margin: 0; color: var(--muted); max-width: 720px; font-size: 14px; }

/* v4.62 — 지도 머리글 「핵심 1줄 + 자세히 보기」（2026-11-27）
   9줄짜리 설명 문단과 안내 상자를 접어 두고, 지도까지 스크롤을 줄인다. */
.map-page-head .map-brief-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
  max-width: 860px;
  font-size: 14px;
  line-height: 1.6;
}
/* v4.65 — 밑줄 텍스트 대신 눈에 띄는 알약(배지) 버튼으로: 테두리·배경·아이콘(▲/▼) */
.map-brief-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #cfdcf0;
  border-radius: 999px;
  background: #eef3fb;
  color: #17325c;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(16, 31, 60, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.map-brief-toggle i { font-style: normal; font-size: 9px; line-height: 1; }
.map-brief-toggle[aria-expanded="true"] { background: #e4edfb; border-color: #bccfe9; }
.map-brief-toggle:hover { background: #dbe7f9; border-color: #a9c0e2; color: #0f2a6b; }
.map-brief-toggle:focus-visible { outline: 2px solid #2f6df6; outline-offset: 2px; }
.map-brief-detail { margin: 12px 0 0; }
.map-brief-detail .demo-notice { margin: 0 0 12px; }
.map-brief-lead {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 14px;
  line-height: 1.65;
}
/* 피규어 모드에서는 GS25 단독 안내(notice-figure)가 반드시 보여야 해 접힘을 풀고 토글은 숨간다 */
/* v4.65 — 사용자가 「숨기기」를 눌러 hidden 이 남아 있어도(전역 `[hidden]{display:none!important}`)
   피규어 모드에서는 GS25 단독 안내가 보이도록 상세를 펼친다. */
body.figure-mode .map-brief-detail,
body.figure-mode .map-brief-detail[hidden] { display: block !important; }
body.figure-mode .map-brief-toggle { display: none; }

.demo-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #ffe6a3;
  font-size: 12.5px;
  color: #6b5200;
  line-height: 1.55;
  margin: 14px 0;
}
.demo-notice b { color: #4a3900; }
.demo-notice .demo-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
}

/* v4.66 — 검색 → 진행률 → 지도 순서로 재배치되면서 툴바가 이 탭의 첫 카드가 됐습니다.
   아래 현황(진행률·4사 요약) 카드와 지도 카드는 각자 닫힌 카드라, 툴바도 자기 테두리와 둥근 모서리를 갖습니다. */
.map-toolbar {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 14px;
  min-width: 0;
}
.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.toolbar-row .row-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 34px 9px 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  min-width: 200px;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
}

/* 전국 지역 선택기 (시·도 + 시·군·구 + 동네 검색) */
.select-province select { min-width: 92px; }
.select-district select { min-width: 186px; max-width: 250px; }
.region-search { position: relative; flex: 1 1 200px; min-width: 168px; max-width: 268px; }
.region-search-input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.region-search-input::placeholder { color: #9aa6ba; font-weight: 500; }
.region-search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.14); }
.region-suggest {
  position: absolute;
  z-index: 40;
  top: calc(100% + 5px);
  left: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 292px;
  max-width: 360px;
  max-height: 272px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(16, 31, 60, 0.18);
}
.region-suggest[hidden] { display: none; }
.region-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
}
.region-suggest-item strong { font-weight: 800; }
.region-suggest-item span { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.region-suggest-item.is-active,
.region-suggest-item:hover { background: var(--blue-soft); }
.region-suggest-empty { padding: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.brand-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
}
.brand-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
}
.brand-chip:hover { border-color: #cbd5e5; color: var(--ink); }
.brand-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 카드 상품 필터 (매장별 취급·재고 카드명) */
.product-row { align-items: flex-start; }
.product-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  min-width: 0;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
}
.product-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s;
}
.product-chip:hover { border-color: #cbd5e5; color: var(--ink); }
.product-chip.is-active { background: var(--yellow-soft); border-color: var(--yellow); color: #6b4a00; }
.radius-group { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 3px; gap: 2px; }
.radius-btn {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.radius-btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 5px rgba(16, 31, 60, 0.12); }
.toolbar-spacer { margin-left: auto; }
.toolbar-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.toolbar-count b { color: var(--ink); }
/* 항목 단위로 줄바꿈 — 줄 끝에 '·' 만 남는 일이 없게 */
.toolbar-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}
.toolbar-count .mc { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.toolbar-count .mc + .mc::before { content: "·"; color: var(--muted-2); margin-right: 2px; }

.map-body {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  background: #fff;
}
.map-shell {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #eef1f6;
  touch-action: none;
  cursor: grab;
  /* Leaflet pane(z-index 400~800)·마커(999)가 페이지 전체 스택으로 새어 나와
     모달·토스트 위에 그려지는 것을 막는다(지도 내부 레이어링은 그대로). */
  isolation: isolate;
}
.map-shell.is-dragging { cursor: grabbing; }
.map-shell svg.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-layer { position: absolute; inset: 0; pointer-events: none; }
.map-layer > * { pointer-events: auto; }

.map-marker {
  position: absolute;
  left: 0; top: 0;
  margin-left: -19px;
  margin-top: -42px;
  width: 38px;
  height: 48px;
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 6px rgba(16, 31, 60, 0.22));
  transition: filter 0.15s;
  z-index: 2;
}
.map-marker .pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand, var(--navy));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.02em;
  border: 3px solid #94a3b8;
  position: relative;
}
.map-marker .pin::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--brand, var(--navy));
}
.map-marker.status-in .pin { border-color: var(--green); }
.map-marker.status-check .pin { border-color: #64748b; }
.map-marker.status-none .pin { border-color: #94a3b8; opacity: 0.82; }
.map-marker .pin-label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 31, 60, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.map-marker:hover { z-index: 6; }
.map-marker:hover .pin-label,
.map-marker.is-selected .pin-label { opacity: 1; }
.map-marker.is-selected { z-index: 7; }
.map-marker.is-selected .pin { box-shadow: 0 0 0 5px rgba(255, 203, 5, 0.55); transform: scale(1.08); }

.map-origin { position: absolute; left: 0; top: 0; pointer-events: none; }
.map-origin .origin-dot {
  position: absolute;
  left: -7px; top: -7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.2);
}
.map-origin .origin-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(47, 109, 246, 0.45);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}
.map-origin .origin-label {
  position: absolute;
  left: 14px; top: -20px;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.map-controls {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 8;
}
.map-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  place-items: center;
  line-height: 1;
}
.map-btn:hover { background: #fff; border-color: #cdd7e6; }
.map-btn.is-small { font-size: 12px; }

.map-hint {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  z-index: 6;
  pointer-events: none;
}

.map-legend {
  position: absolute;
  left: 12px; bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  z-index: 6;
  flex-wrap: wrap;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.map-legend .l-in { background: var(--green); }
/* 미조회 — 고정 색을 주지 않고 '흰 바탕 + 회색 테두리 빈 원(○)'으로 구분한다.
   (노란 이마트24 배지·점과 헷갈리지 않게, 어떤 브랜드 색과도 겹치지 않는 모양) */
.map-legend .l-check {
  width: 11px; height: 11px;
  background: #fff;
  border: 2px solid #64748b;
  box-sizing: border-box;
}
.map-legend .l-none { background: #94a3b8; }
.map-legend .l-policy { background: #8aa0bd; }

.map-scale {
  position: absolute;
  right: 12px; bottom: 14px;
  z-index: 6;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 3px 7px 5px;
  pointer-events: none;
}
.map-scale .bar {
  height: 5px;
  border: 1.5px solid #64708a;
  border-top: 0;
  width: 78px;
  transition: width 0.1s;
}
.map-scale .txt { font-size: 9.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }

.map-popup {
  position: absolute;
  z-index: 12;
  width: 300px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 31, 60, 0.22);
  padding: 13px;
  font-size: 13px;
}
.popup-head { display: flex; align-items: flex-start; gap: 9px; }
.popup-brand {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.popup-title { min-width: 0; }
.popup-title strong { display: block; font-size: 14px; letter-spacing: -0.02em; line-height: 1.35; }
.popup-title span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.popup-close {
  margin-left: auto;
  border: 0;
  background: var(--paper);
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
}
.popup-close:hover { background: #e9edf4; }
.popup-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.popup-note { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.popup-demo { margin: 0 0 10px; font-size: 10.5px; color: var(--muted-2); }
.popup-link { width: 100%; }

.map-side {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.map-side-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fcfdff;
}
.map-side-head strong { font-size: 13.5px; }
.map-side-head span { font-size: 11.5px; color: var(--muted); }
.store-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 7px; max-height: 520px; overflow-y: auto; }
.store-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.store-item:hover { border-color: #cfd9e8; box-shadow: var(--shadow-sm); }
.store-item.is-active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(16, 31, 60, 0.08); }
.store-item .s-top { display: flex; align-items: center; gap: 7px; }
.store-item .s-brand {
  /* 브랜드명을 그대로 읽을 수 있게 폭을 글자에 맞춘다(숫자 '24'·'7'만 쓰지 않는다) */
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.store-item .s-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-item .s-dist { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.store-item .s-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.store-item .s-meta small { font-size: 10.5px; color: var(--muted-2); }

/* 매장별 취급·재고 카드 상품명 태그 */
.store-products { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 3px; }
.p-head-label {
  color: var(--navy) !important;
  background: #eef3fb !important;
  border-color: #dbe4f4 !important;
}
.p-head {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--red);
  background: #fdeceb;
  border: 1px solid #f6d5d2;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}
.p-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-2);
  background: #f4f7fc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.p-tag i { font-style: normal; font-weight: 600; color: var(--muted); }
.p-tag.is-in { background: var(--green-soft); border-color: #cbead8; color: var(--green); }
.p-tag.is-in i { color: #2f8d5f; }
.p-tag.is-low { background: var(--amber-soft); border-color: #f3e0bf; color: var(--amber); }
.p-tag.is-low i { color: #a2762f; }
.p-tag.is-check { background: var(--blue-soft); border-color: #d5e2fb; color: #2456c0; }
.p-tag.is-check i { color: #4a6da8; }
.p-tag.is-soldout { background: var(--grey-soft); border-color: #e0e5ee; color: var(--grey); }
.p-tag.is-soldout i { color: #8a94a6; }
.p-tag.is-none { background: #fff; border: 1px dashed #cfd6e3; color: var(--muted); }
.p-tag.is-none i { color: #9aa4b5; }
.store-item .s-empty { font-size: 11.5px; color: var(--muted); }
.store-empty { padding: 26px 14px; text-align: center; font-size: 13px; color: var(--muted); }

.map-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.shortcut {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}
.shortcut:hover { border-color: var(--navy); transform: translateY(-1px); }
.shortcut .sc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.shortcut strong { display: block; font-size: 12.5px; }
.shortcut small { display: block; font-size: 10.5px; color: var(--muted); }
.shortcut .sc-go { margin-left: auto; color: var(--muted-2); font-size: 12px; }

.status-guide { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.status-guide div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
}
.status-guide b { display: block; font-size: 13px; margin-bottom: 2px; color: var(--ink); }

/* -------------------------------------------------------------- 일정 탭 */
.split-2 { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }

.timeline { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--line), var(--line));
}
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #cbd5e5;
  z-index: 1;
}
.timeline li.done .dot { border-color: var(--navy); background: var(--navy); }
.timeline li.now .dot { border-color: var(--yellow); background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 203, 5, 0.22); }
.timeline li.next .dot { border-color: #cbd5e5; background: #fff; }
.timeline .t-date { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.01em; }
.timeline .t-title { font-size: 14.5px; font-weight: 800; margin: 2px 0 2px; letter-spacing: -0.02em; }
.timeline .t-body { font-size: 12.5px; color: var(--muted); margin: 0; }
.timeline .t-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  margin-left: 6px;
  vertical-align: 2px;
}
.timeline li.now .t-tag { background: var(--yellow-soft); color: #7a5a00; }
.timeline li.done .t-tag { background: var(--blue-soft); color: #1f4fbe; }

.panel-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.panel-card .panel-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }

/* 안내 문단 카드(편의점 입고 읽기·직구 면세 안내) — 게시자 설명 텍스트 */
.guide-prose p { margin: 0 0 10px; font-size: 13px; line-height: 1.75; color: var(--ink-2); word-break: keep-all; }
.guide-prose p:last-child { margin-bottom: 0; }
.guide-prose strong { color: var(--ink); }
.guide-prose ul { margin: 0 0 12px; }
.guide-prose .channel-features li { font-size: 12.8px; line-height: 1.7; color: var(--ink-2); }
.guide-prose a { color: var(--blue); text-decoration: underline; }

/* 접어 두는 안내 카드(편의점 재고 읽는 법) — 첫 화면이 길어지지 않게 */
.guide-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  list-style: none;
}
.guide-fold > summary::-webkit-details-marker { display: none; }
.guide-fold > summary::after {
  content: "＋";
  flex: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}
.guide-fold[open] > summary { margin-bottom: 8px; }
.guide-fold[open] > summary::after { content: "－"; }
.guide-fold-body { margin-top: 4px; }

.week-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.week-table th, .week-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.week-table th { font-size: 11px; color: var(--muted-2); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.week-table td.day { font-weight: 800; width: 44px; }
.week-table td.focus { font-weight: 700; width: 108px; }
.week-table td.detail { color: var(--muted); }
.week-table tr:last-child td { border-bottom: 0; }
.place-pill { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--paper); color: var(--muted); white-space: nowrap; }

.calendar { margin-top: 6px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 10.5px; font-weight: 800; color: var(--muted-2); text-align: center; padding: 4px 0; }
.cal-dow.sun { color: #d1495b; }
.cal-cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  position: relative;
}
.cal-cell.is-empty { background: transparent; border-color: transparent; }
.cal-cell.is-today { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-cell .marks { display: flex; gap: 2px; }
.cal-cell .marks i { width: 4px; height: 4px; border-radius: 50%; display: block; }
.m-cvs { background: #0f7ad4; }
.m-mart { background: #f0a500; }
.m-shop { background: #8a5cf6; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend i { width: 7px; height: 7px; border-radius: 50%; }

.stock-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stock-feed li {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fbfcfe;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
}
.stock-feed .when { font-size: 11px; color: var(--muted-2); font-weight: 700; }
.stock-feed .where { font-weight: 700; }
.stock-feed .what { color: var(--muted); font-size: 11.5px; display: block; }
.stock-feed .type { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.type.in { background: var(--green-soft); color: var(--green); }
.type.none { background: var(--grey-soft); color: var(--grey); }
.type.check { background: #f1f4fa; color: #475569; }

.link-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.link-card:hover { border-color: var(--navy); }
.link-card .lc-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--yellow-soft);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.link-card strong { display: block; font-size: 13px; }
.link-card small { display: block; font-size: 11px; color: var(--muted); }
.link-card .lc-go { margin-left: auto; color: var(--muted-2); font-size: 13px; }

/* -------------------------------------------------------------- 도감 탭 */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; overflow: hidden; border-radius: 12px; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.compare-table thead th { background: var(--paper); font-size: 11.5px; color: var(--muted); font-weight: 800; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.compare-table .up { color: var(--red); }
.compare-table .flat { color: var(--green); }

.calc {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
}
.calc h4 { margin: 0 0 4px; font-size: 15px; }
.calc p.hint { margin: 0 0 12px; font-size: 12px; color: #a9b9d6; }
.calc-row { display: flex; gap: 8px; flex-wrap: wrap; }
.calc input {
  flex: 1;
  min-width: 140px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calc input::placeholder { color: #8798b6; font-weight: 500; }
.calc input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.calc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.calc-result div {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 11px;
}
.calc-result span { display: block; font-size: 10.5px; color: #a9b9d6; font-weight: 600; }
.calc-result strong { display: block; font-size: 15.5px; margin-top: 2px; letter-spacing: -0.02em; }
.calc-result strong.is-bad { color: #ffb4a8; }
.calc-result strong.is-good { color: #9ff0c0; }
.calc-verdict { margin: 10px 0 0; font-size: 12.5px; color: #ffe9a8; line-height: 1.5; }

.dex-toolbar { display: grid; gap: 10px; margin-bottom: 16px; min-width: 0; }
.search-box { position: relative; }
.search-box input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 42px 12px 40px;
  font-size: 14px;
  font-weight: 600;
}
.search-box input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(16, 31, 60, 0.06); }
.search-box .s-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 14px;
  pointer-events: none;
}
.search-box .s-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--paper);
  width: 26px; height: 26px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}
.rarity-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
}
.rarity-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.rarity-chip.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.dex-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.dex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
/* 도감 카드 더보기/접기 (처음 4장만 표시) */
.dex-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
.dex-more-wrap[hidden] { display: none; }
.dex-more {
  border: 1.5px dashed #c8d4e6;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dex-more::after { content: "⌄"; font-size: 12px; line-height: 1; }
.dex-more[aria-expanded="true"]::after { content: "⌃"; }
.dex-more:hover { border-color: var(--navy); background: #eef3fb; }
.dex-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
  min-width: 0;
}
.dex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5dfee; }
.dex-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  background: linear-gradient(150deg, #eef1f7, #dfe6f1);
}
.dex-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.3) 0 2px, transparent 2px 10px);
  mix-blend-mode: overlay;
}
.dex-art::before {
  content: attr(data-mark);
  position: absolute;
  right: 5px;
  bottom: 20%;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 2px 10px rgba(16, 31, 60, 0.08);
  z-index: 0;
  pointer-events: none;
}
.dex-art .rarity-tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(16, 31, 60, 0.82);
  color: #fff;
}
.dex-art .art-name {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 5px;
  padding: 4px 6px;
  line-height: 1.25;
}
.dex-art .art-num {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 1;
  font-size: 9.5px;
  font-weight: 800;
  color: rgba(16, 31, 60, 0.55);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 2px 5px;
}
.art-fur { background: conic-gradient(from 200deg at 55% 45%, #ffd93d, #b8a3ff, #7bd7ff, #ffd93d); }
.art-sar { background: linear-gradient(150deg, #ffe1a8, #ffb4d1 45%, #b9c6ff); }
.art-ar { background: linear-gradient(150deg, #cfe8ff, #d8f5e3 55%, #fdf1c9); }
.art-pika { background: linear-gradient(150deg, #fff0a8, #ffd93d 60%, #ffc078); }
.art-classic { background: linear-gradient(150deg, #e7dcc8, #d9cfc0 50%, #c9bfae); }
.art-energy { background: linear-gradient(150deg, #dce3ef, #c9d5e8); }
.dex-info { padding: 0 2px 2px; min-width: 0; }
.dex-info strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dex-info small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.dex-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dex-empty { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
}
.checklist input[type="checkbox"] {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--navy);
  flex-shrink: 0;
}
.checklist li:has(input:checked) { background: #f8fafd; color: var(--muted); }
.checklist li:has(input:checked) span { text-decoration: line-through; }

.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--yellow-soft);
  color: #7a5a00;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.faq-item summary .plus {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item[open] summary { background: #fbfcfe; }
.faq-answer { padding: 0 16px 16px 48px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.faq-answer p { margin: 0; }
/* FAQ 더보기/접기 (처음 3개만 표시, 도감 더보기 버튼과 같은 톤) */
.faq-item.is-faq-hidden { display: none; }
.faq-more-wrap { display: flex; justify-content: center; margin-top: 12px; }
.faq-more-wrap[hidden] { display: none; }
.faq-more { min-width: 196px; }

/* ---------------------------------------------------------------- 푸터 */
.site-footer {
  margin-top: 40px;
  background: var(--navy);
  color: #b9c6dd;
  padding: 36px 0 90px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #8298bd; }
.footer-brand p { font-size: 12.5px; line-height: 1.7; color: #95a8c8; margin: 12px 0 0; max-width: 320px; }
.footer-col h5 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f94ba;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a, .footer-col button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 12.5px;
  color: #c3d0e6;
  line-height: 1.5;
}
.footer-col a:hover, .footer-col button:hover { color: var(--yellow); text-decoration: underline; }
/* 확장팩 도감·가이드 링크(v4.55) — 푸터 안에서 정적 상세 페이지로 가는 크롤러 링크 */
.footer-docs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-docs h5 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f94ba;
}
.footer-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-doc-list a {
  color: #c3d0e6;
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
}
.footer-doc-list a:hover { color: var(--yellow); text-decoration: underline; }
@media (min-width: 640px) {
  .footer-docs { grid-template-columns: 2fr 1fr; gap: 24px; }
}

.footer-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: #7f94ba;
  line-height: 1.7;
}
.footer-note p { margin: 0 0 6px; }
.footer-note a { color: #a9bfe4; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 10.5px;
  color: #6d82a8;
}

/* ---------------------------------------------------------------- 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 17, 33, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal {
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: modalUp 0.24s ease-out;
}
@keyframes modalUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px 20px 0 0;
  z-index: 1;
}
.modal-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.modal-close {
  margin-left: auto;
  border: 0;
  background: var(--paper);
  width: 32px; height: 32px;
  border-radius: 9px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}
.modal-body { padding: 18px; overflow-y: auto; }
.prose { font-size: 13.2px; line-height: 1.75; color: var(--ink-2); }
.prose h4 { margin: 18px 0 6px; font-size: 14px; color: var(--ink); }
.prose h4:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px; padding-left: 18px; }
.prose li { margin-bottom: 4px; }
.prose .meta-line { font-size: 11.5px; color: var(--muted-2); }
.prose .note-box {
  background: var(--paper);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0;
}
.contact-form { display: grid; gap: 10px; margin-top: 4px; }
.contact-form label { font-size: 12px; font-weight: 700; color: var(--ink-2); display: grid; gap: 5px; }
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 11px; color: var(--muted-2); }
.form-note a { color: var(--navy); text-decoration: underline; }

/* --------------------------------------------------------- 관리자 문의 */
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.inquiry-actions .btn { flex: 1 1 auto; }

.inquiry-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 6px;
  padding: 15px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.inquiry-cta-copy { display: grid; gap: 3px; flex: 1 1 260px; min-width: 0; }
.inquiry-cta-copy b { font-size: 13.5px; color: var(--ink); letter-spacing: -0.01em; }
.inquiry-cta-copy span { font-size: 12px; line-height: 1.6; color: var(--muted); }
.inquiry-cta-copy a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.inquiry-cta .btn { flex: 0 0 auto; }
@media (max-width: 679px) {
  .inquiry-cta { padding: 14px; margin-top: 22px; }
  .inquiry-cta .btn { flex: 1 1 100%; }
  .inquiry-actions .btn { flex: 1 1 100%; }
  /* 모바일 모달: 화면이 짧아도 주 동작(메일 보내기·복사)이 바닥에 붙어 보이게 */
  .inquiry-actions {
    position: sticky;
    bottom: -18px;
    z-index: 2;
    background: #fff;
    padding: 8px 0 10px;
    margin-top: -2px;
    box-shadow: 0 -10px 14px rgba(255, 255, 255, 0.95);
  }
  .contact-form { gap: 8px; }
  .contact-form textarea { min-height: 92px; }
}
@media (max-width: 359px) {
  /* 320px 급 화면에서도 문의 진입점은 유지한다 — 글자만 조금 줄인다 */
  .header-actions .btn.header-inquiry { display: inline-flex; padding: 7px 9px; font-size: 12.5px; }
  .header-actions .btn.header-inquiry::before { display: none; }
}

.dex-modal-card { display: flex; gap: 16px; align-items: flex-start; }
.dex-modal-art {
  width: 128px;
  flex-shrink: 0;
  aspect-ratio: 4/5;
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dex-modal-art .m-name {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}
.dex-modal-body h4 { margin: 0 0 6px; font-size: 19px; }
.dex-modal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dex-modal-body p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

/* ---------------------------------------------------------------- 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* -------------------------------------------------------------- 유틸리티 */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.src-note { font-size: 11px; color: var(--muted-2); line-height: 1.6; }
.src-note a { text-decoration: underline; color: var(--muted); }
.src-note a:hover { color: var(--navy); }

.fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------- 반응형 */
@media (min-width: 680px) {
  body { font-size: 15px; }
  .wrap { padding: 0 24px; }
  .hero { padding: 40px 36px 36px; }
  .hero h1 { font-size: 38px; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .map-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .status-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 20px; max-height: 84vh; }
  .modal-head { border-radius: 20px 20px 0 0; }
  .section-head h2 { font-size: 28px; }
  .map-page-head h1 { font-size: 32px; }
  .status-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-shell { height: 460px; }
  .stock-feed li { grid-template-columns: 84px 1fr auto; }
}
@media (min-width: 980px) {
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-body { grid-template-columns: minmax(0, 1fr) 366px; }
  .map-shell { height: 540px; }
  .map-side { border-top: 0; border-left: 1px solid var(--line); }
  .map-side-head { height: 46px; }
  .store-list { max-height: 494px; }
  .split-2 { grid-template-columns: 1.1fr 0.9fr; }
  .split-2.is-even { grid-template-columns: 1fr 1fr; }
  .calendar-wrap { max-width: none; }
  .site-footer { padding-bottom: 40px; }
}
@media (min-width: 1120px) {
  .dex-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .map-shell { height: 540px; }
  .store-list { max-height: 494px; }
}
@media (max-width: 679px) {
  .site-header { backdrop-filter: none; background: rgba(255, 255, 255, 0.98); }
  .header-inner { height: 56px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text strong { font-size: 16px; }
  .brand-text span { font-size: 9px; }
  .main-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    background: #ffffff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(var(--moa-tab-count, 5), minmax(0, 1fr));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(16, 31, 60, 0.07);
    margin: 0;
  }
  .nav-btn {
    border-radius: 10px;
    padding: 8px 4px;
    font-size: 11.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }
  .nav-btn .nav-ico { font-size: 15px; line-height: 1; }
  .nav-btn.is-active { background: var(--navy); color: #fff; }
  .header-actions .header-date { display: none; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; margin-left: 4px; }
  .header-actions .btn-sm { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  /* 폰 폭에서는 헤더가 브랜드 + 문의하기 + 재고 제보로 이미 꽉 차서(390px 여유 0)
     「📲 앱 설치」를 하단 탭바 바로 위 왼쪽에 떠 있는 알약으로 옮깁니다.
     이 폭에서만 .site-header 의 backdrop-filter 가 꺼져 있어(position: fixed 의 기준이
     될 조상이 없음) 화면 기준으로 고정되고, z-index 는 탭(95)·모달(120)·토스트(200) 아래입니다. */
  .header-actions .btn.header-install {
    position: fixed;
    left: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    z-index: 90;
    min-height: 0;
    padding: 9px 14px 9px 11px;
    font-size: 12.5px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(16, 31, 60, 0.20);
  }
  .hero { border-radius: 20px; padding: 26px 20px 24px; }
  .hero h1 { font-size: 27px; }
  .price-row { display: grid; grid-template-columns: 1fr 1fr; }
  .price-row .price-box:last-child { grid-column: span 2; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 22px; }
  .map-shell { height: 330px; }
  .map-popup { padding: 11px; }
  .map-popup .popup-note { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .map-popup .popup-demo { display: none; }
  .map-popup .popup-meta { margin: 8px 0 6px; }
  .popup-meta .chip { font-size: 10.5px; padding: 3px 7px; }
  .calc-result { grid-template-columns: 1fr 1fr; }
  .calc-result div:last-child { grid-column: span 2; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 8px; }
  .dex-modal-card { flex-direction: column; }
  .dex-modal-art { width: 108px; }
  .section-head .head-link { font-size: 12px; }
  .stock-feed li { grid-template-columns: 66px 1fr; }
  .stock-feed li .type { justify-self: start; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* 지도 가장자리 음영 */
.map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 46px rgba(16, 31, 60, 0.08);
  z-index: 3;
}

/* =========================================================================
 * v2 — 실제 지도(Leaflet + OpenStreetMap) · 로딩 UI · 상태 배지
 * ========================================================================= */
.map-shell { touch-action: auto; cursor: default; background: #e9eef5; }
.map-shell.is-dragging { cursor: default; }
/* 카카오맵은 #mapShell 자체를 지도 컨테이너로 쓰고 내부에 타일·오버레이 판을 만든다. */
#mapShell .kakao-zoom, #mapShell .kakao-control { font-family: inherit; }
/* 카카오맵 로고·저작권 표기 */
#mapShell .kakaomap_logo, #mapShell .kakao-logo { opacity: 0.75; }
#mapShell .map_copyright, #mapShell .kakao-copyright, #mapShell .map-copyright {
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.86);
  color: #55637a;
  padding: 1px 6px;
  border-radius: 6px 0 0 0;
}

/* 실제 매장 핀 */
.pm-marker { background: none; border: 0; }
.pm-marker .pm-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: #ffffff;
  border: 2.5px solid var(--brand, #1b2a4a);
  box-shadow: 0 3px 8px rgba(16, 31, 60, 0.28);
}
.pm-marker .pm-pin-dot {
  transform: rotate(45deg);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--brand, #1b2a4a);
  line-height: 1;
  max-width: 26px;
  overflow: hidden;
}
.pm-marker.status-in .pm-pin { border-color: var(--green); }
.pm-marker.status-check .pm-pin { border-color: #64748b; }
.pm-marker.status-none .pm-pin { border-color: #94a3b8; opacity: 0.9; }
.pm-marker.is-selected .pm-pin,
.pm-marker:hover .pm-pin { box-shadow: 0 0 0 4px rgba(255, 203, 5, 0.6), 0 4px 10px rgba(16, 31, 60, 0.3); }
.pm-marker.is-selected { z-index: 999 !important; }
.leaflet-tooltip { font-size: 11px; font-weight: 700; }

/* 지도 위 고정 정보 카드 */
.map-legend { z-index: 500; }
.status-guide b { white-space: nowrap; }
.map-popup.pm-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  top: auto;
  right: auto;
  width: min(320px, calc(100% - 24px));
  /* 내용이 길어도(이마트 카드 상품 9종) 지도 밖으로 넘치지 않게 카드 안에서 스크롤한다 */
  max-height: calc(100% - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 620;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 31, 60, 0.18);
}
.pm-card-head { display: flex; align-items: flex-start; gap: 9px; }
.pm-card-brand {
  flex: none;
  min-width: 26px; height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center;
}
.pm-card-title { min-width: 0; flex: 1; }
.pm-card-title strong { display: block; font-size: 13.5px; line-height: 1.32; color: var(--ink); }
.pm-card-title span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pm-card-close {
  flex: none;
  border: 0; background: var(--paper);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 15px; line-height: 1; color: var(--muted);
}
.pm-card-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 9px 0 7px; }
.pm-card-products { margin: 0 0 8px; }
.pm-card-products .p-tag { font-size: 11px; padding: 3px 8px; }
.pm-card-note { margin: 0 0 9px; font-size: 11.5px; line-height: 1.55; color: #55637a; }
.pm-card-note b { color: var(--ink); }
.pm-card-link { display: inline-flex; }
.chip.chip-sample { background: #fff6d8; border-color: #f4e0a2; color: #7a5a00; font-weight: 700; }
.chip.chip-check { background: #eef2f8; border-color: #d7dfea; color: #44536b; font-weight: 700; }
/* 세븐일레븐 정책 안내 — 폭이 좁은 화면에서도 문구가 잘리지 않게 줄바꿈을 허용한다 */
.chip.chip-policy { background: #edf2fa; border: 1px solid #d7e1f0; color: #3d5474; font-weight: 700; white-space: normal; text-align: left; line-height: 1.3; }

/* 로딩 오버레이 */
.map-loading {
  position: absolute;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(238, 242, 248, 0.92);
  backdrop-filter: blur(2px);
  transition: opacity 0.25s;
}
.map-loading.is-done { opacity: 0; pointer-events: none; }
.ml-box {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(16, 31, 60, 0.12);
  max-width: 330px;
}
.ml-spinner {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 3px solid #dbe4f0;
  border-top-color: #2f6df6;
  animation: pm-spin 0.85s linear infinite;
}
@keyframes pm-spin { to { transform: rotate(360deg); } }
.ml-box strong { font-size: 13px; color: var(--ink); line-height: 1.4; }
.ml-box small { font-size: 11px; color: var(--muted); }
.ml-bar {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}
.ml-bar i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f6df6, #64a0ff);
  transition: width 0.4s ease;
}

/* 데이터 상태 배지 */
/* v4.66 — 지도 카드(상태 줄 + 지도/매장 목록)는 검색·현황 카드와 분리된 자기 카드로 시작합니다. */
.map-statusbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #f7f9fc;
  font-size: 12px;
  color: var(--muted);
}
.ms-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.ms-dot.is-live { background: var(--green); box-shadow: 0 0 0 3px rgba(34, 160, 90, 0.16); }
.ms-dot.is-snapshot { background: var(--amber); box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.18); }
.ms-dot.is-busy { background: #2f6df6; animation: pm-pulse 1.1s ease-in-out infinite; }
.ms-dot.is-relay { background: #0f9d63; box-shadow: 0 0 0 3px rgba(15, 157, 99, 0.18); }
@keyframes pm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.ms-text { flex: 1; min-width: 180px; font-weight: 600; color: #475569; line-height: 1.45; }
.ms-retry {
  flex: none;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
}
.ms-retry:hover { border-color: #cbd5e5; }

/* 현재 상태 바로 아래 한 줄 안내 — 429(이용자 많음)·캐시 응답 등 */
.map-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  margin: 0;
  border: 1px solid #f2d08a;
  border-left: 4px solid #e0a11c;
  border-radius: 10px;
  background: #fff8e8;
  color: #6b4a05;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}
.map-notice[hidden] { display: none; }
.map-notice.is-info { border-color: #bfd6f6; border-left-color: #2f6df6; background: #eff5ff; color: #17417f; }
.map-notice b { font-weight: 900; }

/* 📌 이 지역 고정 */
.pin-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
.pin-location:hover { border-color: #cbd5e5; }
.pin-location input { width: 14px; height: 14px; accent-color: var(--navy); }
.pin-location.is-on { border-color: var(--navy); background: #f4f8ff; color: var(--navy); }
@media (max-width: 679px) {
  .pin-location { font-size: 11.5px; padding: 4px 8px; }
}

.chip.chip-relay { background: #e6f7ef; border: 1px solid #b9e6d2; color: #0b7a4b; font-weight: 700; }
.pm-pill.is-relay { box-shadow: 0 3px 10px rgba(15, 157, 99, 0.28); }

/* 매장 목록 스켈레톤 */
.store-skeleton { padding: 12px; display: grid; gap: 9px; }
.sk-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.sk-dot {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s linear infinite;
}
.sk-lines { flex: 1; display: grid; gap: 6px; }
.sk-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%);
  background-size: 200% 100%;
  animation: pm-shimmer 1.3s linear infinite;
}
.sk-lines i:last-child { width: 58%; height: 8px; }
@keyframes pm-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-note { margin: 2px 4px 0; font-size: 11.5px; color: var(--muted); }

/* 내 위치 버튼 */
.geo-btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.geo-btn span { font-size: 13px; line-height: 1; }
.geo-btn.is-busy { opacity: 0.72; pointer-events: none; }
/* 선택 지역 찾기 + 내 위치로 찾기 — 데스크톱은 같은 줄 오른쪽, 모바일은 두 칸을 나눠 찍는다 */
.region-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.region-actions .geo-btn { justify-content: center; }

@media (max-width: 679px) {
  .map-statusbar { font-size: 11.5px; padding: 8px 10px; }
  .ms-text { min-width: 100%; }
  .map-popup.pm-card { width: calc(100% - 20px); left: 10px; bottom: 10px; padding: 11px; }
  .pm-card-note { font-size: 11px; }
  .ml-box { padding: 16px 18px; }
  .toolbar-row .geo-btn { padding: 8px 11px; font-size: 12px; }
  .region-actions { flex: 1 1 100%; margin-left: 0; }
  .region-actions .geo-btn { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 12px; gap: 4px; }
  .brand-progress { padding: 10px 11px 11px; }
  .bp-row { grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 3px 6px; }
  .bp-name { font-size: 11px; }
  .bp-status { font-size: 10px; }
  .bp-region { font-size: 10.5px; }
  .map-toolbar .toolbar-row .row-label { display: none; }
  .map-toolbar { padding: 9px 10px; gap: 7px; }
  .map-toolbar .toolbar-row { gap: 6px; }
  .select-province { flex: 0 0 84px; }
  .select-province select { min-width: 0; width: 100%; padding: 8px 22px 8px 9px; font-size: 13px; }
  .select-district { flex: 1 1 150px; min-width: 132px; }
  .select-district select { min-width: 0; width: 100%; padding: 8px 24px 8px 9px; font-size: 13px; }
  .region-search { flex: 1 1 150px; min-width: 120px; max-width: none; }
  .region-search-input { padding: 8px 10px; font-size: 12.5px; }
  .region-suggest { min-width: 0; width: max(100%, 250px); max-width: none; }
  .region-suggest-item { font-size: 12.5px; }
  .map-toolbar .radius-btn { padding: 5px 9px; font-size: 12px; }
  .map-toolbar .toolbar-spacer { margin-left: 0; padding: 7px 11px; font-size: 12px; }
  .toolbar-count { order: 9; flex: 1 1 100%; font-size: 11px; padding-top: 1px; }
}

/* 모바일: 첫 화면에서 지도가 바로 보이도록 압축 */
.notice-short { display: none; }
@media (max-width: 679px) {
  .map-page-head { padding-bottom: 4px; }
  .map-page-head h1 { font-size: 21px; line-height: 1.3; }
  .map-page-head > p:not(.map-brief-summary) { display: none; }
  .map-page-head .map-brief-summary { font-size: 12.5px; line-height: 1.5; gap: 6px; flex-wrap: nowrap; align-items: center; }
  /* 모바일은 「핵심 1줄」(넘치면 말줌임) + 자세히 보기 — 지도까지 스크롤을 줄인다 */
  .map-page-head .map-brief-summary > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .map-brief-toggle { flex: 0 0 auto; font-size: 11.5px; padding: 4px 9px; gap: 4px; }
  .map-brief-detail { margin-top: 10px; }
  .map-brief-lead { font-size: 12.5px; line-height: 1.6; }
  .map-page-head .eyebrow { font-size: 10.5px; margin-bottom: 4px; }
  .demo-notice { padding: 10px 12px; margin-bottom: 12px; }
  .demo-notice .notice-long { display: none; }
  .demo-notice .notice-short { display: block; font-size: 12px; line-height: 1.5; }
  .map-toolbar { padding: 10px 12px; gap: 8px; }
  .map-toolbar .toolbar-row { gap: 8px; }
  .map-shell { height: 330px; }
}

/* =========================================================================
 * v2.1 — 매장 목록 10개+더보기 · 20km 반경 · 지난 일정 접기
 * ========================================================================= */
.store-more-wrap { padding: 2px 2px 4px; }
.store-more {
  width: 100%;
  border: 1.5px dashed #c8d4e6;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.store-more::after { content: "⌄"; font-size: 12px; line-height: 1; }
.store-more[aria-expanded="true"]::after { content: "⌃"; }
.store-more:hover { border-color: var(--navy); background: #eef3fb; }

.radius-btn.is-disabled,
.radius-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
}
.radius-note {
  font-size: 11px;
  font-weight: 700;
  color: #8a6d1f;
  background: #fff7dd;
  border: 1px solid #f2e2ab;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.timeline-now-label {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1f4fbe;
}
.past-block {
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.past-block > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}
.past-block > summary::-webkit-details-marker { display: none; }
.past-block > summary::after { content: "⌄"; font-size: 11px; }
.past-block[open] > summary::after { content: "⌃"; }
.past-block[open] > summary { color: var(--navy); border-color: #cbd5e5; }
.past-block .timeline { margin-top: 12px; padding-top: 0; }
.timeline.is-past .t-title { font-weight: 700; color: #55637a; }
.timeline.is-past .t-date { color: #8b98ad; }
.timeline.is-past li.done .dot { background: #b9c4d6; border-color: #b9c4d6; }
.timeline.is-past .t-tag { background: #eef1f6; color: #7a879c; }

.cal-cell.is-past { color: #a9b3c4; background: #f6f8fb; border-color: #eef1f6; }
.cal-cell.is-past.is-today { color: #fff; background: var(--navy); border-color: var(--navy); }
.cal-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.cal-past-toggle {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
}
.cal-past-toggle:hover { border-color: #cbd5e5; background: #f7f9fc; }

@media (max-width: 679px) {
  .radius-note { order: 9; }
  .store-more { padding: 10px; font-size: 12px; }
}

/* 더보기 버튼: 목록 스크롤 영역 밖에 고정 */
.map-side { display: flex; flex-direction: column; }
.map-side .store-list { flex: 1 1 auto; }
.store-more-wrap { padding: 0 8px 10px; }
.store-more-wrap[hidden] { display: none; }

/* =========================================================================
 * v3.2 — PokeConv 스타일: 라이트 지도 · 말풍선 마커 · 개소별 보유 카드 중심
 * ========================================================================= */

/* 매장·재고 조회 진행률 (v4.65 — GS25·CU·이마트24 3사 / 매장 탐색 0~40% → 실시간 재고 조회 40~100%) */
.brand-progress {
  display: grid;
  gap: 7px;
  padding: 11px 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  min-width: 0;
}
.brand-progress[hidden] { display: none; }
.bp-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em;
  white-space: nowrap; flex: none;
}
.bp-spin {
  width: 12px; height: 12px; flex: none;
  border-radius: 50%;
  border: 2px solid #dbe4f0;
  border-top-color: #2f6df6;
  animation: pm-spin 0.85s linear infinite;
}
.brand-progress[data-state="done"] .bp-spin { display: none; }
.bp-region {
  min-width: 0; font-size: 11px; font-weight: 700; color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-overall {
  margin-left: auto; font-size: 12.5px; font-weight: 900; color: var(--navy);
  font-variant-numeric: tabular-nums; flex: none;
}
.bp-toggle {
  flex: none; border: 0; background: #f2f5fa; color: var(--muted);
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  cursor: pointer;
}
.bp-toggle:hover { color: var(--ink); background: #e8eef8; }
.bp-rows-wrap { overflow: hidden; transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1); }
.bp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.bp-rows[hidden] { display: none; }
.bp-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  grid-template-areas: "name bar pct" "name status status";
  align-items: center;
  gap: 3px 8px;
  padding: 4px 0;
}
.bp-name {
  grid-area: name;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 800; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand, #1b2a4a); flex: none; }
.bp-bar {
  grid-area: bar; display: block; height: 6px; border-radius: 999px;
  background: #eef2f8; overflow: hidden;
}
.bp-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: var(--brand, #2f6df6);
  /* v4.67 — 진행률은 app.js 가 rAF 로 매 프레임 직접 그린다. 여기 전환은 그 프레임 사이를
     짧게 이어 주는 역할만 한다(길게 잡으면 % 숫자보다 막대가 뒤늦게 따라와 어긋나 보인다). */
  transition: width 0.1s linear;
}
.bp-pct {
  grid-area: pct; text-align: right;
  font-size: 11px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bp-status {
  grid-area: status;
  font-size: 10.5px; font-weight: 700; color: var(--muted-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-row[data-state="done"] .bp-pct,
.bp-row[data-state="done"] .bp-status { color: var(--green); }
.bp-row[data-state="err"] .bp-bar i { background: #9aa7b8; }
.bp-row[data-state="err"] .bp-status { color: #b4541f; }
.bp-row[data-state="off"] .bp-bar i { background: #c3ccda; }
.bp-row[data-state="off"] .bp-status { color: #8a6d1f; }
/* 세븐일레븐 정책상 재고 미지원 — 안내 문구가 잘리지 않게 두 줄까지 허용 */
.bp-row[data-state="info"] .bp-bar i { background: #9db2cd; }
.bp-row[data-state="info"] .bp-pct { color: #4a5f7d; }
.bp-row[data-state="info"] .bp-status { color: #3d5474; white-space: normal; overflow: visible; line-height: 1.35; }
.bp-sum-note { font-style: normal; font-weight: 700; color: #4a5f7d; background: #edf2fa; border-radius: 999px; padding: 1px 6px; font-size: 10.5px; }
@media (min-width: 900px) {
  /* v4.65 — 진행률 막대가 3사(GS25·CU·이마트24)로 줄어 PC 는 한 줄에 3칸 */
  .bp-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 22px; }
}
.bp-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.bp-summary[hidden] { display: none; }
.bp-sum-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bp-sum-item b { color: var(--ink); font-weight: 800; }

/* v4.63 — 조회 100% 완료 뒤 1줄 요약 바(자동 접힘). 진행 중에는 종전처럼 펼쳐 둔다. */
.brand-progress.is-collapsed { gap: 3px; padding: 9px 12px 10px; }
.brand-progress.is-collapsed .bp-toggle { background: #eef3fb; color: #2f4a76; }
.brand-progress.is-collapsed .bp-summary {
  display: flex; flex-wrap: nowrap; overflow: hidden;
  font-size: 10.5px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
  animation: bp-sum-fade 0.3s ease both;
}
@keyframes bp-sum-fade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

/* 편의점 4사별 현황 요약 바 */
.brand-summary {
  display: grid;
  /* 전체 + 편의점 4사 + 이마트(대형마트) = 6칸 */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
/* v4.66 — 4사 요약은 진행률 패널 바로 아래에서 그 카드의 아랫면을 닫고(아래는 오프라인 필터 줄),
   진행률 패널이 없으면(피규어 모드·첫 조회 전) 그 자체로 둥근 카드가 됩니다. */
.brand-progress + .brand-summary { border-radius: 0 0 16px 16px; }
.bs-card {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.bs-card:hover { border-color: #cbd5e5; }
.bs-card.is-active {
  border-color: var(--navy);
  background: #f6f9ff;
  box-shadow: 0 0 0 2px rgba(16, 31, 60, 0.06);
}
.bs-all { background: #fbfcff; }
.bs-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand, #1b2a4a);
  flex: none;
}
.bs-name {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bs-card.is-active .bs-name { color: var(--navy); }
.bs-count {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bs-count small { font-size: 10.5px; font-weight: 700; color: var(--muted-2); margin-left: 2px; }
.bs-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 「전체」 카드는 미조회까지 보여야 하므로 서브 문구를 두 줄까지 허용한다(… 로 사라지지 않게) */
.bs-all .bs-sub {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

/* 정렬 · 재고 토글 */
.select-sort select { min-width: 132px; padding: 8px 30px 8px 12px; font-size: 13px; }
.sort-row { row-gap: 8px; }
.stock-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 4px 2px;
}
.stock-toggle input {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.stock-toggle-track {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: #dfe6f0;
  transition: background 0.16s;
  flex: none;
}
.stock-toggle-track i {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 31, 60, 0.28);
  transition: transform 0.16s;
}
.stock-toggle input:checked + .stock-toggle-track { background: var(--green); }
.stock-toggle input:checked + .stock-toggle-track i { transform: translateX(16px); }
.stock-toggle input:focus-visible + .stock-toggle-track { box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.28); }
.stock-toggle-label { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* 지도 범례 (내 위치 · 재고 있음 · 확인 필요 · 없음) */
.map-legend { z-index: 500; gap: 11px; padding: 7px 11px; }
.map-legend .l-me {
  width: 10px; height: 10px;
  background: #2f6df6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cfd9e8;
}
.map-legend .l-policy { background: #8aa0bd; }
.map-shell.is-card-open .map-legend { opacity: 0; transition: opacity 0.15s; }

/* 라이트 지도: 카카오맵 기본 스타일을 그대로 쓰고(저채도 도로·지명),
   마커·말풍선만 브랜드 색으로 강조한다. */
#mapShell .kakaomap_logo img { max-height: 18px; }

/* 말풍선(알약) 마커 */
.pm-marker { background: none; border: 0; width: 0 !important; height: 0 !important; }
.pm-marker .pm-pill {
  --pill-bg: #fff;
  --pill-bd: #dbe2ec;
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, calc(-100% - 8px));
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1.5px solid var(--pill-bd);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  box-shadow: 0 3px 9px rgba(16, 31, 60, 0.18);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
}
.pm-marker .pm-pill::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 9px; height: 9px;
  background: var(--pill-bg);
  border: 1.5px solid var(--pill-bd);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 2px 0;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}
.pm-marker .pm-pill b { font-weight: 900; font-size: 11px; }
.pm-marker .pm-pill b + span::before { content: "· "; opacity: 0.75; font-weight: 700; }
.pm-pill.status-in { --pill-bg: var(--brand, #12854a); --pill-bd: var(--brand, #12854a); color: var(--brand-ink, #fff); }
.pm-pill.status-check { color: #475569; border-color: #d7dfea; }
.pm-pill.status-none { --pill-bg: #f1f4f9; color: #6b7688; border-color: #e2e8f2; }
/* 세븐일레븐 — 재고 대신 매장 위치만 안내(실패 아님) */
.pm-marker .pm-pill.is-policy { --pill-bg: #f4f7fc; color: #3d5474; border-color: #d7e1f0; }
.pm-pill .pm-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
/* 재고 있음 — 브랜드 색 위에서도 초록 점이 보이게 흰 테두리를 둔다 */
.pm-pill .pm-dot.is-in { background: #0f9d63; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.92); }
/* 미조회 — 색이 아니라 '빈 원'으로 구분(노란 브랜드 색과 겹치지 않게) */
.pm-pill .pm-dot.is-hollow { width: 9px; height: 9px; background: #fff; border: 2px solid #64748b; box-sizing: border-box; }
.pm-marker.status-check .pm-pill,
.pm-marker.status-none .pm-pill { box-shadow: 0 2px 6px rgba(16, 31, 60, 0.14); }
.pm-marker:hover { z-index: 900 !important; }
.pm-marker:hover .pm-pill { box-shadow: 0 6px 16px rgba(16, 31, 60, 0.24); }
.pm-marker.is-selected .pm-pill {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.32), 0 6px 16px rgba(16, 31, 60, 0.24);
}

/* 넓게 볼 때(20km·저줌): 브랜드 칩·작은 점으로 겹침을 줄인다 */
.pm-marker.is-compact .pm-pill {
  transform: translate(-50%, -50%);
  padding: 2px 6px;
  font-size: 10px;
  box-shadow: 0 2px 6px rgba(16, 31, 60, 0.18);
}
.pm-marker.is-compact .pm-pill::after { display: none; }
.pm-marker.is-compact .pm-pill.is-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 1.5px solid #fff;
  background: #94a3b8;
  box-shadow: 0 1px 4px rgba(16, 31, 60, 0.25);
}
.pm-marker.is-compact .pm-pill.status-check { background: #fff; border: 2px solid #64748b; box-sizing: border-box; }
.pm-marker.is-compact .pm-pill.is-policy { background: #8aa0bd; border-color: #fff; }
.pm-marker.is-compact .pm-pill.status-none { background: #c3ccda; border-color: #fff; }
/* 5km 보기 브랜드 칩 — '24'·'7' 대신 브랜드명을 쓰므로 글자는 조금 줄이고 여백은 줄여 폭을 아낀다 */
.pm-marker.is-compact .pm-pill.is-chip {
  padding: 2px 5px;
  font-size: 9.5px;
  letter-spacing: -0.02em;
}
.pm-marker.is-compact .pm-pill.is-chip .pm-dot { width: 6px; height: 6px; }

/* 매장 목록: 개소별 보유 카드가 주인공이 되도록 */
.store-item { border-left: 3px solid transparent; }
.store-item.is-in { border-left-color: var(--green); }
.store-item.is-check { border-left-color: #64748b; }
.store-item.is-none { border-left-color: #cbd5e1; }
.store-item.is-policy { border-left-color: #8aa0bd; }
.store-item .store-products { gap: 5px; margin-top: 5px; }
.store-item .p-tag { font-size: 11px; padding: 3px 8px; border-radius: 8px; }
.store-item .p-tag.is-in { font-weight: 800; }
.store-item .s-meta .chip-sample,
.store-item .s-meta .chip-check { font-size: 10px; }
.store-item .s-meta .chip-policy { font-size: 10px; padding: 3px 8px; }
.pm-card-products .p-tag { font-size: 11.5px; padding: 4px 9px; }

@media (max-width: 979px) {
  .brand-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  /* 조회 완료 뒤 접힌 바 — 제목·100%·펼치기만 한 줄에 남기고 지역 표기는 감춘다 */
  .brand-progress.is-collapsed .bp-region { display: none; }
  .brand-progress.is-collapsed { padding: 8px 10px 9px; }
  .brand-progress.is-collapsed .bp-title { font-size: 11.5px; }
  .brand-progress.is-collapsed .bp-toggle { padding: 3px 8px; }

  /* v4.63 — 브랜드 칩은 가로 스크롤 대신 2행 × 3열(2×3)로 6개를 한눈에 */
  .brand-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .bs-card { min-width: 0; padding: 6px 8px; gap: 1px; }
  .bs-head { gap: 5px; }
  .bs-name { font-size: 10.5px; }
  .bs-count { font-size: 15px; line-height: 1.05; }
  .bs-count small { font-size: 9px; }
  .bs-sub { font-size: 9px; line-height: 1.25; }
  .bs-all .bs-sub { -webkit-line-clamp: 2; line-height: 1.25; }
  .map-toolbar { padding: 12px 10px; }
  .sort-row { gap: 8px; }
  .select-sort { flex: 1 1 128px; }
  .select-sort select { min-width: 0; width: 100%; }
  .stock-toggle { flex: 0 0 auto; }
  .map-legend { left: 8px; bottom: 8px; gap: 8px; padding: 6px 9px; font-size: 10px; }
}

/* 저줌 클러스터 (`N곳`) */
.pm-marker-cluster { background: none; border: 0; width: 0 !important; height: 0 !important; }
.pm-cluster {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  width: max-content;
  box-shadow: 0 4px 12px rgba(16, 31, 60, 0.22);
  cursor: pointer;
}
.pm-cluster small {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0;
}
.pm-cluster.has-stock {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pm-cluster.has-stock small { color: #ffd964; }

/* ------------------------------------------- 세트별 도감·가이드 (v3.3) */
.set-picker {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 95%, transparent 100%);
}
.set-chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 9px 14px;
  text-align: left;
  line-height: 1.25;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.set-chip strong { display: block; font-size: 13.5px; letter-spacing: -0.02em; white-space: nowrap; }
.set-chip small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.set-chip:hover { border-color: var(--navy); }
.set-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.set-chip.is-active small { color: #a9b9d6; }

.set-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.ss-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ss-code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #8a6a00;
}
.ss-name { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
.ss-summary { margin: 8px 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.ss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.ss-grid > div {
  background: var(--paper);
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
}
.ss-grid dt { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.ss-grid dd { margin: 3px 0 0; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.ss-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-links a {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff;
}
.ss-links a:hover { border-color: var(--navy); background: var(--paper); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calc .calc-set { font-size: 11.5px; font-weight: 700; color: #ffd964; margin-left: 2px; }

.art-sr { background: linear-gradient(150deg, #e6edff, #c9d8f5 55%, #e2eafc); }
.art-ur { background: linear-gradient(150deg, #ffeec2, #f3cf8b 55%, #f7e4b5); }
.art-mur { background: conic-gradient(from 210deg at 55% 45%, #b8a3ff, #7bd7ff, #ffd93d, #b8a3ff); }
.art-bwr { background: linear-gradient(150deg, #d7e4ff, #a9c3ef 55%, #e2ecff); }
.art-rr { background: linear-gradient(150deg, #e0f4ec, #c4e7db 55%, #ebf7f1); }
.art-deck { background: linear-gradient(150deg, #f6ecd8, #e5d6b9 55%, #f8f1e2); }

.trend-card { display: block; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.trend-card:hover { transform: translateY(-2px); border-color: var(--navy); }
.trend-go {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--navy);
}

@media (min-width: 720px) {
  .set-picker { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .ss-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 679px) {
  #panel-guide .map-page-head > p { display: block; font-size: 12.5px; line-height: 1.6; }
  .set-summary { padding: 15px; }
  .ss-name { font-size: 18px; }
  .ss-grid { grid-template-columns: 1fr 1fr; }
  .ss-grid > div:last-child { grid-column: span 2; }
  .set-chip { padding: 8px 12px; }
  .set-chip strong { font-size: 12.5px; }
}

/* =========================================================================
 * v4.3 — 카카오맵 지도 엔진 (kakao.maps.CustomOverlay 말풍선 마커)
 * ========================================================================= */
/* 카카오 CustomOverlay의 content 노드는 좌표에 left/top으로 붙으므로,
   기존Leaflet용 절대 위치·transform을 풀고 앵커(xAnchor/yAnchor)로 맞춘다. */
#mapShell .pm-marker {
  position: relative;
  width: auto !important;
  height: auto !important;
  width: max-content;
  display: inline-flex;
  padding-bottom: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  outline: none;
}
#mapShell .pm-marker .pm-pill {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  width: max-content;
}
#mapShell .pm-marker:hover .pm-pill { box-shadow: 0 6px 16px rgba(16, 31, 60, 0.24); }
#mapShell .pm-marker:focus-visible .pm-pill {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.45), 0 4px 12px rgba(16, 31, 60, 0.22);
}
#mapShell .pm-marker.is-selected .pm-pill {
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.32), 0 6px 16px rgba(16, 31, 60, 0.24);
}
/* 넓게 볼 때(20km·저줌): 가운데 정렬된 작은 점·브랜드 칩 */
#mapShell .pm-marker.is-compact {
  padding-bottom: 0;
}
#mapShell .pm-marker.is-compact .pm-pill {
  transform: none;
  padding: 2px 6px;
  font-size: 10px;
}
#mapShell .pm-marker.is-compact .pm-pill::after { display: none; }

/* 저줌 클러스터 (`N곳`) */
#mapShell .pm-marker-cluster {
  position: relative;
  width: auto !important;
  height: auto !important;
  width: max-content;
  display: inline-flex;
  background: none;
  border: 0;
  cursor: pointer;
  outline: none;
}
#mapShell .pm-cluster {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

/* 5km 보기: 칩이 겹치는 자리는 숫자만 담은 작은 원으로 줄인다 */
#mapShell .pm-cluster.is-mini {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(16, 31, 60, 0.25);
}

/* 내 위치 표시 (카카오 CustomOverlay) */
#mapShell .pm-me {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
#mapShell .pm-me-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2f6df6;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.28), 0 2px 6px rgba(16, 31, 60, 0.3);
}
#mapShell .pm-me-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: #2f6df6;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(16, 31, 60, 0.24);
}

/* 카카오맵을 쓸 수 없는 주소(미등록 도메인)에서 지도 자리에 놓는 안내 */
#mapShell .pm-sdk-note-wrap {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    repeating-linear-gradient(135deg, #f4f6fa 0 12px, #eef2f8 12px 24px);
}
#mapShell .pm-sdk-note {
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 31, 60, 0.16);
  text-align: left;
}
#mapShell .pm-sdk-note strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
#mapShell .pm-sdk-note p { font-size: 12.5px; line-height: 1.6; color: var(--ink); margin: 0 0 6px; }
#mapShell .pm-sdk-note p:last-child { margin-bottom: 0; color: var(--muted); }
#mapShell .pm-sdk-note a { color: #2f6df6; font-weight: 700; }

/* 카카오맵 저작권·로고(지도 하단 왼쪽)가 범례에 가리지 않도록 범례를 조금 올린다 */
#mapShell .map-legend { bottom: 30px; }
@media (max-width: 679px) {
  #mapShell .map-legend { bottom: 28px; left: 8px; }
}
/* 카카오 로고·저작권 표기가 항상 보이도록 지도 카드가 열려도 그대로 둔다 */
#mapShell .kakaomap_logo, #mapShell .map_copyright { z-index: 450; }

/* 상태 안내 카드: 칸이 좁아져도 읽히도록 이름표를 본문 위에 두고 칸 수를 자동 조정 */
.status-guide { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.status-guide div { flex-direction: column; gap: 3px; }
.status-guide b { white-space: normal; }

/* =========================================================================
 * v4.6 — 다른 확장팩·박스 정가 구매처 (#boxStores)
 * 30th가 아닌 박스를 칩으로 고르면 그 박스의 정가·KREAM 시세와 판매처 카드가 바뀝니다.
 * 모바일 390px에서는 칩이 가로 스크롤, 판매처 카드는 1열로 쌓입니다.
 * ========================================================================= */
.box-picker { margin-bottom: 14px; }
.box-board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.box-fallback { margin: 0; font-size: 13px; color: var(--muted); }
.box-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.box-name { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
.box-sub { margin: 6px 0 14px; font-size: 12.5px; color: var(--muted); }
.box-price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.box-price > div { background: var(--paper); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.box-price > div.is-key { background: var(--yellow-soft); }
.box-price dt { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.box-price dd { margin: 3px 0 0; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.box-price dd em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--amber); margin-left: 4px; }
.box-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.box-links a,
.box-dex-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff;
}
.box-links a:hover,
.box-dex-btn:hover { border-color: var(--navy); background: var(--paper); }
.box-memo {
  margin: -6px 0 18px;
  padding: 9px 12px;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
}
.box-memo b { color: var(--navy); }
.box-store-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.box-store-head h4 { margin: 0; font-size: 15px; letter-spacing: -0.02em; }
.box-store-head span { font-size: 11px; color: var(--muted); }
.box-store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.store-shortcut {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 62px;
  padding: 8px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.store-shortcut:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.store-shortcut:active { transform: none; }
.store-badge {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand, #e9eef7);
  color: var(--brand-ink, #10203c);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  display: grid;
  place-items: center;
}
.store-shortcut-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.store-shortcut-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.store-sub {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-go { margin-left: auto; font-size: 10px; color: #aab5c8; flex: 0 0 auto; }
.store-state {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--grey-soft);
  color: var(--grey);
}
.store-state.out { background: #fdeaea; color: #a83232; }
.store-state.in { background: var(--green-soft); color: var(--green); }

@media (min-width: 720px) {
  .box-name { font-size: 23px; }
  .box-price { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .box-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .store-shortcut { padding: 10px 12px; gap: 10px; min-height: 56px; }
  .store-badge { flex-basis: 32px; width: 32px; height: 32px; font-size: 15.5px; }
  .store-shortcut-name { font-size: 13px; }
  .store-sub { font-size: 11.5px; }
}
@media (max-width: 679px) {
  .box-board { padding: 15px; }
  .box-name { font-size: 18px; }
  .box-price dd { font-size: 12.5px; }
  .box-picker { margin-bottom: 12px; }
}

/* =========================================================================
 * v4.8 — 오프라인 판매처(마트·아트박스·자판기·카드샵)
 *  · 「정가 구매처」 탭: #offlineStores 컴팩트 바로가기(모바일 2열 · 720px 이상 4열)
 *  · 「동네에서 찾기」 지도: 오프라인 칩·토글 + 지도 마커/목록
 * ========================================================================= */
.store-shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 720px) {
  .store-shortcut-grid.is-offline-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}
/* 마트 바로가기는 실제 체인명 4개를 다 적는다(v4.56) — 좁은 2열 칸에서는 이름이 잘리고
   부제(‘4개 마트 · 지도에서 지점 찾기’)가 말줄임되므로, 모바일에서는 이 칸만 한 줄 전체를 쓴다. */
@media (max-width: 719px) {
  .store-shortcut-grid.is-offline-grid > .store-shortcut.is-mart { grid-column: 1 / -1; }
}

/* 지도 툴바의 오프라인 판매처 칩 */
.offline-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 10px;
  margin: 14px 0 12px;
}
.offline-bar .row-label {
  grid-column: 1;
  grid-row: 1;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offline-chips {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.offline-chips::-webkit-scrollbar { display: none; }
.off-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.off-chip b { font-size: 11px; font-weight: 800; color: var(--muted); }
.off-chip .off-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand, #1b2a4a); flex: 0 0 auto; }
.off-chip:hover { border-color: var(--brand, var(--navy)); }
.off-chip.is-active { background: var(--brand, var(--navy)); border-color: var(--brand, var(--navy)); color: #fff; }
.off-chip.is-active b { color: rgba(255, 255, 255, 0.85); }
.off-chip.is-muted { opacity: 0.45; }
/* 반경 안에 없는 오프라인 판매처 안내 — "0곳"만 보이면 고장으로 보여서
   가장 가까운 곳을 거리와 함께 적는다(2026-11-26)
   2026-11-27(1안): 항상 펼쳐 두면 모바일 첫 화면에서 검색창·지도가 밀리므로,
   0곳 칩을 눌렀을 때만 그 종류 하나를 카드로 펼친다(한 번 더 누르면 닫힘). */
.offline-note {
  grid-column: 1 / -1;
  grid-row: 3;
  display: block;
  margin: 2px 0 10px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  background: #f4f7fb;
  border: 1px solid var(--line-2, #e6ebf2);
  border-left: 3px solid var(--brand, var(--navy));
  border-radius: 10px;
  animation: offlineNoteIn 0.16s ease-out;
}
@keyframes offlineNoteIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .offline-note { animation: none; }
}
.offline-note[hidden] { display: none; }
.offline-note b { display: block; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.offline-note span { display: block; margin-top: 1px; color: var(--muted); }
/* 0곳 칩 — 누르면 안내가 펼쳐진다는 표시(작은 꺽쇠) · 펼친 동안은 테두리를 브랜드 색으로 */
.off-chip .off-caret {
  width: 5px;
  height: 5px;
  margin: 0 1px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.off-chip.is-open {
  border-color: var(--brand, var(--navy));
  color: var(--ink);
}
.off-chip.is-open b { color: var(--brand, var(--navy)); }
.off-chip.is-open .off-caret { transform: rotate(225deg); margin-bottom: 0; margin-top: 3px; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .off-chip .off-caret { transition: none; }
}
.offline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
.offline-toggle input { width: 15px; height: 15px; accent-color: var(--navy); }
@media (min-width: 720px) {
  .offline-bar { grid-template-columns: auto 1fr auto; }
  .offline-bar .row-label { grid-column: 1; grid-row: 1; }
  .offline-chips { grid-column: 2; grid-row: 1; flex-wrap: wrap; }
  .offline-toggle { grid-column: 3; grid-row: 1; }
  .offline-note { grid-row: 2; }
}

/* 지도 범례 · 배지 */
.map-legend .l-offline { background: #7c4dff; }
.chip-offline { background: #f0eaff; color: #5334d6; font-weight: 800; }
/* 롯데마트·토이저러스 도와센터 실시간 재고(2026-11-26) — 마트 파란색 계열 */
.chip.chip-lotte { background: #e6effd; border: 1px solid #c4d8f8; color: #1f4fbe; font-weight: 700; }
.chip.chip-lotte.is-none { background: #f2f4f8; border: 1px solid #e0e5ee; color: #5d6b80; font-weight: 700; }
/* 같은 건물 토이저러스(2026-11-26 v4.58) — 장난감 매장 느낌의 옐로 계열, 롯데마트 파랑과 구분 */
.chip.chip-toys { background: #fff6d9; border: 1px solid #f2dc9b; color: #7a5a00; font-weight: 700; }
.pm-card-sub { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.pm-card-sub h4 { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: var(--ink); }
.pm-card-sub .pm-card-meta { margin-bottom: 4px; }
.pm-pill.is-offline { border-color: rgba(16, 31, 60, 0.18); }
.store-item.is-offline .s-name { font-weight: 700; }

/* =========================================================================
   v4.9 시세·이슈·신규팩·팝수 탭
   ========================================================================= */
.trend-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.trend-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.trend-stat b { font-size: 14px; font-variant-numeric: tabular-nums; }
.trend-stat.is-up { background: #fdeceb; border-color: #f6cfcb; color: #b3261e; }
.trend-stat.is-down { background: var(--blue-soft); border-color: #cadcff; color: #1f4fbe; }
.trend-stat.is-src { background: transparent; border-style: dashed; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------- 오늘 오른 카드 */
.mover-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mover-empty { margin: 0; padding: 16px; background: #fff; border: 1px dashed var(--line); border-radius: 14px; font-size: 13px; color: var(--muted); }
.mover-card {
  position: relative;
  display: flex; gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.mover-card:first-child { border-color: #f2dfa5; box-shadow: 0 8px 22px rgba(255, 203, 5, 0.16); }
.mover-rank {
  position: absolute; top: -8px; left: 12px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: 11.5px; font-weight: 900;
}
.mover-art {
  position: relative; flex-shrink: 0;
  width: 74px; aspect-ratio: 4 / 5;
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px;
  background: linear-gradient(150deg, #eef1f7, #dfe6f1);
}
.mover-art::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.32) 0 2px, transparent 2px 10px);
  mix-blend-mode: overlay;
}
.mover-rarity {
  position: relative; z-index: 1; align-self: flex-start;
  font-size: 9px; font-weight: 900; letter-spacing: 0.04em;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(16, 31, 60, 0.82); color: #fff;
}
.mover-num {
  position: relative; z-index: 1; align-self: flex-end;
  font-size: 9.5px; font-weight: 800;
  color: rgba(16, 31, 60, 0.6);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px; padding: 1px 4px;
}
.mover-body { flex: 1; min-width: 0; }
.mover-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mover-top strong { font-size: 15px; letter-spacing: -0.02em; }
.mover-kream { font-size: 11.5px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.mover-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.mover-price b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mover-delta { font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.mover-delta.is-up { color: #c0392b; }
.mover-meta { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.mover-meta b { color: var(--ink-2); }
.mover-note { margin: 2px 0 0; font-size: 10.5px; color: var(--muted-2); }
.mover-pop {
  margin-top: 8px; padding: 5px 9px;
  border: 1px dashed var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink-2);
  font-size: 11px; font-weight: 800;
}
.mover-pop:hover { border-color: var(--navy); background: #fff; }

.kream-board { margin-top: 16px; }
.kream-board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kream-board-head .chip { flex-shrink: 0; }
.kream-table td small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.kream-name { font-weight: 800; color: var(--navy); }
.kream-name:hover { text-decoration: underline; }
.kream-sub { font-variant-numeric: tabular-nums; }
.kream-pct { font-weight: 800; font-variant-numeric: tabular-nums; }
.kream-pct.is-up { color: #c0392b; }
.kream-pct.is-down { color: #1f4fbe; }
.kream-pct.is-flat { color: var(--green); }
.kream-page { font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.kream-page.is-up { color: #c0392b; }
.kream-page.is-down { color: #1f4fbe; }
.kream-na { font-size: 11.5px; color: var(--muted-2); }

/* ---------------------------------------------------------- 카드 이슈 */
.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.issue-item {
  display: grid; grid-template-columns: 78px 1fr; gap: 14px;
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.issue-side {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding-right: 12px; border-right: 1px dashed var(--line);
}
.issue-date { font-size: 11.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.issue-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--grey-soft); color: var(--ink-2); }
.issue-item.is-urgent { border-color: #f6cfcb; }
.issue-item.is-urgent .issue-tag { background: #fdeceb; color: #b3261e; }
.issue-item.is-release .issue-tag { background: var(--yellow-soft); color: #7a5a00; }
.issue-item.is-market .issue-tag { background: var(--blue-soft); color: #1f4fbe; }
.issue-item.is-event .issue-tag { background: var(--green-soft); color: var(--green); }
.issue-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.4; letter-spacing: -0.02em; }
.issue-body p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.issue-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.issue-links a { font-size: 11.5px; font-weight: 800; color: var(--blue); }

/* ------------------------------------------------------ 신규 팩 발매 */
.release-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.release-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.release-card.is-soon { border-color: #f2dfa5; box-shadow: 0 8px 20px rgba(255, 203, 5, 0.14); }
.release-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.release-date { font-size: 11.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.release-card h3 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.3; letter-spacing: -0.02em; }
.release-type { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.release-spec { margin: 8px 0 0; display: grid; gap: 6px; }
.release-spec div { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 12px; }
.release-spec dt { color: var(--muted-2); font-weight: 700; }
.release-spec dd { margin: 0; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.release-note { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.release-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.release-links a { font-size: 11.5px; font-weight: 800; color: var(--blue); }

/* ---------------------------------------------------------- 팝수 조회 */
.pop-board { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.pop-label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pop-row { display: flex; gap: 8px; }
.pop-input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px;
}
.pop-input:focus { outline: none; border-color: var(--navy); background: #fff; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pop-chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.pop-chip:hover { border-color: var(--navy); background: var(--paper); }
.pop-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pop-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); text-align: left; text-decoration: none;
}
button.pop-link { font: inherit; color: inherit; cursor: pointer; }
.pop-link b { font-size: 12.5px; }
.pop-link small { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.pop-link:hover { border-color: var(--navy); background: #fff; }
.pop-results { display: grid; gap: 10px; margin-top: 14px; }
.pop-empty { margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); font-size: 12.5px; color: var(--muted); }
.pop-range { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #f2dfa5; border-radius: 12px; background: var(--yellow-soft); font-size: 12px; color: #6b5200; line-height: 1.55; }
.pop-range b { font-size: 13px; }
.pop-card { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pop-art { position: relative; flex-shrink: 0; width: 58px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; display: flex; padding: 5px; }
.pop-info { flex: 1; min-width: 0; }
.pop-name { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.pop-set { font-size: 11px; font-weight: 700; color: var(--muted); }
.pop-price { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-2); }
.pop-price.muted { color: var(--muted-2); }
.pop-note-line { margin: 4px 0 0; font-size: 11px; color: var(--muted); line-height: 1.55; }
.pop-card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pop-card-links a, .pop-card-links button {
  padding: 0; border: 0; background: none;
  font-size: 11px; font-weight: 800; color: var(--blue);
  text-decoration: underline; cursor: pointer;
}
.pop-relay { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pop-relay-title { display: block; margin-bottom: 4px; font-weight: 800; color: var(--ink-2); }
.pop-relay-row { display: block; }

@media (min-width: 720px) {
  .mover-grid { grid-template-columns: 1fr 1fr; }
  .release-grid { grid-template-columns: 1fr 1fr; }
  .pop-links { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 679px) {
  .issue-item { grid-template-columns: 1fr; gap: 8px; padding: 13px 14px; }
  .issue-side { flex-direction: row; align-items: center; gap: 8px; padding: 0 0 8px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .pop-links { grid-template-columns: 1fr 1fr; }
  .pop-board { padding: 14px; border-radius: 16px; }
}

/* 하단 내비게이션 5탭 (390px에서 줄바꿈·잘림 없이) */
@media (max-width: 679px) {
  .main-nav { grid-template-columns: repeat(var(--moa-tab-count, 5), minmax(0, 1fr)); }
  .nav-btn { font-size: 10.5px; padding: 7px 2px; letter-spacing: -0.02em; white-space: nowrap; min-width: 0; }
  .nav-btn .nav-ico { line-height: 1; }
  .nav-btn .nav-ico svg { width: 15px; height: 15px; }
}
@media (max-width: 359px) {
  .nav-btn { font-size: 9.5px; gap: 2px; }
}
@media (min-width: 680px) and (max-width: 1119px) {
  .main-nav { gap: 2px; }
  .nav-btn { padding: 9px 9px; font-size: 12.5px; }
  .header-date { display: none; }
}

/* KREAM 체결표 — 모바일에서는 카드 칼럼 안에 요약해 가로 스크롤을 없앰 */
.kream-m-only { display: none; }
@media (max-width: 679px) {
  .kream-table { table-layout: auto; font-size: 12px; }
  .kream-table th, .kream-table td { padding: 9px 8px; }
  .kream-table th:nth-child(3), .kream-table td:nth-child(3),
  .kream-table th:nth-child(5), .kream-table td:nth-child(5),
  .kream-table th:nth-child(6), .kream-table td:nth-child(6) { display: none; }
  .kream-table td { vertical-align: top; }
  .kream-m-only { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }
  .kream-name { font-size: 13px; }
  .kream-sub { font-size: 10px; }
}

/* 상단 내비게이션 5탭 — 1600px 미만에서는 날짜 표기를 접고 간격을 줄여 한 줄 유지 */
@media (min-width: 680px) and (max-width: 1599px) {
  .nav-btn { padding: 9px 11px; font-size: 13.5px; }
  .header-date { display: none; }
}
@media (min-width: 680px) and (max-width: 1023px) {
  .nav-btn { padding: 8px 7px; font-size: 12px; letter-spacing: -0.02em; }
  .header-actions { gap: 4px; margin-left: 2px; }
  .header-actions .btn-sm { padding: 8px 8px; font-size: 11.5px; }
}

/* 「📲 앱 설치」 (2026-11-25) — 헤더 한 줄에 함께 넣기 위한 간격 보정
   1024~1119px: 탭이 가장 넓어지는 구간이라 ≤1023px 와 같은 값으로 탭 간격만 좁혀
                설치 아이콘(38px)이 한 줄에 들어가게 합니다.
   1600px~   : 날짜 표기가 다시 나오고 오른쪽에 설치·문의·제보가 나란히 서므로,
                탭 간격과 날짜를 한 줄로 정리해 헤더가 넘치지 않게 합니다. */
@media (min-width: 1024px) and (max-width: 1119px) {
  .nav-btn { padding: 8px 7px; font-size: 12px; letter-spacing: -0.02em; }
  .header-actions { gap: 6px; margin-left: 4px; }
}
@media (min-width: 1600px) {
  .main-nav { gap: 2px; }
  .nav-btn { padding: 9px 10px; font-size: 13px; }
  .header-actions { gap: 6px; }
  .header-date { white-space: nowrap; }
}

/* 태블릿 폭(680~959px) — 상단 5탭과 우측 버튼이 한 줄에 들어가도록 더 좁게 */
@media (min-width: 680px) and (max-width: 959px) {
  .header-inner { gap: 10px; }
  .nav-btn { padding: 8px 4px; font-size: 11px; letter-spacing: -0.03em; }
  .header-actions { gap: 4px; margin-left: 0; }
  .header-actions .btn-sm { padding: 7px 7px; font-size: 11px; }
  .brand-text strong { font-size: 16px; }
}

/* 680~729px — 상단 버튼 두 개까지 넣으면 넘치므로 헤더 버튼만 접고(푸터·탭 하단에 그대로 있음) 탭을 유지 */
@media (min-width: 680px) and (max-width: 729px) {
  .header-actions .btn-sm { display: none; }
}

/* =========================================================================
   v4.9.2 매장별 보유 카드 목록 — 모바일은 내부 스크롤 없이 페이지 스크롤에 합류
   (데스크톱 2열은 기존처럼 목록만 스크롤)
   ========================================================================= */
@media (max-width: 979px) {
  .store-list {
    max-height: none;
    overflow-y: visible;
    padding-bottom: 12px;
  }
  .map-side .store-list { flex: 0 0 auto; }
  .store-more {
    white-space: normal;
    line-height: 1.45;
    padding: 12px 10px;
    font-size: 12.5px;
  }
  .store-more-wrap { padding: 2px 8px 12px; }
}

/* ============================================================
   v4.10 — 5탭 재편: 일정·소식(서브탭) / 도감·시세(세트 검색) / 팝수 조회
   ============================================================ */
.sub-tabs { display: flex; gap: 8px; margin: 4px 0 16px; }
.sub-tab {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink-2); cursor: pointer;
}
.sub-tab:hover { border-color: var(--navy); }
.sub-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.subtab-body[hidden] { display: none; }

.pop-company { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.pop-company-btn {
  padding: 11px 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font: inherit; font-size: 13px; font-weight: 900; letter-spacing: 0.02em;
  color: var(--ink-2); cursor: pointer;
}
.pop-company-btn:hover { border-color: var(--navy); }
.pop-company-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
.pop-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pop-query-line { margin: 0 0 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink); }
.pop-kind { padding: 2px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 10.5px; font-weight: 800; color: var(--muted); }
.pop-match { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pop-match-name { font-size: 13.5px; font-weight: 800; }
.pop-match-meta { font-size: 11.5px; color: var(--muted); }

.set-search { margin: 14px 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.set-search-label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.set-search-row { display: flex; gap: 8px; }
.set-search-input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px;
}
.set-search-input:focus { outline: none; border-color: var(--navy); background: #fff; }
.set-search-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.set-search-result { display: grid; gap: 10px; margin-bottom: 14px; }
.set-search-result:empty { display: none; }
.set-search-empty { margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); font-size: 12.5px; color: var(--muted); }
.set-search-card { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ssc-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ssc-code { font-size: 10.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.ssc-head h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.ssc-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 10px; }
.ssc-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.ssc-grid dt { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.ssc-grid dd { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.set-resell-links { display: flex; flex-wrap: wrap; gap: 8px; }
.set-resell-links a {
  padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper);
  font-size: 11.5px; font-weight: 800; color: var(--ink-2); text-decoration: none;
}
.set-resell-links a:hover { border-color: var(--navy); background: #fff; color: var(--navy); }
.ssc-actions { margin-top: 10px; }


/* 세트 검색 결과에 덧붙는 GS25 팜사이즈 원더 피규어 카드 */
.figure-search-card { border-color: #f4dfa0; background: linear-gradient(135deg, #fffdf4 0%, #fffdf4 60%, #fff8e2 100%); }
.figure-search-card .fsc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.figure-search-card .fsc-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; border: 1px solid #efdca0; }
.figure-search-card .fsc-head > div { min-width: 0; }
.figure-search-card .ssc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 720px) {
  .ssc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  .pop-company { gap: 5px; }
  .pop-company-btn { padding: 10px 2px; font-size: 12px; }
  .sub-tab { padding: 8px 12px; font-size: 12px; }
  .set-search { padding: 12px; }
}

/* ============================================================
   도감·시세 상단 — 실시간 환율 위젯 · 시세·거래가 조회
   ============================================================ */
.fx-widget {
  margin: 14px 0 10px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
  box-shadow: var(--shadow-sm);
}
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fx-title { font-size: 12px; font-weight: 900; letter-spacing: 0.02em; color: var(--ink); }
.fx-src { font-size: 10.5px; font-weight: 700; color: var(--muted-2); }
.fx-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
}
.fx-cur { font-size: 10.5px; font-weight: 900; color: var(--muted); letter-spacing: 0.04em; }
.fx-cur small { font-weight: 700; color: var(--muted-2); margin-left: 2px; }
.fx-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.fx-cap { font-size: 11px; font-weight: 700; color: var(--muted-2); }
.fx-val { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-card.is-error .fx-val { font-size: 12.5px; color: var(--grey); }
.fx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.fx-note { font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.fx-note.is-warn { color: #b45309; font-weight: 700; }
.fx-refresh {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 800; cursor: pointer;
  font-family: inherit;
}
.fx-refresh:hover { border-color: var(--navy); color: var(--navy); }

/* ---- 해외직구 카드값 계산기 (환율 위젯 안쪽) ---- */
.fx-calc { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fx-calc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.fx-calc-title { font-size: 12px; font-weight: 900; letter-spacing: 0.01em; color: var(--ink); }
.fx-calc-rate { font-size: 10.5px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.fx-calc-rate.is-warn { color: #b45309; }
.fx-calc-cur { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.fx-cur-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer; font-family: inherit; text-align: left;
}
.fx-cur-btn b { font-size: 12px; font-weight: 900; color: var(--ink-2); }
.fx-cur-btn small { font-size: 10px; font-weight: 700; color: var(--muted-2); }
.fx-cur-btn:hover { border-color: var(--navy); }
.fx-cur-btn.is-active { border-color: var(--navy); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.fx-cur-btn.is-active b { color: var(--navy); }
.fx-cur-btn.is-active small { color: var(--navy-3); }
.fx-calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fx-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-field.is-wide { grid-column: 1 / -1; }
.fx-field-label { font-size: 10.5px; font-weight: 800; color: var(--muted); }
.fx-field input,
.fx-field select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fx-field input::placeholder { color: #a7b0c0; font-weight: 600; }
.fx-field input:focus,
.fx-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16, 31, 60, 0.08); }
.fx-calc-hint { margin: 7px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.fx-calc-hint b { color: var(--ink-2); }
.fx-calc-out { margin-top: 9px; }
.fx-calc-empty { margin: 0; padding: 8px 0 2px; font-size: 11.5px; line-height: 1.6; color: var(--muted-2); }
.fx-verdict {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 11px; margin-bottom: 8px; border-radius: 11px;
  font-size: 11.5px; font-weight: 900; line-height: 1.45;
}
.fx-verdict.is-free { background: var(--green-soft); border: 1px solid #bbe6cb; color: var(--green); }
.fx-verdict.is-taxed { background: var(--amber-soft); border: 1px solid #ffd9a8; color: var(--amber); }
.fx-verdict small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; opacity: 0.9; }
.fx-out-rows { display: grid; gap: 4px; }
.fx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11.5px; line-height: 1.5; }
.fx-row-label { color: var(--muted); font-weight: 700; }
.fx-row-val { font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-row.is-sub .fx-row-label { padding-left: 8px; font-weight: 600; color: var(--muted-2); }
.fx-row.is-sub .fx-row-val { color: var(--muted); }
.fx-row.is-zero .fx-row-val { color: var(--green); }
.fx-row.is-sum { margin-top: 2px; padding-top: 5px; border-top: 1px solid var(--line-2); }
.fx-row.is-sum .fx-row-label { color: var(--ink-2); font-weight: 800; }
.fx-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding: 9px 12px; border-radius: 12px; background: var(--navy); color: #fff;
}
.fx-total-label { font-size: 11px; font-weight: 800; opacity: 0.85; }
.fx-total-val { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fx-calc-note { margin: 8px 0 0; font-size: 10px; line-height: 1.55; color: var(--muted-2); }

.market-tools {
  margin: 12px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.mt-head .eyebrow { display: block; margin-bottom: 4px; }
.mt-title { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.mt-lead { margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
/* 아래 ‘리셀 · 해외 실거래 시세’ 는 PSA 그룹과 다른 카드로 보이게 톤을 나눈다. */
.market-tools.resell-tools { background: var(--paper); box-shadow: none; }
.market-tools.resell-tools .mt-group-title { color: var(--ink-2); }
.market-tools.resell-tools .mt-link { background: #fff; }
.mt-link.is-primary {
  border-color: var(--navy);
  background: rgba(16, 31, 60, 0.06);
}
.mt-link.is-primary strong { color: var(--navy); }
.mt-groups { display: grid; gap: 12px; margin-top: 14px; }
.mt-group-title { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 900; color: var(--muted); letter-spacing: 0.01em; }
.mt-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mt-link {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.mt-link:hover { border-color: var(--navy); background: #fff; transform: translateY(-1px); }
.mt-link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-link-body strong { font-size: 12.5px; font-weight: 900; letter-spacing: -0.01em; }
.mt-link-body small { font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-go { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.mt-group.is-official { padding: 10px 11px 8px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(255, 203, 5, 0.06); }
.mt-group.is-official .mt-group-title { color: var(--ink-2); }
.mt-badge {
  display: inline-block; margin: 6px 0 0; padding: 2px 8px;
  border-radius: 999px; background: rgba(16, 31, 60, 0.08);
  font-size: 10px; font-weight: 800; color: var(--ink-2);
}
.mt-note { margin: 12px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted-2); }

.pop-cross {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 12px 0 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper);
}
.pop-cross-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pop-cross-copy b { font-size: 12.5px; color: var(--ink); }
.pop-cross-copy span { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.pop-cross .btn { flex: none; }

@media (max-width: 420px) {
  .mt-links { grid-template-columns: 1fr; }
  .fx-cards { grid-template-columns: 1fr; }
  .fx-calc-fields { grid-template-columns: 1fr; }
  .fx-calc-head { gap: 2px; }
  .fx-total-val { font-size: 17px; }
}

/* =========================================================================
   GS25 팜사이즈 원더 피규어 — 상품 고르기 · 안내 띠 · 홈 소개 · 안내 팝업
   (2026-11-21 추가 · index.html 의 #productPicker · #figureStrip · #figurePromo,
    figure.js 가 그리는 팝업 #fgModal 과 다시 열기 버튼 .fg-reopen)
   ========================================================================= */

/* ---------------------------------------------- 찾을 상품 고르기 */
.product-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;   /* v4.66 — 바로 아래 검색 카드(.map-toolbar)와의 간격 */
}
.pp-label { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; }
.pp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.pp-tab:hover { border-color: var(--navy); }
.pp-tab small { font-weight: 600; font-size: 11px; color: var(--muted); }
.pp-tab .pp-ico { font-size: 14px; line-height: 1; }
.pp-tab.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.pp-tab.is-active small { color: rgba(255, 255, 255, 0.72); }
.pp-new {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------- GS25 피규어 안내 띠 */
.figure-strip {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid #f4dfa0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf4 0%, #fff6d6 100%);
  box-shadow: var(--shadow-sm);
}
.fs-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fs-thumb {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #efdca0;
  background: #fff;
  flex: none;
}
.fs-copy { flex: 1 1 260px; min-width: 0; }
.fs-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 11.5px; font-weight: 800; color: #8a6400; }
.fs-new {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  background: #d93a2b;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.fs-copy h2 { margin: 0; font-size: 17px; letter-spacing: -0.025em; }
.fs-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.fs-status { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.fs-status b { color: var(--ink); }
.fs-status.is-busy { color: var(--blue); }
.fs-status.is-error { color: var(--red, #c0392b); }
.fs-actions { display: flex; gap: 6px; flex: none; }
.fs-series { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fs-series li { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #f3e6bb; border-radius: 12px; background: #fff; min-width: 0; }
.fs-series a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fs-series img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; background: var(--paper); }
.fs-series b { display: block; font-size: 12px; letter-spacing: -0.01em; }
.fs-series span { display: block; font-size: 11px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.fs-series .fs-count { font-weight: 800; color: var(--ink-2); }

/* ---------------------------------------------- 홈 탭 소개 */
.figure-promo { padding-top: 8px; }
.fp-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(460px 220px at 100% 0%, rgba(255, 203, 5, 0.22), transparent 70%),
    #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fp-media { position: relative; border-radius: 16px; overflow: hidden; background: #0d3a63; }
.fp-media img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: top center; }
.fp-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.fp-body { min-width: 0; }
.fp-body h2 { margin: 8px 0 0; font-size: 25px; line-height: 1.25; letter-spacing: -0.035em; }
.fp-body h2 em { font-style: normal; color: #d93a2b; }
.fp-lead { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.fp-lead b { color: var(--ink); }
.fp-series { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.fp-series li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.fp-series img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; background: #fff; }
.fp-series .fp-s-no { font-weight: 900; font-size: 12.5px; color: var(--ink); flex: none; }
.fp-series .fp-s-lineup { font-size: 12px; color: var(--muted); line-height: 1.45; min-width: 0; }
.fp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.fp-src { margin: 12px 0 0; font-size: 11px; color: var(--muted-2); line-height: 1.6; }
.fp-src a { text-decoration: underline; }

/* ---------------------------------------------- 안내 팝업 */
.fg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 14, 28, 0.58);
  overflow-y: auto;
}
.fg-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(8, 14, 28, 0.38);
  animation: fg-pop 0.18s ease-out;
}
@keyframes fg-pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.fg-hero { position: relative; background: #0d3a63; }
.fg-hero img { width: 100%; height: 268px; object-fit: cover; object-position: top center; }
.fg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 16, 30, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.fg-close:hover { background: rgba(8, 16, 30, 0.78); }
.fg-flag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.fg-body { padding: 16px 18px 14px; }
.fg-eyebrow { margin: 0; font-size: 11.5px; font-weight: 800; color: #b3392b; letter-spacing: 0.02em; }
.fg-body h2 { margin: 4px 0 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.03em; }
.fg-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.fg-facts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fg-facts li { padding: 8px 10px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line-2); }
.fg-facts span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.fg-facts b { display: block; font-size: 13px; letter-spacing: -0.02em; margin-top: 1px; }
.fg-series { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.fg-series li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.fg-series img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; background: var(--paper); }
.fg-series b { flex: none; font-size: 12px; color: var(--ink); }
.fg-actions { display: grid; gap: 8px; margin: 14px 0 0; }
.fg-btn-primary {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  text-align: center;
}
.fg-btn-primary:hover { background: var(--navy-2); }
.fg-btn-ghost {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 800;
  font-size: 12.5px;
  text-align: center;
}
.fg-note { margin: 10px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted-2); }
.fg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.fg-foot label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fg-foot button { border: 0; background: none; color: var(--ink-2); font-weight: 800; font-size: 12px; text-decoration: underline; }

/* 다시 열기 버튼 — 팝업을 닫은 뒤에도 화면 오른쪽 아래에 남는다 */
.fg-reopen {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 260;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid #efdca0;
  border-radius: 999px;
  background: #fffdf4;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(16, 31, 60, 0.18);
}
.fg-reopen img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.fg-reopen:hover { border-color: var(--navy); }

@media (max-width: 679px) {
  .pp-label { display: none; }
  .pp-tab { padding: 8px 12px; font-size: 12.5px; }
  .pp-tab small { display: none; }
  .figure-strip { padding: 12px; }
  .fs-thumb { width: 64px; height: 64px; border-radius: 12px; }
  .fs-copy { flex: 1 1 150px; }
  .fs-copy h2 { font-size: 15.5px; }
  .fs-actions { width: 100%; }
  .fs-actions .btn { flex: 1; }
  .fs-series { grid-template-columns: 1fr; }
  .fp-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .fp-media img { max-height: 260px; }
  .fp-body h2 { font-size: 21px; }
  .fp-actions .btn { flex: 1 1 auto; }
  .fg-hero img { height: 210px; }
  .fg-body { padding: 14px 15px 12px; }
  .fg-body h2 { font-size: 18px; }
  /* 모바일은 하단 고정 탭바(약 58px + 안전 영역) 위에 띄운다 */
  .fg-reopen { bottom: calc(74px + env(safe-area-inset-bottom)); right: 10px; font-size: 11.5px; padding: 6px 11px 6px 7px; }
  .fg-reopen img { width: 26px; height: 26px; }
}

/* 피규어 모드에서는 카드(4사) 재고 진행률 패널을 숨긴다 — 피규어 재고는 안내 띠(#figureStrip)가 맡는다 */
body.figure-mode #brandProgress { display: none !important; }

/* ---------------------------------------------- GS25 피규어 재고 조회 진행률 (v=118) */
/* 카드 모드의 4사 패널 대신, 피규어 모드에서만 보이는 스피너 · 진행 바 · % 패널.
   '매장 찾는 중 → 3km 격자 재고 조회 중 → 완료'를 검색(지도 툴바·v4.66 부터는 그 아래)과
   진행률·지도 사이에서 보여 준다. */
.figure-progress {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 12px 14px 13px;
  background: #fff;
  border: 1px solid #f4dfa0;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.figure-progress[hidden] { display: none; }
body:not(.figure-mode) .figure-progress { display: none !important; }
.fgp-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fgp-spin {
  width: 13px; height: 13px; flex: none;
  border-radius: 50%;
  border: 2px solid #f1e2b4;
  border-top-color: #d9a41a;
  animation: pm-spin 0.85s linear infinite;
}
.figure-progress[data-state="done"] .fgp-spin,
.figure-progress[data-state="error"] .fgp-spin { display: none; }
.fgp-title {
  min-width: 0;
  font-size: 12.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fgp-pct {
  margin-left: auto; flex: none;
  font-size: 12.5px; font-weight: 900; color: #8a6400;
  font-variant-numeric: tabular-nums;
}
.fgp-bar {
  display: block; height: 8px; border-radius: 999px;
  background: #f7efd6; overflow: hidden;
}
.fgp-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7c948, #e8a80c);
  /* v4.67 — figure.js 가 rAF 로 매 프레임 그린다. 전환은 프레임 사이를 짧게 잇는 용도만 */
  transition: width 0.1s linear;
}
.fgp-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
/* 움직임 줄이기 설정에서는 진행률을 보간하지 않고 목표값으로 바로 그린다 */
@media (prefers-reduced-motion: reduce) {
  .bp-bar i, .fgp-bar i { transition: none; }
}
.figure-progress[data-state="done"] .fgp-bar i { background: var(--green); }
.figure-progress[data-state="done"] .fgp-pct { color: var(--green); }
.figure-progress[data-state="error"] .fgp-bar i { background: #c9705a; }
.figure-progress[data-state="error"] .fgp-pct { color: #b4541f; }
.figure-progress[data-state="error"] .fgp-note { color: #b4541f; }

@media (max-width: 640px) {
  .figure-progress { padding: 10px 12px 11px; margin-top: 10px; }
  .fgp-note { font-size: 11.5px; }
}

/* ============================================================
   공식 콜라보 — 일정·소식 서브탭 (assets/data/collabs.json)
   ============================================================ */
.sub-tabs { flex-wrap: wrap; }

.collab-lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 720px; }

.collab-filter { display: grid; gap: 8px; margin-bottom: 14px; }
.collab-filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.collab-filter-label {
  flex: 0 0 auto; margin-right: 2px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted-2);
  text-transform: uppercase;
}
.collab-chip {
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink-2); cursor: pointer;
}
.collab-chip.is-soft { border-width: 1px; background: var(--paper); font-weight: 700; }
.collab-chip:hover { border-color: var(--navy); }
.collab-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.collab-summary {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  margin: 0 0 12px; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  font-size: 12.5px; color: var(--ink-2);
}
.collab-summary b { color: var(--navy); font-variant-numeric: tabular-nums; }
.collab-summary span { margin-left: auto; font-size: 11px; color: var(--muted); }

.collab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.collab-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.collab-card.is-ongoing { border-color: #d9e3f5; }
.collab-card.is-global { background: #fbfcff; }
.collab-card.is-ended { background: #fbfbfc; }
.collab-card.is-ended .collab-title { color: var(--ink-2); }

.collab-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.collab-brand {
  padding: 3px 9px; border-radius: 7px;
  background: var(--navy); color: var(--yellow);
  font-size: 11.5px; font-weight: 900; letter-spacing: -0.02em;
}
.collab-cat { font-size: 11px; font-weight: 800; color: var(--muted-2); }
.collab-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
  background: var(--green-soft); color: var(--green);
}
.collab-badge.is-ended { background: var(--grey-soft); color: var(--muted); }
.collab-badge.is-upcoming { background: var(--yellow-soft); color: #7a5a00; }
.collab-badge.is-global { background: var(--blue-soft); color: #1f4fbe; }
.collab-dday { font-weight: 800; opacity: 0.75; font-variant-numeric: tabular-nums; }

.collab-title { margin: 0; font-size: 15.5px; line-height: 1.35; letter-spacing: -0.02em; }
.collab-period {
  margin: 0; font-size: 11.5px; font-weight: 800; color: var(--navy-3);
  font-variant-numeric: tabular-nums;
}
.collab-goods { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.collab-goods li {
  position: relative; padding-left: 11px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.collab-goods li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--yellow);
}
.collab-price {
  display: flex; gap: 8px; align-items: baseline;
  margin: 2px 0 0; padding: 8px 10px;
  background: var(--paper); border-radius: 10px;
  font-size: 13px; font-weight: 800; color: var(--navy);
}
.collab-price span { font-size: 10.5px; font-weight: 800; color: var(--muted-2); letter-spacing: 0.04em; }
.collab-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.collab-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
}
.collab-links a { font-size: 11.5px; font-weight: 800; color: var(--blue); }
.collab-empty {
  padding: 22px 16px; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 16px;
  font-size: 12.5px; color: var(--muted);
}
.collab-src { margin: 14px 0 0; font-size: 11px; color: var(--muted-2); line-height: 1.6; }

@media (min-width: 900px) {
  .collab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .collab-card { padding: 14px; }
  .collab-title { font-size: 14.5px; }
  .collab-badge { margin-left: 0; }
  .collab-summary span { margin-left: 0; }
}

/* ============================================================ v=122 (2026-11-22)
   지도 탭 두 가지 정리
   ① 다섯 개 상태 안내는 기본으로 접어 두고 ‘안내 보기’로 펼친다.
   ② 팜사이즈 원더 피규어(GS25 단독) 모드에서는 4사 요약·오프라인 필터 대신 GS25 만 보인다.
      카드 모드로 돌아오면 두 규칙 모두 풀려 기존 화면 그대로입니다(숨김은 CSS 만, hidden 속성·설정값은 건드리지 않음). */

/* ① 상태 안내 접기 — 예전 .status-guide 를 <details> 안에 그대로 두었다 */
.status-guide-fold {
  margin-top: 18px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.status-guide-fold > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-size: 12.5px;
  color: var(--muted);
}
.status-guide-fold > summary::-webkit-details-marker { display: none; }
.status-guide-fold .sgf-title { font-weight: 800; color: var(--ink-2); }
.status-guide-fold .sgf-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-2);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
.status-guide-fold .sgf-more {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}
.status-guide-fold .sgf-more::after { content: " ＋"; }
.status-guide-fold[open] .sgf-more::after { content: " －"; }
.status-guide-fold[open] > summary { padding-bottom: 4px; }
.status-guide-fold .status-guide { margin-top: 4px; padding-bottom: 12px; }
.status-guide-fold .status-guide div { background: var(--paper); border-color: transparent; }

/* ② 피규어 모드 = GS25 단독 상품 — 4사 요약은 GS25 카드 하나만 */
body.figure-mode #brandSummary { grid-template-columns: minmax(0, 1fr); }
body.figure-mode #brandSummary .bs-card:not([data-brand="gs25"]) { display: none !important; }
body.figure-mode #brandSummary .bs-card {
  min-width: 0;
  flex: 1 1 auto;
  -webkit-mask-image: none;
  mask-image: none;
}
/* 모바일에서 5장을 옆으로 넘기던 스크롤·오른쪽 페이드도 한 장이면 필요 없다 */
body.figure-mode #brandSummary {
  display: grid;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
/* 피규어 모드에서는 오프라인 판매처 필터를 감춘다 — 지도에는 GS25 매장만 그린다 */
body.figure-mode #offlineBar { display: none !important; }
/* 범례에서도 세븐일레븐·오프라인 항목은 피규어 모드에 없으므로 감춘다 */
body.figure-mode .map-legend [data-legend="seven"],
body.figure-mode .map-legend [data-legend="offline"] { display: none; }

/* 노란 안내 배너 문구도 GS25 기준으로 바꿔 준다 */
.notice-figure { display: none; }
body.figure-mode .demo-notice .notice-long,
body.figure-mode .demo-notice .notice-short { display: none; }
body.figure-mode .demo-notice .notice-figure { display: block; }

/* =========================================================================
   v=125 이마트(대형마트) 실시간 점포 재고 — 이마트 앱 점포 재고를 직접 조회한 값
   ========================================================================= */
.chip.chip-closed { background: #fdecec; border: 1px solid #f4c9c9; color: #a32020; font-weight: 800; }
.chip.chip-hours { background: #f2f4f8; border: 1px solid #dde3ee; color: #46536b; font-weight: 700; }
.store-item .s-meta .chip-closed,
.store-item .s-meta .chip-hours { font-size: 10px; padding: 3px 8px; }
.store-item.is-emart .s-name { font-weight: 700; }

/* 지도 말풍선 — 이마트는 재고/비공개/품절을 점 색으로 구분한다 */
.pm-pill.is-emart { letter-spacing: -0.2px; }
.pm-pill.is-emart.status-check { border-color: rgba(201, 162, 39, 0.45); }

/* 매장 카드 — 카드 상품별 재고 목록 */
.emart-stock {
  list-style: none;
  margin: 10px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  max-height: 232px;
  overflow-y: auto;
}
.emart-stock .es-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 12.5px;
}
.emart-stock .es-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 700;
  color: var(--ink);
}
.emart-stock .es-name i {
  font-style: normal;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--muted-2);
}
.emart-stock .es-qty {
  white-space: nowrap;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.emart-stock .is-in { background: var(--green-soft); }
.emart-stock .is-in .es-qty { color: var(--green); }
.emart-stock .is-undisclosed { background: var(--amber-soft); }
.emart-stock .is-undisclosed .es-qty { color: var(--amber); }
.emart-stock .is-none .es-qty { color: var(--grey); }
.emart-stock .is-na { background: #f4f6fa; }
.emart-stock .is-na .es-name,
.emart-stock .is-na .es-qty { color: #9aa5b8; font-weight: 600; }
@media (max-width: 679px) {
  /* 좁은 화면에서는 카드가 지도를 다 덮지 않도록 재고표 높이를 줄인다(카드 안에서 스크롤) */
  .emart-stock { max-height: 168px; }
}


/* ============================================================
   일정·소식 대분류 (카드 일정·소식 / 포켓몬 GO 일정·소식 / 공식 콜라보)  v=133 (2026-11-23)
   + 포켓몬 GO 칸 (assets/data/pokemongo.json · assets/js/pokemongo.js)
   ============================================================ */
.sub-tabs-main { margin-top: 6px; }
.sub-tabs-main .sub-tab { padding: 10px 16px; font-size: 13px; }
.sub-tabs-main .sub-tab.is-active { box-shadow: 0 6px 16px rgba(16, 31, 60, 0.18); }
.sub-tabs-inner { margin: -4px 0 14px; gap: 6px; }
.sub-tabs-inner .sub-tab {
  padding: 6px 13px; border-width: 1.2px; font-size: 12px;
  background: var(--paper); color: var(--ink-2);
}
.sub-tabs-inner .sub-tab.is-active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

.pgo-filter { display: grid; gap: 8px; margin: 0 0 14px; }
.pgo-filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pgo-filter-label {
  flex: 0 0 auto; margin-right: 2px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted-2);
  text-transform: uppercase;
}
.pgo-chip {
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink-2); cursor: pointer;
}
.pgo-chip.is-soft { border-width: 1px; background: var(--paper); font-weight: 700; }
.pgo-chip:hover { border-color: var(--navy); }
.pgo-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.pgo-summary {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  margin: 0 0 12px; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  font-size: 12.5px; color: var(--ink-2);
}
.pgo-summary b { color: var(--navy); font-variant-numeric: tabular-nums; }
.pgo-summary span { margin-left: auto; font-size: 11px; color: var(--muted); }

.pgo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.pgo-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.pgo-card.is-ongoing { border-color: #d9e3f5; }
.pgo-card.is-ended { background: #fbfbfc; }
.pgo-card.is-ended .pgo-title { color: var(--ink-2); }

.pgo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pgo-type {
  padding: 3px 9px; border-radius: 7px;
  background: var(--navy); color: var(--yellow);
  font-size: 11.5px; font-weight: 900; letter-spacing: -0.02em;
}
.pgo-today {
  padding: 3px 8px; border-radius: 999px;
  background: var(--yellow-soft); color: #7a5a00;
  font-size: 10.5px; font-weight: 900;
}
.pgo-src { font-size: 10.5px; font-weight: 800; color: var(--muted-2); }
.pgo-src.is-official { color: var(--blue); }
.pgo-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
  background: var(--green-soft); color: var(--green);
}
.pgo-badge.is-upcoming { background: var(--yellow-soft); color: #7a5a00; }
.pgo-badge.is-ended { background: var(--grey-soft); color: var(--muted); }
.pgo-dday { font-weight: 800; opacity: 0.75; font-variant-numeric: tabular-nums; }

.pgo-title { margin: 0; font-size: 15.5px; line-height: 1.35; letter-spacing: -0.02em; }
.pgo-period {
  margin: 0; font-size: 11.5px; font-weight: 800; color: var(--navy-3);
  font-variant-numeric: tabular-nums;
}
.pgo-summary-text { margin: 0; }
.pgo-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pgo-points li {
  position: relative; padding-left: 11px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
}
.pgo-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--yellow);
}
.pgo-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
}
.pgo-links a { font-size: 11.5px; font-weight: 800; color: var(--blue); }
.pgo-empty {
  padding: 22px 16px; text-align: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 16px;
  font-size: 12.5px; color: var(--muted);
}
.pgo-note { margin: 14px 0 0; font-size: 11px; color: var(--muted-2); line-height: 1.6; }

@media (min-width: 900px) {
  .pgo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .sub-tabs-main .sub-tab { padding: 9px 13px; font-size: 12.5px; }
  .pgo-card { padding: 14px; }
  .pgo-title { font-size: 14.5px; }
  .pgo-badge, .pgo-summary span { margin-left: 0; }
}

/* ============================================================
   포켓몬 GO 달력 뷰 (assets/js/pokemongo.js · v=136)
   ============================================================ */
.pgo-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  margin: 0 0 12px;
}
.pgo-viewtoggle {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.pgo-viewbtn {
  padding: 7px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-size: 12.5px; font-weight: 800; letter-spacing: -0.02em;
}
.pgo-viewbtn:hover { color: var(--navy); }
.pgo-viewbtn.is-on {
  background: var(--navy); color: #fff;
  box-shadow: 0 4px 12px rgba(16, 31, 60, 0.18);
}
.pgo-monthnav { display: flex; align-items: center; gap: 6px; }
.pgo-monthbtn {
  width: 34px; height: 34px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--navy);
  font-size: 17px; font-weight: 900; line-height: 1;
}
.pgo-monthbtn:hover { border-color: var(--navy); background: var(--blue-soft); }
#pgoMonthLabel {
  min-width: 100px; text-align: center;
  font-size: 14.5px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.pgo-monthtoday {
  padding: 8px 13px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.02em;
}
.pgo-monthtoday:hover { border-color: var(--navy); color: var(--navy); }

.pgo-calwrap { display: grid; gap: 16px; margin: 0 0 4px; }

.pgcal {
  padding: 14px 12px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.pgcal-dows {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px; margin-bottom: 5px;
}
.pgcal-dows span {
  padding: 2px 0; text-align: center;
  font-size: 10.5px; font-weight: 800; color: var(--muted-2);
}
.pgcal-dows span.sun { color: #c8384b; }
.pgcal-dows span.sat { color: #2f6df6; }

.pgcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }

.pgcal-cell {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  min-height: 62px; padding: 5px 4px 5px;
  background: #fafbfd; border: 1px solid var(--line-2); border-radius: 10px;
  text-align: left; font: inherit; color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.pgcal-cell:hover { border-color: #b9c7e0; background: #f4f7fd; }
.pgcal-cell.has-ev { background: #fff; border-color: var(--line); }
.pgcal-cell.is-out { opacity: 0.42; }
.pgcal-cell.is-today { border-color: var(--navy); }
.pgcal-cell.is-sel {
  background: var(--navy); border-color: var(--navy);
  box-shadow: 0 6px 16px rgba(16, 31, 60, 0.22);
}
.pgcal-daynum {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 900; line-height: 1.2;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.pgcal-cell.is-sun .pgcal-daynum { color: #c8384b; }
.pgcal-cell.is-sat .pgcal-daynum { color: #2f6df6; }
.pgcal-cell.is-today .pgcal-daynum {
  padding: 0 4px; margin-left: -2px;
  background: var(--yellow); color: var(--navy); border-radius: 5px;
}
.pgcal-cell.is-sel .pgcal-daynum { background: var(--yellow); color: var(--navy); }

/* 유형 색 — 칩·막대·상세 패널이 같은 --pgc 를 씁니다. */
.pgc-raid { --pgc: #a8321f; }
.pgc-max { --pgc: #5b2fbf; }
.pgc-weekly { --pgc: #8a5200; }
.pgc-event { --pgc: #2159d8; }
.pgc-season { --pgc: #0b6b5e; }
.pgc-pass { --pgc: #0a5c8a; }
.pgc-news { --pgc: #4f5d78; }

.pgcal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pgcal-chip {
  display: flex; align-items: center; gap: 3px; min-width: 0; max-width: 100%;
  padding: 1px 4px; border-radius: 5px;
  background: var(--pgc, var(--muted)); color: #fff;
  font-size: 9.5px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em;
}
.pgcal-dot { display: none; width: 5px; height: 5px; border-radius: 50%; background: var(--pgc); }
.pgcal-chip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgcal-more { font-size: 9px; font-weight: 900; color: var(--muted); line-height: 1.3; }
.pgcal-cell.is-sel .pgcal-more { color: #cfd9ee; }

.pgcal-bars { display: flex; gap: 2px; margin-top: auto; padding-top: 2px; }
.pgcal-bars i {
  display: block; flex: 1 1 0; min-width: 0; height: 3px; border-radius: 2px;
  background: var(--pgc, var(--muted));
}

.pgcal-legend {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--ink-2);
}
.pgcal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pgcal-legend i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--pgc); }
.pgcal-legend .is-bar i { width: 14px; height: 3px; border-radius: 2px; background: var(--muted); }
.pgcal-note { margin: 8px 0 0; font-size: 11px; color: var(--muted); line-height: 1.55; }

/* 선택한 날짜 상세 패널 */
.pgcal-day {
  padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.pgcal-day:empty { display: none; }
.pgcal-day-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px;
  padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line-2);
}
.pgcal-day-head strong { font-size: 15px; letter-spacing: -0.02em; color: var(--ink); }
.pgcal-day-today {
  padding: 2px 8px; border-radius: 999px;
  background: var(--yellow-soft); color: #6f5100;
  font-size: 10.5px; font-weight: 900;
}
.pgcal-day-count { margin-left: auto; font-size: 11.5px; font-weight: 800; color: var(--muted); }

.pgcal-ev {
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 8px; padding: 11px 12px 11px 11px;
  background: #fdfdff; border: 1px solid var(--line);
  border-left: 4px solid var(--pgc, var(--line)); border-radius: 12px;
}
.pgcal-ev:last-child { margin-bottom: 0; }
.pgcal-ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.pgcal-ev-type {
  padding: 2px 8px; border-radius: 6px;
  background: var(--navy); color: var(--yellow);
  font-size: 10.5px; font-weight: 900; letter-spacing: -0.02em;
}
.pgcal-ev-state { font-size: 10.5px; font-weight: 900; color: var(--green); }
.pgcal-ev-state.is-upcoming { color: #8a5200; }
.pgcal-ev-state.is-ended { color: var(--muted); }
.pgcal-ev-when { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--navy-3); font-variant-numeric: tabular-nums; }
.pgcal-ev-title { margin: 0; font-size: 14px; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.pgcal-ev-meta { margin: 0; font-size: 10.5px; font-weight: 700; color: var(--muted); line-height: 1.5; }
.pgcal-ev-sum { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.pgcal-ev-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.pgcal-ev-points li {
  position: relative; padding-left: 10px;
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.pgcal-ev-points li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--pgc, var(--yellow));
}
.pgcal-ev-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.pgcal-ev-links a { font-size: 11.5px; font-weight: 800; color: var(--blue); }

.pgcal-empty {
  margin: 0; padding: 16px 12px; text-align: center;
  background: var(--paper); border: 1px dashed var(--line); border-radius: 12px;
  font-size: 12.5px; color: var(--muted);
}
.pgcal-next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 8px; padding: 10px 12px;
  background: var(--blue-soft); border-radius: 12px;
  font-size: 12px; font-weight: 800; color: var(--navy);
}
.pgcal-next span { font-size: 10.5px; font-weight: 900; color: var(--blue); }
.pgcal-goto {
  margin-left: auto; padding: 5px 11px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: #fff; color: var(--navy);
  font-size: 11px; font-weight: 900;
}
.pgcal-goto:hover { background: var(--navy); color: #fff; }

@media (min-width: 720px) {
  .pgcal-cell { min-height: 92px; padding: 6px 5px 6px; }
  .pgcal-daynum { font-size: 12.5px; }
  .pgcal-chip { padding: 1px 3px; font-size: 9.5px; letter-spacing: -0.03em; }
}
@media (min-width: 960px) {
  .pgo-calwrap { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .pgcal { padding: 16px 14px 14px; }
  .pgcal-cell { min-height: 98px; }
}
@media (max-width: 719px) {
  /* 좁은 화면은 글자 칩 대신 도트로 — 칸이 40px 남짓이라 글자가 겹칩니다. */
  .pgcal-chip {
    width: 6px; height: 6px; padding: 0;
    background: transparent; border-radius: 50%;
  }
  .pgcal-chip-t { display: none; }
  .pgcal-dot { display: block; }
  .pgcal-chips { flex-direction: row; flex-wrap: wrap; gap: 3px; margin-top: 1px; }
  .pgcal-more { font-size: 8.5px; }
  .pgo-toolbar { gap: 8px; }
  #pgoMonthLabel { min-width: 88px; font-size: 13.5px; }
  .pgo-monthbtn { width: 32px; height: 32px; }
  .pgo-monthtoday { padding: 7px 11px; font-size: 11px; }
  .pgcal-day { padding: 12px; }
  .pgcal-ev-when { margin-left: 0; }
}
.pgcal-sub {
  margin: 12px 0 8px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11px; font-weight: 900; letter-spacing: 0.01em; color: var(--muted);
}
.pgcal-ev.is-compact { padding: 9px 11px 9px 10px; background: #fbfcfe; border-left-width: 3px; }
.pgcal-ev.is-compact .pgcal-ev-title { font-size: 13px; }
.pgcal-ev.is-compact .pgcal-ev-sum {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; color: var(--muted);
}
.pgcal-ev.is-compact .pgcal-ev-links { border-top: 0; padding-top: 2px; }

/* =========================================================================
 * v4.54 — 오프라인 판매처 「참고 입고 요일」 카드 (#offlineStores 안쪽)
 *  · 마트·아트박스·편의점·카드샵이 물량을 푸는 요일을 컴팩트하게 정리
 *  · 모바일 1열 → 720px 2열(카드샵은 가로 전체) → 1080px 3열(카드샵 2칸)
 *  · 색은 기존 변수만 사용 — 새 색을 만들지 않습니다.
 * ========================================================================= */
.arrival-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.arrival-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.arrival-ico {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--yellow-soft);
  color: var(--amber);
  font-size: 14px;
  line-height: 1;
}
.arrival-ico svg { display: block; }
.arrival-head-text { flex: 1 1 auto; min-width: 0; }
.arrival-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.arrival-head-text h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.arrival-head-text p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
.arrival-tag {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--grey-soft);
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.arrival-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.arrival-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 6px 9px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.arrival-who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.arrival-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--brand, #e9eef7);
  color: var(--brand-ink, #10203c);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.arrival-name {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arrival-when {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #7a5a00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.arrival-when.is-long {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding: 3px 9px;
  text-align: right;
  white-space: normal;
}
.arrival-when.is-long > span:first-child { white-space: nowrap; }
.arrival-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.arrival-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted-2);
}
@media (min-width: 720px) {
  .arrival-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .arrival-item.is-wide { grid-column: 1 / -1; }
  .arrival-name { font-size: 13px; }
}
@media (min-width: 960px) {
  .arrival-card { padding: 14px 16px; }
  .arrival-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .arrival-item.is-wide { grid-column: span 2; }
}
@media (max-width: 679px) {
  .arrival-card { padding: 11px 12px; border-radius: 12px; }
  .arrival-when { font-size: 11.5px; padding: 3px 8px; }
  .arrival-name { font-size: 12px; }
}
