.worker-marker-wrap, .gs-latest-location-icon-wrap, .gs-stop-marker-wrap, .safety-equipment-wrap {
    background: transparent !important; border: 0 !important; overflow: visible !important;
}
.worker-map-icon { position: relative; display: block; width: 64px; height: 80px; }
.worker-map-image { position: absolute; inset: 0 0 auto; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(15,23,42,.35)); }
.worker-map-base { position: absolute; left: 12px; top: 53px; width: 40px; height: 13px; border: 3px solid var(--person-color); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; }
.worker-identity { position: absolute; left: 50%; top: -21px; transform: translateX(-50%); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--person-color); color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 1px 5px; font: 800 10px/13px Arial,sans-serif; box-shadow: 0 2px 4px #0003; }
.worker-state-badge { position: absolute; right: 0; top: 3px; border: 2px solid #fff; border-radius: 50%; width: 19px; height: 19px; background: #64748b; color: #fff; text-align: center; font: 800 12px/15px Arial,sans-serif; }
.worker-map-icon--lost .worker-state-badge { background: #dc2626; }
.worker-map-icon--finished .worker-map-image { filter: grayscale(.65) drop-shadow(0 2px 2px #0004); }
.gs-person-status--moving { color: #1d4ed8; background: #dbeafe; }
.gs-person-status--stationary { color: #047857; background: #d1fae5; }
.gs-person-status--unknown { color: #475569; background: #e2e8f0; }
.safety-equipment-marker { position: relative; display: block; width: 76px; height: 76px; }
.safety-equipment-marker > img { position: absolute; inset: 0; width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 2px 2px #0005); }
.safety-equipment-base { position: absolute; left: 9px; bottom: 0; width: 58px; height: 15px; border: 3px solid var(--marker-color); border-radius: 50%; background: #fff; }
.safety-equipment-number { position: absolute; top: 0; right: -2px; min-width: 21px; height: 21px; padding: 0 4px; border: 2px solid #fff; border-radius: 12px; background: var(--marker-color); color: #fff; font: 800 11px/17px Arial,sans-serif; text-align: center; }
.safety-popup-method > img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }

.worker-duration { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); white-space: nowrap; background: var(--person-color); color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 1px 5px; font: 800 10px/13px Arial,sans-serif; box-shadow: 0 2px 4px #0003; }

/* Scale around the geographic anchor, rather than the image centre. */
.leaflet-marker-icon .worker-map-icon { transform: scale(var(--monitoring-marker-scale, 1)); transform-origin: 32px 62px; }
.leaflet-marker-icon .safety-equipment-marker { transform: scale(var(--monitoring-marker-scale, 1)); transform-origin: 38px 72px; }
.monitoring-cluster-wrap { background: transparent; border: 0; }
.monitoring-cluster-count { display: grid; place-items: center; box-sizing: border-box; width: 42px; height: 42px; border: 3px solid #fff; border-radius: 50%; background: #1677ee; color: #fff; box-shadow: 0 2px 10px #16395840; font: 800 14px/1 Arial, sans-serif; }
.monitoring-cluster-wrap:focus-visible { outline: 3px solid #142650; outline-offset: 3px; border-radius: 50%; }
.gs-stationary-duration { margin: 8px 0 4px; color: #047857; font-size: 12px; }
.gs-latest-popup small { display: block; margin-top: 4px; }

.gs-clock-warning { display: grid; gap: 4px; margin: 8px 0; padding: 10px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 11px; line-height: 1.5; }
.gs-clock-warning span, .gs-clock-warning small { display: block; color: #9a3412 !important; }

.gs-person-status--stale { color: #92400e; background: #fef3c7; }
.worker-map-icon--stale .worker-state-badge { background: #d97706; }

.gs-worker-directions { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; padding: 9px 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; color: #176bc8 !important; text-decoration: none; font-size: 12px; font-weight: 600; }
.gs-worker-directions:hover { background: #dbeafe; }
.gs-worker-directions:focus-visible { outline: 2px solid #176bc8; outline-offset: 2px; }
