/* ============================================================================
   ShiftFuel — Installed PWA app-shell
   ----------------------------------------------------------------------------
   Loaded on every page (injected by supabase-client.js) but INERT unless the
   site is running as an installed phone app: most rules are gated on
   `html.sf-standalone.sf-compact`. Normal browsers (desktop + mobile web) never
   match those selectors, so the desktop dashboards and the lightweight mobile
   web fallback are unaffected.

   Customer Book/Track/Account app-shell styling is installed-PWA only. A
   signed-in customer in a plain mobile browser stays in the responsive website.

   Role tinting keeps the existing brand:
     customer  var(--sf-primary) (teal)   worker #0b3d5c (blue)   admin #1a1f3d (navy)
   ========================================================================== */

/* ---- App-home launcher: hidden everywhere except the installed phone app --- */
[data-sf-applauncher] { display: none; }
html:not(.sf-standalone) [data-sf-applauncher],
html:not(.sf-compact)    [data-sf-applauncher] { display: none !important; }

.sf-apphome-btn { display: none; }

html.sf-standalone.sf-compact [data-sf-applauncher]:not([hidden]) {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  z-index: 1100;               /* above content, below the bottom tab bar (1200) */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(env(safe-area-inset-top) + 22px) 18px
           calc(env(safe-area-inset-bottom) + 96px) 18px;
  color: #fff;
  background: var(--sf-primary);
}
/* Role-tinted launcher backgrounds */
html.sf-standalone.sf-compact body.worker-portal-page [data-sf-applauncher]:not([hidden]) {
  background: radial-gradient(120% 90% at 50% 0%, #0f4f75 0%, #0b3d5c 55%, #082c43 100%);
}
html.sf-standalone.sf-compact body.admin-portal-page [data-sf-applauncher]:not([hidden]) {
  background: radial-gradient(120% 90% at 50% 0%, #262d55 0%, #1a1f3d 55%, #12162b 100%);
}
html.sf-standalone.sf-compact body.customer-account-page [data-sf-applauncher]:not([hidden]) {
  background: radial-gradient(120% 90% at 50% 0%, var(--sf-primary-soft) 0%, var(--sf-primary) 55%, #082827 100%);
}

/* Lock background scroll while the launcher is up */
html.sf-standalone.sf-compact body.sf-launcher-open { overflow: hidden; }

/* Dismiss (reveal the page/dashboard underneath). Worker/admin can also just tap
   the bottom tab bar; the customer app has no tab bar, so this is its way out. */
.sf-launcher-dismiss {
  position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 16px;
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sf-launcher-dismiss:active { background: rgba(255,255,255,.24); }
.sf-launcher-dismiss svg { width: 18px; height: 18px; }

/* Launcher header (greeting) */
.sf-launcher-head { margin: 6px 44px 20px 4px; }
.sf-launcher-kicker {
  margin: 0 0 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: rgba(255,255,255,.62);
}
.sf-launcher-title { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.sf-launcher-sub { margin: 6px 0 0; font-size: .92rem; color: rgba(255,255,255,.72); }

/* Tile grid */
.sf-launcher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .15s ease;
}
.sf-tile:active { transform: scale(.97); background: rgba(255,255,255,.14); }
.sf-tile-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
}
.sf-tile-icon svg { width: 22px; height: 22px; }
.sf-tile-label { font-size: 1rem; font-weight: 700; line-height: 1.15; }
.sf-tile-sub { font-size: .78rem; color: rgba(255,255,255,.66); margin-top: -4px; }
.sf-tile-badge {
  position: absolute; top: 12px; right: 12px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: #e0533d; color: #fff; font-size: .74rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Full-width feature tile (first shortcut) */
.sf-tile.sf-tile-primary {
  grid-column: 1 / -1;
  min-height: 92px;
  flex-direction: row;
  align-items: center;
  background: rgba(255,255,255,.15);
}
.sf-tile.sf-tile-primary .sf-tile-icon { width: 46px; height: 46px; }

/* ---- Header "app home" button (returns to the launcher) ------------------- */
html.sf-standalone.sf-compact .sf-apphome-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-right: 6px; flex: none;
  border: 0; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
}
html.sf-standalone.sf-compact .sf-apphome-btn svg { width: 20px; height: 20px; }
/* Customer header is light — tint the button for contrast there. */
html.sf-standalone.sf-compact body.customer-account-page .sf-apphome-btn {
  background: var(--sf-primary); color: #fff;
}

/* ---- App chrome polish (installed phone app) ------------------------------ */
html.sf-standalone.sf-compact body.worker-portal-page .portal-header,
html.sf-standalone.sf-compact body.admin-portal-page .portal-header,
html.sf-standalone.sf-compact body.customer-account-page .site-header {
  padding-top: calc(env(safe-area-inset-top) + 8px) !important;
}

html.sf-standalone.sf-compact body.admin-portal-page .admin-hero-top {
  display: none !important;
}

html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="workers"] > .admin-toolbar:first-child,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="settings"] > .admin-toolbar:first-child {
  display: none !important;
}

html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="support"] > .admin-toolbar:first-child > div:first-child > .eyebrow,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="support"] > .admin-toolbar:first-child > div:first-child > h2,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="payroll"] > .admin-toolbar:first-child > div:first-child > .eyebrow,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="payroll"] > .admin-toolbar:first-child > div:first-child > h2,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="marketing"] > .admin-toolbar:first-child > div:first-child > .eyebrow,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="marketing"] > .admin-toolbar:first-child > div:first-child > h2,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="services"] > .admin-toolbar:first-child > div:first-child > .eyebrow,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="services"] > .admin-toolbar:first-child > div:first-child > h2,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="create-request"] > .admin-toolbar:first-child > div:first-child > .eyebrow,
html.sf-standalone.sf-compact body.admin-portal-page [data-tab-panel="create-request"] > .admin-toolbar:first-child > div:first-child > h2 {
  display: none !important;
}

/* Worker installed app mirrors the mobile worker polish: action-first landing,
   readable update empty states, and a cleaner Earnings calculator. */
html.sf-standalone.sf-compact body.worker-portal-page .worker-today-section {
  padding-top: 14px !important;
  padding-bottom: 6px !important;
}

html.sf-standalone.sf-compact body.worker-portal-page .worker-today-section + .section {
  padding-top: 0 !important;
  padding-bottom: 8px !important;
}

html.sf-standalone.sf-compact body.worker-portal-page .worker-today-section + .section .worker-card-heading {
  display: none !important;
}

html.sf-standalone.sf-compact body.worker-portal-page .worker-update-list li.field-help {
  display: block !important;
  grid-template-columns: none !important;
  line-height: 1.45;
}

html.sf-standalone.sf-compact body.worker-portal-page #wtab-earnings .section {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

html.sf-standalone.sf-compact body.worker-portal-page .worker-earnings-mini {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html.sf-standalone.sf-compact body.worker-portal-page .worker-pay-calc-inputs {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 10px !important;
}

html.sf-standalone.sf-compact body.worker-portal-page .worker-pay-calc-inputs label:nth-child(3),
html.sf-standalone.sf-compact body.worker-portal-page .worker-pay-calc-inputs label:nth-child(4),
html.sf-standalone.sf-compact body.worker-portal-page .worker-pay-calc-check {
  grid-column: 1 / -1 !important;
}

/* Customer app: drop the marketing nav + footer, keep just the app header. */
html.sf-standalone.sf-compact body.customer-account-page .site-header .nav,
html.sf-standalone.sf-compact body.customer-account-page .site-header .mobile-menu-button,
html.sf-standalone.sf-compact body.customer-account-page .site-footer {
  display: none !important;
}

/* Bottom tab bar: extra home-indicator safe area so labels aren't clipped.
   (Keep its base z-index of 1200 so it stays above the launcher overlay.) */
html.sf-standalone.sf-compact .app-tabbar {
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
}

/* In-account embedded checkout: keep the floating estimated-total bar clear of
   the customer bottom tab bar (installed PWA phone). */
html.sf-standalone.sf-compact body.customer-account-page .mobile-booking-summary-bar {
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

/* Kill the browser tap-highlight on app controls for a native feel. */
html.sf-standalone.sf-compact .app-tab,
html.sf-standalone.sf-compact .sf-apphome-btn { -webkit-tap-highlight-color: transparent; }

/* ============================================================================
   CUSTOMER PWA HOME — premium installed-app dashboard (reference design)
   Dark-green gradient, rounded white cards, soft shadows, bottom nav.
   Gated on installed phone app + the customer surface only — browser + desktop
   are completely unaffected (they keep the normal responsive site).
   ========================================================================== */
html.sf-standalone.sf-compact body.customer-account-page {
  background: linear-gradient(175deg, var(--sf-primary-soft) 0%, var(--sf-primary) 44%, var(--sf-primary-dark) 100%) fixed;
  color: #eaf4f2;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
}
html.sf-standalone.sf-compact body.customer-account-page .customer-account-shell,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard { background: transparent; }

/* App header floats over the gradient */
html.sf-standalone.sf-compact body.customer-account-page .site-header {
  background: transparent; border: 0; box-shadow: none; position: static;
}
html.sf-standalone.sf-compact body.customer-account-page .site-header .logo,
html.sf-standalone.sf-compact body.customer-account-page .site-header .logo span { color: #fff; }

html.sf-standalone.sf-compact body.customer-account-page .customer-account-shell {
  padding: 4px 16px 24px; max-width: 100%;
}

@media (max-height: 680px) {
  html.sf-standalone.sf-compact [data-sf-applauncher]:not([hidden]) {
    padding-top: calc(env(safe-area-inset-top) + 14px);
    padding-bottom: calc(env(safe-area-inset-bottom) + 82px);
  }
  .sf-launcher-head { margin-bottom: 14px; }
  .sf-launcher-title { font-size: 1.38rem; }
  .sf-launcher-sub { font-size: .86rem; }
  .sf-launcher-grid { gap: 10px; }
  .sf-tile { min-height: 104px; padding: 14px; border-radius: 16px; }
  .sf-tile.sf-tile-primary { min-height: 82px; }
  .sf-tile-icon { width: 36px; height: 36px; border-radius: 11px; }
}

/* Greeting */
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-header { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-kicker { display: none; }
/* Phone app: the green Book CTA card + current-service card already cover book/track,
   so the header quick-actions row is redundant here. */
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-quickactions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 18px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-quickactions .button {
  width: 100%; min-height: 58px; border-radius: 16px; font-weight: 800; font-size: 1rem;
}
/* The prominent Book/Track quick buttons replace the separate Book CTA card on phone. */
html.sf-standalone.sf-compact body.customer-account-page .customer-book-cta { display: none !important; }
html.sf-standalone.sf-compact body.customer-account-page [data-customer-greeting] {
  color: #fff; font-size: 1.85rem; font-weight: 800; letter-spacing: -.01em; margin: 0;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-subtitle {
  color: rgba(255,255,255,.72); margin: 6px 0 0; font-size: .95rem;
}

/* Declutter: summary and the extra action buttons aren't in the app home;
   keep only a subtle Sign out. */
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-summary { display: none !important; }
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-actions > * { display: none !important; }
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-actions {
  margin-top: 12px; justify-content: flex-start;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-actions [data-customer-sign-out] {
  display: inline-flex !important; background: transparent; border: 1px solid rgba(255,255,255,.32);
  color: rgba(255,255,255,.85); border-radius: 12px; padding: 10px 18px; font-weight: 700;
}

html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-dashboard-section:not(.customer-app-panel),
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-quickactions,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-claim-panel,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-recommend,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-dashboard-summary,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-dashboard-stats,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-dashboard-layout,
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard.is-alt-view > .customer-support-link {
  display: none !important;
}

/* Book a Service CTA (installed app only) */
.customer-book-cta { display: none; }
html.sf-standalone.sf-compact body.customer-account-page .customer-book-cta {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 16px 18px; border-radius: 20px;
  background: linear-gradient(135deg, #1e7d52 0%, #12643f 100%);
  color: #fff; box-shadow: 0 14px 32px rgba(9,58,42,.42);
}
html.sf-standalone.sf-compact body.customer-account-page .customer-book-cta:active { transform: scale(.985); }
.customer-book-cta-icon { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.customer-book-cta-icon svg { width: 24px; height: 24px; }
.customer-book-cta-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.customer-book-cta-text strong { font-size: 1.1rem; font-weight: 800; }
.customer-book-cta-text span { font-size: .84rem; color: rgba(255,255,255,.82); }
.customer-book-cta-arrow { flex: none; opacity: .9; }
.customer-book-cta-arrow svg { width: 22px; height: 22px; }

/* Dashboard → single clean column */
html.sf-standalone.sf-compact body.customer-account-page .customer-dashboard-layout {
  display: flex; flex-direction: column; gap: 18px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-services {
  margin: 8px 0 18px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-quickactions {
  gap: 12px;
  margin-bottom: 18px;
}

/* Section labels sit on the gradient (uppercase, light) */
html.sf-standalone.sf-compact body.customer-account-page .customer-section-heading { margin: 0 4px 10px; }
html.sf-standalone.sf-compact body.customer-account-page .customer-section-heading h3 {
  color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-section-heading > span {
  color: rgba(255,255,255,.72); background: rgba(255,255,255,.14); border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 800;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-section-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Rounded white cards + soft shadow */
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-data-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-current-card {
  background: #fff; color: var(--sf-primary-dark); border: 0; border-radius: 20px;
  box-shadow: 0 12px 30px rgb(var(--sf-primary-rgb, 13 59 59) / .22); padding: 18px; margin: 0 0 12px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-card-list { display: flex; flex-direction: column; }
html.sf-standalone.sf-compact body.customer-account-page .customer-card-list > *:last-child { margin-bottom: 0; }

/* Active "Current service" card — the hero */
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card-active > div:first-child strong {
  font-size: 1.32rem; font-weight: 800; color: var(--sf-primary-dark);
}
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card-active > div:first-child span { color: #6b8582; font-size: .82rem; }
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card dl {
  margin: 14px 0; display: grid; gap: 11px; border-top: 1px solid #eef2f1; padding-top: 14px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card dl div { display: flex; justify-content: space-between; gap: 12px; }
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card dl dt {
  color: #6b8582; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card dl dd { color: var(--sf-primary-dark); font-weight: 700; font-size: .92rem; text-align: right; margin: 0; }
/* status pill/dot on the first (Status) row */
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card-active dl div:first-child dd {
  color: #1e7d52; display: inline-flex; align-items: center; gap: 8px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card-active dl div:first-child dd::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1e7d52; box-shadow: 0 0 0 4px rgba(30,125,82,.16);
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-card-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-card-head strong {
  display: block; color: var(--sf-primary-dark); font-size: 1.28rem; line-height: 1.15;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-label,
html.sf-standalone.sf-compact body.customer-account-page .customer-current-ticket {
  display: block; color: #6b8582; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-details {
  margin: 14px 0; display: grid; gap: 10px; border-top: 1px solid #eef2f1; padding-top: 14px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-details div {
  display: flex; justify-content: space-between; gap: 12px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-details dt {
  color: #6b8582; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-details dd {
  margin: 0; color: var(--sf-primary-dark); font-weight: 800; font-size: .9rem; text-align: right;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-current-card .button {
  display: flex; width: 100%; justify-content: center; background: #1e7d52; color: #fff;
  border: 0; border-radius: 14px; padding: 13px; font-weight: 800;
}
/* Track/track button → full-width green primary */
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card .button {
  display: flex; width: 100%; justify-content: center; margin-top: 6px;
  background: #1e7d52; color: #fff; border: 0; border-radius: 14px; padding: 13px; font-weight: 800; font-size: .98rem;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-request-card .button + .button {
  margin-top: 8px; background: #fff; color: #12643f; border: 1.5px solid #d6e4e0;
}

/* Saved vehicle / address / history cards */
html.sf-standalone.sf-compact body.customer-account-page .customer-data-card strong { color: var(--sf-primary-dark); font-size: 1.02rem; }
html.sf-standalone.sf-compact body.customer-account-page .customer-data-card span { color: #55706c; font-size: .88rem; }
html.sf-standalone.sf-compact body.customer-account-page .customer-saved-detail-card small {
  color: #6b8582;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-card-actions { margin-top: 12px; gap: 8px; flex-wrap: wrap; }
html.sf-standalone.sf-compact body.customer-account-page .customer-card-actions .button {
  background: #eef4f2; color: #12643f; border: 0; border-radius: 11px; padding: 9px 13px; font-size: .82rem; font-weight: 700;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-card { color: #55706c; }
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-card .button {
  background: #1e7d52; color: #fff; border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 800; display: inline-flex; margin-top: 10px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-actions {
  display: grid; gap: 8px; margin-top: 10px;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-actions .button {
  margin-top: 0; justify-content: center;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-actions .button.secondary {
  background: #eef4f2; color: #12643f;
}
/* "Recommended for you" cards: the base layout is a flex row (copy + button).
   In the narrow phone card that crushes the copy into a one-word-per-line column
   with the button overlapping — so stack it like the other app cards. */
html.sf-standalone.sf-compact body.customer-account-page .customer-recommend-card {
  flex-direction: column; align-items: stretch; gap: 12px;
  border-radius: 20px; padding: 18px; box-shadow: 0 12px 30px rgb(var(--sf-primary-rgb, 13 59 59) / .22);
}
html.sf-standalone.sf-compact body.customer-account-page .customer-recommend-copy strong { color: var(--sf-primary-dark); font-size: 1.02rem; }
html.sf-standalone.sf-compact body.customer-account-page .customer-recommend-card .button {
  width: 100%; justify-content: center;
  background: #1e7d52; color: #fff; border: 0; border-radius: 14px; padding: 13px; font-weight: 800;
}

/* ── Signed-in dashboard redesign components inside the phone app ────────────
   White cards read fine on the gradient; these fix the elements that used a
   translucent green tint (invisible on green) + put the avatar in the header. */
html.sf-standalone.sf-compact body.customer-account-page .customer-welcome-banner {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #eaf4f2;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-welcome-banner-icon { background: rgba(255,255,255,.18); color: #fff; }
html.sf-standalone.sf-compact body.customer-account-page .customer-quickaction { border: 0; box-shadow: 0 10px 26px rgb(var(--sf-primary-rgb, 13 59 59) / .2); }
html.sf-standalone.sf-compact body.customer-account-page .customer-shortcut { border: 0; box-shadow: 0 10px 26px rgb(var(--sf-primary-rgb, 13 59 59) / .2); }
html.sf-standalone.sf-compact body.customer-account-page .customer-section-heading-actions > span {
  color: rgba(255,255,255,.75); background: rgba(255,255,255,.14);
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 800;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-section-add { background: rgba(255,255,255,.16); color: #fff; }
html.sf-standalone.sf-compact body.customer-account-page .customer-section-manage {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
/* MU avatar lives in the top-right of the app header. */
html.sf-standalone.sf-compact body.customer-account-page .customer-header-signed,
html.sf-standalone.sf-compact body.booking-page .customer-header-signed,
html.sf-standalone.sf-compact body.track-page .customer-header-signed { margin-left: auto; }
html.sf-standalone.sf-compact body.customer-account-page .customer-avatar-btn,
html.sf-standalone.sf-compact body.booking-page .customer-avatar-btn,
html.sf-standalone.sf-compact body.track-page .customer-avatar-btn { color: #fff; }

/* Bottom navigation (customer app only) */
.customer-tabbar { display: none; }

/* Customer bottom navigation is for the installed PWA only. Normal mobile
   browser should keep the website shell: header navigation, page content, and
   footer without fixed app tabs. */
@media (max-width: 760px) {
  html.sf-browser body.customer-account-page .customer-tabbar,
  html.sf-browser body.booking-page .customer-tabbar,
  html.sf-browser body.track-page .customer-tabbar,
  html.sf-browser body.account-page .customer-tabbar {
    display: none !important;
  }

  /* Mobile website: the "SECTION ▾" bar already names the current section, so the
     Book and My Account app-views don't repeat it as a page hero (kicker + title +
     subtitle). Home keeps its "Hi, <name>" greeting since that isn't the section
     name. The installed PWA has no SECTION bar (bottom tabbar instead), so this is
     scoped to sf-browser. */
  html.sf-browser [data-customer-app-view="book"] .customer-dashboard-header,
  html.sf-browser [data-customer-app-view="book-details"] .customer-dashboard-header,
  html.sf-browser [data-customer-app-view="account"] .customer-dashboard-header {
    display: none;
  }
}

html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar { display: flex; }
html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar .app-tab.is-active {
  color: #fff;
  background: #126043;
  box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
}

/* Canonical "S" logo mark on every signed-in customer surface: the filled gradient
   tile from the My Account header. Track shipped a transparent (borderless) variant
   (layout-width-polish.css uses !important), which made its "S" look different from
   Book/Dashboard/Account — force the shared tile + icon size so all four match. */
body.customer-account-page .site-header .logo-mark,
body.account-page .site-header .logo-mark,
body.booking-page .site-header .logo-mark,
body.track-page .site-header .logo-mark {
  background: linear-gradient(135deg, rgba(234, 242, 234, 0.2), rgba(255, 255, 255, 0.08)) !important;
  color: var(--sf-sage) !important;
  border-radius: 10px;
}
body.customer-account-page .site-header .logo-mark img,
body.account-page .site-header .logo-mark img,
body.booking-page .site-header .logo-mark img,
body.track-page .site-header .logo-mark img {
  width: 32px;
  height: 32px;
}
/* Hide the header "SECTION ▾" switcher in the installed app on EVERY signed-in
   customer surface (Home/Book/Track/Account): the bottom tabbar already navigates
   the same four destinations, so the top bar is pure duplication. The switcher's
   nav only ever lists those four top-level sections — it never navigates settings
   subpages — so hiding it on the settings page is safe too; Profile/Security/
   Vehicles/etc. are reached via the cards in the page body. */
html.sf-standalone.sf-compact body.customer-account-page .customer-section-toggle,
html.sf-standalone.sf-compact body.booking-page .customer-section-toggle,
html.sf-standalone.sf-compact body.track-page .customer-section-toggle,
html.sf-standalone.sf-compact body.account-page .customer-section-toggle {
  display: none !important;
}
html.sf-standalone.sf-compact body.customer-account-page .customer-header-nav.is-mobile-open,
html.sf-standalone.sf-compact body.booking-page .customer-header-nav.is-mobile-open,
html.sf-standalone.sf-compact body.track-page .customer-header-nav.is-mobile-open,
html.sf-standalone.sf-compact body.account-page .customer-header-nav.is-mobile-open {
  display: none !important;
}

/* Single source of truth for the installed customer tabbar's active-tab color. */
@media (max-width: 760px) {
  html.sf-standalone.sf-compact .customer-tabbar .app-tab.is-active {
    color: #fff;
    background: #126043;
    box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
  }
}

/* Customer app shell: keep customer routes inside the app, not the public site. */
html.sf-standalone.sf-compact body.booking-page,
html.sf-standalone.sf-compact body.track-page,
html.sf-standalone.sf-compact body.account-page {
  background: linear-gradient(175deg, var(--sf-primary-soft) 0%, var(--sf-primary) 44%, var(--sf-primary-dark) 100%) fixed;
  color: #eaf4f2;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

html.sf-standalone.sf-compact body.booking-page .customer-tabbar,
html.sf-standalone.sf-compact body.track-page .customer-tabbar,
html.sf-standalone.sf-compact body.account-page .customer-tabbar {
  display: flex !important;
}

html.sf-standalone.sf-compact body.booking-page .customer-tabbar .app-tab.is-active,
html.sf-standalone.sf-compact body.track-page .customer-tabbar .app-tab.is-active,
html.sf-standalone.sf-compact body.account-page .customer-tabbar .app-tab.is-active {
  color: #fff;
  background: #126043;
  box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
}

html.sf-standalone.sf-compact body.booking-page .site-header,
html.sf-standalone.sf-compact body.track-page .site-header,
html.sf-standalone.sf-compact body.account-page .site-header {
  position: static;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
  background: var(--sf-primary);
  border: 0;
  border-radius: 0 !important;
  box-shadow: 0 10px 24px rgb(var(--sf-primary-rgb, 13 59 59) / 0.22);
  padding: calc(env(safe-area-inset-top) + 10px) 18px 12px !important;
}

html.sf-standalone.sf-compact body.booking-page .site-header .logo,
html.sf-standalone.sf-compact body.track-page .site-header .logo,
html.sf-standalone.sf-compact body.account-page .site-header .logo,
html.sf-standalone.sf-compact body.booking-page .site-header .logo span,
html.sf-standalone.sf-compact body.track-page .site-header .logo span,
html.sf-standalone.sf-compact body.account-page .site-header .logo span {
  color: #fff;
}

html.sf-standalone.sf-compact body.booking-page .site-header .nav,
html.sf-standalone.sf-compact body.track-page .site-header .nav,
html.sf-standalone.sf-compact body.booking-page .site-header .mobile-menu-button,
html.sf-standalone.sf-compact body.track-page .site-header .mobile-menu-button,
html.sf-standalone.sf-compact body.booking-page .landing-final-cta,
html.sf-standalone.sf-compact body.booking-page .site-footer,
html.sf-standalone.sf-compact body.track-page .site-footer,
html.sf-standalone.sf-compact body.account-page .site-footer {
  display: none !important;
}

html.sf-standalone.sf-compact body.booking-page .booking-flow-hero,
html.sf-standalone.sf-compact body.track-page .track-hero-redesign,
html.sf-app-shell.sf-compact body.track-page.customer-account-loaded .track-hero-redesign,
html.sf-app-shell.sf-compact body.track-authed .track-hero-redesign {
  display: none;
}

html.sf-standalone.sf-compact body.booking-page .booking-flow-shell,
html.sf-standalone.sf-compact body.track-page .track-shell {
  max-width: 100%;
  padding: 8px 16px 22px;
}

html.sf-app-shell.sf-compact body.track-page.customer-account-loaded .track-shell,
html.sf-app-shell.sf-compact body.track-authed .track-shell {
  max-width: 100%;
  padding-top: 8px;
}

html.sf-standalone.sf-compact body.booking-page .booking-flow,
html.sf-standalone.sf-compact body.track-page .track-search-card,
html.sf-standalone.sf-compact body.account-page .account-layout {
  background: #fff;
  color: var(--sf-primary-dark);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgb(var(--sf-primary-rgb, 13 59 59) / .22);
}

html.sf-standalone.sf-compact body.booking-page .booking-flow {
  padding: 18px;
}

html.sf-standalone.sf-compact body.track-page .track-search-card {
  margin: 0;
  padding: 18px;
}

html.sf-standalone.sf-compact body.account-page .account-layout {
  display: block;
  margin: 8px 16px 22px;
  min-height: 0;
  overflow: hidden;
}

html.sf-standalone.sf-compact body.account-page .account-sidebar {
  border: 0;
  background: #f7fbfa;
}

html.sf-standalone.sf-compact body.account-page .account-content {
  max-height: none;
}

/* ── Settings page (account.html) — installed PWA shell only. Mobile browser keeps
   the responsive website account.css/styles/mobile-polish.css treatment. */
html.sf-standalone.sf-compact body.account-page {
  background: linear-gradient(175deg, var(--sf-primary-soft) 0%, var(--sf-primary) 44%, var(--sf-primary-dark) 100%) fixed;
  color: #eaf4f2;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
html.sf-standalone.sf-compact body.account-page .customer-tabbar { display: flex !important; }
html.sf-standalone.sf-compact body.account-page .customer-tabbar .app-tab.is-active {
  color: #fff;
  background: #126043;
  box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
}
html.sf-standalone.sf-compact body.account-page .site-header {
  position: static; width: 100vw !important; max-width: none !important;
  margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box; background: var(--sf-primary); border: 0; border-radius: 0 !important;
  box-shadow: 0 10px 24px rgb(var(--sf-primary-rgb, 13 59 59) / 0.22);
  padding: calc(env(safe-area-inset-top) + 10px) 18px 12px !important;
}
html.sf-standalone.sf-compact body.account-page .site-header .logo,
html.sf-standalone.sf-compact body.account-page .site-header .logo span { color: #fff; }
/* The account popup is a centered modal (see styles.css .customer-account-menu);
   it already fills the viewport with a backdrop, so the PWA needs no repositioning
   overrides here. */
html.sf-standalone.sf-compact body.account-page .site-footer { display: none !important; }
html.sf-standalone.sf-compact body.account-page .account-layout {
  background: #fff; color: var(--sf-primary-dark); border: 0; border-radius: 20px;
  box-shadow: 0 12px 30px rgb(var(--sf-primary-rgb, 13 59 59) / .22);
  /* !important: mobile-polish.css forces width:100% !important on this same
     element (shared with admin/worker/booking/track shells); with the margin
     above that leaves no room and the card overflows the viewport by 32px. */
  display: block; width: auto !important; margin: 8px 16px 22px; min-height: 0; overflow: hidden;
}
html.sf-standalone.sf-compact body.account-page .account-sidebar { border: 0; background: #f7fbfa; }
html.sf-standalone.sf-compact body.account-page .account-content { max-height: none; }

/* Mobile account is a drill-down MENU. In menu view the white .account-layout
   card is dropped so the row cards sit directly on the gradient (like the
   dashboard); the heading goes white. Detail view keeps the white content card. */
html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-layout {
  background: transparent; box-shadow: none; border-radius: 0; width: auto !important; margin: 4px 8px 22px; overflow: visible;
}
html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-sidebar { background: transparent; }
html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-sidebar-header h1 { color: #fff; }
html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-sidebar-subtitle { color: rgba(255,255,255,.72); }

html.sf-standalone.sf-compact body.account-page[data-acct-view="detail"] .account-layout {
  overflow: visible;
}

html.sf-standalone.sf-compact body.account-page[data-acct-view="detail"] .account-content {
  margin: 0;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
  background: var(--sf-primary);
  border: 0;
  border-radius: 0 !important;
  box-shadow: 0 10px 24px rgb(var(--sf-primary-rgb, 13 59 59) / 0.22);
  padding: calc(env(safe-area-inset-top) + 10px) 18px 12px !important;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-account-shell {
  padding-bottom: calc(98px + env(safe-area-inset-bottom));
}

.booking-fast-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #f7fbfa;
  border: 1px solid rgb(var(--sf-primary-rgb, 13 59 59) / 0.1);
}
.booking-fast-kicker {
  margin: 0 0 4px;
  color: #1e7d52;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.booking-fast-card h2 { margin: 0; color: var(--sf-primary-dark); font-size: 1.28rem; }
.booking-fast-card p { margin: 0; color: #5b6b67; }
.booking-fast-details {
  display: grid;
  gap: 10px;
  margin: 0;
}
.booking-fast-details div {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid rgb(var(--sf-primary-rgb, 13 59 59) / 0.08);
}
.booking-fast-details dt {
  color: #5b6b67;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.booking-fast-details dd { margin: 0; color: var(--sf-primary-dark); font-weight: 750; }
.booking-fast-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: #3d4a47 !important;
}
.booking-fast-actions { display: flex; gap: 10px; flex-wrap: wrap; }

html.sf-standalone.sf-compact .booking-fast-card {
  background: #fff;
  box-shadow: 0 12px 30px rgb(var(--sf-primary-rgb, 13 59 59) / .16);
}

@media (max-width: 760px) {
  .booking-fast-actions .button,
  .track-account-empty-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Logged-out state → app sign-in styling ------------------------------ */
html.sf-standalone.sf-compact body.customer-account-page .customer-account-intro .customer-dashboard-kicker { display: none; }
html.sf-standalone.sf-compact body.customer-account-page .customer-account-intro h1 { color: #fff; font-size: 1.9rem; font-weight: 800; }
html.sf-standalone.sf-compact body.customer-account-page .customer-account-intro p { color: rgba(255,255,255,.75); }
html.sf-standalone.sf-compact body.customer-account-page .customer-account-access-grid { display: flex; flex-direction: column; gap: 16px; }
html.sf-standalone.sf-compact body.customer-account-page .customer-account-actions-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-account-option-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-account-panel {
  background: #fff; color: var(--sf-primary-dark); border: 0; border-radius: 20px; box-shadow: 0 12px 30px rgb(var(--sf-primary-rgb, 13 59 59) / .22);
}
html.sf-standalone.sf-compact body.customer-account-page .customer-account-reassure { color: #55706c; }

/* Logged-out customer PWA: app-native sign-in screen. */
.customer-pwa-guest-actions,
.customer-pwa-security-note { display: none; }

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    linear-gradient(154deg, rgba(18, 95, 75, 0.58) 0 34%, transparent 34%),
    linear-gradient(338deg, transparent 0 34%, rgba(11, 104, 70, 0.45) 34% 58%, transparent 58%),
    linear-gradient(180deg, #062b29 0%, #0d4a42 54%, #073231 100%) fixed;
  color: #fff;
  padding-bottom: env(safe-area-inset-bottom);
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(18deg, transparent 38%, rgba(255,255,255,0.08) 39%, transparent 62%);
  opacity: .46;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header {
  position: relative;
  z-index: 1;
  padding: calc(env(safe-area-inset-top) + 34px) clamp(28px, 8vw, 48px) 18px !important;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .logo {
  align-items: center;
  gap: 14px;
  font-size: 1.58rem;
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .sf-apphome-btn,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-actions-card,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-benefits-card,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-panel-copy,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-close,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-tabbar {
  display: none !important;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-shell {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  padding: 34px clamp(24px, 8vw, 48px) 30px;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-access {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 0;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro {
  max-width: 620px;
  margin: 0;
  text-align: left;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro h1 {
  margin: 0;
  color: #fff;
  font-size: 0;
  line-height: .96;
  font-weight: 900;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro h1::before {
  content: attr(data-pwa-title);
  display: block;
  font-size: clamp(3rem, 13vw, 4.8rem);
  line-height: .98;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro p:not(.customer-dashboard-kicker) {
  margin: 18px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 0;
  line-height: 1.55;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro p:not(.customer-dashboard-kicker)::before {
  content: attr(data-pwa-copy);
  display: block;
  font-size: clamp(1.12rem, 5.1vw, 1.8rem);
  line-height: 1.45;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-access-grid,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-side {
  display: block;
  width: 100%;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 680px;
  margin: 0;
  padding: clamp(28px, 6.2vw, 42px);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  color: var(--sf-primary-dark);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 18px 46px rgb(var(--sf-primary-rgb, 13 59 59) / .3);
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tabs {
  order: 2;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="login"] {
  display: none;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="create"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 58px !important;
  padding: 0 18px;
  border: 1.5px solid #c9d4d2;
  border-radius: 14px;
  background: #fff;
  color: var(--sf-primary-dark);
  font-size: 1.04rem;
  font-weight: 900;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-mode-panel {
  order: 1;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form {
  display: grid;
  gap: 22px;
  margin: 0;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form label {
  display: grid;
  gap: 10px;
  color: #073331;
  font-size: 1rem;
  font-weight: 900;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input {
  min-height: 62px;
  border: 1.5px solid #c4cfcd;
  border-radius: 14px;
  background: #fff;
  color: var(--sf-primary-dark);
  font-size: 1.08rem;
  font-weight: 800;
  padding: 0 20px;
  box-shadow: inset 0 1px 1px rgb(var(--sf-primary-rgb, 13 59 59) / .04);
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input::placeholder {
  color: #a4adb2;
  font-weight: 800;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form .button.primary {
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #14904c, #08713d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 116, 63, .28);
  font-size: 1.16rem;
  font-weight: 900;
}

/* Issue #1: phone input, email input, Sign In, and Create Account must be the
   exact same width with aligned edges. Force every wrapper to full width with no
   stray horizontal padding/margin so all four share one left/right edge. */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-mode-panel,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form label,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tabs {
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form .button.primary,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="create"] {
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
}

/* The Face ID / remember row is a checkbox + label, not a stacked text field.
   The generic label (display:grid) and input (min-height:62px, width:100%,
   padding) rules above would otherwise turn its checkbox into a full-width empty
   box stacked above the text. Keep it a horizontal row with a small checkbox. */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form label.customer-auth-remember {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form label.customer-auth-remember input {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  box-shadow: none;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .form-status:empty {
  display: none;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .form-status[data-status="warning"] {
  display: none;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-guest-actions {
  order: 3;
  display: grid;
  width: 100%;
  gap: 18px;
  text-align: center;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #718182;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-divider::before,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d3dddd;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-guest-actions a {
  text-decoration: none;
  font-weight: 900;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-guest-primary {
  color: #0b723b;
  font-size: 1.05rem;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-guest-secondary {
  color: #738486;
  font-size: .98rem;
  font-weight: 700 !important;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-note {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 520px);
  margin: 24px 0 0;
  color: rgba(255,255,255,.78);
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-icon svg {
  width: 28px;
  height: 28px;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-note strong,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-note span span {
  display: block;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-note strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-footer {
  position: relative;
  z-index: 1;
  display: block !important;
  margin-top: auto;
  padding: 22px 18px calc(env(safe-area-inset-bottom) + 22px);
  color: rgba(255,255,255,.68);
  background: rgb(var(--sf-primary-rgb, 13 59 59) / .22);
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 18px 18px 0 0;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-footer .footer-main {
  display: block;
  text-align: center;
}

html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-footer .footer-links {
  display: none;
}

@media (max-width: 380px), (max-height: 760px) {
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header {
    padding: calc(env(safe-area-inset-top) + 22px) 24px 10px !important;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .logo {
    font-size: 1.34rem;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .logo-mark {
    width: 46px;
    height: 46px;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-shell {
    padding: 18px 18px 22px;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-access {
    gap: 20px;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro h1 {
    font-size: 0;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro h1::before {
    font-size: 2.35rem;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro p:not(.customer-dashboard-kicker) {
    margin-top: 12px;
    font-size: 0;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro p:not(.customer-dashboard-kicker)::before {
    font-size: 1rem;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-panel {
    gap: 16px;
    padding: 22px 18px 24px;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form {
    gap: 14px;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input,
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form .button.primary {
    min-height: 54px;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="create"] {
    min-height: 52px !important;
  }
  html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-note {
    margin-top: 10px;
  }
}

/* Batch 1: installed customer app shell consistency. */
html.sf-standalone.sf-compact body.customer-account-page,
html.sf-standalone.sf-compact body.booking-page,
html.sf-standalone.sf-compact body.track-page,
html.sf-standalone.sf-compact body.account-page {
  --sf-pwa-card-radius: 20px;
  --sf-pwa-card-pad: 18px;
  --sf-pwa-tabbar-clearance: calc(88px + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--sf-pwa-tabbar-clearance);
}

html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar,
html.sf-standalone.sf-compact body.booking-page .customer-tabbar,
html.sf-standalone.sf-compact body.track-page .customer-tabbar,
html.sf-standalone.sf-compact body.account-page .customer-tabbar {
  min-height: var(--sf-pwa-tabbar-clearance);
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-account-shell,
html.sf-standalone.sf-compact body.booking-page .booking-flow-shell,
html.sf-standalone.sf-compact body.track-page .track-shell {
  padding-left: 16px;
  padding-right: 16px;
}

/* Batch 4: installed customer app loop polish.
   Keep app routes feeling native and reduce public-site clutter only when the
   app is installed/standalone. */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded,
html.sf-standalone.sf-compact body.booking-page,
html.sf-standalone.sf-compact body.track-page,
html.sf-standalone.sf-compact body.account-page {
  --sf-customer-app-gutter: clamp(14px, 4vw, 18px);
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-account-shell,
html.sf-standalone.sf-compact body.booking-page .booking-flow-shell,
html.sf-standalone.sf-compact body.track-page .track-shell {
  padding-left: var(--sf-customer-app-gutter);
  padding-right: var(--sf-customer-app-gutter);
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard,
html.sf-standalone.sf-compact body.booking-page .booking-flow,
html.sf-standalone.sf-compact body.track-page .track-search-card,
html.sf-standalone.sf-compact body.track-page .track-request-card {
  border-radius: 22px;
  box-shadow: 0 14px 34px rgb(var(--sf-primary-rgb, 13 59 59) / 0.2);
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard-stats a {
  min-height: 74px;
  align-content: center;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard-section {
  min-width: 0;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-request-card,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-data-card,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-empty-card {
  padding: 16px;
  border-radius: 18px;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-card-actions .button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-account-hub-signout {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 14px;
  background: #fff;
}

html.sf-standalone.sf-compact body.booking-page .booking-step-header {
  min-height: 58px;
}

html.sf-standalone.sf-compact body.booking-page .booking-step-panel,
html.sf-standalone.sf-compact body.booking-page .booking-panel,
html.sf-standalone.sf-compact body.booking-page .booking-step-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html.sf-standalone.sf-compact body.booking-page .booking-accordion-card,
html.sf-standalone.sf-compact body.booking-page .returning-option-card {
  border-radius: 18px;
}

html.sf-standalone.sf-compact body.booking-page .booking-step-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

html.sf-standalone.sf-compact body.booking-page .button,
html.sf-standalone.sf-compact body.account-page .button {
  min-height: 50px;
  border-radius: 14px;
}

html.sf-standalone.sf-compact body.booking-page .app-tab[href*="/book"],
html.sf-standalone.sf-compact body.customer-account-page .app-tab.is-active,
html.sf-standalone.sf-compact body.account-page .app-tab.is-active {
  color: #fff;
  background: #126043;
  box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
}

html.sf-standalone.sf-compact body.customer-account-page .customer-request-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-data-card,
html.sf-standalone.sf-compact body.customer-account-page .customer-empty-card,
html.sf-standalone.sf-compact body.booking-page .booking-flow,
html.sf-standalone.sf-compact body.account-page .account-layout {
  border-radius: var(--sf-pwa-card-radius);
}

html.sf-standalone.sf-compact body.customer-account-page .customer-request-card .button,
html.sf-standalone.sf-compact body.customer-account-page .customer-data-card .button,
html.sf-standalone.sf-compact body.booking-page .button,
html.sf-standalone.sf-compact body.account-page .button {
  min-height: 46px;
}

/* ── One-screen phone sign-in polish (installed customer PWA only) ───────────
   Tightens the logged-out customer sign-in so it fits one phone screen without
   scrolling: single heading source (kills the ::before duplicate; the visible
   text is the JS-set textContent), smaller hero, compact card, and no website
   footer or security block. Scoped to standalone + sf-compact + logged-out, so
   desktop, mobile browser, and the signed-in dashboard are untouched. */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header {
  padding: calc(env(safe-area-inset-top) + 12px) clamp(18px, 6vw, 32px) 8px !important;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .logo {
  font-size: 1.2rem;
  gap: 10px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .logo-mark {
  width: 40px;
  height: 40px;
}
/* No website hamburger nav on the app sign-in screen (it was opening behind the card). */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .nav,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-header .mobile-menu-button {
  display: none !important;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-shell {
  padding: 12px clamp(18px, 6vw, 32px) 16px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-access {
  gap: 14px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro .customer-dashboard-kicker {
  display: none;
}
/* Single heading/copy source — no ::before duplicate. */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro h1 {
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  line-height: 1.06;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro h1::before {
  content: none;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro p:not(.customer-dashboard-kicker) {
  margin: 6px 0 0;
  font-size: clamp(.98rem, 3.6vw, 1.08rem);
  line-height: 1.4;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-intro p:not(.customer-dashboard-kicker)::before {
  content: none;
}
/* Tighter login card. */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-panel {
  gap: 14px;
  padding: 18px 18px 20px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form {
  gap: 16px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input {
  min-height: 58px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form .button.primary {
  min-height: 56px;
  margin-top: 10px;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="create"] {
  min-height: 50px !important;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-guest-actions {
  gap: 10px;
  margin-top: 2px;
}
/* No large website footer or security block on the phone sign-in screen. */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .site-footer,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-pwa-security-note {
  display: none !important;
}

/* ── Sign-in card fixes ─────────────────────────────────────────────────────
   1) Autofilled phone/email stay white (browser autofill was tinting them lavender).
   2) Tab shows only the OTHER mode's button — kills the duplicate "Create Account". */
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input:-webkit-autofill,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input:-webkit-autofill:hover,
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--sf-primary-dark);
  caret-color: var(--sf-primary-dark);
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="create"].is-active {
  display: none !important;
}
html.sf-standalone.sf-compact body.customer-account-page:not(.customer-account-loaded):not(.sf-auth-pending) .customer-account-tab[data-account-mode="login"]:not(.is-active) {
  display: flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box; min-height: 50px; padding: 0 18px; margin: 0;
  border: 1.5px solid #c9d4d2; border-radius: 14px; background: #fff;
  color: var(--sf-primary-dark); font-size: 1.04rem; font-weight: 900;
}

/* ============================================================================
   LANDING-STYLE LIGHT THEME — signed-in customer app surfaces
   ----------------------------------------------------------------------------
   Re-skins the four signed-in customer surfaces (account dashboard, Book, Track,
   Account Settings) to match the public landing page instead of the dark-green
   PWA gradient: off-white body, a solid dark-green header BAND (like
   `.site-header` / `.landing-header`), and white cards with the landing's subtle
   green border + soft shadow. Applies to mobile-web browser AND installed PWA
   (`sf-compact`); the dashboard/settings gradients were already `sf-compact`, and
   Book/Track only went dark in `sf-standalone`, so we mirror that scope for them.

   DELIBERATELY EXCLUDED: the logged-out customer sign-in gate
   (`body.customer-account-page:not(.customer-account-loaded)`) — it keeps its
   dark hero design. Every customer rule below is scoped to
   `.customer-account-loaded`, which the gate never has, so it stays untouched.
   Worker/admin portals are out of scope and unaffected.

   These rules are appended last on purpose: same-specificity source order (plus
   `!important` where the dark rules used it) lets them win cleanly.
   ========================================================================== */

/* Light off-white body — same background as the public site */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded,
html.sf-standalone.sf-compact body.account-page,
html.sf-standalone.sf-compact body.booking-page,
html.sf-standalone.sf-compact body.track-page,
html.sf-standalone.sf-compact body.account-page {
  background:
    radial-gradient(circle at top left, rgb(var(--sf-accent-rgb, 167 191 166) / 0.18), transparent 34rem),
    var(--sf-off-white);
  color: var(--sf-charcoal);
}

/* Solid dark-green header band (matches the landing page header) */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header,
html.sf-standalone.sf-compact body.account-page .site-header,
html.sf-standalone.sf-compact body.account-page .site-header,
html.sf-standalone.sf-compact body.booking-page .site-header,
html.sf-standalone.sf-compact body.track-page .site-header {
  position: static;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 4px calc(50% - 50vw) !important;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 14px !important;
  box-sizing: border-box;
  color: var(--sf-white);
  background: linear-gradient(135deg, var(--sf-teal), var(--sf-teal-dark));
  border: 0;
  border-radius: 0;
  box-shadow: var(--sf-shadow-header);
}
/* Logo + header-nav text stay white — they sit on the dark band */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header .logo,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header .logo span,
html.sf-standalone.sf-compact body.account-page .site-header .logo,
html.sf-standalone.sf-compact body.account-page .site-header .logo span,
html.sf-standalone.sf-compact body.booking-page .site-header .logo,
html.sf-standalone.sf-compact body.booking-page .site-header .logo span,
html.sf-standalone.sf-compact body.track-page .site-header .logo,
html.sf-standalone.sf-compact body.track-page .site-header .logo span {
  color: var(--sf-white);
}

/* Greeting + subtitle now sit on the light body → dark text */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-greeting] {
  color: var(--sf-teal-dark);
}
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard-subtitle {
  color: var(--sf-muted);
}

/* Section headings on the light body → dark label + green count chip */
html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-sidebar-header h1 {
  color: var(--sf-teal-dark);
}
html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-sidebar-subtitle {
  color: var(--sf-muted);
}

html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-section-heading h3 {
  color: var(--sf-teal-dark);
}
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-section-heading > span,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-section-heading-actions > span {
  color: #12643f;
  background: var(--sf-sage-light);
}
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-section-add {
  color: #12643f;
  background: var(--sf-sage-light);
}
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-section-manage {
  color: var(--sf-teal-dark);
  background: var(--sf-white);
  border-color: var(--sf-border);
}

/* Welcome banner: was translucent-white-on-green → white card on light body */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-welcome-banner {
  color: var(--sf-charcoal);
  background: var(--sf-white);
  border-color: var(--sf-border);
  box-shadow: var(--sf-shadow-soft);
}
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-welcome-banner-icon {
  color: #12643f;
  background: var(--sf-sage-light);
}

/* Sign-out: outline reads dark on the light body */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-dashboard-actions [data-customer-sign-out] {
  color: var(--sf-teal-dark);
  border-color: var(--sf-border);
}

/* White cards get the landing page's subtle border + soft shadow (was borderless
   with a heavy drop shadow, which suited the dark gradient) */
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-request-card,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-data-card,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-empty-card,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-recommend-card,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-quickaction,
html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-shortcut,
html.sf-standalone.sf-compact body.account-page .account-layout,
html.sf-standalone.sf-compact body.account-page .account-layout,
html.sf-standalone.sf-compact body.booking-page .booking-flow,
html.sf-standalone.sf-compact body.track-page .track-search-card {
  border: 1px solid var(--sf-border);
  box-shadow: var(--sf-shadow-soft);
}

html.sf-standalone.sf-compact #promo-economics-preview {
  min-width: 0;
}
html.sf-standalone.sf-compact #promo-economics-preview .marketing-promo-accounting {
  overflow-x: auto;
}
html.sf-standalone.sf-compact #promo-economics-preview .marketing-promo-table {
  min-width: 520px;
}
html.sf-standalone.sf-compact #promo-economics-preview .marketing-promo-fb-controls label {
  width: 100%;
  justify-content: space-between;
}

/* ============================================================================
   Installed Track PWA
   ----------------------------------------------------------------------------
   Track's base page/card styling lives in track-redesign.css. These are only the
   final installed-app layout decisions: app gutters, result ordering, and the
   wider request-summary layout for phone PWAs.
   ========================================================================== */
html.sf-standalone.sf-compact body.track-page {
  --sf-customer-app-gutter: 8px;
}

html.sf-standalone.sf-compact body.track-page .track-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
}

html.sf-standalone.sf-compact body.track-page .track-search-card {
  border-radius: var(--sf-pwa-card-radius);
}

html.sf-standalone.sf-compact body.track-page .track-search-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

html.sf-standalone.sf-compact body.track-page .button {
  min-height: 46px;
  border-radius: 14px;
}

html.sf-standalone.sf-compact body.track-page .app-tab[href*="/track"] {
  color: #fff;
  background: #126043;
  box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
}

html.sf-standalone.sf-compact body.track-authed #tracking-result {
  order: 1;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

html.sf-app-shell.sf-compact body.track-authed #tracking-result,
html.sf-app-shell.sf-compact body.track-page.customer-account-loaded #tracking-result {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

html.sf-app-shell.sf-compact body.track-page .track-account-empty {
  margin-top: 0;
  padding: 18px 20px;
  border-radius: 18px;
}

html.sf-standalone.sf-compact body.track-authed .track-search-card {
  order: 2;
}

html.sf-standalone.sf-compact body.track-page .track-section-body {
  padding-left: 0;
  padding-right: 0;
}

html.sf-standalone.sf-compact body.track-page .track-request-summary {
  min-height: 58px;
}

html.sf-standalone.sf-compact body.track-page .track-dashboard-card .track-request-summary {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px 12px;
}

html.sf-standalone.sf-compact body.track-page .track-dashboard-card .track-request-summary-main {
  flex: 1 1 auto;
  min-width: 0;
}

html.sf-standalone.sf-compact body.track-page .track-dashboard-card .track-request-summary-side {
  flex: 0 0 auto;
  max-width: 46%;
  justify-items: end;
  text-align: right;
}

html.sf-standalone.sf-compact body.track-page .track-dashboard-card .track-request-expand-hint {
  align-self: end;
  text-align: right;
}

html.sf-standalone.sf-compact body.track-page .track-request-body,
html.sf-standalone.sf-compact body.track-page .tk-detail-grid {
  gap: 10px;
}

html.sf-standalone.sf-compact body.track-page .tk-hero {
  margin-top: 0;
}

html.sf-standalone.sf-compact body.track-page .tk-sub-acc,
html.sf-standalone.sf-compact body.track-page .tk-card,
html.sf-standalone.sf-compact body.track-page .estimated-total-card,
html.sf-standalone.sf-compact body.track-page .review-panel {
  border-radius: 18px;
}

html.sf-standalone.sf-compact body.track-page .tk-sub-acc-history {
  margin-top: 0;
}

/* ============================================================================
   Customer Bottom Nav Parity
   ----------------------------------------------------------------------------
   Keep the customer app tabbar the same physical size as Worker/Admin. Color
   stays customer green; only dimensions/rhythm are normalized here.
   ========================================================================== */
@media (max-width: 760px) {
  html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar,
  html.sf-standalone.sf-compact body.booking-page .customer-tabbar,
  html.sf-standalone.sf-compact body.track-page .customer-tabbar,
  html.sf-standalone.sf-compact body.account-page .customer-tabbar {
    min-height: calc(76px + env(safe-area-inset-bottom, 0px));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 4px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar .app-tab,
  html.sf-standalone.sf-compact body.booking-page .customer-tabbar .app-tab,
  html.sf-standalone.sf-compact body.track-page .customer-tabbar .app-tab,
  html.sf-standalone.sf-compact body.account-page .customer-tabbar .app-tab {
    min-height: 60px;
    height: 60px;
    padding: 7px 4px;
    gap: 4px;
    border-radius: 12px;
    font-size: 0.66rem;
    line-height: 1.1;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar .app-tab svg,
  html.sf-standalone.sf-compact body.booking-page .customer-tabbar .app-tab svg,
  html.sf-standalone.sf-compact body.track-page .customer-tabbar .app-tab svg,
  html.sf-standalone.sf-compact body.account-page .customer-tabbar .app-tab svg {
    width: 22px;
    height: 22px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-tabbar .app-tab.is-active,
  html.sf-standalone.sf-compact body.booking-page .customer-tabbar .app-tab.is-active,
  html.sf-standalone.sf-compact body.track-page .customer-tabbar .app-tab.is-active,
  html.sf-standalone.sf-compact body.account-page .customer-tabbar .app-tab.is-active {
    color: #fff;
    background: #126043;
    box-shadow: 0 8px 18px rgba(18, 96, 67, 0.24);
  }
}

/* ============================================================================
   Customer PWA Header Parity
   ----------------------------------------------------------------------------
   Worker's compact header is the reference. Keep customer branding/avatar, but
   trim the installed customer shell's vertical padding so it no longer reads as
   a taller header family.
   ========================================================================== */
@media (max-width: 760px) {
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header,
  html.sf-standalone.sf-compact body.account-page .site-header,
  html.sf-standalone.sf-compact body.booking-page .site-header,
  html.sf-standalone.sf-compact body.track-page .site-header {
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px !important;
    margin-bottom: 2px !important;
    align-items: center;
  }

  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header .logo,
  html.sf-standalone.sf-compact body.account-page .site-header .logo,
  html.sf-standalone.sf-compact body.booking-page .site-header .logo,
  html.sf-standalone.sf-compact body.track-page .site-header .logo {
    gap: 10px;
    min-height: 36px;
    font-size: 1rem;
    line-height: 1.1;
  }

  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .site-header .logo-mark,
  html.sf-standalone.sf-compact body.account-page .site-header .logo-mark,
  html.sf-standalone.sf-compact body.booking-page .site-header .logo-mark,
  html.sf-standalone.sf-compact body.track-page .site-header .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-header-signed,
  html.sf-standalone.sf-compact body.account-page .customer-header-signed,
  html.sf-standalone.sf-compact body.booking-page .customer-header-signed,
  html.sf-standalone.sf-compact body.track-page .customer-header-signed {
    min-height: 36px;
    align-items: center;
  }

  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-avatar,
  html.sf-standalone.sf-compact body.account-page .customer-avatar,
  html.sf-standalone.sf-compact body.booking-page .customer-avatar,
  html.sf-standalone.sf-compact body.track-page .customer-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded .customer-avatar-btn,
  html.sf-standalone.sf-compact body.account-page .customer-avatar-btn,
  html.sf-standalone.sf-compact body.booking-page .customer-avatar-btn,
  html.sf-standalone.sf-compact body.track-page .customer-avatar-btn {
    min-height: 36px;
    padding: 0;
  }
}

/* Customer app content starts with the actual task surface. The tabbar/header
   already identifies Book and Account, so these app subviews do not need a large
   repeated dashboard title in the installed PWA. */
@media (max-width: 760px) {
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="book"] .customer-dashboard-header,
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="book-details"] .customer-dashboard-header,
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="track"] .customer-dashboard-header,
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="account"] .customer-dashboard-header {
    display: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="book"] .customer-dashboard,
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="track"] .customer-dashboard,
  html.sf-standalone.sf-compact body.customer-account-page.customer-account-loaded [data-customer-app-view="account"] .customer-dashboard {
    padding-top: 16px;
  }

  html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-sidebar-header {
    display: none;
  }

  html.sf-standalone.sf-compact body.account-page[data-acct-view="menu"] .account-layout {
    margin-top: 0;
  }
}

/* Track mobile/PWA width: accordions and request cards should share the same
   full content width, with no extra nested narrowing. */
@media (max-width: 760px) {
  body.track-page #tracking-result,
  body.track-page .track-sections,
  body.track-page .track-section,
  body.track-page .track-section-body,
  body.track-page .track-request-card,
  body.track-page .track-request-details {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body.track-page .track-section-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.track-page .track-request-summary {
    width: 100%;
    box-sizing: border-box;
  }

  body.track-page .track-request-card {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Customer PWA in-account Track panel: this keeps Track inside the mounted
   account shell, matching Worker/Admin's smooth bottom-tab switching. */
@media (max-width: 760px) {
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-panel {
    display: grid;
    gap: 12px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-status {
    padding: 18px 20px;
    border-radius: 18px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-status h2 {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-sections {
    display: grid;
    gap: 10px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(13, 59, 59, 0.10);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(13, 59, 59, 0.05);
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px 16px;
    color: var(--sf-primary-dark);
    font-weight: 950;
    list-style: none;
    cursor: pointer;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section summary::-webkit-details-marker {
    display: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section summary span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sf-primary-muted);
    border: 1px solid rgba(13, 59, 59, 0.10);
    font-size: 0.78rem;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section-body {
    display: grid;
    gap: 10px;
    padding: 0 16px 16px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section-body .customer-current-card,
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-section-body .customer-empty-card {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-card {
    display: grid;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-head > div {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-head > div > span {
    color: #5f746f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.03em;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-head strong {
    color: var(--sf-primary-dark);
    font-size: 1.02rem;
    line-height: 1.25;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-head .customer-track-pill {
    min-width: 96px;
    max-width: 128px;
    padding: 6px 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.18;
    overflow-wrap: normal;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-meta div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-meta dt {
    color: #60716d;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-meta dd {
    margin: 0;
    color: var(--sf-primary-dark);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-mini-card .customer-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-panel {
    display: grid;
    gap: 10px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-panel[hidden] {
    display: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-status,
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-static-section,
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-section {
    border: 1px solid rgba(13, 59, 59, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(13, 59, 59, 0.04);
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-status {
    display: grid;
    gap: 5px;
    padding: 14px;
    background: var(--sf-primary-muted);
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-status span,
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-list dt {
    color: #60716d;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-status strong {
    color: var(--sf-primary-dark);
    font-size: 1.12rem;
    line-height: 1.2;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-status p,
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-empty-note {
    margin: 0;
    color: #55706c;
    font-size: 0.94rem;
    line-height: 1.4;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-section {
    overflow: hidden;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-static-section {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-static-section h3 {
    margin: 0;
    color: var(--sf-primary-dark);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.2;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-static-section > div {
    display: grid;
    gap: 10px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    color: var(--sf-primary-dark);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-section > summary::-webkit-details-marker {
    display: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-section > div {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-progress-bar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-progress-bar span {
    height: 5px;
    border-radius: 999px;
    background: rgba(13, 59, 59, 0.10);
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-progress-bar span.is-done {
    background: #17724f;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-progress-copy {
    margin: 0;
    color: var(--sf-primary-dark);
    font-size: 0.86rem;
    font-weight: 900;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-list div {
    display: grid;
    gap: 3px;
    padding-top: 9px;
    border-top: 1px solid rgba(13, 59, 59, 0.08);
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-detail-list dd {
    margin: 0;
    color: var(--sf-primary-dark);
    font-weight: 850;
    line-height: 1.3;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-gps-state {
    padding: 12px;
    border-radius: 12px;
    background: #fff4df;
    color: #8a5a00;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-gps-state.is-live,
  html.sf-standalone.sf-compact body.customer-account-page .customer-track-gps-state.is-done {
    background: var(--sf-primary-muted);
    color: #126043;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-photo {
    display: grid;
    gap: 6px;
    color: var(--sf-primary-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
  }

  html.sf-standalone.sf-compact body.customer-account-page .customer-track-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(13, 59, 59, 0.12);
    background: var(--sf-primary-muted);
  }
}

/* Customer PWA Track starts at the live status card; the bottom tab already
   identifies this as Track, so the large marketing/status hero is redundant. */
@media (max-width: 760px) {
  html.sf-standalone.sf-compact body.track-page.customer-account-loaded .track-hero-redesign,
  html.sf-standalone.sf-compact body.track-authed .track-hero-redesign,
  html.sf-app-shell.sf-compact body.track-page.customer-account-loaded .track-hero-redesign,
  html.sf-app-shell.sf-compact body.track-authed .track-hero-redesign {
    display: none !important;
  }

  html.sf-standalone.sf-compact body.track-page.customer-account-loaded .track-shell,
  html.sf-standalone.sf-compact body.track-authed .track-shell,
  html.sf-app-shell.sf-compact body.track-page.customer-account-loaded .track-shell,
  html.sf-app-shell.sf-compact body.track-authed .track-shell {
    padding-top: 8px !important;
  }
}
