

:root {
  --bg: #f3f3f4;
  --panel: #ffffff;
  --surface: #ffffff;
  --mist: #f7f7f8;
  --cream-soft: #f0f0f2;
  --field: #ffffff;
  --text: #121212;
  --ink: #121212;
  --muted: #6a6a6e;
  --border: rgba(18, 18, 18, 0.08);
  --soft-press: rgba(18, 18, 18, 0.06);
  --accent: #2f7a73;
  --accent-dark: #24635d;
  --accent-soft: rgba(47, 122, 115, 0.12);
  --auth-bg: #f3f3f4;
  --tab-bar: #ffffff;
  --logo-bg: #ffffff;
  --danger: #b44a3f;
  --danger-bg: #fee4e2;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.06);
  --shadow-auth: 0 4px 12px rgba(18, 18, 18, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", "DM Sans", sans-serif;
  --rail-width: 248px;
  --tab-height: 58px;

  --primary: var(--ink);
  --primary-dark: var(--ink);
  --tumicha-gold: var(--ink);
  --tumicha-gold-light: #2a2a2a;
  --tumicha-gold-dark: #0d0d0d;
  --tumicha-cream: var(--panel);
  --tumicha-cream-muted: var(--muted);
  --tumicha-brown: var(--ink);
  --tumicha-brown-deep: var(--bg);
  --tumicha-brown-mid: var(--mist);
  --tumicha-brown-warm: var(--cream-soft);
  --tumicha-surface-auth: var(--panel);
  --tumicha-surface-dark: var(--bg);
  --tumicha-border-warm: var(--border);
  --tumicha-text-light: var(--text);
  --tumicha-text-muted-light: var(--muted);
  --tumicha-ink: var(--ink);
  --tumicha-muted: var(--muted);
  --tumicha-border: var(--border);
  --tumicha-shadow: var(--shadow);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

body.driver-portal-shell {
  background: var(--bg) !important;
  color: var(--text) !important;
}

.hidden {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  background: var(--auth-bg) !important;
}

.auth-screen::before {
  display: none !important;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-xl) !important;
  padding: var(--space-xl) !important;
  box-shadow: var(--shadow-auth) !important;
  color: var(--text) !important;
}

.auth-card::before {
  display: none !important;
}

.brand-banner {
  --landing-paper: #f5f5f6;
  --landing-banner-bg: rgba(12, 12, 14, 0.88);
  --landing-banner-line: rgba(245, 245, 246, 0.16);
  background: var(--landing-banner-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--landing-banner-line);
  color: var(--landing-paper);
}

.auth-brand-block.brand-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
  padding: 18px 24px 16px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-brand-block .logo {
  justify-content: center;
  color: var(--landing-paper);
}

.auth-brand-block .brand-wordmark {
  color: var(--landing-paper);
}

.auth-brand-block p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: rgba(245, 245, 246, 0.62) !important;
  max-width: 280px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #121212;
  flex-shrink: 0;
}

.logo img,
.brand-logo,
.brand-logo-lg {
  width: 40px;
  height: 40px;
  border-radius: 10px !important;
  object-fit: contain;
  background: #000000 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.brand-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #121212;
}

.brand-wordmark .brand-name,
.brand-wordmark .brand-go {
  font-weight: 700;
  color: inherit;
}

.brand-wordmark .brand-go,
.brand-wordmark .brand-surface {
  margin-left: 0.28em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.tab-btn {
  min-height: 40px;
  background: var(--surface) !important;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.tab-btn.active {
  background: var(--mist) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

.google-signin-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.google-signin-panel.hidden {
  display: none;
}

.google-signin-slot {
  display: flex;
  justify-content: center;
  min-height: 40px;
}

.google-signin-slot iframe,
.google-signin-slot > div {
  max-width: 100%;
}

#signup-email[readonly] {
  opacity: 0.88;
}

.signup-with-profile-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.tumicha-signup-btns,
.continue-tumicha-panel {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.continue-tumicha-panel {
  margin: 4px 0 0;
}

#login-form.login-form--continue-only #login-password-panel {
  display: none !important;
}

.tumicha-signup-btn {
  position: relative;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  box-sizing: border-box;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.tumicha-signup-btn img {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 4px;
  pointer-events: none;
}

.tumicha-signup-btn span {
  display: block;
  padding-left: 28px;
  padding-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  .tumicha-signup-btn {
    font-size: 13px;
    letter-spacing: 0;
  }

  .tumicha-signup-btn span {
    padding-left: 26px;
    padding-right: 8px;
  }
}

.tumicha-signup-btn:hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.tumicha-signup-btn:focus-visible {
  outline: 2px solid #1f1f1f;
  outline-offset: 2px;
}

.tumicha-signup-btn.active {
  border-color: #1f1f1f;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  background: #f8f9fa;
}

.tumicha-signup-btn.hidden {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form label,
.auth-card label {
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text) !important;
}

.auth-form input,
.auth-card input,
.auth-card textarea {
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
  color-scheme: light;
}

.auth-form input::placeholder,
.auth-card input::placeholder {
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted);
}

.auth-form .primary-btn {
  width: 100%;
  margin-top: 4px;
}

.auth-helper {
  margin: 0 0 12px;
  color: var(--muted) !important;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.auth-link {
  background: none;
  border: 0;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  text-align: left;
}

.auth-link:hover {
  color: var(--ink) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.driver-portal-shell .auth-link,
body.driver-portal-shell .auth-link:hover {
  color: var(--ink) !important;
}

.auth-helper:has(> .auth-link:only-child) {
  margin: 0;
}

.error-text,
.auth-card .error-text {
  color: var(--danger) !important;
  margin-top: 12px;
  font-size: 14px;
}

.success-text,
.auth-card .success-text {
  color: var(--success) !important;
}

.app {
  --header-h: 72px;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  grid-template-rows: var(--header-h) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  overflow-x: clip;
}

.driver-portal-banner {
  --header-h: 72px;
  --landing-paper: #121212;
  --landing-banner-bg: #ffffff;
  --landing-banner-line: rgba(18, 18, 18, 0.15);
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 70;
  height: auto;
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  width: 100%;
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--landing-paper);
  background: var(--landing-banner-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--landing-banner-line);
  box-sizing: border-box;
}

.driver-portal-banner.hidden {
  display: none !important;
}

.driver-portal-banner-inner {
  height: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem 1.1rem;
  padding: 0.55rem 1.5rem;
  box-sizing: border-box;
  flex-wrap: nowrap;
  min-width: 0;
}

.driver-portal-banner .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--landing-paper);
  flex: 0 0 auto;
  min-width: 0;
}

.driver-portal-banner .logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px !important;
  object-fit: contain;
  background: #000000 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

.driver-portal-banner-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow: hidden;
}

.driver-portal-banner-brand {
  display: block;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}

.driver-portal-banner .logo-go {
  font-style: normal;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: -0.02em;
}

.driver-portal-banner-portal {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.driver-portal-banner-tabs,
.driver-portal-banner-tabs.portal-bookmark-bar {
  display: none;
}

#driver-portal-banner-tabs.personal-ribbon-tabs .driver-portal-banner-tab {
  box-shadow: none;
  height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
}

#driver-portal-banner-tabs.personal-ribbon-tabs .driver-portal-banner-tab.is-active {
  background: #121212;
  border-color: #121212;
  color: #fff;
  box-shadow: none;
}

.driver-portal-banner-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.32rem 0.62rem 0.32rem 0.42rem;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 10px;
  background: #ffffff;
  color: #3d3d42;
  font-family: var(--font-body, "DM Sans", system-ui, -apple-system, sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(18, 18, 18, 0.03);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.driver-portal-banner-tab:hover,
.driver-portal-banner-tab:focus-visible {
  color: #121212;
  border-color: rgba(18, 18, 18, 0.18);
  outline: none;
  box-shadow: 0 2px 6px rgba(18, 18, 18, 0.06);
}

.driver-portal-banner-tab.is-active {
  color: #121212;
  border-color: rgba(18, 18, 18, 0.22);
  box-shadow:
    0 0 0 1px rgba(18, 18, 18, 0.06),
    0 2px 6px rgba(18, 18, 18, 0.06);
}

.driver-portal-banner-tab .banner-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 7px;
  background: rgba(18, 18, 18, 0.05);
  color: #121212;
}

.driver-portal-banner-tab .banner-tab-icon[class*='app-tile-icon--'] {
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 1px rgba(18, 18, 18, 0.06);
}

.driver-portal-banner-tab .app-tile-icon--deliveries {
  background: linear-gradient(145deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
}

.driver-portal-banner-tab .app-tile-icon--sales {
  background: linear-gradient(145deg, #ea580c 0%, #c2410c 55%, #9a3412 100%);
}

.driver-portal-banner-tab .app-tile-icon--scanners {
  background: linear-gradient(145deg, #475569 0%, #334155 55%, #1e293b 100%);
}

.driver-portal-banner-tab .app-tile-icon--wallet {
  background: linear-gradient(145deg, #059669 0%, #047857 55%, #065f46 100%);
}

.driver-portal-banner-tab .app-tile-icon--counter {
  background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 55%, #0369a1 100%);
}

.driver-portal-banner-tab .app-tile-icon--ask {
  background: linear-gradient(145deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
}

.driver-portal-banner-tab .app-tile-icon--person {
  background: linear-gradient(145deg, #0f766e 0%, #0e7490 55%, #155e75 100%);
}

.driver-portal-banner-tab .banner-tab-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.driver-portal-banner-tab .banner-tab-label {
  display: inline-block;
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-portal-banner-tab.hidden {
  display: none !important;
}

.sidebar {
  --sidebar-pad-x: var(--space-md);
  background: var(--panel) !important;
  color: var(--text) !important;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-right: 1px solid var(--border);

  position: fixed;
  top: var(--header-h, 72px);
  left: 0;
  width: var(--rail-width);
  height: calc(100vh - var(--header-h, 72px));
  height: calc(100dvh - var(--header-h, 72px));
  max-height: calc(100dvh - var(--header-h, 72px));
  overflow: hidden;
  box-sizing: border-box;
  z-index: 20;
  grid-row: 2;
}

.sidebar::before {
  display: none !important;
}

.sidebar-brand.brand-banner {
  display: block;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--sidebar-pad-x)) var(--space-sm);
  padding: 0;
  flex-shrink: 0;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 72px;
  margin: 0;
  padding: 0 16px;
  border-bottom: none;
  box-sizing: border-box;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy .brand-wordmark {
  color: #121212 !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-copy .brand-tagline,
.brand-copy small {
  color: #6b6a66 !important;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 1;
}

.nav,
.nav-primary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar,
.nav-primary::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent !important;
  color: var(--muted) !important;
  border: 0 !important;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  color: inherit;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--soft-press) !important;
  color: var(--ink) !important;
}

.nav-btn.active {
  background: var(--mist) !important;
  color: var(--ink) !important;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  margin-top: 0;
  width: 100%;
  flex-shrink: 0;
  background: var(--mist) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}

.driver-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 18, 18, 0.06);
}

.sidebar .account-strip,
#driver-account-strip.account-strip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  color: var(--text) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 248, 249, 0.88)) !important;
  border: 1px solid rgba(18, 18, 18, 0.15) !important;
  border-radius: 16px !important;
  flex-shrink: 0;
  margin: 4px 2px 2px !important;
  padding: 12px !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 20px rgba(18, 18, 18, 0.05);
  backdrop-filter: blur(10px);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sidebar .account-strip-logo-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f2 100%);
  box-shadow: 0 4px 12px rgba(18, 18, 18, 0.06);
}

.sidebar .account-strip-logo,
.sidebar .account-strip-logo-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.sidebar .account-strip-logo {
  object-fit: contain;
  background: #f3f3f4;
  padding: 6px;
  box-sizing: border-box;
}

.sidebar .account-strip-logo-fallback {
  display: none;
  place-items: center;
  color: #121212;
  font-size: 1.05rem;
  font-weight: 700;
}

.sidebar .account-strip-logo-wrap:not(:has(.account-strip-logo)) .account-strip-logo-fallback,
.sidebar .account-strip-logo.hidden + .account-strip-logo-fallback {
  display: grid;
}

.sidebar .account-strip-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0.12rem;
  min-width: 0;
  min-height: 48px;
}

.sidebar .account-strip-name {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .account-strip-detail {
  display: block;
  margin: 0;
  color: var(--muted) !important;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .account-strip-detail.hidden,
.sidebar .account-strip-detail[hidden] {
  display: none !important;
}

.sidebar .account-kind-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-logout-btn {
  margin-top: 0;
}

.main {
  grid-column: 2;
  grid-row: 2;
  padding: var(--space-lg);
  min-width: 0;
  background: var(--bg) !important;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.topbar h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
}

.topbar p {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

.card-list {
  display: grid;
  gap: var(--space-md);
}

.status-card .account-strip {
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: none;
}

.status-card .account-strip strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.status-card .account-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status-row span {
  font-weight: 600;
  font-size: 15px;
}

.status-card .primary-btn,
.status-card .secondary-btn {
  width: 100%;
}

.muted-text {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.required-profile-list {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.job-meta,
.trip-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 10px;
}

.job-meta.job-earn,
.trip-job-meta.trip-earn {
  color: var(--text);
  font-weight: 600;
}

.job-route {
  margin: 0 0 12px;
  line-height: 1.5;
  color: var(--text);
  font-size: 15px;
}

.job-actions,
.trip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.empty-state {
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
  border-style: solid;
  font-size: 15px;
  line-height: 22px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--mist);
}

.badge,
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-online,
.status-badge-online {
  background: var(--success-bg);
  color: var(--success);
}

.badge-offline,
.status-badge-offline {
  background: var(--cream-soft);
  color: var(--muted);
}

.badge-created { background: var(--cream-soft); color: #555555; }

.badge-assigned { background: var(--accent-soft); color: var(--accent-dark); }

.badge-at_pickup { background: var(--info-bg); color: var(--info); }

.badge-picked_up { background: var(--info-bg); color: var(--info); }

.badge-in_transit { background: var(--accent-soft); color: var(--accent-dark); }

.badge-arrived { background: var(--info-bg); color: var(--info); }

.badge-delivered { background: var(--success-bg); color: var(--success); }

.badge-cancelled,
.badge-failed { background: var(--danger-bg); color: #b42318; }

.badge-ready {
  display: inline-flex;
  margin: 8px 0 4px;
  background: var(--success-bg);
  color: var(--success);
}

.trip-job-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trip-job-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.trip-job-title {
  font-size: 1.02rem;
  color: var(--text);
}

.trip-job-meta,
.trip-quiet-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.collection-status {
  display: grid;
  gap: 0.2rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.collection-status strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.collection-status span {
  font-size: 0.84rem;
  line-height: 1.35;
}

.collection-status--wait {
  background: #fef3c7;
  border-color: rgba(180, 83, 9, 0.28);
  color: #92400e;
}

.collection-status--ready {
  background: #dcfce7;
  border-color: rgba(21, 128, 61, 0.28);
  color: #166534;
}

.collection-status--info {
  background: var(--mist);
  border-color: var(--border);
  color: var(--ink);
}

.job-card .collection-status {
  margin-top: 0.5rem;
}

.shop-order {
  display: grid;
  gap: 0.45rem;
  margin: 0.45rem 0 0.1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--border);
}

.shop-order-store {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
}

.shop-order-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.shop-order-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.6rem;
  align-items: center;
}

.shop-order-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
}

.shop-order-thumb--fallback {
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.shop-order-item-copy {
  font-size: 0.88rem;
  line-height: 1.3;
}

.trip-destination-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--border);
}

.trip-destination-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.trip-destination-address {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.35;
}

.trip-party-card .trip-party-phone {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
}

.trip-party-card .trip-party-phone:hover {
  text-decoration: underline;
}

.trip-section-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.trip-actions {
  display: grid;
  gap: 10px;
}

.text-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.text-link-btn:hover {
  color: var(--text);
}

.trip-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.history-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg, 16px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.history-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.history-route {
  margin: 0 0 12px;
}

.history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.history-date {
  font-size: 0.88rem;
  color: var(--muted);
}

body.driver-trip-active .main {
  padding-bottom: 12px;
}

.account-layout {
  display: grid;
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
}

.account-layout > .secondary-btn {
  width: 100%;
}

.form-status {
  margin: -4px 0 12px;
  font-size: 13px;
  line-height: 18px;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.admin-access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--mist);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.92rem;
}

.preview-account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(40, 90, 160, 0.12), rgba(40, 90, 160, 0.04));
  border: 1px solid rgba(40, 90, 160, 0.28);
  color: var(--text);
  font-size: 0.92rem;
}

html.sandbox-preview-account .preview-settings-readonly input,
html.sandbox-preview-account .preview-settings-readonly textarea,
html.sandbox-preview-account .preview-settings-readonly select {
  caret-color: transparent;
}

html.sandbox-preview-account .preview-settings-readonly button:not([data-view]):not([data-wallet-toggle]):not(.team-info) {
  opacity: 0.55;
}

.home-device-proximity {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: var(--warning-bg, rgba(180, 83, 9, 0.08));
}

.home-device-proximity.is-ok {
  border-color: rgba(21, 128, 61, 0.2);
  background: var(--success-bg, rgba(21, 128, 61, 0.08));
}

.home-device-proximity-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
}

.home-device-proximity .home-location-confirm {
  margin: 10px 0 0;
}

.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  margin-top: 8px;
}

.consent-check input {
  margin-top: 3px;
}

.address-block {
  margin-bottom: 8px;
}

.address-map-host {
  min-height: 280px;
  border-radius: 14px;
  overflow: visible;
  border: 0;
  margin-bottom: 10px;
  background: transparent;
}

.address-map-host .address-map-picker {
  margin: 0;
}

.address-map-host .address-map-picker-canvas-wrap {
  border-color: var(--border);
  background: var(--mist);
}

.address-map-host .address-map-search {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  z-index: 40;
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.18);
  max-width: min(360px, calc(100vw - 32px));
}

body.driver-portal-shell .auth-screen,
body.driver-portal-shell .auth-screen::before {
  background: var(--auth-bg) !important;
}

body.driver-portal-shell .sidebar {
  background: var(--panel) !important;
  color: var(--text) !important;
}

body.driver-portal-shell .sidebar .account-strip,
body.driver-portal-shell .sidebar .account-strip small,
body.driver-portal-shell .sidebar .account-strip .account-strip-detail {
  color: inherit;
}

body.driver-portal-shell .main,
body.driver-portal-shell .app {
  background: var(--bg) !important;
}

body.driver-portal-shell .tab-btn.active {
  background: var(--mist) !important;
  color: var(--ink) !important;
  border-color: var(--ink) !important;
}

body.driver-portal-shell .twofa-enabled-badge {
  background: var(--success-bg);
  color: var(--success);
}

body.driver-portal-shell.driver-drawer-nav .app,
body.driver-portal-shell .app.driver-drawer-nav {
  --rail-width: 0px;
  --header-h: 72px;
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  grid-template-rows: none;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;

  overflow-x: visible;
  overflow-y: visible;
  padding-top: var(--header-h);
  padding-bottom: 0;
  box-sizing: border-box;
}

body.driver-portal-shell.driver-drawer-nav .driver-portal-banner,
body.driver-portal-shell .app.driver-drawer-nav .driver-portal-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  order: -1;
  flex: 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  z-index: 70;
  width: 100%;
}

body.driver-portal-shell.driver-drawer-nav .main,
body.driver-portal-shell .app.driver-drawer-nav .main {
  width: 100%;
  max-width: 100%;
  grid-column: auto;
  grid-row: auto;
  flex: 1 1 auto;
  min-width: 0;
  order: 1;
  padding: 20px 16px 28px;
}

html.driver-nav-drawer-lock,
html.driver-nav-drawer-lock body {
  overflow: hidden;
}

body.driver-portal-shell.driver-drawer-nav .driver-nav-drawer-toggle,
body.driver-portal-shell .app.driver-drawer-nav .driver-nav-drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 12px;
  background: #f3f3f4;
  color: #121212;
  box-shadow: none;
  cursor: pointer;
}

.driver-nav-drawer-toggle {
  display: none;
}

.driver-nav-drawer-toggle-icon {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
}

.driver-nav-drawer-toggle-icon svg {
  width: 100%;
  height: 100%;
}

body.driver-portal-shell.driver-drawer-nav .driver-nav-drawer-backdrop,
body.driver-portal-shell .app.driver-drawer-nav .driver-nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  border: 0;
  background: rgba(42, 41, 39, 0.34);
  cursor: pointer;
  margin: 0;
  padding: 0;
}

body.driver-portal-shell.driver-drawer-nav.driver-nav-drawer-open .driver-nav-drawer-backdrop,
body.driver-portal-shell.driver-nav-drawer-open .driver-nav-drawer-backdrop,
body.driver-portal-shell .app.driver-nav-drawer-open .driver-nav-drawer-backdrop {
  display: block;
}

body.driver-portal-shell.driver-drawer-nav #driver-sidebar,
body.driver-portal-shell .app.driver-drawer-nav #driver-sidebar {
  --sidebar-pad-x: 14px;
  display: flex !important;
  flex-direction: column;
  position: fixed !important;
  top: var(--header-h, 72px);
  left: 0;
  bottom: 0;
  right: auto;
  z-index: 60;
  width: min(20rem, 86vw) !important;
  max-width: min(20rem, 86vw);
  height: calc(100vh - var(--header-h, 72px)) !important;
  height: calc(100dvh - var(--header-h, 72px)) !important;
  max-height: calc(100dvh - var(--header-h, 72px)) !important;
  align-self: auto;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 6px;
  padding: 16px var(--sidebar-pad-x) calc(16px + env(safe-area-inset-bottom, 0px));
  border-right: 1px solid rgba(18, 18, 18, 0.15) !important;
  border-top: none !important;
  border-bottom: none !important;
  border-top-right-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafafa 48%, #f7f7f8 100%) !important;
  box-shadow: 8px 0 32px rgba(18, 18, 18, 0.14);
  transform: translateX(-105%);
  transition: transform 220ms ease;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

body.driver-portal-shell.driver-drawer-nav.driver-nav-drawer-open #driver-sidebar,
body.driver-portal-shell.driver-nav-drawer-open.driver-drawer-nav #driver-sidebar,
body.driver-portal-shell .app.driver-drawer-nav.driver-nav-drawer-open #driver-sidebar,
body.driver-portal-shell .app.driver-nav-drawer-open.driver-drawer-nav #driver-sidebar {
  transform: translateX(0);
}

body.driver-portal-shell.driver-drawer-nav .sidebar-brand,
body.driver-portal-shell.driver-drawer-nav .sidebar-brand.brand-banner {
  display: block !important;
  margin: -16px calc(-1 * var(--sidebar-pad-x)) 8px;
}

body.driver-portal-shell.driver-drawer-nav .nav,
body.driver-portal-shell.driver-drawer-nav .nav-primary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 4px 0 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.driver-portal-shell.driver-drawer-nav .nav-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
}

body.driver-portal-shell.driver-drawer-nav .logout-btn {
  display: flex !important;
  margin-top: 0;
  width: 100%;
}

body.driver-portal-shell.driver-drawer-nav #driver-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 18, 18, 0.06);
}

body.driver-portal-shell.driver-drawer-nav #driver-account-strip {
  display: grid !important;
}

body.driver-portal-shell.driver-drawer-nav .topbar {
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

body.driver-portal-shell.driver-drawer-nav .topbar > div:first-child {
  text-align: left;
}

@media (max-width: 900px) {
  body.driver-portal-shell.driver-drawer-nav .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  body.driver-portal-shell.driver-drawer-nav .topbar h1 {
    font-size: 1.55rem;
  }

  body.driver-portal-shell.driver-drawer-nav .topbar .secondary-btn {
    width: 100%;
  }

  body.driver-portal-shell.driver-drawer-nav .topbar #refresh-btn {
    display: none !important;
  }

  body.driver-portal-shell.driver-drawer-nav .toast {
    right: 14px;
    left: 14px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .topbar #refresh-btn {
    display: none !important;
  }
}

.native-pull-refresh {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 80;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(18, 18, 18, 0.18);
}

.native-pull-refresh.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.welcome-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.welcome-tour-overlay.is-docked {
  justify-content: flex-end;
  align-items: flex-end;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

.welcome-tour-overlay.hidden,
.welcome-tour-overlay[hidden] {
  display: none;
}

.welcome-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.22);
  pointer-events: none;
}

.welcome-tour-overlay.is-docked .welcome-tour-backdrop {
  background: transparent;
}

.welcome-tour-target,
[data-tour-selected='true'] {
  position: relative;
  z-index: 1;
  outline: 3px solid #0f766e;
  outline-offset: 3px;
  background-color: rgba(15, 118, 110, 0.1);
  box-shadow: 0 0 0 3px #0f766e, 0 0 0 8px rgba(15, 118, 110, 0.16);
  border-radius: 10px;
}

.welcome-tour-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(460px, 100%);
  max-height: min(320px, 48dvh);
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: #fff;
  color: #121212;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 22, 0.14);
  box-sizing: border-box;
  overflow: auto;
}

.welcome-tour-overlay.is-docked .welcome-tour-card {
  width: min(340px, calc(100vw - 24px));
  max-height: none;
  padding: 10px 12px;
  border-radius: 16px;
}

@media (max-width: 700px), (min-width: 701px) and (max-width: 1024px) and (orientation: portrait) {
  body.driver-portal-shell .welcome-tour-overlay {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

.welcome-tour-overlay.is-visible .welcome-tour-card {
  animation: welcome-tour-sheet-in 0.22s ease;
}

.welcome-tour-overlay.is-speaking .welcome-tour-play-orb {
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.16);
}

@keyframes welcome-tour-sheet-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-tour-visual {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.welcome-tour-play {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.welcome-tour-overlay.is-docked .welcome-tour-visual {
  margin-bottom: 8px;
  gap: 10px;
}

.welcome-tour-overlay.is-docked .welcome-tour-play,
.welcome-tour-overlay.is-docked .welcome-tour-play-orb {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
}

.welcome-tour-overlay.is-docked .welcome-tour-card h2 {
  font-size: 1rem;
}

.welcome-tour-overlay.is-docked .welcome-tour-tiles {
  display: none;
}

.welcome-tour-play-orb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0f766e;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.welcome-tour-play-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(3px);
}

.welcome-tour-play.is-speaking .welcome-tour-play-orb::after {
  display: none;
}

.welcome-tour-bars {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.welcome-tour-play.is-speaking .welcome-tour-bars {
  display: flex;
}

.welcome-tour-bars i {
  display: block;
  width: 4px;
  height: 14px;
  border-radius: 99px;
  background: #fff;
  animation: welcome-tour-bar 0.7s ease-in-out infinite;
}

.welcome-tour-bars i:nth-child(2) { animation-delay: 0.12s; height: 20px; }

.welcome-tour-bars i:nth-child(3) { animation-delay: 0.24s; }

@keyframes welcome-tour-bar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.welcome-tour-play.needs-tap .welcome-tour-play-orb {
  animation: welcome-tour-tap 1.4s ease-in-out infinite;
}

@keyframes welcome-tour-tap {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.welcome-tour-copy {
  min-width: 0;
  flex: 1;
}

.welcome-tour-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.welcome-tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7e3e1;
}

.welcome-tour-dot.is-on {
  background: #0f766e;
  width: 16px;
  border-radius: 99px;
}

.welcome-tour-card h2 {
  margin: 0;
  font-family: var(--font-display, Syne, sans-serif);
  font-size: 1.28rem;
  line-height: 1.2;
  color: #121212;
}

.welcome-tour-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.welcome-tour-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.welcome-tour-tiles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 6px 8px;
  border-radius: 14px;
  background: #f4f7f6;
  color: #134e4a;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.welcome-tour-tile-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #0f766e;
  position: relative;
}

.welcome-tour-tile-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 3px;
  background: #fff;
}

.welcome-tour-tiles li:nth-child(2) .welcome-tour-tile-icon {
  background: #0d9488;
}

.welcome-tour-tiles li:nth-child(3) .welcome-tour-tile-icon {
  background: #115e59;
}

.welcome-tour-card #welcome-tour-next:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.welcome-tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.welcome-tour-nav {
  display: flex;
  gap: 8px;
}

.welcome-tour-text-btn {
  border: 0;
  background: none;
  color: #6a6a6e;
  font: inherit;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
}

body.welcome-tour-active .app {
  padding-bottom: 220px;
  scroll-padding-bottom: 220px;
}

body.welcome-tour-docked .app {
  padding-bottom: 96px;
  scroll-padding-bottom: 96px;
}

@media (min-width: 1025px), ((min-width: 701px) and (max-width: 1024px) and (orientation: landscape)) {
  body.driver-portal-shell.driver-drawer-nav:not(.driver-app-fullscreen) .app,
  body.driver-portal-shell .app.driver-drawer-nav:not(.driver-app-fullscreen) {
    padding-top: 0 !important;
  }

  body.driver-portal-shell.driver-drawer-nav:not(.driver-app-fullscreen) .driver-portal-banner,
  body.driver-portal-shell .app.driver-drawer-nav:not(.driver-app-fullscreen) .driver-portal-banner {
    position: sticky !important;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    flex: 0 0 auto;
    order: -1;
    z-index: 70;
  }

  body.driver-portal-shell.driver-app-fullscreen .app,
  body.driver-portal-shell .app.driver-drawer-nav.driver-app-fullscreen {
    padding-top: 0 !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.driver-portal-banner-logout {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.42rem 0.75rem 0.42rem 0.6rem;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.04);
  color: #121212;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.driver-portal-banner-logout:hover,
.driver-portal-banner-logout:focus-visible {
  background: rgba(18, 18, 18, 0.08);
}

.driver-portal-banner-logout.hidden {
  display: none !important;
}

.driver-portal-banner-logout-icon {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
}

.driver-portal-banner-logout-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .driver-portal-banner-logout span:not(.driver-portal-banner-logout-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-children {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 2px;
  padding: 2px 0 2px 18px;
}

.nav-group.is-open > .nav-group-children {
  display: flex;
}

.nav-sub-btn {
  gap: 10px;
  min-height: 0;
  padding: 6px 10px 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-sub-btn.active {
  background: rgba(18, 18, 18, 0.15) !important;
  color: var(--ink) !important;
}

.nav-group-parent .nav-label {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--muted);
}

.nav-group-chevron svg {
  width: 1rem;
  height: 1rem;
}

.nav-group-parent.is-section-active:not(.active) {
  background: rgba(18, 18, 18, 0.06);
}

.driver-app-rail {
  display: none;
}

.driver-workspace {
  display: contents;
}

.driver-workspace-body {
  display: contents;
}

body.driver-app-fullscreen {
  --header-h: 0px;
  overflow: hidden;
}

body.driver-app-fullscreen .main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.driver-app-fullscreen .app {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  max-height: 100dvh;
  overflow: hidden;
}

body.driver-app-fullscreen .topbar,
body.driver-app-fullscreen .driver-portal-banner,
body.driver-app-fullscreen #driver-portal-banner,
body.driver-app-fullscreen #driver-sidebar,
body.driver-app-fullscreen .sidebar,
body.driver-app-fullscreen .driver-nav-drawer-toggle,
body.driver-app-fullscreen .driver-nav-drawer-backdrop,
body.driver-app-fullscreen .admin-access-banner,
body.driver-app-fullscreen .preview-account-banner {
  display: none !important;
}

body.driver-app-fullscreen .driver-workspace {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid !important;
  grid-template-columns: minmax(13rem, 15.5rem) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  max-height: 100svh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--bg, #f3f3f4);
  overflow: hidden;
}

body.driver-app-fullscreen.driver-app-rail-collapsed .driver-workspace {
  grid-template-columns: 3.25rem minmax(0, 1fr) !important;
}

body.driver-app-fullscreen.driver-app-open .driver-app-rail:not(.hidden),
body.driver-app-fullscreen #driver-app-rail:not(.hidden) {
  display: flex !important;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0.85rem 0.7rem 0.9rem;
  border: 0;
  border-right: 1px solid rgba(18, 18, 18, 0.15);
  border-radius: 0;
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

body.driver-app-fullscreen .driver-workspace-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--bg, #f3f3f4);

  transform: translateZ(0);
  isolation: isolate;
  z-index: 1;
  pointer-events: auto;
}

body.driver-app-fullscreen .driver-workspace-body > .view:not(.hidden) {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.driver-app-fullscreen .driver-app-rail-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.15rem 0.2rem 0.85rem;
  flex: 0 0 auto;
}

body.driver-app-fullscreen .driver-app-rail-brand-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

body.driver-app-fullscreen .driver-app-rail-brand-identity {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

body.driver-app-fullscreen .driver-app-rail-back,
body.driver-app-fullscreen .driver-app-rail-refresh,
body.driver-app-fullscreen .driver-app-rail-collapse {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(18, 18, 18, 0.15);
  border-radius: 12px;
  background: var(--mist, #fafafa);
  color: var(--muted, #6a6a6e);
  cursor: pointer;
  flex: 0 0 auto;
}

body.driver-app-fullscreen .driver-app-rail-back:hover,
body.driver-app-fullscreen .driver-app-rail-refresh:hover,
body.driver-app-fullscreen .driver-app-rail-collapse:hover {
  background: rgba(18, 18, 18, 0.06);
  color: var(--ink, #121212);
}

body.driver-app-fullscreen .driver-app-rail-back svg,
body.driver-app-fullscreen .driver-app-rail-refresh svg,
body.driver-app-fullscreen .driver-app-rail-collapse svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

body.driver-app-fullscreen .driver-app-rail-app-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  background: #2f7a73;
  color: #fff;
}

body.driver-app-fullscreen .driver-app-rail-app-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

body.driver-app-fullscreen .driver-app-rail-brand-copy {
  min-width: 0;
  overflow: hidden;
}

body.driver-app-fullscreen .driver-app-rail-wordmark.brand-wordmark,
body.driver-app-fullscreen .driver-app-rail-app-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.driver-app-fullscreen .driver-app-rail-wordmark.brand-wordmark {
  display: block;
  font-family: var(--font-display, "Syne", "DM Sans", sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink, #121212);
}

body.driver-app-fullscreen .driver-app-rail-app-name {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted, #6a6a6e);
  line-height: 1.2;
}

body.driver-app-fullscreen .driver-app-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
}

body.driver-app-fullscreen .driver-app-rail-btn {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.7rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted, #5c5c61);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

body.driver-app-fullscreen .driver-app-rail-btn:hover {
  background: rgba(18, 18, 18, 0.06);
  color: var(--ink, #121212);
}

body.driver-app-fullscreen .driver-app-rail-btn.active {
  background: rgba(18, 18, 18, 0.12);
  color: var(--ink, #121212);
}

body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-nav,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-brand-identity,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-app-icon,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-brand-copy,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-label {
  display: none !important;
}

body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-brand,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-brand-tools {
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0 0;
}

body.driver-app-fullscreen.driver-app-rail-collapsed #driver-app-rail:not(.hidden),
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail:not(.hidden) {
  padding: 0.65rem 0.35rem 0.75rem;
  overflow: visible;
}

body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-back,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-refresh,
body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-collapse {
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
}

body.driver-app-fullscreen.driver-app-rail-collapsed .driver-app-rail-collapse svg {
  transform: rotate(180deg);
}

.driver-more {
  display: none;
}

.driver-mobile-nav {
  display: none;
}

@keyframes driverMoreIn {
  from {
    opacity: 0.6;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.driver-app-fullscreen #driver-mobile-nav,
body.driver-app-fullscreen .driver-mobile-nav {
  display: none !important;
}

@media (max-width: 700px), (min-width: 701px) and (max-width: 1024px) and (orientation: portrait) {
  body.driver-portal-shell.driver-drawer-nav {
    --driver-mobile-nav-h: calc(64px + max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)));
  }

  body.driver-portal-shell.driver-drawer-nav .app,
  body.driver-portal-shell .app.driver-drawer-nav {
    padding-top: 0;
    padding-bottom: var(--driver-mobile-nav-h, 0px);
  }

  body.driver-portal-shell.driver-drawer-nav .main,
  body.driver-portal-shell .app.driver-drawer-nav .main {

    padding-top: max(8px, env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
    padding-bottom: calc(28px + var(--driver-mobile-nav-h, 0px));
  }

  body.driver-portal-shell.driver-drawer-nav .driver-portal-banner,
  body.driver-portal-shell .app.driver-drawer-nav .driver-portal-banner,
  body.driver-portal-shell.driver-drawer-nav .driver-nav-drawer-toggle,
  body.driver-portal-shell .app.driver-drawer-nav .driver-nav-drawer-toggle,
  body.driver-portal-shell.driver-drawer-nav #driver-sidebar,
  body.driver-portal-shell .app.driver-drawer-nav #driver-sidebar,
  body.driver-portal-shell.driver-drawer-nav .driver-nav-drawer-backdrop,
  body.driver-portal-shell .app.driver-drawer-nav .driver-nav-drawer-backdrop {
    display: none !important;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav,
  body.driver-portal-shell .app.driver-drawer-nav .driver-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem calc(0.4rem + max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px)));
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-top: 1px solid #e4e4e7;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.3rem 0.35rem;
    border-radius: 12px;
    color: #4b4b4b;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1.15;
    transition: background 140ms ease, color 140ms ease;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-btn.is-open,
  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-btn:active {
    background: rgba(18, 18, 18, 0.08);
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-btn.is-active {
    color: #121212;
    background: rgba(18, 18, 18, 0.08);
  }

  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-btn.is-hidden-pin,
  body.driver-portal-shell.driver-drawer-nav .driver-mobile-nav-btn.hidden {
    display: none;
  }

  body.driver-portal-shell.driver-drawer-nav .toast {
    bottom: calc(12px + var(--driver-mobile-nav-h, 64px));
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more {
    display: none;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more.is-open {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 250;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-panel {
    --driver-more-list-gap: 0.15rem;
    position: relative;
    z-index: 1;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    flex: none;
    gap: var(--driver-more-list-gap);
    max-height: 80vh;
    overflow: auto;
    padding: 0.85rem 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    background: #fff;
    border: 0;
    box-shadow: 0 -14px 44px rgba(15, 23, 42, 0.28);
    animation: driverMoreIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.4rem 0.7rem;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
    color: #121212;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-title .logo-go {
    font-style: normal;
    font-weight: 600;
    opacity: 0.72;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 10px;
    color: #121212;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-close svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-apps {
    display: flex;
    flex-direction: column;
    gap: var(--driver-more-list-gap);
    margin: 0;
    padding: 0;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    appearance: none;
    text-align: left;
    padding: 0.9rem 0.75rem;
    border-radius: 12px;
    background: transparent;
    border: 0;
    color: #121212;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn.is-active,
  body.driver-portal-shell.driver-drawer-nav .driver-more-btn:hover {
    background: rgba(18, 18, 18, 0.06);
    color: #121212;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn.is-hidden-pin,
  body.driver-portal-shell.driver-drawer-nav .driver-more-btn.hidden {
    display: none;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    color: #4b4b4b;
    flex: 0 0 auto;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn.is-active .driver-more-btn-icon {
    background: transparent;
    color: #121212;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn-icon svg {
    width: 25px;
    height: 25px;
    display: block;
  }

  body.driver-portal-shell.driver-drawer-nav .driver-more-btn-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.driver-mobile-drawer[hidden] {
  display: none;
}

.driver-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.driver-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.driver-mobile-drawer-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 -14px 44px rgba(15, 23, 42, 0.28);
  border-radius: 20px 20px 0 0;
  padding: 0.85rem 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  animation: driverMoreIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.driver-mobile-drawer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem 0.75rem;
  border-bottom: 1px solid rgba(18, 18, 18, 0.15);
  margin-bottom: 0.4rem;
}

.driver-mobile-drawer-back,
.driver-mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.06);
  color: #121212;
  cursor: pointer;
}

.driver-mobile-drawer-back svg,
.driver-mobile-drawer-close svg {
  width: 22px;
  height: 22px;
}

.driver-mobile-drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #121212;
}

.driver-mobile-drawer-title .logo-go {
  font-style: normal;
  font-weight: 600;
  opacity: 0.72;
}

.driver-mobile-drawer-list {
  display: grid;
  gap: 0.15rem;
}

.driver-mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: #333;
}

.driver-mobile-drawer-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: #4b4b4b;
}

.driver-mobile-drawer-item-icon svg {
  width: 24px;
  height: 24px;
}

.driver-mobile-drawer-item:hover,
.driver-mobile-drawer-item.is-active {
  background: rgba(18, 18, 18, 0.06);
  color: #121212;
}

.driver-mobile-drawer-item.is-active .driver-mobile-drawer-item-icon {
  color: #121212;
}

html.driver-mobile-menu-lock,
html.driver-mobile-menu-lock body {
  overflow: hidden;
}

.driver-live-layer {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(20px, env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px))
    16px
    max(
      20px,
      calc(12px + var(--driver-mobile-nav-h, 72px) + env(safe-area-inset-bottom, 0px))
    );
}

.driver-live-layer.hidden {
  display: none !important;
}

.driver-live-backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.38);
  cursor: pointer;
}

.driver-live-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(22.5rem, calc(100% - 2rem));
  max-height: min(70dvh, calc(100dvh - 9rem));
  overflow: hidden;
  scrollbar-width: none;
  margin: 0;
  padding: 1rem 1.15rem 1.15rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 18, 18, 0.28);
  animation: driver-hunt-offer-in 0.28s ease-out;
}

.driver-live-sheet::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.driver-live-min {
  appearance: none;
  align-self: flex-end;
  flex: 0 0 auto;
  margin: 0 0 0.2rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 999px;
  background: #f6f6f7;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.driver-live-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a6a6e;
}

.driver-live-hunt h3,
.driver-live-trip h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.driver-hunt-panel .driver-live-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.driver-hunt-panel h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.driver-live-job {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.driver-live-job:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.driver-live-route,
.driver-live-meta,
.driver-live-status {
  margin: 0 0 0.4rem;
  color: #3d3d42;
}

.driver-hunt-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
}

.driver-hunt-panel .driver-live-kicker,
.driver-hunt-panel h3,
.driver-hunt-copy,
.driver-hunt-job-title,
.driver-hunt-route,
.driver-hunt-meta {
  text-align: center;
  max-width: 28rem;
}

.driver-hunt-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #6a6a6e;
}

.driver-hunt-job-title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #121212;
}

.driver-hunt-route,
.driver-hunt-meta {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #3d3d42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.driver-hunt-meta {
  color: #6a6a6e;
  -webkit-line-clamp: 1;
}

.driver-hunt-offer-mark {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  margin: 2px 0 4px;
}

.driver-hunt-offer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(26, 115, 232, 0.35);
  animation: driver-hunt-pulse 2.2s ease-out infinite;
}

.driver-hunt-offer-ring:nth-child(2) {
  animation-delay: 0.7s;
}

.driver-hunt-offer-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #1a73e8;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.35);
}

.driver-hunt-offer-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
}

.driver-hunt-panel .driver-hunt-accept,
.driver-live-and-more {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.driver-live-and-more {
  border: 1px solid rgba(18, 18, 18, 0.22);
  background: transparent;
  color: #121212;
}

@keyframes driver-hunt-pulse {
  0% {
    transform: scale(0.45);
    opacity: 0.7;
  }
  70% {
    opacity: 0.15;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes driver-hunt-offer-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .driver-hunt-offer-ring {
    animation: none;
    opacity: 0.28;
  }

  .driver-live-sheet {
    animation: none;
  }
}

.driver-live-job .primary-btn,
.driver-live-trip .primary-btn {
  width: 100%;
}

.driver-live-chip {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 58;
  transform: translateX(-50%);
  appearance: none;
  max-width: calc(100% - 1.6rem);
  padding: 0.62rem 1.05rem;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.22);
  cursor: pointer;
}

.driver-live-chip.hidden {
  display: none !important;
}

@media (max-width: 700px), (min-width: 701px) and (max-width: 1024px) and (orientation: portrait) {
  body.driver-portal-shell.driver-drawer-nav .driver-live-chip {
    bottom: calc(12px + var(--driver-mobile-nav-h, 64px));
  }
}

@media (min-width: 720px) {
  .driver-live-layer {
    padding: 24px;
  }

  .driver-live-sheet {
    width: min(400px, calc(100vw - 48px));
    max-height: min(72dvh, calc(100dvh - 48px));
  }
}

@media (max-height: 740px) {
  .driver-hunt-offer-mark {
    width: 44px;
    height: 44px;
    margin: 0 0 2px;
  }

  .driver-hunt-panel {
    gap: 6px;
  }

  .driver-hunt-panel h3 {
    font-size: 1.15rem;
  }
}

@media (max-height: 620px) {
  .driver-hunt-offer-mark {
    width: 36px;
    height: 36px;
  }

  .driver-live-sheet {
    padding: 0.75rem 1rem 0.9rem;
  }
}

html.native-bridge,
html.native-bridge body,
body.native-bridge {
  color-scheme: light;
  background: var(--bg, #f3f3f4) !important;
}

html.native-bridge:not(.auth-only-shell) #auth-screen,
body.native-bridge:not(.auth-only-shell) #auth-screen {
  display: none !important;
}

html.auth-only-shell,
body.auth-only-shell {
  background: var(--bg, #f3f3f4) !important;
}

html.auth-only-shell #app,
body.auth-only-shell #app {
  display: none !important;
}

html.auth-only-shell #auth-screen:not(.hidden),
body.auth-only-shell #auth-screen:not(.hidden) {
  display: grid !important;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom, 0px)));
}

html.auth-only-shell #auth-screen.hidden,
body.auth-only-shell #auth-screen.hidden {
  display: none !important;
}

html.native-bridge #refresh-btn,
body.native-bridge #refresh-btn {
  display: none !important;
}
