/* 로케이션뱅크 모바일 앱 디자인 시스템 */
@font-face { font-family: "Pretendard"; src: url("../vendor/PretendardVariable.woff2") format("woff2-variations"); font-weight: 45 920; font-display: swap; }

:root {
  --primary: #FF5A36;
  --primary-600: #EE4720;
  --primary-50: #FFF1EC;
  --ink: #17181C;
  --ink-2: #3A3D45;
  --muted: #7B808C;
  --muted-2: #A6AAB3;
  --line: #ECEEF1;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --safe: #2F6BFF;
  --safe-50: #EDF2FF;
  --ok: #0CA678;
  --ok-50: #E6FCF5;
  --warn: #F08C00;
  --warn-50: #FFF4E6;
  --danger: #E03131;
  --danger-50: #FFF5F5;
  --violet: #7048E8;
  --violet-50: #F3F0FF;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --app-w: 430px;
  --tab-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink); background: #E9EBEF; font-size: 15px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- 앱 쉘 ---------- */
.app { position: relative; max-width: var(--app-w); margin: 0 auto; min-height: 100vh; background: var(--card);
  box-shadow: 0 0 0 1px rgba(0,0,0,.03), 0 30px 80px rgba(0,0,0,.10); padding-bottom: calc(var(--tab-h) + 16px); overflow-x: clip; }
.app.no-tab { padding-bottom: 24px; }
.app.has-cta { padding-bottom: 110px; }
.app.gray { background: var(--bg); }
@media (min-width: 700px) {
  body.framed { background: radial-gradient(1200px 600px at 20% -10%, #FFE3D8 0, transparent 60%), radial-gradient(900px 600px at 110% 110%, #DDE6FF 0, transparent 60%), #EEF0F4; }
  body.framed .app { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; }
}
body.embed .app { margin: 0 !important; border-radius: 0 !important; min-height: 100vh !important; box-shadow: none; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; }
.topbar.line { border-bottom-color: var(--line); }
.topbar.clear { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; }
.topbar .title { flex: 1; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title.left { text-align: left; padding-left: 4px; }
.topbar .spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; position: relative; flex: none; }
.icon-btn:active { background: var(--bg); }
.icon-btn.round { border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.ico.xs { width: 14px; height: 14px; }
.ico.lg { width: 28px; height: 28px; }
.ico.fill { fill: currentColor; }

.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.logo .mark { width: 30px; height: 30px; display: block; flex: none; }
.logo .mark svg { width: 17px; height: 17px; }

/* 하단 탭 */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); height: var(--tab-h);
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted-2); font-weight: 600; position: relative; }
.tabbar a.on { color: var(--ink); }
.tabbar a .badge-n { position: absolute; top: 6px; left: calc(50% + 6px); }
@media (min-width: 700px) { body.framed .tabbar { bottom: 24px; border-radius: 0 0 28px 28px; } body.framed.embed .tabbar { bottom: 0; border-radius: 0; } }

/* ---------- 타이포/레이아웃 ---------- */
.px { padding-left: 20px; padding-right: 20px; }
.section { padding: 22px 20px 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.section-head h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; }
.section-head .more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; }
.h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; }
.h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.03em; }
.h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 4px; }
.grow { flex: 1; min-width: 0; }
.gap4 { gap: 4px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.divider { height: 8px; background: var(--bg); margin: 18px 0 0; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.center { text-align: center; }
.hide-scroll { scrollbar-width: none; } .hide-scroll::-webkit-scrollbar { display: none; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .06s; }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 54px; font-size: 16px; border-radius: 14px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.safe { background: var(--safe); color: #fff; }
.btn.line { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.soft { background: var(--bg); color: var(--ink); }
.btn.soft-primary { background: var(--primary-50); color: var(--primary-600); }
.btn.danger { background: var(--danger-50); color: var(--danger); }
.btn[disabled], .btn.disabled { background: #E9ECEF; color: #ADB5BD; pointer-events: none; }
.btn.naver { background: #03C75A; color: #fff; }
.btn.kakao { background: #FEE500; color: #191919; }
.btn.apple { background: #000; color: #fff; }

/* ---------- 칩/배지 ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 20px 4px; margin: 0 -20px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on-primary { background: var(--primary-50); border-color: var(--primary); color: var(--primary-600); }
.chip input { display: none; }
label.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge.gray { background: #F1F3F5; color: #495057; }
.badge.primary { background: var(--primary-50); color: var(--primary-600); }
.badge.safe, .badge.blue { background: var(--safe-50); color: var(--safe); }
.badge.ok, .badge.green { background: var(--ok-50); color: var(--ok); }
.badge.warn, .badge.amber { background: var(--warn-50); color: var(--warn); }
.badge.red { background: var(--danger-50); color: var(--danger); }
.badge.violet { background: var(--violet-50); color: var(--violet); }
.badge.dark { background: rgba(23,24,28,.78); color: #fff; backdrop-filter: blur(4px); }
.badge-n { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 카드 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.box.soft { background: var(--bg); border-color: transparent; }
.box.safe { background: var(--safe-50); border-color: #D6E2FF; }
.box.primary { background: var(--primary-50); border-color: #FFD8CB; }
.box.ok { background: var(--ok-50); border-color: #C3FAE8; }
.box.warn { background: var(--warn-50); border-color: #FFE8CC; }

.pcard { display: block; }
.pcard .thumb { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .thumb .tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; }
.pcard .thumb .heart { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.pcard .thumb .heart.on { color: var(--primary); }
.pcard .thumb .heart.on .ico { fill: currentColor; }
.pcard .meta { padding: 10px 2px 0; }
.pcard .loc { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.pcard .name { font-size: 15.5px; font-weight: 700; margin-top: 2px; letter-spacing: -0.02em; }
.pcard .price { font-size: 15px; font-weight: 800; margin-top: 4px; }
.pcard .price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pcard .stats { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.star { color: #FAB005; }

.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 6px; margin: 0 -20px; scroll-snap-type: x mandatory; }
.hscroll > * { flex: none; scroll-snap-align: start; }
.hscroll .pcard { width: 240px; }
.hscroll .pcard.sm { width: 160px; }

.plist { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plist .thumb { width: 112px; height: 112px; border-radius: 12px; overflow: hidden; flex: none; position: relative; }
.plist .thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.list-row:last-child { border-bottom: 0; }
.list-row .lead { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); flex: none; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

/* 카테고리 아이콘 그리드 */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 2px; }
.cat-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: -0.04em; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; }
.cat-grid .ci { width: 48px; height: 48px; border-radius: 15px; background: var(--bg); display: grid; place-items: center; color: var(--ink); }

/* 검색바 */
.searchbar { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 15px; }
.searchbar input { border: 0; background: transparent; outline: none; flex: 1; font-size: 15px; color: var(--ink); }

/* ---------- 폼 ---------- */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.label .req { color: var(--primary); }
.input, .select, .textarea { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; outline: none; font-size: 15px; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.seg { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label, .seg a { flex: 1; height: 40px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input { display: none; }
.seg label:has(input:checked), .seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.toggle { position: relative; width: 48px; height: 28px; flex: none; }
.toggle input { display: none; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #DEE2E6; transition: .2s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.toggle input:checked + span { background: var(--primary); }
.toggle input:checked + span::after { left: 23px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; height: 44px; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; }
.stepper input { width: 52px; border: 0; text-align: center; outline: none; font-weight: 700; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.radio-card input { display: none; }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.radio-card .rc-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CED4DA; flex: none; position: relative; }
.radio-card:has(input:checked) .rc-dot { border-color: var(--ink); }
.radio-card:has(input:checked) .rc-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.checkline { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; }
.checkline input { width: 20px; height: 20px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }

/* 하단 고정 CTA */
.cta-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; z-index: 40; }
@media (min-width: 700px) { body.framed .cta-bar { bottom: 24px; border-radius: 0 0 28px 28px; } body.framed.embed .cta-bar { bottom: 0; border-radius: 0; } }

/* 갤러리 */
.gallery { position: relative; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery .track img { flex: none; width: 100%; aspect-ratio: 4/3.2; object-fit: cover; scroll-snap-align: start; }
.gallery .count { position: absolute; right: 14px; bottom: 14px; }

/* 스펙 그리드 */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.spec-grid > div { background: var(--bg); border-radius: 12px; padding: 12px 6px; text-align: center; }
.spec-grid .v { font-weight: 800; font-size: 15px; margin-top: 4px; }
.spec-grid .k { font-size: 11.5px; color: var(--muted); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; }
.feat-grid > div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.feat-grid .ico { color: var(--ink-2); }
.feat-grid .off { color: var(--muted-2); text-decoration: line-through; }

/* 달력 */
.cal { user-select: none; }
.cal .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal .dow { font-size: 12px; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal .day { width: 100%; max-width: 46px; margin: 0 auto; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 600; position: relative; cursor: pointer; }
.cal .day.past, .cal .day.blocked { color: #CED4DA; cursor: default; }
.cal .day.blocked { text-decoration: line-through; }
.cal .day.booked::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.cal .day.sel { background: var(--ink); color: #fff; }
.cal .day.today { box-shadow: inset 0 0 0 1px var(--line); }
.cal .day.sun { color: var(--danger); }
.cal .day.empty { cursor: default; padding: 0; } /* 전역 .empty(빈 화면 안내) 패딩 상속 방지 */
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* 타임라인 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .tl-item { position: relative; padding-bottom: 18px; }
.timeline .tl-item:last-child { padding-bottom: 0; }
.timeline .tl-item::before { content: ""; position: absolute; left: -24px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #CED4DA; }
.timeline .tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.timeline .tl-item.now::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.timeline .tl-t { font-weight: 700; font-size: 14.5px; }
.timeline .tl-d { font-size: 12.5px; color: var(--muted); }

/* 스텝 진행 */
.steps { display: flex; gap: 4px; padding: 0 20px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--primary); }

/* 금액 테이블 */
.amount-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14.5px; }
.amount-row.total { font-size: 18px; font-weight: 800; padding-top: 12px; border-top: 1px dashed #DEE2E6; margin-top: 8px; }
.amount-row .neg { color: var(--primary-600); }

/* 탭 내비 */
.tabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 12px; position: sticky; top: 56px; background: #fff; z-index: 20; overflow-x: auto; }
.tabs a { flex: none; padding: 12px 10px; font-size: 15px; font-weight: 700; color: var(--muted-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.tabs.fill a { flex: 1; text-align: center; }

/* 채팅 */
.chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F2F4F7; min-height: calc(100vh - 56px - 72px - 70px); }
.msg { max-width: 76%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-top-left-radius: 16px; border-top-right-radius: 4px; }
.msg-time { font-size: 11px; color: var(--muted); align-self: flex-end; margin: 0 4px; }
.msg-row { display: flex; align-items: flex-end; gap: 5px; max-width: 84%; align-self: flex-start; }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-row .msg { align-self: auto; max-width: 100%; white-space: pre-wrap; word-break: break-word; }
.msg-meta { display: flex; flex-direction: column; align-items: flex-start; flex: none; font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.msg-row.me .msg-meta { align-items: flex-end; }
.msg-meta .unread { color: var(--primary); font-weight: 800; font-size: 11px; }
.msg-photo { width: 200px; max-width: 100%; border-radius: 14px; }
.msg.pending { opacity: .55; }
.msg.failed { background: var(--danger); }
.msg-sys { align-self: center; max-width: 92%; background: var(--safe-50); color: #2952CC; font-size: 12.5px; border-radius: 12px; padding: 9px 12px; text-align: center; }
.msg-card { align-self: flex-start; width: 78%; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.msg-card.me { align-self: flex-end; }
.msg-card .mc-head { padding: 12px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.msg-card .mc-body { padding: 12px 14px; font-size: 13.5px; }
.msg-card .mc-body .kv { display: flex; justify-content: space-between; padding: 2px 0; }
.msg-card .mc-foot { padding: 0 14px 14px; }
.chat-input { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--app-w); background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; align-items: center; z-index: 40; }
.chat-input input { flex: 1; height: 44px; border-radius: 22px; border: 0; background: var(--bg); padding: 0 16px; outline: none; }
@media (min-width: 700px) { body.framed .chat-input { bottom: 24px; border-radius: 0 0 28px 28px; } body.framed.embed .chat-input { bottom: 0; border-radius: 0; } }

/* 시트(바텀시트) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; display: none; }
.sheet { position: fixed; left: 50%; transform: translate(-50%, 100%); bottom: 0; width: 100%; max-width: var(--app-w); max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; z-index: 90; transition: transform .25s ease; }
.sheet.open { transform: translate(-50%, 0); }
.sheet-backdrop.open { display: block; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #DEE2E6; margin: 10px auto 4px; }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; }
.sheet .sheet-foot { position: sticky; bottom: 0; margin-top: 20px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: rgba(23,24,28,.92); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 100; max-width: 380px; text-align: center; animation: toast 2.8s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* 지도 */
.map-wrap { position: relative; height: calc(100vh - 56px - var(--tab-h)); }
@media (min-width: 700px) { body.framed .map-wrap { height: calc(100vh - 48px - 56px - var(--tab-h)); } body.framed.embed .map-wrap { height: calc(100vh - 56px - var(--tab-h)); } }
#map { position: absolute; inset: 0; z-index: 1; }
.map-pin { background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 12.5px; box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; border: 1.5px solid #fff; transform: translate(-50%, -100%); position: absolute; }
.map-pin.on { background: var(--ink); color: #fff; }
.map-pin.prem { background: var(--primary); color: #fff; }
.map-cards { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 5; }
.map-card { width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.18); display: flex; gap: 12px; padding: 10px; }
.map-card img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; }

/* 빈 상태 */
.empty { text-align: center; padding: 60px 30px; color: var(--muted); }
.empty .ico { width: 44px; height: 44px; color: #CED4DA; margin: 0 auto 12px; }

/* 통계 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.stat .d { font-size: 12px; color: var(--ok); font-weight: 700; }

/* 히어로 */
.hero { margin: 4px 20px 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 16/10; color: #fff; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.hero .txt { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.hero .txt b { font-size: 21px; letter-spacing: -0.03em; line-height: 1.3; display: block; }
.hero .page { position: absolute; right: 14px; top: 14px; }

.banner { margin: 18px 20px 0; border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.banner.safe { background: linear-gradient(120deg, #EDF2FF, #E7F5FF); }
.banner.dark { background: var(--ink); color: #fff; }
.banner .bi { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--safe); flex: none; }

.req-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.req-card + .req-card { margin-top: 10px; }

.trust { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: var(--ok-50); color: #087F5B; }
.trust.no { background: var(--warn-50); color: #D9480F; }

.kv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 7px 0; width: 108px; vertical-align: top; }
.kv-table td { padding: 7px 0; font-weight: 600; }

.fab { position: fixed; right: calc(50% - min(50vw, 215px) + 18px); bottom: calc(var(--tab-h) + 18px); height: 52px; padding: 0 20px; border-radius: 26px; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 35; }
@media (min-width: 700px) { body.framed .fab { bottom: calc(var(--tab-h) + 42px); } body.framed.embed .fab { bottom: calc(var(--tab-h) + 18px); } }

.photo-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-up > div { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.photo-up img { width: 100%; height: 100%; object-fit: cover; }
.photo-up .rep { position: absolute; left: 6px; top: 6px; }

.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar-chart > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; font-size: 11px; color: var(--muted); }
.bar-chart i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: #FFD0C2; }
.bar-chart > div.on i { background: var(--primary); }

.splash { min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.splash .bgimg { position: absolute; inset: 0; opacity: .45; }
.splash .bgimg img { width: 100%; height: 100%; object-fit: cover; }
.splash .fg { position: relative; flex: 1; display: flex; flex-direction: column; padding: 28px 24px 34px; background: linear-gradient(180deg, rgba(23,24,28,.2), rgba(23,24,28,.95) 70%); }

body.embed { scrollbar-width: none; }
body.embed::-webkit-scrollbar { display: none; }

html:has(body.embed) { scrollbar-width: none; }
html:has(body.embed)::-webkit-scrollbar { display: none; }


/* 화면 이동 로딩 (로고 카메라 마스코트) */
.page-loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.page-loader.on { opacity: 1; visibility: visible; }
.pl-box { display: flex; flex-direction: column; align-items: center; }
.pl-cam { width: 112px; height: 112px; animation: pl-hop .9s ease-in-out infinite; }
.pl-shadow { width: 62px; height: 9px; margin-top: 2px; border-radius: 50%; background: rgba(23,24,28,.13); animation: pl-shadow .9s ease-in-out infinite; }
.pl-msg { margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; letter-spacing: -0.03em; }
.pl-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.pl-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: pl-dot 1s ease-in-out infinite; }
.pl-dots i:nth-child(2) { animation-delay: .15s; }
.pl-dots i:nth-child(3) { animation-delay: .3s; }
.pl-film { animation: pl-roll .5s linear infinite; }
.pl-wl, .pl-wr, .pl-lid, .pl-eye { transform-box: fill-box; transform-origin: center; }
.pl-wl { transform-origin: right center; animation: pl-wing .45s ease-in-out infinite alternate; }
.pl-wr { transform-origin: left center; animation: pl-wing .45s ease-in-out .22s infinite alternate; }
.pl-eye { animation: pl-look 2.4s ease-in-out infinite; }
.pl-lid { animation: pl-blink 2.4s ease-in-out infinite; }
@keyframes pl-hop { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes pl-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.6); opacity: .45; } }
@keyframes pl-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pl-roll { to { transform: translateX(10px); } }
@keyframes pl-wing { to { transform: scaleX(.78); } }
@keyframes pl-look { 0%, 12% { transform: translate(0, 0); } 25%, 40% { transform: translate(-4px, 1px); } 55%, 70% { transform: translate(4px, -1px); } 82%, 100% { transform: translate(0, 0); } }
@keyframes pl-blink { 0%, 86%, 96%, 100% { transform: scaleY(1); } 91% { transform: scaleY(.08); } }
@media (prefers-reduced-motion: reduce) { .page-loader * { animation: none !important; } }
