
:root {
  --green: #1D2D20;
  --green-dark: #121C14;
  --green-light: #EBF0EC;
  --green-muted: #3A4C3D;

  --rose: #8C273D;
  --rose-light: #F4E7E9;

  --gold: #B68D40;
  --gold-light: #F9F4EB;

  --ink: #111412;
  --muted: #646E66;
  --line: #DCE2DD;
  --paper: #F6F8F5;
  --white: #FFFFFF;

  --shadow-sm: 0 4px 16px rgba(29, 45, 32, 0.04);
  --shadow: 0 12px 32px rgba(29, 45, 32, 0.08);
  --shadow-lg: 0 24px 64px rgba(29, 45, 32, 0.12);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body { min-height: 100dvh; background: var(--paper); display: flex; flex-direction: column; }
#app { width: 100%; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer; text-decoration: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

h1, h2, h3, h4, .eyebrow, .brand-name, .price { font-family: var(--font-display); }
h1 { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-muted); }

.icon { width: 24px; height: 24px; vertical-align: middle; flex: none; stroke-width: 1.5px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; }

.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; gap: 0.75rem; }
.flex-col { display: flex; flex-direction: column; gap: 0.75rem; }
.grid { display: grid; gap: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.full { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 500; font-size: 1rem; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent; background: var(--green); color: var(--white);
  white-space: nowrap; outline: none;
}
.btn:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover:not(:disabled) { background: var(--paper); border-color: var(--muted); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover:not(:disabled) { background: var(--green-light); }
.btn.danger { background: var(--rose-light); color: var(--rose); }
.btn.danger:hover:not(:disabled) { background: var(--rose); color: var(--white); }
.btn.small-btn { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }
.btn.large-btn { padding: 1.125rem 2rem; font-size: 1.125rem; font-family: var(--font-display); }
.icon-button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: none; background: transparent; color: var(--muted);
  transition: all 0.2s;
}
.icon-button:hover { background: var(--line); color: var(--ink); }
.icon-button.circular { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.icon-button.circular.primary { background: var(--green); border-color: var(--green); color: var(--white); }

.form-grid { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--green-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 1rem 1.25rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; transition: border-color 0.2s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.field textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-help { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.form-error { color: var(--rose); font-size: 0.875rem; background: var(--rose-light); padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.check-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; cursor: pointer; }
.check-row input { width: 1.25rem; height: 1.25rem; accent-color: var(--green); cursor: pointer; }

.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(29,45,32,0.04); overflow: hidden; }
.card.pad { padding: 2rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 2rem 1rem; }
.divider { height: 1px; background: var(--line); margin: 1.5rem 0; width: 100%; }

.pilot-readiness { margin-bottom: 1.5rem; }
.pilot-readiness-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pilot-readiness-header h2 { margin-bottom: .35rem; }
.pilot-readiness-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.pilot-readiness-group { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pilot-readiness-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.pilot-readiness-group-head h3 { font-size: 1.15rem; }
.pilot-readiness-group-head p { max-width: 38rem; }
.pilot-readiness-group .pilot-readiness-grid { margin-top: .75rem; }
.pilot-readiness-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0; }
.pilot-readiness-row[data-readiness-group="external"] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold-light) 25%, var(--white)); }
.pilot-readiness-row[data-readiness-group="complete"] { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.pilot-readiness-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pilot-readiness-row h3 { font-size: 1rem; overflow-wrap: anywhere; }
.pilot-readiness-row > .small { margin-top: .6rem; overflow-wrap: anywhere; }
.pilot-push-fields { list-style: none; margin: .75rem 0 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .35rem; }
.pilot-push-field { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.pilot-push-field-name { overflow-wrap: anywhere; }
.pilot-check-form { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.pilot-check-form .field { margin-top: .7rem; }
.pilot-check-form textarea { min-height: 62px; padding: .65rem .8rem; border-radius: var(--radius-sm); }
.pilot-save-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.pilot-selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.pilot-selection { border-top: 1px solid var(--line); padding-top: 1.25rem; min-width: 0; }
.pilot-selection h3 { font-size: 1.1rem; }
.pilot-selection ul { list-style: none; margin-top: .8rem; }
.pilot-selection-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); min-width: 0; }
.pilot-selection-item > div { display: flex; flex-direction: column; min-width: 0; }
.pilot-selection-item strong, .pilot-selection-item span { overflow-wrap: anywhere; }
.pilot-selection-item .btn { flex: none; }
.pilot-wizard { margin-bottom: 1.5rem; border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.pilot-wizard-progress { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 1.5rem; }
.pilot-wizard-progress li { display: grid; gap: .35rem; font-size: .75rem; color: var(--muted); min-width: 0; }
.pilot-wizard-progress li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--line); font-weight: 800; }
.pilot-wizard-progress li.complete { color: var(--green-dark); }
.pilot-wizard-progress li.complete span { background: var(--green); color: var(--white); }
.pilot-wizard-step { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.pilot-wizard-step-title { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.pilot-wizard-step-title > span { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; background: var(--green-dark); color: var(--white); font-weight: 800; }
.pilot-wizard-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pilot-wizard-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--white); min-width: 0; }
.pilot-wizard-option-head { display: flex; justify-content: space-between; gap: .75rem; }
.pilot-wizard-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0; }
.pilot-provider-grid, .pilot-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pending-access-panel { margin-bottom: 1.5rem; border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.pending-access-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.pending-field-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; justify-content: flex-end; }
.pilot-provider-grid > div, .pilot-guide-grid > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--white); min-width: 0; }
.pilot-guide-list { display: grid; gap: .45rem; padding-left: 1.15rem; margin-top: .65rem; font-size: .85rem; color: var(--muted); }
.mobile-launch-readiness { margin-bottom: 1.5rem; }
.mobile-launch-group { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.mobile-launch-group-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.mobile-launch-group-head h3 { font-size: 1.15rem; }
.mobile-launch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.release-preparation .mobile-launch-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.release-preparation .account-row, .release-preparation .pilot-push-field { flex-wrap: wrap; gap: .5rem; }
.release-preparation code { min-width: 0; overflow-wrap: anywhere; }
.release-preparation .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.mobile-launch-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-width: 0; }
.mobile-launch-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.mobile-launch-item h3 { font-size: 1rem; overflow-wrap: anywhere; }
.mobile-launch-item > p { margin-top: .6rem; overflow-wrap: anywhere; }
.account-deletion, .account-info-links { grid-column: 1 / -1; }
.account-info-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100dvh; }
.sidebar { background: var(--green); color: var(--white); padding: 2.5rem 1.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); display: grid; place-items: center; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.invoice-header { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.invoice-logo-placeholder { min-height: 78px; border: 2px dashed var(--gold); border-radius: var(--radius); background: var(--gold-light); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .6rem; }
.invoice-logo-placeholder strong { color: var(--gold); font-family: var(--font-display); letter-spacing: .12em; }
.invoice-logo-placeholder span { margin-top: .25rem; font-size: .68rem; line-height: 1.25; }
.square-card-container { min-height: 90px; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.invoice-heading h3 { margin: .1rem 0 .25rem; font-size: 1.5rem; }
.invoice-heading .eyebrow { margin: 0; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.65rem; font-family: var(--font-body); letter-spacing: 0.15em; color: var(--gold-light); opacity: 0.8; text-transform: uppercase; margin-top: 0.125rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-button { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: transparent; border: none; color: rgba(255,255,255,0.7); text-align: left; font-size: 1rem; font-weight: 500; transition: all 0.2s; }
.nav-button:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-button.active { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-count { margin-left: auto; background: var(--rose); color: var(--white); padding: 0.125rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.side-note { background: rgba(255,255,255,0.05); padding: 1.25rem; border-radius: var(--radius); font-size: 0.875rem; color: rgba(255,255,255,0.8); }
.identity { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-light); color: var(--gold); display: grid; place-items: center; font-weight: 600; font-size: 0.875rem; flex: none; }
.avatar.large { width: 56px; height: 56px; font-size: 1.25rem; }
.logout { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); background: transparent; color: var(--white); font-size: 0.875rem; transition: background 0.2s; }
.logout:hover { background: rgba(255,255,255,0.05); }
.top-signout { display: none; }

.main { padding: 0 3rem 3rem; max-width: 1400px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }
.topbar { height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.breadcrumb { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.breadcrumb span { color: var(--ink); }
.connection { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot.amber { background: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 1rem; }
.pill-date { font-size: 0.875rem; font-weight: 500; color: var(--muted); padding: 0.5rem 1rem; background: var(--white); border-radius: var(--radius-full); border: 1px solid var(--line); }
.page-heading { margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }

.demo-bar { background: var(--gold-light); color: var(--gold); padding: 0.5rem 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; font-weight: 500; }
.demo-bar .switch { display: flex; gap: 0.25rem; }
.demo-bar button { background: transparent; border: none; padding: 0.375rem 0.75rem; border-radius: var(--radius-sm); color: inherit; transition: background 0.2s; }
.demo-bar button.selected { background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); }
.demo-bar .reset { text-decoration: underline; font-size: 0.75rem; }

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; background: var(--green-light); color: var(--green); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.requested, .badge.scheduled { background: var(--gold-light); color: var(--gold); }
.badge.en_route, .badge.assigned { background: #E6F0F9; color: #2B5C8F; }
.badge.cancelled { background: var(--rose-light); color: var(--rose); }

.notice { padding: 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.25rem; }
.notice strong { color: var(--ink); }
.notice.amber { background: var(--gold-light); border-color: rgba(182, 141, 64, 0.2); color: #7A5B22; }
.notice.error { background: var(--rose-light); border-color: rgba(140, 39, 61, 0.2); color: var(--rose); }
.empty { text-align: center; padding: 4rem 2rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.empty .icon { width: 48px; height: 48px; color: var(--line); margin-bottom: 0.5rem; }
.empty h3 { color: var(--ink); }

/* Address Input with Icon */
.input-with-action { display: flex; gap: 0.5rem; align-items: center; }
.input-with-action input { flex: 1; }
.address-field { position: relative; }
.suggestions-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); z-index: 100; max-height: 250px; overflow-y: auto; margin-top: 0.5rem; }
.suggestion-item { padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--paper); cursor: pointer; transition: background 0.2s; font-size: 0.875rem; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--paper); }
.address-status { position: absolute; right: 1rem; top: 2.75rem; font-size: 0.75rem; }

/* Passenger App */
.passenger-layout { max-width: 560px; margin: 0 auto; width: 100%; flex: 1; display: flex; flex-direction: column; position: relative; }
.dest-home { display: flex; flex-direction: column; flex: 1; }
.dest-map-bg { position: absolute; inset: -2rem -3rem; z-index: 0; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; }
.dest-map-bg .map-mount { width: 100%; height: 100%; min-height: 400px; }
.dest-bottom-sheet { position: relative; z-index: 10; margin-top: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding: 2rem; padding-bottom: max(2rem, env(safe-area-inset-bottom)); box-shadow: 0 -12px 48px rgba(0,0,0,0.1); background: var(--white); }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 1.5rem; display: none; }

.route-inputs { display: flex; flex-direction: column; gap: 1rem; position: relative; margin: 1.5rem 0; }
.route-line { position: absolute; left: 18px; top: 24px; bottom: 24px; width: 2px; background: var(--line); z-index: 1; }
.route-inputs .field { position: relative; z-index: 2; flex-direction: row; align-items: center; gap: 1rem; background: var(--white); border-radius: var(--radius); }
.route-inputs .address-field:focus-within,
.route-inputs .address-field:has(.suggestions-dropdown) { z-index: 3; }
.route-inputs input { border: none; background: transparent; padding: 1rem; font-size: 1rem; border: 1px solid var(--line); flex: 1; border-radius: var(--radius); }
.route-inputs input.large-input { font-size: 1.125rem; padding: 1.25rem 1rem; font-weight: 500; border-color: var(--green); box-shadow: 0 4px 12px rgba(29, 45, 32, 0.05); }

.quick-destinations { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid transparent; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; }
.quick-btn:hover { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.quick-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--green); box-shadow: 0 2px 4px rgba(0,0,0,0.02); flex: none; }

.booking-confirm-layout { display: flex; flex-direction: column; flex: 1; }
.map-panel { position: absolute; inset: -2rem -3rem; z-index: 0; border-radius: var(--radius-lg); overflow: hidden; }
.map-panel .map-mount { width: 100%; height: 100%; min-height: 350px; background: var(--paper); }
.booking-sheet { position: relative; z-index: 10; margin-top: auto; padding: 2rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 -12px 48px rgba(0,0,0,0.1); max-height: 85dvh; overflow-y: auto; background: var(--white); }
.segmented { display: flex; background: var(--paper); padding: 0.25rem; border-radius: var(--radius-full); }
.segmented button { flex: 1; padding: 0.75rem; border-radius: var(--radius-full); border: none; background: transparent; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.segmented button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.vehicle-options { display: flex; flex-direction: column; gap: 0.5rem; }
.vehicle-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: all 0.2s; text-align: left; }
.vehicle-option:hover { border-color: var(--muted); }
.vehicle-option.active { border-color: var(--green); background: var(--green-light); box-shadow: 0 0 0 1px var(--green); }
.vehicle-option strong { font-size: 1rem; font-weight: 600; display: block; }
.vehicle-option small { color: var(--muted); font-size: 0.75rem; }
.vehicle-option .icon { color: var(--green); width: 32px; height: 32px; margin-right: 0.5rem; }
.vehicle-option-price { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }

.fare-preview { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.fare-preview .price { font-size: 1.5rem; font-weight: 600; color: var(--green); font-family: var(--font-display); line-height: 1; margin-top: 0.25rem; }
.advanced-options { background: var(--paper); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); }

.tracking-layout { display: flex; flex-direction: column; flex: 1; }
.tracking-sheet { position: relative; z-index: 10; margin-top: auto; padding: 2rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 -12px 48px rgba(0,0,0,0.1); background: var(--white); }
.tracking-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.tracking-status { font-size: 1.5rem; color: var(--green); margin-bottom: 0.25rem; }
.eta-badge { background: var(--green); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--radius-full); font-weight: 600; font-size: 0.875rem; }
.driver-profile { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--paper); border-radius: var(--radius); }
.driver-info { flex: 1; }
.driver-info strong { font-size: 1.125rem; font-weight: 600; }
.vehicle-info { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.plate { display: inline-block; padding: 0.125rem 0.5rem; background: var(--gold-light); color: var(--gold); border-radius: 4px; font-family: monospace; font-weight: 700; font-size: 0.75rem; border: 1px solid var(--gold); }
.driver-actions { display: flex; gap: 0.5rem; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.preset-messages { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.preset-messages .badge { border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.preset-messages .badge:hover { background: var(--green-light); border-color: var(--green); }
.ride-messages { border-top: 1px solid var(--line); padding-top: 1rem; }
.ride-messages h4 { margin-bottom: .6rem; font-weight: 600; }
.ride-message { padding: .55rem .75rem; margin-top: .45rem; background: var(--paper); border-radius: var(--radius-sm); }
.ride-message > div { display: flex; justify-content: space-between; gap: .75rem; }
.ride-message p { margin-top: .15rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-queue { margin-bottom: 1.5rem; }
.support-case-list { display: grid; gap: .75rem; }
.support-case-item { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.support-case-item p { margin-top: .25rem; }

.timeline { display: flex; justify-content: space-between; margin: 2rem 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); z-index: 0; }
.timeline-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }
.timeline-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--line); border: 4px solid var(--white); transition: background 0.3s; }
.timeline-step.done .timeline-dot { background: var(--green); }
.timeline-label { font-size: 0.65rem; text-transform: uppercase; font-weight: 600; color: var(--muted); text-align: center; }
.timeline-step.done .timeline-label { color: var(--green); }

.trip-list { display: grid; gap: 1.5rem; }
.trip-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.trip-top { display: flex; justify-content: space-between; align-items: flex-start; }
.trip-route { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; }
.trip-location { display: flex; align-items: flex-start; gap: 0.75rem; min-width: 0; }
.trip-location > div { min-width: 0; }
.trip-location small { display: block; margin-bottom: 0.2rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.trip-location strong { display: block; overflow-wrap: anywhere; }
.trip-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }

.share-page { width: 100%; min-height: 100dvh; padding: 2rem 1rem; display: grid; place-items: start center; }
.shared-trip-card { width: min(100%, 600px); min-width: 0; }
.shared-trip-card .brand, .shared-trip-card .driver-detail, .shared-trip-card .info { min-width: 0; }
.shared-trip-card .driver-detail { display: flex; align-items: center; gap: 0.75rem; }
.shared-trip-card .info { overflow-wrap: anywhere; }

/* Radio App */
.radio-dashboard { display: flex; flex-direction: column; gap: 1.5rem; }
.radio-ptt-container { padding: 3rem; background: var(--green-dark); border-radius: var(--radius-lg); }
.radio-ptt-btn {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--paper); border: 8px solid var(--white);
  color: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; margin: 0 auto; transition: all 0.1s; cursor: pointer; box-shadow: var(--shadow-lg);
  font-family: var(--font-display); font-weight: 700; user-select: none; -webkit-user-select: none;
  touch-action: none; -webkit-touch-callout: none; -webkit-user-drag: none;
}
.radio-ptt-btn.active { background: var(--gold); border-color: var(--gold-light); transform: scale(0.96); box-shadow: inset 0 4px 12px rgba(0,0,0,0.2); }
.radio-ptt-btn .icon { width: 48px; height: 48px; stroke-width: 2; }
.radio-listen-only {
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--line); border: 8px solid var(--white); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; margin: 0 auto; font-family: var(--font-display); font-weight: 700;
  opacity: 0.8;
}
.radio-listen-only .icon { width: 48px; height: 48px; }
.radio-media-status { color: rgba(255,255,255,.82); }
.radio-media-diagnostics { margin-top: .75rem; padding: .65rem; border-radius: .65rem; background: rgba(0,0,0,.18); }
#radio-audio-output-host { position: fixed; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.radio-audio-output { width: 1px; height: 1px; }
.participants-list .account-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.participants-list .account-row:last-child { border-bottom: none; }

/* Driver App */

.driver-app .sidebar { background: var(--green-dark); }
.driver-layout { display: grid; grid-template-columns: minmax(300px, 1fr) 300px; gap: 1.5rem; align-items: start; }
.driver-layout.has-trip { display: flex; flex-direction: column; }
.driver-shift { background: var(--green-dark); color: var(--white); padding: 2rem; border-radius: var(--radius-lg); }
.switch-online { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.switch-online h2 { color: var(--white); }
.toggle { width: 64px; height: 36px; border-radius: 36px; background: rgba(255,255,255,0.2); border: none; position: relative; cursor: pointer; transition: background 0.3s; }
.toggle::after { content: ''; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--white); transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1); box-shadow: var(--shadow-sm); }
.toggle.on { background: var(--gold); }
.toggle.on::after { transform: translateX(28px); }
.shift-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.5rem; }
.shift-stats div { display: flex; flex-direction: column; gap: 0.25rem; }
.shift-stats strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.shift-stats span { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.active-trip-panel { display: flex; flex-direction: column; flex: 1; position: relative; }
.active-trip-sheet { position: relative; z-index: 10; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--white); margin-top: -2rem; }
.driver-app .map-panel { position: relative; inset: 0; min-height: 400px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; }

.meter-dashboard { display: flex; flex-direction: column; }
.meter-hero { background: var(--green-dark); color: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); text-align: center; }
.meter-primary { margin-bottom: 2rem; }
.meter-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }
.meter-total { font-family: var(--font-display); font-size: 4.5rem; font-weight: 600; line-height: 1; margin-top: 0.5rem; }
.meter-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.meter-val { font-family: monospace; font-size: 1.5rem; font-weight: 600; margin-top: 0.25rem; }
.meter-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.meter-controls .btn.active { background: var(--green); color: var(--white); border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); pointer-events: none; }

/* Standalone street-hail meter remains visually distinct from booked rides. */
.street-hail-entry { border-top: 3px solid var(--gold); }
.street-hail-meter .meter-hero { background: var(--green-dark); }
.street-hail-meter .meter-breakdown { border: 1px solid var(--gold-light); }
.street-hail-meter .street-hail-total { font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.street-hail-final-receipt { max-width:680px; margin-inline:auto; overflow:hidden; border-radius:24px; background:var(--white); box-shadow:var(--shadow-lg); }
.final-receipt-header { padding:1.5rem 1.5rem 2rem; background:var(--green-dark); color:var(--white); text-align:center; }
.final-receipt-header .receipt-brand { border-bottom-color:rgba(255,255,255,.16); text-align:left; }
.final-receipt-header .receipt-brand small { color:rgba(255,255,255,.7); }
.final-receipt-check { display:grid; place-items:center; width:48px; height:48px; margin:1.5rem auto .75rem; border-radius:50%; background:var(--gold); color:var(--green-dark); font-size:1.5rem; font-weight:900; }
.final-receipt-header .eyebrow { color:var(--gold); }
.final-receipt-header h1 { margin:.3rem 0; font-size:2.25rem; }
.final-receipt-header > p:last-of-type { color:rgba(255,255,255,.76); }
.final-receipt-body { padding:1.5rem; }
.receipt-reference { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.receipt-reference span { color:var(--muted); }
.receipt-reference strong { color:var(--green-dark); overflow-wrap:anywhere; text-align:right; }
.receipt-fare-details { border:1px solid var(--line); border-radius:var(--radius-md); padding:1rem; }
.receipt-fare-details summary { cursor:pointer; font-weight:700; }
.street-hail-final-receipt .meter-breakdown { border-top:1px solid var(--line); }
.receipt-brand { display:flex; align-items:center; gap:.75rem; padding-bottom:1rem; border-bottom:1px solid var(--line); }
.receipt-brand-mark { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--gold); color:var(--white); font-family:var(--font-display); font-size:1.3rem; font-weight:700; }
.receipt-brand strong, .receipt-brand small { display:block; }
.receipt-brand small { margin-top:.2rem; color:var(--muted); font-size:.66rem; letter-spacing:.12em; }
.receipt-final-fare { max-width:420px; margin:1.25rem auto 0; padding:1.5rem; border-radius:var(--radius-lg); background:var(--white); text-align:center; }
.receipt-final-fare small { display:block; color:var(--rose); font-weight:800; letter-spacing:.14em; }
.receipt-final-fare strong { display:block; margin-top:.35rem; color:var(--rose); font-family:var(--font-display); font-size:3.75rem; line-height:1; }
.receipt-trip-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--line); }
.receipt-trip-details > div { min-width:0; padding:1rem; background:var(--white); }
.receipt-trip-details small, .receipt-trip-details strong { display:block; }
.receipt-trip-details small { color:var(--muted); }
.receipt-trip-details strong { margin-top:.25rem; overflow-wrap:anywhere; }
.receipt-email-panel { padding:1.25rem; border:1px solid var(--gold-light); border-radius:var(--radius-md); background:#fffdf8; }
.receipt-email-panel h2 { font-size:1.2rem; }
.receipt-email-panel > p { margin-top:.35rem; color:var(--muted); font-size:.9rem; }
.optional-label { display:inline-block; margin-left:.35rem; padding:.15rem .45rem; border-radius:var(--radius-full); background:var(--gold-light); color:var(--green-dark); font-size:.68rem; vertical-align:middle; }
.street-hail-meter input:focus-visible, .street-hail-meter select:focus-visible,
.street-hail-meter textarea:focus-visible, .street-hail-meter button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
@media (max-width: 640px) {
  .street-hail-meter .meter-hero { padding: 1.5rem 1rem; }
  .street-hail-meter .meter-total { font-size: 3.25rem; }
  .street-hail-meter .meter-controls { grid-template-columns: 1fr; }
  .street-hail-meter .field-row { grid-template-columns: 1fr; }
  .street-hail-meter .btn { white-space: normal; min-height: 48px; }
  .receipt-trip-details { grid-template-columns:1fr; }
  .receipt-final-fare strong { font-size:3rem; }
  .street-hail-final-receipt { border-radius:0; min-height:100dvh; }
  .final-receipt-header, .final-receipt-body { padding-inline:1rem; }
}
.stepper { display: flex; align-items: center; gap: 1rem; }
.stepper-val { font-size: 1.25rem; font-weight: 600; font-family: var(--font-display); width: 2rem; text-align: center; }

.incoming-offer-overlay { position: fixed; inset: 0; background: rgba(18, 28, 20, 0.8); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.incoming-offer-card { background: var(--white); width: 100%; max-width: 480px; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); text-align: center; position: relative; overflow: hidden; animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.95) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
.offer-pulse { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gold); animation: pulseWidth 2s infinite; }
@keyframes pulseWidth { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
.offer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: var(--paper); padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; }
.stat-box { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-box strong { font-size: 1.25rem; font-family: var(--font-display); color: var(--green); }
.offer-countdown-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.offer-countdown { font-size: 1.5rem; font-weight: 700; color: var(--rose); font-family: var(--font-display); }
.countdown-bar { width: 100%; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.countdown-fill { height: 100%; background: var(--rose); transition: width 1s linear; }
.offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }

.map-marker { width: 36px; height: 36px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--green); position: relative; font-weight: 600; font-family: var(--font-display); }
.map-marker::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border-width: 6px 6px 0; border-style: solid; border-color: var(--white) transparent transparent transparent; }
.map-marker-pickup { background: var(--green); color: var(--white); }
.map-marker-pickup::after { border-color: var(--green) transparent transparent transparent; }
.map-marker-dropoff { background: var(--white); color: var(--green); border: 2px solid var(--green); }
.map-marker-car { background: var(--gold); color: var(--ink); }
.map-marker-car::after { border-color: var(--gold) transparent transparent transparent; }
.dispatch-map-mount { min-height: 500px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; }

.auth-page { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 100dvh; background: var(--white); }
.auth-brand { background: var(--green); padding: 4rem; color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.auth-brand h1 { font-size: 3.5rem; line-height: 1.1; margin: 2rem 0 1.5rem; }
.auth-brand p { font-size: 1.25rem; color: rgba(255,255,255,0.7); max-width: 400px; }
.auth-form-wrap { padding: 4rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-links { margin-top: 3rem; display: flex; gap: 1.5rem; justify-content: center; }
.auth-links a { font-size: 0.875rem; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.auth-links a:hover { color: var(--green); }
.text-button { background: none; border: none; color: var(--green); font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(18, 28, 20, 0.4); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-head h2 { font-size: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }

#toast { position: fixed; bottom: 2rem; left: 50%; transform: translate(-50%, 20px); background: var(--green-dark); color: var(--white); padding: 1rem 1.5rem; border-radius: var(--radius-full); font-weight: 500; box-shadow: var(--shadow); z-index: 200; opacity: 0; transition: all 0.3s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--rose); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat { background: var(--white); padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; gap: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.stat-number { font-size: 2.5rem; font-weight: 600; font-family: var(--font-display); line-height: 1; color: var(--green); }
.stat-foot { font-size: 0.75rem; color: var(--muted); }
.stat-featured { background: var(--green); color: var(--white); border: none; }
.stat-featured .stat-label, .stat-featured .stat-foot { color: rgba(255,255,255,0.7); }
.stat-featured .stat-number { color: var(--white); }

.ride-table { width: 100%; border-collapse: collapse; text-align: left; }
.ride-table th { padding: 1rem 1.5rem; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.ride-table td { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ride-table tr:hover td { background: var(--paper); }
.table-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.table-footer { padding: 1rem 1.5rem; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--line); }
.filter-row { padding: 1.5rem 2rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; gap: 0.5rem; background: var(--paper); padding: 0.25rem; border-radius: var(--radius); }
.tabs button { padding: 0.5rem 1rem; border: none; background: transparent; font-size: 0.875rem; font-weight: 500; color: var(--muted); border-radius: var(--radius-sm); }
.tabs button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.search input { padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); }

.driver-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.driver-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.875rem; margin: 1rem 0; }
.driver-card dt { color: var(--muted); }
.driver-card dd { text-align: right; font-weight: 500; }
.driver-mini { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }

.saved-places { display: flex; flex-direction: column; gap: 1rem; }
.saved-place-item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.place-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--green); display: grid; place-items: center; }
.place-details { flex: 1; display: flex; flex-direction: column; }
.account-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }

.chart { display: flex; gap: 1rem; height: 200px; align-items: flex-end; margin-top: 2rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.bar { width: 100%; max-width: 40px; background: var(--gold); border-radius: 4px 4px 0 0; }
.report-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.report-summary { margin-top: 1.5rem; }
.report-row { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); }

.settings-layout { display: grid; gap: 1.5rem; max-width: 800px; }
.audit-list { display: flex; flex-direction: column; gap: 1rem; }
.audit-item { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.875rem; }
.audit-item p { margin: 0.5rem 0; }

.mobile-brand { display: none; }
.no-mobile { display: block; }
.top-signout { display: none; }

@media (max-width: 1024px) {
  .shell { grid-template-columns: 220px 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { padding: 3rem; text-align: center; align-items: center; }
  .auth-brand p { margin: 0 auto; }
  .driver-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pilot-readiness, .pilot-wizard { padding: 1.25rem; }
  .pilot-readiness-grid, .pilot-selection-grid, .pilot-wizard-options, .pilot-provider-grid, .pilot-guide-grid { grid-template-columns: 1fr; }
  .pilot-wizard-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-readiness-header { flex-direction: column; }
  .pilot-readiness-header > .badge { align-self: flex-start; }
  .pilot-selection-item { align-items: flex-start; }
  .pilot-selection-item .btn { white-space: normal; text-align: center; }
  .shell, .main, .topbar, .passenger-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .main {
    min-width: 0;
    padding: 0 1rem calc(5rem + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .shell { display: flex; flex-direction: column; }

  .sidebar {
    padding: 0; background: var(--white); color: var(--ink);
    position: fixed; left: 0; right: 0; bottom: 0;
    height: auto; z-index: 50; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
    max-width: 100%;
    margin: 0 auto;
  }
  .sidebar > .brand, .side-bottom { display: none; }
  .sidebar nav {
    display: flex; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 0.5rem 1rem max(0.5rem, env(safe-area-inset-bottom));
  }
  .nav-button {
    flex-direction: column; gap: 0.25rem; padding: 0.5rem; font-size: 0.65rem;
    color: var(--muted); font-weight: 600; text-transform: uppercase;
    text-align: center; border-radius: 0;
  }
  .nav-button:hover { background: transparent; color: var(--green); }
  .nav-button.active { background: transparent; color: var(--green); }
  .nav-button .icon { width: 24px; height: 24px; }
  .nav-count { position: absolute; top: 0; right: 0; }

  .topbar { padding: 0; margin-bottom: 1.5rem; height: 72px; gap: 0.75rem; }
  .mobile-brand { display: flex; align-items: center; gap: 0.5rem; }
  .mobile-brand .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
  .mobile-brand .brand-sub { display: none; }

  .breadcrumb, .no-mobile { display: none; }
  .top-signout { display: inline-flex; }

  .connection { display: none; }
  .top-actions { min-width: 0; gap: 0.5rem; }
  .top-signout { padding-inline: 0.9rem; }
  .dest-bottom-sheet > .flex { flex-wrap: wrap; }
  .dest-bottom-sheet > .flex .segmented { width: 100%; }

  .passenger-layout {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 164px);
  }

  /* Make map dominant on mobile */
  .driver-app .map-panel, .map-panel {
    min-height: 44dvh;
    height: 44dvh;
    border-radius: 0;
    inset: 0;
    position: relative;
    flex-shrink: 0;
  }
  .dest-map-bg {
    inset: 0;
    border-radius: 0;
    position: relative;
    height: 44dvh;
    min-height: 300px;
    flex-shrink: 0;
  }
  .map-panel .map-mount, .dest-map-bg .map-mount { height: 100%; min-height: 100%; }

  .booking-sheet, .dest-bottom-sheet, .tracking-sheet, .active-trip-sheet {
    padding: 1.5rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -2rem; /* Overlap map slightly */
    position: relative;
    z-index: 10;
    background: var(--white);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  }
  .sheet-handle { display: block; }

  .two-col, .report-layout, .stats { grid-template-columns: 1fr; }
  .action-grid {
    grid-template-columns: 1fr;
    overflow-wrap: anywhere;
  }
  .offer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.75rem;
  }
  .offer-stats .stat-box { min-width: 0; }
  .offer-stats .stat-box strong { font-size: 1.05rem; overflow-wrap: anywhere; }
  .incoming-offer-card { padding: 1.5rem 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; }
  .offer-actions { gap: 0.6rem; margin-top: 1.25rem; }
  .action-grid .btn, .table-actions .btn, .offer-actions .btn {
    max-width: 100%;
    white-space: normal;
    height: auto;
    padding: 0.75rem;
    line-height: 1.4;
  }

  .auth-form-wrap { padding: 2rem 1.5rem; }

  .ride-table thead { display: none; }
  .ride-table, .ride-table tbody, .ride-table tr, .ride-table td { display: block; width: 100%; overflow-wrap: break-word; }
  .ride-table tr { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
  .ride-table td { border: none; padding: 1rem; text-align: right; position: relative; }
  .ride-table td::before { content: attr(data-label); position: absolute; left: 1rem; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; font-weight: 600; }
  .route-cell { text-align: left !important; padding-top: 2rem !important; }

  .trip-route { overflow-wrap: break-word; word-wrap: break-word; }
  .trip-route strong, .trip-route p { overflow-wrap: break-word; }
  .share-info, .share-driver-info { overflow-wrap: break-word; }

  .timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 0.35rem;
  }
  .timeline::before { display: none; }
  .timeline-step { min-width: 0; }
  .timeline-label { overflow-wrap: anywhere; line-height: 1.2; }
  .trip-top, .trip-bottom, .driver-profile, .tracking-header {
    min-width: 0;
    flex-wrap: wrap;
  }
  .trip-route strong, .tracking-header p, .vehicle-info, .share-card {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .share-page { padding: 1rem; }
  .shared-trip-card { padding: 1.25rem; }
  .table-actions { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  body * {
    visibility: hidden;
  }
  .receipt-print-area, .receipt-print-area * {
    visibility: visible;
  }
  .receipt-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .receipt-disclaimer {
    display: block;
  }
  .modal-backdrop {
    background: transparent;
  }
}

/* Street Hail Fullscreen */
body.street-hail-active {
  overflow: hidden;
  background: var(--green-dark);
}

body.street-hail-active #app {
  min-height: 100dvh;
}

.street-hail-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sh-top {
  position: sticky;
  top: 0;
  z-index: 10;
}

.sh-notice {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
}
.sh-notice.sh-error { background: var(--rose); color: var(--white); }
.sh-notice.sh-warn { background: var(--gold); color: var(--green-dark); }

.sh-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}
.sh-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

.sh-brand-mode {
  margin-top: 0.2rem;
  color: rgba(255,255,255,0.66);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.sh-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}
.sh-close:hover {
  background: rgba(255,255,255,0.2);
}

.sh-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  min-height: 50vh;
}

.sh-status {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.sh-status.sh-running {
  background: rgba(182, 141, 64, 0.2);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.sh-status.sh-waiting {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.sh-status.sh-stopped {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.sh-post-trip {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-align: left;
}

.sh-post-trip h2 {
  color: #fff;
}

.sh-finalize-btn {
  width: 100%;
}

.sh-fare {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 3rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.sh-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.sh-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}

.sh-metric-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
}

.sh-metric-val small {
  font-size: 0.48em;
  color: rgba(255,255,255,0.66);
}

.sh-metric-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .sh-brand {
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.6rem;
  }
  .sh-brand-name {
    font-size: 1rem;
  }
  .sh-brand-mode {
    font-size: 0.64rem;
  }
  .sh-center {
    min-height: 0;
    padding: 0.4rem 1rem 0.85rem;
  }
  .sh-status {
    margin-bottom: 0.65rem;
    padding: 0.35rem 1rem;
    font-size: 0.72rem;
  }
  .sh-fare {
    font-size: clamp(4.5rem, 23vw, 6.5rem);
    margin-bottom: 1rem;
  }
  .sh-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .sh-metric {
    gap: 0.25rem;
    padding: 0.65rem 0.4rem;
    border-radius: var(--radius);
  }
  .sh-metric-val {
    font-size: 1.35rem;
  }
  .sh-metric-lbl {
    font-size: 0.64rem;
  }
  .sh-bottom {
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  }
  .sh-controls {
    gap: 0.5rem;
  }
  .sh-btn {
    min-height: 62px;
    padding: 0.75rem 0.4rem;
    font-size: 0.95rem;
  }
  .sh-driver-panel {
    margin-top: 0.75rem;
  }
  .sh-driver-panel summary {
    padding: 0.85rem;
    font-size: 0.95rem;
  }
}

.sh-bottom {
  padding: 2rem;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sh-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .invoice-header { grid-template-columns: 88px minmax(0,1fr); align-items: start; }
  .invoice-header > .badge { grid-column: 2; justify-self: start; }
  .invoice-logo-placeholder { min-height: 70px; }
  .sh-controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sh-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.sh-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.sh-btn:active:not(:disabled) {
  transform: translateY(0);
}
.sh-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sh-btn.sh-btn-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(182, 141, 64, 0.4);
}

.sh-btn.sh-btn-end {
  background: rgba(140, 39, 61, 0.15);
  border-color: rgba(140, 39, 61, 0.4);
  color: #ffb3c1;
}
.sh-btn.sh-btn-end:hover:not(:disabled) {
  background: rgba(140, 39, 61, 0.3);
}

.sh-driver-panel {
  max-width: 800px;
  margin: 2rem auto 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sh-driver-panel summary {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--green-dark);
}
.sh-driver-panel summary::-webkit-details-marker {
  display: none;
}

.sh-driver-content {
  padding: 1.5rem;
  display: grid;
  gap: 2rem;
}

.sh-driver-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.sh-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--paper);
}
.sh-row:last-child {
  border-bottom: none;
}

/* Office phone booking */
.phone-book-btn{gap:.5rem}
.phone-modal{max-width:760px}
.phone-lede{margin:-.75rem 0 1rem}
.phone-form{gap:1rem}
.phone-group{border:1px solid var(--line,#d9dfd3);border-radius:var(--radius,12px);padding:1rem 1.1rem 1.1rem;margin:0;min-width:0;display:grid;gap:.9rem}
.phone-group legend{padding:0 .5rem;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--green,#445139)}
.phone-group[disabled]{opacity:.7}
.phone-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:.6rem}
.verified-chip{display:inline-block;margin-left:.4rem;padding:.05rem .45rem;border-radius:99px;background:var(--green,#445139);color:#fff;font-size:.65rem;letter-spacing:.06em;text-transform:uppercase;vertical-align:middle}
.phone-modal .address-field{position:relative}
.phone-modal .suggestions-dropdown{z-index:5}
.phone-preview{border:1px dashed var(--line,#d9dfd3);border-radius:var(--radius,12px);padding:.9rem;color:var(--green,#445139)}
.phone-route-svg{width:100%;height:140px;display:block;color:var(--green,#445139)}
.phone-route-svg .pt-a{fill:#fff;stroke:currentColor;stroke-width:3}
.phone-route-svg .pt-b{fill:currentColor}
.phone-preview-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-top:.6rem;color:inherit}
.phone-preview-meta div{display:grid;gap:.1rem}
.phone-preview-meta strong{font-size:1.05rem}
.phone-fare-detail{margin-top:.6rem;font-size:.85rem}
.phone-fare-detail summary{cursor:pointer}
.phone-checklist{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;font-size:.82rem;color:var(--muted,#6b7566)}
.phone-checklist li{display:flex;align-items:center;gap:.4rem}
.phone-checklist li.ok{color:var(--green,#445139);font-weight:600}
.phone-checklist .icon{width:1rem;height:1rem}
.phone-checklist .dotmark{width:.5rem;height:.5rem;border-radius:50%;border:1.5px solid currentColor;margin:0 .25rem}
.phone-success{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}
.phone-success-mark{width:2.75rem;height:2.75rem;border-radius:50%;background:var(--green,#445139);color:#fff;display:grid;place-items:center}
.phone-success-mark .icon{width:1.4rem;height:1.4rem}
.phone-modal .modal-actions{flex-wrap:wrap}
.office-tag{display:inline-flex;align-items:center;gap:.3rem;margin-top:.25rem;font-size:.7rem;font-weight:600;color:var(--green,#445139)}
.office-tag .icon{width:.85rem;height:.85rem}
.dispatch-line{margin-top:.25rem;color:var(--muted,#6b7566)}
.dispatch-line.bad{color:#9b3b2e;font-weight:600}
.office-origin{margin:.75rem 0}
@media(max-width:640px){.phone-modal{padding:1.25rem}.phone-preview-meta{grid-template-columns:1fr 1fr}.phone-modal .field-row{grid-template-columns:1fr}}

.car-chip{display:inline-flex;align-items:baseline;gap:.3rem;padding:.15rem .6rem;border-radius:6px;background:var(--gold);color:#fff;font-weight:800;letter-spacing:.04em}
.car-chip small{font-size:.65rem;text-transform:uppercase;opacity:.85}
.car-chip b{font-size:1.1rem;font-variant-numeric:tabular-nums}
.car-chip.lg b{font-size:1.75rem}.car-chip.lg{padding:.2rem .8rem}
.car-chip.sm b{font-size:.85rem}
.car-chip.unassigned{background:var(--gold-light);color:var(--muted);font-size:.75rem;font-weight:600}
.car-admin summary{cursor:pointer;font-weight:600}
.car-history{margin-top:.75rem}.mt-xs{margin-top:.25rem}
.unit-banner{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}

/* Admin top-nav shell */
.admin-shell{min-height:100dvh;background:var(--paper)}
.admin-top{background:var(--white);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.admin-top-row{display:flex;align-items:center;gap:1rem;padding:.5rem 1.25rem;max-width:1600px;margin:0 auto;flex-wrap:wrap}
.admin-brand .brand-mark{width:34px;height:34px;font-size:1.1rem;border-radius:9px}
.admin-brand .brand-name{font-size:1rem;color:var(--ink)}
.admin-brand .brand-sub{color:var(--muted);font-size:.6rem}
.admin-nav{display:flex;gap:.15rem;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.admin-nav-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .8rem;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);font-weight:600;font-size:.875rem;white-space:nowrap}
.admin-nav-btn .icon{width:18px;height:18px}
.admin-nav-btn:hover{background:var(--paper);color:var(--ink)}
.admin-nav-btn.active{background:#E6F0F9;color:#1F4E80}
.admin-top-end{display:flex;align-items:center;gap:.75rem}
.admin-id .avatar{width:30px;height:30px;font-size:.75rem}
.admin-sub{display:flex;align-items:center;gap:.25rem;padding:.3rem 1.25rem;border-top:1px solid var(--line);background:var(--paper);overflow-x:auto;max-width:100%}
.admin-sub-label{font-size:.65rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-right:.5rem}
.admin-sub-btn{display:inline-flex;align-items:center;gap:.35rem;border:0;background:transparent;padding:.3rem .65rem;border-radius:var(--radius-full);font-size:.8rem;font-weight:500;color:var(--ink);white-space:nowrap}
.admin-sub-btn .icon{width:15px;height:15px}
.admin-sub-btn:hover{background:var(--white)}
.admin-sub-btn.active{background:var(--white);box-shadow:inset 0 0 0 1px var(--line);font-weight:700}
.admin-main{padding:1.5rem 1.25rem 3rem;max-width:1600px}
.admin-main .page-heading{margin-bottom:1.25rem}
.admin-main h1{font-size:1.75rem}
.admin-panel{border-radius:var(--radius)}
.section-title{font-size:1rem;font-weight:700;margin-bottom:.75rem}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.kpi-card{display:flex;flex-direction:column;gap:.25rem;text-align:left;padding:1.25rem 1.5rem;border-radius:var(--radius);border:1px solid transparent;transition:transform .15s}
.kpi-card:hover{transform:translateY(-2px)}
.kpi-label{font-size:.85rem;font-weight:600;opacity:.9}
.kpi-value{font-size:2.75rem;line-height:1;font-weight:700;letter-spacing:-.02em}
.kpi-sub{font-size:.8rem;opacity:.85}
.kpi-card.blue{background:#2B5C8F;color:#fff}
.kpi-card.green{background:#2F6B4A;color:#fff}
.kpi-card.neutral{background:var(--white);color:var(--ink);border-color:var(--line)}
.table-scroll{overflow-x:auto}
.upcoming-table{min-width:1100px}
.upcoming-table th,.upcoming-table td{padding:.6rem .75rem;font-size:.82rem;vertical-align:middle}
.route-text-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:1024px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-top-row{padding:.5rem .75rem}.admin-nav{order:3;flex-basis:100%}.admin-top-end{margin-left:auto}.admin-main{padding:1rem .75rem 2rem}}
@media (max-width:520px){.kpi-grid{grid-template-columns:1fr}.admin-id strong{display:none}}
/* Keep the new admin tables readable; scroll the panel rather than hiding headers. */
@media (max-width:768px){
  .admin-panel .table-scroll .ride-table{display:table;min-width:720px}
  .admin-panel .table-scroll .upcoming-table{min-width:1100px}
  .admin-panel .table-scroll .ride-table thead{display:table-header-group}
  .admin-panel .table-scroll .ride-table tbody{display:table-row-group;width:auto}
  .admin-panel .table-scroll .ride-table tr{display:table-row;width:auto;margin:0;border:0;border-radius:0}
  .admin-panel .table-scroll .ride-table td{display:table-cell;width:auto;position:static;padding:.6rem .75rem}
  .admin-panel .table-scroll .ride-table td::before{content:none}
}

/* Admin console v2: brand row + nav row, dropdowns, data tables */
.admin-brand .brand-name{font-size:1.05rem;color:var(--ink);font-weight:700}
.admin-brand .brand-sub{color:var(--muted);letter-spacing:.14em}
.admin-top-row{justify-content:space-between}
.admin-nav{display:flex;align-items:center;gap:.15rem;padding:.25rem 1.25rem;border-top:1px solid var(--line);max-width:1600px;margin:0 auto;overflow:visible;flex-wrap:wrap}
.admin-nav-btn{min-height:40px}
.admin-menu{position:relative}
.admin-nav-btn .caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;margin-left:.15rem}
.admin-menu-list{position:absolute;top:calc(100% + 4px);left:0;min-width:15rem;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow);padding:.35rem;z-index:60;display:flex;flex-direction:column}
.admin-menu-item{text-align:left;border:0;background:transparent;padding:.65rem .8rem;min-height:44px;border-radius:6px;font-size:.9rem;font-weight:500;color:var(--ink)}
.admin-menu-item:hover,.admin-menu-item:focus-visible{background:var(--paper);outline:none}
.admin-menu-item.active{background:#E6F0F9;color:#1F4E80;font-weight:700}
.admin-nav-btn:focus-visible,.admin-menu-item:focus-visible,.th-sort:focus-visible{outline:2px solid #2B5C8F;outline-offset:1px}
.kpi-unavailable{font-size:1.5rem;line-height:1.9rem;font-weight:600}
.kpi-card{padding:1rem 1.25rem}
.kpi-value{font-size:2.25rem}
.rt-controls{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end;padding:0 1.25rem 1rem}
.rt-field{display:flex;flex-direction:column;gap:.2rem}
.rt-field input,.rt-field select{padding:.5rem .7rem;min-height:40px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--white);font-size:.85rem}
.rt-search{flex:1 1 18rem}
.th-sort{display:inline-flex;align-items:center;gap:.25rem;border:0;background:transparent;font:inherit;font-weight:700;color:inherit;padding:.25rem 0;min-height:32px;white-space:nowrap;text-transform:inherit;letter-spacing:inherit}
.th-sort.on{color:#1F4E80}
.th-arrow{display:inline-block;width:.8em}
.rt-pager{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;padding:.75rem 1.25rem}
.rt-pager-nav{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.rt-pager-nav .rt-field{flex-direction:row;align-items:center;gap:.4rem}
.upcoming-table{min-width:1400px}
.admin-panel .table-scroll .upcoming-table{min-width:1400px}
.upcoming-table .table-actions{flex-wrap:nowrap;white-space:nowrap}
@media (max-width:1024px){.admin-nav{padding:.25rem .75rem}.admin-top-row{padding:.5rem .75rem}}
