:root {
  --down: #1b64da;      /* 내림 = 파랑 (한국 증시 관례) */
  --up: #d92f2f;        /* 오름 = 빨강 */
  --flat: #8b95a1;      /* 보합 = 회색 */
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --line: #eef0f3;
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --accent: #1b64da;
  --kakao: #fee500;
  --radius: 16px;
  --tabbar-h: 60px;
  --font: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-2); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
svg { flex: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }

/* 모바일 우선, PC는 가운데 최대 480px */
.app {
  max-width: 480px; min-height: 100vh; margin: 0 auto; background: var(--bg);
  padding-bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
}

/* 헤더 */
.hdr {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px 20px; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.sample-badge { font-size: 11px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.login-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--kakao); color: #191919; font-size: 13px; font-weight: 700;
  padding: 7px 11px; border-radius: 10px;
}
.login-btn svg { width: 15px; height: 15px; }

/* 사이드카 상태 바 */
/* 사이드카 (v2d: 종목별) */
.sidecar { margin: 12px 20px 0; padding: 14px 0 12px; border-radius: var(--radius); background: var(--bg-2); }
.sc-head { display: flex; align-items: baseline; gap: 8px; padding: 0 16px; }
.sc-title { font-size: 15px; font-weight: 800; }
.sc-state { font-size: 12px; font-weight: 700; color: #2f7d32; }
.sc-count { font-size: 12.5px; font-weight: 700; color: var(--up); }
.sc-rule { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.sidecar.on { background: #fdeeee; box-shadow: inset 0 0 0 1px #f6c9c9; }
.sidecar.on .sc-title { color: var(--up); }
.sc-cards { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sc-cards::-webkit-scrollbar { display: none; }
.sc-card { flex: 0 0 auto; width: 224px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--up); color: #fff; box-shadow: 0 4px 12px rgba(217,47,47,.25); }
.sc-cards .sc-card:only-child { width: 100%; }
.sc-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.22); }
.sc-name { font-size: 17px; font-weight: 800; margin-top: 3px; }
.sc-drop { font-size: 13px; font-weight: 500; }
.sc-drop b { font-size: 17px; font-weight: 700; }
.sc-now { font-size: 12px; opacity: .9; }
.sc-now b { font-weight: 700; }
.top3 { list-style: none; margin: 8px 0 2px; padding: 0 8px; }
.top3-row { width: 100%; display: grid; grid-template-columns: 18px minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 10px; text-align: left; }
.top3 li + li .top3-row { border-top: 1px solid var(--line); border-radius: 0; }
.t3-rank { font-size: 13px; font-weight: 700; color: var(--down); text-align: center; }
.t3-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t3-price { font-size: 13.5px; font-weight: 700; }
.t3-diff { font-size: 13px; font-weight: 700; min-width: 54px; text-align: right; }
.top3-empty { margin: 10px 16px 4px; font-size: 13px; color: var(--ink-3); }
.sc-alert { display: flex; align-items: center; gap: 6px; padding: 10px 16px 0; font-size: 12.5px; color: var(--ink-2); }
.sc-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fa45b; flex: none; }
.sidecar.on .sc-dot { background: var(--up); box-shadow: 0 0 0 3px rgba(217,47,47,.18); }
.sc-link { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #191919; background: var(--kakao); padding: 6px 10px; border-radius: 999px; text-decoration: none; }
.sc-link svg { width: 13px; height: 13px; }
/* 제조사 탭 */
.maker-tabs { display: flex; gap: 6px; padding: 2px 20px 8px; }
.mtab { font-size: 13.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.mtab[aria-selected="true"] { background: var(--ink); color: #fff; font-weight: 700; }

/* 섹션 머리 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 20px 6px; }
.sec-head h2 { font-size: 17px; margin: 0; font-weight: 700; }
.sec-sub { font-size: 12px; color: var(--ink-3); }
.more { font-size: 12.5px; color: var(--ink-3); }

/* 시세 목록 */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 28px minmax(0,1fr) 44px minmax(116px, auto); align-items: center; gap: 8px; padding: 12px 20px 12px 14px; cursor: pointer; }
.row:active { background: var(--bg-2); }
.row + .row { border-top: 1px solid var(--line); }
.star { width: 28px; height: 28px; display: grid; place-items: center; color: #c9ced6; border-radius: 8px; }
.star[aria-pressed="true"] { color: #f5b400; }
.star svg { width: 20px; height: 20px; }
.m-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { width: 48px; height: 24px; display: block; }
.m-price { text-align: right; }
.m-price .num { display: block; }
.m-price .p { font-size: 15px; font-weight: 700; }
.m-price .c { font-size: 11.5px; white-space: nowrap; }
.empty { padding: 24px 20px; color: var(--ink-3); font-size: 14px; text-align: center; list-style: none; }
.empty-watch { list-style: none; text-align: center; padding: 64px 20px; color: var(--ink-3); }
.empty-watch svg { width: 36px; height: 36px; color: #dfe3e8; }
.empty-watch p { margin: 10px 0 0; font-size: 14.5px; }

/* 게시글 목록 */
.post-list { list-style: none; margin: 0; padding: 0; }
.post { padding: 12px 20px; cursor: pointer; }
.post:active { background: var(--bg-2); }
.post + .post { border-top: 1px solid var(--line); }
.post-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14.5px; font-weight: 500; }
.post-title .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cc { color: var(--accent); font-size: 12.5px; font-weight: 700; flex: none; }
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.post-meta b { font-weight: 500; color: var(--ink-2); }
.tag { font-size: 11px; color: var(--ink-2); background: var(--bg-2); border-radius: 5px; padding: 1px 6px; }
.pbadge { flex: none; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.b-daeran { background: #fff1e8; color: #d9480f; }
.b-review { background: #eaf6ee; color: #2f7d32; }
.b-question { background: #f2effc; color: #6741d9; }
.b-free { background: var(--bg-2); color: var(--ink-2); }
.b-vendor { background: #eef4fd; color: var(--accent); }
.hot-list .post { padding: 10px 20px; }
.foot-note { font-size: 11.5px; color: var(--ink-3); padding: 20px 20px 0; margin: 0; line-height: 1.6; }

/* 커뮤니티 */
.board-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 20px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 53px; background: #fff; z-index: 4; }
.board-tabs::-webkit-scrollbar { display: none; }
.btab { flex: none; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 500; }
.btab[aria-selected="true"] { background: var(--ink); color: #fff; }
.notice { display: flex; gap: 10px; margin: 16px 20px; padding: 14px; border-radius: 12px; background: #eef4fd; color: var(--ink); }
.notice svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.notice b { font-size: 14px; }
.notice p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.fab {
  position: fixed; z-index: 6; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  right: max(16px, calc(50% - 240px + 16px));
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(27,100,218,.3);
}
.fab svg { width: 17px; height: 17px; }

/* 하단 탭 */
.tabbar {
  position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
}
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar button[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* 바텀시트 = 호가창 */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
.sheet {
  position: fixed; z-index: 21; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 88vh;
  transform: translate(-50%, 100%); background: #fff; border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); transition: transform .22s ease-out;
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip, .sheet-head, .chips { flex: none; }
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: #d9dde3; margin: 8px auto 2px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 16px 4px 20px; }
.sheet-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.sheet-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.basis { color: var(--accent); font-weight: 700; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); border-radius: 10px; }
.icon-btn svg { width: 22px; height: 22px; }
.chips { display: flex; gap: 6px; padding: 6px 20px 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 13px; padding: 6px 13px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sheet-body { overflow-y: auto; flex: 1; margin-top: 10px; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.book { list-style: none; margin: 0; padding: 0; }
.offer { display: grid; grid-template-columns: 14px minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 11px 14px 11px 16px; }
.offer + .offer { border-top: 1px solid var(--line); }
.rank { font-family: var(--mono); font-size: 13px; color: var(--ink-3); text-align: center; }
.offer:first-child .rank { color: var(--down); font-weight: 700; }
.v-info { min-width: 0; display: block; text-align: left; padding: 2px 0; background: none; color: inherit; font: inherit; }
.v-name { display: flex; align-items: center; gap: 4px; min-width: 0; font-weight: 500; font-size: 14px; letter-spacing: -0.02em; }
.v-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.v-sub { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.badge.ok { flex: none; display: inline-flex; align-items: center; gap: 1px; background: #eaf6ee; color: #2f7d32; font-size: 10px; padding: 1px 4px 1px 2px; letter-spacing: -0.03em; }
.badge.ok svg { width: 10px; height: 10px; }
.badge { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; vertical-align: 1px; }
.badge.online { background: #eef4fd; color: var(--accent); }
.badge.store { background: #eaf6ee; color: #2f7d32; }
.o-price { font-size: 14.5px; font-weight: 700; text-align: right; }
.o-gap { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.talk { display: inline-flex; align-items: center; gap: 4px; background: #fee500; color: #191919; font-size: 13px; font-weight: 700; padding: 9px 12px; border-radius: 10px; white-space: nowrap; text-decoration: none; }
.talk svg { width: 14px; height: 14px; }
.sheet-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; padding: 12px 20px; font-size: 12px; color: var(--ink-2); background: var(--bg-2); }
.sheet-note svg { width: 15px; height: 15px; color: #2f7d32; }
.stories { padding: 6px 0 16px; }
.stories h4 { margin: 0; padding: 12px 20px 4px; font-size: 15px; }

/* 전체 화면(입점사 창·글 상세) */
.page {
  position: fixed; z-index: 40; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; overflow-y: auto; overscroll-behavior: contain;
}
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px 0 8px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.topbar-title { font-size: 16px; font-weight: 700; }
.page-body { padding-bottom: 28px; }
.page-body.with-cta { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }

/* 입점사 창 */
.vprofile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 20px 8px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; color: #b0b8c1; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.avatar svg { width: 38px; height: 38px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.vprofile h2 { margin: 12px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.vbadges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.vb { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.vb svg { width: 13px; height: 13px; }
.vb.ok { background: #eaf6ee; color: #2f7d32; }
.vb.online { background: #eef4fd; color: var(--accent); }
.vb.store { background: #fff6e0; color: #a86400; }
.vb.plain { background: var(--bg-2); color: var(--ink-2); font-weight: 500; }
.card { margin: 16px 20px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }
.card-head h3 { margin: 0; font-size: 16px; }
.asof { font-size: 11.5px; color: var(--ink-3); }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th, .ptable td { padding: 9px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.ptable thead th { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.ptable th:first-child { text-align: left; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ptable thead th:first-child { color: var(--ink-3); }
.ptable td { color: var(--ink-3); }
.ptable td.min { color: var(--ink); font-weight: 700; }
.ptable tr.hl th, .ptable tr.hl td { background: #f3f7fe; }
.ptable tbody tr:last-child th, .ptable tbody tr:last-child td { border-bottom: 0; }
.card-note { margin: 8px 0 0; font-size: 11.5px; color: var(--ink-3); }
.map-card { padding: 0; overflow: hidden; }
.map-ph {
  height: 128px; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--ink-3); font-size: 11.5px;
  background-color: #eef1f4;
  background-image: linear-gradient(#e3e7ec 1px, transparent 1px), linear-gradient(90deg, #e3e7ec 1px, transparent 1px);
  background-size: 22px 22px;
}
.map-ph svg { width: 32px; height: 32px; }
.map-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.addr { margin: 0; font-size: 13.5px; color: var(--ink); }
.map-link { flex: none; font-size: 13px; font-weight: 700; color: #03a94d; text-decoration: none; border: 1px solid #c6ead5; padding: 6px 10px; border-radius: 8px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 20px 0; }
.doc-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 0; border-radius: 12px; background: var(--bg-2); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.doc-btn svg { width: 18px; height: 18px; color: var(--ink-2); }
.cta {
  position: fixed; z-index: 41; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.cta a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.cta svg { width: 19px; height: 19px; }
.cta-call { background: var(--bg-2); color: var(--ink); }
.cta-talk { background: var(--kakao); color: #191919; grid-column: 2; grid-row: 2; }
.cta-call { grid-column: 1; grid-row: 2; }
.cta-hint { grid-column: 2; grid-row: 1; margin: 0 0 -3px; font-size: 11.5px; color: var(--ink-2); text-align: center; }

/* 사업자등록증 모달 */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 18px; width: 100%; max-width: 400px; max-height: 88vh; overflow: auto; padding: 6px 14px 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 4px 4px; font-size: 15px; }
.modal-box img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.modal-note { margin: 10px 2px 0; font-size: 12px; color: var(--ink-3); }

/* 글 상세 */
.pdetail { padding: 18px 20px 8px; }
.pd-head { display: flex; gap: 6px; align-items: center; }
.pdetail h2 { margin: 10px 0 6px; font-size: 19px; line-height: 1.4; }
.review-card { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; border-radius: 14px; background: #f3f7fe; box-shadow: inset 0 0 0 1px #dfe9fb; }
.review-card div { min-width: 0; }
.review-card dt { font-size: 11.5px; color: var(--ink-3); }
.review-card dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; }
.rc-note { grid-column: 1 / -1; margin: 0; font-size: 11px; color: var(--ink-3); }
.pd-body { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.vote-wrap { display: flex; justify-content: center; margin: 22px 0 6px; }
.vote { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid #d9dde3; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.vote svg { width: 18px; height: 18px; }
.vote[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #eef4fd; }
.comments { border-top: 8px solid var(--bg-2); padding: 14px 20px 0; }
.comments h3 { margin: 0 0 4px; font-size: 15px; }
.comments ul { list-style: none; margin: 0; padding: 0; }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.c-meta b { color: var(--ink); font-weight: 700; font-size: 13px; }
.c-like { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; }
.c-like svg { width: 13px; height: 13px; }
.comments p { margin: 4px 0 0; font-size: 14px; }
.comment-input { display: block; width: 100%; margin: 14px 0 0; padding: 13px 14px; border-radius: 12px; background: var(--bg-2); color: var(--ink-3); font-size: 13.5px; text-align: left; }

/* 토스트 */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + 18px); transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px; background: #191f28; color: #fff; border-radius: 14px;
  padding: 12px 14px 12px 16px; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.toast .t-act { color: var(--kakao); font-weight: 700; white-space: nowrap; }

@media (min-width: 481px) { .app { box-shadow: 0 0 0 1px var(--line); } }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
body.has-cta .toast { bottom: calc(104px + env(safe-area-inset-bottom)); }
.hot-list { list-style: none; margin: 0; padding: 0; }
.o-gap.ko { font-family: var(--font); }
.ptable { font-size: 12.5px; letter-spacing: -0.03em; }
.ptable th, .ptable td { padding: 9px 2px; }
.ptable td + td { padding-left: 6px; }

/* v2c: 번이·기변 두 줄 */
.o-dual { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.o-dual span { display: flex; align-items: baseline; gap: 3px; color: var(--ink-3); }
.o-dual i, .ptable .pl i { font-style: normal; font-family: var(--font); font-size: 10.5px; color: var(--ink-3); font-weight: 500; }
.o-dual b { font-size: 13px; font-weight: 500; letter-spacing: -0.02em; }
.o-dual span.min b { color: var(--ink); font-weight: 700; }
.o-dual span:first-child b { color: var(--ink); }
.ptable td { vertical-align: middle; }
.ptable .pl { display: flex; justify-content: flex-end; align-items: baseline; gap: 3px; line-height: 1.45; }
.ptable .pl b { font-family: var(--mono); font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.ptable .pl.min b { color: var(--ink); font-weight: 700; }
.card-ask { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: 12.5px; color: var(--ink-2); text-align: center; }

/* v2e: LIVE 배지 — 점만 은은하게 깜빡임, 숫자는 움직이지 않음 */
.sec-title { display: flex; align-items: center; gap: 7px; }
.live { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--up); background: #fdeeee; padding: 2px 6px 2px 5px; border-radius: 5px; line-height: 1.3; }
.live[hidden] { display: none; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); animation: live-blink 2.4s ease-in-out infinite; }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
#asofLabel { font-size: 11.5px; letter-spacing: -0.01em; }
/* 입점사별 가격 수정 시각 · 갱신 지연 */
.o-time { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); letter-spacing: -0.02em; text-align: right; }
.o-dual .o-time { margin-top: 1px; }
.o-time.stale { color: #b0b8c1; }
.badge.stale, .vb.stale { background: #eceef1; color: #6b7684; }
.badge.stale { font-size: 10px; padding: 1px 4px; }
.asof b { font-weight: 500; color: var(--ink-2); }
/* 바탕화면 추가 버튼 */
.install-row { display: flex; justify-content: flex-end; padding: 10px 20px 0; }
.install-row[hidden] { display: none; }
.install-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); background: #eef4fd; padding: 5px 10px 5px 8px; border-radius: 999px; }
.install-btn svg { width: 14px; height: 14px; }
.install-row + .sidecar { margin-top: 8px; }
/* 앱 안 브라우저 띠 */
.inapp-bar { display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 16px; background: #191f28; color: #fff; font-size: 12.5px; }
.inapp-bar[hidden] { display: none; }
.ib-text { flex: 1; min-width: 0; line-height: 1.35; word-break: keep-all; }
.ib-open { flex: none; font-size: 12px; font-weight: 700; color: #191f28; background: #fff; padding: 5px 10px; border-radius: 999px; text-decoration: none; }
.ib-close { flex: none; width: 30px; height: 30px; display: grid; place-items: center; color: #b0b8c1; }
.ib-close svg { width: 16px; height: 16px; }
/* 안내 시트 (아래에서 올라오는 모양) */
.modal.guide { place-items: end center; padding: 0; }
.guide-box { max-width: 480px; border-radius: 20px 20px 0 0; padding: 8px 18px calc(16px + env(safe-area-inset-bottom)); }
.g-pic { display: block; width: 100%; max-width: 320px; margin: 6px auto 4px; }
.g-steps { margin: 10px 0 0; padding: 0 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.g-steps li + li { margin-top: 6px; }
.g-steps b { color: var(--ink); }
.g-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; vertical-align: -5px; color: var(--accent); }
.g-ic svg { width: 18px; height: 18px; }
.g-ok { display: block; width: 100%; margin-top: 16px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }

/* ===== v2f ===== */
/* 헤더 동네 버튼 */
.hdr-right { display: flex; align-items: center; gap: 6px; }
.region-btn { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); padding: 6px 9px 6px 6px; border-radius: 10px; max-width: 96px; }
.region-btn svg { width: 15px; height: 15px; flex: none; }
.region-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .sample-badge { white-space: nowrap; }
/* 첫 방문 소개 */
.intro[hidden] { display: none; }
.intro-card { position: relative; margin: 12px 20px 0; padding: 14px 44px 14px 16px; border-radius: var(--radius); background: #eef4fd; color: var(--ink); }
.intro-title { display: block; font-size: 15.5px; font-weight: 800; color: var(--accent); }
.intro-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.intro-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-3); }
.intro-close svg { width: 18px; height: 18px; }
/* 용어 풀이 */
.term { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: currentColor; cursor: help; }
.badge.term, .vb.term { text-decoration: underline dotted; text-underline-offset: 2px; }
.term-tip { position: fixed; z-index: 80; padding: 10px 12px; border-radius: 12px; background: #191f28; color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.term-tip[hidden] { display: none; }
.term-tip b { display: block; font-size: 12px; color: var(--kakao); margin-bottom: 2px; }
.term-tip::before { content: ''; position: absolute; top: -6px; left: calc(var(--arrow-x, 50%) - 6px); border: 6px solid transparent; border-top: 0; border-bottom-color: #191f28; }
.term-tip.above::before { top: auto; bottom: -6px; border-bottom: 0; border-top: 6px solid #191f28; }
/* 사이드카 v2f: 운영자 발동 카드 */
.sc-card { width: 262px; gap: 4px; }
.sc-card.k-store { background: #e2521d; box-shadow: 0 4px 12px rgba(226,82,29,.25); }
.sc-card.k-all { background: #b4232a; box-shadow: 0 4px 12px rgba(180,35,42,.28); }
.sc-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.sc-time { font-size: 11px; opacity: .85; }
.sc-name { font-size: 16.5px; margin-top: 2px; }
.sc-msg { font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.sc-now { font-size: 12.5px; }
.sc-easy { margin-top: 2px; font-size: 11.5px; background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 6px; }
.sc-easy-line { margin: 4px 16px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.sidecar.on .sc-title .term { text-decoration-color: rgba(217,47,47,.6); }
/* 호가창 택배 / 내 근처 매장 */
.ch-tabs { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 20px 2px; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.ch-tab { height: 38px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.ch-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.km { color: var(--accent); font-weight: 700; font-size: 11.5px; }
.near-head { display: flex; align-items: center; gap: 6px; padding: 10px 16px 6px 18px; font-size: 12.5px; color: var(--ink-2); }
.near-head svg { width: 15px; height: 15px; flex: none; }
.near-head span { flex: 1; min-width: 0; }
.mini-btn { flex: none; font-size: 12.5px; font-weight: 700; color: var(--accent); background: #eef4fd; padding: 6px 10px; border-radius: 8px; }
.near-empty, .q-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 20px; }
.near-empty p { margin: 0; }
.sheet-note span { line-height: 1.5; }
/* 동네 설정 시트 */
.rg-desc { margin: 2px 2px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.rg-sido { display: flex; gap: 6px; }
.rg-gu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rg-btn { height: 46px; border-radius: 12px; background: var(--bg-2); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.rg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.rg-note { margin: 12px 2px 0; font-size: 11.5px; color: var(--ink-3); }
.g-ok.ghost { background: var(--bg-2); color: var(--ink-2); margin-top: 12px; }
/* 입점사 창: 사진 1장 · 운영 기간 · 신뢰 지표 */
.vphoto { width: 100%; height: 132px; border-radius: var(--radius); background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #9aa4b0; font-size: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.vphoto svg { width: 40px; height: 40px; }
.vphoto img { width: 100%; height: 100%; object-fit: cover; }
.vprofile { padding-top: 16px; }
.vsince { margin: -2px 0 10px; font-size: 13px; color: var(--ink-2); }
.trust { margin: 16px 20px 0; }
.trust h3 { margin: 0 0 8px; font-size: 15px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 14px; background: var(--bg-2); min-width: 0; }
.tr-k { font-size: 11.5px; color: var(--ink-3); }
.tr-v { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.tr-s { font-size: 10.5px; color: var(--ink-3); line-height: 1.35; }
/* 개통후기: 개통한 곳 */
.rc-wide { grid-column: 1 / -1; }
.rc-vendor { font-size: 14.5px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
/* 동네 인증 배지 */
.au { display: inline-flex; align-items: center; gap: 4px; }
.loc-badge { font-size: 10.5px; font-weight: 700; color: #2f7d32; background: #eaf6ee; padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.c-meta .loc-badge { margin-left: -4px; }
/* 커뮤니티 규칙 */
.rules { margin: 12px 20px 0; border-radius: 14px; background: #fff8e6; color: var(--ink); }
.rules summary { list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; cursor: pointer; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '펼치기'; margin-left: auto; font-size: 12px; color: #a86400; font-weight: 700; }
.rules[open] summary::after { content: '접기'; }
.rules summary b { font-size: 14.5px; }
.rules summary span { font-size: 12px; color: var(--ink-3); }
.rules ol { margin: 0; padding: 0 16px 14px 34px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
/* 글쓰기 */
.w-rule { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 12px 20px; background: #fff8e6; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.w-rule svg { width: 16px; height: 16px; flex: none; color: #a86400; margin-top: 1px; }
.w-gate { margin: 16px 20px 0; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.w-gate h3 { margin: 0; font-size: 16px; }
.w-free { margin: 4px 0 0; font-size: 13px; color: #2f7d32; font-weight: 700; }
.w-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: w; }
.w-steps li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg-2); counter-increment: w; }
.w-steps li::before { content: counter(w); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.w-steps li div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-steps b { font-size: 14px; }
.w-steps span { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.w-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 8px 10px; border-radius: 9px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d9dde3; }
.w-btn.kakao { background: var(--kakao); color: #191919; box-shadow: none; }
.w-btn svg { width: 14px; height: 14px; }
.w-new { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fdeeee; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.w-new b { color: var(--up); }
.w-form { display: grid; gap: 8px; margin: 16px 20px 0; opacity: .55; }
.w-form select, .w-form input, .w-form textarea { font: inherit; font-size: 14px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-3); resize: none; }
.w-submit { height: 46px; border-radius: 12px; background: var(--ink-3); color: #fff; font-weight: 700; }
.brand-name, .login-btn { white-space: nowrap; }
.brand { gap: 6px; min-width: 0; }
.m-sub { display: flex; flex-direction: column; white-space: normal; line-height: 1.35; }
.m-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-near { color: var(--ink-2); }
body { word-break: keep-all; overflow-wrap: break-word; }

/* v2g: 보증금 예치 배지 · 페이백 안내 */
.badge.deposit, .vb.deposit { background: #e3f5f1; color: #0f7b6c; }
.badge.deposit { font-size: 10px; padding: 1px 4px; white-space: nowrap; }
.v-payback { margin: 14px 20px 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }
