/* Standalone customer theme: intentionally independent of the legacy phone UI,
   admin dashboard and booking stylesheet. */
html.customer-midnight-page { background: #0c1317; color-scheme: dark; min-height: 100%; }
.customer-midnight {
  --cm-bg: #0c1317; --cm-panel: #121c21; --cm-raised: #162127;
  --cm-border: #2d3a41; --cm-text: #f5f3ed; --cm-muted: #b4bec6;
  --cm-accent: #f5ad45; --cm-green: #a6ebca;
  color-scheme: dark;
  background: radial-gradient(ellipse at 80% 0%, #16252a 0%, transparent 54%), var(--cm-bg) !important;
  color: var(--cm-text);
  margin: 0; width: 100%; min-width: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 16px/1.5 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.customer-midnight .customer-portal { min-height: 100dvh; width: 100%; }
.customer-midnight h1, .customer-midnight h2, .customer-midnight p { margin: 0; }
.customer-midnight button { appearance: none; }
.customer-midnight svg { display: block; }
.customer-midnight .portal-system-icon, .customer-midnight .customer-line-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-midnight .portal-ui-icon { display: inline-flex; align-items: center; justify-content: center; }
.customer-midnight .portal-ui-icon svg { display: block; width: 100%; height: 100%; }
.customer-midnight .customer-booking-card small { display: block; }
.customer-midnight .customer-count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; border-radius: 999px; padding: 4px 9px; font-size: 13px; }
.customer-midnight .customer-empty h2 { font-size: 23px; }
.customer-midnight .customer-empty p { margin: 12px 0 20px; color: var(--cm-muted); }
.customer-midnight .customer-empty .customer-primary-action { margin-top: 8px; }
.customer-midnight .customer-account-panel > summary { list-style: none; }
.customer-midnight .customer-account-panel > summary::-webkit-details-marker { display: none; }
.customer-midnight textarea { resize: vertical; min-height: 110px; }
.customer-midnight input::placeholder, .customer-midnight textarea::placeholder { color: #a6b0b8; opacity: 1; }
.customer-midnight .customer-detail-section > h3 { display: flex; align-items: center; gap: 10px; }
.customer-midnight .customer-detail-section > p { margin-top: 12px; }
.customer-midnight .customer-payment-detail-section > .customer-payment-link { margin-top: 18px; }
.customer-midnight .customer-booking-reference { margin: 0; }
.customer-midnight .customer-detail-card { overscroll-behavior: contain; }
.customer-midnight .customer-detail-output { overscroll-behavior: contain; }
.customer-midnight *, .customer-midnight *::before, .customer-midnight *::after { box-sizing: border-box; }
.customer-midnight [hidden] { display: none !important; }
.customer-midnight a { color: var(--cm-accent); text-underline-offset: 4px; }
.customer-midnight button, .customer-midnight input, .customer-midnight select, .customer-midnight textarea { font: inherit; }
.customer-midnight button, .customer-midnight summary { cursor: pointer; }
.customer-midnight button:disabled { opacity: .55; cursor: wait; }
.customer-midnight :is(button,a,input,textarea,select,summary):focus-visible {
  outline: 3px solid var(--cm-accent) !important; outline-offset: 4px; box-shadow: none;
}
.customer-midnight .customer-app { padding: 0; min-height: 100dvh; }
.customer-midnight .customer-site-header {
  display: flex; align-items: center; gap: 28px; padding: 0 max(28px, calc((100vw - 1500px) / 2));
  min-height: 82px; border-bottom: 1px solid var(--cm-border); background: rgba(12,19,23,.92);
}
.customer-midnight .customer-wordmark { color: var(--cm-text); letter-spacing: .2em; font-weight: 600; font-size: 25px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.customer-midnight .customer-desktop-nav { display: flex; gap: 18px; align-items: center; justify-content: center; flex: 1; }
.customer-midnight .customer-desktop-nav :is(button,a) { color: var(--cm-muted); background: transparent; border: 0; border-radius: 0; padding: 28px 0 23px; min-height: 58px; white-space: nowrap; font-size: 14px; text-decoration: none; border-bottom: 3px solid transparent; }
.customer-midnight .customer-desktop-nav button[aria-pressed="true"] { color: var(--cm-accent); border-bottom-color: var(--cm-accent); }
.customer-midnight .customer-signout-link { display: inline-flex; align-items: center; gap: 9px; border: 0; border-left: 1px solid var(--cm-border); padding: 8px 0 8px 24px; color: var(--cm-text); background: transparent; white-space: nowrap; }
.customer-midnight .customer-global-note { max-width: 1444px; margin: 12px auto; color: var(--cm-accent); padding: 0 28px; }
.customer-midnight .customer-global-note:empty { display: none; }
.customer-midnight .customer-shell, .customer-midnight .customer-shell:has(.customer-detail-card:not([hidden])) { display: block; width: 100%; max-width: 1500px; min-height: 0; margin: auto; padding: 0 28px; }
.customer-midnight .customer-main-card { display: block; width: 100%; min-height: 0; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: none; }
.customer-midnight .customer-main-card::before, .customer-midnight .customer-detail-card::before { display: none; }
.customer-midnight .customer-main-card > .customer-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 0; padding: 44px 0 30px; background: none; border: 0; }
.customer-midnight .customer-main-card .customer-topbar h2 { font-size: clamp(26px, 3vw, 42px); font-weight: 650; line-height: 1.18; letter-spacing: -.025em; color: var(--cm-text); }
.customer-midnight .customer-main-card .customer-kicker { display: none; }
.customer-midnight .customer-view-subtitle { color: var(--cm-muted); margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.customer-midnight .customer-heading-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.customer-midnight .customer-count-pill { background: var(--cm-raised); color: var(--cm-muted); border: 1px solid var(--cm-border); }
.customer-midnight .customer-count-pill:empty { display: none; }
.customer-midnight .customer-content { display: block; padding: 0; min-height: 350px; overflow: visible; scrollbar-width: auto; }
.customer-midnight .customer-content::-webkit-scrollbar, .customer-midnight .customer-detail-output::-webkit-scrollbar { width: 10px; height: 10px; }
.customer-midnight .customer-line-icon, .customer-midnight .portal-ui-icon, .customer-midnight .portal-ui-icon svg { width: 22px; height: 22px; flex-shrink: 0; }
.customer-midnight .customer-line-icon { color: var(--cm-muted); }
.customer-midnight :is(.customer-primary-action,.customer-payment-link,.customer-text-action) .customer-line-icon { color: inherit; }
.customer-midnight .customer-route-dot .customer-line-icon { color: var(--cm-accent); }
.customer-midnight .customer-booking-reference { color: var(--cm-text); overflow-wrap: anywhere; font-size: 14px; }
.customer-midnight .customer-primary-action, .customer-midnight .customer-secondary-action, .customer-midnight .customer-payment-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; width: auto; padding: 12px 21px; border-radius: 7px; font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: normal;
}
.customer-midnight .customer-primary-action, .customer-midnight .customer-payment-link { color: #15191c; background: linear-gradient(110deg,#f6b651,#eca13b); border: 1px solid #f5b95e; box-shadow: none; }
.customer-midnight .customer-primary-action:hover { background: #ffc56d; }
.customer-midnight .customer-secondary-action { color: var(--cm-text); border: 1px solid #69767e; background: transparent; box-shadow: none; }
.customer-midnight .customer-secondary-action:hover { background: #26343c; }
.customer-midnight .customer-text-action { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--cm-accent); padding: 6px 0; font-size: 14px; line-height: 1.5; }
.customer-midnight .customer-overview-grid { display: grid; grid-template-columns: minmax(0,2.35fr) minmax(290px,1fr); gap: 20px; align-items: start; }
.customer-midnight .customer-overview-main, .customer-midnight .customer-overview-rail { display: grid; gap: 24px; min-width: 0; }
.customer-midnight .customer-next-journey, .customer-midnight .customer-rail-card, .customer-midnight .customer-support-card, .customer-midnight .customer-profile-card, .customer-midnight .customer-account-panel, .customer-midnight .customer-payment-card, .customer-midnight .customer-empty {
  background: linear-gradient(130deg,rgba(255,255,255,.015),transparent),var(--cm-panel); border: 1px solid var(--cm-border); border-radius: 10px; padding: 24px; box-shadow: none; color: var(--cm-text); min-width: 0;
}
.customer-midnight .customer-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.customer-midnight h3 { font-size: 19px; line-height: 1.4; margin: 0; color: var(--cm-text); font-weight: 600; }
.customer-midnight .customer-section-heading h3, .customer-midnight .customer-support-card h3 { display: flex; align-items: center; gap: 12px; }
.customer-midnight .customer-section-heading p { color: var(--cm-muted); margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.customer-midnight .customer-feature-itinerary { border: 1px solid var(--cm-border); background: rgba(0,0,0,.12); border-radius: 9px; padding: 24px; }
.customer-midnight .customer-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; font-size: 14px; color: var(--cm-muted); }
.customer-midnight .customer-card-heading strong { color: var(--cm-text); display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.customer-midnight .customer-status-pill { position: static; display: inline-flex; align-items: center; flex-shrink: 0; max-width: 100%; border: 1px solid #8d6b33; border-radius: 7px; padding: 6px 10px; background: #302819; color: #f5c982; font-size: 12px; line-height: 1.4; white-space: normal; box-shadow: none; }
.customer-midnight .customer-status-pill[data-status="confirmed"], .customer-midnight .customer-status-pill[data-status="paid"], .customer-midnight .customer-status-pill[data-status="completed"], .customer-midnight .customer-status-pill[data-status="paid_adjusted"] { background: #15362b; color: var(--cm-green); border-color: #2d6853; }
.customer-midnight .customer-status-pill[data-status="refund_pending"], .customer-midnight .customer-status-pill[data-status="additional_payment_due"] { background:#372b1b; color:#f5c782; border-color:#795b32; }
.customer-midnight .customer-status-pill[data-status="cancelled"], .customer-midnight .customer-status-pill[data-status="failed"] { background: #38252a; color: #ffb5b8; border-color: #70424a; }
.customer-midnight .customer-card-route { display: grid; gap: 26px; margin: 24px 0; padding: 0; }
.customer-midnight .customer-feature-itinerary .customer-card-route { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px; margin: 34px 0; }
.customer-midnight .customer-route-point { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 12px; padding: 0; min-height: 0; }
.customer-midnight .customer-route-point::before, .customer-midnight .customer-route-point::after { display: none; }
.customer-midnight .customer-route-point strong { color: var(--cm-text); font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.customer-midnight .customer-route-point small { display: block; font-size: 13px; line-height: 1.5; color: var(--cm-muted); margin-top: 6px; }
.customer-midnight .customer-route-dot { color: var(--cm-accent); background: transparent; width: 28px; height: 28px; padding: 0; }
.customer-midnight .customer-feature-facts { display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 20px; border-top: 1px solid var(--cm-border); padding-top: 23px; }
.customer-midnight .customer-card-metric { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 5px 10px; min-width: 0; }
.customer-midnight .customer-card-metric svg { grid-row: 1/3; }
.customer-midnight .customer-card-metric > span { color: var(--cm-muted); font-size: 12px; }
.customer-midnight .customer-card-metric strong { color: var(--cm-text); font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.customer-midnight .customer-feature-payment { text-align: right; color: var(--cm-accent); margin: 16px 0 0; font-size: 14px; }
.customer-midnight .customer-feature-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.customer-midnight .customer-feature-actions > * { flex: 1; }
.customer-midnight .customer-rail-card { padding: 22px; }
.customer-midnight .customer-rail-card h3 { font-size: 16px; }
.customer-midnight .customer-rail-card p, .customer-midnight .customer-support-card p { color: var(--cm-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; margin: 12px 0; }
.customer-midnight .customer-rail-card > strong { font-size: 15px; overflow-wrap: anywhere; }
.customer-midnight .customer-rail-payment { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; margin: 20px 0; }
.customer-midnight .customer-rail-payment strong { font-size: 22px; }
.customer-midnight .customer-support-card a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.customer-midnight .customer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.customer-midnight .customer-booking-card { display: block; padding: 22px; border: 1px solid var(--cm-border); border-radius: 9px; color: var(--cm-text); background: var(--cm-panel); text-align: left; width: auto; min-width: 0; box-shadow: none; cursor: default; }
.customer-midnight .customer-booking-card:hover { transform: none; border-color: #586570; background: var(--cm-panel); }
.customer-midnight .customer-booking-card .customer-card-date-line { margin: 12px 0; }
.customer-midnight .customer-card-date-line { display: flex; gap: 12px; color: var(--cm-muted); }
.customer-midnight .customer-card-date { color: var(--cm-text); font-size: 15px; }
.customer-midnight .customer-card-time { color: var(--cm-muted); font-size: 13px; margin-top: 4px; }
.customer-midnight .customer-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--cm-border); padding-top: 16px; }
.customer-midnight .customer-vehicle-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.customer-midnight .customer-vehicle-meta strong { display: block; font-size: 13px; color: var(--cm-text); }
.customer-midnight .customer-vehicle-meta small { display: block; font-size: 12px; color: var(--cm-muted); margin-top: 4px; }
.customer-midnight .customer-card-footer b { font-size: 20px; color: var(--cm-text); }
.customer-midnight .customer-card-bottom { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.customer-midnight .customer-payment-caption, .customer-midnight .customer-return-label { font-size: 13px; line-height: 1.5; color: var(--cm-muted); }
.customer-midnight .customer-view-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.customer-midnight .customer-view-tabs button { background: transparent; color: var(--cm-muted); border: 1px solid var(--cm-border); border-radius: 7px; min-height: 44px; padding: 10px 18px; }
.customer-midnight .customer-view-tabs button[aria-pressed="true"] { color: var(--cm-accent); border-color: var(--cm-accent); }
.customer-midnight .customer-site-footer { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 28px 0; margin-top: 30px; border-top: 1px solid var(--cm-border); color: var(--cm-muted); font-size: 12px; }
.customer-midnight .customer-site-footer > span:first-child { letter-spacing: .15em; text-transform: uppercase; color: var(--cm-text); font-size: 17px; }
.customer-midnight .customer-site-footer a { margin-left: auto; }
.customer-midnight .customer-payment-total { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 14px; }
.customer-midnight .customer-payment-total strong { font-size: 28px; }
.customer-midnight .customer-payment-breakdown { margin: 12px 0 20px; border-block: 1px solid var(--cm-border); padding: 14px 0; }
.customer-midnight summary { color: var(--cm-text); padding: 10px 0; font-size: 16px; line-height: 1.5; }
.customer-midnight .customer-document-list { border-top: 1px solid var(--cm-border); padding-top: 10px; }
.customer-midnight .customer-document-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--cm-border); background: none; }
.customer-midnight .customer-document-row strong { color: var(--cm-muted); }
.customer-midnight .customer-document-row small { display: block; overflow-wrap: anywhere; margin-top: 5px; }
.customer-midnight .customer-document-link { color: var(--cm-accent); white-space: nowrap; }
.customer-midnight .customer-payment-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.customer-midnight .customer-profile-card { margin-bottom: 24px; text-align: left; }
.customer-midnight .customer-avatar-wrap { display: none; }
.customer-midnight .customer-profile-card h2 { color: var(--cm-text); font-size: 25px; margin: 0 0 22px; }
.customer-midnight .customer-info-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0; }
.customer-midnight .customer-info-list > div { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 5px 14px; border: 0; padding: 10px 0; background: none; }
.customer-midnight .customer-info-list svg { grid-row: 1/3; }
.customer-midnight .customer-info-list span { color: var(--cm-muted); font-size: 13px; }
.customer-midnight .customer-info-list strong { font-size: 15px; color: var(--cm-text); overflow-wrap: anywhere; }
.customer-midnight .customer-profile-card .customer-logout-action { display: none; }
.customer-midnight .customer-profile-card .customer-help-heading { display: none; }
.customer-midnight .customer-account-panel { margin-bottom: 20px; }
.customer-midnight .customer-account-panel > summary { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.customer-midnight .customer-account-panel > summary::after { content: '+'; margin-left: auto; color: var(--cm-accent); }
.customer-midnight .customer-account-panel[open] > summary::after { content: '−'; }
.customer-midnight .customer-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; }
.customer-midnight .customer-account-form { display: grid; gap: 18px; padding-top: 18px; }
.customer-midnight .customer-account-form > button { justify-self: start; }
.customer-midnight label { color: var(--cm-muted); display: grid; gap: 8px; font-size: 14px; line-height: 1.5; min-width: 0; }
.customer-midnight input, .customer-midnight textarea, .customer-midnight select { color: var(--cm-text); background: #0d161b; border: 1px solid #53616b; border-radius: 7px; width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }
.customer-midnight input[readonly] { background: #1c282e; color: var(--cm-muted); }
.customer-midnight .customer-company-fields { border: 1px solid var(--cm-border); border-radius: 7px; padding: 6px 16px; }
.customer-midnight .customer-company-fields .customer-form-grid { padding: 12px 0; }
.customer-midnight .customer-help-copy, .customer-midnight .customer-state-note { color: var(--cm-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.customer-midnight .customer-inline-note { min-height: 0; margin: 0; font-size: 14px; color: var(--cm-accent); line-height: 1.6; }
.customer-midnight .customer-inline-note:empty { display: none; }
.customer-midnight .customer-welcome-note { border-left: 3px solid var(--cm-accent); padding: 12px 18px; margin: 0 0 24px; background: var(--cm-panel); color: var(--cm-muted); line-height: 1.6; }
.customer-midnight .customer-signin { display: grid; place-items: center; padding: 40px 20px; min-height: 100dvh; }
.customer-midnight .customer-auth-card { width: min(100%,490px); border: 1px solid var(--cm-border); background: var(--cm-panel); padding: 36px; border-radius: 14px; box-shadow: 0 20px 60px #0005; min-height: 0; }
.customer-midnight .customer-auth-card h1 { color: var(--cm-text); font-size: 30px; margin: 14px 0 24px; }
.customer-midnight .customer-auth-card .customer-kicker { color: var(--cm-accent); font-size: 14px; letter-spacing: .15em; text-transform: uppercase; }
.customer-midnight .customer-auth-card > .portal-auth-icon { display: flex; width: 64px; height: 64px; margin: 0 auto 20px; padding: 17px; align-items: center; justify-content: center; border-radius: 18px; color: var(--cm-accent); background: #34291b; }
.customer-midnight .customer-auth-card > .portal-auth-icon svg { width: 30px; height: 30px; }
.customer-midnight .customer-auth-card > .customer-kicker, .customer-midnight .customer-auth-card > h1 { text-align: center; }
.customer-midnight .customer-auth-form { display: grid; gap: 18px; }
.customer-midnight .customer-access-panel { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--cm-border); }
.customer-midnight .customer-danger-action { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; width: auto; padding: 12px 18px; color: #ffb3b8; background: #39242a; border: 1px solid #85525c; border-radius: 7px; font-size: 14px; }
.customer-midnight .customer-danger-action svg { color: inherit; }
.customer-midnight.customer-detail-open { overflow: hidden; }
.customer-midnight.customer-detail-open .customer-shell::after { content: ''; position: fixed; inset: 0; background: #0009; z-index: 1000; backdrop-filter: blur(3px); }
.customer-midnight .customer-detail-card { position: fixed; z-index: 1001; inset: 20px 20px 20px auto; transform: none; width: min(780px,calc(100vw - 40px)); min-height: 0; max-height: none; display: grid; grid-template-rows: auto minmax(0,1fr); border: 1px solid #50606a; border-radius: 12px; background: var(--cm-bg); box-shadow: 0 20px 80px #0008; overflow: hidden; }
.customer-midnight .customer-detail-card > .customer-topbar { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 20px 24px; min-height: 0; background: var(--cm-panel); border-bottom: 1px solid var(--cm-border); }
.customer-midnight .customer-detail-card .customer-kicker { display: block; margin-bottom: 5px; color: var(--cm-muted); }
.customer-midnight .customer-detail-card h2 { font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.customer-midnight .customer-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; background: var(--cm-raised); color: var(--cm-text); border: 1px solid var(--cm-border); border-radius: 7px; flex-shrink: 0; }
.customer-midnight .customer-detail-output { padding: 24px; overflow-y: auto; scrollbar-width: auto; }
.customer-midnight .customer-detail-hero, .customer-midnight .customer-detail-section { padding: 20px; margin-bottom: 18px; background: var(--cm-panel); border: 1px solid var(--cm-border); border-radius: 9px; }
.customer-midnight .customer-detail-status-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 20px; }
.customer-midnight .customer-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-top: 15px; }
.customer-midnight .customer-detail-row { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 5px 10px; border: 0; background: none; padding: 0; min-width: 0; }
.customer-midnight .customer-detail-row svg { grid-row: 1/3; color: var(--cm-muted); }
.customer-midnight .customer-detail-row span { color: var(--cm-muted); font-size: 12px; grid-column: 2; text-align: left; }
.customer-midnight .customer-detail-row strong { color: var(--cm-text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; grid-column: 2; text-align: left; }
.customer-midnight .customer-action-form { display: grid; gap: 14px; margin: 16px 0; padding: 20px; border: 1px solid var(--cm-border); border-radius: 9px; background: var(--cm-panel); }
.customer-midnight .customer-wide-action { margin-bottom: 16px; }
.customer-midnight .customer-driver-card { display: grid; gap: 10px; color: var(--cm-text); margin-top: 16px; }
@media (max-width: 1180px) {
  .customer-midnight .customer-site-header { flex-wrap: wrap; gap: 12px; padding: 18px 28px 0; }
  .customer-midnight .customer-signout-link { margin-left: auto; }
  .customer-midnight .customer-desktop-nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 28px; overflow-x: auto; }
  .customer-midnight .customer-desktop-nav :is(button,a) { padding: 12px 0; }
  .customer-midnight .customer-overview-grid { grid-template-columns: minmax(0,1fr); }
  .customer-midnight .customer-overview-rail { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .customer-midnight .customer-overview-rail .customer-section-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  /* Larger touch areas, without enlarging the text or changing desktop layout. */
  .customer-midnight :is(.customer-wordmark,.customer-signout-link,.customer-text-action,.customer-support-card a,.customer-site-footer a,.customer-document-link,.customer-access-panel a) { display: inline-flex; align-items: center; min-height: 44px; }
  .customer-midnight .customer-site-header { padding: 18px 16px 0; }
  .customer-midnight .customer-wordmark { font-size: 21px; }
  .customer-midnight .customer-signout-link { font-size: 13px; padding-left: 14px; }
  .customer-midnight .customer-desktop-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; width: 100%; min-width: 0; overflow: visible; }
  .customer-midnight .customer-desktop-nav :is(button,a) { font-size: 13px; min-height: 44px; width: 100%; padding: 10px 0; text-align: left; white-space: normal; }
  .customer-midnight .customer-desktop-nav > a { display: none; }
  .customer-midnight .customer-shell, .customer-midnight .customer-shell:has(.customer-detail-card:not([hidden])) { padding: 0 16px; }
  .customer-midnight .customer-main-card > .customer-topbar { align-items: flex-start; flex-direction: column; gap: 18px; padding: 28px 0 22px; }
  .customer-midnight .customer-view-subtitle { font-size: 14px; }
  .customer-midnight .customer-heading-actions { width: 100%; }
  .customer-midnight .customer-grid, .customer-midnight .customer-overview-rail, .customer-midnight .customer-form-grid, .customer-midnight .customer-info-list, .customer-midnight .customer-detail-grid { grid-template-columns: minmax(0,1fr); }
  .customer-midnight .customer-next-journey, .customer-midnight .customer-profile-card, .customer-midnight .customer-account-panel, .customer-midnight .customer-payment-card { padding: 18px; }
  .customer-midnight .customer-section-heading { align-items: flex-start; flex-wrap: wrap; }
  .customer-midnight .customer-feature-itinerary { padding: 18px; }
  .customer-midnight .customer-feature-itinerary .customer-card-route { grid-template-columns: minmax(0,1fr); margin: 24px 0; gap: 22px; }
  .customer-midnight .customer-feature-facts { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .customer-midnight .customer-feature-payment { text-align: left; }
  .customer-midnight .customer-feature-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .customer-midnight .customer-section-heading h3 { font-size: 18px; }
  .customer-midnight .customer-card-heading { align-items: flex-start; }
  .customer-midnight .customer-detail-card { inset: 0; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .customer-midnight .customer-detail-card > .customer-topbar { padding: 16px; }
  .customer-midnight .customer-detail-card h2 { font-size: 20px; }
  .customer-midnight .customer-detail-output { padding: 16px; }
  .customer-midnight .customer-detail-hero, .customer-midnight .customer-detail-section { padding: 16px; }
  .customer-midnight .customer-site-footer { gap: 14px; }
  .customer-midnight .customer-site-footer a { margin-left: 0; }
  .customer-midnight .customer-auth-card { padding: 24px; }
  .customer-midnight .customer-signin { padding: max(20px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .customer-midnight .customer-heading-actions .customer-primary-action { width: 100%; }
  .customer-midnight .customer-payment-actions > :is(button,a) { width: 100%; }
  .customer-midnight .customer-document-row { flex-wrap: wrap; }
  .customer-midnight .customer-site-footer { padding-bottom: max(28px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .customer-midnight *, .customer-midnight *::before, .customer-midnight *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Journey progress uses the same muted stage colours as the driver capsules. */
[data-customer-journey-status]:not([hidden]) { margin: 8px 0 12px; }
.customer-journey-pill { white-space: normal; max-width: 100%; }
.customer-journey-pill[data-status="offered"], .customer-journey-pill[data-status="accepted"], .customer-journey-pill[data-status="details_sent"] { background: #243543; color: #a9c9e8; border-color: #425c72; }
.customer-journey-pill[data-status="on_route"] { background: #263b45; color: #b1d6e5; border-color: #436776; }
.customer-journey-pill[data-status="arrived"] { background: #423823; color: #efd09b; border-color: #75613c; }
.customer-journey-pill[data-status="passenger_onboard"] { background: #2b3934; color: #aed6c3; border-color: #496b5d; }
.customer-journey-pill[data-status="rejected"] { background: #3d3033; color: #e5b7bd; border-color: #725059; }
