/* 동국대학교 WISE캠퍼스 D-MAP — 화면 꾸밈
   동국 상징·디자인 가이드·그래픽 모티브·현수막(wise.dongguk.ac.kr/page/85~90) 기준
   · 색: 현수막 PANTONE 124C #EBA904 · 144C #EF8903 · 159C #D05D15 · 173C #D1441D · 웜그레이 7C #A09690 + 사선 띠(올리브·갈색·주황)
   · 공식 로고는 흰 바탕 · 둘레 여백 a 이상 · 색·비율 그대로(아래 '공식 로고' 참고)
   · 처음 배경은 회색. 가운데에서 다섯 가지 색(흰색·밝은 회색·짙은 회색·주황·짙은 주황) 물감이 시계 방향으로 돌다가 글자·아이콘·창이 됨(js/paint.js · 맨 아래 '물감 연출') */
:root {
  --primary: #D05D15;          /* 159C */
  --primary-hover: #B94F10;
  --primary-focus: #EF8903;    /* 144C */
  --gold: #EBA904;             /* 124C */
  --warm: #A09690;             /* Warm Gray 7C */
  --warm-ink: #6B625D;         /* 읽기 쉬운 진한 웜그레이 */
  --band: linear-gradient(110deg, #908B15 0 19%, #756F10 19% 31%, #A94A10 31% 49%, #D05D15 49% 77%, #EF8903 77% 92%, #EBA904 92% 100%);
  /* 사이트 표식 = DM 코끼리 로고(무늬 원 + 뚫린 코끼리) · 사이트 아이콘과 같은 파일 (2026-11-14, v79) */
  --mark: url(/media/brand/donggukmap-mark.svg) center / contain no-repeat;
  --chamfer: none;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #7a7a7a;
  --hairline: #e0e0e0;
  --divider: #f0f0f0;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --chip: rgba(210, 210, 215, .64);
  --frost: rgba(245, 245, 247, .8);
  --frost-strong: rgba(250, 250, 252, .86);
  --line: rgba(0, 0, 0, .08);
  --latest: #ED4C00;
  --start: #2FED28;
  --end: #DB3A00;
  --route: #FF5E00;
  --blur: saturate(180%) blur(20px);
  --r-sm: 8px; --r-md: 11px; --r-lg: 18px; --pill: 9999px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --top: 52px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #F5F3F0; color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -.374px; overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active:not(:disabled) { transform: scale(.95); }
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
#map { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#labels, #ui { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#ui > * { pointer-events: auto; }
/* 불러오는 중 글자는 화면 읽기 프로그램에만(눈에는 가운데에서 도는 물감이 보임) */
#loading { position: fixed; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 아이콘(마스크) ---------- */
.ico { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.ico-gear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h9M17 7h3M4 17h3M11 17h9'/%3E%3Ccircle cx='15' cy='7' r='2.3'/%3E%3Ccircle cx='9' cy='17' r='2.3'/%3E%3C/svg%3E"); }
.ico-x { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.ico-back { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.ico-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ico-minus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.ico-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E"); }
.ico-route { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='18' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Cpath d='M8.5 18H15a3 3 0 0 0 0-6H9a3 3 0 0 1 0-6h6.5'/%3E%3C/svg%3E"); }
.ico-locate { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='black'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3'/%3E%3C/svg%3E"); }
.ico-door { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 21V4.5A1.5 1.5 0 0 1 7.5 3h9A1.5 1.5 0 0 1 18 4.5V21M3.5 21h17'/%3E%3Ccircle cx='14.5' cy='12.5' r='1' fill='black'/%3E%3C/svg%3E"); }
.ico-building { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 21V7l8-4 8 4v14M2.5 21h19M9 21v-5h6v5M8 10h2M14 10h2'/%3E%3C/svg%3E"); }
.ico-chev { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }

/* ---------- 공통 버튼 ---------- */
.icon-btn { width: 44px; height: 44px; border-radius: var(--pill); border: 0; background: var(--chip); color: var(--ink); display: inline-grid; place-items: center; flex: none; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background .15s, transform .1s; }
.icon-btn.small { width: 36px; height: 36px; }
.btn { border: 0; border-radius: var(--pill); padding: 11px 22px; font-size: 17px; background: var(--pearl); color: var(--ink-80); box-shadow: inset 0 0 0 1px var(--line); transition: transform .1s, background .15s; white-space: nowrap; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: none; }
.btn.danger { background: #c4242f; color: #fff; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.btn.small { padding: 8px 15px; font-size: 14px; letter-spacing: -.224px; }
.btn:disabled { opacity: .45; cursor: default; }
.text-btn { border: 0; background: none; color: var(--primary); padding: 6px 4px; font-size: 14px; letter-spacing: -.224px; }
.muted { color: var(--ink-48); font-size: 14px; letter-spacing: -.224px; margin: 6px 0; }

/* ---------- 위쪽 막대: 왼쪽 브랜드 · 가운데 검색 · 오른쪽 설정 ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; height: var(--top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 12px 0 16px; background: var(--frost); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { justify-self: start; border: 0; background: none; padding: 6px 4px; display: flex; align-items: baseline; gap: 7px; font-family: var(--font-display); color: var(--ink); white-space: nowrap; }
.brand .b1 { font-size: 17px; font-weight: 600; letter-spacing: -.374px; }
.brand .b2 { font-size: 17px; font-weight: 600; letter-spacing: .4px; color: var(--ink-48); }
.search-btn { justify-self: center; display: flex; align-items: center; gap: 8px; height: 36px; min-width: min(360px, 42vw); padding: 0 16px; border: 0; border-radius: var(--pill); background: rgba(0, 0, 0, .055); color: var(--ink-48); font-size: 14px; letter-spacing: -.224px; transition: background .15s; }
.search-btn:hover { background: rgba(0, 0, 0, .08); }
.search-btn .ico { width: 15px; height: 15px; }
.gear { justify-self: end; width: 36px; height: 36px; background: transparent; }
.gear:hover { background: rgba(0, 0, 0, .06); }

/* ---------- 지도 조작 ---------- */
.map-ctrls { position: absolute; right: 12px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.ctl { width: 44px; height: 44px; border-radius: var(--pill); border: 0; background: var(--chip); color: var(--ink); display: grid; place-items: center; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
/* 나침반: 연두색 화살촉, 안쪽 가장자리에 고른 그림자(눌려 들어간 느낌) */
.ctl .needle { width: 22px; height: 22px; display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='i' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeFlood flood-color='%231a3300' flood-opacity='1'/%3E%3CfeComposite in2='SourceAlpha' operator='out'/%3E%3CfeGaussianBlur stdDeviation='1.7'/%3E%3CfeComposite in2='SourceAlpha' operator='in'/%3E%3CfeMerge%3E%3CfeMergeNode in='SourceGraphic'/%3E%3CfeMergeNode/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M12 2.5 19.5 20.5 12 16.2 4.5 20.5z' fill='%237ED321' stroke='%237ED321' stroke-width='1.6' stroke-linejoin='round' filter='url(%23i)'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .05s linear; }
.hint { position: absolute; left: 14px; bottom: 14px; font-size: 12px; letter-spacing: -.12px; line-height: 1; color: rgba(29, 29, 31, .62); pointer-events: none !important; }
.hint .bld-only, body.building-open .hint .map-only { display: none; }
body.building-open .hint .bld-only { display: inline; }

/* ---------- 지도 라벨 ---------- */
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; will-change: transform; user-select: none; }
.lbl.clickable .rn { pointer-events: auto; cursor: pointer; }
.bld-label { font-size: 12px; font-weight: 600; letter-spacing: -.12px; color: var(--ink); text-shadow: 0 0 2px #fff, 0 0 4px #fff, 0 0 7px rgba(255, 255, 255, .9); }
.fac-label { font-size: 12px; font-weight: 600; color: #555; text-shadow: 0 0 2px #eee, 0 0 4px #eee; }
.park-label .pk { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #5B7C95; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0,0,0,.25); }
.park-name { margin-top: 19px; font-size: 11px; font-weight: 600; color: #4a6175; text-shadow: 0 0 2px #fff, 0 0 3px #fff; }
body.building-open .park-label, body.building-open .park-name { opacity: .35; }
.exit-label { display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: var(--pill); background: #1d1d1f; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: -.12px; line-height: 1.3; }
.exit-label .ex { width: 18px; height: 18px; border-radius: 50%; background: #34c759; position: relative; flex: none; }
.exit-label .ex::after { content: ''; position: absolute; inset: 3px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5h5v1.6H4.6v7.8H8v1.6H3zM9.5 4.8 13 8l-3.5 3.2V9H6.5V7h3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5h5v1.6H4.6v7.8H8v1.6H3zM9.5 4.8 13 8l-3.5 3.2V9H6.5V7h3z'/%3E%3C/svg%3E") center/contain no-repeat; }
body.building-open .exit-label { display: none !important; }

.room-label { font-size: 12px; font-weight: 600; letter-spacing: -.12px; color: var(--ink); }
.room-label .rn { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: var(--pill); background: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 1px var(--line); transition: background .12s, color .12s; }
.room-label .rn:hover, .room-label .rn.sel { background: var(--primary); color: #fff; box-shadow: none; }
.room-label .rn.fac { font-size: 11px; padding: 1px 7px 1px 3px; }
.room-label .rn.fac i { width: 14px; height: 14px; border-radius: 50%; background: currentColor; opacity: .9; -webkit-mask: var(--fi) center/10px no-repeat; mask: var(--fi) center/10px no-repeat; }
.rn.k-stair { color: #2856a3; --fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M0 9h3V6h3V3h3V0h1v10H0z'/%3E%3C/svg%3E"); }
.rn.k-elevator { color: #6b3fb0; --fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 4 5 1l2.5 3zM2.5 6 5 9l2.5-3z'/%3E%3C/svg%3E"); }
.rn.k-toilet { color: #1d7a46; --fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='2' r='1.6'/%3E%3Cpath d='M3 4.3h4L6.3 10H3.7z'/%3E%3C/svg%3E"); }
.rn.k-toilet.g-m { color: #0058b8; }
.rn.k-toilet.g-f { color: #c22b57; }
.room-label .rn.fac:hover { color: #fff; }
.floor-status .fs { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); background: rgba(29, 29, 31, .86); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.374px; }
.floor-status .fs .ico { width: 18px; height: 18px; }
.lbl.clickable .fs { pointer-events: auto; cursor: pointer; }
.floor-status.st-locked .fs { flex-direction: column; gap: 2px; padding: 10px 20px 9px; transition: transform .15s, background .15s; }
.floor-status.st-locked .fs .row { display: inline-flex; align-items: center; gap: 8px; }
.floor-status.st-locked .fs small { font-size: 12px; font-weight: 500; letter-spacing: -.12px; color: #64d2ff; }
.lbl.clickable .fs:hover { background: rgba(208, 93, 21, .94); transform: scale(1.03); }
.lbl.clickable .fs:hover small { color: #fff; }
.corr-lead { margin: 0; color: var(--ink-80); line-height: 1.47; }

.route-mark { display: flex; flex-direction: column; align-items: center; transform-origin: bottom center; }
.route-mark .pin { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: translateY(-14px) rotate(-45deg); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.route-mark .pin i { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.route-mark.start .pin { background: var(--start); }
.route-mark.end .pin { background: var(--end); }
.route-mark b { font-size: 12px; font-weight: 600; margin-top: -10px; padding: 1px 7px; border-radius: var(--pill); background: #fff; color: var(--ink); }

/* ---------- 구조도 없는 건물 말풍선 ---------- */
.info-pop { position: absolute; left: 0; top: 0; min-width: 190px; padding: 14px 40px 10px 16px; background: var(--canvas); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--hairline); z-index: 8; }
.info-pop::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--canvas); transform: translateX(-50%) rotate(45deg); box-shadow: 1px 1px 0 var(--hairline); }
.info-pop .x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--parchment); display: grid; place-items: center; }
.info-pop .x .ico { width: 13px; height: 13px; }
.info-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.info-msg { font-size: 14px; letter-spacing: -.224px; color: var(--ink-48); margin-top: 2px; }
.info-pop .text-btn { position: relative; z-index: 1; margin-top: 4px; padding-left: 0; }

/* ---------- 건물 보기: 머리 카드 + 층 목록 ---------- */
.bcard { position: absolute; top: calc(var(--top) + 12px); left: 12px; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; background: var(--frost-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); z-index: 6; }
.bcard .back { background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.bname { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .231px; line-height: 1.19; }
.bsub { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); margin-top: 2px; }
.floor-list { position: absolute; right: 12px; top: calc(var(--top) + 12px); bottom: 190px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 2px; z-index: 6; scrollbar-width: none; }
.floor-btn { width: 52px; min-height: 36px; border: 0; border-radius: var(--pill); background: var(--frost-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; letter-spacing: -.224px; color: var(--ink); position: relative; transition: background .15s, color .15s; }
.floor-btn.all { font-size: 12px; font-weight: 400; color: var(--ink-80); }
.floor-btn.on { background: var(--primary); color: #fff; box-shadow: none; }
.floor-btn.st-locked::after { content: ''; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.floor-btn.st-none { color: var(--ink-48); }

/* ---------- 호실 창(왼쪽, 절반보다 조금 작게 · 뒤 블러) ---------- */
.room-panel { position: absolute; top: calc(var(--top) + 10px); left: 10px; bottom: 10px; width: calc(50vw - 36px); max-width: 760px; display: flex; flex-direction: column; background: rgba(250, 250, 252, .72); backdrop-filter: saturate(180%) blur(26px); -webkit-backdrop-filter: saturate(180%) blur(26px); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); z-index: 15; opacity: 0; transform: translateX(-16px); transition: opacity .22s, transform .22s; overflow: hidden; }
.room-panel.show { opacity: 1; transform: none; }
body.room-open .bcard { opacity: 0; pointer-events: none; }
.rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.rp-where { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); }
.rp-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: -.28px; margin-top: 4px; word-break: keep-all; }
.rp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rp-cap { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); font-weight: 600; }
.rp-cap .n { color: var(--ink-80); margin-left: 2px; }
.rp-names { overflow-y: auto; padding: 16px 20px 24px 24px; border-right: 1px solid var(--line); scroll-behavior: auto; }
.rp-names .names { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.rp-names .names li { display: flex; flex-direction: column; gap: 4px; }
.rp-names .names .nm { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: .231px; word-break: keep-all; }
.rp-names .names li.old .nm { color: #a1a1a6; font-weight: 400; }
.rp-names .names li.now .nm { color: var(--latest); font-size: 28px; line-height: 1.14; }
.rp-names .names .tag { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); }
.rp-names .fix { margin-top: 40px; padding-left: 0; }
.rp-social { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 16px; min-height: 0; }
/* 좋아요 + 조회수 한 줄 */
.rp-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.views-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--pill); font-size: 14px; letter-spacing: -.224px; color: var(--ink-48); cursor: default; }
.views-chip b { color: var(--ink-80); font-weight: 600; }
.views-chip .eye { width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat; }
.views-chip[hidden] { display: none; }
.like-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border: 0; border-radius: var(--pill); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; letter-spacing: -.224px; color: var(--ink-80); }
.like-btn .heart { width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M12 20.5S3.5 15 3.5 9A4.5 4.5 0 0 1 12 6.6 4.5 4.5 0 0 1 20.5 9c0 6-8.5 11.5-8.5 11.5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M12 20.5S3.5 15 3.5 9A4.5 4.5 0 0 1 12 6.6 4.5 4.5 0 0 1 20.5 9c0 6-8.5 11.5-8.5 11.5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.like-btn.on { color: var(--primary); box-shadow: inset 0 0 0 1px rgba(208, 93, 21, .45); }
.like-btn.on .heart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S3 15.2 3 9a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.2-9 12-9 12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S3 15.2 3 9a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.2-9 12-9 12z'/%3E%3C/svg%3E"); }
.cm-list { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-list li { background: var(--canvas); border-radius: var(--r-md); padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--divider); }
.cm-list li p { margin: 0; font-size: 14px; line-height: 1.43; letter-spacing: -.224px; word-break: break-word; }
.cm-list .meta { margin-top: 4px; font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); display: flex; gap: 6px; }
.cm-list .meta .me { color: var(--primary); font-weight: 600; }
.cm-list .cm-empty { background: none; box-shadow: none; color: var(--ink-48); font-size: 14px; padding: 6px 0; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; }
.cm-form textarea { flex: 1; resize: none; border: 0; border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; letter-spacing: -.224px; line-height: 1.43; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); max-height: 120px; }
.cm-form .btn { min-width: 64px; }

/* ---------- 검색 ---------- */
.search-scrim { position: absolute; inset: var(--top) 0 0 0; background: rgba(245, 245, 247, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 25; }
.search-pop { position: absolute; top: 6px; left: 50%; width: min(620px, calc(100vw - 20px)); transform: translate(-50%, -4px); opacity: 0; transition: opacity .16s, transform .16s; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.search-pop.show { opacity: 1; transform: translate(-50%, 0); }
.search-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; background: var(--canvas); border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.search-bar .ico { width: 15px; height: 15px; color: var(--ink-48); }
.search-input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; height: 100%; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-hint { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); padding: 0 18px; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: min(60vh, 520px); overflow-y: auto; background: var(--canvas); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--hairline); }
.search-results:empty { display: none; }
.search-results li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; }
.search-results li.sel { background: var(--parchment); }
.search-results li .ico { width: 18px; height: 18px; color: var(--ink-48); }
.search-results li.k-building .ico { color: #c96510; }
.search-results .tx { display: flex; flex-direction: column; min-width: 0; }
.search-results b { font-weight: 600; font-size: 17px; }
.search-results small { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results li.empty { color: var(--ink-48); font-size: 14px; cursor: default; }

/* ---------- 설정(오른쪽) ---------- */
.settings-scrim { position: absolute; inset: var(--top) 0 0 0; z-index: 25; }
.settings { position: absolute; top: calc(var(--top) + 8px); right: 8px; bottom: 8px; width: min(380px, calc(100vw - 16px)); display: flex; flex-direction: column; background: rgba(250, 250, 252, .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); z-index: 30; opacity: 0; transform: translateX(14px); transition: opacity .2s, transform .2s; }
.settings.show { opacity: 1; transform: none; }
.settings header { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 8px 22px; }
.settings h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: .196px; }
.set-body { flex: 1; overflow-y: auto; padding: 0 14px 18px; }
.set-body section { margin-top: 14px; }
.set-body h3 { margin: 0 8px 6px; font-size: 14px; font-weight: 600; letter-spacing: -.224px; display: flex; gap: 6px; }
.set-body h3 .n { color: var(--ink-48); font-weight: 400; }
.set-body .muted { margin: 4px 8px; }
.set-list { list-style: none; margin: 0; padding: 0; background: var(--canvas); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.set-list li + li { border-top: 1px solid var(--divider); }
.set-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: none; text-align: left; }
.set-list button:active { transform: none; background: var(--parchment); }
.set-list .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-list b { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-list small { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); }
.set-list small.q { color: var(--ink-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-list .chev { width: 8px; height: 13px; background: #c7c7cc; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 1l5.5 5.5L1 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 1l5.5 5.5L1 12'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- 길찾기(아래 가운데) ---------- */
.route-dock { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 12; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 24px); }
.route-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 26px 0 22px; border: 0; border-radius: var(--pill); background: var(--primary); color: #fff; font-size: 17px; font-weight: 400; transition: transform .1s, background .15s; }
.route-btn .ico { width: 18px; height: 18px; }
.route-panel { width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; }
.route-chips { display: flex; gap: 8px; }
.route-chip { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: var(--pill); background: var(--frost-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.route-chip .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.route-chip.start .dot { background: var(--start); }
.route-chip.end .dot { background: var(--end); }
.route-chip .lab { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); flex: none; }
.route-chip .val { font-size: 14px; letter-spacing: -.224px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-chip.on { box-shadow: inset 0 0 0 2px var(--primary-focus); }
.route-sum { padding: 10px 18px; border-radius: var(--r-lg); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; letter-spacing: -.224px; color: var(--ink-80); }
.route-sum b { font-size: 21px; font-weight: 600; color: var(--route); margin-right: 2px; }
.route-sum .tip { display: block; font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); margin-top: 2px; }
.route-bar { display: flex; align-items: center; gap: 8px; height: 56px; padding: 6px 6px 6px 6px; background: var(--canvas); border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.mode-ico { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; background: var(--parchment); }
.mode-ico i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9); }
.mode-ico.start i { background: var(--start); }
.mode-ico.end i { background: var(--end); }
.mode-ico.none i { background: linear-gradient(90deg, var(--start) 50%, var(--end) 50%); }
.route-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 17px; }
.route-done { flex: 1; font-size: 14px; letter-spacing: -.224px; color: var(--ink-48); }
.route-bar .icon-btn { background: var(--parchment); }
.route-sugg { list-style: none; margin: 0; padding: 6px; max-height: 38vh; overflow-y: auto; background: var(--canvas); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--hairline); }
.route-sugg:empty { display: none; }
.route-sugg li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--r-md); cursor: pointer; }
.route-sugg li.sel { background: var(--parchment); }
.route-sugg b { font-size: 17px; font-weight: 600; }
.route-sugg small { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); }
.route-sugg li.empty { color: var(--ink-48); font-size: 14px; cursor: default; }
.center-pin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 9; pointer-events: none !important; }
.center-pin .pin { position: absolute; left: -16px; top: -40px; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.center-pin .pin i { width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.center-pin.start .pin { background: var(--start); }
.center-pin.end .pin { background: var(--end); }
.center-pin::after { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: rgba(29, 29, 31, .35); }
.here-btn { position: absolute; left: 0; top: 14px; transform: translateX(-50%); pointer-events: auto; border: 0; border-radius: var(--pill); padding: 8px 15px; background: var(--ink); color: #fff; font-size: 14px; letter-spacing: -.224px; white-space: nowrap; }
body.routing .map-ctrls { bottom: 24px; }
body.routing .hint { display: none; }

/* ---------- 모달(호실정보수정) ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(245, 245, 247, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; z-index: 50; padding: 16px; }
.modal-wrap.show { opacity: 1; }
.modal { background: var(--canvas); color: var(--ink); border-radius: var(--r-lg); width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: inset 0 0 0 1px var(--hairline); transform: scale(.98); transition: transform .18s; }
.modal-wrap.show .modal { transform: none; }
.modal.small { width: min(380px, 100%); }
.modal-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: .231px; padding: 22px 24px 4px; }
.modal-body { padding: 8px 24px; font-size: 14px; letter-spacing: -.224px; color: var(--ink-80); line-height: 1.43; }
.modal-body p { margin: 4px 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 20px; flex-wrap: wrap; }
.corr { display: flex; flex-direction: column; gap: 14px; }
.corr-where { display: grid; gap: 4px; background: var(--parchment); border-radius: var(--r-md); padding: 12px 14px; }
.corr-where .k { display: inline-block; width: 72px; color: var(--ink-48); }
.corr .f { display: flex; flex-direction: column; gap: 6px; color: var(--ink-80); }
.corr input, .corr textarea { width: 100%; border: 0; border-radius: var(--r-md); padding: 11px 14px; font-size: 17px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); resize: vertical; }
.drop { border: 1.5px dashed rgba(0, 0, 0, .18); border-radius: var(--r-lg); min-height: 120px; display: grid; place-items: center; text-align: center; padding: 14px; cursor: pointer; color: var(--ink-48); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: rgba(208, 93, 21, .05); }
.drop-preview img { max-width: 100%; max-height: 220px; border-radius: var(--r-sm); display: block; }
.form-status { font-size: 12px; color: #b4580e; }

/* ---------- 알림 ---------- */
.toasts { position: fixed; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: rgba(29, 29, 31, .92); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; letter-spacing: -.224px; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; max-width: min(560px, 90vw); text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { background: rgba(28, 110, 52, .94); }
.toast.warn { background: rgba(120, 76, 0, .94); }
.toast.error { background: rgba(170, 30, 40, .94); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 760px) {
  :root { --top: 52px; }
  .topbar { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 6px 0 12px; }
  .brand { flex-direction: column; gap: 0; align-items: flex-start; line-height: 1.05; }
  .brand .b1 { font-size: 12px; letter-spacing: -.12px; color: var(--ink-48); font-weight: 400; }
  .brand .b2 { font-size: 15px; color: var(--ink); letter-spacing: .2px; }
  .search-btn { min-width: 0; width: 100%; justify-self: stretch; }
  .search-btn .ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hint { display: none; }
  .map-ctrls { bottom: 92px; }
  .bcard { left: 8px; top: calc(var(--top) + 8px); padding-right: 14px; }
  .bname { font-size: 17px; }
  .floor-list { right: 8px; top: calc(var(--top) + 8px); bottom: 150px; }
  .floor-btn { width: 46px; min-height: 34px; }
  .room-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: min(72vh, 620px); border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(24px); }
  .rp-body { grid-template-columns: 1fr; grid-template-rows: minmax(120px, 42%) 1fr; }
  .rp-names { border-right: 0; border-bottom: 1px solid var(--line); }
  .rp-names .names { gap: 28px; }
  .rp-title { font-size: 24px; }
  .route-dock { bottom: 14px; }
  .route-chip .lab { display: none; }
  body.room-open .route-dock { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (min-width: 761px) { body.room-open .route-dock { left: 75%; } }
@media (max-width: 760px) { body.routing .map-ctrls, body.room-open .map-ctrls { display: none; } }

.bcard.fading, .floor-list.fading { opacity: 0; transition: opacity .45s ease; pointer-events: none; }

/* 글자 선택(파랗게 칠해짐) 막기 — 입력칸과 호실 창의 이름·댓글은 선택 가능 */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable],
.room-panel .rp-title, .room-panel .rp-where, .room-panel .nm, .room-panel .cm-list,
.corr-where { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.lbl, .lbl * { -webkit-user-select: none; user-select: none; }

/* 가운데 마커도 누르면 바로 정해짐 */
.center-pin .pin { pointer-events: auto; cursor: pointer; transition: transform .12s; }
.center-pin .pin:active { transform: rotate(-45deg) scale(.9); }

/* 오른쪽 아래 길찾기 실행(초록 종이비행기) — 다이내믹 아일랜드처럼 퍼지며 등장 */
.route-go { position: absolute; right: 16px; bottom: 24px; z-index: 13; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 32px;
  background: #1d1d1f; color: #2FED28; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  opacity: 0; pointer-events: none !important; transform: scale(.25, .18); transform-origin: 70% 80%;
  transition: transform .55s cubic-bezier(.18, 1.35, .4, 1), opacity .22s ease, bottom .25s ease; }
.route-go.show { opacity: 1; pointer-events: auto !important; transform: none; }
.route-go .plane { width: 30px; height: 30px; margin: 2px 2px 0 0; opacity: 0; transform: scale(.4) rotate(-35deg); transition: opacity .25s .18s, transform .45s .18s cubic-bezier(.2, 1.4, .4, 1); }
.route-go.show .plane { opacity: 1; transform: none; }
.route-go .ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px #2FED28; opacity: 0; pointer-events: none; }
.route-go.show .ring { animation: go-ring 1.6s .25s ease-out infinite; }
@keyframes go-ring { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
.route-go:active { transform: scale(.92); }
body.route-go-on .map-ctrls { bottom: 104px; }
@media (prefers-reduced-motion: reduce) { .route-go, .route-go .plane { transition: opacity .2s; } .route-go.show .ring { animation: none; } }

/* 건물 출구(바깥벽이 뚫린 자리) */
.exit-door .exd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 980px; background: #34c759; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: -.1px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.exit-door .exd i { width: 13px; height: 13px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5h5v1.6H4.6v7.8H8v1.6H3zM9.5 4.8 13 8l-3.5 3.2V9H6.5V7h3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2.5h5v1.6H4.6v7.8H8v1.6H3zM9.5 4.8 13 8l-3.5 3.2V9H6.5V7h3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.floor-btn.roof { font-size: 13px; letter-spacing: -.5px; }


/* ---------- 사이트 잠금: 반투명 하늘색 + 사선 '잠금' 무늬 + 가운데 '허락 받는 중' ---------- */
/* 화면 전체에서 입력을 막되, 색·무늬는 위쪽 막대 아래에만 — 공식 로고(흰 바탕)는 색이 덮이거나 무늬 밑에 깔리면 안 됨(디자인 가이드) */
.site-lock { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px;
  touch-action: none; cursor: not-allowed; animation: lock-in .35s ease both; }
.site-lock::before { content: ''; position: absolute; inset: var(--top) 0 0 0; z-index: -1;
  background: rgba(100, 200, 250, .34) var(--lock-pat, none) repeat 0 0 / 96px 80px;
  backdrop-filter: blur(1.5px) saturate(120%); -webkit-backdrop-filter: blur(1.5px) saturate(120%); }
@keyframes lock-in { from { opacity: 0; } to { opacity: 1; } }
.site-lock .lock-card { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: min(320px, 86vw); padding: 26px 30px 20px;
  border-radius: 28px; background: rgba(255, 255, 255, .86); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 18px 50px rgba(0, 60, 120, .22), inset 0 0 0 1px rgba(255, 255, 255, .7); cursor: default; text-align: center; }
.site-lock .lock-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #0a84ff; color: #fff; margin-bottom: 4px;
  animation: lock-pulse 2.4s ease-in-out infinite; }
.site-lock .lock-ico .ico { width: 24px; height: 24px; background: #fff; }
@keyframes lock-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, .45); } 50% { box-shadow: 0 0 0 12px rgba(10, 132, 255, 0); } }
.site-lock b { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.site-lock small { font-size: 14px; color: var(--ink-48); letter-spacing: -.2px; }
body.site-locked .map-ctrls, body.site-locked .route-dock, body.site-locked .hint { filter: grayscale(.4); }

/* ---------- 관리자 지도(어두운 바탕) ---------- */
body.admin-map { background: var(--am-bg, #383838); }
/* 관리자 지도: 관리자로 확인되기 전에는 물감도 글자도 띄우지 않음 — 배경만, 그것도 관리자 사이트가 처음 띄우는 색(#404040)과 같게(일반 사용자는 그대로 관리자 사이트로 넘어가므로 이어져 보임) */
html.am-wait { background: #404040; }
html.am-wait body { background: none; }
body.admin-map .topbar { background: rgba(32, 33, 36, .82); border-bottom-color: rgba(255, 255, 255, .08); }
body.admin-map .brand .b1 { color: #f5f5f7; }
body.admin-map .brand .b2 { color: #8e8e93; }
body.admin-map .search-btn { background: rgba(255, 255, 255, .1); color: #aeaeb2; }
body.admin-map .icon-btn.gear { background: rgba(255, 255, 255, .12); color: #fff; }
body.admin-map .icon-btn.gear .ico { background: #fff; }
body.admin-map .hint { color: #8e8e93; }
body.admin-map .fac-label { color: #d1d1d6; text-shadow: 0 0 2px #000, 0 0 4px #000; }
body.admin-map .park-name { color: #b8c7d6; text-shadow: 0 0 2px #000, 0 0 3px #000; }
.admin-bar { position: absolute; top: calc(var(--top) + 10px); right: 12px; z-index: 19; display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px;
  border-radius: 980px; background: rgba(28, 28, 30, .86); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: #f5f5f7; font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.admin-bar .ab-badge { font-weight: 700; letter-spacing: -.2px; color: #ff9f0a; margin-right: 4px; }
.admin-bar .ab-lock { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 980px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.admin-bar .ab-lock input { position: absolute; opacity: 0; pointer-events: none; }
.admin-bar .ab-lock .sw { position: relative; width: 36px; height: 22px; border-radius: 11px; background: #48484a; transition: background .2s; flex: none; }
.admin-bar .ab-lock .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.admin-bar .ab-lock input:checked + .sw { background: #D05D15; }
.admin-bar .ab-lock input:checked + .sw::after { transform: translateX(14px); }
.admin-bar .ab-lock .st { display: block; font-size: 11px; color: #8e8e93; }
.admin-bar .ab-link { color: #f5f5f7; text-decoration: none; padding: 6px 10px; border-radius: 980px; }
.admin-bar .ab-link:hover { background: rgba(255, 255, 255, .1); }
body.admin-map.building-open .admin-bar { display: none; }
@media (max-width: 760px) { .admin-bar { top: auto; bottom: 84px; right: 8px; left: 8px; justify-content: space-between; } .admin-bar .ab-lock .st { display: none; } }

/* 관리자: 댓글 지우기 */
.cm-list li { position: relative; }
.cm-del { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 980px; padding: 3px 10px; font-size: 12px; background: rgba(255, 59, 48, .1); color: #d70015; cursor: pointer; }
.cm-del:hover { background: rgba(255, 59, 48, .2); }
.admin-edit select { width: 100%; border: 0; border-radius: var(--r-md); padding: 11px 14px; font-size: 17px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.muted.small { font-size: 13px; color: var(--ink-48); margin: 0; }

/* ---------- 관리자: 벽 수정 ---------- */
.floor-btn.edit-btn { background: #1d1d1f; color: #fff; margin-bottom: 6px; }
.floor-btn.edit-btn.on { background: #ff6a00; color: #fff; }
.wall-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 14; display: flex; flex-direction: column; gap: 8px;
  width: min(880px, calc(100vw - 24px)); padding: 10px 10px 10px 16px; border-radius: 22px; background: rgba(28, 28, 30, .92); color: #f5f5f7;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.wall-bar .wb-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wall-bar .wb-row > b { font-size: 15px; color: #ff9f0a; white-space: nowrap; flex: none; }
.wall-bar .wb-modes { display: flex; gap: 2px; padding: 2px; border-radius: 980px; background: rgba(255, 255, 255, .08); flex: none; }
.wall-bar .wb-mode { border: 0; background: none; color: #d1d1d6; font-size: 13px; padding: 6px 12px; border-radius: 980px; cursor: pointer; white-space: nowrap; }
.wall-bar .wb-mode:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.wall-bar .wb-mode.on { background: #ff6a00; color: #fff; font-weight: 600; }
.wall-bar .wb-mode:disabled { opacity: .35; cursor: default; }
.wall-bar .wb-side { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.wall-bar .wb-st { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #aeaeb2; }
.wall-bar select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 980px; padding: 6px 28px 6px 12px; font-size: 13px; color: #f5f5f7; cursor: pointer;
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d1d6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 9px center/12px no-repeat; }
.wall-bar select option, .ov-panel select option, .ov-panel select optgroup { color: #1d1d1f; background: #fff; }
.wall-bar .wb-hint { flex: 1; min-width: 0; font-size: 12px; color: #aeaeb2; line-height: 1.35; }
.wall-bar .wb-acts { display: flex; gap: 6px; flex: none; }
.wall-bar .btn.small { padding: 8px 14px; font-size: 14px; }
.wall-bar .wb-ov { padding: 6px 12px; font-size: 13px; }
.wall-bar .btn.ghost { background: rgba(255, 255, 255, .1); color: #f5f5f7; box-shadow: none; }
.wall-bar .btn.ghost.on { background: #D05D15; color: #fff; }
.wall-bar .btn:disabled { opacity: .4; cursor: default; }
.wall-bar.dirty .wb-row > b::after { content: ' · 저장 안 됨'; color: #ff453a; font-weight: 500; }
@media (max-width: 760px) {
  .wall-bar { bottom: 10px; padding: 10px; gap: 8px; border-radius: 18px; }
  .wall-bar .wb-row { flex-wrap: wrap; gap: 8px; }
  .wall-bar .wb-side { margin-left: 0; }
  .wall-bar .wb-hint { flex-basis: 100%; }
  .wall-bar .wb-acts { margin-left: auto; }
}
/* 구조도 사진 겹쳐 보기 창 */
.ov-panel { position: absolute; left: 12px; bottom: 132px; z-index: 14; width: 300px; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px;
  border-radius: 18px; background: rgba(28, 28, 30, .92); color: #f5f5f7; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 13px; }
.ov-panel .ov-head { display: flex; align-items: center; justify-content: space-between; }
.ov-panel .ov-head b { color: #64d2ff; font-size: 14px; }
.ov-panel .ov-x { border: 0; background: rgba(255, 255, 255, .1); color: #f5f5f7; width: 26px; height: 26px; border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer; }
.ov-panel select { width: 100%; appearance: none; -webkit-appearance: none; border: 0; border-radius: 10px; padding: 8px 30px 8px 10px; font-size: 13px; color: #f5f5f7; cursor: pointer;
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d1d6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center/12px no-repeat; }
.ov-panel .ov-row { display: flex; align-items: center; gap: 8px; }
.ov-panel .ov-row > span { color: #aeaeb2; flex: none; }
.ov-panel .ov-row input[type=range] { flex: 1; accent-color: #EF8903; }
.ov-panel .ov-row.acts { flex-wrap: wrap; gap: 6px; }
.ov-panel .btn.small { padding: 6px 11px; font-size: 13px; }
.ov-panel .btn.ghost { background: rgba(255, 255, 255, .1); color: #f5f5f7; box-shadow: none; }
.ov-panel .btn.ghost.on { background: #D05D15; color: #fff; }
.ov-panel .btn:disabled { opacity: .4; cursor: default; }
.ov-panel .ov-seg { display: flex; gap: 2px; padding: 2px; border-radius: 980px; background: rgba(255, 255, 255, .08); }
.ov-panel .ov-seg[hidden] { display: none; }
.ov-panel .ov-seg button { flex: 1; border: 0; background: none; color: #d1d1d6; font-size: 12px; padding: 6px 8px; border-radius: 980px; cursor: pointer; }
.ov-panel .ov-seg button.on { background: #D05D15; color: #fff; font-weight: 600; }
.ov-panel .ov-note { margin: 0; font-size: 12px; color: #8e8e93; line-height: 1.4; }
@media (max-width: 760px) { .ov-panel { left: 8px; right: 66px; width: auto; bottom: auto; top: calc(var(--top) + 64px); gap: 8px; padding: 10px 12px 12px; } .ov-panel .ov-note { display: none; } }
/* 수정 중: 이름 없는 칸, 저장 전 새 칸 */
.room-label .rn.unnamed { color: #8e8e93; font-weight: 500; font-style: italic; }
.room-label .rn.new { color: var(--primary); }
.wb-from { width: 100%; margin: 8px 0; }
body.wall-edit .route-dock, body.wall-edit .hint, body.wall-edit .route-go { display: none !important; }
body.wall-edit .lbl.clickable .rn.fac { pointer-events: none; }
body.wall-edit .room-label { opacity: .85; }
.room-label .rn.unnamed:hover, .room-label .rn.new:hover { color: #fff; }
/* 건물 보기: 중앙점에서 멀어질수록 호실 이름표도 흐려짐 */
.lbl.room-label, .lbl.floor-status, .lbl.exit-door { opacity: var(--bv-in, 1); transition: opacity .12s; }
body.bv-away .lbl.room-label .rn, body.bv-away .lbl.floor-status .fs { pointer-events: none; }
/* 구글 로그인 */
.login-body p { margin: 4px 0 12px; }
.login-body .gbtn, .settings .gbtn { min-height: 44px; display: flex; justify-content: center; margin: 6px 0 10px; }
.settings .account .gbtn { justify-content: flex-start; }
.settings .acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .04); }
.settings .acc-name { font-size: 14px; color: var(--ink-80); }
.room-panel.need-login .cm-form textarea { cursor: pointer; background: rgba(208, 93, 21, .05); }
.set-body .muted.small { margin: 4px 8px; }
.settings .gbtn { margin: 6px 8px 8px; }
.settings .acc-row { margin: 0 8px; }
/* 일반 사용자: 호실 정보 비공개 층 */
.floor-status.st-private .fs { flex-direction: column; gap: 2px; padding: 10px 20px 9px; }
.floor-status.st-private .fs .row { display: inline-flex; align-items: center; gap: 8px; }
.floor-status.st-private .fs small { font-size: 12px; font-weight: 500; letter-spacing: -.12px; color: #c7c7cc; }
/* 처음 안내(동의) */
.notice-modal .modal-body { padding-top: 26px; text-align: center; }
.notice-modal .notice p { margin: 6px 0; font-size: 16px; line-height: 1.5; color: var(--ink); word-break: keep-all; }
.notice-modal .notice p:first-child { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 14px; }
.notice-modal .modal-actions { justify-content: center; }
.notice-modal .modal-actions .btn { min-width: 140px; }
/* 피드백 */
.settings .feedback-sec .btn { margin: 4px 8px 0; }
.feedback textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: var(--r-md); padding: 12px 14px; font: inherit; font-size: 16px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); resize: vertical; }

/* ---------- 관리자 지도: 바깥 풍경 수정 ---------- */
.admin-bar .ab-edit { border: 0; background: #ff9f0a; color: #1c1c1e; font: inherit; font-weight: 700; cursor: pointer; }
.admin-bar .ab-edit:hover { background: #ffb340; }
.admin-bar .ab-edit.on { background: #D05D15; color: #fff; }
.admin-bar .ab-sel { background: rgba(255, 255, 255, .08); color: #f5f5f7; border: 0; border-radius: 980px; padding: 6px 8px; font: inherit; font-size: 12px; max-width: 128px; }
.admin-bar .ab-sel option { color: #111; }
.oe-panel { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; width: min(760px, calc(100% - 24px));
  background: rgba(28, 28, 30, .94); color: #f5f5f7; border-radius: 16px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.oe-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oe-sp { flex: 1; }
.oe-btn { border: 0; border-radius: 980px; padding: 7px 13px; background: rgba(255, 255, 255, .1); color: #f5f5f7; font: inherit; font-weight: 600; cursor: pointer; }
.oe-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.oe-btn:disabled { opacity: .4; cursor: default; }
.oe-btn.on { background: #f5f5f7; color: #1c1c1e; }
.oe-btn.accent { box-shadow: inset 0 0 0 1.5px #ff9f0a; }
.oe-btn.accent.on { background: #ff9f0a; color: #1c1c1e; box-shadow: none; }
.oe-btn.primary { background: #D05D15; color: #fff; }
.oe-btn.primary:disabled { background: rgba(208, 93, 21, .35); }
.oe-btn.danger { background: rgba(255, 69, 58, .2); color: #ff6961; }
.oe-info { margin: 8px 2px 0; color: #aeaeb2; font-size: 12px; line-height: 1.45; }
.oe-props { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.oe-props:empty { display: none; }
.oe-f { display: flex; align-items: center; gap: 6px; color: #d1d1d6; }
.oe-f input[type=number] { width: 66px; padding: 5px 7px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; }
.oe-f input[type=checkbox] { width: 17px; height: 17px; accent-color: #ff9f0a; }
.oe-seg { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 9px; padding: 2px; }
.oe-seg button { border: 0; background: none; color: #d1d1d6; padding: 4px 10px; border-radius: 7px; font: inherit; cursor: pointer; }
.oe-seg button.on { background: #f5f5f7; color: #1c1c1e; font-weight: 700; }
.oe-note { color: #8e8e93; font-size: 12px; }
body.out-editing .hint, body.out-editing .route-btn, body.out-editing .map-ctrls { display: none; }
@media (max-width: 760px) { .oe-panel { bottom: 8px; padding: 8px; } body.out-editing .admin-bar { bottom: auto; top: calc(var(--top) + 6px); } }

/* ---------- 동국 현수막 디자인: 하얀 바탕 · 주황 강조 · 사선 색 띠 ---------- */
/* 위쪽 막대: 하얀 유리 + 아래 사선 색 띠, 왼쪽은 주황 덮개 표시 + 웜그레이 '동국대학교' + 주황 'WISE CAMPUS' */
.topbar { background: rgba(255, 255, 255, .84); border-bottom: 0; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--band); pointer-events: none; }
.brand { align-items: center; gap: 8px; }
.brand::before { content: ''; width: 22px; height: 22px; flex: none; background: var(--mark); clip-path: var(--chamfer); }
.brand .b1 { color: var(--warm-ink); font-weight: 700; }
.brand .b2 { color: var(--primary); font-weight: 700; letter-spacing: .6px; }
.search-btn { background: rgba(160, 150, 144, .13); color: #857b75; }
.search-btn:hover { background: rgba(160, 150, 144, .2); }
.ctl, .topbar .gear { background: rgba(255, 255, 255, .88); box-shadow: 0 1px 3px rgba(70, 45, 20, .14), inset 0 0 0 1px rgba(0, 0, 0, .05); }
.topbar .gear { background: transparent; box-shadow: none; }
.topbar .gear:hover { background: rgba(160, 150, 144, .16); }

/* 주황 버튼 */
.btn.primary { background: var(--primary); }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.route-btn { background: linear-gradient(135deg, #EF8903, #D05D15 70%); box-shadow: 0 6px 18px rgba(208, 93, 21, .32); }
.route-btn:hover { background: linear-gradient(135deg, #E57F02, #BD5212 70%); }
.floor-btn.on { background: var(--primary); }
.room-label .rn:hover, .room-label .rn.sel { background: var(--primary); }

/* 창(모달): 위쪽 사선 색 띠 · 뒤는 따뜻한 흰 유리 */
.modal-wrap { background: rgba(250, 248, 245, .42); }
.modal { overflow: hidden auto; }
.notice-modal::before { content: ''; display: block; height: 6px; background: var(--band); }
.notice-modal .notice p:first-child { color: var(--warm-ink); }
.notice-modal .notice p:first-child::before { content: ''; display: block; width: 30px; height: 30px; margin: 0 auto 10px; background: var(--mark); clip-path: var(--chamfer); }

/* 좁은 화면: 표시 + 두 줄 이름 */
@media (max-width: 760px) {
  .brand { display: grid; grid-template-columns: auto auto; column-gap: 7px; align-items: center; }
  .brand::before { grid-row: 1 / 3; width: 24px; height: 24px; }
  .brand .b1 { color: var(--warm-ink); font-weight: 600; }
  .brand .b2 { color: var(--primary); font-weight: 700; }
}
/* 관리자 지도(어두운 바탕)는 글자색만 맞춤 */
body.admin-map .brand .b1 { color: #f5f5f7; }
body.admin-map .brand .b2 { color: #EF8903; }
body.admin-map .search-btn { background: rgba(255, 255, 255, .1); color: #aeaeb2; }
body.admin-map .ctl { background: rgba(255, 255, 255, .9); }
body.admin-map .topbar .gear:hover { background: rgba(255, 255, 255, .16); }
/* 관리자 지도 '항공사진' 패널(왼쪽 위) — 사진 크기 버튼은 지도 확대/축소(오른쪽 아래 ±)와 따로 */
.admin-bar .ab-aerial { border: 0; background: none; font: inherit; cursor: pointer; }
.admin-bar .ab-aerial.on { box-shadow: inset 0 0 0 1.5px #ff9f0a; }
.admin-bar .ab-aerial.open { background: #f5f5f7; color: #1c1c1e; }
.ae-panel { position: absolute; left: 12px; top: calc(var(--top) + 12px); z-index: 19; width: 272px; max-height: calc(100% - var(--top) - 24px); overflow-y: auto;
  background: rgba(28, 28, 30, .94); color: #f5f5f7; border-radius: 16px; padding: 10px 12px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: thin; }
.ae-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: 14px; }
.ae-head b { color: #ff9f0a; }
.ae-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #f5f5f7; font: inherit; cursor: pointer; }
.ae-x:hover { background: rgba(255, 255, 255, .18); }
.ae-row { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.ae-row.off, .ae-sec.off { opacity: .45; }
.ae-lab { color: #d1d1d6; flex: none; }
.ae-range { flex: 1; min-width: 0; accent-color: #ff9f0a; }
.ae-val { min-width: 54px; text-align: center; color: #f5f5f7; font-variant-numeric: tabular-nums; font-weight: 600; }
.ae-val.wide { min-width: 0; flex: 1; text-align: left; white-space: pre; color: #d1d1d6; font-weight: 500; line-height: 1.5; }
.ae-switch, .ae-check { cursor: pointer; }
.ae-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ae-switch .sw { position: relative; width: 36px; height: 22px; border-radius: 11px; background: #48484a; transition: background .2s; flex: none; }
.ae-switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ae-switch input:checked + .sw { background: #D05D15; }
.ae-switch input:checked + .sw::after { transform: translateX(14px); }
.ae-switch input:focus-visible + .sw { outline: 2px solid #ff9f0a; outline-offset: 2px; }
.ae-check input { width: 17px; height: 17px; accent-color: #ff9f0a; margin: 0; }
.ae-sec { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ae-sec.ae-row { margin-top: 10px; }
.ae-cap { color: #8e8e93; font-size: 11.5px; }
.ae-btn { min-width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #f5f5f7; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.ae-btn.wide { flex: 1; padding: 0 10px; font-size: 13px; font-weight: 600; }
.ae-btn:hover { background: rgba(255, 255, 255, .18); }
.ae-btn:active { background: rgba(255, 159, 10, .35); }
.ae-pad { display: grid; grid-template-columns: repeat(3, 34px); grid-auto-rows: 32px; gap: 4px; flex: none; }
.ae-dot { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; place-self: center; }
.ae-status { margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 159, 10, .14); color: #ffd60a; font-size: 12px; }
.ae-note { margin-top: 10px; color: #8e8e93; font-size: 11.5px; line-height: 1.45; }
body.admin-map.building-open .ae-panel { display: none; }
@media (max-width: 760px) { .ae-panel { left: 8px; right: 8px; width: auto; max-height: 46vh; } }
/* 수정: 범위·선·아이콘 그리기 */
.oe-tools { margin-top: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.oe-tools:empty { display: none; }
.oe-range { width: 120px; accent-color: #ff9f0a; }
.oe-range.short { width: 72px; }
.oe-f input.oe-num { width: 58px; padding: 4px 6px; border-radius: 7px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-variant-numeric: tabular-nums; }
.oe-u { color: #8e8e93; font-size: 12px; margin-left: -2px; }
.oe-v { min-width: 38px; color: #f5f5f7; font-variant-numeric: tabular-nums; }
.oe-f input.oe-text { width: 150px; padding: 5px 8px; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; }
.oe-del { position: absolute; left: 0; top: 0; z-index: 18; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #ff453a; color: #fff;
  font-size: 13px; font-weight: 800; line-height: 26px; text-align: center; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, .35); }
.oe-del:hover { background: #ff6961; transform-origin: center; }
.oe-del[hidden] { display: none; }
.modal input.oe-name-in { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .15); font: inherit; font-size: 15px; }
/* 아이콘 이름표(자전거 보관소 등) */
.icon-label { display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: var(--pill); background: #fff; color: #1d1d1f; font-size: 12px; font-weight: 600; letter-spacing: -.12px; line-height: 1.3; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); }
.icon-label .ic { width: 18px; height: 18px; border-radius: 50%; background: #0a84ff; position: relative; flex: none; }
.icon-label .ic::after { content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
body.building-open .icon-label { display: none !important; }
body.admin-map .icon-label { background: #2c2c2e; color: #f5f5f7; }
/* 건물 이름: 글자 뒤에 알약 모양 배경 — 낮은 밝은 배경, 밤은 어두운 배경·흰 글자(번진 그림자 대신 또렷하게) */
.bld-label { padding: 2px 8px; border-radius: 980px; background: rgba(255, 255, 255, .86); color: #1d1d1f; text-shadow: none; box-shadow: 0 1px 3px rgba(40, 30, 20, .2); }
body.is-night .bld-label { background: rgba(22, 22, 26, .82); color: #f5f5f7; box-shadow: 0 1px 4px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12); }
body.is-night .fac-label { color: #e5e5ea; text-shadow: 0 0 2px #000, 0 0 4px #000; }
body.is-night .park-name { color: #c7d3df; text-shadow: 0 0 2px #000, 0 0 3px #000; }
body.is-night .hint { color: rgba(235, 235, 245, .6); }

/* ---------- 동국대학교 공식 로고(왼쪽 위) — 대학 디자인 가이드 규정 ----------
   · 흰 바탕(복잡한 무늬·사진 위 금지 → 위쪽 막대는 반투명 유리 대신 완전한 흰색)
   · 둘레 여백 a = 로고 글자 'd' 의 높이 = 로고 전체 높이의 약 42%(가이드 여백 그림 기준, 600×187 로고에서 d 가 78)
     로고 높이 24px → a = 10px. 위쪽 막대 52px: 위 14px · 아래 14px(그중 3px 는 사선 색 띠 → 띠까지 11px) · 왼쪽 16px(좁은 화면 12px) · 검색칸까지 12px
     (예전 28px/26px 는 아래 색 띠까지 9~10px, 좁은 화면에서 검색칸까지 8px 라 여백 a(11.7px/10.8px)보다 좁았음)
   · 비율·색 그대로, 테두리·그림자 없음, 다른 글자(WISE CAMPUS 등)와 붙여 쓰지 않음 */
.topbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand { display: flex; align-items: center; padding: 0; gap: 0; }
.brand::before { content: none; display: none; }
.brand-logo { display: block; height: 24px; width: auto; -webkit-user-drag: none; user-select: none; }
@media (max-width: 760px) {
  .brand { display: flex; margin-right: 4px; }      /* 막대 칸 간격 8px + 4px = 검색칸까지 12px(여백 a 10px 이상) */
  .brand-logo { height: 24px; }
}
/* 관리자 지도도 로고가 흰 바탕 위에 오도록 위쪽 막대만 흰색 */
body.admin-map .topbar { background: #fff; border-bottom-color: transparent; }
body.admin-map .search-btn { background: rgba(160, 150, 144, .13); color: #857b75; }
body.admin-map .icon-btn.gear { background: transparent; color: var(--ink); }
body.admin-map .icon-btn.gear .ico { background: currentColor; }
body.admin-map .topbar .gear:hover { background: rgba(160, 150, 144, .16); }

/* 설정 맨 아래: 피드백 주기 · 메일 주소 */
.set-body .contact-sec { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.set-body .contact-mail { margin: 2px 8px 0; font-size: 15px; -webkit-user-select: text; user-select: text; }
.set-body .contact-mail a { color: var(--primary); text-decoration: none; font-weight: 600; }
.set-body .contact-mail a:hover { text-decoration: underline; }

/* 건물 이름 배경(알약)을 80%로: 높이 21.6px → 17.3px, 좌우 여백 8px → 5px (글자 크기는 그대로) */
.bld-label { padding: 1.5px 5px; line-height: 1.2; }

/* 댓글: 내 댓글 지우기 · 신고 */
.cm-report { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 980px; padding: 3px 10px; font-size: 12px; background: rgba(0, 0, 0, .05); color: var(--ink-48); cursor: pointer; }
.cm-report:hover { background: rgba(255, 149, 0, .14); color: #b35c00; }
.cm-report.done { cursor: default; background: none; color: var(--ink-48); }
.cm-list li p { padding-right: 46px; }
.cm-list .meta .cm-flag { color: #d70015; font-weight: 600; }
.report-modal .rp-quote { margin: 0 0 10px; font-size: 14px; color: var(--ink-48); word-break: break-word; }
.report-modal .rp-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 14px; }
.report-modal .rp-reasons label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.report-modal .rp-detail { width: 100%; box-sizing: border-box; resize: vertical; border: 0; border-radius: var(--r-md); padding: 8px 10px; font: inherit; font-size: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* 비속어 확인 창: 위쪽 사선 띠 · 제목 앞 팔각 표식 · 오른쪽 위 X · 가려질 부분 강조 */
.pf-modal { position: relative; }
.pf-modal::before { content: ''; display: block; height: 6px; background: var(--band); }
.pf-modal .modal-title { display: flex; align-items: center; gap: 10px; padding: 20px 64px 2px 24px; font-size: 19px; }
.pf-modal .modal-title::before { content: ''; width: 22px; height: 22px; flex: none; background: var(--mark); clip-path: var(--chamfer); }
.pf-modal .pf-x { position: absolute; top: 18px; right: 14px; background: rgba(0, 0, 0, .05); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pf-modal .pf-x:hover { background: rgba(0, 0, 0, .09); }
.pf-modal .pf-x .ico { width: 16px; height: 16px; }
.pf-modal .pf-q { margin: 4px 0 12px; font-size: 15px; color: var(--ink); letter-spacing: -.24px; }
.pf-modal .pf-preview { margin: 0; padding: 11px 13px; border-radius: var(--r-md); background: var(--parchment); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-80); white-space: pre-wrap; word-break: break-word; max-height: 132px; overflow: auto; }
.pf-modal .pf-preview mark { background: rgba(208, 93, 21, .13); color: var(--primary); border-radius: 5px; padding: 0 3px; font-weight: 600; letter-spacing: 1px; }
.pf-modal .pf-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-48); letter-spacing: -.12px; }
.pf-modal .modal-actions { padding-top: 16px; flex-wrap: nowrap; }
.pf-modal .modal-actions .btn { flex: 1; }

/* ---------- 물감 연출(js/paint.js) ----------
   처음 배경은 짙은 회색 한 가지 색(#404040). 화면이 다 만들어져 뒤로 물러나면 88% 밝기 = #383838 — 관리자 지도 '배경' 슬라이더의 22% 값(사이트 배경색의 기준). 가운데에서 다섯 가지 색 물감이 시계 방향으로 돌다가, 글자·아이콘·창으로 날아가 그 모양이 됨. 다 만들어지면 가운데 물감이 뚫리듯 벌어지며 지도가 보임
   다 만들어지면 지도(창)가 가운데에서부터 물감을 밀어내며 뚫고 나오고, 밀려난 그 물감이 큰 고리가 되어 지도(화면 내용) 둘레를 계속 돎 — 박자를 타는 소리 막대처럼 솟았다 가라앉음(밝기 낮춤 · 흐림은 관리자 사이트에서 정함)
   레이어(뒤→앞): 회색 배경(html) < 밤·뒤로 간 배경 어둡게(body::before, 0) < 뒤에서 도는 물감 고리(#paint-ring, 0) < #map(1)·#labels(2) 3D 지도
                  < #paint-cover 회색 덮개(3 · 뚫리기 전까지만) < #ui(5) < 가운데에서 도는 물감 · 날아가는 물감(#paint-fx, 45) */
html.pt-field { background: #404040; }
html.pt-field body { background: none; }
/* 지도 둘레 배경의 밝기: 밤에는 어두워지고(--bg-b: 낮 1 · 밤 .33 — main.js), 화면이 다 만들어져 배경이 뒤로 물러나면 조금 더 어두워짐(--bg-r: #404040 → #383838). 관리자 사이트도 같은 배경 */
body[data-paint="field"]::before { content: ''; position: fixed; inset: 0; z-index: 0; background: #000; opacity: calc(1 - var(--bg-b, 1) * var(--bg-r, 1)); transition: opacity 1.2s ease; pointer-events: none; }
body.pt-revealed { --bg-r: .88; }
/* 불러오는 동안(회색 덮개가 덮고 있는 동안)은 밤에도 배경을 어둡게 하지 않음 → 뚫리며 덮개가 걷힐 때 배경이 갑자기 바뀌지 않고 서서히 어두워짐 */
body.pt-cover { --bg-b: 1; }
/* 지도가 준비될 때까지 가려 두는 회색 덮개(배경과 같은 회색) — 뚫리는 순간 걷힘 */
#paint-cover { position: fixed; inset: 0; z-index: 3; background: #404040; transition: opacity .5s ease; touch-action: none; }
#paint-cover.out { opacity: 0 !important; pointer-events: none; transition: opacity .5s ease; }
/* 물감을 뚫고 나오는 내용(지도 · 채팅 창 등): 가운데에서부터 둥글게 드러남 — 그 가장자리가 뒤 레이어의 물감을 바깥으로 밀어냄
   (--pt-h: 드러난 원의 반지름 · --pt-x, --pt-y: 원의 가운데(그 요소 기준) · 가장자리 26px 는 번지게 = paint.js 의 FEATHER) */
.pt-reveal {
  -webkit-mask-image: radial-gradient(circle at var(--pt-x, 50%) var(--pt-y, 50%), #000 calc(var(--pt-h, 0px) - 26px), transparent var(--pt-h, 0px));
  mask-image: radial-gradient(circle at var(--pt-x, 50%) var(--pt-y, 50%), #000 calc(var(--pt-h, 0px) - 26px), transparent var(--pt-h, 0px));
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* 물감을 그리는 캔버스(가운데에서 도는 물감 · 날아가는 물감): 맨 위 */
#paint-fx { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }
/* 뒤로 물러나 계속 도는 물감 고리: 배경 바로 위 · 지도와 화면 내용 아래(낮은 해상도로 그려 화면 크기로 늘림) */
#paint-ring { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
/* 물감을 그릴 수 없는 기기: 다섯 가지 색 점이 시계 방향으로 도는 단순한 모양 */
#paint-fb { position: fixed; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; z-index: 45; pointer-events: none; opacity: 0; transition: opacity .3s; animation: pt-spin 4.3s linear infinite; }
#paint-fb.on { opacity: 1; }
#paint-fb i { position: absolute; border-radius: 50%; }
#paint-fb i:nth-child(1) { left: 34px; top: 46px; width: 48px; height: 46px; background: #fff; }
#paint-fb i:nth-child(2) { left: 4px; top: 40px; width: 40px; height: 40px; background: #9E9690; }
#paint-fb i:nth-child(3) { left: 6px; top: 10px; width: 36px; height: 38px; background: #C3BDB9; }
#paint-fb i:nth-child(4) { left: 32px; top: 0; width: 44px; height: 40px; background: #DC6B02; }
#paint-fb i:nth-child(5) { left: 54px; top: 24px; width: 42px; height: 42px; background: #B25501; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
#map { z-index: 1; }
#labels { z-index: 2; }
#ui, .site-foot { z-index: 5; }
/* 화면이 준비되기 전까지 숨겨 둔 오브젝트(스크립트가 멈춰도 14초 뒤에는 저절로 보임) */
.pt-wait { opacity: 0; pointer-events: none !important; animation: pt-failsafe .5s 14s both; }
@keyframes pt-failsafe { from { opacity: 0; } to { opacity: 1; } }
/* 바탕(단추)은 만들어졌고 그 안의 글자·아이콘은 아직 물감이 날아오는 중 */
.pt-noink { -webkit-text-fill-color: transparent; }
.pt-noink > * { opacity: 0; animation: pt-failsafe .5s 14s both; }
#pt-msg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 46; max-width: min(420px, 86vw); padding: 20px 24px; border-radius: 18px; background: #fff; color: var(--ink-80); font-size: 15px; line-height: 1.5; text-align: center; box-shadow: 0 14px 44px rgba(0, 0, 0, .22); }

/* 위쪽 막대의 흰 바탕과 아래 색 띠는 ::before 한 장에 그림(로고는 그 위에 그대로) */
.topbar, body.admin-map .topbar { background: none; }
.topbar::after { content: none; }
.topbar::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--band) left bottom / 100% 3px no-repeat, #fff; }
.topbar.pt-noband::before { background: #fff; }
.bar-edge { display: none; }

/* 물감으로 만드는 화면에서는 단추의 바탕(색·그림자)을 ::before 에 그림 → 바탕만 물감처럼 움직이고 그 안의 글자·아이콘은 또렷하게 그대로 */
body[data-paint="field"] :is(.ctl, .route-btn, .search-btn) { position: relative; isolation: isolate; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-paint="field"] :is(.ctl, .route-btn, .search-btn)::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; transition: background .15s; }
body[data-paint="field"] .ctl::before { background: rgba(255, 255, 255, .88); box-shadow: 0 1px 3px rgba(70, 45, 20, .14), inset 0 0 0 1px rgba(0, 0, 0, .05); }
body[data-paint="field"] .route-btn::before { background: linear-gradient(135deg, #EF8903, #D05D15 70%); box-shadow: 0 6px 18px rgba(208, 93, 21, .32); }
body[data-paint="field"] .route-btn:hover::before { background: linear-gradient(135deg, #E57F02, #BD5212 70%); }
body[data-paint="field"] .search-btn::before { background: rgba(160, 150, 144, .13); }
body[data-paint="field"] .search-btn:hover::before { background: rgba(160, 150, 144, .2); }

/* ---------- 만들어진 글자·단추는 그 뒤에도 물감처럼 살짝 꿈틀거림(body.pt-alive — paint.js 가 켬) ----------
   · 둥근 단추: 살짝 찌그러진 방울 모양 바탕이 천천히 돌면서 숨 쉼 → 가장자리가 일렁여 보임
   · 길쭉한 단추(검색칸·길찾기): 모서리 둥글기와 크기가 말랑하게 바뀜
   · 위쪽 막대: 아래 가장자리와 색 띠가 잔물결처럼 흐름(공식 로고는 움직이지 않음 — 변형 금지)
   · 글자: 한 자씩(.pt-ch) 물결 타듯 오르내림 · 아이콘: 살짝 숨 쉼
   · 한참 손대지 않으면 쉼(body.pt-rest) · '움직임 줄이기'를 켠 기기에서는 켜지지 않음 */
@keyframes pt-turn { to { rotate: 1turn; } }
@keyframes pt-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.05 .96; } }
@keyframes pt-pill {
  0%, 100% { border-radius: var(--pr) var(--pr) var(--pr) var(--pr) / var(--pr) var(--pr) var(--pr) var(--pr); scale: 1; }
  25% { border-radius: calc(var(--pr) * 1.12) calc(var(--pr) * .84) calc(var(--pr) * 1.16) calc(var(--pr) * .9) / calc(var(--pr) * .84) calc(var(--pr) * 1.14) calc(var(--pr) * .9) calc(var(--pr) * 1.1); scale: 1.012 .97; }
  50% { border-radius: calc(var(--pr) * .9) calc(var(--pr) * 1.14) calc(var(--pr) * .86) calc(var(--pr) * 1.1) / calc(var(--pr) * 1.14) calc(var(--pr) * .9) calc(var(--pr) * 1.1) calc(var(--pr) * .84); scale: .99 1.025; }
  75% { border-radius: calc(var(--pr) * 1.14) calc(var(--pr) * .92) calc(var(--pr) * 1.06) calc(var(--pr) * .84) / calc(var(--pr) * .9) calc(var(--pr) * 1.1) calc(var(--pr) * .84) calc(var(--pr) * 1.14); scale: 1.008 .982; }
}
@keyframes pt-breathe2 { 0%, 100% { scale: 1; } 50% { scale: 1.022 .972; } }
@keyframes pt-ch { 0%, 100% { translate: 0 .9px; rotate: -2deg; } 50% { translate: 0 -.9px; rotate: 2deg; } }
@keyframes pt-ico { 0%, 100% { scale: 1; } 50% { scale: 1.08 .93; } }
@keyframes pt-wave { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: -260px 0; mask-position: -260px 0; } }
@keyframes pt-wave-b { from { -webkit-mask-position: 0 3px; mask-position: 0 3px; } to { -webkit-mask-position: -260px 3px; mask-position: -260px 3px; } }
body.pt-alive .ctl::before { border-radius: 45% 55% 57% 43% / 55% 44% 56% 45%; box-shadow: 0 0 4px rgba(70, 45, 20, .18), inset 0 0 0 1px rgba(0, 0, 0, .05); animation: pt-turn 12s linear infinite, pt-breathe 3.9s ease-in-out infinite; }
body.pt-alive .ctl:nth-child(2)::before { border-radius: 56% 44% 46% 54% / 45% 56% 44% 55%; animation-duration: 15s, 4.7s; animation-delay: -4s, -1.6s; animation-direction: reverse, normal; }
body.pt-alive .ctl:nth-child(3)::before { border-radius: 48% 52% 43% 57% / 56% 46% 54% 44%; animation-duration: 10.5s, 4.3s; animation-delay: -7s, -2.9s; }
body.pt-alive .route-btn::before { --pr: 24px; animation: pt-pill 5.4s ease-in-out infinite; }
body.pt-alive .search-btn::before { --pr: 18px; animation: pt-pill 6.6s ease-in-out -2.2s infinite; }
.pt-chs, .pt-chs > span, .pt-ch { text-decoration: inherit; }      /* 밑줄 같은 꾸밈은 한 자씩 감싼 글자에도 그대로 */
.pt-ch { display: inline-block; }
body.pt-alive .pt-ch { animation: pt-ch 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.13s); }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 물감으로 만든 아이콘(검색 · 길찾기)만 꿈틀거림. 물감에 없는 색의 아이콘(＋ － 설정 · 나침반 화살표)은 다 드러난 뒤 가만히 있고, 둘레의 물감 바탕만 꿈틀거림 */
body.pt-alive :is(.search-btn, .route-btn) > .ico { animation: pt-ico 4.2s ease-in-out infinite; }
/* 채팅·관리자 화면의 단추는 통째로 말랑하게 숨 쉼(글자는 위와 같이 한 자씩) */
body.pt-alive :is(#c-send, .c-back, .c-user .btn, .a-right .btn) { animation: pt-breathe2 4.6s ease-in-out infinite; }
body.pt-alive :is(.c-back, .a-right .btn:nth-child(2)) { animation-delay: -1.8s; }
body.pt-alive :is(.c-user .btn, .a-right .btn:nth-child(3)) { animation-delay: -3.1s; }
/* 위쪽 막대의 물결치는 아래 가장자리: 흰 바탕은 4px 위에서 끝내고, 그 아래 12px 띠(.bar-edge)에 물결 모양으로 흰 가장자리(::after)와 3px 색 띠(::before)를 그림
   (마스크를 못 쓰는 브라우저에서는 곧은 색 띠 그대로) */
@supports ((-webkit-mask-position: 0 0) or (mask-position: 0 0)) {
  body.pt-alive .topbar::before { bottom: 4px; background: #fff; }
  body.pt-alive .bar-edge { display: block; position: absolute; left: 0; right: 0; bottom: -5px; height: 12px; z-index: -1; pointer-events: none;
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0H260V4Q195 7.2 130 4Q65 .8 0 4Z'/%3E%3C/svg%3E"); }
  body.pt-alive .bar-edge::before, body.pt-alive .bar-edge::after { content: ''; position: absolute; inset: 0; -webkit-mask: var(--wave) 0 0 / 260px 12px repeat-x; mask: var(--wave) 0 0 / 260px 12px repeat-x; animation: pt-wave 9s linear infinite; }
  body.pt-alive .bar-edge::before { background: var(--band); animation-name: pt-wave-b; }
  body.pt-alive .bar-edge::after { background: #fff; }
}
body.pt-alive .topbar.pt-noband .bar-edge::before { opacity: 0; }
/* 지도 둘레 회색 배경이 어두운 편이라, 그 위의 작은 글자(도움말·바닥글)는 낮에도 밝은 회색으로(지도 위에 겹쳐도 읽히게 옅은 그림자) */
body[data-paint="field"]:not(.is-night) :is(.hint, .site-foot) { color: #C3BDB9; }      /* 물감의 밝은 회색 그대로 — 그 물감이 날아와 글자가 됨 */
/* 그 글자 뒤로 물감 고리가 지나가도 읽히게 짙은 그림자 */
body[data-paint="field"] :is(.hint, .site-foot) { text-shadow: 0 0 4px rgba(0, 0, 0, .75), 0 1px 2px rgba(0, 0, 0, .6); }
body.pt-rest :is(.ctl, .route-btn, .search-btn)::before, body.pt-rest .pt-ch, body.pt-rest .ico, body.pt-rest .bar-edge::before, body.pt-rest .bar-edge::after, body.pt-rest :is(#c-send, .c-back, .c-user .btn, .a-right .btn) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { #paint-fb { animation: none; } }

/* 관리자 막대: 항목이 늘어 좁은 화면에서는 줄을 바꿈 */
.admin-bar { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; max-width: calc(100% - 24px); border-radius: 24px; }
/* 관리자 지도: 배경은 검정~흰색 사이 밝기만(관리자 막대의 슬라이더) */
/* 불러오는 동안에는 지도·이름표를 숨기고 배경색 위에 가운데 물감만 보임 */
body.admin-map:not(.map-ready) #map, body.admin-map:not(.map-ready) #labels { visibility: hidden; }
.admin-bar .ab-bg { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 980px; background: rgba(255, 255, 255, .06); white-space: nowrap; }
.admin-bar .ab-bg-range { width: 84px; height: 6px; margin: 0; padding: 0; border-radius: 3px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, #000, #fff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); cursor: pointer; }
.admin-bar .ab-bg-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #EF8903; box-shadow: 0 0 0 2px #fff; }
.admin-bar .ab-bg-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #EF8903; box-shadow: 0 0 0 2px #fff; }
.admin-bar .ab-bg-val { min-width: 34px; font-size: 11px; color: #8e8e93; font-variant-numeric: tabular-nums; text-align: right; }
body.admin-map.bg-light .hint { color: rgba(29, 29, 31, .62); }
body.admin-map.bg-light .fac-label { color: #555; text-shadow: 0 0 2px #eee, 0 0 4px #eee; }
body.admin-map.bg-light .park-name { color: #4a6175; text-shadow: 0 0 2px #fff, 0 0 3px #fff; }

/* 댓글(2026-11-20): 관리자 '수정' 단추 · 신고가 쌓여 가려진 댓글 · 고치는 창의 학습/화이트 */
.cm-edit { position: absolute; top: 8px; right: 56px; border: 0; border-radius: 980px; padding: 3px 10px; font-size: 12px; background: rgba(0, 0, 0, .05); color: var(--ink-48); cursor: pointer; }
.cm-edit:hover { background: rgba(0, 113, 227, .12); color: #06c; }
.cm-list li.cm-adm p { padding-right: 0; margin-top: 26px; }   /* 단추 두 개(수정 · 삭제)는 윗줄에, 글은 그 아래 온 너비로 */
.cm-list li.cm-hidden p { opacity: .55; }
.report-modal .cm-teach { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.report-modal .cm-teach button { border: 0; border-radius: 980px; padding: 4px 12px; font: inherit; font-size: 12px; background: rgba(0, 0, 0, .06); color: inherit; cursor: pointer; }
.report-modal .cm-teach button:hover { background: rgba(0, 0, 0, .1); }
