/* 개미마을 웹 (유저용) — 공통 스타일. 모바일 우선, 데스크톱에서는 가운데 정렬. */
:root {
  --green: #4A7C59;
  --green-weak: #4a7c5920;
  --orange: #B84A1A;
  --orange-weak: #b84a1a1f;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --text: #1c2420;
  --text-weak: #5d6b63;
  --line: #e2e6e1;
  --danger: #c0392b;
  --maxw: 720px;
  --appbar-h: 52px;
  --nav-h: 58px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1d2125;
    --surface-2: #262b30;
    --text: #e7ece8;
    --text-weak: #9aa6a0;
    --line: #2d3338;
    --green: #6fa982;
    --orange: #e07a4a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* 접근성·폼용 — 화면에는 숨기고 스크린리더·검증만 유지 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 상단 바 ───────────────────────────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--appbar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  background: var(--green); color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.appbar__back {
  border: 0; background: transparent; color: #fff;
  font-size: 30px; line-height: 1; width: 34px; height: 34px;
  border-radius: 50%; margin-left: -6px;
}
.appbar__back:active { background: rgba(255,255,255,.18); }
.appbar__title {
  font-size: 18px; font-weight: 700; margin: 0; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar__actions { display: flex; align-items: center; gap: 2px; }
.appbar__actions button {
  border: 0; background: transparent; color: #fff;
  font-size: 18px; width: 38px; height: 38px; border-radius: 50%;
}
.appbar__link.map-search-clear { font-size: 16px; font-weight: 800; }
.env-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: #ffce54; color: #4a3a00; border-radius: 5px;
  padding: 2px 6px; margin-left: 6px; flex: 0 0 auto;
}

/* ── 본문 영역 ─────────────────────────────────────────── */
.app {
  max-width: var(--maxw); margin: 0 auto;
  min-height: calc(100vh - var(--appbar-h) - var(--nav-h));
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
}

/* ── 하단 내비 ─────────────────────────────────────────── */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface);
  border-top: 1px solid var(--line);
  pointer-events: auto;
}
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; color: var(--text-weak);
  font-size: 11px; font-weight: 600;
  position: relative; z-index: 1; pointer-events: auto;
}
.bottomnav__icon { font-size: 20px; line-height: 1; filter: grayscale(.3); opacity: .8; }
.bottomnav__item.active { color: var(--green); }
.bottomnav__item.active .bottomnav__icon { filter: none; opacity: 1; }

/* ── 공통 요소 ─────────────────────────────────────────── */
.loading { display: flex; justify-content: center; padding: 56px 0; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; color: var(--text-weak); padding: 56px 24px; }
.empty__icon { font-size: 40px; }
.empty p { margin: 10px 0 0; }

.notice {
  margin: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); color: var(--text-weak); font-size: 13px;
}

.draft-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.draft-banner__text { font-size: 13px; color: var(--text); }
.draft-banner__btns { display: flex; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 11px 16px;
  font-size: 14px; font-weight: 700; background: var(--green); color: #fff;
}
.btn:active { opacity: .85; }
.btn--block { width: 100%; }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--google { background: #fff; color: #222; border: 1px solid var(--line); }
.btn--danger { background: var(--danger); }

/* ── 필터 칩 / 정렬 줄 ─────────────────────────────────── */
.toolbar {
  position: sticky; top: var(--appbar-h); z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid transparent; border-radius: 16px;
  padding: 6px 13px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text);
}
.chip--icon { display: inline-flex; align-items: center; gap: 5px; }
.cat-emoji { font-size: 14px; line-height: 1; }
.chip.active { background: var(--green-weak); color: var(--green); border-color: var(--green); }
.sortbar { display: flex; justify-content: flex-end; padding: 0 12px 8px; }
.sortbar select {
  font-size: 12px; padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}

/* ── 목록 행 ──────────────────────────────────────────── */
.list { padding: 4px 0; }
.row {
  display: flex; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.row--popular { border-left: 3px solid var(--green); }
.row__body { flex: 1; min-width: 0; }
.row__tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 3px; }
.row__title {
  font-size: 14.5px; font-weight: 600; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.row__title.read { color: var(--text-weak); font-weight: 500; }
.row__meta {
  display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center;
  margin-top: 5px; font-size: 11.5px; color: var(--text-weak);
}
.row__price { color: var(--orange); font-weight: 800; font-size: 16px; margin: 4px 0; }
.thumb {
  width: 74px; height: 74px; border-radius: 10px; object-fit: cover;
  background: var(--surface-2); flex: 0 0 auto;
}
.thumb--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--orange); background: var(--orange-weak);
}
.tag {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  background: var(--green-weak); color: var(--green);
}
.tag--notice { background: #e74c3c22; color: #c0392b; }
.tag--channel { background: #16a08522; color: #138a72; }
.badge-cnt { font-size: 11px; font-weight: 700; color: var(--green); }
.bookmark { border: 0; background: transparent; font-size: 19px; color: var(--text-weak); padding: 2px; }
.bookmark.on { color: var(--green); }

.loadmore { padding: 14px; }

/* ── 상세 ─────────────────────────────────────────────── */
.detail { padding: 16px; }
.detail__title { font-size: 20px; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.detail__author { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail__meta { font-size: 12.5px; color: var(--text-weak); display: flex; flex-wrap: wrap; gap: 8px; }
.detail__body { font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.detail__body img { border-radius: 10px; margin: 10px 0; }
.priceBanner {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--orange-weak); border: 1px solid #b84a1a55;
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.priceBanner__won { font-size: 25px; font-weight: 800; color: var(--orange); }
.detail__chip {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 14px;
  background: var(--surface-2); color: var(--text-weak); margin: 4px 0;
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px; object-fit: cover;
}
.avatar--sm { width: 28px; height: 28px; font-size: 12px; }

.votes { display: flex; justify-content: center; gap: 14px; margin: 20px 0; }
.vote {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 22px; padding: 9px 18px; font-size: 14px; font-weight: 600;
  color: var(--text-weak);
}
.vote.on-up { color: var(--green); border-color: var(--green); background: var(--green-weak); }
.vote.on-down { color: var(--danger); border-color: var(--danger); background: #c0392b1a; }
.vote--view { border: 0; background: transparent; }

/* ── 댓글 ─────────────────────────────────────────────── */
.sectionTitle { font-weight: 800; font-size: 15px; margin: 18px 0 10px; }
.comment { display: flex; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.comment--reply { margin-left: 22px; }
.comment__main { flex: 1; min-width: 0; }
.comment__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--text-weak); }
.comment__nick { font-weight: 700; color: var(--text); font-size: 13px; }
.comment__body { font-size: 14px; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.badge-author { font-size: 10px; font-weight: 700; color: var(--green); border: 1px solid var(--green); border-radius: 5px; padding: 0 5px; }
.badge-verified { font-size: 11px; color: var(--green); }
.badge-member { font-size: 10px; font-weight: 700; color: var(--text-weak); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.app-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 3px;
  line-height: 0;
  flex-shrink: 0;
}

/* ── 로그인 / 내정보 ───────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 14px; padding: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--text-weak); margin-bottom: 4px; font-weight: 600; }
.field input {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: var(--surface); color: var(--text);
}
.formError { color: var(--danger); font-size: 13px; margin: 4px 0 10px; white-space: pre-wrap; }
.formHint { color: var(--text-weak); font-size: 12.5px; margin-top: 6px; }
.formHint--ok { color: var(--green); font-weight: 700; }
.input-with-button { display: flex; gap: 8px; align-items: stretch; }
.input-with-button input { flex: 1; min-width: 0; }
.input-with-button .btn { flex: 0 0 auto; white-space: nowrap; border-radius: 10px; }
.divider-or { display: flex; align-items: center; gap: 10px; color: var(--text-weak); font-size: 12px; margin: 16px 0; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.profile__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.profile__nick { font-size: 18px; font-weight: 800; }
.profile__sub { font-size: 12.5px; color: var(--text-weak); }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv__k { color: var(--text-weak); }
.points { font-weight: 800; color: var(--green); }

/* ── 토스트 ───────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px);
  transform: translateX(-50%); z-index: 50;
  background: #303a34; color: #fff; padding: 11px 18px; border-radius: 22px;
  font-size: 13.5px; max-width: 86%; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.linklist a { display: block; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.linklist a:first-child { border-top: 0; }

/* ── 지도 (앱 map_screen 스타일) ─────────────────────────── */
body.body--map {
  --map-orange: #FF9800;
  --map-orange-deep: #E65100;
  --map-orange-chip: #FFE0B2;
  --map-orange-chip-border: #F57C00;
  --map-orange-chip-text: #E65100;
  --map-pin-green: #2E7D32;
}
body.body--map .app { padding: 0; min-height: 0; max-width: none; }
body.body--map .appbar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.42) !important;
  color: #1c2420 !important;
  backdrop-filter: blur(10px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.16) !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
  border-bottom: 1px solid rgba(20, 24, 28, 0.08);
  height: 46px !important;
  padding: 0 12px;
  z-index: 100;
}
html[data-theme="dark"] body.body--map:not(.map-day) .appbar,
body.body--map.map-night .appbar {
  background: rgba(20, 23, 26, 0.48) !important;
  color: #e7ece8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.18) !important;
}
html[data-theme="light"] body.body--map:not(.map-night) .appbar,
body.body--map.map-day .appbar {
  background: rgba(255, 255, 255, 0.42) !important;
  color: #1c2420 !important;
}
@media (prefers-color-scheme: dark) {
  body.body--map:not(.map-day) .appbar {
    background: rgba(20, 23, 26, 0.48) !important;
    color: #e7ece8 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}
body.body--map .appbar__title {
  font-size: 14.5px !important;
  font-weight: 700;
}
body.body--map .appbar__actions button,
body.body--map .appbar__actions a,
body.body--map .appbar__link {
  font-size: 15px !important;
  width: 30px !important;
  height: 30px !important;
  color: inherit !important;
}
body.body--map .bottomnav {
  position: absolute;
  left: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  width: 54px;
  height: auto;
  flex-direction: column;
  background: transparent;
  border: none;
  gap: 10px;
  z-index: 150;
  padding: 0;
}
body.body--map .bottomnav__item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
  flex: 0 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
}
body.body--map .bottomnav__item.active {
  border-color: var(--green);
  background: var(--green-weak);
  color: var(--green);
}
body.body--map .bottomnav__icon {
  font-size: 15px;
  line-height: 1;
  margin-bottom: -1px;
}
body.body--map .bottomnav__label {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.mapwrap {
  position: fixed;
  top: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: none;
  z-index: 5;
  overflow: hidden;
  --sheet-ratio: 0.30;
}
.navmap { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--surface-2); }

/* 네이버 지도 로고 — 약관상 완전 제거는 불가(키 차단 위험)라 표시는 유지하되,
   눈에 덜 띄게 살짝 흐리게만. 마우스를 올리면 또렷해져 클릭 가능. */
.navmap a[href*="navercorp"],
.navmap a[href*="map.naver"],
.navmap a[href*="naver.com"] {
  opacity: 0.4 !important;
  transition: opacity .15s ease;
}
.navmap a[href*="navercorp"]:hover,
.navmap a[href*="map.naver"]:hover,
.navmap a[href*="naver.com"]:hover {
  opacity: 1 !important;
}

.map-overlay { position: absolute; z-index: 12; pointer-events: none; }
.map-overlay--top {
  position: absolute;
  top: 50px;
  left: 12px;
  right: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
body.body--map.map-night .map-overlay--top {
  background: rgba(20, 23, 26, 0.72);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.map-top-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  flex: 1;
}
.map-top-filter-scroll::-webkit-scrollbar {
  display: none;
}
.map-overlay--top .map-pill {
  pointer-events: auto;
  flex-shrink: 0;
}
.map-overlay--right {
  top: 62px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}

.map-pill {
  pointer-events: auto;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(0, 0, 0, .87);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  white-space: nowrap;
}
body.body--map.map-night .map-pill {
  background: rgba(38, 43, 48, 0.9);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}
.map-pill--cat.map-pill--active {
  background: var(--map-orange, #FF9800);
  color: #fff;
}
.map-pill--active.map-pill:not(.map-pill--sub) {
  background: var(--map-orange, #FF9800);
  color: #fff;
}
.map-pill--sub {
  font-size: 12px; font-weight: 500; padding: 6px 10px;
  background: #f5f5f5; color: rgba(0, 0, 0, .87);
  border: 1px solid #bdbdbd;
  box-shadow: none;
}
.map-pill--sub.map-pill--active {
  background: var(--map-orange-chip, #FFE0B2);
  color: var(--map-orange-chip-text, #E65100);
  border: 1.5px solid var(--map-orange-chip-border, #F57C00);
  font-weight: 800;
}

.map-subpanel {
  position: absolute; z-index: 12; top: calc(12px + 44px); left: 12px;
  max-width: min(62vw, 320px); padding-left: 0;
  pointer-events: none;
}
.map-subpanel__card {
  pointer-events: auto;
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .14);
  padding: 8px 8px 4px;
}
.map-subpanel__hint {
  margin: 0 0 6px; font-size: 10.5px; font-weight: 600; color: #607d8b;
}
.map-subpanel__chips {
  display: flex; flex-direction: column; gap: 6px;
  max-height: min(280px, calc(100vh - 280px)); overflow-y: auto;
}
.map-subpanel__clear {
  border: none; background: transparent; color: #546e7a;
  font-size: 11.5px; font-weight: 700; padding: 6px 4px 2px; cursor: pointer;
}

.map-search-banner {
  position: absolute; z-index: 13; left: 12px; right: 12px;
  top: 12px; display: flex; align-items: center; gap: 8px;
  background: rgba(46, 99, 67, .92); color: #fff;
  padding: 8px 12px; border-radius: 12px; font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mapwrap--searching .map-search-banner { top: 48px; }
.mapwrap--searching .map-overlay--top { top: 88px; }
.mapwrap--searching .map-overlay--right { top: 100px; }
.mapwrap--searching .map-subpanel { top: 96px; }
.map-search-banner[hidden] { display: none !important; }
.map-search-banner span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-search-banner button {
  flex: 0 0 auto; border: 1px solid rgba(255,255,255,.55); background: transparent;
  color: #fff; border-radius: 14px; padding: 4px 10px; font-size: 11px; font-weight: 700;
}

.map-pin__label {
  margin-top: 2px; max-width: 76px;
  font-size: 10px; font-weight: 800; line-height: 1.15; color: #212121; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 1px 1px 0 #fff, -1px -1px 0 #fff;
}
.map-pin__box {
  margin-top: 3px; max-width: 160px; width: max-content; padding: 2px 5px; text-align: center;
}
.map-pin__box--rect { border-radius: 4px; }
.map-pin__box--oval { border-radius: 999px; }
.map-pin__boxline {
  font-size: 9px; font-weight: 800; line-height: 1.2; color: #212121;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-pin__boxline--rank { color: #b71c1c; font-size: 10px; }

.modal-backdrop--sheet {
  align-items: flex-end; justify-content: center; padding: 0;
}
.modal-card--sheet {
  width: 100%; max-width: var(--maxw); border-radius: 20px 20px 0 0;
  max-height: min(92vh, 640px); margin: 0;
}
.map-price-modal { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); }
.map-price-modal__title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #212121; }
.map-price-modal__desc { margin: 0 0 14px; font-size: 13px; line-height: 1.35; color: #616161; }
.map-price-modal__sub { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #212121; }
.map-price-modal__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.map-price-chip {
  border: 1px solid #bdbdbd; border-radius: 20px; padding: 6px 12px;
  font-size: 13px; font-weight: 600; background: #fff; color: #212121; cursor: pointer;
}
.map-price-chip--active {
  background: rgba(255, 152, 0, .35); border-color: #e65100; color: #e65100;
}
.map-price-range {
  position: relative; height: 36px; margin: 8px 4px 4px;
}
.map-price-range input[type="range"] {
  position: absolute; left: 0; right: 0; width: 100%; margin: 0; pointer-events: none;
  -webkit-appearance: none; appearance: none; height: 36px; background: transparent;
}
.map-price-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--map-orange, #FF9800); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.map-price-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--map-orange, #FF9800); border: 2px solid #fff;
}
.map-price-modal__labels {
  display: flex; justify-content: space-between; font-size: 12px; color: #616161; margin-bottom: 8px;
}
.map-price-modal__hint { margin: 0 0 8px; font-size: 12px; color: #1565c0; }
.map-price-modal__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.map-price-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #424242; }
.map-price-field input {
  border: 1px solid #bdbdbd; border-radius: 8px; padding: 10px; font-size: 14px;
  background: #fff; color: #212121;
}
.map-price-check {
  display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 12px; cursor: pointer;
}
.map-price-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #ff9800; }
.map-price-check b { display: block; font-size: 14px; color: #212121; }
.map-price-check small { display: block; font-size: 12px; color: #616161; margin-top: 2px; line-height: 1.3; }
.map-price-apply { background: var(--map-orange, #FF9800) !important; color: #fff !important; margin-bottom: 8px; }
.btn--ghost { background: transparent; color: #616161; border: none; }
.map-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.mapwrap--list-full .map-search-banner { display: none !important; }
.mapwrap--list-full .bottomnav { display: none !important; }

.map-fab {
  pointer-events: auto;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: #fff; color: #212121; font-size: 20px; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
}
.map-fab--on { background: var(--map-orange, #FF9800); color: #fff; }
.map-fab--busy { opacity: .6; animation: map-spin .8s linear infinite; }
.map-fab__gps-svg { display: block; flex-shrink: 0; }
.map-fab--on .map-fab__gps-svg { color: #fff; }
@keyframes map-spin { to { transform: rotate(360deg); } }

.map-loc-wrap { position: relative; pointer-events: auto; display: flex; flex-direction: column; align-items: flex-end; }

.map-loc-menu {
  pointer-events: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 168px;
  padding: 6px 0;
  border-radius: 12px;
  background: #fff;
  color: #212121;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  z-index: 20;
}
.map-loc-menu[hidden] { display: none !important; }
.map-loc-menu__item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.map-loc-menu__item:hover:not(:disabled) { background: rgba(0, 0, 0, .06); }
.map-loc-menu__item--muted { color: #757575; font-weight: 500; }
.map-loc-menu__item:disabled { opacity: .45; cursor: default; }

/* 「이 지역 검색」 — 자동 로드 대신, 충분히 움직였을 때만 상단 가운데에 뜸 */
.map-area-search {
  position: absolute; z-index: 13;
  top: 95px; left: 50%; transform: translateX(-50%);
  pointer-events: auto; cursor: pointer; border: none;
  border-radius: 22px; padding: 9px 16px;
  font-size: 13px; font-weight: 700;
  background: #fff; color: #1976D2;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
  display: inline-flex; align-items: center; gap: 6px;
}
.map-area-search[hidden] { display: none; }

/* 좌측 업소 패널 접기/펼치기 토글 — 데스크톱에서만 노출 (네이버 지도 ‹ 버튼) */
.map-panel-toggle {
  display: none;
  position: absolute; z-index: 95;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 56px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-left: none;
  border-radius: 0 10px 10px 0;
  background: var(--surface); color: var(--text);
  font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 2px 0 6px rgba(0, 0, 0, .12);
  pointer-events: auto;
}

.map-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; }
.map-pin--top .map-pin__bubble {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b71c1c;
}
.map-pin__rank {
  position: absolute; top: -4px; right: -6px; z-index: 2;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px; background: #b71c1c; color: #fff;
  font-size: 10px; font-weight: 800; line-height: 16px; text-align: center;
  border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.map-pin__bubble {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--map-pin-green, #2E7D32); border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
}
.map-pin--v .map-pin__bubble { background: #16a085; }
.map-pin__point {
  width: 0; height: 0; margin-top: -2px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 10px solid var(--green);
}
.map-pin--v .map-pin__point { border-top-color: #16a085; }

.cluster {
  min-width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 112, 67, .6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(230, 81, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.map-marquee {
  position: absolute; z-index: 11; left: 72px; right: 0;
  bottom: calc(var(--sheet-ratio) * 100%);
  pointer-events: none; overflow: hidden;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 4px 0;
  transition: bottom .15s ease-out;
}
.map-marquee span {
  display: inline-block; white-space: nowrap;
  animation: map-marquee 22s linear infinite;
  padding-left: 100%;
}
@keyframes map-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.map-marquee span {
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

.map-sheet {
  position: absolute; z-index: 14; left: 0; right: 0; bottom: 0;
  height: calc(var(--sheet-ratio) * 100%);
  min-height: 72px;
  max-height: 40%;
  background: #fff;
  color: #212121;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
  display: flex; flex-direction: column;
  pointer-events: auto;
  transition: height .15s ease-out;
  padding-left: 72px;
}
.map-sheet--snap { transition: height .24s cubic-bezier(0.22, 1, 0.36, 1); }
.map-sheet__dragpad { flex: 0 0 auto; padding: 4px 0 0; cursor: grab; touch-action: none; }
.map-sheet--dragging { transition: none; }
.map-sheet--dragging .map-sheet__dragpad { cursor: grabbing; }
.mapwrap--list-full .map-sheet {
  height: 100%; max-height: 100%; border-radius: 0;
}
.mapwrap--list-full .navmap,
.mapwrap--list-full .map-overlay,
.mapwrap--list-full .map-subpanel,
.mapwrap--list-full .map-marquee,
.mapwrap--list-full .maphint { visibility: hidden; pointer-events: none; }
.map-sheet__handle {
  width: 44px; height: 5px; border-radius: 3px;
  background: #9e9e9e; margin: 0 auto;
}
.map-sheet__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px;
  padding: 0 8px 6px; border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}
.map-sheet__head-left, .map-sheet__head-right {
  display: flex; align-items: center; gap: 2px;
}
.map-sheet__head-right { justify-content: flex-end; }
.map-sheet__icon {
  border: none; background: transparent; color: var(--text-weak);
  font-size: 14px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
}
.map-sheet__icon:active { background: var(--surface-2); }
.map-sheet__title { font-size: 15px; text-align: left; font-weight: 700; color: #212121; padding-left: 8px; }
.map-sheet__count { font-size: 12px; font-weight: 600; color: #424242; padding-right: 4px; white-space: nowrap; }
.map-sheet__sort {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 8px 6px;
  scrollbar-width: none; flex: 0 0 auto;
}
.map-sheet__sort::-webkit-scrollbar { display: none; }
.map-sort-chip {
  flex: 0 0 auto; border: none; border-radius: 16px;
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  background: #eee; color: #212121; cursor: pointer;
}
.map-sort-chip--active {
  background: var(--map-orange-chip, #FFE0B2);
  color: #212121; font-weight: 700;
}
.map-sheet__list {
  flex: 1; overflow-y: auto; padding: 0 2px 24px;
  -webkit-overflow-scrolling: touch;
  /* 네이버식 얇고 둥근 스크롤바 (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 145, 150, .5) transparent;
}
/* 네이버식 얇고 둥근 스크롤바 (Chrome/Safari/Edge) */
.map-sheet__list::-webkit-scrollbar { width: 8px; }
.map-sheet__list::-webkit-scrollbar-track { background: transparent; }
.map-sheet__list::-webkit-scrollbar-thumb {
  background: rgba(140, 145, 150, .5);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.map-sheet__list::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 125, 130, .75);
  background-clip: padding-box;
}
.map-sheet__empty {
  text-align: center; color: #424242; font-size: 14px; padding: 16px 14px;
}
.map-store-row {
  display: flex; gap: 8px; align-items: flex-start;
  border-bottom: 1px solid #f0f0f0; padding: 10px 8px 10px 16px; background: #fff;
}
.map-store-row__main {
  flex: 1; min-width: 0; border: none; background: transparent;
  text-align: left; color: inherit; padding: 0; cursor: pointer;
}
.map-store-row__title { font-size: 15px; font-weight: 600; color: #212121; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.map-store-row__rank {
  font-size: 11px; font-weight: 800; color: #b71c1c; background: #ffebee;
  padding: 1px 5px; border-radius: 4px; flex: 0 0 auto;
}
.map-store-row__dist { font-size: 12px; font-weight: 700; color: #00796b; }
.map-store-row__cat { font-size: 12px; color: #616161; margin-top: 2px; }
.map-store-row__menu { font-size: 13px; color: var(--map-orange-deep, #E65100); font-weight: 600; margin-top: 2px; }
.map-store-row__addr { font-size: 11px; color: #757575; margin-top: 2px; line-height: 1.25; }
.map-store-row__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 2px; }
.map-store-row__votes { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.map-store-row__vote-up { font-size: 11px; font-weight: 600; color: #388e3c; }
.map-store-row__vote-down { font-size: 11px; font-weight: 600; color: #ef5350; }
.map-store-row__mapbtn {
  border: none; background: transparent; font-size: 22px; cursor: pointer; padding: 2px; color: #388e3c;
  min-width: 36px; min-height: 36px;
}

.maphint {
  position: absolute; z-index: 13; left: calc(50% + 36px); transform: translateX(-50%);
  bottom: calc(var(--sheet-ratio) * 100% + 12px);
  background: rgba(0, 0, 0, .72); color: #fff; padding: 6px 14px;
  border-radius: 16px; font-size: 12px; font-weight: 600; pointer-events: none; text-align: center;
  white-space: nowrap; transition: bottom .15s ease-out;
}
body.body--map .map-pill#mapPriceBtn.map-pill--active {
  background: var(--map-orange, #FF9800);
  color: #fff;
}
body.body--map.map-night .map-fab:not(.map-fab--on):not(.map-fab--theme) {
  background: rgba(38, 43, 48, 0.92);
  color: var(--text);
}
body.body--map.map-day .map-fab:not(.map-fab--on):not(.map-fab--theme) {
  background: rgba(255, 255, 255, 0.92);
  color: #212121;
}
body.body--map.map-night .map-subpanel__card {
  background: var(--surface);
  color: var(--text);
}

.map-search-overlay {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, .38);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
.map-search-overlay[hidden] { display: none !important; }
.map-search-overlay__bar {
  width: min(420px, calc(100vw - 36px));
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  box-sizing: border-box;
}
.map-search-overlay__bar input {
  grid-column: 1 / 3;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.map-search-overlay__bar .btn {
  min-height: 40px;
  justify-content: center;
}
.map-search-close {
  min-width: 44px; min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 18px; padding: 4px 8px; color: var(--text-weak);
}
.map-search-results {
  width: min(420px, calc(100vw - 36px));
  min-height: 190px;
  max-height: min(48vh, 360px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  box-sizing: border-box;
}
.map-search-item {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  border: none; border-bottom: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer;
}
.map-search-item b { display: block; font-size: 14px; }

/* 구 지도 스타일 제거·호환 */
.storemark { display: none; }
.mapfilters, .map-search:not(.map-search-overlay *) { display: none; }

/* ── 업소 상세 ────────────────────────────────────────── */
.store__head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.menurow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.menurow:last-child { border-bottom: 0; }
.menurow b { color: var(--orange); white-space: nowrap; }
.ratings { display: flex; gap: 10px; margin: 14px 0; }
.rating { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.rating__t { font-size: 12px; color: var(--text-weak); margin-bottom: 4px; font-weight: 700; }
.photos { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0; scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.photo { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.comment--best { background: #ffce5418; border-radius: 10px; padding: 8px 10px; border-top: 0; }
.badge-best { font-size: 11px; font-weight: 800; color: #b8860b; }
.comment__votes { font-size: 12px; color: var(--text-weak); margin-top: 4px; }

/* ── 채팅 ─────────────────────────────────────────────── */
.chat {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--appbar-h) - var(--nav-h) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - var(--appbar-h) - var(--nav-h) - env(safe-area-inset-bottom));
  background: var(--bg);
  position: relative;
}

/* 상단 헤더 & 서브탭 */
.chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.chat__back {
  font-size: 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}
.chat__back:active {
  background: var(--surface-2);
}
.chat__header-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.chat__header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat__header-sub {
  font-size: 11px;
  color: var(--text-weak);
}
.chat__pts {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-weak);
  padding: 4px 8px;
  border-radius: 8px;
  margin-right: 4px;
}
.chat__pin-edit {
  font-size: 16px;
  border: 0;
  background: transparent;
  color: var(--text-weak);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}
.chat__pin-edit:active {
  background: var(--surface-2);
}
.chat__exit {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.chat__exit:active {
  background: var(--orange-weak);
}

.chat-nick-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.58);
  color: #f7f2ff;
}
.chat-nick-card {
  width: min(100%, 360px);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #2b2733;
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
}
.chat-nick-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 900;
  color: #f7f2ff;
}
.chat-nick-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.chat-nick-field {
  position: relative;
  border: 3px solid #98e5ac;
  border-radius: 5px;
  padding: 18px 14px 10px;
  background: rgba(255,255,255,.03);
}
.chat-nick-field label {
  position: absolute;
  left: 12px;
  top: -9px;
  padding: 0 5px;
  background: #2b2733;
  color: #98e5ac;
  font-size: 11px;
  font-weight: 800;
}
.chat-nick-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.chat-nick-check {
  min-width: 102px;
  height: 48px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: transparent;
  color: #98e5ac;
  font-size: 14px;
  font-weight: 900;
}
.chat-nick-check:disabled {
  opacity: .55;
}
.chat-nick-line {
  min-height: 20px;
  margin-top: 8px;
  color: #d7bddf;
  font-size: 13px;
  font-weight: 700;
}
.chat-nick-line--ok {
  color: #98e5ac;
}
.chat-nick-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}
.chat-nick-cancel,
.chat-nick-enter {
  border: 0;
  font-size: 14px;
  font-weight: 900;
}
.chat-nick-cancel {
  background: transparent;
  color: #98e5ac;
}
.chat-nick-enter {
  min-width: 78px;
  min-height: 56px;
  border-radius: 28px;
  background: #98e5ac;
  color: #173525;
  padding: 0 22px;
}
.chat-nick-enter:disabled {
  opacity: .68;
}
body.body--web .chat-nick-gate {
  padding: 22px;
}
body.body--web .chat-nick-card {
  width: min(100%, 390px);
}

/* 합쳐진 상단 바(제목+서브탭+액션) — 모바일은 줄바꿈 2줄, 데스크톱은 1줄 */
.chat__topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex: 0 0 auto; flex-wrap: wrap;
}
.chat__topbar .chat__header-titles { flex: 1 1 auto; }
.chat__bar-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.chat__subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 100%;     /* 모바일: 둘째 줄 전체 폭 */
  order: 5;
}
body.body--web .chat__topbar { flex-wrap: nowrap; }
body.body--web .chat__subnav { flex: 1 1 auto; order: 0; padding: 0 4px; }
body.body--web .chat__back { display: none; } /* 상단 네비가 있어 뒤로 버튼 불필요 */
.chat__subnav::-webkit-scrollbar {
  display: none;
}
.chat__subnav-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.chat__subnav-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.chat__header-av {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.chat__header-av .chat__avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* 고정 공지사항 */
.chat__pin { padding: 8px 12px 0; flex: 0 0 auto; }
.chat__pin-inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--orange-weak);
  border: 1px solid rgba(224, 122, 74, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  position: relative;
}
.chat__pin-icon {
  font-size: 16px;
  flex: 0 0 auto;
}
.chat__pin-text {
  flex: 1;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat__pin-inner--collapsed .chat__pin-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat__pin-toggle {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text-weak);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.chat__pin-toggle:hover {
  background: var(--surface-2);
}

/* 채팅 리스트 & 메시지 */
.chat__main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat__list {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}

/* 메시지 로우 정의 */
.chat__row {
  /* 행 사이 기본 간격은 .chat__list 의 gap(10px)이 담당 — 그룹화 음수 margin 계산을 예측 가능하게 */
  margin-bottom: 0;
}

/* 카톡식 머리줄 그룹화 — 직전과 같은 발신자면 아바타·닉네임·배지 줄을 숨기고 간격도 좁힘 */
/* (.chat__row--other/own .chat__head-row 보다 명시도를 높여 덮어쓰기 방지) */
.chat__row.chat__row--grouped .chat__head-row { display: none; }
/* 간격 단계: 다른 사람(그룹 첫 줄)=리스트 gap(10px) 그대로 / 같은 사람 연속=바짝 붙임.
   리스트 flex gap을 음수 margin으로 끌어올려 그룹 안은 좁게, 그룹 사이는 또렷하게. */
.chat__row--grouped { margin-top: -7px; }

/* 상대방 메시지 */
.chat__row--other {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 8px;
  row-gap: 3px;
  align-items: start;
}
.chat__row--other .chat__head-row {
  display: contents;
}
.chat__row--other .chat__avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin-top: 2px;
}
.chat__row--other .chat__meta {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat__row--other .chat__bubble-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

/* 내 메시지 — 앱처럼 닉네임·배지·아바타도 보이게(상대 레이아웃의 좌우 반전) */
.chat__row--own {
  display: grid;
  grid-template-columns: 1fr 32px;
  column-gap: 8px;
  row-gap: 3px;
  align-items: start;
  justify-items: end;
}
.chat__row--own .chat__head-row {
  display: contents;
}
.chat__row--own .chat__avatar {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 2px;
}
.chat__row--own .chat__meta {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}
.chat__row--own .chat__bubble-row {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 6px;
}

/* 시스템 메시지 */
.chat__row--sys {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  width: 100%;
}
.chat__sys-box {
  background: var(--surface-2);
  color: var(--text-weak);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  text-align: center;
  max-width: 85%;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
}

/* 아바타 */
.chat__avatar { flex: 0 0 auto; }
.chat__avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* 닉네임 & 배지 */
.chat__nick { font-weight: 700; font-size: 13px; color: var(--text); }
.chat__nick--me { color: var(--green); }
.chat__mod-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
}
.chat__mod-rank {
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1;
}
.chat__mod-badge {
  background: var(--green-weak);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.4;
}

/* 말풍선 공통 */
.chat__msg {
  max-width: 75%;
  width: fit-content;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.chat__msg--other {
  border-top-left-radius: 2px;
}
.chat__msg--own {
  background: var(--green);
  color: #fff;
  border: none;
  border-top-right-radius: 2px;
}

/* 답글(인용) 박스 */
.chat__reply {
  font-size: 12px;
  color: var(--text-weak);
  margin-bottom: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--line);
  cursor: pointer;
}
.chat__msg--own .chat__reply {
  color: rgba(255, 255, 255, 0.85);
  border-left-color: rgba(255, 255, 255, 0.5);
}

/* 스티커(개미콘) 전용 메세지 */
.chat__msg--sticker {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* 삭제된 메세지 */
.chat__msg--del {
  background: var(--surface-2) !important;
  color: var(--text-weak) !important;
  border: 1px solid var(--line) !important;
  font-style: italic;
}
.chat__msg--del .chat__text { color: var(--text-weak); }

/* 하이라이트 */
.chat__msg--hl, .chat__row--hl .chat__msg { outline: 2px solid var(--green); }

.chat__text { font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* 메뉴 버튼 & 시간 */
.chat__menu {
  border: none;
  background: transparent;
  color: var(--text-weak);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.2s, background-color 0.2s;
  flex-shrink: 0;
  align-self: center;
  margin: 0 2px;
}
.chat__menu:hover {
  opacity: 1;
  background-color: var(--surface-2);
}
.chat__time {
  font-size: 10px;
  color: var(--text-weak);
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* 스크롤 FAB */
.chat__scroll-fab {
  position: absolute;
  right: 16px;
  bottom: 74px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s, opacity 0.2s;
}
.chat__scroll-fab:active {
  background: var(--surface-2);
}

/* 답글 바 */
.chat__replybar {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: var(--surface-2); border-top: 1px solid var(--line); font-size: 13px;
}
.chat__replybar[hidden] { display: none !important; }
.chat__replybar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 입력창 */
.chat__input {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
  align-items: center;
}
.chat__input input {
  flex: 1; border: 1px solid var(--line); border-radius: 20px;
  padding: 10px 14px; font-size: 14px; background: var(--bg); color: var(--text);
}
.chat__gaemi-btn {
  font-size: 18px;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chat__send-btn {
  font-size: 16px;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color 0.2s;
}
.chat__send-btn:active {
  background: var(--green-weak);
}

/* 기타 툴바, 징계, 오프라인, 차단 */
.chat__offline {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  text-align: center;
  font-weight: 700;
}
.chat__pause {
  padding: 8px 12px; font-size: 13px; text-align: center;
  background: var(--surface-2); color: var(--text-weak); border-bottom: 1px solid var(--line);
}
.chat__mute {
  flex: 0 0 auto; padding: 8px 12px; font-size: 13px; text-align: center;
  background: #fff3e0; color: #5d4037; border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .chat__mute { background: #3e2723; color: #ffcc80; }
.chat-block-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.chat-menu__label {
  font-size: 12px; font-weight: 700; color: var(--text-weak);
  margin: 8px 0 4px; padding-top: 4px; border-top: 1px solid var(--line);
}
.bm-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.bm-row a { display: block; font-weight: 600; }
.bm-memo { font-size: 12px; color: var(--text-weak); margin: 4px 0 6px; white-space: pre-wrap; }
#chatSubPanel:empty { display: none !important; }
#chatSubPanel:not([hidden]):not(:empty) { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.chat__replybar {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px;
  background: var(--surface-2); border-top: 1px solid var(--line); font-size: 13px;
}
.chat__replybar[hidden] { display: none !important; }
.chat__replybar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__msg--del .chat__text { color: var(--text-weak); font-style: italic; }
.chat__msg--hl, .chat__row--hl .chat__msg { outline: 2px solid var(--green); }
.chat__menu { margin-left: auto; padding: 2px 6px; min-width: auto; }
.chat-menu__label {
  font-size: 12px; font-weight: 700; color: var(--text-weak);
  margin: 8px 0 4px; padding-top: 4px; border-top: 1px solid var(--line);
}
.chat__mute {
  flex: 0 0 auto; padding: 8px 12px; font-size: 13px; text-align: center;
  background: #fff3e0; color: #5d4037; border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .chat__mute { background: #3e2723; color: #ffcc80; }
.chat-block-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.bm-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.bm-row a { display: block; font-weight: 600; }
.bm-memo { font-size: 12px; color: var(--text-weak); margin: 4px 0 6px; white-space: pre-wrap; }
#chatSubPanel:not([hidden]):not(:empty) { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
body.body--map .modal-backdrop {
  z-index: 200;
}
.modal-card { width: min(100%, 360px); max-height: 90vh; overflow-y: auto; }

.chat-av-sheet {
  width: min(100%, 360px);
  padding: 18px;
}
.chat-av-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.chat-av-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.chat-av-sub {
  margin: 4px 0 0;
  color: var(--text-weak);
  font-size: 12.5px;
}
.chat-av-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.chat-av-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.chat-av-current__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 24px;
}
.chat-av-current__label {
  color: var(--text-weak);
  font-size: 12px;
  font-weight: 700;
}
.chat-av-current__name {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 900;
}
.chat-av-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.chat-av-opt {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.chat-av-opt.active {
  border-color: var(--green);
  background: var(--green-weak);
}
.chat-av-preview-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chat-av-preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-av-opt__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.chat-av-opt__text b {
  font-size: 13px;
  line-height: 1.2;
}
.chat-av-opt__text small {
  color: var(--text-weak);
  font-size: 11px;
  line-height: 1.2;
}
.chat-av-upload-icon {
  color: var(--text-weak);
  font-size: 24px;
  font-weight: 300;
}

/* ── 지도 가격 범위 설정 모달 ─────────────────────────── */
.map-price-modal {
  padding: 20px;
}
.map-price-modal__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-price-modal__desc {
  font-size: 13px;
  color: var(--text-weak);
  margin: 0 0 16px 0;
  line-height: 1.4;
}
.map-price-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.map-price-chip {
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.map-price-chip:hover {
  background: var(--surface-2);
}
.map-price-chip--active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.map-price-modal__sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-weak);
  margin: 0 0 8px 0;
}

/* 멀티 슬라이더 (두 개의 range input을 겹침) */
.map-price-range {
  position: relative;
  width: 100%;
  height: 24px;
  margin-bottom: 12px;
}
.map-price-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  z-index: 0;
}
.map-price-range input[type="range"] {
  position: absolute;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  margin: 0;
  padding: 0;
  top: 50%;
  transform: translateY(-50%);
}
/* Chrome/Safari/Opera/Edge thumb */
.map-price-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF9800; /* 지도 테마 오렌지 색상 */
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 2px solid #fff;
  z-index: 2;
  position: relative;
}
/* Firefox thumb */
.map-price-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF9800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 2px solid #fff;
  z-index: 2;
  position: relative;
}

.map-price-modal__labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.map-price-modal__hint {
  font-size: 12px;
  color: var(--text-weak);
  margin: -10px 0 16px 0;
}
.map-price-modal__inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.map-price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-price-field span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-weak);
}
.map-price-field input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}

.map-price-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  cursor: pointer;
}
.map-price-check input {
  margin-top: 3px;
  cursor: pointer;
  width: auto;
}
.map-price-check span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.map-price-check b {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.map-price-check small {
  display: block;
  font-size: 11px;
  color: var(--text-weak);
}

.img-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.img-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ── 글쓰기·댓글 ─────────────────────────────────────── */
.compose { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.compose textarea, .field textarea, .field input, .field select, .searchbar input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; background: var(--bg); color: var(--text);
}
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-weak); }
.searchbar { padding: 0 12px 8px; }
.searchbar input { border-radius: 20px; }

.fab-wrap { position: fixed; right: max(12px, calc(50% - var(--maxw) / 2 + 12px)); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 15; }
.fab {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--green); color: #fff; border-radius: 24px; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}

.vote-row { display: flex; gap: 6px; justify-content: center; }
.vote--sm { padding: 6px 10px; font-size: 13px; min-width: auto; }
.row--unread .row__title { font-weight: 800; }
.appbar__link { color: #fff; font-size: 20px; padding: 6px 8px; }
.btn--sm { padding: 6px 12px; font-size: 13px; }

.bottomnav__label { font-size: 10px; }
.bottomnav.hidden { display: none; }

.detail-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px;
}
.comment__actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.onboarding { max-width: 360px; margin: 24px auto; }

.chip--sm { padding: 4px 10px; font-size: 12px; }
.verify-card { margin: 12px 0; padding: 12px 14px; }

/* ── 테마 강제 ─────────────────────────────────────────── */
html[data-theme="light"] {
  --bg: #f6f7f5; --surface: #ffffff; --surface-2: #eef1ee;
  --text: #1c2420; --text-weak: #5d6b63; --line: #e2e6e1;
  --green: #4A7C59; --orange: #B84A1A;
}
html[data-theme="dark"] {
  --bg: #14171a; --surface: #1d2125; --surface-2: #262b30;
  --text: #e7ece8; --text-weak: #9aa6a0; --line: #2d3338;
  --green: #6fa982; --orange: #e07a4a;
}

/* 지도탭 전용 밤/낮 — 전역 테마와 무관하게 지도탭 UI 변수만 덮어씀.
   body에 얹어 html[data-theme]·시스템 설정보다 우선(더 가까운 조상). */
body.body--map.map-day {
  --bg: #f6f7f5; --surface: #ffffff; --surface-2: #eef1ee;
  --text: #1c2420; --text-weak: #5d6b63; --line: #e2e6e1;
  --green: #4A7C59; --orange: #B84A1A;
}
body.body--map.map-night {
  --bg: #14171a; --surface: #1d2125; --surface-2: #262b30;
  --text: #e7ece8; --text-weak: #9aa6a0; --line: #2d3338;
  --green: #6fa982; --orange: #e07a4a;
}

.map-skin-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.map-skin-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; font: inherit; color: inherit;
}
.map-skin-opt strong { font-size: 13px; font-weight: 800; }
.map-skin-opt span { font-size: 11px; color: var(--text-weak); line-height: 1.25; }
.map-skin-opt--active {
  border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--surface-2));
}

.skin-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.skin-detail__summary {
  cursor: pointer; font-size: 14px; font-weight: 800; list-style: none;
  display: flex; align-items: center; gap: 6px;
}
.skin-detail__summary::-webkit-details-marker { display: none; }
.skin-detail__body { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.skin-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.skin-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.skin-color {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  cursor: pointer; padding: 0;
}
.skin-color--active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--green); }

.map-store-row--offmap { opacity: 0.72; }
.map-store-row__offtag {
  display: inline-block; margin-right: 4px; padding: 1px 5px; border-radius: 4px;
  font-size: 10px; font-weight: 800; background: var(--surface-2); color: var(--text-weak);
}

.store-map-block { margin: 12px 0; padding: 0; overflow: hidden; }
.store-map-preview__map { width: 100%; height: 168px; background: var(--surface-2); cursor: pointer; }
/* 집 주변 — 주소 검색 + 미니 지도 핀 */
.home-map-picker {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.home-map-picker__map { width: 100%; height: 200px; }
.home-map-picker__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  z-index: 2;
}
.home-addr-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 4px;
}
.home-addr-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  line-height: 1.35;
  color: inherit;
  cursor: pointer;
}
.home-addr-result:hover { background: var(--surface-2); }
.home-addr-result:active { background: var(--line); }

.store-map-block__foot { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.store-map-quick {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.store-map-quick__btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 52px; padding: 8px 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 18px; line-height: 1; text-decoration: none; color: inherit;
}
.store-map-quick__btn span { font-size: 10px; font-weight: 700; color: var(--text-weak); }
.store-map-quick__btn:active { background: var(--line); }

/* 개미콘 — 글쓰기·댓글·본문 표시 */
.compose__row { display: flex; align-items: flex-start; gap: 6px; }
.compose__row textarea { flex: 1; min-width: 0; }
.compose__gaemi { flex: 0 0 auto; margin-top: 4px; font-size: 18px; }
.gaemi-compose-preview {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.gaemi-compose-preview__img { height: 72px; width: auto; display: block; }
.comment__body .chat__gaemi--solo { height: 94px; }
.detail__body .chat__gaemi--solo { height: 125px; }
.chat-gaemi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chat-gaemi-btn { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--surface-2); cursor: pointer; }
.chat-gaemi-btn img { width: 100%; height: auto; display: block; }
.chat__gaemi { height: 24px; width: auto; vertical-align: middle; }
.chat__gaemi--solo { height: 96px; width: auto; display: block; margin: 4px 0; }

/* ── 채팅 로비 ────────────────────────────────────────── */
.chat-lobby {
  max-width: 760px; width: 100%; margin: 0 auto; box-sizing: border-box;
  padding: 24px 18px; display: flex; flex-direction: column; gap: 18px;
}

/* 포인트 환전 카드 */
.chat-lobby__points {
  background: var(--green-weak); border: 1px solid var(--green);
  border-radius: 16px; padding: 16px;
}
.chat-lobby__points-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.chat-lobby__points-icon { font-size: 18px; }
.chat-lobby__points-title {
  font-size: 14px; font-weight: 700; color: var(--green);
}
.chat-lobby__pts-row {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.chat-lobby__pt-chip {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px;
}
.chat-lobby__pt-chip-icon { font-size: 14px; flex: 0 0 auto; }
.chat-lobby__pt-chip-label { font-size: 10px; color: var(--text-weak); }
.chat-lobby__pt-chip-val { font-size: 15px; font-weight: 700; }
.chat-lobby__hint {
  font-size: 11px; color: var(--text-weak); margin-bottom: 8px;
}
.chat-lobby__exchange-row {
  display: flex; gap: 8px; align-items: stretch;
}
.chat-lobby__exchange-qty {
  width: 64px; flex: 0 0 auto; text-align: center;
  border: 1px solid var(--border, rgba(0,0,0,.15)); border-radius: 10px;
  padding: 10px 8px; font-size: 13px; font-weight: 700;
  background: var(--surface); color: var(--text);
}
.chat-lobby__exchange-btn {
  flex: 1 1 auto; border: 0; border-radius: 10px; padding: 10px;
  font-size: 13px; font-weight: 700;
  background: var(--surface-2); color: var(--text);
  cursor: pointer;
}
.chat-lobby__exchange-btn:hover { filter: brightness(1.05); }
.chat-lobby__exchange-btn:disabled { opacity: .5; cursor: default; }
.chat-lobby__exchange-preview {
  margin-top: 6px; font-size: 11px; color: var(--text-weak); text-align: center;
}

/* 방 카드 — 2칸 격자(타일) */
.chat-lobby__rooms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.chat-room-card {
  position: relative;
  display: flex; flex-direction: column; min-height: 210px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.chat-room-card:hover { transform: translateY(-2px); border-color: var(--green); }
.chat-room-card:active { background: var(--surface-2); }
.chat-room-card__top {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.chat-room-card__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex: 0 0 auto;
}
.chat-room-card--open .chat-room-card__icon { background: rgba(76,175,80,.12); }
.chat-room-card--soon[data-room="owner"] .chat-room-card__icon { background: rgba(255,152,0,.12); }
.chat-room-card--soon[data-room="private"] .chat-room-card__icon { background: rgba(156,39,176,.12); }
.chat-room-card__body { min-width: 0; }
.chat-room-card__body b {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 17px; font-weight: 700;
}
.chat-room-card__body p {
  margin: 5px 0 0; font-size: 13px; color: var(--text-weak); line-height: 1.45;
}
.chat-room-card__badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: var(--surface-2); color: var(--text-weak);
  padding: 2px 6px; border-radius: 6px;
}
.chat-room-card__lock {
  position: absolute; top: 18px; right: 18px;
  font-size: 18px; color: var(--text-weak); opacity: .6;
}
.chat-room-card__go {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: auto; width: 100%;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: var(--surface-2); color: var(--text); border: 0;
}
.chat-room-card--open .chat-room-card__go {
  background: var(--green); color: #fff;
}
.chat-room-card--soon { opacity: .7; }

/* 좁은 화면(폰)에선 한 줄에 하나씩 — 카드 높이도 조금 낮춤 */
@media (max-width: 460px) {
  .chat-lobby { padding: 16px 14px; gap: 14px; }
  .chat-lobby__rooms { grid-template-columns: 1fr; gap: 12px; }
  .chat-room-card { min-height: 0; padding: 16px; }
}

/* 읽음 마커 */
.chat__read-marker {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; color: var(--text-weak); font-size: 12px;
}
.chat__read-marker::before, .chat__read-marker::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* 날짜 구분선 */
.chat__date-sep {
  text-align: center; font-size: 11px; color: var(--text-weak);
  padding: 12px 0 4px;
}

/* 읽음 >> 마크 */
.chat__status { font-size: 11px; color: var(--green); margin-right: 2px; }

/* ── 내정보 탭 (왼쪽 사이드바 + 오른쪽 콘텐츠) ─────────────── */
.me-layout {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
}
.me-tabs {
  flex: 0 0 auto; width: 150px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px;
  position: sticky; top: calc(var(--appbar-h) + 12px); z-index: 10;
}
.me-tabs__item {
  display: flex; flex-direction: row; align-items: center;
  gap: 10px; padding: 11px 12px; font-size: 13px; font-weight: 600;
  color: var(--text-weak); border: 0; background: transparent;
  border-radius: 10px; text-align: left; width: 100%;
  cursor: pointer; transition: background .15s, color .15s;
}
.me-tabs__item:hover { background: var(--surface-2); }
.me-tabs__item.active { color: var(--green); background: var(--green-weak); }
.me-tabs__icon { font-size: 18px; flex: 0 0 auto; }
.me-tabs__label { min-width: 0; }
.me-panes { flex: 1 1 auto; min-width: 0; }
.me-tab-pane { display: none; }
.me-tab-pane.active { display: block; }

/* 계정 탭 — 프로필 헤더 + 세로 타임라인 */
.me-profile-head {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; margin-bottom: 16px;
}
.me-profile-head__avatar { flex: 0 0 auto; }
.me-profile-head__cam {
  position: absolute; bottom: 0; right: 0;
  background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.me-profile-head__info { flex: 1 1 auto; min-width: 0; }
.me-profile-head .profile__nick { font-size: 18px; font-weight: 700; }

.me-timeline { position: relative; }
.me-tl-item { position: relative; display: flex; gap: 14px; margin-bottom: 14px; }
.me-tl-item:last-child { margin-bottom: 0; }
/* 노드를 잇는 세로 연결선 — 각 항목 dot 아래에서 다음 항목까지 (마지막은 생략) */
.me-tl-item::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: -14px;
  width: 2px; background: var(--line);
}
.me-tl-item:last-child::before { display: none; }
.me-tl-dot {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.me-tl-dot--point { background: var(--green-weak); border-color: var(--green); }
.me-tl-dot--logout { background: var(--surface); }
.me-tl-card {
  flex: 1 1 auto; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.me-tl-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; font-size: 14px; font-weight: 800;
  color: var(--green); background: var(--green-weak);
}
.me-tl-card__head[data-toggle] { cursor: pointer; user-select: none; }
.me-tl-card__body { padding: 12px 14px; }
/* 목록형 본문(내 글·북마크·최근 본)은 행이 자체 여백을 가지므로 패딩 0 */
.me-tl-card__body.bm-section__body,
.me-tl-card__body.mypost-sec__body { padding: 0; }
.me-tl-card__body .bm-row { padding-left: 14px; padding-right: 14px; }
/* 카운트 배지 */
.me-tl-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px;
  font-size: 11px; font-weight: 700; border-radius: 10px;
  background: var(--green); color: #fff;
}
/* 계정 정보 kv — 첫 줄은 윗선 제거(카드 헤더와 붙음) */
.me-tl-card__body--kv .kv:first-child { border-top: 0; padding-top: 2px; }
.me-tl-points { font-size: 24px; font-weight: 800; line-height: 1.1; }
.me-tl-points-rules { font-size: 12px; color: var(--text-weak); margin-top: 5px; }
/* 계정 탭에 인라인으로 들어온 설정 — 설정의 자체 카드가 구조를 가지므로 별도 카드 테두리 없이 */
.me-tl-settings { flex: 1 1 auto; min-width: 0; }
.me-tl-settings > .card:first-child { margin-top: 0; }
.me-tl-settings .card:last-child { margin-bottom: 0; }

/* 사이드바 콘텐츠는 좌우 패딩을 레이아웃이 담당 — 섹션 자체 여백은 줄임 */
.me-panes .bm-section { margin: 0 0 12px; }
.me-panes > .me-tab-pane > .card:first-child { margin-top: 0 !important; }

/* 좁은 화면 — 사이드바를 아이콘 위주로 더 컴팩트하게 */
@media (max-width: 480px) {
  .me-layout { gap: 8px; padding: 10px 8px; }
  .me-tabs { width: 84px; padding: 6px; }
  .me-tabs__item { flex-direction: column; gap: 3px; padding: 9px 4px; font-size: 11px; }
  .me-tabs__icon { font-size: 20px; }
}

/* 북마크 섹션 (접기/펼치기) — 헤더 바·여백은 .me-tl-card__head가 담당 */
.bm-section { margin: 12px 14px; }
.bm-section__head-left {
  display: flex; align-items: center; gap: 8px;
}
.bm-section__head-left .bm-icon { font-size: 18px; }
.bm-section__toggle {
  border: 0; background: transparent; font-size: 16px;
  color: var(--green); cursor: pointer; padding: 2px 4px;
  transition: transform .2s;
}
.bm-section__toggle.collapsed { transform: rotate(180deg); }
.bm-section__body { }
.bm-section__body.collapsed { display: none; }

/* 북마크 행 — 개선 */
.bm-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.bm-row__body { flex: 1; min-width: 0; }
.bm-row__body a { display: block; font-weight: 600; font-size: 14px; }
.bm-row__sub { font-size: 12px; color: var(--text-weak); margin-top: 2px; }
.bm-row__actions { display: flex; gap: 6px; flex: 0 0 auto; }
.bm-row__actions button { font-size: 18px; color: var(--text-weak); border: 0; background: transparent; padding: 4px; }

/* 계정 카드 내 버튼 리스트 */
.me-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* ── 내 글·제보 (myPosts) — 항목마다 일관된 카드 행 ──────────── */
.me-tl-card.mypost-sec { margin: 0; padding: 0; overflow: hidden; }
.mypost-sec__head-left { display: flex; align-items: center; gap: 8px; }
.mypost-sec__toggle {
  border: 0; background: transparent; font-size: 16px;
  color: var(--green); cursor: pointer; padding: 2px 4px; transition: transform .2s;
}
.mypost-sec__toggle.collapsed { transform: rotate(180deg); }
.mypost-sec__body.collapsed { display: none; }
.mypost-sec__body .mypost-row:first-child { border-top: 1px solid var(--line); }
.mypost-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.mypost-row__main { flex: 1; min-width: 0; }
.mypost-row__title { display: block; font-weight: 700; font-size: 14.5px; color: var(--text); }
.mypost-row a.mypost-row__title:hover { color: var(--green); }
.mypost-row__sub { font-size: 12px; color: var(--text-weak); margin-top: 3px; line-height: 1.45; white-space: pre-wrap; }
.mypost-row__chev { color: var(--text-weak); font-size: 18px; flex: 0 0 auto; }
.mypost-chip {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; margin-right: 6px; vertical-align: middle;
}
.mypost-chip--ok { background: var(--green-weak); color: var(--green); }
.mypost-chip--wait { background: rgba(245, 158, 11, .16); color: var(--orange); }
.mypost-chip--no { background: rgba(229, 57, 53, .14); color: #e53935; }
.mypost-chip--info { background: var(--surface-2); color: var(--text-weak); }

/* ── 일반 평가 카드형 그리드 (앱 UI 동기화) ────────────────────────── */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.rating-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: inherit;
}
.rating-card:active {
  transform: scale(0.95);
}
.rating-emoji {
  font-size: 20px;
  margin-bottom: 4px;
}
.rating-label {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: var(--text-weak);
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
}
.rating-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

/* 활성화 상태 색상 및 강조 (앱과 동일 테마) */
.rating-card.active-value-up {
  background: rgba(45, 138, 78, 0.1);
  border-color: #2D8A4E;
}
.rating-card.active-value-up .rating-count,
.rating-card.active-value-up .rating-label {
  color: #2D8A4E;
}

.rating-card.active-value-down {
  background: rgba(231, 76, 60, 0.1);
  border-color: #E74C3C;
}
.rating-card.active-value-down .rating-count,
.rating-card.active-value-down .rating-label {
  color: #E74C3C;
}

.rating-card.active-taste-up {
  background: rgba(233, 30, 99, 0.1);
  border-color: #E91E63;
}
.rating-card.active-taste-up .rating-count,
.rating-card.active-taste-up .rating-label {
  color: #E91E63;
}

.rating-card.active-taste-down {
  background: rgba(86, 101, 115, 0.1);
  border-color: #566573;
}
.rating-card.active-taste-down .rating-count,
.rating-card.active-taste-down .rating-label {
  color: #566573;
}

/* ── 가격 변경 요청 배너 (개미들의 발자취) ────────────────────────── */
.banner-update-request {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid rgba(74, 124, 89, 0.3);
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.banner-update-request:hover {
  background: rgba(74, 124, 89, 0.25);
}
.banner-update-request__icon {
  font-size: 16px;
  flex-shrink: 0;
}
.banner-update-request__text {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-align: left;
}
.banner-update-request__arrow {
  color: var(--text-weak);
  font-size: 11px;
}

/* ── 개미들의 발자취 투표 모달 및 비교 테이블 ────────────────────────── */
.footprint-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}
.footprint-modal {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.1, 0.8, 0.25, 1);
}
.footprint-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.footprint-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.footprint-modal__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  color: var(--text-weak);
  cursor: pointer;
  padding: 4px;
}
.footprint-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 상태 배너 공지 */
.footprint-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(74, 124, 89, 0.12);
  border-radius: 10px;
}
.notice-icon {
  color: var(--green);
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.notice-text-wrap {
  flex: 1;
}
.notice-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

/* 비교 테이블 */
.footprint-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.footprint-table-header {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}
.footprint-hdr-cell {
  padding: 10px 6px;
  color: var(--text-weak);
}
.footprint-hdr-cell:nth-child(2) {
  border-left: 1px solid var(--line);
}
.footprint-hdr-cell:nth-child(3) {
  border-left: 1px solid var(--line);
  color: var(--green);
}
.footprint-rows {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}
.footprint-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.footprint-row:last-child {
  border-bottom: 0;
}
.footprint-cell {
  padding: 10px 8px;
  display: flex;
  align-items: center;
  word-break: break-all;
}
.footprint-cell--label {
  font-size: 11px;
  color: var(--text-weak);
  justify-content: center;
  text-align: center;
  background: var(--surface-2);
  font-weight: 600;
}
.footprint-cell--left {
  border-left: 1px solid var(--line);
}
.footprint-cell--right {
  border-left: 1px solid var(--line);
}
.footprint-cell--changed {
  background: rgba(45, 138, 78, 0.08);
}
.edit-icon {
  margin-right: 4px;
  font-size: 11px;
}
.text-highlight {
  color: var(--green);
  font-weight: 800;
}

/* 투표 영역 */
.footprint-vote-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}
.vote-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.vote-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-weak);
}
.vote-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.vote-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}
.vote-btn .vote-icon {
  font-size: 18px;
  margin-bottom: 2px;
  filter: grayscale(1);
}
.vote-btn .vote-count {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.vote-btn .vote-label {
  font-size: 10px;
  color: var(--text-weak);
}

.vote-btn.active-original {
  background: rgba(84, 110, 122, 0.12);
  border-color: #546e7a;
}
.vote-btn.active-original .vote-icon {
  filter: none;
}
.vote-btn.active-original .vote-count,
.vote-btn.active-original .vote-label {
  color: #546e7a;
}

.vote-btn.active-updated {
  background: rgba(45, 138, 78, 0.12);
  border-color: #2d8a4e;
}
.vote-btn.active-updated .vote-icon {
  filter: none;
}
.vote-btn.active-updated .vote-count,
.vote-btn.active-updated .vote-label {
  color: #2d8a4e;
}

/* 페이징 */
.footprint-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}
.pager-text {
  font-size: 13px;
  color: var(--text-weak);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── 활동 포인트 배너 ── */
.points-banner {
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.points-banner__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.points-banner__icon {
  font-size: 28px;
}
.points-banner__info {
  display: flex;
  flex-direction: column;
}
.points-banner__title {
  font-size: 11px;
  color: var(--text-weak);
}
.points-banner__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
}
.points-banner__rules {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-weak);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

/* ── 카카오 장소/주소 검색 드롭다운 ── */
.search-dropdown {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 6px;
  z-index: 10;
  position: relative;
}
.search-result-item {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-result-item:hover {
  background: var(--surface-2);
}
.search-result-item:last-child {
  border-bottom: none;
}

/* ── 계정 삭제 및 다단계 모달 ── */
.btn--danger-ghost {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}
.btn--danger-ghost:hover {
  background: rgba(224, 122, 74, 0.1);
}
.btn--danger {
  background: var(--orange);
  color: #fff;
}
.btn--danger:hover {
  background: color-mix(in srgb, var(--orange) 90%, black);
}
.radio-label {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}
.radio-label:hover {
  background: var(--surface-2);
}
.radio-label input[type="radio"] {
  margin-right: 8px;
}

/* ── 군중검증 배너 ── */
.crowd-verify-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.crowd-verify-banner__title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.btn--verify-confirm {
  background: var(--surface-2);
  color: var(--text-weak);
  border: 1px solid var(--line);
}
.btn--verify-confirm.active-confirm {
  background: var(--green-weak);
  color: var(--green);
  border-color: var(--green);
}
.btn--verify-wrong {
  background: var(--surface-2);
  color: var(--text-weak);
  border: 1px solid var(--line);
}
.btn--verify-wrong.active-wrong {
  background: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
  border-color: #e53e3e;
}

/* ── 프로필 통계 모달 ── */
.profile-stats-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.profile-stats-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.stat-item {
  text-align: center;
  padding: 8px;
  background: var(--surface-2);
  border-radius: 8px;
  flex: 1;
}

/* ── 제보 폼 자동완성 드롭다운 ── */
.search-dropdown {
  position: relative;
  background: var(--surface);
  z-index: 100;
}
.search-result-item:hover {
  background: var(--surface-2) !important;
}

/* 최근 검색어 히스토리 드롭다운 */
.search-history-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 4px;
  max-height: 250px;
  overflow-y: auto;
}

.search-history-empty {
  padding: 12px;
  color: var(--text-weak);
  font-size: 13px;
  text-align: center;
}

.search-history-list {
  display: flex;
  flex-direction: column;
}

.search-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-weak);
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s;
}

.search-history-item:hover {
  background: var(--surface-2);
}

.search-history-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.search-history-del {
  background: none;
  border: none;
  color: var(--text-weak);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

.search-history-del:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.search-history-footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.search-history-clear-btn {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
  padding: 4px 8px;
}

/* 읽은 피드 스타일 */
.row__title.read {
  opacity: 0.52 !important;
  font-weight: 400 !important;
}

/* ── 가게 갤러리 라이트박스 및 사진 신고 모달 ── */
.lightbox-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 90vh;
  padding: 16px;
  box-sizing: border-box;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #fff;
}

.lightbox-counter {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.08);
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 0;
}

.lightbox-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0 16px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.lightbox-nav:active {
  transform: scale(0.95);
}

.lightbox-footer {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* 갤러리 이미지 미리보기와 컨테이너 */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.photo-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-weak);
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 갤러리 애니메이션 */
@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── 긴급 점검 모드 ── */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.maintenance-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--surface);
  border: 1px solid var(--line);
  animation: scaleIn 0.3s ease-out;
}
.maintenance-icon {
  font-size: 64px;
  margin-bottom: 20px;
}
.maintenance-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}
.maintenance-message {
  font-size: 14px;
  color: var(--text-weak);
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}
.body--maintenance {
  overflow: hidden;
}

/* ── 의견 보내기 폼 & 글자수 제한 ── */
.feedback-modal-card {
  max-width: 440px !important;
  width: 100%;
  padding: 20px !important;
  animation: scaleIn 0.25s ease-out;
}
.char-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-weak);
  margin-top: 4px;
}

/* ── 웹 / PC 네이버 지도식 좌측 패널 레이아웃 (min-width: 600px) ── */
@media (min-width: 600px) {
  /* 패널 폭 변수 — 접으면 0 (지도가 전체로 확장) */
  body.body--map {
    --panel-w: 360px;
    --map-tabs-h: 0px;
    --map-appbar-h: 44px;
    --map-chrome-h: var(--map-appbar-h);
  }
  body.body--map.map-panel-collapsed { --panel-w: 0px; }

  /* 1. 최상단 앱바 — 테마(라이트/다크)를 따르는 반투명 바 */
  body.body--map .appbar {
    left: 0;
    top: 0 !important;
    transform: none;
    max-width: none;
    background: rgba(255, 255, 255, 0.42) !important;
    color: #1c2420 !important;
    backdrop-filter: blur(10px) saturate(1.16) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.16) !important;
    border-bottom: 1px solid rgba(20, 24, 28, 0.08);
    padding-left: 10px !important;
    padding-right: 12px !important;
    z-index: 100;
    height: var(--map-appbar-h) !important;
  }
  html[data-theme="dark"] body.body--map:not(.map-day) .appbar,
  body.body--map.map-night .appbar {
    background: rgba(20, 23, 26, 0.48) !important;
    color: #e7ece8 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  html[data-theme="light"] body.body--map:not(.map-night) .appbar,
  body.body--map.map-day .appbar {
    background: rgba(255, 255, 255, 0.42) !important;
    color: #1c2420 !important;
  }
  @media (prefers-color-scheme: dark) {
    body.body--map:not(.map-day) .appbar {
      background: rgba(20, 23, 26, 0.48) !important;
      color: #e7ece8 !important;
      border-bottom-color: rgba(255, 255, 255, 0.08);
    }
  }
  body.body--map .appbar__title {
    color: inherit !important;
    flex: 0 0 170px !important;
    max-width: 170px !important;
  }
  body.body--map .appbar__actions {
    position: relative;
    z-index: 190;
    margin-left: auto;
  }
  body.body--map .appbar__actions button,
  body.body--map .appbar__actions a,
  body.body--map .appbar__link { color: inherit !important; }

  /* 2. 좌측 업소 패널 — 세로 고정, 옆으로 접힘 */
  body.body--map .map-sheet {
    position: fixed !important;
    left: 0 !important;
    top: var(--map-chrome-h) !important;
    bottom: 0 !important;
    width: var(--panel-w) !important;
    height: calc(100vh - var(--map-chrome-h)) !important;
    max-height: none !important; /* 베이스 max-height:40% 해제 — 목록이 맨 아래까지 보이게 */
    background: var(--surface) !important; /* 테마 따라 라이트=흰 / 다크=어두운 패널 */
    border-right: 1px solid var(--line) !important;
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.08) !important;
    z-index: 90 !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important; /* 하단 탭이 패널 밖(지도 위)으로 이동 → 패딩 불필요 */
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: none !important;
    transition: width .22s ease !important;
    overflow: hidden !important;
  }
  body.body--map.map-panel-collapsed .map-sheet {
    border-right: none !important;
    box-shadow: none !important;
  }

  /* 목록 영역이 짤리지 않고 끝까지 스크롤되도록 */
  body.body--map .map-sheet__list {
    flex: 1 !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  /* 위·아래(▲▼) 화살표·전체화면 버튼 제거 — 옆접기로 대체 */
  body.body--map .map-sheet__dragpad,
  body.body--map #mapSheetUp,
  body.body--map #mapSheetDown,
  body.body--map #mapSheetFull,
  body.body--map #mapSheetCloseFull {
    display: none !important;
  }

  /* 접기/펼치기 토글 노출 */
  body.body--map .map-panel-toggle { display: flex !important; }

  /* 패널 내부 글자·구분선 — 다크모드에서도 보이게 테마색 적용 */
  body.body--map .map-sheet__head { border-bottom-color: var(--line) !important; }
  body.body--map .map-sheet__title { color: var(--text) !important; }
  body.body--map .map-sheet__count { color: var(--text-weak) !important; }
  body.body--map .map-sort-chip { background: var(--surface-2) !important; color: var(--text) !important; }
  body.body--map .map-store-row {
    background: var(--surface) !important;
    border-bottom-color: var(--line) !important;
  }
  body.body--map .map-store-row__main,
  body.body--map .map-store-row__title { color: var(--text) !important; }
  body.body--map .map-store-row__cat,
  body.body--map .map-store-row__addr { color: var(--text-weak) !important; }
  body.body--map .map-sheet__empty { color: var(--text-weak) !important; }

  /* 3. 지도 영역 — 패널 오른쪽 */
  body.body--map .mapwrap {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: var(--panel-w) !important;
    width: calc(100% - var(--panel-w)) !important;
    max-width: none !important;
    transform: none !important;
    z-index: 5 !important;
    transition: left .22s ease, width .22s ease !important;
  }

  /* 4. 하단 탭 — 지도 좌하단 세로 원형 아이콘(아이콘+작은 글자) */
  body.body--map .bottomnav {
    position: fixed !important;
    left: calc(var(--panel-w) + 12px) !important;
    bottom: 16px !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 120 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: left .22s ease !important;
  }
  body.body--map .bottomnav__item {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--line) !important;
    background: var(--surface) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
    flex: 0 0 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    padding: 0 !important;
  }
  body.body--map .bottomnav__item.active {
    border-color: var(--green) !important;
    background: var(--green-weak) !important;
    color: var(--green) !important;
    border-radius: 50% !important;
  }
  body.body--map .bottomnav__icon { font-size: 16px !important; line-height: 1; margin: 0 !important; }
  body.body--map .bottomnav__label { font-size: 8px !important; font-weight: 700; line-height: 1; }

  /* 5. 업종 필터 — 앱바(테두리바) 아래, 지도 상단에 가로 배치 */
  body.body--map .map-overlay--top {
    position: fixed !important;
    top: calc(var(--map-chrome-h) + 8px) !important;
    left: calc(var(--panel-w) + 12px) !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100% - var(--panel-w) - 150px) !important; /* 우측 돋보기·제보 침범 방지 */
    z-index: 110 !important;
    padding: 6px 10px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    transition: left .22s ease !important;
  }
  body.body--map.map-night .map-overlay--top {
    background: rgba(20, 23, 26, 0.72) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
  }

  body.body--map .map-overlay--right {
    top: calc(var(--map-chrome-h) + 12px) !important;
  }

  body.body--map .mapwrap--searching .map-search-banner {
    position: fixed !important;
    top: calc(var(--map-chrome-h) + 8px) !important;
    left: calc(var(--panel-w) + 12px) !important;
    right: 12px !important;
  }
  body.body--map .mapwrap--searching .map-overlay--top {
    top: calc(var(--map-chrome-h) + 50px) !important;
  }
  body.body--map .mapwrap--searching .map-overlay--right {
    top: calc(var(--map-chrome-h) + 62px) !important;
  }

  body.body--map .map-marquee {
    left: 0 !important;
    width: 100% !important;
    bottom: 0 !important;
  }

  body.body--map .maphint {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 24px !important;
  }
}

/* ════════════════════════════════════════════════════════════
   웹 전역 셸 (아카라이브식) — 데스크톱(≥1024px), 지도 제외.
   body--web 일 때 그린 앱바·하단 탭을 숨기고 상단 네비 +
   가운데 본문 + 우측 사이드(핫딜·개념글)로 표시.
   라이트/다크는 기존 테마 변수(--surface 등)를 그대로 따른다.
   ════════════════════════════════════════════════════════════ */

/* Material Symbols (앱 카테고리 아이콘과 동일) */
.msym {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; vertical-align: middle; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* 개념글(추천 7+) 강조 — 모바일·데스크톱 공통 */
.tag--concept { background: #43A04722; color: #2e7d4f; }
.row--concept {
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, var(--green-weak), transparent 60%);
}

/* 래퍼는 평소 레이아웃에 영향 없음(통과). body--web 에서만 그리드. */
.webbody { display: contents; }
#webnav[hidden], #webright[hidden] { display: none !important; }

@media (min-width: 1024px) {
  body.body--web .appbar,
  body.body--web .bottomnav { display: none !important; }
  body.body--web .toast { bottom: 24px; }

  /* 상단 네비 (전 탭 공통) */
  .webnav {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 22px;
    height: 60px; padding: 0 28px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  }
  .webnav__logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--green); flex: 0 0 auto; }
  .webnav__logo-ic { font-size: 24px; }
  .webnav__menu { display: flex; gap: 4px; flex: 0 0 auto; }
  .webnav__menu a { padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--text-weak); }
  .webnav__menu a:hover { background: var(--surface-2); color: var(--text); }
  .webnav__menu a.active { color: var(--green); background: var(--green-weak); }
  .webnav__search { position: relative; flex: 1; max-width: 440px; margin: 0 auto; display: flex; align-items: center; }
  .webnav__search input {
    width: 100%; height: 40px; padding: 0 16px 0 40px; border-radius: 20px;
    border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px;
  }
  .webnav__search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .55; pointer-events: none; font-size: 20px; }
  .webnav__actions { display: flex; gap: 4px; flex: 0 0 auto; }
  .webnav__actions a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--text-weak);
  }
  .webnav__actions a:hover { background: var(--surface-2); }

  /* 가운데 본문 + 우측 사이드 (좌측 없음, 양옆 여백은 광고 자리) */
  body.body--web .webbody {
    display: grid; grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px; max-width: min(1350px, calc(100vw - 32px)); margin: 0 auto; padding: 18px 14px 72px;
    align-items: start;
  }
  body.body--web .app {
    max-width: none; margin: 0; padding: 0; min-height: calc(100vh - 60px);
  }
  body.body--web .webright {
    position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px;
  }

  /* 가운데 — 공지 박스 / 탭바 / 표 */
  .noticebox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin-bottom: 14px; }
  .noticebox__head { font-size: 14px; font-weight: 800; padding: 4px 0 8px; }
  .noticebox__row {
    display: flex; align-items: center; gap: 8px; padding: 8px 0;
    border-top: 1px solid var(--line); font-size: 14px;
  }
  .noticebox__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .noticebox__row:hover .noticebox__t { color: var(--green); }
  .noticebox__d { color: var(--text-weak); font-size: 12px; flex: 0 0 auto; }

  .webmain__bar {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 8px 12px; margin-bottom: 14px; flex-wrap: wrap;
  }
  .webtabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; min-width: 0; }
  .webtab {
    display: inline-flex; align-items: center; gap: 5px;
    border: 0; background: transparent; color: var(--text-weak);
    font-size: 14.5px; font-weight: 700; padding: 7px 13px; border-radius: 18px;
  }
  .webtab .msym { font-size: 19px; }
  .webtab:hover { background: var(--surface-2); color: var(--text); }
  .webtab.active { background: var(--green); color: #fff; }
  .webtab.active .msym { color: #fff !important; }
  .webmain__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
  .weblist-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: -4px 0 10px; padding: 0 2px;
  }
  .websort {
    font-size: 13.5px; padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
  }
  .webwrite { white-space: nowrap; }

  /* 글 목록 표 — 넓게 */
  .btable { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .btable__head, .btrow {
    display: grid; grid-template-columns: 92px minmax(0, 1fr) 126px 96px 64px 64px; align-items: center;
  }
  .btable__head { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--text-weak); }
  .btable__head .btcell { padding: 12px 10px; }
  .btrow { border-bottom: 1px solid var(--line); }
  .btrow:last-child { border-bottom: 0; }
  .btrow:hover { background: var(--surface-2); }
  .btrow--concept { background: linear-gradient(90deg, var(--green-weak), transparent 55%); box-shadow: inset 3px 0 0 var(--green); }
  .btcell { padding: 12px 10px; font-size: 13.5px; min-width: 0; }
  .btcell--cat { text-align: center; }
  .btcell--cat .tag { display: inline-flex; align-items: center; gap: 3px; }
  .btcell--cat .msym { font-size: 15px; }
  .btcell--title { display: flex; align-items: center; gap: 6px; }
  .btcell--title-head { justify-content: space-between; min-width: 0; }
  .websort--inline {
    height: 34px; padding: 6px 9px; font-size: 13px;
    flex: 0 0 auto;
  }
  .btrow__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .btrow__title.read { color: var(--text-weak); font-weight: 500; }
  .btcell--author { color: var(--text-weak); display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btcell--date, .btcell--views, .btcell--likes { color: var(--text-weak); font-size: 13px; text-align: center; }
  .btcell--likes { font-weight: 700; color: var(--green); }
  .btable__head .btcell--likes { color: var(--text-weak); font-weight: 700; }
  .btrow .bookmark { font-size: 16px; margin-left: auto; flex: 0 0 auto; }
  .btable .loadmore { padding: 12px; }

  /* 페이지네이션(아카라이브식) */
  .board-pager { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 16px 0 6px; flex-wrap: wrap; }
  .pg-btn {
    min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
    font-size: 14px; font-weight: 700;
  }
  .pg-btn:hover:not(:disabled) { background: var(--surface-2); }
  .pg-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
  .pg-btn:disabled { opacity: .4; cursor: default; }
  .pg-gap { color: var(--text-weak); padding: 0 2px; }

  /* 하단 검색 바 */
  .board-search {
    display: flex; gap: 8px; justify-content: center; align-items: center;
    margin: 6px auto 0; max-width: 560px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  }
  .board-search__scope {
    height: 38px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px; flex: 0 0 auto;
  }
  .board-search__input {
    flex: 1; min-width: 0; height: 38px; padding: 0 14px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 14px;
  }
  .board-search__go {
    height: 38px; padding: 0 18px; border-radius: 8px; border: 0;
    background: var(--green); color: #fff; font-size: 14px; font-weight: 700; flex: 0 0 auto;
  }

  /* 우측 사이드 카드 (핫딜·개념글) */
  .sidecard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
  .sidecard__title { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; margin: 0 0 7px; }
  .sidecard__empty { color: var(--text-weak); font-size: 13px; padding: 12px 0; text-align: center; }
  .side__row { display: block; padding: 7px 0; border-top: 1px solid var(--line); }
  .sidecard__list .side__row:first-child { border-top: 0; }
  .side__t { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side__row:hover .side__t { color: var(--green); }
  .side__sub { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--text-weak); }
  .side__won { color: var(--orange); }
  .side__like { color: var(--green); font-weight: 700; }

  /* 내정보 등 일반 화면도 가운데 칼럼 폭으로 보기 좋게 */
  body.body--web .app .card { max-width: 680px; }

  /* 내정보 — 우측 사이드 없이 가운데 한 칼럼(760px)으로 정렬.
     카드·탭바·섹션 폭을 칼럼에 맞춰 왼쪽 치우침 제거. */
  body.body--web-me .webbody {
    grid-template-columns: minmax(0, 1200px);
    justify-content: start;
  }
  /* 사이드바를 화면 왼쪽에 붙이되, 양옆 약간의 여백 */
  body.body--web-me .me-layout { padding-left: 20px; padding-right: 20px; }
  body.body--web-me .app .card { max-width: none; }
  body.body--web-me .me-tabs { border-radius: 14px; }
  /* 글쓰기·수정 — 아카라이브식: 가운데 칼럼 거의 전폭(약 960px 전후) */
  body.body--web .app .card.arc-write {
    max-width: none;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    box-sizing: border-box;
  }
  body.body--web .arc-write .arc-editor__canvas {
    min-height: 520px;
    max-height: none;
  }
  body.body--web .app .detail { padding: 8px 4px; }

  /* 채팅 — 우측 사이드 없이 가로 전체 폭 */
  body.body--web-full .webbody { display: block; max-width: none; margin: 0; padding: 0; }
  body.body--web-full .app { max-width: none; margin: 0; padding: 0; min-height: 0; }
  body.body--web-full .app .card { max-width: 720px; margin: 14px auto; } /* 채팅 로비 카드만 가운데 */
  /* 상단 네비(60px)만 빼고 화면 꽉 채우기 — 앱바·하단탭 변수는 셸에서 숨김 */
  body.body--web .chat {
    height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
  }
  /* 채팅 너비 3단계 — 데스크톱 전체폭(wide=기본)에서 가운데로 좁히기 */
  body.body--web-full.body--chatw-mid .chat {
    max-width: 1080px; margin: 0 auto;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  }
  body.body--web-full.body--chatw-narrow .chat {
    max-width: 760px; margin: 0 auto;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  }
}

/* 채팅 너비 토글 버튼 — 데스크톱 전체폭일 때만 노출 */
.chat__width-btn { display: none; }
body.body--web-full .chat__width-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-weak);
  font-size: 16px; cursor: pointer; flex: 0 0 auto;
}
body.body--web-full .chat__width-btn:hover { background: var(--surface-2); color: var(--text); }

/* 창으로 빼기 버튼 — 데스크톱 채팅 탭에서만(창 안에서는 숨김) */
.chat__popout-btn { display: none; }
body.body--web-full .chat__popout-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-weak);
  font-size: 16px; cursor: pointer; flex: 0 0 auto;
}
body.body--web-full .chat__popout-btn:hover { background: var(--surface-2); color: var(--text); }

/* ════════════════════════════════════════════════════════════
   채팅 플로팅 창(데스크톱 전용) — 카카오 PC식 꺼내기/최소화.
   ════════════════════════════════════════════════════════════ */
.chatwin {
  position: fixed;
  width: 384px;
  height: min(620px, calc(100vh - 96px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  z-index: 6000;
}
.chatwin__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 8px 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  cursor: move; user-select: none;
}
.chatwin__title { flex: 1 1 auto; font-size: 13px; font-weight: 700; color: var(--text); }
.chatwin__btns { display: flex; gap: 2px; flex: 0 0 auto; }
.chatwin__btn {
  width: 26px; height: 26px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-weak);
  font-size: 14px; cursor: pointer;
}
.chatwin__btn:hover { background: var(--surface); color: var(--text); }
.chatwin__btn[data-close]:hover { background: var(--danger); color: #fff; }
.chatwin__body { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
/* flex 자식으로 높이를 확정 → 내부 메시지 목록이 줄고 입력창이 항상 바닥에 고정(잘림 방지) */
.chatwin__body .chat { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; }
.chatwin__resize {
  position: absolute; right: 0; bottom: 0;
  width: 18px; height: 18px;
  cursor: nwse-resize; z-index: 2;
  background:
    linear-gradient(135deg, transparent 0 50%, var(--text-weak) 50% 60%, transparent 60% 72%, var(--text-weak) 72% 82%, transparent 82%);
  opacity: 0.5;
}
.chatwin__resize:hover { opacity: 0.9; }

/* 창 안에서는 뒤로·너비·팝아웃 버튼 숨김 */
.chat--win .chat__back,
.chat--win .chat__width-btn,
.chat--win .chat__popout-btn { display: none !important; }

/* 좁은 창에서도 기능·입력이 다 보이게 — 모바일식 2단 상단바.
   (body--web 데스크톱 규칙을 이기려고 .chat--room.chat--win 으로 스코프 강화) */
.chat--room.chat--win .chat__topbar {
  flex-wrap: wrap; padding: 6px 8px; gap: 6px; row-gap: 6px;
}
.chat--room.chat--win .chat__header-titles {
  flex: 1 1 auto; min-width: 0; order: 0;
}
.chat--room.chat--win .chat__header-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat--room.chat--win .chat__bar-actions { order: 1; flex: 0 0 auto; }
/* 서브탭은 통째로 둘째 줄 전체폭 + 버튼이 좁으면 다음 줄로 감김 → 좁아도 모두 보임 */
.chat--room.chat--win .chat__subnav {
  order: 2; flex: 1 1 100%;
  flex-wrap: wrap; overflow-x: visible; padding: 0;
}

/* 최소화 알약 */
.chatwin-pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 6000;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px 0 14px;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.chatwin-pill[hidden] { display: none !important; }
.chatwin-pill:hover { background: var(--surface-2); }
.chatwin-pill__ic { font-size: 16px; }
.chatwin-pill__t { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatwin-pill__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); flex: 0 0 auto;
}
.chatwin-pill__x {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-weak); font-size: 12px;
}
.chatwin-pill__x:hover { background: var(--danger); color: #fff; }

@media (max-width: 1023px) {
  .chatwin, .chatwin-pill { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   지도 위 업소 플로팅 창(거지맵식) + 상단 탭(크롬식).
   데스크톱 지도에서만 생성됨(storeWindows.js). 라이트/다크 자동.
   ════════════════════════════════════════════════════════════ */
.storewin-host { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.storewin-tabs {
  position: fixed;
  top: 6px;
  bottom: auto;
  left: 68px;
  right: 12px;
  transform: none;
  z-index: 180;
  display: flex;
  gap: 6px;
  max-width: none;
  pointer-events: none;
  align-items: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}
.storewin-tabs::-webkit-scrollbar { display: none; }
.storewin-tab {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  width: min(180px, 18vw);
  max-width: 180px;
  min-width: 112px;
  padding: 0 8px 0 10px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.50));
  border: 1px solid rgba(20, 24, 28, 0.12);
  border-bottom: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-weak);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.storewin-tab:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}
.storewin-tab.active {
  background: var(--surface) !important;
  color: var(--green) !important;
  font-weight: 700;
  border-color: var(--line) !important;
  height: 36px;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.12) !important;
}
.storewin-tab.min {
  opacity: 0.82;
}
.storewin-tab__t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.storewin-tab__ic {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  opacity: .9;
}
.storewin-tab__x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  line-height: 1;
  padding: 2px;
  border-radius: 50%;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: background-color 0.15s, opacity 0.15s;
}
.storewin-tab__x:hover {
  background: rgba(0, 0, 0, 0.08);
  opacity: 1;
  color: var(--text);
}

/* 밤 모드에서의 탭 스타일 */
body.map-night .storewin-tab,
body[class*="night"] .storewin-tab {
  background: linear-gradient(180deg, rgba(54,57,62,.80), rgba(36,39,44,.78));
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-weak);
}
body.map-night .storewin-tab:hover,
body[class*="night"] .storewin-tab:hover {
  background: rgba(54, 57, 62, 0.92);
  color: var(--text);
}
body.map-night .storewin-tab.active,
body[class*="night"] .storewin-tab.active {
  background: var(--surface) !important;
  color: var(--green) !important;
  border-color: var(--line) !important;
}
body.map-night .storewin-tab__x:hover,
body[class*="night"] .storewin-tab__x:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* 지도 PC — 크롬식 탭을 앱바 안쪽 제목 오른편에 배치 */
@media (min-width: 600px) {
  body.body--map .storewin-tabs {
    position: fixed !important;
    top: 5px !important;
    bottom: auto !important;
    left: 178px !important;
    right: 104px !important;
    transform: none !important;
    height: calc(var(--map-appbar-h) - 5px) !important;
    max-width: none !important;
    z-index: 180 !important;
    align-items: flex-end !important;
    padding: 0 6px !important;
  }
  body.body--map .storewin-tab {
    height: 31px;
    width: min(172px, 16vw);
    max-width: 172px;
    border-radius: 10px 10px 0 0;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 -1px 8px rgba(0,0,0,0.07);
  }
  body.body--map .storewin-tab.active {
    height: 35px;
    background: rgba(255, 255, 255, 0.78) !important;
  }
  body.body--map.map-night .storewin-tab {
    background: rgba(36, 39, 44, 0.58);
  }
  body.body--map.map-night .storewin-tab.active {
    background: rgba(36, 39, 44, 0.84) !important;
  }
}

.storewin {
  position: fixed; width: 384px; max-width: calc(100vw - 24px); max-height: 82vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; pointer-events: auto;
  box-shadow: 0 14px 44px rgba(0,0,0,.3);
}
/* 타이틀 바 — 화이트(라이트)/다크 반투명 + 블러 */
.storewin__bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px;
  cursor: move; user-select: none;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.storewin__title {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 800; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.storewin__btns { display: flex; gap: 2px; flex: 0 0 auto; }
.storewin__btn {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-weak); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.storewin__btn:hover { background: var(--surface-2); color: var(--text); }
.storewin__btn[data-close]:hover { background: var(--danger); color: #fff; }
.storewin__body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.storewin__body .detail { padding: 14px; }

/* 좁은 화면(혹시 생성돼도) — 거의 전체 폭 */
@media (max-width: 560px) {
  .storewin { left: 8px !important; right: 8px; width: auto; top: 56px !important; }
  .storewin-tabs { max-width: 92vw; }
}

/* ── 글쓰기 리치 에디터(아카라이브식) ──────────────────────── */
.arc-write { gap: 12px; }
.arc-write__select,
.arc-write__titleline input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
}
.arc-write__selectline--multi { display: flex; gap: 8px; }
.arc-write__selectline--multi > label { flex: 1; min-width: 0; }
.arc-write__meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.arc-write__thumbline {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-weak);
}
.arc-write__actions { display: flex; gap: 8px; justify-content: flex-end; }
.arc-write__guest { display: flex; gap: 8px; }
.arc-write__guest .field { flex: 1; }

@media (max-width: 560px) {
  .arc-write__meta-grid { grid-template-columns: 1fr; }
}

.arc-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.arc-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 2;
}
.arc-editor__toolgroup {
  display: flex;
  gap: 2px;
  align-items: center;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
.arc-editor__toolgroup:last-child { border-right: none; padding-right: 0; }
.arc-editor__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.arc-editor__tool:hover { background: rgba(127, 127, 127, 0.16); }
.arc-editor__tool.is-active { background: var(--green); color: #fff; }
.arc-editor__tool.is-active .msym { color: #fff; }
.arc-editor__tool .msym { font-size: 20px; }
.arc-editor__tool--gaemi { font-size: 18px; }
.arc-editor__size,
.arc-editor__color {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  padding: 0 4px;
  color: var(--text);
}
.arc-editor__size .msym,
.arc-editor__color .msym { font-size: 20px; color: var(--text-weak); }
.arc-editor__size select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  height: 28px;
  font-size: 13px;
  padding: 0 4px;
}
.arc-editor__color input[type="color"] {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.arc-editor__body { position: relative; }

/* 에디터 안 투표 패널 — 툴바 바로 아래 접·펼 */
.arc-editor .arc-poll {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.arc-poll[hidden] {
  display: none !important;
}

.arc-editor__canvas {
  min-height: 420px;
  max-height: 78vh;
  overflow-y: auto;
  padding: 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  outline: none;
  word-break: break-word;
}
.arc-editor__canvas:empty::before,
.arc-editor__canvas[data-empty="1"]::before {
  content: attr(data-placeholder);
  color: var(--text-weak);
  pointer-events: none;
}
.arc-editor__canvas[data-empty="0"]::before { content: none; }
.arc-editor__canvas--drag { outline: 2px dashed var(--green); outline-offset: -4px; }
.arc-editor__canvas p { margin: 0 0 6px; }
.arc-editor__canvas h2 { font-size: 22px; margin: 10px 0 6px; }
.arc-editor__canvas h3 { font-size: 19px; margin: 10px 0 6px; }
.arc-editor__canvas blockquote {
  margin: 8px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--green);
  color: var(--text-weak);
}
.arc-editor__canvas ul,
.arc-editor__canvas ol { margin: 6px 0; padding-left: 22px; }
/* 작성·수정 중에도 링크 부분이 보이게(색·밑줄). */
.arc-editor__canvas a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--green);
}
.arc-editor__status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-weak);
  background: var(--surface-2);
}
@media (min-width: 1024px) {
  .arc-editor__canvas {
    min-height: 420px;
    max-height: 58vh;
  }
  .arc-write .arc-editor__canvas {
    min-height: 480px;
    max-height: none;
  }
  body.body--web .arc-write .arc-editor__canvas {
    min-height: 520px;
  }
}
@media (max-width: 560px) {
  .arc-editor__canvas { min-height: 320px; }
}

/* 본문 인라인 사진(편집 중) */
.arc-inline-image {
  position: relative;
  display: block;
  margin: 8px 0;
  max-width: 100%;
}
.arc-inline-image__img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
}
.arc-inline-image__tools {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.arc-inline-image__tools button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* 본문 인라인 개미콘 — 채팅 스티커 크기. 인라인이라 콘 앞뒤로 글을 이어 쓸 수 있음. */
.arc-editor__canvas .arc-gaemi,
.arc-gaemi { height: 96px; width: auto; display: inline-block; vertical-align: bottom; margin: 2px; }

/* ── 상세 리치 본문 렌더 ───────────────────────────────────── */
.arc-rich { color: var(--text); line-height: 1.7; word-break: break-word; }
.arc-rich p { margin: 0 0 8px; }
.arc-rich h2 { font-size: 22px; margin: 14px 0 8px; }
.arc-rich h3 { font-size: 19px; margin: 12px 0 6px; }
.arc-rich blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--green);
  color: var(--text-weak);
}
.arc-rich ul, .arc-rich ol { margin: 8px 0; padding-left: 22px; }
.arc-rich a { color: var(--green); }
.arc-rich img.arc-inline-image__img,
.detail__body.arc-rich img { display: block; max-width: 100%; border-radius: 10px; margin: 8px 0; }
.arc-rich .chat__gaemi--solo,
.arc-rich .arc-gaemi { height: 96px; width: auto; display: inline-block; vertical-align: bottom; margin: 2px; }
.detail__body.arc-rich .chat__gaemi--solo,
.detail__body.arc-rich .arc-gaemi { height: 110px; }

/* ── 투표 입력 패널 ─────────────────────────────────────────── */
.arc-poll {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arc-poll__head { display: flex; align-items: center; justify-content: space-between; }
.arc-poll__field { display: flex; flex-direction: column; gap: 6px; }
.arc-poll__field > span { font-size: 13px; color: var(--text-weak); font-weight: 700; }
.arc-poll__field input,
.arc-poll__field select {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 11px; color: var(--text); font-size: 14px; width: 100%;
}
.arc-poll__row { display: flex; gap: 8px; }
.arc-poll__row > * { flex: 1; min-width: 0; }
.arc-poll__opts { display: flex; flex-direction: column; gap: 6px; }
.arc-poll__opt { display: flex; gap: 6px; align-items: center; }
.arc-poll__opt input { flex: 1; }
.arc-poll__opt-x {
  flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); color: var(--text-weak); cursor: pointer; font-size: 16px;
}
.arc-poll__note { margin: 0; font-size: 12px; color: var(--text-weak); }
.arc-poll__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* 본문 안 투표 미리보기 블록(작성/수정 중 — 백스페이스나 × 로 삭제 가능) */
.arc-poll-block {
  border: 1px solid var(--green);
  border-radius: 12px;
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
  padding: 12px 14px;
  margin: 10px 0;
  user-select: none;
}
.arc-poll-block__head { display: flex; align-items: center; gap: 8px; }
.arc-poll-block__badge {
  font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--green); color: #fff;
}
.arc-poll-block__q { flex: 1; min-width: 0; }
.arc-poll-block__x {
  flex: 0 0 auto; width: 26px; height: 26px; border: none; border-radius: 7px;
  background: rgba(127,127,127,0.2); color: var(--text); cursor: pointer; font-size: 16px;
}
.arc-poll-block__opts { margin: 8px 0 6px; padding-left: 20px; }
.arc-poll-block__opts li { margin: 2px 0; }
.arc-poll-block__meta { font-size: 12px; color: var(--text-weak); }

/* ── 상세 투표 표시/투표하기 ────────────────────────────────── */
.arc-pollv { margin: 14px 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.arc-pollv--preview { opacity: 0.96; }
.arc-pollv__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arc-pollv__badge {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green);
}
.arc-pollv__badge.is-ended { background: rgba(127,127,127,0.18); color: var(--text-weak); }
.arc-pollv__title { font-size: 17px; }
.arc-pollv__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.arc-pollv__q { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.arc-pollv__q .msym { color: var(--green); }
.arc-pollv__opts { display: flex; flex-direction: column; gap: 8px; }
.arc-pollv__choice {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface);
}
.arc-pollv__choice input { width: 18px; height: 18px; }
.arc-pollv__row {
  position: relative; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--surface); padding: 10px 12px;
}
.arc-pollv__row.is-mine { border-color: var(--green); }
.arc-pollv__bar {
  position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--green) 24%, transparent);
  z-index: 0; transition: width 0.4s ease;
}
.arc-pollv__label { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.arc-pollv__meta { font-size: 12px; color: var(--text-weak); }
.arc-pollv__revote {
  border: none; background: none; color: var(--green); cursor: pointer; font: inherit; text-decoration: underline; padding: 0;
}

/* ===== 알림 — 벨 배지 · 상단 배너 · 알림함 ===== */

/* 벨 아이콘 배지 (webnav 우측 종 위) — 1~9 노란 테두리, 10+ 채움(+9) */
.webnav__bell { position: relative; }
.noti-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; line-height: 1; border-radius: 9px;
  background: var(--surface); color: #b8860b; border: 1.5px solid #f5b800;
  pointer-events: none;
}
.noti-badge[hidden] { display: none; } /* hidden 속성이 display:inline-flex 에 안 먹혀 빈 원이 뜨던 것 차단 */
.noti-badge--plus { background: #f5b800; color: #1c2420; border-color: #f5b800; }
@media (prefers-color-scheme: dark) {
  .noti-badge { background: var(--surface); color: #ffce4d; border-color: #ffce4d; }
  .noti-badge--plus { background: #ffce4d; color: #1c2420; border-color: #ffce4d; }
}

/* 상단 배너 팝업 — 새 알림이 오면 우상단에서 슬라이드, 시간 지나면 사라짐 */
.noti-banners {
  position: fixed; top: 12px; right: 12px; z-index: 4000;
  display: flex; flex-direction: column; gap: 8px;
  width: min(360px, calc(100vw - 24px)); pointer-events: none;
}
.noti-banner {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 12px 12px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transform: translateX(120%); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
.noti-banner--in { transform: translateX(0); opacity: 1; }
.noti-banner--out { transform: translateX(120%); opacity: 0; }
.noti-banner__icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--surface-2);
}
/* 운영자(관리자) 메시지 — 일반 알림과 구분: 노란 강조 + "운영자" 태그 */
.noti-tag {
  display: inline-block; vertical-align: middle; margin-right: 6px;
  padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 800;
  background: #f5b800; color: #1c2420; letter-spacing: .2px;
}
.noti-banner--admin {
  border-color: #f5b800; border-left: 4px solid #f5b800;
  background: linear-gradient(0deg, var(--surface), var(--surface)), #f5b80012;
}
.noti-banner--admin .noti-banner__icon { background: #f5b80026; }
.noti-banner__body { flex: 1; min-width: 0; }
.noti-banner__title { margin: 0; font-size: 14px; font-weight: 800; color: var(--text); }
.noti-banner__text {
  margin: 2px 0 0; font-size: 13px; color: var(--text-weak); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.noti-banner__meta { margin-top: 4px; font-size: 11px; color: var(--text-weak); }
.noti-banner__close {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  color: var(--text-weak); font-size: 14px; line-height: 1; padding: 2px 4px; margin: -2px -2px 0 0;
}
.noti-banner__close:hover { color: var(--text); }

/* 알림함(목록 화면) */
.noti-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 10px;
}
.noti-toolbar__count { font-size: 13px; font-weight: 700; color: var(--text-weak); }
.noti-toolbar__actions { display: flex; gap: 6px; }
.noti-toolbar__del { color: var(--danger); }
.noti-list { display: flex; flex-direction: column; gap: 2px; }
.noti-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 10px; border-radius: 12px; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.noti-item:hover { background: var(--surface-2); }
.noti-item--unread { background: var(--green-weak); }
.noti-item--unread:hover { background: var(--green-weak); }
/* 읽은 알림은 앱처럼 흐리게 — 안 읽은 것과 구분. 마우스 올리면 또렷 */
.noti-item:not(.noti-item--unread) { opacity: .55; }
.noti-item:not(.noti-item--unread):hover { opacity: 1; }
.noti-item:not(.noti-item--unread) .noti-item__title { font-weight: 600; }
.noti-item__icon {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: var(--surface-2);
}
/* 운영자 메시지 — 알림함에서도 노란 좌측 강조 */
.noti-item--admin { border-left: 3px solid #f5b800; }
.noti-item--admin .noti-item__icon { background: #f5b80026; }
.noti-item__body { flex: 1; min-width: 0; }
.noti-item__title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text); }
.noti-item--unread .noti-item__title { font-weight: 800; }
.noti-item__text {
  margin: 3px 0 0; font-size: 13.5px; color: var(--text-weak); line-height: 1.4;
  word-break: break-word;
}
.noti-item__meta { margin-top: 5px; font-size: 11.5px; color: var(--text-weak); }
.noti-item__dot {
  flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); margin-top: 6px;
}
/* 개별 삭제(✕) — 평소 흐릿, 항목/호버 시 또렷. 클릭은 이동을 막고 그 알림만 삭제 */
.noti-item__del {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  color: var(--text-weak); font-size: 13px; line-height: 1; padding: 4px 6px;
  margin: -2px -4px 0 2px; border-radius: 8px; opacity: .45;
}
.noti-item:hover .noti-item__del { opacity: .8; }
.noti-item__del:hover { color: var(--danger); background: var(--surface-2); opacity: 1; }
.empty-inline { padding: 28px 12px; text-align: center; color: var(--text-weak); font-size: 14px; }


