:root{--bg:#fff;--fg:#1f2328;--muted:#5b636b;--line:#d0d4d9;--accent:#1f4e79;--shadow:0 1px 4px #00000040;--card-width:380px;color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}#app{position:fixed;inset:0}.map{position:absolute;inset:0}[hidden]{display:none!important}button{font:inherit;color:inherit;cursor:pointer}a{color:var(--accent)}.search{z-index:5;width:340px;max-width:calc(100% - 24px);position:absolute;top:12px;left:12px}.search__input{width:100%;font:inherit;border:1px solid var(--line);background:var(--bg);box-shadow:var(--shadow);border-radius:6px;padding:10px 12px;font-size:16px}.search__list{background:var(--bg);box-shadow:var(--shadow);border-radius:6px;max-height:40vh;margin:4px 0 0;padding:0;list-style:none;overflow-y:auto}.search__list:empty{display:none}.search__list li{cursor:pointer;border-bottom:1px solid #eceef0;padding:9px 12px}.search__list li:last-child{border-bottom:0}.search__list li[aria-selected=true],.search__list li:hover{background:#eef2f6}.search__list li[aria-disabled=true]{color:var(--muted);cursor:default;background:var(--bg)}.status{z-index:4;max-width:calc(100% - 24px);margin:0;position:absolute;top:58px;left:12px}.status:empty{display:none}.status{background:var(--bg);box-shadow:var(--shadow);border-radius:6px;padding:6px 10px;font-size:14px}.panel{z-index:3;background:var(--bg);width:340px;max-width:calc(100% - 24px);box-shadow:var(--shadow);border-radius:6px;max-height:calc(100% - 140px);position:absolute;top:64px;left:12px;overflow-y:auto}.status:not(:empty)~.panel{max-height:calc(100% - 180px);top:104px}.panel__summary{cursor:pointer;padding:10px 12px;font-weight:600}.panel__caption{color:var(--muted);font-weight:400}.switcher{padding:0 12px 8px}.layer-group,.indicator-group{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.switcher button{border:1px solid var(--line);background:var(--bg);text-align:left;border-radius:6px;padding:6px 10px;font-size:14px}.switcher button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.legend{padding:0 12px 12px}.legend-title{margin:0 0 6px;font-size:14px}.legend-list{margin:0;padding:0;font-size:14px;list-style:none}.legend-list li{align-items:center;gap:8px;margin:3px 0;display:flex}.legend-swatch{border:1px solid #00000040;flex:none;width:18px;height:14px}.legend-swatch--dot{border:2px solid #fff;border-radius:50%;width:12px;height:12px;margin:0 3px;box-shadow:0 0 0 1px #00000040}.legend-swatch--ring{background:#fff;border-width:2px;width:10px;height:10px;margin:0 4px}.maplibregl-ctrl-bottom-left{z-index:2}.sources-link{padding:0 6px}.maplibregl-ctrl-bottom-right{z-index:2}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 12px 8px 0}.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group:not(:empty){border:1px solid var(--line);background:var(--bg);box-shadow:var(--shadow);border-radius:6px;overflow:hidden}.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button{width:44px;height:44px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button+button{border-top:1px solid var(--line)}.tilt-ctrl__button{border:1px solid var(--line);background:var(--bg);width:44px;height:44px;color:var(--fg);box-shadow:var(--shadow);border-radius:6px;padding:0;font-size:15px;font-weight:600;display:block}.tilt-ctrl__button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}.has-card .maplibregl-ctrl-bottom-right{right:var(--card-width)}.card{z-index:6;background:var(--bg);box-shadow:var(--shadow);width:var(--card-width);scrollbar-gutter:stable;padding:0;position:absolute;top:0;bottom:0;right:0;overflow:hidden auto}.card__handle{display:none}.card__content{padding:12px 16px 24px}.card__header{padding-right:88px;position:relative}.card__header h2{margin:0 0 2px;font-size:18px;font-weight:600;line-height:1.4}.card__subtitle{color:var(--muted);margin:0;font-size:13px}.card__header h2:focus{outline:none}.card__close{border:1px solid var(--line);background:var(--bg);border-radius:6px;padding:4px 10px;font-size:13px;position:absolute;top:0;right:0}.card__content{font-variant-numeric:tabular-nums;font-size:15px;line-height:1.4}.card__section{border-top:1px solid #e3e6e9;margin-top:20px;padding-top:16px}.card__section h3{margin:0 0 8px;font-size:15px;font-weight:600;line-height:1.4}.card__section p,.card__outside{margin:8px 0 0}.card__note{color:var(--muted);margin:8px 0 0;font-size:13px}.card__grid,.card__kvs{grid-template-columns:minmax(0,1fr) auto auto;gap:4px 12px;margin:0 0 8px;display:grid}.card__indicator{display:contents}.card__value{text-align:right;white-space:nowrap;font-weight:600}.card__unit{color:var(--muted);font-size:13px;font-weight:400}.card__indicator--range .card__value{grid-column:2/4}.card__indicator--range .card__norm{grid-column:1/4;margin-bottom:4px}.card__value--above{text-underline-offset:3px;text-decoration:underline;text-decoration-thickness:2px}.card__norm{color:var(--muted);text-align:right;white-space:nowrap;align-self:baseline;font-size:13px}.card__kvs{grid-template-columns:auto minmax(0,1fr)}.card__kv{display:contents}.card__kv-value{text-align:right}.card__kg-list{margin:12px 0 0;padding:0;list-style:none}.card__kg{border-top:1px solid #eceef0;padding:12px 0}.card__kg-further+.card__kg-list{margin-top:8px}.card__kg:first-child{border-top:0;padding-top:0}.card__kg-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.card__kg-time{white-space:nowrap;font-weight:600}.card__metro-min,.card__num{font-weight:600}.card__kg .card__kg-addr,.card__kg .card__school-not-counted{margin:2px 0 0}.card__places{margin:8px 0 0}.card__places--text,.card__places-title{color:var(--muted);font-size:13px}.card__places-grid{grid-template-columns:repeat(var(--cols,5), minmax(0, 1fr));margin-top:2px;display:grid}.card__age{color:var(--muted);font-size:13px}.card__count{font-weight:600}.card__outside{margin:16px 0}.map-notice{z-index:4;background:var(--bg);max-width:calc(100% - 24px);box-shadow:var(--shadow);border-radius:6px;margin:0;padding:6px 12px;font-size:14px;position:absolute;bottom:40px;left:50%;transform:translate(-50%)}.legend-source{color:var(--muted);margin:8px 0 0;font-size:13px}.load-error__sources{font-size:16px}.load-error{z-index:20;background:var(--bg);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;display:flex;position:absolute;inset:0}.load-error p{margin:0;font-size:18px}.load-error button{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:6px;padding:8px 18px}@media (width<=640px){.search{width:auto;right:12px}.panel{width:auto;max-height:calc(100dvh - 110px);top:62px;right:12px}.status:not(:empty)~.panel{max-height:calc(100dvh - 150px);top:102px}.panel:not([open]){max-height:none}.card{width:auto;max-height:min(60vh,100dvh - 330px);padding-bottom:env(safe-area-inset-bottom);border-radius:12px 12px 0 0;inset:auto 0 0}.card__handle{z-index:1;background:var(--bg);width:100%;color:var(--muted);border:0;border-bottom:1px solid #eceef0;padding:8px;font-size:13px;display:block;position:sticky;top:0}.has-card .maplibregl-ctrl-bottom-left{bottom:var(--card-h,0px)}.maplibregl-ctrl-bottom-right{bottom:44px}.has-card .maplibregl-ctrl-bottom-right{right:0;bottom:calc(var(--card-h,0px) + 8px)}.panel-open .maplibregl-ctrl-bottom-right{display:none}.has-card .map-notice{bottom:calc(var(--card-h,0px) + 40px)}.card--collapsed .card__content>:not(.card__header){display:none}.card--collapsed .card__content{padding-bottom:12px}}@media (width<=640px) and (height<=600px){.panel__summary{padding:8px 12px}.switcher{padding-bottom:4px}.layer-group,.indicator-group{gap:4px;margin-bottom:6px}.switcher button{padding:4px 8px}.legend{padding-bottom:8px}.legend-title{margin-bottom:4px}.legend-list li{margin:1px 0}.legend-source{margin-top:4px}}.legend-note{margin:8px 0 0;font-size:13px}
