/* 동네열바퀴 — 움직이는 시험판 /map/ (2026-10-06 · 첫 화면 시안 v6 을 옮겼다)
 * 색 · 글자 네 단 · 유리는 v6 index.html 토큰 그대로. 외부 글꼴 0 — 기기 글꼴(있으면 Noto Sans KR).
 * 움직임 값 — v6 §9-7 제안값(날기 스프링 0.45s · 감쇠 0.85 · 떠오름 250ms · 줄 펼침 · 시트 스프링 0.4s/0.9)
 */
:root {
  --버건디: #8A1C3C; --먹: #1D1B20; --회1: #625C67; --회2: #6F6974;   /* 회2 ~~옛 값(유리 위 2.4:1)~~ → 5.1:1 (10-07 접근성 · D안 검증표 막힘 9·12·13·24·35 · 시험.py 가 토큰 값으로 4.5 를 잰다) */
  --선: rgba(29, 27, 32, .09); --유리: rgba(255, 255, 255, .86); --유리-테: rgba(255, 255, 255, .80);
  /* 글자 단은 rem — 브라우저 글자 크기 설정(Dynamic Type)이 먹게(10-07 접근성 · 기본 16px 에서 옛 px 값과 같다): 44/22/15/12 */
  --큰수: 2.75rem; --제목: 1.375rem; --본문: .9375rem; --각주: .75rem;
  /* iOS 일곱 단(10-06 C안 — 입구 카드 · 결과 패널만 · 지도 이름표는 운영 15 그대로) — Large Title 34 / Title 1 28 / Headline 17·600 / Body 17 / Subheadline 15 / Footnote 13 / Caption 12 */
  --LT: 2.125rem; --T1: 1.75rem; --HL: 1.0625rem; --B: 1.0625rem; --SH: .9375rem; --FN: .8125rem; --CP: .75rem;
  --스프링: cubic-bezier(.2, .8, .2, 1); --튐: cubic-bezier(.34, 1.56, .64, 1);
  --땅: #D7D8CC; --물: #B3C4C9; --녹: #B5C6A6; --철: #8C877D;
  --고름면: #EDBDCA; --고름테: #8A1C3C;
  --닿음면: #EAB0C1; --조금면: #F8ECEF; --조금테: #B4637C; --멂면: #E3E3DB;
  --지역면: #E8E4D9; --심: rgb(84 62 40 / .085); --덩어리: transparent; --덩어리테: rgb(138 28 60 / .75);
  --경계: #8C8174;      /* 10-10 동네 경계 — ~~var(--길)(흰 선)~~ 녹지 위에서 사라져 산이 어느 동네인지 안 읽혔다(왕) · 가는 먹 선(불투명 색 + 묶음 투명도 — 맞닿은 변이 두 번 그어져도 진해지지 않게) */      /* 10-10 생활권 면 — 축소 지역 덩어리 · 단지가 모인 곳 한 단 진하게 */
  --열-1: #4C6EF5; --열-2: #20C997; --열-3: #FCC419; --열-4: #F03E3E;
  --떠오름: cubic-bezier(.2, .8, .2, 1);
  --아래: 0px;           /* 휴대폰 시트가 덮은 높이 — 스크립트가 고친다 */
  /* 초점 테 — 토큰 하나(10-07 감사A · 애플감사 순위 10): Tab 으로 닿는 것은 모두 이 테(버건디 2 · 둘레 2). 자리마다 다른 것은 둘레(--초점틈 · 안쪽이면 음수)뿐이다 */
  --초점테: 2px solid var(--버건디); --초점틈: 2px;
  /* 10-07 감사B — 다크 모드 토큰(애플감사 16위 아래 · 품질기준표 Q16). 지도 · 패널 · 카드의 색은 모두 여기서 읽고, 다크는 맨 끝 한 벌이 이 값만 갈아 끼운다.
   *   --종이 = 흰 바탕(카드 · 알약 · 칸) · 반투명은 rgb(var(--종이rgb) / a) · --먹rgb = 먹 바탕의 옅은 칠(구분선 · 눌림) · --버건디바탕 = 꽉 찬 단추 · --버건디위 = 그 위 글 */
  --종이rgb: 255 255 255; --종이: #fff; --한줄rgb: 250 250 250; --먹rgb: 29 27 32; --회rgb: 60 56 62; --회3: #B9B4BC; --옅회: #E3E1E5; --선2: #D5D2D7;
  --버건디바탕: #8A1C3C; --버건디위rgb: 255 255 255; --버건디위: #fff; --버건디옅: #F6EEF1; --고름면2: #F3D9E0;
  --막힘바탕: rgb(var(--먹rgb) / .05); --가림막: rgba(29, 27, 32, .32);
  --길: #fff; --역속: #fff; --물이름: #4A5F66; --지명: #4A4550; --멂점: #C9C9C0; --바램땅: #E9EAE3;
  /* 10-10 역 이름(운영 어명 「역 이름이 너무 많다」) — 동네 · 단지 이름(--본문 15 · 먹)보다 한 단 작고(--각주 12) 옅게(--회1 · 보통 굵기). 회1 은 어둠 판이 갈아 끼운다 */
  --역이름글: var(--각주); --역이름색: var(--회1); --역이름굵기: 500;
  --기호바탕: #fff; --기호건: #4A4550; --기호물: #3F6672; --기호녹: #4F6B47; --기호그늘: 0 0 0 .5px rgb(0 0 0 / .14), 0 1px 3px rgb(0 0 0 / .16);   /* 10-10 랜드마크 B 기호 — 원 바탕 · 선 색 셋 */
  --음그늘: #4E6447; --음빛: #E9F0DF; --띄그늘: #4A1024; --태그늘: #1D1B20; --태테: #fff;
  --건밖: rgba(70, 66, 48, .075); --건밖테: rgba(70, 66, 48, .10); --건단: rgba(62, 56, 52, .17); --건단테: rgba(62, 56, 52, .26); --건고름테: #4E0D22;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Pretendard", "Malgun Gothic", system-ui, sans-serif;
  font-size: var(--본문); color: var(--먹); background: var(--땅); overflow: hidden; overscroll-behavior: none;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum';
  word-break: keep-all; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
/* 초점 테 한 벌 — `all: unset` 단추(글단추 · 길잡이 · 확대 + …)가 브라우저 테를 지워 Tab 이 보이지 않던 자리(감사 실측 셋)를 모두 덮는다. !important 는 테 꼴에만 · 둘레는 자리마다 */
:is(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: var(--초점테) !important; outline-offset: var(--초점틈); }
.칸 input:focus-visible, .A칸 input:focus-visible { outline: none !important; }        /* 칸은 감싼 상자(.칸:focus-within)가 같은 테를 쓴다 */
.목록 :is(a, button, summary, [tabindex]):focus-visible { outline-offset: -2px; }   /* 무리 목록은 overflow hidden — 줄 끝에 닿는 단추는 테를 안쪽에 */

/* ── 지도 ── */
#판 { position: fixed; inset: 0; overflow: hidden; background: var(--땅); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#끄는막 { position: absolute; inset: 0; z-index: 3; display: none; cursor: grabbing; }   /* ~~#판.끄는중 { cursor: grabbing }~~ 10-07 감사B — 판 꼴 바꿈이 지도 그림 전체 스타일 다시 셈(48ms)을 불렀다 · 막 하나로 */
svg#지도 { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; will-change: transform; }   /* 크기 · 자리는 map.js 판크기() 가 사방 여유를 붙여 정한다 */
#덧 { position: absolute; inset: 0; pointer-events: none; transform-origin: 0 0; will-change: transform; transition: opacity .18s ease-out; }
#덧.덧숨 { opacity: 0; transition: opacity .1s; }
.강 { fill: var(--물); }
.녹 { fill: var(--녹); }
.길 { fill: none; stroke: var(--길); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.다리밑 { fill: none; stroke: var(--물); vector-effect: non-scaling-stroke; }
.다리 { fill: none; stroke: var(--길); stroke-opacity: .45; stroke-linecap: butt; vector-effect: non-scaling-stroke; }
.철 { fill: none; stroke: var(--철); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.경계망 { fill: none; stroke: var(--경계); stroke-opacity: .8; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.경계들 { opacity: .85; } .경계들 .경계망 { stroke-opacity: 1; }   /* ~~.8~~ 10-10 먹 선이라 한 단 옅게 */   /* 10-08 — 경계망은 면 정의를 <use> 로 다시 긋는다 · 맞닿은 변이 두 번 그어져도 묶음 투명도라 한 번과 같다 */
.면 { fill: #E6E4DA; cursor: pointer; transition: fill .3s ease-out, stroke .3s ease-out; }   /* 10-07 바탕색 — 색표에 없는 동네가 검게 칠해지지 않게 · ~~fill .25s~~ 10-10 단이 갈라지는 .3초 */
/* ★ 10-10 생활권 면(운영 어명 10-08) — 동네 면은 지역 전체를 빈 땅 없이 덮는다(도구/첫화면지도/생활권면.py).
   그 안에서 단지가 모인 곳(.심 · 옛 단지 구역 면)은 한 단 진하게(테 없음 · 동네 색 위에 먹 한 겹) · 녹지 · 산은 서울 바탕 녹지가 위에서 옅게 덮는다 · 테는 동네 경계 하나.
   축소(body.지역판 · 배율 .5 아래) = 지역 덩어리 하나 — 그 지역 동네 면을 한 색으로(같은 색 테가 맞닿은 실금을 덮는다) · 동네 경계 · 단지 모임 톤은 감춘다.
   단이 바뀌면 색 · 경계 · 톤이 .3초에 갈라진다(덩어리가 동네로 갈라지듯) · 동작 줄이기면 바로(아래 reduce) */
.심 { fill: var(--심); pointer-events: none; }
.심들, .경계들 { transition: opacity .3s ease-out; }
body.지역판 .면 { fill: var(--지역면); stroke: var(--지역면); stroke-width: 4; }
body.지역판 .지역층 { opacity: .5; }   /* 10-10 왕 — 축소 덩어리 채움이 녹지 음영과 곱해져 산 위에서 탁한 갈색이 됐다 · 묶음째 옅게(맞닿은 실금 · 테 겹침이 진해지지 않게 묶음 투명도) · 테는 .지역덩어리 */
.지역층 { transition: opacity .3s ease-out; }
body.지역판 .경계들, body.지역판 .심들 { opacity: 0; }
/* 지역 덩어리 — 테 하나(지역판에서만 · 확대하면 .3초에 걷히며 동네 면 · 경계가 드러난다)
   ~~녹지 · 물 위에 옅은 한 겹~~ — 10-10 왕: 분홍 채움이 녹지 음영과 곱해져 산 위에서 진흙색이 됐다 · 채움 없이 버건디 테 + 지역 이름표로 읽는다(녹지 색은 그대로) */
.지역덩어리 { fill: var(--덩어리); stroke: var(--덩어리테); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: 0; transition: opacity .3s ease-out; }
body.지역판 .지역덩어리 { opacity: 1; }
/* 중간 단(큰 생활권 묶음) — 운영 답을 기다리며 꺼 둠(지도장.중간단). 켜면 그 배율에서 묶음마다 한 색 · 묶음 테만 */
.묶음테들 { opacity: 0; transition: opacity .3s ease-out; }
.묶음테 { fill: none; stroke: var(--길); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
body.생활권묶음 .묶음테들 { opacity: .8; }
body.생활권묶음 .경계들, body.생활권묶음 .심들 { opacity: 0; }
body.생활권묶음 .면[data-묶음] { fill: var(--지역면); stroke: var(--지역면); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { .면, .심들, .경계들, .묶음테들, .지역덩어리 { transition: none; } }
#세계 .벌 { transition: opacity .2s ease-out; }
body.축소 .벌확대, body.확대 .벌축소 { opacity: 0; }
/* 동네 면 — v6 다섯 색(안 고른 동네 · 채도를 한 단 뺀 값) */
.면[data-동="동부이촌동"] { fill: #DEDAEA; }
.면[data-동="서부이촌동"] { fill: #F0DFD2; }
.면[data-동="서용산"] { fill: #ECE7D4; }
.면[data-동="신용산"] { fill: #E1E9D7; }
.면[data-동="한남동"] { fill: #E7DDE7; }
.가림 { pointer-events: none; }
/* 10-07 감사B — 지도 그림 속 색(속성 값은 밝은 판 · 실제 색은 토큰) — 바램 땅 · 녹지 음영 · 띄움 그늘 · 삼태극 · 바램 그림 둘(밝 · 어둠) */
.바램땅 { fill: var(--바램땅); }
#음영 .음그늘 { flood-color: var(--음그늘); } #음영 .음빛 { flood-color: var(--음빛); } #띄움 .띄그늘 { flood-color: var(--띄그늘); }
#taegeuk .태그늘 { fill: var(--태그늘); } #taegeuk .태테 { stroke: var(--태테); }
image.바램.어둠 { display: none; }

/* 고른 동네 — 띄움(그림자 · 면 · 테가 250ms 에 같이 오른다 · 앞 동네는 같은 시간에 내려앉는다) */
.뜸 path { pointer-events: none; }
.뜸 .그늘 { opacity: 0; transition: opacity .25s var(--떠오름); }
.뜸 .얼 { fill: var(--고름면); fill-opacity: 0; transition: fill-opacity .25s var(--떠오름), fill .25s var(--떠오름); }
.뜸 .테 { fill: none; stroke: var(--고름테); stroke-width: 1; stroke-opacity: 0; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  transition: stroke-width .25s var(--떠오름), stroke-opacity .25s var(--떠오름), stroke .25s var(--떠오름); }
.뜸.고름 .그늘 { opacity: 1; }
.뜸.고름 .얼 { fill-opacity: .4; }   /* ~~.95~~ 10-10 생활권 면 — 고른 동네가 산 · 공원까지 덮어 녹지 · 단지 모임이 다 가렸다 · 옅은 한 겹으로 */
.뜸.고름 .테 { stroke-width: 2.6; stroke-opacity: 1; }
/* 「내 돈으로」 — 닿음 / 조금 모자람 / 멂 (버건디 한 줄기 · 열기 축은 안 쓴다) */
body.내돈 .면 { fill: var(--멂면) !important; }
body.내돈 .뜸 .그늘, body.내돈 .뜸 .얼, body.내돈 .뜸 .테 { opacity: 0; fill-opacity: 0; stroke-opacity: 0; }
body.내돈 .뜸.닿음 .그늘 { opacity: .8; }
body.내돈 .뜸.닿음 .얼, body.내돈 .뜸.닿음 .테, body.내돈 .뜸.조금 .얼, body.내돈 .뜸.조금 .테 { opacity: 1; }
body.내돈 .뜸.닿음 .얼 { fill: var(--닿음면); fill-opacity: 1; }
body.내돈 .뜸.닿음 .테 { stroke-width: 2.6; stroke-opacity: 1; }
body.내돈 .뜸.조금 .얼 { fill: var(--조금면); fill-opacity: 1; }
body.내돈 .뜸.조금 .테 { stroke: var(--조금테); stroke-width: 1.6; stroke-opacity: 1; stroke-dasharray: 6 4; }

/* ── 지도 위 글 ── */
.덧것 { position: absolute; left: 0; top: 0; }   /* ~~will-change: transform~~ — 글마다 층을 만들지 않는다(묶음 #덧 이 한 층 · 10-06 버벅임) */
.이름표 { pointer-events: auto; cursor: pointer; border: 0; display: flex; flex-direction: column; align-items: center; white-space: nowrap;
  min-height: 36px; justify-content: center; padding: 6px 14px; border-radius: 999px; background: rgb(var(--종이rgb) / .92); color: var(--먹);
  font-size: var(--SH); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; box-shadow: 0 2px 8px rgba(40, 20, 30, .10);
  transition: background .25s var(--떠오름), color .25s var(--떠오름), opacity .2s ease-out, box-shadow .25s var(--떠오름); }
.이름표 .닿 { display: none; font-size: var(--각주); font-weight: 500; color: var(--회1); }
.이름표.고름 { background: var(--버건디바탕); color: var(--버건디위); font-weight: 700; box-shadow: 0 6px 16px rgba(110, 18, 48, .30); }
body.내돈 .이름표 { border-radius: 14px; background: rgb(var(--종이rgb) / .94); color: var(--먹); font-weight: 500; box-shadow: 0 2px 8px rgba(40, 20, 30, .10); }
body.내돈 .이름표 .닿 { display: block; }
body.내돈 .이름표.끝 > span:first-child::after { content: ' ›'; color: var(--회1); }
body.내돈 .이름표.닿음 { box-shadow: 0 0 0 2px var(--버건디), 0 6px 16px rgba(110, 18, 48, .22); }
body.내돈 .이름표.닿음 .닿 { color: var(--버건디); font-weight: 700; }
.역이름 { font-size: var(--각주); font-weight: 500; color: var(--회1); display: flex; align-items: center; gap: 5px; white-space: nowrap;
  text-shadow: 0 0 3px var(--땅), 0 0 3px var(--땅); }
.역이름 b { width: 8px; height: 8px; border-radius: 50%; background: var(--종이); border: 2px solid var(--회1); }
.땅이름 { font-size: var(--각주); font-weight: 500; white-space: nowrap; color: var(--물이름); letter-spacing: .5em; }
.캐 { pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: opacity .2s ease-out; }
.캐 img { display: block; height: var(--키, 92px); width: auto; filter: drop-shadow(0 6px 6px rgba(60, 30, 20, .14));
  transition: height .25s var(--떠오름); -webkit-user-drag: none; }
.캐 .발 { width: 62%; height: 10px; margin-top: -8px; border-radius: 50%; background: rgba(70, 40, 30, .16); filter: blur(2px); }
.캐 .패 { margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: rgb(var(--종이rgb) / .92); font-size: var(--각주); font-weight: 500;
  box-shadow: 0 2px 8px rgba(40, 20, 30, .12); white-space: nowrap; transition: background .25s, color .25s; }
.캐.고름 .패 { background: var(--버건디바탕); color: var(--버건디위); font-weight: 700; }
/* 그림이 아직 없는 동네(분당·판교 · Flow 일꾼이 그리는 중) — 이름표(패)만 조금 크게 · 발 그늘 없음 */
.캐.글자만 .패 { padding: 5px 14px; font-size: var(--본문, 15px); box-shadow: 0 4px 14px rgba(40, 20, 30, .14); }

.점 { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--종이); box-shadow: 0 1px 4px rgba(0,0,0,.22); }
.풍선 { background: var(--종이); border-radius: 14px; padding: 9px 14px 10px; white-space: nowrap; box-shadow: 0 10px 28px rgba(40, 20, 30, .16); }
.풍선::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--종이);
  transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; }
.풍선 .윗 { font-size: var(--각주); color: var(--회1); }
.풍선 .이름 { font-size: var(--본문); font-weight: 500; }
.풍선 .값 { font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.풍선 .값 span { font-size: var(--각주); font-weight: 400; color: var(--회1); margin-left: 6px; letter-spacing: 0; }
.덧것.숨 { opacity: 0; visibility: hidden; pointer-events: none !important; transition: opacity .2s ease-out, visibility 0s .2s; }   /* 10-07 접근성 — 보이지 않는 단추(이름표 · 점)는 초점(Tab)에서도 숨는다(visibility) · 흐려진 뒤 숨는다 */
.덧것.숨 * { pointer-events: none !important; }

/* ── 유리 ── */
.유리 { background: var(--유리); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--유리-테);
  box-shadow: inset 0 1px 0 rgb(var(--종이rgb) / .95), 0 18px 44px rgba(40, 20, 30, .12), 0 2px 6px rgba(40, 20, 30, .05); }

/* ── 왼쪽 패널 (PC) ── */
/* D안(10-07) — 카드 한 자리: ~~20,20 · 380 · 26~~ → 24,24 · 400 · 둥글기 28 · 안 여백 24. 질문 카드도 답도 동네 패널도 같은 물체가 같은 자리에서 높이만 자란다(변형 없음) */
#패널 { position: fixed; z-index: 2; left: 24px; top: 24px; width: 400px; max-height: calc(100% - 48px); overflow-y: auto; overscroll-behavior: contain;   /* z-index 2 — 10-07 접근성: 패널이 DOM 에서 지도(#판)보다 앞에 서서(Tab 이 질문 칸부터) 그림은 z 로 지도 위에 둔다 */
  border-radius: 28px; padding: 20px 24px 20px; scrollbar-width: thin; }
#패널 .손잡이, #패널 .한줄 { display: none; }
.머리 { display: flex; align-items: center; justify-content: space-between; }
.머리 a { display: block; line-height: 0; }
.머리 img { height: 22px; display: block; }
.길잡이 { font-size: var(--각주); color: var(--회1); }
.글판 { transition: opacity .18s ease-out, transform .18s var(--떠오름); }
.글판.나감 { opacity: 0; transform: translateY(-8px); transition-duration: .12s; }
.글판.들어옴 { opacity: 0; transform: translateY(8px); transition: none; }
.누구 { display: flex; align-items: center; gap: 0; margin-top: 14px; }   /* ~~gap 12 · 얼굴 48~~ D안 — 얼굴 없음 */

.누구 h1, .누구 h2 { margin: 0; font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.누구 p { margin: 2px 0 0; font-size: var(--각주); color: var(--회1); }
.숫자 { margin-top: 20px; }
.숫자 .이름 { font-size: var(--각주); color: var(--회1); }
.큰수 { font-size: var(--큰수); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; margin-top: 2px; }
.큰수 small { font-size: var(--제목); font-weight: 700; letter-spacing: -.01em; margin-left: 2px; }
.각 { font-size: var(--각주); color: var(--회1); margin-top: 4px; line-height: 1.5; }
.한문장 { margin: 16px 0 0; font-size: var(--본문); line-height: 1.6; letter-spacing: -.005em; }
.한문장 b { font-weight: 500; color: var(--버건디); }
.목록 { list-style: none; margin: 18px 0 0; padding: 0; background: rgb(var(--종이rgb) / .78); border-radius: 14px; box-shadow: 0 0 0 1px var(--선) inset; }
.줄 { position: relative; }
.줄 + .줄::before { content: ''; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--선); }
.줄머리 { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px 0 16px; cursor: pointer; }
.줄머리:focus-visible { outline-offset: -2px; border-radius: 14px; }
.줄이름 { flex: 1; font-size: var(--본문); }
.줄값 { font-size: var(--본문); font-weight: 500; color: var(--회1); display: flex; align-items: center; gap: 6px; text-align: right; }
.꺾쇠 { width: 14px; height: 14px; stroke: var(--회2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .2s var(--떠오름); }
.줄.펼 .꺾쇠 { transform: rotate(90deg); }
.줄몸 { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.25, 1, .5, 1); }
.줄.펼 .줄몸 { grid-template-rows: 1fr; }
.줄몸 > div { overflow: hidden; min-height: 0; }
.줄속 { padding: 0 16px 14px; }
.줄속 .끝값 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.줄속 .끝값 b { font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; }
.줄속 .끝값 span { font-size: var(--각주); color: var(--회1); }
.줄속 svg { display: block; width: 100%; height: 76px; margin: 8px 0 6px; overflow: visible; }
.줄속 ul { list-style: none; margin: 4px 0 0; padding: 0; }
.줄속 li { font-size: var(--본문); padding: 6px 0; line-height: 1.45; }
.줄속 li a { color: var(--먹); text-decoration: none; }
.줄속 li a:hover { text-decoration: underline; }
.꼬리 { font-size: var(--각주); font-weight: 700; color: var(--버건디); margin-right: 6px; }
/* ~~회전율 「100집 중 N집 · 예시」 — 10-06 세대수 분모가 없어 뺐다(지도장.py 동네글 참조) · 세대수가 들어오면 되살린다~~
.예시 { font-size: var(--각주); font-weight: 500; color: var(--버건디위); background: var(--회2); border-radius: 5px; padding: 0 5px; line-height: 18px; }
.점판 { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 10px 0 6px; max-width: 260px; }
.점판 i { aspect-ratio: 1; border-radius: 50%; background: var(--옅회); }
.점판 i.켬 { background: var(--회2); }
*/
.접힘 { padding: 0 16px 14px; font-size: var(--각주); color: var(--회1); }
.발밑 { margin-top: 14px; font-size: var(--각주); color: var(--회1); line-height: 1.55; }
.발밑 a { color: var(--회1); }
@media (min-width: 761px) and ((min-height: 521px) or (pointer: fine)) { .폰만 { display: none !important; } }

/* 버튼 */

#입구 .기기줄 svg, .돌아가기 svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.이름표:focus-visible, .지역표:focus-visible, .구묶음:focus-visible { outline-offset: 3px; }   /* ~~흰 3 + 버건디 그늘 5~~ → 10-07 감사A 토큰 테 */

/* ── 아래 도구 막대 — 주된 행동 하나 ── */

#고르기 { position: fixed; bottom: 92px; left: calc(206px + 50%); transform: translateX(-50%); width: 300px; border-radius: 20px; padding: 6px; z-index: 5; }
#고르기 button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; cursor: pointer; }
#고르기 button:hover, #고르기 button:focus-visible { background: rgb(var(--종이rgb) / .9); }

#고르기 b { flex: 1; font-weight: 500; }
#고르기 span { font-size: var(--각주); color: var(--회1); }
#고르기 button.고름 b { color: var(--버건디); font-weight: 700; }

/* ── 오른쪽 작은 것 ── */
#확대단추 { position: fixed; right: 22px; top: 22px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
#확대단추 button { all: unset; width: 44px; height: 44px;   /* ~~40×38~~ 10-07 접근성 · 눌림 44 */ display: grid; place-items: center; font-size: var(--제목); color: var(--회1); cursor: pointer; }
#확대단추 button + button { box-shadow: 0 -1px 0 var(--선); }
#확대단추 button:focus-visible { outline-offset: -4px; border-radius: 12px; }   /* 10-07 감사A — 묶음이 overflow hidden 이라 테를 안쪽에(밖이면 잘려 안 보이던 자리) */

        /* 「내 돈으로」 — 점 색은 닿음 · 조금 · 멂 이라 거래 열 띠를 뗀다 · 세대 줄만 */
#출처 { position: fixed; right: 24px; bottom: 8px; font-size: 11px; color: rgb(var(--회rgb) / .88); pointer-events: none; }   /* ~~10px · .6(땅 위 3.1:1)~~ → 11px · .88(땅 위 6.0:1) 10-07 접근성 */
#출처 a { pointer-events: auto; color: inherit; text-decoration: none; display: inline-block; padding: 15px 4px; margin: -15px -4px; }   /* 10-07 감사C — ODbL 표기 「© OpenStreetMap 기여자」 + 저작권 장 링크 · 누름 자리 44(위아래 15 · 줄 높이는 안 바뀐다 — 음의 바깥 여백) */
#윗막대 { display: none; }

/* ── 「내 돈으로 어디까지」 ── */
.내돈머리 { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.내돈머리 h2 { margin: 0; font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; }
.닫기 { all: unset; width: 44px; height: 44px; margin: -6px -6px -6px 0; display: grid;   /* ~~32~~ 10-07 접근성 · 눌림 44(자리는 그대로 — 음수 여백) */ place-items: center; border-radius: 50%; cursor: pointer; color: var(--회1); background: rgb(var(--먹rgb) / .06); }
.닫기 svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }

.칸판 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.칸 { display: block; border-radius: 14px; background: rgb(var(--종이rgb) / .82); box-shadow: 0 0 0 1px var(--선) inset; padding: 9px 12px 8px; cursor: text; }
.칸:focus-within { outline: var(--초점테); outline-offset: -2px; }   /* ~~box-shadow 2 inset~~ → 10-07 감사A 토큰 테(같은 굵기 · 같은 자리) */
.칸 span { display: block; font-size: var(--각주); color: var(--회1); }
.칸 input { all: unset; display: block; width: 100%; font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin-top: 2px; }
.칸 input::placeholder { color: var(--회3); font-weight: 500; }   /* ~~#C9C4CB~~ 10-07 접근성(자리 글은 예외지만 흐렸다) */
.칸 em { display: block; font-style: normal; font-size: var(--각주); color: var(--회1); min-height: 18px; }
.소득칸 .칸줄 { display: flex; align-items: baseline; gap: 4px; color: inherit; font-size: inherit; }
.소득칸 .칸줄 input { flex: 1; min-width: 0; }
.소득칸 i { flex: none; font-style: normal; font-size: var(--각주); font-weight: 600; color: var(--회1); }
.소득칩 { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.소득칩 button { all: unset; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 14px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgb(var(--종이rgb) / .82); box-shadow: 0 0 0 1px var(--선) inset; font-size: var(--각주); font-weight: 600; color: var(--먹); }
.소득칩 button:focus-visible { outline: var(--초점테); outline-offset: 2px; }
body.입구-답 #입구 .소득칩 { display: none; } body.입구-답 #입구 .값칸판:focus-within .소득칩 { display: flex; }   /* 답이 선 뒤엔 소득 칸을 고칠 때만 */

.자세판 { padding: 0 16px 12px; }
.자세줄 { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--선); }
.자세줄 label { flex: 1; font-size: var(--본문); }
.자세줄 label small { display: block; font-size: var(--각주); color: var(--회1); }
.자세줄 input { all: unset; width: 92px; text-align: right; font-size: var(--본문); font-weight: 500; padding: 4px 8px; border-radius: 8px; background: rgb(var(--종이rgb) / .9); box-shadow: 0 0 0 1px var(--선) inset; }
.자세줄 input:focus-visible { outline-offset: -2px; }   /* ~~box-shadow 2 inset~~ → 10-07 감사A 토큰 테 */
.가름 { display: inline-flex; border-radius: 999px; background: rgb(var(--먹rgb) / .06); padding: 2px; }
.가름 button { all: unset; padding: 4px 10px; border-radius: 999px; font-size: var(--각주); font-weight: 500; color: var(--회1); cursor: pointer; }
.가름 button[aria-pressed="true"] { background: var(--종이); color: var(--먹); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ── 휴대폰 — 아래 시트(살짝 · 반 · 전체) ── */
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #확대단추, .pc만 { display: none !important; }      /* 도구 막대 · 범례는 D안에서 요소째 뺐다 */
  .폰만 { display: flex; }
  .각.폰만 { display: block; margin-top: 8px; }
  body.내돈 .이름표 { padding: 5px 10px; font-size: 14px; }
  #윗막대 { display: flex; position: fixed; left: 12px; right: 12px; top: max(12px, env(safe-area-inset-top)); height: 50px; border-radius: 25px;
    align-items: center; justify-content: space-between; padding: 0 8px 0 16px; z-index: 3; }
  #윗막대 img { height: 20px; display: block; }
  #윗막대 a { display: flex; align-items: center; min-height: 44px; min-width: 44px; }        /* 감사A — 워드마크 누름 44(막대 50 안) · 11-23 너비도 44(「10」 33px) */
  #윗막대 button { all: unset; display: flex; align-items: center; gap: 6px; font-size: var(--본문); font-weight: 500; min-height: 40px; padding: 0 12px; border-radius: 999px;   /* ~~33px~~ 10-07 접근성 · 40(막대 50 안) */
    background: rgb(var(--종이rgb) / .7); box-shadow: 0 0 0 1px var(--선) inset; cursor: pointer; }
  #윗막대 button { border: 2px solid transparent; background-clip: padding-box; min-height: 44px; }   /* 감사A — 알약 40 그대로 · 누름 44 */
  #고르기 { top: 70px; bottom: auto; left: 12px; right: 12px; width: auto; transform: none; }
  #패널 { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: calc(100% - 64px); max-height: none; border-radius: 28px 28px 0 0;
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overflow: hidden; transform: translateY(60%); will-change: transform; touch-action: none;
    overscroll-behavior: none;   /* 10-07 시트 — 자리는 map.js 가 transform 하나로(~~CSS 변수~~) · 글이 맨 위에서 튕기지 않는다(시트가 받는다) */
    box-shadow: inset 0 1px 0 rgb(var(--종이rgb) / .95), 0 18px 44px rgba(40, 20, 30, .12), 0 2px 6px rgba(40, 20, 30, .05), 0 120px 0 0 rgb(var(--종이rgb) / .94); }   /* 끝 너머 고무줄로 시트가 들려도 밑이 비지 않게 — 그림자 한 겹을 120px 아래로 */
  #패널.가득 { overflow-y: auto; touch-action: pan-y; }
  #패널:not(.가득) #단지판 { overflow: hidden; }          /* 덜 펼친 단 — 카드도 넘기지 않는다(손은 시트가 받는다) · 전체 단에서만 카드가 제 글을 넘긴다 */
  #패널.끄는중 { user-select: none; -webkit-user-select: none; }
  /* ~~손잡이 36×5px 막대~~ — 잡는 자리를 시트 윗단 전체 폭 28px 로 넓혔다(10-06 운영 「끌어 내리기가 잘 안 된다」) · 여기서는 글 넘김 없이 늘 시트가 움직인다 */
  /* 10-07 시트 — 손잡이는 단추(「패널 크기 바꾸기」 · 톡 · Enter · 스페이스 = 다음 단 · 화살표 = 한 단씩) · 누름 자리 44px(애플잣대 — 패널 누를 것 44) · 글은 36px 부터 */
  #패널 .손잡이 { display: block; position: sticky; top: -8px; z-index: 4; box-sizing: border-box; width: calc(100% + 40px); height: 44px; margin: -8px -20px -8px; padding: 0; border: 0; font: inherit; color: inherit;
    -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; touch-action: none; cursor: grab;
    background: linear-gradient(rgb(var(--한줄rgb) / .96) 70%, rgb(var(--한줄rgb) / 0)); border-radius: 28px 28px 0 0; }   /* 전체 단에서 글을 넘겨도 윗단에 붙어 있다 */
  #패널 .손잡이:focus-visible { outline-offset: -4px; }   /* 테는 토큰(--초점테) — 패널이 overflow hidden 이라 안쪽에 */
  #패널 .손잡이::after { content: ''; position: absolute; left: 50%; top: 8px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgb(var(--먹rgb) / .28); }   /* ~~.2~~ 10-07 접근성 */
  /* 10-07 최소 단 한 줄 — 손잡이(44) 밑 52px · 지금 화면의 핵심 한 줄(이름 왼쪽 · 숫자 오른쪽) · 최소 단 근처에서만 선다(map.js 한줄보임 — 끌어 올리면 사라지고 글이 드러난다) ·
     밑이 비치지 않게 판 색으로 덮는다(글 첫 줄이 겹쳐 보이지 않게) · 누르면 중간 단 */
  #패널 .한줄 { display: flex; position: absolute; z-index: 5; left: 0; right: 0; top: 44px; height: 52px; box-sizing: border-box; align-items: center; gap: 12px; padding: 0 20px 4px;
    margin: 0; border: 0; font: inherit; text-align: left; color: var(--먹); background: rgb(var(--한줄rgb)); -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent; cursor: pointer; opacity: 0; visibility: hidden; transition: none !important; }   /* 보임은 map.js 가 틀마다 정한다 — 줄이기의 전역 .01ms 전환이 visibility 를 한 틀 늦게 만들지 않게 */
  #패널 .한줄::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 400px; background: inherit; pointer-events: none; }   /* 최소 단에서 한 줄 밑(출처 줄 위)까지 덮는다 */
  #패널 .한줄이름 { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #패널 .한줄수 { flex: 0 0 auto; font-size: 17px; font-weight: 700; color: var(--버건디); white-space: nowrap; }
  #패널 .한줄수:empty { display: none; }
  #패널 .한줄:focus-visible { outline-offset: -4px; border-radius: 12px; }   /* 테는 토큰(--초점테) */
  #패널 .머리 { display: none; }
  .누구 { margin-top: 4px; }
  .숫자 { margin-top: 14px; }
  .내돈머리 { margin-top: 4px; }
  #출처 { position: absolute; bottom: auto; left: 0; right: 0; top: auto; height: 20px; line-height: 22px; padding: 0 6px; text-align: center;
    font-size: 11px; letter-spacing: -.01em; color: rgb(var(--회rgb) / .88); background: var(--종이);   /* ~~9.5px · .7~~ 10-07 접근성 */ box-shadow: 0 -10px 10px -2px rgb(var(--종이rgb) / .96); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 6; }   /* z 6 — 최소 단 한 줄(z 5)의 덮개 위에 늘 선다(ODbL 표기) */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .글판, .글판.나감 { transition: opacity .15s linear !important; transform: none !important; }
}

/* 10-06 왕 고침 — 크기 칩 · 접힌 기준 줄 · 근거 말풍선 · 「거래가 적어요」 이름표 */

details.기준 { margin-top: 12px; font-size: var(--각주); color: var(--회1); line-height: 1.55; }
details.기준 summary { list-style: none; cursor: pointer; padding: 4px 0; }
details.기준 summary::-webkit-details-marker { display: none; }
details.기준 summary:hover { color: var(--먹); }
details.기준 p { margin: 6px 0 0; }
.발밑 details.기준 { margin-top: 2px; }
.근거 { background: rgb(var(--종이rgb) / .94); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  color: var(--먹); font-size: var(--각주); font-weight: 500; padding: 7px 12px; border-radius: 12px; white-space: nowrap;
  border: 1px solid rgb(var(--먹rgb) / .08); box-shadow: 0 6px 18px rgba(40, 20, 30, .14); transition: opacity .15s; }
.근거::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: var(--종이);
  border-right: 1px solid rgb(var(--먹rgb) / .08); border-bottom: 1px solid rgb(var(--먹rgb) / .08); transform: translateX(-50%) rotate(45deg); }
body.내돈 .이름표.없음 { background: rgb(var(--종이rgb) / .7); color: var(--회1); box-shadow: none; }

/* 영상으로 보기 — 글 카드만(썸네일·끼워 넣기 없음) */
.영상카드 { padding: 10px 0 12px; border-top: 1px solid var(--선); }
.영상카드:first-child { border-top: 0; padding-top: 2px; }
.영상머리 { display: flex; align-items: baseline; gap: 8px; font-size: var(--각주); color: var(--회1); }
.영상머리 b { font-size: var(--본문); font-weight: 500; color: var(--먹); }
.낡음 { font-size: var(--각주); color: var(--회2); border: 1px solid var(--선2); border-radius: 5px; padding: 0 5px; line-height: 16px; }
.영상요약 { margin: 4px 0 6px; font-size: var(--본문); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.영상길 { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; font-size: var(--각주); font-weight: 500; color: var(--버건디); text-decoration: none; }   /* ~~92×14~~ 10-07 접근성 · 눌림 44(자리는 음수 여백으로 그대로) */
.영상길:hover { text-decoration: underline; }

/* 값 차이 — 문장 머리 · 점 말풍선(흰 · 대장 말풍선과 같은 꼴) */
.줄속 .끝값.문장 { display: block; font-size: var(--본문); line-height: 1.5; }
.줄속 .끝값.문장 b { font-size: var(--본문); font-weight: 700; letter-spacing: 0; }
.차트 { position: relative; }
.차트 circle.점자리 { cursor: pointer; }
.점말 { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: rgb(var(--종이rgb) / .96); color: var(--먹);
  font-size: var(--각주); font-weight: 500; padding: 6px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none;
  border: 1px solid rgb(var(--먹rgb) / .08); box-shadow: 0 6px 18px rgba(40, 20, 30, .14); z-index: 2; }

/* 모드 맞바꿈 — 동네열바퀴(~~동네한바퀴~~ 10-06 어명) · 내 돈으로 어디까지 (켜진 쪽만 버건디) */

.머리 .길잡이 { all: unset; display: flex; align-items: center; gap: 4px; font-size: var(--각주); color: var(--회1); cursor: pointer; min-height: 36px; padding: 0 10px; margin: -6px -10px -6px 0; border-radius: 999px; }   /* ~~23px~~ 10-07 접근성 · 36 */
.머리 .길잡이:hover, .머리 .길잡이:focus-visible { background: rgb(var(--먹rgb) / .06); color: var(--먹); }
#고르기 { top: 72px; bottom: auto; left: 44px; transform: none; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  
  
  #고르기 { top: 70px; left: 12px; }
}

/* 지하철 — 지금 다니는 노선만 · 공식 색을 한 단 옅게 · 땅속 구간도 같은 선 */
.노선 { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
body.확대 .노선 { stroke-width: 3; }
.역이름 b { background: var(--종이); border: 2px solid var(--회1); }

/* 과천 — 하천 선 · 동네 목록의 지역 머리 */
.하천 { fill: none; stroke: var(--물); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.면[data-동="원도심"] { fill: #E3E6D3; }
.면[data-동="지정타"] { fill: #E9DCD3; }
/* 분당·판교 여섯(10-06) — 용산 · 과천과 같은 결의 옅은 색 · 이웃끼리 다르게 */
.면[data-동="동판교"] { fill: #DCE5EC; }
.면[data-동="서판교"] { fill: #E3E8D6; }
.면[data-동="이매·야탑"] { fill: #EEE3D2; }
.면[data-동="서현·수내"] { fill: #E8DEE6; }
.면[data-동="정자"] { fill: #DDE6DE; }
.면[data-동="미금"] { fill: #EFE4D8; }
/* 송파 일곱(10-07) — 같은 결 · 이웃끼리 다르게(잠실 파랑 · 신천·풍납 모래 · 방이·석촌 풀 · 가락·오금 분홍 · 문정·장지 연두 · 위례 살구 · 거여·마천 보라)
   ★ 색이 없는 동네는 검게 칠해졌다(10-07 송파 첫 굽기 실측) — 맨 위 .면 에 바탕색을 두어 막는다(다음 지역이 색을 빠뜨려도 옅은 회색) */
.면[data-동="잠실"] { fill: #DCE5EC; }
.면[data-동="신천·풍납"] { fill: #EEE3D2; }
.면[data-동="방이·석촌"] { fill: #E3E8D6; }
.면[data-동="가락·오금"] { fill: #E8DEE6; }
.면[data-동="문정·장지"] { fill: #DDE6DE; }
.면[data-동="위례"] { fill: #EFE4D8; }
.면[data-동="거여·마천"] { fill: #DEDAEA; }
/* 강남 일곱(10-08) — 같은 결 · 이웃끼리 다르게(압구정·청담 분홍 · 삼성 모래 · 역삼·논현 연두 · 대치 보라 · 도곡 살구 · 개포·일원 파랑 · ~~수서·세곡 풀~~ 수서 풀 · 세곡·자곡 모래) */
.면[data-동="압구정·청담"] { fill: #E8DEE6; }
.면[data-동="삼성"] { fill: #EEE3D2; }
.면[data-동="역삼·논현"] { fill: #DDE6DE; }
.면[data-동="대치"] { fill: #DEDAEA; }
.면[data-동="도곡"] { fill: #EFE4D8; }
.면[data-동="개포·일원"] { fill: #DCE5EC; }
.면[data-동="수서"] { fill: #E3E8D6; }
.면[data-동="세곡·자곡"] { fill: #EEE3D2; }   /* 10-10 수서·세곡을 둘로 — 세곡·자곡 모래(이웃 수서 풀 · 개포·일원 파랑) */
/* 안양 일곱(10-08) — 같은 결 · 이웃끼리 다르게(석수·박달 풀 · 안양역·명학 파랑 · 비산 모래 · 범계 분홍 · 평촌 연두 · 인덕원 보라 · 호계 살구) */
.면[data-동="석수·박달"] { fill: #E3E8D6; }
.면[data-동="안양역·명학"] { fill: #DCE5EC; }
.면[data-동="비산"] { fill: #EEE3D2; }
.면[data-동="범계"] { fill: #E8DEE6; }
.면[data-동="평촌"] { fill: #DDE6DE; }
.면[data-동="인덕원"] { fill: #DEDAEA; }
.면[data-동="호계"] { fill: #EFE4D8; }
/* 서초 여섯(10-10) — 같은 결 · 이웃끼리 다르게(반포 파랑 · 잠원 모래 · 서초 보라 · 방배 풀 · 양재·우면 분홍 · 내곡 살구) — 강남과 맞닿는 자리(잠원↔압구정·청담 · 서초↔역삼·논현 · 양재·우면↔도곡 · 내곡↔수서·세곡)도 다르게 */
.면[data-동="반포"] { fill: #DCE5EC; }
.면[data-동="잠원"] { fill: #EEE3D2; }
.면[data-동="서초"] { fill: #DEDAEA; }
.면[data-동="방배"] { fill: #E3E8D6; }
.면[data-동="양재·우면"] { fill: #E8DEE6; }
.면[data-동="내곡"] { fill: #EFE4D8; }
/* 성동 여섯(10-16) — 같은 결 · 이웃끼리 다르게(성수 풀 · 행당·응봉 파랑 · 왕십리 모래 · 금호 보라 · 옥수 살구 · 마장·용답 분홍) */
.면[data-동="성수"] { fill: #E3E8D6; }
.면[data-동="행당·응봉"] { fill: #DCE5EC; }
.면[data-동="왕십리"] { fill: #EEE3D2; }
.면[data-동="금호"] { fill: #DEDAEA; }
.면[data-동="옥수"] { fill: #EFE4D8; }
.면[data-동="마장·용답"] { fill: #E8DEE6; }
#고르기 button.지역머리 { padding: 10px 10px 4px; font-size: var(--각주); font-weight: 700; color: var(--버건디); cursor: pointer; }
#고르기 button.지역머리 span { font-weight: 400; color: var(--회1); margin-left: 6px; }
#고르기 { max-height: calc(100% - 140px); overflow-y: auto; }

/* 두 동네 나란히 — 패널이 두 칸으로 넓어진다 · 휴대폰은 위아래 */
.한줄단추 { all: unset; box-sizing: border-box; display: block; width: 100%; margin-top: 12px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: rgb(var(--종이rgb) / .78); box-shadow: 0 0 0 1px var(--선) inset; font-size: var(--본문); color: var(--먹); }
.한줄단추:hover, .한줄단추:focus-visible { background: var(--종이); }
body.나란히 #패널 { width: 660px; }

.나란안내 { margin: 14px 0 6px; font-size: var(--본문); color: var(--회1); }
.나란고르기 { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.나란고르기 button { all: unset; cursor: pointer; min-height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: rgb(var(--종이rgb) / .8); box-shadow: 0 0 0 1px var(--선) inset; font-size: var(--본문); }
.나란짝:not([hidden]) ~ .나란고르기, .나란짝:not([hidden]) { }
.나란두칸 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.나란칸 { background: rgb(var(--종이rgb) / .78); border-radius: 14px; box-shadow: 0 0 0 1px var(--선) inset; padding: 12px 14px; min-width: 0; }
.칸머리 { display: flex; align-items: center; gap: 8px; }

.칸머리 b { font-size: var(--제목); font-weight: 700; }
.나란칸 dl { margin: 10px 0 0; }
.나란칸 dt { font-size: var(--각주); color: var(--회1); margin-top: 8px; }
.나란칸 dd { margin: 2px 0 0; }
.나란칸 dd b { font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; }
.나란칸 dd b.이름 { font-size: var(--본문); }
.나란칸 dd small { display: block; font-size: var(--각주); color: var(--회1); }
.나란칸 .영상카드 { margin-top: 10px; border-top: 1px solid var(--선); padding-top: 8px; }
.나란선 { margin-top: 12px; background: rgb(var(--종이rgb) / .78); border-radius: 14px; box-shadow: 0 0 0 1px var(--선) inset; padding: 12px 16px; }
.나란선 .줄이름 { font-size: var(--각주); color: var(--회1); margin-bottom: 4px; }
.나란선 .끝값.문장 { font-size: var(--본문); line-height: 1.5; }
.나란선 svg { display: block; width: 100%; height: 76px; margin: 8px 0 6px; overflow: visible; }
.뜸.고름2 .얼 { fill: var(--고름면2); fill-opacity: .4; }
.뜸.고름2 .테 { stroke: var(--버건디); stroke-width: 1.8; stroke-opacity: 1; stroke-dasharray: 6 4; }
.이름표.고름2 { background: var(--종이); color: var(--버건디); font-weight: 700; box-shadow: 0 0 0 2px var(--버건디), 0 6px 16px rgba(110, 18, 48, .18); }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  body.나란히 #패널 { width: auto; }
  .나란두칸 { grid-template-columns: 1fr; }
}

/* 단지 카드 — 패널 안에서 동네 내용 위로 겹쳐 올라오는 한 단(흰 유리) */
.덧것.점 { pointer-events: auto; cursor: pointer; padding: 0; }
.덧것.점.고름 { width: 16px; height: 16px; box-shadow: 0 0 0 3px var(--버건디), 0 2px 8px rgba(0,0,0,.25); }
.덧것.점.작은, .덧것.전체점.작은 { width: 9px; height: 9px; border-width: 2px; }        /* 700세대 미만 · 세대수 미확인 — 한 단 작게 · 색은 그대로(10-07 700세대 기본 보기) */
.덧것.점.작은.고름, .덧것.전체점.작은.고름 { width: 13px; height: 13px; }
.단지줄 span + span { color: var(--회2); }
#단지판 { position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 18px 20px 16px; overflow-y: auto;
  background: rgb(var(--종이rgb) / .96); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease-out, transform .25s var(--떠오름); }
#단지판.열림 { opacity: 1; transform: none; pointer-events: auto; }
.단지카드 .내돈머리 { margin-top: 0; }
.단지카드 .내돈머리 h2 { font-size: var(--제목); }
.카드값 { margin: 12px 0 0; }
.카드값 dt { font-size: var(--각주); color: var(--회1); margin-top: 10px; }
.카드값 dd { margin: 2px 0 0; }
.카드값 dd b { font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; }
.카드값 dd small { display: block; font-size: var(--각주); color: var(--회1); }
.카드차이 { margin-top: 14px; background: rgb(var(--종이rgb) / .85); border-radius: 14px; box-shadow: 0 0 0 1px var(--선) inset; padding: 12px 16px; }
.카드차이 .줄이름 { font-size: var(--각주); color: var(--회1); margin-bottom: 4px; }
.카드차이 .끝값.문장 { font-size: var(--본문); line-height: 1.5; }
.카드차이 svg { display: block; width: 100%; height: 76px; margin: 8px 0 6px; overflow: visible; }
.대표표 { margin: 4px 0 0; font-size: var(--본문); font-weight: 500; color: var(--버건디); }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) { #단지판 { padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); } }

/* 녹지 한 벌 — 축소 판은 5ha 넘는 것만 */
body.축소 .녹.작 { display: none; }

/* 노선도 꼴 역 — 선 한가운데 · 이름은 흰 테두리 글씨 · 노선 배지 (10-06 운영 어명) */
.노선 { stroke-width: 2.5; stroke-linecap: round; }
body.확대 .노선 { stroke-width: 3.5; }
.덧것.역 { width: calc(9px + (var(--n, 1) - 1) * 7px); height: 9px; z-index: 1; }
.역표 { position: absolute; inset: 0; display: block; border-radius: 999px; background: var(--종이); border: 2px solid var(--테); box-sizing: content-box;
  transform: translate(-2px, -2px); width: 100%; height: 100%; }
.덧것.역.환승 .역표 { border-width: 2px; }
.역글 { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: var(--역이름글); font-weight: var(--역이름굵기); color: var(--역이름색); letter-spacing: -.01em;   /* ~~각주 · 700 · 먹~~ → 10-10 한 단 옅게(토큰) */
  text-shadow: 0 0 2px var(--종이), 0 0 2px var(--종이), 0 0 3px var(--종이), 0 0 4px var(--종이), 1px 1px 0 var(--종이), -1px -1px 0 var(--종이), 1px -1px 0 var(--종이), -1px 1px 0 var(--종이); }
.배지 { display: inline-flex; gap: 2px; }
/* ~~노선 색 바탕 · 흰 글 10px~~ → 10-07 감사A(애플감사 순위 11): 흰 바탕 · 노선 색 테 2 · 먹 글 12 — 글 대비는 늘 4.5 넘음(먹/흰 16) · 노선 색은 테가 지킨다 */
.배지 i { font-style: normal; display: inline-grid; place-items: center; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--종이); color: var(--먹); font-size: var(--각주); font-weight: 700; line-height: 1; text-shadow: none; box-shadow: inset 0 0 0 2px var(--노, var(--회1)), 0 0 0 1px var(--종이); }
body.축소 .덧것.역.작 .역글 { display: none; }
/* 겹칠 때 — 동네 이름표 · 캐릭터 · 대표단지 말풍선 · 근거 말풍선이 역보다 위 */
.덧것.이름표, .덧것.캐 { z-index: 3; }
.덧것.점 { z-index: 2; }
.덧것.풍선 { z-index: 4; }
.덧것.근거 { z-index: 5; }

/* 랜드마크 — ~~확대 판만 · 그림 아래 이름 한 줄~~ → 10-10 B 기호(원장/기획/랜드마크_v4_애플.md §7): 원 안 단색 선 기호 + 이름 오른쪽(흰 테두리 글씨 · 선 위로) ·
   작은 판(.점만)은 원만 · 색은 토큰 셋(--기호건 · --기호물 · --기호녹 — 어둠 판은 맨 끝 한 벌) · 선 대비 4.5 이상(시험 [랜드마크]) ·
   .그림판 = 지도장.랜드마크그림켬 일 때 확대 판의 옛 꼴(그림 + 이름 아래) */
.덧것.랜드 { z-index: 1; display: flex; align-items: center; gap: 4px; pointer-events: none; width: max-content; }
.덧것.랜드 .기호알 { display: grid; place-items: center; flex: none; width: calc(2 * var(--r, 10px)); height: calc(2 * var(--r, 10px)); border-radius: 50%;
  background: var(--기호바탕); color: var(--기호건); box-shadow: var(--기호그늘); }
.덧것.랜드 .기호알 svg { width: 66%; height: 66%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.덧것.랜드.색-물 .기호알 { color: var(--기호물); } .덧것.랜드.색-녹 .기호알 { color: var(--기호녹); }
.덧것.랜드.점만 .기호알 svg { stroke-width: 2.1; } .덧것.랜드.점만 .랜드이름 { display: none; }
.덧것.랜드 img { display: none; }
.덧것.랜드.그림판 { flex-direction: column; gap: 0; } .덧것.랜드.그림판 .기호알 { display: none; }
.덧것.랜드.그림판 img { height: var(--S, 56px); width: auto; display: block; } .덧것.랜드.그림판 .랜드이름 { margin-top: 1px; }
.랜드이름 { font-size: var(--각주); font-weight: 500; color: var(--지명); white-space: nowrap; line-height: 1.25;
  text-shadow: 0 0 2px var(--종이), 0 0 2px var(--종이), 0 0 3px var(--종이), 0 0 4px var(--종이), 1px 1px 0 var(--종이), -1px -1px 0 var(--종이), 1px -1px 0 var(--종이), -1px 1px 0 var(--종이); }
.덧것.역 { z-index: 0; }

/* 새 대문(10-06) — 로고 h1 · 동네 목록(실제 글) */
.머리 h1.로고 { margin: 0; line-height: 0; }
.동네목록 { margin-top: 16px; font-size: var(--각주); color: var(--회1); }
.동네목록 h2 { font-size: var(--각주); font-weight: 700; color: var(--회1); margin: 0; }
/* 접은 동네 목록(10-06 왕) — 「동네 목록 ›」 한 줄 · 펼치면 일곱 줄 */
.동네목록 summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: 6px 0; cursor: pointer; }
.동네목록 summary::-webkit-details-marker { display: none; }
.동네목록 summary:hover h2 { color: var(--먹); }
.동네목록 details[open] summary .꺾쇠 { transform: rotate(90deg); }
.동네목록 details ul { margin-top: 2px; }
.동네목록 ul { list-style: none; margin: 0; padding: 0; }
.동네목록 li { padding: 4px 0; line-height: 1.5; }
.동네목록 li button { all: unset; cursor: pointer; font-weight: 700; color: var(--먹); }
.동네목록 li button:hover { color: var(--버건디); }
.동네목록 li a { color: var(--회1); }
#패널 nav.동네목록 { display: none; }   /* ~~body.내돈 · body.나란히 일 때만~~ 10-07 D안(검증표 33): 동네 목록은 DOM 에만 두고(검색 · JS 없이 읽힘) 화면에선 숨긴다 — 고르기 판 · 지도가 그 길이다 */

/* ───────── 서울 · 경기 적용 (10-06) — 바탕 · 노선 · 역 표지 · 역 이름 · 지역 이름표 · 첫 화면 지역 카드 ───────── */
/* 배율 단계(map.js 단계정하기 · 문턱에 여유) — 경기전체 < .12 ≤ 서울전체 < .5 ≤ 서울중간 < 1.2 · 서울확대 ≥ .6(확대 조각) · 이름켬 ≥ 이름 문턱 · 확대 ≥ 2.6 */
#서울바탕 .길 { stroke-width: 5; }
body.축소 #서울조각 .길.급2 { stroke-width: 3; }
body.서울중간 #서울바탕 .길.급1 { stroke-width: 3; } body.서울중간 #서울바탕 .길.급2 { stroke-width: 1.6; }
body.서울전체 #서울바탕 .길.급1 { stroke-width: 2; } body.서울전체 #서울바탕 .길.급2 { stroke-width: 1; stroke-opacity: .8; }
body.경기전체 #서울바탕 .길.급1 { stroke-width: 1.2; } body.경기전체 #서울바탕 .길.급2 { display: none; }
#서울바탕 .하천.서 { stroke-width: 1.2; }
#서울조각 .다리 { stroke-width: 6; } #서울조각 .다리밑 { stroke-width: 7; }
body.서울확대 .서울축소 { display: none; }
body:not(.서울확대) #서울조각, body:not(.서울확대) #서울조각길 { display: none; }
/* 10-07 중간 조각(20km) — 경기전체 · 서울확대 사이에서만 · 다 받으면(body.중간켬) 축소 한 장(뭉친 녹지 · 큰길)을 감춘다 */
body.경기전체 #서울중간, body.경기전체 #서울중간길, body.서울확대 #서울중간, body.서울확대 #서울중간길 { display: none; }
body.중간켬:not(.경기전체):not(.서울확대) .서울축소 { display: none; }
body.서울전체 .노선 { stroke-width: 1.8; }
body.경기전체 .노선 { stroke-width: 1.4; }
/* 역 표지 — 지도 그림 속(끌기 · 확대 중에는 지도와 한 장) · 한 노선 역은 그 노선 색 테 흰 속 · 갈아타는 역은 삼태극 하나 */
#역점 { pointer-events: none; }
.역테, .역속 { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.역속 { stroke: var(--역속); }
.역테.큰 { stroke-width: 6px; } .역속.큰 { stroke-width: 2.8px; }
.역테.작 { stroke-width: 4.6px; } .역속.작 { stroke-width: 2px; }
body.경기전체 .역테.작 { stroke-width: 3.4px; } body.경기전체 .역속.작 { stroke-width: 1.2px; }
body.이름켬 .역테 { stroke-width: 10px; } body.이름켬 .역속 { stroke-width: 6px; }
body.확대 .역테 { stroke-width: 13px; } body.확대 .역속 { stroke-width: 9px; }
#역점 .태 { transform: scale(var(--k, .05)); }
/* 역 이름 · 배지 — 이름 문턱부터 · 멈춘 뒤 한 번 정한다 · 겹치면 그 이름만 숨는다 */
.덧것.역이름표 { z-index: 1; pointer-events: none; transition: opacity .2s ease-out; }
.역이름표 .역글 { position: static; transform: none; }
.배지 i.더 { --노: var(--회1); }   /* ~~9px~~ — 「+N」도 같은 12 · 회1 테 */
body:not(.확대) .역이름표 .배지 { display: none; }   /* 10-10 왕 규칙 — 노선 배지는 확대 판에서만(중간 배율은 이름만) · 역당 셋 + 「+N」(환승표.배지접기) */
.덧것.랜드 { transition: opacity .2s ease-out; }
/* 지역 이름표 — 수도권 · 서울 전체 배율(동네 이름표 일곱 대신) · 누르면 그 지역으로 */
.덧것.지역표 { z-index: 3; pointer-events: auto; cursor: pointer; border: 0; display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 7px 14px;
  border-radius: 999px; background: rgb(var(--종이rgb) / .95); color: var(--먹); font-size: var(--본문); white-space: nowrap;
  box-shadow: 0 4px 14px rgba(40, 20, 30, .18); transition: opacity .2s ease-out, background .2s; }
.지역표 b { font-weight: 700; }
.지역표 .몇 { font-size: var(--각주); color: var(--회1); }
.지역표::after { content: ''; position: absolute; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--버건디바탕);
  box-shadow: 0 0 0 2px var(--종이); transform: translate(-50%, -50%); }
.지역표.위::after { top: calc(100% + 3px); }
.지역표.아래::after { top: -3px; }
.지역표:hover, .지역표:focus-visible { background: var(--종이); }
/* 첫 화면 — 패널은 지역 카드 둘(이름 · 동네 수 · 최근 신고가 한 줄) */

.덧것.겹숨 { opacity: 0; visibility: hidden; pointer-events: none !important; transition: opacity .2s ease-out, visibility 0s .2s; }   /* 10-07 접근성 — 초점에서도 숨는다 */

/* 지역 바탕 길(용산 · 과천 사각 안) — 축소 배율에서는 서울 바탕 길과 같은 굵기로(흰 덩어리로 튀지 않게) */
body.서울중간 .지역길 .길 { stroke-width: 2.2; }
body.서울전체 .지역길 .길 { stroke-width: 1.4; stroke-opacity: .85; }
body.경기전체 .지역길 .길 { stroke-width: 1; stroke-opacity: .8; }
body.서울전체 .지역길 .다리, body.서울전체 .지역길 .다리밑, body.경기전체 .지역길 .다리, body.경기전체 .지역길 .다리밑 { display: none; }

/* ───────── 입구 — 질문 하나 (10-06 왕 판정 · 시안 원장/기획/입구_시안_v1.md · PC = B안 가운데 카드 · 휴대폰 = A안 시트) ───────── */
#입구 { margin-top: 18px; }
#입구 .물음 { margin: 0; font-size: var(--제목); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
#입구 .칸판 { margin-top: 16px; }
#입구 .칸판.더칸 { margin-top: 8px; }
#입구 .칸 input { caret-color: var(--버건디); }

/* 그냥 둘러볼게요 · 동네열바퀴로 둘러보기 — 옅은 글 한 줄(단추처럼 보이지 않게) */
   /* ~~33px~~ 10-07 접근성 · 44 · 회2 는 이제 5.1:1 */

.글단추 { all: unset; cursor: pointer; color: var(--버건디); font-weight: 500; }
.글단추:hover { text-decoration: underline; }
/* 질문 장 — 도구 막대 · 모드 토글 · 범례 · 동네 목록은 숨긴다(주된 행동은 「지도에 그려 보기」 하나) */

/* ~~오늘의 신고가 — 지도 위 작은 유리 띠(PC 오른쪽 위 · 휴대폰 윗막대 아래)~~ → 10-06 C안 ③ — 지도 위 반짝이는 점(끌기 · 확대를 따라간다 · 덧 겹) */
/* 10-07 접근성 — ~~12px 단추~~ 눌림은 44×44 투명 상자, 보이는 점(버건디 12 + 흰 테 2.5)은 바탕 그림으로 가운데에 · 반짝임은 ~~끝없이~~ 3번 뒤 멈춘다(줄임이면 처음부터 없다) */
   /* 구 동그라미(3) 아래 — 겹치면 숫자가 가려지지 않게 */

      /* 찍기용 — 한 위상에 멈춘다 */

/* 점이 시트 · 카드에 가려질 때만 — 작은 글 한 줄(PC 오른쪽 위 확대 단추 아래 · 휴대폰 윗막대 아래) · 누르면 그 점으로 날아간다 */

/* 답 장(입구에서 왔을 때) — 「내 돈으로」 패널의 칸들은 접고(값 칩 한 줄 + 고치기) 결과만 */

   /* ~~25px~~ 10-07 접근성 */

/* 닿는 단지 목록 — 가까운 값부터 · 15줄 뒤는 「더 보기」 · 조금 모자람은 접어서 */
.단지목록 { margin-top: 10px; background: rgb(var(--종이rgb) / .78); border-radius: 14px; box-shadow: 0 0 0 1px var(--선) inset; }
.단지목록 .목록머리 { padding: 10px 16px 0; font-size: var(--각주); color: var(--회1); }
.단지목록 summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 16px; cursor: pointer; font-size: var(--본문); }
.단지목록 summary::-webkit-details-marker { display: none; }
.단지목록 summary .꺾쇠 { margin-left: auto; }
.단지목록[open] summary .꺾쇠 { transform: rotate(90deg); }
.단지줄들 { padding: 2px 6px 6px; }
.단지줄 { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.단지줄:hover, .단지줄:focus-visible { background: var(--종이); }
.단지줄 b { display: block; font-size: var(--본문); font-weight: 500; }
.단지줄 span { display: block; font-size: var(--각주); color: var(--회1); }
.단지목록:not(.다보임) .단지줄.더 { display: none; }
.더보기 { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; text-align: center; padding: 0;   /* ~~29px~~ 10-07 접근성 */ font-size: var(--각주); color: var(--버건디); font-weight: 500; cursor: pointer; }

/* 지도 위 — 좌표 있는 단지 점(「내 돈으로」 확대 판) · 구 묶음 동그라미(축소 판) */
.덧것.전체점 { pointer-events: auto; cursor: pointer; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--종이); background: var(--멂면); box-shadow: 0 1px 4px rgba(0,0,0,.22); z-index: 2; padding: 0; }
.덧것.전체점.닿음 { background: var(--버건디바탕); }
.덧것.전체점.조금 { background: var(--조금테); }
.덧것.전체점.멂 { background: var(--멂점); }
.덧것.전체점.없음 { background: var(--종이); border-color: var(--선2); }
.덧것.전체점.고름 { width: 16px; height: 16px; box-shadow: 0 0 0 3px var(--버건디), 0 2px 8px rgba(0,0,0,.25); }
/* 어림 점(10-07) — 자리가 법정동 가운데 어림인 단지 · 점선 테 · 속은 색 그대로(닿음 · 조금 · 멂) */
.덧것.전체점.어림 { border: 2px dashed rgb(var(--회rgb) / .75); background-clip: padding-box; }
.덧것.전체점.어림 { width: 12px; height: 12px; }          /* 작은(9px · 700세대 미만)이어도 점선이 읽히게 한 단 크게(10-07 찍어 본 뒤) */
.덧것.전체점.어림.고름 { box-shadow: 0 0 0 3px var(--버건디), 0 2px 8px rgba(0,0,0,.25); }
.어림표지 { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px dashed rgb(var(--회rgb) / .55); border-radius: 6px; font-style: normal; font-size: 11px; line-height: 16px; color: var(--회1); vertical-align: 1px; }
.단지카드 .어림줄 { margin-top: -4px; color: var(--회1); }
.단지카드 .어림줄::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; border: 1.5px dashed rgb(var(--회rgb) / .75); vertical-align: -1px; }
/* PC — 질문 장에서 패널이 지도 위 가운데 카드가 된다(지도의 빈 땅은 카드 오른쪽 · 자유()가 패널 자리를 읽는다) · 답으로 바뀌면 왼쪽 패널 자리로 미끄러진다 */
@media (min-width: 761px) and ((min-height: 521px) or (pointer: fine)) {
  /* ~~#패널 { transition: left · top · width · transform · border-radius · padding .45s }~~ — 10-06 C안 ②: 카드 → 패널은 map.js 변형()(FLIP · 스프링 .55/.85 · transform + border-radius 만) */
  
     /* ~~transform: translate(…)~~ → translate 속성(변형 애니메이션의 transform 과 겹치지 않게 · 10-06 C안 ②) */
  
  
  
     /* ~~26px~~ → iOS Large Title 34(10-06 C안) */
  
  
}
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #입구 { margin-top: 6px; }
  #입구 .칸판 { margin-top: 14px; }
  
  
}
   /* 시트를 다 올리면 줄은 비킨다 */

/* ───────── 10-06 C안 셋 — ① 칸이 차는 순간 지도가 물든다 ② 카드 → 패널 변형 ③ 반짝이는 점 · 글자 단은 iOS 일곱 단(입구 카드 · 결과 패널만) ───────── */
.숨은글 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
#입구 .물음 { font-size: var(--T1); line-height: 1.25; }
#입구 .칸 span, #입구 .칸 em { font-size: var(--FN); }
#입구 .칸 input { font-size: var(--T1); }

/* 미리 물들이기 — 큰 숫자(약 N억 · 구르는 숫자) · 「지금 닿는 단지 N곳 · 동네 M곳」(수가 바뀌면 튄다) · 소득이 비면 한 줄 */

/* 구르는 숫자(odometer) — 숫자마다 0~9 기둥 · 「20억 3천만」은 묶음 둘(억 · 천만) */
.구름 { display: inline-flex; align-items: baseline; }
.구름 .묶 { display: inline-flex; align-items: baseline; overflow: hidden; max-width: 6em; transition: max-width .4s var(--스프링), opacity .3s; }
.구름 .묶 + .묶 { margin-left: .22em; }
.기둥 { display: inline-block; height: 1em; overflow: hidden; vertical-align: baseline; line-height: 1; }
.기둥 .숫 { display: flex; flex-direction: column; transition: transform .6s var(--스프링); will-change: transform; }
.기둥 .숫 i { display: block; height: 1em; line-height: 1; font-style: normal; }
.구름 .단위 { font-size: var(--T1); font-weight: 700; letter-spacing: -.01em; margin-left: 2px; }
.구름 .소수점 { font-size: inherit; }

/* 결과 패널(「내 돈으로」) — Body 17 · Footnote 13 · Caption 12 */

/* PC — 질문 카드의 Large Title 34 · 폰은 28(한 줄에 들게) */

@media (prefers-reduced-motion: reduce) {
  
  .기둥 .숫, .구름 .묶 { transition: none !important; }
  
}
/* 휴대폰 · 납작한 창 — 구 동그라미를 한 단 작게(빈 땅이 좁아 겹치는 자리) */
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
}

/* ───────── D안 (2026-10-07 · 운영 어명 「D안으로 가자」 · 원장/기획/D안_애플검증_재설계.md §4~§8) ─────────
 * 카드 하나 · 길 하나 · 회색 하나 · 알약 하나 · 목록 하나. 글자는 iOS 단(LT 34 · T1 28 · T2 22 · HL 17/600 · B 17 · SH 15 · FN 13 · CP 12) + 큰수 44 — 한 화면 3단.
 * 움직임 — 질문 물러남 260ms · 숫자 구름 600ms · 답 묶음 들어옴 360ms(8px 아래서) · 면 물듦 250ms · 날기 450ms/.85 · 시트 400ms/.9 · 줄임이면 크로스페이드만 */
#패널 .머리 .길잡이 { font-size: var(--SH); font-weight: 500; color: var(--먹); min-height: 36px; padding: 0 12px; margin: -6px -12px -6px 0; background: rgb(var(--먹rgb) / .05); }
#패널 .머리 .길잡이 svg path { stroke: var(--회1); }
/* 10-07 감사A(품질기준표 Q1 · 패널 누를 것 44) — 보이는 알약 · 글은 그대로 두고 누름 상자만 44: 투명 테(배경 · 그늘은 padding-box 안) + 음수 여백(자리 그대로) */
.머리 a { display: flex; align-items: center; min-height: 44px; min-width: 44px; margin: -11px 0; }          /* 워드마크 22 → 누름 44 · 11-23 너비도 44(11-20 워드마크 「10」 이 37px 로 좁아짐 · 글자 모양은 그대로 · 왼쪽 맞춤) */
.머리 .길잡이, #패널 .머리 .길잡이 { border: 4px solid transparent; background-clip: padding-box; min-height: 44px; margin: -10px -16px -10px -4px; }   /* 알약 36 그대로 · 누름 44 */
.발밑 details.기준 summary { display: flex; align-items: center; min-height: 44px; }
.발밑 details.기준 summary { margin: -8px 0; }                                               /* 「국토교통부 실거래가 · 자료 기준 ›」 27 → 44 · 줄 자리 그대로 */
/* 질문 — Large Title 34 두 줄 · 답이 서면 Subheadline 15 회1 한 줄 설명글로 물러난다(같은 글 · 같은 자리 · ④ 위계) */
#입구 { margin-top: 20px; }
#입구 .물음 { margin: 0; font-size: var(--LT); font-weight: 700; letter-spacing: -.022em; line-height: 1.2; transition: font-size .26s var(--스프링), color .26s, letter-spacing .26s; }
#입구 .물음 .줄1 { display: block; }
body.입구-답 #입구 .물음 { font-size: var(--SH); font-weight: 500; color: var(--회1); line-height: 1.35; letter-spacing: 0; }
body.입구-답 #입구 .물음 .줄1 { display: inline; }
#입구 .칸판 { margin-top: 16px; gap: 8px; }
#입구 .칸판.더칸 { margin-top: 8px; }
#입구 .칸 { border-radius: 12px; background: rgb(var(--종이rgb) / .9); padding: 10px 14px 8px; min-height: 76px; }
#입구 .칸 span { font-size: var(--FN); }
#입구 .칸 input { font-size: var(--T1); line-height: 1.25; caret-color: var(--버건디); }
#입구 .칸 em { font-size: var(--CP); min-height: 16px; }
/* 자물쇠 한 줄 — 옛 속삭임(회2 · 12 · 가운데)을 회1 Caption 한 줄로(⑱ 뜻 있는 글은 옅게 쓰지 않는다) */
#입구 .기기줄 { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--CP); color: var(--회1); line-height: 1.4; }
#입구 .기기줄 svg { width: 12px; height: 12px; flex: none; stroke: var(--회1); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.입구-답 #입구 .기기줄, body.입구-답 #입구 .오늘목록 { display: none; }       /* 답이 서면 자물쇠 줄 · 오늘의 신고가 줄은 물러난다(한 화면 3단) · 자물쇠 글은 「계산 기준」 첫 줄에 그대로 */
/* 무리 목록(iOS inset grouped) — 모든 줄이 같은 꼴 · 왼쪽 16 들여 그은 선 · 높이 52 · 꺾쇠 하나 */
.목록 { margin-top: 16px; border-radius: 12px; background: rgb(var(--종이rgb) / .86); overflow: hidden; }
.줄머리 { min-height: 52px; gap: 10px; padding: 8px 12px 8px 16px; }
.줄머리:focus-visible { border-radius: 12px; }
a.줄머리 { color: var(--먹); text-decoration: none; }
.줄머리.줄가기 .꺾쇠 { stroke: var(--회3); }
.줄이름 { font-size: var(--B); line-height: 1.3; }
.줄이름 small { display: block; font-size: var(--FN); color: var(--회1); margin-top: 1px; }
.줄값 { font-size: var(--B); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.줄값 b { color: var(--먹); font-weight: 600; }
.줄값.닿 b { color: var(--버건디); }
.답목록 .줄값 { gap: 1px; }               /* 「1/5」 · 「572곳」 — 수와 단위가 한 덩이 */
.줄머리.머리줄 { min-height: 40px; cursor: default; }
.줄머리.머리줄 .줄이름 { font-size: var(--FN); color: var(--회1); }
.줄점 { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px var(--종이); }
.줄점.닿음 { background: var(--닿음면); box-shadow: 0 0 0 1.5px var(--버건디); }       /* 지도의 면 색 그대로(⑤ · ⑥) */
.줄점.조금 { background: var(--조금면); box-shadow: 0 0 0 1.5px var(--조금테); }
.줄점.멂 { background: var(--멂면); }
.줄점.없음 { background: transparent; box-shadow: 0 0 0 1.5px var(--선2); }
.오늘목록 { margin-top: 12px; }
/* 답 — 큰 숫자 하나(44) · 막는 것 한 문장(B 17) · 무리 목록 · 각주(CP 12) */
.답판 { margin-top: 18px; }
.큰답 { display: flex; align-items: baseline; gap: 6px; font-size: var(--큰수); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.큰답 .앞 { font-size: var(--HL); font-weight: 600; letter-spacing: 0; color: var(--회1); }
.큰답 .뒤 { font-size: var(--B); font-weight: 500; letter-spacing: 0; color: var(--회1); margin-left: 2px; }
.큰답.없음 { font-size: var(--제목); line-height: 1.3; letter-spacing: -.02em; }
.큰답 .구름 .단위 { font-size: var(--T1); }
.문장 { margin: 10px 0 0; font-size: var(--B); line-height: 1.5; letter-spacing: -.005em; }
.문장 b { font-weight: 600; }
/* 10-07 감사A(애플감사 순위 13) — 막는 것의 숫자 꼬리(「25억을 넘는 집은 대출이 2억까지예요」)는 「왜 그런지 ›」 접힘 안 — 첫 보임은 큰 숫자 하나 + 한 문장 */
.문장 .왜 { margin-top: 2px; }
.문장 .왜 summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: var(--FN); color: var(--회1); cursor: pointer; list-style: none; }
.문장 .왜 summary::-webkit-details-marker { display: none; }
.문장 .왜 summary span { display: inline-block; transition: transform .2s var(--떠오름); }
.문장 .왜[open] summary span { transform: rotate(90deg); }
.문장 .왜속 { display: block; margin-top: -4px; }
.문장 .옅은, .단지목록자리 .옅은 { color: var(--회1); }
.단지목록자리 .각 { font-size: var(--FN); color: var(--회1); margin: 8px 4px 0; }
.문장 .세무 { display: block; margin-top: 4px; font-size: var(--FN); color: var(--버건디); font-weight: 500; }
.답각 { margin-top: 12px; font-size: var(--CP); color: var(--회1); line-height: 1.5; }
.답각 .글단추 { color: var(--회1); text-decoration: underline; text-underline-offset: 2px; font-weight: 400; }
#입구 details.기준 { margin-top: 10px; }
#입구 .자세판 { margin: 8px 0 10px; }
.단지목록자리 { margin-top: 10px; }
.단지목록자리 .단지목록 { margin-top: 8px; }
.들어옴 { animation: 들어옴 .36s var(--스프링) both; }
@keyframes 들어옴 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 구르는 숫자(odometer) — 숫자마다 0~9 기둥 · 「20억 3천만」은 묶음 둘(억 · 천만) */
.구름 { display: inline-flex; align-items: baseline; }
.구름 .묶 { display: inline-flex; align-items: baseline; overflow: hidden; max-width: 6em; transition: max-width .4s var(--스프링), opacity .3s; }
.구름 .묶 + .묶 { margin-left: .22em; }
.기둥 { display: inline-block; height: 1em; overflow: hidden; vertical-align: baseline; line-height: 1; }
.기둥 .숫 { display: flex; flex-direction: column; transition: transform .6s var(--스프링); will-change: transform; }
.기둥 .숫 i { display: block; height: 1em; line-height: 1; font-style: normal; }
.구름 .단위 { font-size: var(--T1); font-weight: 700; letter-spacing: -.01em; margin-left: 2px; }
.구름 .소수점 { font-size: inherit; }
/* 동네 글 — 「‹ 내 조건으로」 알약 · 이름 T2 · 조건 한 줄(점 = 지도 면 색) · 큰 숫자 · 한 문장 · 줄 넷 */
.돌아가기 { all: unset; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: rgb(var(--먹rgb) / .05);
  font-size: var(--SH); font-weight: 500; color: var(--버건디); cursor: pointer; }
.돌아가기:hover, .돌아가기:focus-visible { background: rgb(var(--먹rgb) / .09); }
.돌아가기:focus-visible { outline-offset: 2px; }
.돌아가기 svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.돌아가기 { border: 4px solid transparent; background-clip: padding-box; min-height: 44px; margin-left: -4px; }   /* 10-07 감사A(Q1) — 알약 36 그대로 · 누름 44(투명 테 · 위 여백 4 당김) */
.조건줄 { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgb(var(--종이rgb) / .86); box-shadow: 0 0 0 1px var(--선) inset; font-size: var(--SH); line-height: 1.35; }
.조건줄 b { font-weight: 600; color: var(--버건디); }
.조건줄 small { color: var(--회1); font-size: var(--FN); }
.동네글 .누구 h2 { font-size: var(--제목); }
.동네글 .한문장 { font-size: var(--B); line-height: 1.5; margin-top: 14px; }
/* 10-08 왕 판정 — 대표단지 아래 옅은 한 줄(재건축 대표 · 신축 각주) · 주인공은 대표단지 하나 */
.동네글 .옅은줄 { margin: 6px 0 0; font-size: var(--각주); line-height: 1.5; color: var(--회1); }
.동네글 .옅은줄 + .옅은줄 { margin-top: 2px; }
/* 단지 카드 — 빈 흰 판 대신 내용만큼(패널의 다른 글은 잠깐 물러난다) · 닫기 44 · 값은 무리 목록 */
#패널:has(#단지판.열림) > :not(#단지판):not(.손잡이):not(.한줄):not(#출처) { display: none; }
#단지판.열림 { position: relative; inset: auto; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; overflow: visible; }
.단지카드 .내돈머리 h2 { font-size: var(--제목); }
.카드값 { margin: 12px 0 0; background: rgb(var(--종이rgb) / .86); border-radius: 12px; box-shadow: 0 0 0 1px var(--선) inset; padding: 0 16px; }
.카드값 dt { margin: 0; padding-top: 10px; font-size: var(--FN); }
.카드값 dd { padding-bottom: 10px; }
.카드값 dd + dt { border-top: 1px solid var(--선); }
.단지카드 .한줄단추 { border-radius: 12px; min-height: 52px; display: flex; align-items: center; font-size: var(--B); text-decoration: none; }
/* 두 동네 나란히 — 같은 무리 목록 꼴 · 조건 색은 지도에 그대로 남는다 */
.나란칸 { border-radius: 12px; background: rgb(var(--종이rgb) / .86); }
/* 지도 위 글 — 알약 한 꼴(이름표 · 지역표 · 구 묶음 「용산구 37곳」) · 경기 전체 배율에선 노선 뒤로 · 작은 역 숨김(②) */
.덧것.구묶음 { pointer-events: auto; cursor: pointer; border: 0; display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: rgb(var(--종이rgb) / .95); color: var(--먹); font-size: var(--SH); font-weight: 500; white-space: nowrap; box-shadow: 0 4px 14px rgba(40, 20, 30, .18); z-index: 3; line-height: 1.25; transition: opacity .2s ease-out; }
.덧것.구묶음 b { font-weight: 700; color: var(--버건디); font-variant-numeric: tabular-nums; }
.덧것.구묶음 b::after { content: '곳'; font-weight: 500; color: var(--회1); margin-left: 1px; }
.덧것.구묶음:hover, .덧것.구묶음:focus-visible { background: var(--종이); }
/* ~~경기전체만 작은 역 숨김 · 노선 .5~~ → 10-07 감사A(애플감사 순위 14 · D안 §4-1 ② 약속): 첫 화면 배율(경기 · 서울 전체)은 역 표지(작은 · 큰 · 삼태극)를 다 숨기고
   노선은 아주 옅게(.3) — 지도의 주인공은 세 지역 · 물든 면이다. 서울중간(.5)부터는 지금처럼(역 표지 · 노선 .5) · 확대 판은 원색 */
body.경기전체 #역점, body.서울전체 #역점 { display: none; }
body.경기전체 .노선, body.서울전체 .노선 { stroke-opacity: .3; }
body.서울중간 .노선 { stroke-opacity: .5; }
/* 휴대폰 시트 — 살짝 = 질문/숫자 · 반 = 목록 · 전체 */
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #패널 { padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); }
  #입구 { margin-top: 10px; }
  #입구 .물음 { font-size: var(--T1); line-height: 1.22; }
  #입구 .칸 { min-height: 72px; }
  #입구 .칸 input { font-size: 24px; }
  .덧것.이름표 { font-size: 14px; padding: 6px 12px; min-height: 34px; }
  .덧것.구묶음 { min-height: 32px; padding: 5px 12px; font-size: 14px; }
  body.서울전체 .역테.작, body.서울전체 .역속.작 { display: none; }
  body.내돈 .이름표:not(.닿음) .닿 { display: none; }       /* 「내 조건」 지도 — 닿는 동네만 「닿아요」 둘째 줄 · 나머지는 이름만(겹침을 줄인다 · 값은 누르면 패널에) */
  .돌아가기 { margin-top: 2px; }   /* 감사A — 투명 테 4 만큼 당겼다(보이는 자리 그대로) */
}
@media (prefers-reduced-motion: reduce) {
  .들어옴 { animation: none; }
  #입구 .물음 { transition: none; }
  .기둥 .숫, .구름 .묶 { transition: none !important; }
}

/* ───────── 착안(10-07 · D안 위에 E안 넷을 지도와 엮어서) — 단지 찾기 · 평형 칩 · 우리 집 핀 · 자 · 만약 · 내 숫자 알약 · 돌아왔을 때 · 공유 카드 · 계산 기준 문장 ───────── */
/* ① 단지 찾기 — 첫 칸 하나(넓게) · 후보 목록은 칸 바로 아래(설정 앱 무리 목록 꼴) · 고르면 칸 자리에 「우리 집」 줄 + 평형 칩 */
#입구 .찾기판 { margin-top: 16px; }
#입구 .찾기칸 { min-height: 76px; }
#입구 .찾기칸 input { font-size: var(--T1); }
#입구 .찾기칸 input::placeholder { font-size: var(--HL); font-weight: 500; }
.찾기목록 { list-style: none; margin: 8px 0 0; padding: 4px; border-radius: 12px; background: rgb(var(--종이rgb) / .96); box-shadow: 0 0 0 1px var(--선) inset, 0 8px 24px rgba(0, 0, 0, .10); max-height: 340px; overflow-y: auto; }
.찾기목록 [role="option"] { display: block; min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer; line-height: 1.35; }
.찾기목록 [role="option"][aria-selected="true"], .찾기목록 [role="option"]:hover { background: var(--버건디옅); }
.찾기목록 b { font-size: var(--B); font-weight: 600; }
.찾기목록 .딴이름 { margin-left: 6px; font-size: var(--FN); color: var(--회1); }
.찾기목록 span { display: block; font-size: var(--FN); color: var(--회1); }
.찾기없음 { padding: 10px 12px; font-size: var(--FN); color: var(--회1); line-height: 1.5; }
.찾기없음 .글단추 { display: inline-flex; align-items: center; min-height: 44px; }
.금액으로 { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: var(--SH); }
.우리집 { margin-top: 2px; padding: 12px 14px 10px; border-radius: 12px; background: rgb(var(--종이rgb) / .9); box-shadow: 0 0 0 1px var(--선) inset; }
.우리집머리 { display: flex; align-items: center; gap: 10px; }
.우리집머리 svg.집 { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--버건디); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.우리집이름 { all: unset; flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; line-height: 1.3; cursor: default; }
.우리집이름:focus-visible { outline-offset: 2px; border-radius: 6px; }
.우리집이름 b { display: block; font-size: var(--HL); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.우리집이름 small { display: block; font-size: var(--FN); color: var(--회1); }
.우리집머리 .글단추 { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--FN); flex: none; }
.평형칩들 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.평형칩들 button { all: unset; box-sizing: border-box; display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; min-width: 44px; padding: 4px 12px; border-radius: 12px; background: rgb(var(--먹rgb) / .05); font-size: var(--SH); font-weight: 600; line-height: 1.2; cursor: pointer; }
.평형칩들 button small { font-size: var(--CP); font-weight: 400; color: var(--회1); }
.평형칩들 button[aria-checked="true"] { background: var(--버건디바탕); color: var(--버건디위); }
.평형칩들 button[aria-checked="true"] small { color: rgb(var(--버건디위rgb) / .86); }
.평형칩들 button:focus-visible { outline-offset: 2px; }
/* 10-07 적은거래 — 12개월 1~2건 칩은 점선 테로 옅게(지도의 「어림」 점선과 같은 말) · 글은 늘리지 않는다 */
.평형칩들 button.적음 { background: transparent; border: 1px dashed rgb(var(--먹rgb) / .3); padding: 3px 11px; }
.평형칩들 button.적음[aria-checked="true"] { background: var(--버건디바탕); border-color: rgb(var(--버건디위rgb) / .55); }
/* ~~.폰글(폰만 「· 약 34평」)~~ → 10-07 감사A(애플감사 순위 13): 답이 서면 PC · 폰 다 우리 집 줄이 「약 34평 ⌄」 한 줄로 접힌다 — 곁글(지역 · 준공 · 세대) · 칩 · 각주 ·
   3건 넘는 칩의 출처 줄은 그 줄을 누르면(.펼) 선다. 큰 숫자 하나 + 한 문장 + 목록만 첫 보임에 남긴다(숫자 토막 상한 — 시험 [애플잣대]) */
.고른평 { display: none; }
body.입구-답 .우리집:not(.펼) .평형칩들, body.입구-답 .우리집:not(.펼) .평형각, body.입구-답 .우리집:not(.펼) .곁 { display: none; }
body.입구-답 .우리집:not(.펼) .고른평 { display: inline-flex; align-items: center; gap: 6px; }
body.입구-답 .우리집:not(.펼) .고른평::after { content: ''; width: 6px; height: 6px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
body.입구-답 .우리집이름 { cursor: pointer; }
body.입구-답 #입구:not(:has(.우리집.펼)) .시세출처.접힘 { display: none; }
.평형각 { margin: 6px 0 0; font-size: var(--CP); color: var(--회1); }
#입구 .값칸판 { margin-top: 10px; }
.시세출처 { margin: 6px 2px 0; font-size: var(--CP); color: var(--회1); line-height: 1.45; }
body.입구-답 #입구 .찾기판 .금액으로 { display: none; }
/* 답이 선 뒤 단지를 안 골랐으면(금액으로 넣은 사람) — 찾기 칸은 「단지로 찾아 채우기 ›」 한 줄로 접힌다(누르면 다시 칸) */
.단지로 { display: none; align-items: center; gap: 6px; min-height: 44px; font-size: var(--SH); }
.단지로 svg.집 { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.입구-답 #입구 .찾기판:not(.찾는중):has(> .우리집[hidden]) .찾기칸 { display: none; }
body.입구-답 #입구 .찾기판:not(.찾는중):has(> .우리집[hidden]) .단지로 { display: inline-flex; }
body.입구-답 #입구 .찾기판:not(.찾는중):has(> .우리집[hidden]) { margin-top: 8px; }

/* 우리 집 핀 — 집 글리프 · 버건디 테 · 늘 선다(겹침정하기의 「늘 서는 것」) · 좌표가 없으면 구 가운데에 점선 테 */
.덧것.우리집핀 { z-index: 4; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.우리집핀 .핀몸 { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--종이); box-shadow: 0 0 0 2.5px var(--버건디), 0 3px 10px rgba(0, 0, 0, .22); order: 2; }
.우리집핀 .핀몸 svg { width: 17px; height: 17px; transform: rotate(45deg); fill: none; stroke: var(--버건디); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.우리집핀 .핀이름 { order: 1; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px; background: var(--버건디바탕); color: var(--버건디위); font-size: var(--CP); font-weight: 600; white-space: nowrap; }
.우리집핀.대략 .핀몸 { box-shadow: 0 0 0 2px var(--종이), 0 0 0 4px var(--버건디); border: 1.5px dashed var(--버건디); }
/* 돌아왔을 때 「새」 표지 — 작은 버건디 알약 · 반짝임 없음 */
.덧것.새표지 { z-index: 3; padding: 1px 6px; border-radius: 999px; background: var(--종이); color: var(--버건디); box-shadow: 0 0 0 1.5px var(--버건디); font-size: 11px; font-weight: 700; pointer-events: none; }

/* ② 자 — 큰 숫자 바로 아래 한 줄(높이 136) · 글은 먹 · 회1 · 버건디만 · 회2 는 선 · 테만 */
.자판 { position: relative; margin: 12px -4px 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.자판 svg.자 { display: block; overflow: visible; }
.자축 { stroke: var(--회2); stroke-opacity: .45; stroke-width: 1.5; }
.자띠 { fill: var(--버건디); fill-opacity: .22; transition: x .5s var(--스프링), width .5s var(--스프링); }
.자실 { stroke: var(--회1); stroke-width: 1.5; stroke-dasharray: 2 2; }
.자집선 { stroke: var(--회2); stroke-opacity: .6; stroke-width: 1; stroke-dasharray: 2 3; }
.자끈 { stroke: var(--회2); stroke-opacity: .35; stroke-width: 1; }
.자점 { cursor: pointer; }
.자점 .자맞 { fill: transparent; }
.자점 .자알 { stroke-width: 1.8; transition: r .2s var(--스프링), fill .25s, stroke .25s; }
.자점.닿음 .자알 { fill: var(--버건디); stroke: var(--종이); }
.자점.조금 .자알 { fill: var(--종이); stroke: var(--버건디); stroke-dasharray: 2.5 2; }
.자점.멂 .자알 { fill: var(--종이); stroke: var(--회2); }
.자점.커짐 .자알 { r: 9px; }
.자이름 { font-size: 12px; fill: var(--회1); cursor: pointer; paint-order: stroke; stroke: rgb(var(--종이rgb) / .92); stroke-width: 3px; stroke-linejoin: round; }
.자이름.닿음 { fill: var(--먹); font-weight: 600; }
.자이름.커짐 { fill: var(--버건디); font-weight: 700; }
.자집 { font-size: 12px; fill: var(--회1); paint-order: stroke; stroke: rgb(var(--종이rgb) / .92); stroke-width: 3px; }
.자값 { font-size: 12px; font-weight: 700; fill: var(--버건디); paint-order: stroke; stroke: rgb(var(--종이rgb) / .92); stroke-width: 3px; }
.자손 { cursor: ew-resize; }
.자손:focus-visible { outline: none !important; }   /* SVG 안 손잡이 — 테는 아래 .자손맞(버건디 2 · 토큰과 같은 굵기 · 색)이 그린다 */
.자손맞 { fill: transparent; }
.자선 { stroke: var(--버건디); stroke-width: 2.5; stroke-linecap: round; }
.자손알 { fill: var(--버건디); stroke: var(--종이); stroke-width: 2; }
.자손:focus-visible .자손맞 { fill: rgba(138, 28, 60, .08); stroke: var(--버건디); stroke-width: 2; rx: 8px; }
.자판.끄는중 .자띠 { transition: none; }
.만약줄 { margin: 4px 0 0; font-size: var(--FN); color: var(--먹); line-height: 1.5; }
.만약줄 b { color: var(--버건디); }
.만약줄 .글단추 { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; }
.뜸.떠오름 .그늘 { opacity: 1 !important; }
.뜸.떠오름 .테 { stroke-width: 3.4 !important; stroke-opacity: 1 !important; }
.이름표.떠오름 { box-shadow: 0 0 0 2.5px var(--버건디), 0 4px 14px rgba(0, 0, 0, .18); }

/* 공유 단추 — 답판 오른쪽 위 글단추 하나 */
.답판 { position: relative; }
.공유단추 { all: unset; position: absolute; right: -8px; top: -6px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 0 8px; justify-content: center; color: var(--버건디); font-size: var(--SH); font-weight: 500; cursor: pointer; border-radius: 12px; z-index: 1; }
.공유단추 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.공유단추:focus-visible { outline-offset: -2px; }
.바뀐 { margin: 0 0 12px; }
.바뀐 .목록, .바뀐 > .줄머리 { margin: 0; }
.바뀐줄 { border-radius: 12px; background: var(--버건디옅); }
.바뀐줄 .줄이름 { font-size: var(--SH); font-weight: 600; }
.바뀐줄 small b { color: var(--버건디); }
.바뀐목록 { margin-top: 6px; padding: 4px 4px 8px; border-radius: 12px; background: rgb(var(--종이rgb) / .9); box-shadow: 0 0 0 1px var(--선) inset; }
.바뀐목록 .단지줄 { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; min-height: 44px; }
.바뀐목록 .단지줄 b { grid-column: 1; }
.바뀐목록 .단지줄 span:not(.새값) { grid-column: 1; }
.바뀐목록 .새값 { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: var(--SH); font-weight: 700; color: var(--먹); }
.바뀐목록 .새값 em { display: block; font-style: normal; font-size: var(--CP); font-weight: 600; color: var(--버건디); }
.바뀐목록 .각 { margin: 6px 10px 0; font-size: var(--CP); color: var(--회1); line-height: 1.5; }
.바뀐없음 { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgb(var(--먹rgb) / .04); font-size: var(--FN); color: var(--회1); line-height: 1.5; }
.바뀐없음 b { color: var(--먹); font-weight: 600; }
.답판:has(.바뀐:not([hidden])) .공유단추 { position: static; float: right; margin: -4px -8px 0 0; }

/* ③ 「내 숫자」 알약 — PC 오른쪽 위(확대 단추 왼쪽) · 폰은 윗막대 오른쪽(길잡이 자리) */
#내숫자 { all: unset; position: fixed; z-index: 6; right: 78px; top: 22px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 999px; font-size: var(--SH); font-weight: 500; color: var(--먹); cursor: pointer; box-sizing: border-box;
  background: var(--유리); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); box-shadow: 0 0 0 1px var(--유리-테) inset, 0 6px 24px rgba(0, 0, 0, .12); }
#내숫자[hidden] { display: none; }
#내숫자 b { color: var(--버건디); font-weight: 700; }
#내숫자 svg { width: 14px; height: 14px; }
#내숫자 svg path { stroke: var(--회1); }
#내숫자:focus-visible { outline-offset: 2px; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #내숫자 { top: calc(max(12px, env(safe-area-inset-top)) + 3px); right: 15px; min-height: 44px; border: 2px solid transparent; background-clip: padding-box; background: rgb(var(--먹rgb) / .05) padding-box; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }   /* ~~40 · +5 · 17~~ 감사A — 알약 40 그대로 · 누름 44 */
  body.숫자알약 #윗막대 [data-열기="고르기"] { visibility: hidden; }
}

/* ⑤ 공유 카드 — 가운데 대화상자 · 그림은 canvas(기기에서 그린다) */
#공유판 { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: var(--가림막); }
#공유판[hidden] { display: none; }
#공유판 .공유몸 { width: min(560px, 100%); max-height: calc(100% - 32px); overflow-y: auto; box-sizing: border-box; padding: 16px 20px 20px; border-radius: 20px; background: rgb(var(--종이rgb) / .97); }
.공유머리 { display: flex; align-items: center; justify-content: space-between; }
.공유머리 h2 { margin: 0; font-size: var(--HL); font-weight: 700; }
#공유판 .닫기 { all: unset; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; margin-right: -10px; }
#공유판 .닫기 svg { width: 18px; height: 18px; }
#공유판 canvas { display: block; width: 100%; height: auto; margin-top: 8px; border-radius: 12px; box-shadow: 0 0 0 1px var(--선); }
.토글줄 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--선); cursor: pointer; }
.토글줄 span { font-size: var(--B); line-height: 1.3; }
.토글줄 small { display: block; font-size: var(--CP); color: var(--회1); }
.토글줄 input { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: rgb(var(--먹rgb) / .14); position: relative; cursor: pointer; transition: background .2s; }
.토글줄 input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--종이); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--스프링); }
.토글줄 input:checked { background: var(--버건디바탕); }
.토글줄 input:checked::after { transform: translateX(20px); }
.토글줄 input:focus-visible { outline-offset: 2px; }
#공유판 .각 { margin: 10px 0 0; font-size: var(--CP); color: var(--회1); }
.공유하기단추 { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 12px; border-radius: 14px; background: var(--버건디바탕); color: var(--버건디위); font-size: var(--HL); font-weight: 600; cursor: pointer; }
.공유하기단추:focus-visible { outline-offset: 3px; }

/* ⑥ 계산 기준 = 문장 한 단락 — 굵은 값이 곧 고치는 자리(눌림 44 · 줄 높이 44) */
#입구 details.기준 summary { display: inline-flex; align-items: center; min-height: 44px; }
.기준문장 { margin: 4px 0 6px !important; font-size: var(--B); color: var(--먹); line-height: 44px; }
.기준문장 b { font-weight: 700; }
.값단추 { all: unset; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; box-sizing: border-box; padding: 0 3px; vertical-align: top; color: var(--버건디); font-weight: 700; text-decoration: underline dotted; text-underline-offset: 4px; cursor: pointer; border-radius: 8px; }
.값단추:focus-visible { outline-offset: -4px; }
.값칸 { all: unset; display: inline-block; box-sizing: border-box; width: 7em; min-height: 40px; padding: 0 8px; vertical-align: middle; border-radius: 8px; background: var(--종이); box-shadow: 0 0 0 2px var(--버건디) inset; font-weight: 700; color: var(--먹); caret-color: var(--버건디); }
.기준도움 { color: var(--회1); }
.답각 { line-height: 1.6; }
.답각 .글단추 { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  /* 폰 답 — ~~평형 칩은 접는다(폰만)~~ 10-07 감사A: 접기는 PC · 폰 같다(위 .고른평) · 살짝 단이 지도를 덜 덮게 */
  body.입구-답 .우리집 { padding-bottom: 4px; }
  body.입구-답 #입구 .값칸판 .칸 { min-height: 60px; padding: 6px 12px 4px; }
  body.입구-답 #입구 .값칸판 .칸 input { font-size: 20px; }
  body.입구-답 #입구 .값칸판 .칸 em:empty { display: none; }
  #입구 .찾기칸 { min-height: 72px; }
  #입구 .찾기칸 input { font-size: 24px; }
  .찾기목록 { max-height: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  .자띠, .자점 .자알, .토글줄 input, .토글줄 input::after { transition: none; }
}

/* ── 분당 정비 구역(10-07 · 왕 설계 · 정비.py) — 지도 테두리 · 구역 이름 · 범례 한 줄 · 배지(단지 카드 · 동네 줄 · 우리 집 줄) ──
 * 선도지구 1차 = 진한 테두리 · 2차 = 중간 · 주민 추진 = 점선 · 리모델링은 지도에 안 그리고 배지만(점). 단추 · 모드 없음. 확대 판에서만 선다. */
#정비층 { opacity: 0; transition: opacity .2s ease-out; }
body.확대 #정비층 { opacity: 1; }
:root { --정비1: #6E1230; --정비2: #17708A; --정비2글: #135E74; --정비추: #4A4550; }
/* ~~검은 선만(1차 진하게 · 2차 중간 · 추진 점선)~~ — 10-07 왕 「고른 동네 버건디 테 · 분홍 면 안에서 단지 선과 섞여 안 보인다」 → 옅은 면 채움 + 테두리 */
.구역테 { stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.구역테.구역-1 { fill: url(#구역빗금); stroke: var(--정비1); stroke-width: 2; stroke-opacity: .95; }
#구역빗금 .빗바탕 { fill: var(--정비1); fill-opacity: .06; }   /* 10-07 — 건물 모양(가지 「건물」)을 가리지 않게 옅게 */
#구역빗금 .빗금 { fill: var(--정비1); fill-opacity: .30; }
.구역테.구역-2 { fill: var(--정비2); fill-opacity: .13; stroke: var(--정비2); stroke-width: 1.8; stroke-opacity: .9; }
.구역테.구역-추 { fill: none; stroke: var(--정비추); stroke-width: 1.5; stroke-opacity: .7; stroke-dasharray: 5 4; }
/* 10-07 송파 — 건(재건축 구역 지정 이상) = 1차 무늬 · 촉(재정비촉진) = 2차 색(테두리는 지금 안 선다 — 묶을 아파트가 없다) · 소(소규모 정비) = 가는 실선 */
.구역테.구역-건 { fill: url(#구역빗금); stroke: var(--정비1); stroke-width: 2; stroke-opacity: .95; }
.구역테.구역-촉 { fill: var(--정비2); fill-opacity: .13; stroke: var(--정비2); stroke-width: 1.8; stroke-opacity: .9; }
.구역테.구역-소 { fill: none; stroke: var(--정비추); stroke-width: 1.2; stroke-opacity: .85; }
.덧것.구역이름 { z-index: 1; pointer-events: none; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgb(var(--종이rgb) / .84);
  font-size: var(--CP); font-weight: 500; color: var(--먹); letter-spacing: -.01em; line-height: 1.4; box-shadow: 0 1px 4px rgba(40, 20, 30, .08); transition: opacity .2s ease-out; }
.덧것.구역이름.구역-1 { color: var(--정비1); }
.덧것.구역이름.구역-2 { color: var(--정비2글); }
.덧것.구역이름.구역-추 { color: var(--회1); }
.덧것.구역이름.구역-건 { color: var(--정비1); }
.덧것.구역이름.구역-촉 { color: var(--정비2글); }
.덧것.구역이름.구역-소 { color: var(--회1); }
#정비범례 .범례-송파 { display: none; }
body.정비송파 #정비범례 .범례-송파 { display: contents; }
body.정비송파 #정비범례 .범례-분당 { display: none; }
#정비범례 .범례-안양 { display: none; }                    /* 10-08 안양 — 같은 표지를 제 뜻으로(1 선도지구 · 촉 정비구역 · 추 지정 전 · 소 소규모) */
body.정비안양 #정비범례 .범례-안양 { display: contents; }
body.정비안양 #정비범례 .범례-분당 { display: none; }
#정비범례 .범례-분당 { display: contents; }
#정비범례 { display: none; position: fixed; right: 24px; bottom: 30px; margin: 0; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: var(--CP); color: var(--회1); white-space: nowrap; pointer-events: none; z-index: 1; }
body.정비보임 #정비범례 { display: flex; }
#정비범례 i { display: inline-block; flex: none; margin-left: 6px; }
#정비범례 i:first-child { margin-left: 0; }
/* 색 칩 — 지도 면과 같은 채움 · 테(범례 · 배지 · 우리 집 줄이 같이 쓴다) */
#정비범례 i, details.정비 summary::before, .우리집정비::before { width: 16px; height: 11px; border-radius: 3px; box-sizing: border-box; }
#정비범례 i.구역-1, details.정비.정비-1 summary::before, .우리집정비.구역-1::before,
#정비범례 i.구역-건, details.정비.정비-건 summary::before, .우리집정비.구역-건::before {
  border: 1.5px solid var(--정비1); background: repeating-linear-gradient(45deg, rgba(110, 18, 48, .45) 0 1.5px, rgba(110, 18, 48, .10) 1.5px 4px); }
#정비범례 i.구역-2, details.정비.정비-2 summary::before, .우리집정비.구역-2::before,
#정비범례 i.구역-촉, details.정비.정비-촉 summary::before, .우리집정비.구역-촉::before { border: 1.5px solid var(--정비2); background: rgba(23, 112, 138, .22); }
#정비범례 i.구역-추, details.정비.정비-추 summary::before, .우리집정비.구역-추::before { border: 1.5px dashed rgb(var(--회rgb) / .8); background: none; }
#정비범례 i.구역-소, details.정비.정비-소 summary::before, .우리집정비.구역-소::before { border: 1.2px solid rgb(var(--회rgb) / .8); background: none; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #정비범례 { right: auto; left: 12px; bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 58px); }
  .정비범례끝 { display: none; }
}
/* 배지 — 한 줄 · 누르면 펼침(<details>) · 앞의 짧은 선이 지도 테두리와 같은 꼴 */
details.정비 { margin: 10px 0 2px; border-radius: 12px; background: rgb(var(--먹rgb) / .045); }
details.정비 summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; font-size: var(--CP); font-weight: 500; color: var(--먹); line-height: 1.35; letter-spacing: -.01em; }
details.정비 summary::-webkit-details-marker { display: none; }
details.정비 summary::before, .우리집정비::before { content: ''; flex: none; }
details.정비.정비-리 summary::before, .우리집정비.구역-리::before { width: 7px; height: 7px; margin: 0 4px 0 5px; border: 0; border-radius: 50%; background: var(--회1); }
details.정비 summary::after { content: '›'; margin-left: auto; color: var(--회1); transition: transform .2s var(--떠오름); }
details.정비[open] summary::after { transform: rotate(90deg); }
details.정비 summary:focus-visible { outline-offset: -2px; border-radius: 12px; }
.정비줄 { min-width: 0; }
.정비몸 { padding: 0 12px 8px; font-size: var(--FN); color: var(--회1); line-height: 1.55; }
.정비몸 p { margin: 4px 0 0; }
.정비몸 b { color: var(--먹); font-weight: 600; margin-right: 4px; }
.정비몸 a { color: var(--버건디); }
.정비몸 .원문 a { display: inline-flex; align-items: center; min-height: 44px; }
.누구 p.정비동네 { color: var(--먹); }
.우리집정비 { display: flex; align-items: center; gap: 8px; margin: 6px 2px 0; font-size: var(--CP); color: var(--먹); line-height: 1.45; }
/* 10-07 운영 — 「이 단지는 이들과 한 몸」 · 구역 면은 누르면 구역 카드 */
.구역테 { pointer-events: all; cursor: pointer; transition: opacity .2s ease-out, stroke-width .2s ease-out; }
body:not(.확대) .구역테 { pointer-events: none; }
body.구역강조 #정비층 .구역테:not(.강조) { opacity: .28; }
#정비층 .구역테.강조 { stroke-width: 3; }
body.구역강조 .덧것.점:not(.한몸):not(.고름):not(.숨), body.구역강조 .덧것.전체점:not(.한몸):not(.고름):not(.숨) { opacity: .3; }
.덧것.점.한몸, .덧것.전체점.한몸 { z-index: 3; box-shadow: 0 0 0 3px rgb(var(--종이rgb) / .95), 0 0 0 5px rgba(110, 18, 48, .55), 0 3px 10px rgba(40, 20, 30, .3); }
.정비통합 { display: block; margin-top: 2px; font-size: var(--CP); font-weight: 600; color: var(--정비1); }
.정비-2 .정비통합, .정비-촉 .정비통합 { color: var(--정비2글); }
.정비-추 .정비통합, .정비-소 .정비통합 { color: var(--회1); }
.구역카드 .우리집정비 { margin: 10px 2px 0; font-size: var(--FN); }
.구역몸 { padding: 4px 2px 0; }

/* ───────── 건물 윤곽(10-07) — 가장 확대한 배율(body.건물켬 · 자료.건물문턱)에서만. 애플 지도 꼴 — 그 밖 건물은 땅과 거의 같은 톤(반투명 · 고른 동네 분홍 위에서도 같은 무게) ·
 * 우리 단지(피드 단지 · 분당 정비 구역) 건물은 한 단계 진하게 · 고른 단지(카드 · 우리 집)는 버건디 옅게. 선은 화면 기준 얇게(non-scaling) ───────── */
#건물층 { display: none; }
body.건물켬 #건물층 { display: inline; }
#건물층 path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#건물층 .건밖 path { fill: var(--건밖); stroke: var(--건밖테); stroke-width: .5; }
#건물층 .건우 path, #건물층 .건단 path { fill: var(--건단); stroke: var(--건단테); stroke-width: .8; }
/* ~~고른 단지 옅은 버건디 하나~~ — 10-07 왕 「1차 빗금 위에서 안 보인다 → 다투지 말고 고른 것이 앞으로 · 나머지가 물러나게」:
 * 고른 단지 = 꽉 찬 버건디 + 얇은 진한 테 > 한몸(같은 구역 다른 단지 · 구역 연립) = 옅은 버건디 > 고른 구역 채움(물러남) > 그 밖 건물 */
#건물층 .건단 path, #건물층 .건우 path { transition: fill .25s ease-out, stroke .25s ease-out; }
#건물층 .건단 path.한몸, #건물층 .건우 path.한몸 { fill: rgba(138, 28, 60, .30); stroke: rgba(138, 28, 60, .55); stroke-width: .8; }
#건물층 .건단 path.고름 { fill: rgba(138, 28, 60, .92); stroke: var(--건고름테); stroke-width: 1; }
/* 고른 단지가 든 정비 구역 — 채움(1차 빗금 · 2차 청록)만 30% 안팎으로 물러난다 · 테두리 선은 그대로 */
#정비층 .구역테 { transition: opacity .25s ease-out, stroke-width .25s ease-out, fill-opacity .25s ease-out; }
#정비층 .구역테.구역-1.고른구역 { fill-opacity: .3; }
#정비층 .구역테.구역-건.고른구역 { fill-opacity: .3; }
#정비층 .구역테.구역-2.고른구역 { fill-opacity: .04; }
#정비층 .구역테.구역-촉.고른구역 { fill-opacity: .04; }
@media (prefers-reduced-motion: reduce) {
  #정비층 .구역테, #건물층 .건단 path, #건물층 .건우 path { transition: none; }
}

/* ── 첫 그림 = 최종 화면(10-07 감사B · 애플감사 순위 4 · 품질기준표 Q11 · Q12) ──
 * 굽는 HTML 의 머리 글(지도장.첫그림머리글)이 body 꼴을 정하고, 꼬리 글이 지도 크기 · 틀 · 시트 자리를 놓는다. 그 사이에 그림이 한 번 서도 같은 꼴이게 —
 * 지도 그림은 자리가 잡힐 때까지 감추고(바탕 땅 색만) · 휴대폰 시트는 단 자리에 미리 선다(map.js 시트높이 와 같은 셈 · 반 = 48% · 살짝 = 손잡이 44 + 한 줄 52 + 20 + 안전 여백) */
body.첫그림 svg#지도 { visibility: hidden; }
/* 돌아온 사람 — 카드는 처음부터 답 꼴(질문 15)로 서고 질문 밑은 답이 다 설 때까지 감춘다(자리는 잡힌 채 · map.js 첫답풀기) */
body.첫답 #입구 .입구질문 > :not(.물음):not(.막힘자리) { visibility: hidden !important; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  body.첫반 #패널 { transform: translate3d(0, calc(100% - 48dvh), 0); }
  body.첫살짝 #패널 { transform: translate3d(0, calc(100% - 116px - env(safe-area-inset-bottom)), 0); }
  body.첫살짝 #패널 .한줄 { opacity: 1; visibility: visible; }
  body.첫그림 #출처 { visibility: hidden; }
}

/* ── 오류 상태(10-07 감사B · 애플감사 순위 5 · 품질기준표 Q23) — 한 문장 + 「다시 시도」 하나 · 자리 넷(찾기 목록 · 답 자리 · 단지 카드 · 지도 위 띠) ── */
.막힘 { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--막힘바탕); list-style: none; }
.막힘 .막힘글 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--SH); line-height: 1.4; color: var(--먹); }
.막힘 .막힘다시 { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--버건디바탕); color: var(--버건디위); font-size: var(--SH); font-weight: 600; cursor: pointer; }
.막힘 .막힘다시:active { opacity: .8; }
.찾기목록 > li.막힘 { margin: 4px 0; }
.막힘자리[data-답막힘] { margin-top: 12px; }
.막힘카드 .막힘 { margin-top: 8px; }
#막힘띠 { position: fixed; z-index: 4; top: 24px; left: calc((100% + 436px) / 2); transform: translateX(-50%); width: max-content; max-width: min(460px, calc(100% - 460px)); padding: 0; border-radius: 22px; }
#막힘띠 .막힘 { background: transparent; padding: 6px 6px 6px 18px; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  #막힘띠 { top: calc(64px + env(safe-area-inset-top)); left: 50%; max-width: calc(100% - 32px); }
}

/* ── 다크 모드(10-07 감사B · 애플감사 16위 아래 · 품질기준표 Q16) — 토큰만 갈아 끼운다 ──
 * 바탕(땅 · 물 · 녹지 · 길) · 유리 패널 · 카드 · 알약 · 칸 · 노선 표지 · 건물 · 정비 구역 채움 · 동네 면. 버건디는 다크용 밝기(글 · 테 #EE8AA6 · 꽉 찬 단추 #A3294C + 흰 글) ·
 * 글 대비 4.5(큰 글 3) — `도구/첫화면지도/감사B검사.mjs` ④ 가 잰다. 그림(랜드마크 · 캐릭터 · AI 그림)은 그대로 · 공유 카드 · og 그림은 밝은 판 그대로(그림 파일이다) */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --버건디: #EE8AA6; --버건디바탕: #A3294C; --버건디위rgb: 255 255 255; --버건디위: #fff; --버건디옅: #43242E; --고름면2: #4C2A35;
    --먹: #EDEBEF; --먹rgb: 237 235 239; --회1: #B7B1BC; --회2: #A9A3AE; --회3: #8E8892; --회rgb: 200 195 205; --옅회: #3A393D; --선2: #4A474D;
    --선: rgba(255, 255, 255, .12); --유리: rgba(30, 30, 34, .86); --유리-테: rgba(255, 255, 255, .10);
    --종이rgb: 44 44 48; --종이: #2C2C30; --한줄rgb: 36 36 40; --막힘바탕: rgb(var(--먹rgb) / .07); --가림막: rgba(0, 0, 0, .55);
    --땅: #23241F; --물: #1C2D33; --녹: #263124; --철: #8C877D; --길: #3C3E38; --역속: #2C2C30; --물이름: #9DB7BE; --지명: #CBC5CF; --멂점: #5A5A52; --바램땅: #191A17;
    --기호바탕: #3A393D; --기호건: #D6D1DA; --기호물: #9DB7BE; --기호녹: #A9C29C; --기호그늘: 0 0 0 .5px rgb(255 255 255 / .10), 0 1px 3px rgb(0 0 0 / .5);
    --고름면: #5B2737; --고름테: #EE8AA6; --닿음면: #6A2A40; --조금면: #352A2E; --조금테: #D98AA2; --멂면: #2F302B;
    --지역면: #34332D; --심: rgb(255 255 255 / .06); --덩어리: transparent; --덩어리테: rgb(238 138 166 / .8); --경계: #8E877E;
    --음그늘: #000; --음빛: #3C4A36; --띄그늘: #000; --태그늘: #000; --태테: #2C2C30;
    --건밖: rgba(255, 255, 255, .045); --건밖테: rgba(255, 255, 255, .08); --건단: rgba(255, 255, 255, .11); --건단테: rgba(255, 255, 255, .2); --건고름테: #F5B3C6;
    --정비1: #F08DA8; --정비2: #5BB8D2; --정비2글: #7CC8DD; --정비추: #B7B1BC;
  }
  .면[data-동="동부이촌동"] { fill: #2E2C36; } .면[data-동="서부이촌동"] { fill: #352E28; } .면[data-동="서용산"] { fill: #33312A; }
  .면[data-동="신용산"] { fill: #2C3328; } .면[data-동="한남동"] { fill: #332C33; } .면[data-동="원도심"] { fill: #2F3229; } .면[data-동="지정타"] { fill: #342D29; }
  .면[data-동="동판교"] { fill: #283037; } .면[data-동="서판교"] { fill: #2E3229; } .면[data-동="이매·야탑"] { fill: #36302A; } .면[data-동="서현·수내"] { fill: #332D33; }
  .면[data-동="정자"] { fill: #2A322C; } .면[data-동="미금"] { fill: #36302B; }
  .면 { fill: #302F2A; }
  .면[data-동="잠실"] { fill: #283037; } .면[data-동="신천·풍납"] { fill: #36302A; } .면[data-동="방이·석촌"] { fill: #2E3229; } .면[data-동="가락·오금"] { fill: #332D33; }
  .면[data-동="문정·장지"] { fill: #2A322C; } .면[data-동="위례"] { fill: #36302B; } .면[data-동="거여·마천"] { fill: #2E2C36; }
  .면[data-동="압구정·청담"] { fill: #332D33; } .면[data-동="삼성"] { fill: #36302A; } .면[data-동="역삼·논현"] { fill: #2A322C; } .면[data-동="대치"] { fill: #2E2C36; }
  .면[data-동="도곡"] { fill: #36302B; } .면[data-동="개포·일원"] { fill: #283037; } .면[data-동="수서"] { fill: #2E3229; } .면[data-동="세곡·자곡"] { fill: #36302A; }
  .면[data-동="석수·박달"] { fill: #2E3229; } .면[data-동="안양역·명학"] { fill: #283037; } .면[data-동="비산"] { fill: #36302A; } .면[data-동="범계"] { fill: #332D33; }
  .면[data-동="평촌"] { fill: #2A322C; } .면[data-동="인덕원"] { fill: #2E2C36; } .면[data-동="호계"] { fill: #36302B; }
  .면[data-동="반포"] { fill: #283037; } .면[data-동="잠원"] { fill: #36302A; } .면[data-동="서초"] { fill: #2E2C36; } .면[data-동="방배"] { fill: #2E3229; }
  .면[data-동="양재·우면"] { fill: #332D33; } .면[data-동="내곡"] { fill: #36302B; }
  .면[data-동="성수"] { fill: #2E3229; } .면[data-동="행당·응봉"] { fill: #283037; } .면[data-동="왕십리"] { fill: #36302A; } .면[data-동="금호"] { fill: #2E2C36; }
  .면[data-동="옥수"] { fill: #36302B; } .면[data-동="마장·용답"] { fill: #332D33; }
  image.바램.밝 { display: none; } image.바램.어둠 { display: inline; }
}
/* 10-10 입주 예정 점 — 빈 고리(매매 점과 다른 꼴) + 작은 글 · 누름 자리 44 */
.덧것.입주점 a { display: flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; margin: -15px 0 0 -15px; padding: 0 0 0 15px; color: var(--먹); text-decoration: none; font-size: var(--각주); white-space: nowrap; }
.덧것.입주점 i { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2.5px dashed var(--버건디); background: var(--종이); box-sizing: border-box; }
.덧것.입주점 span { background: rgb(var(--종이rgb) / .9); border-radius: 4px; padding: 1px 4px; }
.덧것.입주점 a:focus-visible { outline: var(--초점테); outline-offset: var(--초점틈); border-radius: 6px; }


/* ───────── 10-10 첫 화면 A 「질문 하나」 — 설명은 첫화면.py 머리 · 원장/기획/첫화면_애플시안_v2.md ───────── */
:root {
  --빈땅: #DEDED3;
  --A옅음: #F1DCE2;
  --A사선: #BDB8AE; --A사선바탕: #E3E3DB;
  --A막: rgba(215, 216, 204, 0); --A막진: rgba(215, 216, 204, .94);
  --A그늘: 0 1px 0 rgba(29, 27, 32, .04), 0 8px 24px rgba(29, 27, 32, .14);
}
@media (prefers-color-scheme: dark) {
  :root { --빈땅: #292A25; --A옅음: #3D2731; --A사선: #4A4750; --A사선바탕: #2F302B; --A막: rgba(35, 36, 31, 0); --A막진: rgba(35, 36, 31, .94);
    --A그늘: 0 0 0 .5px rgba(255, 255, 255, .12), 0 2px 10px rgba(0, 0, 0, .45); }
}
.빈땅 { fill: var(--빈땅); fill-rule: evenodd; stroke: none; pointer-events: none; }
.A사선바탕 { fill: var(--A사선바탕); } .A사선줄 { stroke: var(--A사선); stroke-width: 5; }

/* 10-11 가6 「한 번 번져 그려짐」(원장/기획/첫화면배경_시안_v2.md §2 · §4) — 동네 테두리 · 지천 · 한강 1px 벡터 · 핑크 · 버건디 0 · 깜빡임 0 ·
   처음 한 번 2.6초 번짐(가운데 빈 덮개 묶음 scale 만 · mask 0 · 이 기기 「봄」이면 body.A봄 으로 건너뜀) → 타원 흐름 150초(#판 transform 만 · 끝없이) · 줄이기 설정이면 멈춤.
   고르는 순간(첫A-답) 선이 결과 지도 쪽 진하기로 넘어가며 .38초에 걷힌다(map.js) — 같은 테두리 안이 버건디로 차오른다 */
:root { --A바탕: #F8F8F5; --A강: rgb(70 92 100 / .34); --A물: rgb(70 92 100 / .26); --A동: rgb(29 27 32 / .15); --A선진: rgb(29 27 32 / .34); --A강진: rgb(70 92 100 / .55); }
@media (prefers-color-scheme: dark) {
  :root { --A바탕: #161716; --A강: rgb(157 183 190 / .30); --A물: rgb(157 183 190 / .22); --A동: rgb(237 235 239 / .13); --A선진: rgb(237 235 239 / .30); --A강진: rgb(157 183 190 / .50); }
}
#배경층 { display: none; pointer-events: none; }
body.첫A:not(.A걷힘) #배경층 { display: inline; }
.A바탕 { fill: var(--A바탕); }
.선지도 path, .선지도 use { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease-out; }
.선지도 .강 { stroke: var(--A강); stroke-width: 1.25; }
.선지도 .물 { stroke: var(--A물); stroke-width: 1; }
.선지도 .동 :is(path, use) { stroke: var(--A동); stroke-width: .5; vector-effect: none; }   /* 10-18 무게2 — 단순화 판(scale(2) 묶음 · 1 단위 굵기 = 옛 <use> 결과 도형 선과 같은 결 · <use> 엔 non-scaling 이 안 먹던 그 굵기) */
body.첫A-답 .선지도 .동 :is(path, use) { stroke: var(--A선진); }
body.첫A-답 .선지도 :is(.강, .물) { stroke: var(--A강진); }
#첫A::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .38s ease-out;
  background: radial-gradient(ellipse 72% 66% at 50% 46%, rgb(0 0 0 / 0) 42%, var(--A바탕) 100%); }
body.첫A-답 #첫A::before { opacity: 0; }
.A결빔 { stop-color: var(--A바탕); stop-opacity: 0; } .A결참 { stop-color: var(--A바탕); stop-opacity: 1; } .A덮개 { fill: var(--A바탕); }
.A번짐원 { transform-box: fill-box; transform-origin: center; animation: A번짐 2.6s cubic-bezier(.3, .1, .2, 1) .25s both; }
@keyframes A번짐 { from { transform: scale(.04); } to { transform: scale(1); } }
body.A봄 .A번짐원 { animation: none; }
/* 10-11 흐름 폭 한 상수 --A흐름폭(px/초 상당 · 기본 9) · 120초 한 바퀴 · a = 폭 × 120 ÷ 5.1247(가로 1 · 세로 34/56 타원 둘레) · 첫화면.py 가 읽어 선틀을 늘린다 */
body.첫A { --A흐름폭: 9; --A흐름a: calc(var(--A흐름폭) * 23.416px); }
@keyframes A흐름 { 0.00%{transform:translate(calc(var(--A흐름a)*0),calc(var(--A흐름a)*0))} 4.17%{transform:translate(calc(var(--A흐름a)*-.034),calc(var(--A흐름a)*.157))} 8.33%{transform:translate(calc(var(--A흐름a)*-.134),calc(var(--A흐름a)*.304))} 12.50%{transform:translate(calc(var(--A흐름a)*-.293),calc(var(--A흐름a)*.429))} 16.67%{transform:translate(calc(var(--A흐름a)*-.5),calc(var(--A흐름a)*.526))} 20.83%{transform:translate(calc(var(--A흐름a)*-.741),calc(var(--A흐름a)*.586))} 25.00%{transform:translate(calc(var(--A흐름a)*-1),calc(var(--A흐름a)*.607))} 29.17%{transform:translate(calc(var(--A흐름a)*-1.259),calc(var(--A흐름a)*.586))} 33.33%{transform:translate(calc(var(--A흐름a)*-1.5),calc(var(--A흐름a)*.526))} 37.50%{transform:translate(calc(var(--A흐름a)*-1.707),calc(var(--A흐름a)*.429))} 41.67%{transform:translate(calc(var(--A흐름a)*-1.866),calc(var(--A흐름a)*.304))} 45.83%{transform:translate(calc(var(--A흐름a)*-1.966),calc(var(--A흐름a)*.157))} 50.00%{transform:translate(calc(var(--A흐름a)*-2),calc(var(--A흐름a)*0))} 54.17%{transform:translate(calc(var(--A흐름a)*-1.966),calc(var(--A흐름a)*-.157))} 58.33%{transform:translate(calc(var(--A흐름a)*-1.866),calc(var(--A흐름a)*-.304))} 62.50%{transform:translate(calc(var(--A흐름a)*-1.707),calc(var(--A흐름a)*-.429))} 66.67%{transform:translate(calc(var(--A흐름a)*-1.5),calc(var(--A흐름a)*-.526))} 70.83%{transform:translate(calc(var(--A흐름a)*-1.259),calc(var(--A흐름a)*-.586))} 75.00%{transform:translate(calc(var(--A흐름a)*-1),calc(var(--A흐름a)*-.607))} 79.17%{transform:translate(calc(var(--A흐름a)*-.741),calc(var(--A흐름a)*-.586))} 83.33%{transform:translate(calc(var(--A흐름a)*-.5),calc(var(--A흐름a)*-.526))} 87.50%{transform:translate(calc(var(--A흐름a)*-.293),calc(var(--A흐름a)*-.429))} 91.67%{transform:translate(calc(var(--A흐름a)*-.134),calc(var(--A흐름a)*-.304))} 95.83%{transform:translate(calc(var(--A흐름a)*-.034),calc(var(--A흐름a)*-.157))} 100.00%{transform:translate(calc(var(--A흐름a)*0),calc(var(--A흐름a)*0))} }
body.첫A:not(.첫A-답) #판 { animation: A흐름 120s linear 2.85s infinite;    will-change: transform; pointer-events: none; }
body.첫A.A봄:not(.첫A-답) #판 { animation-delay: 0s; }
body.첫A #판 { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  body.첫A:not(.첫A-답) #판 { animation: none; }
  .A번짐원 { animation: none; }
}

body.첫A :is(#패널, #패널 *, #윗막대, #확대단추, #출처, #정비범례, #내숫자, #고르기) { visibility: hidden !important; pointer-events: none !important; }
body.첫A:not(.첫A-답) #덧 { visibility: hidden; }
body.첫A-답 #덧 > .덧것:not(.A표):not(.A점) { visibility: hidden !important; pointer-events: none !important; }

body.첫A-답 .지역덩어리, body.첫A-답 .묶음테들 { opacity: 0 !important; }
body.첫A-답 .지역층 { opacity: 1 !important; }
body.첫A-답 .경계들 { opacity: .85 !important; }
body.첫A-답 .뜸 .그늘, body.첫A-답 .뜸 .얼, body.첫A-답 .뜸 .테 { opacity: 0 !important; }
/* 10-12 결과단순(폐하 「색 하나」) — 칠 = 내 돈으로 살 수 있는 실제 단지 × 평형이 하나라도 있는 동네(.A닿) · 칠 안 된 거래 적음은 빗금(.A적) · 누른 동네는 테(.A고른) · ~~사다리 칸 · 선 · 내 동네 버건디~~ 10-12 폐지 */
body.첫A-답 .뜸:is(.A닿, .A적) .얼 { opacity: 1 !important; fill-opacity: 1; }
body.첫A-답 .뜸.A닿 .얼 { fill: var(--닿음면); }
body.첫A-답 .뜸:is(.A닿, .A적) .테 { opacity: 1 !important; stroke: var(--땅); stroke-width: 1.6; stroke-opacity: 1; }   /* 칠한 동네도 동네 면 단위로 갈려 보이게 */
body.첫A-답 .뜸.A적 .얼 { fill: url(#A사선); }
body.첫A-답 .뜸.A고른 .테 { opacity: 1 !important; stroke: var(--버건디); stroke-width: 2.4; stroke-opacity: 1; }

.덧것.A점, .덧것.A표 { pointer-events: none; }
.A점 { width: 12px; height: 12px; border-radius: 50%; background: var(--버건디); box-shadow: 0 0 0 3px var(--땅); }
.A표 { white-space: nowrap; line-height: 1.15; text-align: left; }
.A표 b { display: inline-flex; gap: 6px; align-items: baseline; font-size: .875rem; font-weight: 700; color: var(--먹); background: var(--종이); padding: 6px 11px; border-radius: 999px; box-shadow: var(--A그늘); }
.A표 b i { font-style: normal; font-weight: 600; color: var(--회1); font-size: .8125rem; }
.A표.내 b { font-size: .75rem; padding: 3px 8px; color: var(--버건디); }
/* 10-13 UX고침1 — 칠한 동네 이름표 · 넘침 한 줄 */
.A처지 [hidden] { display: none !important; }
.A표.동 b { background: none; box-shadow: none; padding: 0; font-size: .75rem; font-weight: 700; color: var(--먹); text-shadow: 0 0 2px var(--땅), 0 0 4px var(--땅), 0 0 6px var(--땅); }
.A표.동.A작 b { font-size: .6875rem; }   /* 10-21 이름자리 — 제자리 · 둘레가 다 막힐 때 한 단 작게(11px · 글 11 잣대 안) */
.A표.A겹 { opacity: 0; }
.A이름줄 { position: absolute; left: 16px; right: 16px; margin: 0; font-size: .75rem; font-weight: 600; color: var(--먹); text-shadow: 0 0 2px var(--땅), 0 0 4px var(--땅); pointer-events: none; z-index: 2; }
.A이름줄[hidden] { display: none; }
body:not(.첫A-답) .A이름줄 { display: none; }   /* 10-12 지금 집 자리 — 작은 점 하나 「지금」 */

#첫A { display: none; }
/* 10-19 첫글 — 물음 글 · 찾기 칸은 장 HTML 과 이 스타일만으로 첫 그림부터(머리앞글이 단 html.A틀 · 몸 머리 글 · 지도 그림 · map.js 를 기다리지 않는다) ·
   지도 그림(#배경층 · 첫그림 동안 감춤)이 서기 전 바탕도 첫 화면 바탕(땅 회색 → 밝은 바탕 바뀜 0) */
html.A틀 body, body.첫A.첫그림 { background: var(--A바탕); }
html.A틀 #첫A, body.첫A #첫A { display: block; position: fixed; inset: 0; z-index: 30; pointer-events: none; color: var(--먹); }
#첫A :is(a, button, input, [role="option"], li) { pointer-events: auto; }
.A워드 { position: absolute; left: 20px; top: calc(env(safe-area-inset-top) + 18px); display: block; height: 20px; }
.A워드 img { height: 100%; display: block; }
.A가운데 { position: absolute; z-index: 2; left: 0; right: 0; top: 27%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.A질문 { margin: 0; font-size: var(--LT); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; text-align: center; }
.A칸틀 { position: relative; margin-top: 28px; width: calc(100% - 32px); max-width: 520px; }
.A칸 { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 999px; background: var(--종이); box-shadow: var(--A그늘); pointer-events: auto; }
.A칸 svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--회1); stroke-width: 2.2; stroke-linecap: round; }
.A칸 input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--B); color: var(--먹); padding: 0; height: 100%; text-overflow: ellipsis; }
.A칸 input::placeholder { color: var(--회2); }
.A칸:focus-within { outline: var(--초점테); outline-offset: 2px; }
.A목록 { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px 0; list-style: none; background: var(--종이); border-radius: 20px; box-shadow: var(--A그늘); max-height: min(52vh, 360px); overflow: auto; }
/* 10-24 카톡방(폐하 「후보가 글쇠판에 가린다」) — 후보 한 줄 = 이름 한 줄 + 곳 한 줄(둘 다 넘치면 말줄임) · 줄 높이 약 52px → 폰 글쇠판 위에 넷 이상(~~이름 · 곳이 옆으로 두 줄씩 접혀 68px~~) */
.A목록 li[role="option"] { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 8px 22px; cursor: pointer; font-size: var(--B); line-height: 1.3; }
.A목록 li[role="option"] b, .A목록 li[role="option"] span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.A목록 li[role="option"] b { font-weight: 600; } .A목록 li[role="option"] span { color: var(--회1); font-size: var(--FN); }
.A목록 li[aria-selected="true"] { background: var(--버건디옅); }
.A목록 .A없음 { padding: 13px 22px; color: var(--회1); font-size: var(--SH); }
.A목록 .A곧열림 b, .찾기없음.곧열림 b { display: block; color: var(--먹); font-weight: 600; font-size: var(--B); }   /* 10-18 열린문1018 — 안 연 지역 단지를 고르면 「<단지> / 이 동네는 곧 열려요」 */
.A평형 { position: absolute; left: 0; right: 0; top: calc(100% + 12px); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.A평형말 { font-size: var(--SH); color: var(--회1); }
.A칩들 { display: contents; }
.A칩 { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font-size: var(--B); font-weight: 600; background: var(--종이); color: var(--먹); box-shadow: var(--A그늘); cursor: pointer; }
.A칩.적음 { box-shadow: inset 0 0 0 1.5px var(--회3); }
.A칩[aria-checked="true"] { background: var(--버건디바탕); color: var(--버건디위); }
.A칩나눔 { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .A칩나눔 .A칩 { font-size: var(--FN); padding: 0 14px; }   /* 10-16 뺄2 — 묶은 칩을 전용 면적으로 나눔 */
.A칩말 { flex-basis: 100%; margin: 4px 0 0; text-align: center; font-size: var(--FN); color: var(--회1); }
/* 10-11 「이 집은요?」 — 평형 칩 아래 같은 자리 한 줄 */
.A처지 { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 6px; }
.A처지[hidden] { display: none; }
/* 10-18 엔진1018 — 분양권 · 입주권 집 「언제 계약하셨어요?」 한 줄(달 칸 + 모를 때 칩 둘 · 칩과 같은 결) */
.A계약달 { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; font: inherit; font-size: var(--B); font-weight: 600; background: var(--종이); color: var(--먹); box-shadow: var(--A그늘); }
.A계약달[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--버건디); }
.A글단추 { all: unset; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--SH); font-weight: 600; color: var(--버건디); cursor: pointer; }

/* 10-11 무주택 작은 문(나머지는 firsthome.js) */
.A칸틀 { z-index: 1; }
.A없음문 { margin-top: 10px; gap: 4px; padding: 0 10px; color: var(--회1); font-weight: 500; pointer-events: auto; }
.A없음문 svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.A가운데:has(.A평형:not([hidden])) .A없음문, body.A찾는중:not(.A무주택) .A없음문, body.첫A-답:not(.A무주택) .A없음문 { visibility: hidden; }
body.A찾는중:not(.첫A-답) .A가운데 { transform: translateY(calc(env(safe-area-inset-top) + 64px - 27vh - 92px)); transition: transform .32s var(--스프링); }
body.A찾는중:not(.첫A-답) .A질문 { opacity: 0; transition: opacity .2s; }

body.첫A-다시 .A가운데 { visibility: hidden; }
/* 10-20 다시글 — 다시 왔을 때 셈이 서기 전 첫 그림부터 지난 알약 글(첫그림머리글이 기억으로 채움) · 답 알약과 같은 자리 · 같은 꼴(answer.css .A알약 · .A조각) · 누르기 없음 */
.A먼저 { display: none; }
body.첫A-다시 .A먼저 { position: absolute; z-index: 2; left: 50%; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); width: calc(100% - 32px); max-width: 520px;
  display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 6px 0 8px; border-radius: 999px; background: var(--종이); box-shadow: var(--A그늘); overflow: hidden; pointer-events: none; }
.A먼저 span { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgb(var(--먹rgb) / .07); font-size: var(--B); font-weight: 600; color: var(--먹); white-space: nowrap; }
body.첫A-다시.A먼저켬 .A워드 { display: none; }
.A다시 { position: absolute; left: 0; right: 0; top: 29%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.A다시말 { margin: 0; font-size: var(--HL); font-weight: 600; color: var(--회1); }
.A큰수 { margin: 0; font-size: 4.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.A지난 { margin: 0; font-size: var(--SH); color: var(--회1); }
.A다시 .A주 { margin-top: 18px; font-size: var(--SH); }
.A다시 .A글단추:not(.A주) { color: var(--회1); font-weight: 500; }

body.첫A-답 .A가운데 { top: calc(env(safe-area-inset-top) + 12px); }
body.첫A-답 .A질문 { position: absolute; top: 0; visibility: hidden; }
body.첫A-답 .A칸틀 { margin-top: 0; }
body.첫A-답 .A워드 { display: none; }
.A결과 { position: absolute; inset: 0; pointer-events: none; }
.A결과::before, .A결과::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; }
.A결과::before { top: 0; height: 120px; background: linear-gradient(var(--A막진), var(--A막)); }
.A결과::after { bottom: 0; height: 150px; background: linear-gradient(var(--A막), var(--A막진) 50%); }
.A결과 > * { position: absolute; z-index: 1; }
/* 10-11 결과고침 — 근거 · 소득 꼴은 answer.css */
.A아래 { left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 42px); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; pointer-events: none; }
.A입구 { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--버건디바탕); color: var(--버건디위); font: inherit; font-size: var(--SH); font-weight: 700; box-shadow: var(--A그늘); cursor: pointer; pointer-events: auto; }
.A입구 .꺾쇠 { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.A곧 { right: 16px; bottom: calc(env(safe-area-inset-bottom) + 100px); margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--종이); box-shadow: var(--A그늘); font-size: var(--FN); font-weight: 600; }

.A고지 { position: absolute; left: 0; right: 0; bottom: env(safe-area-inset-bottom); display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 0 8px; z-index: 2; }
@media (max-width: 389px) { .A고지단추 > svg:first-child { display: none; } }
.A고지단추, .A출처 { all: unset; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 2px; font-size: 11px; color: var(--회1); white-space: nowrap; cursor: pointer; text-decoration: none; }
.A고지단추 svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--회1); stroke-width: 1.4; stroke-linecap: round; } .A고지단추 svg .찍 { fill: var(--회1); stroke: none; }
.A고지단추 .꺾 { width: 10px; height: 10px; stroke-width: 1.6; }
.A고지판 { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 70vh; overflow: auto; background: var(--종이); border-radius: 20px 20px 0 0; padding: 18px 22px calc(env(safe-area-inset-bottom) + 12px);
  font-size: var(--FN); line-height: 1.6; color: var(--회1); box-shadow: 0 -8px 30px rgba(0, 0, 0, .14); pointer-events: auto; }
.A고지판 b { display: block; color: var(--먹); font-size: var(--SH); margin-bottom: 6px; }
.A고지판 ul { margin: 0; padding: 0; list-style: none; } .A고지판 li { position: relative; padding-left: 12px; } .A고지판 li::before { content: '·'; position: absolute; left: 0; }
@media (min-width: 761px) and ((min-height: 521px) or (pointer: fine)) {
  .A워드 { left: 40px; top: 32px; height: 24px; }
  .A가운데 { top: 26%; }
  .A질문 { font-size: 3.75rem; }
  .A칸틀 { margin-top: 44px; }
  body.첫A-답 .A가운데 { top: 24px; }
  body.첫A-답 .A워드 { display: block; }
  body.첫A-다시 .A먼저 { top: 24px; } body.첫A-다시.A먼저켬 .A워드 { display: block; }
  .A다시 { top: 28%; } .A큰수 { font-size: 6.5rem; }
  .A아래 { left: 28px; right: auto; bottom: 52px; width: 400px; } .A곧 { right: 28px; bottom: 104px; }
  .A고지 { padding: 0 24px; bottom: 4px; }
  .A고지판 { left: auto; right: 24px; bottom: 52px; width: 420px; border-radius: 20px; }
  .A결과::after { height: 120px; }
}
.A규말 { font-size: inherit; font-weight: 500; color: var(--회1); }

/* ───── 11-08 결과글반영 — 새 칸 스타일만(움직임 · 전환 · 시트는 S1움직임 몫) ───── */
/* 판정 G — 접힌 고지 「펴기 전 보이는 줄」의 이용약관 · 개인정보처리방침 링크 둘 · 폰 첫 화면은 둘째 줄로(누를 자리 44 그대로) · 결과 화면 폰은 결과 아래 고지 줄(answer.js)이 같은 링크를 싣는다 */
.A법들 { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 760px), (max-height: 520px) and (pointer: coarse) {
  body:not(.첫A-답) .A고지:has(.A법들) { flex-wrap: wrap; row-gap: 0; }
  body:not(.첫A-답) .A법들 { order: 3; width: 100%; }
  body.첫A-답 .A법들 { display: none; }
}
.A법줄 { margin: 8px 0 0; font-size: var(--FN); } .A법줄 a { color: var(--회1); }
/* Q1 「지금 대출이 있나요?」 — 계약 · 분양가 물음과 같은 줄 꼴 */
.A빚말 { flex-basis: 100%; margin: 2px 0 0; font-size: var(--FN); color: var(--회1); }
.A빚넘김 { box-shadow: none; color: var(--회1); font-weight: 500; }
/* 결정 13 — 「예산으로만 볼게요」 아래 「전세 · 월세 살아요 ›」(같은 작은 문 꼴 · 같은 숨김) */
.A전세문 { margin-top: 0; gap: 4px; padding: 0 10px; color: var(--회1); font-weight: 500; pointer-events: auto; }
.A전세문 svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.A가운데:has(.A평형:not([hidden])) .A전세문, body.A찾는중 .A전세문, body.첫A-답 .A전세문, body.A무주택 .A전세문 { visibility: hidden; }
/* 고지판 「이 기기」 — 복원 코드 · 이 기기에서 지우기 */
.A고지판 .A기기 { margin-top: 6px; } .A고지판 .A기기 .A글단추 { font-size: var(--FN); margin-right: 8px; }
.A기기말 { display: block; color: var(--버건디); }
.A복원판 { margin: 4px 0 6px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.A복원경고 { grid-column: 1 / -1; margin: 0; color: var(--회1); }
.A복원줄 { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .A복원줄 span { font-weight: 600; color: var(--먹); }
.A복원줄 input { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; background: rgb(var(--먹rgb) / .05); color: var(--먹); min-width: 0; }
.A복원줄 input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--버건디); }
