:root {
  --bg: #0b1626;
  --glass: rgba(12, 26, 46, .86);
  --line: rgba(160, 190, 230, .18);
  --text: #e6eefb;
  --muted: #93a6c2;
  --accent: #f2c14e;
  --good: #63d68b;
  --bad: #ff7a6b;
  --s0: #f2c14e;
  --s1: #5ec8ff;
  --s2: #ff8fb7;
  --s3: #7ee081;
  --s4: #c49bff;
  --s5: #ff9f5a;
  --s6: #4fd6c8;
  --s7: #ff6b6b;
  --s8: #b5e655;
  --s9: #9fb4ff;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 14px/1.45 "Pretendard", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif; overflow: hidden; }
#map { position: fixed; inset: 0; background: #0e2a44; }
.leaflet-container { background: #0e2a44; font: inherit; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(8px); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.muted { color: var(--muted); font-size: 12px; }

/* ---------- 검색 (오른쪽 위) */
/* 검색창: 예전(320×50)보다 가로·세로 1.5배 */
#search { position: fixed; top: 14px; right: 14px; width: 560px; z-index: 1000; padding: 9px; }
/* 크기 조절 손잡이 (2026-11-20 사용자): 왼쪽 아래 모서리를 끌면 검색창 전체가 커지고 작아짐. 배율은 브라우저에 기억 */
#searchGrip { position: absolute; left: 0; bottom: 0; width: 18px; height: 18px; cursor: nesw-resize; border-bottom-left-radius: var(--radius);
  background: linear-gradient(45deg, transparent 0 30%, rgba(255,255,255,.35) 30% 38%, transparent 38% 52%, rgba(255,255,255,.35) 52% 60%, transparent 60%);
  transform: scaleX(-1); opacity: 0; touch-action: none; transition: opacity .15s; }
#search:hover #searchGrip { opacity: .7; }
#searchGrip:hover, #search.sizing #searchGrip { opacity: 1; filter: drop-shadow(0 0 3px var(--accent)); }
/* 안내: 손잡이에 마우스를 올릴 때만 잠깐 뜬다 */
#searchHint { position: absolute; left: 22px; bottom: -30px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: rgba(20, 26, 36, .92); color: var(--accent); border: 1px solid rgba(242, 193, 78, .4); pointer-events: none;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
#searchHint::before { content: ""; position: absolute; left: -6px; top: 4px; border: 6px solid transparent; border-right-color: rgba(242, 193, 78, .4); border-left: 0; }
#searchGrip:hover + #searchHint { opacity: 1; transform: none; }
#search.sizing #searchHint { display: none; }
#search.sizing { user-select: none; }
#q { width: 100%; height: 57px; border: 0; outline: 0; border-radius: 12px; padding: 0 18px;
  background: rgba(255, 255, 255, .07); color: var(--text); font: inherit; font-size: 22px; }
#q:focus { background: rgba(255, 255, 255, .11); box-shadow: 0 0 0 3px rgba(242, 193, 78, .45); }
.drop { margin-top: 9px; max-height: min(70vh, 690px); overflow: auto; font-size: 1.4em; }
.opt { display: flex; align-items: center; gap: 15px; padding: 9px 12px; border-radius: 12px; cursor: pointer; user-select: none; }
.opt:hover, .opt.hl { background: rgba(255, 255, 255, .08); }
.opt input { width: 24px; height: 24px; accent-color: var(--accent); pointer-events: none; }
.opt img { width: 42px; height: 42px; border-radius: 9px; flex: none; }
.opt .nm { flex: 1; min-width: 0; }
.opt .nm .only { display: block; font-size: .72em; margin-top: 2px; }   /* 우대 문화권: 이름 아래 줄 */
.opt .cat { flex: none; }
.opt .cat { color: var(--muted); font-size: .8em; }
.opt mark { background: none; color: var(--accent); }
.drop .empty { padding: 18px; color: var(--muted); }
/* 즐겨찾기: 검색창 아래 두 줄 (한 줄에 7칸, 두 줄 모두 같은 칸 크기) */
#fav { display: flex; flex-direction: column; margin-top: 6px; }
/* 아코디언 머리줄 (2026-11-20): 누르면 즐겨찾기 두 줄을 접고 펼침 */
.fv-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px;
  font-weight: 600; padding: 4px 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.fv-head:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.fv-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fv-cnt { font-size: 11px; color: var(--accent); background: rgba(242, 193, 78, .14); padding: 0 7px; border-radius: 999px; }
.fv-car { margin-left: 2px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.fv-head[aria-expanded="false"] .fv-car { transform: rotate(-45deg); }
.fv-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease; }
.fv-body.open { grid-template-rows: 1fr; }
.fv-in { overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.fv-body.open .fv-in { padding-top: 2px; }
@media (prefers-reduced-motion: reduce) { .fv-body, .fv-car { transition: none; } }
#fav .fv-row { display: grid; grid-template-columns: repeat(7, 74px); justify-content: center; gap: 3px; }   /* 칸 너비를 정수로: 1fr(75.4px)이면 아이콘이 반 픽셀 자리에 놓여 한쪽 테두리가 흐려짐 */
#fav:empty { display: none; }
.fv { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 4px 0 3px;
  border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; cursor: pointer; overflow: hidden; }
.fv:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.fv img { width: 48px; height: 48px; border-radius: 3px; background: #0b1626; }   /* 2026-11-20: 원본 48px 그대로 (44px로 줄이면 회색 테두리가 오른쪽·아래에서 뭉개져 잘린 것처럼 보였음) */
.fv.on { color: var(--c); background: rgba(255, 255, 255, .1); font-weight: 600; }   /* 고른 품목: 칸 밝게 + 이름에 품목 색 */
.fv span { max-width: 100%; font-size: 11px; line-height: 1.2; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv span.long { font-size: 10px; letter-spacing: -.6px; }   /* 타네가시마 총처럼 긴 이름 */

/* ---------- 선택한 교역품 (왼쪽 위, 60%) */
#picked { position: fixed; top: var(--picked-top, 56px); left: 14px; z-index: 1000; display: flex; flex-wrap: wrap; gap: 10px;
  max-width: calc(100vw - 560px - 56px); }   /* 10개까지: 검색창과 겹치면 다음 줄로 */
.pick { position: relative; width: 64px; text-align: center; opacity: .6; transition: opacity .15s; cursor: pointer; }
.pick:hover { opacity: 1; }
.pick img { width: 56px; height: 56px; border-radius: 12px; border: 3px solid var(--c); background: #0b1626; display: block; margin: 0 auto; }
.pick span { display: block; font-size: 12px; margin-top: 3px; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .rm { position: absolute; top: -6px; right: -2px; width: 20px; height: 20px; border-radius: 50%;
  background: #000a; color: #fff; font-size: 12px; line-height: 20px; display: none; }
.pick:hover .rm { display: block; }

/* ---------- 지도 표시 */
.cityMark { position: relative; display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.cityMark .pin { width: 12px; height: 12px; border-radius: 50%; background: #dfe8f5; border: 2px solid #20344f; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.cityMark.known .pin { background: var(--accent); }
.cityMark.cur .pin { box-shadow: 0 0 0 4px rgba(99, 214, 139, .55); }
.cityMark .lbl { margin-top: 2px; font-size: 12px; white-space: nowrap; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.cityMark.dim { opacity: .45; }
/* 2026-11-21 도시 하나를 세 층으로: 이름(pLbl) < 말주머니(pBub) < 동그라미(pPin). 층마다 한 부분만 보이고 그 부분만 눌린다 */
.pLbl .cityMark, .pBub .cityMark, .pPin .cityMark { pointer-events: none; }
.pLbl .bubble, .pLbl .pin, .pBub .lbl, .pBub .pin, .pPin .lbl, .pPin .bubble { visibility: hidden; animation: none !important; }
.pLbl .lbl, .pBub .bubble, .pPin .pin { pointer-events: auto; }

/* ---------- 도시 패널 */
#city { position: fixed; top: var(--city-top, 110px); left: 14px; width: 340px; max-height: min(var(--city-h, 100vh), calc(100vh - var(--city-top, 110px) - var(--city-bottom, 70px))); overflow: auto; z-index: 1000; padding: 14px 16px; }
#city h2 { margin: 0 24px 2px 0; font-size: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sphere { font: inherit; font-size: 12px; font-weight: 600; color: #bfe3ff; background: rgba(94, 200, 255, .14); border: 1px solid rgba(94, 200, 255, .35);
  padding: 1px 8px; border-radius: 999px; cursor: pointer; }
span.sphere { cursor: default; }
button.sphere:hover { background: rgba(94, 200, 255, .24); }
.sphere.on { color: #10233d; background: #7fd0ff; border-color: #7fd0ff; }
/* 세로 길이 조절 손잡이 (2026-11-21 사용자: 검색창 손잡이와 같은 방식): 아래 가장자리를 끌면 창 높이가 바뀌고 브라우저에 기억. 두 번 누르면 원래 길이.
   창 안이 스크롤되어도 늘 창 맨 아래에 붙어 있게 sticky */
.vgrip { position: sticky; bottom: 0; z-index: 2; height: 12px; cursor: ns-resize; touch-action: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(transparent 0 4px, rgba(255,255,255,.35) 4px 5px, transparent 5px 7px, rgba(255,255,255,.35) 7px 8px, transparent 8px) center / 36px 100% no-repeat; }
#city .vgrip { margin: 6px -16px -14px; bottom: -14px; }   /* sticky 는 안쪽 여백만큼 위에 붙으므로 여백만큼 내린다 */
#shop .vgrip { margin: 4px -10px -8px; bottom: -8px; }
#city:hover .vgrip, #shop:hover .vgrip { opacity: .7; }
.vgrip:hover, .sizing .vgrip { opacity: 1 !important; filter: drop-shadow(0 0 3px var(--accent)); }
.vgrip::after { content: "↕ 끌면 길이 조절 · 두 번 누르면 원래대로"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(20, 26, 36, .92); color: var(--accent); border: 1px solid rgba(242, 193, 78, .4);
  pointer-events: none; opacity: 0; transition: opacity .2s; }
.vgrip:hover::after { opacity: 1; }
.sizing .vgrip::after { display: none; }
.sizing { user-select: none; }
#city .x, #shop .x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
#city h3 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; letter-spacing: .02em; }
.row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.row img { width: 30px; height: 30px; border-radius: 6px; }
.row .nm { font-weight: 600; }
.row .vals { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.row.sel .nm::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.up { color: var(--good); } .down { color: var(--bad); }
.news { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.news.welcome { color: #ff4d4d; font-weight: 700; font-size: 14px; }   /* 도시 상태 '어서 오세요': 빨간색으로 눈에 띄게 */
.empty-note { color: var(--muted); font-size: 13px; padding: 6px 0; }

/* ---------- 상태 */
#status { position: fixed; left: 14px; bottom: 14px; z-index: 1000; padding: 9px 14px; display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 14px; row-gap: 6px; font-size: 13px; max-width: calc(100vw - 28px); }
#status .st-line { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
#status .srv { display: flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); padding: 3px 10px 3px 6px; border-radius: 8px; border: 1px solid transparent; }
#status .srv:empty { display: none; }
#status .srv input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; cursor: pointer; }
#status .srv:has(input:checked) { color: var(--accent); background: rgba(242, 193, 78, .14); border-color: rgba(242, 193, 78, .45); }
#status .srv:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
#srvMore { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px; }
#srvMore:empty { display: none; }
#dlLine { grid-column: 2; }
#dlLine a { color: var(--accent); font-weight: 700; }
#dlLine .dlRel { font-weight: 400; color: var(--muted); margin-left: 4px; }
#meLine b { color: var(--text); }
#meLine .muted { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #777; flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
.dot.off { background: var(--bad); }
#map.far .cityMark:not(.has):not(.known):not(.cur) .lbl { display: none; }
#map.far .cityMark:not(.has):not(.known):not(.cur) .pin { width: 7px; height: 7px; border-width: 1px; }
#layers { position: fixed; right: 56px; bottom: 14px; z-index: 1000; display: flex; padding: 3px; gap: 2px; }
#layers button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
#layers .edit { color: #ff9b8a; font-weight: 800; }
#layers .edit.on { background: rgba(255, 110, 90, .22); color: #ffb3a6; }
#layers .sep { width: 1px; background: var(--line); margin: 4px 2px; }
#layers .nav { color: #7fe0ff; font-weight: 700; }
#layers .nav.on { background: rgba(80, 200, 255, .2); color: #bdf0ff; }
/* 서버 상자 위 네비 버튼 줄 (bottom 은 app.js 가 서버 상자 높이에 맞춰 정함) */
#navBar { position: fixed; left: 14px; bottom: 120px; z-index: 1000; display: flex; align-items: center; padding: 4px 5px; gap: 4px; box-sizing: border-box; min-width: max-content; }   /* left·width 는 app.js 가 서버 상자에 맞춤 */
#navBar[hidden] { display: none; }
/* 2026-11-20 B안: 켜고 끄는 것은 칩(켜짐 = 파란 테두리 + 점 켜짐), 한 번 누르는 것은 아이콘 버튼 */
#navBar button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
#navBar .chip { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(140, 170, 205, .28); color: #8ea4bc; transition: background .15s, border-color .15s, color .15s; }
#navBar .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #55657c; flex: none; transition: background .15s, box-shadow .15s; }
#navBar .chip:hover { border-color: rgba(127, 224, 255, .55); color: #cfe3f5; }
#navBar .chip.on { border-color: #2fa8d8; background: rgba(47, 168, 216, .18); color: #d6f3ff; }
#navBar .chip.on .dot { background: #4fd4ff; box-shadow: 0 0 0 2px rgba(79, 212, 255, .2); }
#navBar .nsep { width: 1px; align-self: stretch; margin: 3px 2px; background: rgba(140, 170, 205, .25); flex: none; }
#navBar .act { flex: 1 1 auto; padding: 5px 6px; border-radius: 8px; color: #7fe0ff; }
#navBar .act:hover { background: rgba(80, 200, 255, .15); }
#navBar .act svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#navBar .act svg .f { fill: currentColor; stroke: none; }
#navBar kbd { font: inherit; font-size: 10.5px; line-height: 1; padding: 2px 4px; border: 1px solid rgba(127, 224, 255, .45); border-bottom-width: 2px; border-radius: 4px; color: #9fd6ef; }
#navBar #voyBtn.on { background: rgba(80, 200, 255, .22); color: #bdf0ff; }
#navBar button:disabled { opacity: .4; cursor: default; background: none; }
#navBar #clearTrackBtn { color: #ff9b8a; }
#navBar #clearTrackBtn:hover { background: rgba(255, 110, 90, .18); }

/* ---------- 네비: 내 배 (측량 좌표) */
.ship { position: relative; transform: translate(-50%, -50%); width: 24px; height: 24px; pointer-events: none; }
.ship svg { width: 24px; height: 24px; display: block; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.ship circle { fill: #15171c; stroke: #fff; stroke-width: 1.8; }
.ship path { stroke-linejoin: round; }
.ship path.l { fill: #ffd23f; }
.ship path.r { fill: #e8921c; }
.ship .slbl { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700;
  color: #dff7ff; text-shadow: 0 0 3px #000, 0 0 3px #000; text-align: center; line-height: 1.35; }
.ship .slbl span { font-weight: 400; color: #9fdcf0; font-variant-numeric: tabular-nums; }
.ship .slbl b { color: #fff; font-weight: 800; }
.ship.old { opacity: .45; }
/* 지나온 항적: 초록 (2026-11-15 사용자 요청, DHO Manager 처럼) */
.track { stroke: #6fdc6a; stroke-width: 3; stroke-opacity: .85; fill: none; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5px rgba(0, 20, 40, .9)); }
/* 지금처럼 계속 갈 때 예상선(보라 점선)과 5·10·15분 점 */
.predline { stroke: #b48cff; stroke-width: 2; stroke-opacity: .9; fill: none; stroke-dasharray: 6 5; }
/* 배가 바라보는 곳 (나침반): 하늘색 실선 */
.faceline { stroke: #4fd4ff; stroke-width: 2; stroke-opacity: .9; fill: none; stroke-linecap: round; }
.pred { position: relative; transform: translate(-5px, -5px); white-space: nowrap; font-size: 11px; font-weight: 700; color: #e9e0ff;
  text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.pred i { display: inline-block; width: 8px; height: 8px; margin-right: 3px; vertical-align: -1px; border-radius: 50%;
  background: #8d7dff; border: 1.5px solid #fff; box-sizing: border-box; }
#pwBox { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 3000; padding: 16px 18px; width: 240px; }
#pwBox .pw-title { font-weight: 600; margin-bottom: 10px; }
#pwBox input { width: 100%; box-sizing: border-box; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0006; color: inherit; font: inherit; }
#pwBox .pw-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
#pwBox button, .del-all { border: 1px solid var(--line); background: #ffffff10; color: inherit; font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
#pwMsg { margin-top: 8px; font-size: 12px; min-height: 1em; }
.row:has(.del) { grid-template-columns: 30px 1fr auto auto; }
.row .del { border: 0; background: rgba(255, 90, 70, .18); color: #ffb3a6; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; }
.del-all { display: block; margin: 10px 0 0; color: #ffb3a6; border-color: rgba(255, 110, 90, .4); }
.edit-note { margin-top: 8px; font-size: 12px; color: #ffb3a6; }
#layers button.on { background: rgba(242, 193, 78, .2); color: var(--accent); }
#statusText a { color: var(--accent); }
#toast { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 2000; background: #000c; padding: 8px 14px; border-radius: 8px; font-size: 13px; }

/* ---------- 오른쪽: 교역소 판매 품목 (검색창 아래 오른쪽, 폭 420px. 줄마다 [아이콘][이름/분류][투자금/시대]) */
#shop { position: fixed; top: var(--shop-top, 210px); right: 14px; width: 420px; max-height: min(var(--shop-h, 100vh), calc(100vh - var(--shop-top, 210px) - 70px));
  overflow: auto; z-index: 999; padding: 8px 10px; }
#shop h3 { margin: 0 24px 6px 0; font-size: 16px; font-weight: 700; }
#shop h3 .muted { font-size: 13px; font-weight: 400; margin-left: 2px; }
#shop .sh, #shop .sr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
#shop .sh { font-size: 12px; color: var(--muted); padding: 0 0 4px; }
#shop .sr { padding: 5px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.3; }
#shop .sr img { width: 40px; height: 40px; border-radius: 8px; grid-row: span 2; }
#shop .snm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#shop .sr.sel .snm { color: var(--c); }   /* 지금 고른 교역품은 그 색으로 */
#shop .scat { grid-column: 2; color: var(--muted); font-size: 13px; }
#shop .sinv { grid-column: 3; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; }
#shop .sera { grid-column: 3; grid-row: 2; text-align: right; font-size: 13px; color: #ffd98a; }
#shop .sh span:last-child { text-align: right; }
#shop .sreq { margin: 2px 0 6px; font-size: 13px; color: #ffd98a; }
#shop .sh .era { color: #ffd98a; }   /* 머리줄 '시대'도 시대 글씨와 같은 노란색 */
@media (max-width: 820px) { #shop { display: none; } }   /* 좁은 화면: 왼쪽 도시 창과 겹치므로 숨김 */

@media (max-width: 640px) {
  #search { left: 16px; right: 16px; width: auto; top: 10px; zoom: 1 !important; }
  #searchGrip, #searchHint, .vgrip { display: none; }
  :root { --bar-top: 176px; }   /* 좁은 화면: 지도 표시 옵션 줄은 검색창 + 즐겨찾기 줄 아래 */
  #picked { left: 16px; right: 16px; max-width: none; }
  .fv span { white-space: normal; word-break: keep-all; text-align: center; }   /* 좁은 화면: 긴 이름은 두 줄 */
  .fv img { width: 40px; height: 40px; }
  #fav .fv-row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }   /* 좁은 화면: 칸을 화면 너비에 맞춤 */
  #city { top: auto; bottom: var(--mob-bottom, 150px); left: 16px; right: 16px; width: auto; max-height: calc(100vh - var(--mob-bottom, 150px) - 60px); }
  #layers { right: auto; left: 16px; bottom: 106px; max-width: calc(100vw - 32px); overflow-x: auto; }
  #toast { bottom: var(--mob-bottom, 150px); }
  #status { left: 16px; right: 62px; max-width: none; grid-template-columns: auto minmax(0, 1fr); overflow: hidden; }
  #dlLine { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  #statusText, #meLine span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

/* ---------- 110% 이상 말주머니 */
.bubble { position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%); display: flex; gap: 4px;
  padding: 4px 6px; border-radius: 10px; background: #fff8e6; color: #3a2a00; box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
  white-space: nowrap; font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums;
  /* 2026-11-21 사용자: 크게 + 확대하면 더 크게. --bs 는 app.js zoomCls. 기준점 0 0 = 꼬리 끝(도시 위)이라 도시에 붙은 채로 커진다 */
  scale: var(--bs, 1.15); transform-origin: 0 0;
  /* 겹침을 피해 옮긴 자리 (app.js declutter): 화면 px 그대로 */
  translate: var(--dx, 0px) var(--dy, 0px); --tail: #fff8e6; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--tail); }
/* 2026-11-22 사용자: 겹쳐서 도시 아래로 내려간 말주머니는 꼬리가 위로. 도시 동그라미 위에 걸친 것은 꼬리 없음 */
.bubble.dn::after { bottom: auto; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--tail); }
.bubble.notail::after { display: none; }
/* 말주머니 크기 손잡이 (2026-11-22 사용자): 마우스를 올리면 오른쪽 위 모서리에. 끌면 모든 말주머니 크기가 같이 바뀜 */
.bubble .bgrip { position: absolute; right: -6px; top: -6px; width: 13px; height: 13px; border-radius: 50%; cursor: nesw-resize;
  background: #2a3b52; border: 2px solid #fff8e6; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s, scale .15s;
  touch-action: none; pointer-events: auto; }
.bubble .bgrip::before { content: ""; position: absolute; inset: 2px; background:
  linear-gradient(45deg, transparent 0 42%, #fff8e6 42% 58%, transparent 58%); }
.bubble:hover .bgrip { opacity: .9; }
.bubble .bgrip:hover, #map.bubSizing .bubble .bgrip { opacity: 1; scale: 1.25; }
#map.bubSizing, #map.bubSizing * { cursor: nesw-resize !important; }
#map.bubSizing .bubble { transition: none; }
/* 130% 이상이 들어 있는 말주머니: 금색 윤곽선 + 빛이 비스듬히 지나가는 반사 (3초마다) */
.bubble.shine { background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, .95) 50%, transparent 60% 100%) no-repeat,
    #ffefb8;
  background-size: 250% 100%; animation: bubbleShine 3s ease-in-out infinite;
  box-shadow: 0 0 0 2px #d99a00, 0 0 8px 2px rgba(255, 196, 40, .75), 0 3px 10px rgba(0, 0, 0, .45); }
.bubble.shine { --tail: #d99a00; }
/* 겹쳐서 위로 올린 말주머니에서 도시까지 가던 선은 2026-11-21 사용자 요청으로 없앰 (말주머니에 도시 이름이 있어서) */
/* 말주머니에 가려지는 도시 동그라미: 숨기지 않고 작고 흐리게 (2026-11-21 사용자). 마우스를 올리면 원래대로 */
.pPin .cityMark .pin { transition: scale .15s, opacity .15s; }
.pPin .cityMark.under .pin { scale: .5; opacity: .55; box-shadow: none; }
.pPin .cityMark.under .pin:hover { scale: 1; opacity: 1; }
@keyframes bubbleShine { 0% { background-position: 150% 0; } 45%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .bubble.shine { animation: none; } }
.bi { display: flex; align-items: center; gap: 3px; padding-right: 2px; border-bottom: 2px solid var(--c); }
.bi img { width: 18px; height: 18px; border-radius: 4px; }
/* 2026-11-21 사용자: 흐리게는 하되 아이콘이 푸르딩딩하면 안 됨 → 아이콘은 비치지 않게(바탕 파랑이 안 섞이게) 빛바랜 색으로, 숫자만 옅게 */
/* 2026-11-21 사용자: 오래된 시세는 아이콘은 선명히 두고 글씨(시세·숫자·화살표)만 더 연하게 (.5 → .35) */
.bi.old .v { opacity: .35; }
/* 100~109% 보통 굵기, 110% 이상 굵게, 120% 이상 화살표 오른쪽 위에 하트 (2026-11-16 6px → 8.5px, 약 1.4배) */
.bi.strong { font-weight: 700; }
.bi .v { position: relative; display: flex; align-items: center; }
/* 120% 이상 교역품 칸 (2026-11-22 사용자: 하트 대신): 은색 바탕 + 빛이 비스듬히 지나가는 반사 (2.6초마다) */
.bi.silver { padding: 0 3px 0 2px; border-radius: 4px 4px 0 0;
  background: linear-gradient(115deg, transparent 0 40%, rgba(255, 255, 255, .95) 50%, transparent 60% 100%) no-repeat,
    linear-gradient(180deg, #f6f8fb, #c9d1dc);
  background-size: 250% 100%, 100% 100%; box-shadow: inset 0 0 0 1px rgba(128, 141, 160, .6), 0 0 5px rgba(205, 214, 228, .9);
  animation: silverShine 2.6s ease-in-out infinite; }
@keyframes silverShine { 0% { background-position: 150% 0, 0 0; } 50%, 100% { background-position: -60% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .bi.silver { animation: none; } }
.row .pct { font-size: 15px; font-weight: 700; }
.pct.hot { color: #ffcf4a; }
.tr { width: 11px; height: 11px; margin-left: 2px; vertical-align: -1px; flex: none; font-style: normal; font-size: 9px; }
.row .pct .tr { width: 13px; height: 13px; }
.opt .only { font-weight: 600; color: #bfe3ff; }

/* 관리자: 등록 기록 */
#needUpdate { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 1100; padding: 4px 11px; border-radius: 8px;
  background: #d93025; color: #fff; font-weight: 700; font-size: 12.5px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); white-space: nowrap; pointer-events: none; }
@media (max-width: 1100px) { #needUpdate { top: auto; bottom: 150px; } }   /* 좁은 화면: 오른쪽 위 검색창과 겹치지 않게 아래로 */
#adminLog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 460px; max-width: calc(100vw - 28px); max-height: 70vh; overflow: auto; z-index: 1000; padding: 12px 14px; font-size: 13px; }
#adminLog .al-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#adminLog .al-head #alRefresh { margin-left: auto; }
#adminLog button { border: 1px solid var(--line); background: #ffffff10; color: inherit; font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
#adminLog .lg { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
#adminLog .lg span { flex: 1; min-width: 0; }
#adminLog .lg.blk span { color: var(--muted); text-decoration: line-through; }
#adminLog .block { color: #ffb3a6; border-color: rgba(255, 110, 90, .4); }
#alBlocked { margin-bottom: 8px; }
#alBlocked .bl { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 3px 4px 3px 9px; border-radius: 7px; background: rgba(255, 90, 70, .15); color: #ffb3a6; }
@media (max-width: 700px) { #adminLog { width: calc(100vw - 32px); max-height: 60vh; } }

/* ---------- 남만무역 (3.4 베타) */
.beta { font-size: 10px; font-weight: 700; color: #10233d; background: var(--accent); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
#nbBtn { position: fixed; left: 14px; bottom: 160px; z-index: 999;   /* 도시 창(1000)이 열려 있으면 그 아래로 */ border: 1px solid var(--line); color: var(--accent); font: inherit; font-weight: 700; font-size: 13.4px; padding: 6px 12px; cursor: pointer; }
#nbBtn:hover { background: rgba(242, 193, 78, .16); }
/* 항해일지 (2026-11-20): 버튼은 네비 버튼 줄(#navBar), 패널은 끌어서 옮길 수 있음. 줄마다 ✕로 지우기 */
#voyLog[hidden] { display: none; }
#voyLog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 520px; max-width: calc(100vw - 28px); max-height: 70vh; z-index: 1000;
  display: flex; flex-direction: column; padding: 12px 14px; font-size: 13.5px; }
#voyLog .vl-head { display: flex; align-items: baseline; gap: 8px; margin: 0 22px 8px 0; }
#voyLog .vl-head b { font-size: 15px; }
#voyLog .vl-head .muted { font-size: 12px; }
#voyLog .x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
#voyLog .vl-body { overflow: auto; min-height: 0; }
#voyLog table { width: 100%; border-collapse: collapse; }
#voyLog th { position: sticky; top: 0; background: rgba(20, 26, 36, .96); color: var(--muted); font-weight: 600; font-size: 12px; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
#voyLog td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
#voyLog tr.live td { background: rgba(80, 200, 255, .07); }
#voyLog td .xy { color: var(--muted); font-variant-numeric: tabular-nums; }
#voyLog td.tm { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
#voyLog th.tm { text-align: right; }
#voyLog td .day { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
#voyLog .vl-empty { color: var(--muted); padding: 18px 8px; text-align: center; line-height: 1.6; }
#voyLog .vl-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
#voyLog .vl-foot button { border: 0; background: none; color: #ff9b8a; font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
#voyLog .vl-foot button:hover { background: rgba(255, 110, 90, .15); }
#voyLog td.del { width: 1%; padding: 0 2px 0 4px; }
#voyLog .vdel { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; opacity: .45; }
#voyLog tr:hover .vdel { opacity: 1; }
#voyLog .vdel:hover { color: #ff9b8a; background: rgba(255, 110, 90, .15); }
.nbIco { width: 18px; height: 18px; vertical-align: -4px; }
.nbState { margin: 2px 0 6px; }
.nbBars { display: grid; gap: 2px; }
.nbRow { display: grid; grid-template-columns: 12px 60px 1fr 44px 58px; gap: 6px; align-items: center; font-size: 12.5px; padding: 2px 0; cursor: pointer; border-radius: 4px; }
.nbRow:hover, .nbRow.open { background: rgba(255, 255, 255, .06); }
.nbRow.none { cursor: default; color: var(--muted); }
.nbRow .bar { height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.nbRow .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--g); }
.nbRow b { text-align: right; font-variant-numeric: tabular-nums; }
.nbRow em { font-style: normal; color: var(--muted); font-size: 11px; text-align: right; }
.nbRow.old { opacity: .5; }
.g1 { --g: #3fbf74; } .g2 { --g: #7bbf5a; } .g3 { --g: #6f8fb8; } .g4 { --g: #d9824f; } .g5 { --g: #e0524a; }
.nbOpen { padding: 4px 0 8px; color: var(--muted); }
.nbSpark { display: block; color: var(--muted); }
.nbOpen .nbSpark { width: 100%; height: auto; }   /* 패널 안(터치 화면): 패널 너비에 맞춤 */
/* 메뉴: '남만무역' 버튼 위, 문화권마다 세로 한 줄 */
#nanban { position: fixed; left: 14px; bottom: 214px; z-index: 1001; padding: 12px 34px 12px 12px; max-width: calc(100vw - 28px); overflow-x: auto; }
#nanban[hidden] { display: none; }
#nanban .x, #nbGroup .x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.nbMenu { display: flex; gap: 6px; align-items: flex-start; }
.nbCol { display: flex; flex-direction: column; gap: 2px; min-width: 96px; }
.nbCol button { border: 0; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; padding: 5px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.nbCol button:hover { background: rgba(242, 193, 78, .16); color: var(--accent); }
.nbCol .nbAll { color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.nbStTxt { font-size: 10.5px; color: #ffd98a; }
.nbCalm { color: #8fe07a; }   /* 평상 (상태이상 없음): 아이콘이 없어 연두 글자 */
.nbStTxt.nbCalm { color: #8fe07a; }
.nbHint { line-height: 1.5; }
.nbHint { font-size: 11px; color: var(--muted); margin: 0 0 6px; }
.nbRow { touch-action: pan-y; user-select: none; }
.nbRow .grip { font-style: normal; color: var(--muted); opacity: .45; font-size: 11px; letter-spacing: -2px; cursor: grab; touch-action: none; text-align: center; }
.nbRow:hover .grip { opacity: 1; }
.nbCity { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.nbCity:hover { background: rgba(242, 193, 78, .16); color: var(--accent); }
.nbCity input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.nbPanel { position: relative; }
.nbPanel .nbPX { top: 6px; right: 6px; }
.nbPanel h2 { padding-right: 24px; }
/* 마우스를 올린 줄의 큰 그래프 (패널 옆) */
#nbHover { position: fixed; z-index: 1002; background: #0b1626; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; pointer-events: none; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }
#nbHover[hidden] { display: none; }
/* 상태이상 도시: 유리한 품목 (메뉴 말풍선 · 패널 줄 · 막대 줄 강조) */
#nbGoodTip { position: fixed; z-index: 1003; background: #0b1626; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 13px; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); white-space: nowrap; }
#nbGoodTip[hidden] { display: none; }
#nbGoodTip .nbGoodHead { color: var(--accent); font-weight: 700; margin-bottom: 3px; }
#nbGoodTip b, .nbGood b { color: #ffd98a; }
.nbGood { margin: -2px 0 6px; font-size: 13px; }
.nbRow.good > span:first-of-type { color: #ffd98a; font-weight: 700; }
#nbHover .nbTipHead { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; margin-bottom: 6px; }
#nbHover .nbTipHead span { color: var(--accent); }
#nbHover .muted { font-size: 12px; margin-top: 4px; }
.nbRow.drag { opacity: .5; }
.nbRow.dropT { box-shadow: inset 0 3px 0 var(--accent); }
.nbRow.dropB { box-shadow: inset 0 -3px 0 var(--accent); }
/* 색칠한 분류 (2026-11-21 사용자): 모든 남만 패널에서 같은 색. 흐린(오래된) 줄도 색은 또렷하게 */
.nbRow.hi { background: color-mix(in srgb, var(--hc) 24%, transparent); box-shadow: inset 3px 0 0 var(--hc); }
.nbRow.hi:hover, .nbRow.hi.open { background: color-mix(in srgb, var(--hc) 34%, transparent); }
.nbRow.hi > span.nbK { color: var(--hc); font-weight: 800; filter: brightness(1.25); }
.nbRow.hi.old { opacity: .75; }
.nbRow .nbK { cursor: pointer; }
/* 관리자: 올린 사람 */
.nbBy { display: block; font-size: 10px; line-height: 1.1; color: #ffb38a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbState .nbBy { display: inline; margin-left: 6px; font-size: 11px; }
.nbGood.nbBlank { visibility: hidden; }
/* 유리한 품목 가치표 (2026-11-22 사용자): 분류에 마우스 → 표, 📌 로 고정 */
.nbGk { cursor: help; border-bottom: 1px dashed rgba(255, 217, 138, .6); }
.nbGk:hover { color: #fff; border-bottom-color: #fff; }
/* 유리한 분류의 교역품이 모두 비추천(재고가 높아요) (2026-11-22 사용자) */
.nbGk.nbGkAll { border-bottom: 0; }
.nbGkAll .nbGc { border-bottom: 1px dashed rgba(255, 217, 138, .6); }
.nbGkAll:hover .nbGc { color: #fff; border-bottom-color: #fff; }
.nbGc.warn { border-bottom-color: rgba(255, 176, 46, .7); }
.nbGc.full, .nbGk.full { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .5); border-bottom-color: transparent; font-weight: 400; }
.nbGc.full i, .nbGk.full i { font-style: normal; font-size: 11px; margin-left: 3px; color: #ff9b8a; text-decoration: none; display: inline-block; }
.nvFull { color: #ff9b8a; font-size: 14px; margin: 2px 0 6px; white-space: normal; }
/* 추천은 없고 애매(재고가 높아요)만 있음 (2026-11-22 사용자) */
.nbWarn { font-style: normal; color: #ffb02e; margin-left: 3px; font-size: 12px; }
.nbGk.warn { border-bottom-color: rgba(255, 176, 46, .7); }
.nvWarn { color: #ffb02e; font-weight: 700; font-size: 15px; margin: 2px 0 6px; }
.nvTab td.w { color: #ffb02e; font-weight: 700; }
/* 위 10개만, [더보기] 로 펼침 · 교역품 아이콘 (2026-11-22 사용자) */
.nvTab tr.nvMoreRow { display: none; }
.nvBox.showAll .nvTab tr.nvMoreRow { display: table-row; }
.nvMore { display: block; width: 100%; margin-top: 5px; padding: 4px 0; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .05);
  color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; }
.nvMore:hover { background: rgba(255, 255, 255, .1); }
.nvQ { width: 132px; flex: none; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 6px; color: #fff;
  font: inherit; font-size: 12px; padding: 3px 7px; }
.nvQ:focus { outline: none; border-color: var(--accent); }
.nvRes:empty { display: none; }
.nvRes { margin: -2px 0 6px; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .04); }
.nvR { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 2px 0; font-size: 12px; white-space: normal; }
.nvV { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #0b1626; }
.nvV.rec { background: #63d68b; }
.nvV.no { background: #ff7a6b; }
.nvV.amb { background: #ffd24a; }
.nvV.sm { padding: 1px 8px; font-size: 12.5px; }   /* 가치표 판정 칸 */
.nvP { padding: 1px 7px; border-radius: 999px; font-size: 11px; white-space: nowrap; border: 1px solid; }
.nvP.g { color: #8fe3a5; border-color: rgba(99, 214, 139, .5); background: rgba(99, 214, 139, .12); }
.nvP.r { color: #ffb3a8; border-color: rgba(255, 122, 107, .5); background: rgba(255, 122, 107, .12); }
.nvP.n { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, .05); }
.nvR .nm { font-weight: 700; white-space: nowrap; }
.nvR i { font-style: normal; color: var(--muted); font-size: 11px; white-space: nowrap; }
.nvR .nvIc { margin-right: 0; }
.nvIc { width: 22px; height: 22px; border-radius: 5px; vertical-align: -5px; margin-right: 6px; }
.nvFull b { color: #ffb38a; }
.nvBox { position: fixed; z-index: 1004; background: #0b1626; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px 9px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55); font-size: 15px; max-width: min(720px, calc(100vw - 16px));   /* 2026-11-22 사용자: 크게 (약 1.2배) */
  max-height: calc(100vh - 16px); overflow-y: auto; overscroll-behavior: contain; }
.nvBox[hidden] { display: none; }
.nvBox.pinned { border-color: #ffd98a; z-index: 1005; }
.nvHead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.nvBox.pinned .nvHead { cursor: move; user-select: none; }
.nvHead b { flex: 1; color: var(--accent); font-size: 17px; white-space: nowrap; }
.nvHead button { border: 0; background: rgba(255, 255, 255, .08); color: #fff; border-radius: 6px; width: 30px; height: 28px; cursor: pointer; font-size: 15px; line-height: 1; }
.nvHead .nvPin { filter: grayscale(1); opacity: .7; }
.nvHead .nvPin:hover, .nvHead .nvPin.on { filter: none; opacity: 1; background: rgba(255, 217, 138, .25); }
.nvTab { border-collapse: collapse; width: 100%; }
.nvTab th { color: var(--muted); font-weight: 600; font-size: 13.5px; text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.nvTab td { padding: 5px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.nvTab tr:first-child td { color: #ffd98a; font-weight: 700; }
.nvTab td.n { text-align: right; font-variant-numeric: tabular-nums; }
.nvTab td.s { color: #8fe3a5; font-weight: 700; }
.nvTab td.c { text-align: center; color: #7fd0ff; }
.nvTab td.p { color: var(--muted); white-space: normal; min-width: 90px; }
.nvTab td i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.nvBox .muted { font-size: 13px; margin-top: 5px; }
.nbRow:has(.nbBy) { grid-template-columns: 12px 56px 1fr 38px 92px; }
/* 한눈에: 도시 패널을 나란히 (좁으면 옆으로 넘김) */
#nbGroup { position: fixed; top: var(--city-top, 110px); left: 14px; z-index: 1000; max-width: calc(100vw - 28px); max-height: calc(100vh - var(--city-top, 110px) - 70px); display: flex; flex-direction: column; padding: 10px 12px; }
#nbGroup[hidden] { display: none; }
.nbGHead { padding: 0 26px 6px 2px; }
.nbIncNb { margin-left: 12px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }   /* 남만교역품 포함 (2026-11-22) */
.nbIncNb input { vertical-align: -2px; margin: 0 3px 0 0; cursor: pointer; }
.nbIncNb:hover { color: #fff; }
.nbPanels { display: flex; gap: 10px; overflow: auto; }
.nbPanel { flex: 0 0 310px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.nbPanel h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.nbPanel h3 { margin-top: 8px; }
.nbPName { border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; padding: 0; cursor: pointer; }
.nbPName:hover { color: var(--accent); }
@media (max-width: 640px) {
  /* 메뉴: 화면 너비에 맞춰 2줄 2칸 */
  #nanban { left: 16px !important; right: 16px; max-width: none; padding: 10px 30px 10px 10px; }
  .nbMenu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; }
  .nbCol { min-width: 0; }
  .nbCol button, .nbCity { font-size: 14px; padding: 7px 8px; }
  .nbCity input { width: 18px; height: 18px; }
  /* 패널 묶음: 도시 창처럼 아래쪽, 옆으로 넘기며 한 장씩 */
  #nbGroup { top: auto; bottom: var(--mob-bottom, 150px); left: 16px; right: 16px; max-width: none; max-height: calc(100vh - var(--mob-bottom, 150px) - 60px); padding: 8px; }
  .nbPanels { scroll-snap-type: x mandatory; }
  .nbPanel { flex-basis: calc(100vw - 58px); scroll-snap-align: start; overflow-y: auto; }
  .nbRow { grid-template-columns: 22px 56px 1fr 40px 52px; padding: 5px 0; font-size: 13px; }
  .nbRow .grip { font-size: 14px; opacity: .8; }
}

/* 오른쪽 아래 제작자 표시 (워터마크처럼 옅게, 눌리지 않게) */
#credit { position: fixed; right: 12px; bottom: 82px; z-index: 999; font-size: 11.5px; color: rgba(232, 241, 255, .5); pointer-events: none; user-select: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }   /* +/− 단추 바로 위 */
@media (max-width: 640px) { #credit { font-size: 10.5px; } }

/* ---------- 문화권 일괄 표시 (선택한 교역품 아래, 2026-11-20) */
#sphBar { position: fixed; top: var(--bar-top, 14px); left: 14px; z-index: 1002; display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 4px; max-width: min(780px, max(180px, calc(100vw - 560px - 56px))); font-size: 12.5px; }   /* 검색창과 겹치지 않게 (선택 교역품 줄과 같은 규칙) */
#sphBar[hidden], #sphPick[hidden] { display: none; }
/* 접기 – / 접힌 상태 '지도 표시 옵션 ▸' (2026-11-20) */
#sphMin { background: none; color: var(--muted); font-size: 15px; line-height: 1; padding: 3px 8px; margin-left: auto; font-weight: 700; }
#sphMin:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
#sphMax { background: none; color: #7fd0ff; font-weight: 700; }
#sphMax b { font-size: 10px; margin-left: 2px; }
#sphMax:hover { background: rgba(94, 200, 255, .16); }
#sphBar button { border: 0; font: inherit; cursor: pointer; border-radius: 7px; padding: 4px 9px; white-space: nowrap; }
#sphOpen { background: none; color: #7fd0ff; font-weight: 700; }
#sphOpen:hover, #sphOpen.on { background: rgba(94, 200, 255, .16); }
.sphChip { display: inline-flex; align-items: center; gap: 5px; background: rgba(94, 200, 255, .18); color: #dff2ff; font-weight: 600; }
.sphChip b { font-size: 10px; color: #9fc6e6; }
.sphChip:hover b { color: #fff; }
#sphClear { background: none; color: var(--muted); }
#sphClear:hover { color: var(--text); }
.sphHint { color: var(--muted); padding: 0 6px; }
#sphPick { position: fixed; left: 14px; z-index: 1003; padding: 10px 12px; width: min(560px, calc(100vw - 28px)); display: grid; gap: 8px;
  max-height: calc(100vh - 140px); overflow: auto; }
.sphT { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.sphList { display: flex; flex-wrap: wrap; gap: 4px; }
.sphOpt { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.sphOpt:hover { background: rgba(94, 200, 255, .14); }
.sphOpt.on { background: #7fd0ff; border-color: #7fd0ff; color: #10233d; font-weight: 700; }
#sphPick { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.sphAll { font-weight: 700; color: #7fd0ff; border-color: rgba(127, 208, 255, .5); padding: 4px 14px; height: 56px; border-radius: 14px; }
.sphAll, .sphAll:hover, .sphAll:active, .sphAll:focus { background: rgba(127, 208, 255, .08); color: #7fd0ff; }   /* 눌러도 색이 안 바뀜 */   /* 세로 2배 (보통 칩 28px) */
.prefOnly { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; color: #ffd98a; font-weight: 600; cursor: pointer; white-space: nowrap; border-radius: 7px; }
.prefOnly:hover { background: rgba(255, 217, 138, .1); }
.prefOnly input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }   /* '모두': 문화권 목록 왼쪽 */
/* 일괄 표시로 뜬 100% 미만 시세: 말주머니 안에서 옅은 파랑 글씨 */
.bi.low .v { color: #2f5f8f; }
.cityMark.insph .pin { box-shadow: 0 0 0 3px rgba(127, 208, 255, .7); }
@media (max-width: 640px) {
  #sphBar { left: 16px; right: 16px; max-width: none; }
  #sphPick { left: 16px; right: 16px; width: auto; }
}

/* 선택한 교역품: 우대 문화권이 있으면 아이콘 아래쪽에 '우대' (2026-11-20) */
.pick .prefMark { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 700;
  line-height: 1; padding: 2px 4px; border-radius: 4px; background: #ffd98a; color: #3a2a00; white-space: nowrap; pointer-events: auto; }
/* 검색 결과의 도시 줄 */
.opt.city .cpin { flex: none; width: 42px; height: 42px; border-radius: 9px; background: rgba(127, 208, 255, .12); position: relative; }
.opt.city .cpin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); border: 2px solid #20344f; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.opt.city .cat { color: #7fd0ff; }
/* 겹쳐 쌓인 말주머니만 왼쪽에 도시 이름 (줄임말) */
.bubble { align-items: center; }
.bubble .bcn { display: flex; font-size: 11px; font-weight: 800; color: #6b5200; padding: 0 4px 0 1px; margin-right: 2px; border-right: 1px solid rgba(58, 42, 0, .2); align-self: stretch; align-items: center; }
.bubble.named .bcn { display: flex; }
/* 한 도시 = 말주머니 하나: 교역품이 많으면 3개씩 줄 바꿈 */
.bubble .bis { display: grid; grid-template-columns: repeat(var(--cols, 1), auto); gap: 3px 4px; }
/* 100% 미만 (2026-11-20 사용자: 안 좋은 시세가 한눈에): 아이콘 흑백 + 파란 숫자 + 줄 긋기 느낌의 옅은 배경.
   말주머니 안 시세가 모두 100% 미만이면 말주머니 자체가 회청색 */
/* 2026-11-21 사용자: 방금 등록된 시세 아이콘까지 흐리면 안 됨 → 100% 미만은 아이콘을 원래 색 그대로 두고 파란 숫자·바탕으로만 표시.
   오래된 시세(.bi.old)도 아이콘은 그대로, 글씨만 연하게 */
.bi.low .v { color: #2c63a6; font-weight: 400; }
.bi.low { background: rgba(44, 99, 166, .1); border-radius: 3px; }
.bubble.allLow { background: #dde5ef; color: #2a3b52; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.bubble.allLow { --tail: #dde5ef; }
.bubble.allLow .bcn { color: #3d5677; border-right-color: rgba(42, 59, 82, .2); }
/* 패널 끌어서 옮기기 */
#cityName, #citySeen, #shop h3, .nbGHead, #adminLog .al-head, .nbDrag, #voyLog .vl-head { cursor: move; user-select: none; }
#cityName button, #shop h3 button { cursor: pointer; }
.dragging { opacity: .92; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.nbDrag { font-size: 12px; font-weight: 700; color: var(--muted); margin: -4px 0 6px; padding: 2px 0; }
/* 말주머니 보기 체크 상자 */
.lowShow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-weight: 700; color: #7fd0ff; cursor: pointer; white-space: nowrap; border-radius: 7px; }
.lowShow:hover { background: rgba(94, 200, 255, .1); }
.lowShow input { width: 15px; height: 15px; margin: 0; accent-color: #7fd0ff; cursor: pointer; }
/* 말주머니가 3개 이상 겹치면 반짝 (2026-11-22 사용자): 끄면 덜 겹친다는 신호 */
.lowShow.crowded { animation: lowBlink 1.1s ease-in-out 3; }   /* 3번 반짝이고 멈춤 (2026-11-22 사용자). 지도를 연 뒤 처음 겹쳤을 때 한 번만 (app.js lowHinted) */
@keyframes lowBlink { 0%, 100% { background: rgba(94, 200, 255, .08); box-shadow: 0 0 0 0 rgba(127, 208, 255, 0); color: #7fd0ff; }
  50% { background: rgba(94, 200, 255, .32); box-shadow: 0 0 0 2px #7fd0ff, 0 0 12px 3px rgba(127, 208, 255, .7); color: #fff; } }
/* 빛줄기 '슈슈슉' (2026-11-22 사용자): 겹친 말주머니에서 버튼까지. 꼬리가 길게 늘어지는 하늘색 빛 (app.js lowWhoosh) */
.whoosh { position: fixed; left: 0; top: 0; z-index: 5000; width: 64px; height: 10px; margin: -5px 0 0 -58px; border-radius: 5px; pointer-events: none;
  background: linear-gradient(90deg, rgba(127, 208, 255, 0), rgba(127, 208, 255, .9) 65%, #fff 92%);
  box-shadow: 0 0 16px 4px rgba(127, 208, 255, .75), 0 0 4px 1px #fff; transform-origin: 58px 5px; }
.lowShow { position: relative; }
.whooshHit { position: absolute; inset: -2px; border-radius: 9px; pointer-events: none; box-shadow: 0 0 0 2px #fff, 0 0 16px 6px rgba(127, 208, 255, .9);
  animation: whooshHit .7s ease-out forwards; }
@keyframes whooshHit { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 1.35; } }
@media (prefers-reduced-motion: reduce) { .lowShow.crowded { animation: none; background: rgba(94, 200, 255, .25); box-shadow: 0 0 0 2px #7fd0ff; } }
#sphOpen { font-weight: 600; color: #dff2ff; background: rgba(94, 200, 255, .16); }
#sphOpen.off { opacity: .45; }
/* 테스트 서버 전용 시험 시세 버튼 (가운데 아래) */
#demoBox { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 1001; display: flex; white-space: nowrap; align-items: center; gap: 8px; padding: 5px 10px; font-size: 12.5px; border-color: rgba(255, 140, 90, .5); }
#demoBox b { color: #ffb38a; }
#demoBox button { border: 1px solid var(--line); background: #ffffff10; color: var(--text); font: inherit; padding: 3px 10px; border-radius: 7px; cursor: pointer; }
#demoBox button.on { background: rgba(255, 140, 90, .25); border-color: rgba(255, 140, 90, .6); }
@media (max-width: 640px) { #demoBox { bottom: auto; top: 240px; } }
.bubble.crowd { display: none; }   /* 너무 빽빽해서 숨긴 낮은 시세 (확대하면 다시 보임) */
/* 검색한 도시 반짝임 (2.6초): 핀에서 금빛 고리가 세 번 퍼지고, 이름은 금색으로 빛남. 그동안 다른 말주머니는 옅게 */
.cityMark.flash .pin { background: #ffd23f; border-color: #fff; transform: scale(1.35); animation: pinFlash .85s ease-out 3; }
.cityMark.flash .lbl { color: #ffe27a; font-weight: 800; font-size: 13.5px; text-shadow: 0 0 6px rgba(255, 196, 40, .95), 0 0 2px #000, 0 1px 2px #000;
  animation: lblFlash .85s ease-in-out 3; }
@keyframes pinFlash {
  0% { box-shadow: 0 0 0 0 rgba(255, 210, 63, .95), 0 0 0 0 rgba(255, 255, 255, .8); }
  70% { box-shadow: 0 0 0 26px rgba(255, 210, 63, 0), 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0), 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes lblFlash { 50% { color: #fff; text-shadow: 0 0 10px rgba(255, 210, 63, 1), 0 0 2px #000; } }
#map.flashing .cityMark:not(.flash) .bubble { opacity: .3; transition: opacity .2s; }
#map.flashing .cityMark:not(.flash) .lbl { opacity: .5; }
.cityMark.flash .bubble { box-shadow: 0 0 0 2px #ffd23f, 0 0 12px 3px rgba(255, 196, 40, .8), 0 3px 10px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: reduce) { .cityMark.flash .pin, .cityMark.flash .lbl { animation: none; } .cityMark.flash .pin { box-shadow: 0 0 0 6px rgba(255, 210, 63, .7); } }

/* ---------- 접기 단추 (2026-11-20): 서버·다운로드 상자, 관리자/지도 메뉴 */
.minBtn { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; line-height: 1; cursor: pointer; border-radius: 6px; }
.minBtn:hover { color: var(--text, #fff); background: rgba(255, 255, 255, .08); }
.minBtn i { font-style: normal; font-size: 10px; }
#status { padding-right: 32px; }
#stMin { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; padding: 0; font-size: 15px; }
#status.min { display: block; padding: 0; right: auto !important; }
#status.min > :not(#stMin) { display: none !important; }
#status.min #stMin { position: static; width: auto; height: auto; padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--accent); }
#layers #lyMin { padding: 5px 8px; font-size: 14px; }
#layers.min > :not(#lyMin) { display: none !important; }
#layers.min #lyMin { font-size: 12px; padding: 5px 10px; }

/* ---------------------------------------------------------------- 살 수 있는 항구 찾기 (2026-11-20)
   말주머니(핀 위) = 팔 곳, 핀 자리 동그라미 = 살 곳. 모드 색은 청록 (--buy) */
:root { --buy: #2fd1bb; }
.fv-top { display: flex; align-items: center; gap: 6px; }
.fv-top .fv-head { flex: 1; width: auto; }
.buyMode { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  padding: 3px 8px; border-radius: 8px; user-select: none; white-space: nowrap; }
.buyMode:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.buyMode input { width: 15px; height: 15px; margin: 0; accent-color: var(--buy); cursor: pointer; }
body.buying .buyMode { color: var(--buy); }
body.buying #q { box-shadow: 0 0 0 2px var(--buy); }
body.buying #q:focus { box-shadow: 0 0 0 3px var(--buy); }
.buyHint { display: block; font-size: .7em; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buyHint b { color: #ffd9a6; font-weight: 600; }
body.buying .buyHint b { color: var(--buy); }
.bgo2 { width: 24px; height: 24px; flex: none; display: grid; place-items: center; color: var(--buy); font-size: 21px; font-weight: 700; line-height: 1; }
.bgo2.on { background: var(--buy); color: #0b1626; border-radius: 6px; }
#fav .fv.buyon { box-shadow: inset 0 0 0 2px var(--buy); background: rgba(47, 209, 187, .14); }
/* 지도: 구입처 도시는 핀 자리에 흰 동그라미 + 청록 테두리 + 교역품 아이콘 */
.cityMark.buy .pin { position: relative; display: grid; place-items: center; background: #fff; border: 3px solid var(--buy);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .45); }
.cityMark.buy .pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cityMark.buy.bL .pin { width: 32px; height: 32px; margin: -10px 0 -10px; }
.cityMark.buy.bS .pin { width: 18px; height: 18px; margin: -3px 0 -3px; border-width: 2.5px; }
.cityMark.buy.bS .pin img { display: none; }
#map.far .cityMark.buy .pin { width: 18px; height: 18px; margin: -3px 0 -3px; border-width: 2.5px; }
#map.far .cityMark.buy .pin img { display: none; }
.cityMark.buy .lbl { margin-top: 4px; font-weight: 700; }
.cityMark.buy.bT .lbl { background: var(--buy); color: #06211d; text-shadow: none; border-radius: 5px; padding: 0 6px; font-size: 12px; }
#map.far .cityMark.buy.bT .lbl { display: block; }
.cityMark.buy .bubble { top: -18px; }
.cityMark.buy .pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--buy); opacity: 0; pointer-events: none; }
.cityMark.buy.ping .pin::after { animation: buyPing 1.2s ease-out 3; }
@keyframes buyPing { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(1.6); opacity: 0; } }
#map.buyview .cityMark:not(.buy) .bubble { opacity: .35; }
#map.buyview .cityMark.dim { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .cityMark.buy.ping .pin::after { animation: none; } }
/* 구입처 카드: 교역소 판매 품목 창과 같은 자리·같은 모양 */
#buy { position: fixed; top: var(--shop-top, 210px); right: 14px; width: 420px; max-height: calc(100vh - var(--shop-top, 210px) - 70px);
  overflow: auto; padding: 14px 16px; z-index: 900; border-top: 3px solid var(--buy); }
#buy .x { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
#buy h3 { display: flex; align-items: center; gap: 8px; margin: 0 24px 4px 0; font-size: 16px; font-weight: 700; }
#buy h3 img { width: 34px; height: 34px; border-radius: 8px; }
#buy h3 .bt { color: var(--buy); }
#buy h3 .muted { font-size: 13px; font-weight: 400; }
#buy .bgrp { font-size: 12px; color: var(--muted); margin: 10px 0 2px; }
#buy .br { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; width: 100%; border: 0; border-top: 1px solid var(--line);
  background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; padding: 6px 4px; cursor: pointer; }
#buy .br:hover, #buy .br:focus-visible { background: rgba(47, 209, 187, .1); outline: 0; }
#buy .bnm { font-weight: 600; }
#buy .binv { text-align: right; font-size: 13px; color: #ffd9a6; font-variant-numeric: tabular-nums; }
#buy .binv small { display: block; color: #ffd98a; font-size: 12px; }
#buy .bgo { color: var(--muted); font-size: 13px; }
#buy .br:hover .bgo { color: var(--buy); }
#buy .empty-note { padding: 14px 4px; line-height: 1.6; }
@media (max-width: 820px) { #buy { left: 16px; right: 16px; width: auto; max-height: 40vh; } }

/* ---------------------------------------------------------------- 내성항 (2026-11-20): 아이콘 왼쪽 아래 '내' 인장. 하트(값 오른쪽 위)와 대각선 반대.
   남보라 하나: 하트 빨강·교역품 색·금색 반짝임 어느 것과도 겹치지 않음. 칸이 흐려지면(.old .low) 같이 흐려짐 */
:root { --ns: #4b3aa8; }
.bi .ic { position: relative; display: block; flex: none; line-height: 0; }
.bi.ns .ic::after { content: "내"; position: absolute; left: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 3px; background: var(--ns); color: #fff;
  font-size: 8px; font-weight: 800; line-height: 11px; text-align: center; letter-spacing: -.5px; box-shadow: 0 0 0 1.2px #fff8e6; }
.bubble.shine .bi.ns .ic::after { box-shadow: 0 0 0 1.2px #ffefb8; }
.bubble.allLow .bi.ns .ic::after { box-shadow: 0 0 0 1.2px #dde5ef; }
#map.far .bi.ns .ic::after { content: ""; width: 6px; height: 6px; left: -2px; bottom: -2px; border-radius: 50%; padding: 0; }
.nschip { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; color: #fff; background: var(--ns); border-radius: 4px; padding: 0 5px;
  vertical-align: 1px; line-height: 1.5; box-shadow: 0 0 0 1px rgba(201, 191, 255, .35); }
.nswhy { font-size: 12px; color: #b9b0ec; line-height: 1.35; }
.nsShow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; color: #c9bfff; font-weight: 600; cursor: pointer; white-space: nowrap; border-radius: 7px; }
.nsShow:hover { background: rgba(143, 125, 255, .12); }
.nsShow input { width: 15px; height: 15px; margin: 0; accent-color: #8f7dff; cursor: pointer; }
.nsShow i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--ns); color: #fff; font-style: normal; font-size: 9.5px; font-weight: 800;
  line-height: 14px; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

/* DB 추천 여부 검색 돋보기 + 상자, 가치표 도시·교역품 링크 (2026-11-22 사용자: 링크에 색은 넣지 않음) */
.nbSrch { display: inline-flex; vertical-align: -2px; margin-left: 6px; padding: 2px 3px; border-radius: 5px; color: var(--muted); cursor: pointer; }
.nbSrch:hover, .nbSrch:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); outline: none; }
.nsBox { width: 400px; z-index: 1006; }
.nsBox .nvQ { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.nsBox .nvRes { margin: 0; }
.nbCityLk, .nbGoodLk { cursor: pointer; }
.nbCityLk:hover, .nbGoodLk:hover { text-decoration: underline; }
