/* Lendabout, mobile-first explore layout */
:root {
  --accent: #b3471a;
  --accent-dark: #8d3613;
  --accent-soft: #f8ece7;
  --accent-range: color-mix(in srgb, var(--accent) 32%, #ffffff);
  --ink: #222222;
  --muted: #6a6a6a;
  --line: #dddddd;
  --bg: #ffffff;
  --soft: #f7f7f7;
  --shadow-pill: 0 3px 12px rgba(0, 0, 0, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 12px;
  --radius-pill: 40px;
  --max: 100%;
  --page-pad: 16px;
  --header-h: 64px;
  --bottom-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.45;
  font-size: 15px;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); }
button { background: none; border: 0; cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 8px 12px;
  z-index: 40;
}

.demo-banner {
  background: var(--soft);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.01em;
  padding: 6px 16px;
  text-align: center;
  line-height: 1.3;
}

.sticky-chrome {
  position: sticky;
  top: 0;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: #fff;
}
.site-header {
  position: relative;
  z-index: auto;
  background: #fff;
}
.home-filters[hidden] { display: none !important; }


.header-inner {
  width: min(var(--max), calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px 0 8px;
  align-items: center;
}
.header-inner .brand { grid-column: 1; }
.header-actions {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.header-inner .search-pill { grid-column: 1 / -1; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-mark { height: 34px; width: auto; display: block; }

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  padding: 4px 6px 4px 8px;
  min-height: 54px;
}
.search-pill-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.search-pill input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  padding: 8px 12px 8px 0;
  outline: none;
}
.search-pill input[type="search"]::placeholder {
  color: var(--ink);
  font-weight: 600;
}

.nav { display: none; }
.actor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  justify-self: end;
}
.actor select {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 10px;
  background: #fff;
  max-width: 150px;
}

main { padding: 0 0 120px; min-height: 50vh; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--page-pad))); margin: 0 auto; }
.wrap > .rail-head,
.wrap > .results-head,
.wrap > .results-grid {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* Category pills */
.filters {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 16px 6px;
  border-bottom: 1px solid #ebebeb;
  background: #fff;
  position: static;
}
.filters::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  padding: 6px 4px 10px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  background: none;
}
.filter-pill svg { width: 24px; height: 24px; }
.filter-pill span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-pill.active,
.filter-pill[aria-current="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Rails */
.rail { margin: 22px 0 8px; }
.rail-head {
  width: min(var(--max), calc(100% - 2 * var(--page-pad)));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rail-head h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.rail-next {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
  flex-shrink: 0;
}
.rail-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track .listing-card {
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.results-head {
  width: min(var(--max), calc(100% - 2 * var(--page-pad)));
  margin: 18px auto 12px;
}
.results-head h2 { margin: 0 0 4px; font-size: 1.3rem; }
.results-grid {
  width: min(var(--max), calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.results-grid .listing-card { text-decoration: none; color: inherit; }

/* Listing cards */
.card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #ececec;
  margin-bottom: 10px;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-fav {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.heart {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
  display: grid;
  place-items: center;
  padding: 0;
}
.heart svg { width: 22px; height: 22px; }
.heart.on { color: var(--accent); filter: none; }
.chip-example {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(34, 34, 34, 0.55);
  padding: 3px 7px;
  border-radius: 6px;
}
.featured-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.featured-tag .promoted {
  display: block;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 9px;
}
.badge-fav ~ .featured-tag { top: 40px; }
.listing-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.listing-card .meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.listing-card .price-line {
  margin: 2px 0 0;
  font-size: 14px;
}
.listing-card .price-line strong { font-weight: 600; }
.star { color: var(--ink); }

.empty { padding: 40px 16px; text-align: center; color: var(--muted); }

/* Detail */
.detail-hero {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ececec;
  overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { width: min(var(--max), calc(100% - 2 * var(--page-pad))); margin: 16px auto 0; }
.detail-body h1 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.detail-sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.panel { padding: 0 0 24px; }
.panel h2 { font-size: 1.15rem; margin: 20px 0 8px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 13px; margin: 0 0 4px; }
.tiny { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 8px;
  color: var(--muted);
}
.notice, .notice-amber, .alert {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 10px 0;
}
.notice { background: var(--soft); }
.notice-amber { background: var(--accent-soft); color: #6a2c12; }
.alert { background: #f8eaea; color: #8f2d2d; }

.quote { display: grid; gap: 8px; margin: 12px 0; }
.quote-row { display: flex; justify-content: space-between; gap: 12px; }
.quote-row.total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }

.sticky-reserve {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(var(--bottom-h) + 10px);
  z-index: 18;
}
.sticky-reserve .price { font-size: 16px; }
.sticky-reserve .price small { color: var(--muted); font-weight: 400; }

.dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.field { display: grid; gap: 6px; }
.field span, .field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--soft); color: var(--ink); }
.btn-danger { background: #8f2d2d; color: #fff; }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ghost { background: transparent; color: var(--ink); }

.page-head { padding: 20px 0 10px; }
.page-head h1 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -0.02em; }

.table-list { display: grid; gap: 10px; }
.row-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--soft);
}
.row-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 6px; }
.dot.done { background: var(--ink); }
.dot.current { background: var(--accent); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photos img, .thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #eee;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eee;
}
.status-requested { background: var(--accent-soft); color: #6a2c12; }
.status-confirmed, .status-picked_up { background: #f0f0f0; color: var(--ink); }
.status-returned { background: #eef3f6; }
.status-deposit_released { background: #eee; }
.status-disputed { background: #f8eaea; color: #8f2d2d; }
.status-cancelled { background: #eee; color: #666; }

.boost-options { display: grid; gap: 10px; margin: 14px 0; }
.boost-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  width: 100%;
  background: #fff;
}
.boost-option input { margin-right: 10px; }
.boost-option.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.steps { display: grid; gap: 16px; max-width: 40rem; }
.step { padding-bottom: 16px; border-bottom: 1px solid var(--soft); }
.step .num { color: var(--accent); font-weight: 700; margin: 0 0 4px; }
.step h3 { margin: 0 0 4px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 28px 0 110px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { width: min(var(--max), calc(100% - 2 * var(--page-pad))); margin: 0 auto; display: grid; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 140px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 40;
  max-width: min(90vw, 360px);
  pointer-events: none;
}

.bottom-nav {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  justify-content: space-around;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bottom-nav a[aria-current="page"],
.bottom-nav a:hover { color: var(--accent); }

.has-reserve main { padding-bottom: 40px; }
.has-reserve .site-footer { padding-bottom: 200px; }

@media (min-width: 860px) {
  :root { --page-pad: 32px; --bottom-h: 0px; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr);
    grid-template-areas:
      "brand search actions"
      "nav nav nav";
    align-items: center;
    gap: 8px 20px;
    padding: 14px 0 0;
  }
  .header-inner .brand { grid-area: brand; justify-self: start; }
  .header-inner .search-pill { grid-area: search; }
  .header-actions { grid-area: actions; justify-self: end; gap: 8px; }
  .header-inner .nav { grid-area: nav; }
  .brand { display: block; }
  .search-pill {
    width: 100%;
    max-width: 520px;
    margin: 0;
    min-height: 48px;
    justify-self: center;
  }
  .actor { font-size: 12px; white-space: nowrap; display: flex; }
  .actor label { white-space: nowrap; }
  .nav {
    display: flex;
    gap: 8px 22px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: none;
    width: 100%;
    padding: 10px 0 12px;
  }
  .nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
  }
  .nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
  .bottom-nav { display: none; }
  .filters {
    padding-left: max(var(--page-pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--page-pad), calc((100% - var(--max)) / 2));
    overflow-x: hidden;
    justify-content: space-between;
    gap: 8px;
  }
  .filter-pill {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
  }
  .rail-track {
    width: auto;
    margin: 0;
    padding-left: max(var(--page-pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--page-pad), calc((100% - var(--max)) / 2));
    scroll-padding-inline: max(var(--page-pad), calc((100% - var(--max)) / 2));
    gap: 16px;
  }
  .rail-track .listing-card {
    flex: 0 0 260px;
    width: auto;
    max-width: 280px;
  }
  .results-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .detail {
    width: min(var(--max), calc(100% - 2 * var(--page-pad)));
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
  }
  .detail-hero {
    border-radius: 16px;
    width: auto;
    aspect-ratio: 4 / 3;
  }
  .detail-body { width: auto; margin: 0; }
  .sticky-reserve {
    position: static;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 12px;
  }
  .has-reserve main { padding-bottom: 80px; }
  .site-footer { padding-bottom: 40px; }
  main { padding-bottom: 40px; }
}


/* Place chip */
.place-chip {
  justify-self: end;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 100%;
}
.place-chip strong { color: var(--ink); font-weight: 700; }
.place-list { display: grid; gap: 6px; margin: 12px 0; }
.place-list button {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}
.place-list button[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

/* Hearts + counts */
.heart-wrap {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.heart-wrap .heart { position: static; }
.fav-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
  line-height: 1;
}
.detail-hero { position: relative; }
.detail-hero .heart-wrap { top: 12px; right: 12px; }

/* Get the app banner */
.install-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 8;
}
.install-banner[hidden] { display: none !important; }
.install-close {
  width: 28px;
  height: 28px;
  color: var(--muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.install-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.install-copy { flex: 1; min-width: 0; }
.install-copy strong { display: block; font-size: 13px; line-height: 1.2; }
.install-copy span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.install-use {
  flex-shrink: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Sheets / auth modal, above the banner */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-overlay[hidden] { display: none !important; }
.auth-sheet {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 16px 16px 0 0;
  padding: 12px 20px 28px;
  max-height: min(92vh, 720px);
  overflow: auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 8px;
}
.sheet-head h1, .sheet-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.auth-stack { display: grid; gap: 12px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.btn-google:hover { background: #f8f8f8; color: #1f1f1f; }
.divider-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.divider-or::before, .divider-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-note { font-size: 12px; color: var(--muted); margin: 0; }
.browse-first {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  width: 100%;
  padding: 10px;
}
.demo-account-list { display: grid; gap: 8px; }
.demo-account {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.demo-account:hover { background: var(--soft); }
.demo-account .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.demo-account strong { display: block; }
.demo-account span { font-size: 12px; color: var(--muted); }
body.sheet-open { overflow: hidden; }

@media (min-width: 720px) {
  .sheet-overlay { align-items: center; }
  .auth-sheet {
    border-radius: 16px;
    padding: 16px 24px 28px;
    width: min(480px, calc(100% - 32px));
  }
}

/* Session nav */
.avatar-initial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav a .avatar-initial { margin-bottom: 2px; }
.nav-icon-wrap { position: relative; display: inline-flex; }
.unread-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
#nav-messages { position: relative; }
#nav-messages .unread-badge { top: -6px; right: -12px; }

/* Messages */
.inbox-list { display: grid; }
.inbox-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft);
  text-decoration: none;
  color: inherit;
}
.inbox-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #eee;
}
.inbox-row .preview { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.inbox-row.unread .preview, .inbox-row.unread strong { color: var(--ink); font-weight: 700; }
.inbox-meta { text-align: right; font-size: 11px; color: var(--muted); }
.dot-unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
  margin-top: 6px;
}
.chat-page { display: flex; flex-direction: column; min-height: 60vh; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.chat-head img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-head h1 { font-size: 1.05rem; margin: 0; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  flex: 1;
}
.bubble {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
}
.bubble .time { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.bubble.them { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--accent-soft); border-bottom-right-radius: 4px; }
.bubble.system {
  align-self: center;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  max-width: 90%;
  padding: 6px 8px;
}
.quick-replies {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
}
.quick-replies button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 0 12px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: calc(var(--bottom-h) + 4px);
  background: #fff;
}
.composer input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
}
.thread-actions { display: flex; gap: 8px; margin-left: auto; }
.thread-actions button, .thread-actions .btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
}

@media (min-width: 860px) {
  .composer { bottom: 0; }
}

.bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  justify-self: end;
}
.bell-btn .unread-badge { top: 2px; right: 2px; }
.place-chip { overflow: hidden; text-overflow: ellipsis; }

.bundle-tag, .chip-bundle {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.cal { margin: 12px 0 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; text-align: center; }
.cal-dow { font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 0;
}
.cal-day.in-range {
  background: var(--accent-range);
  color: var(--accent-dark);
  border-radius: 0;
}
.cal-day.selected {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  z-index: 1;
}
.cal-day.range-start:not(.range-end)::before,
.cal-day.range-end:not(.range-start)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-range);
  z-index: -1;
}
.cal-day.range-start:not(.range-end)::before { left: 50%; }
.cal-day.range-end:not(.range-start)::before { right: 50%; }
.cal-day.busy { color: #b0b0b0; background: #f1f1f1; text-decoration: line-through; pointer-events: none; }
.cal-day.busy.in-range { background: color-mix(in srgb, var(--accent) 12%, #f1f1f1); color: #9a9a9a; border-radius: 0; }
.cal-day.today:not(.selected) { box-shadow: 0 0 0 1px var(--ink); }
.cal-legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cal-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #f1f1f1; margin-right: 4px; }

.profile-top { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.avatar img,
.avatar picture,
.avatar .avatar-img,
.avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar picture { display: block; }
.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
}
.avatar-xl { width: 88px; height: 88px; font-size: 32px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-md { width: 40px; height: 40px; font-size: 16px; }
.avatar-sm { width: 24px; height: 24px; font-size: 11px; }
.avatar-initial { width: 24px; height: 24px; font-size: 11px; }
.avatar-edit {
  position: relative;
  display: inline-block;
  width: 88px;
  cursor: pointer;
}
.avatar-edit input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}
.avatar-edit-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}
.owner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.owner-link:hover { color: var(--accent); }
.meta .owner-link { font-weight: 500; }
.meta-sep { color: var(--muted); }
.owner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.owner-card:hover { background: var(--soft); }
.owner-card strong { display: block; }
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.chat-avatar { display: inline-flex; flex-shrink: 0; }
.paused-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.listing-card { position: relative; }
.first-item-card {
  display: block;
  padding: 28px 22px;
  border: 2px dashed var(--accent);
  border-radius: 16px;
  background: var(--accent-soft);
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.first-item-card strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--accent-dark);
}
.first-item-card p { margin: 0; color: var(--muted); }
.first-item-card:hover { background: #f3e0d8; }
#nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#nav-account .avatar { flex-shrink: 0; }
.bottom-nav a .avatar { margin-bottom: 2px; }
.verified { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.verified span {
  font-size: 11px; font-weight: 700; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 8px; color: var(--muted);
}
.verified span.on { border-color: #1f7a4d; color: #1f7a4d; background: #eef7f2; }
.stats-row { display: flex; gap: 18px; margin: 10px 0 14px; }
.stats-row div { font-size: 13px; color: var(--muted); }
.stats-row strong { display: block; color: var(--ink); font-size: 16px; }
.review-card { padding: 12px 0; border-bottom: 1px solid var(--soft); }
.review-card .stars { font-weight: 700; }
.wanted-card {
  display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--soft);
}
.notif-row {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--soft);
  text-decoration: none; color: inherit;
}
.dropoff-options { display: grid; gap: 8px; margin: 14px 0; }

.listing-card { position: relative; }
.listing-card .card-photo { position: relative; display: block; color: inherit; }
.listing-card h3 a { color: inherit; text-decoration: none; }

.unread-badge[hidden] { display: none !important; }

.wanted-card .chip-example,
.chip-example.chip-inline {
  position: static;
  justify-self: start;
  width: max-content;
  display: inline-block;
}

/* ---- Polish pass v5 ---- */
:root {
  --bottom-total: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  --shadow-sheet: 0 -8px 40px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius-sheet: 16px;
  --focus: 2px solid var(--accent);
}

.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;
}

.skip:focus, .skip:focus-visible {
  left: max(16px, env(safe-area-inset-left));
  top: max(16px, env(safe-area-inset-top));
  z-index: 80;
  border-radius: 8px;
  outline: var(--focus);
  outline-offset: 2px;
}

.install-banner {
  padding-top: max(8px, env(safe-area-inset-top));
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}
.install-banner[hidden] + .demo-banner {
  padding-top: max(6px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.install-close,
.search-pill-btn,
.bell-btn,
.sheet-close,
.rail-next,
.cal-head button,
.heart,
.thread-actions button {
  min-width: 44px;
  min-height: 44px;
}
.place-chip { min-height: 44px; padding: 8px 14px; }
.browse-first { min-height: 44px; }
.install-use { min-height: 44px; padding: 10px 16px; }
.btn { min-height: 44px; }
.quick-replies button { min-height: 44px; }

.bottom-nav {
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  padding-left: max(4px, env(safe-area-inset-left));
  padding-right: max(4px, env(safe-area-inset-right));
}
.bottom-nav a {
  min-height: 44px;
  font-size: 11px;
  line-height: 1.15;
  padding: 6px 2px 4px;
}

main { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.has-reserve main { padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)); }
.has-reserve .site-footer { padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)); }
.sticky-reserve {
  padding: 10px max(16px, env(safe-area-inset-right)) calc(var(--bottom-total) + 10px) max(16px, env(safe-area-inset-left));
}
.toast {
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--bottom-total) + 24px);
  animation: toast-in 0.22s ease, toast-out 0.25s ease 2.85s forwards;
}
.composer { bottom: var(--bottom-total); padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }

.filters {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
.filter-pill { min-height: 44px; min-width: 52px; }

/* Press + focus */
.btn, .install-use, .place-list button, .boost-option, .demo-account, .filter-pill, .bottom-nav a, .place-chip, .bell-btn, .search-pill-btn {
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.btn:active, .install-use:active, .place-list button:active, .boost-option:active, .demo-account:active {
  transform: scale(0.98);
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .search-pill:focus-within {
  outline: var(--focus);
  outline-offset: 2px;
}
.search-pill input[type="search"]:focus { outline: none; }

/* Heart pop */
@keyframes heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.heart { width: 44px; height: 44px; }
.heart svg { width: 24px; height: 24px; }
.heart.pop { animation: heart-pop 0.38s ease; }
.heart-wrap { top: 6px; right: 6px; }

/* Image fade-in over skeleton shimmer */
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.card-photo, .detail-hero, .inbox-row img, .row-card img, .chat-head img {
  background-color: #ececec;
  background-image: linear-gradient(90deg, #ececec 0%, #f5f5f5 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.card-photo:has(img.is-loaded),
.detail-hero:has(img.is-loaded),
.inbox-row:has(img.is-loaded) img,
.row-card:has(img.is-loaded) img,
.chat-head:has(img.is-loaded) img {
  animation: none;
  background-image: none;
  background-color: #ececec;
}
.card-photo picture, .detail-hero picture {
  display: block;
  width: 100%;
  height: 100%;
}
img.fade-img { opacity: 0; transition: opacity 0.35s ease; }
img.fade-img.is-loaded { opacity: 1; }

/* Sheets */
.sheet-overlay {
  opacity: 0;
  transition: opacity 0.22s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-overlay.is-open { opacity: 1; }
.auth-sheet {
  transform: translateY(18px);
  transition: transform 0.28s ease;
  padding-bottom: max(28px, calc(20px + env(safe-area-inset-bottom, 0px)));
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
}
.sheet-overlay.is-open .auth-sheet { transform: none; }
@media (min-width: 720px) {
  .auth-sheet {
    transform: translateY(10px) scale(0.98);
    border-radius: var(--radius-sheet);
  }
  .sheet-overlay.is-open .auth-sheet { transform: none; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

/* Empty states */
.empty-state {
  padding: 48px 16px;
  text-align: center;
  max-width: 28rem;
  margin: 12px auto;
  color: var(--ink);
}
.empty-state h2 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -0.02em; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state .btn { margin-top: 4px; }

.field-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.deposit-help { margin: -4px 0 16px; display: grid; gap: 6px; }
.field, .deposit-help, .suggest-chip, .field-error, form[data-form="listing"] .btn,
form[data-form="book-dates"] input {
  scroll-margin-top: calc(var(--header-h) + 12px);
  scroll-margin-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 16px);
}
.deposit-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.suggest-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  cursor: pointer;
}
.suggest-chip:hover, .suggest-chip:focus-visible {
  border-color: var(--accent);
}
.deposit-warn {
  color: #7a5a12;
}
@media (prefers-reduced-motion: reduce) {
  .suggest-chip { transition: none; }
}

/* Form errors */
.field-error {
  margin: 0;
  color: #8f2d2d;
  font-size: 13px;
  font-weight: 600;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #8f2d2d;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 48px 16px 32px;
  max-width: 28rem;
  margin: 0 auto;
}
.not-found img { width: 48px; height: auto; margin: 0 auto 16px; }
.not-found h1 { margin: 0 0 8px; }
.not-found p { color: var(--muted); margin: 0 0 20px; }

/* Desktop nav wrap instead of overflow */
@media (min-width: 860px) {
  :root { --bottom-h: 0px; }
  .toast { bottom: 24px; }
  .has-reserve main { padding-bottom: 80px; }
  .sticky-reserve { padding: 16px; }
}

/* Calendar days stay tappable; busy+disabled only are inert */
.cal-day { min-height: 40px; }
.cal-day.busy { pointer-events: auto; }
.cal-day.busy:disabled { pointer-events: none; cursor: default; }

/* Chat head wraps on a narrow phone */
.chat-head { flex-wrap: wrap; }
.thread-actions { flex-wrap: wrap; justify-content: flex-end; }

/* Bundle + example tags shouldn't collide */
.bundle-tag ~ .chip-example { left: auto; right: 12px; bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  img.fade-img { opacity: 1; }
  .sheet-overlay, .auth-sheet { transform: none; opacity: 1; }
  .btn:active, .install-use:active, .place-list button:active, .boost-option:active { transform: none; }
}

/* Picture wrappers in compact media */
.chat-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
}
.chat-head picture,
.chat-head img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}
.chat-head > div { min-width: 0; }
.chat-head h1, .chat-head .tiny { overflow: hidden; text-overflow: ellipsis; }
.inbox-row picture,
.inbox-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}
.row-card picture,
.row-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 400px) {
  .chat-head { grid-template-columns: 44px minmax(0, 1fr); }
  .chat-head .thread-actions { grid-column: 1 / -1; justify-content: flex-start; margin-left: 0; }
}

/* ID verification (demo / pending Stripe Identity) */
.verify-badge, .verify-badge-lg {
  display: inline-block;
  border: 1px solid #1f7a4d;
  color: #1f7a4d;
  background: #eef7f2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
}
.verify-badge-lg { font-size: 16px; padding: 6px 14px; }
.verify-checking { text-align: center; padding: 12px 0 8px; }
.verify-spinner {
  width: 36px;
  height: 36px;
  margin: 8px auto 16px;
  border: 3px solid #ebebeb;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: verify-spin 0.8s linear infinite;
}
.verify-previews img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: #f6f6f6;
  margin: 0 0 10px;
}
@keyframes verify-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .verify-spinner { animation: none; border-top-color: #ebebeb; }
}


/* Trust, reports, handover, cookies, legal */
.trust-panel { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.trust-title { margin: 0 0 8px; font-size: 15px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.trust-list li.on { font-weight: 600; }
.report-box { margin: 12px 0; font-size: 14px; }
.report-box summary { cursor: pointer; font-weight: 600; }
.handover-block { margin-top: 16px; }
.safety-warning { margin: 12px 0; }
.safety-note { margin-top: 6px; font-weight: 600; }
.account-legal, .legal-inline { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.account-legal a, .legal-inline a { font-weight: 600; color: var(--ink); }
.prose h2 { margin-top: 1.2em; }
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 12px 14px;
  font-size: 13px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner button { flex: none; }
@media (min-width: 900px) {
  .cookie-banner { left: auto; right: 24px; top: 24px; bottom: auto; width: min(420px, calc(100% - 48px)); }
}


/* Swipe-to-confirm handover (Too Good To Go style) */
.swipe-row { margin-top: 12px; display: grid; gap: 10px; }
.swipe-track {
  position: relative;
  height: 64px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.swipe-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  pointer-events: none;
  color: var(--ink);
  padding: 0 64px;
}
.swipe-thumb {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  will-change: transform;
}
.swipe-track.dragging .swipe-thumb { transition: none; }
.swipe-track:not(.dragging) .swipe-thumb { transition: transform 0.2s ease; }
.swipe-track.complete { background: #d9f0e3; }
.swipe-track.complete .swipe-label { color: #1f7a4d; }
.swipe-fallback {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  justify-self: center;
  padding: 4px;
}
.handover-done { text-align: center; padding: 16px 8px 8px; }
.handover-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1f7a4d;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  animation: handover-pop 0.5s ease;
}
@keyframes handover-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .handover-check, .swipe-track:not(.dragging) .swipe-thumb { animation: none; transition: none; }
  .swipe-fallback { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; }
}

.stripe-box { margin-top: 14px; display: grid; gap: 10px; }
#stripe-payment-element { min-height: 40px; }
.payouts-card { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--soft); display: grid; gap: 8px; }

/* Desktop alignment: one centred column */
@media (min-width: 860px) {
  :root { --page-pad: 32px; }

  .install-banner {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: max(var(--page-pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--page-pad), calc((100% - var(--max)) / 2));
  }
  .demo-banner {
    padding-left: max(var(--page-pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--page-pad), calc((100% - var(--max)) / 2));
  }

  .filters {
    padding-left: max(var(--page-pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--page-pad), calc((100% - var(--max)) / 2));
    overflow-x: hidden;
    justify-content: space-between;
    gap: 8px;
  }
  .filter-pill {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    align-items: center;
  }

  .rail-track {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: max(var(--page-pad), calc((100% - var(--max)) / 2));
    padding-right: max(var(--page-pad), calc((100% - var(--max)) / 2));
    scroll-padding-inline: max(var(--page-pad), calc((100% - var(--max)) / 2));
    gap: 16px;
  }
  .rail-track .listing-card {
    flex: 0 0 260px;
    width: auto;
    max-width: 280px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr);
    grid-template-areas:
      "brand search actions"
      "nav nav nav";
  }
  .header-inner .brand { grid-area: brand; justify-self: start; }
  .header-inner .search-pill { grid-area: search; }
  .header-actions { grid-area: actions; justify-self: end; }
  .header-inner .nav { grid-area: nav; }
  .nav {
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: none;
    width: 100%;
  }

  /* Titles share the container edge; fields stay a comfortable width */
  main .wrap[style*="max-width"] {
    max-width: var(--max) !important;
  }
  main .wrap[style*="max-width"] form,
  main .wrap[style*="max-width"] .panel,
  main .wrap[style*="max-width"] .inbox-list,
  main .wrap[style*="max-width"] .prose,
  main .wrap[style*="max-width"] .page-head,
  main .wrap[style*="max-width"] .trust-panel,
  main .wrap[style*="max-width"] .review-card,
  main .wrap[style*="max-width"] .first-item-card {
    max-width: 720px;
  }

  .auth-sheet {
    width: min(440px, calc(100% - 48px));
    max-width: 440px;
    padding: 20px 24px 28px;
  }

  .cookie-banner {
    left: auto;
    right: max(var(--page-pad), calc((100% - var(--max)) / 2));
  }
}

@media (min-width: 1200px) {
  .results-grid { grid-template-columns: repeat(4, 1fr); }
}

.cal-day.past { opacity: .35; cursor: default; text-decoration: none; }

/* Static local landing pages (tool-hire-*) */
body.static-page .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  grid-column: 1 / -1;
  padding: 4px 0 8px;
}
body.static-page .nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}
body.static-page .nav a[aria-current="page"],
body.static-page .nav a:hover { color: var(--ink); }
body.static-page .site-footer { padding-bottom: 40px; }
body.static-page main { padding-bottom: 48px; }
.landing {
  width: min(44rem, calc(100% - 2 * var(--page-pad)));
  margin: 0 auto;
}
.landing .prose p,
.landing .prose li { font-size: 1.02rem; line-height: 1.65; }
.landing .cta-row { margin: 8px 0 28px; gap: 12px; }
.landing .cta-row .btn { padding: 16px 24px; font-size: 1.05rem; }
.landing .area-links { margin: 0 0 1.5em; }
.landing .area-links a { font-weight: 600; }
.landing .faq { margin-top: 2em; }
.landing .faq-item {
  margin: 0 0 1.1em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--line);
}
.landing .faq-item h3 { margin: 0 0 0.4em; font-size: 1.05rem; }
.landing .faq-item p { margin: 0; }
@media (min-width: 860px) {
  body.static-page .header-inner {
    grid-template-areas:
      "brand brand brand"
      "nav nav nav";
    grid-template-columns: 1fr;
  }
  body.static-page .nav { grid-area: nav; }
}
