:root {
  --red: #c5050c;
  --red-dark: #a9040a;
  --light-blue: #eef7ff;
  --blue-border: #cfe8ff;
  --text: #172033;
  --muted: #64748b;
  --border: #e5e7eb;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --bg: #f8fafc;
  --blue: #2563eb;
  --black: #111827;
  --yellow: #facc15;
  --white: #ffffff;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html {
  width: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  overflow-x: hidden;
}
button,
input,
textarea,
select {
  font-family: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 18px;
  background: white;
  color: var(--text);
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197, 5, 12, 0.08);
}
textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.45;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #334155;
}
.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}
.login-card {
  width: 100%;
  max-width: 430px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.login-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.login-card p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.5;
}
.primary-btn,
.secondary-btn,
.support-btn,
.cancel-service-btn,
.small-reset-btn {
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  border: none;
  line-height: 1.2;
}
.primary-btn,
.support-btn,
.cancel-service-btn,
.small-reset-btn {
  background: var(--red);
  color: white;
}
.primary-btn:hover,
.support-btn:hover,
.cancel-service-btn:hover,
.small-reset-btn:hover {
  background: var(--red-dark);
}
.secondary-btn {
  background: white;
  color: var(--red);
  border: 1px solid var(--red);
}
.text-btn,
.back-btn {
  background: none;
  border: none;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-top: 16px;
}
.back-btn {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 17px;
}
.reset-confirmation,
.saved-note {
  display: none;
  background: var(--green-soft);
  color: #166534;
  border-radius: 12px;
  padding: 14px;
  font-weight: 800;
  margin-top: 14px;
  line-height: 1.45;
}
.app {
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 28px 18px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
}
.brand-wrap {
  margin-bottom: 34px;
}
.welcome {
  font-size: 15px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}
.brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.03em;
}
.nav-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  margin-bottom: 8px;
  min-height: 52px;
}
a.nav-btn {
  display: block;
  text-decoration: none;
  box-sizing: border-box;
}
.nav-btn-form {
  margin: 0;
  padding: 0;
  width: 100%;
}
button.nav-btn {
  width: 100%;
  font-family: inherit;
}
.nav-btn.active {
  background: var(--light-blue);
  color: var(--red);
}
.main {
  margin-left: 260px;
  padding: 34px;
  max-width: 1440px;
}
.card,
.receipt-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.help-box-main {
  background: var(--light-blue);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
}



.card h2,
.help-box-main h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.card h3,
.faq-card h3 {
  line-height: 1.2;
}
.card p,
.faq-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}
.date-toggle-wrap {
  max-width: 820px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.date-toggle-wrap select,
.date-field select {
  margin-bottom: 0;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 14px) 23px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.cancel-service-btn {
  width: 100%;
  margin-top: 18px;
}
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  width: 100%;
  max-width: 520px;
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}
.modal-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}
.modal-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dispatch-message {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  color: #7c2d12;
  line-height: 1.5;
  font-weight: 800;
}
.scheduled-preview-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.scheduled-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.scheduled-preview-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.scheduled-preview-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.storm-cancelled-card {
  border-color: #fecaca;
  background: #fff1f2;
}
.storm-cancelled-card p {
  margin: 0;
  color: #7f1d1d;
  line-height: 1.55;
}
.photo-img {
  height: 125px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.status-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.status-row:last-child {
  border-bottom: none;
}
.check,
.circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.check {
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.circle {
  border: 2px solid var(--red);
}
.small-muted {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.35;
}
#map {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #e2e8f0;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  cursor: default;
}
#map .leaflet-container,
#map .leaflet-pane,
#map .leaflet-control-container {
  pointer-events: none !important;
  touch-action: none !important;
  user-select: none !important;
  cursor: default !important;
}
.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 2px 0 16px;
  padding: 14px;
  background: var(--light-blue);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
}
.key-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: #334155;
}
.key-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 3px solid white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
  position: relative;
  flex-shrink: 0;
}
.key-pin.black {
  background: var(--black);
  color: var(--yellow);
}
.key-pin.blue {
  background: var(--blue);
}
.key-car,
.pin-car {
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
  line-height: 1;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.key-car::before,
.pin-car::before {
  content: "🚗";
  display: block;
  line-height: 1;
}
.key-car {
  width: 34px;
  height: 34px;
  font-size: 30px;
}
.pin-car {
  width: 58px;
  height: 58px;
  font-size: 44px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.before-toggle-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.before-photos-wrap {
  display: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.photo-section-title {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--text);
}
.photo-caption {
  padding: 12px;
  font-weight: 900;
  border-top: 1px solid var(--border);
  line-height: 1.25;
}
.photo-timestamp {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.route-note {
  background: var(--light-blue);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  color: var(--text);
  line-height: 1.45;
}
.route-note-top {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 900;
}
.route-address {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
}
.map-key-bottom {
  margin-top: 16px;
  margin-bottom: 0;
}
.pin-label {
  background: var(--red);
  color: white;
  border-radius: 999px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  opacity: 0.88;
}
.pin-current {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 58px;
  height: 58px;
  opacity: 1;
}
.pin-complete {
  background: var(--green);
}
.pin-customer {
  background: var(--black);
  color: white;
  width: 40px;
  height: 40px;
  opacity: 1;
}
.pin-customer-map {
  background: var(--black);
  color: white;
  width: 25px;
  height: 25px;
  opacity: 1;
}
.pin-star-center {
  color: var(--yellow);
  font-size: 21px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.receipt-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.receipt-card {
  padding: 18px;
  margin-bottom: 0;
}
.receipt-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.receipt-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  white-space: nowrap;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--muted);
}
.receipt-row strong {
  color: var(--text);
  text-align: right;
}
.billing-summary-card {
  background: var(--light-blue);
  border-color: var(--blue-border);
}
.modern-receipt {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.char-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: -8px;
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.past-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.past-photo-grid .sample-img {
  height: 170px;
  font-size: 18px;
}
.past-photo-grid .photo-caption {
  padding: 14px 16px;
  font-size: 16px;
}
.service-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}
.service-pill {
  background: var(--light-blue);
  border: 1px solid var(--blue-border);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
  color: #334155;
  font-size: 14px;
}
.photo-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: white;
  min-width: 0;
}
.photo-card img.service-area-photo {
  width: 100%;
  height: 125px;
  object-fit: cover;
  display: block;
}
.sample-img {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #334155;
  text-align: center;
  padding: 12px;
  line-height: 1.25;
}
.img-driveway {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 45%, #f8fafc 46%, #f8fafc 100%);
}
.img-sidewalk {
  background: linear-gradient(
    90deg,
    #e2e8f0 0 25%,
    #f8fafc 25% 35%,
    #cbd5e1 35% 65%,
    #f8fafc 65% 75%,
    #e2e8f0 75%
  );
}
.img-walkway {
  background:
    radial-gradient(circle at center, #f8fafc 0 12%, transparent 13%),
    linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 45%, #f8fafc 46%);
}
.img-steps {
  background: repeating-linear-gradient(
    0deg,
    #cbd5e1 0 18px,
    #e2e8f0 18px 36px
  );
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.faq-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
}
.faq-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
iframe {
  width: 100%;
  height: calc(100vh - 68px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
}
.info-list p {
  margin-bottom: 10px;
}
.readonly-box {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 17px;
  margin-bottom: 18px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}
.account-inline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.account-inline-row input {
  margin-bottom: 0;
}
.login-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.password-display-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.password-display-row .readonly-box {
  margin-bottom: 0;
  flex: 1;
}
@media (max-width: 1100px) {
  .main {
    padding: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  #map {
    height: 340px;
  }
  .photo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 950px) {
  .main {
    margin-left: 0;
    padding: 18px 14px calc(26px + var(--safe-bottom));
  }
  .date-toggle-wrap,
  .faq-grid,
  .account-inline-row,
  .login-settings-row {
    grid-template-columns: 1fr;
  }
  .receipt-header,
  .receipt-row {
    flex-direction: column;
    gap: 6px;
  }
  .receipt-row strong {
    text-align: left;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  .login-screen {
    align-items: stretch;
    padding: 14px;
  }
  .login-card {
    max-width: none;
    margin: auto 0;
    padding: 24px 18px;
    border-radius: 18px;
  }
  .login-card h1 {
    font-size: 26px;
  }
  .login-card p {
    font-size: 15px;
    margin-bottom: 22px;
  }
  input,
  textarea,
  select {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  .main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .card,
  .help-box-main,
  .receipt-card {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
  }
  .card h2,
  .help-box-main h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .card p,
  .help-box-main p,
  .faq-card p {
    font-size: 15px;
    line-height: 1.45;
  }
  .date-toggle-wrap {
    gap: 12px;
    margin-bottom: 14px;
  }
  .grid {
    gap: 14px;
  }
  .status-row {
    gap: 12px;
    padding: 13px 0;
  }
  .status-row strong {
    font-size: 15px;
  }
  .check,
  .circle {
    width: 26px;
    height: 26px;
  }
  .small-muted {
    font-size: 13px;
  }
  .dispatch-message {
    padding: 15px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 14px;
  }
  .scheduled-preview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #map {
    height: 300px;
    border-radius: 14px;
  }
  .map-key {
    gap: 10px;
    padding: 12px;
  }
  .key-item {
    font-size: 13px;
  }
  .route-note {
    padding: 12px;
    font-size: 14px;
  }
  .photo-row,
  .past-photo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sample-img,
  .past-photo-grid .sample-img {
    height: 118px;
    font-size: 14px;
  }
  .photo-caption,
  .past-photo-grid .photo-caption {
    padding: 11px;
    font-size: 14px;
  }
  .photo-timestamp,
  .past-photo-grid .photo-timestamp {
    font-size: 12px;
  }
  .service-labels {
    gap: 8px;
  }
  .service-pill {
    font-size: 12px;
    padding: 8px 10px;
  }
  .char-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: -4px;
  }
  .char-row .primary-btn {
    width: 100%;
  }
  .receipt-amount {
    font-size: 22px;
  }
  .billing-summary-card {
    padding: 18px;
  }
  .faq-grid {
    gap: 12px;
  }
  .faq-card {
    padding: 16px;
    border-radius: 14px;
  }
  .faq-card h3 {
    font-size: 17px;
  }
  .password-display-row {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .readonly-box {
    font-size: 15px;
    min-height: 50px;
    padding: 13px 14px;
  }
  .primary-btn,
  .secondary-btn,
  .support-btn,
  .cancel-service-btn,
  .small-reset-btn {
    min-height: 50px;
    font-size: 15px;
    border-radius: 12px;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }
  .modal-card {
    max-width: none;
    border-radius: 20px;
    padding: 22px 18px calc(22px + var(--safe-bottom));
  }
  .modal-card h2 {
    font-size: 22px;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .modal-actions .secondary-btn,
  .modal-actions .primary-btn {
    width: 100%;
  }
  iframe {
    height: calc(100vh - 145px);
    border-radius: 14px;
  }
}
@media (max-width: 430px) {
  .sidebar {
    padding: 12px 12px 10px;
  }
  .brand-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
  }
  .brand {
    font-size: 19px;
  }
  .welcome {
    font-size: 12px;
  }
  .main {
    padding: 12px 10px calc(22px + var(--safe-bottom));
  }
  .card,
  .help-box-main,
  .receipt-card {
    padding: 16px;
  }
  .photo-row,
  .past-photo-grid {
    grid-template-columns: 1fr;
  }
  .sample-img,
  .past-photo-grid .sample-img {
    height: 142px;
  }
  #map {
    height: 280px;
  }
  .password-display-row {
    grid-template-columns: 1fr;
  }
  .small-reset-btn {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .sidebar .nav-btn {
    font-size: 13px;
    padding: 10px 12px;
  }
  .card h2,
  .help-box-main h2 {
    font-size: 19px;
  }
  .login-card h1 {
    font-size: 24px;
  }
}

/* Auth pages and dispatch layout helpers */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
}
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.app-topbar,
.drawer-overlay,
.drawer-close {
  display: none;
}
#progress .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
#serviceStatusCard {
  order: 1;
}
#routeMapCard {
  order: 2;
}

/* Mobile login + hamburger drawer */
/* PRISTINE BOTTOM HAMBURGER NAV + SERVICE DETAILS */
.drawer-service-details {
  display: none;
}
@media (max-width: 950px) {
  :root {
    --safe-top: env(safe-area-inset-top, 0px);
  }
  .login-screen {
    justify-content: center !important;
    padding: 20px 14px 18px !important;
    overflow-y: auto !important;
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #f6fbff 62%,
      #eef7ff 100%
    ) !important;
  }
  .login-card {
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 20px 18px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1) !important;
  }
  .login-card h1 {
    font-size: 24px !important;
    line-height: 1.08 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.04em !important;
    text-align: left !important;
  }
  .login-card p {
    font-size: 14px !important;
    line-height: 1.38 !important;
    margin-bottom: 16px !important;
    text-align: left !important;
  }
  .login-card label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }
  .login-card input {
    min-height: 44px !important;
    height: 44px !important;
    margin-bottom: 12px !important;
    padding: 10px 12px !important;
    border-radius: 11px !important;
    font-size: 15px !important;
  }
  .login-card .primary-btn {
    min-height: 46px !important;
    height: 46px !important;
    padding: 12px 14px !important;
    border-radius: 11px !important;
    font-size: 15px !important;
  }
  .login-card .text-btn {
    margin-top: 12px !important;
    font-size: 14px !important;
  }
  body.drawer-open {
    overflow: hidden !important;
  }
  #progress .grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  #routeMapCard {
    order: -1 !important;
  }
  #serviceStatusCard {
    order: 2 !important;
  }
  .date-toggle-wrap {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
  }
  .date-field,
  .date-field select,
  .date-toggle-wrap select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .date-field select {
    height: 46px;
    min-height: 46px;
    font-size: 14px;
    margin-bottom: 0;
  }
  .map-key {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .key-item {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }
  .card,
  .help-box-main,
  .receipt-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .app {
    padding-top: calc(64px + var(--safe-top)) !important;
    padding-bottom: 16px !important;
  }
  .app-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: calc(64px + var(--safe-top)) !important;
    min-height: calc(64px + var(--safe-top)) !important;
    width: 100% !important;
    z-index: 9300 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: calc(9px + var(--safe-top)) 12px 9px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
    border-radius: 0 !important;
  }
  .hamburger-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: var(--red) !important;
    font-size: 23px !important;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07) !important;
  }
  .topbar-welcome {
    font-size: 11px !important;
    color: var(--muted) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }
  .topbar-brand {
    font-size: 18px !important;
    color: var(--red) !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
  }
  .drawer-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9200 !important;
    background: rgba(15, 23, 42, 0.34) !important;
    backdrop-filter: blur(2px) !important;
  }
  body.drawer-open .drawer-overlay {
    display: block !important;
  }
  .sidebar.app-drawer {
    position: fixed !important;
    top: calc(70px + var(--safe-top)) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100dvh - 84px - var(--safe-top)) !important;
    z-index: 9400 !important;
    transform: translateY(-10px) scale(0.985) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.98) !important;
    border-radius: 22px !important;
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.22) !important;
    overflow-y: auto !important;
  }
  body.drawer-open .sidebar.app-drawer {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .sidebar.app-drawer::before {
    display: none !important;
    content: none !important;
  }
  .sidebar.app-drawer .brand-wrap {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 2px 2px 10px !important;
    border-bottom: 1px solid #eef2f7 !important;
  }
  .sidebar.app-drawer .welcome {
    margin: 0 0 3px !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    text-align: left !important;
  }
  .sidebar.app-drawer .brand {
    color: var(--red) !important;
    font-size: 21px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    text-align: left !important;
  }
  .drawer-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: grid !important;
    place-items: center !important;
    justify-self: end !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #172033 !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
  .sidebar.app-drawer .nav-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border-radius: 18px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #172033 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -0.02em !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045) !important;
  }
  .sidebar.app-drawer .nav-btn:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
  }
  .sidebar.app-drawer .nav-btn:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }
  .sidebar.app-drawer .nav-btn:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .sidebar.app-drawer .nav-btn:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
  }
  .sidebar.app-drawer .nav-btn-form {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0 !important;
    width: 100% !important;
  }
  .sidebar.app-drawer .nav-btn-logout {
    width: 100% !important;
  }
  .sidebar.app-drawer .nav-btn.active {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
    color: var(--red) !important;
    box-shadow: 0 10px 22px rgba(197, 5, 12, 0.12) !important;
  }
  .main {
    margin-left: 0 !important;
    padding: 12px 10px 18px !important;
  }
  .grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  #map {
    height: 320px !important;
    border-radius: 16px !important;
  }
 
}
@media (max-width: 430px) {
  .login-screen {
    padding-top: 14px !important;
  }
  .login-card {
    max-width: 340px !important;
    padding: 18px 16px !important;
  }
  .login-card h1 {
    font-size: 23px !important;
  }
  .login-card p {
    font-size: 13.5px !important;
    margin-bottom: 14px !important;
  }
  .sidebar.app-drawer {
    top: calc(66px + var(--safe-top)) !important;
    left: 8px !important;
    right: 8px !important;
    gap: 8px !important;
    padding: 10px !important;
    max-height: calc(100dvh - 76px - var(--safe-top)) !important;
  }
  .sidebar.app-drawer .nav-btn {
    height: 72px !important;
    min-height: 72px !important;
    font-size: 15px !important;
    border-radius: 16px !important;
  }
  #map {
    height: 300px !important;
  }
}
@media (max-height: 680px) and (max-width: 950px) {
  .sidebar.app-drawer .nav-btn {
    height: 62px !important;
    min-height: 62px !important;
  }
}

.dispatch-page-toolbar {
  display: flex;

  margin-bottom: 18px;
}
.dispatch-page-toolbar .date-toggle-wrap {
  margin-bottom: 0;

  max-width: 640px;
  width: 100%;
}
.dispatch-page-toolbar .date-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}
.account-page-toolbar .account-address-wrap {
  max-width: 420px;
  grid-template-columns: 1fr;
}
@media (max-width: 760px) {
  .dispatch-page-toolbar {
    justify-content: stretch;
  }
  .dispatch-page-toolbar .date-toggle-wrap {
    max-width: none;
    grid-template-columns: 1fr;
  }
}

.billing-empty-state {
  text-align: center;
  padding: 36px 28px;
}
.billing-empty-state h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--text);
}
.billing-empty-state p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.55;
}
.billing-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.billing-load-more-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
