/* 文件说明：把设备最新位置渲染到地图，并标注在线状态与平台信息。 */
.device-map-panel { margin: 16px 0; padding: 14px; border: 1px solid #eadfe7; border-radius: 16px; background: rgba(255,255,255,.88); }
.device-map-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.device-map-summary p { margin: 0; color: #3d3540; font-size: 13px; font-weight: 700; }
.device-map-summary small { max-width: 54%; color: #776d78; font-size: 11px; line-height: 1.5; text-align: right; }
.device-map-viewport { overflow: hidden; aspect-ratio: 2 / 1; min-height: 220px; border: 1px solid rgba(154,180,205,.45); border-radius: 13px; background: #eaf5ff; box-shadow: inset 0 1px 12px rgba(63,91,113,.06); }
.device-map-svg { display: block; width: 100%; height: 100%; }
.device-map-ocean { fill: #eaf5ff; }
.device-map-grid line { stroke: #c9dff0; stroke-width: .7; stroke-dasharray: 3 5; }
.device-map-land path { fill: #fff8fb; stroke: #c7b8c5; stroke-width: .55; vector-effect: non-scaling-stroke; }
.device-map-marker { cursor: pointer; outline: none; }
.device-map-marker-link { stroke: #7b7280; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.device-map-marker-ring { fill: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.device-map-marker-dot { vector-effect: non-scaling-stroke; }
.device-map-marker.is-online .device-map-marker-ring { stroke: #1f9b68; }
.device-map-marker.is-online .device-map-marker-dot { fill: #26a96f; }
.device-map-marker.is-offline .device-map-marker-ring { stroke: #827783; }
.device-map-marker.is-offline .device-map-marker-dot { fill: #968b97; }
.device-map-marker-label { fill: #fff; font-size: 6px; font-weight: 800; pointer-events: none; }
.device-map-marker:hover .device-map-marker-ring,
.device-map-marker:focus .device-map-marker-ring,
.device-map-marker.is-selected .device-map-marker-ring { stroke: #e979aa; stroke-width: 3; }
.device-map-detail { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1.4fr); gap: 9px; align-items: center; min-height: 44px; margin-top: 9px; padding: 9px 11px; border-radius: 11px; background: #faf7fa; color: #776d78; font-size: 12px; }
.device-map-detail strong { color: #29232c; overflow-wrap: anywhere; }
.map-online-text { color: #278657; font-weight: 800; }
.map-offline-text { color: #827783; font-weight: 700; }
.device-map-loading,.device-map-error { margin: 0; padding: 32px 12px; color: #776d78; text-align: center; }
.device-map-error { color: #b42346; }
@media (max-width: 640px) {
  .device-map-panel { padding: 10px; }
  .device-map-summary { display: block; }
  .device-map-summary small { display: block; max-width: none; margin-top: 5px; text-align: left; }
  .device-map-viewport { min-height: 160px; }
  .device-map-detail { grid-template-columns: 1fr auto; }
  .device-map-detail span:last-child { grid-column: 1 / -1; }
}
