/* 43기 신축부지 탐색기 — 바이올렛 테마(Pretendard + AI 별). 900px 미만 모바일, 이상 PC도 한 줄로 내려읽기. */
:root {
  --ivory: #FBFBFE; --card: #FFFFFF; --line: #E8E6F2; --accent-face: #F2EFFF;
  --ink: #17151F; --ink2: #55526A; --ink3: #8A87A0;
  --accent-d: #5340C9; --accent-m: #8C7CF0; --accent-l: #D8D1FF;
  --green-d: #2F6B38; --green-m: #4E9A55; --green-f: #E6F1E4; --green-line: #C9DFC6;
  --warn-d: #A4480F; --warn-f: #FBE9DC;
  --dark: #17151F; --dark-hover: #2B2838; --on-dark: #F5F3FF;
  --land: #F1F0F7;
  --accent: #6E56CF; --on-accent: #FFFFFF; /* 브랜드 보라 하나. 그라데이션은 쓰지 않는다 */
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2c.6 4.6 2.9 6.9 7.5 7.5-4.6.6-6.9 2.9-7.5 7.5-.6-4.6-2.9-6.9-7.5-7.5C7.1 8.9 9.4 6.6 10 2z'/%3E%3Cpath d='M19 13c.3 2.2 1.3 3.2 3.5 3.5-2.2.3-3.2 1.3-3.5 3.5-.3-2.2-1.3-3.2-3.5-3.5 2.2-.3 3.2-1.3 3.5-3.5z'/%3E%3C/svg%3E"); /* AI 별 표식 */
  --shadow: 0 1px 2px rgba(23,21,31,.06), 0 4px 16px rgba(23,21,31,.05);
  --r-card: 14px; --r-btn: 12px;
  --appbar: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, system-ui, sans-serif; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  font-size: 14px; line-height: 1.5; overflow-x: hidden;
  word-break: keep-all; overflow-wrap: break-word; /* 한글은 낱말 단위로 줄을 바꾸고, 그래도 안 들어가는 긴 낱말만 쪼갠다 */
}
h1, h2, h3, .card-head > *, .lb-l, .fact-l, .fact-s, .tile-l, .tile-s, .lb-v { text-wrap: balance; } /* 제목·짧은 칸: 끝줄에 한두 글자만 남지 않게 */
p, li, blockquote, .pt-v { text-wrap: pretty; }
body.sheet-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent-d); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent-m); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-only { display: none; }
.d-only { display: none; }

/* 글자 유틸 */
.muted { color: var(--ink3); }
.muted2 { color: var(--ink2); }
.small { font-size: 12px; line-height: 1.5; }
.strong { font-weight: 700; }
.normal { font-weight: 400; }
.ink { color: var(--ink); }
.green, .green-t { color: var(--green-d); }
.warn-t { color: var(--warn-d); }
.gold { color: var(--accent-d); }
.gold-l { color: var(--accent-l); }
.na { color: var(--ink3); font-weight: 400; }
.r { text-align: right; }
.grow { flex: 1; min-width: 0; }
.full { width: 100%; }
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }

/* 브랜드 */
.wordmark { display: block; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; font-size: 18px; color: var(--ink); }
.wordmark-lg { font-size: 27px; line-height: 1.25; margin-top: 12px; }

/* 버튼 */
.btn-gold, .btn-dark, .btn-line, .btn-outline-gold { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; border-radius: var(--r-btn); font-size: 15px; font-weight: 700; }
.btn-gold { border: 0; background: var(--accent); color: var(--on-accent); font-size: 16px; height: 52px; }
.btn-dark { border: 0; background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: var(--dark-hover); }
.btn-line { border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-weight: 400; }
.btn-outline-gold { border: 1px solid var(--accent-m); background: var(--card); color: var(--accent-d); }
.btn-line:hover, .btn-outline-gold:hover, .chip-btn:hover, .icon-btn.ghost:hover, .icon-btn:hover { background: var(--accent-face); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--r-btn); background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); padding: 0; }
.icon-btn.ghost { color: var(--ink3); }
.icon-btn.soft { background: var(--ivory); }
.icon-btn.boxed { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); }
.icon-btn.sm { width: 38px; height: 38px; }
.chip-btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; color: var(--ink2); }
.seg-group { display: flex; gap: 3px; padding: 3px; background: var(--accent-face); border-radius: var(--r-btn); }
.seg-group.sm { border-radius: 10px; gap: 2px; }
.seg-btn { flex: 1; min-height: 44px; min-width: 52px; border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font-size: 14px; font-weight: 500; padding: 0 8px; white-space: nowrap; }
.seg-group.sm .seg-btn { flex: none; font-size: 13px; min-width: 54px; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); font-weight: 700; }
.scen-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.scen-btn { min-height: 56px; padding: 6px 4px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--card); text-align: center; }
.scen-btn[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-dark); }
.scen-t { display: block; font-size: 14px; font-weight: 700; }
.scen-s { display: block; margin-top: 2px; font-size: 11px; opacity: .8; }
.fold-btn { margin-top: 12px; width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card); font-size: 14px; font-weight: 700; }
.chev { display: flex; transition: transform .2s; }
.chev.open { transform: rotate(180deg); }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 9px; white-space: nowrap; flex: none; }
.chip-ok { color: var(--green-d); background: var(--green-f); }
.chip-warn { color: var(--warn-d); background: var(--warn-f); }
.chip-block { color: #FFFFFF; background: var(--warn-d); }
.chip-gold { color: var(--accent-d); background: var(--accent-face); border: 1px solid var(--accent-l); }
.chip-line { color: var(--ink2); background: var(--ivory); border: 1px solid var(--line); font-weight: 400; font-size: 12px; padding: 4px 10px; }
.chip-law { color: var(--accent-d); border: 1px solid var(--accent-l); font-weight: 400; }
.badge-fit { font-size: 11px; font-weight: 700; color: var(--accent-d); background: var(--accent-face); border: 1px solid var(--accent-l); border-radius: 999px; padding: 1px 7px; }
/* 상권 분석: 개발 방향 · 업종 막대 */
.direction { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--accent-face); border: 1px solid var(--accent-l); }
.direction-l { font-size: 12px; font-weight: 700; color: var(--accent-d); }
.direction-l::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; background: var(--accent); -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat; }
.direction-v { margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.direction ul { margin-top: 8px; display: grid; gap: 4px; }
.direction li { position: relative; padding-left: 12px; font-size: 13px; line-height: 1.55; color: var(--ink2); word-break: keep-all; }
.direction li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-m); }
.bars { margin-top: 10px; display: grid; gap: 8px; }
.tbl-wrap { margin-top: 10px; overflow-x: auto; }
.tbl.comps { width: max-content; min-width: 100%; font-size: 13px; }
.tbl.comps th, .tbl.comps td { white-space: nowrap; padding-right: 10px; }
.tbl.comps tr.same td { background: var(--accent-face); }
.tbl.comps tr.same td:first-child strong { color: var(--accent-d); }
.bars li { display: grid; grid-template-columns: 84px minmax(0, 1fr) 52px; align-items: center; gap: 8px; font-size: 13px; }
.bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.bar-track { height: 8px; border-radius: 4px; background: var(--accent-face); overflow: hidden; }
.bar-track span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar-v { text-align: right; font-weight: 700; }
.badge-rec { font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--green-d); border-radius: 999px; padding: 2px 8px; }
.tag { flex: none; width: 48px; text-align: center; font-size: 11px; font-weight: 700; color: var(--accent-d); background: var(--accent-face); border-radius: 999px; padding: 3px 0; }
.scope { display: inline-block; margin-top: 2px; font-size: 11px; color: var(--accent-d); background: var(--accent-face); border-radius: 999px; padding: 0 7px; }

/* ---------- 홈 ---------- */
.home { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: 36px 20px 24px; display: flex; flex-direction: column; } /* PC도 휴대폰과 같은 폭 */
.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.search-card { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.search-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); margin: 0 0 8px 2px; }
.search-row { display: flex; flex-direction: column; gap: 12px; }
.search-row .btn-gold { width: 100%; }
.search-field { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 4px 0 12px; border: 1.5px solid var(--accent-m); border-radius: var(--r-btn); background: var(--card); flex: 1; min-width: 0; }
.search-field input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; font-size: 16px; color: var(--ink); background: transparent; }
.search-field:focus-within { box-shadow: 0 0 0 3px rgba(110,86,207,.22); }
.search-field.compact { height: 46px; border: 1px solid var(--line); background: var(--ivory); }
.search-field.compact input { height: 40px; font-size: 15px; }
.search-results { margin-top: 6px; }
.search-hint { padding: 10px 6px; font-size: 13px; color: var(--ink3); }
.suggest-item { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 8px 6px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; border-radius: 8px; }
.suggest-item:hover, .suggest-item:focus-visible { background: var(--accent-face); }
.suggest-text { flex: 1; min-width: 0; }
.suggest-main { display: block; font-size: 14px; font-weight: 500; }
.suggest-sub { display: block; font-size: 12px; color: var(--ink3); margin-top: 1px; }
.alert { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: var(--r-btn); background: var(--warn-f); color: var(--warn-d); font-size: 13px; line-height: 1.55; }
.alert .ic { margin-top: 1px; }
.alert p { margin-top: 2px; color: var(--ink2); }
.section-label { margin: 0 0 8px 2px; font-size: 14px; font-weight: 700; color: var(--ink2); }
/* 첫 화면: 연동 서비스 로고(공식 원본 그대로, 흑백 띠. 올리면 원래 색) */
.home .sources { margin-top: auto; padding-top: 28px; } /* 안내 문구와 같이 바닥에 붙는다 */
.src-h { margin: 0 2px 8px; font-size: 13px; font-weight: 700; color: var(--ink2); text-align: center; }
.src-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 22px; padding: 8px 4px; }
.src a { min-height: 40px; display: flex; align-items: center; }
.src-logo img { display: block; width: auto; max-width: 140px; mix-blend-mode: multiply; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.src a:hover img, .src a:focus-visible img { filter: none; opacity: 1; }
.src-kogl { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; line-height: 1.5; color: var(--ink3); word-break: keep-all; }
.src-kogl img { flex: none; }
.home .sources + .disclaimer { margin-top: 0; padding-top: 16px; }
/* AI 별: 이름 앞·분석 버튼·첫 화면 질문·짚어 드릴 점 네 곳에만 */
.wordmark::before, .btn-gold::before, .home-intro::before, .advice-l::before {
  content: ''; display: inline-block; flex: none; background: var(--accent);
  -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat;
}
.wordmark::before { width: .82em; height: .82em; margin-right: .22em; vertical-align: -0.06em; }
.btn-gold::before { width: 17px; height: 17px; background: currentColor; }
.home-intro::before { width: 16px; height: 16px; margin-right: 6px; vertical-align: -2px; }
.advice-l::before { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
/* 첫 화면: 지도에서 고르기 */
.home-intro { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-card); background: var(--accent-face); font-size: 16px; font-weight: 700; text-align: center; word-break: keep-all; }
.home-map { margin-top: 18px; }
.hm-head { margin: 0 2px 8px; font-size: 15px; font-weight: 700; }
.hm-wrap { position: relative; height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--land); }
.hm-wrap.big { position: fixed; inset: 0; z-index: 50; height: auto; border-radius: 0; border: 0; }
.hm-map { position: absolute; inset: 0; }
.hm-tools { position: absolute; z-index: 21; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.hm-wrap .map-toast { top: 12px; }
.fab { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(23,21,31,.16); }
.fab:hover, .fab[aria-pressed="true"] { background: var(--accent-face); }
.map-toast { position: absolute; left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 999px; background: rgba(23,21,31,.9); color: var(--on-dark); font-size: 13px; font-weight: 500; text-align: center; pointer-events: none; }
.map-dead { padding: 24px; text-align: center; color: var(--ink3); font-size: 14px; }
.pin { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 6px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font: 700 12px 'Pretendard Variable', Pretendard, sans-serif; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; }
.pin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-l); }
.me-dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: #2F7BEA; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,123,234,.22); }
/* 지도로 고른 땅: 검색창과 버튼 사이 */
#pick-slot:empty { display: none; }
/* 첫 화면: 검색창·분석 시작하기는 화면 아래에 늘 붙어 있고, 지도에서 고른 필지 정보는 본문(지도 아래)에서 스크롤해 본다 */
.pick-panel { margin-top: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.search-dock { position: fixed; z-index: 1000; /* 네이버 지도 단추·로고(z-index 수백)보다 위 */ left: 50%; bottom: 0; transform: translateX(-50%); width: min(480px, 100%); margin: 0;
  border-radius: 16px 16px 0 0; border-bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(23,21,31,.08); }
.search-dock .search-row { gap: 8px; }
.search-dock .search-results { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px); margin: 0; max-height: 50vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.search-dock .search-results:empty { display: none; }
.home { padding-bottom: 150px; } /* 아래 고정 검색창에 가리지 않게 */
.pick-rows { margin: 0; display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pick-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 14px; }
.pick-row + .pick-row { border-top: 1px solid var(--line); }
.pick-row dt { flex: none; color: var(--ink3); font-size: 13px; }
.pick-row dd { margin: 0; text-align: right; font-weight: 700; }
.pick-row dd span { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--ink3); }
.pick-inline .brief-note { margin: 0 0 8px; }
.pick-lots { margin: 0 0 8px; font-size: 13px; color: var(--accent-d); background: var(--accent-face); border-radius: 10px; padding: 8px 10px; }
.pick-inline .pick-rows + .brief-note { margin: 8px 0 0; }
.brief-note { margin-top: 10px; font-size: 13px; color: var(--warn-d); background: var(--warn-f); border-radius: 10px; padding: 8px 10px; }
.brief-miss { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--warn-d); background: var(--warn-f); }
/* 지도에서 고르면 입력창이 반짝 */
/* 지도에서 고르면 검색창 전체(돋보기·지우기 버튼까지)가 한 번 보랏빛으로 깜빡인다 */
.search-field:has(input.filled) { animation: filled 1.4s ease-out; }
@keyframes filled { 0% { background: var(--accent-l); box-shadow: 0 0 0 6px rgba(110,86,207,.45); } 100% { box-shadow: 0 0 0 0 rgba(110,86,207,0); } }
.disclaimer { margin-top: auto; padding-top: 24px; font-size: 12px; line-height: 1.5; color: var(--ink3); text-align: center; }

/* ---------- 로딩 ---------- */
.loading { min-height: 100vh; min-height: 100dvh; padding: 64px 20px 24px; display: flex; justify-content: center; }
.loading-inner { width: 100%; max-width: 560px; display: flex; flex-direction: column; }
.loading-addr { margin-top: 18px; font-size: 13px; }
.loading-title { margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.progress { margin-top: 18px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green-m); border-radius: 999px; transition: width .35s ease; }
.loading .progress + p { margin-top: 8px; }
.loading .alert-block { margin-top: 14px; }
.steps { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.step { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; min-height: 46px; }
.step > .step-ic, .step > .spinner { margin-top: 1px; }
.step + .step { border-top: 1px solid var(--line); }
.step-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step-ic.ok { background: var(--green-f); color: var(--green-d); }
.step-ic.bad { background: var(--warn-f); color: var(--warn-d); }
.step-ic.pend { width: 20px; height: 20px; margin: 2px; border: 2px solid var(--line); }
.spinner { width: 20px; height: 20px; margin: 2px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent-m); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-label { font-size: 15px; color: var(--ink3); }
.step.done .step-label { color: var(--ink); font-weight: 500; }
.step.cur .step-label { color: var(--ink2); }
.step.partial .step-label { color: var(--ink); font-weight: 500; }
.step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.step-detail { font-size: 13px; color: var(--ink3); overflow-wrap: anywhere; word-break: keep-all; }
.step-detail:empty { display: none; }
.step.done .step-detail { color: var(--accent-d); font-weight: 500; }
.step.partial .step-detail { color: var(--warn-d); }
/* 단계 목록이 길어도 버튼은 화면 아래에 붙어 늘 보인다 */
.loading-actions { position: sticky; bottom: 0; z-index: 5; margin: auto -20px 0; padding: 12px 20px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; background: var(--ivory); border-top: 1px solid var(--line); }

/* ---------- 결과: 모바일 뼈대 ---------- */
.result { padding-bottom: 24px; } /* 아래 고정 버튼(PDF·링크)을 뺐다 */
.appbar { position: sticky; top: 0; z-index: 20; height: var(--appbar); display: flex; align-items: center; gap: 4px; padding: 0 4px; background: var(--ivory); border-bottom: 1px solid var(--line); }
.appbar-title { flex: 1; min-width: 0; }
.appbar-title p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ab-title { font-size: 15px; font-weight: 700; }
#ab-sub { font-size: 12px; color: var(--ink3); margin-top: 1px; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 16px; }
.title-main { display: none; }
.title-row .chips .chip-line, .title-row .chips .chip-gold { display: none; }
/* 분석 대상 판정 */
.scope { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-face); font-size: 13px; line-height: 1.55; word-break: keep-all; }
.scope.exclude, .scope.project { background: var(--warn-f); border: 1.5px solid var(--warn-d); }
.scope-h { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--warn-d); }
.scope ul { margin-top: 6px; display: grid; gap: 3px; }
.scope li { position: relative; padding-left: 10px; }
.scope li::before { content: '·'; position: absolute; left: 0; }
.scope-s { margin-top: 6px; font-size: 12px; color: var(--ink2); }
.scope-b { color: var(--ink); }
.scope.exclude .scope-b, .scope.project .scope-b { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(164,72,15,.25); }
.notices { width: 100%; display: grid; gap: 6px; }
.banner { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--warn-f); color: var(--warn-d); font-size: 13px; font-weight: 700; }
.warn-list { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-btn); padding: 0 12px; font-size: 13px; color: var(--ink2); }
.warn-list summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--warn-d); }
.warn-list ul { padding: 0 0 10px 16px; list-style: disc; }
.warn-list li + li { margin-top: 4px; }
.warn-retry { min-height: 40px; margin: 0 0 12px; padding: 0 14px; font-size: 13px; gap: 6px; }
.layout { padding: 12px 16px 0; }
.col-main { min-width: 0; }
/* 질문 4단계 */
.rs-nav-wrap { position: sticky; top: var(--appbar); z-index: 15; background: var(--ivory); padding: 12px 0 8px; }
.rs-nav { display: flex; gap: 3px; padding: 3px; background: var(--accent-face); border-radius: var(--r-btn); }
.rs-nav li { flex: 1; min-width: 0; }
.rs-nav-btn { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font-size: 13px; font-weight: 500; padding: 0 2px; white-space: nowrap; }
.rs-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--accent-m); color: var(--accent-d); font-size: 11px; font-weight: 700; line-height: 1; } /* 줄 높이가 크면 Pretendard 숫자가 1px 위로 뜬다(원 안 잉크로 재서 맞춤) */
.rs-nav-btn[aria-current="step"] { background: var(--ink); color: var(--on-dark); font-weight: 700; }
.rs-nav-btn[aria-current="step"] .rs-dot { background: var(--accent-l); border-color: var(--accent-l); color: var(--ink); }
.rs-step { padding-top: 14px; scroll-margin-top: 120px; }
.rs-step + .rs-step { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 22px; }
.rs-step > * + * { margin-top: 12px; }
.rs-head { display: flex; align-items: center; gap: 10px; }
.rs-no { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 15px; font-weight: 900; line-height: 1; padding-top: 2px; } /* 굵은 15px은 2px 내려야 가운데 */
.rs-q { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; word-break: keep-all; }
.rs-step > .rs-why { margin-top: 8px; }
.rs-why { font-size: 14px; line-height: 1.65; color: var(--ink2); word-break: keep-all; }
.advice { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.advice-l { font-size: 12px; font-weight: 700; color: var(--accent-d); }
.advice ul { margin-top: 6px; display: grid; gap: 8px; }
.advice li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.advice li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-m); }
.answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent-m); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 14px 16px; }
.answer-main { font-size: 16px; font-weight: 700; line-height: 1.55; word-break: keep-all; }
.answer-sub { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.facts { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 10px 12px; border-radius: 10px; background: var(--ivory); min-width: 0; }
.fact-l { font-size: 12px; color: var(--ink3); }
.fact-v { margin-top: 2px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.fact-s { margin-top: 1px; font-size: 12px; color: var(--ink3); overflow-wrap: anywhere; }
.fact-warn { background: var(--warn-f); }
.fact-warn .fact-v { color: var(--warn-d); }
.fact-gold { background: var(--accent-face); }
.fact-gold .fact-v { color: var(--accent-d); }
/* 요점 한 줄 + 접힌 근거(인용). 회색 설명문은 화면에 늘어놓지 않고 여기로 접는다 */
.pt { font-size: 14px; line-height: 1.55; color: var(--ink); word-break: keep-all; overflow-wrap: break-word; }
.pt > summary { list-style: none; cursor: pointer; }
.pt > summary::-webkit-details-marker { display: none; }
.pt-k { margin-right: 8px; font-weight: 700; }
.pt-v { color: var(--ink2); }
.pt-more, .why > summary { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--land); font-size: 11px; font-style: normal; font-weight: 600; line-height: 18px; color: var(--ink3); vertical-align: 1px; white-space: nowrap; }
.pt-more::after, .why > summary::after { content: '▾'; font-size: 9px; }
.pt[open] .pt-more::after, .why[open] > summary::after { content: '▴'; }
.pt > blockquote, .why > blockquote { margin: 6px 0 2px; padding: 6px 10px; border-left: 3px solid var(--accent-l); background: var(--ivory); font-size: 12.5px; line-height: 1.6; color: var(--ink2); word-break: keep-all; }
.pt-wn .pt-k { color: var(--warn-d); }
.why { display: inline; }
.why > summary { list-style: none; cursor: pointer; margin-left: 0; }
.why > summary::-webkit-details-marker { display: none; }
.why[open] { display: block; margin-top: 4px; }
.why[open] > summary { margin-bottom: 0; }
/* 아직 개발 중인 장: 내용 위에 반투명 회색 막. soft는 윤곽만, hard(결론)는 읽을 수 없게 */
.wip { position: relative; }
.wip-body > * + * { margin-top: 12px; }
.wip-body { user-select: none; pointer-events: none; }
.wip-soft .wip-body { filter: blur(4px); opacity: .55; }
.wip-hard .wip-body { filter: blur(16px); opacity: .45; }
.wip-veil { position: absolute; inset: -8px; border-radius: var(--r-card); background: rgba(85, 82, 106, .10); }
.wip-hard .wip-veil { background: rgba(85, 82, 106, .18); }
.wip-msg { position: sticky; top: 42vh; width: max-content; max-width: calc(100% - 32px); margin: 96px auto; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; color: var(--ink2); text-align: center; }
/* 개발 중인 장의 자리표시: 숫자·문장 없이 모양만(흐림 아래 깔린다) */
.sk-bar { display: block; height: 10px; margin: 8px 0; border-radius: 6px; background: var(--line); }
.sk-bar.sk-h { height: 16px; background: var(--accent-l); }
.sk-box .facts { margin-top: 14px; }
.sk-lines { margin-top: 14px; }
.sk-fig { height: 320px; background: var(--land); }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sk-card { padding: 16px; min-height: 180px; }
.sk-stack { display: block; height: 70px; margin: 12px 0; border-radius: 8px; background: var(--green-f); }
details.more { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
details.more > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent-d); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '펼치기'; flex: none; font-size: 12px; font-weight: 500; color: var(--ink3); }
details.more[open] > summary::after { content: '접기'; }
details.more > div { padding: 0 12px 12px; }
details.more .card { box-shadow: none; }
.slot:empty { display: none; }
.col-main .disclaimer { margin: 20px 0 0; padding: 0; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 72px; display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.actionbar .btn-outline-gold, .actionbar .btn-dark { height: 48px; padding: 0 8px; }

/* 카드 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card h3 { font-size: 16px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-head.wrap { flex-wrap: wrap; }
.sub { margin-top: 2px; font-size: 12px; color: var(--ink3); }
.panel-grid { display: flex; flex-direction: column; gap: 12px; }
.stack-col { display: flex; flex-direction: column; gap: 12px; }
.empty-note { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--ivory); color: var(--ink2); font-size: 13px; line-height: 1.55; }
.gold-box { padding: 10px 12px; border-radius: 10px; background: var(--accent-face); font-size: 13px; line-height: 1.5; }
.big-box { margin-top: 10px; padding: 12px; border-radius: var(--r-btn); }
.big-num { margin-top: 2px; font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }
.warn-box { margin-top: 10px; display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--warn-f); font-size: 13px; line-height: 1.5; color: var(--warn-d); }
.warn-box .ic { margin-top: 2px; }
.warn-box.strong { border: 1.5px solid var(--warn-d); font-weight: 700; }
.mini-h { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.kv { margin-top: 10px; font-size: 13px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv li span { color: var(--ink2); min-width: 0; }
.kv li strong { white-space: nowrap; }
.note-line { margin-top: 6px; }
.note-list { font-size: 13px; color: var(--ink2); padding-left: 16px; list-style: disc; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--ink3); font-size: 12px; padding: 6px 0; }
.tbl th.r { text-align: right; }
.tbl tbody th { font-size: 13px; color: var(--ink2); }
.tbl td, .tbl tbody th { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td + td, .tbl th + th, .tbl th + td { padding-left: 8px; }
.tbl td.strong { white-space: nowrap; }
.tbl-tight td { padding: 8px 0; }
.table-scroll { overflow-x: auto; }
.dl { display: grid; grid-template-columns: 88px 1fr; gap: 9px 12px; margin-top: 12px; font-size: 13px; line-height: 1.45; }
.dl dt { color: var(--ink3); }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.dl dd.strong { font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--ink2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 9px; border-radius: 2px; flex: none; display: inline-block; }
.ln { width: 14px; border-top: 2px dashed; display: inline-block; }
.ln-gold { border-color: var(--accent-m); border-top-style: solid; border-top-width: 3px; }
.sun-legend { padding: 10px 12px; border-radius: 10px; background: var(--green-f); }
.sun-h { font-size: 13px; font-weight: 700; color: var(--green-d); }
.sun-h span { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--ink3); }
.sun-legend ul { display: grid; gap: 6px; margin-top: 6px; }
.sun-legend li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.sun-legend .sw { width: 16px; height: 12px; border: 1.5px solid; border-radius: 3px; }
.ln-warn { border-color: var(--warn-d); }
.sw-parcel { width: 10px; height: 10px; background: var(--accent-face); border: 2px solid var(--accent-m); }
.sw-road { background: #FFFFFF; border: 1px solid #D9D7E4; }
.sw-road-hit { background: #F8D5D1; border: 1px solid #D64541; }
.note { margin-top: 6px; font-size: 12px; color: var(--ink3); }
.note:empty { display: none; }

/* 도면 */
.plan-wrap { margin-top: 10px; border-radius: 10px; overflow: hidden; }
.plan-svg { display: block; width: 100%; height: auto; font-family: inherit; overflow: hidden; } /* 이웃 필지가 도면 밖으로 삐져나가지 않게 */
.svg-sub { font-size: 9px; fill: var(--ink3); }
.svg-setback { font-size: 9px; font-weight: 700; fill: var(--warn-d); paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; }
.ln-setback { border-top: 2px dashed var(--warn-d); }
.sw-lot { background: #E6E4EF; border: 1px solid #C7C4D6; }
.sw-cut { background: #FBE9DC; border: 1px solid var(--warn-d); }

/* ① 주변 */
.mixbar { display: flex; gap: 2px; height: 12px; margin-top: 12px; border-radius: 999px; overflow: hidden; }
.mixbar span { display: block; height: 100%; }
.mixlist { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.mixlist li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); min-width: 0; }
.mixlist li span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mixlist .sw { width: 10px; height: 10px; border-radius: 3px; }
.mixlist strong { margin-left: auto; color: var(--ink); white-space: nowrap; }
.permits { margin-top: 14px; }
.permits li { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.permits strong { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.permits .muted { white-space: nowrap; }
.permit-mix { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.bar { display: block; flex: 1; height: 8px; background: var(--accent-face); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent-m); }
.bar-green > span { background: var(--green-m); }
.bar.thin { height: 4px; margin-top: 5px; }
.rent-rows { margin-top: 8px; }
.rent-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.rent-fl { width: 56px; flex: none; font-size: 13px; color: var(--ink2); }
.rent-val { width: 64px; flex: none; text-align: right; font-size: 14px; font-weight: 700; }
.rent-edit { margin-top: 8px; padding: 12px; border-radius: var(--r-btn); background: var(--ivory); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rent-edit label { display: block; font-size: 12px; color: var(--ink2); margin-bottom: 4px; }
.rent-edit input { width: 100%; height: 44px; border: 1.5px solid var(--accent-m); border-radius: 10px; padding: 0 8px; font-size: 16px; color: var(--ink); background: var(--card); }
.share-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.share-row { display: flex; align-items: center; gap: 10px; }
.share-l { width: 84px; flex: none; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row strong { width: 36px; text-align: right; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tile { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 10px 12px; min-width: 0; }
.tiles3 .tile { border: 0; padding: 10px; }
.tile-green { background: var(--green-f); }
.tile-green p { color: var(--green-d); }
.tile-l { font-size: 12px; color: var(--ink2); overflow-wrap: anywhere; }
.tiles3 .tile-l { color: var(--ink3); }
.tile-v { margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.tile-v.sm { font-size: 15px; }
.tiles3 .tile-v { font-size: 17px; }
.tile-s { margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--ink3); }
.tile .bar { margin-top: 6px; height: 6px; background: var(--line); }
.tile-row { display: flex; align-items: center; gap: 12px; }

/* ② 필지 */
.bldg { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.regs { margin-top: 8px; }
.reg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.reg.block { background: var(--warn-f); margin: 0 -8px; padding: 10px 8px; border-radius: 10px; border-top-color: transparent; }
.reg-ic { width: 22px; height: 22px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.reg-ic.ok { background: var(--green-f); color: var(--green-d); }
.reg-ic.warn { background: var(--warn-f); color: var(--warn-d); }
.reg-ic.bad { background: var(--warn-d); color: #FFFFFF; }
.reg-text { flex: 1; min-width: 0; }
.reg-label { display: block; font-size: 14px; font-weight: 500; }
.reg.hit .reg-label { font-weight: 700; }
.reg-detail { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--ink2); }
.reg-detail.strong { color: var(--warn-d); }
/* 필지 분석 한 판(B안): 머리띠 달린 블록 4개 */
.lb, .lb-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.lb-blk { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; }
.lb-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--accent-face); border-bottom: 1px solid var(--accent-l); }
.lb-h .ic { color: var(--accent-d); }
.lb-h h3 { flex: 1; font-size: 15px; font-weight: 800; }
.lb-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lb-mu { background: var(--card); color: var(--accent-d); }
.lb-ok { background: var(--green-f); color: var(--green-d); }
.lb-wn { background: var(--warn-f); color: var(--warn-d); }
.scope-switch { margin-top: 8px; min-height: 40px; padding: 0 14px; font-size: 13px; }
/* 종합 정리(LLM) */
#s1-brief:not(:empty) { margin-top: 12px; }
.bf-spark { width: 18px; height: 18px; flex: none; background: var(--accent-d); -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat; }
.bf-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.bf-tone { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.bf-tone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bf-go .bf-tone { color: var(--green-d); }
.bf-caution .bf-tone { color: var(--warn-d); }
.bf-stop .bf-tone { color: #B42318; }
.bf-verdict { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ink); word-break: keep-all; }
.bf-grid { display: grid; }
.bf-sec { padding: 12px 16px 14px; min-width: 0; }
.bf-sec + .bf-sec { border-top: 1px solid var(--line); }
.bf-l { font-size: 12px; font-weight: 800; color: var(--ink3); margin-bottom: 6px; }
.bf-list { display: grid; gap: 8px; }
.bf-list li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.55; color: var(--ink2); word-break: keep-all; overflow-wrap: break-word; }
.bf-list li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-m); }
.bf-list b { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.bf-num { counter-reset: bf; }
.bf-num li { padding-left: 22px; counter-increment: bf; }
.bf-num li::before { content: counter(bf); top: .1em; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-face); color: var(--accent-d); font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.bf-foot { padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
.bf-wait { display: flex; align-items: center; gap: 10px; padding: 18px 16px; font-size: 13px; color: var(--ink2); }
.bf-err { flex-direction: column; align-items: flex-start; }
.bf-retry { min-height: 40px; padding: 0 14px; font-size: 13px; gap: 6px; }
.lb-bad { background: var(--warn-d); color: #FFFFFF; }
.lb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.lb-cell { padding: 12px 16px; background: var(--card); min-width: 0; }
.lb-cell.full { grid-column: 1 / -1; }
/* 줄마다 칸 수가 다른 표(기본 정보). 3칸 줄은 글자를 조금 줄이고 단어 중간에서 끊지 않는다 */
.lb-rows { display: grid; gap: 1px; background: var(--line); }
.lb-row { display: grid; gap: 1px; }
.lb-row-1 { grid-template-columns: 1fr; }
.lb-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-row .lb-v, .lb-row .lb-s { word-break: keep-all; overflow-wrap: break-word; }
.lb-row-3 .lb-cell { padding: 12px 10px; }
.lb-row-3 .lb-v { font-size: 15px; }
.lb-row-3 .lb-v.big { font-size: 17px; }
/* 기존 건물 특이사항 */
.lb-bnotes { border-top: 1px solid var(--line); padding: 12px 16px 12px; }
.lb-bnotes ul { display: grid; gap: 6px; margin-top: 6px; }
.lb-bnotes li { padding: 8px 10px; border-left: 3px solid var(--line); border-radius: 0 8px 8px 0; background: var(--ivory); font-size: 13px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.lb-bnotes li b { margin-right: 6px; }
.lb-bnotes li.wn { border-left-color: var(--warn-d); background: var(--warn-f); }
.lb-bnotes li.is-hint { font-size: 12px; color: var(--ink2); }
.lb-l { font-size: 12px; color: var(--ink3); }
/* 출처: 블록 맨 아래 한 줄. 기관 로고(흑백) + 자료 이름, 법·조례 계산값은 글자 */
.src-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--ivory); font-size: 11px; color: var(--ink3); }
.src-foot-items { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; } /* 둘째 줄도 첫 줄 항목과 같은 자리에서 시작 */
.src-foot-l { font-weight: 700; line-height: 18px; }
.src-item { display: inline-flex; align-items: center; gap: 5px; }
.src-mark { display: block; flex: none; width: auto; max-width: 72px; filter: grayscale(1); opacity: .55; mix-blend-mode: multiply; }
.src-tag { padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-size: 10px; line-height: 16px; color: var(--ink2); }
.lb-v { margin-top: 3px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.lb-v.big { font-size: 20px; font-weight: 800; }
.lb-v.na { font-size: 14px; font-weight: 400; color: var(--ink3); }
.lb-t-ok { color: var(--green-d); }
.lb-t-wn { color: var(--warn-d); }
.lb-s { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--ink2); }
.lb-pad { padding: 4px 16px 14px; }
.lb-pad .warn-box { margin-top: 12px; }
.lb-notes { display: grid; gap: 4px; padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink3); }
.lb-notes li { position: relative; padding-left: 10px; }
.lb-notes li::before { content: '·'; position: absolute; left: 0; }
.lb-sub.lb-sub-road { border-top-color: var(--line); }
.lb-sub-road p span { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--ink3); }
.lb-note { padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink3); }
.lb-info { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-face); font-size: 13px; line-height: 1.55; color: var(--ink); }
.lb-info span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); }
.lb-empty { padding: 14px 16px; font-size: 14px; color: var(--ink2); }
.lb-draw { padding: 12px 16px 14px; border-bottom: 1px solid var(--line); }
.lb-draw .plan-wrap { position: relative; margin-top: 0; }
.plan-legend { position: absolute; left: 8px; top: 8px; display: grid; gap: 3px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 11px; color: var(--ink2); }
.plan-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
/* 도면 끌기·확대(planZoom.js): 확대하기 전엔 세로로 쓸면 화면이 내려가고, 확대하면 도면이 끌린다 */
.plan-wrap.zoomable .plan-svg { cursor: grab; touch-action: pan-y; user-select: none; }
.plan-wrap.zoomable.zoomed .plan-svg { touch-action: none; }
.plan-wrap.zoomable .plan-svg:active { cursor: grabbing; }
.plan-tools { position: absolute; right: 8px; top: 8px; display: grid; gap: 4px; justify-items: end; }
.plan-north { display: inline-flex; flex-direction: column; align-items: center; font-size: 9px; font-weight: 700; color: var(--ink2); margin-bottom: 4px; }
.plan-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.92); font-size: 18px; font-weight: 700; color: var(--ink2); padding: 0; }
.plan-btn:hover { background: var(--accent-face); }
.plan-reset { display: none; }
.plan-btn.plan-rv { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--accent-d); }
.plan-wrap.rv-on .plan-rv { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 로드뷰: 도면 상자를 덮는다 */
.rv { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: #000; border-radius: 10px; overflow: hidden; }
.rv-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(23,21,31,.92); flex-wrap: wrap; }
.rv-chip { min-height: 30px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: #fff; font-size: 12px; }
.rv-chip[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; }
.rv-date { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.75); }
.rv-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.15); color: #fff; font-size: 14px; }
.rv-view { flex: 1; position: relative; min-height: 0; }
.rv-msg { padding: 24px 16px; color: #fff; font-size: 13px; text-align: center; }
.plan-wrap.zoomed .plan-reset { display: grid; }
.plan-foot { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; gap: 6px; pointer-events: none; }
.plan-foot > * { pointer-events: auto; }
.plan-scale { justify-self: start; height: 6px; border: 1.5px solid var(--ink2); border-top: 0; position: relative; }
.plan-scale::after { content: attr(data-label); position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); font-size: 9px; color: var(--ink2); white-space: nowrap; }
.plan-foot .sun-legend { justify-self: start; max-width: 100%; padding: 8px 10px; background: rgba(230,241,228,.94); border: 1px solid var(--green-line); }
.plan-foot .sun-legend ul { gap: 3px; margin-top: 4px; }
.plan-foot .sun-legend li { font-size: 12px; }
.lb-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--accent-l); background: var(--ivory); }
.lb-sub p { font-size: 14px; font-weight: 800; color: var(--ink); }
.lb-floors { border-top: 1px solid var(--line); padding: 12px 16px 6px; }
.lb-floors { padding-bottom: 14px; }
.lb-sub + .lb-floors { border-top: 0; } /* 층별 용도가 기존 건물 맨 위 */
/* 층별 용도: 건물 단면처럼 층마다 면적 비례 막대, 지하는 땅 선 아래 */
.fs { margin-top: 8px; display: grid; gap: 4px; }
.fs-row { display: grid; grid-template-columns: minmax(96px, 38%) 1fr; gap: 10px; align-items: center; }
.fs-label { font-size: 12px; line-height: 1.35; color: var(--ink2); min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } /* 층 용도: 두 줄까지(휴대폰엔 title이 안 보인다) */
.fs-label b { margin-right: 2px; font-size: 13px; font-weight: 800; color: var(--ink); }
.fs-track { display: flex; align-items: center; min-width: 0; position: relative; }
/* 막대 자리(lane) 폭 = 견주는 기준. 막대는 그 폭의 면적 비율 그대로(테두리 포함, 최소 폭 없음) */
.fs-lane { position: relative; flex: 1 1 auto; min-width: 0; height: 34px; }
.fs.has-car .fs-track { padding-right: 52px; } /* 주차 표시 자리를 모든 층에 비워 둬야 막대 폭끼리 견줄 수 있다 */
.fs.has-car .fs-track .fs-car { position: absolute; right: 0; }
.fs-bar { position: absolute; left: 0; top: 0; bottom: 0; box-sizing: border-box; border: 1px solid; border-radius: 4px; }
/* 면적 글자: 막대 안(fs-in) 또는 막대 바로 오른쪽(fs-after). 자리·최대 폭은 fsFit.js가 px로 잰다 */
.fs-txt { position: absolute; top: 50%; left: 8px; max-width: calc(100% - 16px); transform: translateY(-50%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fs-txt.fs-after { font-size: 12px; color: var(--ink2); }
.fs-txt small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--ink2); }
.fs-txt.fs-short small { display: none; }
.fs-shop { background: #FBE6DC; border-color: #E4A98C; }
.fs-home { background: #E2F0DE; border-color: #8FC286; }
.fs-etc { background: #E4EDF8; border-color: #9DB6D6; }
.fs-pil { background: var(--card); border-style: dashed; border-color: var(--ink3); } /* 필로티: 벽 없이 기둥만 */
.fs-ground { height: 0; margin: 4px 0; border-top: 3px solid var(--ink); position: relative; }
.fs-ground .fs-car { position: absolute; right: 0; top: -30px; }
.fs-car { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.lb-floors .lb-note { padding: 8px 0 6px; }
/* 대장 주차 칩: 차가 실제로 있는 층에만. 실선 = 대장 층별개요에 그 층이 있음, 점선 = 추정, 주황 = 위치 모름 */
.fs.has-car .fs-track { padding-right: 92px; }
.pk-wrap { position: absolute; right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.fs-ground .pk-wrap { top: auto; bottom: 6px; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.fs-ground.has-pk { margin-top: 36px; }
.pk { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pk .ic { color: currentColor; }
.pk.guess { background: var(--card); color: var(--ink); border: 1.5px dashed var(--ink2); }
.pk.mech { background: var(--accent-d); }
.pk.unk { background: var(--warn-f); color: var(--warn-d); border: 1px solid #E4A98C; }
.fs-gap details > summary { list-style: none; cursor: pointer; padding: 4px 2px; font-size: 12px; color: var(--ink3); }
.fs-gap details > summary::-webkit-details-marker { display: none; }
.fs-gap details > summary b { color: var(--ink2); }
.fs-gap details[open] > summary { color: var(--ink2); }
.fs-sum { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--ink2); }
.fs-sum span { display: inline-flex; align-items: center; gap: 5px; }
.fs-sum .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.fs-sum .dot.guess { background: var(--card); border: 1.5px dashed var(--ink2); }
.fs-sum .dot.mech { background: var(--accent-d); }
.fs-sum .dot.unk { background: var(--warn-f); border: 1px solid #E4A98C; }
.lb-x { margin-top: 6px; font-size: 11px; line-height: 1.45; color: var(--ink3); }
@media (max-width: 480px) { .fs.has-car .fs-track { padding-right: 78px; } .pk { padding: 2px 6px; font-size: 11px; } }
.lb-hits li { margin-top: 10px; padding: 12px; border-left: 4px solid var(--warn-d); border-radius: 0 10px 10px 0; background: var(--warn-f); }
.lb-hits li.bad { border-left-width: 6px; }
.lb-hits b { display: block; font-size: 14px; }
.lb-hits span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink2); }
.lb-hits em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--warn-d); }
.lb-mini { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--ink3); }
.lb-clear { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lb-clear span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
.lb-fold { margin-top: 10px; }
.lb-fold summary { font-size: 14px; }
.fold summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 16px; font-weight: 700; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold[open] summary .ic { transform: rotate(180deg); }
.landuse li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.landuse li > span:first-child { min-width: 0; overflow-wrap: anywhere; }

/* 층 쌓기 그림 */
.stack { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.stack-row { display: flex; align-items: center; gap: 5px; height: 12px; }
.stack-fl { width: 26px; flex: none; font-size: 9px; color: var(--ink3); text-align: right; white-space: nowrap; }
.stack-bar { flex: 1; height: 100%; display: flex; gap: 2px; min-width: 0; }
.seg { display: block; height: 100%; border-radius: 2px; flex: none; }
.k-shop { background: #A99BF0; }
.k-res { background: #4E9A55; }
.k-res2 { background: #7DB583; }
.k-room { background: #A9CDA4; }
.k-attic { background: var(--green-f); border: 1.5px dashed var(--green-m); }
.k-piloti { background: repeating-linear-gradient(135deg, #F2EFFF 0 3px, #C7C4D6 3px 5px); }
.k-core { background: #C7C4D6; }
.k-other { background: #C7C4D6; }
.stack-axis { display: flex; justify-content: space-between; margin: 4px 0 0 31px; font-size: 9px; color: var(--ink3); }

/* 결론 카드 */
.money-row { margin-top: 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* ③ 개발안 */
.intro { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.plan-cards { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.plan-cards::-webkit-scrollbar { display: none; }
.plan-card { flex: none; width: 262px; max-width: calc(100vw - 64px); scroll-snap-align: start; text-align: left; padding: 14px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan-card.rec { border: 2px solid var(--green-m); }
.plan-card:hover { border-color: var(--accent-m); }
.plan-card > span { display: block; }
.plan-top { display: flex !important; align-items: center; gap: 6px; }
.plan-no { font-size: 13px; font-weight: 700; color: var(--accent-d); }
.plan-exit { margin-left: auto; font-size: 11px; color: var(--ink3); }
.plan-name { margin-top: 6px; font-size: 16px; line-height: 1.35; font-weight: 700; min-height: 44px; word-break: keep-all; }
.plan-card .stack { margin-top: 10px; }
.plan-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.stat-l { display: block; font-size: 11px; color: var(--ink3); }
.stat-v { display: block; font-size: 17px; font-weight: 700; }
.stat-s { display: block; font-size: 13px; font-weight: 500; }
.plan-more { display: flex !important; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-d); }
.compare { padding: 6px 12px 2px; }
.compare .tbl { min-width: 520px; margin-top: 0; }
.compare .tbl th, .compare .tbl td { padding: 10px 6px; }

/* ④ 사업성 */
.fin-top { display: flex; flex-direction: column; gap: 0; }
.fin-top .mini-h { margin-top: 0; }
.fin-top-col + .fin-top-col { margin-top: 14px; }
.seg-full .seg-btn { min-width: 0; }
.fin-grid { display: flex; flex-direction: column; gap: 12px; }
.fin-result { display: flex; flex-direction: column; gap: 12px; }
.result-card { border-width: 1.5px; }
.result-card.tone-gain { border-color: var(--green-m); }
.result-card.tone-loss { border-color: var(--warn-d); background: var(--warn-f); }
.result-card.tone-neutral { border-color: var(--accent-m); }
.result-head { font-size: 12px; font-weight: 700; color: var(--accent-d); }
.money-xl { font-size: 38px; line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; }
.tone-gain .money-xl { color: var(--green-d); }
.tone-loss .money-xl { color: var(--warn-d); }
.result-sub { font-size: 14px; font-weight: 700; color: var(--ink2); }
.loss-chip { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--warn-d); background: var(--card); border-radius: 999px; padding: 4px 10px; }
.result-msg { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.cost-list { margin-top: 8px; }
.cost-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.cost-list li .row-between span { min-width: 0; }
.cost-list li strong { white-space: nowrap; }
.cost-total { display: flex; justify-content: space-between; padding: 10px 0 0 !important; border-top: 1.5px solid var(--ink) !important; font-size: 14px; font-weight: 700; }
.mini-wrap:empty { display: none; }
.mini-wrap { position: sticky; top: calc(var(--appbar) + 62px); z-index: 4; }
.mini-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-btn); background: var(--dark); color: var(--on-dark); font-size: 13px; font-weight: 700; box-shadow: 0 4px 16px rgba(23,21,31,.18); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-gain { background: #7DB583; } .dot-loss { background: #E8A27A; } .dot-neutral { background: var(--accent-l); }
.sliders { padding: 4px 16px 16px; }
.slider-row { padding: 12px 0; }
.slider-row + .slider-row { border-top: 1px solid var(--line); }
.slider-row.off { opacity: .5; }
.slider-row label { font-size: 14px; font-weight: 500; }
.slider-val { font-size: 14px; font-weight: 700; color: var(--accent-d); text-align: right; }
input[type=range] { accent-color: var(--accent-d); width: 100%; height: 28px; margin: 6px 0 0; }
input[type=range]:disabled { accent-color: #C7C4D6; }
.slider-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--ink3); }

/* 시트 */
.sheet-layer { position: fixed; inset: 0; z-index: 50; }
.sheet-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(23,21,31,.45); cursor: default; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; max-height: 90dvh; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 8px 16px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: var(--line); }
.sheet-head { display: flex; align-items: flex-start; gap: 8px; }
.sheet-kicker { display: flex; align-items: center; gap: 6px; }
.sheet-title { margin-top: 4px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.sheet-lead { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.sheet-lead.small { font-size: 13px; }
.floor-table { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-btn); overflow: hidden; font-size: 12px; }
.ft-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px 40px 42px 50px; gap: 4px; padding: 9px 10px; align-items: center; }
.ft-row + .ft-row { border-top: 1px solid var(--line); }
.ft-head { background: var(--accent-face); color: var(--ink2); font-weight: 700; }
.ft-row > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.ft-note { display: block; font-size: 11px; color: var(--ink3); }
.cond { border-radius: var(--r-btn); padding: 10px 12px; }
.cond-ok { border: 1px solid var(--green-line); background: var(--green-f); }
.cond-bad { border: 1px solid var(--warn-d); background: var(--warn-f); }
.cond-title { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green-d); }
.cond-bad .cond-title { color: var(--warn-d); }
.cond ul { margin-top: 6px; font-size: 13px; }
.cond ul:empty { display: none; }
.cond li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.cond li strong { color: var(--green-d); white-space: nowrap; }
.settings { margin-top: 10px; }
.settings li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.step-btn { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--card); font-size: 20px; line-height: 1; }
.step-btn:hover:not(:disabled) { background: var(--accent-face); }
.step-val { width: 96px; flex: none; text-align: center; font-size: 14px; font-weight: 700; color: var(--accent-d); }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; pointer-events: none; max-width: calc(100vw - 32px); }
.toast-in { display: flex; align-items: center; gap: 8px; background: var(--dark); color: var(--on-dark); font-size: 14px; font-weight: 500; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(23,21,31,.25); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body:not([data-screen="result"]) .toast { bottom: 32px; }

@media (max-width: 380px) {
  .tiles3 { grid-template-columns: 1fr 1fr; }
  .step-val { width: 84px; font-size: 13px; }
  .settings li { gap: 6px; }
}

/* ---------- PC ---------- */
@media (min-width: 900px) {
  .m-only { display: none !important; }
  .d-only { display: block; }
  body { font-size: 14px; }

  .col-main .disclaimer { font-size: 13px; }

  .loading { min-height: auto; padding: 64px 48px; }
  .loading-title { font-size: 28px; }
  .loading-actions { margin-top: 20px; flex-direction: row; }
  .bf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bf-sec + .bf-sec { border-top: 0; border-left: 1px solid var(--line); }
  .loading-actions > button { flex: 1; justify-content: center; } /* 위 단계 목록과 같은 폭으로 나눠 채운다 */

  .result { padding-bottom: 40px; }
  .topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px clamp(16px, 3vw, 32px); background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
  .brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 0; border: 0; background: transparent; text-align: left; }
  .top-search { flex: 1 1 320px; max-width: 560px; min-width: 0; position: relative; }
  .dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 8px 28px rgba(23,21,31,.14); padding: 6px; }
  .dropdown .suggest-item { min-height: 48px; border-top: 0; border-radius: 10px; }
  .dropdown .alert { margin-top: 0; }
  .top-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
  .top-actions button { min-height: 44px; font-size: 14px; padding: 0 14px; }
  .title-row { gap: 10px 16px; }
  .title-main { display: block; flex: 1 1 320px; min-width: 0; }
  .title-h { margin-top: 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
  .title-row .chips .chip-line, .title-row .chips .chip-gold { display: inline-flex; }
  .layout { max-width: 960px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 0; }
  .col-main { margin-top: 20px; }
  .rs-nav-wrap { top: 0; padding: 0 0 12px; }
  .rs-nav-btn { font-size: 14px; }
  .rs-step { padding-top: 4px; scroll-margin-top: 72px; }
  .rs-step > * + * { margin-top: 16px; }
  .rs-q { font-size: 22px; }
  .rs-why { font-size: 15px; max-width: 46em; }
  .advice li { font-size: 14.5px; }
  .answer { padding: 18px 20px; }
  .answer-main { font-size: 17px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { padding: 18px; }
  .panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
  .panel-grid .span-all { grid-column: 1 / -1; }
  .lb { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } /* 왼쪽 기본 정보, 오른쪽 도로·규제 */
  .permits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
  .permits li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--ivory); }
  .mixlist { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .mixlist strong { margin-left: 0; }
  .plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .plan-card { width: auto; max-width: none; padding: 16px; }
  .plan-card:hover { box-shadow: 0 2px 4px rgba(23,21,31,.08), 0 8px 24px rgba(23,21,31,.08); }
  .plan-name { font-size: 17px; }
  .compare.d-only { display: block; }
  .fin-top { flex-direction: row; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; padding: 16px 18px; }
  .fin-top-col { flex: 1 1 260px; min-width: 0; }
  .fin-top-col + .fin-top-col { margin-top: 0; flex-basis: 320px; }
  .fin-grid { flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .fin-result { flex: 1 1 360px; min-width: 0; }
  .fin-sliders { flex: 1 1 320px; min-width: 0; }
  .sliders { padding: 6px 18px 18px; }
  .money-xl { font-size: 44px; }
  .result-msg { font-size: 15px; }
  .tiles2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .result-card .tile-v { font-size: 20px; }

  .sheet { top: 0; left: auto; right: 0; bottom: 0; width: min(440px, 100%); max-height: none; border-radius: 0; padding: 22px 24px 28px; box-shadow: -8px 0 32px rgba(23,21,31,.16); animation: in .25s ease-out; }
  .sheet-wide { width: min(560px, 100%); }
  .sheet-grip { display: none; }
  .sheet-title { font-size: 22px; }
  .floor-table { font-size: 13px; }
  .ft-row { grid-template-columns: 44px minmax(0, 1fr) 56px 52px 52px 64px; gap: 6px; padding: 10px 12px; }

  .toast { bottom: 32px; }
}

/* ---------- 인쇄: 리포트 전체 ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #FFFFFF; font-size: 11px; overflow: visible; }
  .appbar, .topbar, .actionbar, .rs-nav-wrap, .toast, #sheet-root, .btn-row, .fold-btn, .mini-wrap, .slider-scale, .loading, .home { display: none !important; }
  .print-only { display: block !important; }
  .print-head { display: flex !important; align-items: center; gap: 8px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
  .print-head #print-date { margin-left: auto; color: var(--ink3); }
  .title-main { display: block !important; }
  .title-row .chips .chip-line, .title-row .chips .chip-gold { display: inline-flex !important; }
  .result { padding: 0; }
  .layout { max-width: none; padding: 8px 0 0; }
  .rs-step { margin-top: 14px; break-before: auto; }
  .rs-head { padding-top: 6px; border-top: 2px solid var(--accent-m); }
  .answer, details.more { box-shadow: none; break-inside: avoid; }
  details.more > summary::after { content: ''; }
  .card, .plan-card, .tile, .reg { box-shadow: none; break-inside: avoid; }
  .panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .panel-grid .span-all { grid-column: 1 / -1; }
  .plan-cards { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .plan-card { width: auto; max-width: none; }
  .compare.d-only { display: block !important; }
  .print-show[hidden] { display: block !important; }
  .fin-grid { display: block; }
  .fin-grid > * + * { margin-top: 10px; }
  input[type=range], #map-radius, [data-act="reset-all"] { display: none !important; }
  .slider-row { padding: 4px 0; }
  .m-only { display: none !important; }
  .warn-list { break-inside: avoid; }
  .col-main .disclaimer { display: block !important; margin-top: 12px; }
}

/* 신축 형태 3D(massing3d.js) */
.mass { margin: 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.mass-h { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 0; font-size: 15px; }
.mass-h span { font-size: 13px; color: var(--ink3); }
.mass-stage { position: relative; touch-action: pan-y; cursor: grab; }
.mass-stage:active { cursor: grabbing; }
.mass-svg { display: block; width: 100%; height: auto; background: var(--ivory); user-select: none; }
.mass-svg text { font: 600 11px Pretendard, system-ui, sans-serif; fill: #2F6B38; paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; }
.mass-svg .mass-north text { fill: #55526A; font-size: 10px; }
.mass-tools { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.mass-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 10px 16px 0; list-style: none; font-size: 13px; color: var(--ink2); }
.mass-legend li { display: inline-flex; align-items: center; gap: 6px; }
.mass-sw { width: 14px; height: 10px; border: 1.5px solid; border-radius: 2px; }
.mass-sw-open { border-style: dashed; }
.mass-sw-ghost { border: 1.5px dashed #2F6B38; background: rgba(47, 107, 56, .06); }
.mass-note { margin: 6px 16px 12px; font-size: 12px; color: var(--ink3); }
@media (max-width: 600px) {
  .mass-svg text { font-size: 22px; stroke-width: 5px; }
  .mass-svg .mass-north text { font-size: 18px; }
}
/* 기존 건물 층별 ↔ 3D */
.lb-floors-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-btn { border: 0; background: var(--card); padding: 4px 12px; font: 700 12px/1.6 inherit; color: var(--ink2); cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.mass-existing { margin: 8px 0 0; box-shadow: none; }
.fs-bar { overflow: hidden; }
.fs-pk-seg { position: absolute; left: 0; top: 0; bottom: 0; background: #E9E7F1; border-right: 1.5px dashed #8A87A0; }
.seg-sw { display: inline-block; width: 16px; height: 10px; margin-right: 4px; border: 1px dashed #8A87A0; background: #E9E7F1; vertical-align: -1px; }

/* 이 골목(render/alley.js) */
.al-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
@media (max-width: 860px) { .al-grid { grid-template-columns: 1fr; } }
.al-map { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; }
.al-map text { font: 800 11px Pretendard, system-ui, sans-serif; }
.al-scale text { font-weight: 600; fill: #55526A; }
.al-pin { cursor: pointer; }
.al-pin.hl circle { stroke: #E8A33D; stroke-width: 4; }
.al-lg { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink2); }
.al-lg li { display: inline-flex; align-items: center; gap: 5px; }
.al-lg .sw { width: 16px; height: 6px; border-radius: 3px; } .al-lg .w1 { background: #A99BEF; } .al-lg .w3 { background: #DCD6FA; }
.al-lg .dot { width: 8px; height: 8px; border-radius: 50%; } .al-lg .dot.same { background: #D9534F; } .al-lg .dot.min1 { background: #E8A33D; } .al-lg .dot.min3 { background: #B7B3C8; }
.al-lg .pin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #4B37B0; background: #fff; } .al-lg .pin.on { background: var(--accent); }
.al-sum { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.al-sum div { display: grid; grid-template-columns: 132px 1fr; gap: 8px; padding: 8px 12px; }
.al-sum div + div { border-top: 1px solid var(--line); }
.al-sum dt { color: var(--ink3); font-size: 13px; } .al-sum dd { margin: 0; font-weight: 600; font-size: 14px; }
.al-h2 { margin: 14px 0 4px; font-weight: 800; font-size: 14px; } .al-h2 span { font-weight: 500; font-size: 12px; color: var(--ink3); margin-left: 4px; }
.al-gh { margin: 10px 0 4px; font-size: 12px; font-weight: 800; color: var(--accent-d); } .al-gh span { color: var(--ink3); font-weight: 600; }
.al-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.al-row { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; padding: 7px 10px; cursor: pointer; }
.al-row + .al-row { border-top: 1px solid var(--line); }
.al-row.hl { background: var(--accent-face); }
.al-row .al-chips, .al-row .al-ff { grid-column: 2; }
.al-who i { font-style: normal; font-size: 12px; color: var(--ink3); margin-left: 6px; }
.al-chips em { font-style: normal; font-size: 12px; background: #F1F0F7; border-radius: 5px; padding: 1px 6px; margin: 0 4px 2px 0; display: inline-block; }
.al-ff { font-size: 12px; color: var(--ink2); }
.al-no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 12px Pretendard, system-ui; border: 2px solid #4B37B0; color: #4B37B0; background: #fff; }
.al-no.on { background: var(--accent); color: #fff; }
.al-dong { margin: 10px 0 -2px; padding: 0 4px; font-weight: 800; font-size: 14px; color: var(--ink2); }
@media (min-width: 861px) { .al-left { position: sticky; top: calc(var(--appbar) + 72px); align-self: start; } } /* 목록을 내려도 지도가 따라온다 */
.al-sum div { grid-template-columns: 150px 1fr; }
.mass-svg text.mass-floor { font: 800 11px Pretendard, system-ui, sans-serif; fill: #4B37B0; stroke: #FFFFFF; stroke-width: 3px; paint-order: stroke; }
.mass-svg text.mass-floor.b { fill: #7A5A3C; }
@media (max-width: 600px) { .mass-svg text.mass-floor { font-size: 20px; stroke-width: 5px; } }
.al-h2 { margin-top: 0; }
.al-desc { margin: 0 0 6px; font-size: 13px; line-height: 1.6; color: var(--ink2); }
/* 첫 화면 태그: 서비스 지역(서울)·Beta */
.home-tags { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.home-tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1.7; color: var(--accent-d); background: var(--accent-face); border: 1px solid var(--accent-l); }
.home-tag-beta { color: var(--ink2); background: var(--card); border-color: var(--line); }
