.rr-modes{display:flex;gap:4px}.rr-modes button[aria-pressed=true]{background:#eee8f7;color:#50398c;border-color:#a995c9}.rr-settings,.rr-condition-groups{border-bottom:1px solid #ddd7e5;padding:0 0 14px;margin-bottom:15px;color:#393246}.rr-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.rr-section-head strong{font-size:15px}.rr-section-head button{font-size:12px;padding:5px 8px}.rr-settings details{border-top:1px solid #e5e0eb;padding:11px 0}.rr-settings summary,.rr-condition summary{font-size:13px;font-weight:600;cursor:pointer}.rr-center-label{font-size:12px;overflow-wrap:anywhere}.rr-actions{display:flex;gap:6px;margin:8px 0}.rr-actions button{flex:1;font-size:12px}.rr-field{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin:8px 0}.rr-field input:not([type=checkbox]),.rr-field select{min-width:0;width:65%}.rr-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rr-coordinates .rr-field{display:block}.rr-coordinates input{width:100%!important;box-sizing:border-box}.rr-range{display:grid;grid-template-columns:28px 54px minmax(45px,1fr) 20px 46px;gap:5px;align-items:center;margin:9px 0;font-size:12px}.rr-range input[type=color]{padding:0;width:25px;height:28px;border:0;background:none}.rr-range input[type=number]{min-width:0;width:100%;box-sizing:border-box}.rr-range button{padding:4px;font-size:12px}.rr-range button[aria-pressed=true]{color:#50398c;background:#eee8f7}.rr-condition{border-bottom:1px solid #e5e0eb;padding:11px 0}.rr-distance{font-variant-numeric:tabular-nums;font-weight:600}.rr-map-legend{position:absolute;z-index:5;bottom:48px;left:50%;transform:translateX(-50%);width:min(530px,calc(100% - 36px));background:rgba(255,255,255,.96);border:1px solid #ded9e6;border-radius:5px;padding:10px 12px;box-shadow:0 2px 8px #19233320;color:#403749}.rr-map-legend[hidden]{display:none}.rr-map-legend small{display:block;font-size:11px;line-height:1.5;margin-top:7px}.rr-map-legend select{font-size:12px;min-height:30px}.rr-legend-bands{display:flex;gap:8px;margin:5px 0 8px}.rr-legend-bands button{flex:1;border:0;border-left:4px solid var(--rr-band);border-radius:0;font-size:12px;padding:6px 3px;background:#f8f7fa;white-space:nowrap}.rr-legend-bands button[aria-pressed=false]{opacity:.55;text-decoration:line-through}.rr-presentation .panel,.rr-presentation .selection-summary{display:none!important}.rr-presentation .rr-map-legend{bottom:48px}#rr-error:empty{display:none}.rr-settings button:focus-visible,.rr-map-legend button:focus-visible,.rr-condition-groups button:focus-visible{outline:3px solid #8e72ba;outline-offset:2px}@media(min-width:1000px){.rr-active #panel-results{left:auto;right:18px}.rr-active .rr-map-legend{max-width:440px}}@media(max-width:700px){.rr-modes{grid-column:span 2}.rr-modes button{font-size:12px;min-height:40px;flex:1}.rr-map-legend{padding:7px 9px;bottom:55px;width:calc(100% - 24px);box-sizing:border-box}.rr-map-legend .rr-section-head strong{font-size:12px}.rr-map-legend small{font-size:10px}.rr-legend-bands{gap:4px}.rr-legend-bands button{font-size:11px;min-height:36px}.rr-range button{min-height:40px}.rr-settings button,.rr-condition-groups button{min-height:40px}.rr-condition-groups .field-note{font-size:12px}.rr-presentation .rr-map-legend{bottom:55px}}

.rr-result-group{border-left:4px solid;padding:9px 10px;margin-top:9px;background:#f6f4f9;color:#4c415b;font-size:12px;font-weight:600}

.rr-handle-label{transform:translateX(calc(50% + 18px));padding:4px 7px;border:1px solid #d7d0df;border-radius:4px;background:rgba(255,255,255,.96);box-shadow:0 1px 3px #24304022;white-space:nowrap;pointer-events:none}

/* Retain the accepted V3 translucent surface while keeping controls legible. */
#map-area .panel{background:rgba(255,255,255,.92);backdrop-filter:blur(2px)}
#map-area .panel-footer{background:rgba(255,255,255,.86)}
/* Legend stays in the lower-left map corner; panel widths remain shared below. */
.rr-handle-label.rr-handle-label-left{transform:translateX(calc(-50% - 18px))}

#point-list>button.rr-result-group{display:flex;align-items:center;gap:8px;width:100%;text-align:left;white-space:normal;min-height:44px;border-top:0;border-right:0;border-bottom:0;border-left-width:4px;border-left-style:solid;border-radius:0;padding:10px;cursor:pointer}
.rr-result-group-arrow{width:12px;flex:none;font-size:15px}.rr-result-group-range{font-weight:600}.rr-result-group-count{margin-left:auto;font-size:11px;font-weight:400;text-align:right}
#point-list>.point[hidden]{display:none!important}

/* Compact existing panels and use restrained, high-contrast result badges. */
@media(min-width:701px){
 #map-area{--rr-filter-width:340px;--rr-result-width:360px;--rr-detail-width:390px;--rr-color-legend-width:360px;--rr-panel-gap:18px}
 #map-area>#panel-filters{width:var(--rr-filter-width);right:var(--rr-panel-gap);left:auto}
 #map-area>#panel-results{width:var(--rr-result-width);right:var(--rr-panel-gap);left:auto}
 #map-area>#panel-details{width:var(--rr-detail-width);right:var(--rr-panel-gap)}
 #map-area>#panel-legend{width:var(--rr-color-legend-width);right:var(--rr-panel-gap)}
 #panel-filters>.panel-heading,#panel-results>.panel-heading{padding:11px 14px}
 #panel-filters>.panel-body,#panel-results>.panel-body{padding:12px 14px}
 #panel-filters>.panel-footer,#panel-results>.panel-footer{padding:10px 14px}
}
#rr-settings .rr-range{grid-template-columns:26px 64px minmax(58px,84px) 20px minmax(44px,1fr);gap:5px;margin:8px 0}
#rr-settings .rr-range input[type=number]{padding:7px 6px;font-size:13px}
#rr-settings .rr-range>button{padding:4px 3px;white-space:nowrap}
#rr-settings .rr-coordinates{gap:8px;margin:6px 0}
#rr-settings .rr-coordinates .rr-field{margin:3px 0}
#rr-settings .rr-coordinates .rr-field>span{display:block;margin-bottom:4px;color:#45404e}
#rr-settings .rr-coordinates input{padding:7px 8px;font-size:13px;min-width:0}
#rr-settings .rr-actions{gap:6px}
#rr-settings .rr-actions button{padding:7px 5px;white-space:normal;line-height:1.35}
#rr-settings .rr-center-label{margin:7px 0;line-height:1.5}
#point-list>.point{gap:9px;padding:10px;background:rgba(255,255,255,.9);color:#292b35;border-color:#d9d5df}
#point-list>.point>.point-number{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-width:28px;height:28px;padding:0;box-sizing:border-box;background:#f2f1f6;color:#272a35;border:1px solid #d9d4e1;border-left:3px solid var(--category-color,#8b79a9);border-radius:5px;line-height:1;font-size:12px;font-weight:650;text-align:center;font-variant-numeric:tabular-nums}
#point-list>.point>span:not(.point-number){min-width:0;flex:1}
#point-list .point strong{color:#292b35;font-size:13px;line-height:1.45}
#point-list .point small{color:#50515e;line-height:1.5}
#point-list .point .rr-distance{color:#373b48!important;font-weight:600;border-left:3px solid var(--category-color,#8b79a9);padding-left:6px}
#point-list>.point[aria-current=true]{background:#eee9f6;border-color:#79569f;box-shadow:inset 0 0 0 1px #79569f}
#point-list>.point:hover:not(:disabled){background:#f5f2fa;border-color:#a394b8}
#point-list>.point[aria-current=true]:hover{background:#eee9f6}
.rr-result-group-count{max-width:50%;overflow-wrap:anywhere;line-height:1.45;color:#4b4555}
@media(max-width:700px){
 #panel-filters>.panel-body,#panel-results>.panel-body{padding:12px}
 #rr-settings .rr-range{grid-template-columns:26px 64px minmax(54px,1fr) 20px 48px;gap:4px}
 #rr-settings .rr-range>button{min-height:44px}
 #rr-settings .rr-coordinates input{min-height:44px;font-size:16px}
 #rr-settings .rr-actions button{min-height:44px}
 #point-list>.point{padding:10px;min-height:48px}
}

/* Compact lower-left legend, above Google's attribution and the existing quota notice. */
#map-area>#rr-map-legend{left:12px;right:auto;transform:none;width:min(320px,calc(100% - 24px));max-width:320px;padding:9px 10px}
#rr-map-legend .rr-section-head{gap:6px;margin-bottom:6px}
#rr-map-legend .rr-section-head strong{font-size:13px;flex:1;min-width:0}
#rr-map-legend .rr-section-head button{min-height:32px;padding:4px 7px;font-size:11px}
#rr-map-legend .rr-legend-bands{display:grid;gap:4px;margin:5px 0}
#rr-map-legend .rr-legend-bands button{text-align:left;justify-content:flex-start;padding:5px 8px;min-height:30px;white-space:normal;font-size:12px}
#rr-map-legend small{font-size:10px;line-height:1.45;margin-top:6px}
#map-area>#rr-map-legend.rr-legend-collapsed{width:auto;max-width:calc(100% - 24px);padding:0;border:0;background:none;box-shadow:none}
#rr-map-legend .rr-legend-show{min-height:36px;padding:6px 10px;background:rgba(255,255,255,.96);border:1px solid #d6cfdf;border-radius:5px;font-size:12px}
.rr-results-tools{flex:none;padding:8px 14px;border-bottom:1px solid #ded8e5;background:rgba(255,255,255,.7)}
.rr-results-tools[hidden]{display:none!important}
.rr-sort-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#40394b}
.rr-sort-label select{min-height:34px;max-width:70%;padding:5px 8px;font-size:12px}
.rr-handle-label{padding:2px 5px;background:rgba(248,249,252,.94);border-color:#c8cdd5;color:#303744!important;box-shadow:0 1px 2px #24304018}
@media(max-width:700px){#map-area>#rr-map-legend{left:8px;width:min(300px,calc(100% - 16px));max-width:calc(100% - 16px)}#rr-map-legend .rr-section-head button,#rr-map-legend .rr-legend-show{min-height:40px}.rr-sort-label select{min-height:40px}.rr-results-tools{padding:6px 12px}}

/* Shorter legend: preserve full labels and let long ranges wrap naturally. */
#map-area>#rr-map-legend{width:min(250px,calc(100% - 24px));max-width:250px;padding:6px 7px}
#rr-map-legend .rr-section-head{gap:4px;margin-bottom:3px}
#rr-map-legend .rr-section-head strong{font-size:12px;line-height:1.3}
#rr-map-legend .rr-section-head button{min-height:26px;padding:3px 5px;font-size:10px;line-height:1.3}
#rr-map-legend .rr-legend-bands{gap:2px;margin:3px 0}
#rr-map-legend .rr-legend-bands button{min-height:24px;padding:3px 6px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#rr-map-legend small{margin-top:3px;font-size:10px;line-height:1.35}
#map-area>#rr-map-legend.rr-legend-collapsed{width:auto;padding:0}
@media(max-width:700px){
 #map-area>#rr-map-legend{width:min(250px,calc(100% - 16px));max-width:calc(100% - 16px)}
 #rr-map-legend .rr-section-head button{min-height:36px;padding:5px 7px;font-size:11px}
 #rr-map-legend .rr-legend-bands button{min-height:36px;padding:6px;font-size:12px}
 #rr-map-legend .rr-legend-show{min-height:40px}
}
/* Radar legend owns the lower-left corner; keep the selected facility readable above. */
.rr-active #map-area>#selection-summary:not([hidden]){left:auto;right:12px;top:12px;bottom:auto;max-width:min(500px,calc(100% - 24px))}
.rr-active #map-area>#selection-summary:not([hidden])>div{flex:1;min-width:0}
@media(max-width:700px){.rr-active #map-area>#selection-summary:not([hidden]){left:8px;right:8px;top:12px;bottom:auto;max-width:calc(100% - 16px)}}

.rr-pick-actions{flex-wrap:wrap;gap:8px!important}.rr-pick-actions button{min-height:40px}.rr-pick-actions button[aria-pressed=true]{background:#e9e1f4;border-color:#8264ac;color:#422c65;box-shadow:inset 0 0 0 1px #8264ac}
.rr-pick-status{font-size:11px;line-height:1.45;color:#4d425d;margin:4px 0 8px;overflow-wrap:anywhere}.rr-pick-status:empty{display:none}
@media(max-width:700px){.rr-pick-actions button{min-height:44px}}

.rr-capacity-filter{padding:0 0 12px;margin-bottom:14px}.rr-capacity-filter>summary{font-size:12px;min-height:36px;line-height:1.5;cursor:pointer;color:#393246}
.rr-capacity-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:4px}.rr-capacity-inputs .rr-field{display:block;margin:6px 0}.rr-capacity-inputs .rr-field>span{display:block;margin-bottom:4px}.rr-capacity-inputs input{width:100%!important;box-sizing:border-box;min-width:0;padding:7px 8px;font-size:13px}
.rr-capacity-actions{margin:4px 0 6px}.rr-capacity-actions button{flex:1;font-size:12px}.rr-capacity-filter .field-note{font-size:11px;line-height:1.45;margin:6px 0 0}
@media(max-width:700px){.rr-capacity-inputs input{font-size:16px;min-height:44px}.rr-capacity-actions button{min-height:44px}}
