:root{color-scheme:light dark;--bg:#f7f8fa;--card:#fff;--ink:#0f172a;--mute:#4b5b70;--line:#cbd5e1;--accent:#0f766e;--focus:#075985}
@media(prefers-color-scheme:dark){:root{--bg:#0b1220;--card:#121a2b;--ink:#e5e7eb;--mute:#b1bfd2;--line:#526078;--accent:#5eead4;--focus:#7dd3fc}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;word-break:keep-all}a{color:var(--accent);text-underline-offset:3px}button,input,summary{font:inherit}button,a,summary,input{touch-action:manipulation}button,summary,.map-top a,.sheet a{min-height:44px}button{border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:var(--ink);background:var(--card);cursor:pointer}button:hover,summary:hover{background:var(--bg)}button:disabled{cursor:wait;opacity:.7}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}::selection{background:var(--accent);color:var(--card)}input{caret-color:var(--accent)}[hidden]{display:none!important}
.map-top{height:56px;display:flex;align-items:center;gap:16px;padding:4px 16px;background:var(--card)}.map-top a{display:flex;align-items:center}.map-top .brand{font-weight:800;color:var(--ink);text-decoration:none}.map-top h1{font-size:16px;margin:0;flex:1}.map-top>a:last-child{font-size:14px}main{position:relative;height:calc(100dvh - 100px);min-height:440px}#map{position:absolute;inset:0;background:#e4ece9}.tools{position:absolute;top:12px;left:12px;width:330px;max-width:calc(100% - 72px);background:var(--card);padding:12px;border-radius:12px;box-shadow:0 5px 20px #0f172a26}.tools form>label{font-weight:700;font-size:13px;display:block;margin-bottom:6px}.search-row{display:flex;gap:6px}.search-row input{min-width:0;width:100%;height:44px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink)}input::placeholder{color:var(--mute);opacity:1}.search-row button{white-space:nowrap}.tool-row{display:flex;gap:6px;margin-top:8px;align-items:flex-start}.tool-row>button{white-space:nowrap;padding:8px}.tool-row details{flex:1;min-width:0}summary{display:flex;align-items:center;cursor:pointer;font-weight:600;gap:6px}summary::before{content:'+';font-size:20px}details[open]>summary::before{content:'−'}fieldset{padding:0;border:0;margin:6px 0}fieldset legend{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}fieldset label{display:flex;gap:8px;align-items:center;min-height:44px;flex-wrap:wrap}fieldset input{width:20px;height:20px;accent-color:var(--accent)}fieldset small{color:var(--mute);font-size:12px}.tools details[open]{position:absolute;top:128px;left:0;right:0;padding:12px;background:var(--card);border-radius:0 0 12px 12px;box-shadow:0 8px 12px #0f172a1a;z-index:2}.tools details p{font-size:13px;color:var(--mute);margin:6px 0}#status{margin:8px 0 0;font-size:12px;color:var(--mute)}#results{margin:8px 0 0;padding:0;list-style:none;max-height:35dvh;overflow:auto}#results li+li{border-top:1px solid var(--line)}#results button{width:100%;text-align:left;border:0;border-radius:0;overflow-wrap:anywhere}#results li>p{margin:12px 0}
.legend{position:absolute;bottom:12px;left:12px;padding:6px 12px;max-width:310px;background:var(--card);border-radius:10px;box-shadow:0 4px 16px #0f172a20;font-size:13px}.legend ol{list-style:none;margin:4px 0;padding:0}.legend li{display:flex;align-items:center;gap:8px;min-height:26px}.swatch{width:16px;height:16px;flex:none;border-radius:3px;border:1px solid var(--ink)}.legend p{color:var(--mute);margin:8px 0}.legend a{display:inline-flex;align-items:center;min-height:44px}.sheet{position:absolute;right:16px;bottom:12px;width:380px;max-width:calc(100% - 24px);max-height:65%;overflow:auto;overscroll-behavior:contain;background:var(--card);padding:20px;border-radius:14px;box-shadow:0 8px 32px #0f172a40;z-index:4;animation:slide-up .2s ease-out}.sheet h2{font-size:20px;line-height:1.4;margin:8px 50px 16px 0;overflow-wrap:anywhere}.sheet p{margin:8px 0}.sheet h3{font-size:14px;margin:18px 0 4px}.sheet ul{padding-left:20px;margin:0}.sheet a{display:flex;align-items:center;padding:4px 0}.sheet .outlook{font-size:19px;font-weight:750}.sheet .hint{font-size:13px;color:var(--mute)}#close-sheet{float:right;padding:6px 10px}.credits{min-height:44px;height:auto;flex-wrap:wrap;padding:0 8px;font-size:11px;color:var(--mute);display:flex;justify-content:space-between;gap:6px}.credits a{display:inline-flex;align-items:center;min-height:44px}.no-map{position:absolute;inset:20%;background:var(--card);padding:24px}.maplibregl-ctrl-group button{width:44px;height:44px}.maplibregl-ctrl-top-right{top:8px;right:2px}.maplibregl-ctrl-attrib{font-size:10px}.maplibregl-canvas:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}body,.sheet,#results{scrollbar-color:var(--line) var(--card);scrollbar-width:thin}
@keyframes slide-up{from{transform:translateY(16px)}}@media(prefers-reduced-motion:reduce){.sheet{animation:none}}
@media(max-width:600px){.map-top{padding:4px 12px;gap:10px}.map-top h1{font-size:14px}.map-top .brand{font-size:14px}.tools{top:8px;left:8px;width:calc(100% - 68px);padding:10px}.legend{left:8px;bottom:8px;max-width:calc(100% - 24px)}.legend[open]{max-height:48%;overflow:auto}.sheet{left:0;right:0;bottom:0;width:100%;max-width:100%;border-radius:16px 16px 0 0;padding:16px 20px;max-height:65%}}
.zoom-hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);margin:0;padding:6px 12px;border-radius:20px;background:var(--card);color:var(--ink);box-shadow:0 3px 12px #0f172a26;font-size:12px;white-space:nowrap;pointer-events:none;z-index:3}
#sheet-handle,.sheet-actions{display:none}#tools-toggle{min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:8px}
@media(max-width:600px){
  main{height:calc(100dvh - 56px);min-height:0}
  .zoom-hint{top:auto;bottom:8px;max-width:calc(100% - 16px)}
  main:has(.sheet:not([hidden])) .zoom-hint{top:10px;bottom:auto}
  .tools{z-index:3;max-height:calc(100% - 16px);overflow:auto}
  .tools.is-collapsed{width:44px;padding:0;background:none;overflow:visible}
  #tools-toggle{display:flex;margin-bottom:6px}.tools.is-collapsed #tools-toggle{margin:0}
  .tools details[open]{position:static;box-shadow:none;padding:0}
  .sheet{height:18dvh;min-height:144px;max-height:100%;padding:44px 16px 8px;overflow:hidden;display:flex;flex-direction:column;transition:height .2s ease-out;animation:none}
  .sheet[data-stage="half"]{height:50dvh}.sheet[data-stage="full"]{height:90dvh}
  #sheet-handle{display:flex;position:absolute;top:0;left:calc(50% - 44px);width:88px;height:44px;align-items:center;justify-content:center;border:0;background:transparent;touch-action:none;cursor:ns-resize}
  #sheet-handle span{width:40px;height:4px;border-radius:2px;background:var(--mute)}
  /* The 44px handle ends 4px into the title line, so the global ring (2px out) crossed the name's letters; ringing the grip keeps it 8-36px, clear of the title at 40px */
  #sheet-handle:focus-visible{outline:none}#sheet-handle:focus-visible span{outline:3px solid var(--focus);outline-offset:9px}
  #close-sheet{position:absolute;top:4px;right:12px;min-width:44px;float:none}
  .sheet h2{font-size:18px;flex-shrink:0;line-height:26px;margin:0 80px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sheet #sheet-outlook{font-size:15px;line-height:24px;flex-shrink:0;margin:2px 80px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sheet-actions{display:flex;gap:6px;flex-shrink:0;min-height:44px;margin:4px 0}
  .sheet-actions button{min-width:64px;min-height:44px}
  .sheet[data-stage="peek"] .sheet-actions{position:absolute;right:16px;bottom:12px;margin:0}
  #sheet-content{padding-bottom:env(safe-area-inset-bottom)}.sheet[data-stage="peek"] .sheet-body{overflow:hidden}
  .sheet.is-dragging{transition:none}
}
@media(prefers-reduced-motion:reduce){.sheet{animation:none;transition:none}}
.hub-nav{height:56px;display:flex;align-items:stretch;gap:8px;padding:4px 12px;background:var(--card);border-top:1px solid var(--line);position:relative;z-index:6}
.hub-nav>a,.hub-nav>button,.hub-nav summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px 12px;text-decoration:none;font-weight:600;border:0;border-radius:0;background:transparent;color:var(--ink)}
.hub-nav>button[aria-expanded="true"],.hub-nav a:hover{color:var(--accent);background:var(--bg)}
.more-links{position:absolute;top:100%;right:12px;width:260px;max-width:calc(100vw - 24px);padding:8px;background:var(--card);border:1px solid var(--line)}
.more-links a{display:flex;align-items:center;min-height:44px;padding:8px;color:var(--ink)}
main{height:calc(100dvh - 156px);min-height:320px}.tools{width:288px}.tool-row{margin-top:0}.tools:has(form:not([hidden])) .tool-row{margin-top:8px}.tools details[open]{top:60px}.tools:has(form:not([hidden])) details[open]{top:118px}
.sheet{width:440px;max-height:calc(100% - 124px);display:flex;flex-direction:column;padding:16px;overflow:hidden}.sheet h2{font-size:18px;margin:0 60px 4px 0}.sheet #sheet-outlook{font-size:14px;line-height:1.5;margin:0 0 10px;white-space:normal;overflow:visible}.sheet #close-sheet{position:absolute;right:12px;top:8px}
.sheet-actions{display:none}.hub-actions{display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0;margin:0 0 6px;padding:4px}.hub-actions>a,.hub-actions>button{display:flex;align-items:center;justify-content:center;text-align:center;flex:none;min-width:44px;height:44px;min-height:44px;padding:0 12px;font-size:13px;line-height:1.4;white-space:nowrap;border:1px solid var(--line);border-radius:22px;text-decoration:none;color:var(--ink);background:var(--bg)}
.hub-actions>button[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}
/* Everything under the title scrolls as one body with the price head stuck on top; a fixed summary over its own scroller left 165px (1280x800) to 278px (375x740) to read in. The summary box steps aside so the head can stick to the body. */
.sheet-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}.sheet-body>*,#sheet-summary>*{flex-shrink:0}#sheet-summary:has(>.cx-head){display:contents}
.sheet .evidence{font-size:13px;line-height:1.5;margin:4px 0}.sheet .hint{font-size:12px;line-height:1.5;margin:6px 0}.sheet .sale-row{font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.sheet .complex-list{padding:0;list-style:none}.complex-list li+li{border-top:1px solid var(--line)}.complex-list li{display:flex;align-items:stretch;gap:2px}.complex-list .row-main{flex:1;min-width:0;text-align:left;border:0;border-radius:0;padding:4px;line-height:1.35;overflow-wrap:anywhere}.sheet .complex-list a{flex:none;justify-content:center;min-width:44px;padding:0 6px;font-size:13px}.complex-list small{display:block;color:var(--mute)}
main:has(.sheet:not([hidden])) .legend{visibility:hidden}
#sheet-summary{flex-shrink:0}.sheet .facts{font-size:13px;color:var(--mute);margin:0 0 2px;overflow-wrap:anywhere}.sheet #sheet-summary .sale-row{margin:2px 0}.list-head{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line)}.sheet .list-head h3{margin:0;font-size:14px}.list-head button,.more-rows{font-size:13px;padding:6px 10px}.more-rows{width:100%;margin:6px 0}
@media(max-width:600px){
  .map-top{height:48px}.map-top h1{font-size:13px}.map-top .brand{font-size:13px}
  .hub-nav{position:fixed;bottom:0;left:0;right:0;height:calc(60px + env(safe-area-inset-bottom));padding:4px 4px calc(4px + env(safe-area-inset-bottom));gap:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
  .hub-nav>a,.hub-nav>button,.hub-nav summary{font-size:12px;padding:4px;white-space:nowrap;min-width:0;height:100%}.hub-nav summary::before{display:none}.more-links{top:auto;bottom:100%;right:4px}
  main{height:calc(100dvh - 152px - env(safe-area-inset-bottom));min-height:0}.credits{height:44px;min-height:44px;font-size:11px;gap:2px;padding:0 4px}.credits a{min-height:44px}
  /* 100% - 116px: a half sheet leaves the zoom and tools buttons (they end 106px below the map top) uncovered */.sheet{transition:none;height:min(50dvh,100% - 116px);min-height:min(360px,100% - 116px);max-height:100%;padding:40px 12px 8px}.sheet[data-stage="half"]{height:min(50dvh,100% - 116px)}.sheet[data-stage="full"]{height:100%}.sheet[data-stage="peek"]{height:auto;min-height:144px}
  .sheet h2{font-size:16px;line-height:22px;margin:0 0 4px;flex-shrink:0}.sheet #sheet-outlook{margin:0 0 8px;font-size:13px;line-height:18px;flex-shrink:0;white-space:normal}.sheet-actions{display:none}
  .hub-actions{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-padding-inline:4px 20px;padding-right:20px;margin-bottom:4px;mask-image:linear-gradient(to right,#000 calc(100% - 16px),transparent)}.hub-actions::-webkit-scrollbar{display:none}
  .tools details[open]{position:static}.tools:has(form:not([hidden])) details[open]{top:auto}.tools.is-collapsed{max-height:44px}
  .sheet[data-stage="peek"] #sheet-summary>:not(#sheet-outlook){display:none}
  /* 배치 안 3: the half sheet ends at the chips; one wide button says the graphs lie below */
  /* 배치 안 3: the wide button only where the half sheet still shows the first rows under it (320x568 keeps the small one) */
  @media(min-height:640px){.sheet[data-stage="half"][data-kind="c"] .sheet-actions{display:flex;justify-content:center;margin:6px 0 0}.sheet[data-stage="half"][data-kind="c"] #sheet-collapse{display:none}.sheet[data-stage="half"][data-kind="c"] #sheet-expand{width:100%;border-radius:22px;font-weight:600}.sheet[data-stage="half"][data-kind="c"] #sheet-expand::before{content:'▲ ' / ''}}
}

@media(min-width:601px){.sheet h2{min-height:32px}}
@media(min-width:601px) and (max-width:747px){.tools{width:250px}.sheet{width:calc(100% - 286px);max-width:440px}}
#sheet-title:focus{outline:none}
.filter-row{display:flex;gap:8px;overflow-x:auto;padding:4px 3px 8px;margin:4px -3px 0;scrollbar-width:thin;align-items:center}
.filter-row button{flex:none;white-space:nowrap;border-radius:22px;min-width:44px;font-size:13px}
.filter-row button.is-active{border-color:var(--accent);color:var(--accent);font-weight:700;background:var(--bg)}
.filter-options{padding:4px 10px;margin:0 0 8px;border:1px solid var(--line);border-radius:8px;background:var(--card)}
.filter-options label{min-height:44px;font-size:14px;cursor:pointer}.filter-options input{flex:none}
.price-caption{position:absolute;left:12px;bottom:74px;max-width:calc(100% - 80px);pointer-events:none;font-size:11px;color:var(--ink)}
.price-caption p{margin:0;padding:5px 8px;background:var(--card);border:1px solid var(--line);border-radius:6px}
.legend[open]{max-height:50%;overflow:auto;z-index:3}#map-values{list-style:none;padding:0;margin:0}#map-values li{display:block;margin:4px 0}#map-values button{width:100%;text-align:left;font-size:13px;min-width:44px;overflow-wrap:anywhere}
main:has(.sheet:not([hidden])) .price-caption{visibility:hidden}
@media(max-width:600px){.price-caption{left:8px;bottom:68px;max-width:calc(100% - 16px)}}

.dong-prices{margin:0 0 4px;font-variant-numeric:tabular-nums}
.sheet .dong-price{font-size:13px;line-height:1.4;margin:0;font-weight:600;overflow-wrap:anywhere}
.sheet .source-chip{font-size:11px;line-height:1.35;color:var(--mute);margin:2px 0 4px;overflow-wrap:anywhere}
.fact-chip{color:var(--mute);background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:2px 4px}
.complex-list .row-price{float:right;text-align:right;font-weight:700;font-variant-numeric:tabular-nums;margin-left:6px;white-space:nowrap}
.complex-list .row-price small{font-weight:400}
.complex-list .fact-chip{clear:both;font-size:11px}
.sheet .list-head{flex-wrap:wrap;gap:0 8px}.sheet .list-head .sort{margin-left:auto}
#change-colors{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:2px;font-size:11px}#change-colors li{display:flex;gap:6px;align-items:center}

.layer-strip{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:7px 8px;border:1px solid var(--line);border-radius:6px;background:var(--card);font-size:11px}
.strip-colors{display:flex;min-width:35px;flex:1;height:10px}.strip-colors i{flex:1;min-width:5px}
#metric-colors{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;font-size:11px;gap:4px}
.show-prices{align-self:center;pointer-events:auto;font-weight:700;box-shadow:0 4px 14px #0f172a26;min-width:144px}
.school-marker{background:var(--card);color:var(--ink);border:2px solid var(--accent);padding:6px 10px;border-radius:8px;font-size:13px;box-shadow:0 3px 10px #0f172a26;max-width:220px;overflow-wrap:anywhere}
.school-marker::before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--accent);margin-right:6px}
.step-gauge{display:flex;align-items:center;gap:3px;margin:6px 0 0;font-size:12px;font-weight:400;color:var(--mute)}.step-gauge::before{content:attr(data-less);margin-right:5px}.step-gauge::after{content:attr(data-more);margin-left:5px}.step-gauge i{flex:1;height:8px;border-radius:2px;opacity:.3}.step-gauge i.on{height:14px;opacity:1;outline:2px solid var(--ink);outline-offset:1px}.sheet a.score-link{min-height:44px}
.forecast-prob{margin:4px 0 14px}.prob-bar{height:12px;display:flex;overflow:hidden;border-radius:3px;background:var(--bg)}
.prob-more{background:#b95b3c}.prob-less{background:#50759b}.prob-labels{display:flex;justify-content:space-between;gap:12px;margin-top:5px;font-size:12px;font-variant-numeric:tabular-nums}.prob-labels span{flex:1}.prob-labels span+span{text-align:right}
/* The price head stays on top of the scrolling body: phones in the full sheet, wider screens always. z-index keeps positioned content (compare bars, chart marks) under it. */
.sheet[data-stage="full"] .cx-head{position:sticky;top:0;z-index:2;padding-bottom:6px;background:var(--card);box-shadow:0 3px 4px -3px #0f172a66}.sheet[data-stage="full"] .sheet-body{scroll-padding-top:calc(var(--head-h) + 8px)}
@media(min-width:601px){.sheet .cx-head{position:sticky;top:0;z-index:2;padding-bottom:6px;background:var(--card);box-shadow:0 3px 4px -3px #0f172a66}.sheet .sheet-body{scroll-padding-top:calc(var(--head-h) + 8px)}}
.sheet .list-head .filter-count{flex:1;min-width:0;font-size:12px;color:var(--mute);margin:0;font-weight:500}
/* 44px: under it the 금액 strip (shorter title) kept one line by squeezing 7 colours to 32px at 375; every other strip is 46px+ at 320, so none wraps more */
@media(max-width:600px){.layer-strip{gap:4px;font-size:10px}.strip-colors{min-width:44px}}

.filter-row button:focus{outline:3px solid var(--focus);outline-offset:2px}

.map-notes{position:absolute;left:12px;bottom:12px;max-width:560px;width:calc(100% - 80px);display:flex;flex-direction:column;gap:6px;pointer-events:none}
.map-notes .price-caption{position:static;max-width:100%;display:flex;flex-direction:column;gap:4px}
.map-notes .legend{position:static;align-self:flex-start;max-width:100%;pointer-events:auto}
.map-notes .legend[open]{max-height:40dvh;overflow:auto}
main:has(.legend[open]) .show-prices{display:none}
.layer-strip{flex-wrap:wrap;white-space:normal}.layer-strip small{flex-basis:100%;font-size:10px;order:2}
.strip-info{display:contents}
/* the number basis is the strip's last line: one box explains both the colour and the numbers */
.price-caption .layer-strip>p{flex-basis:100%;order:3;padding:0;border:0;border-radius:0;background:none;font-size:10px;color:var(--mute)}
.map-notes .legend:not([open]){padding-block:0}
.change-controls{display:flex;flex-wrap:wrap;gap:4px 12px;flex-basis:100%;order:1}.change-controls:not(:has(>:not([hidden]))){display:none}
.period-group{display:flex;gap:4px;flex:none;pointer-events:auto}.period-group[hidden]{display:none}
.period-group label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:var(--bg);font-size:13px;font-weight:700;cursor:pointer}
.period-group label[hidden]{display:none}
.period-group input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.period-group label:has(input:checked){border-color:var(--accent);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.period-group label:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.sheet .dong-activity{font-size:12px;line-height:1.5;margin:4px 0 0;font-variant-numeric:tabular-nums}
@media(max-width:600px){.map-notes{left:8px;bottom:8px;width:calc(100% - 16px)}.tools.is-collapsed~.sheet[data-stage="half"]:has(.dong-activity){min-height:min(480px,100% - 116px)}}

.window-note{margin:8px 0;padding:8px 10px;border-left:3px solid var(--muted,#64748b);font-size:13px;line-height:1.55;background:var(--bg,#f3f5f7)}
.window-legend{display:block;margin-top:4px}

/* 표시할 정보 1차: 묶음 제목과 체크 옆 모양 견본(지도 위 모양과 같게) */
#layers .layer-head{margin:10px 0 0;font-weight:700;font-size:14px}#layers .layer-head small{font-weight:400}
#layers .lk{display:inline-block;width:22px;height:0;border-top:4px solid #7c3aed;flex:none}#layers .lk-road{border-top:2px dashed var(--mute);height:5px;border-bottom:2px dashed var(--mute)}#layers .lk-industry,#layers .lk-renewal,#layers .lk-mixed,#layers .lk-airport,#layers .lk-school{width:14px;height:14px;border:0;border-radius:50%;margin:0 4px}#layers .lk-industry{background:#b45309}#layers .lk-renewal{background:#15803d}#layers .lk-mixed{background:#e11d48}#layers .lk-airport{background:#475569}#layers .lk-school{background:var(--ink)}#layers .lk-life{width:16px;height:11px;border:2px solid #047857;background:#ecfdf5;border-radius:3px;margin:0 3px}
/* phones: an opened list takes its own full-width row under the 내 위치·공유 buttons (at 320px it shared the row and shrank to 100px) */
@media(max-width:600px){.tool-row:has(#layers[open]){flex-wrap:wrap}.tools #layers[open]{flex-basis:100%;order:1}}
/* phones (user request 11-09): on-map controls at half size, boxes hugging their text so the map shows; each keeps a wider invisible tap area */
@media(max-width:600px){.tools{padding:6px;width:auto;max-width:calc(100% - 48px)}.tools #search-form label{font-size:11px;margin:0 0 2px}.search-row,.tool-row{gap:4px}
.tools input,.tools button,.tools summary,#show-prices,.legend summary,#tools-toggle{min-height:24px;min-width:0;height:auto;padding:2px 6px;font-size:12px;line-height:18px;border-radius:6px}
.tools #search{width:150px}.tools svg{width:14px;height:14px}.tools.is-collapsed{width:28px;max-height:28px}
.maplibregl-ctrl-group button{width:26px;height:26px;min-height:0}.maplibregl-ctrl-group button .maplibregl-ctrl-icon{background-size:22px}
.tools button,.tools summary,#show-prices,.legend summary,.maplibregl-ctrl-group button{position:relative}.tools button::after,.tools summary::after,#show-prices::after,.legend summary::after,.maplibregl-ctrl-group button::after{content:"";position:absolute;inset:-6px -2px}}
/* phones (user request 11-09): glass instead of white cards, raised like a soft key; pinch zoom replaces the +/- buttons */
@media(max-width:600px){.maplibregl-ctrl-top-right .maplibregl-ctrl-group{display:none}
.tools:not(.is-collapsed),.legend,.layer-strip,.tools button,.tools summary,.tools input,#show-prices{background:color-mix(in srgb,var(--card) 42%,transparent);-webkit-backdrop-filter:blur(10px) saturate(1.4);backdrop-filter:blur(10px) saturate(1.4);border:1px solid color-mix(in srgb,var(--card) 70%,transparent);box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 70%,transparent),inset 0 -1px 2px #0f172a14,0 3px 10px #0f172a24}
.tools button,.tools summary,.tools input,#show-prices{box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 80%,transparent),inset 0 -2px 3px #0f172a1a,0 2px 5px #0f172a2e}.tools button:active,#show-prices:active{box-shadow:inset 0 2px 4px #0f172a2e}}
/* search panel: one 4px step between every row */
.tools #search-form label{margin:0 0 4px}.tools .filter-row{padding:2px 3px;margin:2px -3px 0}.tools:has(form:not([hidden])) .tool-row{margin-top:4px}.tools:has(form:not([hidden])):has(#complex-filters:not([hidden])) .tool-row{margin-top:2px}
/* desktop 288px panel: four filter buttons fit without a scrollbar */
@media(min-width:601px){.tools .filter-row{gap:4px}.tools .filter-row button{padding-inline:10px}}
