/* 오늘가게 — 인스타그램처럼 흰 배경·사진 중심. 주황(--accent)은 가격·쿠폰·주요 행동에만 쓴다. */
:root {
  --bg: #ffffff;
  --bg2: #f3f3f4;
  --fg: #111111;
  --sub: #737373;
  --line: #ececec;
  --accent: #e2572b;
  --accent-fg: #fff;
  --deal: #fff1ea;
  --deal-fg: #b8401a;
  --open: #1f8a4c;
  --closed: #8e8e8e;
  --glass: rgba(255, 255, 255, .92);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000; --bg2: #1c1c1e; --fg: #f5f5f5; --sub: #a1a1a1; --line: #262626;
  --accent: #ff6a3d; --deal: #2b1a12; --deal-fg: #ffb08f; --open: #4cc47b; --closed: #8e8e8e; --glass: rgba(0, 0, 0, .9);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body { font-family: Pretendard, -apple-system, system-ui, sans-serif; font-size: 14px; letter-spacing: -0.2px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--fg); }
input:disabled { opacity: .5; }
input::placeholder, textarea::placeholder { color: var(--sub); }
svg { display: block; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
@media (min-width: 520px) { #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.topbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 16px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logo { font-size: 21px; font-weight: 800; letter-spacing: -0.8px; }
.logo::first-letter { color: var(--accent); }
.top-actions { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; }
.icon-btn svg, .tabbar svg { width: 25px; height: 25px; }
#view { padding-bottom: 72px; min-height: calc(100vh - 52px); }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(56px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: flex-start; padding-top: 6px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; place-items: center; width: 48px; height: 44px; opacity: .45; }
.tabbar a.on { opacity: 1; }
.tabbar a.on svg { stroke-width: 2.4; }
body.on-reels .topbar, body.on-reels .tabbar { background: rgba(0,0,0,.6); color: #fff; border-color: transparent; }
body.on-reels .logo::first-letter { color: #fff; }
.back-bar { position: sticky; top: 52px; z-index: 10; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px; background: var(--glass); backdrop-filter: blur(14px); }
.back-bar a { display: grid; place-items: center; width: 36px; height: 36px; }
.back-bar svg { width: 24px; height: 24px; }
.back-bar b { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 위 동그라미 (오늘 혜택 가게 · 가게 하이라이트) */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 10px 14px 12px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.stories.hl { border: 0; padding-top: 4px; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 66px; text-align: center; font-size: 11.5px; color: var(--fg); }
.story .ring { width: 66px; height: 66px; border-radius: 50%; padding: 2.5px; background: linear-gradient(45deg, #f9a03f, var(--accent), #d6246e); }
.story .av { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; position: relative; overflow: hidden; }
.story .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story span { display: block; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs a { flex: 1; display: grid; place-items: center; height: 44px; font-weight: 700; font-size: 14px; color: var(--sub); border-bottom: 1.5px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--fg); border-bottom-color: var(--fg); }
.tabs.icons svg { width: 22px; height: 22px; }
.seg { display: flex; gap: 6px; padding: 8px 14px 0; }
.seg a, .seg label span { display: block; padding: 7px 14px; border-radius: 9px; background: var(--bg2); font-weight: 700; font-size: 13px; color: var(--sub); }
.seg a.on { background: var(--fg); color: var(--bg); }
.form-seg { padding: 0; }
.form-seg label { display: block; }
.form-seg input { display: none; }
.form-seg input:checked + span { background: var(--fg); color: var(--bg); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--fg); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* 게시물 */
.post { padding-bottom: 14px; }
.post + .post { border-top: 1px solid var(--line); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.avatar { position: relative; overflow: hidden; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 80px; height: 80px; font-size: 30px; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who b { font-weight: 700; font-size: 14px; }
.post-head .who small { display: block; color: var(--sub); font-size: 12px; margin-top: 1px; }
.open { color: var(--open); font-weight: 600; }
.closed { color: var(--closed); }
.media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg2); }
.media.square { aspect-ratio: 1 / 1; }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: grid; place-items: center; text-align: center; color: #fff; padding: 28px; position: relative; }
.slide img, .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .ph-name { position: relative; font-size: 28px; font-weight: 800; line-height: 1.25; word-break: keep-all; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.mute { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 6px 10px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; font-weight: 600; }
.dots { display: flex; gap: 4px; justify-content: center; padding-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: #3897f0; }

/* 상품 태그 (게시물 아래, 가격은 상품에서) */
.ptags { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; scrollbar-width: none; }
.ptags::-webkit-scrollbar { display: none; }
.ptag { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--bg2); font-size: 13px; font-weight: 600; }
.ptag svg { width: 15px; height: 15px; color: var(--sub); }
.ptag b { color: var(--accent); font-weight: 800; }
.ptag i { font-style: normal; color: var(--sub); font-size: 12px; }
.ptag.off { opacity: .6; }

.actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 2px; }
.actions .sp { flex: 1; }
.actions svg { width: 25px; height: 25px; }
.actions .liked svg { fill: #ed4956; stroke: #ed4956; }
.actions .saved svg { fill: currentColor; }
.likes { padding: 2px 12px 0; font-weight: 700; font-size: 13.5px; }
.caption { padding: 4px 12px 0; line-height: 1.55; word-break: keep-all; }
.caption b { font-weight: 700; margin-right: 5px; }
.caption .tag { color: #00376b; }
:root[data-theme="dark"] .caption .tag { color: #e0f1ff; }
.cmt-link { display: block; padding: 4px 12px 0; color: var(--sub); font-size: 13.5px; cursor: pointer; }
.time { padding: 6px 12px 0; color: var(--sub); font-size: 11px; }
.deal { margin: 10px 12px 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--deal); color: var(--deal-fg); }
.deal svg { width: 20px; height: 20px; flex: 0 0 auto; }
.deal .txt { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; }
.deal .txt small { display: block; font-weight: 500; font-size: 11.5px; opacity: .8; margin-top: 1px; }
.deal button { flex: 0 0 auto; padding: 7px 11px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 700; font-size: 12.5px; }
.deal button.got { background: none; color: var(--deal-fg); border: 1px solid currentColor; }

/* 격자 */
.search-wrap { padding: 8px 14px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cell { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; padding: 8px; font-weight: 800; font-size: 14px; word-break: keep-all; }
.grid.tall .cell { aspect-ratio: 9 / 16; }
.cell img, .cell video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell .vd { position: absolute; right: 6px; top: 6px; color: #fff; filter: drop-shadow(0 0 3px rgba(0,0,0,.5)); }
.cell .vd svg { width: 18px; height: 18px; }
.cell.product .cp { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 7px 6px; font-size: 11.5px; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.cell.product .cp b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 64px 24px; text-align: center; color: var(--sub); line-height: 1.6; }
.empty b { display: block; font-size: 17px; color: var(--fg); margin-bottom: 6px; }
.empty.small { padding: 36px 24px; font-size: 13.5px; }
.empty.small b { display: inline; font-size: inherit; margin: 0; }

/* 숏폼 */
.reels { height: calc(100vh - 52px - 56px - env(safe-area-inset-bottom)); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; background: #000; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; overflow: hidden; color: #fff; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.8)); pointer-events: none; }
.reel .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .info { position: absolute; left: 14px; right: 70px; bottom: 18px; z-index: 2; }
.reel-who { display: flex; align-items: center; gap: 8px; }
.reel-who b { font-size: 14.5px; }
.reel .info p { margin-top: 6px; line-height: 1.5; font-size: 13.5px; }
.reel .go { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); color: #fff; font-weight: 700; font-size: 13px; }
.reel .go svg { width: 16px; height: 16px; }
.reel .side { position: absolute; right: 10px; bottom: 26px; display: flex; flex-direction: column; gap: 18px; align-items: center; font-size: 11.5px; font-weight: 600; z-index: 2; }
.reel .side svg { width: 28px; height: 28px; margin: 0 auto 3px; }
.reel .side .liked svg { fill: #ed4956; stroke: #ed4956; }

/* 지도 */
.map-wrap { position: relative; }
.map { height: 52vh; min-height: 300px; background: var(--bg2); z-index: 0; }
.map.small { height: 220px; min-height: 0; border-radius: 12px; }
.locate { position: absolute; right: 12px; bottom: 12px; z-index: 500; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.18); display: grid; place-items: center; }
.locate svg { width: 22px; height: 22px; }
.near-title { padding: 14px 16px 4px; font-weight: 800; font-size: 15px; }
.pin span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; padding: 5px 9px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 12px Pretendard, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.dist { font-size: 12.5px; color: var(--sub); font-weight: 600; }

/* 가게 프로필 */
.pf-top { display: flex; align-items: center; gap: 18px; padding: 12px 16px 8px; }
.stats { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.stats b { display: block; font-size: 17px; font-weight: 800; }
.stats span { font-size: 12.5px; color: var(--fg); }
.pf-bio { padding: 0 16px; line-height: 1.5; }
.pf-bio > b { font-size: 14.5px; font-weight: 800; }
.pf-bio > small { display: block; color: var(--sub); font-size: 12.5px; }
.pf-bio p { margin-top: 4px; font-size: 13.5px; word-break: keep-all; }
.pf-meta { color: var(--sub); font-size: 12.5px !important; }
.pf-btns { display: flex; gap: 6px; padding: 12px 16px; }
.pf-btns > * { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 9px; background: var(--bg2); font-weight: 700; font-size: 13.5px; }
.pf-btns .dark { background: var(--fg); color: var(--bg); }
.group { padding: 16px 16px 6px; font-weight: 800; font-size: 14px; }

/* 판매 상품 */
.price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 15px; font-weight: 800; }
.price em { font-style: normal; color: var(--accent); font-weight: 800; }
.price s { color: var(--sub); font-size: 12.5px; }
.prow, .mrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.prow + .prow, .mrow + .mrow { border-top: 1px solid var(--line); }
.prow.off { opacity: .55; }
.thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg2); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; text-align: center; padding: 4px; }
.thumb svg { width: 22px; height: 22px; color: var(--sub); }
.pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pinfo > b { font-weight: 700; font-size: 14.5px; }
.pinfo > small { color: var(--sub); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.best { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--deal); color: var(--deal-fg); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.chip-state { flex: 0 0 auto; padding: 3px 8px; border-radius: 6px; background: var(--bg2); color: var(--sub); font-size: 12px; font-weight: 700; }
.chip-state.soldout { background: #ffe9e9; color: #c62828; }
:root[data-theme="dark"] .chip-state.soldout { background: #3a1616; color: #ff8a8a; }
.pd { padding: 12px 16px 4px; }
.pd-place { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.pd-place svg { width: 16px; height: 16px; color: var(--sub); }
.pd h2 { margin: 12px 0 6px; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd .price b { font-size: 22px; }
.pd .price em { font-size: 18px; }
.sale-until { display: block; color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 2px; }
.pd-desc { margin-top: 10px; line-height: 1.6; word-break: keep-all; }
.pd .group { padding: 16px 0 6px; }
.opts { list-style: none; }
.opts li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.opts b { font-weight: 600; color: var(--sub); }
.modes { display: flex; gap: 6px; }
.modes span { padding: 5px 10px; border-radius: 8px; background: var(--bg2); font-size: 13px; font-weight: 600; }
.stock { margin-top: 10px; color: var(--accent); font-weight: 700; font-size: 13px; }
.buy-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 6px; }
.buy-bar .primary, .buy-bar .ghost { flex: 1 1 40%; display: grid; place-items: center; text-align: center; }
.save-btn { flex: 0 0 50px; height: 50px; border-radius: 12px; background: var(--bg2); display: grid; place-items: center; }
.save-btn svg { width: 22px; height: 22px; }
.save-btn.saved svg { fill: currentColor; }

/* 입력 화면 */
.form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.form h2 { font-size: 22px; font-weight: 800; }
.form h3 { font-size: 15px; font-weight: 800; margin-top: 4px; }
.form label, .flabel { font-weight: 700; font-size: 12.5px; color: var(--sub); display: flex; flex-direction: column; gap: 6px; }
.flabel { display: block; margin-bottom: 6px; }
.form .hint, .hint { font-weight: 500; color: var(--sub); font-size: 12px; line-height: 1.5; }
.form .row { display: flex; gap: 10px; align-items: flex-end; }
.form .row > * { flex: 1; min-width: 0; }
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.days label { flex-direction: row; align-items: center; gap: 4px; color: var(--fg); font-weight: 600; font-size: 14px; }
.days input { width: 17px; height: 17px; accent-color: var(--fg); }
.drop { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--sub); font-size: 12.5px; cursor: pointer; line-height: 1.6; }
.drop b { display: block; color: var(--fg); font-size: 14px; }
.thumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.link-row { display: flex; gap: 6px; margin-bottom: 6px; }
.link-row select { flex: 0 0 120px; }
.addr-row { display: flex; gap: 6px; }
.addr-row .pill { flex: 0 0 auto; }
.pick-photo { display: flex; align-items: center; gap: 14px; }
.tag-pick { display: flex; flex-direction: column; gap: 6px; }
.tp { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 10px 12px; border-radius: 10px; background: var(--bg2); color: var(--fg) !important; font-weight: 600 !important; font-size: 13.5px !important; }
.tp input { width: 18px; height: 18px; accent-color: var(--fg); }
.opt-row { margin-bottom: 6px; align-items: center !important; }
.opt-row .x { flex: 0 0 34px !important; height: 40px; font-size: 20px; color: var(--sub); }
.primary { min-height: 50px; padding: 0 14px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 15px; display: grid; place-items: center; text-align: center; }
.primary:disabled { opacity: .45; }
.ghost { min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--bg2); font-weight: 700; display: grid; place-items: center; }
.ghost.small { min-height: 38px; font-size: 13px; }
.pill { flex: 0 0 auto; padding: 8px 14px; border-radius: 9px; background: var(--bg2); font-weight: 700; font-size: 13px; white-space: nowrap; }
.link-btn { color: var(--sub); font-size: 13px; text-decoration: underline; text-align: center; }
.link-btn.danger { color: #c62828; }
.err { color: #c62828; font-size: 12.5px; font-weight: 600; }
.err:empty { display: none; }
.check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; color: var(--fg) !important; font-weight: 600 !important; line-height: 1.5; font-size: 13.5px !important; }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--fg); }
.check a { text-decoration: underline; }
.social { min-height: 48px; border-radius: 12px; font-weight: 700; }
.social.kakao { background: #fee500; color: #191919; }
.social.apple { background: #000; color: #fff; }
:root[data-theme="dark"] .social.apple { background: #fff; color: #000; }

/* 내 정보 */
.me-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px 0 16px; }
.me-head b { font-size: 20px; font-weight: 800; }
.me-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px 6px; }
.me-top .avatar.big { width: 72px; height: 72px; font-size: 26px; }
.me-info { flex: 1; min-width: 0; }
.me-info b { display: block; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-info small { color: var(--sub); font-size: 12.5px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 16px 4px; border-radius: 14px; background: var(--bg2); }
.me-stats a { padding: 12px 4px; text-align: center; }
.me-stats b { display: block; font-size: 18px; font-weight: 800; }
.me-stats span { font-size: 11.5px; color: var(--sub); }
.my-place { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.my-place > a:not(.pill) { flex: 1; min-width: 0; }
.my-place b { display: block; font-weight: 700; }
.my-place small { color: var(--sub); font-size: 12.5px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 600; }
.list-row > span { flex: 1; min-width: 0; }
.list-row small { color: var(--sub); font-weight: 500; font-size: 12.5px; }
.list-row > svg { width: 20px; height: 20px; color: var(--sub); flex: 0 0 auto; }
.list-row > svg:last-child { width: 16px; height: 16px; }
.owner-card { display: flex; align-items: center; gap: 12px; margin: 22px 16px 14px; padding: 16px; border-radius: 16px; background: var(--deal); color: var(--deal-fg); }
.owner-card div { flex: 1; }
.owner-card b { display: block; font-size: 15px; font-weight: 800; }
.owner-card small { font-size: 12.5px; opacity: .85; }
.owner-card svg { width: 20px; height: 20px; }
.me-edit { display: flex; align-items: center; gap: 12px; }
.me-edit small { color: var(--sub); font-size: 12px; }
.field-hint { display: flex; justify-content: space-between; gap: 10px; margin-top: -6px; color: var(--sub); font-size: 12px; }
.section-title { padding: 18px 16px 8px; font-weight: 800; font-size: 15px; }

/* 설정 */
.set-group { padding: 18px 16px 6px; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; text-align: left; font-weight: 600; font-size: 15px; }
.set-row > svg:first-child { width: 21px; height: 21px; }
.set-row > svg:last-child { width: 16px; height: 16px; color: var(--sub); }
.set-row span { flex: 1; }
.set-row small { display: block; color: var(--sub); font-weight: 500; font-size: 12px; margin-top: 2px; }
.set-row.danger { color: #c62828; margin-top: 12px; }

/* 사장님 관리 */
.mg-head { display: flex; align-items: center; gap: 12px; padding: 4px 16px 10px; }
.mg-head > div:not(.avatar) { flex: 1; min-width: 0; }
.mg-head b { display: block; font-weight: 800; font-size: 15px; }
.mg-head small { color: var(--sub); font-size: 12.5px; }
.mg-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.mg-tabs::-webkit-scrollbar { display: none; }
.mg-tabs a { flex: 0 0 auto; padding: 7px 13px; border-radius: 9px; background: var(--bg2); font-weight: 700; font-size: 13px; color: var(--sub); }
.mg-tabs a.on { background: var(--fg); color: var(--bg); }
.mg-actions { padding: 12px 16px 4px; }
.mg-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 16px; }
.mg-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; background: var(--bg2); font-size: 12px; font-weight: 700; }
.mg-quick svg { width: 22px; height: 22px; }
.mbtns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.mbtns > * { padding: 5px 9px; border-radius: 7px; background: var(--bg2); font-size: 12px; font-weight: 700; text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 16px 4px; }
.kpi { padding: 14px; border-radius: 14px; background: var(--bg2); }
.kpi b { display: block; font-size: 20px; font-weight: 800; }
.kpi span { font-size: 12px; color: var(--sub); }
.table { width: calc(100% - 32px); margin: 0 16px; border-collapse: collapse; font-size: 12.5px; }
.table th, .table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th { color: var(--sub); font-weight: 600; }
.card { margin: 10px 16px; padding: 14px; border-radius: 14px; background: var(--bg2); line-height: 1.6; }
.card b { font-size: 15px; }
.card small { color: var(--sub); display: block; }
.card .btn-row { display: flex; gap: 6px; margin-top: 10px; }
.card .btn-row button, .card .btn-row a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; background: var(--bg); font-weight: 700; font-size: 13px; }
.card .btn-row .on { background: var(--accent); color: #fff; }

/* 쿠폰 */
.coupon { margin: 10px 16px; padding: 14px; border-radius: 14px; background: var(--deal); color: var(--deal-fg); display: flex; gap: 12px; align-items: center; }
.coupon .txt { flex: 1; }
.coupon .txt b { display: block; font-size: 15px; }
.coupon .txt small { opacity: .85; }
.coupon.used { opacity: .5; }
.coupon button { padding: 9px 12px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; }
.big-code { text-align: center; padding: 10px 0 4px; }
.big-code b { display: block; font-size: 38px; font-weight: 900; letter-spacing: 6px; color: var(--accent); }

/* 첫 화면(게시물 없을 때) */
.welcome { padding: 20px 16px 30px; text-align: center; line-height: 1.6; color: var(--sub); }
.welcome-pic { aspect-ratio: 4 / 3; border-radius: 18px; margin-bottom: 18px; background: url('img/hero.jpg') center/cover, var(--bg2); }
.welcome b { display: block; font-size: 19px; color: var(--fg); margin-bottom: 6px; }
.welcome .primary { margin-top: 18px; }

/* 약관 */
.page { padding: 16px 16px 30px; }
.page h2 { font-size: 22px; font-weight: 800; }
.legal .meta { color: var(--sub); font-size: 12px; margin: 4px 0 16px; }
.legal h3 { font-size: 14.5px; font-weight: 800; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.75; font-size: 13.5px; word-break: keep-all; }
.legal ol, .legal ul { padding-left: 18px; margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; line-height: 1.55; word-break: keep-all; }

/* 시트·토스트 */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet.hidden, .toast.hidden { display: none; }
.panel { width: 100%; max-width: 480px; max-height: 82vh; overflow-y: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 8px 0 calc(20px + env(safe-area-inset-bottom)); }
.grab { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 6px auto 10px; }
.panel h3 { padding: 4px 16px 10px; font-size: 16px; font-weight: 800; text-align: center; }
.panel .opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14.5px; }
.panel .opt svg { width: 20px; height: 20px; }
.cmt { display: flex; gap: 10px; padding: 9px 16px; line-height: 1.5; }
.cmt .avatar { width: 30px; height: 30px; font-size: 13px; }
.cmt b { margin-right: 5px; }
.cmt small { color: var(--sub); }
.cmt-form { display: flex; gap: 8px; padding: 10px 16px 0; }
.cmt-form button { flex: 0 0 auto; padding: 0 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }
.notice { padding: 6px 16px 0; color: var(--sub); font-size: 11.5px; line-height: 1.5; }
.notice.center { text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1100; padding: 11px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 13.5px; max-width: 90vw; text-align: center; }
.leaflet-container { font-family: Pretendard, sans-serif; }
