/* 제반맵 — 콘티뷰어·스케줄앱과 같은 결 (DESIGN-apple: 액센트는 Action Blue 하나, 굵기 600 까지)
   상태색만 예외로 다섯 가지 — 지도 위에서 한눈에 갈려야 하는 게 이 앱의 목적이라서. */
:root {
  --ink: #1d1d1f; --ink2: #6e6e73; --line: #d2d2d7; --bg: #fff; --parch: #f5f5f7;
  --blue: #0066cc; --blue-hi: #0071e3;
  --todo: #8e8e93; --retry: #ff9f0a; --ok: #28cd41; --done: #0a84ff; --no: #ff3b30;
  --shoot: #ea2e00;
  --top: 56px; --zones: 44px; --panel: 400px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: -.2px; -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ── 머리줄 ── */
#top {
  height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px); position: relative; z-index: 20;
}
.ttl { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.ttl b { font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.ttl span { color: var(--ink2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.grow { flex: 1; }
.back { border: 0; background: none; color: var(--blue); font-size: 17px; padding: 6px 4px; white-space: nowrap; }
.pill {
  height: 34px; padding: 0 14px; border-radius: 980px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; white-space: nowrap;
}
.pill:hover { border-color: #aeaeb2; }
.pill.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill.primary.on { background: #1d1d1f; border-color: #1d1d1f; }
.stats { display: flex; gap: 6px; flex-wrap: nowrap; margin-left: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 980px;
  background: var(--parch); font-size: 13px; white-space: nowrap; border: 1px solid transparent;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip b { font-weight: 600; }
button.chip.on { border-color: var(--ink); background: #fff; }
button.chip:disabled { opacity: .45; cursor: default; }

/* ── 구역 탭 ── */
.zones {
  height: var(--zones); display: flex; align-items: center; gap: 6px; padding: 0 16px;
  overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--parch); scrollbar-width: none;
}
.zones::-webkit-scrollbar { display: none; }
.ztab {
  height: 30px; padding: 0 12px; border-radius: 980px; border: 0; background: transparent;
  font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.ztab:hover { background: rgba(0,0,0,.05); }
.ztab.on { background: var(--ink); color: #fff; }
.ztab small { color: var(--ink2); font-size: 12px; }
.ztab.on small { color: #c7c7cc; }

/* ── 본문 ── */
#body { position: absolute; top: calc(var(--top) + var(--zones)); left: 0; right: 0; bottom: 0; display: flex; }
#stage { position: relative; flex: 1; overflow: hidden; background: #1c1c1e; touch-action: none; user-select: none; -webkit-user-select: none; }
#stage.adding { cursor: crosshair; }
#world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --inv: 1; }
#mapimg { display: block; pointer-events: none; transition: opacity .18s; }
#layer { position: absolute; inset: 0; }

/* 전체맵의 구역 사각형 */
.zone {
  position: absolute; border: calc(2px * var(--inv)) dashed rgba(255,255,255,.55);
  border-radius: calc(16px * var(--inv)); background: rgba(255,255,255,.03); cursor: pointer;
}
.zone:hover { background: rgba(0,102,204,.16); border-color: rgba(255,255,255,.9); }
.zone-lab {
  position: absolute; left: 0; top: 0; transform: scale(var(--inv)); transform-origin: 0 0;
  margin: 8px; padding: 5px 9px 6px; border-radius: 8px; background: rgba(29,29,31,.86); color: #fff;
  font-size: 13px; line-height: 1.3; white-space: nowrap; pointer-events: none;
}
.zone-lab b { font-weight: 600; font-size: 14px; }
.zone-lab .bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 5px; background: rgba(255,255,255,.18); min-width: 90px; }
.zone-lab .bar span { background: var(--c); }
.zone-lab .cnt { color: #c7c7cc; font-size: 12px; }

/* 전체맵의 스팟(복지관·공영주차장) — 영역이 아니라 한 지점. 눌러서 그 맵으로 */
.spot { position: absolute; width: 0; height: 0; z-index: 4; cursor: pointer; }
.spot-dot {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%;
  transform: scale(var(--inv)) translate(-50%, -50%); transform-origin: 0 0;
  background: #fff; border: 4px solid #1d1d1f; box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 1px 4px rgba(0,0,0,.6);
}
.spot-b {
  position: absolute; left: 0; top: 0; transform: scale(var(--inv)) translate(-50%, calc(-100% - 14px)); transform-origin: 0 0;
  padding: 5px 10px 6px; border-radius: 10px; background: rgba(29,29,31,.88); color: #fff;
  font-size: 13px; line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.spot-b b { font-weight: 600; font-size: 14px; }
.spot-b .cnt { color: #c7c7cc; font-size: 12px; }
.spot-b .bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 5px; background: rgba(255,255,255,.18); min-width: 80px; }
.spot-b .bar span { background: var(--c); }
.spot:hover .spot-b { background: var(--blue); }

/* 핀 — 지도 확대와 상관없이 같은 크기로 보이게 1/k 로 되돌려 그린다 */
.pin { position: absolute; width: 0; height: 0; z-index: 2; }
.pin-b {
  position: absolute; left: 0; top: 0; transform: scale(var(--inv)) translate(-50%, -50%); transform-origin: 0 0;
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--c); color: #fff;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: grab;
}
.pin.nophone .pin-b { border-style: dashed; }
.pin.sel { z-index: 5; }
.pin.sel .pin-b { transform: scale(calc(var(--inv) * 1.3)) translate(-50%, -50%); box-shadow: 0 0 0 3px var(--ink), 0 2px 10px rgba(0,0,0,.6); }
.pin.dim { opacity: .25; }
.pin .tag {
  position: absolute; left: 0; top: 0; transform: scale(var(--inv)) translate(16px, -50%); transform-origin: 0 0;
  background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; padding: 1px 6px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.pin.dot .pin-b { min-width: 12px; width: 12px; height: 12px; padding: 0; border-width: 1.5px; font-size: 0; cursor: pointer; }
.lm { position: absolute; width: 0; height: 0; z-index: 3; }
.lm-b {
  position: absolute; left: 0; top: 0; transform: scale(var(--inv)) translate(-50%, -100%); transform-origin: 0 0;
  padding: 4px 9px 5px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.5); margin-top: -8px;
}
.lm-b::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; }
.lm.shoot .lm-b { background: var(--shoot); border-color: var(--shoot); }
.lm.gen .lm-b { background: #5e5ce6; border-color: #5e5ce6; }
.lm.light .lm-b { background: #ffd60a; border-color: #ffd60a; color: #1d1d1f; cursor: pointer; }
.lm.light .lm-b:hover { background: #ffe14d; }

.hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 6;
  background: rgba(29,29,31,.88); color: #fff; padding: 8px 16px; border-radius: 980px; font-size: 14px;
  white-space: nowrap; pointer-events: none;
}
.zoomctl { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.zoomctl button {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.92);
  font-size: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ── 오른쪽 판 ── */
#panel { width: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
.p-sec { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.p-sec h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.p-sec h3 small { color: var(--ink2); font-weight: 400; font-size: 14px; margin-left: 6px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-empty { color: var(--ink2); font-size: 14px; padding: 6px 0; }
.p-help { color: var(--ink2); font-size: 14px; margin: 0; }
.p-help b { color: var(--ink); font-weight: 600; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 18px; border-bottom: 1px solid #f0f0f2; cursor: pointer;
}
.row:hover { background: var(--parch); }
.row .no { width: 28px; height: 28px; border-radius: 14px; background: var(--c); color: #fff; font-weight: 600;
  font-size: 13px; display: flex; align-items: center; justify-content: center; }
.row .pl { font-weight: 600; }
.row .sub { color: var(--ink2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .st { font-size: 12px; color: var(--c); font-weight: 600; white-space: nowrap; }

/* 편집 */
.ed-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.95); z-index: 2; }
.ed-head .no { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--c); color: #fff;
  font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ed-head .t { flex: 1; min-width: 0; }
.ed-head .t b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.ed-head .t span { color: var(--ink2); font-size: 13px; }
.x { border: 0; background: var(--parch); width: 30px; height: 30px; border-radius: 15px; font-size: 16px; color: var(--ink2); }
.ed { padding: 4px 18px 20px; }
.ed label.l { display: block; margin: 16px 0 6px; font-size: 13px; color: var(--ink2); }
.inp, .ed textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 16px;
}
.ed textarea { height: 76px; padding: 9px 12px; resize: vertical; line-height: 1.45; }
.inp:focus, .ed textarea:focus { outline: 2px solid var(--blue-hi); outline-offset: -1px; border-color: transparent; }
.inp.big { font-size: 20px; font-weight: 600; letter-spacing: .5px; height: 46px; }
.hstack { display: flex; gap: 6px; align-items: center; }
.hstack .inp { flex: 1; min-width: 0; }
a.pill, .hstack .pill { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); height: 40px; }
a.pill.call { background: var(--ok); border-color: var(--ok); color: #fff; }
a.pill.off { pointer-events: none; opacity: .4; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: var(--parch); padding: 3px; border-radius: 11px; }
.seg button { height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.seg button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.seg button.on { background: var(--c); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.seg button.on i { background: #fff; }
.cands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; font-size: 13px; color: var(--ink2); }
.cands button { height: 28px; padding: 0 10px; border-radius: 980px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font-size: 13px; }
.badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 6px; background: #e8f2fc; color: #004f9e; font-size: 13px; }
.badge.warn { background: #fff4e5; color: #9a5800; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.th { position: relative; width: 92px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--parch); cursor: zoom-in; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 4px; }
.th .rm { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 10px; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 20px; padding: 0; }
.sug { margin-top: 6px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; max-height: 330px; overflow-y: auto; }
.sug:empty { display: none; }
.sug-i { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px 8px; cursor: pointer; }
.sug-i:hover, .sug-i.act { background: var(--parch); }
.sug-i img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.sug-i b { font-weight: 600; }
.sug-i div { font-size: 13px; color: var(--ink2); line-height: 1.35; }
.sug-i div em { font-style: normal; color: var(--ink); }

/* 판의 구역·표시 사진 */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--parch); cursor: zoom-in; }
.pg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pg:hover img { transform: scale(1.05); }
.pg span { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 4px; }
.more { margin-top: 8px; width: 100%; height: 34px; border: 0; border-radius: 8px; background: var(--parch); color: var(--blue); font-size: 14px; }
.more:hover { background: #e8e8ed; }
.log { list-style: none; margin: 8px 0 0; padding: 0; }
.log li { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid #f0f0f2; font-size: 14px; }
.log li time { color: var(--ink2); font-size: 13px; }
.log li .s { color: var(--c); font-weight: 600; margin-right: 4px; }
.ed-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.save-st { font-size: 13px; color: var(--ink2); }
.save-st.err { color: var(--no); }
.del { border: 0; background: none; color: var(--no); font-size: 14px; padding: 6px 0; }

/* ── 시트 (목록 · 사진첩) ── */
.sheet { position: fixed; inset: calc(var(--top) + var(--zones)) 0 0 0; background: var(--bg); z-index: 15; overflow-y: auto; }
.sh-head { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 20px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.sh-head h2 { margin: 0 12px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -.4px; }
.sh-head .inp { width: 220px; height: 34px; font-size: 14px; }
.sh-head select { height: 34px; border-radius: 980px; border: 1px solid var(--line); background: #fff; padding: 0 12px; font-size: 14px; }
.sh-body { padding: 8px 20px 40px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink2); font-size: 13px; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid #f0f0f2; vertical-align: middle; }
.tbl tr.r { cursor: pointer; }
.tbl tr.r:hover td { background: var(--parch); }
.tbl .no { width: 28px; height: 28px; border-radius: 14px; background: var(--c); color: #fff; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.tbl .pl { font-weight: 600; white-space: nowrap; }
.tbl .memo { color: var(--ink2); max-width: 340px; }
.tbl .mini { display: flex; gap: 3px; }
.tbl .mini img { width: 44px; height: 33px; object-fit: cover; border-radius: 4px; }
.stl { color: var(--c); font-weight: 600; white-space: nowrap; }
.board { margin-top: 28px; }
.board h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.board p { color: var(--ink2); margin: 0 0 10px; font-size: 14px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.bgrid div { padding: 7px 10px; border-radius: 8px; background: var(--parch); font-size: 14px; display: flex; justify-content: space-between; gap: 6px; }
.bgrid div.hit { background: #e8f2fc; }
.bgrid div small { color: var(--ink2); }
.alb-g h3 { margin: 22px 0 10px; font-size: 17px; font-weight: 600; }
.alb-g h3 small { color: var(--ink2); font-weight: 400; margin-left: 6px; font-size: 14px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ac { position: relative; border-radius: 8px; overflow: hidden; background: var(--parch); aspect-ratio: 4/3; cursor: zoom-in; }
.ac img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac .id { position: absolute; left: 5px; top: 5px; background: rgba(0,0,0,.66); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 5px; }
.ac .pl { position: absolute; left: 5px; bottom: 5px; background: rgba(255,255,255,.94); font-size: 12px; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.ac .used { position: absolute; right: 5px; top: 5px; color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 9px; background: var(--c); font-weight: 600; }

/* ── 미리보기 — 오른쪽 판의 사진 모음 바로 위 (사진정리 도구처럼 모음은 그대로, 눌러 바꿔 봄) ── */
.pvslot:empty { display: none; }
.pvbox { margin-bottom: 10px; border-radius: 11px; overflow: hidden; color: #fff; background: #0a0a0c;
  box-shadow: 0 4px 16px rgba(0,0,0,.18); animation: pvIn .16s ease-out; }
@keyframes pvIn { from { opacity: 0; transform: translateY(-4px); } }
.pv-img { position: relative; height: 270px; display: flex; align-items: center; justify-content: center; }
.pv-img img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.pv-img .lb-nav { width: 32px; height: 48px; font-size: 22px; background: rgba(0,0,0,.45); }
.pv-img .lb-nav.prev { left: 6px; } .pv-img .lb-nav.next { right: 6px; }
.pv-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 5px; }
.pv-tools button { width: 30px; height: 30px; border-radius: 15px; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 14px; }
.pv-tools button:hover, .pv-img .lb-nav:hover { background: rgba(0,0,0,.75); }
.pv-info { display: flex; align-items: center; gap: 10px; padding: 9px 12px 10px; background: #1c1c1f; }
.pv-t { flex: 1; min-width: 0; }
.pv-t > b { font-size: 15px; font-weight: 600; }
.pv-t .at { color: #8e8e93; font-size: 12.5px; margin-left: 8px; }
.pvbox .meta { margin-top: 2px; font-size: 12.5px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvbox .meta b { color: #fff; font-weight: 600; }
.pv-info .pill { height: 32px; font-size: 13px; background: transparent; color: #fff; border-color: #48484a; }
.pv-info .pill.primary { background: var(--blue); border-color: var(--blue); }
.pg.on, .th.on { outline: 3px solid var(--blue); outline-offset: 1px; }
.pg.on img { transform: none; }

/* ── 크게 보기 ── */
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.94); color: #fff; display: flex; flex-direction: column; }
.lb-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.lb-top .t { flex: 1; min-width: 0; }
.lb-top .t b { font-size: 17px; font-weight: 600; }
.lb-top .t span { color: #aeaeb2; margin-left: 8px; font-size: 14px; }
.lb-top .pill { background: transparent; color: #fff; border-color: #48484a; }
.lb-top .pill.primary { background: var(--blue); border-color: var(--blue); }
.lb-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; position: relative; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lb-img.full { display: block; }
.lb-img.full img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; z-index: 2; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-x { width: 34px; height: 34px; border-radius: 17px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 60;
  background: rgba(29,29,31,.92); color: #fff; padding: 10px 18px; border-radius: 980px; font-size: 14px;
  transition: .22s; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 좁은 화면 (폰) ── 판은 아래에서 올라오는 시트로 */
@media (max-width: 820px) {
  :root { --top: 52px; }
  #top { padding: 0 10px; gap: 6px; }
  .ttl span, .stats, #copyBtn { display: none; }
  .pill { padding: 0 11px; font-size: 13px; }
  .zones { padding: 0 10px; }
  #panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 58vh; border-left: 0;
    border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.25); z-index: 12;
    transform: translateY(calc(100% - 64px)); transition: transform .25s; }
  #panel.open { transform: none; }
  .sh-head .inp { width: 100%; }
  .back:not([hidden]) + .ttl { display: none; }
  .pv-img { height: 220px; }
  .zoomctl { bottom: 80px; }
  .p-sec:first-child { cursor: pointer; }
}

/* 조회 전용 (view/ — window.JEBAN_RO) */
.ttl .ro-tag { align-self: center; padding: 2px 9px; border-radius: 980px; background: var(--parch); color: var(--ink2); font-size: 12px; }
@media (max-width: 820px) { .ttl .ro-tag { display: inline-block; } }
.ed.ro .ro-st { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 980px; background: var(--c); color: #fff; font-size: 14px; font-weight: 600; }
.ed.ro .ro-st i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ed.ro .ro-v { flex: 1; min-height: 38px; padding: 8px 12px; border-radius: 11px; background: var(--parch); font-size: 16px; }
.ed.ro .ro-v.memo { white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
.ed.ro .thumbs { margin-top: 8px; }
