#gps .gpsPage{display:flex;flex-direction:column;gap:16px;min-width:0}
#gps .gpsPageHeader{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#gps .gpsEyebrow{display:block;margin-bottom:5px;color:var(--muted,#68778a);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
#gps .gpsPageHeader h1{margin:0;font-size:clamp(23px,3vw,31px);letter-spacing:-.03em}
#gps .gpsPageHeader p{margin:6px 0 0;color:var(--muted,#68778a);font-size:13px}
#gps .gpsHeaderActions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#gps .gpsNotice{padding:11px 13px;border:1px solid var(--border,#dce3ec);border-radius:12px;background:var(--card,#fff);font-size:13px;line-height:1.5}
#gps .gpsNotice.error{border-color:#f0b4b4;color:#9b2525;background:#fff7f7}
#gps .gpsNotice.success{border-color:#a5d9bf;color:#176947;background:#f3fcf7}
#gps .gpsSummaryGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#gps .gpsSummaryCard{padding:15px 16px;border:1px solid var(--border,#dce3ec);border-radius:14px;background:var(--card,#fff);box-shadow:0 3px 14px #1a355208;min-width:0}
#gps .gpsSummaryLabel{display:flex;align-items:center;gap:8px;color:var(--muted,#68778a);font-size:12px;font-weight:650}
#gps .gpsSummaryValue{display:block;margin-top:7px;font-size:23px;font-weight:800;letter-spacing:-.03em;overflow-wrap:anywhere}
#gps .gpsSummaryHint{display:block;margin-top:4px;color:var(--muted,#68778a);font-size:11px}
#gps .gpsLayout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:15px;align-items:stretch}
#gps .gpsPanel{min-width:0;padding:16px;border:1px solid var(--border,#dce3ec);border-radius:16px;background:var(--card,#fff);box-shadow:0 3px 16px #1a355208}
#gps .gpsPanelTitle{margin:0;font-size:15px;font-weight:800}
#gps .gpsPanelIntro{margin:5px 0 14px;color:var(--muted,#68778a);font-size:12px;line-height:1.5}
#gps .gpsControlSection+.gpsControlSection{margin-top:20px;padding-top:18px;border-top:1px solid var(--border,#e5eaf0)}
#gps .gpsFieldLabel{display:block;margin:0 0 7px;font-size:12px;font-weight:750}
#gps #gpsDutySelect{display:block;width:100%;min-height:42px;padding:9px 10px;border:1px solid var(--border,#ccd6e2);border-radius:10px;background:var(--card,#fff);color:inherit;font:inherit;font-size:13px}
#gps .gpsConsentLabel{display:flex;gap:9px;align-items:flex-start;margin:13px 0;color:var(--muted,#526175);font-size:11px;line-height:1.5}
#gps .gpsConsentLabel input{flex:0 0 auto;margin-top:3px;accent-color:#1976d2}
#gps .gpsActionButtons{display:flex;gap:8px;flex-wrap:wrap}
#gps .gpsActionButtons button{min-height:39px}
#gps .gpsActionButtons .gpsStartAction{background:#155fba;color:#fff;border-color:#155fba}
#gps .gpsActionButtons .gpsStopAction{background:#fff3f3;color:#a52828;border-color:#edc5c5}
#gps .gpsActionButtons button:disabled{opacity:.5;cursor:not-allowed}
#gps .gpsStatusLine{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--muted,#68778a);font-size:12px;line-height:1.45}
#gps .gpsStatusDot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#98a4b3}
#gps .gpsStatusDot.live{background:#20a368;box-shadow:0 0 0 4px #20a3681b}
#gps .gpsStatusDot.stale{background:#d88922}
#gps .gpsList{display:flex;flex-direction:column;gap:8px}
#gps .gpsListEmpty{padding:13px;border:1px dashed var(--border,#dce3ec);border-radius:11px;color:var(--muted,#68778a);font-size:12px;line-height:1.5}
#gps .gpsMemberRow,#gps .gpsHistoryRow{display:flex;width:100%;align-items:center;gap:10px;padding:10px;border:1px solid var(--border,#e0e6ee);border-radius:11px;background:var(--card,#fff);color:inherit;text-align:left;min-width:0}
#gps button.gpsMemberRow,#gps button.gpsHistoryRow{cursor:pointer}
#gps button.gpsMemberRow:hover,#gps button.gpsHistoryRow:hover{border-color:#8cbbe9;background:#f7fbff}
#gps .gpsMemberAvatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:10px;background:#eaf3ff;color:#1d5b9a;font-weight:800}
#gps .gpsMemberMain,#gps .gpsHistoryMain{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
#gps .gpsMemberMain b,#gps .gpsHistoryMain b{font-size:12px;overflow-wrap:anywhere}
#gps .gpsMemberMain small,#gps .gpsHistoryMain small{color:var(--muted,#68778a);font-size:10px;line-height:1.45}
#gps .gpsFreshness{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#1aab69}
#gps .gpsFreshness.stale{background:#d88922}
#gps .gpsMapPanel{display:flex;flex-direction:column;gap:10px;min-width:0}
#gps .gpsMapHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#gps .gpsMapHeader p{margin:4px 0 0;color:var(--muted,#68778a);font-size:11px}
#gps #gpsMapCanvas{height:clamp(450px,62vh,760px);width:100%;min-height:450px;border:1px solid var(--border,#dce3ec);border-radius:12px;overflow:hidden;background:#edf3f7;z-index:0}
#gps .gpsMapLegend{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted,#68778a);font-size:11px}
#gps .gpsLegendKey{display:inline-flex;align-items:center;gap:6px}
#gps .gpsLegendDot{width:8px;height:8px;border-radius:50%;background:#1c78d0}
#gps .gpsLegendDot.team{background:#1ca26c}
#gps .gpsHistoryHeading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
#gps .gpsHistoryTitle{margin:0;font-size:14px;font-weight:800}
#gps .gpsSmallMuted{color:var(--muted,#68778a);font-size:11px}
#gps .gpsSelectedHistory{border-color:#78ace5!important;background:#f1f8ff!important}
#gps .gpsMapBackButton{border:0;background:transparent;color:#155fba;text-decoration:underline;font:inherit;font-size:11px;cursor:pointer}
#gps .gpsMapCanvas .leaflet-control-attribution{font-size:10px}
#gps .gpsMapCanvas .leaflet-popup-content{font-size:12px}
#gps .gpsMapCanvas .leaflet-popup-content-wrapper{border-radius:10px}
#gps .gpsMapMarker{display:grid;place-items:center;width:38px;height:38px;border:2px solid #fff;border-radius:50%;background:#1c78d0;color:#fff;font-size:11px;font-weight:900;letter-spacing:.02em;box-shadow:0 3px 10px #112b4650}
#gps .gpsMapMarker.team{background:#169b68}
#gps .gpsMapMarker.stale{background:#bd7a20}
#gps #gpsMapCanvas .leaflet-div-icon{background:transparent;border:0}
@media(max-width:1050px){#gps .gpsLayout{grid-template-columns:minmax(0,1fr)}#gps .gpsMapPanel{order:-1}#gps #gpsMapCanvas{height:54vh;min-height:380px}#gps .gpsSideGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#gps .gpsSideGrid .gpsControlSection+.gpsControlSection{margin-top:0;padding-top:0;border-top:0}}
@media(max-width:640px){#gps .gpsSummaryGrid{grid-template-columns:1fr 1fr;gap:8px}#gps .gpsSummaryCard{padding:12px}#gps .gpsSummaryValue{font-size:19px}#gps .gpsSummaryGrid .gpsSummaryCard:last-child{grid-column:1/-1}#gps .gpsPageHeader{align-items:flex-start}#gps .gpsPageHeader h1{font-size:24px}#gps .gpsHeaderActions{width:100%}#gps .gpsHeaderActions button{flex:1}#gps .gpsPanel{padding:12px}#gps .gpsSideGrid{display:flex;flex-direction:column;gap:0}#gps .gpsSideGrid .gpsControlSection+.gpsControlSection{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#e5eaf0)}#gps #gpsMapCanvas{height:53vh;min-height:340px}#gps .gpsMapHeader{align-items:flex-start}}

#gps .gpsMapToolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#gps .gpsMapTab{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid var(--border,#ccd6e2);border-radius:10px;background:var(--card,#fff);color:inherit;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
#gps .gpsMapTab:hover{border-color:#8cbbe9;background:#f7fbff}
#gps .gpsMapTab.active{border-color:#155fba;background:#155fba;color:#fff}
#gps .gpsGoogleLocationLink{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid #b9d1eb;border-radius:10px;background:#f3f8ff;color:#155fba;text-decoration:none;font-size:12px;font-weight:750}
#gps .gpsGoogleLocationLink:hover{background:#e8f2ff;border-color:#8cbbe9}
#gps #gpsGoogleMapFrame{display:block;width:100%;height:clamp(450px,62vh,760px);min-height:450px;border:1px solid var(--border,#dce3ec);border-radius:12px;background:#edf3f7}
#gps .gpsGoogleMapHelp{margin:0;padding:11px 13px;border:1px solid #c9d9eb;border-radius:10px;background:#f4f8fc;color:#40536a;font-size:12px;line-height:1.6}
@media(max-width:1050px){#gps #gpsGoogleMapFrame{height:54vh;min-height:380px}}
@media(max-width:640px){#gps .gpsMapToolbar>*{flex:1 1 44%}#gps .gpsMapToolbar .gpsGoogleLocationLink{flex-basis:100%}#gps .gpsMapToolbar #gpsShowLiveButton{flex-basis:100%;text-align:center}#gps #gpsGoogleMapFrame{height:53vh;min-height:340px}}

/* Közös XVIII. kerületi helyszínjelzés-térkép */
#gps .gpsWorkspaceTabs{display:flex;gap:8px;flex-wrap:wrap;padding:5px;border:1px solid var(--border,#dce3ec);background:var(--card,#fff);border-radius:13px;width:max-content;max-width:100%}
#gps .gpsWorkspaceTabs .gpsMapTab{min-height:42px;padding:10px 15px}
#gps .gpsWorkspaceTabs .gpsMapTab.active{background:#155fba;color:#fff}
#gps .gpsPlacesWorkspace{min-width:0}
#gps .gpsLiveWorkspace{min-width:0}
#gps .gpsPlacesLayout{display:grid;grid-template-columns:minmax(290px,355px) minmax(0,1fr);gap:15px;align-items:stretch}
#gps .gpsPlacesSidePanel{display:flex;flex-direction:column;gap:12px;min-width:0}
#gps .gpsPlacesHeading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
#gps .gpsPlacesHeading .gpsPanelIntro{margin-bottom:0}
#gps .gpsNotesSearch{display:grid;gap:7px}
#gps .gpsNotesSearch input,#gps .gpsNotesSearch select{width:100%;min-width:0;min-height:39px;padding:9px 10px;border:1px solid var(--border,#ccd6e2);border-radius:9px;background:var(--card,#fff);color:inherit;font:inherit;font-size:12px}
#gps .gpsNotesFilterRow{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#gps .gpsNotesFilterRow label{min-width:0;display:grid;gap:5px}
#gps .gpsNotesFilterRow label>span{font-size:10px;font-weight:800;color:var(--muted,#68778a)}
#gps .gpsNoteActions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#gps .gpsNoteActions button{min-height:38px;white-space:normal;line-height:1.3}
#gps .gpsNoteActions #gpsRoadSaveButton{grid-column:1/-1}
#gps .gpsNoteActions #gpsFitDistrictButton{grid-column:1/-1}
#gps .gpsNoteModeHint{margin:0;padding:10px 11px;border:1px solid #d1e1f3;border-radius:10px;background:#f4f8fd;color:#435d7b;font-size:11px;line-height:1.5}
#gps .gpsNoteListHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:3px}
#gps .gpsNoteListHeader b{font-size:12px}
#gps .gpsNoteListHeader span{font-size:10px;color:var(--muted,#68778a)}
#gps #gpsMapNoteList{min-height:100px;max-height:620px;overflow:auto}
#gps .gpsMapNoteRow{display:flex;gap:9px;align-items:flex-start;width:100%;padding:11px;border:1px solid var(--border,#e0e6ee);border-radius:11px;background:var(--card,#fff);color:inherit;text-align:left;min-width:0}
#gps .gpsMapNoteRow+.gpsMapNoteRow{margin-top:7px}
#gps button.gpsMapNoteRow{cursor:pointer}
#gps button.gpsMapNoteRow:hover{border-color:#8cbbe9;background:#f7fbff}
#gps .gpsMapNoteIcon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:10px;color:#fff;background:#2368a9;font-size:16px}
#gps .gpsMapNoteIcon.high{background:#bd3434}
#gps .gpsMapNoteIcon.traffic{background:#ba3b33}
#gps .gpsMapNoteIcon.racing{background:#9b4e18}
#gps .gpsMapNoteIcon.expired{background:#7b8491}
#gps .gpsMapNoteCopy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
#gps .gpsMapNoteCopy b{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#gps .gpsMapNoteCopy small{font-size:10px;line-height:1.45;color:var(--muted,#68778a);overflow-wrap:anywhere}
#gps .gpsMapNoteBadges{display:flex;gap:4px;flex-wrap:wrap}
#gps .gpsMapNoteBadges span{display:inline-flex;padding:3px 6px;border-radius:99px;background:#edf3fa;color:#42617f;font-size:9px;font-weight:800}
#gps .gpsMapNoteBadges .closed{background:#e9edf2;color:#606b79}
#gps .gpsMapNoteBadges .expired{background:#fff0e2;color:#8c4d19}
#gps .gpsPlacesMapPanel{display:flex;flex-direction:column;gap:11px;min-width:0}
#gps .gpsPlacesMapHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}
#gps .gpsPlacesMapHeader p{margin:5px 0 0;color:var(--muted,#68778a);font-size:11px;line-height:1.5}
#gps #gpsPlacesMapCanvas{height:clamp(500px,68vh,850px);width:100%;min-height:420px;border:1px solid var(--border,#dce3ec);border-radius:12px;overflow:hidden;background:#edf3f7;z-index:0}
#gps .gpsPlacesMapCanvas .leaflet-control-attribution{font-size:10px}
#gps .gpsPlacesMapCanvas .leaflet-popup-content{font-size:12px;min-width:220px}
#gps .gpsPlacesMapCanvas .leaflet-popup-content-wrapper{border-radius:12px}
#gps .gpsNotePin{display:grid;place-items:center;width:34px;height:34px;border:2px solid #fff;border-radius:11px;background:#2368a9;color:#fff;font-size:16px;box-shadow:0 3px 12px #112b4650}
#gps .gpsNotePin.traffic_hazard{background:#ba3b33}
#gps .gpsNotePin.racing_or_noise{background:#9b4e18}
#gps .gpsNotePin.public_space{background:#267b57}
#gps .gpsNotePin.event_security{background:#6642a5}
#gps .gpsNotePin.patrol_point{background:#2368a9}
#gps .gpsNotePin.expired{background:#7b8491;filter:saturate(.5)}
#gps .gpsNotePopup{min-width:210px;max-width:290px}
#gps .gpsNotePopupTitle{font-size:13px;font-weight:850;color:#17385e;line-height:1.35;overflow-wrap:anywhere}
#gps .gpsNotePopupMeta{margin:5px 0;color:#64758a;font-size:10px;line-height:1.45}
#gps .gpsNotePopupDescription{font-size:11px;line-height:1.5;color:#2a3f59;white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto}
#gps .gpsNotePopupActions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
#gps .gpsNotePopupActions a,#gps .gpsNotePopupActions button{display:inline-flex;align-items:center;justify-content:center;padding:7px 9px;border:1px solid #c7d7e8;border-radius:8px;background:#f2f7fc;color:#145a9d;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer}
#gps .gpsNotePopupActions button{background:#fff}
#gps .gpsLegendTraffic{background:#ba3b33!important}
#gps .gpsLegendRacing{background:#9b4e18!important}
#gps .gpsLegendLine{display:inline-block;width:19px;height:4px;border-radius:5px;background:#d45c42}
#gps .gpsNotesMapFootnote{margin:0;color:var(--muted,#68778a);font-size:10px;line-height:1.5}
#gps .gpsNoteModal{position:fixed;inset:0;z-index:7200;display:grid;place-items:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .2s ease}
#gps .gpsNoteModal.hidden{display:none}
#gps .gpsNoteModal.isOpen{opacity:1;pointer-events:auto}
#gps .gpsNoteOverlay{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:rgba(6,18,36,.62);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#gps .gpsNoteDialog{position:relative;z-index:1;width:min(640px,100%);max-height:min(90vh,850px);overflow:auto;padding:22px;border:1px solid rgba(255,255,255,.6);border-radius:20px;background:var(--card,#fff);color:var(--text,#17345d);box-shadow:0 28px 80px rgba(0,10,35,.35);transform:translateY(10px) scale(.985);transition:transform .24s ease}
#gps .gpsNoteModal.isOpen .gpsNoteDialog{transform:translateY(0) scale(1)}
#gps .gpsNoteDialogHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
#gps .gpsNoteDialogHead h2{margin:0;font-size:22px;letter-spacing:-.02em}
#gps .gpsNoteDialogHead p{margin:6px 0 0;color:var(--muted,#68778a);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#gps .gpsNoteClose{flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid var(--border,#dce3ec);border-radius:50%;background:#f4f7fb;color:#17345d;font-size:23px}
#gps .gpsNoteField{display:grid;gap:6px;margin:0 0 13px;font-size:12px;font-weight:750;color:var(--text,#17345d)}
#gps .gpsNoteField input,#gps .gpsNoteField select,#gps .gpsNoteField textarea{width:100%;min-width:0;padding:10px 11px;border:1px solid var(--border,#ccd6e2);border-radius:10px;background:var(--card,#fff);color:inherit;font:inherit;font-size:12px;font-weight:500}
#gps .gpsNoteField textarea{resize:vertical;min-height:95px;line-height:1.5}
#gps .gpsNoteFormGrid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
#gps .gpsNoteRoadInfo{margin:0 0 12px;padding:9px 11px;border:1px dashed #9dbfe1;border-radius:10px;background:#f5f9ff;color:#365c82;font-size:11px;line-height:1.5}
#gps .gpsNoteFormError{min-height:0;margin:0;color:#b42318;font-size:11px;line-height:1.5}
#gps .gpsNoteFormActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
#gps .gpsNoteFormSpacer{flex:1}
#gps .gpsNoteFormActions button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:1100px){
 #gps .gpsPlacesLayout{grid-template-columns:minmax(0,1fr)}
 #gps .gpsPlacesMapPanel{order:-1}
 #gps #gpsMapNoteList{max-height:440px}
 #gps #gpsPlacesMapCanvas{height:56vh;min-height:390px}
}
@media(max-width:640px){
 #gps .gpsWorkspaceTabs{width:100%;display:grid;grid-template-columns:1fr 1fr}
 #gps .gpsWorkspaceTabs .gpsMapTab{padding:9px 7px;font-size:11px}
 #gps .gpsPanel{min-width:0}
 #gps .gpsPlacesMapPanel{padding:10px}
 #gps .gpsPlacesSidePanel{padding:12px}
 #gps #gpsPlacesMapCanvas{height:54vh;min-height:340px}
 #gps .gpsNotesFilterRow{grid-template-columns:1fr}
 #gps .gpsNoteDialog{padding:16px;border-radius:16px;max-height:calc(100dvh - 20px)}
 #gps .gpsNoteFormGrid{grid-template-columns:1fr}
 #gps .gpsNoteDialogHead h2{font-size:20px}
 #gps .gpsNoteFormActions{gap:6px}
 #gps .gpsNoteFormSpacer{display:none}
 #gps .gpsNoteFormActions button{flex:1 1 42%}
}
@media(prefers-reduced-motion:reduce){#gps .gpsNoteModal,#gps .gpsNoteDialog{transition:none}}

#gps .gpsNoteActions .gpsModeActive{background:#0e457d!important;color:#fff!important;border-color:#0e457d!important;box-shadow:0 0 0 2px #155fba22}
#gps .gpsMapNoteRowActions{display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;gap:5px}
#gps .gpsMapNoteRowActions .smallBtn{margin:0;padding:5px 7px;font-size:10px;white-space:nowrap}
@media(max-width:640px){#gps .gpsMapNoteRowActions{flex-direction:row;flex-wrap:wrap}#gps .gpsMapNoteRowActions .smallBtn{flex:0 0 auto}}

#gps .gpsNotesMapFootnote a{color:#155fba;text-decoration:underline;text-underline-offset:2px}


/* OpenStreetMap address search — compact layout */
#gps .gpsAddressSearch{display:flex;align-items:center;gap:6px;flex:0 1 430px;width:100%;max-width:430px;min-width:0}
#gps .gpsAddressSearch input{flex:1 1 auto;min-width:0;width:100%;height:35px;min-height:35px;padding:6px 9px;border:1px solid var(--border,#cbd5e1);border-radius:8px;background:var(--card,#fff);color:var(--text,#172033);font:inherit;font-size:12px;box-sizing:border-box}
#gps .gpsAddressSearch input:focus{outline:2px solid #7db4ed;outline-offset:1px;border-color:#3d86cc}
#gps .gpsAddressSearch button{flex:0 0 auto;align-self:center!important;width:auto;height:35px!important;min-width:70px;min-height:35px!important;max-height:35px!important;padding:6px 10px;line-height:1.2;font-size:12px;box-sizing:border-box;border-radius:8px}
#gps .gpsSearchNotice{margin:0;padding:6px 8px;border-radius:7px;background:#f2f6fb;color:#3d536c;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#gps .gpsSearchNotice.success{background:#eaf8ef;color:#17663b}
#gps .gpsSearchNotice.error{background:#fff0ee;color:#9a3028}
#gps .gpsGoogleMapHelp.error{border-color:#eab7b2;background:#fff0ee;color:#9a3028}
#gps .gpsGoogleMapHelp.success{border-color:#b7dfc3;background:#edf9f0;color:#17663b}
@media(max-width:640px){#gps .gpsAddressSearch{flex:1 1 100%;max-width:none}#gps .gpsAddressSearch button{min-width:70px}#gps .gpsMapToolbar .gpsAddressSearch{flex-basis:100%}#gps .gpsPlacesMapHeader{align-items:flex-start}}


/* Place search directly above the map and prevent vertical distribution */
#gps .gpsPlacesMapPanel{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;gap:10px!important;min-width:0;height:auto!important}
#gps .gpsPlacesMapPanel>.gpsPlacesMapHeader{flex:0 0 auto!important;margin:0!important}
#gps .gpsPlacesMapPanel>.gpsSearchNotice,
#gps .gpsPlacesMapPanel>.gpsGoogleMapHelp{flex:0 0 auto!important;margin:0!important}
#gps .gpsPlacesMapPanel>.gpsAddressSearch{align-self:flex-start!important;flex:0 0 auto!important;margin:0 0 -10px!important;position:static!important;top:auto!important;transform:none!important}
#gps .gpsPlacesMapPanel>#gpsPlacesMapCanvas{flex:0 0 auto!important;margin:0!important}

/* Keep multi-symbol map icons balanced inside the marker */
#gps .gpsNotePin.accident{font-size:12px;letter-spacing:-3px}


/* Unified service GPS controls within the place-notes screen */
#gps .gpsTrackingPanel,
#gps .gpsActiveTeamPanel{padding:13px;border:1px solid var(--border,#dce3ec);border-radius:13px;background:linear-gradient(160deg,#fff,#f8fbff);min-width:0}
#gps .gpsTrackingTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
#gps .gpsTrackingTop h3{margin:0}
#gps .gpsTrackingCount{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#eaf5ef;color:#176947;font-size:11px;font-weight:800}
#gps .gpsTrackingCount strong{font-size:12px}
#gps .gpsTrackingPanel .gpsPanelIntro{margin-bottom:10px}
#gps .gpsTrackingPanel #gpsDutySelect{width:100%;min-width:0;box-sizing:border-box}
#gps .gpsTrackingPanel .gpsConsentLabel{font-size:10px;line-height:1.45;margin:10px 0}
#gps .gpsServiceActions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
#gps .gpsServiceActions button{display:inline-flex;align-items:center;justify-content:center;width:auto!important;min-width:0;max-width:100%;min-height:37px;flex:0 0 auto;padding:8px 12px;white-space:normal}
#gps .gpsTrackingPanel .gpsConsentLabel{display:flex;align-items:flex-start;width:100%;box-sizing:border-box;gap:8px}
#gps .gpsTrackingPanel .gpsConsentLabel>input{display:block;flex:0 0 15px;width:15px;min-width:15px;height:15px;margin:3px 0 0}
#gps .gpsTrackingPanel .gpsConsentLabel>span{display:block;flex:1 1 0;width:auto;min-width:0;max-width:100%;overflow-wrap:anywhere}
#gps .gpsServiceActions .gpsStartAction{border:1px solid #155fba;border-radius:10px;background:#1769d2;color:#fff}
#gps .gpsServiceActions .gpsStopAction{border:1px solid #e8b9b9;border-radius:10px;background:#fff0f0;color:#a52828}
#gps .gpsTrackingAccuracy{margin-top:8px;color:var(--muted,#68778a);font-size:10px}
#gps .gpsTrackingAccuracy strong{color:var(--text,#17345d)}
#gps .gpsActiveTeamPanel .gpsList{max-height:290px;overflow-y:auto}
#gps .gpsActiveTeamPanel .gpsMemberAvatar{border-radius:50%;background:#1769d2;color:#fff}
#gps .gpsActiveTeamPanel .gpsMemberAvatar.team{background:#169b68}
#gps .gpsMapMarker.team{background:#169b68}
#gps .gpsMapMarker.stale{background:#bd7a20}
#gps .gpsPlacesSidePanel>.gpsNotesSearch{margin-top:2px}
@media(max-width:1100px){
  #gps .gpsPlacesSidePanel{order:-1}
  #gps .gpsPlacesMapPanel{order:0}
  #gps .gpsTrackingPanel,#gps .gpsActiveTeamPanel{max-width:none}
}
@media(max-width:640px){
  #gps .gpsTrackingPanel,#gps .gpsActiveTeamPanel{padding:12px}
  #gps .gpsTrackingTop{align-items:flex-start}
  #gps .gpsServiceActions button{min-height:40px;padding:8px 11px}
  #gps .gpsActiveTeamPanel .gpsList{max-height:220px}
}
