/* 엑스테라 — 아스팔트 위 노란 차선. 진한 숲색 잉크 + 신호 노랑 포인트 */
:root {
  --bg: #f4f3ee;
  --panel: #ffffff;
  --panel-2: #eceae2;
  --ink: #16302a;
  --fg: #1d2421;
  --muted: #66706b;
  --line: #dcd9cf;
  --signal: #f2b632;
  --signal-ink: #3a2a00;
  --route: #1f6f5c;
  --route-fast: #0b3d32;
  --route-slow: #e2a33a;
  --danger: #b4412f;
  --ok: #2c7a4b;
  --shadow: 0 1px 2px rgba(22, 48, 42, .06), 0 4px 16px rgba(22, 48, 42, .06);
  --radius: 14px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101614;
    --panel: #18201d;
    --panel-2: #212b27;
    --ink: #0b1210;
    --fg: #e8ebe6;
    --muted: #9aa49f;
    --line: #2c3833;
    --signal: #f2b632;
    --route: #4fc3a1;
    --route-fast: #8ff0d1;
    --route-slow: #f2b632;
    --danger: #f08a73;
    --ok: #6fd39a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 1000px) { body { padding-bottom: 32px; } }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 24px;
  background: var(--ink); color: #f4f3ee;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav { display: none; gap: 4px; margin-left: auto; }
@media (min-width: 1000px) { .nav:not([hidden]) { display: flex; } }
.nav a { text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 14px; color: #cfd8d3; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: var(--signal-ink); background: var(--signal); font-weight: 700; }

.demo-banner { background: var(--signal); color: var(--signal-ink); font-size: 13px; padding: 8px max(16px, env(safe-area-inset-left, 0px)); text-align: center; }

/* 하단 탭바 (휴대폰) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
}
@media (min-width: 1000px) { .tabbar { display: none !important; } }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 11px; color: var(--muted); padding: 4px 0; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--fg); font-weight: 700; }
.tabbar .tab-up svg { background: var(--signal); color: var(--signal-ink); border-radius: 12px; width: 40px; height: 30px; padding: 4px 9px; }

/* 레이아웃 */
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.narrow { max-width: 440px; margin: 6vh auto 0; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 4px; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0; font-size: 14px; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h .note { color: var(--muted); font-size: 13px; }

/* 폼 */
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input.i, select.i, textarea.i {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); font-size: 15px;
}
input.i:focus, select.i:focus, textarea.i:focus { outline: 2px solid var(--route); outline-offset: 0; border-color: transparent; }
textarea.i { min-height: 72px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--panel-2); }
.btn:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; }
.btn.primary { background: var(--ink); color: #f4f3ee; border-color: var(--ink); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.signal { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.err { color: var(--danger); font-size: 14px; min-height: 1.2em; margin: 0; }
.linkish { background: none; border: 0; color: var(--route); padding: 0; cursor: pointer; text-decoration: underline; font-size: 14px; }

.auth-hero { text-align: center; margin-bottom: 18px; }
.auth-hero img { width: 88px; height: 88px; border-radius: 50%; }
.auth-hero h1 { font-size: 26px; margin-top: 10px; }

/* 피드 */
.feed { display: grid; gap: 14px; }
.act {
  display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 14px;
  text-decoration: none; color: inherit;
}
.act:hover { border-color: var(--route); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--signal); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.who .meta { font-size: 13px; color: var(--muted); line-height: 1.35; }
.who .meta b { color: var(--fg); font-size: 14px; }
.act h3 { margin: 10px 0 8px; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.bike-tag { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); vertical-align: 1px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); color: var(--fg); vertical-align: 2px; margin-right: 6px; }
.chip.ride { background: #dbeee7; color: #1b5a49; }
.chip.hike { background: #f3e6c8; color: #6a4a07; }
@media (prefers-color-scheme: dark) { .chip.ride { background: #1f3d35; color: #9fe3cd; } .chip.hike { background: #3d3320; color: #f2d48a; } }
.quick { display: flex; gap: 18px; flex-wrap: wrap; }
.quick div { display: grid; }
.quick span { font-size: 12px; color: var(--muted); }
.quick b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.quick b small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.thumb { width: 132px; height: 132px; border-radius: 12px; background: var(--panel-2); display: block; }
.thumb path { fill: none; stroke: var(--route); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thumb circle.s { fill: var(--ok); } .thumb circle.e { fill: var(--fg); }
.social { display: flex; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .act { grid-template-columns: minmax(0, 1fr) 88px; } .thumb { width: 88px; height: 88px; } .quick { gap: 12px; } .quick b { font-size: 16px; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty b { color: var(--fg); display: block; font-size: 17px; margin-bottom: 6px; }

/* 활동 상세 */
.detail-head { display: grid; gap: 12px; }
.place { font-size: 14px; color: var(--muted); }
.place b { color: var(--fg); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 12px 14px; display: grid; gap: 2px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stat b { white-space: nowrap; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-weight: 700; }
.stat b small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.stat.key b { color: var(--route); }
.remark { background: var(--ink); color: #e9efe9; border-radius: var(--radius); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.remark .tag { background: var(--signal); color: var(--signal-ink); font-weight: 800; font-size: 12px; border-radius: 8px; padding: 3px 8px; height: fit-content; white-space: nowrap; }
.remark p { margin: 0; line-height: 1.7; }
.note-box { border-left: 3px solid var(--signal); padding: 4px 0 4px 12px; white-space: pre-wrap; }

.map { height: 460px; border-radius: 12px; overflow: hidden; background: var(--panel-2); z-index: 0; }
@media (max-width: 600px) { .map { height: 360px; } }
.map-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 6px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--ink); color: #f4f3ee; }
.legend { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.legend i { display: inline-block; width: 70px; height: 6px; border-radius: 3px; }
.pin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin.s { background: #2c7a4b; color: #fff; }
.pin.e { background: #16302a; color: #f2b632; }
.pin.stop { background: #fff; color: #16302a; border-color: #16302a; width: 20px; height: 20px; font-size: 10px; }
.pin.climb { background: #f2b632; color: #3a2a00; border-radius: 6px; width: auto; height: auto; padding: 1px 6px; white-space: nowrap; font-size: 11px; }
.pin.km { background: rgba(22,48,42,.85); color: #fff; border: 0; border-radius: 6px; width: auto; height: auto; padding: 0 4px; font-size: 10px; font-weight: 600; }
.leaflet-container { font-family: var(--font); }

.chart-box { position: relative; }
.chart-box svg { display: block; width: 100%; }
.chart-box .axis { fill: var(--muted); font-size: 11px; }
.chart-box .grid { stroke: var(--line); }
.tip {
  position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px 10px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; z-index: 5;
}
.tip .t { color: var(--muted); }

.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.t th { text-align: right; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t tr.hl td { background: color-mix(in srgb, var(--signal) 18%, transparent); }
.bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--route); vertical-align: 1px; margin-right: 6px; }
.climb-list { display: grid; gap: 10px; }
.climb { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.climb .g { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--route); min-width: 54px; }
.climb .d { font-size: 13px; color: var(--muted); }
.lvl { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); }
.lvl.l3 { background: #f6d4c9; color: #7a2412; } .lvl.l2 { background: #f6e3b8; color: #6a4a07; }
@media (prefers-color-scheme: dark) { .lvl.l3 { background: #4a2a22; color: #f6b8a6; } .lvl.l2 { background: #463a1d; color: #f2d48a; } }

.cheer { font-weight: 700; }
.cheer.on { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.comments { display: grid; gap: 12px; }
.cmt { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.cmt .avatar { width: 30px; height: 30px; font-size: 13px; }
.cmt .body { background: var(--panel-2); border-radius: 12px; padding: 8px 12px; white-space: pre-wrap; word-break: break-word; }
.cmt .by { font-size: 12px; color: var(--muted); margin-bottom: 2px; display: flex; gap: 8px; }

/* 업로드 */
.drop {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 16px; text-align: center; cursor: pointer; background: var(--panel);
}
.drop.over { border-color: var(--route); background: color-mix(in srgb, var(--route) 8%, var(--panel)); }
.drop b { display: block; font-size: 17px; margin-bottom: 4px; }
.drop svg { width: 40px; height: 40px; fill: none; stroke: var(--route); stroke-width: 1.6; margin-bottom: 8px; }
.drop .drop-tip { display: block; margin-top: 8px; }
/* 여러 파일 올리기 목록 */
.bt-list { display: grid; max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.bt-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.bt-row:first-child { border-top: 0; }
.bt-row.off { opacity: .55; }
.bt-row input[type=checkbox] { width: 18px; height: 18px; }
.bt-row input.i { padding: 7px 10px; font-size: 14px; }
.bt-sub { display: flex; gap: 8px; align-items: center; margin-top: 6px; min-width: 0; }
.bt-sub select.i { width: auto; padding: 4px 8px; font-size: 13px; }
.bt-sub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-state { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.bt-state.ready { color: var(--route); }
.bt-state.sending, .bt-state.reading { color: var(--signal-ink); background: var(--signal); padding: 2px 8px; border-radius: 999px; }
.bt-state.done, .bt-state.done a { color: var(--ok); }
.bt-state.bad, .bt-state.fail { color: var(--danger); }
.form-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

/* 내 기록 */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.total { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.total span { font-size: 12px; color: var(--muted); }
.total b { display: block; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total b small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }

.member { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.member:last-child { border-bottom: 0; }
.member .m2 { font-size: 13px; color: var(--muted); }
.member .km { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.invite-link { display: flex; gap: 8px; align-items: stretch; }
.invite-link input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.share-btns .btn { white-space: nowrap; }
.btn.kakao { background: #fee500; color: #191600; border-color: #fee500; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; font-weight: 700; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 2000;
  background: var(--ink); color: #f4f3ee; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
@media (min-width: 1000px) { .toast { bottom: 28px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
@media (max-width: 520px) { .remark { grid-template-columns: 1fr; gap: 8px; } }

/* 사진 */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ph-grid.big { grid-template-columns: repeat(auto-fill, minmax(min(31%, 120px), 1fr)); }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel-2); border: 0; padding: 0; cursor: pointer; display: block; max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }
.ph-badge { position: absolute; left: 4px; bottom: 4px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(22,48,42,.85); color: #fff; font-variant-numeric: tabular-nums; }
.ph-badge.no { background: rgba(120,120,120,.85); }
.ph-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; }
.pin-photo { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); background: #ddd; cursor: pointer; }
.pin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8,12,10,.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; min-width: 0; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #e8ebe6; font-size: 13px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.lb-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lightbox .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.lightbox .btn.danger { color: #ffb4a3; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-close, .lb-prev, .lb-next { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; cursor: pointer; z-index: 2; }
@media (max-width: 600px) { .lb-prev, .lb-next { position: absolute; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } .lb-prev { left: 12px; } .lb-next { right: 12px; } .lightbox { grid-template-columns: 1fr; } }

/* 전국 지도 */
.atlas-map { height: min(72vh, 720px); }
@media (max-width: 600px) { .atlas-map { height: 62vh; } }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip-btn.member { color: var(--muted); opacity: .6; }
.chip-btn.member.on { color: var(--fg); opacity: 1; border-color: var(--fg); font-weight: 600; }
.chip-btn i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.chip-btn small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.atlas-pop { line-height: 1.5; font-size: 13px; }
.atlas-pop a { color: #1f6f5c; font-weight: 700; }

/* 업데이트 3 ─ 앱 설치 · 알림 점 */
.install-btn { margin-left: auto; background: var(--signal); color: var(--signal-ink); border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
@media (min-width: 1000px) { .nav:not([hidden]) ~ .install-btn { margin-left: 8px; } }
.nav a, .tabbar a { position: relative; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0452b; margin-left: 4px; vertical-align: 6px; }
.tabbar .dot { position: absolute; top: 2px; left: calc(50% + 8px); margin: 0; }
.banner { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: color-mix(in srgb, var(--signal) 22%, var(--panel)); border: 1px solid color-mix(in srgb, var(--signal) 60%, var(--line)); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.banner .ic { font-size: 22px; }
.banner b { display: block; }
.banner .x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.steps { margin: 6px 0 0; padding-left: 20px; font-size: 13px; }
.steps li { margin: 2px 0; }

/* 사진 찍기 */
.cam-btns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.cam-big { display: grid; place-items: center; gap: 6px; padding: 26px 12px; border-radius: var(--radius); background: var(--ink); color: #f4f3ee; font-weight: 800; font-size: 18px; cursor: pointer; text-align: center; word-break: keep-all; }
.cam-big svg { width: 44px; height: 44px; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cam-big.alt { background: var(--panel); color: var(--fg); border: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.cam-big.alt svg { stroke: var(--route); width: 32px; height: 32px; }
.cam-big small { font-weight: 500; font-size: 12px; opacity: .8; }
.gps-line { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.gps-line i { width: 9px; height: 9px; border-radius: 50%; background: #999; display: inline-block; }
.gps-line i.ok { background: var(--ok); } .gps-line i.weak { background: var(--signal); }
.day-h { font-size: 14px; font-weight: 700; margin: 4px 0 -4px; color: var(--muted); }

/* 새 회원 */
.mem-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mem-card:last-child { border-bottom: 0; }
.mem-card .m2 { font-size: 13px; color: var(--muted); line-height: 1.5; }
.mem-card .first { font-size: 13px; margin-top: 4px; }
.new-badge { display: inline-block; background: #e0452b; color: #fff; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; }

/* 저장 공간 */
.meter { display: grid; gap: 6px; }
.meter .bar-bg { height: 12px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.meter .bar-fg { height: 100%; border-radius: 6px; background: var(--route); }
.meter .bar-fg.warn { background: var(--signal); } .meter .bar-fg.over { background: var(--danger); }
.meter .lbl { display: flex; justify-content: space-between; font-size: 13px; }
.meter .lbl b { font-variant-numeric: tabular-nums; }
.notice { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--muted); background: var(--panel); }
.notice b { color: var(--fg); }

/* 전국 지도: 지명 검색 · 사진 */
.search { position: relative; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1100; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow: auto; }
.search-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.search-results button:last-child { border-bottom: 0; }
.search-results button:hover { background: var(--panel-2); }
.search-results small { display: block; color: var(--muted); font-size: 12px; }
.pin-photo.sm { width: 34px; height: 34px; border-width: 2px; border-radius: 8px; }
/* 안내 창 */
.modal-bg { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 12, 10, .55); display: grid; place-items: end center; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 600px) { .modal-bg { place-items: center; } }
.modal { width: 100%; max-width: 440px; }