:root {
  --bg: #0b1020;
  --glass: rgba(13, 18, 36, .78);
  --line: rgba(255, 255, 255, .12);
  --text: #eef2ff;
  --muted: #9aa6c4;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --radius: 16px;
  --sheet-w: 390px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 14px/1.45 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; overflow: hidden; }
#map { position: fixed; inset: 0; }
button, .btn { font: inherit; color: inherit; }

/* 위쪽 띠 */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: calc(env(safe-area-inset-top) + 10px) 16px 8px; pointer-events: none; z-index: 5; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 6px; background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 16px; }
.brand .logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: 14px; }
.brand small { color: var(--muted); font-size: 11px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn { background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: rgba(255, 255, 255, .3); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #5b8cff); border-color: transparent; font-weight: 700; }
.btn.on { outline: 2px solid var(--accent2); }
@media (max-width: 600px) {
  .btn { padding: 7px 11px; }
  .btn:not(.primary) .t { display: none; }
  .brand small { display: none; }
}

/* 여정·날짜 고르기 */
.trips, .days { position: fixed; left: 0; right: 0; display: flex; gap: 6px; overflow-x: auto; padding: 0 16px;
  z-index: 4; scrollbar-width: none; }
.trips::-webkit-scrollbar, .days::-webkit-scrollbar { display: none; }
.trips { top: calc(env(safe-area-inset-top) + 58px); }
.days { top: calc(env(safe-area-inset-top) + 100px); }
.chip { flex: none; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.chip.on { background: #fff; color: #111827; font-weight: 700; }
.days .chip { font-size: 12px; padding: 5px 10px; }

/* 재생 중 자막 카드 */
.caption { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 142px);
  z-index: 6; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; max-width: min(92vw, 460px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.caption .t { color: var(--accent2); font-weight: 700; font-size: 12px; }
.caption .m { font-size: 15px; font-weight: 700; }
.caption .s { color: var(--muted); font-size: 12px; }

/* 아래 시트 (휴대폰) / 왼쪽 판 (PC) */
.sheet { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; max-height: var(--sheet-h, 34vh); overflow-y: auto;
  background: var(--glass); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0; padding: 6px 16px calc(env(safe-area-inset-bottom) + 16px); transition: max-height .3s; }
.sheet.dragging { transition: none; }
.grip { display: block; width: 44px; height: 5px; margin: 4px auto 8px; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, .3); cursor: pointer; }
@media (min-width: 900px) {
  .sheet { top: 150px; bottom: 16px; left: 16px; right: auto; width: var(--sheet-w); max-height: none;
    border: 1px solid var(--line); border-radius: var(--radius); }
  .grip { display: none; }
  .caption { left: calc(var(--sheet-w) + 32px + (100vw - var(--sheet-w) - 32px) / 2); }
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
h1 { font-size: 18px; margin: 0; }
#who { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.date { color: var(--muted); font-size: 11px; display: grid; gap: 2px; text-align: right; }
.date input { background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 3px 6px; font: inherit; color-scheme: dark; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.stat { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px; }
.stat b { display: block; font-size: 17px; }
.stat span { color: var(--muted); font-size: 11px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.legend i.dash { background-image: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 8px) !important; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline .dayhead { margin: 12px 0 4px; font-weight: 700; font-size: 13px; color: var(--accent2); }
.timeline .item { display: grid; grid-template-columns: 46px 26px 1fr auto; gap: 6px; align-items: start; padding: 7px 6px;
  border-radius: 10px; cursor: pointer; }
.timeline .item:hover, .timeline .item.on { background: rgba(255, 255, 255, .08); }
.timeline .time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline .ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
.timeline .what { font-size: 13px; }
.timeline .what small { display: block; color: var(--muted); font-size: 11px; }
.timeline .what .warn { color: #fbbf24; }
.timeline .what a { color: var(--accent2); }
.fine { color: var(--muted); font-size: 11px; margin: 12px 0 0; }

/* 지도 위 핀 */
.pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.pin .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px;
  background: #fff; border: 3px solid var(--c, #7c5cff); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.pin .lab { margin-top: 3px; background: rgba(11, 16, 32, .85); color: #fff; font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.pin .lab em { font-style: normal; color: #fbbf24; margin-left: 4px; }
.pin.hotel .dot { width: 36px; height: 36px; font-size: 18px; }
.pin.dim { opacity: .35; }
/* 멀리서 볼 땐 공항·숙소·정상만 이름표, 나머지는 작은 점 */
.far .pin:not(.hotel):not(.hut):not(.airport):not(.summit) .lab { display: none; }
.far .pin:not(.hotel):not(.hut):not(.airport):not(.summit) .dot { width: 20px; height: 20px; font-size: 10px; border-width: 2px; }

/* 내 사진 말풍선 */
/* 위치(position·transform)는 maplibre 가 정한다 — 여기서 덮어쓰면 말풍선이 흩어진다 */
.me { width: 58px; padding-bottom: 12px; pointer-events: none; z-index: 3; }
.me .bubble { width: 58px; height: 58px; border-radius: 50%; background: #fff center/cover no-repeat; border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--accent), 0 10px 24px rgba(0, 0, 0, .45); display: grid; place-items: center; font-size: 28px; }
.me::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 8px solid transparent; border-top: 12px solid #fff; }
.me .mode { position: absolute; right: -8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; background: var(--accent); border: 2px solid #fff; }
.me .say { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: #fff; color: #111827;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 10px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.me .say:empty { display: none; }
.radius-label { background: rgba(34, 211, 238, .16); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, .5);
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

.maplibregl-ctrl-attrib { font-size: 10px; }
@media (max-width: 899px) { .maplibregl-ctrl-bottom-right { bottom: var(--sheet-h, 34vh); } }

/* 비행 중: 비행기 위에 내 얼굴 말풍선 */
.me .plane { display: none; position: absolute; left: 50%; bottom: 0; width: 68px; height: 68px;
  fill: #fff; stroke: var(--accent); stroke-width: .9; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5));
  transform: translate(-50%, 50%) rotate(90deg); }
.me.flying { padding-bottom: 36px; }
.me.flying .plane { display: block; }
.me.flying .mode { display: none !important; }
.me.flying::after { bottom: 10px; }

/* 내 여정 만들기 */
.chip.make { background: linear-gradient(135deg, var(--accent), #5b8cff); border-color: transparent; font-weight: 700; color: #fff; }
.builder { position: fixed; inset: 0; z-index: 20; background: rgba(5, 8, 18, .55); backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: flex-end; }
.builder[hidden] { display: none; }
.builder .panel { width: min(100%, 600px); max-height: 92vh; overflow-y: auto; background: #10162b; border: 1px solid var(--line);
  border-radius: 20px 20px 0 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 20px); }
@media (min-width: 900px) { .builder { align-items: center; } .builder .panel { border-radius: 20px; } }
.builder h2 { margin: 0 0 4px; font-size: 18px; }
.builder .sub { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.builder fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; margin: 0 0 12px; display: grid; gap: 8px; min-width: 0; }
.builder legend { font-weight: 700; padding: 0 6px; }
.builder .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
@media (max-width: 600px) { #b-out-pick, #b-back-pick { grid-template-columns: 1fr; } }
.builder label.f { display: grid; gap: 3px; font-size: 11px; color: var(--muted); min-width: 0; }
.builder input, .builder select { width: 100%; background: rgba(255, 255, 255, .07); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 9px; font: inherit; color-scheme: dark; min-width: 0; }
.builder input:focus, .builder select:focus { outline: 2px solid var(--accent2); outline-offset: 1px; }
.pick { position: relative; display: grid; gap: 4px; min-width: 0; }
.pick .q { display: flex; gap: 6px; }
.pick .q button { flex: none; }
.pick .chosen { font-size: 12px; color: #a5f3fc; }
.pick .chosen:empty { display: none; }
.pick .res { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #0b1020; max-height: 220px; overflow-y: auto; }
.pick .res:empty { display: none; }
.pick .res li { padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.pick .res li small { display: block; color: var(--muted); font-size: 11px; }
.pick .res li:hover, .pick .res li:focus { background: rgba(255, 255, 255, .08); outline: none; }
.sbtn { background: rgba(255, 255, 255, .1); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; cursor: pointer; color: var(--text); font: inherit; }
.sbtn.go { background: linear-gradient(135deg, var(--accent), #5b8cff); border: 0; font-weight: 700; padding: 11px 16px; }
.sbtn.del { color: #fca5a5; }
.stopline { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; font-size: 13px; }
.stopline select { width: auto; }
.daybox { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 6px; }
.daybox:first-of-type { border-top: 0; padding-top: 0; }
.daybox b { font-size: 13px; color: var(--accent2); }
.builder .actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; position: sticky; bottom: -20px;
  background: #10162b; padding: 10px 0 0; }
.builder .msg { color: #fbbf24; font-size: 12px; min-height: 1em; }

/* 추천 장소 점(여정 밖) · 사진 카드 */
.pin.extra .dot { width: 24px; height: 24px; font-size: 12px; border-width: 2px; background: #e2e8f0; }
.pin.extra .lab { background: rgba(11, 16, 32, .7); font-weight: 500; }
.far .pin.extra .lab { display: none; }
.card-pop .maplibregl-popup-content { background: #10162b; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 0; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.card-pop .maplibregl-popup-tip { border-top-color: #10162b !important; border-bottom-color: #10162b !important; }
.card-pop .maplibregl-popup-close-button { color: #fff; font-size: 20px; right: 4px; top: 2px; text-shadow: 0 1px 4px #000; }
.pcard img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #1e293b; }
.pcard .b { padding: 10px 12px 12px; display: grid; gap: 4px; font-size: 12px; }
.pcard h3 { margin: 0; font-size: 15px; }
.pcard .k { color: var(--accent2); font-weight: 700; font-size: 11px; }
.pcard .m { color: var(--muted); }
.pcard ul { margin: 2px 0 0; padding-left: 16px; }
.pcard a { color: var(--accent2); }
.pcard .cr { color: var(--muted); font-size: 10px; }
@media (max-width: 440px) { .btn.primary .t { display: none; } .tools { flex-wrap: nowrap; } .brand small { display: none; } }
.cardbox { position: fixed; z-index: 7; left: 12px; right: 12px; bottom: calc(var(--sheet-h, 34vh) + 8px); max-height: 46vh; overflow-y: auto;
  background: #10162b; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.cardbox .pcard img { aspect-ratio: 16 / 9; }
.cardbox .x { position: absolute; right: 6px; top: 4px; z-index: 1; background: rgba(0,0,0,.5); color: #fff; border: 0; border-radius: 50%;
  width: 30px; height: 30px; font-size: 20px; line-height: 1; cursor: pointer; }

/* 안심 카드 */
.pcard .rules li { margin-bottom: 3px; }
.pcard .rules small, .pcard li small { color: var(--muted); }
.pcard .offs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pcard .off { background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .4); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.pcard .tel { display: inline-block; background: #ef4444; color: #fff !important; font-weight: 800; border-radius: 8px; padding: 2px 9px; margin: 2px 4px 2px 0; text-decoration: none; font-variant-numeric: tabular-nums; }
.pcard .sos-steps { margin: 2px 0 4px; padding-left: 18px; }
.btn.sos { border-color: rgba(239, 68, 68, .6); }
.cardbtn { margin-top: 5px; background: rgba(34, 211, 238, .12); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, .4); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 11px; cursor: pointer; }
@media (min-width: 900px) { .cardbox { left: auto; right: 16px; top: 150px; bottom: auto; width: 360px; max-height: calc(100vh - 180px); } }
.headr { display: grid; gap: 6px; justify-items: end; }
.sbtn.alarm { font-size: 12px; padding: 5px 10px; }
.pcard .alarms { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.pcard .alarms b { font-variant-numeric: tabular-nums; color: #fbbf24; margin-right: 4px; }
.pcard .sbtn.go { margin: 6px 0; }

/* 이동 안내 상자 = 가장자리 (2026-10-19 회장님 「가운데 상자가 이동경로를 가린다」) */
.caption { left: 12px; right: 60px; top: auto; bottom: calc(var(--sheet-h, 34vh) + 10px); transform: none; max-width: none;
  display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.caption .tx { min-width: 0; }
.caption .m { font-size: 14px; }
.caption .mode-badge { flex: none; color: #111827; font-weight: 800; font-size: 13px; border-radius: 10px; padding: 6px 8px; text-align: center; max-width: 92px; line-height: 1.25; }
.caption .ph { flex: none; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.caption .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) { .caption { left: calc(var(--sheet-w) + 32px); right: auto; bottom: 36px; max-width: 520px; } .caption .ph { width: 110px; height: 80px; } }

/* 장소 점 = 그곳 사진 */
.pin.photo .dot { width: 46px; height: 46px; padding: 0; overflow: hidden; background: #fff; }
.pin.photo .dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.far .pin.photo .dot { width: 30px; height: 30px; border-width: 2px; }
.timeline .th { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.timeline .what .stop { color: #fca5a5; font-weight: 700; }

/* 선 위 이동 수단 표시 */
.modeico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px;
  background: #0b1020; border: 2px solid var(--c); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.modeico.fl { width: 32px; height: 32px; font-size: 17px; }
.modeico.dim { opacity: .2; }

/* 내 얼굴 아래 탈것 (버스·택시·기차·자전거·도보·등산) */
.me .veh { display: none; position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); width: 42px; height: 42px;
  border-radius: 50%; place-items: center; font-size: 23px; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.me.riding { padding-bottom: 28px; }
.me.riding .veh { display: grid; }
.me.riding::after { bottom: 12px; }
body.sheet-open .caption { display: none; }
.caption[hidden], .builder[hidden] { display: none !important; }

/* 📷 사진 다듬기 */
.cam-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cam-row .sbtn { flex: 1; text-align: center; }
.ed-can { display: block; margin: 6px auto 0; width: 200px; height: 200px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--accent); touch-action: none; cursor: grab; background: #1e293b; }
#ed-zoom { width: 100%; accent-color: var(--accent2); }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fchip { font-size: 12px; }
/* 안내 상자 끌기 */
.caption { cursor: grab; touch-action: none; user-select: none; }
.caption.dragging { cursor: grabbing; opacity: .92; }

/* 아래 판 끌어 올리고 내리기 (휴대폰) */
.grip { width: 64px; height: 6px; touch-action: none; }
@media (max-width: 899px) { .sheet-head { touch-action: none; cursor: ns-resize; } }

/* 첫 입장(단계별) */
.cardbox { z-index: 30; }
.onboard { align-items: stretch; background: var(--bg); backdrop-filter: none; }
.onboard .panel { max-height: none; height: 100%; border-radius: 0; display: flex; flex-direction: column; gap: 10px; padding-top: calc(env(safe-area-inset-top) + 14px); }
@media (min-width: 900px) { .onboard { align-items: center; background: rgba(5,8,18,.7); } .onboard .panel { height: auto; max-height: 92vh; border-radius: 20px; } }
.ob-top { display: flex; align-items: center; gap: 10px; }
.ob-brand { font-weight: 800; }
.ob-dots { flex: 1; display: flex; gap: 5px; justify-content: center; }
.ob-dots i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); }
.ob-dots i.done { background: var(--accent); } .ob-dots i.on { background: var(--accent2); }
.onboard h2 { font-size: 22px; margin: 4px 0 0; }
.ob-body { display: grid; gap: 10px; }
.ob-me { display: flex; align-items: center; gap: 14px; }
.ob-face { width: 84px; height: 84px; border-radius: 50%; background: #fff center/cover no-repeat; display: grid; place-items: center; font-size: 40px; box-shadow: 0 0 0 3px var(--accent); }
.ob-list, .ob-sum { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ob-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; background: rgba(255,255,255,.05); border-radius: 10px; padding: 6px 10px; }
.ob-sum li { display: grid; grid-template-columns: 80px 1fr auto; gap: 8px; align-items: center; background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.ob-sum li span { color: var(--muted); } .ob-sum em { color: #fbbf24; font-style: normal; }
.onboard .actions { margin-top: auto; position: sticky; bottom: 0; background: #10162b; display: grid; gap: 6px; padding: 10px 0 calc(env(safe-area-inset-bottom) + 6px); }
.onboard .actions > div { width: 100%; }
.onboard #ob-next { flex: 1 1 auto; }

/* 아래 메뉴 (휴대폰) — 판·안내 상자·카드·확대 버튼이 메뉴 위로 */
:root { --tab-h: 0px; }
.tabbar { display: none; }
@media (max-width: 899px) {
  :root { --tab-h: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; height: var(--tab-h);
    padding-bottom: env(safe-area-inset-bottom); background: #0b1020; border-top: 1px solid var(--line); }
  .tabbar button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 11px; display: grid; place-items: center; align-content: center; gap: 1px; cursor: pointer; }
  .tabbar button span { font-size: 21px; line-height: 1; filter: grayscale(.6); opacity: .8; }
  .tabbar button.on { color: #fff; font-weight: 700; }
  .tabbar button.on span { filter: none; opacity: 1; }
  .tabbar button.on::before { content: ""; position: absolute; width: 28px; height: 3px; border-radius: 2px; background: var(--accent2); transform: translateY(-26px); }
  .sheet { bottom: var(--tab-h); border-radius: 20px 20px 0 0; padding-bottom: 12px; }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-h, 34vh) + var(--tab-h)); }
  .cardbox { bottom: calc(var(--sheet-h, 34vh) + var(--tab-h) + 8px); max-height: calc(100vh - var(--sheet-h, 34vh) - var(--tab-h) - 170px); }
  .caption { bottom: calc(var(--sheet-h, 34vh) + var(--tab-h) + 10px); }
  #cam, #sos { display: none; }
}
.pcard .slist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.pcard .sl { width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; text-align: left; background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; color: var(--text); font: inherit; cursor: pointer; }
.pcard .sl img, .pcard .sl i { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; font-style: normal; font-size: 22px; background: #1e293b; }
.pcard .sl small { display: block; color: var(--muted); font-size: 11px; }
.pcard .ob-me h3 { margin: 0; }
@media (max-width: 899px) { .headr #alarm, .headr #install { display: none; } }

/* 그림 아이콘 (지원금모야와 같은 계열) */
img.ic { width: 1.25em; height: 1.25em; vertical-align: -0.28em; object-fit: contain; }
.timeline .ico img.ic { width: 18px; height: 18px; vertical-align: 0; }
.stat span img.ic { width: 16px; height: 16px; vertical-align: -3px; }
img.bi { width: 22px; height: 22px; vertical-align: -6px; }
.brand .logo { background: #fff; } .brand .logo img { width: 22px; height: 22px; }
.pin .dot img.pi { width: 70%; height: 70%; object-fit: contain; }
.modeico img.mi { width: 18px; height: 18px; } .modeico.fl img.mi { width: 22px; height: 22px; }
.modeico { background: #fff; }
.me .veh img.vi { width: 28px; height: 28px; }
.caption .mode-badge img.mb { display: block; width: 30px; height: 30px; margin: 0 auto 2px; }
.ob-ic { width: 34px; height: 34px; vertical-align: -8px; margin-right: 6px; } .ob-ic.s { width: 20px; height: 20px; vertical-align: -4px; margin-right: 4px; }
@media (max-width: 899px) {
  .tabbar button img.ti { width: 28px; height: 28px; filter: grayscale(1) opacity(.55); transition: filter .15s, transform .15s; }
  .tabbar button.on img.ti { filter: none; transform: scale(1.08); }
  .tabbar button { gap: 3px; font-weight: 600; }
}
.sbtn .ob-ic { width: 22px; height: 22px; vertical-align: -6px; } .cardbtn img.ic { width: 15px; height: 15px; vertical-align: -3px; }
