@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@500;600;700&family=Fira+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5d6f86;
  --line: #bfdbfe;
  --surface: #ffffff;
  --soft: #eff6ff;
  --dark: #0f172a;
  --green: #1f8a70;
  --red: #dc2626;
  --yellow: #ea580c;
  --blue: #2563eb;
  --primary: #2563eb;
  --secondary: #3b82f6;
  --accent: #ea580c;
  --ring: #2563eb;
  --success-bg: #ecfdf5;
  --success-fg: #17644f;
  --warning-bg: #fff7ed;
  --warning-fg: #9a3412;
  --danger-bg: #fef2f2;
  --danger-fg: #991b1b;
  --z-base: 0;
  --z-map-control: 10;
  --z-sheet: 20;
  --z-tabbar: 30;
  --z-drawer: 50;
  --shadow-flat: 0 1px 0 rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

code,
.mvp-api-list code,
.payout-row strong,
.money-field input,
.metric-grid strong,
.launch-score-grid strong {
  font-family: "Fira Code", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  touch-action: manipulation;
}

button:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #f8fbff;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  background: var(--dark);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.brand span,
.sidebar-panel p,
.sidebar .label {
  color: #b9c0c5;
}

.nav-tabs {
  display: grid;
  gap: 8px;
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-color: transparent;
  background: transparent;
  color: #e8ecef;
}

.nav-tab.active {
  background: #fff;
  color: #111315;
}

.icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
  font-family: "Fira Code", monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.nav-tab.active .icon {
  background: #eff6ff;
  color: #1e40af;
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-panel p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.intro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.intro-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  color: #3b4248;
  font-size: 13px;
  font-weight: 800;
}

.main {
  min-width: 0;
  padding: 28px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

body[data-surface] .sidebar {
  display: none !important;
}

body[data-surface] .app-shell {
  display: block;
}

body[data-surface="user"] #view-driver,
body[data-surface="user"] #view-admin,
body[data-surface="driver"] #view-user,
body[data-surface="driver"] #view-admin,
body[data-surface="admin"] #view-user,
body[data-surface="admin"] #view-driver {
  display: none !important;
}

body[data-surface="user"] #jumpDriver {
  display: none !important;
}

body[data-surface="user"] .view-intro,
body[data-surface="driver"] .view-intro {
  display: none;
}

body[data-surface="user"] .app-view.active,
body[data-surface="driver"] .app-view.active {
  display: block;
  min-height: 100dvh;
}

body[data-surface="user"] .main,
body[data-surface="driver"] .main {
  padding: 0;
}

body[data-surface="admin"] .main {
  padding: 28px;
}

body[data-surface="admin"] .admin-workspace {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1180px) {
  body[data-surface="user"] .phone-shell,
  body[data-surface="driver"] .phone-shell {
    width: min(100vw, 820px);
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.app-view.active {
  display: grid;
  min-height: calc(100vh - 56px);
  grid-template-columns: minmax(300px, 420px) minmax(360px, 1fr);
  gap: 36px;
  align-items: center;
}

.view-intro {
  max-width: 410px;
}

.eyebrow,
.label {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
}

.phone-stage {
  display: grid;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(390px, calc(100vw - 44px));
  height: 820px;
  max-height: calc(100vh - 56px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 10px solid #111315;
  border-radius: 36px;
  background: #f7f8f5;
  box-shadow: 0 28px 80px rgba(17, 19, 21, 0.28);
  scroll-behavior: smooth;
}

.mobile-map,
.admin-map {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(35deg, transparent 48%, rgba(36, 92, 115, 0.2) 49%, rgba(36, 92, 115, 0.2) 51%, transparent 52%),
    linear-gradient(145deg, transparent 47%, rgba(31, 138, 112, 0.16) 48%, rgba(31, 138, 112, 0.16) 52%, transparent 53%),
    repeating-linear-gradient(0deg, #eaeeeb 0 24px, #dde5e1 25px 26px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(17, 19, 21, 0.07) 35px 36px);
}

.map-uber {
  background:
    linear-gradient(28deg, transparent 45%, rgba(35, 118, 145, 0.14) 46%, rgba(35, 118, 145, 0.14) 48%, transparent 49%),
    linear-gradient(132deg, transparent 48%, rgba(31, 138, 112, 0.15) 49%, rgba(31, 138, 112, 0.15) 51%, transparent 52%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45), transparent 34%),
    repeating-linear-gradient(0deg, #eef2ef 0 30px, #dfe7e2 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(17, 19, 21, 0.055) 43px 44px);
}

.map-driver-light {
  background:
    linear-gradient(30deg, transparent 46%, rgba(36, 92, 115, 0.24) 47%, rgba(36, 92, 115, 0.24) 50%, transparent 51%),
    repeating-linear-gradient(0deg, #edf2ef 0 26px, #dce5e0 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(17, 19, 21, 0.07) 37px 38px);
}

.map-driver-dark {
  background:
    linear-gradient(30deg, transparent 46%, rgba(241, 200, 75, 0.42) 47%, rgba(241, 200, 75, 0.42) 50%, transparent 51%),
    repeating-linear-gradient(0deg, #172026 0 26px, #222d34 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.08) 37px 38px);
}

.map-driver-dark .pin {
  border-color: #111315;
}

.map-driver-dark .route-line {
  border-color: var(--yellow);
}

.map-nav-label,
.map-theme-toggle {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 19, 21, 0.12);
  color: #111315;
  font-size: 12px;
  font-weight: 900;
}

.map-nav-label {
  left: 18px;
  top: 22px;
  padding: 10px 12px;
}

.map-theme-toggle {
  right: 18px;
  top: 22px;
  min-height: 38px;
  border: 0;
  padding: 0 12px;
}

.map-driver-dark .map-nav-label,
.map-driver-dark .map-theme-toggle {
  background: #111315;
  color: #fff;
}

.mobile-map {
  height: 430px;
}

.mapbox-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}

.mobile-map.mapbox-ready .mapbox-canvas {
  opacity: 1;
}

.mobile-map.mapbox-ready > .pin,
.mobile-map.mapbox-ready > .route-line {
  display: none;
}

.mapboxgl-map,
.mapboxgl-canvas-container,
.mapboxgl-canvas {
  width: 100%;
  height: 100%;
}

.mapboxgl-ctrl-bottom-right {
  right: 8px;
  bottom: 6px;
}

.mapboxgl-ctrl-bottom-left {
  left: 8px;
  bottom: 6px;
}

.mapbox-truck-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #102033;
  border-radius: 50%;
  background: #fff;
  color: #102033;
  box-shadow: 0 6px 18px rgba(15, 32, 51, 0.22);
}

.mapbox-truck-marker svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mapbox-driver-marker {
  background: var(--ink);
  color: #fff;
}

.arrival-alert,
.driver-customer-contact,
.driver-gps-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.arrival-alert {
  display: grid;
  gap: 3px;
  border-color: rgba(31, 138, 112, 0.35);
  background: var(--success-bg);
  color: var(--success-fg);
}

.arrival-alert.hidden {
  display: none;
}

.arrival-alert strong {
  font-size: 15px;
}

.arrival-alert span {
  font-size: 12px;
  font-weight: 700;
}

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

.driver-customer-contact span,
.driver-gps-status small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.driver-customer-contact strong,
.driver-gps-status strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.driver-customer-contact a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--primary);
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.driver-gps-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.driver-gps-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

.driver-gps-status.active .driver-gps-dot {
  background: var(--green);
}

.driver-gps-status.error .driver-gps-dot {
  background: var(--red);
}

.zone-pill {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 74px;
  border-radius: 999px;
  background: #fff;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(17, 19, 21, 0.16);
}

.round-button {
  position: absolute;
  z-index: var(--z-map-control);
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 219, 254, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: #1e40af;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.menu-button {
  position: fixed;
  z-index: var(--z-drawer);
  top: 18px;
  left: 18px;
  margin: 0;
  padding: 0 12px;
}

.network-state {
  display: block;
  margin-top: 4px;
  color: #24745a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

html[data-network="offline"] .network-state {
  color: var(--red);
}

.locate-button {
  right: 18px;
  bottom: 36px;
  padding: 0 11px;
}

.pin {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.pin.pickup {
  left: 24%;
  top: 34%;
  background: var(--primary);
}

.pin.dropoff {
  right: 20%;
  bottom: 28%;
  background: var(--red);
}

.pin.hub {
  left: 68%;
  top: 22%;
  background: var(--accent);
}

.route-line {
  position: absolute;
  left: 29%;
  top: 43%;
  width: 48%;
  border-top: 4px dashed var(--primary);
  transform: rotate(21deg);
  transform-origin: left center;
}

.bottom-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
  margin: 0 12px 14px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 19, 21, 0.08);
}

#view-user .mobile-map {
  position: relative;
  height: 470px;
  min-height: 470px;
  margin-bottom: 12px;
}

#view-user .bottom-sheet {
  margin-left: 12px;
  margin-right: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 19, 21, 0.08);
}

.hidden,
.bottom-sheet.hidden {
  display: none;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  justify-self: center;
  border-radius: 99px;
  background: #d8dde0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #3b4248;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus {
  outline: 0;
  border-color: rgba(37, 99, 235, 0.68);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  background-color: #fff;
}

select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #111315 50%),
    linear-gradient(135deg, #111315 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 19px,
    calc(100% - 14px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  font-weight: 800;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  min-height: 20px;
  border: 2px solid #cbd2d6;
  background: #fff;
  padding: 0;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
}

input[type="checkbox"] {
  border-radius: 6px;
}

input[type="radio"] {
  border-radius: 999px;
}

input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 140ms ease;
}

input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  transform: scale(0);
  transition: transform 140ms ease;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--green);
  background: var(--green);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

.address-row {
  position: relative;
}

.address-picker {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.address-row input {
  padding-left: 36px;
  font-weight: 700;
}

.address-picker.invalid .address-row input {
  border-color: rgba(220, 38, 38, 0.72);
  background: #fff8f8;
}

.address-validation {
  min-height: 16px;
  padding-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.address-validation.valid {
  color: #24745a;
}

.address-validation.invalid {
  color: var(--red);
}

.address-suggestions {
  position: absolute;
  z-index: 24;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 0;
  max-height: min(320px, 46vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 19, 21, 0.16);
}

.address-suggestions.hidden {
  display: none;
}

.route-swap-button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(17, 19, 21, 0.08);
}

.route-swap-button:hover,
.route-swap-button:focus-visible {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
}

.address-suggestions > span {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.address-suggestion {
  width: 100%;
  min-height: 52px;
  display: grid;
  justify-items: start;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 9px 12px;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover,
.address-suggestion:focus-visible,
.address-suggestion[aria-selected="true"] {
  background: #eff6ff;
}

.address-suggestion strong {
  color: var(--ink);
  font-size: 13px;
}

.address-suggestion small,
.address-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.address-empty {
  padding: 12px;
}

.address-suggestion-divider {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f7f8;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dot {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

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

.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.native-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

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

.choice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.choice-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-head strong {
  color: #111315;
  font-size: 13px;
  text-align: right;
}

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

.cargo-size-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-capability-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loading-choice,
.truck-type-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cargo-size-choice .choice-card:nth-child(4),
.cargo-size-choice .choice-card:nth-child(5) {
  grid-column: span 1;
}

.choice-card {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  text-align: left;
  box-shadow: var(--shadow-flat);
}

.choice-card strong,
.choice-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.choice-card strong {
  font-size: 13px;
}

.choice-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.choice-card.selected {
  border-color: rgba(37, 99, 235, 0.62);
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.choice-card.selected strong {
  color: #1e40af;
}

.auto-estimate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.order-summary-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(36, 92, 115, 0.18);
  border-radius: 8px;
  background: #f4f8f7;
  padding: 10px 12px;
}

.order-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-summary-card strong {
  min-width: 0;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-strip,
.payment-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #f5f6f3;
  padding: 10px 12px;
  font-size: 12px;
}

.order-mode-card {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: #f5f6f3;
  padding: 10px 12px;
}

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

.order-mode-choice {
  min-height: 82px;
  padding: 12px;
}

.order-mode-choice small {
  font-size: 12px;
}

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

.profile-type-choice,
.profile-payment-choice .choice-card {
  min-height: 78px;
}

.saved-address-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 12px;
}

.saved-address-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.saved-address-panel strong {
  font-size: 13px;
}

.saved-address-list {
  display: grid;
  gap: 8px;
}

.saved-address-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.saved-address-list strong,
.saved-address-list small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.saved-address-list strong {
  font-size: 12px;
}

.saved-address-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.saved-address-list button {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.scheduled-time-field {
  margin-top: 10px;
}

.account-strip span,
.payment-note span {
  color: var(--muted);
  font-weight: 800;
}

.account-strip strong,
.payment-note strong {
  font-size: 12px;
  text-align: right;
}

.auto-estimate div {
  border-radius: 8px;
  background: #f5f6f3;
  padding: 10px;
}

.auto-estimate span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.auto-estimate strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.fare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.fare-row strong {
  display: block;
  font-size: 30px;
}

#paymentState {
  border-radius: 999px;
  padding: 8px 10px;
  background: #f0f2ee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#paymentState.done {
  background: #e6f5ec;
  color: #176049;
}

.quote-validity-card {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(36, 92, 115, 0.18);
  border-radius: 8px;
  background: #f3f7f6;
  padding: 10px 12px;
}

.quote-validity-card span,
.quote-validity-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.quote-validity-card strong {
  color: var(--ink);
  font-size: 14px;
}

#estimateText,
.fee-note,
.driver-sheet p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fee-note {
  border-left: 3px solid var(--yellow);
  padding-left: 10px;
}

.fare-breakdown {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfa;
}

.payment-summary-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.payment-summary-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-summary-card span,
.payment-lifecycle-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-summary-card strong {
  font-size: 14px;
  text-align: right;
}

.payment-lifecycle-list {
  display: grid;
  gap: 8px;
}

.payment-lifecycle-list article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.payment-lifecycle-list .payment-step-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e9ece5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-lifecycle-list strong,
.payment-lifecycle-list span {
  display: block;
}

.payment-lifecycle-list strong {
  font-size: 13px;
}

.payment-lifecycle-list small {
  margin-top: 2px;
  line-height: 1.35;
}

.payment-lifecycle-list span:last-child {
  border-radius: 999px;
  background: #eef0ec;
  color: var(--muted);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-lifecycle-list article.done {
  border-color: #cfe8dc;
  background: #f1fbf5;
}

.payment-lifecycle-list article.done .payment-step-dot,
.payment-lifecycle-list article.done span:last-child {
  background: #dff4e8;
  color: #176049;
}

.payment-lifecycle-list article.current {
  border-color: #e7d590;
  background: #fffbed;
}

.payment-lifecycle-list article.current .payment-step-dot,
.payment-lifecycle-list article.current span:last-child {
  background: #f7e6a4;
  color: #725600;
}

.payment-lifecycle-list article.warning {
  border-color: #efc0b5;
  background: #fff5f2;
}

.payment-lifecycle-list article.warning .payment-step-dot,
.payment-lifecycle-list article.warning span:last-child {
  background: #ffe0d8;
  color: #9b2c18;
}

.payment-note.compact {
  align-items: flex-start;
}

.admin-payment-lifecycle {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.fare-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.fare-breakdown span {
  color: var(--muted);
  font-weight: 800;
}

.fare-breakdown strong {
  font-size: 12px;
}

.live-trip-card,
.driver-active-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.live-trip-card div,
.driver-active-summary article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.live-trip-card span,
.driver-active-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.live-trip-card strong,
.driver-active-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
}

.live-route-list {
  display: grid;
  gap: 8px;
}

.live-route-list article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.live-route-list .route-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.live-route-list article.done .route-dot {
  border-color: rgba(31, 138, 112, 0.24);
  background: var(--green);
  color: #fff;
}

.live-route-list article.current .route-dot {
  border-color: rgba(241, 200, 75, 0.65);
  background: var(--yellow);
  color: #111315;
}

.live-route-list strong,
.live-route-list small {
  display: block;
}

.live-route-list strong {
  font-size: 13px;
  line-height: 1.25;
}

.live-route-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.primary-action,
.accept {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.primary-action:hover,
.accept:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.primary-action.full {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
}

.mobile-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 5;
}

.user-menu-backdrop {
  position: fixed;
  z-index: 18;
  background: transparent;
  overflow: hidden;
}

.user-side-menu {
  position: fixed;
  z-index: 19;
  box-sizing: border-box;
  width: min(78%, 292px);
  max-width: 292px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  border-right: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 26px 0 0 26px;
  background: #fff;
  padding: 18px 14px;
  box-shadow: 12px 0 28px rgba(17, 19, 21, 0.12);
}

.user-menu-backdrop.hidden,
.user-side-menu.hidden {
  display: none;
}

.user-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.user-menu-head span,
.user-menu-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-menu-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}

.user-menu-head .round-button {
  position: static;
  width: 34px;
  height: 34px;
  background: #f1f3ef;
  color: var(--ink);
  box-shadow: none;
}

.user-menu-item {
  min-height: 58px;
  display: grid;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  text-align: left;
}

.user-menu-item strong {
  color: var(--ink);
  font-size: 14px;
}

.user-menu-item small {
  text-transform: none;
  line-height: 1.25;
}

.user-menu-item.active {
  border-color: rgba(31, 138, 112, 0.35);
  background: #eef9f4;
}

.tabbar-item,
.driver-tabbar-item,
.mobile-tabbar span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tabbar-item.active,
.driver-tabbar-item.active {
  color: #111315;
}

.history-list,
.driver-earnings-summary,
.report-grid,
.report-events,
.alert-list,
.dispatch-matrix,
.dispatch-log-list,
.sla-list,
.readiness-list,
.audit-log-list,
.notification-list,
.refund-ledger-list {
  display: grid;
  gap: 8px;
}

.history-item,
.driver-earnings-summary article,
.report-grid article,
.report-event,
.support-case-card,
.driver-compliance-card,
.alert-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.history-item {
  display: grid;
  gap: 6px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  color: #111315;
  font-size: 12px;
  font-weight: 900;
}

.receipt-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.receipt-card div {
  min-width: 0;
}

.receipt-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-card strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.schedule-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #e7d590;
  border-radius: 8px;
  background: #fffbed;
  padding: 10px;
}

.schedule-card div {
  min-width: 0;
}

.schedule-card span,
.schedule-queue-list > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-card strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.schedule-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.schedule-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.schedule-queue-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.schedule-queue-list article {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.schedule-queue-list strong,
.schedule-queue-list small {
  display: block;
}

.schedule-queue-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.schedule-queue-list button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f9f7;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.webhook-simulator {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.webhook-simulator span,
.sla-list > span,
.readiness-list > span,
.audit-log-list > span,
.notification-list > span,
.refund-ledger-list > span,
.dispatch-log-list > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.webhook-simulator button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-list article,
.audit-log-list article,
.notification-list article,
.refund-ledger-list article,
.dispatch-log-list article,
.sla-list article,
.dispatch-focus-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.readiness-list article.ready {
  border-color: rgba(31, 138, 112, 0.24);
  background: #f4fbf8;
}

.readiness-list article.blocked {
  border-color: rgba(207, 77, 77, 0.24);
  background: #fff7f5;
}

.sla-list article {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.6fr) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sla-list article.critical {
  border-color: rgba(207, 77, 77, 0.28);
  background: #fff7f5;
}

.sla-list article.warning {
  border-color: rgba(241, 200, 75, 0.42);
  background: #fffdf2;
}

.sla-list article.resolved {
  border-color: rgba(31, 138, 112, 0.24);
  background: #f4fbf8;
}

.sla-list button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.readiness-list strong,
.audit-log-list strong,
.notification-list strong,
.refund-ledger-list strong,
.dispatch-log-list strong,
.sla-list strong,
.dispatch-focus-card strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.readiness-list small,
.audit-log-list small,
.notification-list small,
.refund-ledger-list small,
.dispatch-log-list small,
.sla-list small,
.dispatch-focus-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dispatch-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  background: #f8f9f7;
}

.dispatch-focus-card .dispatch-focus-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dispatch-focus-card button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.dispatch-log-list article {
  display: grid;
  gap: 4px;
}

.dispatch-log-list article.warning {
  border-color: rgba(207, 77, 77, 0.24);
  background: #fff7f5;
}

.refund-decision-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.refund-decision-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.refund-decision-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.refund-ledger-list article {
  display: grid;
  gap: 4px;
}

.refund-ledger-list article.approved {
  border-color: rgba(31, 138, 112, 0.24);
  background: #f4fbf8;
}

.refund-ledger-list article.rejected {
  opacity: 0.76;
}

.payout-batch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 12px;
}

.payout-batch-panel strong,
.payout-batch-panel small {
  display: block;
}

.payout-batch-panel strong {
  margin-top: 4px;
  font-size: 15px;
}

.payout-batch-panel small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payout-batch-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payout-batch-actions button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.notification-list.compact {
  margin-bottom: 10px;
}

.notification-list article {
  display: grid;
  gap: 4px;
}

.notification-list article.failed {
  border-color: rgba(207, 77, 77, 0.24);
  background: #fff7f5;
}

.notification-list article.read {
  opacity: 0.74;
}

.notification-list .push-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notification-list .push-meta span {
  border-radius: 999px;
  background: #eef0ec;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.history-item {
  display: grid;
  gap: 5px;
}

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

.history-item strong,
.support-case-card strong,
.driver-compliance-card strong,
.driver-gate-card strong,
.driver-earnings-summary strong,
.report-grid strong,
.alert-item strong {
  font-size: 13px;
}

.history-item small,
.history-item span,
.support-case-card span,
.support-case-card small,
.driver-compliance-card small,
.driver-gate-card small,
.driver-earnings-summary span,
.report-grid span,
.report-event small,
.alert-item span,
.alert-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.support-case-card,
.driver-compliance-card,
.driver-gate-card,
.alert-item {
  display: grid;
  gap: 5px;
}

.support-case-card strong,
.driver-compliance-card strong,
.driver-gate-card strong,
.alert-item strong,
.alert-item small {
  display: block;
}

.driver-vehicle-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.driver-vehicle-summary article,
.driver-gate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.driver-vehicle-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-vehicle-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.driver-document-list {
  display: grid;
  gap: 8px;
}

.driver-document-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.driver-document-list article.needs-correction {
  border-color: rgba(207, 77, 77, 0.28);
  background: #fff7f5;
}

.driver-document-list article.review {
  border-color: rgba(241, 200, 75, 0.45);
  background: #fffdf2;
}

.driver-document-list strong,
.driver-document-list small {
  display: block;
  min-width: 0;
}

.driver-document-list strong {
  font-size: 13px;
}

.driver-document-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.driver-document-list button {
  min-height: 36px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

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

.alert-actions button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.support-queue-list {
  display: grid;
  gap: 8px;
}

.support-queue-list > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-queue-list article {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(180px, 1fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.support-queue-list article.critical {
  border-color: rgba(207, 77, 77, 0.28);
  background: #fff7f5;
}

.support-queue-list article.warning {
  border-color: rgba(241, 200, 75, 0.42);
  background: #fffdf2;
}

.support-queue-list strong,
.support-queue-list small {
  display: block;
}

.support-queue-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.support-queue-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.support-queue-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.launch-control-panel {
  grid-column: 1 / -1;
}

.launch-score-grid,
.launch-control-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.launch-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.launch-score-grid article,
.mvp-phase-list article,
.mvp-api-list article,
.mvp-integration-list article,
.mvp-pilot-list article,
.integration-check-list article,
.pilot-action-list article,
.backend-model-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.launch-score-grid article {
  padding: 14px;
}

.launch-score-grid span,
.launch-score-grid small,
.mvp-phase-list small,
.mvp-api-list small,
.mvp-integration-list small,
.mvp-pilot-list small,
.integration-check-list small,
.pilot-action-list small,
.backend-model-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.launch-score-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
  line-height: 1;
}

.launch-control-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.launch-control-grid.compact {
  margin-top: 14px;
}

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

.launch-section-head button {
  min-height: 36px;
  white-space: nowrap;
}

.mvp-phase-list,
.mvp-api-list,
.mvp-integration-list,
.mvp-pilot-list,
.integration-check-list,
.pilot-action-list,
.backend-model-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mvp-phase-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 12px;
  min-width: 0;
}

.mvp-phase-list article.ready,
.mvp-integration-list article.ready,
.mvp-pilot-list article.ready,
.integration-check-list article.ready,
.pilot-action-list article.ready,
.backend-model-list article.ready {
  border-color: rgba(31, 138, 112, 0.36);
  background: #f3faf7;
}

.mvp-phase-list article.blocked,
.mvp-integration-list article.blocked,
.mvp-pilot-list article.blocked,
.integration-check-list article.blocked,
.pilot-action-list article.blocked,
.backend-model-list article.blocked {
  border-color: rgba(207, 77, 77, 0.34);
  background: #fff6f5;
}

.mvp-phase-list article.building,
.mvp-integration-list article.building,
.mvp-pilot-list article.building,
.integration-check-list article.building,
.pilot-action-list article.building,
.backend-model-list article.building {
  border-color: rgba(241, 200, 75, 0.48);
  background: #fffaf0;
}

.mvp-phase-meter {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece7;
}

.mvp-phase-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.mvp-phase-list article.blocked .mvp-phase-meter span {
  background: var(--red);
}

.mvp-phase-list article.building .mvp-phase-meter span {
  background: #c89422;
}

.mvp-phase-status {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: right;
}

.mvp-phase-status strong {
  font-size: 18px;
}

.mvp-phase-status button {
  min-height: 34px;
  padding: 0 10px;
}

.mvp-api-list article,
.mvp-integration-list article,
.mvp-pilot-list article,
.integration-check-list article,
.pilot-action-list article,
.backend-model-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  min-width: 0;
}

.mvp-api-list code {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--blue);
  font-weight: 900;
  white-space: normal;
}

.mvp-state-pill {
  border-radius: 999px;
  background: #eef1ed;
  padding: 7px 9px;
  color: #3b4248;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.mvp-phase-list strong,
.mvp-api-list code,
.mvp-integration-list strong,
.mvp-pilot-list strong,
.integration-check-list strong,
.pilot-action-list strong,
.backend-model-list strong,
.launch-section-head button,
.mvp-phase-status button,
.integration-check-actions button,
.pilot-action-controls button,
.backend-model-actions button,
.api-contract-actions button {
  overflow-wrap: anywhere;
}

.integration-sandbox,
.pilot-action-board,
.backend-model-board {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f5;
  padding: 12px;
}

.integration-check-actions,
.pilot-action-controls,
.backend-model-actions,
.api-contract-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 132px;
}

.integration-check-actions button,
.pilot-action-controls button,
.backend-model-actions button,
.api-contract-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.launch-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ready .mvp-state-pill {
  background: var(--success-bg);
  color: var(--success-fg);
}

.blocked .mvp-state-pill {
  background: var(--danger-bg);
  color: var(--danger-fg);
}

.building .mvp-state-pill {
  background: var(--warning-bg);
  color: var(--warning-fg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.alert-item.critical {
  border-color: rgba(207, 77, 77, 0.28);
  background: #fff7f5;
}

.alert-item.resolved {
  opacity: 0.72;
}

.dispatch-driver {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 1.15fr 122px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.dispatch-driver.eligible {
  border-color: rgba(37, 99, 235, 0.24);
  background: #eff6ff;
}

.dispatch-driver.blocked {
  opacity: 0.76;
}

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

.dispatch-driver strong,
.dispatch-driver span {
  font-size: 13px;
  font-weight: 900;
}

.dispatch-driver small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.dispatch-driver button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.driver-earnings-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.report-events {
  margin-top: 10px;
}

.report-event {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.report-event strong {
  font-size: 13px;
}

.pulse-note {
  color: var(--green) !important;
}

.driver-phone {
  --driver-header-h: 108px;
  --driver-map-h: 360px;
  --driver-tabbar-h: 58px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f7f8f5;
}

.driver-header {
  position: relative;
  z-index: 2;
  height: var(--driver-header-h);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid rgba(17, 19, 21, 0.08);
}

.driver-header .label {
  color: var(--muted);
}

.driver-header strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

.driver-header small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.driver-header .primary-action {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.driver-header .primary-action.accept {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.driver-map {
  position: relative;
  height: var(--driver-map-h);
  min-height: var(--driver-map-h);
  max-height: var(--driver-map-h);
}

.driver-content {
  display: contents;
}

.driver-sheet {
  position: relative;
  z-index: 1;
  max-height: none;
  margin: 0 12px 14px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(17, 19, 21, 0.08);
}

.driver-phone .mobile-tabbar {
  position: sticky;
  bottom: 0;
  height: var(--driver-tabbar-h);
  z-index: 12;
  border-top: 1px solid rgba(17, 19, 21, 0.08);
  box-shadow: 0 -8px 18px rgba(17, 19, 21, 0.08);
}

.job-facts,
.vehicle-strip,
.wallet-row,
.review-checks,
.special-cargo-grid,
.cargo-dimension-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-facts span,
.vehicle-strip span,
.wallet-row span,
.wallet-choice,
.review-checks span {
  border-radius: 999px;
  background: #f0f2ee;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.special-cargo-grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8f5;
  padding: 7px 11px 7px 8px;
  color: #3b4248;
  font-size: 12px;
  font-weight: 900;
}

.special-cargo-grid label:has(input:checked) {
  border-color: rgba(31, 138, 112, 0.42);
  background: #eef9f4;
  color: #17644f;
}

.cargo-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cargo-dimension-grid.hidden,
.cargo-weight-field.hidden {
  display: none;
}

.cargo-dimension-grid input,
.cargo-weight-field input {
  min-height: 38px;
  padding: 0 9px;
  font-size: 13px;
}

.cargo-weight-field {
  display: grid;
}

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

.cargo-option-card {
  min-height: 76px;
}

.optional-dimensions-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px 12px;
  color: #3b4248;
  font-size: 13px;
  font-weight: 900;
}

.optional-dimensions-toggle:has(input:checked) {
  border-color: rgba(31, 138, 112, 0.42);
  background: #eef9f4;
  color: #17644f;
}

.optional-dimensions-toggle input,
.special-cargo-grid input {
  margin: 0;
}

.driver-cargo-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8f9f7;
}

.driver-cargo-card strong {
  font-size: 14px;
}

.driver-cargo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}

.driver-cargo-tags span {
  border-radius: 999px;
  background: #eef2ef;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.driver-cargo-tags span.warning {
  background: #fff3d7;
  color: #8b6518;
}

.driver-cargo-card small {
  color: var(--muted);
  font-weight: 800;
}

.wallet-choice {
  min-height: 34px;
  border-color: transparent;
  color: var(--ink);
}

.wallet-choice.selected,
.wallet-row span,
.review-checks .done {
  background: #111315;
  color: #fff;
}

.pricing-controls,
.pricing-admin-grid,
.zone-admin-grid {
  display: grid;
  gap: 10px;
}

.pricing-controls input,
.pricing-admin-grid input,
.zone-admin-grid input {
  min-height: 40px;
  background: #fff;
}

.money-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.money-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.pricing-admin-head,
.pricing-admin-grid label {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(72px, 1fr));
  gap: 8px;
  align-items: center;
}

.zone-admin-head,
.zone-admin-grid label {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 8px;
  align-items: center;
}

.pricing-admin-head,
.zone-admin-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-admin-grid label,
.zone-admin-grid label,
.pricing-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
  padding: 10px;
}

.pricing-admin-grid strong,
.zone-admin-grid strong {
  font-size: 13px;
}

.pricing-preview,
.pricing-history {
  display: grid;
  gap: 6px;
}

.pricing-preview span,
.pricing-preview small,
.pricing-history span,
.pricing-history small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pricing-preview strong {
  font-size: 15px;
  line-height: 1.35;
}

.pricing-preview-lines {
  display: grid;
  gap: 4px;
}

.pricing-preview-lines small {
  display: block;
}

.pricing-history {
  border-radius: 8px;
  background: #f8f9f7;
  border: 1px solid var(--line);
  padding: 10px;
}

.pricing-history strong,
.pricing-history small {
  display: block;
}

.pricing-history strong {
  font-size: 13px;
}

.pricing-history small {
  margin-top: 2px;
}

.admin-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.auth-code-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 10px;
  align-items: end;
}

.auth-code-grid .secondary-action {
  min-height: 46px;
  border-radius: 8px;
}

.auth-code-grid input {
  text-align: center;
  font-weight: 900;
}

.app-panel h2,
.driver-sheet h2 {
  font-size: 21px;
}

.pulse-loader {
  width: 64px;
  height: 64px;
  justify-self: center;
  border-radius: 50%;
  border: 8px solid #edf1ee;
  border-top-color: #111315;
  animation: spin 1s linear infinite;
}

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

.step-list {
  display: grid;
  gap: 8px;
}

.step-list span {
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid rgba(191, 219, 254, 0.72);
  padding: 10px 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.step-list .done {
  background: var(--success-bg);
  color: var(--success-fg);
}

.step-list .blocked {
  background: var(--danger-bg);
  color: var(--danger-fg);
}

button:disabled {
  cursor: not-allowed;
  border-color: #d7dce0;
  background: #dfe3e6;
  color: #7c858c;
}

.secondary-action {
  border-color: var(--line);
  background: #f8fbff;
  color: #1e40af;
  font-weight: 900;
}

.secondary-action.full {
  width: 100%;
  min-height: 52px;
}

.driver-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111315;
  color: #fff;
  font-weight: 900;
}

.driver-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.rating-row {
  display: flex;
  gap: 4px;
  color: #111315;
  font-size: 30px;
  letter-spacing: 0;
}

.star-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c6cbd0;
  font-size: 28px;
  line-height: 1;
}

.star-button.selected {
  color: var(--yellow);
}

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

.finance-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.driver-actions button,
.finance-actions button {
  min-height: 44px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: normal;
  line-height: 1.15;
}

.driver-review-card {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
}

.driver-review-card h3 {
  margin-top: 4px;
}

.driver-review-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-view.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.admin-topbar,
.panel-title,
.admin-actions,
.payout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar h1 {
  font-size: 46px;
}

.admin-session {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.metric-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-grid article {
  padding: 16px;
}

.metric-grid span,
.metric-grid small,
.panel-title span {
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 16px;
}

.metric-grid.hidden,
.admin-workspace.hidden,
.admin-actions.hidden,
[data-admin-auth="content"].hidden {
  display: none !important;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.admin-map-panel {
  min-height: 420px;
}

.map-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.map-filter-chip {
  min-height: 34px;
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.map-filter-chip.active {
  border-color: rgba(31, 138, 112, 0.42);
  background: #eef9f4;
  color: var(--green);
}

.admin-map {
  margin-top: 14px;
  height: 330px;
  border-radius: 8px;
}

.admin-map.mapbox-ready {
  background: #e9eeeb;
}

.admin-map .mapboxgl-map,
.admin-map .mapboxgl-canvas-container,
.admin-map .mapboxgl-canvas {
  width: 100%;
  height: 100%;
}

.admin-map .mapboxgl-ctrl-group {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(17, 19, 21, 0.16);
}

.admin-driver-map-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #727b80;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 5px 15px rgba(17, 19, 21, 0.24);
}

.admin-trip-map-marker {
  min-width: 58px;
  min-height: 32px;
  position: relative;
  border: 2px solid #fff;
  border-radius: 6px;
  background: var(--trip-marker-color, #2563eb);
  padding: 5px 8px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 19, 21, 0.25);
}

.admin-trip-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: var(--trip-marker-color, #2563eb);
  transform: translateX(-50%) rotate(45deg);
}

.admin-trip-map-marker span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.admin-trip-map-marker:hover,
.admin-trip-map-marker:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(17, 19, 21, 0.18);
  outline-offset: 2px;
}

.map-admin-ops {
  background:
    radial-gradient(circle at 22% 34%, rgba(31, 138, 112, 0.22) 0 42px, transparent 43px),
    radial-gradient(circle at 58% 26%, rgba(241, 200, 75, 0.24) 0 48px, transparent 49px),
    radial-gradient(circle at 72% 62%, rgba(36, 92, 115, 0.18) 0 54px, transparent 55px),
    linear-gradient(35deg, transparent 48%, rgba(36, 92, 115, 0.28) 49%, rgba(36, 92, 115, 0.28) 51%, transparent 52%),
    linear-gradient(145deg, transparent 47%, rgba(31, 138, 112, 0.18) 48%, rgba(31, 138, 112, 0.18) 52%, transparent 53%),
    repeating-linear-gradient(0deg, #eef2ef 0 26px, #dce5e0 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(17, 19, 21, 0.07) 41px 42px);
}

.ops-route {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 92, 115, 0.62);
  transform-origin: left center;
}

.ops-route.route-a {
  left: 24%;
  top: 42%;
  width: 42%;
  transform: rotate(18deg);
}

.ops-route.route-b {
  left: 42%;
  top: 64%;
  width: 34%;
  transform: rotate(-28deg);
  background: rgba(207, 77, 77, 0.62);
}

.ops-driver {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(17, 19, 21, 0.2);
}

.ops-driver.online {
  background: var(--green);
}

.ops-driver.warning {
  background: #c89422;
}

.ops-driver.busy {
  background: var(--blue);
}

.ops-driver.offline {
  background: #8a9296;
}

.ops-trip-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  box-shadow: 0 14px 28px rgba(17, 19, 21, 0.14);
}

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

.ops-trip-card strong {
  font-size: 12px;
}

.ops-trip-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ops-trip-card.alert {
  border-color: rgba(207, 77, 77, 0.36);
}

.ops-trip-card.scheduled {
  border-color: rgba(200, 148, 34, 0.38);
}

.map-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.map-legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend-row strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
}

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

.legend-dot.driver {
  background: #727b80;
}

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

.legend-dot.warning {
  background: #dc3f45;
}

.legend-dot.scheduled {
  background: #7c5ce0;
}

.trips-panel,
.drivers-panel {
  min-width: 0;
  overflow-x: auto;
  display: grid;
  gap: 14px;
}

.ops-status-panel {
  display: grid;
  gap: 12px;
}

.drivers-panel {
  align-content: start;
}

.pricing-panel,
.ops-status-panel {
  grid-column: 1 / -1;
}

.admin-login-panel {
  max-width: 760px;
  margin: 0 auto 18px;
}

.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: end;
}

.admin-login-grid input {
  min-height: 46px;
  background: #fff;
}

.admin-filterbar,
.driver-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip,
.history-chip {
  min-height: 36px;
  border-color: #d8dde1;
  background: #f8f9f7;
  font-size: 13px;
  font-weight: 900;
}

.filter-chip.active,
.history-chip.active {
  border-color: #111315;
  background: #111315;
  color: #fff;
}

.ops-table {
  display: grid;
  min-width: 760px;
  border-top: 1px solid var(--line);
}

.ops-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 10px 0;
  text-align: left;
}

.trips-table .ops-row {
  grid-template-columns: 1.1fr 1fr 0.65fr 1fr 92px;
}

.drivers-table .ops-row {
  grid-template-columns: 1.15fr 0.7fr 0.85fr 0.85fr 0.85fr;
}

.drivers-table .inline-driver-detail {
  grid-column: 1 / -1;
  margin: 0 0 12px;
}

.trips-table .inline-trip-detail {
  grid-column: 1 / -1;
  margin: 0 0 12px;
}

.driver-detail-head {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: start;
}

.ops-row.selected {
  background: #f5f6f3;
}

.ops-row strong {
  display: block;
  font-size: 14px;
}

.ops-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ops-head,
.driver-head {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.admin-trip-detail,
.driver-ledger-detail {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9f7;
}

.issue-stack,
.ledger-grid,
.month-summary,
.rating-review-list {
  display: grid;
  gap: 10px;
}

.issue-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.issue-stack span,
.ledger-grid div,
.month-summary article,
.rating-review-list article {
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: #3b4248;
  font-size: 13px;
  font-weight: 800;
}

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

.ledger-grid strong,
.month-summary strong,
.rating-review-list strong {
  display: block;
  margin-top: 4px;
}

.rating-review-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.trip-actions,
.driver-admin-actions,
.month-ledger-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

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

.month-ledger-actions {
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  align-items: center;
}

.trip-actions button,
.driver-admin-actions button,
.month-ledger-actions button,
.driver-export-action,
.document-expiry-panel button,
.document-correction-panel button {
  min-height: 42px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.event-timeline {
  display: grid;
  gap: 8px;
}

.event-timeline-head,
.event-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 12px;
  align-items: start;
}

.event-timeline-head {
  color: var(--muted);
}

.event-timeline-head strong {
  font-size: 13px;
}

.event-item {
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(25, 29, 32, 0.06);
}

.event-item time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.event-item strong {
  font-size: 13px;
}

.event-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.month-ledger-actions span,
.document-expiry-panel label,
.document-correction-panel span {
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
}

.month-ledger-actions small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.document-expiry-panel {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: end;
}

.document-expiry-panel label {
  display: grid;
  gap: 6px;
  color: #3b4248;
}

.document-expiry-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

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

.document-list span,
.driver-document-button {
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
}

.driver-document-button {
  min-height: 62px;
  border: 1px solid var(--line);
  text-align: left;
}

.driver-document-button strong,
.driver-document-button span {
  display: block;
}

.driver-document-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.driver-document-button.selected {
  border-color: #111315;
  background: #f5f6f3;
}

.document-correction-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
  align-items: center;
}

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

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

.pricing-list span {
  border-radius: 8px;
  background: #f5f6f3;
  padding: 12px;
  color: #3b4248;
  font-size: 13px;
  font-weight: 800;
}

.table-title {
  margin-top: 18px;
}

.table-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr 112px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.table-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-row button {
  padding: 0 10px;
}

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

.table-row.header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payout-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px;
    gap: 12px;
  }

  .brand {
    display: none;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-tab {
    justify-content: center;
    padding: 0 8px;
  }

  .nav-tab span:last-child {
    display: none;
  }

  .sidebar-panel {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .app-view.active {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .view-intro {
    max-width: none;
  }

  .view-intro h1 {
    font-size: 34px;
  }

  .phone-shell {
    height: 790px;
    max-height: none;
  }

  .payment-lifecycle-list article {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .payment-lifecycle-list span:last-child {
    grid-column: 2;
    justify-self: start;
  }

  .schedule-card,
  .schedule-queue-list article,
  .support-queue-list article,
  .launch-score-grid,
  .launch-control-grid,
  .support-queue-actions {
    grid-template-columns: 1fr;
  }

  .admin-workspace,
  .metric-grid,
  .admin-login-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .finance-actions {
    grid-template-columns: 1fr 1fr;
  }

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

  .webhook-simulator span {
    grid-column: 1 / -1;
  }

  .refund-decision-panel,
  .refund-decision-actions,
  .payout-batch-panel,
  .payout-batch-actions,
  .sla-list article,
  .dispatch-focus-card,
  .driver-document-list article,
  .dispatch-focus-card .dispatch-focus-actions,
  .mvp-phase-list article,
  .mvp-api-list article,
  .mvp-integration-list article,
  .mvp-pilot-list article,
  .integration-check-list article,
  .pilot-action-list article,
  .backend-model-list article {
    grid-template-columns: 1fr;
  }

  .mvp-phase-status,
  .integration-check-actions,
  .pilot-action-controls,
  .backend-model-actions,
  .api-contract-actions {
    justify-items: start;
    text-align: left;
  }

  .launch-button-group {
    justify-content: flex-start;
  }

	  .trip-actions,
	  .driver-admin-actions,
	  .month-ledger-actions,
	  .driver-detail-head,
	  .document-expiry-panel,
	  .issue-stack,
	  .ledger-grid,
	  .month-summary,
	  .document-list,
	  .document-correction-panel,
	  .event-timeline-head,
	  .event-item,
	  .driver-earnings-summary,
	  .driver-vehicle-summary,
	  .report-event,
	  .dispatch-driver {
	    grid-template-columns: 1fr 1fr;
	  }

	  .pricing-admin-head,
	  .zone-admin-head {
	    display: none;
	  }

	  .pricing-admin-grid label,
	  .zone-admin-grid label {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	  }

	  .pricing-admin-grid strong,
	  .zone-admin-grid strong {
	    grid-column: 1 / -1;
	  }
}

@media (min-width: 600px) and (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px;
    gap: 12px;
  }

  .brand,
  .sidebar-panel {
    display: none;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-tab {
    justify-content: center;
    padding: 0 8px;
  }

  .nav-tab span:last-child {
    display: none;
  }

  .main {
    padding: 20px;
  }

  .app-view.active {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    justify-items: center;
  }

  .view-intro {
    display: none;
  }

  .phone-stage {
    width: 100%;
  }

  .phone-shell {
    width: min(760px, calc(100vw - 40px));
    height: min(900px, calc(100vh - 132px));
    min-height: 620px;
    border-width: 8px;
    border-radius: 30px;
  }

  .mobile-map {
    height: 49%;
    min-height: 315px;
  }

  .driver-phone {
    --driver-header-h: 118px;
    --driver-map-h: 430px;
    --driver-tabbar-h: 64px;
  }

  .driver-map {
    height: var(--driver-map-h);
    min-height: var(--driver-map-h);
    max-height: var(--driver-map-h);
  }

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

  .bottom-sheet {
    margin-left: 18px;
    margin-right: 18px;
    max-height: none;
    padding: 18px 22px 22px;
    border-radius: 24px;
  }

  #view-user .bottom-sheet {
    margin-left: 18px;
    margin-right: 18px;
    max-height: none;
  }

  .mobile-tabbar {
    height: 64px;
  }

  .tabbar-item,
  .driver-tabbar-item,
  .mobile-tabbar span {
    min-height: 64px;
    font-size: 13px;
  }

  .order-sheet,
  .app-panel,
  .driver-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .sheet-handle,
  .order-sheet > .label,
  .app-panel > .label,
  .driver-sheet > .label,
  .order-sheet > h2,
  .app-panel > h2,
  .driver-sheet > h2,
  .step-list,
  .driver-card,
  .fare-row,
  .fare-breakdown,
  .fee-note,
  .wallet-row,
  .payment-note,
	  .driver-cargo-card,
	  .driver-earnings-summary,
	  .history-list,
	  .support-case-card,
	  .driver-compliance-card,
	  .driver-actions,
  .primary-action.full,
  .secondary-action.full,
  #estimateText,
  #invoiceText,
  #cancelText,
  #driverJobPrice {
    grid-column: 1 / -1;
  }

  .auth-code-grid,
  .compact-row,
  .cargo-grid,
  .auto-estimate,
  .choice-section,
  .choice-grid,
  .cargo-dimension-grid {
    grid-column: 1 / -1;
  }

  .cargo-weight-field {
    grid-column: 1 / -1;
  }

  .route-swap-button {
    grid-column: 1 / -1;
  }

  .auto-estimate {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .special-cargo-grid,
  .job-facts,
  .vehicle-strip {
    grid-column: 1 / -1;
  }

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

@media (max-width: 430px) {
  .main {
    padding: 0;
  }

  .admin-view .panel,
  .admin-view .metric-grid article {
    padding: 12px;
  }

  .admin-topbar,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions button {
    width: 100%;
  }

  .app-view.active {
    display: block;
  }

  .view-intro {
    display: none;
  }

  .phone-shell {
    width: 100vw;
    height: calc(100vh - 70px);
    min-height: 720px;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-map {
    height: 42vh;
    min-height: 315px;
  }

  .driver-phone {
    --driver-header-h: 102px;
    --driver-map-h: 360px;
    --driver-tabbar-h: 58px;
  }

  .driver-map {
    height: var(--driver-map-h);
    min-height: var(--driver-map-h);
    max-height: var(--driver-map-h);
  }

  .driver-header {
    padding: 14px 16px 16px;
  }

  .bottom-sheet {
    border-radius: 22px;
  }

  #view-user .bottom-sheet {
    margin-left: 8px;
    margin-right: 8px;
    max-height: none;
    border-radius: 22px;
  }

  .tabbar-item,
  .driver-tabbar-item {
    min-width: 0;
    padding: 0 2px;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .dispatch-driver,
  .trips-table .ops-row,
  .drivers-table .ops-row,
  .choice-grid,
  .cargo-size-choice,
  .launch-score-grid,
  .launch-control-grid,
  .webhook-simulator,
  .payment-lifecycle-list article,
  .schedule-card,
  .schedule-queue-list article,
  .support-queue-list article,
  .support-queue-actions,
  .trip-actions,
  .driver-admin-actions,
  .month-ledger-actions,
  .document-expiry-panel,
  .issue-stack,
  .ledger-grid,
  .month-summary,
  .document-list,
  .document-correction-panel,
  .driver-vehicle-summary,
  .driver-document-list article,
  .mvp-phase-list article,
  .mvp-api-list article,
  .mvp-integration-list article,
  .mvp-pilot-list article,
  .integration-check-list article,
  .pilot-action-list article,
  .backend-model-list article,
  .event-timeline-head,
  .event-item {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 54px;
  }

  .payment-lifecycle-list span:last-child {
    grid-column: auto;
    justify-self: start;
  }

  .payment-summary-card div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .dispatch-driver button,
  .trip-action,
  .launch-section-head,
  .launch-section-head button,
  .mvp-phase-status button {
    width: 100%;
  }

  .launch-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .mvp-phase-status {
    text-align: left;
  }

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

  .ops-head {
    display: none;
  }
}

/* Live trip map stays fixed while the active sheet snaps between two positions. */
#userPhoneShell:not(.user-full-page),
#driverPhoneShell:not(.driver-full-page) {
  overflow: hidden;
  overscroll-behavior: none;
  scroll-behavior: auto;
}

#userPhoneShell:not(.user-full-page) #userMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

#userPhoneShell:not(.user-full-page) .locate-button {
  top: calc(58% - 62px);
  bottom: auto;
}

#driverPhoneShell:not(.driver-full-page) .driver-header {
  position: absolute;
  z-index: 15;
  inset: 0 0 auto;
  width: 100%;
}

#driverPhoneShell:not(.driver-full-page) .driver-map {
  position: absolute;
  inset: var(--driver-header-h) 0 var(--driver-tabbar-h);
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
}

#driverPhoneShell:not(.driver-full-page) .driver-content {
  display: contents;
}

#driverPhoneShell:not(.driver-full-page) .mobile-tabbar {
  position: absolute;
  z-index: var(--z-tabbar);
  bottom: 0;
}

#userPhoneShell:not(.user-full-page) > [data-user-panel]:not(.hidden),
#driverPhoneShell:not(.driver-full-page) .driver-sheet:not(.hidden) {
  position: absolute;
  z-index: var(--z-sheet);
  top: var(--trip-sheet-top, 64px);
  right: 12px;
  bottom: var(--trip-sheet-bottom, 0px);
  left: 12px;
  width: auto;
  height: auto;
  max-height: none;
  margin: 0 !important;
  padding: 12px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.14);
  transform: translate3d(0, var(--trip-sheet-offset, 0px), 0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  scrollbar-gutter: stable;
}

#userPhoneShell:not(.user-full-page) > [data-user-panel].trip-sheet-collapsed,
#driverPhoneShell:not(.driver-full-page) .driver-sheet.trip-sheet-collapsed {
  overflow-y: hidden;
}

#userPhoneShell:not(.user-full-page) > [data-user-panel].trip-sheet-dragging,
#driverPhoneShell:not(.driver-full-page) .driver-sheet.trip-sheet-dragging,
#userPhoneShell:not(.user-full-page) > [data-user-panel].trip-sheet-immediate,
#driverPhoneShell:not(.driver-full-page) .driver-sheet.trip-sheet-immediate {
  transition: none;
}

#userPhoneShell:not(.user-full-page) .sheet-handle,
#driverPhoneShell:not(.driver-full-page) .sheet-handle {
  position: relative;
  width: 64px;
  height: 44px;
  min-height: 44px;
  margin: -8px auto -12px;
  border-radius: 0;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
}

#userPhoneShell:not(.user-full-page) .sheet-handle::before,
#driverPhoneShell:not(.driver-full-page) .sheet-handle::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: #c7cfd8;
  transform: translateX(-50%);
  transition: background-color 180ms ease, width 180ms ease;
}

#userPhoneShell:not(.user-full-page) .sheet-handle:hover::before,
#userPhoneShell:not(.user-full-page) .sheet-handle:focus-visible::before,
#driverPhoneShell:not(.driver-full-page) .sheet-handle:hover::before,
#driverPhoneShell:not(.driver-full-page) .sheet-handle:focus-visible::before {
  width: 52px;
  background: #8290a1;
}

#userPhoneShell:not(.user-full-page) .sheet-handle:focus-visible,
#driverPhoneShell:not(.driver-full-page) .sheet-handle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.26);
  outline-offset: -3px;
}

/* The map belongs to the live trip. Secondary app screens use the full canvas. */
#userPhoneShell.user-full-page {
  background: #fff;
}

#userPhoneShell.user-full-page #userMap {
  display: none;
}

#userPhoneShell.user-full-page > .app-panel:not(.hidden) {
  box-sizing: border-box;
  min-height: 100%;
  margin: 0 !important;
  padding: 76px 20px 32px !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}

#userPhoneShell.user-full-page > .app-panel:not(.hidden) .sheet-handle,
#driverPhoneShell.driver-full-page .driver-sheet:not(.hidden) .sheet-handle {
  display: none;
}

#driverPhoneShell.driver-full-page {
  background: #fff;
}

#driverPhoneShell.driver-full-page .driver-header,
#driverPhoneShell.driver-full-page .driver-map {
  display: none;
}

#driverPhoneShell.driver-full-page .driver-content {
  display: block;
  height: calc(100% - var(--driver-tabbar-h));
  min-height: calc(100% - var(--driver-tabbar-h));
}

#driverPhoneShell.driver-full-page .driver-sheet:not(.hidden) {
  box-sizing: border-box;
  min-height: 100%;
  margin: 0 !important;
  padding: 28px 20px 32px !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  border: 0;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}

#driverPhoneShell.driver-full-page .mobile-tabbar {
  background: rgba(255, 255, 255, 0.98);
}
