/* ==========================================================================
   Bulk Off — Design tokens
   Reference: Lyft / Uber / DoorDash. White ground, one accent, tight type.
   ========================================================================== */

:root {
  /* Ground — pure white, no page-level tint. Warmth comes from the accent on
     floating surfaces, not from a wash behind them (2026-09-30 brand refresh). */
  --ink: #14161A;
  --ink-soft: #5B6472;
  --line: #E5E7EB;
  --hair: #F1F2F4;
  --fill: #F7F7F8;
  --white: #FFFFFF;

  /* Accent — brand burnt orange, 2026-09-30 refresh.
     --accent: the mark, solid fills (buttons/chips), and large text (>=24px
     or >=18.66px bold) — 4.36:1 on white, enough for large text and for
     non-text UI contrast (borders, icons, focus rings), not for body text.
     --accent-text: same hue, darkened for body-size text/icons on white —
     links, star ratings, small badges — 5.7:1 on white. */
  --accent: #D34C1A;
  --accent-text: #B03F16;
  --accent-bright: #E2632E; /* hover/active on accent fills */
  --accent-rgb: 211, 76, 26;
  --page-bg: #F8F3EF; /* soft warm ivory — form insets only, never full-page */
  --shadow-float: 0 8px 28px rgba(211, 76, 26, 0.10), 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow-float-sm: 0 6px 18px rgba(211, 76, 26, 0.08);

  /* Status */
  --pine: #047857;   /* availability / "working today", 5.48:1 on white */
  --danger: #DC2626; /* 4.83:1 on white */

  /* Type — Figtree throughout: the brand mark's wordmark is set in it
     (logo-horizontal.svg, logo-stacked.svg), so the typeface and the logo
     stay one system rather than diverging. */
  --font-sans: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --app-max-width: 480px;
  --tap-min: 48px;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 28px;
  --space-6: 38px;
}

/* Reset ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  line-height: 1.15;
}

p { margin: 0 0 var(--space-3); }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img { max-width: 100%; display: block; }

/* Respect reduced motion --------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Home screen entrance — a quick, restrained stagger, not a looping effect.
   The logo's trailing dot arrives with its own small motion, echoing the
   "something in motion" idea behind the mark itself rather than being a
   generic fade tacked onto the page. Both are covered by the
   prefers-reduced-motion override above. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dotArrive {
  from { opacity: 0; transform: translate(10px, -8px) scale(0.4); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

.intro-1 { animation: riseIn 0.4s ease-out both; }
.intro-2 { animation: riseIn 0.4s ease-out 0.08s both; }
.intro-3 { animation: riseIn 0.4s ease-out 0.16s both; }
.intro-4 { animation: riseIn 0.4s ease-out 0.24s both; }

.logo-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dotArrive 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

/* Focus visibility --------------------------------------------------------*/
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Headings marked tabindex="-1" are focused only programmatically, to make
   screen readers announce a new screen/heading on transition — they're
   never reachable via keyboard Tab. Safari treats JS-driven .focus() as
   focus-visible more aggressively than other browsers, which paints a
   visible ring around plain text with no keyboard purpose behind it. The
   .focus() calls stay (still needed for screen readers); only the ring
   is suppressed here. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none;
}

/* App frame ---------------------------------------------------------------*/
.app-frame {
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
}

/* Primary button ------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-5);
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.28);
}

.btn-primary:hover { background: var(--accent-bright); }

/* Secondary button — bordered outline variant, for a dismiss/decline action
   alongside .btn-primary that shouldn't compete visually with it. */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 var(--space-5);
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover { background: var(--page-bg); }

/* Public quote page ------------------------------------------------------ */
.quote-summary-card {
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.quote-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

/* Search pill (Lyft-style) ---------------------------------------------- */
.search-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap-min);
  padding: 0 var(--space-4);
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.search-pill input {
  border: none;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.search-pill input:focus { outline: none; }

.search-pill:focus-within {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* City autocomplete (2026-09-30 location redesign) ------------------------*/
/* BUGFIX 2026-09-30: the .intro-N entrance animation (riseIn) sets a
   `transform`, and `transform: translateY(0)` at the end of the animation
   is still a real transform value (not `none`) — so every .intro-N field
   quietly becomes its own stacking context, permanently, once the
   animation ends. The city-suggestions dropdown's z-index: 30 only wins
   comparisons *inside* the city field's own stacking context; the next
   .field (category chips) and the submit button are separate, later
   stacking contexts, so they painted on top of the dropdown regardless of
   its z-index. Giving the city field itself an explicit z-index (not just
   its child) makes ITS stacking context win against those siblings. */
.city-field {
  position: relative;
  z-index: 40;
}

.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  list-style: none;
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}

.city-suggestion {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
}

.city-suggestion:hover,
.city-suggestion.is-active {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-text);
}

.city-suggestion-empty {
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* Hairline divider for lists --------------------------------------------*/
.divider {
  border: none;
  border-top: 1px solid var(--hair);
  margin: var(--space-3) 0;
}

/* Badges ------------------------------------------------------------------*/
.badge-available {
  color: var(--pine);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ==========================================================================
   Phase 2 — resident flow
   ========================================================================== */

/* Screen visibility -------------------------------------------------------*/
.screen { display: none; padding: var(--space-5) var(--space-4) 96px; }
.screen.is-active { display: block; }

.screen-header { margin-bottom: var(--space-5); }
.screen-header h1 { font-size: 1.75rem; }
.screen-subtitle { color: var(--ink-soft); font-size: 0.9375rem; }

.profile-topbar { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.profile-topbar .back-link { margin-bottom: 0; margin-right: auto; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min); min-width: 44px; min-height: 44px;
  border: none; border-radius: 50%; background: transparent; color: #D34C1A; cursor: pointer;
  margin-right: -12px; /* icon lines up with the card edge below */
}
.share-btn svg { transform: translateY(2px); } /* the arrow's visual centre sits high in its box */
.share-btn:hover { background: rgba(211, 76, 26, 0.08); }
.share-btn:focus-visible { outline: 2px solid #D34C1A; outline-offset: 2px; }
.share-note { font-size: 0.8125rem; font-weight: 600; color: #D34C1A; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-4);
  min-height: var(--tap-min);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Sticky bottom action bar -------------------------------------------------*/
.action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(20, 22, 26, 0.08);
  z-index: 20;
}

/* Timing toggle (Pickup now / Schedule ahead) -----------------------------*/
.timing-toggle {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.timing-option {
  flex: 1;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-3);
  text-align: left;
  cursor: pointer;
}

.timing-option[aria-pressed="true"] {
  border-color: var(--accent);
  border-width: 2px;
  background: rgba(var(--accent-rgb), 0.06);
}

.timing-option .label { font-weight: 700; display: block; }
.timing-option .hint { font-size: 0.8125rem; color: var(--ink-soft); }

/* Map ----------------------------------------------------------------------*/
#location-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  background: var(--fill);
}

.address-sheet {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--fill);
  border-radius: var(--radius-md);
}

.locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--tap-min);
  margin-bottom: var(--space-3);
  padding: 0 var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}

.locate-btn:hover { background: var(--fill); }
.locate-btn[disabled] { opacity: 0.6; cursor: default; }

.address-status {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--tap-min);
  padding: 0 var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
}

.btn-google:hover { background: var(--fill); }
.btn-google[disabled] { opacity: 0.6; cursor: default; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.label-optional { font-weight: 400; color: var(--ink-soft); }

.star-picker {
  display: flex;
  gap: var(--space-2);
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0;
}

.star-btn.is-filled { color: var(--accent); }

.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.pick-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.pick-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.address-sheet .address-line { font-weight: 700; }
.address-sheet .address-hint { font-size: 0.8125rem; color: var(--ink-soft); margin-top: var(--space-1); }

/* Sort bar ------------------------------------------------------------------*/
.sort-bar {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
}

.sort-chip {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.045);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sort-chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
}

/* Hauler result card --------------------------------------------------------*/
/* Hauler result cards — 2026-09-30 visual pass, moving from a compact list
   row to a Booksy/Yelp-style hero-photo card: the photo bleeds to the
   card's own rounded edges (padding lives on the body below it, not the
   card itself), with a rating badge overlaid on the photo and the rest of
   the info stacked underneath. */
.hauler-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float-sm);
  margin-bottom: var(--space-4);
}

/* Cards now carry their own shadow/spacing, so the hairline <hr> the JS
   still inserts between them (unchanged markup) is hidden here rather than
   removed from app.js — one less place a rendering change could touch a
   functional selector. */
#results-list .divider { display: none; }

.hauler-card-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

/* The photo (or, absent one, a branded lettermark) — full card width, a
   fixed aspect ratio so the grid stays even whether or not a hauler has a
   real photo yet. */
.hauler-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hauler-card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Swipeable photo carousel on the results card: profile picture first, then
   gallery photos. Plain scroll-snap, so it swipes natively; vertical page
   scroll is unaffected and a tap still opens the profile. */
.hauler-card-carousel { position: absolute; inset: 0; }
.hauler-card-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hauler-card-track::-webkit-scrollbar { display: none; }
.hauler-card-track .hauler-card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
  -webkit-user-drag: none;
}
.card-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.card-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.15s;
}
.card-dot.is-active { background: #fff; transform: scale(1.25); }

.hauler-photo-mark {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.32);
  line-height: 1;
}

/* Rating badge overlaid on the photo itself — Booksy's pattern of a rating
   shown directly on the image rather than as separate text below. Dark
   semi-transparent background so it stays readable against any photo. */
.rating-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20, 22, 26, 0.78);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 2px;
}
.rating-badge .stars { color: #FDBA74; }
.rating-badge .google-rating-tag { color: rgba(255,255,255,0.75); font-style: italic; font-size: 0.9em; }

.hauler-card-body { padding: var(--space-4); }

.hauler-card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.hauler-name { font-weight: 700; font-size: 1.0625rem; margin-bottom: 2px; }

/* Full "★ 4.8 (12 reviews)" line — Yelp's pattern — shown under the name
   whenever there's an actual review count to back it up (the .rating-badge
   on the photo above covers the at-a-glance case either way). */
.hauler-rating-line {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.hauler-rating-line .stars { color: var(--accent-text); }
.hauler-rating-line .google-rating-tag { color: var(--ink-soft); font-style: italic; }

.hauler-meta { font-size: 0.8125rem; color: var(--ink-soft); }
.hauler-meta .stars { color: var(--accent-text); }
.hauler-price { text-align: right; flex-shrink: 0; font-weight: 700; }
.hauler-price .price-label { display: block; font-size: 0.6875rem; font-weight: 400; color: var(--ink-soft); }

/* Request shortcut — a secondary action alongside the main tap-to-view-profile
   button, for someone who's already decided and doesn't need the full profile
   first. Deliberately lighter-weight than .btn-primary so it doesn't compete
   with the actual CTA on the request/confirm screens elsewhere in the app. */
.hauler-request-btn {
  align-self: flex-start;
  margin: 0 var(--space-4) var(--space-4);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1.5px solid var(--accent-text);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}
.hauler-request-btn:hover { background: rgba(var(--accent-rgb), 0.12); }

.badge-booking { color: var(--ink-soft); font-weight: 700; font-size: 0.875rem; }
.badge-claimed {
  display: inline-block;
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: rgba(4, 120, 87, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pine);
}

.badge-claimed-hero {
  margin: var(--space-2) auto 0;
  width: fit-content;
}

.empty-state {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  color: var(--ink-soft);
}

/* Hauler profile ------------------------------------------------------------*/
/* Hauler profile — centered hero style ------------------------------------*/
.profile-hero-centered {
  text-align: center;
  padding-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.profile-avatar-large {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  overflow: hidden;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink-soft);
  box-shadow: var(--shadow-float-sm);
}

.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }

.profile-name { font-size: 1.75rem; margin-bottom: 4px; }

.profile-subtitle {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.profile-subtitle .stars { color: var(--accent-text); font-weight: 700; }

.google-rating-tag {
  color: var(--ink-soft);
  font-style: italic;
  font-size: 0.8em;
}

/* Hauler dashboard — profile preview hero. Mirrors .profile-hero-centered
   (what residents actually see) but boxed as a card and labeled, so it
   reads as a live preview rather than an editable field. */
.profile-preview-hero {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.profile-preview-label {
  margin: 0 0 var(--space-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.profile-preview-avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink-soft);
  box-shadow: var(--shadow-float-sm);
}

.profile-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-preview-name {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}

.profile-preview-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.profile-preview-subtitle .stars { color: var(--accent-text); font-weight: 700; }

.profile-preview-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.profile-gallery-row {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-3) 0;
  margin: var(--space-2) 0;
}

.profile-gallery-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: var(--fill);
}

/* Dashboard-only: editable gallery thumbnails get a remove button overlay.
   The public profile page (app.js) uses bare .profile-gallery-photo images
   with no wrapper, so this is additive and doesn't affect that display. */
.gallery-photo-item { position: relative; flex-shrink: 0; }

.gallery-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 22, 26, 0.72);
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.gallery-photo-remove:hover { background: var(--ink); }

/* Profile sections (Hours / About / Rates) — floating cards, matching the
   dashboard's request-card and the quote page's summary card so the same
   surface language runs through the whole app. */
.profile-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.hours-week-details { margin-top: var(--space-2); }

.hours-week-details summary {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-text);
  cursor: pointer;
  list-style: none;
}

.hours-week-details summary::-webkit-details-marker { display: none; }

.hours-week-list {
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: var(--fill);
  border-radius: var(--radius-md);
}

.hours-week-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 3px 0;
}

.hours-week-day { font-weight: 700; color: var(--ink); }
.hours-week-time { color: var(--ink-soft); }

.profile-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
}

.profile-about p { color: var(--ink); }

/* Written-reviews panel — the "Why I deliver" slot, restyled to Bulk Off's
   own palette instead of copying the reference's green banner. */
.reviews-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: var(--space-4);
  margin-top: var(--space-5);
}

.reviews-panel .profile-section-label { text-align: center; }

.reviews-panel .review-item { border-bottom-color: var(--line); }
.reviews-panel .review-item:last-child { border-bottom: none; }

.no-reviews-placeholder {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  padding: var(--space-3) 0;
}

/* Logo ----------------------------------------------------------------------*/
.brand-heading {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.brand-heading .brand-icon {
  width: 42px;
  height: 42px;
  margin-top: 4px;
  flex-shrink: 0;
}

.tagline-wrap {
  font-size: 2rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline-ink { color: var(--ink); }

.tagline-accent {
  color: var(--accent);
  display: inline-block;
  animation: tagAccentLand 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s both;
}

@keyframes tagAccentLand {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--accent);
}

.brand-icon-sm {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  color: var(--ink-soft);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-5);
}

.brand-lockup .brand-icon { width: 24px; height: 24px; }

/* Home search card — the ZIP + job-type + CTA block, as one floating white
   surface rather than form fields sitting bare on the page. Matches the
   mockup's home screen card (2026-09-30 redesign). */
.home-search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: var(--space-5);
  margin: var(--space-5) 0;
}

.home-search-card .field:last-of-type { margin-bottom: var(--space-4); }

/* ==========================================================================
   Homepage "How it works" chevron flow — 2026-10-10 (replaced benefits strip)
   ========================================================================== */
.hiw { margin: var(--space-2) 0 var(--space-5); }
.hiw-eyebrow { margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); }
.hiw-title { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hiw-sub { margin: 0 0 var(--space-4); font-size: 1rem; color: var(--ink-soft); }
.hiw-bar { display: block; width: 100%; height: auto; font-family: inherit; }
.hiw-steps { list-style: none; display: flex; gap: 4px; margin: 12px 0 var(--space-5); padding: 0; }
.hiw-steps li { flex: 1 1 0; min-width: 0; color: var(--accent); }
.hiw-steps svg { width: 28px; height: 28px; display: block; }
.hiw-steps span { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 800; line-height: 1.2; color: var(--accent-text); }
.hiw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hiw-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #E5E7EB; }
.hiw-row:first-child { border-top: 0; padding-top: 0; }
.hiw-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent, #D34C1A); color: #fff; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hiw-before { margin: 0 0 2px; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-soft); }
.hiw-now { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 800; }

/* ==========================================================================
   Benefits strip (used on hauler-login; restored 2026-10-10 after the home page switched to .hiw).
   Lives below the search card, not above it: returning/referred users never
   scroll past it to search.
   ========================================================================== */
.home-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-2) 0 var(--space-5);
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.benefit-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-text);
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.benefit-title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0 0 2px;
}

.benefit-text {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* Footer — resident home screen only. Deliberately not repeated on task
   screens (location, results, request) where it would compete with the
   sticky action bar, and not padded with fabricated links. */
.home-info-block { margin: var(--space-5) 0; }

.home-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-2);
}

.item-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.item-chip {
  background: var(--fill);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Hero truck — CSS/SVG animation, not a raster GIF: crisp at any size,
   near-zero file weight, and guaranteed to match the brand accent exactly
   rather than approximate clip art.
   ========================================================================== */
.hero-truck {
  display: flex;
  justify-content: center;
  margin: var(--space-5) 0;
}

.hero-truck-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.truck-body { fill: var(--accent); }
.truck-window { fill: var(--fill); }
.truck-hub { fill: var(--fill); }

.truck-body {
  animation: truckBob 2.4s ease-in-out infinite;
}

.truck-wheel {
  animation: wheelSpin 1.1s linear infinite;
}

@keyframes truckBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}

.truck-motion-lines rect {
  fill: var(--line);
  animation: motionLinePulse 1.4s ease-in-out infinite;
}

.truck-motion-lines rect:nth-child(2) { animation-delay: 0.15s; }
.truck-motion-lines rect:nth-child(3) { animation-delay: 0.3s; }

@keyframes motionLinePulse {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(-4px); }
}

/* ==========================================================================
   Marquee — auto-scrolling item ticker, edges fade rather than hard-cut
   ========================================================================== */
.marquee-track {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
  padding-right: var(--space-2);
  animation: marqueeScroll 18s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.how-it-works-row {
  display: flex;
  gap: var(--space-3);
}

.how-step {
  flex: 1;
  text-align: center;
}

.how-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
}

.how-step-text {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

#screen-home.is-active {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: var(--space-4);
}

.hauler-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding: var(--space-4);
  background: var(--fill);
  border-radius: var(--radius-md);
  text-align: center;
}

.hauler-cta-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.hauler-cta-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.hauler-cta-btn { width: 100%; }

.home-footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--hair);
}

.home-footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
}

.home-footer-trust a {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.home-footer-legal {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.home-footer-legal a {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-decoration: underline;
}

.home-footer-copyright {
  margin: var(--space-3) 0 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--ink-soft);
  opacity: 0.65;
}

/* ==========================================================================
   City landing pages (SEO)
   ========================================================================== */
.city-page { padding: var(--space-5) var(--space-4) var(--space-6); }

.city-page h1 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.city-page h2 {
  font-size: 1.125rem;
  margin: var(--space-6) 0 var(--space-3);
}

.city-page h3.city-q {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: var(--space-4) 0 var(--space-1);
}

.city-page p { color: var(--ink-soft); font-size: 0.9375rem; }

.city-cta {
  display: flex;
  width: 100%;
  margin: var(--space-4) 0 var(--space-2);
  text-decoration: none;
}

.city-list {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.city-list li { margin-bottom: var(--space-2); }
.city-list a { color: var(--accent-text); font-weight: 600; }

.city-loading, .city-empty { color: var(--ink-soft); font-size: 0.9375rem; }

.city-empty {
  background: var(--fill);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.city-empty p { margin: 0; }
.city-empty-sub { font-size: 0.8125rem; margin-top: var(--space-1) !important; }

.city-hauler-card {
  cursor: default;
  border-bottom: 1px solid var(--hair);
  flex-direction: row;
  gap: var(--space-3);
}
.city-hauler-card:last-child { border-bottom: none; }

.city-nearby { margin-top: var(--space-5); }

/* ==========================================================================
   Service tags
   ========================================================================== */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2);
}

.tag-row-center { justify-content: center; }

.tag-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), 0.045);
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-toggle {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.045);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}

.tag-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.item-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-select-chip {
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.045);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}

.item-select-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ==========================================================================
   Request media (photos / short video)
   ========================================================================== */
.media-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.media-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-video { font-size: 1.25rem; color: var(--ink-soft); }

.media-thumb-large {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--fill);
}

.media-fallback-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.rate-table { width: 100%; border-collapse: collapse; margin: var(--space-3) 0; }
.rate-table td { padding: var(--space-2) 0; border-bottom: 1px solid var(--hair); font-size: 0.9375rem; }
.rate-table td:last-child { text-align: right; font-weight: 700; }

.review-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--hair); }
.review-item .stars { color: var(--accent-text); font-size: 0.875rem; }
.review-item p { margin-top: var(--space-1); font-size: 0.9375rem; }

/* Forms ----------------------------------------------------------------------*/
.field { margin-bottom: var(--space-4); }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.field textarea { padding: var(--space-3); min-height: 96px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field[aria-invalid="true"] input,
.field[aria-invalid="true"] textarea {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: var(--space-1);
}

/* honeypot — visually and structurally hidden, still in tab order avoided */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Confirmation ----------------------------------------------------------------*/
.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.confirm-steps { margin: var(--space-4) 0; }
.confirm-steps li { margin-bottom: var(--space-2); font-size: 0.9375rem; }

/* Loading / skeleton ------------------------------------------------------*/
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* ==========================================================================
   Phase 3 — hauler dashboard
   ========================================================================== */

/* Hauler dashboard — visual pass 2026-09-30, matching the resident side's
   floating-card language (see .home-search-card / .profile-section) rather
   than the flat --fill panels this screen shipped with originally. */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-4);
}

.dash-header-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 2px;
}

.dash-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Working today + hours, grouped into one floating card instead of a flat
   grey block sitting bare on the page. */
.dash-status-card {
  margin: 0 var(--space-4) var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float-sm);
}

.link-btn {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--tap-min);
  padding: 0;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Persistent, always-visible entry point to the hauler guide — present on
   every tab, not just when the profile is incomplete, so it never gets
   buried once a hauler is fully set up. */
.guide-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-text);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.guide-link-btn:hover { background: rgba(var(--accent-rgb), 0.14); }

.working-today-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--fill);
  border-radius: var(--radius-md);
}

#working-today-label { font-weight: 700; }

#working-today-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-track {
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--line);
  position: relative;
  transition: background 0.15s;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#working-today-toggle[aria-checked="true"] .toggle-track { background: var(--pine); }
#working-today-toggle[aria-checked="true"] .toggle-thumb { transform: translateX(18px); }

@media (prefers-reduced-motion: reduce) {
  .toggle-track, .toggle-thumb { transition: none; }
}

.hours-block { margin: var(--space-3) 0 0; }

.hours-editor {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--fill);
  border-radius: var(--radius-md);
}

.hours-help {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.hours-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.hours-day-label {
  width: 34px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8125rem;
}

.hours-closed-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--ink-soft);
  flex-shrink: 0;
  white-space: nowrap;
}

.hours-row input[type="time"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.8125rem;
}

.hours-row .hours-sep {
  font-size: 0.75rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.hours-row.is-closed input[type="time"] { visibility: hidden; }

.profile-checklist {
  margin: var(--space-4) var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-md);
}

.profile-checklist-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #B91C1C;
  margin-bottom: 8px;
}

.profile-checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--white);
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: var(--tap-min);
}

.profile-checklist-item + .profile-checklist-item { margin-top: 8px; }

.profile-checklist-item:hover,
.profile-checklist-item:focus-visible { border-color: #DC2626; }

.profile-checklist-item .arrow {
  color: #DC2626;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-checklist-guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-text);
  text-decoration: none;
}
.profile-checklist-guide-link .arrow { font-weight: 700; }
.profile-checklist-guide-link:hover { text-decoration: underline; }

#dash-main { padding: var(--space-4) var(--space-4) 96px; }

.dash-tab { display: none; }
.dash-tab.is-active { display: block; }

.bottom-nav {
  position: fixed;
  /* 18px breathing room above the safe area — without the safe-area term
     this sits flush against the home indicator on notched iPhones (needs
     viewport-fit=cover in the page's viewport meta tag to read as nonzero;
     falls back to plain 18px on devices/browsers without a safe area). */
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px;
  z-index: 20;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24), 0 2px 6px rgba(0, 0, 0, 0.16);
  /* Four tabs (Requests/Profile/Reviews/Inventory) made this wide enough to
     touch or overflow the screen edges on a standard phone width once
     Inventory was added as a fifth item. Cap it so there's always at least
     16px of margin on each side, with horizontal scroll as a fallback
     rather than ever stretching edge-to-edge or clipping a tab. */
  max-width: calc(100vw - 32px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar { display: none; }

.nav-item {
  min-height: 44px;
  padding: 0 var(--space-3);
  border: none;
  background: none;
  color: var(--white);
  opacity: 0.6;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.nav-item.is-active { opacity: 1; background: rgba(255,255,255,0.15); }

/* Request cards ------------------------------------------------------------*/
.request-card {
  padding: var(--space-4);
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float-sm);
  margin-bottom: var(--space-4);
}

.request-card .request-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
}

.request-address-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 2px;
}

.request-directions-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.request-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--fill);
  color: var(--ink-soft);
  text-transform: capitalize;
}

.request-status.status-submitted { background: var(--fill); color: var(--accent-text); }
.request-status.status-accepted { background: var(--fill); color: var(--pine); }
.request-status.status-completed { color: var(--ink-soft); }
.request-status.status-declined { color: var(--danger); }
.request-status.status-quoted { background: var(--fill); color: var(--accent-text); }
.request-status.status-quote_accepted { background: var(--fill); color: var(--pine); }
.request-status.status-quote_declined { color: var(--danger); }

.request-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* Stacked status text + panels (quote sent / declined, expiry, revise) —
   full width at any viewport, unlike .request-actions above which is a
   flex row meant for same-sized buttons side by side. */
.request-status-block {
  margin-top: var(--space-3);
}

.request-status-block p { margin: 0; }

.request-actions button {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
}

.request-actions .btn-accept { border-color: var(--pine); color: var(--pine); }
.request-actions .btn-decline { border-color: var(--danger); color: var(--danger); }

/* Quote form -------------------------------------------------------------------*/
.quote-form {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--page-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.quote-form .form-group {
  margin-bottom: var(--space-2);
}

.quote-form .form-group:last-of-type {
  margin-bottom: var(--space-3);
}

.quote-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
}

.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.price-input {
  font-size: 1.125rem;
  font-weight: 600;
}

.notes-input {
  resize: vertical;
}

/* Rate row editor ------------------------------------------------------------*/
.rate-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  align-items: center;
}

.rate-row input { flex: 1; min-height: 44px; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rate-row input.price-input { flex: 0 0 90px; }

.rate-row .remove-rate-btn {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.25rem;
  cursor: pointer;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
}

.chip-btn {
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.chip-btn:hover { background: var(--page-bg); border-color: rgba(var(--accent-rgb), 0.3); }

.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--fill);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Shareable booking link (hauler dashboard)
   ========================================================================== */
.share-link-block {
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.share-link-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.share-link-help {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.share-link-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.8125rem;
  color: var(--ink);
}

/* ==========================================================================
   Toast — quick, non-blocking confirmation for rapid repeated entry
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(0);
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.toast.is-error { background: var(--danger); }

/* Consent checkboxes (Terms/Privacy agreement + SMS opt-in) ---------------
   Whole row is a <label>, so the clickable/tappable area is the entire row
   (48px+ tall via padding), not just the small checkbox square itself. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap-min);
  padding: var(--space-2) 0;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-row span {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}

.consent-row a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
}

/* Invalid state: text goes red + a quick shake to draw the eye up, no reload,
   no cleared data — just the same screen telling you what's missing. */
.field[aria-invalid="true"] .consent-row span {
  color: var(--danger);
}

.field[aria-invalid="true"] .consent-row {
  outline: 2px solid var(--danger);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

@keyframes consentShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.consent-row.shake {
  animation: consentShake 0.4s ease-in-out;
}

/* Legal pages (Terms of Service / Privacy Policy) -------------------------- */
.legal-content h2 {
  font-size: 1.125rem;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hair);
}

.legal-content h2:first-of-type {
  margin-top: var(--space-5);
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.legal-content li {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
}

.legal-content th, .legal-content td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.legal-content th {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-content a {
  color: var(--accent-text);
  font-weight: 600;
}

.legal-note {
  background: var(--fill);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

/* Home hero spacing: the header's 28px bottom margin, the subtitle's 12px and the
   card's 28px top margin stacked into a ~68px dead band. Trim to ~28px so the
   search button stays higher on the screen. Home screen only. */
#screen-home .screen-header { margin-bottom: 8px; }
#screen-home .home-search-card { margin-top: 8px; }

/* Insured chip: a credential, so green + solid border (service tags are orange + dashed). */
.tag-chip.tag-chip-insured {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(4, 120, 87, 0.08);
  border: 1.5px solid rgba(4, 120, 87, 0.45);
  color: var(--pine);
}
.tag-chip-insured svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---- Blog ---------------------------------------------------------------
   Card media has a soft watercolor-style wash behind the <img>, so a post
   still looks finished if its hero image is missing (img removes itself on
   404). Drop /blog/img/<slug>.webp in place and it covers the wash. */
.blog-list { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-5); }
.blog-card { display: block; color: inherit; text-decoration: none; }
.blog-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-md); }
.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 85%, rgba(231, 168, 58, 0.45), transparent 70%),
    radial-gradient(55% 70% at 85% 20%, rgba(120, 170, 215, 0.40), transparent 70%),
    radial-gradient(40% 50% at 60% 90%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    #FBF6EE;
}
.blog-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-kicker {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-text);
}
.blog-card-title { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 var(--space-2); }
.blog-card:hover .blog-card-title { color: var(--accent-text); }
.blog-card-excerpt { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; margin-bottom: var(--space-2); }
.blog-card-meta { color: var(--ink-soft); font-size: 0.8125rem; margin-bottom: 0; }

.blog-post { margin-top: var(--space-2); }
.blog-post-hero { margin-bottom: var(--space-2); }
.blog-post-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 var(--space-2); }
.blog-body { margin-top: var(--space-5); font-size: 1.0625rem; line-height: 1.65; }
.blog-body p { margin-bottom: var(--space-4); }
.blog-body h2 { font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.01em; margin: var(--space-6) 0 var(--space-3); }
.blog-lead { font-size: 1.1875rem; line-height: 1.55; }
.blog-list-plain { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.blog-list-plain li { position: relative; padding-left: 22px; }
.blog-list-plain li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
}
.blog-cta { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: var(--space-5); text-decoration: none; }
.blog-share-note { text-align: center; color: var(--ink-soft); font-size: 0.875rem; margin-top: var(--space-3); }

.blog-steps { margin: 0 0 var(--space-4); padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--space-3); }
.blog-steps li { position: relative; padding-left: 34px; counter-increment: step; }
.blog-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0.1em; width: 24px; height: 24px;
  border-radius: 50%; background: rgba(var(--accent-rgb), 0.12); color: var(--accent-text);
  font-size: 0.8125rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.blog-body a { color: var(--accent-text); font-weight: 700; }

/* Public profile gallery: swipeable carousel (scroll-snap) of tappable photos */
.profile-gallery-carousel {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.profile-gallery-carousel::-webkit-scrollbar { display: none; }
.profile-gallery-btn {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  -webkit-tap-highlight-color: transparent;
}
.profile-gallery-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* In-page photo viewer */
body.photo-viewer-open { overflow: hidden; }
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 11, 13, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-viewer-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 0;
}
.photo-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.photo-viewer-close,
.photo-viewer-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-viewer-close:hover, .photo-viewer-nav:hover { background: rgba(255, 255, 255, 0.26); }
.photo-viewer-close:focus-visible, .photo-viewer-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.photo-viewer-close { top: 12px; right: 12px; width: 44px; height: 44px; font-size: 30px; }
.photo-viewer-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 34px; padding-bottom: 4px; }
.photo-viewer-prev { left: 10px; }
.photo-viewer-next { right: 10px; }
.photo-viewer-counter {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  pointer-events: none;
}
@media (max-width: 520px) {
  .photo-viewer-nav { display: none; } /* swipe on phones */
  .photo-viewer-stage { padding: 64px 0; }
}

/* ---- 3-step request form ------------------------------------------------ */
.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; }

.req-progress { margin: 0 0 var(--space-5); }
.req-progress-label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 var(--space-2); }
.req-progress-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin: 0; padding: 0; }
.req-progress-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0 0; cursor: default; font: inherit; }
.req-progress-bar { display: block; height: 5px; border-radius: 999px; background: var(--line); margin-bottom: 6px; transition: background .2s ease; }
.req-progress-name { display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
.req-progress-item.is-current .req-progress-bar { background: var(--accent); }
.req-progress-item.is-current .req-progress-name { color: var(--ink); }
.req-progress-item.is-done .req-progress-bar { background: var(--accent-text); opacity: .55; }
.req-progress-item.is-done .req-progress-btn { cursor: pointer; }
.req-progress-item.is-done .req-progress-name { color: var(--ink); }
.req-progress-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.req-step { display: none; }
.req-step.is-active { display: block; animation: reqStepIn .18s ease-out both; }
.req-step.is-active.dir-back { animation-name: reqStepInBack; }
@keyframes reqStepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes reqStepInBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .req-step.is-active, .req-step.is-active.dir-back { animation: none; }
  .req-progress-bar { transition: none; }
}
.req-step-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 var(--space-4); outline: none; }
.req-next { width: 100%; margin-top: var(--space-2); }
.req-summary { font-size: 0.875rem; color: var(--ink-soft); background: var(--fill); border-radius: var(--radius-md); padding: 10px 12px; margin: 0 0 var(--space-4); line-height: 1.4; }

/* `.field label` (block, bold) was winning over `.consent-row`, stacking the
   checkbox above its text. Same specificity bump as the rule it overrides. */
.field label.consent-row { display: flex; font-weight: 400; margin-bottom: 0; }

.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.review-tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill, #F5F2EE);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.quote-next { text-align: left; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-weight: 400; }
.quote-next-title { font-size: 1rem; font-weight: 800; margin: 0 0 8px; }
.quote-next-list { margin: 14px 0 16px; }
.quote-next-list > div { margin: 0 0 10px; }
.quote-next-list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.quote-next-list dd { margin: 2px 0 0; font-size: 0.9375rem; }
.quote-call-btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; width: 100%; box-sizing: border-box; }
.quote-next-help { margin: 12px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.quote-call-btn[hidden] { display: none; }

/* Quote page: inline display:flex on the action row was beating [hidden], so
   Accept/Decline stayed visible after responding. Icon is centered here too. */
#quote-actions[hidden] { display: none !important; }
#quote-done .confirm-icon { margin-left: auto; margin-right: auto; }

/* Profile: top badges + grouped Services card ------------------------------ */
.tag-chip.tag-chip-urgent {
  padding: 5px 13px;
  font-size: 0.8125rem;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1.5px solid rgba(var(--accent-rgb), 0.35);
}
.tag-chip.tag-chip-insured { padding: 5px 13px; font-size: 0.8125rem; }
.profile-services .service-group { margin: 0 0 14px; }
.profile-services .service-group:last-child { margin-bottom: 0; }
.service-group-label { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.service-size { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.service-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.service-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: #F5F2EE;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.hauler-price.hauler-price-quote { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; line-height: 1.3; padding-top: 2px; }

/* Request form: hours-aware Today option */
.timing-option:disabled { opacity: 0.55; cursor: not-allowed; }
.field-note { margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }

.requests-group-head { margin: 18px 0 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.requests-group-head:first-child { margin-top: 0; }
.quote-cal-btn { margin-top: 10px; }

/* Accepted-job actions wrap so On my way / Add to calendar / Mark completed
   line up evenly. Buttons inside keep a uniform height. */
.request-actions { flex-wrap: wrap; }
.request-actions button, .request-actions .chip-btn { min-height: 40px; box-sizing: border-box; }

/* Hauler map teaser (home + hauler sign-up) -------------------------------*/
.ht-tile { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: 14px 14px 16px; margin: 0 0 var(--space-4); }
.ht-tile[hidden] { display: none; }
.ht-tile:hover { box-shadow: 0 10px 30px rgba(211, 76, 26, 0.16); }
.ht-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ht-map svg { display: block; width: 100%; height: auto; }
.ht-state { fill: #ECEEF1; stroke: #fff; stroke-width: 1; }
.ht-state.has { fill: var(--accent); }
.ht-state.l1 { fill-opacity: .42; } .ht-state.l2 { fill-opacity: .68; } .ht-state.l3 { fill-opacity: 1; }
.ht-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ht-title { margin: 0; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; }
.ht-go { font-size: 0.875rem; font-weight: 800; color: var(--accent-text); }


/* Membership card (dashboard) */
.membership-anchor { scroll-margin-top: 12px; }
.membership-card {
  margin: var(--space-4) var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
}
.membership-card.is-founding { background: #F0FDF4; border-color: #86EFAC; }
.membership-card.is-active { border-color: #86EFAC; }
.membership-card.is-warning { background: #FEF2F2; border-color: #FCA5A5; }
.membership-title { font-weight: 800; font-size: 0.9375rem; color: var(--ink); margin: 0 0 4px; }
.membership-text { font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.45; }
.membership-card .btn-primary, .membership-card .btn-secondary { width: 100%; }
.membership-list { font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 12px; padding-left: 18px; line-height: 1.5; }
.membership-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; color: var(--ink); margin-bottom: 12px; line-height: 1.4; }
.membership-agree input { margin-top: 3px; flex-shrink: 0; }
.membership-msg { font-size: 0.8125rem; color: #B91C1C; margin: 8px 0 0; min-height: 1em; }

/* Pricing block (hauler sign-up page) */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}
.pricing-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 6px; }
.pricing-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.pricing-price span { font-size: 0.9375rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.pricing-list { margin: 12px 0; padding-left: 18px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }
.pricing-note { font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 6px; line-height: 1.45; }
.pricing-founding { display: block; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: #F0FDF4; border: 1px solid #86EFAC; font-size: 0.8125rem; color: #166534; }
.pricing-founding[hidden] { display: none; }
.pricing-founding-head { display: block; font-size: 0.9375rem; font-weight: 800; margin-bottom: 2px; }
.pricing-founding-sub { display: block; font-weight: 500; line-height: 1.4; }

/* Heavy and special items (Margin Shield) -------------------------------------
   Profile editor, request-card chips, itemized quote form and the resident
   receipt. Same tokens and dashed-accent chip language as the service tags. */
.sc-list { display: flex; flex-direction: column; }

.sc-row {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--hair);
}
.sc-row:first-child { border-top: none; padding-top: 0; }

.sc-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 36px;
  margin-bottom: var(--space-2);
}

.sc-name { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }

.sc-amt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-text);
}
.sc-amt[hidden] { display: none; }
.sc-amt input {
  width: 76px;
  min-height: 36px;
  padding: 0 var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
}
.sc-amt input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.sc-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--fill);
  border-radius: var(--radius-pill);
}
.sc-seg-btn {
  flex: 1;
  min-height: 36px;
  padding: 0 var(--space-2);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sc-seg-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
}
.sc-seg-btn[aria-pressed="true"][data-mode="normal"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 22, 26, 0.12);
}
.sc-seg-btn[aria-pressed="true"][data-mode="wont_take"] { background: var(--ink); }

/* Request-card chips */
.sc-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.sc-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(var(--accent-rgb), 0.045);
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
}
.sc-chip-warn {
  background: rgba(220, 38, 38, 0.05);
  border-color: rgba(220, 38, 38, 0.4);
  color: var(--danger);
}

/* Itemized quote form */
.qf-warn {
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.06);
  color: var(--danger);
  font-size: 0.8125rem;
  font-weight: 600;
}
.qf-lines {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.qf-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.875rem;
}
.qf-line-label { flex: 1; min-width: 0; color: var(--ink); font-weight: 600; }
.qf-line-amt { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.qf-line-amt input { width: 84px; }
.qf-line-rm {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}
.qf-line-rm:hover { color: var(--danger); }
.qf-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.qf-total-amt { font-size: 1.125rem; font-weight: 800; color: var(--accent-text); }

/* Resident quote receipt */
.quote-lines { margin: var(--space-2) 0 0; padding: 0; }
.quote-lines[hidden] { display: none; }
.quote-lines > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.quote-lines dt { margin: 0; }
.quote-lines dd { margin: 0; font-weight: 700; color: var(--ink); }

/* Hauler's own items */
.sc-sub { margin: var(--space-4) 0 4px; padding-top: var(--space-3); border-top: 1px solid var(--hair); font-size: 0.9375rem; font-weight: 800; }
.sc-row-top .qf-line-rm { flex: 0 0 28px; margin-right: auto; margin-left: -4px; }
.sc-add { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.sc-add input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-family: inherit; font-size: 0.9375rem;
}
.sc-add input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12); }
.sc-add .chip-btn { min-height: 44px; color: var(--accent-text); border-color: rgba(var(--accent-rgb), 0.35); }

/* Qualifying question inputs */
.sc-q {
  width: 100%; margin-top: var(--space-2); min-height: 40px; padding: 0 var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.875rem;
}
.sc-q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12); }
.item-question[hidden] { display: none; }
.item-question { margin-bottom: var(--space-2); }

/* Job completion sheet --------------------------------------------------------*/
.cs-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 22, 26, 0.45);
  animation: cs-fade 0.18s ease-out;
}
.cs-sheet {
  width: 100%; max-width: var(--app-max-width);
  max-height: 92vh; overflow-y: auto;
  padding: var(--space-3) var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(20, 22, 26, 0.18);
  animation: cs-rise 0.22s ease-out;
}
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs-rise { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cs-overlay, .cs-sheet { animation: none; } }
.cs-grab { width: 40px; height: 4px; margin: 0 auto var(--space-3); border-radius: 2px; background: var(--line); }
.cs-title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.cs-sub { margin: 4px 0 var(--space-4); font-size: 0.875rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.cs-field { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.cs-field > span:first-child { display: block; margin-bottom: 6px; }
.cs-money {
  display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 var(--space-3);
  background: var(--fill); border: 1.5px solid transparent; border-radius: var(--radius-md);
}
.cs-money:focus-within { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.cs-money i { font-style: normal; font-weight: 800; color: var(--ink-soft); }
.cs-money input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: inherit; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.cs-label { margin: var(--space-4) 0 var(--space-2); font-size: 0.8125rem; font-weight: 700; }
.cs-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-size {
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--white);
  font-family: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.cs-size[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cs-note { margin: var(--space-3) 0 var(--space-3); font-size: 0.75rem; color: var(--ink-soft); }
.cs-skip {
  display: block; width: 100%; margin-top: var(--space-2); min-height: 44px;
  border: none; background: none; font-family: inherit; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.cs-skip:hover { color: var(--ink); }
.cs-line { margin: 0; font-size: 0.875rem; color: var(--ink); font-weight: 600; }

/* Earnings summary ------------------------------------------------------------*/
.earn-card {
  margin-bottom: var(--space-4); padding: var(--space-4);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float-sm);
}
.earn-seg { margin-bottom: var(--space-3); }
.earn-seg .sc-seg-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 26, 0.12); }
.earn-empty { margin: 0; font-size: 0.875rem; color: var(--ink-soft); }
.earn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.earn-stat { padding: var(--space-3); background: var(--fill); border-radius: var(--radius-md); }
.earn-val { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.earn-lbl { font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.earn-sub { font-size: 0.6875rem; color: var(--ink-soft); margin-top: 1px; }
.earn-stat:first-child .earn-val { color: var(--accent-text); }
.earn-sub-head { margin: var(--space-4) 0 var(--space-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.earn-item { display: flex; justify-content: space-between; gap: var(--space-3); padding: 7px 0; border-top: 1px solid var(--hair); font-size: 0.8125rem; }
.earn-item:first-child { border-top: none; }
.earn-item-name { font-weight: 700; color: var(--ink); }
.earn-item-meta { color: var(--ink-soft); text-align: right; }

/* Customer tags: soft fill, no border, one hue each ---------------------------*/
[data-c="indigo"] { --tg-bg: #ECEFFE; --tg-fg: #3B45B5; --tg-solid: #4F5BD5; }
[data-c="pine"]   { --tg-bg: #E3F4EC; --tg-fg: #0B6B4C; --tg-solid: #0F9467; }
[data-c="amber"]  { --tg-bg: #FFF1D6; --tg-fg: #8A5300; --tg-solid: #E39A12; }
[data-c="plum"]   { --tg-bg: #F4E8F6; --tg-fg: #7A2E86; --tg-solid: #A24BB0; }
[data-c="teal"]   { --tg-bg: #DFF3F3; --tg-fg: #0F6B6B; --tg-solid: #14A0A0; }
[data-c="rose"]   { --tg-bg: #FDE8EE; --tg-fg: #B0264D; --tg-solid: #DB3E6C; }
[data-c="sky"]    { --tg-bg: #E2F0FB; --tg-fg: #1F5E99; --tg-solid: #2F86D2; }
[data-c="slate"]  { --tg-bg: #ECEEF2; --tg-fg: #475063; --tg-solid: #6B768B; }

.ct-pill {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--tg-bg); color: var(--tg-fg); font-size: 0.6875rem; font-weight: 800; line-height: 1.6; white-space: nowrap;
}
.ct-pill-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }

.ct-top { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.ct-search {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--fill);
  font-family: inherit; font-size: 0.9375rem;
}
.ct-search:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12); }
.ct-manage[aria-expanded="true"] { background: var(--page-bg); border-color: rgba(var(--accent-rgb), 0.35); color: var(--accent-text); }

.ct-filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 var(--space-3); scrollbar-width: none; }
.ct-filters::-webkit-scrollbar { display: none; }
.ct-filter {
  flex: 0 0 auto; min-height: 34px; padding: 0 13px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--white);
  font-family: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.ct-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.ct-filter[data-c][aria-pressed="true"] { background: var(--tg-solid); border-color: var(--tg-solid); }

.ct-list { display: flex; flex-direction: column; gap: var(--space-2); }
.ct-row { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float-sm); overflow: hidden; }
.ct-head {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4);
  border: none; background: none; text-align: left; font-family: inherit; cursor: pointer;
}
.ct-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(var(--accent-rgb), 0.1); color: var(--accent-text); font-weight: 800;
}
.ct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-name { font-size: 0.9375rem; font-weight: 800; color: var(--ink); }
.ct-meta { font-size: 0.75rem; color: var(--ink-soft); margin-top: 1px; }
.ct-chev { font-size: 1.25rem; font-weight: 700; color: var(--ink-soft); }
.ct-body { padding: 0 var(--space-4) var(--space-4); }
.ct-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-contact .chip-btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.ct-billed { margin: var(--space-3) 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.ct-billed strong { color: var(--accent-text); font-size: 1rem; }
.ct-label { margin: var(--space-4) 0 var(--space-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.ct-note { margin: 0 0 var(--space-3); font-size: 0.8125rem; color: var(--ink-soft); }
.ct-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-toggle {
  min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--tg-bg); background: var(--tg-bg); color: var(--tg-fg);
  font-family: inherit; font-size: 0.8125rem; font-weight: 700; cursor: pointer; opacity: 0.75;
}
.ct-toggle[aria-pressed="true"] { background: var(--tg-solid); border-color: var(--tg-solid); color: var(--white); opacity: 1; }
.ct-toggle:disabled { cursor: default; }
.ct-history { display: flex; flex-direction: column; }
.ct-hist-row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2); align-items: center; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 0.8125rem; }
.ct-hist-row:first-child { border-top: none; }
.ct-hist-when { color: var(--ink-soft); font-weight: 600; }
.ct-hist-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ct-manager { margin-bottom: var(--space-3); padding: var(--space-4); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float-sm); }
.ct-mrow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--hair); }
.ct-mrow:first-of-type { border-top: none; }
.ct-add { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.ct-newname { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-pill); font-family: inherit; font-size: 0.9375rem; }
.ct-newname:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12); }
.ct-add .chip-btn { min-height: 44px; color: var(--accent-text); border-color: rgba(var(--accent-rgb), 0.35); }
.ct-swatches { display: flex; gap: 10px; margin-top: var(--space-3); }
.ct-swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--white); background: var(--tg-solid); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.ct-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

.cs-grid > * { min-width: 0; }
.cs-money input { width: 100%; }

/* Floating save pill (Profile) ------------------------------------------------*/
.savebar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 19; display: flex; align-items: center; gap: var(--space-3);
  max-width: calc(100vw - 32px); padding: 6px 6px 6px var(--space-4);
  background: var(--white); border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(20, 22, 26, 0.18), 0 1px 3px rgba(20, 22, 26, 0.1);
  animation: savebar-in 0.18s ease-out;
}
.savebar[hidden] { display: none; }
@keyframes savebar-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .savebar { animation: none; } }
.savebar-text { font-size: 0.8125rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.savebar[data-tone="ok"] { padding-right: var(--space-4); }
.savebar[data-tone="ok"] .savebar-text { color: var(--pine); }
.savebar[data-tone="ok"] .savebar-text::before { content: "\2713  "; }
.savebar[data-tone="err"] .savebar-text { color: var(--danger); }
.savebar-btn {
  min-height: 44px; padding: 0 var(--space-5); border: none; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--white); font-family: inherit; font-size: 0.875rem; font-weight: 800; cursor: pointer;
}
.savebar-btn:hover { background: var(--accent-bright); }
.savebar-btn[hidden] { display: none; }

.savebar.is-kb { display: none; }
/* Room under the last card so the pill never covers it at the bottom of the page. */
#tab-profile.has-savebar { padding-bottom: 72px; }

/* Review replies */
.rv-reply { margin-top: var(--space-2); padding: 10px 12px; background: var(--fill); border-left: 3px solid var(--accent); border-radius: 8px; }
.rv-reply p { margin-top: 2px; font-size: 0.9rem; }
.rv-reply-label { font-size: 0.75rem; font-weight: 600; color: var(--accent-text); letter-spacing: .02em; }
.rv-link { background: none; border: 0; padding: 10px 0; margin-right: 14px; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); cursor: pointer; min-height: 44px; }
.rv-reply .rv-link { padding: 6px 0 0; min-height: 0; }
.rv-del { color: var(--danger); }
.rv-ta { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; font: inherit; font-size: 1rem; resize: vertical; background: #fff; }
.rv-count { display: block; text-align: right; font-size: 0.75rem; color: #777; }
.rv-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rv-save { min-height: 44px; }
.rv-msg { font-size: 0.8125rem; color: var(--danger); }

/* Before / after photos */
.cs-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-photo-wrap { min-width: 0; }
.cs-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; border: 1.5px dashed var(--hair); border-radius: 12px; background: var(--fill); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--accent-text); cursor: pointer; overflow: hidden; padding: 0; }
.cs-photo.has-img { border-style: solid; }
.cs-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-photo-plus { font-size: 1.5rem; line-height: 1; }
.cs-photo-tag, .rw-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(20,22,26,.7); color: #fff; font-size: 0.75rem; font-weight: 600; }
.cs-photo.is-busy { opacity: .5; }
.cs-show { display: flex; align-items: center; gap: 10px; margin-top: 10px; min-height: 44px; font-size: 0.9375rem; }
.cs-show input { width: 20px; height: 20px; accent-color: var(--accent); }
.rw-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.rw-card { flex: 0 0 85%; max-width: 360px; scroll-snap-align: start; }
.rw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rw-shot { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--fill); cursor: pointer; }
.rw-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-cap { margin-top: 6px; font-size: 0.8125rem; color: #666; }

/* Route clustering */
.rc-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; padding: 8px 12px; background: var(--fill); border-radius: 10px; font-size: 0.8125rem; font-weight: 600; }
.rc-route { color: var(--accent-text); font-weight: 600; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.rc-hint { margin: 2px 0; font-size: 0.8125rem; font-weight: 600; color: var(--pine); }

/* Profile accordion ---------------------------------------------------------*/
.pf-strength { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float-sm); padding: 14px 16px; margin: var(--space-4) 0; }
.pf-strength-top { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 700; }
.pf-strength-top span:last-child { color: var(--accent-text); }
.pf-bar { height: 6px; border-radius: 3px; background: var(--fill); margin: 8px 0; overflow: hidden; }
.pf-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .3s ease; }
.pf-next { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px 0 0; font: inherit; font-size: 0.8125rem; color: var(--ink-soft); min-height: 32px; cursor: pointer; }
.pf-next:not(:disabled) { color: var(--accent-text); font-weight: 600; }
.pf-next:disabled { cursor: default; }
.pf-acc { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-float-sm); overflow: hidden; }
.pf-row { border-top: 1px solid var(--hair); }
.pf-acc > .pf-row:first-child, #profile-form > .pf-row:first-child { border-top: 0; }
.pf-row > summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.pf-row > summary::-webkit-details-marker { display: none; }
.pf-row[open] > summary { background: color-mix(in srgb, var(--accent) 5%, white); }
.pf-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--fill); color: var(--accent-text); display: grid; place-items: center; }
.pf-txt { flex: 1; min-width: 0; display: block; }
.pf-txt b { display: block; font-size: 0.96rem; font-weight: 700; }
.pf-sum { display: block; font-size: 0.8125rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-opt { margin-left: 6px; font-style: normal; font-size: 0.6875rem; font-weight: 700; color: var(--pine); background: color-mix(in srgb, var(--pine) 12%, white); padding: 2px 7px; border-radius: 999px; vertical-align: 1px; }
.pf-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pf-chev { flex: none; color: var(--ink-soft); transition: transform .2s ease; }
.pf-row[open] .pf-chev { transform: rotate(90deg); color: var(--accent-text); }
.pf-body { padding: 4px 16px 18px; }
.pf-help { font-size: 0.8125rem; color: var(--ink-soft); margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .pf-chev, .pf-bar i { transition: none; } }
/* Documents */
.doc-slots { display: grid; gap: 10px; }
.doc-card { border: 1px solid var(--hair); border-radius: 12px; padding: 12px; background: var(--white); }
.doc-card.has-doc { background: color-mix(in srgb, var(--pine) 4%, white); }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.9375rem; }
.doc-hint { font-size: 0.75rem; color: var(--ink-soft); }
.doc-ok { font-size: 0.6875rem; font-weight: 700; color: var(--pine); background: color-mix(in srgb, var(--pine) 12%, white); padding: 2px 8px; border-radius: 999px; }
.doc-file { margin: 6px 0 8px; font-size: 0.8125rem; color: var(--ink-soft); word-break: break-word; }
.doc-exp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8125rem; margin-bottom: 10px; }
.doc-exp { min-height: 40px; padding: 6px 10px; border: 1px solid var(--hair); border-radius: 8px; font: inherit; font-size: 0.875rem; }
.doc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-remove { background: none; border: 0; font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--danger); padding: 10px 6px; min-height: 44px; cursor: pointer; }
.doc-upload { width: 100%; margin-top: 10px; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--hair); border-radius: 12px; background: var(--fill); font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); cursor: pointer; }
.doc-plus { font-size: 1.25rem; line-height: 1; }
.doc-msg { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }

/* Motion ---------------------------------------------------------------------
   One easing family, 100-300ms, opacity/scale/translate only. */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); }
.dash-tab.is-active { animation: tab-in .24s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.profile-preview-tags .tag-chip { transition: opacity .18s var(--ease-in), transform .18s var(--ease-in); }
.profile-preview-tags .tag-chip.is-new { animation: chip-in .26s var(--ease-out); }
.profile-preview-tags .tag-chip.is-leaving { opacity: 0; transform: scale(.9); pointer-events: none; }
@keyframes chip-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
.profile-preview-hero { margin-bottom: var(--space-4); }
.doc-card, .sc-row, .rv-reply { animation: fade-up .24s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pf-row > summary { transition: background-color .2s var(--ease-out); }
.pf-row > summary:active { background: var(--fill); }
.pf-ico { transition: transform .2s var(--ease-out), background-color .2s var(--ease-out); }
.pf-row[open] > .summary .pf-ico, .pf-row[open] .pf-ico { transform: scale(1.06); }
.pf-chev { transition: transform .26s var(--ease-out), color .2s; }
.tag-toggle { transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s, transform .12s var(--ease-out); }
.tag-toggle:active, .btn-primary:active, .chip-btn:active, .doc-upload:active, .cs-size:active, .savebar-btn:active { transform: scale(.97); }
.btn-primary, .chip-btn, .doc-upload { transition: transform .12s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s; }
.pf-strength .pf-bar i { transition: width .45s var(--ease-out); }
.savebar { transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .dash-tab.is-active, .doc-card, .sc-row, .rv-reply, .profile-preview-tags .tag-chip.is-new { animation: none; }
  .profile-preview-tags .tag-chip, .pf-ico, .pf-chev, .tag-toggle, .btn-primary, .chip-btn, .doc-upload, .pf-bar i { transition: none; }
}
.review-meta { margin-top: 2px; font-size: 0.8125rem; color: var(--ink-soft); }

/* Customer history links + job flash */
.ct-hist-link { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; font: inherit; font-size: 0.8125rem; color: inherit; cursor: pointer; min-height: 44px; transition: background-color .15s var(--ease-out); }
.ct-hist-link:active { background: var(--fill); }
.ct-hist-link .ct-hist-what { color: var(--accent-text); font-weight: 600; text-align: left; }
.ct-toggle:disabled { opacity: 1; }
.request-card.is-flash { animation: card-flash 1.8s var(--ease-out); }
@keyframes card-flash { 0%, 55% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, white); } 100% { box-shadow: var(--shadow-float-sm); } }
@media (prefers-reduced-motion: reduce) { .request-card.is-flash { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, white); } }

/* Reviews: summary + fold */
.rv-summary { display: flex; align-items: baseline; gap: 10px; margin: 0 0 var(--space-3); font-size: 1rem; }
.rv-summary:empty { display: none; }
.rv-sum-score { font-size: 1.5rem; font-weight: 800; }
.rv-sum-score .stars { color: var(--accent-text); }
.rv-sum-count { font-size: 0.9375rem; color: var(--ink-soft); }
.rv-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin-top: var(--space-2); background: var(--fill); border: 0; border-radius: 999px; font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--accent-text); cursor: pointer; transition: background-color .2s var(--ease-out), transform .12s var(--ease-out); }
.rv-toggle:active { transform: scale(.98); }
.rv-chev { display: inline-flex; transition: transform .26s var(--ease-out); }
.rv-toggle[aria-expanded="true"] .rv-chev { transform: rotate(180deg); }
.rv-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .rv-chev, .rv-toggle { transition: none; } }

/* Resident request form: removable media + consent checkbox alignment */
.media-thumb { position: relative; transition: opacity .18s var(--ease-in, ease), transform .18s var(--ease-in, ease); }
.media-thumb.is-leaving { opacity: 0; transform: scale(.85); }
.media-thumb-remove { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 22, 26, .72); color: #fff; font: inherit; font-size: 1rem; line-height: 22px; text-align: center; cursor: pointer; }
.media-thumb-remove::after { content: ''; position: absolute; inset: -12px; }
/* A global `.field input` rule was stretching the checkbox to 48px tall, which
   pushed the box below the first line of text. Pin it to its drawn size. */
.field label.consent-row input[type="checkbox"], .consent-row input[type="checkbox"] {
  width: 22px; height: 22px; min-width: 22px; min-height: 0; padding: 0; margin: 0; flex: none;
}
.consent-row span { padding-top: 0; }

/* Hauler landing: hero price strip, kicker, FAQ */
.hero-price { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-5); }
.hero-price span, .hero-price a { font-size: 0.8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--ink); text-decoration: none; }
.hero-price span b { color: var(--accent-text); font-weight: 800; }
.hero-price a { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }
.hero-price a[hidden] { display: none; }
.hero-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 var(--space-3); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 16px; min-height: 48px; display: flex; align-items: center; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -1px; }
.faq details p { margin: 0; padding: 0 16px 14px; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.5; animation: fade-up .24s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .faq details p { animation: none; } .faq summary::after { transition: none; } }

.hero-includes { margin: calc(-1 * var(--space-3)) 0 var(--space-5); font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.5; }
.hero-includes b { color: var(--ink); }

/* Social links: dashboard inputs + public buttons */
.social-input { margin: 0 0 var(--space-3); }
.social-input label { display: block; font-size: 0.8125rem; font-weight: 700; margin-bottom: 4px; }
.social-error { margin: 6px 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--danger); }
.social-error[hidden] { display: none; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin-bottom: var(--space-4); background: none; box-shadow: none; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out), transform .12s var(--ease-out); }
.social-btn svg { color: var(--accent-text); flex: none; }
.social-btn:hover { border-color: rgba(var(--accent-rgb), .5); background: var(--page-bg); }
.social-btn:active { transform: scale(.97); }
.social-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .social-btn { transition: none; } }

/* Quote form buttons: Send Quote / Pass were unstyled browser buttons */
.quote-form .btn-accept, .quote-form .btn-decline { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); border-radius: var(--radius-pill); font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s var(--ease-out), background-color .2s; }
.quote-form .btn-accept { flex: 1; padding: 0 var(--space-5); background: var(--accent); color: var(--white); border: none; box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.28); }
.quote-form .btn-accept:hover { background: var(--accent-bright); }
.quote-form .btn-decline { padding: 0 var(--space-4); background: var(--white); color: var(--ink-soft); border: 1.5px solid var(--line); }
.quote-form .btn-accept:active, .quote-form .btn-decline:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .quote-form .btn-accept, .quote-form .btn-decline { transition: none; } }

/* Hauler page: Get started button + "What you get" accordion */
.hero-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: var(--space-4) 0 var(--space-5); }
.hero-cta { width: 100%; max-width: 360px; text-decoration: none; font-size: 1.0625rem; }
.hero-cta-note { font-size: 0.875rem; color: var(--ink-soft); }
.hero-cta-note a { color: var(--accent-text); font-weight: 700; }
.feat { display: flex; flex-direction: column; gap: 8px; }
.feat details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.feat details[open] { border-color: rgba(var(--accent-rgb), .35); box-shadow: var(--shadow-float-sm); }
.feat summary { cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 40px 12px 14px; min-height: 60px; list-style: none; position: relative; }
.feat summary::-webkit-details-marker { display: none; }
.feat summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.feat details[open] summary::after { transform: rotate(225deg); margin-top: -1px; }
.feat summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.feat-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); color: var(--accent-text); }
.feat-ico svg { width: 20px; height: 20px; }
.feat-head { display: flex; flex-direction: column; min-width: 0; }
.feat-title { font-weight: 800; font-size: 1rem; }
.feat-sub { font-size: 0.8125rem; color: var(--ink-soft); line-height: 1.35; }
.feat-body { padding: 0 14px 14px; animation: fade-up .24s var(--ease-out); }
.feat-body p { margin: 0 0 12px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.feat-body img { display: block; width: 100%; max-width: 390px; height: auto; margin: 0 auto; border-radius: 14px; border: 1px solid var(--hair); background: var(--fill); }
@media (prefers-reduced-motion: reduce) { .feat-body { animation: none; } .feat summary::after { transition: none; } }

/* Try-it section as a call to action */
.hero-try { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); border-radius: var(--radius-pill); }
.try-head { text-align: center; margin-bottom: var(--space-3); }
.try-pill { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: rgba(var(--accent-rgb), .1); color: var(--accent-text); }
.try-title { margin: 10px 0 4px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.try-sub { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }
#see-it .sim { border: 1.5px solid rgba(var(--accent-rgb), .45); box-shadow: var(--shadow-float); }

/* ==========================================================================
   City + county landing pages — SEO build (Oct 2026)
   ========================================================================== */
.cp-crumbs { margin: var(--space-3) 0 var(--space-4); }
.cp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.cp-crumbs li + li::before { content: "\203A"; margin-right: 4px; color: var(--ink-soft); }
.cp-crumbs a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.cp-crumbs a:hover { text-decoration: underline; }

.cp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-3) 0 0; padding: 0; }
.cp-chips li {
  font-size: 0.75rem; font-weight: 600; color: var(--ink);
  background: var(--fill); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 5px 10px;
}
.cp-chips li::before { content: "\2713"; color: var(--accent-text); margin-right: 5px; font-weight: 800; }

.cp-steps { list-style: none; counter-reset: cpstep; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-2); }
.cp-steps li {
  counter-increment: cpstep; position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) 52px;
  background: var(--fill); border-radius: var(--radius-md);
  color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.4;
}
.cp-steps li::before {
  content: counter(cpstep); position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center;
}
.cp-steps strong { color: var(--ink); }

.cp-items { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.cp-items li {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.9375rem; color: var(--ink);
}

.cp-note { font-size: 0.8125rem !important; line-height: 1.45; margin: var(--space-2) 0 0; }
.cp-note a, .cp-card h3 a { color: var(--accent-text); font-weight: 600; }

.cp-facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.cp-facts > div { padding: var(--space-3); border-bottom: 1px solid var(--line); }
.cp-facts > div:last-child { border-bottom: none; }
.cp-facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 3px; }
.cp-facts dd { margin: 0; font-size: 0.9375rem; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }

.cp-split, .cp-compare { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
.cp-card { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.cp-card h3 { font-size: 0.9375rem; margin: 0 0 4px; color: var(--ink); }
.cp-card p { margin: 0; }
.cp-card-accent { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.045); }

.cp-citygrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.cp-citycard {
  display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--line); border-radius: var(--radius-md); background: #fff;
  text-decoration: none; color: var(--ink);
}
.cp-citycard strong { font-size: 1rem; }
.cp-citycard span { font-size: 0.8125rem; color: var(--ink-soft); }
.cp-citycard:hover, .cp-citycard:focus-visible { border-color: var(--accent); }

.cp-faq { border-bottom: 1px solid var(--line); }
.cp-faq summary {
  list-style: none; cursor: pointer; padding: var(--space-3) 28px var(--space-3) 0; position: relative;
  font-weight: 700; font-size: 0.9375rem; color: var(--ink);
}
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--accent-text); }
.cp-faq[open] summary::after { content: "\2212"; }
.cp-faq p { margin: 0 0 var(--space-3); }

.city-count, .city-nearby-note { font-size: 0.8125rem !important; margin: 0 0 var(--space-2); }
.city-nearby-note { background: var(--fill); border-radius: var(--radius-md); padding: var(--space-3); }
.city-hauler-link { text-decoration: none; color: inherit; cursor: pointer; }
.city-hauler-link:hover .hauler-name { color: var(--accent-text); }
.city-card-cta { margin-top: var(--space-2); font-size: 0.8125rem; font-weight: 700; color: var(--accent-text); }
.city-hauler-card .hauler-price .price-label { white-space: nowrap; }

.cp-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  display: flex; justify-content: center;
}
.cp-sticky[hidden] { display: none; }
.cp-sticky .btn-primary { width: 100%; max-width: 460px; text-decoration: none; display: flex; justify-content: center; }
.city-page { padding-bottom: 96px; }

@media (min-width: 560px) {
  .cp-items { grid-template-columns: 1fr 1fr; }
  .cp-split, .cp-compare { grid-template-columns: 1fr 1fr; }
}

/* City hauler cards (list rows on the landing pages) */
a.city-hauler-card, .city-hauler-card {
  display: flex; flex-direction: row; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); margin-bottom: var(--space-2);
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: #fff; box-shadow: none; overflow: hidden;
}
a.city-hauler-link:hover, a.city-hauler-link:focus-visible { border-color: var(--accent); }
.city-hauler-card .hauler-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.875rem;
}
.city-hauler-card .hauler-avatar img { width: 100%; height: 100%; object-fit: cover; }
.city-hauler-card .hauler-info { flex: 1 1 auto; min-width: 0; }
.city-hauler-card .hauler-price { font-size: 1rem; min-width: 56px; }
.city-hauler-card .hauler-price .price-label { white-space: normal; }

/* Dashboard preview: social row and Services block mirror the public page. */
.profile-preview-hero #profile-preview-social,
.profile-preview-hero #profile-preview-hours,
.profile-preview-hero #profile-preview-services { text-align: left; margin-top: var(--space-4); }
.profile-preview-hero #profile-preview-social .social-row { justify-content: center; margin-bottom: 0; }
.profile-preview-hero #profile-preview-services .profile-services { margin-bottom: 0; }
.profile-preview-hero #profile-preview-hours .profile-hours { margin-bottom: 0; }

/* Cover photo (test phase) ---------------------------------------------------*/
.profile-cover { height: 160px; border-radius: var(--radius-lg); overflow: hidden; background: var(--fill); }
.profile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-hero-centered.has-cover { padding-top: 0; }
.profile-hero-centered.has-cover .profile-avatar-large,
.profile-preview-hero.has-cover .profile-preview-avatar {
  margin-top: -64px; position: relative; border: 4px solid var(--white); box-sizing: border-box;
}
.profile-preview-hero.has-cover #profile-preview-cover { margin-bottom: 0; }
.gallery-photo-cover {
  position: absolute; left: 6px; bottom: 6px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.6875rem; font-weight: 800; line-height: 1;
  padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 1px 4px rgba(20,22,26,.25);
}
.gallery-photo-cover.is-cover { background: var(--accent); color: #fff; }

/* Dumpster inventory: summary strip, due labels, quick actions ----------------*/
.dumpster-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-4); }
.dsum-stats { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.dsum-stat { display: flex; flex-direction: column; min-width: 64px; }
.dsum-stat strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.dsum-stat span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); }
.dsum-stat.is-alert strong { color: var(--danger); }
.dsum-stat.is-warn strong { color: var(--accent-text); }
.dsum-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.dsum-size { font-size: 0.8125rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.dsum-size.is-none { color: var(--ink-soft); font-weight: 600; }
.dumpster-due { margin: 0 0 var(--space-2); font-size: 0.8125rem; font-weight: 800; color: var(--accent-text); }
.dumpster-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
.dumpster-quick-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); margin-right: 2px; }
a.dumpster-link { display: inline-flex; align-items: center; text-decoration: none; }

/* Dumpster text options inside Text alerts ------------------------------------*/
.pf-subsection { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.pf-sub-title { margin: 0 0 4px; font-size: 0.9375rem; font-weight: 800; color: var(--ink); }
.dumpster-hint { margin: 0 0 var(--space-2); font-size: 0.8125rem; color: var(--ink-soft); }

/* Run a test haul */
.th-card { padding: var(--space-4); background: var(--fill); border-radius: var(--radius-lg); margin-bottom: var(--space-4); }
.th-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 6px; }
.th-title { margin: 0; font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.th-pill, .practice-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent); color: #fff; }
.practice-chip { margin-right: 6px; }
.th-sub { margin: 0 0 var(--space-3); font-size: 0.875rem; color: var(--ink-soft); line-height: 1.45; }
.th-btn { min-height: 44px; padding: 0 22px; border: none; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.th-btn:disabled { opacity: 0.6; cursor: default; }
.th-msg { margin: 8px 0 0; font-size: 0.8125rem; color: var(--danger); }
.request-card.is-practice { box-shadow: inset 3px 0 0 var(--accent), var(--shadow-float-sm); }
.practice-step { margin: 0 0 var(--space-2); padding: 8px 10px; border-radius: 10px; background: var(--fill); font-size: 0.8125rem; color: var(--ink); }

/* Revision form: a quiet secondary action, never the main call to action */
.quote-form.is-revision .btn-accept { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.quote-form.is-revision .btn-accept:hover { background: var(--fill); }

/* In-page notices (replace browser alert boxes) */
.notice-host { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.notice { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; width: 100%; max-width: 440px; padding: 14px 12px 14px 14px; background: var(--ink); color: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28); animation: notice-in .28s cubic-bezier(.2, .8, .2, 1); }
.notice.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.notice-icon { flex: none; width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 800; background: #2F9E62; color: #fff; }
.notice-warn .notice-icon { background: #D98A0B; }
.notice-error .notice-icon { background: #D1453B; }
.notice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice-title { font-size: 0.9375rem; font-weight: 800; }
.notice-body { font-size: 0.8125rem; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
.notice-close { flex: none; width: 32px; height: 32px; margin-top: -4px; border: none; background: transparent; color: rgba(255, 255, 255, 0.7); font-size: 1.375rem; line-height: 1; cursor: pointer; border-radius: 999px; }
.notice-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
@keyframes notice-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .notice { animation: none; } .notice.is-leaving { transition: none; } }

/* Practice view on the customer quote page */
.practice-banner { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 0.8125rem; color: var(--ink); text-align: left; }
.practice-banner strong { font-weight: 800; }
.practice-done { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--fill); text-align: left; }
.practice-done h2 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 800; }
.practice-done p { margin: 0 0 12px; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.45; }
.practice-done .btn-primary { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }

/* Test haul block sits above the Requests heading, apart from real jobs */
#test-haul-slot:empty { display: none; }
#test-haul-slot { margin-bottom: var(--space-5); }
.th-live-head { margin: 0 0 var(--space-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.th-live .request-card { margin-bottom: var(--space-3); }

/* Completed / Declined / Customers: period, search, count, show more */
.list-bar { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.list-seg { width: 100%; }
.list-count { margin: 0 0 var(--space-2); font-size: 0.8125rem; color: var(--ink-soft); }
.list-more { display: block; margin: var(--space-3) auto 0; }
.earn-period { margin: 0 0 var(--space-2); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.list-rows .request-card { margin-bottom: var(--space-3); }

/* In-page confirm / text sheet (replaces browser confirm() and prompt()) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 24, 20, 0.45); animation: sheet-fade 0.16s ease-out; }
.sheet-backdrop.is-leaving { opacity: 0; transition: opacity 0.18s; }
.sheet { width: 100%; max-width: 440px; box-sizing: border-box; background: #fff; border-radius: 20px 20px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18); animation: sheet-up 0.22s cubic-bezier(.2, .8, .2, 1); }
.sheet-title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.sheet-body { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.45; }
.sheet-label { display: block; margin: 10px 0 6px; font-size: 0.8125rem; font-weight: 700; }
.sheet-input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border: 1px solid var(--line, #d8ddd6); border-radius: 12px; font: inherit; font-size: 1rem; margin-bottom: 8px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-btn { flex: 1; min-height: 48px; }
.sheet-danger { background: var(--danger, #c0392b); border-color: var(--danger, #c0392b); }
@media (min-width: 560px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
