@import url("data:text/css,");

:root {
  --ink: #17211e;
  --muted: #65716d;
  --paper: #f3f6f4;
  --card: #ffffff;
  --line: #dce4df;
  --forest: #173f35;
  --forest-2: #245c4d;
  --mint: #dff2e8;
  --mint-2: #b9decf;
  --amber: #f0bf4c;
  --amber-soft: #fff4d5;
  --red: #c44d42;
  --red-soft: #fbe8e5;
  --blue: #3178a5;
  --shadow: 0 16px 40px rgba(24, 56, 47, 0.08);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

body.driver-map-fullscreen-active {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 120, 165, 0.3);
  outline-offset: 2px;
}

.icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(500px, 1.1fr);
  background: #edf3ef;
}

.login-panel {
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--forest);
  background: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
}

.login-copy {
  margin: 74px 0 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.login-copy h1 {
  max-width: 480px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.login-copy p {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.65;
}

.landing-app-download {
  max-width: 470px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.landing-app-download .btn {
  min-height: 42px;
}

.landing-app-download small {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  background: var(--paper);
  border-radius: 13px;
}

.role-tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.role-tab.active {
  color: var(--forest);
  background: var(--card);
  box-shadow: 0 3px 12px rgba(24, 56, 47, 0.09);
}

.login-form {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.pin-entry {
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.45em;
}

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

.pin-key {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--forest);
  background: white;
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.08);
  font-size: 22px;
  font-weight: 900;
  touch-action: manipulation;
}

.pin-key:active {
  transform: translateY(1px);
}

.pin-key.muted {
  color: var(--muted);
  background: var(--paper);
  font-size: 13px;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  font-size: 12px;
  color: #44504c;
  font-weight: 750;
}

fieldset.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.field legend {
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--ink);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.btn {
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-busy,
.icon-button.is-busy,
.ptt.is-busy {
  opacity: 0.72;
  pointer-events: none;
  transform: translateY(1px);
}

.btn.is-busy::after {
  content: "";
  width: 0.65em;
  height: 0.65em;
  margin-left: 0.35em;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(190, 74, 74, 0.28);
  border-radius: 12px;
  color: #8c2f2f;
  background: #fff4f2;
  font-size: 12px;
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.2);
}

.btn-secondary {
  border-color: var(--line);
}

.btn-amber {
  background: var(--amber);
  color: #332b18;
}

.btn-danger {
  background: var(--red-soft);
  color: #9f3a32;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.client-link {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest-2);
  font-weight: 800;
}

.login-visual {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(140deg, rgba(23, 63, 53, 0.12), rgba(23, 63, 53, 0.86)),
    radial-gradient(circle at 25% 20%, #709889 0 3%, transparent 3.2%),
    linear-gradient(150deg, #b8d4c8 0 28%, #86ad9f 28% 30%, #dce8e1 30% 48%, #9ab7ab 48% 51%, #6f9487 51% 100%);
}

.login-visual::before,
.login-visual::after {
  content: "";
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.48);
  border-radius: 48%;
  transform: rotate(-18deg);
}

.login-visual::before {
  width: 80%;
  height: 34%;
  left: 6%;
  top: 15%;
}

.login-visual::after {
  width: 55%;
  height: 26%;
  right: -9%;
  top: 32%;
}

.visual-pin {
  position: absolute;
  top: 27%;
  left: 55%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
  color: var(--forest);
  background: var(--amber);
  box-shadow: 0 18px 40px rgba(18, 48, 40, 0.28);
}

.visual-pin .icon {
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
}

.visual-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(18, 50, 42, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(10, 33, 27, 0.25);
}

.visual-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.visual-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.visual-metric {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.visual-metric strong {
  display: block;
  font-size: 22px;
}

.visual-metric span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.sidebar {
  min-height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  color: white;
  background: var(--forest);
  transition: width 180ms ease, padding 180ms ease, transform 180ms ease;
}

.sidebar-scrim {
  display: none;
}

.sidebar .brand {
  padding: 0 8px;
  color: white;
}

.sidebar .brand-copy small {
  color: rgba(255, 255, 255, 0.52);
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 42px;
}

.side-link {
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  text-align: left;
}

.side-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.side-link .side-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 12px;
  color: #392f18;
  background: var(--amber);
  font-size: 11px;
}

.shift-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.shift-card small {
  color: rgba(255, 255, 255, 0.55);
}

.shift-card strong {
  display: block;
  margin: 5px 0 13px;
}

.shift-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
}

.shift-progress span {
  width: 57%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--amber);
}

.app-main {
  min-width: 0;
  background: var(--paper);
}

.topbar {
  min-height: 76px;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.sidebar-toggle {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}

.topbar-title {
  min-width: min(250px, 100%);
  margin-right: auto;
}

.topbar-title h1 {
  margin: 0 0 3px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.topbar-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-pill,
.tag {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  color: var(--forest-2);
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

button.status-pill {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43a977;
  box-shadow: 0 0 0 3px rgba(67, 169, 119, 0.14);
}

.status-pill.offline {
  color: #9a6e19;
  background: var(--amber-soft);
}

.status-pill.offline::before {
  background: var(--amber);
}

.topbar-select {
  min-height: 37px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 700;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: var(--mint-2);
  font-size: 12px;
  font-weight: 850;
}

.main-content {
  padding: 24px 28px 40px;
}

.section-heading {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.section-heading > div:first-child {
  min-width: min(280px, 100%);
  flex: 1 1 340px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

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

.section-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 5px 20px rgba(24, 56, 47, 0.035);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-2);
  background: var(--mint);
}

.metric-card strong {
  display: block;
  margin: 12px 0 5px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.metric-note {
  color: var(--muted);
  font-size: 11px;
}

.metric-note b {
  color: #31835c;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.live-ops-content {
  display: grid;
  grid-template-rows: auto auto minmax(520px, 1fr) auto;
  min-height: calc(100dvh - 72px);
}

.live-ops-grid {
  grid-template-columns: minmax(0, 1fr) minmax(min(320px, 100%), 390px);
  align-items: stretch;
}

.live-ops-map-card {
  min-height: min(68dvh, 760px);
}

.live-ops-map-card .route-map {
  min-height: min(62dvh, 690px);
}

.live-ops-alert-card {
  max-height: min(68dvh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.live-ops-alert-card .alerts-list {
  min-height: 0;
  overflow-y: auto;
}

.live-ops-routes-card {
  margin-top: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 28px rgba(24, 56, 47, 0.04);
}

.card-header {
  min-height: 65px;
  padding: 15px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.card-header > div:first-child {
  min-width: min(220px, 100%);
  flex: 1 1 260px;
}

.card-header h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.card-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.map-card {
  overflow: hidden;
}

.route-map {
  min-height: 405px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(26deg, transparent 47%, rgba(255, 255, 255, 0.8) 48%, rgba(255, 255, 255, 0.8) 51%, transparent 52%) 0 0 / 190px 130px,
    linear-gradient(96deg, transparent 47%, rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 0.7) 51%, transparent 52%) 20px 20px / 220px 150px,
    #dce9e1;
}

.map-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
}

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

.map-popup strong,
.map-popup span {
  display: block;
}

.map-popup span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.map-unavailable {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.route-map::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(#5c8c7b 0.8px, transparent 0.8px);
  background-size: 14px 14px;
}

.map-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.map-route path {
  fill: none;
  stroke: var(--forest-2);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.8));
}

.map-route path.route-tail {
  stroke: #78a895;
  stroke-dasharray: 4 10;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: var(--forest);
  box-shadow: 0 4px 14px rgba(23, 63, 53, 0.28);
  font-size: 10px;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.map-pin.complete {
  background: #58a77e;
}

.map-pin.current {
  width: 38px;
  height: 38px;
  color: #2f291a;
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(240, 191, 76, 0.22), 0 8px 20px rgba(23, 63, 53, 0.22);
}

.map-label {
  position: absolute;
  z-index: 4;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 750;
}

.map-overlay {
  position: absolute;
  z-index: 5;
  left: 15px;
  bottom: 15px;
  max-width: 270px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.truck-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest);
  background: var(--amber);
}

.map-overlay strong,
.map-overlay small {
  display: block;
}

.map-overlay small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.map-planning-hint,
.map-expand-button {
  position: absolute;
  z-index: 7;
}

.map-planning-hint {
  left: 14px;
  right: 14px;
  bottom: 18px;
  max-width: 560px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 32px rgba(23, 63, 53, 0.14);
  font-size: 11px;
  font-weight: 850;
  pointer-events: none;
}

.map-planning-hint .icon {
  width: 16px;
  height: 16px;
}

.map-expand-button {
  top: 12px;
  right: 12px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(23, 63, 53, 0.18);
  font-size: 11px;
  font-weight: 850;
}

.alerts-list {
  display: grid;
}

.alert-item {
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.alert-item:last-child {
  border-bottom: 0;
}

.alert-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--forest-2);
  background: var(--mint);
}

.alert-icon.warning {
  color: #9a6e19;
  background: var(--amber-soft);
}

.alert-icon.danger {
  color: var(--red);
  background: var(--red-soft);
}

.alert-copy strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 12px;
}

.alert-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.alert-time {
  color: #929b98;
  font-size: 9px;
}

.routes-card {
  margin-top: 16px;
  overflow-x: auto;
}

.route-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.route-table th,
.route-table td {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}

.route-table th {
  color: var(--muted);
  background: #f8faf9;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-table tbody tr:last-child td {
  border-bottom: 0;
}

.route-name strong,
.route-name span {
  display: block;
}

.route-name span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

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

.mini-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--forest);
  background: var(--mint);
  font-size: 9px;
  font-weight: 850;
}

.progress-track {
  width: 90px;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1ef;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--forest-2);
}

.tag {
  min-height: 24px;
  padding: 0 8px;
}

.tag.progress {
  color: var(--blue);
  background: #e7f1f7;
}

.tag.warning {
  color: #946b1c;
  background: var(--amber-soft);
}

.tag.neutral {
  color: var(--muted);
  background: #edf1ef;
}

.radio-dock {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 22px;
  width: 300px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  color: white;
  background: #102e26;
  box-shadow: 0 20px 50px rgba(12, 40, 32, 0.3);
  touch-action: none;
  user-select: none;
}

.radio-drag-handle {
  width: 18px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
  cursor: grab;
  font-size: 14px;
  line-height: 1;
  touch-action: none;
}

.radio-drag-handle:active {
  cursor: grabbing;
}

.radio-dock strong,
.radio-dock small {
  display: block;
}

.radio-dock small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.ptt {
  width: 49px;
  height: 49px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--forest);
  background: var(--amber);
  transition: 0.18s ease;
}

.ptt.live {
  color: white;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(196, 77, 66, 0.18);
}

.edit-panel {
  position: fixed;
  z-index: 35;
  top: 90px;
  right: 20px;
  width: min(380px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 25px 70px rgba(20, 51, 43, 0.24);
}

.edit-panel .card-header {
  background: #fafcfb;
}

.editable-stops {
  max-height: 450px;
  overflow: auto;
  padding: 10px;
}

.editable-stop {
  padding: 10px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.stop-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: var(--mint);
  font-size: 10px;
  font-weight: 850;
}

.editable-stop strong,
.editable-stop small {
  display: block;
}

.editable-stop strong {
  font-size: 11px;
}

.editable-stop small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.reorder-buttons {
  display: flex;
  gap: 4px;
}

.icon-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.icon-button.danger {
  color: #9f3a32;
  background: var(--red-soft);
}

.edit-footer {
  padding: 13px;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  border-top: 1px solid var(--line);
}

.fill-level {
  margin-top: 7px;
  min-width: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-items: center;
}

.fill-level small,
.fill-level strong {
  display: block;
}

.fill-level small {
  color: var(--muted);
  font-size: 8px;
}

.fill-level strong {
  font-size: 10px;
}

.fill-level > span {
  color: var(--forest);
  font-size: 10px;
  font-weight: 850;
}

.fill-level i {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9e5;
}

.fill-level b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--amber));
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(min(340px, 100%), 0.8fr);
  gap: 16px;
}

.routes-workspace {
  display: grid;
  gap: 12px;
}

.route-board {
  display: grid;
  gap: 14px;
}

.route-board-card {
  overflow: hidden;
}

.route-board-group {
  border-top: 1px solid var(--line);
}

.route-board-group:first-of-type {
  border-top: 0;
}

.route-board-group-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-board-group-header strong {
  color: var(--ink);
  font-size: 12px;
}

.route-management-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(47, 117, 98, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(47, 117, 98, 0.12), rgba(243, 166, 58, 0.12)),
    #fff;
  box-shadow: var(--shadow);
}

.route-hero-copy small,
.route-hero-status small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-hero-copy h2 {
  margin: 2px 0 4px;
  color: var(--forest);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.route-hero-copy p {
  margin: 0;
  color: var(--muted);
}

.route-hero-copy p strong {
  color: var(--ink);
}

.route-hero-status {
  justify-self: end;
  display: grid;
  gap: 5px;
  text-align: right;
}

.route-hero-status strong {
  color: var(--ink);
  font-size: 18px;
}

.route-workspace-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.route-tab {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: white;
  font-size: 11px;
  font-weight: 850;
}

.route-tab.active {
  color: var(--forest);
  border-color: rgba(47, 117, 98, 0.28);
  background: var(--mint);
}

.route-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.routes-module {
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1.58fr);
  align-items: start;
}

.route-list-collapsed .routes-module {
  grid-template-columns: minmax(0, 1fr);
}

.route-list-collapsed .route-list-panel {
  display: none;
}

.routes-module > .module-list {
  max-height: calc(100dvh - 185px);
  overflow: auto;
}

.route-module-row.selected {
  background: var(--mint);
  box-shadow: inset 3px 0 0 var(--forest-2);
}

.module-stack {
  display: grid;
  gap: 22px;
}

.module-subheading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-subheading h3 {
  margin: 0;
  font-size: 16px;
}

.module-subheading span {
  color: var(--muted);
  font-size: 11px;
}

.module-list {
  overflow: hidden;
}

.module-filter {
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
}

.module-filter input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  font: inherit;
}

.receipt-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.receipt-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-controls select,
.receipt-controls input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.receipt-tabs {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line);
}

.receipt-tabs button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.receipt-tabs button.active {
  border-color: var(--forest-2);
  color: #fff;
  background: var(--forest-2);
}

.receipt-date-range {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
}

.receipt-range-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.receipt-range-copy span {
  color: var(--muted);
  font-size: 12px;
}

.receipt-range-presets,
.receipt-range-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.receipt-range-custom label {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.receipt-range-custom input {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.receipt-selection-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
  color: var(--muted);
  font-size: 12px;
}

.module-error {
  display: grid;
  gap: 4px;
  margin: 12px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(138, 31, 31, 0.24);
  border-radius: 14px;
  background: #fff1f1;
  color: #8a1f1f;
}

.module-error strong {
  font-size: 13px;
}

.module-error span {
  font-size: 12px;
}

.receipt-select-all,
.receipt-row-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.receipt-row-check {
  justify-content: center;
}

.receipt-row-check input,
.receipt-select-all input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest-2);
}

.receipt-table {
  display: grid;
}

.receipt-module-row .module-secondary {
  min-width: 150px;
}

@media (max-width: 760px) {
  .receipt-controls {
    grid-template-columns: 1fr;
  }

  .receipt-range-custom label,
  .receipt-range-custom .btn {
    width: 100%;
  }
}

.module-row {
  width: 100%;
  min-height: 72px;
  padding: 13px 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: white;
  text-align: left;
}

button.module-row:hover {
  background: #f7faf8;
}

.module-row:last-child {
  border-bottom: 0;
}

.route-module-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.45fr) minmax(180px, 1.3fr) minmax(120px, 0.8fr) 130px auto;
}

.route-module-row .tag {
  justify-self: end;
}

.route-number-badge {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 13px;
  color: var(--forest);
  background: var(--mint);
}

.route-number-badge small,
.route-number-badge strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-number-badge small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-number-badge strong {
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.client-module-row {
  grid-template-columns: 38px minmax(190px, 1.4fr) minmax(160px, 0.8fr) minmax(100px, 0.5fr) auto;
}

.route-point-row {
  grid-template-columns: 38px minmax(190px, 1.3fr) minmax(140px, 0.8fr) auto;
}

.admin-user-row {
  grid-template-columns: 38px minmax(180px, 1.2fr) minmax(125px, auto) minmax(190px, auto);
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.bulk-cert-rows {
  margin-top: 10px;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.bulk-cert-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(110px, 0.9fr) minmax(150px, 1.1fr) minmax(90px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfb;
}

.bulk-cert-row .tag {
  justify-self: end;
  text-align: right;
}

.module-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--forest-2);
  background: var(--mint);
}

.module-primary,
.module-secondary {
  min-width: 0;
}

.module-primary strong,
.module-primary small,
.module-secondary strong,
.module-secondary small {
  display: block;
}

.module-primary strong,
.module-secondary strong {
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-primary small,
.module-secondary small {
  margin-top: 3px;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-progress > span {
  width: 100%;
  height: 6px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1ef;
}

.module-progress i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--forest-2);
}

.module-progress small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.route-detail-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: calc(100dvh - 165px);
}

.route-management-card {
  min-height: calc(100dvh - 270px);
}

.route-detail-summary {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.route-detail-summary > div {
  padding: 11px;
  border-radius: 11px;
  background: var(--paper);
}

.route-detail-summary small,
.route-detail-summary strong {
  display: block;
}

.route-detail-summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.route-detail-summary strong {
  font-size: 11px;
}

.route-map-panel {
  margin: 12px 14px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.card-header.compact {
  padding: 0 0 10px;
}

.route-map-panel .route-map {
  min-height: 330px;
}

.route-map-panel .route-map.map-purpose-planning {
  min-height: clamp(520px, 58vh, 760px);
}

.routes-workspace.route-map-fullscreen {
  position: fixed;
  z-index: 110;
  inset: 0;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background: var(--paper);
}

.routes-workspace.route-map-fullscreen .route-workspace-toolbar {
  position: relative;
  z-index: 112;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(23, 63, 53, 0.12);
  backdrop-filter: blur(14px);
}

.routes-workspace.route-map-fullscreen .route-management-hero {
  position: relative;
  z-index: 112;
  padding: 10px 12px;
  box-shadow: 0 14px 40px rgba(23, 63, 53, 0.12);
}

.routes-workspace.route-map-fullscreen .route-hero-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.routes-workspace.route-map-fullscreen .routes-module {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
}

.routes-workspace.route-map-fullscreen .route-list-panel,
.routes-workspace.route-map-fullscreen .route-detail-summary {
  display: none;
}

.routes-workspace.route-map-fullscreen .route-detail-card {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) minmax(126px, 20dvh);
}

.routes-workspace.route-map-fullscreen .route-detail-header {
  position: relative;
  z-index: 112;
}

.routes-workspace.route-map-fullscreen .route-map-panel {
  min-height: 0;
  height: 100%;
  margin: 0 14px 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.routes-workspace.route-map-fullscreen .route-map-panel .route-map.map-purpose-planning {
  min-height: 0;
  height: 100%;
}

.routes-workspace.route-map-fullscreen .route-detail-stops {
  max-height: none;
  border-top: 1px solid var(--line);
  background: white;
}

.map-tool-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.map-tool-grid > div {
  padding: 10px;
  border-radius: 12px;
  background: var(--paper);
}

.map-tool-grid strong,
.map-tool-grid span {
  display: block;
}

.map-tool-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.route-detail-stops {
  max-height: clamp(240px, 28vh, 420px);
  overflow: auto;
  padding: 7px 14px 14px;
}

.schedule-gantt-card {
  overflow: hidden;
}

.gantt-timeline {
  padding: 0 16px 18px;
  overflow-x: auto;
}

.gantt-axis {
  margin: 0 0 8px 270px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.gantt-axis span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-rows {
  display: grid;
  gap: 9px;
}

.gantt-row {
  display: grid;
  grid-template-columns: 250px minmax(280px, 1fr) 230px;
  gap: 10px;
  align-items: center;
}

.gantt-label {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  text-align: left;
}

.gantt-label strong,
.gantt-label small {
  display: block;
}

.gantt-label strong {
  overflow: hidden;
  color: var(--forest);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.gantt-track {
  position: relative;
  height: 42px;
  overflow: hidden;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 117, 98, 0.08) 0 1px, transparent 1px calc(100% / 6)),
    #eef4f1;
}

.gantt-bar {
  position: absolute;
  top: 6px;
  bottom: 6px;
  min-width: 96px;
  padding: 4px 9px;
  display: grid;
  align-content: center;
  border-radius: 12px;
  color: white;
  background: var(--route-color, var(--forest-2));
  box-shadow: 0 9px 22px rgba(23, 63, 53, 0.18);
}

.gantt-bar.planned {
  opacity: 0.82;
}

.gantt-bar strong,
.gantt-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-bar strong {
  font-size: 10px;
}

.gantt-bar span {
  font-size: 8px;
  opacity: 0.9;
}

.gantt-details {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.gantt-conflict {
  color: #a14d24;
}

.detail-stop {
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.detail-stop-copy {
  min-width: min(180px, 100%);
  flex: 1 1 260px;
}

.detail-stop .stop-number,
.detail-stop .tag,
.detail-stop .btn {
  flex: 0 0 auto;
}

.detail-stop:last-child {
  border-bottom: 0;
}

.detail-stop strong,
.detail-stop small {
  display: block;
}

.detail-stop strong {
  font-size: 10px;
}

.detail-stop small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.route-point-row {
  grid-template-columns: 46px minmax(220px, 1fr) minmax(180px, 0.8fr) auto;
}

.module-row > .module-icon,
.module-row > .mini-avatar {
  flex: 0 0 auto;
}

.module-row > .module-primary {
  flex: 1 1 230px;
}

.module-row > .module-secondary,
.module-row > .module-progress {
  flex: 1 1 150px;
}

.module-row > .module-actions {
  flex: 1 1 260px;
}

.module-row > .tag,
.module-row > .btn {
  flex: 0 0 auto;
}

.module-progress {
  min-width: min(150px, 100%);
}

.hidden {
  display: none !important;
}

.dispatch-channel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.driver-notice-form {
  padding: 14px;
}

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

.driver-notice-form .field-full {
  grid-column: 1 / -1;
}

.driver-notice-form textarea {
  min-height: 132px;
  resize: vertical;
}

.dispatch-notice-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dispatch-notice-actions small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.driver-notice-history {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.module-subhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.driver-notice-row {
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.driver-notice-copy strong,
.driver-notice-copy small {
  display: block;
}

.driver-notice-copy p {
  margin: 5px 0 7px;
  color: #17352d;
  line-height: 1.45;
}

.notice-priority {
  align-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e9f4f0;
  color: #1f6b59;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notice-priority.high {
  background: #fff4d6;
  color: #8a5d00;
}

.notice-priority.urgent {
  background: #ffe6e6;
  color: #a62222;
}

.notice-recipient-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dispatch-radio-panel {
  margin: 0 14px 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  color: white;
  background: #102e26;
}

.radio-target-strip {
  margin: 14px 14px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.radio-target-strip label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dispatch-radio-panel strong,
.dispatch-radio-panel small {
  display: block;
}

.dispatch-radio-panel small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.radio-message-list {
  padding: 0 14px 14px;
  display: grid;
  gap: 9px;
}

.radio-retention-note {
  padding: 9px 11px;
  border: 1px dashed rgba(47, 117, 98, 0.24);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(234, 245, 239, 0.72);
  font-size: 10px;
  font-weight: 750;
}

.radio-message-row,
.live-driver-card {
  padding: 11px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
}

.radio-message-row.private {
  border-color: rgba(69, 116, 180, 0.24);
  background: #f3f8fb;
}

.radio-message-row audio {
  width: 180px;
}

.live-driver-card {
  margin: 0 14px 10px;
  grid-template-columns: 38px 1fr auto auto;
  background: white;
}

.live-driver-copy strong,
.live-driver-copy small {
  display: block;
}

.live-driver-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 12px;
}

.entity-card {
  padding: 16px;
}

.entity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.entity-card h3 {
  margin: 14px 0 4px;
  font-size: 17px;
}

.entity-card p {
  min-height: 30px;
  color: var(--muted);
  font-size: 10px;
}

.entity-card .btn {
  width: 100%;
  margin-top: 12px;
}

.entity-stat {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.entity-stat small,
.entity-stat strong,
.entity-assignment strong,
.entity-assignment small {
  display: block;
}

.entity-stat small,
.entity-assignment small {
  color: var(--muted);
  font-size: 9px;
}

.entity-stat strong {
  margin-top: 2px;
  font-size: 15px;
}

.entity-assignment {
  padding-top: 10px;
}

.entity-assignment strong {
  margin-bottom: 2px;
  font-size: 10px;
}

.crew-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.alert-module-row {
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.alert-module-row:last-child {
  border-bottom: 0;
}

.alert-module-row.resolved {
  opacity: 0.58;
}

.alert-module-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-module-copy strong {
  font-size: 12px;
}

.alert-module-copy p {
  margin: 5px 0 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.alert-module-copy small {
  color: #8a9692;
  font-size: 9px;
}

.alert-module-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.coordinate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.repeat-schedule-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.7fr) minmax(150px, 1fr);
  gap: 10px;
}

.issue-report-fields {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
}

.photo-upload {
  min-height: 68px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px dashed #afc5bb;
  border-radius: 12px;
  color: var(--forest-2);
  background: white;
  cursor: pointer;
}

.photo-upload:hover {
  border-color: var(--forest-2);
}

.photo-upload > .icon {
  width: 25px;
  height: 25px;
}

.photo-upload strong,
.photo-upload small {
  display: block;
}

.photo-upload strong {
  font-size: 11px;
}

.photo-upload small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.photo-upload input {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  opacity: 0;
}

.photo-modal {
  width: min(780px, 100%);
}

.photo-modal-body {
  padding: 16px;
  background: #0d1814;
}

.photo-modal-body img {
  width: 100%;
  max-height: 72vh;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.driver-app {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: clip;
  padding-bottom: 98px;
  background: #edf2ef;
}

.driver-header {
  padding: 18px 20px 28px;
  color: white;
  background: var(--forest);
}

.driver-topline {
  display: flex;
  align-items: center;
  gap: 11px;
}

.driver-topline .brand {
  margin-right: auto;
}

.driver-topline .brand-copy small {
  color: rgba(255, 255, 255, 0.55);
}

.driver-topline .avatar {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.driver-assignment {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.assignment-truck {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--forest);
  background: var(--amber);
}

.assignment-truck .icon {
  width: 29px;
  height: 29px;
}

.assignment-copy {
  min-width: 0;
}

.driver-assignment > .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.assignment-copy small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.assignment-copy h1 {
  margin: 2px 0 4px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.assignment-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.driver-content {
  width: min(720px, 100%);
  margin: -13px auto 0;
  padding-inline: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.driver-content > * {
  min-width: 0;
  max-width: 100%;
}

.driver-route-select-layout {
  width: min(1080px, calc(100% - 28px));
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.driver-route-list {
  overflow: hidden;
}

.driver-route-card {
  width: 100%;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(150px, auto) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: white;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.driver-route-card:hover,
.driver-route-card.active {
  background: #f6fbf8;
}

.driver-route-card.active {
  box-shadow: inset 4px 0 0 var(--forest-2);
}

.driver-route-card.missed {
  background: #fff8ed;
}

.driver-route-card.missed.active {
  box-shadow: inset 4px 0 0 #d9822b;
}

.warning-text {
  color: #8a4b12;
  font-weight: 800;
}

.driver-route-preview {
  overflow: hidden;
}

.driver-route-description {
  margin: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8faf9;
}

.driver-route-description strong,
.driver-route-description p {
  display: block;
}

.driver-route-description p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.driver-route-description .warning-text {
  color: #8a4b12;
}

.driver-route-actions {
  padding: 0 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.driver-progress-card {
  padding: 17px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.driver-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 11px;
}

.driver-progress-top strong {
  font-size: 14px;
}

.driver-progress-top span {
  color: var(--muted);
  font-size: 11px;
}

.driver-progress-card .progress-track {
  width: 100%;
  height: 8px;
}

.driver-eta {
  min-height: 82px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #cddfd7;
  border-radius: 18px;
  color: var(--forest);
  background: linear-gradient(135deg, #f7fbf9, #e3f2eb);
  box-shadow: 0 8px 24px rgba(24, 56, 47, 0.06);
}

.driver-eta.traffic {
  border-color: #b8d9ca;
  background: linear-gradient(135deg, #f7fbf9, #d9f0e6);
}

.driver-eta.offline {
  border-color: #ead69c;
  color: #765918;
  background: var(--amber-soft);
}

.eta-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--forest);
  background: var(--amber);
}

.eta-icon .icon {
  width: 21px;
  height: 21px;
}

.driver-eta small,
.driver-eta strong,
.driver-eta span {
  display: block;
}

.driver-eta small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.driver-eta strong {
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.driver-eta div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.eta-source {
  padding: 5px 8px;
  border-radius: 12px;
  color: var(--forest-2);
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.current-stop-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.driver-map-priority {
  border: 2px solid rgba(47, 117, 98, 0.16);
}

.current-stop-map {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 270px;
  min-height: 270px;
}

.current-stop-map.route-map {
  width: 100%;
  max-width: 100%;
  min-height: 270px;
}

.current-stop-map .map-canvas,
.current-stop-map .gm-style {
  width: 100% !important;
  max-width: 100%;
}

.driver-map-fullscreen {
  position: fixed;
  z-index: 120;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #102e26;
  box-shadow: none;
}

.driver-map-fullscreen .current-stop-map,
.driver-map-fullscreen .current-stop-map.route-map {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
}

.driver-map-fullscreen .current-stop-map .map-canvas,
.driver-map-fullscreen .current-stop-map .gm-style {
  width: 100vw !important;
  max-width: 100vw;
  height: 100dvh !important;
  max-height: 100dvh;
}

.driver-map-fullscreen .map-expand-button {
  top: 14px;
  right: 14px;
  z-index: 130;
}

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

.driver-tray-navigation {
  display: none;
}

.driver-map-topbar {
  position: absolute;
  z-index: 129;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.driver-map-destination {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(6, 34, 26, 0.22);
  backdrop-filter: blur(16px);
}

.driver-map-destination small,
.driver-map-destination span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-map-destination strong {
  display: block;
  overflow: hidden;
  margin: 2px 0;
  color: var(--forest);
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-map-topbar .driver-navigation-actions {
  justify-content: flex-end;
}

.driver-map-topbar .btn {
  box-shadow: 0 12px 35px rgba(6, 34, 26, 0.22);
}

.driver-turn-panel {
  position: absolute;
  z-index: 129;
  top: calc(max(14px, env(safe-area-inset-top)) + 82px);
  left: 14px;
  width: min(430px, calc(100% - 28px));
  max-height: min(43dvh, 390px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 55px rgba(6, 34, 26, 0.24);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.turn-panel-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.turn-panel-header small,
.turn-panel-header span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.turn-panel-header strong {
  display: block;
  color: var(--forest);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.turn-panel-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.turn-panel-empty strong,
.turn-panel-empty span {
  display: block;
}

.turn-step-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.turn-step-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 246, 238, 0.84);
}

.turn-step-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  font-size: 11px;
  font-weight: 900;
}

.turn-step-list li.active {
  border-color: rgba(47, 117, 98, 0.35);
  background: rgba(47, 117, 98, 0.09);
}

.turn-step-list strong,
.turn-step-list small {
  display: block;
}

.turn-step-list strong {
  color: var(--forest);
  font-size: 12px;
  line-height: 1.35;
}

.turn-step-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.driver-action-tray {
  position: absolute;
  z-index: 129;
  left: 14px;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(260px, 1.25fr) minmax(260px, 1.2fr);
  align-items: stretch;
  gap: 10px;
  pointer-events: auto;
}

.driver-action-tray > * {
  min-width: 0;
}

.driver-action-tray .driver-eta,
.driver-action-tray .collection-action-card,
.driver-action-tray .driver-map-route-drawer,
.driver-action-tray .driver-stop-note {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 45px rgba(6, 34, 26, 0.2);
  backdrop-filter: blur(16px);
}

.driver-action-tray .collection-action-card {
  padding: 12px;
}

.driver-stop-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.driver-action-tray .driver-stop-action-row {
  grid-column: 3;
}

.driver-action-tray .driver-map-route-drawer {
  grid-column: 1 / -1;
}

.driver-stop-note.compact {
  padding: 12px;
  border-radius: 18px;
}

.drawer-actions {
  padding: 10px;
  border-top: 1px solid var(--line);
}

.driver-map-fullscreen .stop-details {
  position: absolute;
  z-index: 128;
  left: 50%;
  bottom: 82px;
  width: min(760px, calc(100% - 24px));
  max-height: min(68dvh, 650px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 70px rgba(6, 34, 26, 0.32);
  transform: translateX(-50%);
  backdrop-filter: blur(15px);
}

.driver-fullscreen-extras {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.driver-fullscreen-extras .driver-eta {
  margin: 0;
}

.driver-map-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.driver-map-quick-actions .btn {
  flex: 1 1 150px;
}

.driver-map-route-drawer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.driver-map-route-drawer summary {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.driver-map-route-drawer summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.driver-map-stop-strip {
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.stop-details {
  padding: 18px;
}

.stop-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(240, 191, 76, 0.2);
}

.stop-details h2 {
  margin: 12px 0 6px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.stop-address {
  color: var(--muted);
  font-size: 12px;
}

.driver-stop-note,
.collection-action-card {
  margin-top: 13px;
  padding: 13px;
  border-radius: 15px;
}

.driver-stop-note {
  border: 1px solid rgba(47, 117, 98, 0.17);
  color: var(--forest);
  background: rgba(47, 117, 98, 0.08);
}

.driver-stop-note strong,
.driver-stop-note span,
.collection-action-card small,
.collection-action-card strong,
.collection-action-card span {
  display: block;
}

.driver-stop-note strong,
.collection-action-card small {
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-stop-note span,
.collection-action-card span {
  color: var(--muted);
  font-size: 11px;
}

.collection-action-card {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(217, 130, 43, 0.25);
  background: var(--amber-soft);
}

.collection-action-card.ready {
  border-color: rgba(47, 117, 98, 0.22);
  background: rgba(47, 117, 98, 0.08);
}

.collection-action-card strong {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.collection-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.stop-details .driver-navigation-actions {
  margin: 0 0 13px;
}

.stop-meta {
  margin: 17px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stop-meta-item {
  padding: 11px;
  border-radius: 11px;
  background: var(--paper);
}

.stop-meta-item small,
.stop-meta-item strong {
  display: block;
}

.stop-meta-item small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.stop-meta-item strong {
  font-size: 11px;
}

.stop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.stops-list {
  overflow: hidden;
}

.stop-row {
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 35px 1fr auto;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.stop-row:last-child {
  border-bottom: 0;
}

.stop-row-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: white;
  font-size: 11px;
  font-weight: 850;
}

.stop-row.complete .stop-row-marker {
  border-color: transparent;
  color: white;
  background: #58a77e;
}

.stop-row.current .stop-row-marker {
  border-color: transparent;
  color: var(--forest);
  background: var(--amber);
}

.stop-row.missed .stop-row-marker {
  border-color: transparent;
  color: var(--red);
  background: var(--red-soft);
}

.stop-row strong,
.stop-row small {
  display: block;
}

.stop-row strong {
  font-size: 12px;
}

.stop-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.stop-state {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.driver-radio {
  position: fixed;
  z-index: 140;
  left: 50%;
  bottom: 14px;
  width: min(690px, calc(100% - 28px));
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 17px;
  color: white;
  background: #102e26;
  box-shadow: 0 17px 40px rgba(13, 45, 36, 0.35);
  transform: translateX(-50%);
  user-select: none;
}

.driver-radio strong,
.driver-radio small {
  display: block;
}

.driver-radio small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}

.driver-radio .radio-drag-handle {
  flex: 0 0 auto;
}

.driver-radio .truck-badge {
  flex: 0 0 auto;
}

.driver-radio > div {
  min-width: 0;
}

.driver-radio .ptt {
  margin-left: auto;
}

.driver-radio-playback {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--amber);
  color: #332b18;
  box-shadow: none;
}

.checkout-card {
  padding: 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.driver-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(78, 143, 124, 0.34), transparent 34%),
    linear-gradient(160deg, rgba(7, 48, 36, 0.96), rgba(5, 30, 23, 0.98));
}

.driver-notice-panel {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  color: white;
  background: rgba(7, 57, 43, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.driver-notice-brand {
  font-size: clamp(42px, 12vw, 76px);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.driver-notice-kicker {
  width: fit-content;
  margin: 20px auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #251a00;
  background: var(--amber);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.driver-notice-panel h1 {
  margin: 0;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.05;
}

.driver-notice-meta {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.driver-notice-panel p {
  margin: 18px 0;
  padding: 22px;
  border-radius: 22px;
  color: #073024;
  background: white;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.22;
  font-weight: 900;
}

.driver-notice-requirement {
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.btn-large {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  font-size: 16px;
}

.checkout-card .btn {
  margin-left: auto;
}

.checkout-card .btn + .btn {
  margin-left: 0;
}

.checkout-copy strong,
.checkout-copy small {
  display: block;
}

.checkout-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.client-page {
  min-height: 100vh;
  color: #183029;
  background: #e7f0eb;
}

.client-header {
  padding: 20px max(20px, calc((100vw - 1050px) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background: var(--forest);
}

.secure-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.client-main {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 60px;
}

.client-hero {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}

.client-hero h1 {
  margin: 4px 0 9px;
  font-size: clamp(31px, 5vw, 53px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.client-hero p {
  margin: 0;
  color: var(--muted);
}

.eta-card {
  min-width: 185px;
  padding: 18px 20px;
  border-radius: 18px;
  color: white;
  background: var(--forest);
  box-shadow: var(--shadow);
}

.eta-card small,
.eta-card strong {
  display: block;
}

.eta-card small {
  color: rgba(255, 255, 255, 0.6);
}

.eta-card strong {
  margin: 5px 0 2px;
  font-size: 27px;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
  gap: 16px;
}

.client-map {
  min-height: 470px;
}

.certificate-preview {
  width: 100%;
  min-height: 560px;
  border: 0;
  display: block;
  background: #f4f5f7;
  border-radius: 0 0 16px 16px;
}

.journey-list {
  padding: 13px 18px 18px;
}

.journey-step {
  min-height: 80px;
  padding-left: 28px;
  position: relative;
}

.journey-step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 17px;
  bottom: -8px;
  width: 2px;
  background: var(--line);
}

.journey-step:last-child::before {
  display: none;
}

.journey-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 50%;
  background: #b8c5c0;
  box-shadow: 0 0 0 1px var(--line);
}

.journey-step.done .journey-dot {
  background: #58a77e;
}

.journey-step.active .journey-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(240, 191, 76, 0.2);
}

.journey-step strong {
  display: block;
  padding-top: 4px;
  font-size: 12px;
}

.journey-step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.expiry-note {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  gap: 10px;
  border-radius: 13px;
  color: #84621f;
  background: var(--amber-soft);
  font-size: 10px;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(10, 30, 24, 0.58);
  backdrop-filter: blur(4px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal {
  width: min(470px, 100%);
  max-height: calc(100dvh - 40px);
  margin: auto 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: white;
  box-shadow: 0 30px 90px rgba(8, 29, 23, 0.36);
}

.modal-wide {
  width: min(820px, 100%);
}

.modal-narrow {
  width: min(420px, 100%);
}

.modal-xwide {
  width: min(1100px, 100%);
}

.route-planner-modal {
  width: min(1180px, calc(100vw - 32px));
}

.modal-header {
  flex: 0 0 auto;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.modal-header-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.modal-header h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.modal-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}

.modal-header-actions .modal-close {
  margin-left: 0;
}

.modal-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 22px;
  display: grid;
  gap: 15px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.route-planner-body {
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  align-items: start;
  gap: 16px;
  max-height: calc(100dvh - 174px);
}

.route-form-section {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}

.route-form-section h3 {
  margin: 0;
  color: var(--forest);
  font-size: 13px;
  letter-spacing: -0.015em;
}

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

.route-stops-section {
  grid-row: span 2;
}

.manual-dates-field {
  display: none;
}

.manual-dates-field.active {
  display: grid;
}

.route-choice-grid {
  max-height: 260px;
}

.choice-grid {
  max-height: 210px;
  overflow-y: auto;
  display: grid;
  gap: 7px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
}

.permission-fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.permission-toggle {
  padding: 8px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(33, 62, 54, 0.08);
  font-size: 11px;
}

.permission-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.permission-toggle:last-child {
  border-bottom: 0;
}

.helper-text {
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.choice-item {
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  cursor: pointer;
}

.choice-item input {
  width: auto;
  margin-top: 2px;
}

.choice-item span,
.choice-item strong,
.choice-item small {
  display: block;
}

.choice-item small {
  margin-top: 2px;
  color: var(--muted);
}

.modal-footer {
  flex: 0 0 auto;
  padding: 15px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fafcfb;
}

.form-section-title {
  margin: 4px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-size: 13px;
}

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

.vehicle-file-heading {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-file-heading h3 {
  margin: 0;
}

.vehicle-detail-item {
  min-width: 0;
  padding: 11px;
  border-radius: 11px;
  background: var(--paper);
}

.vehicle-detail-item small,
.vehicle-detail-item strong {
  display: block;
}

.vehicle-detail-item small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vehicle-detail-item strong {
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.45;
}

.responsive-table {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 10px;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  background: var(--paper);
  font-size: 9px;
  text-transform: uppercase;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.import-card {
  padding: 18px;
}

.import-card h3 {
  margin: 14px 0 5px;
}

.import-card p {
  min-height: 42px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.import-errors {
  display: grid;
  gap: 7px;
}

.import-errors > div {
  padding: 10px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  border-radius: 10px;
  background: var(--amber-soft);
  font-size: 11px;
}

.weight-input {
  position: relative;
}

.weight-input input {
  padding-right: 54px;
}

.weight-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-50%);
}

#toast-root {
  position: fixed;
  z-index: 200;
  right: 20px;
  top: 20px;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  color: white;
  background: #173f35;
  box-shadow: 0 14px 36px rgba(12, 41, 33, 0.25);
  font-size: 11px;
  font-weight: 700;
  animation: toast-in 0.25s ease both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.empty-state {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1050px) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  }

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

  .live-ops-content {
    display: block;
    min-height: auto;
  }

  .live-ops-grid {
    grid-template-columns: 1fr;
  }

  .live-ops-map-card,
  .live-ops-alert-card {
    max-height: none;
    min-height: auto;
  }

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

  .module-grid,
  .crew-grid,
  .dispatch-channel-grid {
    grid-template-columns: 1fr;
  }

  .driver-notice-form .form-grid,
  .driver-notice-meta {
    grid-template-columns: 1fr;
  }

  .dispatch-notice-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .routes-module {
    grid-template-columns: 1fr;
  }

  .route-workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-toolbar-actions {
    justify-content: flex-start;
  }

  .gantt-axis {
    margin-left: 0;
  }

  .gantt-row {
    grid-template-columns: 1fr;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
  }

  .gantt-track {
    min-height: 46px;
  }

  .driver-route-select-layout {
    grid-template-columns: 1fr;
  }

  .driver-content {
    width: 100%;
    max-width: 920px;
    padding-inline: clamp(12px, 2.4vw, 22px);
  }

  .current-stop-map,
  .current-stop-map.route-map {
    min-height: clamp(320px, 46dvh, 460px);
    height: clamp(320px, 46dvh, 460px);
  }

  .driver-assignment {
    flex-wrap: wrap;
  }

  .driver-assignment > .btn {
    margin-left: 78px;
  }

  .driver-app .btn,
  .driver-app .icon-button,
  .driver-app .status-pill {
    min-height: 44px;
  }

  .driver-navigation-actions .btn,
  .driver-stop-action-row .btn,
  .stop-actions .btn {
    min-height: 46px;
  }

  .routes-module > .module-list,
  .route-detail-card {
    max-height: none;
    min-height: auto;
  }

  .route-map-panel .route-map.map-purpose-planning {
    min-height: 420px;
  }

  .route-planner-body {
    grid-template-columns: 1fr;
  }

  .entity-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  }
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-panel {
    min-height: 100vh;
  }

  .login-visual {
    display: none;
  }
}

@media (max-width: 820px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: 100vh;
  }

  .login-visual {
    display: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 90;
    inset: 0 auto 0 0;
    width: min(84vw, 310px);
    min-width: min(84vw, 310px);
    min-height: 100dvh;
    display: flex;
    padding: 22px 16px;
    overflow-y: auto;
    box-shadow: 24px 0 60px rgba(8, 31, 25, 0.28);
    transform: translateX(0);
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: min(84vw, 310px);
    min-width: min(84vw, 310px);
    padding: 22px 16px;
    transform: translateX(-105%);
  }

  .app-shell:not(.sidebar-collapsed) .sidebar-scrim {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(8, 31, 25, 0.34);
  }

  .topbar {
    padding: 10px 17px;
    gap: 10px;
  }

  .topbar-title p,
  .topbar .status-pill {
    display: none;
  }

  .main-content {
    padding: 18px 15px 100px;
  }

  .radio-dock {
    right: 14px;
    bottom: 12px;
  }

  .radio-dock .radio-drag-handle {
    display: none;
  }

  .map-card,
  .live-ops-map-card,
  .route-detail-card,
  .route-map-panel,
  .route-map {
    min-width: 0;
  }

  .routes-card {
    overflow-x: visible;
  }

  .route-table,
  .data-table {
    min-width: 0;
  }

  .route-tabs,
  .route-toolbar-actions {
    width: 100%;
  }

  .route-tab {
    flex: 1 1 150px;
    justify-content: center;
  }

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

  .route-hero-status {
    justify-self: start;
    text-align: left;
  }

  .route-module-row {
    grid-template-columns: 1fr;
  }

  .route-number-badge {
    width: 100%;
  }

  .routes-workspace.route-map-fullscreen {
    padding: 8px;
  }

  .routes-workspace.route-map-fullscreen .route-workspace-toolbar {
    max-height: 37dvh;
    overflow: auto;
  }

  .routes-workspace.route-map-fullscreen .route-map-panel {
    margin: 0;
    padding: 8px;
  }

  .routes-workspace.route-map-fullscreen .route-detail-stops {
    max-height: 26dvh;
  }

  .routes-card {
    overflow-x: auto;
  }

  .route-module-row,
  .client-module-row,
  .route-point-row,
  .receipt-module-row,
  .admin-user-row {
    min-width: 0;
  }

  .driver-map-topbar {
    top: max(10px, env(safe-area-inset-top));
    left: 10px;
    right: 74px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .driver-map-topbar .driver-navigation-actions {
    justify-content: flex-start;
  }

  .driver-map-destination {
    padding: 10px 12px;
  }

  .driver-turn-panel {
    top: calc(max(10px, env(safe-area-inset-top)) + 122px);
    left: 10px;
    width: min(420px, calc(100% - 20px));
    max-height: 32dvh;
  }

  .driver-action-tray {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    max-height: min(43dvh, 380px);
    overflow: auto;
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-overflow-scrolling: touch;
  }

  .driver-action-tray .driver-stop-action-row,
  .driver-action-tray .driver-map-route-drawer {
    grid-column: auto;
  }

  .driver-action-tray .driver-eta {
    padding: 10px 12px;
  }

  .driver-map-route-drawer summary {
    padding: 10px 12px;
  }

  .driver-map-fullscreen .map-expand-button {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
  }
}

@media (max-width: 600px) {
  .btn {
    white-space: normal;
  }

  .modal-backdrop {
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .route-planner-modal {
    width: 100%;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .modal-header-actions,
  .modal-footer {
    width: 100%;
    justify-content: stretch;
  }

  .modal-header-actions .btn,
  .modal-footer .btn {
    flex: 1 1 150px;
  }

  .form-grid,
  .vehicle-detail-grid,
  .import-grid,
  .permission-grid,
  .map-tool-grid,
  .route-form-grid {
    grid-template-columns: 1fr;
  }

  .route-planner-body {
    max-height: none;
  }

  .route-map-panel .route-map.map-purpose-planning {
    min-height: 360px;
  }

  .map-planning-hint {
    left: 10px;
    right: 10px;
    bottom: 12px;
    font-size: 10px;
  }

  .map-expand-button span {
    display: none;
  }

  .map-expand-button {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .driver-app {
    padding-bottom: 88px;
  }

  .driver-app.map-fullscreen-active {
    padding-bottom: 0;
  }

  .driver-content {
    width: 100%;
    max-width: 100vw;
    margin-top: -10px;
    padding-inline: 10px;
  }

  .driver-topline {
    flex-wrap: wrap;
    gap: 8px;
  }

  .driver-topline .brand-copy {
    font-size: 15px;
  }

  .driver-topline .status-pill {
    max-width: 122px;
    min-height: 44px;
    padding-inline: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .driver-assignment {
    margin-top: 18px;
    gap: 10px;
  }

  .assignment-truck {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .assignment-copy {
    flex: 1 1 calc(100% - 66px);
  }

  .assignment-copy h1 {
    font-size: 19px;
  }

  .driver-assignment > .btn {
    width: 100%;
    margin-left: 0;
  }

  .current-stop-card {
    border-radius: 18px;
  }

  .current-stop-map,
  .current-stop-map.route-map {
    min-height: min(56dvh, 430px);
    height: min(56dvh, 430px);
  }

  .current-stop-map .map-canvas,
  .current-stop-map .gm-style {
    width: 100% !important;
  }

  .driver-navigation-actions .btn,
  .driver-stop-action-row .btn,
  .stop-actions .btn {
    min-height: 48px;
  }

  .driver-map-fullscreen {
    border-radius: 0;
  }

  .driver-map-fullscreen .stop-details {
    bottom: 74px;
    max-height: 62dvh;
    border-radius: 20px;
  }

  .driver-map-fullscreen .current-stop-map,
  .driver-map-fullscreen .current-stop-map.route-map {
    min-height: 100dvh;
    height: 100dvh;
  }

  .driver-map-topbar {
    left: 10px;
    right: 58px;
  }

  .driver-map-destination {
    max-width: 100%;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .driver-map-destination strong {
    font-size: 17px;
  }

  .driver-map-topbar .driver-navigation-actions {
    display: none;
  }

  .driver-tray-navigation {
    display: block;
  }

  .driver-tray-navigation .driver-navigation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .driver-tray-navigation .btn {
    width: 100%;
    justify-content: center;
  }

  .driver-turn-panel {
    top: calc(max(10px, env(safe-area-inset-top)) + 76px);
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 40dvh;
    border-radius: 18px;
  }

  .driver-action-tray {
    left: 8px;
    right: 8px;
    gap: 8px;
    max-height: min(48dvh, 420px);
  }

  .driver-action-tray .driver-eta {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .driver-action-tray .eta-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .driver-action-tray .driver-eta strong {
    font-size: 18px;
  }

  .driver-action-tray .collection-action-card {
    grid-template-columns: 1fr;
  }

  .driver-map-route-drawer {
    border-radius: 14px;
  }

  .radio-message-row,
  .live-driver-card {
    grid-template-columns: 38px 1fr;
  }

  .radio-message-row audio,
  .live-driver-card .btn,
  .live-driver-card .tag {
    grid-column: 2;
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 9px;
  }

  .metric-card {
    min-height: 112px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 23px;
  }

  .topbar-select {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .section-actions .btn,
  .section-actions a.btn {
    flex: 1 1 150px;
  }

  .card-header {
    align-items: flex-start;
  }

  .card-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .card-actions .btn,
  .card-actions .tag {
    flex: 1 1 140px;
    justify-content: center;
  }

  .route-map {
    min-height: 330px;
  }

  .route-map {
    min-height: 330px;
  }

  .radio-dock {
    width: calc(100% - 28px);
  }

  .driver-radio {
    width: calc(100% - 16px);
    flex-wrap: wrap;
    align-items: center;
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .driver-radio > div {
    flex: 1 1 min(210px, calc(100% - 70px));
    min-width: 0;
  }

  .driver-radio .driver-radio-playback {
    flex: 1 1 100%;
    order: 3;
    min-height: 44px;
    justify-content: center;
  }

  .driver-radio .ptt {
    min-width: 48px;
    min-height: 48px;
  }

  .driver-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .driver-route-card {
    grid-template-columns: 38px 1fr;
  }

  .driver-route-card .module-secondary,
  .driver-route-card .tag {
    grid-column: 2;
  }

  .module-row {
    align-items: flex-start;
    padding: 12px;
  }

  .module-primary strong,
  .module-primary small,
  .module-secondary strong,
  .module-secondary small {
    white-space: normal;
  }

  .module-row > .module-primary,
  .module-row > .module-secondary,
  .module-row > .module-progress {
    flex-basis: calc(100% - 50px);
  }

  .module-row > .module-actions {
    margin-left: 50px;
    flex-basis: calc(100% - 50px);
    justify-content: flex-start;
  }

  .module-row > .tag,
  .module-row > .btn {
    margin-left: 50px;
  }

  .module-row > .btn {
    flex: 1 1 150px;
  }

  .module-row > .btn + .btn {
    margin-left: 0;
  }

  .repeat-schedule-grid {
    grid-template-columns: 1fr;
  }

  .stop-meta {
    grid-template-columns: 1fr 1fr;
  }

  .stop-meta-item:last-child {
    grid-column: 1 / -1;
  }

  .collection-action-card {
    grid-template-columns: 1fr;
  }

  .collection-action-buttons {
    justify-content: stretch;
  }

  .collection-action-buttons .btn {
    width: 100%;
  }

  .detail-stop .btn {
    flex: 1 1 140px;
  }

  .stop-row {
    grid-template-columns: 35px minmax(0, 1fr);
    align-items: start;
  }

  .stop-state {
    grid-column: 2;
  }

  .checkout-card .btn {
    flex: 1 1 150px;
    margin-left: 0;
  }

  .client-header {
    padding: 16px;
  }

  .secure-link span {
    display: none;
  }

  .client-main {
    padding-top: 28px;
  }

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

  .eta-card {
    min-width: auto;
  }

  .client-map {
    min-height: 390px;
  }

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

  .alert-module-row {
    grid-template-columns: 38px 1fr;
  }

  .alert-module-actions {
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .coordinate-fields {
    grid-template-columns: 1fr;
  }
}
