/* ==========================================================================
   Winning Services — Delivery Portal
   Design tokens + component styles.

   Colour and spacing values are taken verbatim from the source design so the
   implementation stays pixel-faithful. Prefer editing a token over a rule.
   ========================================================================== */

:root {
  /* -- Brand ------------------------------------------------------------- */
  --ink:             #0F2438;
  --ink-hover:       #20364C;
  --ink-hover-alt:   #313338;
  --blue:            #005DAA;
  --blue-dark:       #004B89;
  --blue-light:      #2C7FC0;
  --blue-pale:       #E7F0FA;
  --blue-pale-line:  #C7DDF4;
  --blue-pale-ink:   #1B4870;
  --blue-pale-soft:  #4A6B8C;
  --sky:             #7FB2E0;
  --sky-deep:        #2E80C2;
  --sky-mid:         #7FB8E2;

  /* -- Surfaces ---------------------------------------------------------- */
  --sand:        #F4EFE6;
  --surface:     #FFFFFF;
  --surface-2:   #FBFAF7;
  --surface-3:   #F8F3EA;
  --surface-4:   #EFE9DD;

  /* -- Lines ------------------------------------------------------------- */
  --line:        #E9E3D7;
  --line-soft:   #F0EBE0;
  --line-softer: #EFE9DD;
  --line-top:    #E7E0D4;
  --line-rail:   #E4DCCE;
  --field-line:  #DAD3C5;
  --check-line:  #D4CCBE;
  --dash-line:   #B9C7D6;

  /* -- Text -------------------------------------------------------------- */
  --text:        #0F2438;
  --text-2:      #4A4D55;
  --muted:       #6B6E76;
  --muted-2:     #92959E;
  --placeholder: #ABADB4;

  /* -- Status ------------------------------------------------------------ */
  --ok:          #2F8559;
  --ok-bg:       #E7F2EC;
  --ok-line:     #BFE0CC;
  --warn:        #B5801C;
  --warn-ink:    #9A6A12;
  --warn-bg:     #FAF1DD;
  --danger:      #B23B36;
  --danger-bg:   #FBEDEC;
  --danger-line: #F1D4D2;
  --info:        #2660C5;
  --info-bg:     #E9F0FB;
  --neutral:     #9A9CA3;

  /* -- Service zones ----------------------------------------------------- */
  --zone-1: #005DAA;
  --zone-2: #2C8BD6;
  --zone-3: #5FAE6B;
  --zone-4: #E0A12E;
  --zone-5: #C66A2E;

  /* -- Elevation --------------------------------------------------------- */
  --shadow-card:   0 1px 2px rgba(20, 22, 26, .04), 0 8px 22px rgba(20, 22, 26, .035);
  --shadow-flat:   0 1px 2px rgba(20, 22, 26, .04);
  --shadow-row:    0 1px 2px rgba(20, 22, 26, .03);
  --shadow-panel:  0 10px 30px rgba(20, 22, 26, .14);
  --shadow-menu:   0 14px 34px rgba(15, 36, 56, .14);
  --shadow-modal:  0 30px 70px rgba(0, 0, 0, .3);
  --shadow-drawer: 0 20px 50px rgba(0, 0, 0, .35);

  /* -- Radii ------------------------------------------------------------- */
  --r-xs:   6px;
  --r-sm:   9px;
  --r-md:   10px;
  --r-lg:   12px;
  --r-xl:   14px;
  --r-2xl:  16px;
  --r-3xl:  18px;
  --r-pill: 20px;

  --sidebar-w: 252px;
  --drawer-w:  270px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--sand);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

input, button, select, textarea { font-family: inherit; }
input, select { outline: none; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

h1, h2, h3, p { margin: 0; }

.app-root { min-height: 100vh; }

/* Utility ------------------------------------------------------------------ */
.spacer  { flex: 1; }
.nowrap  { white-space: nowrap; }
.truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes podPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes march { to { stroke-dashoffset: -28; } }

.anim-fade-up { animation: fadeUp .4s ease both; }
.anim-fade-in { animation: fadeUp .25s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow--sky {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--sky);
}
.eyebrow--panel {
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
}
.script {
  font-family: 'Kaushan Script', cursive;
  font-size: 52px;
  line-height: 1;
  color: var(--sky);
  margin-bottom: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }

/* Used on the dark summary panels, where the darker hover would disappear. */
.btn--primary-panel { background: var(--blue); color: #fff; }
.btn--primary-panel:hover { background: var(--blue-light); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-hover); }
.btn--ink-alt { background: var(--ink); color: #fff; }
.btn--ink-alt:hover { background: var(--ink-hover-alt); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--field-line);
  color: var(--text);
}
.btn--ghost:hover { background: var(--sand); }

.btn--ghost-2 {
  background: var(--surface);
  border-color: var(--field-line);
  color: var(--text);
}
.btn--ghost-2:hover { background: var(--surface-2); }

.btn--link-blue {
  background: var(--surface);
  border-color: var(--field-line);
  color: var(--blue);
}
.btn--link-blue:hover { background: var(--blue-pale); }

.btn--dashed {
  border: 1px dashed var(--dash-line);
  background: var(--surface);
  color: var(--blue);
  padding: 10px 16px;
  gap: 7px;
}
.btn--dashed:hover { background: var(--blue-pale); }

.btn--block { width: 100%; }
.btn--lg    { padding: 15px; font-size: 15px; }
.btn--xl    { padding: 15px; font-size: 15.5px; border-radius: 11px; }
.btn--sm    { padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); gap: 6px; }
.btn--auth  { padding: 14px; font-size: 15px; width: 100%; }

.btn--icon {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--r-sm);
  border-color: var(--field-line);
  background: var(--surface);
  color: var(--muted-2);
}
.btn--icon:hover { background: var(--sand); }

.link {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.link:hover { text-decoration: underline; }
.link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* A secondary link sitting beside a field label. */
.link--sm {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
}

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

/* ==========================================================================
   Form fields
   ========================================================================== */

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.label__hint { color: var(--placeholder); font-weight: 500; }

.label--mini {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-md);
  font-size: 14.5px;
  background: var(--surface);
  color: var(--text);
}
.field:focus { border-color: var(--blue); }

.field--auth  { padding: 13px 14px; font-size: 15px; }
.field--sm    { padding: 9px 10px; font-size: 14px; border-radius: var(--r-sm); }
.field--sm-x  { padding: 9px 12px; font-size: 14px; border-radius: var(--r-sm); }
.field--search { padding-left: 38px; }
.field--area   { padding: 11px 14px 11px 38px; font-size: 14px; }
.field--volume { padding-right: 42px; font-size: 16px; font-weight: 700; }

textarea.field {
  resize: vertical;
  line-height: 1.5;
}

.field-search { position: relative; }
.field-search__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-suffix { position: relative; }
.field-suffix__unit {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

/* Selection controls ------------------------------------------------------- */
.radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--check-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.radio__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.checkbox {
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  border: 2px solid var(--check-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--surface);
}
.checkbox--sm { width: 19px; height: 19px; }
.checkbox.is-on { background: var(--blue); }

/* A bordered, clickable card that behaves like a radio / checkbox. */
.pick {
  position: relative;
  border: 1px solid var(--field-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.pick:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pick__ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  border-radius: inherit;
  pointer-events: none;
}

/* ==========================================================================
   Cards and panels
   ========================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.card--flush  { padding: 0; overflow: hidden; box-shadow: var(--shadow-flat); }
.card--pad-22 { padding: 22px; box-shadow: none; }
.card--pad-24 { padding: 24px; }
.card--pad-26 { padding: 26px; box-shadow: none; }
.card--plain  { box-shadow: none; }

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.card__lede {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 16px 32px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

/* Dark summary panel (booking total, quote total). */
.panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-3xl);
  padding: 24px;
  box-shadow: var(--shadow-panel);
}
.panel__row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: 14px;
}
.panel__row dt, .panel__key { color: rgba(255, 255, 255, .6); }
.panel__row dd, .panel__val { margin: 0; font-weight: 700; }
.panel__lines { margin-top: 16px; padding-top: 14px; }
.panel__lines--tight { padding-top: 4px; }
.panel__line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .72);
}
.panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.panel__total-label { font-weight: 700; font-size: 15px; }
.panel__total-value { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.panel__note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
}

/* Inline notices ----------------------------------------------------------- */
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.note--sand  { background: var(--surface-3); border: 1px solid var(--line); }
.note--blue  { background: var(--blue-pale); border: 1px solid var(--blue-pale-line); }
.note--green { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.note--red   { background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--danger); }
.note--center { align-items: center; }
.note__title { font-weight: 700; font-size: 14.5px; }
.note__sub   { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.note__meta  { color: var(--muted-2); font-size: 12.5px; margin-top: 4px; }

/* Pills and badges --------------------------------------------------------- */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--r-2xl);
  white-space: nowrap;
}
.badge--caps {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.badge--ok   { color: var(--ok); background: var(--ok-bg); }
.badge--blue { color: var(--blue); background: var(--blue-pale); }

.tag-approved {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.tag-date {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 3px 7px;
  border-radius: var(--r-pill);
}

/* Filter chips ------------------------------------------------------------- */
.chip {
  position: relative;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--field-line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-2);
}
.chip:hover { background: var(--surface-2); }
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: var(--r-pill);
}
.chip__text { position: relative; z-index: 1; }
.chip.is-active .chip__text { color: #fff; }

/* ==========================================================================
   Auth
   ========================================================================== */

.auth { min-height: 100vh; display: flex; }

.auth__brandside {
  flex: 1;
  background: var(--ink);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.auth__pitch { max-width: 420px; }
.auth__title {
  font-size: 38px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.auth__body {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  margin: 0;
}
.auth__colophon {
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
  letter-spacing: .02em;
}

.auth__formside {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  min-width: 0;
}
.auth__form { width: 100%; max-width: 400px; }
.auth__heading {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.auth__sub { color: var(--muted); margin: 0 0 28px; }
.auth__sub--tight { margin-bottom: 26px; }
.auth__switch {
  text-align: center;
  color: var(--muted);
  margin: 22px 0 0;
  font-size: 14px;
}

.auth__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
}
.auth__error svg { flex: none; margin-top: 1px; }

.field:disabled,
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.auth__pending { text-align: center; }
.auth__pending-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--warn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.auth__pending-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.auth__pending-body {
  color: var(--muted);
  margin: 0 0 26px;
  line-height: 1.6;
}
.auth__status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.auth__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
}

.row-2 { display: flex; gap: 12px; margin-bottom: 16px; }
.row-2 > * { flex: 1; min-width: 0; }

/* ==========================================================================
   Shell — sidebar, topbar, main
   ========================================================================== */

.shell { display: flex; min-height: 100vh; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.01em;
  color: #fff;
}
.brand--sidebar { gap: 10px; padding: 4px 8px 24px; }
.brand--sidebar .brand__name { font-size: 17px; }
.brand--mobile .brand__name { font-size: 15px; }

.sidebar {
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  height: 100vh;
  width: var(--sidebar-w);
  flex: none;
  position: sticky;
  top: 0;
}
.sidebar--drawer {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--drawer-w);
  z-index: 60;
  transition: transform .25s ease;
  box-shadow: var(--shadow-drawer);
  transform: translateX(-100%);
}
.sidebar--drawer.is-open { transform: translateX(0); }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 56, .5);
  z-index: 55;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 3px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .82);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); }
.nav-item:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.nav-item__fill {
  position: absolute;
  inset: 0;
  background: rgba(0, 93, 170, .16);
  border-radius: var(--r-md);
}
.nav-item__bar {
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.nav-item > svg, .nav-item__text { position: relative; z-index: 1; }
.nav-item__text { white-space: nowrap; }
.nav-item.is-active { color: #fff; }

.account-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.account-btn:hover { background: rgba(255, 255, 255, .09); }
.account-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.account-btn__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.account-btn__name {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}
.account-btn__meta { color: rgba(255, 255, 255, .5); font-size: 12px; }

.sidebar__colophon {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, .34);
  margin-top: 14px;
}

.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 13px 16px;
}
.mobile-bar__toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  padding: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 230, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-top);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0;
  line-height: 1.2;
}
.topbar__sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  padding: 32px;
}

/* Two-column screen layout (form + sticky summary). */
.split {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.split__main {
  flex: 2;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split__side {
  flex: 1;
  min-width: 300px;
  position: sticky;
  top: 96px;
}
.split__side--stack {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Book — address autocomplete, parcels, tiers, service level
   ========================================================================== */

.autocomplete { position: relative; margin-bottom: 14px; }
.autocomplete__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}
.autocomplete__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  color: inherit;
}
.autocomplete__option:hover { background: var(--sand); }
.autocomplete__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete__detail {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete__note {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.autocomplete__note--error { color: var(--danger); }

.autocomplete__credit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--muted-2);
}
.autocomplete__credit strong { font-weight: 700; color: var(--text-2); }

.addr-confirm {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--blue-pale);
  border: 1px solid var(--blue-pale-line);
  border-radius: var(--r-lg);
  padding: 13px 15px;
  margin-bottom: 14px;
}
.addr-confirm__label { font-weight: 700; font-size: 14px; }
.addr-confirm__meta { color: var(--blue-pale-soft); font-size: 12.5px; margin-top: 1px; }
.addr-confirm__change {
  cursor: pointer;
  color: var(--blue-pale-soft);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
}
.addr-confirm__change:hover { text-decoration: underline; }

.parcels { display: flex; flex-direction: column; gap: 12px; }
.parcel {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  background: var(--surface-2);
}
.parcel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.parcel__num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.parcel__desc { flex: 1; min-width: 0; }
.parcel__dims {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.parcel__dim { flex: 1; min-width: 62px; }
.parcel__dim--qty { flex: none; width: 58px; }
.parcel__vol {
  margin-left: auto;
  text-align: right;
  padding-bottom: 2px;
}
.parcel__vol-value { font-size: 15px; font-weight: 800; color: var(--text); }

.parcels__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.parcels__total { display: flex; align-items: baseline; gap: 10px; }
.parcels__total-label { font-size: 13px; color: var(--muted); }
.parcels__total-value { font-size: 20px; font-weight: 800; color: var(--text); }

/* Size tier table ---------------------------------------------------------- */
.tiers {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tiers__head, .tiers__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}
.tiers__head {
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.tiers__row {
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 13px;
}
/* Marks the computed tier. Deliberately not a dot: a dot in the first column
   reads as a chosen radio, and these rows are not selectable. */
.tiers__row.is-active {
  background: var(--blue-pale);
  box-shadow: inset 3px 0 0 var(--blue);
}
.tiers__row:last-child { border-bottom: 0; }
/* c1 fits the longest tier name and the "Your size" tag side by side; c3 fits
   "$150 + $100/m³" on one line. Both are nowrap, so the flex basis has to be
   right or the row grows a second line. */
.tiers__c1 { flex: 1.6; min-width: 138px; display: flex; align-items: center; gap: 8px; }
.tiers__c2 { flex: .9; min-width: 62px; color: var(--text-2); }
.tiers__c3 {
  flex: 1.25;
  min-width: 96px;
  text-align: right;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.tiers__c4 { flex: 1.1; min-width: 78px; text-align: right; color: var(--text-2); }
.tiers__head .tiers__c3 { font-weight: 700; color: inherit; }
.tiers__head .tiers__c2, .tiers__head .tiers__c4 { color: inherit; }
.tiers__tag {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tiers__name { font-weight: 700; color: var(--text); white-space: nowrap; }
.tiers__footnote { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); }

.tiers-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 20px 0 8px;
}
.tiers-intro__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.tiers-intro__note { margin: 0; font-size: 12px; color: var(--muted-2); }
.tiers-intro__note--solo { margin: 2px 0 12px; }

.summary-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-pale-line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--blue-pale-ink);
}

/* Add-on row --------------------------------------------------------------- */
.addon {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 14px 16px;
}
.addon__title { font-weight: 700; font-size: 14.5px; }
.addon__sub { color: var(--muted); font-size: 13px; }
.addon__price { font-weight: 800; font-size: 14.5px; color: var(--text); }

/* Service level ------------------------------------------------------------ */
.tiers-choice { display: flex; gap: 14px; flex-wrap: wrap; }
.service-card {
  flex: 1;
  min-width: 220px;
  padding: 18px;
  border-radius: 13px;
}
.service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.service-card__name { font-weight: 700; font-size: 15.5px; }
.service-card__desc {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.5;
}
.service-card__price {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.service-card__price span { color: var(--muted-2); font-weight: 500; }

.date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.date-head__area { font-size: 12px; color: var(--muted); }
.dates { display: flex; gap: 10px; flex-wrap: wrap; }
.date-pick {
  width: 84px;
  padding: 11px 6px;
  text-align: center;
  border-radius: 11px;
}
.date-pick .pick__ring { background: var(--blue-pale); }
.date-pick__inner { position: relative; z-index: 1; }
.date-pick__dow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.date-pick__day {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.date-pick__mon { font-size: 11px; color: var(--muted-2); text-transform: uppercase; }

.std-date {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-2);
}
.std-date strong { color: var(--text); }

/* Payment ------------------------------------------------------------------ */
.pay-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
}
.pay-option + .pay-option { margin-top: 12px; }
.pay-option__title { font-weight: 700; font-size: 14.5px; }
.pay-option__sub { color: var(--muted); font-size: 13px; }
.card-fields {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.card-fields__number { flex: 2; min-width: 180px; }
.card-fields__expiry { flex: 1; min-width: 90px; }
.card-fields__cvc    { flex: 1; min-width: 80px; }

/* ==========================================================================
   Quote
   ========================================================================== */

.quote-grid { display: flex; gap: 14px; flex-wrap: wrap; }
.quote-grid__col { flex: 1; min-width: 200px; }
.quote-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: flex-end;
}
.quote-volume { width: 180px; }
.quote-install {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-md);
}
.quote-install__title { font-weight: 700; font-size: 14px; }
.quote-install__sub { color: var(--muted); font-size: 12.5px; }

.card__h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.card__p  { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.card__h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; }

/* ==========================================================================
   Service area
   ========================================================================== */

.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-flat);
}
.map-card__head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.map-card__title { margin: 0; font-size: 16px; font-weight: 800; }
.map-card__sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.map-card svg { display: block; background: #EAF1F5; }

.area-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.area-result__swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.area-result__zone { font-weight: 800; font-size: 14.5px; }
.area-result__pct { color: var(--muted); font-size: 13px; }
.area-miss {
  margin-top: 12px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
}

.zones { display: flex; flex-direction: column; gap: 12px; }
.zone { display: flex; gap: 12px; align-items: flex-start; }
.zone__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-top: 2px;
  flex: none;
}
.zone__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.zone__name { font-weight: 700; font-size: 14px; }
.zone__pct {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.zone__regions {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  line-height: 1.45;
}

/* ==========================================================================
   Deliveries
   ========================================================================== */

.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 22px;
}
.flash__close {
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  background: none;
  border: 0;
  padding: 0 4px;
}

.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat {
  flex: 1;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 20px;
}
.stat__value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 6px;
}

.filters { display: flex; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }

.delivery-list { display: flex; flex-direction: column; gap: 12px; }
.delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-row);
}
.delivery__name { flex: 2; min-width: 180px; }
.delivery__title { font-weight: 700; font-size: 15px; }
.delivery__meta { color: var(--muted); font-size: 13px; margin-top: 1px; }
.delivery__col { flex: 1; min-width: 90px; }
.delivery__col-value { font-size: 14px; font-weight: 600; margin-top: 2px; }
.delivery__price { flex: none; text-align: right; min-width: 80px; }
.delivery__price-value { font-size: 15px; font-weight: 800; margin-top: 2px; }
.delivery__actions { flex: none; display: flex; gap: 8px; }
.delivery__label {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--field-line);
  border-radius: var(--r-xl);
}

/* ==========================================================================
   Tracking
   ========================================================================== */

.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.track-head__name { font-weight: 800; font-size: 18px; }
.track-head__meta { color: var(--muted); font-size: 13.5px; }
.track-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.track-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.track-map {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-flat);
}
.track-map svg { display: block; background: #E8ECEE; }
.track-map__route { animation: march 1.1s linear infinite; }
.track-map__pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: podPulse 2s ease-out infinite;
}

.track-stats { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.track-stat {
  flex: 1;
  min-width: 130px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px;
}
.track-stat__label { letter-spacing: .08em; }
.track-stat__value { font-size: 22px; font-weight: 800; margin-top: 4px; }

.driver { display: flex; align-items: center; gap: 13px; }
.driver__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.driver__name { font-weight: 700; font-size: 15.5px; }
.driver__vehicle { color: var(--muted); font-size: 13px; }
.driver__actions { display: flex; gap: 10px; margin-top: 16px; }
.driver__actions .btn { flex: 1; padding: 11px; font-size: 13.5px; }

.timeline__item { display: flex; gap: 14px; }
.timeline__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
}
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--check-line);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--check-line);
}
.timeline__line {
  flex: 1;
  width: 2px;
  background: var(--line-rail);
  min-height: 22px;
}
.timeline__item.is-done .timeline__dot {
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline__item.is-done .timeline__line { background: var(--blue); }
.timeline__item:last-child .timeline__line { display: none; }
.timeline__body { padding-bottom: 16px; }
.timeline__label { font-weight: 700; font-size: 14px; line-height: 1.35; }
.timeline__time { color: var(--muted-2); font-size: 12.5px; margin-top: 2px; }

/* ==========================================================================
   Pickup locations, users, account
   ========================================================================== */

.narrow      { max-width: 760px; }
.narrow--md  { max-width: 860px; }
.narrow--sm  { max-width: 620px; }

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.toolbar--split {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.toolbar__note { margin: 0; color: var(--muted); font-size: 14px; }

.locations { display: flex; flex-direction: column; gap: 14px; }
.location {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px 22px;
}
.location__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.location__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.location__name { font-weight: 700; font-size: 15.5px; }
.location__addr { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.location__hours { color: var(--muted-2); font-size: 13px; margin-top: 3px; }

.user-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-softer);
}
.user:last-child { border-bottom: 0; }
.user__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--surface-4);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.user__id { flex: 2; min-width: 140px; }
.user__name { font-weight: 700; font-size: 14.5px; }
.user__email { color: var(--muted); font-size: 13px; }
.user__role {
  flex: 1;
  min-width: 110px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.user__status { font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-2xl); }

.account__head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-softer);
}
.account__avatar {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.account__name { font-weight: 800; font-size: 19px; }
.account__meta { color: var(--muted); font-size: 14px; }
.account__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-softer);
}
.account__row:last-of-type { border-bottom: 0; }
.account__row dt { color: var(--muted); }
.account__row dd { margin: 0; font-weight: 600; }
.account__row dd.is-ok { font-weight: 700; color: var(--ok); }

/* ==========================================================================
   Modals
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, .55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay--docs {
  background: rgba(15, 36, 56, .55);
  z-index: 110;
  align-items: flex-start;
  overflow: auto;
}

.modal {
  background: var(--surface);
  border-radius: var(--r-3xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
}
.modal__head {
  background: var(--ink);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal__title { font-weight: 700; font-size: 15px; }
.modal__sub { font-size: 12px; color: rgba(255, 255, 255, .5); }
.modal__close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, .7);
  background: none;
  border: 0;
  padding: 0 4px;
}
.modal__close:hover { color: #fff; }
.modal__body { padding: 24px; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-softer);
  font-size: 14px;
}
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }

.pod-proof { display: flex; gap: 14px; margin-top: 18px; }
.pod-proof__photo,
.pod-proof__sign {
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pod-proof__photo {
  background: var(--surface-4);
  border: 1px dashed var(--check-line);
  color: var(--muted-2);
}
.pod-proof__sign {
  background: var(--surface-3);
  border: 1px solid var(--line);
  padding: 10px;
}
.pod-proof__caption { font-size: 12px; font-weight: 600; }
.pod-proof__sign .pod-proof__caption { color: var(--muted-2); }

/* Confirmation takeover ---------------------------------------------------- */
.success {
  position: fixed;
  inset: 0;
  background: var(--sand);
  z-index: 100;
  overflow: auto;
}
.success__bar {
  background: var(--ink);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.success__bar-name { font-weight: 800; font-size: 16px; }
.success__bar-note {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.success__inner { max-width: 640px; margin: 0 auto; padding: 56px 24px 72px; }
.success__hero { text-align: center; margin-bottom: 34px; }
.success__check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ok-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.success__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-top: 20px;
}
.success__body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 10px auto 0;
  max-width: 460px;
}
.success__body strong { color: var(--text); }
.success__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 8px 24px;
  box-shadow: var(--shadow-card);
}
.success__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.success__row:last-child { border-bottom: 0; }
.success__row dt { color: var(--muted); }
.success__row dd { margin: 0; font-weight: 700; }
.success__row dd.is-total { font-weight: 800; font-size: 17px; }
.success__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.success__actions + .success__actions { margin-top: 12px; }
.success__actions .btn { flex: 1; min-width: 200px; }

/* Printable documents ------------------------------------------------------ */
.doc { width: 100%; max-width: 470px; }
.doc--invoice { max-width: 540px; }
.doc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.doc__bar-title { color: #fff; font-weight: 700; font-size: 15px; }
.doc__bar-actions { display: flex; gap: 8px; }
.doc__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-sm);
  border: none;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.doc__btn--outline {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
}
.doc__sheets { display: flex; flex-direction: column; gap: 16px; }

.label-sheet {
  background: #fff;
  border-radius: var(--r-sm);
  padding: 22px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.label-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #15202B;
  padding-bottom: 12px;
}
.label-sheet__brand { display: flex; align-items: center; gap: 9px; }
.label-sheet__brand-name { font-weight: 800; font-size: 16px; color: #15202B; }
.label-sheet__service {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #15202B;
  border: 1.5px solid #15202B;
  padding: 4px 8px;
  border-radius: 4px;
}
.label-sheet__addresses {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #E2E2E2;
}
.label-sheet__addr { flex: 1; min-width: 0; }
.label-sheet__addr-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
}
.label-sheet__addr-name {
  font-size: 13px;
  font-weight: 700;
  color: #15202B;
  margin-top: 3px;
}
.label-sheet__addr-line { font-size: 12px; color: #555; }
.label-sheet__parcel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #E2E2E2;
}
.label-sheet__parcel-desc { font-size: 14px; font-weight: 700; color: #15202B; }
.label-sheet__parcel-dims { font-size: 12px; color: #555; }
.label-sheet__seq {
  font-size: 12px;
  font-weight: 800;
  color: #15202B;
  background: #F0F0F0;
  padding: 5px 11px;
  border-radius: 5px;
  white-space: nowrap;
}
.label-sheet__code-wrap { padding-top: 16px; }
.label-sheet__code {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .2em;
  margin-top: 8px;
  color: #15202B;
}

.invoice { background: #fff; border-radius: var(--r-md); padding: 34px; }
.invoice__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.invoice__brand { display: flex; align-items: center; gap: 10px; }
.invoice__brand-name { font-weight: 800; font-size: 18px; color: #15202B; }
.invoice__brand-sub { font-size: 12px; color: #777; }
.invoice__type {
  font-size: 22px;
  font-weight: 800;
  color: #15202B;
  letter-spacing: -.01em;
}
.invoice__no { font-size: 13px; color: #777; margin-top: 2px; }
.invoice__parties {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 13px;
}
.invoice__party-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 4px;
}
.invoice__party-name { font-weight: 700; color: #15202B; }
.invoice__party-line { color: #555; max-width: 240px; }
.invoice__lines {
  border-top: 2px solid #15202B;
  border-bottom: 1px solid #E2E2E2;
}
.invoice__lines-head {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #999;
  border-bottom: 1px solid #E2E2E2;
}
.invoice__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 13.5px;
  color: #333;
}
.invoice__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
}
.invoice__total-label { font-size: 15px; font-weight: 800; color: #15202B; }
.invoice__total-value {
  font-size: 26px;
  font-weight: 800;
  color: #15202B;
  letter-spacing: -.01em;
}
.invoice__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #E2E2E2;
  font-size: 11px;
  color: #999;
  text-align: center;
}

/* ==========================================================================
   Print — only the label / invoice sheet reaches the page
   ========================================================================== */

@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
  }
  @page { margin: 12mm; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 899px) {
  .topbar { padding: 14px 16px; }
  .main   { padding: 16px; }
  .split__side { position: static; }
  .auth { flex-direction: column; }
  .auth__brandside { padding: 40px 24px; gap: 28px; }
  .auth__title { font-size: 30px; }
  .script { font-size: 42px; }
  .auth__formside { padding: 32px 24px 48px; }
  .success__inner { padding: 36px 20px 56px; }
  .success__title { font-size: 26px; }
}

@media (max-width: 560px) {
  .row-2 { flex-wrap: wrap; }
  .row-2 > * { min-width: 100%; }
  .delivery__price { text-align: left; }
  .invoice { padding: 22px; }
  .overlay, .overlay--docs { padding: 12px; }
}

/* ==========================================================================
   3PL booking, invoices and spreadsheet import
   ========================================================================== */

.tier-badge {
  flex: none; font-size: 11.5px; font-weight: 800; color: var(--blue);
  background: var(--blue-pale); border-radius: var(--r-pill); padding: 4px 10px;
}
.parcel__install {
  width: auto; flex: none;
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-end;
  padding: 9px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700;
}
.date-pick--next .date-pick__mon { white-space: nowrap; font-size: 10.5px; }
.panel__error {
  margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(178, 59, 54, .18); color: #FFD9D6; font-size: 13px; font-weight: 600;
}
.note--error { background: var(--danger-bg); color: var(--danger); padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 14px; }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; }
.zone-map { height: 440px; background: var(--surface-3); }
.zone-map__canvas { width: 100%; height: 100%; }
.zone-map__error { padding: 40px; text-align: center; color: var(--muted); }

/* -- Import -------------------------------------------------------------- */
.import { display: grid; gap: 16px; max-width: 1100px; }
.import-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.import-steps__step {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.import-steps__n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-4); font-size: 12px;
}
.import-steps__step.is-on { color: var(--blue); border-color: var(--blue); }
.import-steps__step.is-on .import-steps__n { background: var(--blue); color: #fff; }
.import-steps__step.is-done .import-steps__n { background: var(--ok); color: #fff; }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 36px 20px; margin-top: 14px; cursor: pointer;
  border: 2px dashed var(--dash-line); border-radius: var(--r-2xl); background: var(--surface-2); text-align: center;
}
.drop:hover { background: var(--blue-pale); }
.drop__title { font-weight: 800; font-size: 16px; color: var(--blue); }
.drop__sub { font-size: 13px; color: var(--muted); }
.map-table { display: grid; gap: 6px; margin: 18px 0; }
.map-row {
  display: grid; grid-template-columns: 220px 260px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--line-soft);
}
.map-row__ours { font-weight: 700; font-size: 14px; }
.map-row__hint { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.map-row__sample { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req { color: var(--danger); }
.check-line { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.import-total { font-size: 22px; font-weight: 800; }
.import-total span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tbl-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-xl); }
.imp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.imp-table th {
  text-align: left; padding: 10px 12px; background: var(--surface-2); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); border-bottom: 1px solid var(--line);
}
.imp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.imp-table .num { text-align: right; white-space: nowrap; }
.imp-table tr.is-error td { background: var(--danger-bg); }
.imp-table tr.is-off td { opacity: .5; }
.imp-meta { display: block; font-size: 12px; color: var(--muted); }
.imp-err { color: var(--danger); font-weight: 600; font-size: 12.5px; }

@media (max-width: 760px) {
  .map-row { grid-template-columns: 1fr; gap: 4px; }
}
