/* 무설치 QR 스탬프 투어 v1.5 — 디자인 토큰 (ds/shared.jsx T 객체 기준) */
:root {
  --paper: oklch(0.985 0.004 85);
  --paper2: oklch(0.958 0.007 85);
  --paper3: oklch(0.935 0.007 85);
  --card: #fff;
  --ink: oklch(0.22 0.01 60);
  --ink2: oklch(0.38 0.01 60);
  --muted: oklch(0.55 0.01 60);
  --line: oklch(0.89 0.006 80);
  --stamp: oklch(0.57 0.19 28);
  --stamp-soft: oklch(0.95 0.03 28);
  --stamp-a18: oklch(0.57 0.19 28 / 0.18);
  --ok: oklch(0.57 0.12 155);
  --ok-soft: oklch(0.95 0.03 155);
  --warn: oklch(0.68 0.14 75);
  --warn-soft: oklch(0.96 0.04 75);
  --warn-ink: oklch(0.5 0.12 65);
  --kakao: #FEE500;
  --naver: #03C75A;
  --safe: oklch(0.6 0.15 250);
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ink2 { color: var(--ink2); }
.c-stamp { color: var(--stamp); }
.c-ok { color: var(--ok); }
.kicker { font-family: var(--mono); font-size: 11px; color: var(--stamp); letter-spacing: .08em; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ───────── 모바일 셸 (실기기 기준, 데스크톱에서는 430px 중앙 정렬) */
body.m { background: oklch(0.93 0.006 85); }
.phone { max-width: 430px; min-height: 100dvh; margin: 0 auto; background: var(--paper); position: relative; display: flex; flex-direction: column; overflow-x: hidden; }
.phone.bg-ink { background: var(--ink); color: #fff; }
.phone.bg-ok { background: var(--ok-soft); }
.phone.bg-stamp { background: var(--stamp-soft); }
.topbar { height: 52px; display: flex; align-items: center; padding: 0 12px; gap: 4px; flex-shrink: 0; }
.topbar .back, .topbar .close { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.topbar .title { flex: 1; font-weight: 700; font-size: 17px; }
.pad { padding: 0 20px; }

/* 버튼 */
.btn { height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 16px; padding: 0 18px; cursor: pointer; border: 0; width: 100%; text-align: center; }
.btn.sm { height: 34px; border-radius: 6px; font-size: 13px; padding: 0 14px; width: auto; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.stamp { background: var(--stamp); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost-dark { background: transparent; color: #fff; border: 1px solid oklch(0.4 0.01 60); }
.btn.kakao { background: var(--kakao); color: rgba(0,0,0,.85); }
.btn.naver { background: var(--naver); color: #fff; }
.btn[disabled], .btn.disabled { opacity: .4; pointer-events: none; }
.btn:active { transform: translateY(1px); }

/* 칩 */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip.neutral { background: var(--paper2); color: var(--ink2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.stamp { background: var(--stamp-soft); color: var(--stamp); }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* 진행률 */
.progress { position: relative; height: 6px; background: var(--line); border-radius: 6px; }
.progress > .fill { height: 100%; background: var(--stamp); border-radius: inherit; transition: width .4s ease; }
.progress > .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }

/* 도장 */
.stampmark { border-radius: 50%; border-style: solid; display: grid; place-items: center; position: relative; flex-shrink: 0; opacity: .92; }
.stampmark.faded { opacity: .18; }
.stampmark .inner { position: absolute; border-radius: 50%; border: 1px solid currentColor; }
.stampmark .lbl { text-align: center; line-height: 1.05; }
.stampmark .lbl b { display: block; font-weight: 800; letter-spacing: -0.04em; }
.stampmark .lbl small { display: block; font-family: var(--mono); margin-top: 2px; }
.stamp-empty { border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@keyframes stampIn { 0% { transform: scale(1.8) rotate(var(--rot)); opacity: 0; } 60% { transform: scale(.94) rotate(var(--rot)); opacity: 1; } 100% { transform: scale(1) rotate(var(--rot)); opacity: .92; } }
.stamp-in { animation: stampIn .55s cubic-bezier(.2,.9,.3,1.2) both; }

/* 네이버 연결 */
.naverlink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; }
.nbadge { width: 16px; height: 16px; border-radius: 3px; background: var(--naver); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.nbadge.lg { width: 26px; height: 26px; border-radius: 6px; font-size: 13px; }
.nbadge.xl { width: 30px; height: 30px; border-radius: 6px; font-size: 13px; }
.arrow-out { color: var(--muted); }

/* 자리표시 */
.imgph { background: repeating-linear-gradient(135deg, var(--paper2) 0 8px, var(--paper3) 8px 16px); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.mapbox { position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, oklch(0.94 0.008 120) 0 12px, oklch(0.925 0.01 120) 12px 24px); }
.mapbox .maplabel { position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); z-index: 1; }
.mapbox svg.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapbox .pin { position: absolute; transform: translate(-50%,-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--card); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.15); z-index: 2; cursor: pointer; }
.mapbox .pin.done { background: var(--stamp); color: #fff; border-color: var(--stamp); }
.mapbox .pin.active { width: 30px; height: 30px; box-shadow: 0 0 0 6px var(--stamp-a18); }
.mapbox .naver-real { position: absolute; inset: 0; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }

/* ───────── U1 로그인 */
.login { flex: 1; padding: 40px 28px 0; display: flex; flex-direction: column; }
.login h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; margin: 10px 0 0; }
.login .lead { font-size: 15px; color: var(--ink2); margin-top: 12px; line-height: 1.6; }
.login .deco { position: relative; height: 220px; margin-top: 36px; }
.login .entry { background: var(--stamp-soft); color: var(--stamp); font-size: 13px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 500; }
.login .fine { font-size: 12px; color: var(--muted); text-align: center; margin: 18px 0 32px; line-height: 1.6; }
.login .fine u { text-underline-offset: 2px; }

/* ───────── U2 코스 목록 */
.greet { padding: 8px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--paper2); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.h-page { padding: 6px 20px 18px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.course-list { padding: 0 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.course-card { display: block; background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.course-card .body { padding: 14px 16px 16px; }
.course-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.course-card .name { font-weight: 700; font-size: 17px; }
.course-card .meta { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.course-card .row2 { display: flex; align-items: center; gap: 10px; }
.course-card .count { font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* ───────── U3 코스 지도 */
.mapscreen { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.mapscreen > .mapbox { position: absolute; inset: 0; }
.floatbar { position: relative; z-index: 5; margin: 10px 14px 4px; height: 48px; background: var(--card); border-radius: 12px; display: flex; align-items: center; padding: 0 6px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.floatbar .back { width: 40px; height: 44px; display: grid; place-items: center; font-size: 22px; }
.floatbar .t { flex: 1; font-weight: 700; }
.floatbar .notice-link { font-size: 13px; font-weight: 600; margin-right: 10px; position: relative; padding: 10px 4px; }
.floatbar .notice-link .dot { position: absolute; top: 8px; right: -3px; width: 6px; height: 6px; border-radius: 3px; background: var(--stamp); }
.urgent-banner { position: relative; z-index: 5; margin: 8px 14px 0; padding: 10px 14px; background: var(--stamp); color: #fff; border-radius: 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.urgent-banner.pinned { background: var(--ink); }
.urgent-banner b { font-family: var(--mono); font-size: 11px; }
.sheet { position: relative; z-index: 5; background: var(--card); border-radius: 20px 20px 0 0; padding: 10px 20px 28px; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet .stat { display: flex; align-items: baseline; justify-content: space-between; }
.nextcard { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--ink); border-radius: 12px; }
.nextcard .num { width: 36px; height: 36px; border-radius: 18px; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; flex-shrink: 0; }
.pchips { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pchips::-webkit-scrollbar { display: none; }
.pchip { flex-shrink: 0; font-size: 12px; padding: 6px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--ink2); font-weight: 500; }
.pchip.done { border-color: var(--stamp); color: var(--stamp); }
.pchip.sel { border-color: var(--ink); color: var(--ink); font-weight: 700; }

/* ───────── U3-1 거점 상세 · 네이버 목록 */
.nlist { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.nlist a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.nlist a + a { border-top: 1px solid var(--line); }

/* ───────── U3-2 공지 */
.notice-list { margin: 0 16px; background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.notice-item { display: block; padding: 16px; }
.notice-item + .notice-item { border-top: 1px solid var(--line); }
.notice-item.sel { background: var(--paper); }
.notice-item .t { font-size: 15.5px; font-weight: 650; line-height: 1.45; }
.notice-body { margin: 16px 16px 32px; padding: 18px; background: var(--card); border-radius: 14px; border: 1.5px solid var(--stamp); }
.notice-body .md { font-size: 14px; color: var(--ink2); line-height: 1.75; }
.md p { margin: 0 0 6px; }
.md ul { margin: 4px 0 6px; padding-left: 18px; }
.md img { max-width: 100%; border-radius: 8px; margin-top: 8px; }
.md a { color: var(--stamp); text-decoration: underline; }
.unread-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--stamp); display: inline-block; }

/* ───────── U4 위치 확인 */
.center-col { flex: 1; padding: 0 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.radar { position: relative; width: 240px; height: 240px; margin-top: 44px; display: grid; place-items: center; }
.radar .ring { position: absolute; border-radius: 50%; }
.radar .me { width: 18px; height: 18px; border-radius: 50%; background: var(--stamp); box-shadow: 0 0 0 8px oklch(0.57 0.19 28 / .2); transition: transform .6s ease; z-index: 1; }
.radar .rlabel { position: absolute; bottom: -6px; font-family: var(--mono); font-size: 10px; color: var(--muted); background: var(--paper); padding: 0 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.57 0.19 28 / .35); } 100% { box-shadow: 0 0 0 22px oklch(0.57 0.19 28 / 0); } }
.radar .me.searching { animation: pulse 1.3s ease-out infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .sweep { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, oklch(0.57 0.19 28 / .10) 360deg); animation: sweep 2.4s linear infinite; }
.foot-meta { width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); margin-bottom: 32px; }
.demo-panel { width: 100%; margin-top: 14px; padding: 12px; border: 1px dashed var(--warn); border-radius: 10px; background: var(--warn-soft); text-align: left; font-size: 12.5px; color: var(--warn-ink); }
.demo-panel .row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.demo-panel button { height: 32px; padding: 0 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }

/* ───────── U7 스탬프북 */
.stampgrid { margin: 20px 16px 0; padding: 22px 14px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); row-gap: 18px; }
.stampgrid .cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stampgrid .cap { font-size: 11.5px; text-align: center; line-height: 1.3; height: 30px; padding: 0 4px; }
.done-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--stamp-soft); border-radius: 12px; margin-bottom: 12px; }
.todo-box { padding: 14px 16px; background: var(--paper2); border-radius: 12px; margin-bottom: 12px; font-size: 14px; color: var(--ink2); }

/* ───────── U8 완주증 */
.cert-art { background: oklch(0.97 0.012 85); position: relative; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); overflow: hidden; flex-shrink: 0; }
.cert-art .slot { position: absolute; left: 0; right: 0; text-align: center; }
.cert-art.show-slots .slot { outline: 1px dashed var(--stamp); outline-offset: 2px; }

/* ───────── U9 현장 제시 */
.livecard { background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
.livecard .stripes { position: absolute; inset: -40px; background: repeating-linear-gradient(115deg, transparent 0 18px, oklch(1 0 0 / .05) 18px 36px); background-size: 76.4px 100%; animation: stripeMove 3s linear infinite; }
@keyframes stripeMove { from { background-position: 0 0; } to { background-position: 76.4px 0; } }
.livecard .content { position: relative; }
.livecard .qrbox { width: 128px; height: 128px; background: #fff; border-radius: 10px; padding: 8px; flex-shrink: 0; position: relative; }
.livecard .qrbox canvas, .livecard .qrbox img, .livecard .qrbox svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.livecard .lbl { font-size: 11.5px; opacity: .7; }
.livecard .ttl-bar { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.livecard .ttl-bar > i { display: block; height: 100%; background: var(--stamp); transition: width 1s linear; }
.livecard.revoked { background: oklch(0.35 0.01 60); }
.site-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.closed-box { padding: 12px 14px; border-radius: 12px; background: var(--stamp-soft); color: var(--stamp); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; line-height: 1.55; }

/* ───────── V1 확인 */
.verify-icon { width: 96px; height: 96px; border-radius: 48px; color: #fff; display: grid; place-items: center; font-size: 44px; font-weight: 800; margin-top: 70px; }
.verify-info { width: 100%; background: var(--card); border-radius: 16px; padding: 20px; margin-top: 34px; text-align: left; display: grid; grid-template-columns: 80px 1fr; row-gap: 10px; font-size: 14.5px; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 90vw; }

/* ───────── 관리자 CMS */
body.a { background: var(--paper); font-size: 14px; }
.admin { display: flex; min-height: 100vh; }
.admin aside { width: 220px; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; background: var(--card); position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.admin .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.admin .nav a { height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; margin-bottom: 2px; font-weight: 450; color: var(--ink2); }
.admin .nav a:hover { background: var(--paper); }
.admin .nav a.on { font-weight: 650; background: var(--paper2); color: var(--ink); }
.admin .nav a.on::before { content: ''; width: 4px; height: 4px; border-radius: 2px; background: var(--stamp); margin-right: 10px; }
.admin .me { padding: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.admin main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crumb { height: 56px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; font-size: 13px; color: var(--muted); background: var(--card); gap: 6px; flex-shrink: 0; }
.crumb b { color: var(--ink); }
.crumb .sep { margin: 0 2px; }
.ctabs { display: flex; gap: 2px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--card); flex-shrink: 0; }
.ctabs a { padding: 12px 14px; font-size: 13.5px; font-weight: 450; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctabs a.on { font-weight: 700; color: var(--ink); border-bottom-color: var(--stamp); }
.acontent { padding: 26px 28px; }
.a-h1 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin: 0; }
.a-h2 { font-size: 20px; font-weight: 750; margin: 0; }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.kpi { padding: 18px 20px; }
.kpi .v { font-size: 30px; font-weight: 750; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg a, .seg button { padding: 6px 12px; border-radius: 6px; font-size: 13px; background: var(--card); color: var(--ink2); border: 1px solid var(--line); }
.seg .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.link:hover td { background: oklch(0.99 0.004 85); cursor: pointer; }
.tnum { font-variant-numeric: tabular-nums; }
.field { margin-bottom: 16px; }
.field > label, .flabel { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.input { height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--card); font-size: 14px; width: 100%; outline: none; }
.input:focus { border-color: var(--ink); }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle .sw { width: 32px; height: 18px; border-radius: 9px; background: var(--line); position: relative; transition: background .15s; flex-shrink: 0; }
.toggle .sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 7px; background: #fff; transition: left .15s; }
.toggle input:checked + .sw { background: var(--ink); }
.toggle input:checked + .sw::after { left: 16px; }
.stepper { display: flex; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.stepper button { width: 34px; height: 38px; display: grid; place-items: center; font-size: 18px; }
.stepper .val { width: 44px; height: 38px; display: grid; place-items: center; font-size: 20px; font-weight: 750; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.levelpick { display: flex; gap: 6px; }
.levelpick label { flex: 1; }
.levelpick input { display: none; }
.levelpick span { height: 36px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink2); cursor: pointer; }
.levelpick input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.levelpick input[value=urgent]:checked + span { border-color: var(--stamp); background: var(--stamp); }
.pointrow { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line); cursor: pointer; }
.pointrow.sel { background: var(--stamp-soft); }
.pointrow.inactive { opacity: .5; }
.pointrow .num { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.pointrow .grip { color: var(--muted); font-size: 12px; display: flex; flex-direction: column; line-height: 1; }
.pointrow .grip button { font-size: 10px; color: var(--muted); padding: 1px 3px; }
.pointrow .grip button:hover { color: var(--ink); }
.popover { position: absolute; width: 280px; background: var(--card); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 16px; z-index: 10; }
.searchpanel { position: absolute; left: 16px; top: 16px; width: 320px; background: var(--card); border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.12); overflow: hidden; z-index: 9; }
.searchpanel .bar { padding: 0 12px; height: 40px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.searchpanel .bar input { border: 0; outline: none; flex: 1; font-weight: 600; background: transparent; }
.searchpanel .res { padding: 8px 12px; cursor: pointer; }
.searchpanel .res + .res { border-top: 1px solid var(--line); }
.searchpanel .res:hover { background: var(--stamp-soft); }
.zoomctl { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; background: var(--card); border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); z-index: 9; }
.zoomctl button { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; }
.zoomctl button + button { border-top: 1px solid var(--line); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--stamp) var(--p, 30%), var(--line) var(--p, 30%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 8px; background: #fff; border: 2px solid var(--stamp); cursor: pointer; }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 8px; background: #fff; border: 2px solid var(--stamp); cursor: pointer; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.check-row .ic { width: 18px; height: 18px; border-radius: 9px; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.25); display: grid; place-items: center; z-index: 50; }
.modal { width: 400px; background: var(--card); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.14); border: 1px solid var(--line); padding: 22px; }
.note-box { padding: 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; }
.dlist { display: grid; grid-template-columns: 110px 1fr; }
.dlist > * { padding: 11px 0; border-bottom: 1px solid var(--line); }
.bar-v { flex: 1; border-radius: 3px 3px 0 0; background: var(--ink); opacity: .82; position: relative; min-height: 2px; }
.bar-v.hl { background: var(--stamp); opacity: 1; }
.bar-v:hover::after { content: attr(data-v); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; color: var(--ink); }

/* 출력물 */
@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  .sheet-a4 { box-shadow: none !important; margin: 0 !important; }
}
.sheet-a4 { width: 794px; min-height: 1123px; background: #fff; padding: 36px 40px; display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 252px; gap: 12px; margin: 24px auto; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.qrlabel { border: 1px dashed var(--line); border-radius: 6px; padding: 12px 12px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* QR 주변 흰 여백(quiet zone 4모듈)은 SVG 안에 포함 — 테두리를 QR에 붙이지 않음 */
.qrlabel .qr { width: 134px; height: 134px; background: #fff; }
.qrlabel .qr svg, .qrlabel .qr img { width: 100%; height: 100%; display: block; }
.searchpanel .bar input { min-width: 0; }
.searchpanel .bar span { white-space: nowrap; flex-shrink: 0; }
input[type=date].input, input[type=datetime-local].input { min-width: 0; padding: 0 8px; }
/* 네이버 지도 v3 로드 시 자리표시 요소 숨김 (인증 실패 시 자동 복원) */
.mapbox.has-naver > .pin, .mapbox.has-naver > svg.route, .mapbox.has-naver > .maplabel { display: none; }
.mapbox .naver-real { z-index: 0; }
/* 네이버 SDK가 컨테이너 position을 relative로 덮어쓰므로 크기를 강제 */
.mapbox > .naver-real { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.mapbox.has-naver { background: #eef0ea; }
.mapscreen > .mapbox.has-naver > .naver-real { bottom: auto; }
