.fleet-map{position:relative;isolation:isolate;overflow:hidden;border:1px solid #dce4df;border-radius:8px;background:#e9eee8;color:#203942;font-family:inherit}.fleet-map-viewport{height:420px;width:100%;position:relative;overflow:hidden;touch-action:none;cursor:grab;outline-offset:-3px;background:repeating-linear-gradient(0deg,transparent 0 31px,#dfe7dc 32px),repeating-linear-gradient(90deg,transparent 0 31px,#dfe7dc 32px)}.fleet-map-viewport.is-dragging{cursor:grabbing}.fleet-map-viewport:focus-visible{outline:3px solid #e9a06c}.fleet-map-tiles,.fleet-map-markers{position:absolute;inset:0;pointer-events:none;overflow:hidden}.fleet-map-tile{position:absolute;left:0;top:0;width:256px!important;height:256px!important;max-width:none!important;max-height:none!important;user-select:none;-webkit-user-drag:none}.fleet-map-markers{overflow:visible}.fleet-map-marker{pointer-events:auto;position:absolute;left:0;top:0;width:30px;height:34px;margin:-29px 0 0 -15px;padding:0;border:0;background:none;cursor:pointer;z-index:2;overflow:visible}.fleet-map-marker:focus-visible{outline:3px solid #e87936;outline-offset:5px;border-radius:15px}.fleet-map-marker.is-selected{z-index:4}.fleet-map-pin{display:block;width:22px;height:22px;margin:3px 4px;background:#437a6d;border:3px solid white;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 2px 8px #203c4440}.fleet-map-pin:after{content:"";display:block;width:5px;height:5px;background:#d8eee4;border-radius:50%;margin:5px}.fleet-map-marker.is-selected .fleet-map-pin{background:#e87936;box-shadow:0 0 0 5px #e8793630,0 2px 8px #203c4440}.fleet-map-marker.is-selected .fleet-map-pin:after{background:#fff5e9}.fleet-map-label{position:absolute;bottom:38px;left:50%;transform:translateX(-50%);background:#fff;color:#2d4a51;border:1px solid #d8e2dd;border-radius:5px;padding:7px 9px;white-space:nowrap;max-width:200px;text-overflow:ellipsis;overflow:hidden;font-size:10px;font-weight:650;box-shadow:0 2px 6px #203c4414;pointer-events:none}.fleet-map-marker.label-below .fleet-map-label{bottom:auto;top:36px}.fleet-map-controls{position:absolute;top:14px;left:14px;display:flex;flex-direction:column;gap:6px;z-index:6}.fleet-map-control{width:32px;height:32px;border:1px solid #d7e0db;border-radius:5px;background:#fff;color:#506b72;font:600 18px "Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:0 1px 4px #203c4412;display:grid;place-items:center;padding:0}.fleet-map-control:hover:not(:disabled){background:#f4f8ef;border-color:#b7cdbd}.fleet-map-control:focus-visible{outline:3px solid #e9a06c;outline-offset:2px}.fleet-map-control:disabled{opacity:.5;cursor:default}.fleet-map-control:nth-child(3){margin-top:7px}.fleet-map-caption{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #dce5d9;padding:11px 13px;background:#f8faf5;font-size:9px;color:#6f887b;line-height:1.6}.fleet-map-count{font-weight:600;letter-spacing:.3px}.fleet-map-hint{text-align:right;font-size:8px;color:#96a49c}.fleet-map-attribution{position:absolute;right:0;bottom:38px;max-width:100%;background:#fffffff0;padding:4px 7px;font-size:9px;line-height:1.4;color:#5c7475;z-index:7;white-space:nowrap}.fleet-map-attribution a{color:#3e756b;text-decoration:underline;text-underline-offset:2px}.fleet-map-zoom{position:absolute;right:12px;top:15px;z-index:6;border:1px solid #dbe4dc;padding:5px 8px;background:#fffffff0;border-radius:4px;color:#83958a;font-size:8px;pointer-events:none}.fleet-map-status{position:absolute;top:13px;left:58px;right:85px;z-index:6;text-align:center;background:#fffef4ed;border:1px solid #e7e6cb;padding:8px 11px;border-radius:5px;color:#8a835d;font-size:10px;line-height:1.5;pointer-events:none}.fleet-map-status.has-error{background:#fff2e5f2;border-color:#edd2b3;color:#9e743d}.fleet-map-status[hidden]{display:none}@media(max-width:680px){.fleet-map-viewport{height:340px}.fleet-map-caption{align-items:flex-start;font-size:8px;padding:10px}.fleet-map-hint{max-width:130px}.fleet-map-attribution{bottom:43px;font-size:8px}.fleet-map-status{font-size:9px;left:58px;right:68px;padding:7px}.fleet-map-zoom{right:9px;top:15px;padding:5px;font-size:7px}.fleet-map-label{font-size:9px;max-width:160px}}

.fleet-map-geometry{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-muted .fleet-map-tile{filter:saturate(.35) brightness(1.04)}
/* Local drawing tools and device symbols. Geometry stays in the browser. */
.fleet-map-preview{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:hidden;z-index:3}.fleet-map-preview .draft-area{fill:#ec77341c;stroke:#ec7734;stroke-width:2;stroke-dasharray:7 4;stroke-linejoin:round}.fleet-map-preview .draft-vertex{fill:#fff;stroke:#ec7734;stroke-width:2}.fleet-map.is-drawing .fleet-map-viewport{cursor:crosshair}.fleet-map.is-drawing .fleet-map-markers{pointer-events:none}.fleet-map.is-drawing .fleet-map-marker{pointer-events:none}.fleet-map-draw-toolbar{position:absolute;left:60px;right:16px;bottom:58px;z-index:10;display:flex;align-items:center;gap:8px;padding:12px;background:#fffffff5;border:1px solid #e3edf2;border-radius:12px;box-shadow:0 5px 25px #23485724}.fleet-map-draw-help{flex:1;min-width:0;font-size:10px;line-height:1.7;color:#728e9c}.fleet-map-draw-toolbar .fleet-map-control{width:auto;min-height:33px;height:auto;flex-shrink:0;font-size:10px;font-family:inherit;font-weight:600;padding:8px 11px;white-space:nowrap;border-radius:8px;box-shadow:none}.fleet-map-draw-toolbar .fleet-map-control:nth-child(3){margin-top:0;background:#ec7734;border-color:#ec7734;color:#fff}.fleet-map-draw-toolbar .fleet-map-control:nth-child(3):hover:not(:disabled){background:#d96829;border-color:#d96829}.fleet-map-draw-toolbar .fleet-map-control:last-child{color:#91a5af;background:#f7fafb}.fleet-map-pin{width:32px;height:32px;margin:0;background:#17a5b6;border:2px solid #fff;border-radius:11px;transform:none;position:relative;display:grid;place-items:center;box-shadow:0 4px 10px #155e7045}.fleet-map-pin:before{content:'';position:absolute;bottom:-5px;left:10px;width:8px;height:8px;background:inherit;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg);z-index:-1}.fleet-map-pin:after{display:none}.fleet-map-pin svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;position:relative;z-index:1}.fleet-map-marker{width:34px;height:37px;margin:-35px 0 0 -17px}.fleet-map-marker.is-selected .fleet-map-pin{background:#ec7734;box-shadow:0 0 0 6px #ec773426,0 4px 12px #a8593040}.fleet-map-marker.is-selected{z-index:5}.fleet-map-label{bottom:44px}.fleet-map-marker.label-below .fleet-map-label{top:44px}
@media(max-width:680px){.fleet-map-draw-toolbar{left:12px;right:12px;bottom:59px;flex-wrap:wrap;padding:10px;gap:7px}.fleet-map-draw-help{flex-basis:100%;font-size:10px}.fleet-map-draw-toolbar .fleet-map-control{font-size:10px;min-height:34px;flex:1}.fleet-map-pin{width:31px;height:31px}.fleet-map-pin svg{width:20px;height:20px}}
@media print{.fleet-map-draw-toolbar{display:none!important}}
.fleet-map-traffic{position:absolute;inset:0;pointer-events:none;overflow:hidden}.fleet-map-traffic-status{position:absolute;left:60px;right:16px;top:51px;z-index:7;background:#fff7eaf2;border:1px solid #efdcc0;border-radius:8px;padding:8px 12px;font-size:10px;line-height:1.6;color:#9e7b51;pointer-events:none}.fleet-map-traffic-credit{font-size:inherit;color:#5c7475}
/* Marker-anchored technical preview. Labels stay local; legal credits remain visible. */
.fleet-map-popup{position:absolute;top:0;left:0;z-index:12;background:#fffffff5;border:1px solid #deebf0;border-radius:14px;box-shadow:0 10px 40px #244e6a26;padding:16px;color:#456b7d;max-height:calc(100% - 65px);overflow:auto;overscroll-behavior:contain;backdrop-filter:blur(12px)}.fleet-map-popup-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.fleet-map-popup-kicker{font-size:7px;font-weight:600;letter-spacing:1.5px;color:#94aebb;display:block;margin-bottom:7px}.fleet-map-popup-header h3{font-size:15px;line-height:1.4;letter-spacing:-.35px;margin:0;color:#335a6d;overflow-wrap:anywhere}.fleet-map-popup-close{border:0;background:#f1f7fa;color:#91aab7;border-radius:7px;width:25px;height:25px;flex-shrink:0;font-size:19px;line-height:1;cursor:pointer}.fleet-map-popup-close:hover{background:#e7f3f7;color:#2b8fa4}.fleet-map-popup-facts{display:grid;grid-template-columns:1fr 1fr;gap:13px 12px;margin:0 0 16px}.fleet-map-popup-facts>div:nth-child(3){grid-column:1/-1}.fleet-map-popup-facts dt{font-size:8px;color:#9db1bd;margin:0 0 5px}.fleet-map-popup-facts dd{font-size:10px;line-height:1.5;color:#5b8092;margin:0;overflow-wrap:anywhere}.fleet-map-popup-actions{border-top:1px solid #eaf1f5;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:12px}.fleet-map-popup-actions button{border:1px solid #e2edf2;background:#f8fcfd;border-radius:7px;color:#7192a1;font:600 9px 'Segoe UI',Arial,sans-serif;padding:9px 7px;cursor:pointer;min-height:31px}.fleet-map-popup-actions button:hover{background:#eaf7fa;border-color:#b7dde6;color:#2b8f9e}.fleet-map-popup-actions button.is-primary{background:#eaf7f9;border-color:#caeaf0;color:#288e9f}.fleet-map-popup button:focus-visible{outline:3px solid #37b0ba87;outline-offset:2px}.fleet-map.is-drawing .fleet-map-popup{display:none}@media(max-width:680px){.fleet-map-popup{padding:14px;border-radius:12px;max-height:calc(100% - 65px)}.fleet-map-popup-header h3{font-size:14px}.fleet-map-popup-facts{gap:11px}.fleet-map-popup-actions button{font-size:9px;min-height:34px}}
/* Popovers stay bounded by the visible map viewport, including short windows. */
.fleet-map-popup{max-height:calc(100% - 59px);scrollbar-width:thin}
.fleet-map-history-legend{position:absolute;left:12px;right:12px;bottom:64px;z-index:7;padding:8px 10px;border:1px solid #e1e8f2;border-radius:7px;background:#fffffff0;color:#8799b4;font-size:8px;line-height:1.7;pointer-events:none;max-width:320px}.fleet-map-history-legend:before{content:'';display:inline-block;width:23px;border-top:2px dotted #8294cb;margin-right:7px;vertical-align:middle}.fleet-map-history-reference{pointer-events:none}
.fleet-map-preview .draft-corridor{fill:none;stroke:#ec7734;stroke-width:2;stroke-dasharray:3 6}.fleet-map-preview .draft-corridor-band{fill:none;stroke:#ec7734;stroke-opacity:.12;stroke-linecap:round;stroke-linejoin:round}.fleet-map-telemetry-note{font-size:8px;line-height:1.8;color:#9fb1bd;margin:0 0 12px;padding:8px;border-radius:6px;background:#f6f9fb}.fleet-map-popup-facts>div:nth-child(6){grid-column:1/-1}
.fleet-map-history-endpoint-label{font:600 10px 'Segoe UI',Arial,sans-serif;pointer-events:none}.fleet-map.is-history-mode .fleet-map-history-legend{bottom:91px;max-width:360px}.fleet-map-history-outline{pointer-events:none}.fleet-map-history-point,.fleet-map-history-endpoint{pointer-events:none}

/* Night cartography. Filter only the base tiles so incident and traffic colors retain their meaning. */
body[data-theme="dark"] .fleet-map {
  background: #16212d;
  border-color: #344454;
}
body[data-theme="dark"] .fleet-map .fleet-map-viewport {
  background: #182431;
}
body[data-theme="dark"] .fleet-map .fleet-map-tiles {
  filter: invert(1) grayscale(.86) sepia(.17) hue-rotate(157deg) brightness(1.32) contrast(.86);
}
body[data-theme="dark"] .fleet-map .fleet-map-caption { background: #182633; border-color: #364757; color: #d4e4ef; }
body[data-theme="dark"] .fleet-map .fleet-map-hint { color: #b6c9d6; }
body[data-theme="dark"] .fleet-map .fleet-map-history-outline { stroke: #23374a; }
body[data-theme="dark"] .fleet-map .fleet-map-history-reference { stroke: #8de8ff; stroke-width: 4; }
body[data-theme="dark"] .fleet-map .fleet-map-history-point { fill: #137397; }
body[data-theme="dark"] .fleet-map .fleet-map-history-endpoint-label { fill: white; stroke: #1a2c3e; }
body[data-theme="dark"] .fleet-map .fleet-map-history-legend:before { border-color: #8de8ff; }
body[data-theme="dark"] .fleet-map-geometry polyline[stroke-dasharray="3 6"] {
  stroke: #c1a6ff;
  stroke-width: 4;
  stroke-dasharray: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 1;
}

/* Honor the existing Claro choice on the private map. */
body[data-theme] .map-muted .fleet-map .fleet-map-tiles { filter: none; }

/* Use the same surfaces for embedded, public and workspace maps. */
body[data-theme] .fleet-map :is(.fleet-map-control,.fleet-map-label,.fleet-map-zoom,
  .fleet-map-attribution,.fleet-map-history-legend,.fleet-map-popup,.fleet-map-popup-close,
  .fleet-map-popup-actions button,.fleet-map-telemetry-note) {
  background: var(--fm-surface); color: var(--fm-text); border-color: var(--fm-edge);
}
body[data-theme] .fleet-map :is(.fleet-map-popup-kicker,.fleet-map-popup-facts dt,
  .fleet-map-popup-facts dd,.fleet-map-traffic-credit,.fleet-map-attribution a) { color: var(--fm-secondary); }
body[data-theme] .fleet-map .fleet-map-popup-header h3 { color: var(--fm-text); }
body[data-theme] .fleet-map :is(.fleet-map-popup-actions button,.fleet-map-popup-close,.fleet-map-control):hover:not(:disabled) {
  background: var(--fm-active); color: var(--fm-text);
}
.fleet-map-popup-header { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.fleet-map-popup { box-sizing: border-box; }
@media (max-width: 680px) {
  body[data-theme] .fleet-map .fleet-map-popup-close,
  body[data-theme] .fleet-map .fleet-map-controls .fleet-map-control { width: 44px; height: 44px; }
  body[data-theme] .fleet-map .fleet-map-popup-actions button,
  body[data-theme] .fleet-map .fleet-map-draw-toolbar button { min-width: 44px; min-height: 44px; font-size: .8125rem; }
}
