:root {
  color-scheme: light;
  --ink: #101820;
  --ink-soft: #40505c;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --line: #d9e1e7;
  --accent: #0c6b58;
  --accent-strong: #084c40;
  --gold: #bc8b2c;
  --sky: #d9eef8;
  --rose: #f4d7d0;
  --shadow: 0 18px 48px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(217, 238, 248, 0.9), transparent 32%),
    linear-gradient(315deg, rgba(244, 215, 208, 0.85), transparent 30%),
    #f7f3ed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.demo-locked {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.demo-locked .app-shell {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.demo-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 237, 0.92)),
    linear-gradient(135deg, rgba(12, 107, 88, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(188, 139, 44, 0.18), transparent 38%),
    #f7f3ed;
}

.splash-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(780px, 100%);
  padding: min(6vw, 52px) 0;
  text-align: center;
}

.splash-logo {
  width: min(270px, 46vw);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(16, 24, 32, 0.16));
}

.splash-card h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.splash-copy {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.splash-form-row {
  display: grid;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 8px;
}

.splash-form-row label {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 750;
}

.splash-phone-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
}

.splash-phone-actions .primary-btn {
  min-width: 132px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

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

.topbar-logo {
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(16, 24, 32, 0.12));
}

.topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.kicker,
.step-label {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layout,
.ride-workspace,
.booking-grid,
.admin-workspace,
.driver-workspace {
  display: grid;
  gap: 18px;
}

.booking-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 225, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  width: min(560px, 100%);
  padding: 30px;
}

.booking-panel,
.quote-panel,
.customer-profile-panel,
.status-panel,
.dispatch-panel,
.admin-detail-panel {
  padding: 24px;
}

.admin-screen-tabs,
.dispatch-screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dispatch-screen-tabs {
  margin-top: 4px;
}

.admin-screen-tab,
.dispatch-screen-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.dispatch-screen-tab {
  cursor: pointer;
  font: inherit;
}

.admin-screen-tab:hover,
.admin-screen-tab.is-active,
.dispatch-screen-tab:hover,
.dispatch-screen-tab.is-active {
  border-color: var(--accent);
  background: #e8f5f3;
  color: var(--accent-strong);
}

.panel-heading {
  margin-bottom: 22px;
}

.compact-heading {
  margin-bottom: 16px;
}

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

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.muted {
  color: var(--ink-soft);
  line-height: 1.55;
}

.stacked-form,
.booking-form,
.field-row {
  display: grid;
  gap: 10px;
}

.booking-form {
  gap: 16px;
}

.field-row label,
.stacked-form label,
.vehicle-picker legend,
.preference-grid legend,
.preference-group span {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 750;
}

.location-field {
  position: relative;
}

.location-suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 15;
  max-height: 258px;
  overflow-y: auto;
  border: 1px solid rgba(12, 107, 88, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.18);
  padding: 6px;
}

.location-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 46px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.location-suggestion strong,
.location-suggestion small {
  display: block;
}

.location-suggestion strong {
  font-size: 0.93rem;
}

.location-suggestion small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.location-suggestion:hover,
.location-suggestion.is-active {
  background: rgba(12, 107, 88, 0.1);
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 107, 88, 0.14);
}

.booking-phone-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.booking-phone-status.is-existing {
  color: #76540d;
}

.booking-phone-status.is-new {
  color: var(--accent-strong);
}

.booking-phone-login {
  display: grid;
  grid-template-columns: minmax(160px, 220px) auto;
  gap: 8px;
  align-items: center;
}

.booking-phone-login[hidden] {
  display: none;
}

.booking-phone-login input {
  min-height: 36px;
  padding: 0 12px;
}

.booking-login-btn {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.booking-create-account-btn {
  width: auto;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr);
  gap: 12px;
}

.vehicle-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
}

.vehicle-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.vehicle-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  min-height: 154px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.vehicle-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

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

.vehicle-option small {
  margin-top: 4px;
  color: var(--ink-soft);
}

.vehicle-price {
  color: var(--accent-strong) !important;
  font-size: 1.1rem;
  font-weight: 900;
}

.fine-print {
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.vehicle-model {
  color: var(--accent-strong);
  font-weight: 800;
}

.vehicle-popover-trigger {
  position: relative;
  cursor: help;
  outline: none;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.vehicle-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: none;
  width: min(280px, 78vw);
  padding: 12px 14px;
  border: 1px solid rgba(12, 107, 88, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.18);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.vehicle-popover b,
.vehicle-popover ul,
.vehicle-popover li {
  display: block;
}

.vehicle-popover ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.vehicle-popover li {
  display: list-item;
  margin: 4px 0;
}

.vehicle-popover-trigger:hover .vehicle-popover,
.vehicle-popover-trigger:focus-visible .vehicle-popover,
.vehicle-popover-trigger:focus-within .vehicle-popover {
  display: block;
}

.concierge-picker {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.concierge-picker legend {
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 750;
}

.concierge-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  text-align: center;
}

.concierge-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.concierge-toggle {
  position: relative;
  width: 50px;
  height: 28px;
  border: 1px solid rgba(64, 80, 92, 0.34);
  border-radius: 999px;
  background: #dce5ea;
  box-shadow: inset 0 1px 3px rgba(16, 24, 32, 0.16);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.concierge-toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 24, 32, 0.28);
  transition: transform 160ms ease;
}

.concierge-toggle-input:checked + .concierge-toggle {
  border-color: var(--accent);
  background: var(--accent);
}

.concierge-toggle-input:checked + .concierge-toggle::after {
  transform: translateX(22px);
}

.concierge-toggle-input:focus-visible + .concierge-toggle {
  box-shadow: 0 0 0 4px rgba(12, 107, 88, 0.14), inset 0 1px 3px rgba(16, 24, 32, 0.16);
}

.concierge-option strong,
.concierge-option small {
  display: block;
}

.concierge-option strong {
  font-size: 1.1rem;
}

.concierge-option small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-weight: 800;
}

.concierge-popover {
  width: min(380px, 82vw);
  text-align: left;
}

.booking-preference-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
}

.booking-preference-picker legend {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 750;
}

.booking-preference-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

.booking-preference-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.booking-preference-option:has(input:checked) {
  border-color: rgba(12, 107, 88, 0.48);
  background: rgba(12, 107, 88, 0.1);
  color: var(--accent-strong);
}

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

.customer-profile-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin: 0 0 18px;
}

.customer-profile-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.customer-profile-summary span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-profile-summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.profile-auth-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(12, 107, 88, 0.24);
  border-radius: 8px;
  background: rgba(12, 107, 88, 0.06);
}

.profile-auth-fields p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.preference-grid legend {
  grid-column: 1 / -1;
}

.preference-group {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.radio-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.payment-section {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.pay-actions {
  min-width: min(260px, 100%);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.apple-pay-fallback {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
}

.primary-btn:hover {
  background: var(--accent-strong);
}

.secondary-btn {
  background: var(--ink);
  color: #fff;
}

.ghost-btn {
  min-height: 34px;
  background: transparent;
  color: var(--accent-strong);
  padding: 0 8px;
}

.full-width {
  width: 100%;
}

.apple-pay-button {
  width: 100%;
  height: 46px;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: book;
  -apple-pay-button-style: black;
}

.apple-pay-fallback {
  width: 100%;
  background: #050505;
  color: #fff;
}

.quote-panel {
  display: grid;
  gap: 18px;
}

.route-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 116px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 46px 18px 18px;
  border-radius: 8px;
  background: #fbfcfd;
  border: 1px solid var(--line);
}

.map-grid {
  display: none;
}

.map-region-label {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-line {
  position: relative;
  display: block;
  flex: 0 0 min(96px, 16vw);
  order: 2;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  left: auto !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
}

.route-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.route-line[hidden] {
  display: none !important;
}

.map-marker,
.car-dot {
  display: block;
}

.map-marker {
  position: static;
  min-width: 0;
  transform: none;
  text-align: center;
}

.pickup-marker {
  order: 1;
}

.dropoff-marker {
  order: 3;
}

.map-marker strong {
  display: none;
}

.map-marker small {
  display: block;
  max-width: min(260px, 38vw);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.car-dot {
  display: none;
}

.quote-summary h2 {
  margin: 0 0 4px;
  font-size: 3rem;
}

.fare-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.fare-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fare-list dt {
  color: var(--ink-soft);
  font-weight: 700;
}

.fare-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.fare-list .surcharge-total {
  border-top-color: var(--accent);
}

.fare-list .surcharge-total dt,
.fare-list .surcharge-total dd {
  color: var(--accent-strong);
}

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

.confirmation-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(12, 107, 88, 0.22);
  border-radius: 8px;
  background: #fbfcfd;
}

.confirmation-panel[hidden] {
  display: none !important;
}

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

.confirmation-grid div,
.confirmation-details div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.confirmation-grid span,
.confirmation-details dt {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.confirmation-grid strong,
.confirmation-details dd {
  min-height: 1.25em;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

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

.additional-confirmation-card {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.additional-confirmation-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.payment-screen {
  border-color: rgba(21, 88, 106, 0.28);
}

.paypal-brand-panel,
.paypal-card-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.paypal-brand-panel {
  border-color: rgba(0, 48, 135, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 48, 135, 0.06), rgba(0, 156, 222, 0.03)),
    #fff;
}

.paypal-brand-row,
.paypal-card-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.paypal-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.paypal-wordmark-pay {
  color: #003087;
}

.paypal-wordmark-pal {
  color: #009cde;
}

.paypal-brand-copy,
.paypal-card-panel-header > div:first-child {
  display: grid;
  gap: 3px;
}

.paypal-brand-copy strong,
.paypal-card-panel-header strong {
  color: #003087;
  font-size: 0.98rem;
}

.paypal-brand-copy span,
.paypal-card-panel-header span,
.paypal-card-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.paypal-lock-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 156, 222, 0.12);
  color: #003087;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.payment-summary,
.payment-line-items {
  display: grid;
  gap: 10px;
}

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

.payment-summary div,
.payment-line-items div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-summary span,
.payment-line-items dt {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-summary strong,
.payment-line-items dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.payment-line-items {
  margin: 0;
}

.tip-line dd {
  display: grid;
  gap: 10px;
}

.tip-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tip-option {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.tip-option.is-active,
.tip-option:hover {
  border-color: var(--accent);
  background: rgba(28, 115, 121, 0.08);
  color: var(--accent-strong);
}

.compact-field {
  max-width: 220px;
}

.payment-total-line {
  border-color: var(--accent) !important;
  background: rgba(28, 115, 121, 0.06) !important;
}

.payment-total-line dd {
  font-size: 1.2rem;
}

.paypal-fields {
  display: grid;
  gap: 14px;
}

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

.paypal-card-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.paypal-card-brands span {
  padding: 6px 10px;
  border: 1px solid rgba(0, 48, 135, 0.12);
  border-radius: 999px;
  background: #f7fafc;
  color: #003087;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.paypal-card-note {
  margin: 0;
}

.paypal-hosted-field {
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.paypal-hosted-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 107, 88, 0.12);
}

.payment-result-panel,
.payment-attempts-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(12, 107, 88, 0.22);
  border-radius: 8px;
  background: rgba(12, 107, 88, 0.06);
}

.payment-result-panel h3,
.payment-attempts-panel h3 {
  margin: 0;
  font-size: 1.05rem;
}

.payment-result-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.payment-result-refs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-result-refs div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-result-refs dt {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payment-result-refs dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.paypal-submit-btn {
  background: #ffc439;
  color: #111827;
}

.paypal-submit-btn:hover,
.paypal-submit-btn:focus-visible {
  background: #f0b72f;
  color: #111827;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.payment-info-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-info-grid legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 850;
}

.message-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.message-log {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.message-log li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.message-log time {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.save-status {
  min-height: 24px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.driver-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.driver-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.driver-message-composer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.message-preview {
  min-height: 76px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  line-height: 1.45;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  background: #101820;
  color: #fff;
  box-shadow: var(--shadow);
}

.admin-hero .muted,
.admin-hero .step-label {
  color: rgba(255, 255, 255, 0.78);
}

.admin-hero h2 {
  margin-bottom: 6px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.admin-window-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-window-select {
  width: min(360px, 100%);
  min-height: 56px;
  margin: 0 0 8px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
}

.admin-window-select option {
  color: var(--ink);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
  min-width: min(420px, 100%);
}

.driver-metrics {
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.driver-metrics div {
  align-content: start;
}

.driver-metrics span {
  order: 1;
}

.driver-metrics strong {
  order: 2;
}

.admin-metrics div {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-metrics strong {
  font-size: 1.55rem;
  line-height: 1;
}

.admin-metrics span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.admin-section-heading h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.admin-section-heading select {
  width: min(260px, 100%);
}

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

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

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

.admin-table th {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 0.92rem;
}

.customer-history-row {
  cursor: pointer;
}

.customer-history-row:hover,
.customer-history-row:focus-visible,
.customer-history-row.is-current {
  background: #e8f5f3;
}

.customer-history-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.dispatch-concierge-row td {
  padding-top: 0;
  border-top: 0;
}

.admin-table strong,
.detail-body strong {
  display: block;
  margin-bottom: 3px;
}

.admin-table small,
.detail-body small {
  color: var(--ink-soft);
  line-height: 1.4;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
}

.driver-detail-edit-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

.config-create-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

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

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

.product-create-secondary-grid {
  grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(120px, auto));
  align-items: end;
}

.product-description-field {
  min-width: 0;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.compact-check-row {
  min-height: 32px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.config-table {
  min-width: 980px;
}

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

.history-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.history-summary strong {
  color: var(--ink);
}

.history-summary span {
  color: var(--ink-soft);
  font-weight: 800;
}

.history-table-wrap {
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-table {
  min-width: 1180px;
}

.history-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.config-table .inline-input,
.product-table .inline-input {
  width: 100%;
  margin-bottom: 8px;
}

.config-table .config-value,
.config-table .config-description {
  display: block;
  max-width: 320px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.config-table tr.is-editing,
.product-table tr.is-editing {
  background: rgba(28, 115, 121, 0.06);
}

.config-name-input {
  margin-top: 10px;
}

.config-table td:last-child,
.product-table td:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(82px, auto));
  gap: 8px;
  align-items: center;
}

.config-table td:last-child .save-status,
.product-table td:last-child .save-status {
  grid-column: 1 / -1;
}

.danger-btn {
  min-height: 38px;
  color: #8b3129;
}

.inline-select {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.inline-input {
  min-height: 38px;
  margin-top: 8px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.dispatch-inline-field,
.dispatch-driver-status {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.dispatch-inline-field > span,
.dispatch-driver-status > span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dispatch-inline-field .inline-input {
  width: 100%;
  margin-top: 0;
}

.dispatch-driver-message {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.dispatch-driver-message .inline-input {
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.dispatch-driver-message .save-status {
  grid-column: 1 / -1;
}

.concierge-window {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.concierge-window.is-running {
  border-color: rgba(12, 107, 88, 0.35);
  background: rgba(12, 107, 88, 0.05);
}

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

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

.concierge-window-actions .secondary-btn,
.concierge-window-actions .danger-btn {
  min-height: 38px;
}

.concierge-timer-field {
  max-width: 240px;
  margin-top: 0;
}

.concierge-timer-field .inline-input {
  margin-top: 0;
  font-weight: 850;
}

.concierge-window-meta {
  color: var(--ink-soft);
}

.confirm-ride-btn {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
}

.confirm-ride-btn:hover {
  background: var(--accent-strong);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
}

.status-pill.confirmed,
.status-pill.verified,
.status-pill.paid {
  background: #e6f4ef;
  color: #0b5a4b;
}

.status-pill.en-route,
.status-pill.arrived,
.status-pill.pending,
.status-pill.assigned {
  background: #fff2d6;
  color: #76540d;
}

.status-pill.needs-driver,
.status-pill.unassigned {
  background: #f8e2df;
  color: #8b3129;
}

.status-pill.active,
.status-pill.dropoff-complete,
.status-pill.completed {
  background: #d9eef8;
  color: #15516a;
}

.status-pill.off-shift {
  background: #eceff2;
  color: #56616a;
}

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

.detail-body {
  display: grid;
  gap: 14px;
}

.detail-kpis,
.detail-list {
  display: grid;
  gap: 10px;
}

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

.detail-kpis div,
.detail-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-list {
  margin: 0;
}

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

.driver-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.driver-card:hover,
.driver-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(12, 107, 88, 0.12);
  outline: none;
}

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

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

.assignment-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #9c2f27;
  font-size: 0.9rem;
  font-weight: 700;
}

dialog {
  width: min(420px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16, 24, 32, 0.35);
}

.receipt {
  padding: 24px;
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 680px);
    padding-top: 18px;
  }

  .topbar,
  .payment-section,
  .admin-hero,
  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .splash-phone-actions .primary-btn {
    width: 100%;
  }

  .booking-phone-login {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .booking-login-btn {
    width: 100%;
  }

  .booking-grid,
  .two-column,
  .customer-profile-summary,
  .vehicle-picker,
  .booking-preference-picker,
  .preference-grid,
  .message-composer,
  .driver-grid,
  .driver-controls,
  .driver-detail-edit-grid,
  .config-create-grid,
  .product-create-grid,
  .product-create-secondary-grid,
  .history-filter-grid,
  .admin-detail-grid,
  .admin-metrics,
  .confirmation-grid,
  .confirmation-details,
  .payment-summary,
  .payment-result-refs,
  .three-column,
  .detail-kpis,
  .driver-roster {
    grid-template-columns: 1fr;
  }

  .paypal-brand-row,
  .paypal-card-panel-header {
    flex-direction: column;
    align-items: start;
  }

  .paypal-card-brands {
    justify-content: flex-start;
  }

  .login-panel,
  .booking-panel,
  .quote-panel,
  .customer-profile-panel,
  .status-panel,
  .dispatch-panel,
  .admin-detail-panel {
    padding: 18px;
  }

  .user-chip {
    justify-content: space-between;
    border-radius: 8px;
  }
}
