/* Approved customer UX tokens. Loaded only for server-selected customer chrome. */
.customer-panel {
  --color-bg: #f6f6ef;
  --color-surface: #fffdfa;
  --color-text: #243c32;
  --color-muted: #5d6c61;
  --color-primary: #3d715c;
  --color-primary-hover: #244b3e;
  --color-primary-contrast: #fffdfa;
  --color-border: #e5e8df;
  --color-focus: #917a3c;
  --customer-cream: #fbf7ef;
  --customer-mint: #eaf2e9;
  --customer-gold: #d9b85c;
  --radius: 1.375rem;
  --touch: 3rem;
  --shadow: 0 12px 40px #2b49310a;
  --font: Tahoma, "DejaVu Sans", Arial, sans-serif;
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  font-size: 0.875rem;
  line-height: 1.9;
}
.customer-panel .site-header {
  grid-row: 1 / 3;
  margin: 0;
  width: auto;
  padding: 2rem 1.375rem;
  background: var(--color-primary);
  color: var(--customer-cream);
  position: sticky;
  inset-block-start: 0;
  height: 100dvh;
  overflow-y: auto;
}
.customer-panel .site-header__inner { gap: 0.5rem; }
.customer-panel .wordmark {
  display: none;
}
.customer-brand { display: block; margin-block-end: 0.75rem; }
.customer-brand img { display: block; width: 100%; height: auto; max-width: 11rem; margin-inline: auto; }
.customer-panel .wordmark-sub { color: var(--customer-cream); text-align: center; font-family: Arial, sans-serif; letter-spacing: 0.15rem; font-size: 0.75rem; }
.customer-panel .panel-current { font-size: 0.75rem; font-weight: 400; color: #d5e3d5; text-align: center; margin-block: 0.5rem 1.25rem; }
.customer-panel .customer-header-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block: 0.5rem 1.25rem;
  margin-inline: auto;
  padding: 0.5rem 0.875rem;
  min-height: 2.5rem;
  border: 1px solid #ffffff55;
  border-radius: 0.75rem;
  color: var(--customer-cream);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #ffffff14;
}
.customer-panel .customer-header-support:hover,
.customer-panel .customer-header-support:focus-visible {
  background: #ffffff24;
  outline: 2px solid var(--customer-gold);
  outline-offset: 2px;
}
.customer-panel .site-nav ul { display: grid; gap: 0.5rem; margin: 0; }
.customer-panel .site-nav a { display: flex; gap: 0.75rem; border-radius: 0.75rem; padding: 0.75rem; color: var(--customer-cream); text-decoration: none; }
.customer-panel .site-nav a:hover { background: #ffffff18; }
.customer-panel .site-nav a[aria-current="page"] { background: var(--customer-cream); color: var(--color-primary-hover); }
.customer-icon { flex: none; }
.customer-panel .panel-switch { border-color: #ffffff38; }
.customer-panel .panel-switch p, .customer-panel .panel-switch a { color: var(--customer-cream); }
.customer-panel .site-main, .customer-panel .site-footer { width: auto; min-width: 0; margin: 0; padding: 2rem 2.375rem; }
/* Soft pet watermark — decorative only; opacity kept low for readability.
   Authenticated customer panel + public landing share the same motif. */
.customer-panel:not(.entry-public):not(.customer-access) .site-main,
.customer-panel.entry-public:has(.entry-landing) .site-main {
  position: relative;
  isolation: isolate;
}
.customer-panel:not(.entry-public):not(.customer-access) .site-main::before,
.customer-panel.entry-public:has(.entry-landing) .site-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='%233d715c'><path d='M22 58c-4 0-7-3-7-7s3-7 7-7 7 3 7 7-3 7-7 7zm14-12c-3.5 0-6.5-3-6.5-6.5S32.5 33 36 33s6.5 3 6.5 6.5S39.5 46 36 46zm34 0c-3.5 0-6.5-3-6.5-6.5S66.5 33 70 33s6.5 3 6.5 6.5S73.5 46 70 46zm14 12c-4 0-7-3-7-7s3-7 7-7 7 3 7 7-3 7-7 7zM56 48c-12 0-22 7-27 17-1.5 3-.5 6.5 2.5 8s6.5-.5 8-3.5C43 61 49 57 56 57s13 4 16.5 12.5c1.5 3 5 4 8 2.5s4-5 2.5-8C78 55 68 48 56 48z'/><path d='M98 28c-3.5 0-6.5 1.2-9 3L81 26l-3 7c-3.5 3.2-5.5 7.5-5.5 12.2 0 10.5 9.5 19.5 24 19.5s24-9 24-19.5c0-4.7-2-9-5.5-12.2L112 26l-8 5c-2.5-1.8-5.5-3-9-3z'/><path d='M28 98c2.8 0 5-2.2 5-5s-2.2-5-5-5-5 2.2-5 5 2.2 5 5 5zm-10-8c1.8 0 3.2 1.4 3.2 3.2S19.8 96.4 18 96.4 14.8 95 14.8 93.2 16.2 90 18 90zm20 0c1.8 0 3.2 1.4 3.2 3.2S39.8 96.4 38 96.4 34.8 95 34.8 93.2 36.2 90 38 90zM28 102c4 0 7.2 1.5 9.5 3.8.8.8.8 2 0 2.8s-2 .8-2.8 0C33 107 30.7 106.2 28 106.2s-5 .8-6.7 2.4c-.8.8-2 .8-2.8 0s-.8-2 0-2.8C20.8 103.5 24 102 28 102z'/></g></svg>");
  background-repeat: repeat;
  background-size: 11rem 11rem;
  background-position: center top;
}
.customer-panel:not(.entry-public):not(.customer-access) .site-main > *,
.customer-panel.entry-public:has(.entry-landing) .site-main > * {
  position: relative;
  z-index: 1;
}
.customer-panel .site-footer { padding-block: 0 1.25rem; font-size: 0.7rem; }
.customer-panel .site-main > .card { max-width: 68rem; margin-inline: auto; }
.customer-panel .card { padding: 1.625rem; }
.customer-panel .card h1 { font-size: 1.5rem; line-height: 1.7; margin-block-end: 0.75rem; }
.customer-panel .card h2 { font-size: 1.125rem; line-height: 1.8; margin-block: 1.5rem 0.75rem; }
.customer-panel .btn, .customer-panel input, .customer-panel select, .customer-panel textarea { border-radius: 0.75rem; }
.customer-panel .btn { font-size: 0.8125rem; font-weight: 600; padding: 0.75rem 1.125rem; }
.customer-panel .btn-secondary { border-color: var(--color-border); background: var(--color-surface); }
.customer-panel .btn-secondary:hover { background: var(--customer-mint); }
.customer-panel .badge-success, .customer-panel .alert-success, .customer-panel .alert-info { background: var(--customer-mint); color: var(--color-primary-hover); border-color: var(--color-border); }
.customer-panel .badge { border-radius: 0.5rem; font-size: 0.75rem; }
.customer-panel .followup { background: var(--customer-mint); }
.customer-panel .followup h2 { margin-block-start: 0; }
.customer-panel .field-hint { font-size: 0.75rem; }
.customer-panel .field-label {
  display: block;
  font-weight: 600;
  margin-block-end: 0.35rem;
}
.customer-panel .profile-login-mobile {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.customer-panel .empty-state { border: 1px dashed #bdcdbb; border-radius: 1rem; padding: 1.5rem; }
.customer-panel .stack-list > li { border: 1px solid var(--color-border); border-radius: 1rem; padding: 1rem; background: var(--color-surface); }
.customer-panel .trip-history, .customer-panel .pet-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-panel .trip-history > li { padding: 0; border: 0; background: transparent; }
.customer-panel .trip-history p { font-size: 0.75rem; color: var(--color-muted); }
.customer-panel .customer-trips__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-block-end: 0.5rem;
}
.customer-panel .customer-trips__heading { min-width: 0; flex: 1 1 12rem; }
.customer-panel .customer-trips__heading h1 { margin: 0; }
.customer-panel .customer-trips__intro {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.customer-panel .customer-trips__new { margin: 0; }
.customer-panel .customer-trips__new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  text-decoration: none;
  white-space: nowrap;
}
.customer-panel .customer-trips__list {
  display: grid;
  gap: 0.625rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.customer-panel .customer-trip-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  min-height: var(--touch);
}
.customer-panel .customer-trip-card:hover,
.customer-panel .customer-trip-card:focus-visible {
  border-color: var(--color-primary);
  outline: none;
}
.customer-panel .customer-trip-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}
.customer-panel .customer-trip-card__ref {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.customer-panel .customer-trip-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.customer-panel .customer-trip-card__context {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.customer-panel .customer-trip-card__route {
  display: grid;
  gap: 0.35rem;
}
.customer-panel .customer-trip-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  align-items: start;
}
.customer-panel .customer-trip-card__point {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.customer-panel .customer-trip-card__label {
  font-size: 0.6875rem;
  color: var(--color-muted);
}
.customer-panel .customer-trip-card__value {
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.customer-panel .customer-trip-card__route-note,
.customer-panel .customer-trip-card__kind {
  font-size: 0.75rem;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.customer-panel .customer-trip-card__kind {
  grid-column: 1 / -1;
}
.customer-panel .customer-trip-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-block-start: 0.35rem;
  border-block-start: 1px solid var(--color-border);
}
.customer-panel .customer-trip-card__fare {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.customer-panel .customer-trip-card__fare-value {
  font-size: 1rem;
  font-weight: 700;
}
.customer-panel .customer-trip-card__fare-pending {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.customer-panel .customer-trip-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}
.customer-panel .pet-card__name { display: block; font-size: 1.125rem; font-weight: 600; text-decoration: none; margin-block-end: 0.5rem; }
.customer-panel .pet-card__notes { font-size: 0.8125rem; color: var(--color-muted); }
.customer-panel .customer-welcome { background: var(--customer-mint); border-radius: 1rem; padding: 1.25rem; margin-block-end: 1.5rem; }
.customer-panel .customer-welcome p { margin-block-end: 0; }
.customer-panel .customer-welcome h1 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.customer-panel .customer-welcome h2 { margin: 0; }
.customer-panel .customer-dashboard { max-width: 68rem; }
.customer-panel .customer-account-hub { max-width: 28rem; }
.customer-panel .customer-account-hub__head { margin-block-end: 1rem; }
.customer-panel .customer-account-hub__intro {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.customer-panel .customer-account-hub__cards {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.25rem;
}
.customer-panel .customer-account-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.95rem;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
}
.customer-panel .customer-account-card:hover {
  background: var(--customer-mint);
}
.customer-panel .customer-account-card:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.customer-panel .customer-account-card__icon {
  display: inline-flex;
  color: var(--color-primary);
}
.customer-panel .customer-account-card__title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}
.customer-panel .customer-account-card__desc {
  display: block;
  margin-block-start: 0.2rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.customer-panel .customer-account-card__chevron {
  color: var(--color-muted);
}
.customer-panel .customer-account-hub__logout { margin-block-start: 0.75rem; }
.customer-panel .customer-pets { max-width: 32rem; }
.customer-panel .customer-pets__head { margin-block-end: 1rem; }
.customer-panel .customer-pets__head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
}
.customer-panel .customer-pets__intro {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.customer-panel .customer-pets__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.customer-panel .customer-pets__list > li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.customer-panel .customer-pet-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.95rem;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  text-align: start;
}
.customer-panel .customer-pet-card:hover,
.customer-panel .customer-pet-card:focus-visible {
  border-color: var(--color-primary);
  background: var(--customer-mint);
  outline: none;
}
.customer-panel .customer-pet-card--archived {
  opacity: 0.78;
}
.customer-panel .customer-pet-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--customer-mint);
  color: var(--color-primary);
  flex: none;
}
.customer-panel .customer-pet-card__body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.customer-panel .customer-pet-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}
.customer-panel .customer-pet-card__species {
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.customer-panel .customer-pet-card__hint {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
}
.customer-panel .customer-pet-card__chevron {
  color: var(--color-muted);
  display: grid;
  place-items: center;
}
.customer-panel .customer-pets__add {
  margin: 1rem 0 0;
  display: flex;
  justify-content: center;
}
.customer-panel .customer-pets__add-btn {
  min-height: 2.75rem;
  min-width: 10rem;
}
.customer-panel .customer-pets__empty { margin-block: 0.5rem 0.25rem; }
.customer-panel .customer-pets__section {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}
.customer-panel .customer-pets__subsection {
  margin: 1rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-muted);
}
.customer-panel .customer-pet-detail,
.customer-panel .customer-pet-form { max-width: 32rem; }
.customer-panel .customer-pet-form h1 {
  margin-block-end: 0.35rem;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
}
.customer-panel .customer-pet-detail__hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-block-end: 1rem;
  padding-block-end: 0.85rem;
  border-block-end: 1px solid var(--color-border);
}
.customer-panel .customer-pet-detail__hero-text h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
}
.customer-panel .customer-pet-detail__species {
  margin: 0.15rem 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}
.customer-panel .customer-pet-detail__status { margin: 0; }
.customer-panel .customer-pet-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.customer-panel .customer-pet-detail__field {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.customer-panel .customer-pet-detail__field--wide { grid-column: 1 / -1; }
.customer-panel .customer-pet-detail__label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 600;
}
.customer-panel .customer-pet-detail__value {
  font-size: 0.9875rem;
  font-weight: 600;
  line-height: 1.5;
}
.customer-panel .customer-pet-detail__actions {
  margin-block-start: 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.customer-panel .customer-pet-detail__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.customer-panel .customer-pet-detail__back {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.customer-panel .customer-pet-detail__archive { margin: 0; }
.customer-panel .customer-pet-detail__archive-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0;
  min-height: 2.75rem;
}
.customer-panel .customer-pet-detail__archive-btn:focus-visible {
  outline: 2px solid #b42318;
  outline-offset: 2px;
}
.customer-panel .customer-org-detail { max-width: 36rem; }
.customer-panel .customer-org-detail__section {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
}
.customer-panel .customer-account-info { max-width: 32rem; }
.customer-panel .customer-account-info h1 {
  margin-block-end: 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
}
.customer-panel .customer-account-info__identity {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.customer-panel .customer-account-info .profile-login-mobile {
  margin: 0.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.customer-panel .customer-account-info .form-actions {
  margin-block-start: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.customer-panel .customer-account-type {
  margin-block: 1.5rem 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.95rem;
  padding: 1rem;
}
.customer-panel .customer-account-type legend {
  font-size: 1rem;
  font-weight: 700;
  padding-inline: 0.25rem;
}
.customer-panel .customer-account-type__options {
  display: grid;
  gap: 0.75rem;
}
.customer-panel .customer-account-type__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  text-align: start;
}
.customer-panel .customer-account-type__option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--customer-mint);
}
.customer-panel .customer-account-type__option strong {
  display: block;
  font-size: 0.95rem;
}
.customer-panel .customer-account-type__option .field-hint {
  margin-block-start: 0.25rem;
}
.customer-panel .customer-account-type__org {
  margin-block-start: 1rem;
  display: grid;
  gap: 0.85rem;
}
.customer-panel .customer-account-type__memberships {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.customer-panel .customer-account-type__submit-org {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}
@media (max-width: 390px) {
  .customer-panel .customer-account-info h1 { font-size: 1.2rem; }
  .customer-panel .customer-account-type { padding: 0.85rem; }
  .customer-panel .customer-account-type__option { padding: 0.7rem; }
  .customer-panel .customer-pets__head h1 { font-size: 1.2rem; }
  .customer-panel .customer-pet-card {
    padding: 0.65rem 0.75rem;
    gap: 0.6rem;
  }
  .customer-panel .customer-pet-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .customer-panel .customer-pet-card__name { font-size: 1rem; }
  .customer-panel .customer-pet-detail__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .customer-panel .customer-pet-detail__hero { gap: 0.6rem; }
}
.customer-panel .dashboard-section { margin-block: 1.75rem; }
.customer-panel .dashboard-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-block-end: 0.75rem;
}
.customer-panel .dashboard-section__head h2 { margin: 0; }
.customer-panel .dashboard-section__action {
  flex: none;
  padding: 0.375rem 0.75rem;
  min-height: 2.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-surface);
  color: var(--color-primary);
  white-space: nowrap;
}
.customer-panel .dashboard-section__action:hover {
  background: var(--customer-mint);
}
.customer-panel .dashboard-section__action:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.customer-panel .dashboard-trip-list__title { font-size: 1rem; font-weight: 600; text-decoration: none; }
.customer-panel .dashboard-trip-list p { font-size: 0.75rem; color: var(--color-muted); margin-block: 0.35rem 0; }
.customer-panel .dashboard-pet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.customer-panel .dashboard-inline-actions { margin-block-start: 0.75rem; }
.customer-panel .dashboard-account { border-top: 1px solid var(--color-border); padding-block-start: 1.25rem; }
.customer-panel .account-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-block: 1.5rem; }
.customer-panel .account-actions a { border: 1px solid var(--color-border); border-radius: 0.875rem; padding: 1rem; text-decoration: none; display: flex; align-items: center; gap: 0.75rem; }
.customer-panel .account-actions a:hover { background: var(--customer-mint); }
.customer-panel .dashboard-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) {
  .customer-panel .customer-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0 1.5rem;
    align-items: start;
  }
  .customer-panel .customer-dashboard > .customer-welcome,
  .customer-panel .customer-dashboard > .account-first-trip,
  .customer-panel .customer-dashboard > .dashboard-account {
    grid-column: 1 / -1;
  }
  .customer-panel .dashboard-pet-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Keep location-picker IDs and its server quote/detail/confirm contracts intact. */
.customer-panel #location-picker.customer-booking { display: grid; grid-template-columns: minmax(19rem, 26rem) minmax(0, 1fr); gap: 1.375rem; max-width: none; padding: 0; background: transparent; border: 0; box-shadow: none; align-items: start; }
.customer-panel .booking-stage-chrome {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 1rem 1.625rem 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.customer-panel .booking-controls { min-width: 0; padding: 1.625rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.customer-panel .booking-map { min-width: 0; background: var(--customer-mint); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.75rem; position: sticky; inset-block-start: 2rem; }
.customer-panel .booking-map .map-canvas { height: min(70dvh, 44rem); min-height: 30rem; }
.customer-panel .booking-map .map-attribution { font-size: 0.625rem; }
.customer-panel .booking-map .map-caption { font-size: 0.875rem; margin: 0.5rem; }
.customer-panel .booking-controls .trip-total { background: var(--customer-cream); border-radius: 0.875rem; padding: 1rem; margin: 0; }
.customer-panel .booking-controls #overview-total { font-size: 1.5rem; color: var(--color-primary-hover); }
.customer-panel .booking-controls .trip-overview > .btn { width: 100%; }
.customer-panel .booking-controls .place-results button { border: 1px solid var(--color-border); border-radius: 0.75rem; margin-block-end: 0.5rem; padding: 0.75rem; background: var(--color-surface); color: var(--color-primary); }
.customer-panel .booking-controls .place-results button:hover { background: var(--customer-mint); }
.customer-panel .booking-controls .place-summary { background: var(--customer-cream); border-radius: 0.875rem; padding: 0.875rem; }
.customer-panel .booking-controls .map-target .btn { padding-inline: 0.5rem; }
@media (max-width: 72rem) {
  .customer-panel { grid-template-columns: 11rem minmax(0, 1fr); }
  .customer-panel .site-header { padding-inline: 0.875rem; }
  .customer-panel .site-main, .customer-panel .site-footer { padding-inline: 1.25rem; }
  .customer-panel #location-picker.customer-booking { grid-template-columns: minmax(17rem, 1fr) minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 60rem) {
  .customer-panel { grid-template-columns: 5.375rem minmax(0, 1fr); }
  .customer-panel .site-header { padding-inline: 0.625rem; }
  .customer-panel .site-nav a { justify-content: center; }
  .customer-panel .site-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .customer-panel .panel-switch a { padding-inline: 0; font-size: 0.75rem; }
  .customer-panel .wordmark-sub { font-size: 0.625rem; letter-spacing: 0; }
  .customer-panel .account-actions,
  .customer-panel .dashboard-account-actions { grid-template-columns: 1fr; }
}
@media (max-width: 47.5rem) {
  .customer-panel { display: block; padding-block-end: calc(5.25rem + env(safe-area-inset-bottom)); }
  .customer-panel .site-header { position: static; height: auto; padding: 0.875rem 1rem 0; overflow: visible; background: var(--color-bg); color: var(--color-text); }
  .customer-panel .site-header__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem; }
  .customer-brand { width: 4.75rem; margin: 0; }
  .customer-brand img { border-radius: 0.625rem; }
  .customer-panel .wordmark-sub { color: var(--color-primary); font-size: 0.75rem; letter-spacing: 0.1rem; }
  .customer-panel .panel-current { color: var(--color-muted); margin: 0; margin-inline-start: auto; }
  .customer-panel .customer-header-support {
    margin: 0;
    margin-inline-start: auto;
    min-height: var(--touch);
    padding: 0.5rem 0.75rem;
    border-color: var(--color-border);
    color: var(--color-primary);
    background: var(--color-surface);
  }
  .customer-panel .customer-header-support:hover,
  .customer-panel .customer-header-support:focus-visible {
    background: var(--customer-mint);
  }
  /* Mobile bottom nav reuses the desktop sidebar green (--color-primary). */
  .customer-panel .site-nav {
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    background: var(--color-primary);
    border-top: 1px solid #ffffff28;
    z-index: 20;
    padding: 0.5rem 0.375rem calc(0.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px #1a33280f;
  }
  .customer-panel .site-nav ul { display: flex; gap: 0.375rem; overflow-x: auto; }
  .customer-panel .site-nav li { flex: 1 1 0; min-width: 0; }
  .customer-panel .site-nav a {
    color: var(--customer-cream);
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.375rem 0.2rem;
    min-height: 3.5rem;
    text-align: center;
    border: 1px solid #ffffff33;
    border-radius: 0.875rem;
    background: #ffffff14;
  }
  .customer-panel .site-nav a:hover {
    background: #ffffff24;
    color: var(--customer-cream);
  }
  .customer-panel .site-nav a:focus-visible {
    outline: 2px solid var(--customer-gold);
    outline-offset: 2px;
    color: var(--customer-cream);
  }
  .customer-panel .site-nav span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    font-size: 0.5625rem;
    line-height: 1.2;
    max-width: 100%;
  }
  .customer-panel .site-nav a[aria-current="page"] {
    color: var(--color-primary-hover);
    background: var(--customer-cream);
    border-color: var(--customer-cream);
    box-shadow: none;
  }
  .customer-panel .site-nav a[aria-current="page"]:focus-visible {
    outline-color: var(--customer-gold);
    color: var(--color-primary-hover);
  }
  .customer-panel .site-nav .customer-icon { color: inherit; }
  .customer-panel .panel-switch { margin: 0; padding: 0; border: 0; width: 100%; }
  .customer-panel .panel-switch p, .customer-panel .panel-switch a { color: var(--color-primary); font-size: 0.75rem; }
  .customer-panel .site-main { padding: 1rem 1rem; }
  .customer-panel .site-footer { padding-inline: 1rem; }
  .customer-panel .card, .customer-panel .booking-controls, .customer-panel .booking-stage-chrome { padding: 1.125rem; border-radius: 1.125rem; }
  .customer-panel #location-picker.customer-booking { display: flex; flex-direction: column; gap: 0.75rem; }
  .customer-panel .booking-stage-chrome {
    width: 100%;
    order: 0;
    padding-block-end: 0.75rem;
    position: sticky;
    inset-block-start: 0;
    z-index: 12;
  }
  .customer-panel .booking-controls { width: 100%; order: 2; padding-block-end: 5.5rem; }
  .customer-panel .booking-map { width: 100%; position: static; order: 3; }
  .customer-panel .booking-map .map-canvas { height: 16.25rem; min-height: 0; }
  /* Map-first: chrome → question → map → search/actions (not map above steps). */
  .customer-panel .booking-map-first .booking-stage-chrome { order: 0; }
  .customer-panel .booking-map-first .booking-map { order: 1; }
  .customer-panel .booking-map-first .booking-controls { order: 2; padding-block-start: 0.75rem; }
  .customer-panel .booking-map-first .booking-map .map-canvas {
    height: min(42dvh, 20rem);
    min-height: 13rem;
    border-radius: 1rem;
  }
  .customer-panel .booking-map-first[data-active-location="origin"] .place-summary > p:has(#destination-summary) { display: none; }
  .customer-panel .booking-map-first[data-active-location="destination"] .place-summary > p:has(#origin-summary) { display: none; }
  .customer-panel .booking-steps {
    gap: 0.05rem;
    margin-block: 0.15rem 0.25rem;
  }
  .customer-panel .booking-steps li {
    font-size: 0.5625rem;
    padding: 0.1rem 0.02rem;
    gap: 0.12rem;
    line-height: 1.15;
  }
  .customer-panel .booking-step__marker {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
  }
  .customer-panel .booking-step__label {
    max-width: 3.75rem;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .customer-panel .booking-steps li[aria-current="step"] .booking-step__marker {
    box-shadow: 0 0 0 2px #3d715c33;
  }
  .customer-panel .booking-brand { margin-block-end: 0.25rem; }
  .customer-panel .booking-supporting {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-block-end: 0.15rem;
  }
  .customer-panel .booking-accompany-followup {
    margin-block: 0.35rem 0;
  }
  .customer-panel .choice-compact {
    min-height: 2.5rem;
    padding: 0.4rem 0.55rem;
  }
  .customer-panel .booking-schedule-fieldset,
  .customer-panel .booking-travel-options,
  .customer-panel .booking-accompany {
    margin-block-end: 0.625rem;
  }
  .customer-panel .booking-map-first[data-active-location="second"] .place-summary { display: none; }
  .customer-panel .booking-map-first[data-active-location="second"] #place-confirm-actions {
    display: flex;
  }
  .customer-panel .booking-location-question { font-size: 0.9375rem; margin-block-end: 0.35rem; }
  .customer-panel .booking-pet-cards { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .customer-panel .booking-flow-enabled #booking-flow-actions {
    position: sticky;
    inset-block-end: calc(4.75rem + env(safe-area-inset-bottom));
    z-index: 15;
    margin-block: 1rem 0;
    padding: 0.625rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    box-shadow: 0 -6px 20px #1a332814;
  }
  .customer-panel .booking-flow-enabled #trip-book {
    position: sticky;
    inset-block-end: calc(4.75rem + env(safe-area-inset-bottom));
    z-index: 15;
    margin-block-end: 0.25rem;
    box-shadow: 0 -4px 16px #1a332810;
  }
  .customer-panel .booking-flow-enabled .trip-overview {
    padding-block-end: calc(1.25rem + env(safe-area-inset-bottom));
  }
  .customer-panel .booking-fare-total {
    font-size: clamp(1rem, 4.6vw, 1.1875rem);
    padding: 0.625rem 0.75rem;
  }
  .customer-panel .booking-fare-meta {
    padding: 0.45rem 0.65rem;
    font-size: 0.78125rem;
  }
  .customer-panel .booking-notes-input {
    min-height: 2.5rem;
  }
  .customer-panel .trip-history,
  .customer-panel .dashboard-pet-list { grid-template-columns: 1fr; }
  .customer-panel .customer-dashboard { display: block; }
  .customer-panel .detail-list { grid-template-columns: 1fr; }
  .customer-panel .detail-list dd { margin-block-end: 0.75rem; }
  .customer-panel :where(a, button, input, select, textarea, [tabindex]) { scroll-margin-block-end: 7rem; }
}
@media (max-width: 30rem) {
  .customer-panel .site-main { padding: 0.75rem 0.75rem 1rem; }
  .customer-panel .site-main > .card.customer-dashboard,
  .customer-panel .customer-dashboard { padding: 0.875rem; }
  .customer-panel .customer-welcome {
    padding: 0.75rem 0.875rem;
    margin-block-end: 0.75rem;
    border-radius: 0.875rem;
  }
  .customer-panel .customer-welcome h1 {
    font-size: 1.125rem;
    line-height: 1.55;
    margin-block-end: 0.25rem;
  }
  .customer-panel .customer-welcome p { font-size: 0.8125rem; line-height: 1.6; }
  .customer-panel .account-first-trip { margin-block-end: 0.75rem; }
  .customer-panel .account-first-trip .btn { min-height: var(--touch); }
  .customer-panel .dashboard-section { margin-block: 0.875rem; }
  .customer-panel .dashboard-section__head {
    gap: 0.375rem 0.5rem;
    margin-block-end: 0.5rem;
  }
  .customer-panel .dashboard-section__head h2 {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .customer-panel .dashboard-section__action {
    padding: 0.3rem 0.55rem;
    min-height: 2rem;
    font-size: 0.6875rem;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .customer-panel .stack-list > li {
    padding: 0.75rem;
    border-radius: 0.875rem;
  }
  .customer-panel .dashboard-trip-list__title { font-size: 0.9375rem; }
  .customer-panel .pet-card__name {
    font-size: 1rem;
    margin-block-end: 0.25rem;
  }
  .customer-panel .empty-state {
    padding: 0.875rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
  }
  .customer-panel .dashboard-inline-actions { margin-block-start: 0.5rem; }
  .customer-panel .dashboard-account { padding-block-start: 0.875rem; margin-block-start: 0.5rem; }
  .customer-panel .card h2 { margin-block: 0.75rem 0.5rem; font-size: 0.9375rem; }
}
@media (max-width: 23rem) {
  .customer-panel .site-main { padding-inline: 0.75rem; }
  .customer-panel .card, .customer-panel .booking-controls { padding: 1.125rem; }
  .customer-panel .pet-cards { grid-template-columns: 1fr; }
}
@media print {
  .customer-panel { display: block; padding: 0; }
  .customer-panel .site-header, .customer-panel .site-nav, .customer-panel .skip-link { display: none; }
  .customer-panel .site-main { padding: 0; }
  .customer-panel .booking-map { position: static; }
}

/* Staged booking stays usable without introducing frontend business authority. */
.customer-panel .booking-flow-enabled [hidden] { display: none !important; }
/* Keep markup-hidden booking stages collapsed even if JS init is delayed. */
.customer-panel #location-picker [hidden] { display: none !important; }
.customer-panel .booking-org-registry-cards {
  margin-block-end: 0.75rem;
}
.customer-panel .org-pet-rows {
  display: grid;
  gap: 0.75rem;
  margin-block: 0.75rem;
}
.customer-panel .org-pet-rows:empty {
  display: none;
  margin: 0;
}
.customer-panel .booking-org-pet-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border, #d7d2c8);
  border-radius: 0.75rem;
  background: var(--color-surface, #fff);
}
.customer-panel .booking-org-pet-card__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}
.customer-panel .booking-org-pet-card__actions {
  display: flex;
  justify-content: flex-end;
}
.customer-panel .org-pet-actions {
  margin-block-start: 0.25rem;
}
.customer-panel .booking-brand { margin-block-end: 0.625rem; }
.customer-panel .booking-supporting {
  margin: 0;
  color: var(--color-primary-hover);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: pretty;
}
.customer-panel .booking-location-question {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.55;
}
.customer-panel .booking-section-title,
.customer-panel .booking-section-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary-hover);
}
.customer-panel .booking-section-icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: var(--customer-mint);
  color: var(--color-primary);
}
.customer-panel .booking-section-hint { margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--color-muted); line-height: 1.55; }
.customer-panel .booking-details h2 { margin: 0 0 0.75rem; font-size: 0.9375rem; }
.customer-panel .booking-details h3 { margin: 1rem 0 0.5rem; font-size: 0.875rem; }
.customer-panel .booking-notes { margin-block-start: 0.75rem; }
.customer-panel .booking-notes-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  max-height: 35vh;
  padding: 0.5rem 0.75rem;
  line-height: 1.45;
  resize: vertical;
  overflow-y: auto;
  field-sizing: content;
}
.customer-panel .booking-compact-fieldset {
  margin: 0 0 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  background: var(--color-surface);
}
.customer-panel .booking-compact-fieldset legend {
  padding-inline: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-hover);
}
.customer-panel .booking-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.customer-panel .booking-choice-row--wrap {
  grid-template-columns: 1fr;
}
.customer-panel .booking-choice-row .choice {
  margin: 0;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-bg);
}
.customer-panel .booking-time-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
.customer-panel .booking-travel-options {
  margin: 0 0 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  background: var(--color-surface);
  display: grid;
  gap: 0.625rem;
}
.customer-panel .booking-travel-options select,
.customer-panel .booking-details textarea {
  width: 100%;
}
.customer-panel .booking-fare-panel {
  margin-block-start: 0.75rem;
  display: grid;
  gap: 0.375rem;
}
.customer-panel .booking-fare-total {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  background: #f3eee3;
  color: var(--color-primary-hover);
  font-size: clamp(1.0625rem, 4.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.35rem;
  row-gap: 0.2rem;
  overflow-wrap: normal;
  word-break: normal;
}
.customer-panel .booking-fare-label {
  font-weight: 700;
}
.customer-panel .booking-fare-amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.customer-panel .booking-fare-total:empty { display: none; }
.customer-panel .booking-fare-meta {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: #f7eef1;
  color: var(--color-text);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.customer-panel .booking-fare-meta:empty { display: none; }
.customer-panel .booking-review-summary {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  background: var(--color-surface);
}
.customer-panel .booking-review-summary > p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.customer-panel .booking-review-summary > p:empty { display: none; }
.customer-panel .booking-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.customer-panel .booking-quote-actions .btn { margin: 0; flex: 1 1 auto; }
@media (min-width: 48rem) {
  .customer-panel .booking-choice-row--wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.customer-panel .booking-pet-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-block-end: 0.875rem;
}
.customer-panel .booking-pet-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  background: var(--color-surface);
  padding: 0.75rem;
  min-height: 3.5rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.customer-panel .booking-pet-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.customer-panel .booking-pet-card__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--customer-mint);
  color: var(--color-primary);
}
.customer-panel .booking-pet-card__body { display: grid; gap: 0.15rem; min-width: 0; }
.customer-panel .booking-pet-card__name { font-weight: 600; font-size: 0.9375rem; color: var(--color-text); }
.customer-panel .booking-pet-card__species { font-size: 0.75rem; color: var(--color-muted); }
.customer-panel .booking-pet-card.is-selected,
.customer-panel .booking-pet-card:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--customer-mint);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.customer-panel .booking-pet-card:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.customer-panel .booking-add-pet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch);
  text-decoration: none;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.customer-panel .booking-add-pet:hover { background: var(--customer-mint); }
.customer-panel .booking-empty-pets { margin-block: 0.75rem; }
.customer-panel .booking-empty-pets .form-actions { margin-block-start: 0.75rem; }
.customer-panel .booking-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  direction: rtl;
}
.customer-panel .booking-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-muted);
  font-size: 0.6875rem;
  padding: 0.25rem 0.1rem;
  border: 0;
  text-align: center;
  line-height: 1.3;
}
.customer-panel .booking-step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid #9bb5a6;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.customer-panel .booking-step__label {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.customer-panel .booking-steps li.is-complete {
  color: var(--color-primary);
}
.customer-panel .booking-steps li.is-complete .booking-step__marker {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.customer-panel .booking-steps li[aria-current="step"] {
  color: var(--color-primary-hover);
  font-weight: 700;
}
.customer-panel .booking-steps li[aria-current="step"] .booking-step__marker {
  border-color: var(--color-primary);
  background: var(--customer-mint);
  color: var(--color-primary-hover);
  box-shadow: 0 0 0 3px #3d715c33;
}
.customer-panel .booking-steps li:not(.is-complete):not([aria-current="step"]) .booking-step__marker {
  border-color: var(--color-primary);
  background: var(--customer-mint);
  color: var(--color-primary-hover);
}
.customer-panel .choice-compact {
  margin: 0;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-bg);
}
.customer-panel .booking-accompany {
  margin: 0 0 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  background: var(--color-surface);
  display: grid;
  gap: 0.5rem;
}
.customer-panel .booking-second-summary {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.customer-panel .schedule-time-block {
  margin-block-start: 0.625rem;
  display: grid;
  gap: 0.5rem;
}
.customer-panel .booking-review-meta-hide {
  display: none !important;
}
.customer-panel #place-confirm-actions:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.5rem;
}
.customer-panel #booking-step-heading { margin-block: 0.5rem; scroll-margin-block-start: 1rem; }
.customer-panel .booking-stage-chrome .booking-location-question[hidden] { display: none !important; }
.customer-panel .place-selection-coords {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.customer-panel .map-frame { position: relative; }
.customer-panel .fit-full-route {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.8125rem;
  box-shadow: 0 2px 8px #1a332814;
  cursor: pointer;
}
.customer-panel .fit-full-route:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.customer-panel .booking-review-map .map-center-pin { display: none; }
.customer-panel .booking-review-map .booking-map .map-canvas {
  height: min(55dvh, 36rem);
  min-height: 18rem;
  touch-action: pan-x pan-y;
}
.customer-panel .route-fit-status:not([hidden]) {
  margin-block: 0.35rem 0;
}
.customer-panel .saved-locate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.5rem 0.25rem;
}
.customer-panel .saved-address-preview {
  margin-block: 0.5rem;
}
.customer-panel .saved-address-detail {
  margin-block-start: 0.75rem;
}
.customer-panel .map-center-pin {
  display: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline-start: -0.625rem;
  margin-block-start: -1.25rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-primary);
  box-shadow: 0 2px 8px #1a332840;
  pointer-events: none;
  z-index: 2;
}
.customer-panel .booking-map-first .map-center-pin { display: block; }
.customer-panel .booking-map-first .booking-map .map-caption { font-size: 0.8125rem; }
.customer-panel #location-picker.booking-flow-single { grid-template-columns: minmax(0, 40rem); justify-content: center; }
.customer-panel #booking-flow-actions { justify-content: space-between; margin-block-start: 1.25rem; gap: 0.75rem; }
.customer-panel #booking-flow-actions .btn { flex: 1 1 auto; min-height: var(--touch); }
.customer-panel #booking-flow-message { min-height: 1.25rem; }
.customer-panel #booking-quote-actions .btn { margin-block: 0.375rem; }
.customer-panel #trip-overview > p:not(.field-hint):not(.trip-total) { overflow-wrap: anywhere; }
.customer-panel .trip-overview { gap: 0.625rem; }
.customer-panel .trip-overview > p { margin: 0; }
.customer-panel .trip-overview > p:empty { display: none; }
.customer-panel .trip-overview #trip-book {
  min-height: var(--touch);
  width: 100%;
  margin-block-start: 0.5rem;
}
.customer-panel .skip-link { inset-block-start: 1rem; transform: translateY(-200%); }
.customer-panel .skip-link:focus { transform: none; }
/* Entry/onboarding use the approved brand without an authenticated navigation shell. */
.customer-panel.customer-access { display: flex; flex-direction: column; min-height: 100dvh; padding: 0; }
.customer-access .site-header { position: static; height: auto; background: var(--color-bg); padding: 2rem 1rem 0; color: var(--color-text); }
.customer-access .site-header__inner { align-items: center; }
.customer-access .customer-brand { width: 9rem; }
.customer-access .wordmark-sub { color: var(--color-primary); }
.customer-access .site-nav,
.customer-access .panel-current,
.customer-access .panel-switch,
.customer-access .customer-header-support { display: none; }
.customer-access .site-main { width: 100%; max-width: 32rem; margin-inline: auto; padding: 1.5rem 1rem; flex: 1; }
.customer-access.entry-public .site-main { max-width: none; }
.customer-access .site-footer { text-align: center; }
.customer-access .customer-access-card { padding: 2rem; }
.customer-access .btn-primary { width: 100%; }
.customer-access .customer-eyebrow { color: var(--color-primary); font-size: 0.8125rem; margin-block: 0 0.75rem; }
.customer-access .intro-message { padding: 1.25rem; background: var(--customer-mint); border-radius: 1rem; }
.customer-access .intro-progress { color: var(--color-muted); font-size: 0.75rem; }
.customer-access .entry-helper { margin-block: 0.85rem 0; }
.customer-access .entry-otp-card { padding-block: 1.75rem; }
.customer-panel .account-first-trip {
  display: grid;
  margin-block: 0 1.25rem;
}
.customer-panel .account-first-trip .btn {
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
}
.customer-panel .history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1rem 1.25rem;
}
.customer-panel .customer-trips__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-block: 0.5rem 0.75rem;
}
.customer-panel .history-filters a {
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
}
.customer-panel .customer-trips__filters a {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  min-height: var(--touch);
  padding: 0.35rem 0.2rem;
  border-radius: 0.65rem;
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.customer-panel .customer-trips__filter-label {
  min-width: 0;
}
.customer-panel .history-filters a span,
.customer-panel .customer-trips__filter-count {
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.customer-panel .customer-trips__filter-count {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
}
.customer-panel .history-filters a[aria-current],
.customer-panel .customer-trips__filters a[aria-current] {
  background: var(--customer-mint);
  color: var(--color-primary-hover);
  border-color: transparent;
}
.customer-panel .history-filters a[aria-current] span,
.customer-panel .customer-trips__filters a[aria-current] .customer-trips__filter-count {
  color: inherit;
}
.customer-panel .history-route { overflow-wrap: anywhere; }
.customer-panel .customer-trips__empty { margin-block: 0.5rem 0; }
.customer-panel .customer-trip-summary {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  margin-block: 0.75rem;
  background: var(--customer-cream);
  display: grid;
  gap: 0.45rem;
}
.customer-panel .customer-trip-summary p { margin: 0; }
.customer-panel .customer-trip-summary__row {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.customer-panel .customer-trip-summary__label {
  font-size: 0.75rem;
  color: var(--color-muted);
}
.customer-panel .customer-trip-summary__value {
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.customer-panel .customer-trip-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}
.customer-panel .customer-trip-summary__fare {
  font-size: 1.0625rem;
  font-weight: 700;
}
.customer-panel .customer-trip-route,
.customer-panel .customer-trip-more {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  margin-block: 0.75rem;
}
.customer-panel .customer-trip-route summary,
.customer-panel .customer-trip-more summary {
  cursor: pointer;
  min-height: var(--touch);
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
}
.customer-panel .customer-trip-detail .followup.customer-status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.875rem 1rem;
  align-items: start;
  border: 1px solid #d7e4db;
  border-radius: 1.125rem;
  padding: 1.125rem 1.25rem;
  margin-block: 0.75rem 0;
  background:
    linear-gradient(180deg, #f4faf6 0%, var(--customer-mint) 100%);
  box-shadow: 0 10px 28px #2b49310a;
}
.customer-panel .customer-status-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: #ffffffd9;
  color: var(--color-primary);
  border: 1px solid #d5e3d8;
}
.customer-panel .customer-status-card--pending .customer-status-card__icon {
  color: #917a3c;
  border-color: #e8d9a8;
  background: #fff9e8;
}
.customer-panel .customer-status-card--terminal .customer-status-card__icon {
  color: var(--color-muted);
}
.customer-panel .customer-status-card__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.customer-panel .customer-status-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-primary-hover);
}
.customer-panel .customer-status-card__summary {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
  white-space: pre-line;
}
.customer-panel .customer-status-card__meta,
.customer-panel .customer-status-card__next,
.customer-panel .customer-status-card__gap,
.customer-panel .customer-status-card__problem {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-muted);
}
.customer-panel .customer-status-card__gap,
.customer-panel .customer-status-card__problem:not(:empty) {
  color: #8a4b2b;
}
.customer-panel .customer-status-card__actions {
  margin-block-start: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.customer-panel .customer-status-card__actions .btn {
  min-height: var(--touch);
}
@media (max-width: 40rem) {
  .customer-panel .customer-trip-detail .followup.customer-status-card {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 0.75rem;
  }
  .customer-panel .customer-status-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .customer-panel .customer-status-card__title {
    font-size: 1.0625rem;
  }
  .customer-panel .customer-status-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .customer-panel .customer-status-card__actions .btn {
    width: 100%;
    text-align: center;
  }
}
.customer-panel .customer-trip-detail #trip-map-canvas { min-height: 16rem; border-radius: 1rem; }
.customer-panel .customer-feedback {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1rem;
  margin-block: 0.75rem;
  background: var(--color-surface);
}
.customer-panel .customer-feedback h2 { margin: 0 0 0.35rem; font-size: 1.0625rem; }
.customer-panel .customer-feedback #customer-feedback-intro {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}
.customer-panel .customer-feedback .score-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.customer-panel .customer-feedback .score-options label {
  min-height: var(--touch);
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.customer-panel .customer-feedback .score-options label:has(input:checked) {
  background: var(--customer-mint);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}
.customer-panel .customer-feedback textarea { min-height: 4.5rem; }
.customer-panel .customer-feedback .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}
.customer-panel .customer-feedback #feedback-later {
  min-height: var(--touch);
  padding-inline: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
}
.customer-panel .customer-trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 0.75rem 0;
}
@media (max-width: 47.5rem) {
  .customer-panel .customer-trips__new { display: none; }
  .customer-panel .customer-trips__head { margin-block-end: 0.35rem; }
  .customer-panel .customer-trips__intro { font-size: 0.8125rem; }
  .customer-panel .site-main > .card.customer-trips {
    padding: 0.875rem;
  }
  .customer-panel .customer-trips__list {
    padding-block-end: 0.5rem;
  }
}
@media (max-width: 390px) {
  .customer-panel .customer-trips__filters {
    gap: 0.25rem;
  }
  .customer-panel .customer-trips__filters a {
    padding: 0.3rem 0.15rem;
    font-size: 0.625rem;
    letter-spacing: -0.01em;
  }
  .customer-panel .customer-trips__filter-count { font-size: 0.625rem; }
  .customer-panel .customer-trip-card { padding: 0.75rem 0.875rem; gap: 0.45rem; }
  .customer-panel .customer-trip-card__title { font-size: 0.9375rem; }
  .customer-panel .customer-trip-summary__grid { grid-template-columns: 1fr; }
}

.customer-panel .customer-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-block-start: 0.85rem;
}
.customer-panel .customer-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

.customer-panel .customer-support__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-block-end: 0.75rem;
}
.customer-panel .customer-support__heading h1 { margin: 0; }
.customer-panel .customer-support__intro {
  margin: 0.3rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.customer-panel .customer-support__new { margin: 0; }
.customer-panel .customer-support__new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  text-decoration: none;
  white-space: nowrap;
}
.customer-panel .customer-support__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-block: 0.25rem 0.65rem;
}
.customer-panel .customer-support__section-title {
  margin: 0;
  font-size: 1rem;
}
.customer-panel .customer-support__open-count {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.customer-panel .customer-support__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.customer-panel .customer-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--touch);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
}
.customer-panel .customer-support-card:hover,
.customer-panel .customer-support-card:focus-visible {
  border-color: var(--color-primary);
  outline: none;
}
.customer-panel .customer-support-card__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.customer-panel .customer-support-card__title {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.customer-panel .customer-support-card__meta {
  color: var(--color-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.customer-panel .customer-support-card__aside {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  color: var(--color-primary);
}
.customer-panel .customer-support__trip-context,
.customer-panel .customer-support__empty-note,
.customer-panel .customer-support__closed {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}
.customer-panel .customer-support-form__actions {
  margin-block-start: 0.5rem;
  padding-block-end: 0.25rem;
}
.customer-panel .customer-support-detail__head h1 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}
.customer-panel .customer-support-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}
.customer-panel .customer-support-detail__trip {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
}
.customer-panel .customer-support__back { margin: 0 0 0.75rem; }
.customer-panel .customer-support-thread { margin-block: 1rem; }
.customer-panel .customer-support-thread h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}
.customer-panel .customer-support-thread__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.customer-panel .customer-support-message {
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  background: var(--color-surface);
}
.customer-panel .customer-support-message--self {
  background: var(--customer-mint);
  border-color: transparent;
}
.customer-panel .customer-support-message__author {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
}
.customer-panel .customer-support-message__body { margin: 0; overflow-wrap: anywhere; }
.customer-panel .customer-support-message__time {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.customer-panel .customer-support-reply { margin-block: 1rem 0.5rem; }
.customer-panel .customer-support-reply textarea { min-height: 4.5rem; }
.customer-panel .customer-support-more {
  margin-block-start: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  padding: 0.65rem 0.85rem;
}
.customer-panel .customer-support-more summary {
  cursor: pointer;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 700;
}
@media (max-width: 47.5rem) {
  .customer-panel .customer-support-form__actions,
  .customer-panel .customer-support-reply .form-actions {
    padding-block-end: 0.75rem;
  }
}

/* P0-B.4 saved addresses */
.customer-panel .saved-address-cards { display: grid; gap: 0.75rem; padding: 0; list-style: none; }
.customer-panel .saved-address-card {
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  padding: 1rem;
  background: var(--color-surface);
}
.customer-panel .saved-address-card__label { font-weight: 600; margin: 0 0 0.35rem; }
.customer-panel .saved-address-card__address { color: var(--color-muted); font-size: 0.875rem; margin: 0 0 0.75rem; }
.customer-panel .saved-address-card__actions { margin: 0; gap: 0.5rem; align-items: center; }
.customer-panel .saved-address-card__actions form { margin: 0; }
.customer-panel .saved-address-preview {
  background: var(--customer-cream);
  border-radius: 0.75rem;
  padding: 0.75rem;
  min-height: 2.5rem;
}
.customer-panel .saved-address-map {
  margin: 0.75rem 0 1rem;
}
.customer-panel .saved-map-canvas {
  height: min(42dvh, 18rem);
  min-height: 14rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}
.customer-panel .booking-choice-row .choice:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--customer-mint);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.customer-panel .booking-second-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.customer-panel .booking-second-summary {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}
.customer-panel .booking-second-row .btn {
  min-height: var(--touch);
}
@media (max-width: 30rem) {
  .customer-panel .saved-map-canvas {
    height: min(48dvh, 16rem);
    min-height: 13rem;
  }
}
.customer-panel .saved-address-booking { margin-block: 0.5rem; }
.customer-panel .saved-addresses-panel {
  margin-block-start: 0.5rem;
  display: grid;
  gap: 0.5rem;
}
.customer-panel .saved-addresses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.customer-panel .saved-address-pick { font-size: 0.875rem; }
.customer-panel .save-confirmed-address { margin-block-start: 0.75rem; display: grid; gap: 0.5rem; }
.customer-panel .save-address-status:not([hidden]) {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--customer-mint);
  color: var(--color-primary-hover);
  font-size: 0.875rem;
  line-height: 1.45;
}
.customer-panel .save-address-form {
  display: grid;
  gap: 0.5rem;
  margin-block-start: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: var(--customer-cream);
}
@media (max-width: 30rem) {
  .customer-panel .saved-address-card__actions { flex-direction: column; align-items: stretch; }
}

/* P0-B.6 active trip — map-first customer UX */
.customer-panel .customer-active-trip {
  display: grid;
  gap: 0.875rem;
  padding: 1rem;
}
.customer-panel .active-trip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.customer-panel .active-trip-eyebrow {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8125rem;
}
.customer-panel .active-trip-header h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
}
.customer-panel .active-trip-badge {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--customer-mint, #d8f3e7);
  color: var(--color-primary-hover, #0f766e);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.customer-panel .active-trip-summary {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.customer-panel .active-trip-map {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--customer-cream, #f7f4ef);
}
.customer-panel .active-trip-map__canvas {
  height: min(52dvh, 22rem);
  min-height: 14rem;
  border-radius: 0;
}
.customer-panel .active-trip-map__fallback {
  min-height: 12rem;
  display: grid;
  place-content: center;
  padding: 1rem;
  text-align: center;
}
.customer-panel .active-trip-map__note {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.customer-panel .active-trip-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.875rem;
}
.customer-panel .active-trip-route__label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.customer-panel .active-trip-route__value {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.customer-panel .active-trip-route__arrow {
  margin: 1.1rem 0 0;
  color: var(--color-muted);
}
.customer-panel .active-trip-ambassador {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
}
.customer-panel .active-trip-ambassador h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.customer-panel .active-trip-ambassador__body p {
  margin: 0.35rem 0;
}
.customer-panel .active-trip-ambassador__call {
  margin-block-start: 0.75rem;
  width: 100%;
}
.customer-panel .active-trip-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.customer-panel .active-trip-actions .btn,
.customer-panel .active-trip-actions a.btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding-inline: 0.4rem;
  font-size: 0.85rem;
}
.customer-panel .active-trip-pay-hint {
  margin: 0;
}
.customer-panel .active-trip-fare {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  background: var(--customer-cream, #f7f4ef);
}
.customer-panel .active-trip-fare__label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.customer-panel .active-trip-fare__value {
  margin: 0.2rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.customer-panel .active-trip-amendment-status:empty {
  display: none;
}
.customer-panel .active-trip-more {
  margin: 0;
}
.customer-panel .trip-options-dialog {
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 0;
  width: min(100vw - 1.5rem, 28rem);
  max-height: min(90dvh, 40rem);
}
.customer-panel .trip-options-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.customer-panel .trip-options-dialog__chrome {
  margin: 0;
}
.customer-panel .trip-options-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface, #fff);
}
.customer-panel .trip-options-dialog__header h2 {
  margin: 0;
  font-size: 1.05rem;
}
.customer-panel .trip-options-dialog .trip-amendment {
  padding: 1rem;
}
.customer-panel .amendment-second-panel {
  margin-block: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.customer-panel .amendment-second-panel[hidden],
.customer-panel .booking-waiting-block[hidden],
.customer-panel .amendment-round-panel[hidden],
.customer-panel .amendment-preview[hidden] {
  display: none !important;
}
.customer-panel .amendment-second-map {
  height: 12rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
}
@media (max-width: 390px) {
  .customer-panel .active-trip-actions {
    grid-template-columns: 1fr;
  }
  .customer-panel .active-trip-map__canvas {
    height: min(42dvh, 16.5rem);
    min-height: 12.5rem;
  }
}

/* P0-B.6 active-trip polish */
.customer-panel .customer-active-trip {
  overflow-x: clip;
  max-width: 100%;
}
.customer-panel .active-trip-summary[hidden] { display: none; }
.customer-panel .active-trip-ambassador__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.customer-panel .active-trip-ambassador__meta {
  min-width: 0;
  flex: 1;
}
.customer-panel .active-trip-ambassador__name {
  margin: 0;
  font-size: 1rem;
}
.customer-panel .active-trip-ambassador__vehicle {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}
.customer-panel .active-trip-ambassador__plate {
  font-weight: 600;
  color: var(--color-text);
}
.customer-panel .active-trip-ambassador__call {
  margin: 0;
  width: auto;
  min-width: 4.5rem;
  flex-shrink: 0;
}
.customer-panel .active-trip-actions {
  align-items: stretch;
}
.customer-panel .active-trip-actions .btn,
.customer-panel .active-trip-actions a.btn {
  min-height: var(--touch);
  white-space: normal;
}
.customer-panel .active-trip-open-amendment {
  display: grid;
  gap: 0.5rem;
  margin-block-start: 0.25rem;
}
.customer-panel .trip-options-dialog {
  overflow: auto;
  overscroll-behavior: contain;
  max-height: min(92dvh, 42rem);
  -webkit-overflow-scrolling: touch;
}
.customer-panel .trip-options-dialog__shell {
  display: flex;
  flex-direction: column;
}
.customer-panel .trip-options-dialog__header {
  flex-shrink: 0;
  z-index: 1;
}
.customer-panel .trip-options-dialog .trip-amendment {
  overflow: visible;
  padding: 1rem;
}
.customer-panel .amendment-kind-fieldset {
  border: 0;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.customer-panel .amendment-kind-readonly {
  margin: 0;
}
.customer-panel .active-trip-current-options {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}
.customer-panel .trip-options-dialog__actions {
  display: grid;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
  position: sticky;
  bottom: 0;
  padding-block-start: 0.5rem;
  background: linear-gradient(to top, var(--color-surface, #fff) 70%, transparent);
}
.customer-panel .amendment-preview {
  margin-block: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: var(--customer-cream, #f7f4ef);
  border: 1px solid var(--color-border);
}
.customer-panel .amendment-preview p { margin: 0.35rem 0; }
.customer-panel .place-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.customer-panel .place-results button {
  width: 100%;
  text-align: right;
  min-height: var(--touch);
}
@media (max-width: 390px) {
  .customer-panel .active-trip-header {
    flex-wrap: wrap;
  }
  .customer-panel .active-trip-actions {
    grid-template-columns: 1fr;
  }
  .customer-panel .active-trip-ambassador__row {
    flex-wrap: wrap;
  }
  .customer-panel .active-trip-ambassador__call {
    width: 100%;
  }
  .customer-panel .trip-options-dialog {
    width: calc(100vw - 1rem);
    margin: 0.5rem;
  }
}
