:root {
  --bg-top: #0067a8;
  --bg-bottom: #001018;
  --panel: rgba(239, 247, 252, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --line: rgba(80, 54, 45, 0.14);
  --text: #2b211d;
  --muted: #596670;
  --accent: #ff8200;
  --accent-deep: #e66d00;
  --accent-blue: #0067a8;
  --accent-blue-deep: #003f5f;
  --accent-gold: #ffd35a;
  --accent-soft: #ffe2bd;
  --ok: #2f6b4f;
  --warn: #9f3b22;
  --offline: #7a7a7a;
  --shadow: 0 18px 38px rgba(67, 31, 24, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --mchs-stripe-orange: rgba(255, 130, 0, 0.96);
  --mchs-stripe-blue: rgba(0, 103, 168, 0.94);
  --mchs-stripe-shadow: rgba(0, 0, 0, 0.24);
  --mchs-grid-horizontal: rgba(255, 255, 255, 0.07);
  --mchs-grid-vertical: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 2%, rgba(0, 115, 180, 0.62), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(0, 0, 0, 0.22), transparent 34%),
    linear-gradient(180deg, #006aa6 0%, #003f5f 42%, #001725 72%, #00090d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      transparent 0,
      transparent 28px,
      var(--mchs-stripe-orange) 28px,
      var(--mchs-stripe-orange) 42px,
      var(--mchs-stripe-blue) 42px,
      var(--mchs-stripe-blue) 50px,
      var(--mchs-stripe-orange) 50px,
      var(--mchs-stripe-orange) 62px,
      transparent 62px,
      transparent 100%
    ),
    linear-gradient(var(--mchs-grid-horizontal) 1px, transparent 1px),
    linear-gradient(90deg, var(--mchs-grid-vertical) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom));
}

.hidden {
  display: none !important;
}

.hero,
.panel,
.auth-card,
.auth-copy {
  border: 1px solid rgba(99, 73, 58, 0.1);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.auth-shell {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.auth-copy,
.auth-card,
.hero,
.panel {
  border-radius: var(--radius-xl);
}

.auth-copy {
  padding: 40px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(246, 252, 255, 0.95), rgba(221, 239, 249, 0.88)),
    radial-gradient(circle at 82% 22%, rgba(255, 130, 0, 0.2), transparent 30%);
}

.auth-copy::after {
  content: "";
  position: absolute;
  inset: auto -42px -38px auto;
  width: 220px;
  height: 220px;
  pointer-events: none;
  border: 18px solid rgba(142, 23, 15, 0.08);
  border-radius: 50%;
}

.auth-copy > * {
  position: relative;
  z-index: 1;
}

.auth-brand,
.service-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-brand {
  margin-bottom: 16px;
}

.mchs-emblem-shell {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow:
    0 16px 28px rgba(0, 13, 24, 0.26);
}

.mchs-emblem-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mchs-emblem-shell-large {
  width: 128px;
  height: 128px;
}

.brand-title {
  margin: 0;
  color: var(--accent-blue-deep);
  font-size: clamp(1.65rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-title-compact {
  color: #f7fbff;
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  text-shadow: 0 2px 10px rgba(0, 8, 18, 0.4);
}

.brand-subtitle {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: clamp(1rem, 1.4vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-subtitle-compact {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.82rem;
}

.auth-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 0.94;
}

.auth-copy p {
  max-width: 48ch;
  line-height: 1.7;
  color: var(--muted);
}

.auth-features {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--text);
}

.auth-card {
  padding: 28px;
  display: grid;
  gap: 16px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.94), rgba(247, 238, 228, 0.88));
}

.eyebrow,
.panel-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.auth-card h2,
.hero h1,
.panel-heading h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero {
  display: flex;
  position: relative;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-color: rgba(255, 130, 0, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, rgba(98, 201, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(0, 103, 168, 0.96), rgba(0, 28, 44, 0.96));
  box-shadow: 0 18px 42px rgba(0, 12, 24, 0.22);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -4% -48px 56%;
  height: 90px;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 50%, rgba(255, 122, 0, 0.3), transparent 40%),
    radial-gradient(circle at 54% 48%, rgba(0, 91, 170, 0.2), transparent 42%),
    radial-gradient(circle at 68% 55%, rgba(0, 63, 125, 0.12), transparent 36%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: none;
  color: rgba(245, 251, 255, 0.84);
  font-size: clamp(0.95rem, 1.12vw, 1.08rem);
  line-height: 1.02;
}

.hero .eyebrow {
  margin-bottom: 2px;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
}

.hero-copy {
  display: none;
}

.hero-side {
  display: grid;
  grid-template-columns: auto minmax(150px, 190px);
  gap: 6px;
  align-items: stretch;
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, auto));
  gap: 6px;
  min-width: 0;
}

.status-chip,
.metric-card,
.user-card,
.document-exchange,
.driver-card,
.recent-card,
.mission-card,
.location-card,
.secret-box,
.selected-driver {
  border: 1px solid rgba(96, 72, 54, 0.08);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.status-chip,
.user-card {
  padding: 5px 8px;
  border-radius: 12px;
}

.status-chip {
  border-left: 3px solid var(--accent-blue);
}

.user-card {
  border-left: 3px solid var(--accent);
}

.hero .status-chip,
.hero .user-card {
  background: rgba(245, 251, 255, 0.94);
}

.status-chip span {
  display: block;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.metric-card span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.status-chip strong {
  display: block;
  margin-top: 1px;
  font-size: 0.82rem;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.user-card {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: start;
}

.user-card strong {
  font-size: 0.82rem;
  line-height: 1.08;
}

.user-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.settings-toggle,
.document-toggle {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.72rem;
}

.document-exchange {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
}

.document-exchange-head {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.document-exchange-head span {
  display: block;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.document-exchange-head strong {
  display: block;
  margin-top: 1px;
  font-size: 0.82rem;
}

.document-upload-button {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 130, 0, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 146, 38, 0.95), rgba(242, 106, 0, 0.95));
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.document-upload-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.document-list {
  display: grid;
  max-height: 170px;
  gap: 6px;
  overflow: auto;
}

.document-list.empty-state {
  min-height: 34px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
}

.document-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.document-link {
  overflow: hidden;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.document-download-button,
.document-delete-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid rgba(96, 72, 54, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.document-delete-button {
  color: var(--warn);
}

.document-status {
  margin: 0;
}

.sound-controls {
  display: grid;
  gap: 6px;
}

.app-actions {
  display: grid;
  gap: 6px;
}

.sound-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.sound-toggle {
  width: 100%;
  padding: 9px 10px;
  background: rgba(255, 246, 237, 0.95);
}

.sound-toggle.muted {
  background: rgba(122, 122, 122, 0.1);
  color: var(--muted);
}

.notification-toggle {
  margin-top: 2px;
}

.install-toggle {
  width: 100%;
  padding: 9px 10px;
  background: linear-gradient(180deg, rgba(255, 244, 231, 0.98), rgba(250, 227, 209, 0.96));
}

.install-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.install-hint.success {
  color: var(--ok);
}

.settings-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: start;
}

.settings-action-button {
  width: 100%;
}

.security-panel {
  display: grid;
  gap: 16px;
}

.settings-admin-panel {
  margin-top: 4px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.72);
  box-shadow: none;
}

.settings-admin-panel .panel-heading {
  margin-bottom: 14px;
}

.command-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: min(360px, calc(100vw - 24px));
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96, 72, 54, 0.12);
  background: rgba(67, 35, 24, 0.96);
  color: #fff7f0;
  box-shadow: 0 22px 44px rgba(39, 20, 12, 0.28);
}

.command-toast strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.command-toast p {
  margin: 0;
  color: rgba(255, 247, 240, 0.9);
  line-height: 1.45;
}

.role-pill {
  display: inline-flex;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(242, 200, 167, 0.72);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.user-login {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
}

.dashboard {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 24px;
}

.dispatcher-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(135, 23, 11, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.95), rgba(249, 236, 228, 0.88)),
    linear-gradient(135deg, rgba(255, 176, 89, 0.06), transparent);
}

.dispatcher-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, rgba(195, 63, 24, 0.96), rgba(255, 171, 77, 0.86), rgba(195, 63, 24, 0.96));
}

.dispatcher-panel > * {
  position: relative;
  z-index: 1;
}

.dispatcher-panel .panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.dispatcher-panel .panel-note {
  max-width: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(195, 63, 24, 0.12);
  background: rgba(255, 246, 239, 0.88);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-note {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
  line-height: 1.5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.driver-metrics {
  gap: 10px;
  margin-bottom: 12px;
}

.driver-metrics .metric-card {
  min-height: 74px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 237, 229, 0.94));
}

.hero-driver-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
  width: min(100%, 430px);
  margin-top: 12px;
}

.hero-driver-metrics .metric-card {
  min-height: 0;
  padding: 8px 10px;
  border-radius: 14px;
  box-shadow: none;
}

.hero-driver-metrics .metric-card span {
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.hero-driver-metrics .metric-card strong {
  margin-top: 3px;
  font-size: 0.92rem;
}

.metric-card.alert {
  background: linear-gradient(180deg, rgba(255, 237, 229, 0.95), rgba(247, 210, 188, 0.95));
}

.dispatcher-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.board-panel,
.dispatch-form {
  display: grid;
  gap: 12px;
}

.dispatch-form {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 10px 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(195, 63, 24, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.97), rgba(248, 237, 229, 0.94));
  box-shadow: var(--shadow);
}

.board-panel {
  grid-column: 1;
  grid-row: 1;
  padding: 14px;
  border: 1px solid rgba(195, 63, 24, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.97), rgba(247, 236, 228, 0.93));
  box-shadow: var(--shadow);
}

.board-panel .driver-board {
  grid-template-columns: 1fr;
}

.board-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.board-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.dispatch-form .board-heading {
  grid-column: 1 / -1;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(117, 73, 54, 0.12);
}

.dispatch-form > label {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(117, 73, 54, 0.1);
  background: rgba(255, 248, 242, 0.92);
}

.dispatch-form label span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.dispatch-form > label,
.dispatch-form > .submit-row {
  grid-column: 1;
}

#selectedDriverCard {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
}

#selectedDriverLocation {
  grid-column: 2;
  grid-row: 2;
}

#dispatcherMapCard {
  grid-column: 2;
  grid-row: 3 / span 3;
}

#dispatcherChatCard {
  grid-column: 1;
  grid-row: 3;
}

.dispatch-form > label:nth-of-type(1) {
  grid-row: 4;
}

.dispatch-form > .submit-row {
  grid-row: 5;
  margin: 0;
  padding: 2px 2px 0;
  align-items: center;
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.driver-board,
.recent-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.empty-state {
  min-height: 92px;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(109, 86, 73, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.driver-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.driver-card:hover,
.driver-card:focus-visible {
  transform: translateY(-1px);
}

.driver-card.selected {
  border-color: rgba(188, 62, 36, 0.45);
  box-shadow: 0 18px 40px rgba(143, 57, 29, 0.18);
}

.driver-card.busy {
  background: linear-gradient(180deg, rgba(255, 246, 239, 0.98), rgba(246, 230, 216, 0.94));
}

.driver-card.offline {
  opacity: 0.84;
}

.driver-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.driver-name {
  font-size: 1.05rem;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(47, 107, 79, 0.12);
  color: var(--ok);
}

.presence-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.presence-pill.offline {
  background: rgba(122, 122, 122, 0.12);
  color: var(--offline);
}

.driver-unit,
.driver-state,
.driver-address,
.driver-meta,
.mission-meta,
.mission-address,
.selected-meta,
.selected-state,
.recent-meta,
.mission-note {
  margin: 0;
}

.driver-unit,
.driver-meta,
.driver-address,
.selected-meta,
.recent-meta,
.mission-meta,
.mission-note {
  color: var(--muted);
}

.driver-state,
.selected-state,
.mission-state,
.recent-state {
  font-weight: 800;
}

.driver-address {
  line-height: 1.45;
}

.selected-driver,
.mission-card,
.location-card {
  padding: 14px;
  border-radius: 16px;
}

.selected-driver strong,
.mission-card strong {
  font-size: 1rem;
}

.selected-driver.ready {
  border-color: rgba(47, 107, 79, 0.2);
}

.mission-card.active {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(247, 231, 216, 0.95));
}

.mission-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mission-nav-button {
  min-width: 180px;
}

.mission-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(188, 62, 36, 0.12);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-address {
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  line-height: 1.15;
}

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

.location-card.empty-state {
  min-height: 110px;
}

.location-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.location-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.location-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.location-map-frame {
  width: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(241, 231, 221, 0.92)),
    linear-gradient(135deg, rgba(188, 62, 36, 0.08), transparent);
}

.dispatcher-map-card {
  min-height: 320px;
}

.dispatcher-map-canvas {
  min-height: 300px;
  border: 1px solid rgba(13, 79, 143, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.92), rgba(241, 231, 221, 0.92)),
    linear-gradient(135deg, rgba(13, 79, 143, 0.1), transparent);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.location-warning {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-deep);
  font-weight: 700;
}

.manual-location-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(188, 62, 36, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(248, 236, 226, 0.96)),
    linear-gradient(135deg, rgba(188, 62, 36, 0.05), transparent);
}

.manual-location-map {
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(117, 73, 54, 0.12);
  background: rgba(255, 252, 247, 0.94);
}

.manual-location-value {
  margin: 0;
  font-weight: 700;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.status-button-wide {
  grid-column: 1 / -1;
}

.status-button,
.primary-button,
.secondary-button,
.ghost-link,
.table-button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.status-button,
.primary-button,
.secondary-button,
.table-button {
  border-radius: 18px;
  cursor: pointer;
  font: inherit;
}

.status-button {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(117, 73, 54, 0.12);
  background: linear-gradient(180deg, rgba(255, 250, 244, 1), rgba(248, 232, 217, 0.96));
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}

.status-button:hover,
.status-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible,
.table-button:hover,
.table-button:focus-visible {
  transform: translateY(-1px);
}

.status-button.current {
  background: linear-gradient(180deg, rgba(236, 86, 57, 0.95), rgba(180, 57, 34, 1));
  color: #fff7ef;
  box-shadow: 0 14px 30px rgba(176, 62, 34, 0.26);
}

.status-button.danger-pending {
  background: linear-gradient(180deg, #8d2e15, #5f1f10);
  color: #fff7ef;
  box-shadow: 0 16px 34px rgba(95, 31, 16, 0.32);
}

.status-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.compact-form,
.dispatch-form,
.security-panel form {
  display: grid;
  gap: 16px;
}

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

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

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(103, 74, 55, 0.14);
  background: rgba(255, 252, 248, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(188, 62, 36, 0.2);
  border-color: rgba(188, 62, 36, 0.5);
}

textarea {
  resize: vertical;
  min-height: 92px;
}

.wide {
  grid-column: 1 / -1;
}

.submit-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.primary-button,
.secondary-button,
.table-button {
  padding: 14px 22px;
}

.primary-button {
  border: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #fff5ee;
  box-shadow: 0 16px 36px rgba(139, 36, 22, 0.28);
}

.secondary-button,
.table-button {
  border: 1px solid rgba(142, 51, 30, 0.18);
  background: rgba(255, 249, 242, 0.9);
  color: var(--accent-deep);
}

.primary-button:disabled,
.secondary-button:disabled,
.table-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.form-status.error {
  color: var(--warn);
}

.form-status.success {
  color: var(--ok);
}

.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-link {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent-deep);
  border: 1px solid rgba(142, 51, 30, 0.18);
  background: rgba(255, 249, 242, 0.9);
}

.recent-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.recent-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.recent-unit {
  font-size: 1.05rem;
}

.filter-box {
  min-width: min(100%, 320px);
}

.log-table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(108, 83, 67, 0.12);
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 252, 248, 0.9);
}

.log-table th,
.log-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(105, 78, 62, 0.08);
}

.log-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 238, 227, 0.97);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-bottom: 18px;
}

.secret-box {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 247, 239, 0.98), rgba(248, 232, 214, 0.94));
}

.secret-label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}

.secret-box strong {
  font-size: 1.5rem;
  word-break: break-all;
}

.secret-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.user-state,
.online-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.user-state::before,
.online-state::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.12);
}

.user-state.inactive::before,
.online-state.offline::before {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(159, 59, 34, 0.12);
}

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

.table-button.warn {
  color: var(--warn);
  border-color: rgba(159, 59, 34, 0.22);
}

.fade-in {
  animation: rise 360ms ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .dispatcher-grid,
  .auth-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dispatcher-panel .panel-heading,
  .dispatch-form {
    grid-template-columns: 1fr;
  }

  .dispatch-form,
  .board-panel {
    grid-column: auto;
    grid-row: auto;
  }

  #selectedDriverCard,
  #selectedDriverLocation,
  #dispatcherMapCard,
  #dispatcherChatCard,
  .dispatch-form > label:nth-of-type(1),
  .dispatch-form > .submit-row {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .driver-board,
  .recent-events,
  .metrics,
  .field-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .submit-row,
  .board-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1,
  .auth-copy h1 {
    max-width: unset;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding: calc(14px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom));
  }

  .auth-shell {
    min-height: auto;
    gap: 14px;
  }

  .auth-card {
    order: -1;
  }

  .auth-copy,
  .auth-card,
  .hero,
  .panel {
    border-radius: 22px;
  }

  .auth-copy,
  .hero,
  .panel {
    padding: 18px;
  }

  .auth-copy h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 0.98;
  }

  .hero h1 {
    font-size: 1.05rem;
    line-height: 1.05;
  }

  .auth-copy p,
  .hero-copy,
  .panel-note {
    max-width: none;
    font-size: 0.94rem;
  }

  .hero {
    margin-bottom: 10px;
    padding: 10px 12px;
    gap: 10px;
  }

  .service-brand {
    align-items: flex-start;
  }

  .mchs-emblem-shell {
    width: 46px;
    height: 46px;
  }

  .mchs-emblem-shell-large {
    width: 88px;
    height: 88px;
  }

  .brand-title {
    font-size: clamp(1.6rem, 9vw, 2.5rem);
  }

  .brand-title-compact {
    font-size: clamp(1.1rem, 6vw, 1.6rem);
  }

  .hero-side,
  .hero-status {
    min-width: 0;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

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

  .status-chip,
  .user-card,
  .metric-card,
  .driver-card,
  .recent-card,
  .selected-driver,
  .mission-card,
  .location-card,
  .secret-box {
    padding: 14px;
  }

  .status-chip strong,
  .metric-card strong {
    font-size: 1.2rem;
  }

  .driver-topline,
  .mission-header,
  .recent-topline,
  .location-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mission-address {
    font-size: clamp(1.05rem, 5vw, 1.4rem);
  }

  .status-button {
    min-height: 78px;
    padding: 14px 10px;
    font-size: 0.95rem;
  }

  .submit-row > .primary-button,
  .submit-row > .secondary-button,
  .submit-row > .table-button,
  .submit-row > .ghost-link {
    width: 100%;
    justify-content: center;
  }

  .filter-box {
    min-width: 0;
  }

  .log-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .log-table {
    background: transparent;
  }

  .log-table thead {
    display: none;
  }

  .log-table,
  .log-table tbody,
  .log-table tr,
  .log-table td {
    display: block;
    width: 100%;
  }

  .log-table tbody {
    display: grid;
    gap: 12px;
  }

  .log-table tr {
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(96, 72, 54, 0.08);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: var(--shadow);
  }

  .log-table td {
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: minmax(96px, 38%) 1fr;
    gap: 12px;
    align-items: start;
  }

  .log-table td + td {
    margin-top: 10px;
  }

  .log-table td::before {
    content: attr(data-label);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .empty-row {
    display: block !important;
    padding: 0 !important;
    text-align: center;
  }

  .empty-row::before {
    content: none !important;
  }

  .table-actions {
    flex-direction: column;
  }

  .table-actions .table-button {
    width: 100%;
    justify-content: center;
  }

  .location-map-frame {
    min-height: 220px;
  }

  .manual-location-map {
    min-height: 260px;
  }
}

.ops-2026 .hero-copy {
  display: none;
}

.ops-2026 .hero h1 {
  font-size: clamp(1.08rem, 1.5vw, 1.48rem);
}

.ops-2026 .hero-driver-metrics {
  margin-top: 8px;
}

.ops-2026 .hero-driver-metrics .metric-card {
  min-height: 58px;
  padding: 9px 12px;
  border-radius: 16px;
}

.ops-2026 .hero-driver-metrics .metric-card strong {
  margin-top: 2px;
  font-size: 1rem;
}

.ops-2026 .command-progress {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  padding: 4px 0 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.ops-2026 .command-progress span {
  min-width: 76px;
  flex: 1 0 76px;
  scroll-snap-align: start;
}

@media (max-width: 760px) {
  .ops-2026 .hero h1 {
    font-size: 1.05rem;
  }

  .ops-2026 .hero-driver-metrics .metric-card {
    min-height: 54px;
    padding: 8px 10px;
  }
}

@media (max-width: 520px) {
  .command-toast {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .driver-board,
  .recent-events {
    grid-template-columns: 1fr;
  }

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

  .presence-pill,
  .role-pill {
    font-size: 0.7rem;
  }

  .auth-features {
    gap: 8px;
    padding-left: 18px;
  }
}

.device-status {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.15;
  color: var(--muted);
}

.chat-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96, 72, 54, 0.08);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.chat-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.chat-messages {
  display: grid;
  gap: 10px;
  min-height: 68px;
  max-height: 240px;
  padding-right: 6px;
  overflow-y: auto;
}

.chat-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-row {
  display: flex;
  justify-content: flex-start;
}

.chat-row.self {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(100%, 560px);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 244, 236, 0.96);
  border: 1px solid rgba(135, 23, 11, 0.12);
}

.chat-row.self .chat-bubble {
  background: linear-gradient(180deg, rgba(195, 63, 24, 0.16), rgba(255, 226, 205, 0.88));
}

.chat-sender {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.chat-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.chat-time {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.chat-receipt {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.16em;
  line-height: 1;
}

.chat-receipt.read {
  color: #2fc9ff;
}

.chat-status-row {
  display: flex;
  justify-content: center;
  padding: 1px 0;
}

.chat-status-event {
  display: inline-flex;
  max-width: min(94%, 520px);
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 137, 22, 0.2);
  border-radius: 999px;
  background: rgba(255, 126, 0, 0.07);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.chat-status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #ff8a19;
  box-shadow: 0 0 9px rgba(255, 126, 0, 0.55);
}

.chat-status-label {
  overflow: hidden;
  color: #d7e6ef;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-status-event .chat-time,
.chat-status-event .chat-receipt {
  margin-top: 0;
  flex: 0 0 auto;
}

.ops-2026 #driverChatCard .chat-messages {
  max-height: 180px;
}

@media (max-width: 760px) {
  .ops-2026 #driverChatCard {
    gap: 8px;
    padding: 12px;
  }

  .ops-2026 #driverChatCard .chat-meta {
    display: none;
  }

  .ops-2026 #driverChatCard .chat-messages {
    max-height: 150px;
    min-height: 54px;
    padding-block: 6px;
  }
}

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-form input,
.chat-form textarea {
  min-height: 52px;
}

body.ops-2026 {
  --bg-top: #071520;
  --bg-bottom: #020810;
  --panel: rgba(8, 23, 36, 0.78);
  --panel-strong: rgba(12, 30, 46, 0.92);
  --line: rgba(107, 198, 255, 0.14);
  --text: #ecf4fb;
  --muted: #9db0c1;
  --accent: #ff7a00;
  --accent-deep: #da5f00;
  --accent-blue: #62c9ff;
  --accent-blue-deep: #0a4f76;
  --accent-gold: #ffd35a;
  --accent-soft: rgba(255, 122, 0, 0.14);
  --ok: #59d58f;
  --warn: #ff8f6b;
  --offline: #8fa1b1;
  --shadow: 0 30px 70px rgba(0, 5, 11, 0.42);
  --mchs-stripe-orange: rgba(255, 122, 0, 0.98);
  --mchs-stripe-blue: rgba(13, 101, 153, 0.97);
  --mchs-stripe-shadow: rgba(1, 12, 20, 0.62);
  --mchs-grid-horizontal: rgba(98, 201, 255, 0.06);
  --mchs-grid-vertical: rgba(98, 201, 255, 0.05);
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 104, 165, 0.44), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 122, 0, 0.16), transparent 24%),
    radial-gradient(circle at 74% 92%, rgba(0, 0, 0, 0.26), transparent 28%),
    linear-gradient(180deg, #0a1d2c 0%, #071520 42%, #040b13 72%, #02060d 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body.ops-2026::before {
  background-size: 100% 100%, 34px 34px, 34px 34px;
  opacity: 0.85;
}

body.ops-2026::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.03), transparent 22%);
}

.ops-2026 .page-shell {
  width: min(1440px, calc(100% - 36px));
  padding: calc(20px + env(safe-area-inset-top)) 0 calc(56px + env(safe-area-inset-bottom));
}

.ops-2026 .hero,
.ops-2026 .panel,
.ops-2026 .auth-card,
.ops-2026 .auth-copy {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 24, 38, 0.92), rgba(7, 20, 32, 0.84)),
    radial-gradient(circle at 14% 10%, rgba(98, 201, 255, 0.05), transparent 24%),
    radial-gradient(circle at 88% 86%, rgba(255, 122, 0, 0.04), transparent 22%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.ops-2026 .auth-shell {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 18px;
}

.ops-2026 .auth-copy,
.ops-2026 .auth-card,
.ops-2026 .hero,
.ops-2026 .panel {
  border-radius: 30px;
}

.ops-2026 .auth-copy {
  position: relative;
  overflow: hidden;
  padding: 42px;
}

.ops-2026 .auth-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.96), rgba(255, 196, 84, 0.84), rgba(98, 201, 255, 0.8));
}

.ops-2026 .auth-copy::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -86px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(98, 201, 255, 0.14);
  box-shadow: inset 0 0 0 18px rgba(255, 122, 0, 0.04);
}

.ops-2026 .auth-brand,
.ops-2026 .service-brand {
  gap: 16px;
  align-items: flex-start;
}

.ops-2026 .mchs-emblem-shell {
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 34, 50, 0.9), rgba(6, 18, 28, 0.74));
  border: 1px solid rgba(98, 201, 255, 0.14);
  box-shadow: 0 18px 34px rgba(0, 7, 14, 0.34);
}

.ops-2026 .mchs-emblem-shell-large {
  width: 132px;
  height: 132px;
  border-radius: 30px;
}

.ops-2026 .brand-title,
.ops-2026 .brand-subtitle,
.ops-2026 .auth-copy h1,
.ops-2026 .auth-card h2,
.ops-2026 .hero h1,
.ops-2026 .panel-heading h2,
.ops-2026 .board-heading h3,
.ops-2026 .location-card-header h3,
.ops-2026 .driver-name,
.ops-2026 .mission-address,
.ops-2026 .recent-unit,
.ops-2026 .selected-driver strong,
.ops-2026 .mission-card strong {
  font-family: "Exo 2", "Segoe UI", sans-serif;
}

.ops-2026 .brand-title {
  color: #f7fbff;
  letter-spacing: 0.08em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.ops-2026 .brand-title-compact {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.ops-2026 .brand-subtitle {
  color: #ffb15c;
  letter-spacing: 0.22em;
}

.ops-2026 .auth-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.ops-2026 .auth-copy p,
.ops-2026 .hero-copy,
.ops-2026 .panel-note,
.ops-2026 .auth-hint,
.ops-2026 .driver-meta,
.ops-2026 .driver-address,
.ops-2026 .driver-unit,
.ops-2026 .selected-meta,
.ops-2026 .recent-meta,
.ops-2026 .location-meta,
.ops-2026 .chat-meta,
.ops-2026 .mission-note,
.ops-2026 .mission-meta,
.ops-2026 .table-note,
.ops-2026 .secret-hint,
.ops-2026 .user-login,
.ops-2026 .device-status {
  color: var(--muted);
}

.ops-2026 .auth-features {
  gap: 12px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.ops-2026 .auth-features li {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(98, 201, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 30, 46, 0.76), rgba(9, 23, 35, 0.72));
}

.ops-2026 .auth-features li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9c40, #ff6b00);
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.1);
}

.ops-2026 .auth-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  gap: 18px;
}

.ops-2026 .auth-card::before,
.ops-2026 .panel::before,
.ops-2026 .hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.98), rgba(98, 201, 255, 0.75));
}

.ops-2026 .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
  padding: 18px 20px 20px;
  overflow: hidden;
}

.ops-2026 .hero::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -30px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 122, 0, 0.18), transparent 54%),
    radial-gradient(circle at 32% 28%, rgba(98, 201, 255, 0.14), transparent 46%);
  filter: blur(6px);
  pointer-events: none;
}

.ops-2026 .hero h1 {
  color: #f5fbff;
  font-size: clamp(1.22rem, 2.1vw, 2rem);
  line-height: 1.02;
}

.ops-2026 .hero-copy {
  display: block;
  max-width: 68ch;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ops-2026 .hero-driver-metrics {
  margin-top: 12px;
}

.ops-2026 .hero-driver-metrics .metric-card {
  border: 1px solid rgba(98, 201, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 29, 45, 0.96), rgba(6, 19, 30, 0.94)),
    linear-gradient(135deg, rgba(98, 201, 255, 0.05), transparent 42%);
}

.ops-2026 .hero-driver-metrics .metric-card.alert {
  border-color: rgba(255, 122, 0, 0.16);
  background:
    linear-gradient(180deg, rgba(37, 25, 17, 0.96), rgba(18, 15, 13, 0.94)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.12), transparent 44%);
}

.ops-2026 .hero-driver-metrics .metric-card span {
  color: #85a8bf;
}

.ops-2026 .hero-driver-metrics .metric-card strong {
  color: #f5fbff;
  font-family: "JetBrains Mono", monospace;
}

.ops-2026 .hero-ops-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ops-2026 .hero-ops-row .dispatch-hero-chip {
  min-width: 132px;
}

.ops-2026 .hero-side {
  grid-template-columns: minmax(230px, auto) minmax(220px, 1fr);
  gap: 10px;
  align-items: start;
  min-width: min(100%, 560px);
}

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

.ops-2026 .dispatch-hero-chip strong {
  font-family: "JetBrains Mono", monospace;
}

.ops-2026 #ribbonConnectionChip strong {
  color: #74f2b5;
  text-shadow: 0 0 22px rgba(116, 242, 181, 0.34);
}

.ops-2026 #ribbonConnectionChip strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #74f2b5;
  box-shadow: 0 0 0 6px rgba(116, 242, 181, 0.1);
}

.ops-2026 #ribbonBusyChip strong {
  color: #ffb15c;
}

.ops-2026 .status-chip,
.ops-2026 .metric-card,
.ops-2026 .user-card,
.ops-2026 .driver-card,
.ops-2026 .recent-card,
.ops-2026 .mission-card,
.ops-2026 .location-card,
.ops-2026 .secret-box,
.ops-2026 .selected-driver,
.ops-2026 .chat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(98, 201, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(14, 33, 49, 0.96), rgba(9, 22, 35, 0.92)),
    linear-gradient(135deg, rgba(98, 201, 255, 0.06), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
}

.ops-2026 .status-chip::after,
.ops-2026 .metric-card::after,
.ops-2026 .user-card::after,
.ops-2026 .driver-card::after,
.ops-2026 .recent-card::after,
.ops-2026 .mission-card::after,
.ops-2026 .location-card::after,
.ops-2026 .secret-box::after,
.ops-2026 .selected-driver::after,
.ops-2026 .chat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 36%);
  pointer-events: none;
}

.ops-2026 .status-chip,
.ops-2026 .user-card {
  padding: 10px 12px;
  border-radius: 16px;
}

.ops-2026 .status-chip span,
.ops-2026 .metric-card span,
.ops-2026 .role-pill,
.ops-2026 .presence-pill,
.ops-2026 .panel-kicker,
.ops-2026 .eyebrow,
.ops-2026 .dispatch-form label span,
.ops-2026 .secret-label,
.ops-2026 .log-table th {
  letter-spacing: 0.18em;
}

.ops-2026 .status-chip span,
.ops-2026 .metric-card span,
.ops-2026 .log-table th {
  color: #84a4bc;
}

.ops-2026 .status-chip strong,
.ops-2026 .metric-card strong,
.ops-2026 #serverTime,
.ops-2026 #syncTime {
  font-family: "JetBrains Mono", monospace;
  color: #f6fbff;
}

.ops-2026 .metric-card {
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 20px;
}

.ops-2026 .metric-card strong {
  font-size: 1.16rem;
}

.ops-2026 .metric-card.alert {
  border-color: rgba(255, 122, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(40, 23, 11, 0.96), rgba(20, 14, 11, 0.92)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.12), transparent 48%);
}

.ops-2026 .role-pill,
.ops-2026 .presence-pill {
  border: 1px solid rgba(98, 201, 255, 0.1);
  background: rgba(10, 35, 52, 0.9);
  color: #9ed9ff;
}

.ops-2026 .presence-pill.offline {
  color: #b9c6d1;
  background: rgba(34, 47, 59, 0.94);
}

.ops-2026 .dashboard {
  gap: 16px;
}

.ops-2026 .panel {
  padding: 22px;
}

.ops-2026 .panel-heading {
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(98, 201, 255, 0.08);
}

.ops-2026 .dispatcher-panel {
  border-color: rgba(98, 201, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(7, 21, 33, 0.98), rgba(6, 18, 29, 0.94)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.05), transparent 40%);
}

.ops-2026 .dispatcher-panel .panel-heading {
  margin-bottom: 14px;
}

.ops-2026 .dispatcher-panel .panel-note {
  max-width: 44ch;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(98, 201, 255, 0.1);
  background: rgba(10, 29, 44, 0.82);
}

.ops-2026 .dispatcher-grid {
  grid-template-columns: minmax(300px, 332px) minmax(0, 1fr);
  gap: 14px;
}

.ops-2026 .board-panel,
.ops-2026 .dispatch-form {
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(98, 201, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 28, 42, 0.98), rgba(8, 22, 34, 0.94)),
    linear-gradient(135deg, rgba(98, 201, 255, 0.05), transparent 44%);
}

.ops-2026 .dispatch-form {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.ops-2026 .dispatch-form .board-heading,
.ops-2026 .board-heading {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(98, 201, 255, 0.08);
}

.ops-2026 .driver-board {
  grid-template-columns: 1fr;
  gap: 12px;
}

.ops-2026 .driver-card {
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
}

.ops-2026 .driver-card:hover,
.ops-2026 .driver-card:focus-visible,
.ops-2026 .recent-card:hover {
  border-color: rgba(98, 201, 255, 0.24);
  box-shadow: 0 24px 50px rgba(0, 7, 14, 0.36);
}

.ops-2026 .driver-card.selected {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: 0 28px 58px rgba(0, 7, 14, 0.42);
}

.ops-2026 .driver-card.busy {
  background:
    linear-gradient(180deg, rgba(33, 23, 16, 0.96), rgba(17, 14, 13, 0.92)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.14), transparent 48%);
}

.ops-2026 .driver-name,
.ops-2026 .selected-state,
.ops-2026 .mission-state,
.ops-2026 .recent-state,
.ops-2026 .driver-state {
  color: #f6fbff;
}

.ops-2026 .selected-driver,
.ops-2026 .mission-card,
.ops-2026 .location-card,
.ops-2026 .chat-card {
  border-radius: 22px;
}

.ops-2026 .location-card.empty-state,
.ops-2026 .selected-driver.empty-state,
.ops-2026 .chat-card.empty-state,
.ops-2026 .empty-state {
  border-style: solid;
  background:
    linear-gradient(180deg, rgba(10, 27, 41, 0.9), rgba(7, 20, 31, 0.88)),
    linear-gradient(135deg, rgba(98, 201, 255, 0.05), transparent 46%);
  color: var(--muted);
}

.ops-2026 .mission-card.active {
  background:
    linear-gradient(180deg, rgba(16, 34, 49, 0.98), rgba(10, 24, 37, 0.94)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), transparent 50%);
}

.ops-2026 .mission-badge {
  background: rgba(255, 122, 0, 0.14);
  color: #ffb15c;
  border: 1px solid rgba(255, 122, 0, 0.14);
}

.ops-2026 .mission-address {
  font-size: clamp(1.32rem, 2.8vw, 2rem);
  color: #f8fbff;
}

.ops-2026 .location-map-frame,
.ops-2026 .manual-location-map,
.ops-2026 .dispatcher-map-canvas {
  border: 1px solid rgba(98, 201, 255, 0.12);
  border-radius: 20px;
  background: rgba(5, 16, 25, 0.9);
}

.ops-2026 .location-warning {
  color: #ffb15c;
}

.ops-2026 .quick-grid {
  gap: 10px;
}

.ops-2026 .status-button {
  min-height: 94px;
  border: 1px solid rgba(98, 201, 255, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 28, 42, 0.98), rgba(8, 20, 31, 0.94)),
    linear-gradient(135deg, rgba(98, 201, 255, 0.05), transparent 40%);
  color: #eef6fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ops-2026 .status-button.current {
  border-color: rgba(255, 158, 46, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 168, 52, 0.98), rgba(255, 121, 0, 0.96)),
    linear-gradient(135deg, rgba(255, 236, 201, 0.3), transparent 42%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 196, 122, 0.22) inset,
    0 18px 42px rgba(255, 122, 0, 0.28);
}

.ops-2026 .status-button.danger-pending {
  background: linear-gradient(180deg, rgba(160, 48, 16, 0.96), rgba(92, 22, 12, 0.96));
}

.ops-2026 label span,
.ops-2026 .form-status,
.ops-2026 .chat-time,
.ops-2026 .chat-sender {
  color: var(--muted);
}

.ops-2026 input,
.ops-2026 select,
.ops-2026 textarea {
  border: 1px solid rgba(98, 201, 255, 0.12);
  background: rgba(7, 20, 31, 0.9);
  color: #f6fbff;
}

.ops-2026 input::placeholder,
.ops-2026 textarea::placeholder {
  color: #6d8496;
}

.ops-2026 input:focus,
.ops-2026 select:focus,
.ops-2026 textarea:focus {
  outline: 2px solid rgba(98, 201, 255, 0.12);
  border-color: rgba(98, 201, 255, 0.4);
  box-shadow: 0 0 0 6px rgba(98, 201, 255, 0.08);
}

.ops-2026 .primary-button,
.ops-2026 .secondary-button,
.ops-2026 .table-button,
.ops-2026 .ghost-link {
  border-radius: 18px;
}

.ops-2026 .primary-button {
  border: 0;
  background: linear-gradient(180deg, #ff8a1f, #e26300);
  color: #fff;
  box-shadow: 0 18px 40px rgba(154, 67, 6, 0.34);
}

.ops-2026 .secondary-button,
.ops-2026 .table-button,
.ops-2026 .ghost-link {
  border: 1px solid rgba(98, 201, 255, 0.12);
  background: rgba(10, 28, 42, 0.92);
  color: #f0f7fc;
}

.ops-2026 .primary-button:hover,
.ops-2026 .secondary-button:hover,
.ops-2026 .table-button:hover,
.ops-2026 .ghost-link:hover,
.ops-2026 .status-button:hover {
  transform: translateY(-2px);
}

.ops-2026 .command-toast {
  z-index: 930;
  border: 1px solid rgba(255, 122, 0, 0.18);
  background:
    linear-gradient(180deg, rgba(17, 37, 53, 0.98), rgba(8, 20, 31, 0.96)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.14), transparent 42%);
  color: #f8fbff;
}

.ops-2026 .command-toast.alarm {
  top: max(18px, env(safe-area-inset-top));
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(620px, calc(100vw - 28px));
  padding: 18px 22px;
  transform: translateX(-50%);
  border-color: rgba(255, 160, 63, 0.62);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(86, 39, 8, 0.98), rgba(16, 31, 43, 0.98) 62%),
    rgba(9, 24, 36, 0.98);
  box-shadow:
    0 24px 70px rgba(0, 5, 10, 0.62),
    0 0 42px rgba(255, 122, 0, 0.24),
    inset 0 1px 0 rgba(255, 229, 202, 0.18);
  animation: alarm-toast-in 420ms cubic-bezier(0.2, 0.85, 0.25, 1.08) both;
}

.ops-2026 .command-toast.alarm strong {
  color: #fff4e6;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

.ops-2026 .command-toast.alarm p {
  color: #ffd8af;
}

@keyframes alarm-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.ops-2026 .command-toast strong {
  font-family: "Exo 2", "Segoe UI", sans-serif;
}

.ops-2026 .chat-bubble {
  border-radius: 16px;
  background: rgba(10, 28, 42, 0.94);
  border: 1px solid rgba(98, 201, 255, 0.12);
  color: #f1f8fd;
}

.ops-2026 .chat-row.self .chat-bubble {
  background:
    linear-gradient(180deg, rgba(48, 32, 20, 0.94), rgba(25, 18, 16, 0.92)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.14), transparent 42%);
  border-color: rgba(255, 122, 0, 0.14);
}

.ops-2026 .chat-sender {
  color: #ffb15c;
}

.ops-2026 .log-table-wrap {
  border: 1px solid rgba(98, 201, 255, 0.1);
  background: rgba(6, 17, 26, 0.7);
}

.ops-2026 .log-table {
  background: rgba(7, 20, 31, 0.94);
}

.ops-2026 .log-table th {
  background: rgba(11, 28, 42, 0.98);
}

.ops-2026 .log-table th,
.ops-2026 .log-table td {
  border-bottom-color: rgba(98, 201, 255, 0.08);
}

.ops-2026 .log-table td {
  color: #eaf3fb;
}

.ops-2026 .secret-box {
  background:
    linear-gradient(180deg, rgba(18, 34, 49, 0.96), rgba(10, 23, 35, 0.92)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), transparent 40%);
}

.ops-2026 .secret-box strong {
  color: #fff3e7;
}

.ops-2026 .settings-admin-panel {
  margin-top: 10px;
  padding: 18px;
  background: rgba(5, 17, 27, 0.48);
  border-radius: 24px;
  border: 1px solid rgba(98, 201, 255, 0.08);
}

.ops-2026 .user-state,
.ops-2026 .online-state {
  color: #f0f7fc;
}

.ops-2026 .user-state::before,
.ops-2026 .online-state::before {
  box-shadow: 0 0 0 6px rgba(89, 213, 143, 0.12);
}

.ops-2026 .user-state.inactive::before,
.ops-2026 .online-state.offline::before {
  box-shadow: 0 0 0 6px rgba(255, 143, 107, 0.1);
}

.ops-2026 ::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.ops-2026 ::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.88), rgba(98, 201, 255, 0.78));
  background-clip: padding-box;
}

.ops-2026 ::-webkit-scrollbar-track {
  background: rgba(8, 23, 36, 0.7);
}

@media (max-width: 1180px) {
  .ops-2026 .auth-shell,
  .ops-2026 .dispatcher-grid,
  .ops-2026 .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .ops-2026 #selectedDriverCard,
  .ops-2026 #selectedDriverLocation,
  .ops-2026 #dispatcherMapCard,
  .ops-2026 #dispatcherChatCard,
  .ops-2026 .dispatch-form > label:nth-of-type(1),
  .ops-2026 .dispatch-form > .submit-row {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 980px) {
  .ops-2026 .hero {
    grid-template-columns: 1fr;
  }

  .ops-2026 .hero-side,
  .ops-2026 .hero-status,
  .ops-2026 .metrics,
  .ops-2026 .field-grid,
  .ops-2026 .compact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .ops-2026 .page-shell {
    width: min(100%, calc(100% - 20px));
    padding: calc(14px + env(safe-area-inset-top)) 0 calc(34px + env(safe-area-inset-bottom));
  }

  .ops-2026 .auth-copy,
  .ops-2026 .auth-card,
  .ops-2026 .hero,
  .ops-2026 .panel {
    border-radius: 24px;
  }

  .ops-2026 .auth-copy,
  .ops-2026 .auth-card,
  .ops-2026 .hero,
  .ops-2026 .panel {
    padding: 18px;
  }

  .ops-2026 .auth-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 9vw, 3.5rem);
  }

  .ops-2026 .hero h1 {
    font-size: 1.12rem;
  }

  .ops-2026 .service-brand {
    align-items: flex-start;
  }

  .ops-2026 .mchs-emblem-shell {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .ops-2026 .mchs-emblem-shell-large {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .ops-2026 .driver-board,
  .ops-2026 .recent-events,
  .ops-2026 .quick-grid {
    grid-template-columns: 1fr;
  }

  .ops-2026 .log-table tr {
    background: rgba(10, 26, 39, 0.96);
    border-color: rgba(98, 201, 255, 0.12);
  }

  .ops-2026 .log-table td::before {
    color: #84a4bc;
  }
}

/* Command-center 2026 second pass: focus, timeline, map legend and settings drawer. */
.ops-2026 .command-ribbon {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 0.75fr 1.6fr 1.6fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid rgba(98, 201, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 22, 34, 0.96), rgba(4, 14, 22, 0.92)),
    repeating-linear-gradient(90deg, rgba(98, 201, 255, 0.04) 0 1px, transparent 1px 42px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.ops-2026 .ribbon-cell {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(98, 201, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.ops-2026 .ribbon-cell span {
  display: block;
  margin-bottom: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7da0b6;
}

.ops-2026 .ribbon-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Exo 2", sans-serif;
  color: #f5fbff;
}

.ops-2026 .ribbon-cell.live strong {
  color: #74f2b5;
  text-shadow: 0 0 22px rgba(116, 242, 181, 0.34);
}

.ops-2026 .ribbon-cell.live strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #74f2b5;
  box-shadow: 0 0 0 6px rgba(116, 242, 181, 0.1);
}

.ops-2026 .ribbon-cell.alert strong {
  color: #ffb15c;
}

.ops-2026 .command-focus {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-color: rgba(255, 122, 0, 0.18);
}

.ops-2026 .command-focus::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #ff7a00, #0d73bd);
}

.ops-2026 .focus-topline,
.ops-2026 .mission-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops-2026 .focus-status {
  padding: 7px 10px;
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: #ffb15c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-2026 .focus-status.online {
  border-color: rgba(116, 242, 181, 0.2);
  background: rgba(116, 242, 181, 0.1);
  color: #74f2b5;
}

.ops-2026 .focus-status.offline {
  border-color: rgba(255, 143, 107, 0.18);
  background: rgba(255, 143, 107, 0.1);
  color: #ffb08a;
}

.ops-2026 .focus-address {
  display: block;
  margin-top: 8px;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.05;
  color: #fff9f1;
}

.ops-2026 .focus-grid,
.ops-2026 .mission-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ops-2026 .focus-grid span,
.ops-2026 .mission-data-grid span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(98, 201, 255, 0.09);
  border-radius: 16px;
  background: rgba(5, 16, 25, 0.42);
  color: #e7f3fb;
}

.ops-2026 .focus-grid b,
.ops-2026 .mission-data-grid b {
  display: block;
  margin-bottom: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7da0b6;
}

.ops-2026 .command-progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.ops-2026 .command-progress span {
  position: relative;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid rgba(98, 201, 255, 0.1);
  border-radius: 12px;
  background: rgba(98, 201, 255, 0.05);
  color: #8aa9bd;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-2026 .command-progress span.done {
  border-color: rgba(116, 242, 181, 0.16);
  background: rgba(116, 242, 181, 0.09);
  color: #a9ffd3;
}

.ops-2026 .command-progress span.active {
  border-color: rgba(255, 122, 0, 0.36);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.26), rgba(255, 122, 0, 0.1));
  color: #fff2e6;
  box-shadow: 0 0 24px rgba(255, 122, 0, 0.18);
}

.ops-2026 .map-legend {
  position: absolute;
  right: 18px;
  bottom: 58px;
  z-index: 450;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 36px);
  padding: 8px;
  border: 1px solid rgba(98, 201, 255, 0.14);
  border-radius: 14px;
  background: rgba(4, 14, 22, 0.82);
  backdrop-filter: blur(12px);
}

.ops-2026 .dispatcher-map-card {
  position: relative;
}

.ops-2026 .map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dcecf6;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.ops-2026 .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #62c9ff;
  box-shadow: 0 0 0 4px rgba(98, 201, 255, 0.13);
}

.ops-2026 .legend-dot.selected {
  background: #ff7a00;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15);
}

.ops-2026 .legend-dot.destination {
  border-radius: 3px;
  background: #ffd089;
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(255, 208, 137, 0.12);
}

.ops-2026 .ops-map-marker {
  border: 0;
  background: transparent;
}

.ops-2026 .ops-map-marker span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #0d73bd;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(13, 115, 189, 0.18);
}

.ops-2026 .ops-map-marker-destination span {
  border-radius: 7px 7px 7px 0;
  background: #ff8a1f;
  transform: rotate(-45deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(255, 122, 0, 0.16);
}

.ops-2026 .ops-map-marker.selected span {
  background: #ff7a00;
  box-shadow: 0 0 0 9px rgba(255, 122, 0, 0.2), 0 0 34px rgba(255, 122, 0, 0.44);
}

.ops-2026 .ops-map-marker.stale span {
  border-style: dashed;
  background: #687987;
  opacity: 0.72;
  filter: grayscale(0.8);
  box-shadow: 0 0 0 7px rgba(104, 121, 135, 0.16);
}

.ops-2026 .command-manage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(98, 201, 255, 0.12);
  color: #9ab5c8;
  font-size: 0.82rem;
}

.ops-2026 .events-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ops-2026 .timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(98, 201, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 29, 44, 0.96), rgba(6, 18, 28, 0.94)),
    linear-gradient(135deg, rgba(98, 201, 255, 0.05), transparent 44%);
}

.ops-2026 .timeline-item time {
  font-family: "JetBrains Mono", monospace;
  color: #9ab5c8;
}

.ops-2026 .timeline-state {
  display: inline-block;
  margin-bottom: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.13);
  color: #ffb15c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-2026 .timeline-item strong {
  display: block;
  color: #f8fbff;
}

.ops-2026 .timeline-item p,
.ops-2026 .timeline-item small {
  display: block;
  margin: 5px 0 0;
  color: #9ab5c8;
}

.ops-2026 .incident-card-body {
  min-width: 0;
}

.ops-2026 .incident-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ops-2026 .incident-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(98, 201, 255, 0.12);
  border-radius: 999px;
  background: rgba(4, 17, 27, 0.72);
  color: #9ab5c8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
}

.ops-2026 .incident-step b {
  color: #f4f9fc;
  font-family: "Exo 2", sans-serif;
}

.ops-2026 .log-panel .log-table-wrap {
  display: none;
}

.ops-2026 .settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
}

.ops-2026 #settingsPanel.security-panel {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900;
  width: min(560px, calc(100vw - 32px));
  overflow: auto;
  margin: 0;
  transform-origin: right center;
  animation: drawer-in 180ms ease-out both;
}

.ops-2026.settings-drawer-open {
  overflow: hidden;
}

.alarm-visual {
  position: fixed;
  inset: 0;
  z-index: 910;
  pointer-events: none;
  border: 3px solid rgba(255, 122, 0, 0.72);
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 132, 25, 0.32), transparent 46%),
    linear-gradient(180deg, rgba(255, 122, 0, 0.06), transparent 34%);
  box-shadow:
    inset 0 0 110px rgba(255, 122, 0, 0.14),
    inset 0 0 26px rgba(255, 177, 92, 0.12);
  animation: alert-frame 5.6s ease-out both;
}

.alarm-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 184, 112, 0.44);
  border-radius: 24px;
  animation: alarm-inner-frame 1.1s ease-out 3;
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes alert-frame {
  0% {
    opacity: 0;
  }
  10%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes alarm-inner-frame {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 0.18;
    transform: scale(1);
  }
}

@media (max-width: 1040px) {
  .ops-2026 .command-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-2026 .ribbon-cell.wide {
    grid-column: span 2;
  }

  .ops-2026 .command-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ops-2026 .command-ribbon {
    grid-template-columns: 1fr;
  }

  .ops-2026 .ribbon-cell.wide {
    grid-column: auto;
  }

  .ops-2026 .focus-grid,
  .ops-2026 .mission-data-grid {
    grid-template-columns: 1fr;
  }

  .ops-2026 .timeline-item {
    grid-template-columns: 1fr;
  }

  .ops-2026 .command-manage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-2026 .map-legend {
    position: static;
    margin-top: 10px;
  }

  .ops-2026 #settingsPanel.security-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(82vh, 720px);
    border-radius: 28px;
    animation-name: drawer-up;
  }
}

@keyframes drawer-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ops-2026 .document-toggle[aria-expanded="true"] {
  border-color: rgba(255, 158, 46, 0.62);
  background: linear-gradient(180deg, rgba(255, 151, 40, 0.96), rgba(231, 99, 0, 0.96));
  color: #fff;
}

.ops-2026 .document-exchange {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 0, 0.2);
  background:
    linear-gradient(180deg, rgba(10, 29, 44, 0.98), rgba(7, 19, 31, 0.96)),
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), transparent 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
}

.ops-2026 .document-exchange::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 36%);
}

.ops-2026 .document-exchange > * {
  position: relative;
  z-index: 1;
}

.ops-2026 .document-exchange-head span {
  color: #84a4bc;
  letter-spacing: 0.18em;
}

.ops-2026 .document-exchange-head strong {
  color: #f6fbff;
  font-family: "JetBrains Mono", monospace;
}

.ops-2026 .document-upload-button {
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.14);
}

.ops-2026 .document-item {
  border: 1px solid rgba(98, 201, 255, 0.08);
  background: rgba(5, 18, 30, 0.56);
}

.ops-2026 .document-link {
  color: #f5fbff;
}

.ops-2026 .document-main span,
.ops-2026 .document-list.empty-state {
  color: #91aabe;
}

.ops-2026 .document-download-button,
.ops-2026 .document-delete-button {
  border-color: rgba(98, 201, 255, 0.12);
  background: rgba(13, 34, 50, 0.84);
  color: #d7edff;
}

.ops-2026 .document-delete-button {
  color: #ffb15c;
}

@media (max-width: 760px) {
  .document-exchange {
    padding: 14px;
  }

  .document-item {
    grid-template-columns: 1fr;
  }

  .document-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .user-card-actions {
    grid-template-columns: 1fr;
  }
}

/* Command center visual refresh */
body::after {
  content: "";
  position: fixed;
  inset: 7vh 2vw 8vh 42vw;
  z-index: 0;
  pointer-events: none;
  background: url("/brand/mchs-star.svg?v=20260725visual10") center / min(54vw, 720px) no-repeat;
  opacity: 0.045;
  filter: saturate(0.75) drop-shadow(0 0 70px rgba(65, 185, 245, 0.24));
  transform: translate3d(var(--emblem-shift-x, 0), var(--emblem-shift-y, 0), 0) scale(1.015);
  transform-origin: center;
  will-change: transform;
  transition: opacity 280ms ease, filter 280ms ease;
}

body.ops-alarm-mode::after {
  opacity: 0.11;
  filter: saturate(1.15) sepia(0.12) drop-shadow(0 0 92px rgba(255, 122, 0, 0.44));
}

.page-shell {
  position: relative;
  z-index: 1;
}

.ops-2026 .hero,
.ops-2026 .panel,
.ops-2026 .document-exchange,
.ops-2026 .chat-card,
.ops-2026 .location-card,
.ops-2026 .mission-card,
.ops-2026 .driver-card {
  backdrop-filter: blur(22px) saturate(1.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
}

.ops-2026 .panel,
.ops-2026 .hero {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 70px rgba(0, 7, 14, 0.34);
}

button[data-icon],
a[data-icon] {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

button[data-icon]::before,
a[data-icon]::before,
.mobile-dock-button::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--ui-icon) center / contain no-repeat;
  mask: var(--ui-icon) center / contain no-repeat;
}

[data-icon="settings"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10.2 2h3.6l.7 2.4 2.1.9 2.2-1.2 2.5 2.5-1.2 2.2.9 2.1 2.4.7v3.6l-2.4.7-.9 2.1 1.2 2.2-2.5 2.5-2.2-1.2-2.1.9-.7 2.4h-3.6l-.7-2.4-2.1-.9-2.2 1.2-2.5-2.5L3.9 18 3 15.9l-2.4-.7v-3.6l2.4-.7.9-2.1-1.2-2.2 2.5-2.5 2.2 1.2 2.1-.9zM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8'/%3E%3C/svg%3E");
}

[data-icon="files"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 5a2 2 0 0 1 2-2h6l2 3h8a2 2 0 0 1 2 2v10a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3z'/%3E%3C/svg%3E");
}

[data-icon="expand"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 3h8v3H6v5H3zm10 0h8v8h-3V6h-5zM3 13h3v5h5v3H3zm15 0h3v8h-8v-3h5z'/%3E%3C/svg%3E");
}

[data-icon="send"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m2 3 20 9-20 9 3-7 10-2-10-2z'/%3E%3C/svg%3E");
}

[data-icon="alarm"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2c3 3 6 5.8 6 10a6 6 0 1 1-12 0c0-2.6 1.3-5.2 4-8-.2 3 1 4 2 5 1-2 1-4 0-7m0 18a3 3 0 0 0 3-3c0-1.7-1-3.2-3-5-2 1.8-3 3.3-3 5a3 3 0 0 0 3 3'/%3E%3C/svg%3E");
}

[data-icon="location"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1a8 8 0 0 1 8 8c0 6-8 14-8 14S4 15 4 9a8 8 0 0 1 8-8m0 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6'/%3E%3C/svg%3E");
}

[data-icon="map"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m2 5 6-3 8 3 6-3v17l-6 3-8-3-6 3zm7 .2v11.6l6 2V7.2z'/%3E%3C/svg%3E");
}

[data-icon="close"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m5 3 7 7 7-7 2 2-7 7 7 7-2 2-7-7-7 7-2-2 7-7-7-7z'/%3E%3C/svg%3E");
}

[data-icon="navigation"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 2 3 10l7 3 3 7z'/%3E%3C/svg%3E");
}

[data-icon="home"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m2 11 10-9 10 9-2 2-1-1v9h-5v-6h-4v6H5v-9l-1 1z'/%3E%3C/svg%3E");
}

[data-icon="chat"] {
  --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 3h18v14H8l-5 4zm4 5v2h10V8zm0 4v2h7v-2z'/%3E%3C/svg%3E");
}

.status-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.status-button::before {
  content: "";
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--status-icon) center / contain no-repeat;
  mask: var(--status-icon) center / contain no-repeat;
}

.status-button[data-command-status="arrived"] {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h16v14H4zm3 3v8h10V6zm-3 13h6v3H4zm10 0h6v3h-6z'/%3E%3C/svg%3E");
}

.status-button[data-command-status="water_on"] {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2c4 5 7 8 7 13a8 8 0 1 1-16 0c0-3 2-7 6-11-1 4 1 5 3 7 2-3 2-6 0-9'/%3E%3C/svg%3E");
}

.status-button[data-command-status="localized"] {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m-2 5v4H6v2h4v4h2v-4h4v-2h-4V7z'/%3E%3C/svg%3E");
}

.status-button[data-command-status="liquidation_1"],
.status-button[data-command-status="liquidation_2"] {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m9 18-6-6 2.5-2.5L9 13l9.5-9.5L21 6z'/%3E%3C/svg%3E");
}

.status-button[data-command-status="returned_station"] {
  --status-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M2 12 12 3l10 9-2 2-1-1v8h-5v-6h-4v6H5v-8l-1 1z'/%3E%3C/svg%3E");
}

.ops-2026 .status-button.current {
  position: relative;
  overflow: hidden;
}

.ops-2026 .status-button.current::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -35%;
  width: 22%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.34);
  filter: blur(2px);
  animation: status-shine 2.8s ease-in-out infinite;
}

@keyframes status-shine {
  0%, 35% { left: -35%; opacity: 0; }
  50% { opacity: 1; }
  70%, 100% { left: 120%; opacity: 0; }
}

.driver-card-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.driver-card-identity {
  min-width: 0;
}

.vehicle-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(98, 201, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(29, 73, 101, 0.88), rgba(8, 29, 45, 0.92));
  color: #7ed8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vehicle-glyph::before {
  content: "";
  width: 27px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 22'%3E%3Cpath fill='black' d='M3 5h16v11H3zM19 9h6l4 5v2H19zM7 2h8v3H7zM5 16h22v3H5z'/%3E%3Ccircle fill='black' cx='9' cy='18' r='3'/%3E%3Ccircle fill='black' cx='24' cy='18' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 22'%3E%3Cpath fill='black' d='M3 5h16v11H3zM19 9h6l4 5v2H19zM7 2h8v3H7zM5 16h22v3H5z'/%3E%3Ccircle fill='black' cx='9' cy='18' r='3'/%3E%3Ccircle fill='black' cx='24' cy='18' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.driver-card.busy .vehicle-glyph,
.driver-card.selected .vehicle-glyph {
  border-color: rgba(255, 153, 48, 0.48);
  background: linear-gradient(145deg, rgba(130, 61, 9, 0.92), rgba(42, 25, 13, 0.94));
  color: #ffad58;
  box-shadow: 0 0 28px rgba(255, 122, 0, 0.16);
}

.driver-state {
  display: flex;
  gap: 8px;
  align-items: center;
}

.driver-state::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--state-color, #56c8ff);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--state-color, #56c8ff) 12%, transparent);
}

.status-free { --state-color: #67dba0; }
.status-dispatch_order { --state-color: #ff8a1f; }
.status-arrived { --state-color: #58c8ff; }
.status-water_on { --state-color: #2ee4ef; }
.status-localized { --state-color: #75dfb2; }
.status-liquidation_1,
.status-liquidation_2 { --state-color: #8fe084; }
.status-returned_station { --state-color: #a7b9c7; }
.status-dispatch_cancelled { --state-color: #ff6d5f; }
.status-address_updated { --state-color: #ffd166; }

.ops-2026 .driver-card[class*="status-"] {
  border-left: 3px solid var(--state-color, rgba(98, 201, 255, 0.3));
}

.ops-2026 .recent-card[class*="status-"] {
  border-top: 2px solid var(--state-color, rgba(98, 201, 255, 0.3));
}

.mission-elapsed {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 153, 48, 0.22);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  color: #ffc17e;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mission-clock-stack,
.focus-live-cluster {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-direction: column;
}

.focus-live-cluster {
  flex-direction: row;
  align-items: center;
}

.mission-badge[class*="status-"],
.focus-status[class*="status-"] {
  border-color: color-mix(in srgb, var(--state-color) 34%, transparent);
  background: color-mix(in srgb, var(--state-color) 14%, rgba(8, 24, 37, 0.9));
  color: var(--state-color);
  box-shadow: 0 0 24px color-mix(in srgb, var(--state-color) 13%, transparent);
}

.chat-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-title-row h3 {
  margin: 0;
}

.unread-badge,
.mobile-dock-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9f3e, #ef6500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
}

.chat-row {
  display: flex;
  gap: 9px;
  align-items: flex-end;
}

.chat-day-divider {
  position: sticky;
  top: 6px;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin: 6px 0 4px;
  pointer-events: none;
}

.chat-day-divider span {
  padding: 5px 10px;
  border: 1px solid rgba(98, 201, 255, 0.13);
  border-radius: 999px;
  background: rgba(5, 20, 31, 0.88);
  color: #91abc0;
  box-shadow: 0 8px 20px rgba(0, 8, 15, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.chat-row.self {
  justify-content: flex-end;
}

.chat-row.grouped {
  margin-top: -6px;
}

.chat-row.grouped .chat-avatar {
  visibility: hidden;
}

.chat-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(98, 201, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(40, 104, 142, 0.9), rgba(12, 43, 63, 0.96));
  color: #d8f2ff;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0, 8, 15, 0.28);
}

.chat-avatar.has-image {
  background: rgba(6, 25, 38, 0.82);
}

.chat-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.chat-row[data-role="dispatcher"] .chat-avatar {
  border-color: rgba(255, 146, 46, 0.3);
  background: linear-gradient(145deg, rgba(166, 74, 8, 0.94), rgba(70, 37, 15, 0.96));
  color: #ffd0a0;
}

.chat-row.self .chat-avatar {
  order: 2;
}

.ops-2026 .chat-bubble {
  position: relative;
  max-width: min(82%, 580px);
  padding: 11px 13px 9px;
  border-radius: 18px 18px 18px 6px;
  background:
    linear-gradient(145deg, rgba(16, 43, 62, 0.94), rgba(8, 25, 39, 0.96)),
    rgba(10, 28, 42, 0.94);
  box-shadow:
    0 12px 28px rgba(0, 8, 15, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.ops-2026 .chat-row.self .chat-bubble {
  border-radius: 18px 18px 6px 18px;
  background:
    linear-gradient(145deg, rgba(91, 47, 15, 0.94), rgba(31, 25, 23, 0.96)),
    rgba(48, 32, 20, 0.94);
}

.chat-message-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.chat-message-head .chat-sender {
  margin: 0;
}

.chat-role-label {
  padding: 2px 6px;
  border: 1px solid rgba(98, 201, 255, 0.12);
  border-radius: 999px;
  color: #8fb5cf;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-row[data-role="dispatcher"] .chat-role-label {
  border-color: rgba(255, 146, 46, 0.2);
  color: #ffb96f;
}

.ops-2026 .chat-body {
  color: #eff8ff;
  line-height: 1.52;
}

.ops-2026 .chat-time {
  display: block;
  margin-top: 5px;
  color: #7892a5;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-align: right;
}

.map-expand-button {
  white-space: nowrap;
}

.dispatcher-map-card.map-expanded {
  position: fixed;
  inset: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  z-index: 950;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 18px;
  border: 1px solid rgba(255, 153, 48, 0.32);
  border-radius: 28px;
  background: rgba(4, 17, 28, 0.97);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.72);
}

.dispatcher-map-card.map-expanded .dispatcher-map-canvas {
  min-height: 0;
  height: 100%;
}

body.map-overlay-open {
  overflow: hidden;
}

body.map-overlay-open::before {
  z-index: 900;
  background-color: rgba(0, 7, 13, 0.72);
}

.ops-map-marker {
  background: transparent;
}

.ops-2026 .ops-map-marker .map-marker-core {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 2px solid rgba(225, 246, 255, 0.86);
  border-radius: 13px;
  background: linear-gradient(145deg, #0b83bd, #06496f);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 15, 28, 0.42), 0 0 0 5px rgba(68, 191, 243, 0.15);
}

.ops-2026 .ops-map-marker svg {
  width: 72%;
  height: 72%;
  overflow: visible;
  fill: currentColor;
}

.ops-2026 .ops-map-marker svg circle {
  stroke: currentColor;
  stroke-width: 1;
}

.ops-2026 .ops-map-marker-destination .map-marker-core {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff850f;
  filter: drop-shadow(0 8px 8px rgba(83, 32, 0, 0.48));
  box-shadow: none;
  transform: none;
  animation: destination-pulse 1.8s ease-in-out infinite;
}

.ops-2026 .ops-map-marker-destination svg circle {
  fill: #071520;
  stroke: #fff;
  stroke-width: 1.5;
}

.ops-2026 .ops-map-marker.selected .map-marker-core {
  background: linear-gradient(145deg, #ff9f3f, #e96500);
  box-shadow: 0 10px 26px rgba(98, 36, 0, 0.48), 0 0 0 7px rgba(255, 130, 0, 0.2);
}

.ops-2026 .ops-map-marker-destination.selected .map-marker-core {
  background: transparent;
  color: #ff9b36;
}

.ops-2026 .ops-map-marker.stale .map-marker-core {
  filter: grayscale(0.75);
  opacity: 0.58;
}

.dispatch-route-line {
  animation: route-flow 1.6s linear infinite;
}

@keyframes route-flow {
  to { stroke-dashoffset: -38; }
}

@keyframes destination-pulse {
  50% { transform: translateY(-2px) scale(1.08); }
}

.ops-2026 .incident-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-left: 8px;
}

.ops-2026 .incident-steps::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(72, 190, 240, 0.42), rgba(255, 130, 0, 0.48));
}

.ops-2026 .incident-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px 7px 30px;
  border: 0;
  border-radius: 12px;
  background: rgba(5, 18, 30, 0.42);
  color: #8ea9bc;
}

.ops-2026 .incident-step::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 11px;
  height: 11px;
  border: 3px solid #0b2234;
  border-radius: 50%;
  background: var(--state-color, #52bfe9);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--state-color, #52bfe9) 14%, transparent);
}

.ops-2026 .incident-step.current {
  background: color-mix(in srgb, var(--state-color, #ff8200) 10%, rgba(8, 25, 39, 0.86));
  color: #eaf7ff;
}

.ops-2026 .incident-step.current::before {
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--state-color, #ff8200) 19%, transparent);
}

.mobile-dock {
  display: none;
}

@media (max-width: 760px) {
  body::after {
    inset: 18vh -20vw 14vh 20vw;
    background-size: 104vw;
    opacity: 0.038;
  }

  .ops-2026 .command-toast.alarm {
    top: max(10px, env(safe-area-inset-top));
    padding: 15px 17px;
    border-radius: 20px;
  }

  .page-shell {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .mobile-dock:not(.hidden) {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 820;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(98, 201, 255, 0.16);
    border-radius: 24px;
    background: rgba(5, 18, 29, 0.88);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(1.25);
    -webkit-backdrop-filter: blur(24px) saturate(1.25);
  }

.mobile-dock-button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: #7f9aad;
    font: inherit;
    cursor: pointer;
  }

  .mobile-dock-button::before {
    width: 20px;
    height: 20px;
  }

  .mobile-dock-button span {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.58rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dock-button.active {
    background: linear-gradient(180deg, rgba(255, 143, 37, 0.22), rgba(255, 104, 0, 0.12));
    color: #ffae5c;
    box-shadow: inset 0 0 0 1px rgba(255, 147, 48, 0.14);
  }

  .mobile-dock-badge {
    position: absolute;
    top: 3px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }

  .focus-topline,
  .mission-header {
    align-items: flex-start;
  }

  .focus-live-cluster,
  .mission-clock-stack {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .mission-elapsed {
    min-height: 26px;
  }

  .map-expand-button {
    width: 100%;
  }

  .dispatcher-map-card.map-expanded {
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    padding: 12px;
    border-radius: 22px;
  }

  .ops-2026 .incident-step {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Final compact command-center layout. Keep these overrides last. */
.ops-2026 .hero-copy {
  display: none;
}

.ops-2026 .hero h1 {
  max-width: none;
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1;
}

.ops-2026 .hero-driver-metrics {
  margin-top: 8px;
  gap: 7px;
}

.ops-2026 .hero-driver-metrics .metric-card {
  min-height: 58px;
  padding: 8px 11px;
  border-radius: 15px;
}

.ops-2026 .hero-driver-metrics .metric-card span {
  font-size: 0.58rem;
}

.ops-2026 .hero-driver-metrics .metric-card strong {
  margin-top: 2px;
  font-size: 0.9rem;
}

.ops-2026 .command-progress {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-color: rgba(255, 136, 34, 0.55) transparent;
  scrollbar-width: thin;
}

.ops-2026 .command-progress span {
  flex: 1 0 78px;
  min-width: 78px;
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.63rem;
  white-space: normal;
}

@media (max-width: 760px) {
  .ops-2026 .hero h1 {
    font-size: 1.36rem;
  }

  .ops-2026 .hero-driver-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-2026 .hero-driver-metrics .metric-card {
    min-height: 53px;
    padding: 7px 8px;
  }

  .ops-2026 .hero-side {
    min-width: 0;
    gap: 8px;
  }

  .ops-2026 .user-card {
    padding: 12px;
  }

  .ops-2026 .user-card-actions,
  .ops-2026 .hero-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .ops-2026 .user-card-actions button {
    min-width: 0;
    padding-inline: 8px;
  }

  .ops-2026 .status-chip {
    min-height: 64px;
    padding: 10px;
  }

  .ops-2026 .status-chip strong {
    font-size: 0.78rem;
  }

  .ops-2026 .command-progress span {
    flex-basis: 72px;
    min-width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    transform: none;
    will-change: auto;
  }

  .alarm-visual,
  .alarm-visual::before,
  .ops-2026 .command-toast.alarm {
    animation: none;
  }
}

/* Massive service identity for the operational header. */
.ops-2026 .service-brand {
  min-width: 0;
  gap: 18px;
  align-items: flex-start;
}

.ops-2026 .service-emblem-shell {
  isolation: isolate;
  position: relative;
  width: 92px;
  height: 92px;
  padding: 11px;
  overflow: visible;
  border: 2px solid transparent;
  border-radius: 28px;
  background:
    radial-gradient(circle at 34% 24%, rgba(71, 179, 236, 0.2), transparent 42%) padding-box,
    linear-gradient(155deg, rgba(9, 32, 48, 0.98), rgba(3, 13, 22, 0.98)) padding-box,
    linear-gradient(
        115deg,
        #754000 0%,
        #e98000 14%,
        #ffd36a 30%,
        #fff6d2 43%,
        #f5b83f 56%,
        #8d5100 72%,
        #ffbb45 87%,
        #754000 100%
      )
      border-box;
  background-position: 0 0, 0 0, 0% 50%;
  background-size: 100% 100%, 100% 100%, 260% 260%;
  box-shadow:
    0 22px 48px rgba(0, 5, 11, 0.52),
    0 0 38px rgba(255, 178, 54, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: service-emblem-gold-flow 10s ease-in-out infinite alternate;
  will-change: background-position;
}

.ops-2026 .service-emblem-shell::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 1px solid rgba(121, 209, 255, 0.16);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgba(255, 122, 0, 0.08), transparent 42%),
    rgba(4, 18, 29, 0.78);
  box-shadow: inset 0 0 24px rgba(60, 181, 241, 0.08);
}

.ops-2026 .service-emblem-shell::after {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -2;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.13), rgba(49, 174, 236, 0.05) 48%, transparent 70%);
  filter: blur(8px);
}

.ops-2026 .service-emblem-shell img {
  position: relative;
  z-index: 2;
  transform: scale(1.08);
  filter:
    drop-shadow(0 8px 7px rgba(0, 4, 8, 0.42))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.service-brand-content {
  min-width: 0;
}

.service-wordmark {
  width: fit-content;
}

.ops-2026 .service-wordmark .brand-title-compact {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: clamp(1.72rem, 2.5vw, 2.5rem);
  line-height: 0.86;
  letter-spacing: 0.025em;
}

.service-wordmark .brand-title-compact span {
  color: #fff;
  font-size: 1.08em;
  font-weight: 900;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

.service-wordmark .brand-title-compact strong {
  color: #b9d8eb;
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ops-2026 .service-wordmark .brand-subtitle-compact {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  letter-spacing: normal;
}

.service-wordmark .brand-subtitle-compact span {
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff951e, #ee6800);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 105, 0, 0.2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.service-wordmark .brand-subtitle-compact small {
  color: #7fa8c1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ops-2026 .service-brand-content > h1 {
  margin-top: 9px;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  color: #eef8ff;
}

@media (max-width: 760px) {
  .ops-2026 .service-brand {
    gap: 14px;
  }

  .ops-2026 .service-emblem-shell {
    width: 72px;
    height: 72px;
    padding: 9px;
    border-radius: 23px;
  }

  .ops-2026 .service-emblem-shell::before {
    inset: 6px;
    border-radius: 17px;
  }

  .ops-2026 .service-wordmark .brand-title-compact {
    gap: 7px;
    font-size: clamp(1.3rem, 6vw, 1.72rem);
  }

  .service-wordmark .brand-subtitle-compact small {
    display: none;
  }

  .ops-2026 .service-brand-content > h1 {
    margin-top: 8px;
    font-size: 1.08rem;
  }
}

/* Static metallic text with one compositor-friendly glint layer. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ops-2026 .service-wordmark .brand-title-compact span {
    color: transparent;
    background:
      linear-gradient(
        108deg,
        #8a3d00 0%,
        #f47b00 12%,
        #ffd56f 23%,
        #fffbe2 29%,
        #f49a1f 36%,
        #a74600 48%,
        #ffae36 60%,
        #fff7c7 67%,
        #df6900 76%,
        #743000 100%
      );
    background-size: 100% 100%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .ops-2026 .service-wordmark .brand-title-compact strong {
    color: transparent;
    background:
      linear-gradient(
        108deg,
        #65869a 0%,
        #d9eef8 18%,
        #ffffff 27%,
        #7fa4ba 38%,
        #e7f7ff 54%,
        #ffce78 62%,
        #ffffff 69%,
        #6d91a7 100%
      );
    background-size: 100% 100%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .ops-2026 .service-brand-content > h1 {
    color: transparent;
    background:
      linear-gradient(
        110deg,
        #9eb8c8 0%,
        #f7fbff 18%,
        #ffe8b2 27%,
        #ffffff 34%,
        #b7cfdd 48%,
        #ffb348 62%,
        #fff8df 69%,
        #a6c3d3 82%,
        #f7fbff 100%
      );
    background-size: 100% 100%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.ops-2026 .service-wordmark {
  position: relative;
}

.ops-2026 [data-shimmer-text] {
  isolation: isolate;
  position: relative;
  display: inline-block;
}

.ops-2026 [data-shimmer-text]::after {
  content: attr(data-shimmer-text);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: #fff5bf;
  background: none;
  -webkit-text-fill-color: #fff5bf;
  opacity: 0;
  clip-path: polygon(-28% 0, -10% 0, -18% 100%, -36% 100%);
  text-shadow: 0 0 7px rgba(255, 221, 128, 0.42);
  will-change: clip-path, opacity;
  animation: service-text-glint 6s linear infinite;
}

.ops-2026 .service-wordmark strong[data-shimmer-text]::after {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 0 6px rgba(198, 234, 255, 0.38);
  animation-delay: 80ms;
}

.ops-2026 .auth-copy > h1[data-shimmer-text],
.ops-2026 .service-brand-content > h1[data-shimmer-text] {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.ops-2026 .auth-copy > h1[data-shimmer-text]::after,
.ops-2026 .service-brand-content > h1[data-shimmer-text]::after {
  color: #fff9dc;
  -webkit-text-fill-color: #fff9dc;
  text-shadow: 0 0 9px rgba(255, 200, 92, 0.52);
  animation-delay: 160ms;
}

@keyframes service-text-glint {
  0% {
    opacity: 0;
    clip-path: polygon(-28% 0, -10% 0, -18% 100%, -36% 100%);
  }
  8% {
    opacity: 0.86;
  }
  92% {
    opacity: 0.86;
    clip-path: polygon(110% 0, 128% 0, 120% 100%, 102% 100%);
  }
  100% {
    opacity: 0;
    clip-path: polygon(110% 0, 128% 0, 120% 100%, 102% 100%);
  }
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  .ops-2026 [data-shimmer-text]::after {
    animation: none;
    display: none;
  }
}

/* Command Center 2026: operational layout and one-hand mobile mode. */
.ops-2026 .dispatcher-panel {
  overflow: visible;
}

.ops-2026 .dispatcher-panel > .panel-heading {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.ops-2026 .dispatcher-panel > .panel-heading h2 {
  font-size: clamp(1.12rem, 1.55vw, 1.48rem);
}

.ops-2026 .board-heading h3 {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #eef8ff;
}

.ops-2026 .board-heading h3::before {
  content: "";
  width: 5px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffad45, #ff7100);
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.32);
}

.ops-2026 .board-panel,
.ops-2026 .dispatch-form > .board-heading,
.ops-2026 .dispatch-form > label,
.ops-2026 .dispatch-form > .submit-row,
.ops-2026 #selectedDriverCard,
.ops-2026 #selectedDriverLocation,
.ops-2026 #dispatcherMapCard,
.ops-2026 #dispatcherChatCard {
  border-color: rgba(105, 205, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 29, 44, 0.95), rgba(6, 20, 32, 0.94)),
    linear-gradient(135deg, rgba(92, 199, 255, 0.055), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 6, 12, 0.22);
}

.ops-2026 .driver-card {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  border-color: rgba(100, 198, 245, 0.1);
  background:
    linear-gradient(145deg, rgba(14, 39, 58, 0.96), rgba(7, 23, 36, 0.96)),
    radial-gradient(circle at 100% 0, rgba(83, 195, 248, 0.11), transparent 38%);
}

.ops-2026 .driver-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 16px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--state-color, #55c8ff);
  opacity: 0.8;
  box-shadow: 0 0 16px color-mix(in srgb, var(--state-color, #55c8ff) 46%, transparent);
}

.ops-2026 .driver-card.selected {
  transform: translateY(-2px);
  border-color: rgba(255, 151, 49, 0.62);
  background:
    linear-gradient(145deg, rgba(46, 31, 20, 0.98), rgba(15, 24, 31, 0.97)),
    radial-gradient(circle at 100% 0, rgba(255, 127, 20, 0.2), transparent 44%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 180, 96, 0.08),
    0 22px 50px rgba(0, 7, 14, 0.42),
    0 0 34px rgba(255, 122, 0, 0.09);
}

.ops-2026 .driver-card.selected::after {
  width: 5px;
  background: #ff8a1f;
  opacity: 1;
}

.ops-2026 .driver-meta {
  padding-top: 8px;
  border-top: 1px solid rgba(101, 196, 240, 0.08);
  color: #86a7ba;
  font-size: 0.72rem;
  line-height: 1.45;
}

.ops-2026 .selected-driver.command-focus,
.ops-2026 .mission-card.active {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 137, 28, 0.26);
}

.ops-2026 .selected-driver.command-focus::before,
.ops-2026 .mission-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff7300, #ffbd5c 58%, transparent);
  box-shadow: 0 0 22px rgba(255, 124, 11, 0.28);
}

.ops-2026 .chat-card {
  min-height: 0;
}

.ops-2026 .chat-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(88, 195, 243, 0.4) transparent;
}

.ops-2026 .dispatch-form > label input {
  min-height: 52px;
  border-radius: 16px;
  font-size: 1rem;
}

.ops-2026 #dispatchButton,
.ops-2026 #dispatcherChatSendButton {
  min-height: 50px;
  border-radius: 17px;
}

@media (min-width: 1181px) {
  .ops-2026 .dispatcher-grid {
    display: grid;
    grid-template-columns:
      minmax(260px, 0.7fr)
      minmax(420px, 1.2fr)
      minmax(350px, 0.92fr);
    grid-template-rows: auto auto auto auto auto;
    gap: 14px;
    align-items: start;
  }

  .ops-2026 .board-panel {
    grid-column: 1;
    grid-row: 1 / span 5;
    align-content: start;
    min-width: 0;
    max-height: min(78vh, 920px);
    padding: 14px;
    overflow: hidden;
  }

  .ops-2026 .board-panel .driver-board {
    max-height: calc(min(78vh, 920px) - 58px);
    padding: 2px 6px 8px 2px;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .ops-2026 .dispatch-form {
    display: contents;
  }

  .ops-2026 .dispatch-form > .board-heading {
    grid-column: 2;
    grid-row: 1;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(105, 205, 255, 0.12);
    border-radius: 21px;
  }

  .ops-2026 #selectedDriverCard {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .ops-2026 #dispatcherChatCard {
    grid-column: 2;
    grid-row: 3;
    margin: 0;
  }

  .ops-2026 .dispatch-form > label:nth-of-type(1) {
    grid-column: 2;
    grid-row: 4;
    margin: 0;
    padding: 13px 15px;
  }

  .ops-2026 .dispatch-form > .submit-row {
    grid-column: 2;
    grid-row: 5;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .ops-2026 .dispatch-form > .submit-row #dispatchButton {
    width: 100%;
  }

  .ops-2026 #selectedDriverLocation {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    min-height: 0;
    padding: 14px;
  }

  .ops-2026 #selectedDriverLocation .location-map-frame {
    height: 164px;
  }

  .ops-2026 #dispatcherMapCard {
    grid-column: 3;
    grid-row: 2 / span 4;
    margin: 0;
    min-height: 0;
    padding: 14px;
  }

  .ops-2026 #dispatcherMapCard .dispatcher-map-canvas {
    height: clamp(370px, 47vh, 560px);
  }

  .ops-2026 #dispatcherChatCard .chat-messages {
    max-height: 260px;
  }
}

.ops-2026 .status-button.confirmed {
  border-color: rgba(116, 242, 181, 0.72);
  background:
    linear-gradient(180deg, rgba(54, 201, 148, 0.96), rgba(17, 126, 100, 0.96)),
    linear-gradient(135deg, rgba(224, 255, 243, 0.34), transparent 44%);
  color: #f2fff9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(138, 255, 207, 0.16),
    0 18px 44px rgba(36, 199, 142, 0.3);
  animation: status-confirmation-pulse 620ms ease-out both;
}

.ops-2026 .status-button.confirmed::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m9 18-6-6 2.5-2.5L9 13l9.5-9.5L21 6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m9 18-6-6 2.5-2.5L9 13l9.5-9.5L21 6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ops-2026 .status-button.confirmed::after {
  display: none;
}

@keyframes status-confirmation-pulse {
  0% {
    transform: scale(0.975);
    filter: brightness(1.45);
  }
  55% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-2026 .status-button.confirmed {
    animation: none;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .ops-2026 .dispatcher-grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.28fr);
    gap: 14px;
  }

  .ops-2026 .board-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .ops-2026 .dispatch-form {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .ops-2026 .dispatcher-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .ops-2026 .dispatcher-panel > .panel-heading {
    margin-bottom: 10px;
    padding: 4px 2px 10px;
  }

  .ops-2026 .dispatcher-panel > .panel-heading h2 {
    font-size: 1.08rem;
  }

  .ops-2026 .dispatcher-grid,
  .ops-2026 .dispatch-form {
    gap: 10px;
  }

  .ops-2026 .board-panel {
    padding: 12px;
    border-radius: 21px;
  }

  .ops-2026 .board-panel .driver-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(262px, 86vw);
    grid-template-columns: none;
    gap: 10px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
  }

  .ops-2026 .driver-card {
    min-height: 118px;
    padding: 14px;
    scroll-snap-align: start;
  }

  .ops-2026 .dispatch-form {
    padding: 11px;
    border-radius: 22px;
  }

  .ops-2026 .dispatch-form > .board-heading {
    padding-bottom: 8px;
  }

  .ops-2026 #selectedDriverCard,
  .ops-2026 #selectedDriverLocation,
  .ops-2026 #dispatcherMapCard,
  .ops-2026 #dispatcherChatCard {
    padding: 14px;
    border-radius: 20px;
  }

  .ops-2026 .focus-grid,
  .ops-2026 .mission-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-2026 .focus-grid span,
  .ops-2026 .mission-data-grid span {
    padding: 9px;
    border-radius: 13px;
  }

  .ops-2026 .mission-address,
  .ops-2026 .focus-address {
    font-size: clamp(1.22rem, 6.2vw, 1.7rem);
    line-height: 1.08;
  }

  .ops-2026 #dispatcherChatCard .chat-messages,
  .ops-2026 #driverChatCard .chat-messages {
    max-height: 42vh;
  }

  .ops-2026 .quick-grid {
    gap: 8px;
  }

  .ops-2026 .status-button {
    min-height: 78px;
    border-radius: 23px;
    font-size: 0.91rem;
  }

  .ops-2026 .status-button.status-button-wide {
    min-height: 84px;
  }

  .ops-2026 .driver-panel {
    padding: 12px;
  }

  .ops-2026 .driver-panel > .panel-heading {
    padding: 3px 2px 9px;
  }
}

.ops-2026 .command-progress {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(89, 193, 241, 0.1);
  border-radius: 18px;
  background: rgba(3, 15, 25, 0.48);
  scroll-snap-type: x proximity;
}

.ops-2026 .command-progress span {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 28px minmax(50px, 1fr);
  flex: 1 0 96px;
  min-width: 96px;
  min-height: 42px;
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #7897aa;
  scroll-snap-align: center;
}

.ops-2026 .command-progress span::before {
  content: attr(data-step);
  position: relative;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(115, 190, 227, 0.2);
  border-radius: 50%;
  background: #0b2639;
  color: #7ea4ba;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 800;
}

.ops-2026 .command-progress span > i {
  position: absolute;
  top: 50%;
  right: -9px;
  left: 27px;
  z-index: -1;
  display: block;
  height: 2px;
  background: rgba(90, 176, 218, 0.14);
  transform: translateY(-50%);
}

.ops-2026 .command-progress span:last-child > i {
  display: none;
}

.ops-2026 .command-progress span > b {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: inherit;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.ops-2026 .command-progress span.done {
  border-color: transparent;
  background: transparent;
  color: #9ce9c4;
  box-shadow: none;
}

.ops-2026 .command-progress span.done::before {
  content: "✓";
  border-color: rgba(104, 227, 168, 0.34);
  background: linear-gradient(145deg, #1f8b65, #176249);
  color: #effff8;
  box-shadow: 0 0 0 4px rgba(80, 215, 151, 0.08);
}

.ops-2026 .command-progress span.done > i {
  background: linear-gradient(90deg, rgba(87, 220, 157, 0.68), rgba(87, 220, 157, 0.18));
}

.ops-2026 .command-progress span.active {
  border-color: rgba(255, 154, 52, 0.36);
  background: linear-gradient(180deg, rgba(255, 133, 23, 0.23), rgba(255, 112, 0, 0.09));
  color: #fff5e9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(255, 112, 0, 0.14);
}

.ops-2026 .command-progress span.active::before {
  border-color: rgba(255, 212, 164, 0.6);
  background: linear-gradient(145deg, #ffac48, #f36a00);
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(255, 127, 16, 0.12),
    0 0 22px rgba(255, 127, 16, 0.32);
}

.ops-2026 .command-progress span.active > i {
  background: linear-gradient(90deg, rgba(255, 136, 32, 0.45), rgba(87, 184, 230, 0.14));
}

.ops-2026 .ops-map-marker {
  position: relative;
  overflow: visible;
}

.ops-2026 .ops-map-marker .map-marker-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: block;
  width: max-content;
  max-width: 150px;
  height: auto;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 177, 91, 0.38);
  border-radius: 9px;
  background: rgba(5, 20, 31, 0.92);
  color: #fff5e9;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 6, 12, 0.38);
  transform: translateX(-50%);
}

.ops-2026 .dispatch-response-zone {
  stroke-dasharray: 7 8;
  animation: response-zone-flow 5s linear infinite;
}

.ops-2026 .dispatch-station-marker {
  filter: drop-shadow(0 0 7px rgba(255, 126, 14, 0.68));
}

.dispatch-map-tooltip {
  border: 1px solid rgba(255, 163, 68, 0.32);
  border-radius: 10px;
  background: rgba(5, 21, 33, 0.94);
  color: #eff9ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 6, 12, 0.34);
}

.dispatch-map-tooltip::before {
  border-top-color: rgba(5, 21, 33, 0.94);
}

@keyframes response-zone-flow {
  to {
    stroke-dashoffset: -60;
  }
}

@media (max-width: 760px) {
  .ops-2026 .command-progress {
    margin-right: -3px;
    margin-left: -3px;
    padding: 7px;
  }

  .ops-2026 .command-progress span {
    flex-basis: 92px;
    min-width: 92px;
  }
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  .ops-2026 .dispatch-response-zone {
    animation: none;
  }
}

/* Dispatcher desktop: use the former empty heading row for the chat. */
@media (min-width: 1181px) {
  .ops-2026 .dispatch-form > .board-heading {
    display: none;
  }

  .ops-2026 #dispatcherChatCard {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto auto minmax(170px, 1fr) auto;
    align-self: stretch;
    min-height: 330px;
  }

  .ops-2026 #dispatcherChatCard .chat-messages {
    height: 100%;
    min-height: 170px;
    max-height: none;
  }

  .ops-2026 #selectedDriverCard {
    grid-column: 2;
    grid-row: 2;
  }

  .ops-2026 .dispatch-form > label:nth-of-type(1) {
    grid-column: 2;
    grid-row: 3;
  }

  .ops-2026 .dispatch-form > .submit-row {
    grid-column: 2;
    grid-row: 4;
  }

  .ops-2026 .board-panel {
    grid-row: 1 / span 4;
  }

  .ops-2026 #dispatcherMapCard {
    grid-column: 3;
    grid-row: 2 / span 3;
  }
}

/* Visual suite 2026: dark maps, compact command header and stronger operational hierarchy. */
.ops-2026 .dispatcher-map-canvas,
.ops-2026 .manual-location-map,
.ops-2026 .location-map-frame {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(31, 94, 126, 0.18), transparent 54%),
    #06131e;
  box-shadow:
    inset 0 0 0 1px rgba(103, 207, 255, 0.08),
    0 16px 38px rgba(0, 7, 14, 0.28);
}

.ops-2026 .dispatcher-map-canvas .leaflet-tile-pane,
.ops-2026 .manual-location-map .leaflet-tile-pane {
  filter: invert(0.91) hue-rotate(174deg) brightness(0.76) contrast(1.12) saturate(0.82);
}

.ops-2026 #dispatcherMapCard.map-expanded {
  z-index: 950;
  isolation: isolate;
  opacity: 1;
  background-color: #06131e;
  background-image: radial-gradient(circle at 86% 8%, rgba(41, 131, 173, 0.12), transparent 34%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ops-2026 #dispatcherMapCard.map-expanded .dispatcher-map-canvas {
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: none;
}

.ops-2026 .dispatcher-map-card.map-expanded .dispatcher-map-canvas,
.ops-2026 .dispatcher-map-card.map-expanded .leaflet-container {
  opacity: 1;
  background: #0a2030;
}

.ops-2026 .location-map-frame {
  filter: brightness(0.54) saturate(0.58) contrast(1.24);
}

.ops-2026 .leaflet-control-zoom a,
.ops-2026 .leaflet-control-attribution {
  border-color: rgba(106, 202, 247, 0.12);
  background: rgba(5, 19, 30, 0.9);
  color: #cceeff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ops-2026 .leaflet-control-attribution a {
  color: #72cff8;
}

.ops-2026 .board-panel,
.ops-2026 .dispatch-form,
.ops-2026 .selected-driver,
.ops-2026 .mission-card,
.ops-2026 .location-card,
.ops-2026 .chat-card,
.ops-2026 .recent-card {
  border-color: rgba(100, 204, 252, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 1px 0 0 rgba(90, 194, 240, 0.035),
    0 20px 48px rgba(0, 7, 14, 0.25),
    0 0 34px rgba(56, 171, 224, 0.025);
}

.ops-2026 .selected-driver.command-focus,
.ops-2026 .mission-card.active {
  isolation: isolate;
  border-color: rgba(255, 145, 40, 0.14);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 137, 31, 0.18), transparent 42%),
    radial-gradient(circle at 0 100%, rgba(65, 187, 240, 0.08), transparent 48%),
    linear-gradient(155deg, rgba(25, 45, 59, 0.98), rgba(7, 20, 31, 0.97) 66%);
  box-shadow:
    inset 0 1px 0 rgba(255, 233, 206, 0.08),
    inset 4px 0 0 rgba(255, 133, 24, 0.88),
    0 28px 64px rgba(0, 7, 14, 0.38),
    0 0 46px rgba(255, 122, 0, 0.08);
}

.ops-2026 .selected-driver.command-focus::before,
.ops-2026 .mission-card.active::before {
  right: 16px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a00, rgba(255, 190, 105, 0.9) 56%, transparent);
}

.ops-2026 .mission-address,
.ops-2026 .focus-address {
  max-width: 25ch;
  color: #fff;
  font-size: clamp(1.52rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 5, 10, 0.48);
}

.ops-2026 .mission-meta,
.ops-2026 .focus-meta,
.ops-2026 .location-meta,
.ops-2026 .driver-meta,
.ops-2026 .chat-meta {
  color: #89a5b8;
  line-height: 1.48;
}

.ops-2026 .panel-kicker,
.ops-2026 .mission-data-grid small,
.ops-2026 .focus-grid small,
.ops-2026 .location-card-header .panel-kicker {
  color: #ff951f;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.ops-2026 .chat-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(65, 187, 240, 0.075), transparent 38%),
    linear-gradient(160deg, rgba(12, 31, 46, 0.98), rgba(6, 19, 30, 0.96));
}

.ops-2026 .chat-messages {
  gap: 3px;
  padding: 12px 6px 12px 2px;
  scroll-padding-block: 42px 12px;
}

.ops-2026 .chat-row {
  gap: 10px;
}

.ops-2026 .chat-row:not(.grouped) {
  margin-top: 8px;
}

.ops-2026 .chat-row.grouped {
  margin-top: 2px;
}

.ops-2026 .chat-avatar {
  width: 40px;
  height: 40px;
  border-width: 1px;
  box-shadow:
    0 0 0 4px rgba(79, 190, 239, 0.055),
    0 10px 24px rgba(0, 7, 14, 0.34);
}

.ops-2026 .chat-row[data-role="dispatcher"] .chat-avatar {
  box-shadow:
    0 0 0 4px rgba(255, 138, 31, 0.065),
    0 10px 24px rgba(0, 7, 14, 0.34);
}

.ops-2026 .chat-bubble {
  max-width: min(84%, 620px);
  padding: 12px 14px 9px;
  border: 0;
  border-radius: 22px 22px 22px 8px;
  background:
    linear-gradient(145deg, rgba(18, 49, 69, 0.98), rgba(8, 27, 41, 0.98)),
    rgba(9, 28, 42, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(188, 232, 255, 0.065),
    inset 3px 0 0 rgba(80, 196, 245, 0.34),
    0 12px 28px rgba(0, 7, 14, 0.24);
}

.ops-2026 .chat-row.self .chat-bubble {
  border-radius: 22px 22px 8px 22px;
  background:
    linear-gradient(145deg, rgba(116, 60, 17, 0.98), rgba(43, 29, 21, 0.98)),
    rgba(48, 31, 20, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 192, 0.08),
    inset -3px 0 0 rgba(255, 143, 35, 0.5),
    0 12px 28px rgba(0, 7, 14, 0.24);
}

.ops-2026 .chat-row.grouped .chat-bubble {
  padding-top: 9px;
  border-top-left-radius: 10px;
}

.ops-2026 .chat-row.self.grouped .chat-bubble {
  border-top-right-radius: 10px;
  border-top-left-radius: 22px;
}

.ops-2026 .chat-body {
  font-size: 0.95rem;
  line-height: 1.48;
}

.ops-2026 .chat-time {
  margin-top: 4px;
  font-size: 0.6rem;
}

.ops-2026 .chat-receipt {
  margin-top: 4px;
  color: #7b95a8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.ops-2026 .chat-receipt.read {
  color: #55d7ff;
  text-shadow: 0 0 10px rgba(52, 198, 255, 0.26);
}

.ops-2026 .chat-form {
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(94, 198, 245, 0.075);
}

.ops-2026 .chat-form input {
  min-height: 52px;
  border-color: rgba(95, 200, 248, 0.11);
  border-radius: 18px;
  background: rgba(3, 15, 24, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ops-2026 .chat-form input:focus {
  border-color: rgba(89, 202, 251, 0.42);
  box-shadow:
    0 0 0 4px rgba(75, 187, 237, 0.07),
    0 12px 30px rgba(0, 7, 14, 0.22);
}

.ops-2026 button[data-icon]::before,
.ops-2026 .status-button::before {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.ops-2026 .chat-title-row h3,
.ops-2026 .location-card .location-card-header h3 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ops-2026 .chat-title-row h3::before,
.ops-2026 .location-card .location-card-header h3::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  opacity: 0.82;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4Zm3 4v2h10V8H7Zm0 4v2h7v-2H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4Zm3 4v2h10V8H7Zm0 4v2h7v-2H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ops-2026 .location-card .location-card-header h3::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 761px) {
  .ops-2026 #appShell > .hero {
    position: sticky;
    top: 8px;
    z-index: 720;
    transform-origin: top center;
    transition:
      padding 260ms ease,
      border-radius 260ms ease,
      box-shadow 260ms ease,
      background-color 260ms ease;
  }

  .ops-2026.header-condensed #appShell > .hero {
    grid-template-columns: minmax(440px, 1fr) minmax(390px, auto);
    min-height: 0;
    padding: 8px 12px;
    border-radius: 20px;
    background:
      linear-gradient(120deg, rgba(5, 22, 35, 0.97), rgba(7, 28, 43, 0.95)),
      rgba(5, 20, 32, 0.96);
    box-shadow:
      0 18px 52px rgba(0, 6, 12, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(24px) saturate(1.12);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
  }

  .ops-2026.header-condensed .service-brand {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
  }

  .ops-2026.header-condensed .service-emblem-shell {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .ops-2026.header-condensed .service-wordmark {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .ops-2026.header-condensed .service-wordmark .brand-title-compact {
    font-size: 1.12rem;
  }

  .ops-2026.header-condensed .service-wordmark .brand-subtitle-compact {
    margin: 0;
  }

  .ops-2026.header-condensed .service-wordmark .brand-subtitle-compact small,
  .ops-2026.header-condensed .service-brand-content > h1,
  .ops-2026.header-condensed .hero-copy,
  .ops-2026.header-condensed .hero-driver-metrics {
    display: none;
  }

  .ops-2026.header-condensed .hero-side {
    grid-template-columns: minmax(220px, 1fr) 155px;
    gap: 8px;
    min-width: 0;
  }

  .ops-2026.header-condensed .user-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 9px;
    align-items: center;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 17px;
  }

  .ops-2026.header-condensed .user-card .user-login,
  .ops-2026.header-condensed .user-card .device-status {
    display: none;
  }

  .ops-2026.header-condensed .user-card-actions {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
  }

  .ops-2026.header-condensed .user-card-actions button {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 13px;
    font-size: 0.76rem;
  }

  .ops-2026.header-condensed .hero-status {
    display: block;
  }

  .ops-2026.header-condensed .hero-status .status-chip {
    min-height: 56px;
    padding: 8px 11px;
    border-radius: 17px;
  }

  .ops-2026.header-condensed .hero-status .status-chip:last-child {
    display: none;
  }
}

@media (max-width: 760px) {
  .ops-2026 .mission-address,
  .ops-2026 .focus-address {
    max-width: none;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .ops-2026 .chat-avatar {
    width: 36px;
    height: 36px;
  }

  .ops-2026 .chat-bubble {
    max-width: 87%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-2026 #appShell > .hero {
    transition: none;
  }
}

@keyframes service-emblem-gold-flow {
  from {
    background-position: 0 0, 0 0, 0% 50%;
  }

  to {
    background-position: 0 0, 0 0, 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops-2026 .service-emblem-shell {
    animation: none;
    will-change: auto;
  }
}

/* Keep the dispatcher identity prominent while the clocks use a narrow column. */
.ops-2026 .hero-side {
  grid-template-columns: minmax(300px, 1fr) minmax(180px, 195px);
  min-width: min(100%, 510px);
}

.ops-2026 .hero-status {
  grid-template-columns: 1fr;
  gap: 7px;
}

.ops-2026 .hero-status .status-chip {
  min-height: 0;
  padding: 8px 10px;
}

.ops-2026 .hero-status .status-chip strong {
  font-size: 0.74rem;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .ops-2026 .hero-side {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .ops-2026 .hero-status {
    grid-template-columns: 1fr;
  }
}

/* One driver card is enough: remove the duplicated selection summary. */
.ops-2026 #selectedDriverCard {
  display: none !important;
}

.ops-2026 .dispatcher-panel {
  padding-top: 18px;
}

.ops-2026 .dispatcher-panel::before {
  right: 22px;
  left: 22px;
  width: auto;
  border-radius: 999px;
}

@media (min-width: 1181px) {
  .ops-2026 #dispatcherChatCard {
    grid-row: 1;
  }

  .ops-2026 .dispatch-address-group {
    grid-column: 2;
    grid-row: 2;
  }

  .ops-2026 .board-panel {
    grid-row: 1 / span 3;
  }

  .ops-2026 #selectedDriverLocation {
    grid-column: 2;
    grid-row: 3;
  }

  .ops-2026 #dispatcherMapCard {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
}

.ops-2026 .dispatch-address-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-self: start;
}

.ops-2026 .dispatch-address-group > label {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(105, 205, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(10, 29, 44, 0.95), rgba(6, 20, 32, 0.94)),
    linear-gradient(135deg, rgba(92, 199, 255, 0.055), transparent 44%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 6, 12, 0.22);
}

.ops-2026 .dispatch-address-group > label input {
  min-height: 52px;
  border-radius: 16px;
  font-size: 1rem;
}

.ops-2026 .dispatch-address-group > .submit-row {
  margin: 0;
  padding: 0;
  align-items: center;
}

.ops-2026 .dispatch-address-group #dispatchButton {
  width: 100%;
}

.ops-2026 .mission-details {
  border: 1px solid rgba(98, 201, 255, 0.1);
  border-radius: 18px;
  background: rgba(3, 15, 25, 0.38);
}

.ops-2026 .mission-details > summary {
  padding: 12px 14px;
  color: #9fc2d7;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.ops-2026 .mission-details[open] > summary {
  border-bottom: 1px solid rgba(98, 201, 255, 0.08);
}

.ops-2026 .mission-details > .mission-data-grid,
.ops-2026 .mission-details > .command-progress {
  margin-right: 12px;
  margin-left: 12px;
}

.ops-2026 .mission-details > .command-progress {
  margin-bottom: 12px;
}

.driver-recent-toggle {
  display: none;
}

.user-unit {
  display: none;
}

@media (max-width: 760px) {
  .ops-2026.driver-mode .page-shell {
    width: min(100%, calc(100% - 12px));
    padding-top: calc(7px + env(safe-area-inset-top));
  }

  .ops-2026.driver-mode #appShell > .hero {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .ops-2026.driver-mode #appShell > .hero .service-brand {
    display: block;
  }

  .ops-2026.driver-mode #appShell > .hero .service-emblem-shell {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .ops-2026.driver-mode #appShell > .hero .service-brand-content,
  .ops-2026.driver-mode #appShell > .hero .hero-status,
  .ops-2026.driver-mode #appShell > .hero .role-pill,
  .ops-2026.driver-mode #appShell > .hero .user-login,
  .ops-2026.driver-mode #appShell > .hero .device-status,
  .ops-2026.driver-mode #appShell > .hero .document-toggle {
    display: none !important;
  }

  .ops-2026.driver-mode #appShell > .hero .hero-side {
    display: block;
    min-width: 0;
  }

  .ops-2026.driver-mode #appShell > .hero .user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
    min-height: 52px;
    padding: 0 0 0 3px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .ops-2026.driver-mode #appShell > .hero #userName {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.94rem;
    line-height: 1.15;
  }

  .ops-2026.driver-mode #appShell > .hero .user-unit:not(.hidden) {
    display: block;
    grid-column: 1;
    grid-row: 1;
    color: #ffad55;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .ops-2026.driver-mode #appShell > .hero .user-card-actions {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .ops-2026.driver-mode #appShell > .hero .settings-toggle {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    font-size: 0;
  }

  .ops-2026.driver-mode #appShell > .hero .settings-toggle::before {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  .ops-2026.driver-mode .driver-panel {
    padding: 10px;
    border-radius: 22px;
  }

  .ops-2026.driver-mode .driver-panel > .panel-heading {
    display: none;
  }

  .ops-2026.driver-mode #driverCommandCard {
    gap: 9px;
    padding: 13px;
    border-radius: 20px;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-header {
    align-items: center;
    flex-direction: row;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-header > div:first-child .mission-meta,
  .ops-2026.driver-mode #driverCommandCard .mission-clock-stack .mission-meta {
    display: none;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-clock-stack {
    width: auto;
    align-items: flex-end;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-address {
    margin: 2px 0;
    font-size: clamp(1.4rem, 7.2vw, 1.82rem);
    line-height: 1.04;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-actions .ghost-link {
    display: none;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-nav-button {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-details > summary {
    padding: 11px 12px;
  }

  .ops-2026.driver-mode #driverCommandCard .mission-details .mission-data-grid {
    grid-template-columns: 1fr;
  }

  .ops-2026.driver-mode .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .ops-2026.driver-mode .status-button {
    min-height: 68px;
    padding: 11px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
  }

  .ops-2026.driver-mode .status-button.status-button-wide {
    min-height: 72px;
  }

  .ops-2026.driver-mode .recent-panel {
    padding: 12px;
  }

  .ops-2026.driver-mode .recent-panel > .panel-heading {
    margin-bottom: 10px;
    padding-bottom: 8px;
    flex-direction: row;
    align-items: center;
  }

  .ops-2026.driver-mode .recent-panel > .panel-heading h2 {
    font-size: 1rem;
  }

  .ops-2026.driver-mode .driver-recent-toggle:not(.hidden) {
    display: inline-flex;
    width: auto;
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.7rem;
  }

  .ops-2026.driver-mode .recent-events.driver-recent-collapsed .recent-card:nth-child(n + 4) {
    display: none;
  }

  .ops-2026.driver-mode .mobile-dock:not(.hidden) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ops-2026.driver-mode #settingsPanel #documentExchange {
    width: 100%;
    margin-top: 4px;
  }
}

/* Settings drawer containment: administration must never widen the page. */
.ops-2026 #settingsPanel.security-panel {
  width: min(960px, calc(100vw - 40px));
  max-width: none;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.ops-2026 #settingsPanel.security-panel,
.ops-2026 #settingsPanel.security-panel * {
  min-width: 0;
}

.ops-2026 #settingsPanel > .panel-heading {
  position: sticky;
  top: -24px;
  z-index: 8;
  margin: -24px -24px 20px;
  padding: 24px;
  border-bottom: 1px solid rgba(98, 201, 255, 0.12);
  background: rgba(5, 18, 29, 0.97);
  backdrop-filter: blur(18px);
}

.ops-2026 #settingsPanel .settings-close-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
}

.ops-2026 #settingsPanel .settings-admin-panel,
.ops-2026 #settingsPanel .admin-grid,
.ops-2026 #settingsPanel .log-table-wrap {
  width: 100%;
  max-width: 100%;
}

.ops-2026 #settingsPanel .admin-grid {
  grid-template-columns: minmax(0, 1fr);
}

.ops-2026 #settingsPanel .log-table-wrap {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.ops-2026 #settingsPanel .user-table {
  min-width: 760px;
}

@media (max-width: 760px) {
  .ops-2026 #settingsPanel.security-panel {
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
  }

  .ops-2026 #settingsPanel > .panel-heading {
    top: -18px;
    margin: -18px -18px 16px;
    padding: 18px;
  }

  .ops-2026 #settingsPanel > .panel-heading h2 {
    font-size: 1.2rem;
  }

  .ops-2026 #settingsPanel .settings-close-button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .ops-2026 #settingsPanel .field-grid,
  .ops-2026 #settingsPanel .compact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Saved login profiles */
.ops-2026 .login-profiles-panel {
  display: grid;
  gap: 11px;
}

.ops-2026 .login-profiles-panel.hidden {
  display: none;
}

.ops-2026 .login-profiles-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ops-2026 .login-profiles-heading > span {
  color: #f6fbff;
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.ops-2026 .login-profiles-heading small {
  color: #7694a8;
  font-size: 0.68rem;
  text-align: right;
}

.ops-2026 .login-profiles-list {
  display: grid;
  gap: 8px;
  max-height: 248px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
  scrollbar-color: rgba(98, 201, 255, 0.38) transparent;
}

.ops-2026 .login-profile-card {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(98, 201, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(255, 122, 0, 0.1), transparent 42%),
    rgba(6, 22, 34, 0.82);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ops-2026 .login-profile-card:hover,
.ops-2026 .login-profile-card:focus-within {
  border-color: rgba(255, 145, 34, 0.52);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 8, 15, 0.3), inset 3px 0 #ff7a00;
}

.ops-2026 .login-profile-select,
.ops-2026 .login-profile-remove {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.ops-2026 .login-profile-select {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 10px 8px 10px 10px;
  background: transparent;
  text-align: left;
}

.ops-2026 .login-profile-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 158, 55, 0.42);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 135, 18, 0.3), rgba(5, 47, 76, 0.84));
  color: #fff4e6;
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.ops-2026 .login-profile-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ops-2026 .login-profile-copy strong,
.ops-2026 .login-profile-copy small,
.ops-2026 .login-profile-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-2026 .login-profile-copy strong {
  color: #f7fbff;
  font-family: "Exo 2", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.ops-2026 .login-profile-copy small {
  color: #8ca8ba;
  font-size: 0.7rem;
}

.ops-2026 .login-profile-copy em {
  color: #ffad58;
  font-size: 0.64rem;
  font-style: normal;
}

.ops-2026 .login-profile-remove {
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border-radius: 12px;
  background: rgba(98, 201, 255, 0.06);
  color: #7895a8;
  font-size: 1.2rem;
  line-height: 1;
}

.ops-2026 .login-profile-remove:hover,
.ops-2026 .login-profile-remove:focus-visible {
  background: rgba(255, 101, 70, 0.16);
  color: #ff9d88;
}

.ops-2026 .auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #68859a;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ops-2026 .auth-divider::before,
.ops-2026 .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(98, 201, 255, 0.18));
}

.ops-2026 .auth-divider::after {
  transform: scaleX(-1);
}

.ops-2026 .remember-profile-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(98, 201, 255, 0.11);
  border-radius: 16px;
  background: rgba(4, 17, 27, 0.48);
  cursor: pointer;
}

.ops-2026 .remember-profile-option input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #ff7a00;
}

.ops-2026 .remember-profile-option > span {
  display: grid;
  gap: 2px;
}

.ops-2026 .remember-profile-option strong {
  color: #dcebf4;
  font-size: 0.78rem;
}

.ops-2026 .remember-profile-option small {
  color: #728fa3;
  font-size: 0.65rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .ops-2026 .login-profiles-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .ops-2026 .login-profiles-heading small {
    text-align: left;
  }
}

/* Performance pass: keep live updates from repainting off-screen operational history. */
.ops-2026 .recent-panel,
.ops-2026 .log-panel {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.ops-2026.page-hidden *,
.ops-2026.page-hidden *::before,
.ops-2026.page-hidden *::after {
  animation-play-state: paused !important;
}

@media (max-width: 760px), (update: slow) {
  .ops-2026 .driver-card,
  .ops-2026 .selected-driver,
  .ops-2026 .mission-card,
  .ops-2026 .chat-card,
  .ops-2026 .location-card,
  .ops-2026 .recent-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ops-2026 .service-emblem-shell,
  .ops-2026 [data-shimmer-text]::after,
  .ops-2026 .dispatch-route-line {
    will-change: auto;
  }
}

/* Mobile Safari: isolate horizontal carousels and reduce first-paint cost. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .ops-2026 #appShell,
  .ops-2026 .dashboard,
  .ops-2026 .dashboard > *,
  .ops-2026 #dispatcherWorkflow,
  .ops-2026 .dispatcher-grid,
  .ops-2026 .board-panel,
  .ops-2026 .dispatch-form,
  .ops-2026 .dispatch-form > *,
  .ops-2026 #dispatcherChatCard,
  .ops-2026 #selectedDriverLocation,
  .ops-2026 #dispatcherMapCard {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .ops-2026 .dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .ops-2026 .board-panel .driver-board {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-auto-columns: min(262px, calc(100vw - 72px));
    contain: inline-size;
  }

  .ops-2026 .location-card-header,
  .ops-2026 .driver-card-header,
  .ops-2026 .driver-topline {
    min-width: 0;
    flex-wrap: wrap;
  }

  .ops-2026 .map-expand-button {
    width: auto;
    max-width: 100%;
  }

  @supports (-webkit-touch-callout: none) {
    .ops-2026 .hero,
    .ops-2026 .panel,
    .ops-2026 .auth-card,
    .ops-2026 .auth-copy,
    .ops-2026 #settingsPanel > .panel-heading {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    .ops-2026 [data-shimmer-text]::after,
    .ops-2026 .dispatch-response-zone,
    .ops-2026 .dispatch-route-line {
      animation: none !important;
    }
  }
}
