:root {
  --brand-primary: #0f766e;
  --brand-secondary: #0b514d;
  --brand-accent: #e4f3f1;
  --brand-background: #eff5f4;
  --bg: var(--brand-background);
  --card: #ffffff;
  --text: #10201d;
  --muted: #63736f;
  --brand: var(--brand-primary);
  --brand-dark: var(--brand-secondary);
  --soft: var(--brand-accent);
  --border: #d6e2df;
}

* {
  box-sizing: border-box;
}

body.driver-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body.driver-login-body {
  --login-graphite: #2B2B2B;
  --login-graphite-soft: #3A3A3A;
  --login-muted: #6B7280;
  --login-border: #D7DADF;
  --login-border-soft: #E5E7EB;
  --login-background: #F5F6F7;
  --login-gold: #F6A800;
  --login-gold-soft: #FFD84A;
  --login-white: #FFFFFF;
  --brand: var(--login-graphite);
  --brand-dark: var(--login-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--login-background);
  --text: var(--login-graphite);
  --muted: var(--login-muted);
  --border: var(--login-border);
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--login-background) 58%, #EEF0F2 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.driver-shell {
  width: min(540px, 100%);
  margin: 0 auto;
  padding: 14px 14px 92px;
}

.driver-login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px 14px;
}

.driver-login-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: min(414px, calc(100vw - 28px));
  border: 1px solid rgba(215, 218, 223, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  padding: 30px 26px 28px;
  box-shadow:
    0 26px 60px rgba(43, 43, 43, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.92) inset;
}

.driver-login-card p,
.driver-login-card h1,
.driver-login-card span {
  margin: 0;
}

.driver-login-brand,
.driver-login-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.driver-login-brand {
  gap: 10px;
}

.driver-login-logo {
  display: block;
  width: clamp(120px, 33vw, 130px);
  height: auto;
  object-fit: contain;
}

.driver-login-card p {
  color: var(--login-graphite-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.driver-login-copy {
  gap: 12px;
}

.driver-login-card h1 {
  color: var(--login-graphite);
  font-size: clamp(1.72rem, 7vw, 1.98rem);
  font-weight: 900;
  line-height: 1.08;
}

.driver-login-card span {
  color: var(--muted);
  width: min(330px, 100%);
  font-size: 0.98rem;
  line-height: 1.5;
}

.driver-login-form {
  display: grid;
  gap: 13px;
  border: 0;
  background: transparent;
  padding: 6px 0 0;
}

.driver-login-label {
  color: var(--login-graphite-soft);
  font-size: 0.96rem;
  font-weight: 900;
}

.driver-login-field {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  border: 1px solid var(--login-border);
  border-radius: 18px;
  background: #FAFAFA;
  padding: 0 16px;
  box-shadow: 0 8px 18px rgba(43, 43, 43, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.driver-login-field:focus-within {
  border-color: var(--login-gold);
  background: var(--login-white);
  box-shadow:
    0 0 0 4px rgba(246, 168, 0, 0.16),
    0 12px 26px rgba(43, 43, 43, 0.06);
}

.driver-login-icon,
.driver-eye-icon {
  display: block;
  fill: #80858c;
}

.driver-login-icon {
  width: 25px;
  height: 25px;
}

.driver-eye-icon {
  width: 30px;
  height: 30px;
}

.driver-login-field input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: var(--login-graphite);
  font: inherit;
  font-size: 1.02rem;
  padding: 0;
}

.driver-login-field input::placeholder {
  color: #9ca3af;
  font-weight: 800;
}

.driver-login-field input:-webkit-autofill,
.driver-login-field input:-webkit-autofill:hover,
.driver-login-field input:-webkit-autofill:focus,
.driver-login-field input:-webkit-autofill:active {
  border: 0;
  caret-color: var(--login-graphite);
  -webkit-text-fill-color: var(--login-graphite);
  -webkit-box-shadow: 0 0 0 1000px #FAFAFA inset;
  box-shadow: 0 0 0 1000px #FAFAFA inset;
  transition: background-color 9999s ease-out;
}

.driver-login-field input:focus {
  outline: 0;
}

.driver-password-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #787d84;
  cursor: pointer;
  padding: 0;
}

.driver-password-toggle:hover,
.driver-password-toggle:focus-visible {
  background: #f1f2f4;
  outline: 2px solid rgba(246, 168, 0, 0.6);
  outline-offset: 2px;
}

.driver-login-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  border: 1px solid var(--login-gold);
  border-radius: 18px;
  background: linear-gradient(145deg, #242424 0%, var(--login-graphite) 100%);
  color: var(--login-white);
  cursor: pointer;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 900;
  padding: 15px;
  box-shadow:
    0 16px 28px rgba(43, 43, 43, 0.2),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, color 160ms ease;
}

.driver-login-submit:hover,
.driver-login-submit:focus-visible {
  background: var(--login-gold);
  color: var(--login-graphite);
  box-shadow:
    0 18px 34px rgba(246, 168, 0, 0.24),
    0 0 0 3px rgba(246, 168, 0, 0.18);
  outline: 0;
}

.driver-login-submit:active {
  transform: translateY(2px) scale(0.995);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.16);
}

body.driver-home-body {
  --home-graphite: #2B2B2B;
  --home-graphite-soft: #3A3A3A;
  --home-muted: #6B7280;
  --home-border: #E5E7EB;
  --home-bg: #F5F6F7;
  --home-gold: #F6A800;
  --home-gold-soft: #FFD84A;
  --brand: var(--home-graphite);
  --brand-dark: var(--home-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--home-bg);
  --text: var(--home-graphite);
  --muted: var(--home-muted);
  --border: var(--home-border);
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--home-bg) 58%, #EEF0F2 100%);
}

.driver-home-body .driver-shell {
  width: min(540px, 100%);
  padding: 12px 14px calc(152px + env(safe-area-inset-bottom));
}

.driver-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.06);
  margin-bottom: 10px;
  padding: 8px 10px;
}

.driver-home-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.driver-home-brandline img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.driver-home-brandline div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.driver-home-brandline small {
  color: var(--home-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.driver-home-brandline strong {
  overflow: hidden;
  color: var(--home-graphite);
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-home-header > a {
  flex: 0 0 auto;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: #FAFAFA;
  color: var(--home-graphite-soft);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 11px;
}

.driver-home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 22px;
  background: var(--home-graphite);
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(43, 43, 43, 0.16);
  margin-bottom: 10px;
  padding: 16px;
}

.driver-home-hero::after {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--home-gold);
  content: "";
}

.driver-home-hero p,
.driver-home-hero h1,
.driver-home-hero span {
  margin: 0;
}

.driver-home-hero p {
  color: #f5f5f5;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.82;
  text-transform: uppercase;
}

.driver-home-hero h1 {
  font-size: 1.52rem;
  font-weight: 900;
  line-height: 1.12;
}

.driver-home-hero span {
  max-width: 330px;
  color: #e8eaed;
  font-size: 0.9rem;
  line-height: 1.35;
}

.driver-home-actions {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.driver-home-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.driver-summary-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  min-height: 72px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--home-graphite);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.045);
  padding: 10px;
}

.driver-summary-card:focus-visible,
.driver-summary-card:hover {
  border-color: rgba(246, 168, 0, 0.72);
  box-shadow:
    0 10px 24px rgba(43, 43, 43, 0.07),
    0 0 0 3px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-summary-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff7d6;
  color: var(--home-graphite);
}

.driver-summary-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.driver-summary-card strong {
  color: var(--home-graphite);
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1;
}

.driver-summary-card span:not(.driver-summary-icon) {
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
}

.driver-action-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--home-graphite);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.05);
  padding: 15px;
}

.driver-action-card strong,
.driver-action-card span {
  grid-column: 2;
}

.driver-action-card strong {
  align-self: end;
  font-size: 1.03rem;
  font-weight: 900;
}

.driver-action-card span:not(.driver-action-icon) {
  align-self: start;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.3;
}

.driver-action-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #fff7d6;
  color: var(--home-graphite);
}

.driver-action-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.driver-action-card.is-primary {
  border-color: var(--home-gold);
  background: var(--home-graphite);
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgba(43, 43, 43, 0.18);
}

.driver-action-card.is-primary .driver-action-icon {
  background: var(--home-gold);
  color: var(--home-graphite);
}

.driver-action-card.is-primary span:not(.driver-action-icon) {
  color: #e8eaed;
}

.driver-new-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 68px;
  border: 1px solid var(--home-gold);
  border-radius: 17px;
  background: var(--home-graphite);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(43, 43, 43, 0.15);
  padding: 12px;
}

.driver-new-action:focus-visible,
.driver-new-action:hover {
  border-color: var(--home-gold-soft);
  box-shadow:
    0 14px 28px rgba(43, 43, 43, 0.18),
    0 0 0 3px rgba(246, 168, 0, 0.16);
  outline: 0;
}

.driver-new-action .driver-action-icon {
  grid-row: auto;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--home-gold);
  color: var(--home-graphite);
}

.driver-new-action .driver-action-icon svg {
  width: 22px;
  height: 22px;
}

.driver-new-action > span:last-child {
  display: grid;
  gap: 2px;
  align-self: center;
  min-width: 0;
}

.driver-new-action strong {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
}

.driver-new-action small {
  color: #e8eaed;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.driver-home-body .driver-bottom-nav .primary-tab {
  width: min(100%, 64px);
  min-height: 48px;
  padding-right: 5px;
  padding-left: 5px;
}

.driver-home-body .driver-bottom-nav .primary-tab svg {
  width: 18px;
  height: 18px;
}

.driver-recent-section {
  display: grid;
  gap: 8px;
}

.driver-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.driver-section-heading h2 {
  margin: 0;
  color: var(--home-graphite);
  font-size: 1.08rem;
  font-weight: 900;
}

.driver-section-heading a {
  color: var(--home-graphite-soft);
  font-size: 0.86rem;
  font-weight: 900;
}

.driver-trip-list {
  display: grid;
  gap: 8px;
}

.driver-trip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.045);
  padding: 12px;
}

.driver-trip-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.driver-trip-card > small {
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.driver-trip-card > strong {
  min-width: 0;
  color: var(--home-graphite);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.driver-trip-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.driver-trip-meta > span {
  color: var(--home-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.driver-trip-meta b {
  margin-left: auto;
  color: var(--home-muted);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
}

.driver-status-badge {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--home-graphite-soft);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  padding: 5px 7px;
}

.driver-status-badge.is-progress {
  background: #fff3bd;
  color: var(--home-graphite);
}

.driver-status-badge.is-requested {
  background: #fde7c4;
  color: #7a4a00;
}

.driver-status-badge.is-finished {
  background: #e5e7eb;
  color: var(--home-graphite-soft);
}

.driver-home-empty {
  border: 1px solid var(--home-border);
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--home-muted);
  padding: 16px;
}

body.driver-trips-body {
  --trips-graphite: #2B2B2B;
  --trips-graphite-soft: #3A3A3A;
  --trips-muted: #6B7280;
  --trips-border: #E5E7EB;
  --trips-bg: #F5F6F7;
  --trips-gold: #F6A800;
  --trips-gold-soft: #FFD84A;
  --brand: var(--trips-graphite);
  --brand-dark: var(--trips-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--trips-bg);
  --text: var(--trips-graphite);
  --muted: var(--trips-muted);
  --border: var(--trips-border);
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--trips-bg) 58%, #EEF0F2 100%);
}

.driver-trips-body .driver-shell {
  width: min(540px, 100%);
  padding: 12px 14px calc(152px + env(safe-area-inset-bottom));
}

.driver-trips-hero {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 22px;
  background: var(--trips-graphite);
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(43, 43, 43, 0.16);
  margin-bottom: 12px;
  padding: 15px 16px;
}

.driver-trips-hero-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--trips-gold);
  color: var(--trips-graphite);
}

.driver-trips-hero-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.driver-trips-hero h1,
.driver-trips-hero p {
  margin: 0;
}

.driver-trips-hero h1 {
  font-size: clamp(1.4rem, 5.6vw, 1.78rem);
  font-weight: 900;
  line-height: 1.1;
}

.driver-trips-hero p {
  margin-top: 5px;
  color: #e8eaed;
  font-size: 0.9rem;
  line-height: 1.35;
}

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

.driver-list-trip-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  grid-template-areas:
    "top top"
    "route route"
    "date chevron";
  gap: 8px 10px;
  min-height: 112px;
  border: 1px solid var(--trips-border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.055);
  color: var(--trips-graphite);
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.driver-list-trip-card:hover,
.driver-list-trip-card:focus-visible {
  border-color: rgba(246, 168, 0, 0.8);
  box-shadow:
    0 12px 28px rgba(43, 43, 43, 0.08),
    0 0 0 3px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-list-trip-card:active {
  transform: translateY(1px);
}

.driver-list-trip-top {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.driver-list-trip-top small {
  min-width: 0;
  color: var(--trips-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.driver-list-trip-card > strong {
  grid-area: route;
  min-width: 0;
  color: var(--trips-graphite);
  font-size: clamp(1rem, 4.5vw, 1.13rem);
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: break-word;
  word-break: normal;
}

.driver-list-trip-date {
  grid-area: date;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: fit-content;
  color: var(--trips-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.driver-list-trip-date svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.driver-list-trip-chevron {
  grid-area: chevron;
  align-self: center;
  justify-self: end;
  color: var(--trips-muted);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.driver-list-trip-card .driver-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #f3f4f6;
  color: var(--trips-graphite-soft);
}

.driver-list-trip-card .driver-status-badge.is-progress {
  background: #fff3bd;
  color: var(--trips-graphite);
}

.driver-list-trip-card .driver-status-badge.is-requested {
  background: #fde7c4;
  color: #7a4a00;
}

.driver-list-trip-card .driver-status-badge.is-finished {
  background: var(--trips-border);
  color: var(--trips-graphite-soft);
}

.driver-list-trip-card .driver-status-badge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.driver-list-trip-card .driver-status-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.driver-trips-empty {
  display: grid;
  gap: 6px;
  border: 1px solid var(--trips-border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.045);
  padding: 18px;
}

.driver-trips-empty strong {
  color: var(--trips-graphite);
  font-size: 1.02rem;
  font-weight: 900;
}

.driver-trips-empty span {
  color: var(--trips-muted);
  line-height: 1.4;
}

body.driver-new-trip-body {
  --new-trip-graphite: #2B2B2B;
  --new-trip-graphite-soft: #3A3A3A;
  --new-trip-muted: #6B7280;
  --new-trip-border: #E5E7EB;
  --new-trip-field-border: #D7DADF;
  --new-trip-bg: #F5F6F7;
  --new-trip-gold: #F6A800;
  --new-trip-gold-soft: #FFD84A;
  --brand: var(--new-trip-graphite);
  --brand-dark: var(--new-trip-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--new-trip-bg);
  --text: var(--new-trip-graphite);
  --muted: var(--new-trip-muted);
  --border: var(--new-trip-border);
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--new-trip-bg) 58%, #EEF0F2 100%);
}

.driver-new-trip-body .driver-shell {
  width: min(540px, 100%);
  padding: 14px 14px calc(152px + env(safe-area-inset-bottom));
}

.driver-new-trip-body .driver-topbar {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.06);
  margin-bottom: 14px;
  padding: 10px 12px;
}

.driver-new-trip-body .driver-topbar span {
  min-width: 0;
  overflow: hidden;
  color: var(--new-trip-graphite);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-new-trip-body .driver-topbar a {
  flex: 0 0 auto;
  border: 1px solid var(--new-trip-border);
  background: #FAFAFA;
  color: var(--new-trip-graphite-soft);
}

.driver-new-trip-hero {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 22px;
  background: var(--new-trip-graphite);
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(43, 43, 43, 0.16);
  margin-bottom: 12px;
  padding: 18px;
}

.driver-new-trip-hero::after {
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: var(--new-trip-gold);
  content: "";
}

.driver-new-trip-hero small,
.driver-new-trip-hero h1,
.driver-new-trip-hero p {
  margin: 0;
}

.driver-new-trip-hero small {
  color: #f5f5f5;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.82;
  text-transform: uppercase;
}

.driver-new-trip-hero h1 {
  font-size: clamp(1.48rem, 6vw, 1.82rem);
  font-weight: 900;
  line-height: 1.12;
}

.driver-new-trip-hero p {
  color: #e8eaed;
  font-size: 0.92rem;
  line-height: 1.38;
}

.driver-new-trip-form {
  gap: 14px;
  border: 1px solid var(--new-trip-border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.06);
  padding: 16px;
}

.driver-trip-form-section {
  display: grid;
  gap: 13px;
}

.driver-trip-form-section + .driver-trip-form-section {
  border-top: 1px solid var(--new-trip-border);
  padding-top: 15px;
}

.driver-section-title {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.driver-section-title small {
  color: var(--new-trip-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.driver-section-title h2 {
  margin: 0;
  color: var(--new-trip-graphite);
  font-size: 1.14rem;
  font-weight: 900;
}

.driver-new-trip-form label {
  gap: 8px;
  color: var(--new-trip-graphite-soft);
  font-size: 0.92rem;
  font-weight: 900;
}

.driver-form-field.has-error {
  color: #7a2e0e;
}

.driver-new-trip-form input,
.driver-new-trip-form select,
.driver-new-trip-form textarea {
  border: 1px solid var(--new-trip-field-border);
  border-radius: 15px;
  background-color: #FAFAFA;
  color: var(--new-trip-graphite);
  min-height: 54px;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.driver-form-field.has-error input,
.driver-form-field.has-error select,
.driver-form-field.has-error textarea {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(246, 168, 0, 0.16);
}

.driver-new-trip-form select {
  appearance: auto;
  padding-right: 12px;
}

.driver-new-trip-form textarea {
  min-height: 112px;
  line-height: 1.45;
}

.driver-new-trip-form input::placeholder,
.driver-new-trip-form textarea::placeholder {
  color: #8a9099;
}

.driver-new-trip-form input:focus,
.driver-new-trip-form select:focus,
.driver-new-trip-form textarea:focus {
  border-color: var(--new-trip-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-new-trip-form input:-webkit-autofill,
.driver-new-trip-form input:-webkit-autofill:hover,
.driver-new-trip-form input:-webkit-autofill:focus,
.driver-new-trip-form input:-webkit-autofill:active {
  caret-color: var(--new-trip-graphite);
  -webkit-text-fill-color: var(--new-trip-graphite);
  -webkit-box-shadow: 0 0 0 1000px #FAFAFA inset;
  box-shadow: 0 0 0 1000px #FAFAFA inset;
  transition: background-color 9999s ease-out;
}

.driver-new-trip-form input[readonly],
.driver-new-trip-form .calculated-field {
  border-color: var(--new-trip-border);
  background: #F5F6F7;
  color: var(--new-trip-graphite-soft);
}

.driver-field-help,
.driver-field-error {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.driver-field-help {
  color: var(--new-trip-muted);
}

.driver-field-error {
  color: #92400e;
}

.driver-new-trip-submit:focus-visible {
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.18);
  outline: 0;
}

.driver-new-trip-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  border: 1px solid var(--new-trip-gold);
  border-radius: 17px;
  background: linear-gradient(145deg, #242424 0%, var(--new-trip-graphite) 100%);
  color: #FFFFFF;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 900;
  box-shadow:
    0 14px 26px rgba(43, 43, 43, 0.18),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, color 160ms ease;
}

.driver-new-trip-submit:hover,
.driver-new-trip-submit:focus-visible {
  background: var(--new-trip-gold);
  color: var(--new-trip-graphite);
  box-shadow:
    0 18px 34px rgba(246, 168, 0, 0.22),
    0 0 0 3px rgba(246, 168, 0, 0.16);
  outline: 0;
}

.driver-new-trip-submit:active {
  transform: translateY(2px) scale(0.995);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.14);
}

body.driver-fueling-body {
  --fueling-graphite: #2B2B2B;
  --fueling-graphite-soft: #3A3A3A;
  --fueling-muted: #6B7280;
  --fueling-border: #E5E7EB;
  --fueling-field-border: #D7DADF;
  --fueling-bg: #F5F6F7;
  --fueling-gold: #F6A800;
  --fueling-gold-soft: #FFD84A;
  --brand: var(--fueling-graphite);
  --brand-dark: var(--fueling-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--fueling-bg);
  --text: var(--fueling-graphite);
  --muted: var(--fueling-muted);
  --border: var(--fueling-border);
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--fueling-bg) 58%, #EEF0F2 100%);
}

.driver-fueling-body .driver-shell {
  width: min(680px, 100%);
  padding: 12px 14px calc(164px + env(safe-area-inset-bottom));
}

.driver-fueling-body .driver-topbar {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.06);
  margin-bottom: 14px;
  padding: 10px 12px;
}

.driver-fueling-body .driver-topbar span {
  min-width: 0;
  overflow: hidden;
  color: var(--fueling-graphite);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-fueling-body .driver-topbar a {
  flex: 0 0 auto;
  border: 1px solid var(--fueling-border);
  background: #FAFAFA;
  color: var(--fueling-graphite-soft);
}

.driver-fueling-hero {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 20px;
  background: var(--fueling-graphite);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(43, 43, 43, 0.14);
  margin-bottom: 12px;
  padding: 16px 18px;
}

.driver-fueling-hero::after {
  width: 50px;
  height: 3px;
  border-radius: 999px;
  background: var(--fueling-gold);
  content: "";
}

.driver-fueling-hero small,
.driver-fueling-hero h1,
.driver-fueling-hero p {
  margin: 0;
}

.driver-fueling-hero small {
  color: #f5f5f5;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0.82;
  text-transform: uppercase;
}

.driver-fueling-hero h1 {
  font-size: clamp(1.34rem, 5vw, 1.68rem);
  font-weight: 900;
  line-height: 1.12;
}

.driver-fueling-hero p {
  color: #e8eaed;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.driver-fueling-form {
  gap: 0;
  border: 1px solid var(--fueling-border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.06);
  padding: 18px;
}

.driver-fueling-section {
  display: grid;
  gap: 14px;
  border: 0;
  border-top: 1px solid #EEF0F2;
  border-radius: 0;
  background: transparent;
  padding: 18px 0;
}

.driver-fueling-section:first-of-type {
  border-top: 0;
  padding-top: 6px;
}

.driver-fueling-section h2 {
  margin: 0;
  color: var(--fueling-graphite);
  font-size: 1rem;
  font-weight: 900;
}

.driver-fueling-section-heading {
  display: grid;
  gap: 4px;
}

.driver-fueling-section-heading p,
.driver-required-note,
.driver-optional-note {
  margin: 0;
  color: var(--fueling-muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.driver-required-note {
  border: 1px solid rgba(246, 168, 0, 0.32);
  border-radius: 999px;
  background: #fff9df;
  justify-self: start;
  margin-bottom: 10px;
  padding: 5px 10px;
}

.driver-required-badge,
.driver-optional-note,
.driver-receipt-required,
.driver-receipt-recommended {
  display: inline-grid;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
}

.driver-required-badge {
  margin-left: 4px;
  background: #fff3bd;
  color: var(--fueling-graphite);
  font-size: 0.68rem;
  font-weight: 900;
}

.driver-optional-note {
  justify-self: start;
  background: #F5F6F7;
}

.driver-photo-slot {
  border-top: 1px solid var(--fueling-border);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.driver-photo-slot:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.driver-photo-slot h3 {
  color: var(--fueling-graphite);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 5px;
}

.driver-photo-slot p {
  color: var(--fueling-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.driver-ocr-status {
  color: var(--fueling-muted);
  font-size: 0.8rem;
  min-height: 1em;
}

.driver-fueling-form label {
  gap: 8px;
  color: var(--fueling-graphite-soft);
  font-size: 0.92rem;
  font-weight: 900;
}

.driver-fueling-form input,
.driver-fueling-form select,
.driver-fueling-form textarea {
  border: 1px solid var(--fueling-field-border);
  border-radius: 15px;
  background-color: #FAFAFA;
  color: var(--fueling-graphite);
  min-height: 54px;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.driver-fueling-form input::placeholder,
.driver-fueling-form textarea::placeholder {
  color: #8a9099;
}

.driver-fueling-form input:focus,
.driver-fueling-form select:focus,
.driver-fueling-form textarea:focus {
  border-color: var(--fueling-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-fueling-form [aria-invalid="true"] {
  border-color: #B42318;
  background-color: #fff8f6;
}

.driver-field-error {
  color: #B42318;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.35;
}

.driver-fueling-form input:-webkit-autofill,
.driver-fueling-form input:-webkit-autofill:hover,
.driver-fueling-form input:-webkit-autofill:focus,
.driver-fueling-form input:-webkit-autofill:active {
  caret-color: var(--fueling-graphite);
  -webkit-text-fill-color: var(--fueling-graphite);
  -webkit-box-shadow: 0 0 0 1000px #FAFAFA inset;
  box-shadow: 0 0 0 1000px #FAFAFA inset;
  transition: background-color 9999s ease-out;
}

.driver-fueling-result {
  border: 1px solid var(--fueling-border);
  border-radius: 16px;
  background: #F5F6F7;
  padding: 12px;
}

.driver-fueling-result.is-highlight,
.driver-paid-amount-field {
  border: 1px solid rgba(246, 168, 0, 0.36);
  border-radius: 16px;
  background: #fffaf0;
  padding: 12px;
}

.driver-fueling-result input,
.driver-fueling-form .calculated-field {
  border-color: transparent;
  background: transparent;
  color: var(--fueling-graphite);
  cursor: default;
  font-size: 1.08rem;
  font-weight: 900;
  padding: 8px 0 0;
}

.driver-fueling-result input:focus,
.driver-fueling-form .calculated-field:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.driver-fueling-actions {
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid #EEF0F2;
  padding-top: 18px;
}

.driver-fueling-actions a,
.driver-fueling-actions button {
  min-height: 56px;
}

.driver-fueling-cancel {
  border: 1px solid var(--fueling-border);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--fueling-graphite);
  order: 2;
}

.driver-fueling-submit {
  border: 1px solid var(--fueling-gold);
  border-radius: 16px;
  background: linear-gradient(145deg, #242424 0%, var(--fueling-graphite) 100%);
  color: #FFFFFF;
  box-shadow:
    0 14px 26px rgba(43, 43, 43, 0.18),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
  order: 1;
}

.driver-fueling-actions a:focus-visible,
.driver-fueling-actions button:focus-visible {
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.16);
  outline: 0;
}

.driver-fueling-submit:hover,
.driver-fueling-submit:focus-visible {
  background: var(--fueling-gold);
  color: var(--fueling-graphite);
}

.driver-fueling-submit:disabled {
  cursor: progress;
  opacity: 0.75;
}

.driver-fueling-actions button:active {
  transform: translateY(2px) scale(0.995);
}

body.driver-trip-detail-body {
  --trip-detail-graphite: #2B2B2B;
  --trip-detail-graphite-soft: #3A3A3A;
  --trip-detail-muted: #6B7280;
  --trip-detail-border: #E5E7EB;
  --trip-detail-bg: #F5F6F7;
  --trip-detail-gold: #F6A800;
  --trip-detail-gold-soft: #FFD84A;
  --brand: var(--trip-detail-graphite);
  --brand-dark: var(--trip-detail-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--trip-detail-bg);
  --text: var(--trip-detail-graphite);
  --muted: var(--trip-detail-muted);
  --border: var(--trip-detail-border);
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--trip-detail-bg) 58%, #EEF0F2 100%);
}

.driver-trip-detail-body .driver-shell {
  width: min(720px, 100%);
  padding: 14px 14px 132px;
}

.driver-trip-detail-body .driver-topbar {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.06);
  margin-bottom: 14px;
  padding: 10px 12px;
}

.driver-trip-detail-body .driver-topbar span {
  min-width: 0;
  overflow: hidden;
  color: var(--trip-detail-graphite);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-trip-detail-body .driver-topbar a {
  flex: 0 0 auto;
  border: 1px solid var(--trip-detail-border);
  background: #FAFAFA;
  color: var(--trip-detail-graphite-soft);
}

.driver-trip-detail-hero {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 22px;
  background: var(--trip-detail-graphite);
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(43, 43, 43, 0.16);
  margin-bottom: 14px;
  padding: 22px;
}

.driver-trip-detail-hero::after {
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--trip-detail-gold);
  content: "";
}

.driver-trip-detail-hero small,
.driver-trip-detail-hero h1,
.driver-trip-detail-hero p {
  margin: 0;
}

.driver-trip-detail-hero small {
  color: #f5f5f5;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.82;
  text-transform: uppercase;
}

.driver-trip-detail-hero h1 {
  color: #FFFFFF;
  font-size: clamp(1.42rem, 5.8vw, 1.96rem);
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.driver-trip-detail-hero p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #e8eaed;
  font-size: 0.94rem;
  font-weight: 800;
}

.driver-trip-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff3bd;
  color: var(--trip-detail-graphite);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 9px;
}

.driver-trip-status.is-requested {
  background: #fde7c4;
  color: #7a4a00;
}

.driver-trip-status.is-finished {
  background: #E5E7EB;
  color: var(--trip-detail-graphite-soft);
}

.driver-trip-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.driver-trip-action-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 4px 12px;
  min-height: 86px;
  border: 1px solid var(--trip-detail-border);
  border-radius: 18px;
  background: #FFFFFF;
  color: var(--trip-detail-graphite);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.05);
  padding: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.driver-trip-action-card:hover,
.driver-trip-action-card:focus-visible {
  border-color: rgba(246, 168, 0, 0.8);
  box-shadow:
    0 12px 28px rgba(43, 43, 43, 0.08),
    0 0 0 3px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-trip-action-card:active {
  transform: translateY(1px);
}

.driver-trip-action-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #fff7d6;
  color: var(--trip-detail-graphite);
}

.driver-trip-action-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.driver-trip-action-card strong {
  color: var(--trip-detail-graphite);
  font-size: 1.03rem;
  font-weight: 900;
}

.driver-trip-action-card span:not(.driver-trip-action-icon) {
  color: var(--trip-detail-muted);
  font-size: 0.92rem;
  line-height: 1.32;
}

.driver-trip-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.driver-trip-section h2 {
  margin: 0;
  color: var(--trip-detail-graphite);
  font-size: 1.12rem;
  font-weight: 900;
}

.driver-trip-summary-card,
.driver-trip-entry-card,
.driver-trip-empty,
.driver-trip-request-card {
  border: 1px solid var(--trip-detail-border);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.045);
}

.driver-trip-summary-card {
  display: grid;
  padding: 2px 16px;
}

.driver-trip-summary-card div {
  display: grid;
  grid-template-columns: minmax(112px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--trip-detail-border);
  padding: 13px 0;
}

.driver-trip-summary-card div:last-child {
  border-bottom: 0;
}

.driver-trip-summary-card span {
  color: var(--trip-detail-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.driver-trip-summary-card strong {
  min-width: 0;
  color: var(--trip-detail-graphite);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-align: right;
}

.driver-trip-summary-card .is-money strong {
  font-size: 1.03rem;
}

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

.driver-trip-entry-card {
  display: grid;
  gap: 5px;
  padding: 15px;
}

.driver-trip-entry-card small {
  color: var(--trip-detail-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.driver-trip-entry-card strong {
  min-width: 0;
  color: var(--trip-detail-graphite);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.26;
  overflow-wrap: anywhere;
}

.driver-trip-entry-card span {
  color: var(--trip-detail-muted);
  font-size: 0.9rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.driver-trip-empty {
  color: var(--trip-detail-muted);
  font-weight: 800;
  padding: 16px;
}

.driver-trip-request-card {
  display: grid;
  gap: 10px;
  border-color: rgba(246, 168, 0, 0.34);
  color: var(--trip-detail-graphite);
  margin-bottom: 18px;
  padding: 16px;
}

.driver-trip-request-card strong {
  font-size: 1rem;
  font-weight: 900;
}

.driver-trip-request-card span {
  color: var(--trip-detail-muted);
  line-height: 1.4;
}

.driver-trip-request-card button,
.driver-trip-finish-form button {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--trip-detail-gold);
  border-radius: 16px;
  background: linear-gradient(145deg, #242424 0%, var(--trip-detail-graphite) 100%);
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow:
    0 12px 24px rgba(43, 43, 43, 0.16),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
  padding: 14px;
}

.driver-trip-request-card button:focus-visible,
.driver-trip-finish-form button:focus-visible {
  box-shadow:
    0 12px 24px rgba(43, 43, 43, 0.16),
    0 0 0 4px rgba(246, 168, 0, 0.16);
  outline: 0;
}

.driver-trip-finish-form {
  margin-top: 18px;
}

body.driver-expense-body {
  --expense-graphite: #2B2B2B;
  --expense-graphite-soft: #3A3A3A;
  --expense-muted: #6B7280;
  --expense-border: #E5E7EB;
  --expense-field-border: #D7DADF;
  --expense-bg: #F5F6F7;
  --expense-gold: #F6A800;
  --expense-gold-soft: #FFD84A;
  --brand: var(--expense-graphite);
  --brand-dark: var(--expense-graphite-soft);
  --soft: #fff7d6;
  --bg: var(--expense-bg);
  --text: var(--expense-graphite);
  --muted: var(--expense-muted);
  --border: var(--expense-border);
  min-height: 100vh;
  background: linear-gradient(145deg, #FFFFFF 0%, var(--expense-bg) 58%, #EEF0F2 100%);
}

.driver-expense-body .driver-shell {
  width: min(720px, 100%);
  padding: 14px 14px 132px;
}

.driver-expense-body .driver-topbar {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.06);
  margin-bottom: 14px;
  padding: 10px 12px;
}

.driver-expense-body .driver-topbar span {
  min-width: 0;
  overflow: hidden;
  color: var(--expense-graphite);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-expense-body .driver-topbar a {
  flex: 0 0 auto;
  border: 1px solid var(--expense-border);
  background: #FAFAFA;
  color: var(--expense-graphite-soft);
}

.driver-expense-hero {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 22px;
  background: var(--expense-graphite);
  color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(43, 43, 43, 0.16);
  margin-bottom: 14px;
  padding: 22px;
}

.driver-expense-hero::after {
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--expense-gold);
  content: "";
}

.driver-expense-hero small,
.driver-expense-hero h1,
.driver-expense-hero p {
  margin: 0;
}

.driver-expense-hero small {
  color: #f5f5f5;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0.82;
  text-transform: uppercase;
}

.driver-expense-hero h1 {
  color: #FFFFFF;
  font-size: clamp(1.58rem, 6vw, 1.94rem);
  font-weight: 900;
  line-height: 1.12;
}

.driver-expense-hero p {
  color: #e8eaed;
  font-size: 0.98rem;
  line-height: 1.45;
}

.driver-expense-form {
  gap: 16px;
  border: 1px solid var(--expense-border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.06);
  padding: 18px;
}

.driver-expense-section {
  display: grid;
  gap: 12px;
  border: 1px solid #EEF0F2;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 14px;
}

.driver-expense-section h2 {
  margin: 0;
  color: var(--expense-graphite);
  font-size: 0.92rem;
  font-weight: 900;
}

.driver-expense-form label {
  gap: 8px;
  color: var(--expense-graphite-soft);
  font-size: 0.92rem;
  font-weight: 900;
}

.driver-expense-form input,
.driver-expense-form select,
.driver-expense-form textarea {
  border: 1px solid var(--expense-field-border);
  border-radius: 15px;
  background-color: #FAFAFA;
  color: var(--expense-graphite);
  min-height: 54px;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.driver-expense-form input::placeholder,
.driver-expense-form textarea::placeholder {
  color: #8a9099;
}

.driver-expense-form input:focus,
.driver-expense-form select:focus,
.driver-expense-form textarea:focus {
  border-color: var(--expense-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-expense-form input:-webkit-autofill,
.driver-expense-form input:-webkit-autofill:hover,
.driver-expense-form input:-webkit-autofill:focus,
.driver-expense-form input:-webkit-autofill:active {
  caret-color: var(--expense-graphite);
  -webkit-text-fill-color: var(--expense-graphite);
  -webkit-box-shadow: 0 0 0 1000px #FAFAFA inset;
  box-shadow: 0 0 0 1000px #FAFAFA inset;
  transition: background-color 9999s ease-out;
}

.driver-expense-choice-group {
  display: grid;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.driver-expense-choice-group legend {
  color: var(--expense-muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.driver-expense-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--expense-border);
  border-radius: 16px;
  background: #FAFAFA;
  color: var(--expense-graphite);
  cursor: pointer;
  min-height: 78px;
  padding: 13px;
}

.driver-expense-option:has(input:checked) {
  border-color: var(--expense-gold);
  background: #fff7d6;
  box-shadow: 0 0 0 3px rgba(246, 168, 0, 0.12);
}

.driver-expense-option:focus-within {
  border-color: var(--expense-gold);
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.14);
}

.driver-expense-option input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--expense-gold);
  padding: 0;
}

.driver-expense-option span {
  display: grid;
  gap: 3px;
}

.driver-expense-option strong {
  color: var(--expense-graphite);
  font-size: 0.98rem;
  font-weight: 900;
}

.driver-expense-option small {
  color: var(--expense-muted);
  font-weight: 800;
  line-height: 1.35;
}

.driver-expense-reimbursement-hint {
  border: 1px solid rgba(246, 168, 0, 0.34);
  border-radius: 14px;
  background: #fff7d6;
  color: var(--expense-graphite);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.38;
  margin: 0;
  padding: 11px 12px;
}

.driver-expense-actions {
  grid-template-columns: 0.95fr 1.35fr;
  gap: 10px;
}

.driver-expense-actions a,
.driver-expense-actions button {
  min-height: 56px;
}

.driver-expense-cancel {
  border: 1px solid var(--expense-border);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--expense-graphite);
}

.driver-expense-submit {
  border: 1px solid var(--expense-gold);
  border-radius: 16px;
  background: linear-gradient(145deg, #242424 0%, var(--expense-graphite) 100%);
  color: #FFFFFF;
  box-shadow:
    0 14px 26px rgba(43, 43, 43, 0.18),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
}

.driver-expense-actions a:focus-visible,
.driver-expense-actions button:focus-visible {
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.16);
  outline: 0;
}

.driver-expense-submit:hover,
.driver-expense-submit:focus-visible {
  background: var(--expense-gold);
  color: var(--expense-graphite);
}

.driver-expense-actions button:active {
  transform: translateY(2px) scale(0.995);
}

.driver-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
}

.driver-topbar a {
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  padding: 8px 12px;
}

.driver-hero,
.mobile-page-title {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 22px;
  margin-bottom: 14px;
}

.driver-hero p,
.mobile-page-title small {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  opacity: 0.78;
  text-transform: uppercase;
}

.driver-hero h1,
.mobile-page-title h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.driver-hero span,
.mobile-page-title p {
  display: block;
  margin: 0;
  line-height: 1.4;
  opacity: 0.85;
}

.driver-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.driver-actions.compact {
  grid-template-columns: 1fr;
}

.big-action,
.mobile-trip-card,
.summary-card,
.mobile-empty {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 16px;
}

.big-action {
  min-height: 78px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.big-action strong,
.mobile-trip-card strong {
  font-size: 1.08rem;
}

.big-action span,
.mobile-trip-card span,
.mobile-trip-card small,
.mobile-trip-card em,
.mobile-empty,
.summary-card span {
  color: var(--muted);
  font-style: normal;
}

.mobile-section {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mobile-section h2 {
  margin: 0;
  font-size: 1.12rem;
}

.mobile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-heading a {
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
  padding: 8px 10px;
}

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

.summary-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 9px;
}

.summary-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-card strong {
  text-align: right;
}

.mobile-finish-form {
  margin-top: 18px;
}

.mobile-finish-form button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 16px;
}

.mobile-form {
  display: grid;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 16px;
}

.mobile-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.mobile-form input,
.mobile-form select,
.mobile-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
  min-height: 50px;
  padding: 13px;
}

.mobile-form textarea {
  resize: vertical;
}

.mobile-form input[readonly],
.calculated-field {
  background: #f6faf9;
}

.mobile-form button,
.mobile-form-actions button {
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 900;
  min-height: 52px;
  padding: 14px;
}

.driver-fueling-form {
  gap: 0;
  border-color: var(--fueling-border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.06);
  padding: 18px;
}

.driver-fueling-form label {
  gap: 8px;
  color: var(--fueling-graphite-soft);
  font-size: 0.92rem;
}

.driver-fueling-form input,
.driver-fueling-form select,
.driver-fueling-form textarea {
  border-color: var(--fueling-field-border);
  border-radius: 15px;
  background-color: #FAFAFA;
  color: var(--fueling-graphite);
  min-height: 54px;
  padding: 14px;
}

.driver-fueling-form input:focus,
.driver-fueling-form select:focus,
.driver-fueling-form textarea:focus {
  border-color: var(--fueling-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-fueling-result input,
.driver-fueling-form .calculated-field {
  border-color: transparent;
  background: transparent;
  color: var(--fueling-graphite);
  cursor: default;
  font-size: 1.08rem;
  font-weight: 900;
  padding: 8px 0 0;
}

.driver-fueling-result input:focus,
.driver-fueling-form .calculated-field:focus {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.driver-fueling-actions a,
.driver-fueling-actions button {
  min-height: 56px;
}

.driver-fueling-cancel {
  border: 1px solid var(--fueling-border);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--fueling-graphite);
  order: 2;
}

.driver-fueling-submit {
  border: 1px solid var(--fueling-gold);
  border-radius: 16px;
  background: linear-gradient(145deg, #242424 0%, var(--fueling-graphite) 100%);
  color: #FFFFFF;
  box-shadow:
    0 14px 26px rgba(43, 43, 43, 0.18),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
  order: 1;
}

.driver-login-card .driver-login-form {
  display: grid;
  gap: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0 0;
}

.driver-login-card .driver-login-label {
  display: block;
  color: var(--login-graphite-soft);
  font-size: 0.96rem;
  font-weight: 900;
}

.driver-login-card .driver-login-field:focus-within {
  border-color: var(--login-gold);
  background: var(--login-white);
  box-shadow:
    0 0 0 4px rgba(246, 168, 0, 0.16),
    0 12px 26px rgba(43, 43, 43, 0.06);
}

.driver-login-card .driver-login-field input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--login-graphite);
  font: inherit;
  font-size: 1.02rem;
  padding: 0;
}

.driver-login-card .driver-login-field input:focus {
  outline: 0;
  box-shadow: none;
}

.driver-login-card .driver-login-field input:-webkit-autofill,
.driver-login-card .driver-login-field input:-webkit-autofill:hover,
.driver-login-card .driver-login-field input:-webkit-autofill:focus,
.driver-login-card .driver-login-field input:-webkit-autofill:active {
  border: 0;
  caret-color: var(--login-graphite);
  -webkit-text-fill-color: var(--login-graphite);
  -webkit-box-shadow: 0 0 0 1000px #FAFAFA inset;
  box-shadow: 0 0 0 1000px #FAFAFA inset;
  transition: background-color 9999s ease-out;
}

.driver-login-card .driver-password-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #787d84;
  cursor: pointer;
  padding: 0;
}

.driver-login-card .driver-password-toggle:hover,
.driver-login-card .driver-password-toggle:focus-visible {
  background: #f1f2f4;
  outline: 2px solid rgba(246, 168, 0, 0.6);
  outline-offset: 2px;
}

.driver-login-card .driver-login-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  border: 1px solid var(--login-gold);
  border-radius: 18px;
  background: linear-gradient(145deg, #242424 0%, var(--login-graphite) 100%);
  color: var(--login-white);
  cursor: pointer;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 900;
  padding: 15px;
  box-shadow:
    0 12px 24px rgba(43, 43, 43, 0.18),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, color 160ms ease;
}

.driver-login-card .driver-login-submit:hover,
.driver-login-card .driver-login-submit:focus-visible {
  background: var(--login-gold);
  color: var(--login-graphite);
  box-shadow:
    0 18px 34px rgba(246, 168, 0, 0.24),
    0 0 0 3px rgba(246, 168, 0, 0.18);
  outline: 0;
}

.driver-login-card .driver-login-submit:active {
  transform: translateY(2px) scale(0.995);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.16);
}

.mobile-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-form-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 4px;
}

.mobile-form-actions a {
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 900;
}

.mobile-alert {
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 900;
  padding: 12px;
}

.mobile-choice-group {
  display: grid;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.mobile-choice-group legend {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.mobile-choice-group label {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 13px;
}

.mobile-choice-group input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
  padding: 0;
}

.mobile-choice-group span {
  display: grid;
  gap: 3px;
}

.mobile-choice-group small {
  color: var(--muted);
  font-weight: 700;
}

.expense-reimbursement-hint {
  border-radius: 13px;
  background: #ecfeff;
  color: #155e75;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  padding: 11px 12px;
}

.mobile-choice-group:not(:has(input[value="driver"]:checked)) .expense-reimbursement-hint {
  display: none;
}

.driver-expense-form {
  gap: 16px;
  border-color: var(--expense-border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(43, 43, 43, 0.06);
  padding: 18px;
}

.driver-expense-form label {
  gap: 8px;
  color: var(--expense-graphite-soft);
  font-size: 0.92rem;
}

.driver-expense-form input,
.driver-expense-form select,
.driver-expense-form textarea {
  border-color: var(--expense-field-border);
  border-radius: 15px;
  background-color: #FAFAFA;
  color: var(--expense-graphite);
  min-height: 54px;
  padding: 14px;
}

.driver-expense-form input:focus,
.driver-expense-form select:focus,
.driver-expense-form textarea:focus {
  border-color: var(--expense-gold);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(246, 168, 0, 0.14);
  outline: 0;
}

.driver-expense-choice-group .driver-expense-option {
  border-color: var(--expense-border);
  border-radius: 16px;
  background: #FAFAFA;
  color: var(--expense-graphite);
  min-height: 78px;
  padding: 13px;
}

.driver-expense-choice-group .driver-expense-option:has(input:checked) {
  border-color: var(--expense-gold);
  background: #fff7d6;
  box-shadow: 0 0 0 3px rgba(246, 168, 0, 0.12);
}

.driver-expense-choice-group .driver-expense-option input {
  accent-color: var(--expense-gold);
}

.driver-expense-choice-group .driver-expense-option small {
  color: var(--expense-muted);
}

.driver-expense-reimbursement-hint {
  border: 1px solid rgba(246, 168, 0, 0.34);
  background: #fff7d6;
  color: var(--expense-graphite);
}

.driver-expense-actions a,
.driver-expense-actions button {
  min-height: 56px;
}

.driver-expense-cancel {
  border: 1px solid var(--expense-border);
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--expense-graphite);
}

.driver-expense-submit {
  border: 1px solid var(--expense-gold);
  border-radius: 16px;
  background: linear-gradient(145deg, #242424 0%, var(--expense-graphite) 100%);
  color: #FFFFFF;
  box-shadow:
    0 14px 26px rgba(43, 43, 43, 0.18),
    0 0 0 1px rgba(255, 216, 74, 0.22) inset;
}

.mobile-expense-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 8px;
  padding: 5px 9px;
}

.mobile-expense-badge.is-company {
  background: #e8f2f0;
  color: var(--brand-dark);
}

.mobile-request-card {
  display: grid;
  gap: 10px;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  background: #f0f9ff;
  color: #0c4a6e;
  margin-bottom: 14px;
  padding: 16px;
}

.mobile-request-card span {
  line-height: 1.4;
}

.mobile-request-card button {
  border: 0;
  border-radius: 13px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-weight: 900;
  min-height: 48px;
  padding: 12px;
}

.driver-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-top: 1px solid #E5E7EB;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -14px 30px rgba(43, 43, 43, 0.08);
  padding: 9px 10px calc(12px + env(safe-area-inset-bottom));
}

@media (max-width: 420px) {
  .mobile-two,
  .mobile-form-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .driver-login-shell {
    padding: 16px 12px;
  }

  .driver-login-card {
    gap: 12px;
    padding: 24px 18px 22px;
  }

  .driver-login-logo {
    width: 116px;
  }

  .driver-login-card h1 {
    font-size: 1.62rem;
  }
}

@media (max-height: 640px) {
  .driver-login-shell {
    align-items: start;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

.driver-bottom-nav a {
  position: relative;
  display: grid;
  gap: 2px;
  place-items: center;
  border-radius: 12px;
  color: #6B7280;
  font-size: 0.74rem;
  font-weight: 900;
  min-height: 50px;
  padding: 4px 2px;
}

.driver-bottom-nav a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.driver-bottom-nav a.is-active {
  color: #2B2B2B;
}

.driver-bottom-nav a.is-active::before {
  position: absolute;
  top: 2px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #F6A800;
  content: "";
}

.driver-bottom-nav .primary-tab {
  justify-self: center;
  width: min(100%, 68px);
  border: 1px solid #F6A800;
  border-radius: 15px;
  background: #2B2B2B;
  color: #fff;
  box-shadow: 0 6px 14px rgba(43, 43, 43, 0.16);
  min-height: 49px;
  padding: 4px 6px;
  transform: translateY(-3px);
}

.driver-bottom-nav .primary-tab svg {
  width: 19px;
  height: 19px;
}

.driver-bottom-nav .primary-tab span {
  color: currentColor;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.driver-bottom-nav .primary-tab.is-active {
  color: #FFFFFF;
}

.driver-bottom-nav .primary-tab.is-active::before {
  background: #FFD84A;
  top: 3px;
  width: 18px;
}

.driver-new-trip-body .driver-new-trip-form input,
.driver-new-trip-body .driver-new-trip-form select,
.driver-new-trip-body .driver-new-trip-form textarea {
  min-height: 54px;
}

.driver-new-trip-body .driver-new-trip-submit {
  min-height: 56px;
}

.driver-fueling-alert {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(246, 168, 0, 0.38);
  border-radius: 16px;
  background: #fff7d6;
  color: #3A3A3A;
  font-weight: 800;
}

.driver-checkbox-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--fueling-field-border);
  border-radius: 16px;
  background: #FAFAFA;
  padding: 14px;
}

.driver-checkbox-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--fueling-gold);
  margin-top: 2px;
}

.driver-checkbox-card span {
  display: grid;
  gap: 3px;
}

.driver-checkbox-card strong {
  color: var(--fueling-graphite);
  font-size: 0.95rem;
}

.driver-checkbox-card small,
.driver-field-help {
  color: var(--fueling-muted);
  line-height: 1.35;
}

.driver-arla-fields {
  display: grid;
  gap: 12px;
}

.driver-arla-fields[hidden] {
  display: none !important;
}

.driver-section-inline-title {
  display: grid;
  gap: 10px;
}

.driver-section-inline-title h2 {
  margin: 0;
}

.driver-add-extra-item,
.driver-remove-extra-item,
.driver-receipt-button {
  border: 1px solid var(--fueling-border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--fueling-graphite);
  cursor: pointer;
  font-weight: 900;
}

.driver-add-extra-item {
  min-height: 40px;
  padding: 0 12px;
  justify-self: start;
}

.driver-extra-items {
  display: grid;
  gap: 12px;
}

.driver-extra-item-row {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--fueling-border);
  border-radius: 16px;
  background: #FAFAFA;
  padding: 12px;
}

.driver-remove-extra-item {
  min-height: 42px;
  color: #3A3A3A;
}

.driver-receipt-required,
.driver-receipt-recommended,
.driver-receipt-count {
  margin: 0;
  color: var(--fueling-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.driver-receipt-recommended {
  color: var(--fueling-graphite);
}

.driver-receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.driver-receipt-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 10px;
  text-align: center;
}

.driver-receipt-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.driver-receipt-preview,
.driver-fueling-receipts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.driver-receipt-preview article,
.driver-new-receipt-preview,
.driver-fueling-receipts article,
.receipt-lightbox-trigger {
  display: grid;
  gap: 6px;
  border: 1px solid var(--fueling-border);
  border-radius: 12px;
  background: #FFFFFF;
  padding: 6px;
  overflow: hidden;
}

.receipt-lightbox-trigger {
  cursor: pointer;
  width: 100%;
}

.driver-receipt-preview article .receipt-lightbox-trigger,
.driver-fueling-receipts article .receipt-lightbox-trigger {
  border: 0;
  background: transparent;
  padding: 0;
}

.driver-receipt-preview img,
.driver-fueling-receipts img,
.receipt-lightbox-trigger img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 9px;
  object-fit: cover;
}

.driver-receipt-preview a,
.driver-receipt-preview button,
.driver-fueling-receipts a,
.driver-new-receipt-preview span {
  color: var(--fueling-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.receipt-lightbox[hidden] {
  display: none;
}

.receipt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.receipt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.78);
}

.receipt-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 12px;
}

.receipt-lightbox-close {
  justify-self: end;
  min-height: 44px;
  border: 1px solid var(--brand-primary, #F6A800);
  border-radius: 999px;
  background: #FFFFFF;
  color: #2B2B2B;
  padding: 0 18px;
  font-weight: 800;
}

.receipt-lightbox-scroll {
  max-height: calc(100vh - 96px);
  overflow: auto;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 8px;
}

.receipt-lightbox-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.receipt-lightbox-open {
  overflow: hidden;
}

.driver-fueling-summary-grid,
.driver-fueling-breakdown {
  display: grid;
  gap: 10px;
}

.driver-fueling-breakdown {
  margin: 10px 0 0;
}

.driver-fueling-breakdown div,
.driver-fueling-extra-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #E5E7EB;
  padding-top: 8px;
}

.driver-fueling-breakdown dt,
.driver-fueling-breakdown dd {
  margin: 0;
}

.driver-fueling-breakdown dt,
.driver-fueling-extra-list span {
  color: var(--trip-detail-muted);
  font-weight: 800;
}

.driver-fueling-breakdown dd,
.driver-fueling-extra-list strong {
  color: var(--trip-detail-graphite);
  font-weight: 900;
  text-align: right;
}

.driver-fueling-extra-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.driver-fueling-body .driver-fueling-form {
  display: grid;
  width: min(100%, 680px);
}

.driver-fueling-body .driver-fueling-section h2 {
  font-size: clamp(1.06rem, 4.8vw, 1.28rem);
}

.driver-fueling-body .driver-fueling-section-heading p {
  font-size: 0.94rem;
}

.driver-fueling-body .driver-fueling-form label {
  font-size: 0.96rem;
}

.driver-visible-money {
  color: var(--fueling-graphite) !important;
  caret-color: var(--fueling-graphite) !important;
  -webkit-text-fill-color: var(--fueling-graphite) !important;
  opacity: 1 !important;
}

.driver-fueling-results {
  display: grid;
  gap: 10px;
}

.driver-photo-slot {
  border: 1px solid var(--fueling-border);
  border-radius: 16px;
  background: #FAFAFA;
  padding: 14px;
}

.driver-photo-slot:first-of-type {
  border-top: 1px solid var(--fueling-border);
  padding-top: 14px;
}

.driver-photo-slot.is-has-photo {
  border-color: rgba(246, 168, 0, 0.42);
  background: #fffaf0;
}

.driver-photo-slot-copy {
  display: grid;
  gap: 4px;
}

.driver-receipt-menu-wrap {
  position: relative;
  display: grid;
}

.driver-receipt-menu-toggle {
  min-height: 52px;
  border-color: rgba(246, 168, 0, 0.7);
  background: #2B2B2B;
  color: #FFFFFF;
}

.driver-receipt-menu[hidden] {
  display: none !important;
}

.driver-receipt-menu {
  display: grid;
  gap: 8px;
  border: 1px solid var(--fueling-border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 16px 34px rgba(43, 43, 43, 0.14);
  margin-top: 8px;
  padding: 10px;
}

.driver-receipt-menu label,
.driver-receipt-menu button {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--fueling-border);
  border-radius: 13px;
  background: #FAFAFA;
  color: var(--fueling-graphite);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}

.driver-receipt-menu input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.driver-receipt-preview {
  grid-template-columns: 1fr;
}

.driver-receipt-preview article,
.driver-new-receipt-preview {
  grid-template-columns: 72px 1fr auto;
  align-items: center;
}

.driver-receipt-preview article .receipt-lightbox-trigger,
.driver-new-receipt-preview .receipt-lightbox-trigger {
  grid-row: span 3;
}

.driver-receipt-preview img,
.driver-new-receipt-preview img {
  aspect-ratio: 1;
}

.driver-receipt-preview strong,
.driver-new-receipt-preview strong {
  color: var(--fueling-graphite);
  font-size: 0.88rem;
}

.driver-receipt-view-button,
.driver-receipt-preview a,
.driver-receipt-preview button,
.driver-new-receipt-preview button {
  min-height: 36px;
  border: 1px solid var(--fueling-border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--fueling-graphite);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.driver-receipt-preview a {
  display: inline-grid;
  align-items: center;
  text-decoration: none;
}

.driver-trip-save-confirmation,
.driver-report-copy-panel {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(246, 168, 0, 0.38);
  border-radius: 18px;
  background: #fff9df;
  color: #2B2B2B;
  box-shadow: 0 12px 28px rgba(43, 43, 43, 0.06);
  margin-bottom: 14px;
  padding: 14px;
}

.driver-trip-save-confirmation strong {
  font-size: 1rem;
}

.driver-trip-save-confirmation span,
.driver-report-copy-panel p {
  margin: 0;
  color: #6B7280;
  font-weight: 800;
}

.driver-trip-save-confirmation .copy-report-link,
.driver-report-copy-panel .copy-report-link {
  min-height: 48px;
  border: 1px solid #F6A800;
  border-radius: 14px;
  background: #2B2B2B;
  color: #FFFFFF;
  font-weight: 900;
}

.driver-report-fallback {
  display: grid;
  gap: 8px;
}

.driver-report-fallback[hidden] {
  display: none !important;
}

.driver-report-fallback textarea {
  min-height: 180px;
  border: 1px solid var(--fueling-border, #E5E7EB);
  border-radius: 14px;
  background: #FFFFFF;
  color: #2B2B2B;
  padding: 12px;
  font: inherit;
  line-height: 1.45;
}

.driver-report-fallback button {
  min-height: 44px;
  border: 1px solid var(--fueling-border, #E5E7EB);
  border-radius: 12px;
  background: #FFFFFF;
  color: #2B2B2B;
  font-weight: 900;
}

@media (max-width: 380px) {
  .driver-receipt-actions {
    grid-template-columns: 1fr;
  }

  .driver-receipt-preview,
  .driver-fueling-receipts {
    grid-template-columns: 1fr;
  }
}

.driver-pwa-tools {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 78px;
  z-index: 30;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

.driver-install-button,
.driver-ios-install-hint {
  pointer-events: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 34, 31, 0.12);
}

.driver-install-button {
  min-height: 38px;
  padding: 0 16px;
  font-weight: 700;
}

.driver-ios-install-hint {
  max-width: 340px;
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.35;
}

.driver-ios-install-hint span {
  display: block;
}

.driver-ios-install-dismiss {
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 10px;
}

.driver-pwa-tools[hidden],
.driver-install-button[hidden],
.driver-ios-install-hint[hidden] {
  display: none !important;
}

.driver-login-card .driver-pwa-tools {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  justify-items: stretch;
  width: 100%;
  margin-top: -2px;
  pointer-events: auto;
}

.driver-login-card .driver-install-button {
  width: 100%;
  min-height: 38px;
  border-color: var(--login-border-soft);
  background: #FAFAFA;
  color: var(--login-graphite);
  box-shadow: none;
}

.driver-login-card .driver-ios-install-hint {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  border-color: var(--login-border-soft);
  border-radius: 14px;
  background: #FAFAFA;
  color: var(--login-muted);
  box-shadow: none;
  margin: 0;
  padding: 8px 10px;
  text-align: left;
  font-size: 0.72rem;
  line-height: 1.25;
}

.driver-login-card .driver-ios-install-dismiss {
  background: #f1f2f4;
  color: var(--login-graphite-soft);
}

@media (min-width: 620px) {
  .driver-bottom-nav {
    width: min(540px, 100%);
    margin: 0 auto;
  }
}

.staging-banner {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--brand-primary, #F6A800);
  color: var(--brand-secondary, #2B2B2B);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 1px 0 rgba(43, 43, 43, 0.12);
}

.staging-banner strong {
  font-weight: 900;
}

.staging-banner-login {
  position: fixed;
  right: 0;
  left: 0;
}

.driver-ocr-status {
  margin: 8px 0 0;
  color: var(--muted, #6B7280);
  font-size: 0.82rem;
  line-height: 1.35;
}

.driver-ocr-status[data-state="loading"] {
  color: var(--brand-secondary, #2B2B2B);
}

.driver-ocr-status[data-state="success"] {
  color: var(--brand-secondary, #2B2B2B);
  font-weight: 800;
}

.driver-ocr-status[data-state="error"] {
  color: #8a2c0a;
  font-weight: 800;
}

.ocr-suggested-field {
  border-color: var(--brand-primary, #F6A800) !important;
  box-shadow: 0 0 0 3px rgba(246, 168, 0, 0.18) !important;
}
