:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --green: #20845a;
  --yellow: #a66b00;
  --red: #b42318;
  --gray: #687385;
  --green-bg: #e7f6ef;
  --yellow-bg: #fff4d8;
  --red-bg: #fde8e7;
  --gray-bg: #eceff3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(32, 132, 90, 0.08), transparent 24%),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: linear-gradient(90deg, #0f172a, #111827 52%, #0f172a);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 24px;
}

.topbar-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.brand {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-user-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.nav a {
  border-radius: 6px;
  color: #dbe4f0;
  font-size: 14px;
  padding: 8px 10px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.nav-logout {
  margin: 0;
}

.nav-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f4f7fb;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 12px;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-user {
  color: #c9d5e6;
  font-size: 13px;
  font-weight: 700;
}

.nav-user-muted {
  color: rgba(219, 228, 240, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.actions select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.page-shell {
  margin: 0 auto;
  max-width: 1220px;
  padding: 28px 24px 48px;
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding-top: 42px;
}

.auth-card {
  max-width: 520px;
  width: 100%;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.page-heading {
  align-items: flex-end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.section-block {
  margin-top: 22px;
}

.section-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 18px;
  margin: 0;
}

.status-legend {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 22px;
  padding: 14px 16px;
}

.status-legend h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.legend-items {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.legend-item {
  align-items: flex-start;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.legend-item strong {
  display: block;
  font-size: 13px;
}

.legend-item span:last-child {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.legend-dot {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 12px;
  margin-top: 4px;
  width: 12px;
}

.legend-dot-green {
  background: var(--green);
}

.legend-dot-yellow {
  background: var(--yellow);
}

.legend-dot-red {
  background: var(--red);
}

.legend-dot-gray {
  background: var(--gray);
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.summary-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.summary-card .card-actions {
  margin-top: auto;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.operator-stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 142px;
}

.operator-stat-card.summary-card {
  min-height: 180px;
}

.stat-value {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-note {
  color: var(--muted);
  font-size: 14px;
  margin: auto 0 0;
}

.operator-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  align-items: start;
}

.operator-main,
.operator-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.operator-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-stack,
.queue-stack {
  display: grid;
  gap: 12px;
}

.operator-message-card {
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  padding: 12px;
}

.operator-message-head {
  align-items: flex-start;
}

.operator-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-status-tile {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.operator-status-tile strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.queue-item {
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.queue-item-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.queue-item-body {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-size: 13px;
  margin-top: 10px;
}

.empty-state {
  background: #f9fbfd;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
}

.operator-weather-summary {
  display: grid;
  gap: 12px;
}

.metric-grid--tight {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-table table {
  min-width: 0;
}

.weather-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 16px;
}

.status-border-green {
  border-left-color: var(--green);
}

.status-border-yellow {
  border-left-color: var(--yellow);
}

.status-border-red {
  border-left-color: var(--red);
}

.status-border-gray {
  border-left-color: var(--gray);
}

.card-head,
.card-foot {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.card-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.operator-message {
  margin: 14px 0;
  min-height: 48px;
}

.location-line {
  color: #3b4658;
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 0;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-width: 62px;
  padding: 4px 9px;
  text-transform: uppercase;
}

.status-green {
  background: var(--green-bg);
  color: var(--green);
}

.status-yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.status-red {
  background: var(--red-bg);
  color: var(--red);
}

.status-gray {
  background: var(--gray-bg);
  color: var(--gray);
}

.status-info {
  background: #e7efff;
  color: var(--accent);
}

.status-warning {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.status-critical {
  background: var(--red-bg);
  color: var(--red);
}

.status-draft {
  background: var(--gray-bg);
  color: var(--gray);
}

.status-ready,
.status-active,
.status-running,
.status-completed {
  background: var(--green-bg);
  color: var(--green);
}

.status-needs-validation,
.status-paused,
.status-paused-for-dump,
.status-continuing-after-dump,
.status-pending,
.status-open {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.status-archived,
.status-abandoned,
.status-skipped,
.status-closed {
  background: var(--gray-bg);
  color: var(--gray);
}

.status-failed {
  background: var(--red-bg);
  color: var(--red);
}

.priority-critical {
  background: var(--red-bg);
  color: var(--red);
}

.priority-high {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.priority-normal {
  background: #e7efff;
  color: var(--accent);
}

.priority-low {
  background: var(--gray-bg);
  color: var(--gray);
}

.metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
}

.metric-grid div {
  border-top: 1px solid var(--line);
  min-width: 0;
  padding-top: 8px;
}

.metric-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.metric-grid dd {
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
}

.button:hover {
  text-decoration: none;
}

.button.secondary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button.ghost {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.button.danger {
  background: var(--red-bg);
  border-color: #f4b4af;
  color: var(--red);
}

.button:disabled {
  background: var(--gray-bg);
  border-color: #cfd6df;
  box-shadow: none;
  color: #6f7884;
  cursor: not-allowed;
  opacity: 0.7;
}

.button.secondary:disabled {
  background: #dde3ea;
  border-color: #c6ced8;
  color: #616b78;
}

.button.ghost:disabled,
.button.danger:disabled {
  background: var(--gray-bg);
  border-color: #d4dae2;
  color: #7a8491;
}

.button.compact {
  font-size: 13px;
  min-height: 32px;
  padding: 5px 9px;
}

.notice {
  background: #eef6ff;
  border: 1px solid #b9d7ff;
  border-radius: 8px;
  color: #16427a;
  margin: 0 0 16px;
  padding: 10px 12px;
}

.notice.error {
  background: var(--red-bg);
  border-color: #f4b4af;
  color: var(--red);
}

.assigned-rovers {
  border-top: 1px solid var(--line);
  margin: 0 0 14px;
  padding-top: 10px;
}

.mini-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.rover-chip {
  align-items: baseline;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 7px 8px;
}

.rover-chip span {
  color: var(--muted);
  font-size: 13px;
}

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-panel label {
  display: block;
  min-width: 0;
}

.form-panel label > span {
  color: #3b4658;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel input[readonly] {
  background: #f1f4f8;
  color: var(--muted);
}

.check-row {
  align-items: center;
  display: flex !important;
  gap: 8px;
  padding-top: 24px;
}

.check-row input {
  min-height: auto;
  width: auto;
}

.check-row span {
  margin: 0 !important;
}

.full-field {
  margin-top: 14px;
}

.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-note {
  max-width: 320px;
}

.operator-console-shell {
  display: grid;
  gap: 14px;
}

.operator-dashboard-shell {
  display: grid;
  gap: 14px;
}

.operator-status-area {
  display: grid;
  gap: 12px;
}

.operator-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator-status-notes {
  display: grid;
  gap: 8px;
}

.operator-hero {
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
}

.operator-hero-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.operator-hero-copy {
  display: grid;
  gap: 6px;
}

.operator-safety-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.operator-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.operator-console-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.operator-main,
.operator-side {
  display: contents;
}

.operator-console-grid .card-grid {
  display: contents;
}

.operator-card-full {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.operator-card-wide-table {
  min-width: 0;
}

.operator-card-wide-table .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.plan-builder-shell {
  display: grid;
  gap: 10px;
}

.plan-builder-section {
  margin-top: 12px;
}

.operator-next-action {
  display: grid;
  gap: 12px;
}

.operator-recovery-card {
  display: grid;
  gap: 12px;
}

.operator-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.operator-primary-actions form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.operator-command-bar {
  display: grid;
  gap: 12px;
}

.operator-command-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.operator-command-form {
  display: flex;
}

.operator-command-form .button {
  white-space: nowrap;
}

.operator-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-summary-card {
  display: grid;
  gap: 10px;
}

.operator-details-card {
  display: grid;
  gap: 12px;
}

.operator-details-card .card-head {
  align-items: flex-start;
}

.operator-details-edit-link {
  white-space: nowrap;
}

.operator-details-helper {
  max-width: 760px;
}

.operator-details-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.operator-details-tab {
  border-color: var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  white-space: nowrap;
}

.operator-details-tab:hover {
  background: #edf3ff;
  border-color: #c9d7f0;
  text-decoration: none;
}

.operator-details-tab.is-active,
.operator-details-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.16);
  color: var(--accent-ink);
}

.operator-details-panel-body {
  background: #f9fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 124px;
  padding: 14px;
}

.operator-details-panel-body > :first-child {
  margin-top: 0;
}

.operator-details-panel-body > :last-child {
  margin-bottom: 0;
}

.operator-secondary-panel {
  display: grid;
  gap: 12px;
}

.recovery-action-list {
  display: grid;
  gap: 10px;
}

.recovery-action-list form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.collapsible-admin-section {
  display: grid;
  gap: 14px;
}

.collapsible-admin-section summary,
.diagnostics-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  list-style: none;
  gap: 10px;
}

.collapsible-admin-section summary::-webkit-details-marker {
  display: none;
}

.diagnostics-panel summary::-webkit-details-marker {
  display: none;
}

.collapsible-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease;
}

details[open] > summary .collapsible-indicator {
  transform: rotate(90deg);
}

.collapsible-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.diagnostics-panel {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.latest-command-card p {
  margin: 0;
}

.historical-return-note {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.operator-support-tools {
  display: grid;
  gap: 12px;
}

.form-actions {
  margin-top: 16px;
}

.table-actions {
  gap: 6px;
}

.table-actions .button {
  white-space: nowrap;
}

.table-actions .button.compact {
  min-height: 30px;
  padding: 4px 8px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow-x: auto;
}

.execution-command-bar {
  margin-bottom: 14px;
}

.rover-status-card {
  margin-bottom: 0;
}

.rover-status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rover-status-section h3,
.return-trip-panel h3 {
  font-size: 16px;
  margin: 0;
}

.recommended-action {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.recommended-action strong {
  display: block;
  font-size: 18px;
}

.plan-item-active td {
  background: #f7fbff;
}

.plan-item-editing td {
  background: #fff7e4;
}

.return-trip-row td {
  background: #f9fbfd;
}

.return-trip-panel {
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  padding: 12px;
}

table {
  border-collapse: collapse;
  min-width: 900px;
  width: 100%;
}

.operator-card-wide-table th,
.operator-card-wide-table td,
.latest-command-card th,
.latest-command-card td,
.recent-commands-panel th,
.recent-commands-panel td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.latest-command-card code,
.recent-commands-panel code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wide-table {
  min-width: 1120px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f3f7;
  color: #3b4658;
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.link-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-canvas {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: min(68vh, 720px);
  min-height: 440px;
  overflow: hidden;
  width: 100%;
}

.site-marker {
  align-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  display: flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.site-marker-green {
  background: var(--green);
}

.site-marker-yellow {
  background: var(--yellow);
}

.site-marker-red {
  background: var(--red);
}

.site-marker-gray {
  background: var(--gray);
}

.map-popup {
  min-width: 220px;
}

.map-popup h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.map-popup dl {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto 1fr;
  margin: 8px 0 0;
}

.map-popup dt {
  color: var(--muted);
  font-weight: 700;
}

.map-popup dd {
  margin: 0;
}

.map-meta {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 980px) {
  .operator-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-layout {
    grid-template-columns: 1fr;
  }

  .operator-console-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  .page-heading,
  .section-title,
  .card-head,
  .card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 12px 16px;
  }

  .page-shell {
    padding: 22px 16px 36px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-summary-grid,
  .operator-layout,
  .operator-console-grid,
  .operator-summary-grid,
  .operator-status-grid,
  .rover-status-grid,
  .metric-grid--tight {
    grid-template-columns: 1fr;
  }

  .operator-hero-grid {
    flex-direction: column;
  }

  .operator-command-grid {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 360px;
  }
}

.operator-details-collapsible-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.operator-details-card summary {
  cursor: pointer;
  list-style: none;
}

.operator-details-card summary::-webkit-details-marker {
  display: none;
}

.operator-command-helper {
  margin-bottom: 12px;
}

.operator-command-sections {
  display: grid;
  gap: 16px;
}

.operator-command-section {
  display: grid;
  gap: 8px;
}

.operator-command-section .operator-command-grid {
  margin-top: 0;
}

.operator-command-section-safety {
  padding-top: 4px;
}

.operator-command-section-secondary {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.operator-action-workspace {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel-muted);
}

.operator-action-workspace h3 {
  margin: 2px 0 6px;
}

.operator-command-helper {
  margin-bottom: 12px;
}

.operator-command-sections {
  display: grid;
  gap: 16px;
}

.operator-command-section {
  display: grid;
  gap: 8px;
}

.operator-command-section .operator-command-grid {
  margin-top: 0;
}

.operator-command-section-safety {
  padding-top: 4px;
}

.operator-command-section-secondary {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.operator-action-workspace {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel-muted);
}

.operator-action-workspace h3 {
  margin: 2px 0 6px;
}

.operator-command-section .operator-command-form {
  display: grid;
  gap: 6px;
  align-content: start;
}

.operator-command-section .operator-command-form .control-note {
  margin: 0;
  max-width: 280px;
  line-height: 1.35;
}

.operator-command-section .operator-command-grid {
  align-items: start;
}

.operator-action-panel {
  display: grid;
  gap: 12px;
}

.operator-action-panel[hidden] {
  display: none;
}

.operator-action-status-grid {
  margin-top: 4px;
}

.operator-action-latest-command {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 10px;
}

/* Simple operator view: keep actions visible like a freeze pane. */
.simple-operator-sticky-actions {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, #f4f7fb 0%, rgba(244, 247, 251, 0.96) 85%, rgba(244, 247, 251, 0) 100%);
}

.simple-operator-sticky-actions .simple-action-card {
  margin-bottom: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.simple-action-sections {
  display: grid;
  gap: 1rem;
}

.simple-action-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.simple-action-section-primary .button {
  font-size: 1.05rem;
  padding: 0.85rem 1.25rem;
}

.simple-command-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.simple-safety-grid,
.simple-secondary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .simple-action-sections {
    grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) minmax(180px, 0.7fr);
    align-items: start;
  }
}

/* Compact sticky action bar for simple operator view. */
.simple-operator-sticky-actions {
  padding: 0.35rem 0 0.5rem;
}

.simple-operator-sticky-actions .weather-card {
  padding: 1rem 1.25rem;
}

.simple-operator-sticky-actions .simple-action-card > .eyebrow {
  margin-bottom: 0.25rem;
}

.simple-operator-sticky-actions .simple-action-card > .card-title {
  margin: 0;
  font-size: 1.35rem;
}

.simple-operator-sticky-actions .simple-action-card > .muted {
  margin: 0.25rem 0 0.75rem;
}

.simple-operator-sticky-actions .simple-action-sections {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(360px, 1.5fr) minmax(180px, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.simple-operator-sticky-actions .simple-action-section {
  gap: 0.35rem;
}

.simple-operator-sticky-actions .simple-action-section > .eyebrow {
  margin-bottom: 0.25rem;
}

.simple-operator-sticky-actions .simple-command-form {
  gap: 0.25rem;
}

.simple-operator-sticky-actions .simple-command-form .control-note {
  margin: 0;
  max-width: 360px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.simple-operator-sticky-actions .simple-safety-grid,
.simple-operator-sticky-actions .simple-secondary-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.simple-operator-sticky-actions .simple-safety-grid .operator-command-form,
.simple-operator-sticky-actions .simple-secondary-grid .operator-command-form {
  min-width: 0;
}

.simple-operator-sticky-actions .button {
  white-space: nowrap;
}

.simple-operator-sticky-actions .simple-action-section-primary .button {
  font-size: 1rem;
  padding: 0.75rem 1.05rem;
}

@media (max-width: 1100px) {
  .simple-operator-sticky-actions .simple-action-sections {
    grid-template-columns: 1fr;
  }

  .simple-operator-sticky-actions .simple-safety-grid,
  .simple-operator-sticky-actions .simple-secondary-grid {
    flex-wrap: wrap;
  }
}

/* Primary plan operator cleanup: sticky action bar and collapsed advanced content. */
.operator-command-bar-sticky {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

.operator-command-bar-sticky .card-head {
  margin-bottom: 0.5rem;
}

.operator-command-bar-sticky .operator-command-helper {
  margin: 0 0 0.75rem;
}

.operator-command-bar-sticky .operator-action-workspace {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.operator-command-bar-sticky .operator-action-workspace .metric-grid {
  display: none;
}

.operator-command-bar-sticky .operator-command-sections {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 1fr) minmax(180px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.operator-command-bar-sticky .operator-command-section .eyebrow {
  margin-bottom: 0.35rem;
}

.operator-command-bar-sticky .operator-command-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.operator-command-bar-sticky .operator-command-form {
  min-width: 0;
}

.operator-command-bar-sticky .button {
  white-space: nowrap;
}

.operator-command-bar-sticky .control-note {
  max-width: 22rem;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.25;
}

.operator-advanced {
  margin-top: 1rem;
  border-left: 6px solid var(--border-strong, #64748b);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 0.75rem 1rem 1rem;
}

.operator-advanced > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--muted);
  padding: 0.35rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.operator-advanced-helper {
  margin: 0.25rem 0 1rem;
}

@media (max-width: 1100px) {
  .operator-command-bar-sticky {
    top: 0.25rem;
  }

  .operator-command-bar-sticky .operator-command-sections {
    grid-template-columns: 1fr;
  }
}

/* Compact primary operator command header. */
.operator-compact-command-bar {
  padding: 1rem 1.25rem;
}

.operator-compact-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(520px, 1.6fr);
  gap: 1.25rem;
  align-items: start;
}

.operator-compact-copy .card-title {
  margin: 0.1rem 0;
  font-size: 1.45rem;
}

.operator-compact-copy .muted {
  margin: 0.25rem 0;
}

.operator-compact-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.1fr) minmax(160px, 0.7fr);
  gap: 0.9rem;
  align-items: start;
}

.operator-compact-action-group .eyebrow {
  margin-bottom: 0.35rem;
}

.operator-compact-action-group .operator-command-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.operator-compact-command-bar .button {
  white-space: nowrap;
}

.operator-compact-command-bar .operator-command-form {
  margin: 0;
}

.operator-compact-command-bar .control-note {
  display: none;
}

.operator-compact-workspace {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
}

.operator-compact-workspace:empty {
  display: none;
}

@media (max-width: 1150px) {
  .operator-compact-header,
  .operator-compact-actions {
    grid-template-columns: 1fr;
  }
}

/* Single sticky operator message row. */
.operator-compact-message-row {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(100, 116, 139, 0.25);
  padding-top: 0.75rem;
}

.operator-compact-message-row .notice,
.operator-compact-message-row .muted {
  margin: 0;
}

.operator-compact-message-row .notice {
  padding: 0.65rem 0.85rem;
}

/* Compact command lifecycle messages in sticky operator header. */
.operator-command-message {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.25;
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: rgba(100, 116, 139, 0.08);
}

.operator-command-message-success,
.operator-command-message-succeeded {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.10);
}

.operator-command-message-error,
.operator-command-message-failed {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.10);
}

.operator-command-message-running,
.operator-command-message-queued,
.operator-command-message-info {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
}

/* Compact rover state facts in sticky operator header. */
.operator-sticky-state-grid {
  margin: 0.55rem 0 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-sticky-state-grid dt {
  font-size: 0.68rem;
}

.operator-sticky-state-grid dd {
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .operator-sticky-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Match Advanced collapsible header to Diagnostics header. */
.operator-advanced > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0.35rem 0;
}

.operator-advanced > summary::-webkit-details-marker {
  display: none;
}

.operator-advanced > summary::marker {
  content: "";
}

.operator-advanced > summary .card-title {
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
  letter-spacing: normal;
}

/* Operator action emphasis: Stage Plan available */
.button.success {
  background: #15803d;
  border-color: #166534;
  color: #ffffff;
}

.button.success:hover:not(:disabled) {
  background: #166534;
}

/* Operator actions/map dashboard extracted from plan_rover_monitor.html */
.operator-console-topline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }
  .operator-console-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
  }
  .compact-title {
    margin-bottom: 0;
  }
  .operator-command-message-strip {
    margin: 0.5rem 0 0.9rem;
  }
  .operator-action-menu-card {
    border: 1px solid rgba(100,116,139,0.20);
    border-radius: 14px;
    padding: 0.85rem;
    background: rgba(248,250,252,0.72);
  }
  .operator-action-menu-head {
    margin-bottom: 0.7rem;
  }
  .operator-action-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.55rem;
    align-items: stretch;
  }
  .operator-action-menu-form {
    margin: 0;
  }
  .operator-action-menu-button {
    width: 100%;
    min-height: 44px;
    white-space: normal;
  }
  .operator-map-status {
    margin-top: 0.8rem;
    border: 1px solid rgba(100,116,139,0.22);
    border-radius: 14px;
    padding: 0.85rem;
    background: rgba(248,250,252,0.82);
  }
  .operator-map-status-main {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
  }
  .operator-map-status-title {
    margin-bottom: 0.25rem;
  }
  .operator-map-status-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
  .operator-map-status-updated {
    margin: 0;
    white-space: nowrap;
  }
  .operator-map-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
  }
  .operator-map-status-warnings {
    margin: 0.65rem 0 0 1.1rem;
    color: #92400e;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .operator-live-map-card-primary {
    margin-top: 1rem;
  }
  .operator-live-map-card-primary summary {
    display: none;
  }
  .operator-hopper-return-card {
    margin-top: 1rem;
  }
  @media (max-width: 768px) {
    .operator-console-topline {
      display: block;
    }
    .operator-console-chips {
      justify-content: flex-start;
      margin-top: 0.6rem;
    }
    .operator-action-menu-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #operator-live-map {
      min-height: 420px !important;
      height: 58vh !important;
    }
  }

  /* Operator dashboard primary layout: actions + map */
  .operator-dashboard-shell {
    gap: 0.85rem;
  }

  #operator-command-bar.operator-compact-command-bar {
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
  }

  .operator-action-menu-card {
    margin-bottom: 0;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    margin-top: 0.75rem;
  }

  #operator-live-map-card .card-head {
    margin-bottom: 0.45rem;
  }

  #operator-live-map-card .operator-live-map-body > p.muted.small {
    margin-top: 0;
    margin-bottom: 0.55rem;
  }

  #operator-hopper-return-card.operator-hopper-return-card {
    margin-top: 0.85rem;
  }

  @media (min-width: 900px) {
    #operator-command-bar .operator-command-message-strip {
      margin-top: 0.75rem;
      margin-bottom: 0.75rem;
    }

    #operator-command-bar .operator-action-menu-card {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
  }


  /* Collapse old command-bar whitespace so map becomes the second primary UI item. */
  #operator-command-bar.operator-command-bar,
  #operator-command-bar.operator-compact-command-bar,
  #operator-command-bar.operator-command-bar-sticky {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    margin-bottom: 0.75rem !important;
  }

  #operator-command-bar .operator-console-topline {
    margin-bottom: 0.85rem !important;
  }

  #operator-command-bar .operator-command-message-strip {
    margin-top: 0.65rem !important;
    margin-bottom: 0.85rem !important;
  }

  #operator-command-bar .operator-action-menu-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 1rem !important;
  }

  #operator-command-bar .operator-action-menu-grid {
    margin-bottom: 0 !important;
  }

  #operator-command-bar .operator-action-workspace {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }

  #operator-command-bar .operator-action-panel[hidden] {
    display: none !important;
  }

  #operator-command-bar .operator-action-workspace:empty {
    display: none !important;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    margin-top: 0.75rem !important;
  }


  /* Slim operator console: actions + map are the primary UI. */
  #operator-command-bar .operator-console-topline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin: 0 0 0.6rem 0 !important;
  }

  #operator-command-bar .operator-console-topline .eyebrow {
    margin: 0 !important;
  }

  #operator-command-bar .operator-console-topline .compact-title {
    display: none !important;
  }

  #operator-command-bar .operator-command-message-strip {
    margin: 0 0 0.65rem 0 !important;
    min-height: 0 !important;
  }

  #operator-command-bar .operator-command-message-strip p {
    margin: 0 !important;
  }

  #operator-command-bar .operator-action-menu-card {
    margin-top: 0 !important;
  }

  #operator-command-bar .operator-action-menu-head {
    margin-bottom: 0.7rem !important;
  }

  #operator-command-bar .operator-action-menu-head h2,
  #operator-command-bar .operator-action-menu-head p {
    margin-top: 0 !important;
  }

  #operator-command-bar .operator-action-workspace {
    display: none !important;
  }


  /* Flatten the outer operator console so Actions + Map become the primary cards. */
  #operator-command-bar.operator-console-strip {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 0.85rem 0 !important;
    min-height: 0 !important;
  }

  #operator-command-bar.operator-console-strip::before,
  #operator-command-bar.operator-console-strip::after {
    display: none !important;
  }

  #operator-command-bar.operator-console-strip .operator-console-topline {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 0.65rem 0 !important;
  }

  #operator-command-bar.operator-console-strip .operator-command-message-strip {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 0.75rem 0 !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-card {
    background: #fff !important;
    border: 1px solid rgba(100,116,139,0.25) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 38px rgba(15,23,42,0.06) !important;
    padding: 1.1rem !important;
    margin: 0 !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head {
    margin-bottom: 0.85rem !important;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    margin-top: 0.85rem !important;
  }


  /* Final tighten: keep actions + map close to the page title. */
  #operator-command-bar.operator-console-strip {
    margin-top: 0.4rem !important;
    margin-bottom: 0.75rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-console-topline {
    margin-bottom: 0.35rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-console-topline .eyebrow {
    display: none !important;
  }

  #operator-command-bar.operator-console-strip .operator-command-message-strip {
    margin-bottom: 0.55rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-command-message-strip p {
    font-size: 0.92rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-card {
    padding: 1rem 1.15rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head {
    margin-bottom: 0.65rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head .eyebrow {
    margin-bottom: 0.25rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-grid {
    gap: 0.55rem !important;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    margin-top: 0.7rem !important;
  }


  /* Put status context inside the actions card; remove floating strip whitespace. */
  #operator-command-bar.operator-console-strip .operator-console-topline,
  #operator-command-bar.operator-console-strip .operator-command-message-strip {
    display: none !important;
  }

  #operator-command-bar.operator-console-strip {
    margin-top: 1rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-card {
    padding: 1rem 1.15rem 1.05rem 1.15rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head::after {
    content: none !important;
    display: none !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head p.muted {
    display: none !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-grid {
    gap: 0.55rem !important;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    margin-top: 0.7rem !important;
  }

  @media (max-width: 900px) {
    #operator-command-bar.operator-console-strip .operator-action-menu-head {
      grid-template-columns: 1fr !important;
    }

    #operator-command-bar.operator-console-strip .operator-action-menu-head::after {
      white-space: normal;
    }
  }


  /* Never show hardcoded action-card status; map/status data must be real. */
  #operator-command-bar.operator-console-strip .operator-action-menu-head::after {
    content: none !important;
    display: none !important;
  }


  /* Tight operator dashboard: hero + actions + map should fit as the main workflow. */
  .operator-dashboard-shell {
    margin-top: 0 !important;
  }

  .operator-dashboard-shell + * {
    margin-top: 0 !important;
  }

  .operator-command-bar.operator-console-strip {
    margin-top: 0.45rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-card {
    padding: 0.9rem 1rem 0.95rem 1rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head {
    margin-bottom: 0.5rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head .eyebrow {
    margin-bottom: 0.15rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-head h2 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-grid {
    gap: 0.45rem !important;
  }

  #operator-command-bar.operator-console-strip .operator-action-menu-button,
  #operator-command-bar.operator-console-strip .operator-command-form .button {
    min-height: 42px !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    margin-top: 0.55rem !important;
  }

  #operator-live-map-card.operator-live-map-card-primary .card-head {
    margin-bottom: 0.45rem !important;
  }

  #operator-live-map-card.operator-live-map-card-primary .card-title {
    font-size: 1.15rem !important;
  }


  /* Actions must stay in normal document flow so the map cannot slide underneath. */
  #operator-command-bar.operator-console-strip,
  #operator-command-bar.operator-command-bar,
  #operator-command-bar.operator-command-bar-sticky {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }

  #operator-live-map-card.operator-live-map-card-primary {
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
  }

  #operator-live-map {
    position: relative !important;
    z-index: 1 !important;
  }


  /* Compact live load/return glance in action-card header. */
  #operator-command-bar.operator-console-strip .operator-action-menu-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 1rem !important;
  }

  .operator-load-return-glance {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    max-width: 760px;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
  }

  .operator-load-return-label {
    color: #0f172a;
  }

  .operator-glance-separator {
    color: #94a3b8;
    font-weight: 700;
  }

  @media (max-width: 900px) {
    #operator-command-bar.operator-console-strip .operator-action-menu-head {
      grid-template-columns: 1fr !important;
    }

    .operator-load-return-glance {
      justify-self: start;
      justify-content: flex-start;
      text-align: left;
      max-width: none;
    }
  }

/* Live map inline-style replacements */
.operator-live-map-canvas {
  height: min(64vh, 640px);
  min-height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: #eef2f7;
}

.operator-live-map-summary {
  margin-top: 0.75rem;
}
