.electoral-map .em-settings{padding:18px 22px}.em-settings form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.em-settings label{flex:1;min-width:160px;margin:0}.em-settings label:first-child{flex:2;min-width:210px}.em-settings button{min-height:44px}.em-context{font-size:12px;color:var(--muted);line-height:1.6;margin:14px 0 0}.em-feedback{font-size:14px;line-height:1.6;min-height:22px;color:var(--green);margin:12px 0}.em-feedback.em-error{color:#9f3528}.em-filters{display:grid;grid-template-columns:90px minmax(140px,1fr) minmax(180px,1.5fr) 120px 120px auto auto;gap:12px;align-items:end;margin-bottom:22px}.em-filters label{margin:0;font-size:12px}.em-filters button{min-height:44px}.em-stats .stat strong{font-size:32px}.em-map-heading{flex-wrap:wrap}.em-map-heading small{display:block;margin-top:8px;line-height:1.5}.em-view{display:flex;border:1px solid var(--line);border-radius:8px;padding:3px;gap:3px}.em-view button{border:0;background:transparent;padding:8px 16px;border-radius:6px;min-height:40px}.em-view button[aria-pressed=true]{background:var(--green);color:white}.em-local-filter{padding:16px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px}.em-local-filter label{margin:0;width:min(100%,450px);font-size:12px}.em-local-filter small{font-size:12px;color:var(--muted);max-width:360px;line-height:1.5}.em-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px}.em-map-canvas{height:490px;background:#eef1e9;z-index:0}.em-map-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.em-map-empty>span{font-size:44px;color:#648365}.em-map-empty h3{margin:12px 0}.em-map-empty p{max-width:400px;font-size:14px;line-height:1.7;color:var(--muted)}.em-map-legend{padding:10px 18px;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;margin:0}.em-map-legend i{width:9px;height:9px;border-radius:50%;background:#245b46}.em-detail{padding:24px;border-left:1px solid var(--line);max-height:535px;overflow-y:auto}.em-detail>.eyebrow{font-size:10px}.em-detail h3{line-height:1.5;margin:8px 0 12px;font-size:18px}.em-detail p{font-size:13px;line-height:1.7;color:var(--muted)}.em-details{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.em-details dt{font-size:11px;color:var(--muted);margin-bottom:6px}.em-details dd{font-size:14px;margin:0;overflow-wrap:anywhere}.em-detail h4{font-size:13px}.em-sections{display:flex;flex-wrap:wrap;gap:8px}.em-sections>span{border:1px solid var(--line);border-radius:7px;padding:9px;font-size:12px}.em-sections small{display:block;color:var(--muted);margin-top:5px;font-size:11px}.em-local-list{height:490px;overflow-y:auto}.em-local{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);background:white;padding:20px 22px;border-radius:0}.em-local:hover,.em-local:focus-visible{background:#f0f5ed}.em-local strong{display:block;font-size:14px;color:var(--green);line-height:1.5}.em-local span,.em-local small{display:block;font-size:12px;color:var(--muted);margin-top:7px;line-height:1.5}.em-sources{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0}.em-sources strong{font-size:13px;color:var(--green)}.em-sources a{color:var(--green)}.em-sources small{font-size:12px}.electoral-map button:disabled{opacity:.55;cursor:not-allowed}.electoral-map .leaflet-control-zoom a{color:#234b38}.electoral-map .leaflet-container{font:inherit}.electoral-map .leaflet-control-attribution{font-size:10px}.electoral-map .leaflet-tooltip{font-size:12px;max-width:240px;white-space:normal}.electoral-map .leaflet-control a{min-width:30px}
@media(max-width:1200px){.em-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.em-workspace{grid-template-columns:minmax(0,1fr) 260px}.em-stats .stat strong{font-size:28px}}@media(max-width:760px){.em-settings form{display:grid;grid-template-columns:1fr 1fr}.em-settings label{min-width:0}.em-settings label:first-child{grid-column:1/-1;min-width:0}.em-settings button{font-size:12px}.em-filters{grid-template-columns:1fr 1fr}.em-filters label:nth-child(3){grid-column:1/-1}.em-workspace{grid-template-columns:1fr}.em-detail{border-left:0;border-top:1px solid var(--line);max-height:none}.em-map-canvas,.em-local-list{height:370px}.em-local-filter{display:block}.em-local-filter small{display:block;margin-top:10px}.em-map-heading{padding:18px}.em-stats .stat strong{font-size:26px}.em-details{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.em-settings,.em-filters,.em-view,.em-local-filter{display:none!important}.em-workspace{display:block}.em-detail,.em-local-list{max-height:none;height:auto;overflow:visible}.em-map-canvas{height:400px}}
.em-import{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.em-import summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--green)}.em-import p{font-size:12px;line-height:1.6;color:var(--muted)}.em-import input[type=file]{font-size:12px;max-width:100%}.em-import form{margin-top:12px}
.em-results-note{padding:0 22px 14px}

.em-marker-value{display:block;background:#245b46;color:#fff;border:2px solid #fff;border-radius:16px;text-align:center;line-height:28px;font-weight:700;font-size:12px;box-shadow:0 1px 5px #0005}.em-marker-unknown{background:#63716b}.em-marker:focus-visible .em-marker-value{outline:3px solid #bc7d12;outline-offset:3px}.em-local-filter{flex-wrap:wrap}.em-local-filter label{flex:1;min-width:180px}.em-marker:hover{z-index:1000!important}
