.map-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 12px;
  min-height: 620px;
}
.map-workspace.single-map { grid-template-columns: minmax(0, 1fr) 320px; }
.map-workspace.scene-map-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: start;
}
.map-workspace > * { min-width: 0; }
.map-sidebar, .map-properties { display: grid; align-content: start; gap: 10px; }
.scene-map-workspace .map-stage,
.scene-map-workspace .map-properties,
.scene-map-workspace .map-object-panel,
.scene-map-workspace .table-wrap {
  min-width: 0;
  max-width: 100%;
}
.scene-map-workspace .map-properties,
.scene-map-workspace .map-object-panel { overflow: hidden; }
.map-list { display: grid; gap: 8px; }
.map-list-item {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 6px;
  padding: 8px 7px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}
.map-list-item.active { border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.12); }
.map-list-item:hover { border-color: rgba(34, 211, 238, 0.42); background: rgba(255, 255, 255, 0.055); }
.map-list-item.active:hover { border-color: rgba(34, 211, 238, 0.7); background: rgba(34, 211, 238, 0.14); }
.map-list-select {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  justify-items: start;
  justify-content: start;
  align-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.map-list-select:hover:not(:disabled) { border: 0; background: transparent; }
.map-list-item strong, .map-point-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-list-item strong,
.map-list-item .muted { width: 100%; text-align: left; }
.map-list-item strong { font-size: 12px; line-height: 1.15; }
.map-list-item .muted { font-size: 11px; line-height: 1.2; }
.map-quality-list-badge {
  display: inline-flex;
  width: auto;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}
.map-quality-list-badge.ready { color: #b9f6cf; border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.08); }
.map-quality-list-badge.partial { color: #ffe4b5; border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.map-quality-list-badge.evaluating { color: #bdeffc; border-color: rgba(34, 211, 238, 0.34); background: rgba(34, 211, 238, 0.07); }
.map-icon-button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.map-icon-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-icon-button:hover:not(:disabled) { border-color: transparent; background: transparent; color: var(--text); }
.map-icon-button.danger:hover:not(:disabled) { background: transparent; color: #ffb3a4; }
.map-list-item .map-icon-button {
  width: 24px;
  min-height: 24px;
}
.map-list-item .map-icon-button svg {
  width: 12px;
  height: 12px;
}
.map-inline-icon-button {
  width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.map-inline-icon-button svg {
  width: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-inline-icon-button:hover:not(:disabled),
.map-inline-icon-button.danger:hover:not(:disabled) {
  border: 0;
  background: transparent;
  color: #ffb3a4;
}
.map-inline-icon-button:not(.danger):hover:not(:disabled) { color: var(--text); }
.map-inline-icon-button.danger {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.map-stage { display: grid; align-content: start; gap: 10px; min-width: 0; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map-stage > .map-toolbar { align-items: flex-start; }
.map-stage > .map-toolbar > .map-navigation-actions {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.map-navigation-actions select { width: 147px; min-width: 105px; max-width: 147px; font-size: 11px; }
.map-navigation-actions button { white-space: nowrap; }
.map-robot-picker { position: relative; min-width: 190px; }
.map-robot-picker-toggle { width: 100%; min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "caption status chevron" "name status chevron"; align-items: center; gap: 2px 8px; padding: 6px 9px; border: 1px solid rgba(148,163,184,.34); border-radius: 7px; color: var(--text); background: rgba(8,23,31,.84); text-align: left; }
.map-robot-picker-toggle:hover:not(:disabled), .map-robot-picker.open .map-robot-picker-toggle { border-color: rgba(34,211,238,.68); background: rgba(15,45,56,.94); }
.map-robot-picker-caption { grid-area: caption; min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.map-robot-picker-toggle strong { grid-area: name; min-width: 0; overflow: hidden; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.map-robot-picker-toggle .map-robot-status-pill { grid-area: status; }
.map-robot-picker-chevron { grid-area: chevron; color: var(--muted); font-size: 16px; line-height: 1; }
.map-robot-status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 20px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; line-height: 1; white-space: nowrap; }
.map-robot-status-pill.online { color: #a7f3d0; border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.14); }
.map-robot-status-pill.offline { color: #cbd5e1; border-color: rgba(148,163,184,.4); background: rgba(148,163,184,.1); }
.map-robot-picker-menu { position: absolute; z-index: 45; top: calc(100% + 5px); right: 0; left: 0; display: grid; gap: 3px; max-height: min(320px, 50vh); padding: 5px; overflow: auto; border: 1px solid rgba(34,211,238,.42); border-radius: 8px; background: rgba(9,24,33,.98); box-shadow: 0 16px 38px rgba(0,0,0,.4); }
.map-robot-picker-menu[hidden] { display: none; }
.map-robot-picker-option { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--text); background: transparent; text-align: left; }
.map-robot-picker-option:hover:not(:disabled), .map-robot-picker-option.active { border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.13); }
.map-robot-option-main { min-width: 0; display: grid; gap: 2px; }
.map-robot-option-main strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.map-robot-option-main small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.map-robot-picker-empty { padding: 12px 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.scene-map-route-loading { position: fixed; z-index: 1400; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: var(--text); background: rgba(5,15,22,.58); backdrop-filter: blur(3px); pointer-events: all; }
.scene-map-route-loading strong { font-size: 15px; }
.scene-map-route-loading > span:last-child { color: var(--muted); font-size: 12px; }
.map-heading { min-width: 0; }
.map-navigation-history-button { margin-left: auto; white-space: nowrap; }
.map-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.map-title-line h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; }
.map-title-line .map-icon-button {
  width: 24px;
  min-height: 24px;
}
.map-title-line .map-icon-button svg {
  width: 12px;
  height: 12px;
}
.map-layer-toolbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.map-layer-actions { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.map-layer-actions button.active { color: #075985; border-color: #38bdf8; background: rgba(56, 189, 248, 0.16); }
.map-view-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.map-view-switch button { min-height: 29px; padding: 5px 9px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; }
.map-view-switch button.active { color: #e9fdff; background: rgba(6, 182, 212, 0.18); }
.map-layer-items { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: 1px; }
.map-layer-item { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 0 4px 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: rgba(255,255,255,0.03); font-size: 11px; white-space: nowrap; }
.map-layer-item.disabled { color: var(--muted); opacity: 0.7; }
.map-layer-item button { width: 22px; min-height: 22px; padding: 0; border: 0; color: inherit; background: transparent; }
.map-layer-item button svg { width: 12px; height: 12px; }
.map-table-text-button { min-height: 24px; padding: 2px 5px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.map-table-text-button:hover { color: var(--text); background: rgba(148, 163, 184, 0.12); }
.map-canvas {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    #eef2f5;
  background-size: 32px 32px, 32px 32px, 100% 100%;
  touch-action: none;
  cursor: grab;
}
.map-canvas.placing-point, .map-canvas.placing-point .map-canvas-content { cursor: crosshair !important; }
.map-canvas.panning { cursor: grabbing; }
.map-mobile-command-bar, .map-mobile-sheet, .map-mobile-viewport-hint { display: none; }
.map-canvas-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.map-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.map-point-context-menu {
  position: absolute;
  z-index: 30;
  width: 168px;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  background: rgba(13, 24, 33, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}
.map-point-context-menu button {
  width: 100%;
  min-height: 31px;
  justify-content: flex-start;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  color: #e8f1f5;
  background: transparent;
  text-align: left;
  font-size: 12px;
}
.map-point-context-menu button:hover:not(:disabled) { border: 0; color: #effdff; background: rgba(34, 211, 238, 0.14); }
.map-point-list-context-menu {
  position: fixed;
  z-index: 1200;
  width: 140px;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  background: rgba(13, 24, 33, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}
.map-point-list-context-menu button {
  width: 100%;
  min-height: 31px;
  justify-content: flex-start;
  padding: 6px 9px;
  border: 0;
  border-radius: 5px;
  color: #e8f1f5;
  background: transparent;
  text-align: left;
  font-size: 12px;
}
.map-point-list-context-menu button:hover:not(:disabled) { border: 0; color: #effdff; background: rgba(34, 211, 238, 0.14); }
.map-point-list-context-menu button.danger { color: #ff9c8b; }
.map-canvas-top-controls { position: absolute; top: 12px; left: 12px; z-index: 12; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); }
.map-canvas-top-controls .map-view-switch { flex: 0 0 auto; background: rgba(13, 24, 33, 0.9); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24); backdrop-filter: blur(10px); }
.map-viewport-controls {
  position: static;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  background: rgba(13, 24, 33, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}
.map-viewport-control,
.map-viewport-reset {
  min-height: 28px;
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  color: #e8f1f5;
  background: transparent;
  line-height: 1;
}
.map-viewport-control {
  width: 28px;
  padding: 0;
  font-size: 20px;
  font-weight: 500;
}
.map-viewport-reset { font-size: 11px; white-space: nowrap; }
.map-viewport-reset span { margin-left: 3px; color: #9dddec; font-variant-numeric: tabular-nums; }
.map-viewport-control:hover:not(:disabled),
.map-viewport-reset:hover:not(:disabled) { border: 0; background: rgba(34, 211, 238, 0.14); color: #effdff; }
.map-viewport-hint {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 10;
  padding: 4px 7px;
  border-radius: 5px;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(13, 24, 33, 0.74);
  font-size: 11px;
  line-height: 1.2;
  pointer-events: none;
}
.map-placement-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  color: #dffbff;
  background: rgba(13, 54, 64, 0.72);
  font-size: 12px;
}
.map-overlay-stack {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
  display: grid;
  justify-items: end;
  gap: 8px;
  width: min(380px, calc(100% - 24px));
  pointer-events: none;
}
.map-floating-notices {
  display: grid;
  justify-items: end;
  gap: 6px;
  width: 100%;
}
.map-floating-notice {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 7px 29px 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 7px;
  color: #e8f1f5;
  background: rgba(13, 24, 33, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
}
.map-floating-notice.warning {
  border-color: rgba(245, 158, 11, 0.5);
  color: #ffd594;
  background: rgba(47, 36, 20, 0.82);
  font-size: 12px;
}
.map-floating-notice .validation-item {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: right;
}
.map-floating-notice .validation-item.success { color: #9ce5b8; }
.map-floating-notice .validation-item.warning { color: #ffd594; }
.map-floating-notice .validation-item.error { color: #ffad9d; }
.map-floating-notice button {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  color: rgba(226, 232, 240, 0.78);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}
.map-floating-notice button:hover:not(:disabled) { border: 0; color: #fff; background: rgba(255, 255, 255, 0.12); }
.map-localization-hint {
  position: static;
  z-index: auto;
  max-width: 100%;
  color: #e8fbff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}
.map-canvas-content > svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.map-live-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
.map-occupancy-image { opacity: 1; image-rendering: pixelated; }
.map-occupancy-preview { opacity: 0.96; }
.map-presentation-image { image-rendering: auto; }
.map-presentation-boundary { fill: rgba(34,211,238,.10); stroke: #00b8d9; stroke-width: 1.6; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-presentation-handle { fill: #fff; stroke: #006d85; stroke-width: 1.8; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-presentation-index { fill: #003746; stroke: #fff; stroke-width: 1.2; paint-order: stroke; pointer-events: none; }
.map-presentation-mask { fill: rgba(8,20,30,.74); fill-rule: evenodd; pointer-events: none; }
.map-presentation-status { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 650; }
.map-presentation-status.ready { color: #166534; background: rgba(34, 197, 94, 0.14); }
.map-presentation-status.pending { color: #0e7490; background: rgba(34, 211, 238, 0.14); }
.map-presentation-status.warning { color: #92400e; background: rgba(245, 158, 11, 0.16); }
.map-presentation-status.error { color: #b42318; background: rgba(239, 68, 68, 0.14); }
.map-route-path { fill: none; stroke: rgba(16, 185, 129, 0.76); stroke-width: 0.36; stroke-linecap: round; stroke-linejoin: round; }
.map-route-path.active { stroke: rgba(245, 158, 11, 0.95); stroke-width: 0.54; }
.map-virtual-restriction { fill: rgba(239, 68, 68, 0.24); stroke: rgba(220, 38, 38, 0.95); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-virtual-restriction.disabled { fill: rgba(148, 163, 184, 0.12); stroke: rgba(100, 116, 139, 0.75); stroke-dasharray: 1.2 0.8; }
.map-virtual-restriction.preview { stroke-dasharray: 1.1 0.8; }
.map-presentation-annotation { position: absolute; z-index: 4; width: max-content; max-width: 180px; display: grid; gap: 1px; padding: 2px 4px 2px 15px; border: 0; border-radius: 4px; color: #344054; background: rgba(255,255,255,0.62); text-shadow: 0 1px 0 rgba(255,255,255,0.9); transform: translate(5px, -50%); font-size: 11px; line-height: 1.25; pointer-events: auto; }
.map-presentation-annotation::before { content: ""; position: absolute; left: 4px; top: 50%; width: 7px; height: 5px; border-top: 2px solid #344054; border-left: 2px solid #344054; transform: translateY(-50%); }
.map-presentation-annotation strong { font-size: 12px; }
.map-presentation-annotation span { color: #4b6365; }
.map-presentation-regenerate-dialog { width: min(580px, 100%); }
.map-presentation-profile-list { display: grid; gap: 8px; }
.map-presentation-profile-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,0.025); cursor: pointer; }
.map-presentation-profile-option:has(input:checked) { border-color: rgba(34, 211, 238, 0.58); background: rgba(34, 211, 238, 0.08); }
.map-presentation-profile-option input { margin-top: 3px; }
.map-presentation-profile-option span { display: grid; gap: 3px; }
.map-presentation-profile-option strong { color: var(--text); font-size: 13px; }
.map-presentation-profile-option small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.map-point {
  position: absolute;
  z-index: 3;
  width: 36px;
  height: 40px;
  min-height: 40px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
  cursor: grab;
  transform: translate(-18px, -40px);
  transform-origin: 50% 100%;
  pointer-events: auto;
  user-select: none;
}
.map-point:hover:not(:disabled) { z-index: 20; border: 0; background: transparent; color: #8df2ff; }
.map-point.active { color: var(--amber); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.42)) drop-shadow(0 12px 20px rgba(0,0,0,0.3)); }
.map-point:active { cursor: grabbing; }
.map-point.charge { color: var(--green); }
.map-point.start { color: var(--blue); }
.map-point.end { color: var(--amber); }
.map-point.invalid { color: #f9735b; filter: drop-shadow(0 0 8px rgba(249, 115, 91, 0.62)) drop-shadow(0 10px 18px rgba(0,0,0,0.28)); }
.map-point.invalid .map-point-label { border-color: rgba(249, 115, 91, 0.72); color: #ffd1c8; background: rgba(72, 24, 20, 0.94); }
.map-point.marginal { color: var(--amber); filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.48)) drop-shadow(0 10px 18px rgba(0,0,0,0.28)); }
.map-point.marginal .map-point-label { border-color: rgba(245, 158, 11, 0.62); color: #ffe2aa; background: rgba(65, 43, 12, 0.94); }
.map-point.checking { opacity: 0.72; }
.map-point-validity { display: inline-grid; place-items: center; min-width: 14px; height: 14px; margin-left: 3px; border-radius: 999px; color: #071014; background: var(--green); font-size: 10px; font-weight: 900; }
.map-point.invalid .map-point-validity { color: white; background: #f9735b; }
.map-point.marginal .map-point-validity { color: #211406; background: var(--amber); }
.map-point.checking .map-point-validity { color: #071014; background: var(--amber); }
.map-point-pin {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 34px;
  display: block;
  transform: translateX(-50%);
  pointer-events: none;
}
.map-point-heading {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 2px;
  height: 25px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
  transform: translateX(-50%) rotate(var(--point-heading-angle, 0deg));
  transform-origin: 50% 2px;
  pointer-events: none;
}
.map-point-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid currentColor;
  transform: translateX(-50%);
}
.map-point-pin svg {
  position: static;
  inset: auto;
  width: 28px;
  height: 34px;
  display: block;
  overflow: visible;
}
.map-point-pin-body {
  fill: rgba(13, 24, 33, 0.94);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-point-pin-dot { fill: currentColor; }
.map-point.active .map-point-pin-body { fill: rgba(38, 28, 12, 0.96); }
.map-point-label {
  position: absolute;
  left: 50%;
  bottom: 36px;
  max-width: 112px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: rgba(229, 240, 246, 0.82);
  background: rgba(13, 24, 33, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.map-point.active .map-point-label {
  border-color: rgba(34, 211, 238, 0.72);
  color: #e8fbff;
  background: rgba(13, 54, 64, 0.94);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.map-point-placement {
  z-index: 5;
  width: 280px;
  height: 56px;
  min-height: 56px;
  transform: translate(-140px, -56px);
  pointer-events: none;
  cursor: crosshair;
  opacity: 0;
  transition: opacity 100ms ease;
}
.map-point-placement.visible { opacity: 1; }
.map-point-placement .map-point-label {
  max-width: 280px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  text-align: center;
}
.map-point-placement:not(.invalid):not(.checking) { color: var(--cyan); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.38)) drop-shadow(0 10px 18px rgba(0,0,0,0.28)); }
.map-localization-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.07);
}
.map-localization-panel > div { display: grid; gap: 3px; min-width: 0; }
.map-localization-panel strong { color: #d8eaff; font-size: 13px; }
.map-localization-panel span, .map-localization-panel small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-localization-panel.warning { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.07); }
.map-localization-panel.warning strong { color: #ffe2aa; }
.map-localization-runtime {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.07);
}
.map-localization-runtime.ready { border-color: rgba(16, 185, 129, 0.48); background: rgba(16, 185, 129, 0.07); }
.map-localization-runtime-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.map-localization-runtime-head > div { display: grid; gap: 3px; min-width: 0; }
.map-localization-runtime-head strong { font-size: 13px; }
.map-localization-runtime-head > div > span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-localization-runtime-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(245, 158, 11, 0.46);
  border-radius: 999px;
  color: #ffe4b5;
  background: rgba(245, 158, 11, 0.1);
  font-size: 11px;
  line-height: 1.35;
}
.map-localization-runtime.ready .map-localization-runtime-status { color: #b9f6cf; border-color: rgba(16, 185, 129, 0.46); background: rgba(16, 185, 129, 0.1); }
.map-localization-runtime-list { display: grid; min-width: 0; }
.map-localization-runtime-item { display: grid; gap: 4px; min-width: 0; }
.map-localization-runtime-item + .map-localization-runtime-item { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.map-localization-runtime-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.map-localization-runtime-item-head strong { min-width: 0; font-size: 12px; }
.map-localization-runtime-item-head span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.map-localization-runtime-meta { display: grid; gap: 2px; min-width: 0; }
.map-localization-runtime-meta span, .map-localization-runtime-meta small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.map-localization-runtime-item.ready .map-localization-runtime-item-head span { color: #9ce5b8; }
.map-localization-runtime-item.warning .map-localization-runtime-item-head span { color: #ffd594; }
.map-localization-runtime-item.unknown { opacity: 0.76; }
.map-scene-runtime {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 9px;
  background: rgba(148, 163, 184, 0.06);
}
.map-scene-runtime.ready { border-color: rgba(16, 185, 129, 0.48); background: rgba(16, 185, 129, 0.07); }
.map-scene-runtime.running { border-color: rgba(34, 211, 238, 0.46); background: rgba(34, 211, 238, 0.07); }
.map-scene-runtime.starting, .map-scene-runtime.warning { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.07); }
.map-scene-runtime.danger { border-color: rgba(249, 115, 91, 0.52); background: rgba(249, 115, 91, 0.07); }
.map-scene-runtime-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.map-scene-runtime-facts > div { display: grid; gap: 3px; min-width: 0; }
.map-scene-runtime-facts span { color: var(--muted); font-size: 12px; }
.map-scene-runtime-facts strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
.map-scene-runtime-actions { display: flex; justify-content: flex-end; gap: 8px; }
.map-pose-marker {
  --pose-angle: 0deg;
  --pose-arrow-length: 42px;
  position: absolute;
  z-index: 6;
  width: 0;
  height: 0;
  color: #60a5fa;
  pointer-events: none;
}
.map-pose-footprint {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(13, 24, 33, 0.78);
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.12);
}
.map-pose-arrow {
  position: absolute;
  left: 0;
  top: -2px;
  width: var(--pose-arrow-length);
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(var(--pose-angle));
  transform-origin: 0 50%;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.72));
}
.map-pose-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
}
.map-pose-label {
  position: absolute;
  left: 0;
  top: 22px;
  width: max-content;
  max-width: 180px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #dcecff;
  background: rgba(13, 24, 33, 0.9);
  font-size: 10px;
  transform: translateX(-50%);
}
.map-pose-marker.suggested { z-index: 4; color: #f59e0b; opacity: 0.86; }
.map-pose-marker.dock-anchor { z-index: 5; color: #10b981; opacity: 0.9; }
.map-pose-marker.dock-anchor .map-pose-footprint { border-radius: 3px; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.14); }
.map-pose-marker.robot-runtime {
  z-index: 8;
  --pose-arrow-length: 34px;
  opacity: 0.76;
  transition: color 180ms ease, opacity 180ms ease;
  filter: drop-shadow(0 0 7px rgba(16, 185, 129, 0.4));
}
.map-pose-marker.robot-runtime .map-pose-footprint {
  width: 34px;
  height: 34px;
  left: -17px;
  top: -17px;
  border-width: 3px;
  background: rgba(7, 26, 31, 0.92);
}
.map-pose-marker.robot-runtime .map-pose-label { top: 25px; font-weight: 700; }
.map-pose-marker.robot-runtime.ready { color: #10b981; }
.map-pose-marker.robot-runtime.ready .map-pose-footprint { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15); }
.map-pose-marker.robot-runtime.converging { color: #f59e0b; filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.42)); }
.map-pose-marker.robot-runtime.stale { color: #94a3b8; opacity: 0.68; filter: none; }
.map-pose-marker.localization-placement {
  z-index: 9;
  color: #22d3ee;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.38));
}
.map-pose-marker.localization-placement .map-pose-footprint {
  border-width: 3px;
  background: rgba(8, 38, 48, 0.86);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.14);
}
.map-pose-marker.localization-placement .map-pose-footprint::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: map-localization-pulse 1.4s ease-out infinite;
}
.map-pose-marker.localization-placement.dragging .map-pose-arrow {
  height: 5px;
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.9));
}
.map-pose-marker.localization-placement.dragging .map-pose-label { color: #effdff; }
.map-pose-marker.localization-placement.validating { color: #f59e0b; }
.map-pose-marker.localization-placement.invalid { color: #f9735b; }
@keyframes map-localization-pulse {
  0% { transform: scale(0.72); opacity: 0.72; }
  75%, 100% { transform: scale(1.45); opacity: 0; }
}
.map-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.map-stat { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.035); }
.map-stat span { display: block; color: var(--muted); font-size: 11px; }
.map-stat strong { display: block; margin-top: 4px; font-size: 15px; }
.map-quality-panel {
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.06);
}
.map-quality-panel.ready { border-color: rgba(16, 185, 129, 0.48); background: rgba(16, 185, 129, 0.07); }
.map-quality-panel.partial { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.07); }
.map-quality-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.map-quality-row > * { min-width: 0; max-width: 100%; }
.map-quality-row > .map-quality-panel, .map-quality-row > .map-localization-runtime { height: 100%; box-sizing: border-box; }
.map-quality-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.map-quality-head > div { display: grid; gap: 3px; min-width: 0; }
.map-quality-head strong { font-size: 13px; }
.map-quality-head span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-quality-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 999px;
  color: #bdeffc !important;
  background: rgba(34, 211, 238, 0.08);
}
.map-quality-panel.ready .map-quality-status { color: #b9f6cf !important; border-color: rgba(16, 185, 129, 0.46); background: rgba(16, 185, 129, 0.1); }
.map-quality-panel.partial .map-quality-status { color: #ffe4b5 !important; border-color: rgba(245, 158, 11, 0.48); background: rgba(245, 158, 11, 0.1); }
.map-quality-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.map-quality-check { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 7px 6px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,0.035); }
.map-quality-check span { min-height: 25px; color: var(--muted); font-size: 10px; line-height: 1.25; white-space: normal; }
.map-quality-check strong { font-size: 12px; }
.map-quality-check small { color: var(--muted); font-size: 9px; line-height: 1.25; }
.map-quality-check.passed { border-color: rgba(16, 185, 129, 0.36); }
.map-quality-check.passed small { color: #9ce5b8; }
.map-quality-check.failed { border-color: rgba(245, 158, 11, 0.38); }
.map-quality-check.failed small { color: #ffd594; }
.map-quality-check.unknown { opacity: 0.72; }
.scan-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.08); }
.scan-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.map-scan-overlay {
  position: static;
  z-index: auto;
  width: min(220px, 100%);
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  background: rgba(13, 24, 33, 0.9);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}
.map-scan-overlay.blocked {
  border-color: rgba(255, 213, 128, 0.46);
}
.map-scan-overlay.failed {
  border-color: rgba(249, 115, 91, 0.62);
}
.map-scan-overlay .scan-progress { height: 6px; }
.map-scan-overlay-text {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(229, 240, 246, 0.78);
  font-size: 12px;
  line-height: 1.2;
}
.map-scan-overlay-text strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.map-scan-overlay-note {
  color: rgba(255, 213, 128, 0.9);
  font-size: 12px;
  line-height: 1.25;
}
.map-scan-overlay.failed .map-scan-overlay-note {
  color: rgba(255, 166, 148, 0.94);
}
.map-object-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}
.map-object-tabs button { min-width: 0; border: 0; background: transparent; font-size: 12px; white-space: nowrap; }
.map-object-tabs button.active { color: #031017; background: #dffbff; font-weight: 700; }
.map-object-panel { display: grid; align-content: start; gap: 10px; min-width: 0; }
.map-validation-cards { display: grid; gap: 9px; min-width: 0; }
.map-navigation-history-dialog { width: min(780px, calc(100vw - 32px)); }
.map-navigation-history-dialog .map-validation-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-validation-card { display: grid; gap: 8px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.035); }
.map-validation-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.map-validation-card-head strong { font-size: 13px; }
.map-validation-card-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; font-size: 12px; }
.map-validation-card-meta span { color: var(--muted); }
.map-validation-card-meta strong { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.map-validation-card-message { overflow-wrap: anywhere; color: #ffd1c8; font-size: 12px; line-height: 1.4; }
.map-navigation-history-table-wrap { max-width: 100%; overflow-x: auto; }
.map-navigation-history-table { width: 100%; min-width: 620px; }
.map-navigation-history-table th { color: var(--muted); font-size: 12px; white-space: nowrap; }
.map-navigation-history-table td { vertical-align: top; font-size: 12px; white-space: nowrap; }
.map-history-message { display: block; max-width: 230px; margin-top: 3px; color: #ffb7a8; font-size: 11px; white-space: normal; }
.map-navigation-confirm-dialog { width: min(560px, 100%); }
.map-navigation-confirm-form { gap: 12px; }
.map-navigation-confirm-details { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.035); }
.map-navigation-confirm-details > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 40px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.map-navigation-confirm-details > div:last-child { border-bottom: 0; }
.map-navigation-confirm-details dt { color: var(--muted); font-size: 12px; }
.map-navigation-confirm-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 13px; font-weight: 650; }
.map-navigation-confirm-tip { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.map-navigation-confirm-tip.warning { padding: 9px 11px; border: 1px solid rgba(245, 158, 11, 0.38); border-radius: 7px; color: #ffe4b5; background: rgba(245, 158, 11, 0.08); }
.map-navigation-confirm-actions { justify-content: flex-end; padding-top: 2px; }
.map-settings-readonly { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-settings-readonly div { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,0.035); }
.map-settings-readonly span, .map-settings-readonly strong { display: block; overflow-wrap: anywhere; }
.map-settings-readonly span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.map-settings-readonly strong { font-size: 12px; }
.map-object-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.map-object-toolbar .muted { font-size: 12px; line-height: 1.2; }
.table.map-object-table tbody tr { cursor: pointer; }
.table.map-object-table tbody tr:hover { background: rgba(255, 255, 255, 0.055); }
.table.map-object-table tbody tr.active { background: rgba(34, 211, 238, 0.1); }
.table.map-object-table tbody tr.active:hover { background: rgba(34, 211, 238, 0.15); }
.map-point-table { table-layout: fixed; }
.map-object-table th { white-space: nowrap; }
.table.map-object-table td { vertical-align: middle; }
.map-object-status-column { width: 82px; text-align: right; }
.map-object-action-column { width: 34px; text-align: right; }
.map-object-name { min-height: 22px; display: flex; align-items: center; min-width: 0; }
.map-object-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.2; }
.map-point-status-tag {
  display: inline-flex;
  min-width: 54px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  color: rgba(229, 240, 246, 0.78);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.map-point-status-tag.success { border-color: rgba(52, 211, 153, 0.36); background: rgba(16, 185, 129, 0.12); color: #8ce8ba; }
.map-point-status-tag.warning { border-color: rgba(251, 191, 36, 0.38); background: rgba(245, 158, 11, 0.12); color: #f8d477; }
.map-point-status-tag.error { border-color: rgba(249, 115, 91, 0.42); background: rgba(249, 115, 91, 0.12); color: #ffad9d; }
.map-table-icon-button {
  width: 22px;
  min-height: 22px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.map-table-icon-button svg {
  width: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-point-actions-button { color: var(--muted); }
.map-point-actions-button svg { width: 16px; height: 16px; }
.map-table-icon-button:hover:not(:disabled) { border-color: transparent; background: transparent; color: #ffb3a4; }
.map-point-actions-button:hover:not(:disabled) { color: var(--text); background: rgba(34, 211, 238, 0.12); }
