/* 뜬딜 집 — 둥실 라임 (design/DESIGN.md) */
:root{
  --bg:#F1F7F5; --surface:#FFFFFF; --ink:#182820; --sub:#5D7066; --lime:#C8F560; --green:#17745A;
  --warn:#8A480B; --warn-bg:#FFF1D6; --line:#D6E2DC; --lime-soft:#E8FACB; --off:#E7ECE9; --mint-info:#E3F3EE;
  --r-chip:8px; --r-btn:14px; --r-card:16px; --r-sheet:20px; --r-hero:24px;
  --sh:0 4px 16px rgba(24,40,32,.08); --sh-float:0 2px 8px rgba(24,40,32,.14); --sh-sheet:0 -8px 32px rgba(24,40,32,.12);
  --nav-h:64px; --top-h:56px; --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:"Pretendard",system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:var(--ink);background:var(--bg);
  font-size:16px;line-height:24px;-webkit-text-size-adjust:100%;word-break:keep-all}
a{color:var(--green)}
.num{font-variant-numeric:tabular-nums}
.nowrap{white-space:nowrap}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* 상단 바 */
.top{position:sticky;top:0;z-index:30;height:var(--top-h);display:flex;align-items:center;gap:8px;padding:0 16px;background:rgba(241,247,245,.94);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.top.solid{background:var(--surface);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-weight:750;font-size:18px;letter-spacing:-.02em}
.brand svg{width:26px;height:26px}
.top .title{flex:1;text-align:center;font-weight:700;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top .grow{flex:1}
.pill{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;border:1px solid var(--green);color:var(--green);
  font-size:13px;font-weight:600;background:var(--surface);white-space:nowrap}
.icon-btn{width:48px;height:48px;min-width:48px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:999px;cursor:pointer;color:var(--ink);text-decoration:none}
.icon-btn svg{width:24px;height:24px}
.icon-btn:active{background:var(--off)}

/* 레이아웃 */
.page{max-width:560px;margin:0 auto;padding:0 20px calc(var(--nav-h) + var(--safe-b) + 24px)}
h1{font-size:28px;line-height:36px;font-weight:750;letter-spacing:-.02em;margin:16px 0 4px}
h2{font-size:20px;line-height:28px;font-weight:700;margin:28px 0 12px;letter-spacing:-.01em}
.lead{color:var(--sub);margin:0;font-size:16px}
.small{font-size:14px;line-height:20px;color:var(--sub)}
.tiny{font-size:12px;line-height:18px;color:var(--sub)}

/* 히어로 */
.hero{position:relative;margin:16px 0 0;border-radius:var(--r-hero);overflow:hidden;background:linear-gradient(180deg,#DDF0EC 0%,#EEF7F3 70%,#F1F7F5 100%);height:210px}
.hero svg.art{position:absolute;inset:0;width:100%;height:100%}
.hero .tag{position:absolute;right:14px;top:14px;background:var(--lime);color:var(--ink);font-weight:700;font-size:14px;padding:6px 12px;border-radius:999px;box-shadow:var(--sh-float)}
.hero a.go{position:absolute;left:14px;bottom:14px;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 16px;border-radius:999px;background:rgba(255,255,255,.94);
  color:var(--ink);font-weight:650;text-decoration:none;box-shadow:var(--sh-float)}

/* 카드·표 */
.card{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh);padding:16px;margin:12px 0}
table.sum{width:100%;border-collapse:collapse}
table.sum th,table.sum td{text-align:left;vertical-align:top;padding:11px 0;border-bottom:1px solid var(--line);font-size:15px;line-height:22px}
table.sum tr:last-child th,table.sum tr:last-child td{border-bottom:0}
table.sum th{width:92px;color:var(--sub);font-weight:500;font-size:14px;padding-right:8px}
table.sum td b{font-weight:700}
.pg{display:inline-block;font-size:12px;line-height:18px;color:var(--sub);margin-left:4px;white-space:nowrap}
table.grid{width:100%;border-collapse:collapse;font-size:14px;line-height:20px}
table.grid th,table.grid td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
table.grid th:first-child,table.grid td:first-child{text-align:left}
table.grid thead th{color:var(--sub);font-weight:500;font-size:13px}
.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* 버튼 */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 20px;border-radius:var(--r-btn);border:0;background:var(--lime);color:var(--ink);
  font-weight:650;font-size:16px;text-decoration:none;cursor:pointer;width:100%}
.btn:active{filter:brightness(.95)}
.btn[disabled]{background:var(--off);color:var(--sub);cursor:not-allowed}
.btn2{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:48px;padding:0 16px;border-radius:var(--r-btn);border:1px solid var(--green);background:var(--surface);
  color:var(--green);font-weight:600;font-size:15px;text-decoration:none;cursor:pointer}
.row{display:flex;gap:8px;align-items:center}
.row > *{flex:1}
.link-out{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:0 4px;color:var(--green);font-weight:600;text-decoration:none;border-bottom:1px solid var(--line)}
.link-out:last-child{border-bottom:0}
.link-out small{color:var(--sub);font-weight:500}

/* 칩 */
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 10px;border-radius:var(--r-chip);background:var(--off);font-size:14px;font-weight:500;white-space:nowrap}
.chip.lime{background:var(--lime-soft)}
.chip.est{background:var(--warn-bg);color:var(--warn);font-size:12px;height:24px;padding:0 8px}
.tchip{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);
  font-weight:500;cursor:pointer;white-space:nowrap;text-decoration:none;color:var(--ink)}
.tchip[aria-pressed="true"],.tchip.on{background:var(--lime);border-color:var(--lime);font-weight:700}

/* 안내 박스 */
.note{display:flex;gap:10px;padding:12px 14px;border-radius:12px;background:var(--mint-info);font-size:14px;line-height:20px}
.note.warn{background:var(--warn-bg);color:var(--warn)}
.note svg{flex:0 0 20px;width:20px;height:20px;margin-top:0}
.note p{margin:0}

/* 타입 카드(가로) */
.types{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 8px;margin:0 -20px;padding-left:20px;padding-right:20px;scroll-snap-type:x mandatory}
.tcard{flex:0 0 74%;max-width:300px;scroll-snap-align:start;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh);padding:14px;text-decoration:none;color:var(--ink);
  display:flex;flex-direction:column;gap:8px;border:2px solid transparent}
.tcard:active{border-color:var(--green)}
.tcard .hd{display:flex;align-items:baseline;justify-content:space-between}
.tcard .hd b{font-size:22px;line-height:28px}
.tcard .plan{height:128px;background:#F6FAF8;border-radius:12px;display:flex;align-items:center;justify-content:center}
.tcard .plan svg{max-width:92%;max-height:116px}
.tcard .go{display:flex;align-items:center;justify-content:space-between;font-weight:650;color:var(--green)}

/* 하단 내비 */
.nav{position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(var(--nav-h) + var(--safe-b));padding-bottom:var(--safe-b);background:var(--surface);border-top:1px solid var(--line);
  display:flex}
.nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--sub);font-size:12px;line-height:16px;font-weight:500;margin:6px 4px;border-radius:14px}
.nav a svg{width:24px;height:24px}
.nav a[aria-current="page"]{background:var(--lime-soft);color:var(--ink);font-weight:700}

/* 3D 화면 */
.stage{position:fixed;left:0;right:0;top:var(--top-h);bottom:calc(var(--nav-h) + var(--safe-b));overflow:hidden;background:#DCEAE9;touch-action:none}
.stage canvas{display:block;width:100%;height:100%;touch-action:none}
.ov{position:absolute;z-index:5;background:rgba(255,255,255,.94);border-radius:12px;box-shadow:var(--sh-float)}
.ov-legend{left:12px;top:12px;padding:8px 10px;font-size:12px;line-height:18px}
.ov-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.ov-north{right:12px;top:12px;width:44px;height:44px;border-radius:999px;display:flex;align-items:center;justify-content:center}
.ov-north svg{width:30px;height:30px;transition:transform .1s linear}
.ctrls{position:absolute;right:12px;z-index:5;display:flex;flex-direction:column;gap:8px}
.ctrls button{width:48px;height:48px;border-radius:999px;border:0;background:rgba(255,255,255,.94);box-shadow:var(--sh-float);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ctrls button svg{width:22px;height:22px}
.ctrls button[aria-pressed="true"]{background:var(--lime)}
.hint{position:absolute;left:50%;transform:translateX(-50%);z-index:5;background:rgba(255,255,255,.94);border-radius:999px;padding:6px 14px;font-size:13px;box-shadow:var(--sh-float);white-space:nowrap;pointer-events:none;transition:opacity .4s}
.disc{position:absolute;left:12px;z-index:5;font-size:12px;line-height:16px;color:var(--ink);background:rgba(255,255,255,.88);padding:4px 8px;border-radius:8px;pointer-events:none}
.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;z-index:8;background:#DCEAE9;font-weight:600;color:var(--sub)}
.loading .bar{width:160px;height:6px;border-radius:6px;background:rgba(255,255,255,.7);overflow:hidden}
.loading .bar i{display:block;height:100%;width:0;background:var(--green);transition:width .2s}

/* 3D 라벨 */
.lbl{background:rgba(255,255,255,.94);color:var(--ink);border-radius:10px;padding:4px 8px;font-size:13px;line-height:17px;font-weight:700;text-align:center;box-shadow:var(--sh-float);white-space:nowrap;pointer-events:auto;cursor:pointer}
.lbl small{display:block;font-weight:500;color:var(--sub);font-size:12px}
.lbl.sel{background:var(--lime)}
.lbl.room{pointer-events:none;cursor:default}
.lbl.room small{color:var(--ink);font-variant-numeric:tabular-nums}

/* 바텀시트 */
.sheet{position:absolute;left:0;right:0;bottom:0;z-index:12;background:var(--surface);border-radius:var(--r-sheet) var(--r-sheet) 0 0;box-shadow:var(--sh-sheet);padding:8px 20px 16px;
  transition:transform .22s ease;max-height:55%;overflow:auto}
.sheet .handle{display:block;width:100%;height:20px;border:0;background:transparent;cursor:pointer;position:relative}
.sheet .handle::before{content:"";position:absolute;left:50%;top:6px;width:32px;height:4px;margin-left:-16px;border-radius:4px;background:var(--line)}
.sheet.hidden{transform:translateY(110%)}
.sheet h3{margin:0 0 4px;font-size:22px;line-height:30px}
.sheet .meta{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}

/* 피커 */
.picker{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:8px 0 12px}
.pcol{border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.pcol .ph{height:36px;display:flex;align-items:center;justify-content:center;background:var(--off);font-size:14px;font-weight:600}
.pcol ul{list-style:none;margin:0;padding:0;height:176px;overflow-y:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:y proximity}
.pcol li button{display:block;width:100%;height:44px;border:0;background:transparent;font-size:16px;cursor:pointer;scroll-snap-align:center;font-variant-numeric:tabular-nums}
.pcol li button[aria-selected="true"]{background:var(--lime);font-weight:700}

/* 실내 */
.typebar{position:fixed;left:0;right:0;top:var(--top-h);height:52px;z-index:20;display:flex;align-items:center;gap:8px;padding:0 12px;background:var(--surface);border-bottom:1px solid var(--line);overflow-x:auto}
.typebar .tchip{min-height:40px;padding:0 14px}
.typebar .sep{width:1px;height:24px;background:var(--line);flex:0 0 1px}
.typebar select{height:40px;border-radius:999px;border:1px solid var(--line);background:var(--surface);padding:0 12px;font:inherit;font-weight:600}
.stage.room{top:calc(var(--top-h) + 52px)}
.minimap{position:absolute;right:12px;top:12px;z-index:6;width:124px;padding:6px;background:rgba(255,255,255,.94);border-radius:12px;box-shadow:var(--sh-float);cursor:pointer}
.minimap .mh{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;margin:0 2px 2px}
.minimap svg{width:100%;height:auto;display:block}
.joy{position:absolute;left:20px;bottom:20px;z-index:6;width:92px;height:92px;border-radius:999px;background:rgba(255,255,255,.7);box-shadow:var(--sh-float);touch-action:none}
.joy i{position:absolute;left:27px;top:27px;width:38px;height:38px;border-radius:999px;background:var(--lime);box-shadow:var(--sh-float)}
.joy span{position:absolute;left:0;right:0;bottom:-20px;text-align:center;font-size:12px;font-weight:600}
.rbtns{position:absolute;right:12px;bottom:20px;z-index:6;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.rbtns a,.rbtns button{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px;border-radius:999px;border:0;background:rgba(255,255,255,.94);box-shadow:var(--sh-float);
  font-weight:650;font-size:14px;color:var(--ink);text-decoration:none;cursor:pointer}
.rbtns a.lime{background:var(--lime)}

/* 큰 평면도 모달 */
.modal{position:fixed;inset:0;z-index:60;background:rgba(24,40,32,.45);display:flex;align-items:flex-end;justify-content:center}
.modal[hidden]{display:none}
.modal .box{background:var(--surface);width:100%;max-width:640px;max-height:92dvh;overflow:auto;border-radius:var(--r-sheet) var(--r-sheet) 0 0;padding:12px 16px calc(16px + var(--safe-b))}
.modal .box header{display:flex;align-items:center;justify-content:space-between}
.modal .box h3{margin:0;font-size:20px}
.modal svg.plan{width:100%;height:auto;margin:8px 0}

/* 창밖 */
.winbar{position:absolute;left:0;right:0;top:0;z-index:6;display:flex;justify-content:space-between;align-items:center;padding:12px}
.face{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:var(--sh-float);font-weight:650;font-size:14px}
.face svg{width:20px;height:20px}

/* 목록(/) */
.dcard{display:block;text-decoration:none;color:var(--ink);background:var(--surface);border-radius:var(--r-card);box-shadow:var(--sh);overflow:hidden;margin:16px 0}
.dcard .art{height:150px;background:linear-gradient(180deg,#DDF0EC,#F1F7F5)}
.dcard .art svg{width:100%;height:100%}
.dcard .bd{padding:14px 16px 16px}
.dcard .bd b{font-size:20px;line-height:28px;display:block}

.foot{margin:28px 0 0;font-size:12px;line-height:18px;color:var(--sub)}
.foot a{color:var(--sub)}
details.more{margin:8px 0}
details.more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;color:var(--green)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media (min-width:900px){
  .stage .sheet{left:auto;right:16px;bottom:16px;width:380px;border-radius:var(--r-sheet);max-height:70%}
}
.btn svg,.btn2 svg,.hero a.go svg{width:22px;height:22px;flex:0 0 22px}
.hero a.go{white-space:nowrap}
.pr{display:block}.pr .num{white-space:nowrap}

/* ── 아스트라 검수 반영(11/17) ── */
.top .title{font-size:20px}
.btn2{font-size:16px}
.sheet h3{font-size:20px;line-height:28px}
.sheet .handle{height:44px;min-height:44px;margin-top:-8px}
.sheet .handle::before{top:12px}
.sheet .x{position:absolute;right:8px;top:4px}
.sheet.min .full{display:none}
.chip.ro{background:#E7ECE9}
.minimap{width:112px;min-height:128px}
.minimap #miniSvg > svg{width:100%;height:auto;display:block}
.minimap .mh{height:24px}
.minimap .mh > svg{width:20px;height:20px;flex:0 0 20px}
.rbtns svg{width:22px;height:22px;flex:0 0 22px}
.rbtns a,.rbtns button{min-height:48px}
.typebar{height:56px}
.typebar .tchip,.typebar select{min-height:44px}
.typebar select{border-color:#5D7066}
.stage.room{top:calc(var(--top-h) + 56px)}
.tchip{border-color:#9AABA2}
.lbl{min-width:44px;min-height:44px;display:flex;flex-direction:column;justify-content:center}
.lbl.room{min-height:0}
.hint{max-width:calc(100% - 32px);white-space:normal;text-align:center}
.disc{pointer-events:auto;font-size:12px;line-height:18px;background:rgba(255,255,255,.94)}
.disc a{display:inline-block;min-height:24px;color:var(--green);font-weight:600}
.pcol ul{height:132px}
.nowcard{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:var(--sh-float);font-size:12px;line-height:18px;font-weight:600;margin-bottom:8px}
.prr{display:flex;flex-wrap:wrap;gap:0 4px}

/* ── 일조·층 슬라이더·큰 미니맵 (아스트라 sun 시안 11/17, design/astra_sun_spec.md) ── */
.segrow{position:fixed;left:0;right:0;top:var(--top-h);height:56px;z-index:20;display:flex;gap:0;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--line)}
.segrow button{flex:1;height:44px;border:1px solid var(--line);background:var(--surface);font-size:16px;line-height:22px;font-weight:600;cursor:pointer;color:var(--ink)}
.segrow button:first-child{border-radius:14px 0 0 14px}.segrow button:last-child{border-radius:0 14px 14px 0;border-left:0}
.segrow button[aria-selected="true"]{background:var(--lime);border-color:var(--lime);font-weight:700}
.stage.danji{top:calc(var(--top-h) + 56px)}
body.sun .stage.danji{bottom:calc(var(--nav-h) + var(--safe-b) + var(--sp-h,340px))}
.sunpanel{position:fixed;left:0;right:0;bottom:calc(var(--nav-h) + var(--safe-b));z-index:25;background:rgba(255,255,255,.97);border-radius:20px 20px 0 0;box-shadow:var(--sh-sheet);
  max-height:340px;display:flex;flex-direction:column}
.sunpanel[hidden]{display:none}
.sp-head{display:flex;align-items:center;gap:8px;height:48px;padding:0 4px 0 16px;flex:0 0 48px}
.sp-head h2{margin:0;font-size:20px;line-height:28px;display:flex;align-items:center;gap:8px}
.sp-sum{flex:1;text-align:right;font-size:14px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-head .icon-btn svg{transform:rotate(90deg);transition:transform .2s}
.sunpanel.closed .sp-head .icon-btn svg{transform:rotate(-90deg)}
.sp-mini{margin:-6px 16px 10px;display:none}
.sunpanel.closed .sp-mini{display:block}
.sp-body{overflow-y:auto;padding:0 16px 16px;-webkit-overflow-scrolling:touch}
.dates{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.dates button{height:44px;border-radius:999px;border:1px solid #9AABA2;background:var(--surface);font-size:14px;font-weight:600;cursor:pointer;color:var(--ink)}
.dates button[aria-checked="true"]{background:var(--lime);border-color:var(--lime);font-weight:700}
.dates button[aria-checked="true"]::before{content:"✓ "}
.sp-time{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 0}
.sp-time b{font-size:20px;line-height:28px}
.sp-time .play{border:1px solid var(--green);color:var(--green)}
.sp-time .play svg{width:22px;height:22px}
.sp-time .play[aria-pressed="true"]{background:var(--lime-soft)}
.tsl{width:100%;height:48px;margin:0;accent-color:var(--green);cursor:pointer;-webkit-appearance:none;appearance:none;background:transparent}
.tsl::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(90deg,#F4C26B,#17745A 50%,#F4C26B)}
.tsl::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;border-radius:999px;background:var(--lime);border:2px solid var(--green);margin-top:-11px;box-shadow:var(--sh-float)}
.tsl::-moz-range-track{height:6px;border-radius:6px;background:linear-gradient(90deg,#F4C26B,#17745A 50%,#F4C26B)}
.tsl::-moz-range-thumb{width:24px;height:24px;border-radius:999px;background:var(--lime);border:2px solid var(--green)}
.sp-ends{display:flex;justify-content:space-between;margin-top:-6px}
.sp-row{display:flex;align-items:center;justify-content:space-between;min-height:48px;border-top:1px solid var(--line);margin-top:8px;font-weight:600}
.sw{width:52px;height:32px;border-radius:999px;border:1px solid #9AABA2;background:var(--off);position:relative;cursor:pointer;padding:0;flex:0 0 52px}
.sw i{position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:999px;background:#fff;box-shadow:var(--sh-float);transition:left .18s}
.sw[aria-checked="true"]{background:var(--green);border-color:var(--green)}
.sw[aria-checked="true"] i{left:23px}
.legend{margin:2px 0 6px}
.legend .lbar{display:flex;height:12px;border-radius:6px;overflow:hidden;outline:1px solid #5D7066}
.legend .lbar i{flex:1}
.legend .lends{display:flex;justify-content:space-between;gap:8px;margin-top:2px}
.legend[data-busy="1"] .lbar{opacity:.45}
.taphint{margin:6px 0 0;min-height:36px}
.taphint b{color:var(--ink)}
ul.basis{margin:0;padding-left:18px}
ul.basis li{margin:0 0 6px}
.sp-body .note{margin-top:8px;font-size:13px;line-height:19px}
.lbl.land{min-width:0;min-height:0;font-size:12px;line-height:16px;font-weight:600;padding:2px 6px;pointer-events:none;background:rgba(255,255,255,.86);color:#2B4A3A;box-shadow:none;border:1px solid #D6E2DC}
@media (min-width:900px){
  body.sun .stage.danji{bottom:calc(var(--nav-h) + var(--safe-b))}
  .sunpanel{left:auto;right:16px;bottom:calc(var(--nav-h) + var(--safe-b) + 16px);width:380px;border-radius:20px;max-height:calc(100dvh - var(--top-h) - 56px - var(--nav-h) - 48px)}
}
.sheet.hidden{visibility:hidden}
body.sun .ov-legend,body.sun #hint,body.sun #orbit,body.sun #home{display:none}
body.sun .stage .disc{top:12px!important}
@media (min-width:900px){ body.sun .ctrls{right:412px} }
/* 층 슬라이더 */
.fslider{position:absolute;right:12px;top:64px;bottom:260px;z-index:7;width:56px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 0;background:rgba(255,255,255,.94);border-radius:999px;box-shadow:var(--sh-float)}
.fslider[hidden]{display:none}
.fs-end{font-size:12px;line-height:18px;font-weight:700;white-space:nowrap}
.fs-track{position:relative;flex:1;width:48px;min-height:140px;touch-action:none;cursor:ns-resize;outline-offset:2px}
.fs-rail,.fs-fill{position:absolute;left:22px;width:4px;border-radius:4px}
.fs-rail{top:12px;bottom:12px;background:#D6E2DC}
.fs-fill{bottom:12px;background:var(--green);max-height:calc(100% - 24px)}
.fs-thumb{position:absolute;left:12px;width:24px;height:24px;border-radius:999px;background:var(--lime);border:2px solid var(--green);box-shadow:var(--sh-float);margin-bottom:12px;transition:transform .12s}
.fslider.drag .fs-thumb{transform:scale(1.25)}
.fs-bub{position:absolute;right:56px;height:32px;min-width:56px;padding:0 10px;border-radius:999px;background:var(--lime);color:var(--ink);font-weight:700;font-size:16px;line-height:32px;text-align:center;box-shadow:var(--sh-float);margin-bottom:8px;white-space:nowrap}
.fs-tick{position:absolute;left:30px;font-size:12px;line-height:12px;color:var(--ink);transform:translateY(50%);margin-bottom:12px;pointer-events:none;display:flex;align-items:center;gap:2px}
.fs-tick i{display:inline-block;width:6px;height:1px;background:var(--sub)}
#fsTicks{position:absolute;inset:12px 0;pointer-events:none}
#fsTicks .fs-tick{margin-bottom:0}
/* 세대 카드 + 일조 */
.uc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.uc-head h3{font-size:20px;line-height:28px;margin:0}
.btn2.sm{height:44px;min-width:76px;padding:0 14px;font-size:14px}
.sunbox{border-top:1px solid var(--line);margin-top:10px;padding-top:8px}
.sb-t b{font-size:16px}
.sb-n{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:2px 0 6px}
.sb-n > b{font-size:24px;line-height:32px;color:var(--green);font-weight:700}
.sb-bar{height:10px;border-radius:5px;outline:1px solid #B7C6BE}
.sb-ticks{display:flex;justify-content:space-between;font-size:12px;line-height:18px;color:var(--sub);margin-top:2px}
.sb-ticks span{width:16px;text-align:center}
.sb-ticks span:first-child{text-align:left}.sb-ticks span:last-child{text-align:right}
.fs-thumb,.fs-bub{margin-bottom:0}
.sb-t{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.linkbtn{margin-left:auto;min-height:44px;padding:0 4px;border:0;background:none;color:var(--green);font-weight:600;font-size:14px;text-decoration:underline;cursor:pointer}
.sunbox .sb-t{margin-top:-6px;margin-bottom:-6px}
details.basisd:not([open]){display:none}
details.basisd summary{min-height:36px}
/* 큰 미니맵(아스트라: 모바일 184×208, PC 280×304, 접힘 96×48) */
.minimap.big{width:184px;min-height:0;padding:0;cursor:default;border-radius:16px;overflow:hidden;background:rgba(255,255,255,.96)}
.minimap.big .mh{width:100%;height:48px;margin:0;padding:0 4px 0 12px;border:0;background:transparent;display:flex;align-items:center;gap:6px;font-size:14px;cursor:pointer;color:var(--ink)}
.minimap.big .mh b{flex:1;text-align:left;font-weight:700}
.minimap.big .mh > svg{width:20px;height:20px;flex:0 0 20px;color:var(--green)}
.minimap.big .mh .chev{width:40px;height:40px;display:flex;align-items:center;justify-content:center}
.minimap.big .mh .chev svg{width:20px;height:20px;transform:rotate(-90deg);transition:transform .2s}
.minimap.big.closed{width:112px}
.minimap.big.closed .mh .chev svg{transform:rotate(90deg)}
.minimap.big #miniSvg{padding:0 12px;touch-action:none}
.minimap.big #miniSvg > svg{width:100%;height:auto;max-height:136px;display:block}
.mtip{min-height:36px;display:flex;align-items:center;justify-content:center;gap:4px;margin:4px 8px 8px;border-radius:10px;background:var(--lime-soft);font-size:12px;line-height:16px;font-weight:600;text-align:center;padding:2px 6px}
.mtip.warn{background:var(--warn-bg);color:var(--warn)}
.mtip .lnk{border:0;background:none;color:var(--green);font-weight:700;text-decoration:underline;font-size:12px;min-height:32px;padding:0 4px;cursor:pointer}
#rdisc{max-width:calc(100% - 228px)}
@media (min-width:768px){
  .minimap.big{width:280px;right:16px}
  .minimap.big #miniSvg > svg{max-height:220px}
  .minimap.big.closed{width:112px}
  #rdisc{max-width:calc(100% - 330px)}
}
/* ── 아스트라 sun 검수 반영(11/17) ── */
.top .title{font-size:24px;line-height:32px;font-weight:700}
.top .face{max-width:116px;height:32px;font-size:12px;line-height:18px;padding:0 10px;flex:0 1 auto;overflow:hidden;white-space:nowrap}
.top .face svg{width:16px;height:16px;flex:0 0 16px}
.fslider{width:48px;bottom:auto;padding:6px 0}
.fs-track{width:48px}
.fs-bub{min-width:64px;right:52px}
#pick.collapsed{padding-top:14px}
#pick.collapsed .handle{position:absolute;left:0;right:0;top:0;height:22px;margin:0;min-height:0}
#pick.collapsed .handle::before{top:7px}
.btn2.sm{height:48px}
.sb-leg{display:flex;align-items:center;gap:4px;margin-top:2px;flex-wrap:wrap}
.sb-leg i{display:inline-block;width:10px;height:10px;border-radius:2px;background:#D6E2DC;outline:1px solid #B7C6BE}
.sb-leg i.g{background:#17745A}
.note a,#tapmsg a,.disc a,.sp-body a{padding:12px 2px;margin:-12px -2px}
.sunpanel{height:340px}
.sunpanel.closed{height:96px}
.sp-mini{margin:-4px 16px 0;line-height:18px}
.sp-body{flex:1;min-height:0}
.sw{width:48px;height:44px;border:0;background:none;flex:0 0 48px;display:flex;align-items:center;justify-content:center}
.sw .trk{position:relative;display:block;width:48px;height:28px;border-radius:999px;border:1px solid #5D7066;background:var(--off)}
.sw i{left:2px;top:2px;width:22px;height:22px}
.sw[aria-checked="true"]{background:none}
.sw[aria-checked="true"] .trk{background:var(--green);border-color:var(--green)}
.sw[aria-checked="true"] i{left:22px}
.legend .lends{margin-top:2px}
.legt{margin:0;line-height:18px}
.tsl::-webkit-slider-runnable-track{background:#D6E2DC}
.tsl::-moz-range-track{background:#D6E2DC}
.tsl::-moz-range-progress{background:#17745A;height:6px;border-radius:6px}
.mtip{margin:0;border-radius:0;height:36px;min-height:36px}
.mtip.warn{height:auto;min-height:36px;padding:2px 8px}
.mtip.moving{height:44px}
.mtip .lnk{min-width:44px;min-height:44px;flex-shrink:0}
.minimap.big #miniSvg{width:184px;height:124px;padding:0 12px}
.minimap.big #miniSvg > svg{width:100%;height:100%;max-height:none}
.minimap.big.closed{width:96px}
@media (min-width:768px) and (min-height:640px){
  .minimap.big #miniSvg{width:280px;height:220px}
  .minimap.big.closed{width:112px}
}
@media (min-width:768px) and (max-height:639px){ .minimap.big{width:184px} }
@media (min-width:900px){ .sunpanel{height:auto;max-height:calc(100dvh - var(--top-h) - 56px - var(--nav-h) - 48px)} .sunpanel.closed{height:96px} }
.sb-leg{margin-top:-6px;margin-bottom:-10px}
.sb-leg .linkbtn{font-size:12px}

/* ── 단지 시설 레이어 (아스트라 land2 시안 11/17, design/astra_land2_spec.md) ── */
:root{--c-road:#006DAA;--c-play:#A64900;--c-comm:#7352A2;--s-road:#EAF4FA;--s-play:#FFF2E7;--s-comm:#F3EFF9}
.c-road{--cc:var(--c-road);--cs:var(--s-road)}.c-play{--cc:var(--c-play);--cs:var(--s-play)}.c-comm{--cc:var(--c-comm);--cs:var(--s-comm)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* 토글 행 y112–168 */
.facrow{position:fixed;left:0;right:0;top:calc(var(--top-h) + 56px);height:56px;z-index:20;display:flex;gap:8px;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--line);
  overflow-x:auto;scrollbar-width:none}
.facrow::-webkit-scrollbar{display:none}
.facrow button{flex:0 0 auto;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid var(--cc);border-radius:14px;background:rgba(255,255,255,.94);
  font-size:12px;line-height:18px;font-weight:600;color:var(--ink);cursor:pointer;white-space:nowrap;transition:background .12s}
.facrow button[data-cat="road"]{width:80px}.facrow button[data-cat="play"]{width:116px}.facrow button[data-cat="comm"]{width:154px}
.facrow button .fi{width:18px;height:18px;display:inline-flex;color:var(--cc);flex:0 0 18px}
.facrow button .fi svg{width:18px;height:18px}
.facrow button .ck{width:12px;height:12px;display:inline-flex}
.facrow button[aria-pressed="false"]{background:var(--off);color:var(--sub);border-color:var(--line)}
.facrow button[aria-pressed="false"] .fi{color:var(--sub)}
.facrow button[aria-pressed="false"] .ck{visibility:hidden}
.facrow button:active{background:var(--cs);border-width:2px}
@media (min-width:420px){.facrow{justify-content:flex-start}}
body:has(.facrow) .stage.danji{top:calc(var(--top-h) + 112px)}
body.sun .facrow{display:none}
body.sun:has(.facrow) .stage.danji{top:calc(var(--top-h) + 56px)}
/* 3D 시설 라벨: 0×0 기준점(시설 자리) 위에 버튼(터치 44px) → 보이는 알약 32px + 줄기 6px + 끝점 4px(끝점 가운데 = 시설 자리) */
.flw{width:0;height:0;position:relative;pointer-events:none}
.flw[data-off="1"]{display:none}
.flb{position:absolute;left:0;bottom:0;transform:translate(-50%,0);margin-bottom:2px;height:44px;padding:6px 0;border:0;background:none;cursor:pointer;pointer-events:auto;touch-action:manipulation;
  font:600 12px/18px "Pretendard",system-ui,sans-serif;color:var(--ink);min-width:44px}
.flb .pill{display:inline-flex;align-items:center;gap:4px;height:32px;max-width:180px;padding:0 8px 0 6px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid var(--cc);box-shadow:var(--sh-float);white-space:nowrap;transition:background .12s}
.flb .fn{overflow:hidden;text-overflow:ellipsis;min-width:0}
.flb::before{content:"";position:absolute;left:50%;top:calc(100% - 6px);width:1.5px;height:6px;margin-left:-.75px;background:var(--cc)}
.flb::after{content:"";position:absolute;left:50%;top:100%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--cc);box-shadow:0 0 0 1px #fff}
.flb .fi{width:20px;height:20px;border-radius:50%;background:var(--cc);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px}
.flb .fi svg{width:14px;height:14px;stroke-width:1.5}
.flb .fa{font-style:normal;width:18px;height:18px;flex:0 0 18px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:var(--warn-bg);color:var(--warn);border-radius:999px}
.flb .ck{display:none;width:12px;height:12px;color:var(--cc)}
.flb.sel .pill{border-width:2px;font-weight:700}.flb.sel .ck{display:inline-flex}
.flb:active .pill{background:var(--cs)}
.flb.mini .fn,.flb.mini .fa,.flb.mini .ck{display:none!important}.flb.mini .pill{width:32px;padding:0;justify-content:center}
.flb:focus-visible{outline:none}.flb:focus-visible .pill{outline:2px solid var(--green);outline-offset:3px}
/* 시설 설명 시트 */
.fac-h{display:flex;align-items:center;gap:8px;margin:0 48px 8px 0}
.fac-h h3{margin:0;font-size:20px;line-height:28px;outline:none}
.fac-h .fi{width:32px;height:32px;border-radius:50%;background:var(--cc);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px}
.fac-h .fi svg{width:20px;height:20px}
.chip.cat{background:var(--cs);color:var(--cc);border:1px solid var(--cc);font-weight:700;font-size:12px;line-height:18px;height:24px;padding:0 10px;border-radius:999px}
.sheet .meta.fm{margin:0 0 8px}
.fac-d{margin:0 0 6px;font-size:14px;line-height:20px}
.fac-s{margin:0 0 4px}
.facl{list-style:none;margin:0;padding:0}
.facl h4{margin:12px 0 4px;font-size:14px;line-height:20px;color:var(--cc);display:flex;align-items:center;gap:6px}
.facl h4 svg{width:18px;height:18px}
.facl button{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;font-size:15px;line-height:22px;color:var(--ink);cursor:pointer;padding:0 4px}
.facl button .chip.est{margin-left:auto}
/* 가까운 시설 거리(섹션 110px: 제목20+4+칩64+4+기준18) */
.dist{margin:8px 0}
.dist .dh{margin:0 0 4px;font-size:14px;line-height:20px;font-weight:700}
.dist ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dchip{background:var(--bg);border-radius:8px;padding:6px 8px;min-height:64px;display:flex;flex-direction:column;min-width:0}
.dchip .dl{font-size:12px;line-height:18px;font-weight:600;color:var(--ink);display:flex;gap:4px;align-items:center}
.dchip .di{display:inline-flex;width:16px;height:16px;color:var(--cc);flex:0 0 16px}.dchip .di svg{width:16px;height:16px}
.dchip b{font-size:14px;line-height:20px;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:3px}
.dchip .ax{font-style:normal;font-size:11px;color:var(--warn);background:var(--warn-bg);border-radius:999px;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}
.dchip small{font-size:12px;line-height:16px;color:var(--sub);word-break:keep-all}
.dist .db{margin:4px 0 0}
/* 장면 도구 묶음(시트가 열려 세로 공간이 부족할 때) */
.ctrls .tools{display:none}
.ctrls.packed .tools{display:flex}
.ctrls.packed > button:not(.tools){display:none}
.ctrls.packed.open > button:not(.tools){display:flex}
.ctrls.packed.open{flex-direction:column-reverse}
body.sun #facList{display:none}

/* 아스트라 land2 검수 반영(37/50 must_fix) */
.flb .fn{color:#182820}
.flb.mini:focus-visible .fn{display:inline!important}.flb.mini:focus-visible .pill{width:auto;padding:0 8px 0 6px}
.fac-u{margin-top:6px!important;padding-top:6px;border-top:1px solid var(--line)}
#facList{width:auto;min-width:48px;padding:0 14px 0 12px;gap:6px}
#facList .bt{font-size:12px;line-height:18px;font-weight:600;color:var(--ink);white-space:nowrap}
.ctrls{align-items:flex-end}
.ctrls.packed.open #facList .bt{display:inline}
/* 2026-11-17 뜬딜 통합: 위치 줄·시설 목록 */
.crumb{font-size:12px;color:var(--ink-2,#5D7066);margin:4px 0 6px}.crumb a{color:inherit}
.flist{margin:0;padding-left:18px}.flist li{margin:0 0 8px;line-height:1.5}
/* 실내 '이 집에 맞는 딜 보기' 버튼 + 딜 시트 — 아스트라 규격(design/astra_ttd_spec.md), 뜬딜(ttdeal.kr/house/)에서만 나옴 */
.dealfab{position:absolute;left:12px;top:84px;z-index:6;display:inline-flex;align-items:center;gap:8px;width:144px;min-height:48px;padding:6px 12px;border:1px solid var(--green);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:var(--sh-float);color:var(--ink);font-family:inherit;font-size:12px;line-height:18px;font-weight:600;text-align:left;cursor:pointer}
.dealfab svg{width:16px;height:16px;flex:none;color:var(--green)}.dealfab:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.dealsheet{position:fixed;inset:0;z-index:200;background:rgba(24,40,32,.32);display:flex;align-items:flex-end;justify-content:center}
.dealsheet[hidden]{display:none}
.dealsheet .dsbox{width:100%;max-width:640px;height:60dvh;display:flex;flex-direction:column;overflow:hidden;transition:height .2s;background:var(--surface);border-radius:var(--r-sheet) var(--r-sheet) 0 0;box-shadow:var(--sh-sheet);padding:8px 16px calc(16px + var(--safe-b))}
.dealsheet .dsh{display:block;width:32px;height:4px;border-radius:4px;background:var(--line);margin:0 auto 8px}
.dealsheet header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.dealsheet h3{margin:0;font-size:20px;line-height:28px}.dealsheet #dsCtx{margin:2px 0 4px;font-size:12px;line-height:18px;color:var(--sub)}
.dealsheet .icon-btn{width:48px;height:48px;flex:none}
@media(min-width:900px){.dealsheet{justify-content:flex-end;align-items:stretch}.dealsheet .dsbox{width:380px;max-height:none;min-height:0;border-radius:var(--r-sheet) 0 0 var(--r-sheet);padding-top:16px}.dealsheet .dsh{display:none}}
@media(prefers-reduced-motion:no-preference){.dealsheet .dsbox{animation:dsup .2s ease-out}@keyframes dsup{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}}
.dealsheet.tall .dsbox{height:85dvh}.dealsheet #dsBody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.dealsheet header{flex:none}.dealsheet .dstog{flex:none;height:44px;padding:0 12px;margin-top:2px;border:1px solid var(--line);border-radius:22px;background:var(--surface);font:inherit;font-size:13px;font-weight:600;color:var(--green);cursor:pointer}
.dealsheet header>div{flex:1;min-width:0}
@media(min-width:900px){.dealsheet .dsbox,.dealsheet.tall .dsbox{height:auto}.dealsheet .dstog{display:none}}
@media(prefers-reduced-motion:reduce){.dealsheet .dsbox{transition:none}}
