:root {
  --brand: #1f9d6b;
  --brand-dark: #16794f;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1d2420;
  --muted: #6b7570;
  --border: #e3e8e5;
  --danger: #d64545;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 16px;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; opacity: 0;
}

/* ---------- 지도 화면 ---------- */
.main { position: fixed; inset: 0; }
.main { overflow: hidden; }
/* 네이버 지도가 컨테이너를 position: relative 로 바꿔도 크기가 유지되도록 width/height 를 직접 지정 */
.map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.topbar {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(10px + var(--safe-top)) 12px 0;
  display: flex; justify-content: flex-end; gap: 8px; z-index: 10; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.icon-btn {
  width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--surface);
  box-shadow: var(--shadow); font-size: 20px;
}
.menu {
  position: absolute; right: 12px; top: calc(62px + var(--safe-top));
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 180px; overflow: hidden;
}
.menu-title { padding: 12px 16px; font-weight: 700; color: var(--brand-dark); border-bottom: 1px solid var(--border); }
.menu button { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; background: none; }
.menu button:active { background: #f1f5f3; }
.menu .menu-link { display: block; padding: 14px 16px; color: inherit; text-decoration: none; }
.menu-credit { padding: 8px 16px 10px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); max-width: 220px; line-height: 1.4; }

.hint {
  /* 왼쪽 내 근처 버튼과 오른쪽 메뉴 버튼 사이 */
  position: absolute; left: 80px; right: 68px; text-align: center; white-space: normal;
  top: calc(12px + var(--safe-top)); z-index: 5; line-height: 1.35;
  background: rgba(29, 36, 32, 0.78); color: #fff; font-size: 12.5px;
  padding: 6px 10px; border-radius: 12px; pointer-events: none; word-break: keep-all;
  transition: opacity 0.4s;
}
.hint.fade { opacity: 0; }

.fabs {
  position: absolute; right: 12px; bottom: calc(24px + var(--safe-bottom)); z-index: 5;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.add-btn {
  border: 0; border-radius: 999px; padding: 13px 18px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow);
}
.add-btn:active { background: var(--brand-dark); }
.add-btn.active { background: #ff8a00; }
.locate-btn { position: absolute; left: 12px; bottom: calc(24px + var(--safe-bottom)); z-index: 5; }
.fab {
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--surface); box-shadow: var(--shadow); font-size: 22px; color: var(--brand-dark);
}

/* ---------- 지도 마커 ---------- */
.pin {
  position: relative; width: 30px; height: 38px; transform: translate(-50%, -100%);
}
.pin-shape {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.pin-shape span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 800; }
.pin.temp .pin-shape { background: #ff8a00; }

.label-marker {
  transform: translate(-50%, calc(-100% - 6px));
  background: #fff; border: 2px solid var(--brand); border-radius: 10px;
  padding: 5px 9px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  text-align: center; white-space: nowrap; position: relative; line-height: 1.25;
}
.label-marker::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--brand); border-bottom: 0;
}
.label-name { font-size: 13px; font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.label-pw { font-size: 14px; font-weight: 800; color: var(--brand-dark); letter-spacing: 0.5px; }
.label-pw.none { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---------- 바텀시트 ---------- */
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); z-index: 20; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  padding: 8px 18px calc(18px + var(--safe-bottom));
  max-height: 85%; overflow-y: auto;
  animation: up 0.18s ease-out;
}
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: #d5dbd8; margin: 0 auto 12px; }
.sheet h2 { margin: 0 0 4px; font-size: 20px; }
.sheet .address { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.pw-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #e9f7f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.pw-box .k { color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.pw-box .v { font-size: 24px; font-weight: 800; letter-spacing: 1px; word-break: break-all; }
.pw-box.none .v { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.desc { white-space: pre-wrap; margin: 0 0 16px; line-height: 1.5; }
.desc.none { color: var(--muted); }
.meta { color: var(--muted); font-size: 12px; margin: 0 0 14px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px;
  outline: 0; background: #fff; color: var(--text);
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 84px; }

.actions { display: flex; gap: 8px; margin-top: 4px; }
.btn {
  flex: 1; padding: 13px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; font-weight: 600;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:active { background: var(--brand-dark); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: 0.6; }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 0 0 6px; }

.toast {
  position: absolute; left: 50%; top: calc(80px + var(--safe-top)); transform: translateX(-50%);
  background: rgba(29, 36, 32, 0.9); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; z-index: 30; max-width: 90%; text-align: center; word-break: keep-all;
}

.fatal {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; background: #fff; z-index: 100; line-height: 1.6;
}

/* ---------- 별점 ---------- */
.label-stars { font-size: 11px; color: #f5a400; letter-spacing: -0.5px; line-height: 1.2; }
.stars { color: #f5a400; font-size: 20px; letter-spacing: 1px; margin: 2px 0 6px; }
.star-pick { display: flex; gap: 6px; }
.star-pick button {
  border: 0; background: none; padding: 0 2px; font-size: 34px; line-height: 1; color: #d5dbd8;
}
.star-pick button.on { color: #f5a400; }

/* ---------- 별 4·5개 화장실 아이콘 ---------- */
.pin.tier4 .pin-shape,
.pin.tier5 .pin-shape {
  background: linear-gradient(135deg, #fff1a8 0%, #f7c948 40%, #d99a00 100%);
  border-color: #fff8d6;
  box-shadow: 0 2px 8px rgba(217, 154, 0, 0.55);
}
.pin.tier4 .pin-shape span,
.pin.tier5 .pin-shape span { color: #7a4f00; }
.pin.tier5 .pin-shape { box-shadow: 0 0 0 3px rgba(255, 215, 64, 0.45), 0 2px 10px rgba(217, 154, 0, 0.7); }

.label-marker.tier4,
.label-marker.tier5 {
  border-color: #e0a800;
  background: linear-gradient(180deg, #fffaf0 0%, #fff1c2 100%);
}
.label-marker.tier4::after,
.label-marker.tier5::after { border-top-color: #e0a800; }
.label-marker.tier5 { box-shadow: 0 0 0 2px rgba(255, 215, 64, 0.5), 0 2px 10px rgba(217, 154, 0, 0.5); }
.label-marker.tier4 .label-stars,
.label-marker.tier5 .label-stars { color: #d99a00; }

.crown {
  position: absolute; left: 50%; top: -15px; transform: translateX(-50%) rotate(-8deg);
  font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
.pin .crown { top: -13px; left: 15px; z-index: 1; }
.sparkle {
  position: absolute; color: #ffc400; font-size: 10px; line-height: 1; pointer-events: none;
  text-shadow: 0 0 4px #fff3b0; animation: twinkle 1.6s ease-in-out infinite;
}
.sparkle.s1 { left: -8px; top: -4px; }
.sparkle.s2 { right: -9px; top: 4px; font-size: 8px; animation-delay: 0.5s; }
.sparkle.s3 { left: -6px; bottom: 2px; font-size: 7px; animation-delay: 1s; }
.pin .sparkle.s1 { left: -6px; top: -2px; }
.pin .sparkle.s2 { right: auto; left: 30px; top: 2px; }
.pin .sparkle.s3 { left: 28px; bottom: 14px; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { .sparkle { animation: none; opacity: 0.9; } }

/* ---------- 가입신청서 / 관리자 ---------- */
.apps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.app-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.app-card .top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.app-card .nm { font-weight: 800; font-size: 17px; }
.app-card .zn { font-size: 12px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 6px; }
.app-card .zn.gb { background: #2f4fa8; } .app-card .zn.da { background: #ff2d87; }
.app-card .meta2 { color: var(--muted); font-size: 13px; margin-top: 4px; }
.app-card .msg { margin-top: 6px; white-space: pre-wrap; font-size: 14px; }
.empty { color: var(--muted); text-align: center; padding: 20px 0; }

/* ---------- 내 근처 화장실 ---------- */
.near-btn {
  margin-right: auto; width: 58px; height: 58px; padding: 0; border-radius: 50%; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #1f9d6b; color: #fff; font-weight: 800; font-size: 11px; line-height: 1.1;
  box-shadow: var(--shadow); white-space: nowrap;
}
.near-btn span { font-size: 20px; line-height: 1.1; }
.near-btn:active { background: var(--brand-dark); }
.near-btn.active { background: #fff; color: #1f9d6b; box-shadow: inset 0 0 0 2px #1f9d6b, var(--shadow); }
/* 내 근처: 가장 가까운 화장실 표시 */
.near-tag {
  position: absolute; z-index: 2; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  white-space: nowrap; background: #1f9d6b; color: #fff; border: 2px solid #fff;
  font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.pin .near-tag { bottom: calc(100% + 2px); }

/* ---------- 위치 권한 안내 ---------- */
.loc-help { font-size: 15px; line-height: 1.55; }
.loc-help p { margin: 0 0 10px; }
.loc-help ol { margin: 0 0 10px; padding-left: 20px; }
.loc-help li { margin-bottom: 6px; }
.loc-help .muted { color: var(--muted); font-size: 13px; }
.actions a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- 디자인 ---------- */

/* =========================================================
   디자인 시안 적용 (2026-11): 둥근 알약 버튼, 아이콘, 카드 메뉴, 등록 시트
   ========================================================= */
:root {
  --brand: #1aa564;
  --brand-dark: #12804c;
  --brand-grad: linear-gradient(135deg, #2ec77a 0%, #149457 100%);
  --brand-soft: #e8f7ef;
  --shadow: 0 6px 18px rgba(20, 40, 30, 0.16);
}
.ico { width: 22px; height: 22px; flex: none; display: block; }
.ico.green { color: var(--brand); }

/* 상단: 내 근처(흰 알약) + 메뉴(흰 사각) */
.near-btn {
  width: auto; height: 52px; padding: 0 20px 0 14px; border-radius: 999px;
  flex-direction: row; gap: 6px; background: #fff; color: var(--brand-dark);
  font-size: 17px; font-weight: 800; border: 2px solid #d9f0e3;
}
.near-btn .pin-emoji { font-size: 24px; line-height: 1; }
.near-btn:active { background: var(--brand-soft); }
.near-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow); }
.icon-btn {
  width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  color: #1d2420;
}
.icon-btn .ico { width: 28px; height: 28px; }

/* 메뉴: 카드 */
.menu {
  top: calc(74px + var(--safe-top)); width: min(320px, calc(100vw - 24px)); max-width: none;
  border-radius: 22px; padding: 8px; box-shadow: 0 12px 32px rgba(20, 40, 30, 0.22);
}
.menu-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 10px;
  background: var(--brand-soft); border-radius: 16px; margin-bottom: 4px;
}
.menu-logo {
  width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.menu-logo .ico { width: 26px; height: 26px; }
.menu-title { flex: 1; padding: 0; border: 0; font-size: 19px; font-weight: 900; color: var(--brand-dark); }
.menu .menu-close {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #4a524e;
}
.menu .menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 12px;
  border: 0; border-bottom: 1px solid #eef1ef; background: none; color: #1d2420;
  font-size: 17px; font-weight: 700; text-align: left; text-decoration: none;
}
.menu .menu-item span { flex: 1; }
.menu .menu-item .chev { width: 18px; height: 18px; color: #8a938e; }
.menu .menu-item:active { background: #f3f7f5; }
.menu-credit {
  display: flex; gap: 8px; align-items: flex-start; max-width: none; margin-top: 8px;
  padding: 12px; border: 0; border-radius: 14px; background: var(--brand-soft);
  font-size: 11.5px; line-height: 1.5; color: #55605a;
}
.menu-credit .ico { width: 18px; height: 18px; margin-top: 1px; }

/* 안내 문구 / 토스트: 진한 알약 */
.hint {
  left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  top: calc(76px + var(--safe-top)); padding: 10px 18px; border-radius: 999px;
  background: rgba(40, 44, 42, 0.86); font-size: 14px; font-weight: 600;
}
.hint.fade { opacity: 0; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 26px;
  background: rgba(40, 44, 42, 0.9); font-size: 15px; font-weight: 600; text-align: left;
  top: calc(128px + var(--safe-top)); width: max-content; max-width: calc(100vw - 32px);
}
.toast .ico { width: 22px; height: 22px; color: #fff; }

/* 오른쪽 아래: 화장실 등록, 왼쪽 아래: 내 위치 */
.add-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 26px;
  background: var(--brand-grad); font-size: 18px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(20, 148, 87, 0.35);
}
.add-btn .ico { width: 22px; height: 22px; }
.add-btn.active { background: linear-gradient(135deg, #ffa133 0%, #ff7a00 100%); box-shadow: 0 8px 20px rgba(255, 122, 0, 0.35); }
.fab { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; color: var(--brand-dark); }
.fab .ico { width: 30px; height: 30px; }


/* 바텀시트: 머리(초록 원 아이콘 + 제목 + 닫기) */
.sheet { border-radius: 26px 26px 0 0; padding: 10px 20px calc(20px + var(--safe-bottom)); }
.sheet-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 900; word-break: keep-all; }
.sheet-logo {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.sheet-logo .ico { width: 28px; height: 28px; }
.sheet-x {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f3f2; color: #4a524e;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.addr-box, .pw-box .k { display: flex; align-items: center; gap: 6px; }
.addr-box { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #f3f5f4; color: #4a524e; font-size: 14px; }
.addr-box .ico { width: 18px; height: 18px; color: #7d8681; }
.pw-box { border-radius: 16px; }
.pw-box .k .ico { width: 16px; height: 16px; }

/* 등록·수정 폼 */
.pretty .field { margin-bottom: 16px; }
.pretty .lbl { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; color: #1d2420; margin-bottom: 8px; }
.pretty .lbl small { font-weight: 600; color: var(--muted); font-size: 13px; }
.pretty .lbl .ico { width: 20px; height: 20px; color: var(--brand); }
.pretty .inp {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1.5px solid #dfe5e2; border-radius: 16px; background: #fff;
}
.pretty .inp:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 165, 100, 0.12); }
.pretty .inp.gray { background: #f3f5f4; border-color: #f3f5f4; }
.pretty .inp .ico { width: 20px; height: 20px; color: #8a938e; }
.pretty .inp input, .pretty .inp textarea { flex: 1; min-width: 0; border: 0; padding: 14px 0; background: transparent; outline: 0; }
.pretty .inp.area { align-items: flex-start; }
.pretty .inp.area .ico { margin-top: 14px; }
.pretty .inp textarea { min-height: 84px; resize: vertical; }
.star-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.star-pick { gap: 4px; }
.star-pick button { padding: 0; color: #d9dedb; }
.star-pick button .ico { width: 40px; height: 40px; }
.star-pick button.on { color: #ffc400; filter: drop-shadow(0 2px 2px rgba(217, 154, 0, 0.3)); }
.star-step { display: flex; border-radius: 999px; background: #f1f3f2; overflow: hidden; }
.star-step button { width: 46px; height: 40px; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: #4a524e; }
.star-step .ico { width: 18px; height: 18px; }

/* 시트 버튼: 알약 */
.actions { gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px; border-radius: 999px; border: 1.5px solid #dfe5e2; font-size: 17px; font-weight: 800;
}
.btn .ico { width: 20px; height: 20px; }
.btn.primary { background: var(--brand-grad); border-color: transparent; box-shadow: 0 6px 16px rgba(20, 148, 87, 0.3); }

/* ---------- 라이더 화장실맵: 공공데이터 / 신고 / 운영자 ---------- */
.pin.pub .pin-shape { background: #3a7bd5; }
.label-marker.pub { border-color: #3a7bd5; }
.label-marker.pub::after { border-top-color: #3a7bd5; }
.detail-tags { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.tag.pub { background: #e6f0fc; color: #2a62b0; }
.tag.user { background: #e3f6ec; color: var(--brand-dark); }
.detail-tags .stars { color: #ffb400; font-size: 16px; letter-spacing: 1px; }
.form-note { color: var(--muted); font-size: 13px; margin: -4px 0 8px; word-break: keep-all; }
.sheet-sub { margin: -6px 0 14px; color: var(--muted); font-weight: 700; }
.reason-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.reason { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px; font-weight: 700; word-break: keep-all; }
.reason input { width: 20px; height: 20px; accent-color: var(--danger); flex: none; }
.reason:has(input:checked) { border-color: var(--danger); background: #fff5f5; }
.btn.danger-fill, .btn.primary.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger .ico, .btn .ico { width: 18px; height: 18px; }
.terms-box { font-size: 15px; line-height: 1.55; word-break: keep-all; }
.terms-box ul { padding-left: 20px; margin: 8px 0 12px; }
.terms-box li { margin-bottom: 6px; }
.terms-box .muted { color: var(--muted); font-size: 13px; }
.terms-box a { color: var(--brand-dark); }
.app-card.hidden-card { background: #fafafa; }
.app-card .zn.on { background: var(--brand); }
.app-card .zn.off { background: #8a938e; }
.admin-acts { display: flex; gap: 8px; margin-top: 10px; }
.admin-acts .btn { padding: 9px 6px; font-size: 14px; }

/* ---------- 로그인 · 프로필 ---------- */
.login-box { text-align: center; }
.login-lead { font-size: 18px; line-height: 1.5; margin: 0 0 14px; word-break: keep-all; }
.login-lead b { color: var(--brand-dark); }
.point-rules { list-style: none; padding: 12px 14px; margin: 0 0 16px; border-radius: 16px; background: #f3f7f5; text-align: left; }
.point-rules li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; word-break: keep-all; }
.point-rules li span { width: 22px; text-align: center; }
.point-rules li b { margin-left: auto; white-space: nowrap; }
.plus { color: var(--brand-dark); } .minus { color: var(--danger); }
.btn.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 300px; margin: 0 auto 4px;
  background: #fff; border: 1.5px solid #dadce0; color: #1f1f1f; font-weight: 800; font-size: 16px; padding: 14px; border-radius: 999px; }
.btn.google-btn .ico { width: 22px; height: 22px; }
.gsi-btn { display: flex; justify-content: center; min-height: 44px; margin-bottom: 4px; }
.form-note.center { text-align: center; margin-top: 10px; }
.region-row { display: flex; gap: 8px; }
.sel { flex: 1; min-width: 0; padding: 13px 10px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; font-size: 15px; color: var(--text); }
.plat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plat input { position: absolute; opacity: 0; pointer-events: none; }
.plat span { display: block; text-align: center; padding: 13px 4px; border-radius: 14px; border: 2px solid var(--border); font-weight: 800; color: #4a524e; }
.plat.etc { grid-column: 1 / -1; }
.plat input:checked + span { color: #fff; }
.plat.baemin input:checked + span { background: #2ac1bc; border-color: #2ac1bc; }
.plat.baemin_plus input:checked + span { background: #12a39c; border-color: #12a39c; }
.plat.coupang input:checked + span { background: #2f6bff; border-color: #2f6bff; }
.plat.coupang_plus input:checked + span { background: #1a4fd6; border-color: #1a4fd6; }
.plat.etc input:checked + span { background: #6b7570; border-color: #6b7570; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.agree a { color: var(--brand-dark); }

/* ---------- 순위표 ---------- */
.rank-btn { color: #d99a00; }
.lb-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: #f1f3f2; margin-bottom: 12px; }
.lb-tabs button { flex: 1; border: 0; border-radius: 999px; padding: 9px; background: none; font-weight: 800; color: #6b7570; }
.lb-tabs button.on { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.lb-list { display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow-y: auto; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #f7f9f8; }
.lb-row.top { background: #fff8e1; }
.lb-row.me { box-shadow: inset 0 0 0 2px var(--brand); }
.lb-rank { width: 30px; text-align: center; font-weight: 900; font-size: 17px; color: #4a524e; }
.lb-row.top .lb-rank { font-size: 24px; }
.lb-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-who small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 2px; }
.lb-score { font-weight: 900; font-size: 18px; color: var(--brand-dark); white-space: nowrap; }
.lb-score small { font-size: 12px; margin-left: 1px; }
.lb-mine { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.lb-cap { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.plat-tag { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fff; background: #8a938e; }
.plat-tag.baemin { background: #2ac1bc; } .plat-tag.baemin_plus { background: #12a39c; }
.plat-tag.coupang { background: #2f6bff; } .plat-tag.coupang_plus { background: #1a4fd6; }

/* ---------- 맞아요 / 틀려요 ---------- */
.vote-box { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: #f7f9f8; }
.vote-q { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 800; margin-bottom: 10px; }
.vote-q small { font-weight: 500; color: var(--muted); font-size: 12px; }
.vote-btns { display: flex; gap: 8px; }
.vote { flex: 1; padding: 12px 6px; border-radius: 14px; border: 2px solid var(--border); background: #fff; font-weight: 800; font-size: 15px; color: #1d2420; }
.vote b { margin-left: 2px; }
.vote.up.on { border-color: var(--brand); background: #e3f6ec; }
.vote.down.on { border-color: var(--danger); background: #fff0f0; }
.vote:disabled { opacity: 0.75; }
.vote-box .form-note { margin: 8px 0 0; }

/* 지도 밖으로 나간 마커 때문에 화면이 옆으로 밀리지 않게 */
.map { overflow: hidden; z-index: 0; } /* 네이버 지도 컨트롤(확대 버튼·로고)이 바텀시트 위로 올라오지 않게 */
.link-btn { display: block; margin: 14px auto 0; border: 0; background: none; font-size: 13px; text-decoration: underline; color: var(--muted); }
.link-btn.danger-link { color: var(--danger); }

/* ---------- 버튼 크기·모양 다듬기 (작고 깔끔하게) ---------- */
.topbar { padding: calc(10px + var(--safe-top)) 12px 0; gap: 6px; align-items: center; }
.near-btn {
  height: 40px; padding: 0 14px 0 11px; gap: 5px; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 800; letter-spacing: -0.2px;
  background: rgba(255, 255, 255, 0.96); color: var(--brand-dark);
  box-shadow: 0 1px 2px rgba(16, 36, 26, 0.08), 0 4px 14px rgba(16, 36, 26, 0.12);
}
.near-btn .ico { width: 16px; height: 16px; }
.near-btn.active { background: var(--brand); color: #fff; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, 0.96); color: #2a332e;
  box-shadow: 0 1px 2px rgba(16, 36, 26, 0.08), 0 4px 14px rgba(16, 36, 26, 0.12);
}
.icon-btn .ico { width: 20px; height: 20px; }
.rank-btn { color: #e0a100; }
.menu { top: calc(58px + var(--safe-top)); }
.fab {
  width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, 0.96); color: var(--brand-dark);
  box-shadow: 0 1px 2px rgba(16, 36, 26, 0.08), 0 4px 14px rgba(16, 36, 26, 0.12);
}
.fab .ico { width: 22px; height: 22px; }
.add-btn {
  padding: 11px 18px 11px 15px; gap: 6px; font-size: 15px; font-weight: 800; letter-spacing: -0.2px;
  box-shadow: 0 2px 4px rgba(20, 148, 87, 0.2), 0 6px 16px rgba(20, 148, 87, 0.28);
}
.add-btn .ico { width: 18px; height: 18px; }
.locate-btn, .fabs { bottom: calc(20px + var(--safe-bottom)); }
@supports (backdrop-filter: blur(8px)) {
  .near-btn:not(.active), .icon-btn, .fab { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px); }
}
.hint { top: calc(60px + var(--safe-top)); font-size: 13px; padding: 7px 14px; }

/* ---------- 배민플러스 가입문의 ---------- */
.join-item .ico { color: #12a39c; }
.join-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.join-region { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px; border-radius: 16px;
  background: #e9f8f7; color: #0b6f6a; text-decoration: none; border: 1.5px solid #bfe9e6; }
.join-region:active { background: #d4f2f0; }
.jr-name { font-size: 20px; font-weight: 900; }
.jr-call { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: #fff;
  background: #12a39c; padding: 9px 14px; border-radius: 999px; }
.jr-call .ico { width: 16px; height: 16px; }
