.tm-district-picker { color-scheme:light; color:var(--tm-ink); background:var(--tm-panel); font-family:var(--tm-font-sans); padding:var(--tm-space-3); border-radius:var(--tm-radius-md); min-width:0; }
.tm-district-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--tm-space-2); }
.tm-district-regions { display:flex; gap:var(--tm-space-1); min-width:0; }
.tm-district-picker .tmc-button { min-height:var(--tm-control-height); min-width:var(--tm-control-height); font-size:var(--tm-font-control-small); white-space:nowrap; }
.tm-district-picker .tm-district-regions .tmc-button { padding-inline:var(--tm-space-3); }
.tm-district-regions [aria-pressed=true] { box-shadow:inset 0 -3px 0 var(--tm-accent-strong); }
.tm-district-search-label { min-width:0; }
.tm-district-search-label input { min-height:var(--tm-control-height); width:100%; min-width:0; box-sizing:border-box; }
.tm-district-map-head { min-height:var(--tm-control-height); display:flex; gap:var(--tm-space-2); align-items:center; margin-top:var(--tm-space-2); }
.tm-district-heading { font-size:var(--tm-font-control-small); font-weight:600; margin:0; }
.tm-district-status { min-height:calc(var(--tm-control-height) * .65); font-size:var(--tm-font-control-small); margin:var(--tm-space-1) 0; overflow-wrap:anywhere; }
.tm-district-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:var(--tm-space-4); }
.tm-district-map-panel,.tm-district-list-panel { min-width:0; }
.tm-district-map { display:block; width:100%; height:88vh; min-height:calc(var(--tm-control-height) * 8); background:#fafbfa; border-radius:var(--tm-radius-md); overflow:hidden; shape-rendering:geometricPrecision; touch-action:none; }
.tm-district-zoom { display:flex; justify-content:flex-end; gap:var(--tm-space-1); }
.tm-district-ao-outline { fill:none; stroke:#ffffff; stroke-width:1.7; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; pointer-events:none; }
.tm-district-selected-ao { stroke:var(--tm-accent-strong); stroke-width:2.5; }
.tm-district-selection-layer { pointer-events:none; }
.tm-district-selection-contour { fill:none; stroke:var(--tm-accent-strong); stroke-width:2.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.tm-district-outline.tm-district-kind-municipality .tm-district-boundary { fill:#f0f2f1; }
.tm-district-outline.tm-district-in-scope .tm-district-boundary { fill:var(--tm-map-tone); stroke:#ffffff; }
.tm-district-list-group { display:grid; gap:var(--tm-space-1); margin-bottom:var(--tm-space-5); border-top:2px solid var(--tm-line); padding-top:var(--tm-space-3); }
.tm-district-group-heading,.tm-district-region-heading { margin:0; font-size:var(--tm-font-control-small); }
.tm-district-picker .tm-district-group-choice { font-weight:600; background:var(--tm-panel-soft); }
.tm-district-boundary { fill:var(--tm-map-tone,var(--tm-accent-soft)); stroke:#ffffff; stroke-width:.85; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.tm-district-tone-0 { --tm-map-tone:var(--tm-map-tone-0,color-mix(in srgb,var(--tm-indigo) 25%,var(--tm-white))); }
.tm-district-tone-1 { --tm-map-tone:var(--tm-map-tone-1,color-mix(in srgb,var(--tm-purple) 25%,var(--tm-white))); }
.tm-district-tone-2 { --tm-map-tone:var(--tm-map-tone-2,color-mix(in srgb,var(--tm-sky) 25%,var(--tm-white))); }
.tm-district-tone-3 { --tm-map-tone:var(--tm-map-tone-3,color-mix(in srgb,var(--tm-teal) 25%,var(--tm-white))); }
.tm-district-tone-4 { --tm-map-tone:var(--tm-map-tone-4,color-mix(in srgb,var(--tm-lime) 25%,var(--tm-white))); }
.tm-district-tone-5 { --tm-map-tone:var(--tm-map-tone-5,color-mix(in srgb,var(--tm-coral) 25%,var(--tm-white))); }
.tm-district-tone-6 { --tm-map-tone:var(--tm-map-tone-6,color-mix(in srgb,var(--tm-indigo) 40%,var(--tm-white))); }
.tm-district-tone-7 { --tm-map-tone:var(--tm-map-tone-7,color-mix(in srgb,var(--tm-purple) 40%,var(--tm-white))); }
.tm-district-tone-8 { --tm-map-tone:var(--tm-map-tone-8,color-mix(in srgb,var(--tm-sky) 40%,var(--tm-white))); }
.tm-district-tone-9 { --tm-map-tone:var(--tm-map-tone-9,color-mix(in srgb,var(--tm-teal) 40%,var(--tm-white))); }
.tm-district-tone-10 { --tm-map-tone:var(--tm-map-tone-10,color-mix(in srgb,var(--tm-lime) 40%,var(--tm-white))); }
.tm-district-tone-11 { --tm-map-tone:var(--tm-map-tone-11,color-mix(in srgb,var(--tm-coral) 40%,var(--tm-white))); }
.tm-district-shape { cursor:pointer; outline:none; }
.tm-district-outline[aria-pressed=true] .tm-district-boundary { fill:var(--tm-map-tone); stroke:var(--tm-accent-strong); stroke-width:2.5; }
.tm-district-outline.tm-district-kind-municipality[aria-pressed=true] .tm-district-boundary,
.tm-district-outline.tm-district-kind-municipality.tm-district-in-scope .tm-district-boundary { fill:#f0f2f1; }
.tm-district-map-hit { fill:transparent; stroke:none; vector-effect:non-scaling-stroke; }
.tm-district-label { fill:#252b29; font-family:var(--tm-font-sans); font-weight:750; pointer-events:none; stroke:none; }
.tm-district-label--ao { fill:#65111b; font-weight:800; }
.tm-district-map-name { pointer-events:none; }
.tm-district-map-control:focus-visible .tm-district-map-hit { fill:transparent; stroke:var(--tm-ink); stroke-width:3; }
.tm-district-picker .tm-district-map-control:focus-visible { outline:none; }
.tm-district-list { display:grid; gap:var(--tm-space-1); max-height:88vh; overflow:auto; padding:var(--tm-space-1); }
.tm-district-picker .tm-district-choice.tmc-button { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--tm-space-3); width:100%; padding-inline:var(--tm-space-3); text-align:left; white-space:normal; box-shadow:none; }
.tm-district-choice-name { min-width:0; white-space:normal; overflow-wrap:normal; }
.tm-district-choice[aria-pressed=true] { background:var(--tm-accent-soft); color:var(--tm-ink); border-color:var(--tm-accent-strong); }
.tm-district-count { min-width:var(--tm-space-6); color:var(--tm-ink-soft); text-align:right; font-variant-numeric:tabular-nums; }
.tm-district-empty .tm-district-choice-name { color:var(--tm-ink-soft); }
.tm-district-zero-summary { min-height:var(--tm-control-height); display:flex; align-items:center; cursor:pointer; color:var(--tm-ink-soft); font-size:var(--tm-font-control-small); padding-inline:var(--tm-space-3); }
.tm-district-zero-summary::before { content:'+'; margin-right:var(--tm-space-2); }
.tm-district-zero-list[open] .tm-district-zero-summary::before { content:'−'; }
.tm-district-zero-rows { display:grid; gap:var(--tm-space-1); }
.tm-district-copyright { margin:var(--tm-space-1) 0; font-size:var(--tm-font-caption); color:var(--tm-ink-soft); }
.tm-district-copyright a { display:inline-flex; align-items:center; min-height:var(--tm-control-height); min-width:var(--tm-control-height); color:var(--tm-ink-soft); text-decoration:underline; }
.tm-district-picker :focus-visible { outline:3px solid var(--tm-accent-strong); outline-offset:2px; }
.tm-district-picker [hidden] { display:none; }
@media(max-width:1199px) { .tm-district-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:700px) { .tm-district-toolbar { grid-template-columns:minmax(0,1fr) auto; } .tm-district-regions { grid-column:1 / -1; } .tm-district-map-head { flex-wrap:wrap; } .tm-district-map { min-height:0; height:60vh; } .tm-district-list { max-height:60vh; overflow:auto; } .tm-district-map-panel,.tm-district-choice { scroll-margin-block-end:calc(var(--tm-control-height)*2 + env(safe-area-inset-bottom)); } .tm-district-list-panel { padding-bottom:calc(var(--tm-control-height)*2 + env(safe-area-inset-bottom)); } }
