/* ─────────────────────────────────────────────────────────────────────────
 * app.css — 개발가치지도
 *
 * 화면 언어는 gam119.com 에서 빌려 온다(색·글꼴·주황). 배치는 다르다:
 * **왼쪽은 지도, 오른쪽은 붙박이 설명창**이다(밸류쇼핑이 쓰는 방식).
 *
 * ⚠️ 말풍선을 쓰지 않는다. 말풍선은 필지를 덮고, 길어지면 아래가 잘리고,
 *    무엇보다 표를 못 담는다. 감정평가사 사이트에서 숫자는 표로 서야 읽힌다.
 * ⚠️ 손전화에서는 오른쪽이 없다 — 아래에서 올라오는 창이 된다.
 * ───────────────────────────────────────────────────────────────────────── */
:root {
  --ink: #1b1d21;
  --orange: #f4581c;
  --orange-deep: #c2410c;
  --steel: #6b6e73;
  --line: #d8d9db;
  --slab: #1a1d21;
  --muted: #b9bcc0;
  --hot: #ffc400;
  --bar-h: 52px;
  --pn-w: 510px;
  --tb-th: #f3f4f6;
}
* {
  box-sizing: border-box;
}
/* ⚠️ hidden 속성보다 display:flex 가 세다. 이걸 안 적으면 숨긴 것이 다 보인다. */
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: #ecece9;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ═══ 상단바 ═══ */
.bar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(26, 29, 33, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--orange);
}
.bar .logo {
  font-family: "Black Han Sans", sans-serif;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex: none;
}
.bar .logo span {
  color: var(--orange);
}
.bar .find {
  flex: 1;
  display: flex;
  min-width: 0;
  max-width: 460px;
}
.bar .find input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 1px solid #3a3f46;
  border-right: 0;
  background: #14171a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 0 11px;
  border-radius: 3px 0 0 3px;
}
.bar .find input::placeholder {
  color: #6f757c;
}
.bar .find button {
  height: 34px;
  padding: 0 13px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
}
.bar .tag {
  flex: none;
  font-size: 10.5px;
  color: var(--hot);
  border: 1px solid #4a4436;
  padding: 3px 7px;
  border-radius: 999px;
}
@media (max-width: 560px) {
  .bar .tag {
    display: none;
  }
  .bar .logo {
    font-size: 15px;
  }
}

/* ═══ 지도 ═══ */
#map {
  position: fixed;
  inset: var(--bar-h) 0 0 0;
  background: #e8e6e1;
  transition: right 0.18s ease;
}
body.panel-on #map {
  right: var(--pn-w);
}
#nokey {
  position: fixed;
  inset: var(--bar-h) 0 0 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: #f3f2ef;
}
#nokey b {
  font-size: 16px;
}
#nokey p {
  color: var(--steel);
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0 0;
}
#nokey code {
  background: #e3e1dc;
  padding: 1px 5px;
  font-size: 12px;
}

/* ═══ 지도 위 알약 ═══ */
.pill {
  position: fixed;
  z-index: 20;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: rgba(26, 29, 33, 0.93);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  padding: 9px 15px;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
  transition: right 0.18s ease;
}
.pill--mission {
  left: 12px;
  bottom: 14px;
  max-width: min(280px, 52vw);
  border-left: 3px solid var(--hot);
}
.pill--mission i {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--hot);
  letter-spacing: 0.06em;
}
.pill--mission b {
  display: block;
  font-weight: 500;
  word-break: keep-all;
}
.pill--saved {
  right: 12px;
  bottom: 14px;
  border-left: 3px solid var(--orange);
}
body.panel-on .pill--saved {
  right: calc(var(--pn-w) + 12px);
}
.pill--saved b {
  color: var(--orange);
}

.hint {
  position: fixed;
  z-index: 21;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--bar-h) + 12px);
  max-width: min(420px, 92vw);
  background: rgba(26, 29, 33, 0.93);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 10px 34px 10px 14px;
  border-radius: 6px;
  word-break: keep-all;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.hint button {
  position: absolute;
  right: 6px;
  top: 5px;
  border: 0;
  background: none;
  color: #9aa0a6;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  padding: 3px 6px;
}

/* ═════════════════════════════════════════════════════════════════════════
   오른쪽 설명창
   ═════════════════════════════════════════════════════════════════════════ */
#panel {
  position: fixed;
  z-index: 25;
  top: var(--bar-h);
  right: 0;
  bottom: 0;
  width: var(--pn-w);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.13);
}
.pn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 10px;
  background: var(--slab);
  color: #fff;
  border-bottom: 2px solid var(--orange);
}
.pn-fold {
  flex: none;
  border: 0;
  background: none;
  color: #cfd3d8;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  padding: 2px 4px;
  line-height: 1.15;
}
.pn-fold b {
  display: block;
  font-size: 13px;
}
.pn-fold i {
  font-style: normal;
  font-size: 10px;
}
.pn-fold:hover {
  color: #fff;
}
.pn-badge {
  flex: none;
  width: 46px;
  text-align: center;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  padding: 5px 2px 3px;
  line-height: 1.1;
}
.pn-badge b {
  display: block;
  font-size: 17px;
}
.pn-badge i {
  font-style: normal;
  font-size: 9px;
  color: var(--steel);
}
.pn-title {
  flex: 1;
  min-width: 0;
}
.pn-title b {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  word-break: keep-all;
}
.pn-title em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.pn-x {
  flex: none;
  border: 0;
  background: none;
  color: #9aa0a6;
  font-size: 24px;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
}
.pn-x:hover {
  color: #fff;
}

/* 탭 */
.pn-tabs {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
  overflow-x: auto;
  scrollbar-width: none;
}
.pn-tabs::-webkit-scrollbar {
  display: none;
}
/* 탭은 **박스(깃발)** 로 세운다 — 밑줄만으로는 어디까지가 한 탭인지 안 보였다
   (사장님 2026-08-22). 고른 탭은 주황 바탕에 흰 글씨로 확실히 갈라 놓는다. */
.pn-tabs {
  gap: 4px;
  padding: 6px 6px 0;
}
.pn-tabs button {
  flex: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #eceef1;
  font-family: inherit;
  font-size: 12.5px;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--steel);
  white-space: nowrap;
  border-radius: 5px 5px 0 0;
  position: relative;
  top: 1px;
}
.pn-tabs button:hover {
  background: #e2e5e9;
  color: var(--ink);
}
.pn-tabs button.on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.pn-tabs button.on:hover {
  background: var(--orange);
  color: #fff;
}
.pn-tabs .pn-unit {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  align-self: center;
  margin-right: 8px;
  background: #fff;
}

.pn-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 30px;
}

/* 접기 손잡이 (단추).
   ⚠️ 몸통에 붙이는 상태 클래스는 **이름이 달라야 한다**(body.panel-on).
      둘 다 pn-open 이었더니 이 단추의 스타일이 <body> 에 통째로 걸려
      페이지 글자가 흰색·Times New Roman 이 됐다(2026-08-22 실측 —
      표가 비어 보인 진짜 원인이 이것이었다). */
.pn-open {
  position: fixed;
  z-index: 26;
  right: 0;
  top: calc(var(--bar-h) + 14px);
  border: 0;
  background: var(--slab);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  box-shadow: -3px 2px 10px rgba(0, 0, 0, 0.2);
}

/* ── 사진·모형 두 칸 ── */
.pn-visual {
  display: flex;
  gap: 8px;
}
.pn-visual .pv {
  flex: 1 1 0;
  min-width: 0;
}
.pn-visual .pv > i {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--steel);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.pv-rv,
.pv-draw {
  height: 186px;
  background: #eceef0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.pv-draw {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-draw .dmass {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.pv-draw .dmass::after {
  display: none;
}
.pv-draw .mssvg {
  max-height: 100%;
  max-width: 100%;
}
.rv-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--steel);
  word-break: keep-all;
}
.pn-vnote {
  font-size: 11px;
  line-height: 1.65;
  color: var(--steel);
  margin: 7px 0 0;
  word-break: keep-all;
}

/* ── 큰 금액 ── */
.pn-big {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: #14171a;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pn-big i {
  font-style: normal;
  font-size: 12px;
  color: #a9b0b8;
}
.pn-big b {
  font-size: 23px;
  color: var(--hot);
  letter-spacing: -0.01em;
}

/* ── 제목 ── */
.pn-h {
  font-size: 13.5px;
  margin: 20px 0 7px;
  padding-left: 9px;
  border-left: 3px solid var(--orange);
  line-height: 1.3;
}
.pn-h em {
  font-style: normal;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--steel);
  margin-left: 5px;
}
.pn-h small {
  font-weight: 400;
  font-size: 10.5px;
  color: var(--steel);
}

/* ── 표 ── */
.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  border-top: 1px solid #c9ccd0;
}
.tb th,
.tb td {
  border-bottom: 1px solid #e6e8ea;
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  word-break: keep-all;
}
.tb th {
  background: var(--tb-th);
  color: #4a4f56;
  font-weight: 500;
  width: 24%;
  /* ⚠️ nowrap 을 걸면 긴 제목이 칸을 밀어내 값 칸이 손톱만 해진다.
     네 칸짜리 표에서는 제목도 접히게 둔다. */
  word-break: keep-all;
}
.tb td {
  width: 26%;
}
.tb td[colspan="3"] {
  width: auto;
}
.tb .mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  color: var(--steel);
}
.tb-sec th {
  background: #e8eaed;
  color: var(--ink);
  font-weight: 700;
  width: auto;
}
.tb-note {
  background: #fcfcfd;
  color: var(--steel);
  font-size: 11px;
  line-height: 1.65;
}
.tb-star th {
  width: 42%;
}
.tb-star .st {
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 13px;
}
.tb-star .st .d {
  color: #d6d9dd;
}
.tb-star .off {
  color: #b8bcc1;
}

/* 딱지 */
.tag-a,
.tag-e {
  display: inline-block;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 2px;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag-a {
  background: #fff2cc;
  color: #8a6400;
  border: 1px solid #f0dfa8;
}
.tag-e {
  background: #eef3fb;
  color: #3a5c8a;
  border: 1px solid #d5e0ef;
}

/* 시나리오 값 */
.sc {
  font-size: 15px;
  font-weight: 500;
}
.sc.on {
  font-weight: 700;
}

/* ── 전략 고르기 ── */
.pn-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}
.pn-pick button {
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 3px;
  cursor: pointer;
}
.pn-pick button:hover {
  border-color: var(--orange);
}
.pn-pick button.on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.pn-pick button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── 입력 ── */
.pn-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.pn-inputs label {
  display: block;
  font-size: 11px;
  color: #4a4f56;
}
.pn-inputs input {
  width: 100%;
  margin-top: 4px;
  height: 31px;
  /* 하얀 칸은 바탕과 붙어 보여 「넣는 자리」인 줄 몰랐다(사장님 2026-08-22) */
  border: 1px solid #c8ccd2;
  background: #fdf4ec;
  font-family: inherit;
  font-size: 13px;
  padding: 0 8px;
  border-radius: 3px;
}
.pn-inputs input:focus {
  outline: 0;
  border-color: var(--orange);
}
.pn-need {
  background: #fff8e6;
  border-left: 3px solid var(--hot);
  padding: 10px 12px;
  font-size: 12px;
  color: #6b5300;
  line-height: 1.65;
  margin-top: 12px;
  word-break: keep-all;
}

/* ── 안내·목록 ── */
.pn-warn {
  border: 1px solid #f0dfa8;
  background: #fffdf5;
  border-radius: 4px;
  padding: 11px 13px;
  margin-top: 18px;
}
.pn-warn b {
  font-size: 12.5px;
}
.pn-warn p {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6b5300;
  word-break: keep-all;
}
.pn-list {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.85;
  color: #4a4f56;
}
.pn-empty,
.pn-wait {
  font-size: 12.5px;
  color: var(--steel);
  line-height: 1.7;
  padding: 10px 0;
  word-break: keep-all;
}
.mini {
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
}
.pn-acts {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.pn-acts button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  padding: 11px 6px;
  border-radius: 3px;
  cursor: pointer;
}
.pn-acts .go {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}
.pn-acts button.done {
  border-color: var(--orange);
  color: var(--orange);
}

/* ═══ 손전화 — 오른쪽이 없다. 아래에서 올라온다 ═══ */
@media (max-width: 900px) {
  :root {
    --pn-w: 100%;
  }
  body.panel-on #map {
    right: 0;
    bottom: 62%;
  }
  #panel {
    top: auto;
    height: 62%;
    border-top: 2px solid var(--orange);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
  }
  body.panel-on .pill--mission,
  body.panel-on .pill--saved {
    display: none;
  }
  .pn-open {
    top: auto;
    bottom: 14px;
    right: 12px;
    border-radius: 999px;
  }
  .pn-inputs {
    grid-template-columns: 1fr;
  }
  .tb th {
    width: 34%;
  }
}

/* ═══ 내 후보지 서랍 ═══ */
.drawer {
  position: fixed;
  z-index: 40;
  right: 0;
  top: var(--bar-h);
  bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
}
.drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.drawer > header b {
  font-size: 14px;
}
.drawer > header button {
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--steel);
  line-height: 1;
}
.drawer #drawerList {
  flex: 1;
  overflow: auto;
}
.drawer > footer {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--steel);
}
.ms {
  padding: 12px 14px;
  background: #fff9e8;
  border-bottom: 1px solid #f0e6c8;
}
.ms i {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: #a07800;
  letter-spacing: 0.04em;
}
.ms b {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 3px;
  word-break: keep-all;
}
.ms em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--steel);
  line-height: 1.55;
  margin-top: 5px;
  word-break: keep-all;
}
.ms-bar {
  display: block;
  height: 4px;
  background: #ece0bd;
  border-radius: 2px;
  margin-top: 7px;
  overflow: hidden;
}
.ms-bar span {
  display: block;
  height: 100%;
  background: var(--orange);
}
.sortbar {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.sortbar button {
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  color: var(--steel);
}
.sortbar button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.sv {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f0efec;
}
.sv.hit {
  box-shadow: inset 3px 0 0 var(--orange);
  background: #fffaf7;
}
.sv-go {
  flex: 1;
  text-align: left;
  border: 0;
  background: none;
  font-family: inherit;
  padding: 11px 6px 11px 14px;
  cursor: pointer;
}
.sv-go:hover {
  background: #faf9f7;
}
.sv-go b {
  display: block;
  font-size: 13px;
}
.sv-go em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--steel);
  margin-top: 3px;
}
.sv-x {
  flex: none;
  width: 34px;
  border: 0;
  background: none;
  color: #b9bcc0;
  font-size: 17px;
  cursor: pointer;
}
.sv-x:hover {
  color: var(--orange);
}
.sv-empty {
  padding: 22px 16px;
  color: var(--steel);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ⚠️ massing.js 는 그리면서 el.className 을 통째로 「dmass real」로 갈아치운다.
   그래서 모형을 **한 겹 감싼다** — 안 감싸면 pv-draw 가 날아가 칸 크기와
   ::after 숨김이 같이 사라진다(2026-08-22 실측: 「지상 14층 · 모양만…」
   설명글이 그림 아래에 그대로 나왔다). */
.pv-draw > div {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv-draw > div::after {
  display: none;
}

/* ⚠️ massing.css 는 `.mssvg { width:100%; height:auto }` 다. 칸 높이가 정해진
   여기서는 그대로 두면 세로로 넘쳐 **건물 윗부분이 잘린다**(2026-08-22 실측).
   높이를 칸에 맞추고 너비를 따라오게 뒤집는다. */
.pv-draw .mssvg {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
}

/* ═══ 요약 탭 — 현재가치 → 개발비용 → 개발후가치 → 순수익 ═══ */
/* 로드뷰를 크게 하나 (사장님 2026-08-22: 맨 위에 로드뷰 크게) */
.pn-shot {
  position: relative;
  height: 240px;
  background: #eceef0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
/* 개발후가치 위의 모형도 크게. massing.js 가 className 을 갈아치우므로 한 겹 감쌌다 */
.pn-model {
  height: 300px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pn-model > div {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pn-model > div::after {
  display: none;
}
.pn-model .mssvg {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
}

/* 한 줄기 — 세 칸을 ＋ ＝ 로 잇는다 */
.flow {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 14px 0 2px;
}
.flow-step {
  flex: 1 1 0;
  min-width: 0;
  background: #f6f7f8;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 8px;
  position: relative;
}
.flow-step > i {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: var(--steel);
}
.flow-step > b {
  display: block;
  font-size: 15px;
  margin-top: 2px;
  line-height: 1.25;
  word-break: keep-all;
}
.flow-step > em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--steel);
  margin-top: 3px;
  line-height: 1.4;
  word-break: keep-all;
}
.flow-step .flow-n {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 9.5px;
}
.flow-op {
  align-self: center;
  color: var(--steel);
  font-size: 13px;
  flex: none;
}

/* 순수익 — 남으면 초록, 밑지면 빨강 */
.pn-big.up b {
  color: #7bd47c;
}
.pn-big.dn b {
  color: #ff8a7a;
}

/* ═══ 지도 위 필지 딱지 ═══ */
.mlabel {
  background: rgba(26, 29, 33, 0.94);
  color: #fff;
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  padding: 8px 11px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.mlabel .ml-addr {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #33383e;
}
.mlabel .ml-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mlabel .ml-row i {
  font-style: normal;
  color: #9aa1a8;
}
.mlabel .ml-row b {
  font-weight: 500;
}
.mlabel .ml-row em {
  font-style: normal;
  color: var(--hot);
  font-size: 10.5px;
}
.mlabel .ml-row.up b {
  color: #7bd47c;
  font-weight: 700;
}
.mlabel .ml-row.dn b {
  color: #ff8a7a;
  font-weight: 700;
}

/* ═══ 모형 위 단추 — 좌하단 「원래 각도」 · 우하단 「주변건물」 ═══ */
.pn-model {
  position: relative;
}
.mdl-btn {
  position: absolute;
  bottom: 8px;
  border: 1px solid #c9ccd0;
  background: rgba(255, 255, 255, 0.94);
  color: #3a4048;
  font-family: inherit;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.mdl-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.mdl-l {
  left: 8px;
}
.mdl-r {
  right: 8px;
}

/* ═══ 요약 — 진한 박스 넷 ═══ */
.sum4 {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 2px 0 14px;
}
.s4 {
  flex: 1 1 0;
  min-width: 0;
  background: var(--slab);
  color: #fff;
  border-radius: 4px;
  padding: 10px 8px;
  text-align: center;
}
.s4 i {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  color: #a9b0b8;
}
.s4 b {
  display: block;
  font-size: 15px;
  margin-top: 3px;
  line-height: 1.25;
  word-break: keep-all;
}
.s4 em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: #8f959c;
  margin-top: 3px;
  word-break: keep-all;
}
/* 눌러서 해당 탭으로 넘어가는 박스 */
.s4go {
  cursor: pointer;
  position: relative;
  transition:
    background 0.12s,
    transform 0.12s;
}
.s4go::after {
  content: "›";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  line-height: 1;
  color: #6f767e;
}
.s4go:hover {
  background: #2a2f36;
}
.s4go:hover::after {
  color: #cfd4d9;
}
.s4go:active {
  transform: translateY(1px);
}
.s4go:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 1px;
}
.s4.hot b {
  color: var(--hot);
}
.s4.up b {
  color: #7bd47c;
}
.s4.dn b {
  color: #ff8a7a;
}
/* ＋ vs ＝ — 작고 흐려서 안 보인다던 자리(사장님 2026-08-22) */
.s4op {
  align-self: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  flex: none;
  padding: 0 1px;
}

/* ═══ 개발잠재력 점수 크게 ═══ */
.score-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #14171a;
  color: #fff;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 14px 0 0;
}
.score-big i {
  font-style: normal;
  font-size: 12.5px;
  color: #a9b0b8;
}
.score-big b {
  font-size: 34px;
  color: var(--hot);
  line-height: 1;
  letter-spacing: -0.02em;
}
.score-big em {
  font-style: normal;
  font-size: 12px;
  color: #8f959c;
}
.score-big span {
  margin-left: auto;
  letter-spacing: 2px;
}
.score-big .st {
  color: var(--orange);
  font-size: 14px;
}
.score-big .st .d {
  color: #4a5058;
}

/* ═══ 표 안의 돈 줄 · 개별요인 줄 · 막대 ═══ */
.tb-money th {
  background: #eef1f4;
  color: #23303d;
}
.tb-money td {
  background: #f8fafc;
  font-size: 13px;
}
.tb-note .ld {
  color: var(--ink);
}
.tb-note .src {
  display: block;
  margin-top: 4px;
  color: #9aa1a8;
  font-size: 10px;
}
.tag-d {
  display: inline-block;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 2px;
  vertical-align: 1px;
  white-space: nowrap;
  background: #e8f5ea;
  color: #2c6b39;
  border: 1px solid #cbe6d1;
}
/* 업종 막대.
   ⚠️ 이 클래스를 `.bar` 라 지었더니 **상단바(<header class="bar">)를 덮어**
      높이 7px 짜리 회색 알약이 되면서 「가치맵」 글자가 통째로 사라졌다
      (2026-08-22 사장님이 보셨다). pn-open 때와 똑같은 이름 충돌이다.
      ★ 새 클래스를 지을 때는 이미 쓰는 이름인지 먼저 볼 것. */
.ubar {
  display: block;
  height: 7px;
  background: #eceef0;
  border-radius: 4px;
  overflow: hidden;
}
.ubar span {
  display: block;
  height: 100%;
  background: var(--orange);
  opacity: 0.75;
}
.src2 {
  font-size: 10px;
  color: var(--steel);
  white-space: nowrap;
}
/* 업종 막대 — 값 칸이 좁아 안 보이던 것을 넓혀 준다 */
.tb td .ubar {
  min-width: 60px;
}

/* ═════════════════════════════════════════════════════════════════════════
   값 강조 · 셈 표 · 까닭 (사장님 2026-08-22)
   ═════════════════════════════════════════════════════════════════════════ */

/* 「이 숫자를 보라」— 토지가격·건물가격·현재가치 합계에 쓴다 */
.v-hot {
  color: var(--orange-deep);
  font-size: 14.5px;
  font-weight: 800;
}
.v-up {
  color: #17803d;
  font-size: 14.5px;
  font-weight: 800;
}
.v-dn {
  color: #c2261a;
  font-size: 14.5px;
  font-weight: 800;
}

/* 요약 「한 줄로」의 넉 줄 셈 — 나머지 표와 확실히 갈라 세운다.
   ⚠️ .tb 는 border-collapse:collapse 라 border-radius 가 안 먹는다. 테만 두른다. */
.tb-key {
  border: 2px solid #2c333b;
  margin-bottom: 10px;
}
.tb-key th {
  background: #2c333b !important;
  color: #fff !important;
  font-weight: 600;
}
.tb-key td {
  background: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
}
.tb-key tr + tr th,
.tb-key tr + tr td {
  border-top: 1px solid #c9ced5;
}

/* 개발총수익 금액 밑 「왜 남는가 / 왜 모자라는가」 */
.pn-why {
  margin: 0 0 12px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.75;
  word-break: keep-all;
  border-radius: 0 0 4px 4px;
  border-left: 4px solid;
}
.pn-why.up {
  background: #eef8f1;
  border-left-color: #17803d;
  color: #14361f;
}
.pn-why.dn {
  background: #fdf0ee;
  border-left-color: #c2261a;
  color: #3d1a15;
}

/* 순손실인데 개발잠재력 점수만 높을 때 붙이는 단서 */
.pn-note-dn {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #fdf0ee;
  border-left: 4px solid #c2261a;
  font-size: 12px;
  line-height: 1.75;
  color: #3d1a15;
  word-break: keep-all;
}

/* ═══ 토지가격 · 건물가격은 색으로 가른다 (사장님 2026-08-22) ═══
   ⚠️ 색만으로 뜻을 전하지 않는다 — 줄 제목이 「토지가격」·「건물가격」으로
      이미 말하고 있고, 색은 눈이 빨리 찾게 도울 뿐이다. */
.v-land {
  color: #1d6f42; /* 땅 — 초록 */
  font-size: 14.5px;
  font-weight: 800;
}
.v-bldg {
  color: #1f5fa8; /* 건물 — 파랑 */
  font-size: 14.5px;
  font-weight: 800;
}
/* 그 줄 전체를 옅게 물들여 한눈에 갈라 보이게 */
.tb tr.tb-money:has(.v-land) td {
  background: #f2f9f4;
}
.tb tr.tb-money:has(.v-bldg) td {
  background: #f2f6fb;
}

/* ── 상권분석 ────────────────────────────────────────────────────────────
   비어 있는 업종 한 줄 + 그 아래 까닭 한 줄이 한 벌이다.
   ⚠️ 이름을 sg- 로 못박는다. 예전에 .bar 를 그냥 썼다가 <header class="bar">
      를 덮어써서 「가치맵」 글자가 통째로 사라졌다(2026-08-22). */
.sg .sg-r td {
  border-bottom: 0;
  padding-bottom: 3px;
}
.sg .sg-r td em {
  color: var(--steel);
  font-size: 11px;
  font-style: normal;
  margin-left: 4px;
}
.sg .sg-w td {
  background: #f6f9f6;
  color: #2f4a34;
  font-size: 11.5px;
  line-height: 1.7;
  padding: 4px 9px 9px;
}
.pn-note {
  background: #fcfcfd;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--steel);
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0 0;
  padding: 8px 10px;
}

/* ── 비건축 개발(임야·농지) ──────────────────────────────────────────────
   후보 한 줄 + 그 아래 법 근거 한 줄이 한 벌이다.
   ⚠️ 이름을 lu- 로 못박는다(.bar 사건 재발 방지). */
.lu .lu-r td,
.lu .lu-r th {
  border-bottom: 0;
  padding-bottom: 3px;
}
.lu-j {
  border-radius: 3px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
}
.lu-ok {
  background: #e3f1e6;
  color: #1f6b33;
}
.lu-warn {
  background: #fdf1dc;
  color: #8a5a10;
}
.lu-no {
  background: #f6e2e2;
  color: #9b2c2c;
}
.lu .lu-w td {
  background: #fafbfc;
  color: var(--steel);
  font-size: 11.5px;
  line-height: 1.7;
  padding: 4px 9px 9px;
}
.lu-x {
  color: #9b2c2c;
}
.lu-c {
  color: #4b5563;
}
.lu-d {
  color: var(--steel);
  font-size: 10px;
  font-style: normal;
}
.lu-blank {
  color: #9aa1a9;
  font-style: italic;
}

/* ── 건물주 ──────────────────────────────────────────────────────────────
   BEFORE(로드뷰) 위, AFTER(상상도) 아래. 그 사이 화살표가 「변신」을 말한다.
   ⚠️ 이름을 gm- 로 못박는다. .bar 를 그냥 썼다가 「가치맵」 글자가 통째로
      사라진 적이 있다(2026-08-22). */
.gm-ba {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 6px;
  padding: 26px 10px 10px;
  position: relative;
}
.gm-lab {
  background: #55606b;
  border-radius: 0 0 6px 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  left: 0;
  padding: 3px 10px;
  position: absolute;
  top: 0;
}
.gm-lab2 {
  background: #2f7d4f;
}
.gm-arrow {
  color: #9aa1a9;
  font-size: 20px;
  line-height: 1;
  margin: 2px 0 6px;
  text-align: center;
}
.gm-card {
  background: #fff;
}
.gm-top {
  color: var(--steel);
  font-size: 12px;
}
.gm-rank {
  border: 1px solid var(--c);
  border-radius: 3px;
  color: var(--c);
  float: right;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}
.gm-name {
  font-size: 19px;
  line-height: 1.35;
  margin: 6px 0 4px;
}
.gm-name i {
  font-style: normal;
  margin-right: 6px;
}
.gm-real {
  color: var(--steel);
  font-size: 12px;
  margin: 0 0 8px;
}
.gm-why {
  background: #f6f9f6;
  border-radius: 6px;
  color: #2f4a34;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 9px 11px;
}
.gm-art {
  margin: 10px 0 0;
}
.gm-art svg {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
}
.gm-art figcaption {
  color: #8a929a;
  font-size: 10.5px;
  margin-top: 4px;
  text-align: center;
}
.gm-btns {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.gm-btns button {
  background: #fff;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  cursor: pointer;
  flex: 1;
  font-size: 13px;
  padding: 9px;
}
.gm-btns button:hover {
  background: #f4f7fa;
}
.gm-btns button:disabled {
  color: #9aa1a9;
  cursor: default;
}
.gm-more {
  background: #2f7d4f !important;
  border-color: #2f7d4f !important;
  color: #fff;
  font-weight: 700;
}
.gm-more:hover {
  background: #276941 !important;
}
.gm-warn {
  color: #8a929a;
  font-size: 10.5px;
  line-height: 1.65;
  margin: 8px 0 0;
}
.gm-empty {
  color: var(--steel);
  padding: 20px 0;
  text-align: center;
}
