/* waypoints.css — the Map click mode (View / Route / Zone) in Survey
   controls, the map cursor per mode, and the Waypoints section in the
   Mission planner. Loaded after the other stylesheets. */

/* Map click: a label and a compact three-way switch */
.mode-row { display: flex; align-items: center; gap: 8px; }
.mode-k { font: 500 10.5px var(--font); letter-spacing: .02em; color: var(--fg2); white-space: nowrap; }
.mode-seg { display: flex; flex: 1; min-width: 0; }
.mode-seg button { flex: 1; min-width: 0; padding: 4px 6px; font-weight: 600; }
.mode-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* the map cursor: View reads and pans (grab); Route and Zone place points */
#cv-ui.mode-view { cursor: grab; }
#cv-ui.mode-view.dragging { cursor: grabbing; }

/* Waypoints section at the end of the Mission planner */
#ms-wps > summary { gap: 6px; }
.ms-wps-n {
  margin-left: 6px; padding: 0 6px; border-radius: 999px;
  font: 600 10.5px var(--mono); color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
#ms-wps #wp-list { margin-top: 4px; max-height: 220px; overflow-y: auto; padding-right: 6px; font: 10.5px/1.4 var(--mono); color: var(--fg2); }
#ms-wps .wp-empty { font: 11px/1.4 var(--font); padding: 2px 0 4px; }
#mission > #ms-modehint[hidden], #mission > #ms-wps[hidden] { display: none; }

/* phones: the Mission sheet's Summary view shows only the summary */
#mission.msheet-sum > #ms-wps, #mission.msheet-sum > #ms-modehint { display: none !important; }
.msheet-body #ms-wps #wp-list { max-height: none; }
