#mapQuickTask{display:none}
.logged-in #mapView.active #mapQuickTask{display:block;position:absolute;z-index:970;top:14px;left:288px;width:260px;box-sizing:border-box;padding:8px 10px;background:#10221ee8;border:1px solid #84927a;border-radius:12px;color:#eff7e9;box-shadow:0 4px 14px #0003}
#mapQuickTask label{display:block;font-size:12px;font-weight:700;margin:0 0 4px}
#mapQuickTask>div{display:flex;gap:5px}
#mapQuickTask input{width:100%;min-width:0;box-sizing:border-box;font-size:16px;padding:7px 9px;margin:0;background:#091c17;color:#eff7e9;border:1px solid #557869;border-radius:7px}
#mapQuickTask button{flex:none;width:38px;min-height:38px;padding:0;border-radius:7px;border:1px solid #6ba88a;background:#275e46;color:#fff;font-size:24px;cursor:pointer}
#mapQuickTask [role=status]{display:block;font-size:11px;line-height:1.3;margin-top:3px}#mapQuickTask [role=status]:empty{display:none}

body.logged-in:has(#mapView.active){--counter-height:0px;padding-top:0}
#mapQuickTask .quick-task-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#mapQuickTask #quickTaskToggle{width:100%;min-height:24px;background:transparent;border:0;font-size:13px;font-weight:700;text-align:left;display:flex;justify-content:space-between;margin-bottom:5px}
#mapQuickTask .quick-task-tabs{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:4px;margin-bottom:7px}
#mapQuickTask .quick-task-tabs button{box-sizing:border-box;width:100%;min-width:0;min-height:34px;padding:5px 3px;font-size:12px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;background:transparent;color:#c5d7ce;border-color:#557869}
#mapQuickTask .quick-task-tabs button[aria-pressed=true]{background:#32664e;color:white;border-color:#91c1a0}
@media(min-width:761px){
 .logged-in #monthlyCounters{left:auto;right:14px;transform:none}
 .logged-in #mapView.active #mapQuickTask{left:288px;top:14px;width:290px}
 #mapQuickTask #quickTaskToggle{pointer-events:none}#quickTaskToggle span{display:none}
 .logged-in #mapView #mapMission{display:none}
 .logged-in #mapView .map-address-search{top:auto;bottom:100px;left:14px;transform:none;width:330px}
 .logged-in #mapView .map-search-results{position:absolute;bottom:100%;left:0;right:0;margin:0 0 5px;max-height:45dvh}
 body.logged-in:has(#mapView.active) .team-chat{left:14px;bottom:18px;width:330px}
 body.logged-in:has(#mapView.active) .team-chat.chat-open{width:370px;z-index:1500}
 .logged-in.map-address-open #mapView.active .details-panel{top:116px;bottom:145px;max-height:none;width:min(380px,40vw)}
 .logged-in #mapView.active{--map-tools-bottom:26px}
 .logged-in #mapView .map-hint{max-width:280px;font-size:11px;opacity:.8}
}
@media(min-width:761px) and (max-width:1149px){
 .logged-in #mapView.active #mapQuickTask{top:160px;left:14px;width:260px}
 .logged-in #mapView .map-address-search{width:280px}
 body.logged-in:has(#mapView.active) .team-chat{width:280px}
}
@media(max-width:760px){
 .logged-in #mapView.active{position:relative}
 .logged-in #mapView.active #mapQuickTask{top:92px;left:12px;width:145px;max-width:calc(100vw - 24px);padding:7px 10px}
 .logged-in #mapView.active #mapQuickTask.quick-task-expanded{width:330px;z-index:1150}
 #mapQuickTask:not(.quick-task-expanded) .quick-task-tabs,#mapQuickTask:not(.quick-task-expanded)>div,#mapQuickTask:not(.quick-task-expanded)>[role=status]{display:none}
 #mapQuickTask #quickTaskToggle{margin:0;min-height:30px}
 .logged-in #mapView .map-address-search{top:auto;bottom:155px;left:12px;transform:none;width:calc(100% - 80px);max-width:350px}
 .logged-in #mapView .map-search-results{position:absolute;bottom:100%;left:0;right:0;max-height:35dvh;margin-bottom:5px}
 .logged-in.mobile-address-open #mapView .map-address-search,.logged-in.mobile-address-open #mapQuickTask{display:none}
}
/* Address lookup belongs directly below the counters, away from chat. */
.logged-in #mapView .map-address-search{top:108px;bottom:auto;left:auto;right:14px;transform:none;width:330px;max-width:calc(100% - 28px)}
.logged-in #mapView .map-search-results{top:100%;bottom:auto;margin:5px 0 0;max-height:45dvh}
@media(min-width:761px){
 .logged-in.map-address-open #mapView.active .details-panel{top:166px}
 #mapView .leaflet-top.leaflet-right{top:166px}
}
@media(max-width:760px){
 .logged-in #mapView .map-address-search{top:92px;right:12px;width:calc(100% - 181px);max-width:none}
 .map-address-search input{font-size:16px;padding:10px 6px}
 .map-address-search form button{padding:0 6px}
 .logged-in #mapView .map-search-results{left:auto;right:0;width:min(330px,calc(100vw - 24px));max-height:40dvh}
 .logged-in #mapView.active #mapQuickTask.quick-task-expanded{top:142px}
}
