/* Locally hosted variable font: no third-party font request on private pages. */
@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Shared Buff palette and card sizing for customer and staff views. */
:root {
  --forest: #243c2e;
  --green: #648b38;
  --lime: #b8e36b;
  --paper: #f8f9f4;
  --muted: #738071;
  --line: #dfe4d8;
  --white: #fff;
  --soft: #edf2e3;
  --radius: 18px;
}
/* Base sizing, typography, touch behaviour and visible keyboard focus. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--forest);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #70963d;
  outline-offset: 5px;
}
button svg,
a svg {
  flex-shrink: 0;
}
svg.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Shared page frame, contact strip and navigation. */
.shell {
  width: calc(100% - 104px);
  max-width: 1280px;
  margin-inline: auto;
}
.topbar {
  background: var(--forest);
  color: #f5f8ef;
  font-size: 11px;
  letter-spacing: 0.1px;
}
.topbar .shell {
  display: flex;
  justify-content: space-between;
  padding-block: 9px;
}
.topbar a strong {
  font-weight: 500;
}
.topbar a span {
  margin-left: 12px;
}
.site-header {
  height: 101px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand > span {
  font-weight: 900;
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: -1.7px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.6px;
  line-height: 1;
  margin-top: 9px;
  font-weight: 800;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 22px;
  font-size: 12px;
  font-weight: 600;
}
.nav-track {
  position: relative;
}
.nav-track:after {
  content: '';
  position: absolute;
  bottom: -9px;
  height: 2px;
  background: var(--green);
  left: 0;
  right: 0;
}
.site-header nav span {
  margin-left: 8px;
}
/* Reusable actions; colour variants distinguish primary and sharing buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 650;
  background: white;
  transition:
    background 0.18s,
    transform 0.18s;
  color: var(--forest);
}
.button:hover {
  background: var(--soft);
  transform: translateY(-1px);
}
.button.primary,
.header-help {
  background: var(--forest);
  color: white;
  border-color: var(--forest);
}
.button.primary:hover,
.header-help:hover {
  background: #385a43;
}
.button.lime {
  background: var(--lime);
  border-color: var(--lime);
}
.button.wide {
  width: 100%;
}
.header-help {
  padding: 13px 18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: '';
  width: 23px;
  height: 1px;
  background: var(--green);
}
/* Page heading and journey connection badge. */
.intro {
  border-top: 1px solid var(--line);
  padding-top: 33px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.intro h1 {
  font-size: 43px;
  line-height: 1.14;
  letter-spacing: -1.9px;
  margin: 15px 0 12px;
  font-weight: 750;
}
.intro h1 em {
  font-style: normal;
  color: var(--green);
}
.intro p {
  color: #778170;
  margin: 0;
  font-size: 13px;
}
.intro-right {
  text-align: right;
  align-self: center;
}
.pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 30px;
  background: #eaf0df;
  color: #50732d;
}
.pill .dot {
  width: 6px;
  height: 6px;
  background: #6b983b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #6b983b12;
}
.intro-right small {
  display: block;
  font-size: 10px;
  margin-top: 10px;
  color: var(--muted);
}
/* Customer layout: arrival/progress card beside the map on wider screens. */
.tracking-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.journey-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.arrival-block {
  background: var(--forest);
  color: white;
  padding: 24px 26px 21px;
  position: relative;
  overflow: hidden;
}
.arrival-block:after {
  content: '';
  position: absolute;
  width: 125px;
  height: 125px;
  border: 1px solid #ffffff10;
  border-radius: 50%;
  right: -50px;
  top: -35px;
  box-shadow:
    0 0 0 25px #ffffff04,
    0 0 0 50px #ffffff03;
  pointer-events: none;
}
.arrival-block .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #d4dec9;
}
.arrival-block .eyebrow:before {
  display: none;
}
.eta {
  font-size: 66px;
  font-weight: 650;
  letter-spacing: -3px;
  line-height: 1.12;
  margin-top: 12px;
}
.eta span {
  font-size: 23px;
  letter-spacing: -0.5px;
  font-weight: 450;
  color: #e0e7da;
}
/* Text statuses such as 'Awaiting update' need less size than the clock display. */
.eta.long {
  font-size: 39px;
  letter-spacing: -1.6px;
  margin-block: 15px;
}
.arrival-time {
  font-size: 11px;
  color: #d7dfd2;
  margin-top: 6px;
}
.arrival-time strong {
  color: var(--lime);
  font-weight: 550;
}
.arrival-divider {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #ffffff22;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #dee6d8;
}
.arrival-divider .icon {
  width: 15px;
  height: 15px;
  color: var(--lime);
}
/* Progress state classes (done/active/pending) are set by updateCustomer(). */
.journey-steps {
  padding: 22px 25px 15px;
}
.step {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 23px;
}
.step:not(:last-child):before {
  content: '';
  position: absolute;
  width: 1px;
  background: var(--line);
  top: 28px;
  bottom: 4px;
  left: 13px;
}
.step-bullet {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  color: #a0a998;
  background: white;
}
.step-bullet svg {
  width: 13px;
  height: 13px;
}
.step.done .step-bullet {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--green);
}
.step.active .step-bullet {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--forest);
  box-shadow: 0 0 0 4px #b8e36b22;
}
.step strong {
  font-size: 11px;
  font-weight: 650;
  display: block;
  margin-top: 3px;
}
.step small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.step.pending strong {
  color: #8a9484;
}
.step:last-child {
  padding-bottom: 0;
}
.destination {
  margin: 3px 24px 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.destination > .icon {
  width: 19px;
  color: var(--green);
  margin-top: 3px;
}
.destination .label {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.destination strong {
  font-size: 11px;
  display: block;
  font-weight: 600;
}
.destination small {
  font-size: 10px;
  color: var(--muted);
}
/* Map viewport and floating controls. Leaflet owns the map's internal layout. */
.map-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 476px;
  background: #e9eddf;
}
.map {
  height: 100%;
  min-height: 476px;
  z-index: 0;
  background: #e9eddf;
}
.map-top {
  position: absolute;
  z-index: 500;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.map-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 9px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 12px #243c2e0b;
  font-size: 10px;
  font-weight: 600;
}
.map-label .dot {
  width: 6px;
  height: 6px;
  background: #72994a;
  border-radius: 50%;
}
.map-top .icon-button {
  pointer-events: auto;
  background: white;
  box-shadow: 0 2px 12px #243c2e10;
}
.icon-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  background: white;
  font-size: 22px;
}
.map-bottom {
  position: absolute;
  bottom: 30px;
  left: 18px;
  right: 18px;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.map-note {
  background: #ffffffef;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #fff;
  border-radius: 6px;
  font-size: 9px;
  color: #677260;
}
.map-note .icon {
  width: 14px;
  height: 14px;
}
.map-bottom .icon-button {
  pointer-events: auto;
}
.zoom-buttons {
  display: grid;
  gap: 4px;
}
/* Buff-specific overrides for Leaflet; keep vendored library CSS untouched. */
.leaflet-container {
  font-family: Inter, Arial, sans-serif;
}
.leaflet-control-attribution {
  font-size: 8px !important;
  background: #ffffffbb !important;
}
.leaflet-control-attribution a {
  color: #596e45 !important;
}
.van-marker {
  width: 50px;
  height: 50px;
  border: 3px solid white;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 0 0 10px #6b8f3420,
    0 4px 15px #243c2e30;
}
.van-marker svg {
  width: 26px;
  height: 26px;
}
.home-marker {
  background: white;
  color: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px #243c2e20;
}
.home-marker svg {
  transform: rotate(45deg);
  width: 17px;
  height: 17px;
}
.leaflet-tooltip.buff-tooltip {
  background: var(--forest);
  color: white;
  border: 0;
  box-shadow: none;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 550;
  border-radius: 5px;
}
.leaflet-tooltip.buff-tooltip:before {
  border-top-color: var(--forest);
}
.map-placeholder {
  height: 100%;
  min-height: 476px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
.map-placeholder strong {
  font-size: 23px;
  color: var(--forest);
}
/* Crew contact and reassurance cards below the tracker. */
.support-grid {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.team-card,
.care-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 22px 24px;
}
.card-heading {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 17px;
}
.team-detail {
  display: flex;
  gap: 13px;
  align-items: center;
}
.avatar {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
  border: 3px solid white;
  outline: 1px solid var(--line);
}
.team-detail h3 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.3px;
}
.team-detail p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.team-detail .tiny-mark {
  margin-left: auto;
  width: 28px;
  height: 28px;
  transform: rotate(12deg);
}
.team-card .button {
  margin-top: 20px;
  width: 100%;
  padding: 10px;
  font-size: 11px;
}
.care-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4e6;
  gap: 10px;
  overflow: hidden;
}
.care-copy {
  max-width: 350px;
}
.care-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.care-copy .eyebrow:before {
  display: none;
}
.care-copy h2 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 10px 0;
}
.care-copy h2 span {
  color: var(--green);
}
.care-copy p {
  font-size: 11px;
  line-height: 1.75;
  color: #748068;
  margin: 0;
  max-width: 300px;
}
.care-card > img {
  width: 220px;
  max-width: 40%;
  transform: rotate(-3deg);
}
.reassurance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 29px;
  margin-bottom: 30px;
  gap: 25px;
  font-size: 10px;
  color: #75806f;
}
.reassurance > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.reassurance .icon {
  width: 14px;
  height: 14px;
  color: #819862;
}
.text-button {
  background: none;
  border: 0;
  color: var(--forest);
  font-size: 10px;
  font-weight: 550;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-button:hover {
  text-decoration: underline;
}
/* Shared footer, simulated-journey notice and initial loading state. */
.site-footer {
  padding: 23px 0 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #84907c;
  font-size: 9px;
  gap: 20px;
}
.footer-signoff {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-signoff strong {
  font-weight: 500;
  color: #637459;
}
.site-footer > div:last-child {
  display: flex;
  gap: 25px;
}
.site-footer a {
  color: #65755b;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  margin: 0 0 20px;
  background: #edf1e3;
  border: 1px solid #dfe5d1;
  border-radius: 8px;
  font-size: 10px;
  color: #687755;
}
.demo-banner strong {
  font-weight: 650;
  color: var(--forest);
}
.demo-banner .text-button {
  white-space: nowrap;
}
.loading {
  padding: 100px 20px;
  text-align: center;
  color: var(--muted);
}
/* Transient feedback sits above Leaflet layers and does not intercept clicks. */
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 12px;
  box-shadow: 0 8px 30px #243c2e20;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Native help dialog and its expandable customer FAQ. */
dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  color: var(--forest);
  box-shadow: 0 25px 80px #12291c30;
}
dialog::backdrop {
  background: #182f2360;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 32px;
  margin: 15px 0 25px;
  letter-spacing: -1px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  border: 0;
  background: var(--soft);
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  color: var(--muted);
  line-height: 1.8;
  margin: 12px 0 0;
}
dialog > .button {
  margin-top: 18px;
  width: 100%;
}
/* Employee forms, validation feedback, job list and sharing actions. */
.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 25px;
  margin-bottom: 35px;
}
.form-card,
.staff-side,
.empty-state {
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-card h2,
.staff-side h2 {
  margin: 0 0 7px;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.form-card > p,
.staff-side > p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 25px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9dfd1;
  border-radius: 7px;
  padding: 12px;
  color: var(--forest);
  background: #fff;
  font-size: 12px;
  outline: none;
}
.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #648b3815;
}
.field input::placeholder {
  color: #a1aa99;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.form-card form > .button {
  margin-top: 23px;
}
.notice {
  padding: 13px 15px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.8;
  margin: 18px 0;
  color: #657653;
}
.notice.warning {
  background: #fff4dc;
  color: #84651d;
}
.error {
  color: #a04232;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 13px;
}
/* Empty validation containers should not leave a blank gap below forms. */
.error:empty {
  display: none;
}
.login-card {
  max-width: 460px;
  margin: 0 auto 60px;
}
.staff-steps {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}
.staff-steps li {
  counter-increment: steps;
  display: flex;
  gap: 15px;
  margin: 23px 0;
  font-size: 12px;
}
.staff-steps li:before {
  content: counter(steps);
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 600;
}
.staff-steps strong {
  display: block;
}
.staff-steps span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.active-job {
  margin-top: 16px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.active-job strong {
  font-size: 12px;
  display: block;
}
.active-job small {
  color: var(--muted);
  font-size: 10px;
}
.active-job .button {
  padding: 8px 12px;
  font-size: 10px;
}
.share-link {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-link input {
  min-width: 0;
  flex: 1;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}
.sms-preview {
  font-size: 12px;
  color: #617353;
  line-height: 1.8;
  background: var(--soft);
  padding: 17px;
  border-radius: 9px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.action-stack {
  display: grid;
  gap: 12px;
}
.active-status {
  font-size: 12px;
  padding: 15px 0;
}
.empty-state {
  text-align: center;
  margin: 40px auto 70px;
  max-width: 580px;
}
.empty-state h1 {
  font-size: 30px;
  letter-spacing: -1px;
}
.empty-state p {
  color: var(--muted);
}
.empty-state > .icon {
  width: 36px;
  height: 36px;
  color: var(--green);
}
/* Customer connection warnings; JavaScript toggles this class on the badge. */
.status-stale {
  background: #fff3d9;
  color: #886c2d;
}
.status-stale .dot {
  background: #b18a35;
}
.mobile-only {
  display: none;
}
/* Responsive overrides follow the base rules; later matching rules win.
   Wide desktop: increase breathing room around the tracker. */
@media (min-width: 1500px) {
  .shell {
    max-width: 1280px;
  }
  .intro {
    padding-block: 40px;
  }
  .tracking-grid,
  .support-grid {
    grid-template-columns: 380px minmax(0, 1fr);
  }
  .map-card,
  .map {
    min-height: 495px;
  }
  .journey-steps {
    padding-top: 26px;
  }
  .step {
    padding-bottom: 27px;
  }
  .care-card > img {
    width: 260px;
  }
  .care-copy h2 {
    font-size: 27px;
  }
}
/* Smaller desktop: tighten columns and decorative content. */
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 64px);
  }
  .tracking-grid,
  .support-grid {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .intro h1 {
    font-size: 37px;
  }
  .site-header nav {
    gap: 20px;
    margin-right: 0;
  }
  .care-card > img {
    width: 160px;
  }
  .care-copy h2 {
    font-size: 21px;
  }
  .care-card {
    padding: 20px;
  }
  .reassurance {
    font-size: 9px;
    gap: 12px;
  }
}
/* Tablet: simplify navigation and stack the employee dashboard. */
@media (max-width: 800px) {
  .shell {
    width: calc(100% - 40px);
  }
  .topbar {
    font-size: 9px;
  }
  .site-header {
    height: 87px;
    gap: 20px;
  }
  .site-header nav {
    display: none;
  }
  .brand > span {
    font-size: 30px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand > img {
    width: 39px;
  }
  .header-help {
    font-size: 11px;
    padding: 10px 14px;
  }
  .intro {
    padding-top: 26px;
  }
  .intro h1 {
    font-size: 33px;
    letter-spacing: -1.3px;
  }
  .intro p {
    font-size: 12px;
  }
  .intro-right {
    display: none;
  }
  .tracking-grid {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 15px;
  }
  .arrival-block {
    padding: 22px;
  }
  .eta {
    font-size: 58px;
  }
  .journey-steps {
    padding-inline: 20px;
  }
  .destination {
    margin-inline: 20px;
  }
  .support-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .care-card > img {
    display: none;
  }
  .care-copy h2 {
    font-size: 23px;
  }
  .reassurance > span:nth-child(2) {
    display: none;
  }
  .map-note {
    font-size: 8px;
    padding: 7px;
  }
  .map-note .icon {
    display: none;
  }
  .map-top {
    left: 12px;
    right: 12px;
  }
  .map-bottom {
    left: 12px;
    right: 12px;
  }
  .site-footer > div:last-child {
    gap: 14px;
  }
  .staff-layout {
    grid-template-columns: 1fr;
  }
  .staff-side {
    order: 2;
  }
}
/* Phone: stack customer cards and form fields with compact page chrome. */
@media (max-width: 600px) {
  .shell {
    width: calc(100% - 36px);
  }
  .topbar .shell {
    justify-content: center;
    font-size: 9px;
    padding-block: 8px;
  }
  .topbar a {
    display: none;
  }
  .site-header {
    height: 79px;
  }
  .header-help {
    padding: 9px 12px;
  }
  .brand > span {
    font-size: 29px;
  }
  .brand > img {
    width: 35px;
  }
  .intro {
    padding-top: 23px;
    padding-bottom: 24px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .intro h1 {
    font-size: 34px;
    line-height: 1.13;
    max-width: 320px;
    margin-block: 13px 10px;
  }
  .intro p {
    font-size: 11px;
    max-width: 300px;
    line-height: 1.75;
  }
  .demo-banner {
    font-size: 9px;
    align-items: flex-start;
    padding: 10px 12px;
    margin-bottom: 16px;
  }
  .demo-banner .text-button {
    font-size: 9px;
  }
  .demo-banner > span {
    max-width: 230px;
  }
  .tracking-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .journey-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }
  .arrival-block {
    grid-column: 1/-1;
    padding: 21px 23px;
  }
  .arrival-block .eyebrow {
    font-size: 8px;
  }
  .eta {
    font-size: 58px;
    margin-top: 9px;
  }
  .eta span {
    font-size: 22px;
  }
  .arrival-divider {
    position: absolute;
    right: 23px;
    bottom: 24px;
    border: 0;
    max-width: 110px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 9px;
  }
  .arrival-time {
    font-size: 10px;
  }
  .journey-steps {
    padding: 21px 16px 21px 22px;
  }
  .step {
    gap: 10px;
    padding-bottom: 19px;
  }
  .step strong {
    font-size: 10px;
  }
  .step small {
    font-size: 9px;
  }
  .step-bullet {
    width: 24px;
    height: 24px;
  }
  .step:not(:last-child):before {
    left: 11px;
    top: 27px;
  }
  .destination {
    margin: 22px 15px 22px 0;
    padding: 7px 0 7px 17px;
    border-top: 0;
    border-left: 1px solid var(--line);
    display: block;
    align-self: stretch;
  }
  .destination > .icon {
    margin-bottom: 9px;
  }
  .destination .label {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  .destination strong {
    font-size: 10px;
    line-height: 1.8;
  }
  .destination small {
    font-size: 9px;
  }
  .map-card,
  .map {
    min-height: 360px;
    height: 360px;
  }
  .map-card {
    border-radius: 14px;
  }
  .map-top {
    top: 13px;
  }
  .map-label {
    font-size: 9px;
  }
  .support-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  .team-card {
    padding: 21px;
  }
  .card-heading {
    font-size: 8px;
    margin-bottom: 14px;
  }
  .team-card .button {
    margin-top: 17px;
  }
  .care-card {
    padding: 23px 21px;
    min-height: 183px;
  }
  .care-copy h2 {
    font-size: 22px;
  }
  .care-copy p {
    font-size: 10px;
  }
  .care-card > img {
    display: block;
    width: 145px;
    max-width: 42%;
    margin-right: -8px;
  }
  .care-copy {
    max-width: 200px;
  }
  .care-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .reassurance {
    flex-wrap: wrap;
    justify-content: center;
    margin-block: 23px;
    gap: 14px;
  }
  .reassurance > span:nth-child(3) {
    display: none;
  }
  .reassurance .text-button {
    font-size: 9px;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    padding-block: 20px;
    gap: 16px;
  }
  .site-footer > div:last-child {
    width: 100%;
    justify-content: space-between;
    font-size: 8px;
  }
  .footer-signoff {
    font-size: 9px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .form-card,
  .staff-side {
    padding: 23px;
  }
  .form-card h2,
  .staff-side h2 {
    font-size: 21px;
  }
  .login-card {
    margin-bottom: 35px;
  }
  .share-link .button {
    padding: 12px;
  }
  .staff-layout {
    gap: 16px;
  }
  .map-placeholder {
    min-height: 360px;
  }
  dialog {
    padding: 28px 24px;
  }
}
/* Style only map imagery so markers and controls retain their brand colours. */
.buff-map-tiles {
  filter: saturate(0.18) brightness(1.06) contrast(0.9);
}
/* Keep staff actions visible where the customer intro badge is hidden. */
.staff-page .intro-right {
  display: block;
}
.staff-page .intro {
  gap: 20px;
}
@media (max-width: 600px) {
  .staff-page .intro {
    align-items: flex-start;
  }
  .staff-page .intro-right .button {
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .field input,
  .field select {
    /* A 16px input font avoids automatic focus zoom in mobile Safari. */
    font-size: 16px;
  }
  .button,
  .icon-button {
    /* Give primary controls at least a 44px-tall touch target. */
    min-height: 44px;
  }
  .icon-button {
    min-width: 44px;
  }
  .arrival-block:has(.eta.long) .arrival-divider {
    /* Long status copy needs the divider in normal flow to avoid overlap. */
    position: static;
    margin-top: 12px;
    max-width: none;
  }
  .text-button {
    min-height: 32px;
  }
}
/* Honour the device accessibility preference for reduced animation. */
/* The complete message stays selectable and wraps even very long private links. */
.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--line, #ccd5c6);
  border-radius: 10px;
  background: #fff;
  color: var(--green, #173b2a);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  overflow-wrap: anywhere;
}
.field textarea:focus-visible {
  outline: 3px solid #9cb85d;
  outline-offset: 3px;
}
#message-help { font-size: 13px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
