/* Chairs R Yours — artifact theme (ported from the in-app build).
   Warm cream background, deep-purple brand color, Fraunces serif display
   type, soft rounded surfaces. One stylesheet carries all four faces:
   storefront, back office (/admin), delivery board (/delivery), and the
   customer App view (/my-orders). See BRAND.md for the full design spec. */
:root {
  --bg: #FAF5EA;            /* artifact cream */
  --surface: #FFFDF8;       /* warm card white */
  --band: #F3EBD7;          /* deeper cream: section bands, table heads */
  --ink: #2A1538;           /* deep purple-ink for text */
  --muted: #7A6C84;
  --line: #E7DCC4;
  --line-strong: #D8C9A6;
  --accent: #4B1163;        /* artifact deep purple */
  --accent-dark: #38094B;
  --accent-deep: #2E0A3E;   /* artifact footer purple (darker than brand) */
  --accent-soft: #F0E4F5;
  --gold: #C9973F;          /* cart badge accent */
  --ok: #1d7a3a;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(75, 17, 99, 0.05), 0 10px 30px rgba(75, 17, 99, 0.08);
  --shadow-lift: 0 2px 6px rgba(75, 17, 99, 0.06), 0 18px 40px rgba(75, 17, 99, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.has-cart-bar { padding-bottom: 6.75rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
/* Long words, addresses, emails and URLs must wrap instead of pushing
   the page sideways on narrow screens. Only breaks when a line would
   otherwise overflow, so desktop rendering is unchanged. */
p, li, td, th, a { overflow-wrap: break-word; }
::selection { background: var(--accent-soft); }

/* ---------- Header: wordmark, face tabs, cart pill ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 245, 234, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
}
.site-header .brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700; font-size: 1.6rem; line-height: 1.05;
  color: var(--accent); letter-spacing: -0.01em; margin-right: auto;
  min-width: 0;
}
.site-header .brand:hover { text-decoration: none; }
.face-tabs {
  display: flex; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow);
  max-width: 100%; min-width: 0; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.face-tabs::-webkit-scrollbar { display: none; }
.face-tab {
  padding: 0.5rem 1.15rem; border-radius: 999px; white-space: nowrap;
  color: var(--ink); font-weight: 600; font-size: 0.98rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.face-tab:hover { text-decoration: none; background: var(--accent-soft); }
.face-tab.active { background: var(--accent); color: #fff; }
.face-tab.active:hover { background: var(--accent-dark); }
.cart-pill {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--accent); color: #fff; box-shadow: var(--shadow);
  transition: background 0.15s ease;
}
.cart-pill:hover { background: var(--accent-dark); text-decoration: none; }
.cart-badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 23px; height: 23px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; border: 2px solid var(--bg);
  border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1;
}
/* Sitewide catalog search in the storefront header (owner,
   2026-11-13): the form reuses the .home-search pill styling from
   the deck section below; here it only takes its flex place in the
   header row. The wordmark gives up its auto margin so the search
   centers in the space between the brand and the menu/cart. The
   header itself is sticky, so the search now stays on screen on
   every storefront page — the job the homepage's in-section
   sticky search used to do alone. */
.header-inner.has-search .brand { margin-right: 0; }
.header-search { flex: 1 1 300px; max-width: 460px; margin: 0 auto; }
/* ---------- Footer: deep-purple band, four columns (artifact port) ----
   Background is the artifact's --accent-deep (#2E0A3E), darker than the
   brand purple. The footer renders on every face, including the delivery
   board — it contains no prices, ever. */
.site-footer {
  background: var(--accent-deep); color: #fff;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.footer-brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.5rem; font-weight: 600; line-height: 1.15; margin: 0;
}
.footer-text { color: rgba(255, 255, 255, 0.75); font-size: 0.875rem; margin: 0.5rem 0 0; }
.footer-heading {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.025em;
  text-transform: uppercase; margin: 0;
}
.footer-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.footer-list li { margin: 0.375rem 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; text-underline-offset: 2px; }
.footer-list li.footer-note { padding-top: 0.25rem; color: rgba(255, 255, 255, 0.6); }
.footer-phone {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; color: #fff;
}
a.footer-phone { color: #fff; }
a.footer-phone:hover { color: #fff; text-decoration: none; }
.footer-phone svg { flex: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem; text-align: center;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Sticky cart bar ---------- */
.cart-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem;
  z-index: 30; width: min(1120px, calc(100% - 2rem));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 0.85rem 0.85rem 0.85rem 1.4rem;
  color: var(--ink);
}
.cart-bar:hover { text-decoration: none; }
/* The text block owns all the shrink: it may ellipsis, the CTA never does. */
.cart-bar-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1 1 auto; }
.cart-bar-text strong { font-size: 1.12rem; font-weight: 700; }
.cart-bar-text strong, .cart-bar-text .cart-bar-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar-sub { color: var(--muted); font-size: 0.92rem; }
.cart-bar-cta {
  flex: none; background: var(--accent); color: #fff;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  font-size: 1.08rem; font-weight: 700;
}
.cart-bar:hover .cart-bar-cta { background: var(--accent-dark); }

/* ---------- Layout & type ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.5rem 0; }
main > section { margin: 0 0 3rem; }
/* Alternating deeper-cream section bands (storefront home, shop, delivery). */
main > section:not(.hero):not(.route-planner):not(.rentals-in):not(.value-props):nth-of-type(even) {
  background: var(--band); border-radius: 24px; padding: 1.75rem 1.5rem;
}
h1, h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--ink);
}
h1 { font-size: 2.4rem; line-height: 1.12; font-weight: 700; margin: 0.3em 0 0.5em; }
h2 { font-size: 1.7rem; line-height: 1.2; font-weight: 700; margin: 1.4em 0 0.6em; }
main > section > h2:first-child { margin-top: 0; }
h3 { color: var(--ink); font-weight: 650; }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 42em; }

/* ---------- Rentals-in row & value props (storefront home) ---------- */
.rentals-in {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.75rem;
  padding: 0.9rem 0 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem;
}
.rentals-in-label {
  text-transform: uppercase; letter-spacing: 0.13em;
  font-size: 0.82rem; font-weight: 700; color: #97889F;
}
.rentals-in a { color: var(--accent); font-weight: 600; font-size: 1.05rem; }
.value-props { margin-bottom: 1.5rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.32rem 0; font-size: 1.08rem;
}
.checks .check { color: var(--accent); font-weight: 800; flex: none; }
/* The three promises as ONE compact line — phones only (owner,
   2026-11-12 hero tightening): the ≤640px block below swaps the
   three-row list for this strip; larger screens never see it. */
.checks-compact { display: none; }
.checks-compact .check { color: var(--accent); font-weight: 800; }

/* ---------- Hero (storefront home) ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem;
  align-items: center; padding: 1rem 0 0.5rem;
}
.hero h1 {
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #97889F; margin: 0 0 0.75rem;
}
.hero .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.2vw, 3.7rem); line-height: 1.05; font-weight: 700;
  color: var(--accent); margin: 0 0 1rem;
}
.hero .lede { font-size: 1.18rem; }
.hero .button { padding: 0.6rem 1.25rem; font-size: 1rem; }
/* Hero buttons live in a wrapping flex row — as plain inline-blocks in
   a paragraph they overlapped on narrow screens when they wrapped,
   because the paragraph's line-height is shorter than the buttons. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hero .test-banner { margin-top: 1.5rem; }
.hero-photo {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow-lift); display: block;
}

/* ---------- Buttons ---------- */
.button, button.button, button.big {
  display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 0.55rem 1.15rem; border-radius: 999px; font-size: 0.98rem; cursor: pointer;
  text-decoration: none; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover, button.button:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  text-decoration: none; box-shadow: var(--shadow);
}
.button.secondary, button.secondary {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  padding: 0.55rem 1.15rem; border-radius: 999px; cursor: pointer; font-weight: 600;
  text-decoration: none; display: inline-block; font-size: 0.98rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.button.secondary:hover, button.secondary:hover { background: var(--band); text-decoration: none; }
button.big { font-size: 1.1rem; padding: 1rem 1.6rem; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Category filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.5rem; }
.filter-tabs button {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.52rem 1.1rem;
  font-size: 0.95rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-tabs button:hover { background: var(--accent-soft); }
.filter-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Cards, product grid & gallery ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1.4rem;
}
.card, .order-card, .delivery-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.order-card.dayof {
  border: 2px solid var(--gold); background: #FFFDF4; margin-bottom: 1.25rem;
}
.order-card.dayof h3 { margin-top: 0; color: var(--accent-deep); }
.card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0 0 1.25rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card > :not(.product-img) { margin-left: 1.25rem; margin-right: 1.25rem; }
.card h3 { margin: 1rem 1.25rem 0.25rem; font-size: 1.08rem; }
.card p { margin-top: 0.35rem; margin-bottom: 0.35rem; }
/* Card photos show the WHOLE product, filling its frame: the source
   photos in public/images/products/ are pre-trimmed to their content
   (no baked-in empty margins), and the frame is a consistent 4/3 box
   on the warm surface white — the same white as the photos' own
   backgrounds, so product and frame blend seamlessly. object-fit:
   contain, never cropped. (The lightbox photo is contain too; only
   the "Real setups" scene shots keep cover, in .gallery below.)
   Small thumbnails (cart, delivery, admin rows) inherit contain and
   keep their fixed 44px size. */
.product-img {
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain;
  background: var(--surface); display: block;
}
.card .product-img { margin: 0; }
.product-img.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 700; color: var(--muted);
  background: var(--band); letter-spacing: 0.02em;
}
.product-img.small {
  width: 44px; height: 44px; border-radius: 10px; vertical-align: middle;
  font-size: 0.9rem; display: inline-flex;
}
img.product-img.small { display: inline-block; }
.price { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin: 0.3rem 0; }
.price .basis, .contents { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
/* Member comparison price: a small gold MEMBER pill + the member rate,
   shown under the regular (charged) price on cards and in the lightbox. */
.member-price { margin: 0 0 0.3rem; font-size: 0.98rem; font-weight: 700; color: #8a5f10; display: flex; align-items: center; gap: 0.45rem; }
.member-tag {
  background: var(--gold); color: var(--ink); border-radius: 999px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.14rem 0.5rem; line-height: 1.3;
}
/* Cart comparison line under the subtotal. */
.member-savings { color: var(--muted); font-size: 0.98rem; margin: 0.15rem 0 0.6rem; }
.add-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: auto; padding-top: 0.8rem; }
.add-form button {
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.55rem 1.15rem; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  flex: none; white-space: nowrap;
  transition: background 0.15s ease;
}
.add-form button:hover { background: var(--accent-dark); }
.add-form input[type="number"] { width: 64px; }
/* Cart line-item Remove (owner, 2026-11-12): a quiet text button —
   the row's one destructive action, kept visually below the Update
   and Checkout buttons around it. The roomy padding keeps the tap
   target generous even though the word itself is small. */
.remove-btn {
  background: none; border: 0; padding: 0.55rem 0.6rem;
  color: #A33333; font: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.remove-btn:hover { color: #7E2626; }
.cart-remove { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.1rem;
}
.gallery figure {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery figcaption { padding: 0.65rem 1rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- Quantity steppers ---------- */
.qty-label { font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 0.35rem; }
.step-btn {
  flex: none; width: 34px; height: 34px; border-radius: 999px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--accent);
  border: 1.5px solid var(--accent);
  font-family: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.step-btn:hover { background: var(--accent-soft); }
.step-btn:active { background: var(--accent); color: #fff; }
.stepper input[type="number"] {
  width: 56px; text-align: center; padding: 0.45rem 0.15rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* ---------- Header menu button & dropdown ---------- */
.menu-wrap { position: relative; flex: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.1rem; box-shadow: var(--shadow);
  font-family: inherit; font-size: 0.98rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.menu-btn:hover { background: var(--accent-soft); }
.menu-btn.open { background: var(--accent-soft); border-color: var(--accent); }
/* Hamburger built from bars so it can morph into an X when open. */
.menu-icon { display: inline-flex; flex-direction: column; gap: 3px; }
.mi-bar {
  width: 16px; height: 2px; border-radius: 2px; background: var(--accent);
  transition: transform 0.18s ease, opacity 0.15s ease;
}
.menu-btn.open .mi-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-btn.open .mi-bar:nth-child(2) { opacity: 0; }
.menu-btn.open .mi-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
/* The panel animates instead of snapping: a short fade + settle,
   invisible and inert until .open (owner: professional + smooth). */
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40;
  width: 300px; max-width: calc(100vw - 2rem);
  display: flex; flex-direction: column; padding: 0.55rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.menu-panel.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
@media (prefers-reduced-motion: reduce) {
  .menu-panel, .menu-panel.open, .mi-bar { transition: none; }
}
.menu-panel a {
  padding: 0.55rem 0.8rem; border-radius: 12px; color: var(--ink); font-weight: 500;
  transition: background 0.12s ease;
}
.menu-panel a:hover { background: var(--accent-soft); text-decoration: none; }
.menu-panel a.menu-main { font-weight: 700; color: var(--accent); }
.menu-panel a.menu-call {
  background: var(--accent); color: #fff; text-align: center; font-weight: 700;
  border-radius: 12px; padding: 0.7rem 0.8rem; margin-bottom: 0.4rem;
}
.menu-panel a.menu-call:hover { background: var(--accent-deep, #3A0C4E); }
.menu-label {
  margin: 0.65rem 0.8rem 0.3rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.menu-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-cities a { padding: 0.45rem 0.6rem; font-size: 0.93rem; }
.menu-foot {
  display: flex; gap: 0.25rem; margin-top: 0.55rem; padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.menu-foot a { flex: 1; text-align: center; font-size: 0.85rem; color: var(--muted); padding: 0.45rem 0.4rem; }

/* ---------- Gallery lightbox ---------- */
[data-lb-open] { cursor: zoom-in; }
.card [data-lb-open] { transition: transform 0.25s ease; }
.card [data-lb-open]:hover { transform: scale(1.04); }
.gallery figure img[data-lb-open] { transition: transform 0.25s ease; }
.gallery figure img[data-lb-open]:hover { transform: scale(1.03); }
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(42, 21, 56, 0.86); }
.lb-panel {
  position: relative; width: 100%; max-width: 860px;
  max-height: calc(100vh - 2rem); overflow-y: auto;
  background: var(--surface); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 1.1rem 1.1rem 1rem;
}
.lb-slide { display: none; }
.lb-slide.active { display: block; }
.lb-photo {
  width: 100%; height: min(52vh, 480px); object-fit: contain;
  background: var(--band); border-radius: 16px; display: block;
}
.lb-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em;
}
.lb-caption { padding: 0.9rem 0.25rem 0; }
.lb-caption h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem; margin: 0 0 0.15rem; color: var(--ink);
}
.lb-caption .price { margin: 0.1rem 0 0.4rem; }
.lb-setup-tag { color: var(--muted); margin: 0.2rem 0 0; }
.lb-form { margin-top: 0.4rem; padding-top: 0.2rem; }
.lb-close, .lb-arrow {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  font-family: inherit; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lb-close { top: 0.7rem; right: 0.7rem; width: 40px; height: 40px; font-size: 1.5rem; line-height: 1; }
.lb-arrow { top: 32%; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; }
.lb-prev { left: 0.7rem; }
.lb-next { right: 0.7rem; }
.lb-close:hover, .lb-arrow:hover { background: var(--accent); color: #fff; }
.lb-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.9rem 0.1rem 0.2rem; }
.lb-thumb {
  flex: none; width: 66px; height: 50px; padding: 0; overflow: hidden;
  border-radius: 10px; border: 2px solid var(--line); background: var(--band);
  font-family: inherit; color: var(--muted); font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

/* ---------- Forms & tables ---------- */
input, select, textarea {
  padding: 0.6rem 0.85rem; border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background-color: #fff; color: var(--ink); max-width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
::placeholder { color: var(--muted); opacity: 0.8; }
/* Selects: the native arrow gives way to a muted brand chevron so
   every dropdown reads as a modern field (owner, 2026-11-11).
   Element-level on purpose: scoped rules (steppers, qty rows, the
   office pass) keep winning wherever they set their own geometry. */
select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 2.3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237A6C84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 12px 8px;
}
.table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.table th, .table td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.85rem; text-align: left; vertical-align: top; }
.table th {
  background: var(--band); color: var(--muted); border-bottom: 1px solid var(--line);
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.table tr:last-child td { border-bottom: 0; }
.total { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.form label { display: block; margin: 0.7rem 0; }
.form label.radio { display: flex; gap: 0.5rem; align-items: center; }
.form.inline { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }
.form.inline label { margin: 0; }
fieldset, .delivery-fields {
  border: 1px solid var(--line); border-radius: var(--radius); margin: 1.25rem 0;
  background: var(--surface); padding: 1.1rem 1.35rem; box-shadow: var(--shadow);
}
legend { font-weight: 650; color: var(--ink); padding: 0 0.35rem; }

/* ---------- Notices, chips, timelines ---------- */
.test-banner {
  background: #fdf8e3; border: 1px solid #eadf9f; border-radius: 14px;
  padding: 0.8rem 1.1rem; color: #66590f; font-size: 0.95rem;
}
.success {
  background: #ecf7f0; border: 1px solid #c4e7d0; border-radius: 14px;
  padding: 0.8rem 1.1rem; color: #14532d;
}
.error { color: var(--danger); font-weight: 600; }
.form-errors {
  background: #fbeae8; border: 1px solid #f2cfcc; border-radius: 14px;
  padding: 0.8rem 1.1rem; color: #8c2b21; margin-bottom: 1rem;
}
.form-errors ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.field-error { display: block; color: var(--danger); font-weight: 600; font-size: 0.92em; margin-top: 0.2rem; }
.field-error:empty { display: none; }
.form [aria-invalid="true"] { border-color: var(--danger); }
.chip {
  display: inline-block; background: var(--band); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.18rem 0.75rem; font-weight: 600; font-size: 0.88rem;
}
.chip.delivery { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.cancelled { background: #fbeae8; border-color: #f2cfcc; color: #8c2b21; }
.timeline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.timeline li {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.85rem;
  color: var(--muted); background: var(--surface); font-size: 0.92rem;
}
.timeline li.done { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

/* ---------- Delivery board (no pricing is ever rendered here) ---------- */
.truck-list { list-style: none; padding: 0; }
.truck-list li { display: flex; gap: 0.6rem; align-items: center; padding: 0.35rem 0; }
.route-planner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 1.25rem 0; box-shadow: var(--shadow);
}
.route-planner h2 { margin-top: 0; }
.route-list li { margin: 0.35rem 0; }
.progress { font-weight: 700; color: var(--ink); }

/* ---------- Back office ---------- */
.admin-nav { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-nav a {
  padding: 0.45rem 0.95rem; border-radius: 999px; text-decoration: none; font-weight: 500;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav a:hover { background: var(--band); color: var(--ink); text-decoration: none; }
.admin-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.admin-nav a.active:hover { background: var(--accent-dark); }
.stat-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1rem 1.3rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
  color: var(--muted); font-size: 0.92rem;
}
.stat-n {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem; font-weight: 700; color: var(--accent);
}
.catalog-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 0.75rem 1.35rem 1.35rem; margin-bottom: 1.1rem; box-shadow: var(--shadow);
}
.catalog-row label { display: inline-block; margin-right: 1rem; }
.qty-row { display: flex !important; gap: 0.6rem; align-items: center; }
.qty-row input { margin-left: auto; width: 80px; }

/* ---------- Customers we've served (home only) ----------
   Styled text wordmarks only — no brand logos. Sits directly above
   the Google reviews so the proof flows names -> reviews. */
.served-sub { color: var(--muted); margin: 0.5rem 0 1.5rem; max-width: 44rem; }
.served-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.1rem;
}
.served-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 1.7rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.75rem;
}
.served-name {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--accent);
}
.served-rule { width: 2.75rem; height: 3px; border-radius: 2px; background: var(--gold); }

/* ---------- Google reviews (home only) ---------- */
.reviews-summary {
  display: flex; align-items: center; gap: 0.6rem 1.1rem; flex-wrap: wrap;
  margin: 0.75rem 0 1.5rem;
}
.reviews-score {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--accent);
}
.reviews-stars { color: var(--gold); font-size: 1.55rem; letter-spacing: 0.12em; line-height: 1; white-space: nowrap; }
h2 .reviews-stars { font-size: 1.2rem; vertical-align: 0.18em; }
.reviews-count { color: var(--muted); font-size: 1.05rem; }
.review-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.1rem;
}
.review-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
}
.review-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--accent); }
.review-card p { margin: 0; color: var(--muted); }
.review-card .review-stars { color: var(--gold); letter-spacing: 0.12em; margin: 0 0 0.45rem; }
.review-card .reviewer { margin-top: 0.65rem; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
/* Reviews carousel: scroll-snap track (native swipe on touch), arrow
   buttons at the edges, dots underneath. Cards per view: 1 / 2 / 3. */
.reviews-carousel { position: relative; }
.review-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.review-viewport::-webkit-scrollbar { display: none; }
.review-viewport .review-cards { display: flex; gap: 1.1rem; padding: 0.2rem 0.1rem 0.6rem; }
.review-viewport .review-card { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 640px) { .review-viewport .review-card { flex-basis: 47.5%; } }
@media (min-width: 1024px) { .review-viewport .review-card { flex-basis: 31.8%; } }
.rev-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent);
  font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.rev-arrow:hover { background: var(--band); }
.rev-arrow:disabled { opacity: 0.35; cursor: default; }
#revPrev { left: -0.4rem; }
#revNext { right: -0.4rem; }
@media (max-width: 639px) {
  .rev-arrow { width: 2.2rem; height: 2.2rem; font-size: 1.25rem; }
  #revPrev { left: 0.15rem; }
  #revNext { right: 0.15rem; }
}
/* Order progress bar — shared by My Orders cards (the public tracking
   page carries the same rules inline in its own shell). */
.pbar { position: relative; margin: 14px 0 4px; }
.pbar-line { position: absolute; top: 12px; height: 4px; background: #EFE7D6; border-radius: 2px; }
.pbar-fill { height: 100%; background: #2E7D32; border-radius: 2px; }
.pbar-steps { display: flex; position: relative; }
.pstep { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 0 2px; }
.pdot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #CBBFA3; background: #fff; color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pstep.done .pdot { background: #2E7D32; border-color: #2E7D32; }
.pstep.current .pdot { border-color: #C9973F; background: #C9973F; box-shadow: 0 0 0 4px #FBF3DF; }
.plabel { font-size: 13px; font-weight: 700; line-height: 1.25; }
.pstep.todo .plabel { color: #8A7D63; font-weight: 500; }
.pstep.current .plabel { color: #4B1163; }
.pwhen { font-size: 11px; color: #6B5B8F; line-height: 1.2; }
.track-hint { font-size: 13px; color: #6B5B8F; margin: 8px 0 0; text-align: center; }
@media (max-width: 560px) { .plabel { font-size: 11px; } .pwhen { font-size: 10px; } .pdot { width: 22px; height: 22px; font-size: 12px; } .pbar-line { top: 10px; } }
.rev-dots { display: flex; gap: 0.45rem; justify-content: center; margin-top: 0.35rem; }
.rev-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; border: none; background: var(--line-strong); cursor: pointer; padding: 0; }
.rev-dot.active { background: var(--accent); }
.reviews-attribution { color: var(--muted); font-size: 0.9rem; margin: 1rem 0 0; }

/* ---------- Member signup (home hero + checkout) ----------
   A gold "Become a Member" summary that unfolds (<details>, no JS)
   into a two-field form on a warm-white panel. */
.member-box { margin: 1.15rem 0 0.5rem; }
.member-copy {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.98rem; margin: 0 0 0.7rem; max-width: 34rem;
}
.member-box .success { max-width: 34rem; margin: 0; }
.member-details > summary {
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--gold); color: var(--ink); border: 1px solid var(--gold);
  padding: 0.68rem 1.45rem; border-radius: 999px;
  font-size: 0.98rem; font-weight: 700; cursor: pointer; list-style: none;
  transition: filter 0.15s ease;
}
.member-details > summary::-webkit-details-marker { display: none; }
.member-details > summary:hover { filter: brightness(0.95); }
.member-form {
  margin-top: 0.85rem; max-width: 26rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.35rem 1.15rem 1.1rem;
  box-shadow: var(--shadow);
}
.member-form label > input { display: block; width: 100%; margin-top: 0.35rem; }
.member-form button[type="submit"] { margin-top: 0.35rem; width: 100%; }

/* ---------- Contact form (home, last section before the footer) --- */
/* Anchored sections (#contact after a form submit, #how-it-works from
   the header menu) land below the sticky header instead of under it. */
main > section[id] { scroll-margin-top: 8.5rem; }
.contact-form { max-width: 38rem; }
.contact-form label > input, .contact-form label > textarea {
  display: block; width: 100%; margin-top: 0.35rem;
}
.optional { color: var(--muted); font-weight: 400; font-size: 0.88rem; }

/* ---------- Misc ---------- */
.city-links { columns: 2; }
.city-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.city-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.steps li { margin: 0.55rem 0; }
pre { white-space: pre-wrap; word-break: break-word; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ================= Responsive =================
   Breakpoints:
     ≤1024px  large tablets — 44px touch targets, tighter page padding
     ≤1000px  tablets — catalog/gallery grids settle to two columns
     ≤860px   small tablets — hero stacks, tables become scroll panels
     ≤768px   header takes two rows (tab bar gets its own full-width row)
     ≤640px   phones — forms stack, menu panel spans the viewport,
              lightbox goes full-screen, cart bar compacts
     ≤480px   small phones — grids go single-column, tab labels tighten */

/* ----- ≤1024px: touch targets & breathing room ----- */
@media (max-width: 1024px) {
  main { padding-left: 1.25rem; padding-right: 1.25rem; }
  .face-tab { min-height: 44px; display: inline-flex; align-items: center; }
  .filter-tabs button { min-height: 44px; }
  .step-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  .stepper input[type="number"] { height: 44px; }
  .menu-btn { min-height: 44px; }
  .menu-panel a { min-height: 44px; display: flex; align-items: center; }
  .admin-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .button, button.button, button.big, .button.secondary, button.secondary { min-height: 44px; }
  a.button, a.button.secondary { display: inline-flex; align-items: center; justify-content: center; }
  .add-form button { min-height: 44px; }
  .lb-close { width: 44px; height: 44px; }
  .lb-arrow { width: 48px; height: 48px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 44px; }
}

/* ----- ≤1000px: two-column grids on tablets ----- */
@media (min-width: 601px) and (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----- ≤860px: hero stacks, tables scroll sideways ----- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.1rem; }
  /* Shorter hero photo on stacked layouts (owner's note, 2026-11-09):
     at 240-340px the photo alone pushed every product below the
     first phone screen; at ~200px the first rentals peek into view. */
  .hero-photo { min-height: 180px; max-height: 210px; }
  /* The table element itself becomes the scroll panel: columns keep
     readable widths and the page never scrolls sideways. */
  .table {
    display: block; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .table th, .table td { white-space: nowrap; }
  .table td pre { white-space: pre-wrap; }
}

/* ----- ≤768px: header takes two tidy rows ----- */
@media (max-width: 768px) {
  .header-inner { gap: 0.55rem 0.8rem; }
  /* Row 1 must always fit: the wordmark is the only flexible item on it
     (Menu button and cart pill are flex:none), so it absorbs any squeeze
     and the pill can never be pushed past the right edge. The badge's
     overhang is also pulled in so it stays inside the header's padding. */
  .site-header .brand { font-size: 1.42rem; flex: 1 1 auto; min-width: 0; }
  .cart-badge { right: -3px; top: -5px; }
  /* The sitewide search drops to its own full-width second row
     (the same wrap pattern the face tabs used) so the wordmark
     row never squeezes. */
  .header-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  /* Row 1: wordmark + Menu + cart. Row 2: the face tab bar, full width
     (it scrolls sideways invisibly if the labels ever outgrow it). */
  .face-tabs { order: 3; flex: 1 1 100%; min-width: 0; }
}

/* ----- ≤640px: phones ----- */
@media (max-width: 640px) {
  .city-links { columns: 1; }
  /* Homepage hero tightening (owner, 2026-11-12): on phones the
     pre-catalog stack compresses so the catalog arrives sooner —
     the Rentals-in row becomes one horizontally scrollable strip,
     the three checkmark promises collapse into the compact line
     (same three facts, tighter form), and the hero sheds vertical
     air and photo height. Desktop/tablet rendering unchanged. */
  .rentals-in {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; gap: 0 1.1rem;
    padding: 0.55rem 0 0.7rem; margin-bottom: 0.9rem;
  }
  .rentals-in::-webkit-scrollbar { display: none; }
  .rentals-in-label, .rentals-in a { white-space: nowrap; }
  .rentals-in a { font-size: 1rem; }
  .value-props { margin-bottom: 0.9rem; }
  .value-props .checks { display: none; }
  .checks-compact { display: block; margin: 0; font-size: 0.85rem; line-height: 1.5; }
  .hero { padding-top: 0.25rem; gap: 0.85rem; margin-bottom: 2rem; }
  .hero-photo { min-height: 150px; max-height: 170px; }
  main { padding: 1.25rem 1rem 0; }
  main > section:not(.hero):not(.route-planner):not(.rentals-in):not(.value-props):nth-of-type(even) { padding: 1.25rem 1rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .hero .display { font-size: 2.35rem; }
  .hero .lede { font-size: 1.08rem; }
  .hero h1 { font-size: 0.92rem; letter-spacing: 0.1em; }
  .reviews-score { font-size: 2.8rem; }
  .header-inner { padding: 0.6rem 1rem; gap: 0.55rem 0.7rem; position: relative; }
  .site-header .brand { font-size: 1.35rem; }
  .face-tab { padding: 0.45rem 0.9rem; font-size: 0.92rem; }
  .menu-btn { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
  /* Menu panel is pinned to the header's width (i.e. the viewport)
     instead of hanging off the Menu button's corner. */
  .menu-wrap { position: static; }
  .menu-panel { left: 0.25rem; right: 0.25rem; width: auto; max-width: none; top: calc(100% + 8px); transform-origin: top center; }
  /* Forms: fields stack full-width; 16px text so iOS doesn't auto-zoom. */
  input, select, textarea { font-size: 16px; }
  .form label:not(.qty-row) > input:not([type="radio"]):not([type="checkbox"]),
  .form label:not(.qty-row) > select,
  .form label:not(.qty-row) > textarea { display: block; width: 100%; margin-top: 0.35rem; }
  .form.inline { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .form.inline button { width: 100%; }
  fieldset, .delivery-fields { padding: 1rem; }
  .catalog-row { padding: 0.75rem 1rem 1.1rem; }
  .catalog-row label { display: block; margin: 0.65rem 0; }
  .qty-row { flex-wrap: wrap; row-gap: 0.4rem; }
  /* Cart page: the line-item table restacks into per-item blocks instead
     of joining the ≤860px sideways-scroll panel — header row hidden,
     thumbnail + name on the first line (long names wrap), unit price and
     line total sharing the second line, the quantity stepper on its own
     full row beneath. Nothing overlaps, nothing leaves the screen. */
  .cart-table { overflow: visible; }
  .cart-table, .cart-table tbody { display: block; width: 100%; }
  .cart-table tr {
    display: flex; flex-wrap: wrap; align-items: center;
    column-gap: 0.75rem; padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .cart-table tr:first-child { display: none; }
  .cart-table tr:last-child { border-bottom: 0; }
  .cart-table td {
    display: block; border-bottom: 0; padding: 0; white-space: normal;
  }
  .cart-table .cart-item {
    order: 1; flex: 1 1 100%; display: flex; align-items: center;
    gap: 0.65rem; margin-bottom: 0.45rem;
  }
  .cart-table .cart-item-name { font-weight: 600; min-width: 0; }
  .cart-table .cart-price { order: 2; color: var(--muted); font-size: 0.95rem; }
  .cart-table .cart-price::after { content: " each"; }
  .cart-table .cart-total {
    order: 3; margin-left: auto; font-weight: 700; font-size: 1.05rem;
  }
  .cart-table .cart-qty { order: 4; flex: 1 1 100%; margin-top: 0.6rem; }
  .cart-table .cart-remove { order: 5; margin-left: auto; margin-top: 0.35rem; }
  /* Delivery board breathing room; the advance button (button.big) is
     already width:100%, so it lands as a full-width thumb target. */
  .route-planner { padding: 1.1rem 1rem; }
  .delivery-card { padding: 1.1rem 1rem; }
  .route-planner .button { max-width: 100%; white-space: normal; text-align: center; }
  /* Stat cards pair up instead of stacking one per row. */
  .stat { flex: 1 1 42%; }
  /* Lightbox: truly full-screen, thumbs strip scrolls under the photo. */
  .lightbox { padding: 0; }
  .lb-panel {
    height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
    border-radius: 0; padding: 0.9rem 0.9rem 0.75rem;
  }
  .lb-photo { height: 40vh; }
  .lb-arrow { top: 23%; }
  /* Sticky cart bar: fits a 360px screen, CTA never squeezed out. */
  .cart-bar { width: calc(100% - 1rem); bottom: 0.5rem; padding: 0.7rem 0.7rem 0.7rem 1rem; border-radius: 20px; gap: 0.6rem; }
  .cart-bar-text { min-width: 0; }
  .cart-bar-text strong { font-size: 0.98rem; }
  .cart-bar-sub { font-size: 0.8rem; }
  .cart-bar-cta { padding: 0.75rem 1.1rem; font-size: 0.98rem; }
  body.has-cart-bar { padding-bottom: 7rem; }
}

/* ----- ≤480px: small phones ----- */
@media (max-width: 480px) {
  .grid, .gallery { grid-template-columns: minmax(0, 1fr); }
  .face-tab { padding: 0.45rem 0.72rem; font-size: 0.9rem; }
  .hero .display { font-size: 2.15rem; }
  .lb-thumb { width: 58px; height: 46px; }
}

/* Back-office calendar (Booked orders + Completely booked toggles) */
.cal-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { margin-top: 14px; font-weight: 700; color: #6B5B73; font-size: 0.82rem; text-align: center; }
.cal-day { background: #fff; border: 1px solid #E7DCC8; border-radius: 10px; padding: 6px; min-height: 96px; font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.cal-out { opacity: 0.45; }
.cal-today { outline: 2px solid #C9973F; }
.cal-closed { background: #FBEBEB; border-color: #D9A0A0; }
.cal-dnum { font-weight: 700; }
.cal-badge { font-weight: 700; color: #A33333; font-size: 0.66rem; letter-spacing: 0.03em; }
.cal-order { display: block; background: #F3EAD3; border-radius: 6px; padding: 2px 5px; color: #2E0A3E; text-decoration: none; word-break: break-word; }
.cal-toggle { margin-top: auto; }
.cal-toggle button { font-size: 0.7rem; padding: 3px 7px; border-radius: 999px; border: 1px solid #C9973F; background: #fff; cursor: pointer; }
.cal-closed .cal-toggle button { border-color: #A33333; color: #A33333; }
@media (max-width: 640px) {
  .cal-day { min-height: 74px; font-size: 0.68rem; padding: 4px; }
  .cal-toggle button { font-size: 0.62rem; padding: 2px 5px; }
}

/* Calendar toggle visibility pass: big full-width day buttons + top form */
.cal-close-form { background: #fff; border: 1px solid #E7DCC8; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.cal-toggle button { width: 100%; font-size: 0.8rem; font-weight: 700; padding: 7px 4px; min-height: 34px; }
.cal-reopen { display: inline; }
.cal-reopen button { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid #A33333; color: #A33333; background: #fff; cursor: pointer; }
@media (max-width: 640px) {
  .cal-toggle button { font-size: 0.66rem; padding: 6px 2px; }
}

/* Customer portal tabs (My Orders / Pick up Instructions / PIN Codes) */
.ptabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.ptabs a { flex: 1; text-align: center; padding: 11px 6px; border: 1px solid #CBBFA3; border-radius: 999px; background: #fff; color: #4B1163; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ptabs a.on { background: #4B1163; color: #FAF5EA; border-color: #4B1163; }

/* Back-office app shell (owner's pick, 2026-11-10): bottom tab bar on
   phones, app-style Home (stats, Next-up hero, Needs-you queue) and a
   dense Pro List for Orders. Presentation only — same screens, same
   actions. Desktop keeps the classic top nav. */
.app-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--accent-deep); display: flex; padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(46,10,62,.25); }
.app-tab { flex: 1; text-align: center; color: #A68FC0; font-size: 10.5px; font-weight: 600; text-decoration: none; padding: 2px 0 0; }
.app-tab svg { display: block; margin: 0 auto 3px; }
.app-tab.active { color: var(--gold); }
body.owner-app main { padding-bottom: 96px; }
body.owner-app .admin-nav { display: none; }
@media (max-width: 1023px) {
  body.owner-app .site-header { background: var(--accent-deep); }
  body.owner-app .site-header .brand { color: var(--bg); }
  body.owner-app .header-inner > *:not(.brand) { display: none !important; }
  /* (The matching .site-footer hide rule is gone: since 2026-11-12
     the back office renders no footer markup at all — see layout().) */
}
@media (min-width: 1024px) {
  .app-tabbar { display: none; }
  body.owner-app main { padding-bottom: 0; }
  body.owner-app .admin-nav { display: flex; }
}
.app-date { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nextup { margin-top: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--bg); border-radius: 18px; padding: 18px; box-shadow: 0 8px 20px rgba(46,10,62,.22); }
.nextup .kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.nextup h3 { font-family: Fraunces, Georgia, serif; font-size: 20px; margin: 6px 0 2px; color: var(--bg); }
.nextup p { font-size: 13px; color: #D9C8EC; margin: 0; }
.nextup .steps { display: flex; align-items: center; gap: 5px; margin-top: 14px; }
.nextup .sdot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.18); color: #CBB8DD; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.nextup .sdot.done { background: var(--gold); color: var(--accent-deep); }
.nextup .sbar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); }
.nextup .sbar.done { background: var(--gold); }
.nextup .slabels { display: flex; justify-content: space-between; font-size: 9.5px; color: #CBB8DD; margin-top: 5px; }
.nextup a { color: var(--gold); font-weight: 700; }
.need-row { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.need-row b { font-size: 14px; display: block; }
.need-row span { font-size: 12.5px; color: var(--muted); }
.need-row .pill-btn { background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 8px 14px; white-space: nowrap; text-decoration: none; }
.need-row .pill-btn.gold { background: var(--gold); color: var(--accent-deep); }
.need-empty { color: var(--muted); font-size: 14px; }
/* Orders Pro List */
.order-list { border-top: 1px solid var(--line); margin-top: 10px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid #F0E7F5; }
.order-row .order-check { flex: none; margin: 0; }
.order-row .omain { flex: 1; min-width: 0; }
.order-row .omain b { font-size: 13.5px; }
.order-row .omain b a { color: var(--accent); text-decoration: none; }
.order-row .omain span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row .oright { text-align: right; flex: none; }
.order-row .oright b { font-size: 13.5px; display: block; }
.order-row .ostatus { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; justify-content: flex-end; color: var(--muted); }
.order-row .ostatus i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #A68FC0; }
.order-row .ostatus.st-booked { color: var(--ok); } .order-row .ostatus.st-booked i { background: var(--ok); }
.order-row .ostatus.st-paid { color: var(--ok); } .order-row .ostatus.st-paid i { background: var(--ok); }
.order-row .ostatus.st-quote { color: #8A6D1C; } .order-row .ostatus.st-quote i { background: var(--gold); }
.order-row .ostatus.st-cancelled { color: var(--danger); } .order-row .ostatus.st-cancelled i { background: var(--danger); }
.order-row .ocontact { display: flex; gap: 5px; flex: none; }
.order-row .ocontact a { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #D9CBE8; display: flex; align-items: center; justify-content: center; }
.chip-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.more-group { margin-top: 20px; }
.more-group h2 { margin: 0 0 4px; font-size: 1.05rem; }
.more-group .more-grid { margin-top: 8px; }
.more-grid { display: grid; gap: 8px; margin-top: 12px; }
.more-grid a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; font-weight: 600; color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.more-grid a span { color: var(--muted); font-weight: 400; }
.table-scroll { overflow-x: auto; }

/* Blog (2026-11-10) */
.blog-list { display: grid; gap: 16px; margin: 20px 0; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.blog-card h2 { margin: 2px 0 8px; font-size: 1.35rem; }
.blog-date { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.post-body h2 { margin-top: 30px; }
.post-body table { border-collapse: collapse; width: 100%; margin: 14px 0; background: var(--surface); font-size: .96rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body th { background: var(--band); }
.answer-box { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px 12px; margin: 18px 0; overflow-x: auto; }

/* Back-office slim restyle (owner's pick, 2026-11-10): Variation 1 —
   Amazon-style compact pills and clean sans type — with the trim
   slimmed down. Scoped to body.office so the public storefront keeps
   the brand serif and its roomier layout. Presentation only. */
body.office { font-size: 15px; }
body.office h1, body.office h2, body.office h3 { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.01em; }
body.office h1 { font-size: 1.5rem; font-weight: 800; margin: 0.15em 0 0.45em; }
body.office h2 { font-size: 1.15rem; font-weight: 800; margin: 1.1em 0 0.5em; }
body.office h3 { font-size: 0.98rem; font-weight: 700; }
body.office .site-header .brand { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 1.12rem; }
body.office .button, body.office button.button { padding: 0.42rem 0.95rem; font-size: 0.9rem; font-weight: 700; }
body.office .button.secondary, body.office button.secondary { padding: 0.42rem 0.95rem; font-size: 0.9rem; }
body.office button.big { font-size: 1rem; padding: 0.62rem 1.1rem; }
body.office input, body.office select, body.office textarea { padding: 0.42rem 0.65rem; border-radius: 10px; }
/* Office fields inherit the modern treatment (soft border, purple
   focus ring, chevron) at office sizes; selects just need their
   chevron clearance back after the slimmer padding above. */
body.office select { padding-right: 1.9rem; background-position: right 0.6rem center; }
body.office .order-card, body.office .delivery-card { padding: 0.85rem; border-radius: 12px; }
body.office .stat-row { gap: 0.6rem; }
body.office .stat { border-radius: 12px; padding: 0.6rem 0.75rem; font-size: 0.82rem; }
body.office .stat-n { font-family: "Inter", system-ui, sans-serif; font-size: 1.3rem; font-weight: 800; }
body.office .catalog-row { border-radius: 12px; padding: 0.6rem 0.9rem 0.9rem; }
body.office .nextup { padding: 13px; border-radius: 14px; margin-top: 10px; }
body.office .nextup h3 { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 17px; }
body.office .nextup .steps { margin-top: 10px; }
body.office .need-row { padding: 8px 11px; border-radius: 10px; margin-bottom: 6px; }
body.office .need-row .pill-btn { padding: 5px 11px; font-size: 12px; }
body.office .order-row { padding: 7px 4px; }
body.office .order-row .ocontact a { width: 27px; height: 27px; border-width: 1px; }
body.office .more-grid { gap: 6px; }
body.office .more-grid a { padding: 11px 13px; border-radius: 10px; }
body.office .table { border-radius: 12px; }
body.office .table th, body.office .table td { padding: 0.45rem 0.65rem; font-size: 0.92rem; }
body.office .app-tabbar { padding-top: 5px; }
body.office .app-tab { font-size: 10px; }

/* Office slimming, second pass (owner: "apply it to all of the back
   office", 2026-11-10): form panels, the in-page nav, filter chips,
   and calendar toggles join the slim set. Same office scope. */
body.office fieldset { padding: 0.7rem 0.8rem; border-radius: 12px; }
body.office legend { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 0.95rem; padding: 0 0.3rem; }
body.office .admin-nav { gap: 0.3rem; margin-bottom: 0.9rem; }
body.office .admin-nav a { padding: 0.32rem 0.8rem; font-size: 0.88rem; }
body.office .filter-tabs { gap: 0.35rem; margin: 0.7rem 0 1rem; }
body.office .filter-tabs button { padding: 0.38rem 0.85rem; font-size: 0.88rem; }
body.office .cal-toggle button { min-height: 30px; }
body.office .cal-close-form { padding: 8px 10px; border-radius: 12px; }

/* Cart upsells — "Complete your setup" (owner-approved 2026-11-11).
   Storefront scope only: suggestion cards under the cart items plus a
   dark delivery banner. Matches the approved mockup. */
.upsell { margin: 1.6rem 0 0.4rem; }
.upsell-sub { color: var(--muted); margin: 0.15rem 0 0.9rem; }
.upsell-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 700px) { .upsell-cards { grid-template-columns: 1fr; } }
.upsell-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; overflow: hidden; }
/* Photo fills its frame edge-to-edge, flush with the card's top and
   sides like the Amazon list cards (owner's screenshot, 2026-11-11 —
   supersedes the earlier whole-product "contain" fit): negative
   margins bleed the image across the card padding, the card's
   overflow + radius clip it, and object-fit: cover fills the frame. */
.upsell-card .product-img { display: block; width: calc(100% + 20px); height: 84px; object-fit: cover; background: var(--band); border-radius: 0; margin: -10px -10px 0; }
.upsell-card .product-img.placeholder { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); font-size: 1.35rem; }
.upsell-card h3 { margin: 0.45rem 0 0.1rem; font-size: 0.95rem; }
.upsell-note { color: var(--muted); font-size: 0.85rem; min-height: 2.4em; margin: 0.15rem 0; }
.upsell-price { font-weight: 700; font-size: 0.98rem; margin: 0.25rem 0 0.45rem; }
.upsell-form button { border-radius: 999px; padding: 0.45rem 1.2rem; font-size: 0.92rem; min-height: 38px; }
.upsell-band { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; background: var(--accent-deep); color: var(--bg); border-radius: 14px; padding: 18px 20px; text-decoration: none; }
.upsell-band-text strong { display: block; font-size: 1.15rem; margin-bottom: 3px; }
.upsell-band-text span { opacity: 0.88; font-size: 0.95rem; }
.upsell-band-cta { background: var(--gold); color: var(--accent-deep); font-weight: 700; border-radius: 999px; padding: 0.55rem 1.1rem; white-space: nowrap; }
@media (max-width: 700px) { .upsell-band { flex-direction: column; align-items: flex-start; } }

/* Order detail — "Next Step" layout (owner-approved Variation #1,
   2026-11-11). Office scope only: header chips, one gold next-step
   card, status as a tap row of pills, and the page's existing
   sections inside quiet expandable rows. Presentation only. */
body.office .order-sub { color: var(--muted); margin: 0.1rem 0 0.2rem; }
body.office .order-contact { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.4rem; }
body.office .order-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.office .order-title .cust-name-edit { min-height: 44px; font-size: 0.85rem; }
body.office .cust-name-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 2px 0 8px; }
body.office .cust-name-form[hidden] { display: none; }
body.office .cust-name-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
body.office .cust-name-form input[type="text"] { min-height: 44px; font-size: 1rem; min-width: min(320px, 80vw); }
body.office .cust-name-form .button { min-height: 44px; }
body.office .cust-name-form .cust-name-note { flex-basis: 100%; margin: 0; font-size: 0.88rem; }
/* Preview-confirm pop-ups (owner's scope pick, 2026-11-15): the
   big customer sends show the recipient + the actual message in a
   bottom-sheet card (full dialog on wide screens) before anything
   goes out. Office scope only; the same card serves the generic
   send pop-up and the booked-message resend pop-up. */
body.office .send-confirm-scrim { position: fixed; inset: 0; background: rgba(36, 20, 48, 0.45); z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
body.office .send-confirm-scrim[hidden] { display: none; }
body.office .send-confirm-card { background: #fff; width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 20px; box-shadow: 0 -8px 32px rgba(36, 20, 48, 0.3); }
@media (min-width: 700px) {
  body.office .send-confirm-scrim { align-items: center; padding: 24px; }
  body.office .send-confirm-card { border-radius: 16px; }
}
body.office .send-confirm-card h3 { margin: 0 0 6px; color: var(--accent); }
body.office .send-confirm-to { margin: 0 0 12px; }
body.office .send-confirm-note { margin: 0 0 12px; font-weight: 600; color: var(--accent); }
body.office .send-confirm-msg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; background: #FBF8F2; }
body.office .send-confirm-msg-head { margin: 0 0 4px; font-weight: 700; color: var(--accent); }
body.office .send-confirm-subject { margin: 0 0 4px; font-weight: 600; }
body.office .send-confirm-body { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 0.92rem; }
body.office .send-confirm-att { margin: 6px 0 0; }
body.office .send-confirm-note { background: #FFF8E8; border: 1px solid var(--gold); border-radius: 10px; padding: 10px 12px; }
body.office .send-confirm-err { color: #8A2A1B; font-weight: 600; }
body.office .send-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; }
body.office .send-confirm-actions .button { min-height: 44px; }
body.office .send-confirm-actions .form { margin: 0; }
body.office .resend-banner { background: #FFF8E8; border: 1.5px solid var(--gold); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
body.office .resend-banner p { margin: 0 0 10px; }
body.office .resend-banner-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.office .resend-banner-actions .button { min-height: 44px; }
body.office .resend-banner-actions .form { margin: 0; }
body.office .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
body.office .chip { font-size: 0.8rem; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
body.office .chip.gold { background: var(--gold); color: var(--accent-deep); }
body.office .chip.green { background: #E8EFFC; color: #0263E0; }
/* The shared .success notice keeps its green tint on customer
   surfaces; in the office it reads in the same blue family
   (owner, 2026-12-02 — office green retired for blue). */
body.office .success { background: #E8EFFC; border-color: #CFE0F5; color: #014EB3; }
body.office .next-step { background: #FFF8E8; border: 1.5px solid var(--gold); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
body.office .next-step .next-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; color: #9a742a; text-transform: uppercase; margin: 0; }
body.office .next-step h2 { font-size: 1.2rem; margin: 4px 0 2px; }
body.office .next-step .next-note { color: var(--muted); margin: 0.2rem 0 0.6rem; }
body.office .next-step .form { margin: 0.4rem 0 0; }
body.office .status-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin-bottom: 12px; }
body.office .status-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
body.office .status-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
body.office .seg-form { margin: 0; display: flex; }
body.office .seg-pill { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--band); color: var(--muted); border: none; cursor: pointer; }
body.office .seg-form .seg-pill:hover { background: var(--accent-soft); color: var(--accent); }
body.office .seg-pill.on { background: var(--accent); color: #fff; cursor: default; }
body.office details.nav-row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 9px; }
body.office details.nav-row > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; list-style: none; }
body.office details.nav-row > summary::-webkit-details-marker { display: none; }
body.office .nav-row .row-text b { font-size: 1rem; display: block; }
body.office .nav-row .row-text small { color: var(--muted); font-size: 0.83rem; display: block; margin-top: 2px; }
body.office .nav-row .chev { color: var(--gold); font-size: 1.4rem; font-weight: 700; line-height: 1; transition: transform 0.15s ease; }
body.office details.nav-row[open ] .chev { transform: rotate(90deg); }
body.office .nav-row .row-body { padding: 4px 16px 15px; border-top: 1px dashed var(--line); }
body.office .nav-row .row-body h2 { font-size: 1.02rem; margin-top: 0.7em; }

/* Cart page — mobile slimming (owner, 2026-11-11: "everything is
   large"). ≤640px only; the desktop cart is unchanged. Selectors are
   scoped to structures that exist only on /cart — the line-item table,
   the update/save forms (matched by their action), the Submit Quote
   checkout link, and the upsell section — so other pages keep their
   sizing. Presentation only. */
@media (max-width: 640px) {
  /* Line items: two compact lines (mobile-friendliness pass,
     2026-11-11). Thumbnail + name + line total share the first line;
     the unit price and the quantity stepper share the second, so the
     stepper no longer spends a whole line of its own. Its buttons go
     back up to 40px next to the 44px-tall input (the earlier slimming
     had shrunk them to 30px while the input stayed 44 — fiddly). */
  /* The row becomes a two-by-two grid (named areas) so the two lines
     are deterministic: flex line-breaking put the unit price on the
     first line whenever the item name happened to be short. */
  .cart-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "item item total" "price qty qty";
    column-gap: 0.55rem; row-gap: 0.4rem; padding: 0.55rem 0.7rem;
  }
  .cart-table .cart-item { grid-area: item; min-width: 0; gap: 0.5rem; margin-bottom: 0; }
  .cart-table .product-img.small { width: 40px; height: 40px; border-radius: 8px; }
  .cart-table .cart-item-name { font-size: 0.94rem; }
  .cart-table .cart-total { grid-area: total; justify-self: end; margin-left: 0; font-size: 1rem; }
  .cart-table .cart-price { grid-area: price; align-self: center; font-size: 0.85rem; }
  .cart-table .cart-qty { grid-area: qty; justify-self: end; margin-top: 0; }
  .cart-table .stepper { gap: 0.3rem; }
  .cart-table .step-btn { width: 40px; height: 40px; font-size: 1.1rem; }
  .cart-table .stepper input[type="number"] { width: 52px; height: 44px; padding: 0.25rem 0.1rem; }
  /* Totals and the cart's own buttons. */
  form[action="/cart/update"] .total { font-size: 1.02rem; margin: 0.3rem 0; }
  form[action="/cart/update"] .member-savings { font-size: 0.88rem; margin-bottom: 0.4rem; }
  /* The cart's own actions go full-width at phone size (they were
     small content-width pills, 115–140px wide, on a 390px screen). */
  form[action="/cart/update"] > button.secondary { display: block; width: 100%; padding: 0.45rem 1rem; font-size: 0.95rem; min-height: 44px; }
  a.button[href="/checkout"] { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.5rem 1.1rem; font-size: 1rem; min-height: 48px; }
  form[action="/cart/save"] h2 { font-size: 1.12rem; }
  form[action="/cart/save"] label { margin: 0.45rem 0; }
  form[action="/cart/save"] button.secondary { display: block; width: 100%; padding: 0.45rem 1rem; font-size: 0.95rem; min-height: 44px; }
  /* Upsell cards and the delivery banner: compact, still tappable. */
  .upsell { margin: 1.1rem 0 0.2rem; }
  .upsell h2 { font-size: 1.22rem; }
  .upsell-sub { font-size: 0.9rem; margin-bottom: 0.6rem; }
  /* Two-column grid (mobile-friendliness pass, 2026-11-11): one
     full-width card per row made the section ~900px of scrolling, and
     at full width the 60px-tall cover photo was a ~6:1 letterbox that
     cropped products past recognizing. Half-width cards keep the
     fill-the-frame cover treatment (owner's direction) in a ~2.4:1
     frame; the third card wraps to its own row at half width. Titles
     and notes clamp to two lines so the row stays even, and the Add
     button goes full-width inside its card. */
  .upsell-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .upsell-card { padding: 8px; border-radius: 12px; }
  .upsell-card .product-img { height: 72px; border-radius: 0; margin: -8px -8px 0; width: calc(100% + 16px); }
  .upsell-card .product-img.placeholder { font-size: 1.05rem; }
  .upsell-card h3 { font-size: 0.88rem; margin: 0.3rem 0 0.1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .upsell-note { font-size: 0.8rem; min-height: 0; margin: 0.1rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .upsell-price { font-size: 0.9rem; margin: 0.2rem 0 0.4rem; }
  .upsell-form button { width: 100%; padding: 0.4rem 0.5rem; font-size: 0.9rem; min-height: 44px; }
  .upsell-band { padding: 13px 14px; margin-top: 10px; border-radius: 12px; gap: 10px; }
  .upsell-band-text strong { font-size: 1.02rem; }
  .upsell-band-text span { font-size: 0.87rem; }
  .upsell-band-cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0.45rem 0.95rem; font-size: 0.95rem; }
}

/* Catalog inventory view (owner's pick, 2026-11-11): Owned / Out /
   Available for a chosen date, with the Out drill-in naming the orders
   holding each product. Display only — no write paths live here. Kept
   compact and scannable for the owner's phone. */
.inv-note { color: var(--muted); max-width: 46rem; }
.inv-date-form { display: flex; gap: 0.6rem; align-items: end; flex-wrap: wrap; margin: 0.5rem 0 0.9rem; }
.inv-date-form label { font-weight: 600; }
.inv-table td.inv-owned, .inv-table td.inv-out, .inv-table td.inv-avail { font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-table .inv-na { color: var(--muted); font-weight: 400; font-size: 0.88rem; }
.inv-table .inv-name { white-space: normal; }
.inv-out-details summary { cursor: pointer; color: var(--accent); list-style: none; display: inline-block; padding: 0.2rem 0.4rem; margin: -0.2rem -0.4rem; }
.inv-out-details summary::-webkit-details-marker { display: none; }
.inv-out-details summary::after { content: " ▾"; font-size: 0.8em; }
.inv-out-details[open] summary::after { content: " ▴"; }
.inv-out-list { margin: 0.45rem 0 0.15rem 1.05rem; padding: 0; font-weight: 400; font-size: 0.9rem; }
.inv-out-list li { margin: 0.2rem 0; white-space: normal; }

/* Back-office audit package (owner, 2026-11-11): tab badges, the
   sticky Next-step bar + two-column order screen, the Home money
   strip, auto-save notes, Orders-list quick actions, and the
   Inbox / stale-quote worklist. Presentation + wiring only — no
   customer-facing page uses any of this (office scope where the
   order screen is concerned). */
.app-tab { position: relative; }
.app-tab-badge { position: absolute; top: -3px; right: calc(50% - 23px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--accent-deep); font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 1px 4px rgba(46,10,62,.35); }
.stat-row a.stat { text-decoration: none; color: inherit; display: block; }
.money-strip { margin-top: 10px; }
body.office .next-sticky { position: sticky; top: 58px; z-index: 15; background: var(--bg); padding: 8px 0 10px; }
body.office .next-sticky .next-step { margin-bottom: 8px; }
body.office .next-step.slim { padding: 10px 16px; }
body.office .next-quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
body.office .next-quick .pill-btn { background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 8px 14px; white-space: nowrap; text-decoration: none; border: none; cursor: pointer; font-family: inherit; }
body.office .next-quick .pill-btn.gold { background: var(--gold); color: var(--accent-deep); }
body.office .next-quick .pill-btn.secondary { background: var(--band); color: var(--accent); }
body.office .next-quick form { margin: 0; display: flex; }
body.office .order-grid { display: block; }
@media (min-width: 1024px) {
  body.office .order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; column-gap: 18px; align-items: start; grid-auto-flow: dense; }
  body.office .order-grid .row-main { grid-column: 1; }
  body.office .order-grid .row-rail { grid-column: 2; }
  body.office .order-grid .customer-card { grid-column: 2; }
}
body.office .customer-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 9px; }
body.office .customer-card b { font-size: 1rem; display: block; }
body.office .customer-card span { color: var(--muted); font-size: 0.87rem; display: block; margin-top: 2px; }
.autosave-note { font-size: 12px; color: var(--muted); margin-left: 8px; }
.oadvance { margin-top: 6px; }
.mini-btn { font: inherit; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); cursor: pointer; }
.mini-btn:hover { background: var(--gold); color: var(--accent-deep); }
.inbox-section { margin-bottom: 22px; }
.stale-age { white-space: nowrap; font-weight: 700; }

/* Quotes moved onto the Orders screen (owner, 2026-11-11): the
   Orders header carries a round purple + New Quote button at its
   top-right and a Stale Quotes chip (with the live stale count)
   under it; both quote tiles left the More grid. Office pages
   only — the classes are used solely by /admin/orders. */
.orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.orders-head h1 { margin: 0; }
.new-quote-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 2px; text-decoration: none; color: var(--accent); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.new-quote-btn .nq-plus { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 24px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(46,10,62,.35); flex: none; }
.new-quote-btn:active .nq-plus { background: var(--accent-deep); }
.orders-chips { margin: 4px 0 10px; }
body.office a.chip { display: inline-block; text-decoration: none; }
.chip-count { background: var(--gold); color: var(--accent-deep); border-radius: 999px; padding: 0 6px; font-weight: 800; font-size: 0.72rem; margin-left: 2px; }

/* ---------- Product grid: parallel columns (owner, 2026-11-11) ----------
   Product cards resize to fit side by side in parallel columns —
   four across on desktop, three on tablets, two on phones — instead
   of stacking one full-width card per row on small screens. Scoped
   to .product-grid (the storefront product listings: homepage
   featured + full catalog, /shop, and the city pages) so the
   delivery board's plain .grid keeps its own layout. Cards already
   stretch to the row's height (the grid default) with the photo in
   a uniform 4/3 frame and the add-form's margin-top:auto pinning
   the button to the bottom; the name also holds a two-line height
   so the price line starts level across a row. */
.grid.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid .card h3 { line-height: 1.3; min-height: 2.6em; }
@media (max-width: 1000px) {
  .grid.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  /* Card steppers compact a touch in the 3- and 4-across bands
     (fix, 2026-11-12): the global 44px stepper plus the Qty label
     measured ~190px against a ~188px card content column, crowding
     the card edge. 40px buttons + a 48px input bring the row to
     ~175px; the phone band below compacts further. */
  .product-grid .card .step-btn { width: 40px; height: 40px; }
  .product-grid .card .stepper input[type="number"] { width: 48px; }
}
@media (max-width: 640px) {
  .grid.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .product-grid .card > :not(.product-img) { margin-left: 0.85rem; margin-right: 0.85rem; }
  .product-grid .card h3 { font-size: 1rem; }
  /* Card button row on phones (fix, 2026-11-12): at two-across the
     44px touch stepper (155px) was wider than the card's ~145px
     content column, so the + button crowded the card's edge and the
     Qty label was pushed onto its own line. On phones the label is
     dropped (the stepper input keeps its aria-label), the stepper
     compacts to ~126px, and Add to cart takes the full row as one
     big 44px target. */
  .product-grid .card .add-form { gap: 0.5rem; }
  .product-grid .card .qty-label { display: none; }
  .product-grid .card .step-btn { width: 36px; height: 36px; font-size: 1.05rem; }
  .product-grid .card .stepper input[type="number"] { width: 44px; height: 40px; }
  .product-grid .card .add-form > button { flex: 1 1 100%; min-height: 44px; }
  /* No description on phones (owner, 2026-11-11): at two-across the
     description paragraph made each card run long. It is the card's
     only classless <p> — the price, member-price and contents lines
     all carry classes — so this hides exactly the description and
     nothing else. Desktop and tablet keep it. */
  .product-grid .card > p:not([class]) { display: none; }
}

/* Campaigns (owner, 2026-11-11): the preview surfaces on the
   campaign screen — the rendered email in a framed pane, and a
   text campaign shown as a plain message bubble. */
.camp-email-frame { width: 100%; height: 640px; border: 1px solid #E7DCC8; border-radius: 10px; background: #FAF5EA; }
.camp-text-preview { max-width: 420px; background: #e9f6ec; border: 1px solid #cfe6d2; border-radius: 14px; padding: 12px 14px; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* Back-office app & alerts card (PWA, 2026-11-12): the install hint
   and the per-device push toggle on the back-office home. Kept in
   the office palette; the hint stays subtle by design. */
.install-hint{margin:0 0 14px;padding:10px 14px;border:1px solid #E7DCC4;border-radius:12px;background:#FFFDF8;color:#7A6C84;font-size:.9rem;display:flex;gap:10px;align-items:center;justify-content:space-between}
.install-hint button{border:0;background:none;color:#4B1163;font-weight:700;font-size:1rem;cursor:pointer;padding:0 2px}
.app-alerts{margin:0 0 18px;padding:14px 16px;border:1px solid #E7DCC4;border-radius:16px;background:#FFFDF8}
.app-alerts h2{margin:0 0 4px;font-size:1.05rem}
.app-alerts p{margin:0 0 10px;color:#7A6C84;font-size:.92rem}
.app-alerts button.push-toggle{background:var(--accent,#4B1163);color:#fff;font-size:13px;font-weight:600;border:0;border-radius:999px;padding:9px 16px;cursor:pointer;font-family:inherit}
.app-alerts button.push-toggle:disabled{background:#B9A8C4;cursor:default}

/* Back-office app feel (owner, 2026-11-12): the gold-shimmer splash
   on the app home plus one shared tap-highlight system across the
   back office. Pure presentation — public/admin-fx.js drives both,
   and the splash markup ships hidden so nothing here can ever block
   a page on its own. */

/* --- Splash ("Gold shimmer monogram", back-office home only) --- */
.splash{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#5B1A7D 0%,var(--accent) 48%,var(--accent-deep) 100%);transition:opacity .38s ease}
.splash[hidden]{display:none}
.splash-done{opacity:0;pointer-events:none}
body.splash-lock{overflow:hidden}
.splash-inner{text-align:center;padding:24px}
.splash-mark{display:inline-block}
.splash-on .splash-mark{animation:splashMarkIn .55s cubic-bezier(.2,.9,.3,1.25) both}
.splash-c{display:block;font-family:"Fraunces",Georgia,serif;font-weight:900;font-size:118px;line-height:1;color:var(--gold);background-image:linear-gradient(100deg,var(--gold) 20%,#E9C87E 38%,#FFF3C4 50%,#E9C87E 62%,var(--gold) 80%);background-size:220% 100%;background-position:110% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.splash-on .splash-c{animation:splashShimmer .95s ease-in-out .1s both}
.splash-rule{display:block;width:62%;height:5px;margin:12px auto 0;border-radius:3px;background:var(--gold);opacity:0;transform:scaleX(0)}
.splash-on .splash-rule{animation:splashRule .5s ease-out .3s both}
.splash-name{margin-top:22px;font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:27px;letter-spacing:.01em;color:var(--bg);opacity:0}
.splash-on .splash-name{animation:splashRise .5s ease-out .35s both}
@keyframes splashMarkIn{from{opacity:0;transform:scale(.78)}to{opacity:1;transform:scale(1)}}
@keyframes splashShimmer{from{background-position:110% 0}to{background-position:-110% 0}}
@keyframes splashRule{from{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}
@keyframes splashRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* --- Tap highlights (every back-office page) ---
   admin-fx.js adds .fx-pressing while a tile/button is held and
   .fx-ring for the pulse, and injects a self-removing ripple span.
   The transition list is a superset of the hover fades these classes
   already had, so nothing about their resting behavior changes. */
body.office .app-tab,body.office .admin-nav a,body.office .more-grid a,body.office .new-quote-btn,body.office .pill-btn,body.office .push-toggle,body.office .button,body.office a.stat,body.office .delivery-card{position:relative;transition:transform .18s ease-out,box-shadow .18s ease-out,background-color .15s ease,border-color .15s ease,color .15s ease}
body.office .fx-pressing{transform:scale(.97)}
.fx-ring{animation:fxRing .45s ease-out}
@keyframes fxRing{0%{box-shadow:0 0 0 0 rgba(75,17,99,.45)}100%{box-shadow:0 0 0 14px rgba(75,17,99,0)}}
.fx-ripple-wrap{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none}
.fx-ripple{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(75,17,99,.30) 0%,rgba(75,17,99,.10) 45%,rgba(75,17,99,0) 70%);transform:scale(0);opacity:.9;animation:fxRipple .55s ease-out forwards}
@keyframes fxRipple{to{transform:scale(1);opacity:0}}
body.office .app-tab:focus-visible,body.office .admin-nav a:focus-visible,body.office .more-grid a:focus-visible,body.office .new-quote-btn:focus-visible,body.office .pill-btn:focus-visible,body.office .push-toggle:focus-visible,body.office .button:focus-visible,body.office a.stat:focus-visible,body.office .delivery-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Reduced motion: no splash at all (admin-fx.js skips it too), no
   ripple or press-down — the gold ring stays as an instant state so
   a press still reads as acknowledged. */
@media (prefers-reduced-motion: reduce){
  .splash{display:none !important}
  .fx-ring{animation:none}
  .fx-ripple{display:none}
  body.office .app-tab,body.office .admin-nav a,body.office .more-grid a,body.office .new-quote-btn,body.office .pill-btn,body.office .push-toggle,body.office .button,body.office a.stat,body.office .delivery-card{transition:none}
  body.office .fx-pressing{transform:none;box-shadow:0 0 0 2px rgba(75,17,99,.5)}
}

/* Website voice widget (owner, 2026-11-12): the floating
   "Talk to us" button + Christina voice panel, storefront only.
   Brand purple pill; the panel is a warm card that anchors above
   the button and lifts over the sticky cart bar when it shows. */
.voice-widget { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
body.has-cart-bar .voice-widget { bottom: 6.25rem; }
.voice-fab { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 0.8rem 1.15rem; font: 600 0.98rem "Inter", system-ui, sans-serif; cursor: pointer; box-shadow: var(--shadow-lift); }
.voice-fab:hover { background: var(--accent-dark); }
.voice-fab svg { flex: none; }
.voice-panel { width: min(340px, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 1.1rem 1.15rem 1rem; }
.voice-title { margin: 0 0 0.35rem; font: 700 1.12rem "Fraunces", serif; color: var(--ink); }
.voice-new { display: inline-block; vertical-align: 2px; margin-left: 0.3rem; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 0.08rem 0.5rem; font: 700 0.68rem "Inter", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.voice-sub { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.voice-status { margin: 0 0 0.8rem; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.voice-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.voice-alt { margin: 0.8rem 0 0; font-size: 0.88rem; color: var(--muted); }
.voice-alt a { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
  body.has-cart-bar .voice-widget { bottom: 6.75rem; }
}

/* Uniform back-to-parent link (owner, 2026-11-13): layout()
   renders it at the top of the content area on sub-screens of
   the back office, driver portal, and loader portal — one
   position, one style, always a fixed parent href. */
.back-row { margin: 0 0 12px; }
.back-link { font-weight: 700; font-size: .95rem; color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ---------- A′ back-office restyle (owner's pick, 2026-11-13) ----------
   Clean, bright app chrome for the back office, modeled on the
   Booqable-style orders app in the owner's screenshots: white
   background, very light gray fills and separators, hairline
   dividers, flat rows, Inter throughout, and ONE accent — the brand
   purple (#4B1163, var(--accent)). Scoped to body.office (the back
   office, delivery board, driver and loader portals) so the
   storefront and customer pages keep the cream brand theme
   untouched. Semantic colors stay semantic: blue = paid/success
   (office --ok token; green retired from the office 2026-12-02),
   red = alerts/destructive, gold = attention counts/warnings. */
body.office {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --band: #EEF1F6;
  --ink: #1A1D23;
  --muted: #667085;
  --line: #E6E8EE;
  --line-strong: #D8DCE5;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lift: 0 2px 6px rgba(16, 24, 40, 0.06), 0 16px 36px rgba(16, 24, 40, 0.10);
  background: #FFFFFF;
}
/* Header: white in the office (the mobile owner-app band was the
   deep footer purple; the A′ bar is white with the purple wordmark). */
body.office .site-header { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--line); }
@media (max-width: 1023px) {
  body.office.owner-app .site-header { background: #FFFFFF; }
  body.office.owner-app .site-header .brand { color: var(--accent); }
}
/* Bottom tab bar: white, hairline top border, purple active tab. */
body.office .app-tabbar { background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(16, 24, 40, 0.05); }
body.office .app-tab { color: #8A919E; }
body.office .app-tab.active { color: var(--accent); }
/* Fields: very light gray fills on white; focus turns the fill
   white and keeps the purple ring. Checkboxes/radios/files keep
   their native rendering. */
body.office input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.office select,
body.office textarea { background-color: #F6F7F9; border-color: #E2E5EC; }
body.office input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body.office select:focus,
body.office textarea:focus { background-color: #FFFFFF; }
/* Home hero: the purple stays (it is the one accent), flattened
   from the gradient to a solid brand block with white details. */
body.office .nextup { background: var(--accent); box-shadow: 0 8px 20px rgba(75, 17, 99, 0.18); }
body.office .nextup .kicker { color: #DECFF0; }
body.office .nextup a { color: #FFFFFF; }
body.office .nextup .sdot.done { background: #FFFFFF; color: var(--accent); }
body.office .nextup .sbar.done { background: #FFFFFF; }
/* Order screen: the Next-step bar's accent goes from gold to the
   brand purple; primary quick actions match. */
body.office .next-step { background: #FFFFFF; border-color: var(--accent); }
body.office .next-step .next-tag { color: var(--accent); }
body.office .next-quick .pill-btn.gold { background: var(--accent); color: #FFFFFF; }
/* Active filter chips (Orders date chips) read as the accent. */
body.office .chip.gold { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
body.office .mini-btn:hover { background: var(--accent-soft); color: var(--accent); }
/* Home app cards (install hint, alerts) join the white shell. */
body.office .install-hint { border-color: var(--line); background: #FFFFFF; color: var(--muted); }
body.office .app-alerts { border-color: var(--line); background: #FFFFFF; }
body.office .app-alerts p { color: var(--muted); }
/* Orders list — mockup cards: customer name + a status pill on the
   first row, the out → back dates under it, the meta line, then
   total + order number on the bottom row. Same data the list has
   always rendered (return_date rides the existing SELECT o.*). */
body.office .order-row { align-items: flex-start; }
body.office .order-row .ocontact { padding-top: 1px; }
body.office .oadvance { margin-top: 2px; }
body.office .order-row .otop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.office .order-row .oname { font-size: 14.5px; }
body.office .order-row .omain .oname a { color: var(--ink); text-decoration: none; }
body.office .order-row .ostatus { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: #FFFFFF; background: var(--accent); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
body.office .order-row .ostatus i { background: rgba(255, 255, 255, 0.85); }
body.office .order-row .ostatus.st-booked { background: var(--ok); }
body.office .order-row .ostatus.st-paid { background: var(--ok); }
body.office .order-row .ostatus.st-quote { background: var(--gold); color: var(--accent-deep); }
body.office .order-row .ostatus.st-quote i { background: var(--accent-deep); }
body.office .order-row .ostatus.st-cancelled { background: var(--danger); }
body.office .order-row .odates { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13.5px; color: var(--ink); }
body.office .order-row .odates b { font-size: 13.5px; font-weight: 700; }
body.office .order-row .odates .oarr { display: inline; font-size: 13px; color: var(--muted); white-space: normal; overflow: visible; }
body.office .order-row .oloc { font-size: 12px; color: var(--muted); margin-top: 1px; }
body.office .order-row .obot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
body.office .order-row .ototal { font-size: 14.5px; font-weight: 700; }
body.office .order-row .onum { display: inline; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: normal; overflow: visible; }
/* New Quote — Pickup | Delivery segmented switch (A′ addition):
   the two options ARE the form's existing fulfillmentType radios,
   visually hidden inside their labels; the checked option's pill
   fills with the brand purple. Same name/values, same drafts. */
body.office .seg-switch { display: flex; background: #EEF1F6; border-radius: 999px; padding: 3px; gap: 3px; max-width: 430px; margin: 6px 0 4px; }
body.office .seg-switch .seg-opt { flex: 1; display: block; margin: 0; position: relative; }
body.office .seg-switch .seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
body.office .seg-switch .seg-opt span { display: block; text-align: center; padding: 8px 10px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
body.office .seg-switch .seg-opt input:checked + span { background: var(--accent); color: #FFFFFF; box-shadow: 0 1px 4px rgba(75, 17, 99, 0.25); }
body.office .seg-switch .seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Totals as separate lines (New Quote live totals + the order
   screen's totals block): Subtotal / Delivery / Tax / Total. */
body.office .quote-totals { margin: 14px 0 4px; max-width: 430px; }
body.office .quote-totals .qt-row { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; font-size: 0.95rem; }
body.office .quote-totals .qt-row b { font-weight: 600; }
body.office .quote-totals .qt-grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-size: 1.08rem; }
body.office .quote-totals .qt-grand b { font-weight: 800; }

/* Mobile layout pass (owner's pick, 2026-11-13): Layout 1 Orders
   timeline cards, Layout 1 New Quote (qty steppers + sticky action
   bar), Layout 2 tab-bar thickness. Office scope only — the
   storefront never renders these components. Presentation only. */

/* Orders cards: the out → back dates become a vertical timeline —
   filled purple dot out, hollow dot back, a hairline joining them
   when both rows render (the .ot2 case), and each date gets its
   "Out — <location>" / "Back — <location>" line under it. The
   footer total gains the ✓ Paid marker in semantic blue. */
body.office .order-row .otl { position: relative; margin-top: 7px; }
body.office .order-row .otl.ot2::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: var(--line-strong); }
body.office .order-row .otl-row { display: flex; gap: 9px; align-items: flex-start; }
body.office .order-row .otl-row + .otl-row { margin-top: 7px; }
body.office .order-row .otl-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 4px; position: relative; z-index: 1; }
body.office .order-row .otl-dot.open { background: #FFFFFF; border: 2px solid #B7A6C9; }
body.office .order-row .otl-main { min-width: 0; }
body.office .order-row .otl-when { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
body.office .order-row .otl-sub { display: block; font-size: 12px; color: var(--muted); white-space: normal; overflow: visible; margin-top: 1px; }
body.office .order-row .obot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 9px; }
body.office .order-row .opaid { display: inline; font-size: 12.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }

/* New Quote item rows: the qty stepper — 44px − / + targets around
   the form's same qty input (the buttons write the input and fire
   its input event; see the builder script in routes/admin.js). */
body.office .qty-stepper { display: inline-flex; align-items: center; gap: 6px; }
body.office .qty-stepper .qty-btn { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; }
body.office .qty-stepper .qty-num { width: 3.6rem; text-align: center; }

/* New Quote sticky action bar: the live totals + the form's real
   Create quote submit, pinned above the tab bar while the form
   scrolls. The bar is in-flow (sticky), so at the end of the form
   it settles under the last field and covers nothing; on desktop
   (no tab bar) it pins to the viewport bottom. */
body.office .qb-actionbar { position: sticky; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 20; background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 24, 40, 0.06); margin-top: 16px; padding: 10px 2px 12px; }
@media (min-width: 1024px) {
  body.office .qb-actionbar { bottom: 0; }
}
body.office .qb-actionbar .quote-totals { margin: 0 0 10px; max-width: none; }
body.office .qb-actions { display: flex; }
body.office .qb-actions .button { flex: 1; padding: 0.75rem 1rem; font-size: 1rem; }

/* Tab bar, Layout 2 thickness: ~82px of bar above the safe-area
   inset, 24px icons, 11.5px labels. The bar renders only below
   1024px (desktop keeps the top nav), so the growth — and the
   compensating page-bottom padding — is mobile-only. Driver and
   loader boards render no tab bar and need no compensation; the
   delivery board rides the same owner-app padding as the office. */
body.office .app-tabbar { height: calc(82px + env(safe-area-inset-bottom)); padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); align-items: flex-start; }
body.office .app-tab { font-size: 11.5px; }
body.office .app-tab svg { width: 24px; height: 24px; margin: 0 auto 4px; }
@media (max-width: 1023px) {
  body.office.owner-app main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body.office.owner-app .voice-widget { bottom: calc(94px + env(safe-area-inset-bottom)); }
}

/* Next-step bar, V4 "Knows Where You Are" (owner, 2026-11-13):
   the sticky bar on the order screen opens with the order's
   journey — Quote → Booked → Paid → … — completed steps blue,
   the current step lit in the accent, the rest quiet. Presentation
   of the same state the Next step card keys on; office scope. */
body.office .journey { display: flex; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 9px 4px 8px; margin-bottom: 8px; }
body.office .jstep { flex: 1; text-align: center; font-size: 10.5px; line-height: 1.25; color: var(--muted); position: relative; padding-top: 14px; }
body.office .jstep::before { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; border-radius: 50%; background: #D8DCE5; }
body.office .jstep::after { content: ""; position: absolute; top: 7px; left: calc(-50% + 8px); right: calc(50% + 8px); height: 2px; background: #E6E8EE; }
body.office .jstep:first-child::after { display: none; }
body.office .jstep.done { color: var(--ok); }
body.office .jstep.done::before { background: var(--ok); }
body.office .jstep.now { color: var(--accent); font-weight: 700; }
body.office .jstep.now::before { background: var(--accent); box-shadow: 0 0 0 3px #EFE7F5; }
body.office .next-actions { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
body.office .next-actions .form { margin: 0; }
body.office .next-actions .button.secondary { white-space: nowrap; }

/* Customer progress tab (owner, 2026-11-18): the order page's
   second tab — the customer's live steps and live links. The tab
   strip sits above the details grid; the steps read like the
   journey row (done blue, current lit in the accent, the rest
   quiet), with the cancelled terminal step in the danger tint.
   Office scope. */
body.office .order-tabs { display: flex; gap: 8px; margin: 10px 0 12px; }
body.office .order-tab { border: 1px solid var(--line); background: #FFFFFF; color: var(--muted); border-radius: 999px; padding: 7px 16px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
body.office .order-tab.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
body.office .order-grid[hidden], body.office .progress-panel[hidden] { display: none; }
body.office .psteps { list-style: none; margin: 6px 0 14px; padding: 0; }
body.office .pstep { display: flex; gap: 10px; padding: 7px 0 7px 2px; color: var(--muted); }
body.office .pstep .pstep-dot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #D8DCE5; margin-top: 4px; }
body.office .pstep.done { color: var(--ok); }
body.office .pstep.done .pstep-dot { background: var(--ok); }
body.office .pstep.now { color: var(--accent); }
body.office .pstep.now .pstep-dot { background: var(--accent); box-shadow: 0 0 0 3px #EFE7F5; }
body.office .pstep.cancelled { color: var(--danger); }
body.office .pstep.cancelled .pstep-dot { background: var(--danger); }
body.office .pstep .pstep-at { font-weight: 400; font-size: 0.85rem; }
body.office .pstep .pstep-detail { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
body.office .plinks { list-style: none; margin: 6px 0; padding: 0; }
body.office .plinks li { padding: 7px 0; border-top: 1px dashed var(--line); }
body.office .plinks li:first-child { border-top: 0; }
body.office .plinks .copy-btn { margin-left: 8px; }

/* Next-step bar, compact when stuck (owner, 2026-11-13): at rest
   the sticky bar is the full V4 card, unchanged. Once it pins
   (a sentinel + IntersectionObserver adds .is-stuck), it
   collapses to one slim bar: the mini journey row and the
   state's primary action — the SAME button in the SAME form,
   so a mobile number edited in the full card is what sends.
   Heading, explainer, the mobile field, the PDF line, and the
   Call/Text/Duplicate pills hide while stuck; an info card
   (words only) hides whole, leaving the journey. The slim
   fallback bar (Returned / Cancelled) is already compact and
   keeps its pills. Presentation only; office scope. */
body.office .next-sticky-sentinel { height: 1px; margin-bottom: -1px; }
body.office .next-sticky.is-stuck { padding: 2px 0 3px; }
body.office .next-sticky.is-stuck .journey { padding: 4px 4px 3px; margin-bottom: 3px; border-radius: 10px; }
body.office .next-sticky.is-stuck .jstep { font-size: 9.5px; padding-top: 9px; }
body.office .next-sticky.is-stuck .jstep::before { width: 7px; height: 7px; top: 1px; }
body.office .next-sticky.is-stuck .jstep::after { top: 4px; left: calc(-50% + 6px); right: calc(50% + 6px); }
body.office .next-sticky.is-stuck .jstep.now::before { box-shadow: 0 0 0 2px #EFE7F5; }
body.office .next-sticky.is-stuck.has-card .next-quick { display: none; }
body.office .next-sticky.is-stuck.has-card .next-step { padding: 5px 8px; margin-bottom: 0; border-radius: 12px; }
body.office .next-sticky.is-stuck.card-info .next-step { display: none; }
body.office .next-sticky.is-stuck.card-action .next-step > p,
body.office .next-sticky.is-stuck.card-action .next-step h2 { display: none; }
body.office .next-sticky.is-stuck.card-action .next-step .form { margin: 0; }
body.office .next-sticky.is-stuck.card-action .next-step form label { display: none; }
body.office .next-sticky.is-stuck.card-action .next-actions { flex-wrap: nowrap; align-items: center; }
body.office .next-sticky.is-stuck.card-action .next-actions .form { flex: 1; }
body.office .next-sticky.is-stuck .next-step.slim { padding: 6px 12px; margin-bottom: 4px; }

/* ---------- Homepage occasion deck (W1, owner 2026-11-13) ----------
   Storefront home top only: the model line, text-only occasion
   chips, the swipeable package deck and its weather/flash
   effects, plus the package pages. Class-scoped throughout —
   nothing here reaches the office, driver or loader faces. (The
   search that sat above the model line moved into the shared
   storefront header sitewide on 2026-11-13 — see .header-search
   in the header section; the .home-search pill styling below is
   the one both forms share.) */
.home-top { margin: 0 0 2.5rem; }
.home-model-wrap { padding: 0.3rem 0 0.55rem; }
.home-search {
  display: flex; gap: 0.5rem; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 0.35rem; box-shadow: var(--shadow);
}
.home-search:focus-within { border-color: var(--accent); }
.home-search input {
  flex: 1 1 auto; min-width: 0; border: none; background: transparent;
  font: inherit; font-size: 1rem; color: var(--ink); padding: 0.45rem 0.9rem;
}
.home-search input:focus { outline: none; }
.home-search button {
  flex: none; border: none; cursor: pointer;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; border-radius: 999px; padding: 0.55rem 1.25rem;
}
.home-search button:hover { background: var(--accent-dark); }
.home-model {
  margin: 0.55rem 0 0; text-align: center;
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
}
/* Homepage trust strip (owner, 2026-11-24): the Google rating,
   quoted from the same constants as the reviews section far below,
   carried up under the model line so a cold visitor meets the proof
   before the catalog. Slim and centered like the model line. */
.rating-strip {
  margin: 0.45rem 0 0; text-align: center;
  color: var(--ink); font-size: 0.95rem;
}
.rating-strip-stars { color: var(--gold); letter-spacing: 0.1em; }
.occ-chips {
  display: flex; gap: 0.45rem; overflow-x: auto;
  padding: 0.85rem 0.1rem 0.25rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.occ-chips::-webkit-scrollbar { display: none; }
.occ-chip {
  flex: none; display: inline-flex; align-items: center;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--accent); font: inherit; font-size: 0.92rem; font-weight: 700;
  border-radius: 999px; padding: 0.42rem 0.95rem; cursor: pointer;
}
a.occ-chip:hover, button.occ-chip:hover { border-color: var(--accent); text-decoration: none; }
.pkg-deck {
  display: flex; gap: 0.9rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0.9rem 0.15rem 1.15rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pkg-deck::-webkit-scrollbar { display: none; }
.pkg-card {
  position: relative; flex: none; width: min(302px, 84vw);
  scroll-snap-align: center; border-radius: 20px; overflow: hidden;
  color: #fff; box-shadow: var(--shadow-lift); display: flex;
}
.pkg-card-body {
  position: relative; z-index: 1; flex: 1;
  padding: 1.05rem 1rem 1.1rem; display: flex; flex-direction: column;
  min-height: 452px;
}
.pkg-kick {
  margin: 0; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase; color: #F3D9A4;
}
.pkg-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: 1.5rem; line-height: 1.15; color: #fff; margin: 0.25rem 0 0.5rem;
}
.pkg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: auto; }
.pkg-tile {
  background: var(--surface); color: var(--ink);
  border-radius: 12px; padding: 0.5rem 0.55rem;
}
.pkg-tile-img, .pkg-tile img {
  width: 100%; height: 62px; object-fit: cover;
  border-radius: 8px; display: block; margin-bottom: 0.4rem;
}
.pkg-tile-name { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.25; }
.pkg-tile-price { display: block; font-size: 0.78rem; color: var(--accent); font-weight: 700; margin-top: 0.15rem; }
.pkg-from { margin: 0.85rem 0 0; font-size: 0.95rem; }
.pkg-from strong { font-size: 1.08rem; }
.pkg-cta { margin-top: 0.4rem; font-weight: 800; color: #F3D9A4; }
.pkg-cta:hover { color: #fff; }
/* Card themes (deep occasion gradients, gold accents throughout). */
.theme-xmas { background: linear-gradient(160deg, #166534, #052E16); }
.theme-birthday { background: linear-gradient(160deg, #9333EA, #4B1163); }
.theme-shower { background: linear-gradient(160deg, #C2688A, #7C2D4E); }
.theme-wedding { background: linear-gradient(160deg, #9D174D, #500724); }
.theme-corp { background: linear-gradient(160deg, #334155, #111827); }
.theme-company { background: linear-gradient(160deg, #5B21B6, #2E0A3E); }
.theme-newyears { background: linear-gradient(160deg, #92600F, #402A02); }
/* Weather layer: particle spans spawned by the deck script, always
   behind the tiles and text; they only animate while their card is
   on screen (.fx-live), and never under reduced motion. */
.pkg-fx { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.fxp {
  position: absolute; top: -4%; border-radius: 50%;
  animation-play-state: paused; will-change: transform;
}
.pkg-card.fx-live .fxp { animation-play-state: running; }
.fxp-snow { background: #fff; opacity: 0.9; animation-name: pkgFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.fxp-petals { background: #F7C8D8; opacity: 0.85; animation-name: pkgFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.fxp-confetti { top: auto; bottom: -4%; border-radius: 2px; opacity: 0.85; animation-name: pkgRiseSpin; animation-timing-function: linear; animation-iteration-count: infinite; }
.fxp-bubbles { top: auto; bottom: -4%; background: rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); animation-name: pkgRise; animation-timing-function: ease-in; animation-iteration-count: infinite; }
.fxp-dots { top: auto; bottom: -4%; background: rgba(255, 255, 255, 0.75); animation-name: pkgRise; animation-timing-function: ease-in; animation-iteration-count: infinite; }
.fxp-fizz { top: auto; bottom: -4%; background: #F3D9A4; animation-name: pkgFizz; animation-timing-function: ease-in; animation-iteration-count: infinite; }
@keyframes pkgFall {
  to { transform: translate(var(--drift, 0px), 560px) rotate(300deg); }
}
@keyframes pkgRise {
  to { transform: translate(var(--drift, 0px), -560px); }
}
@keyframes pkgRiseSpin {
  to { transform: translate(var(--drift, 0px), -560px) rotate(320deg); }
}
@keyframes pkgFizz {
  12% { opacity: 1; }
  to { transform: translate(var(--drift, 0px), -540px); opacity: 0; }
}
/* Corporate calm: no particles, just a slow sheen breathing across. */
.pkg-fx[data-fx="sheen"] {
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.13) 50%, transparent 68%);
  background-size: 260% 100%; background-position: 110% 0;
  animation: pkgCorpSheen 7.5s ease-in-out infinite; animation-play-state: paused;
}
.pkg-card.fx-live .pkg-fx[data-fx="sheen"] { animation-play-state: running; }
@keyframes pkgCorpSheen {
  0%, 100% { background-position: 115% 0; }
  50% { background-position: -15% 0; }
}
/* The flash: a one-shot light sweep + settle pop when a card becomes
   the deck's active card (the deck script toggles .flash-in). */
.pkg-sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.45) 50%, transparent 68%);
  transform: translateX(-120%);
}
.pkg-card.flash-in .pkg-sheen { animation: pkgFlash 0.7s ease-out; }
.pkg-card.flash-in { animation: pkgSettle 0.45s ease-out; }
@keyframes pkgFlash {
  0% { transform: translateX(-120%); opacity: 1; }
  100% { transform: translateX(120%); opacity: 1; }
}
@keyframes pkgSettle {
  30% { transform: scale(1.02); }
}
/* Package pages + shop search note. */
.search-note {
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 0.7rem 1rem; font-weight: 600;
}
.pkg-lines { margin: 1rem 0; }
.pkg-line {
  display: flex; gap: 0.9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin: 0.6rem 0;
}
.pkg-line-img, .pkg-line img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 10px; flex: none; display: block;
}
.pkg-line-main { display: flex; flex-direction: column; min-width: 0; }
.pkg-line-name { font-weight: 700; }
.pkg-line-qty { color: var(--muted); font-size: 0.92rem; }
.pkg-line-total { margin-left: auto; font-weight: 800; white-space: nowrap; }
.pkg-note { color: var(--muted); }
@media (max-width: 640px) {
  .pkg-card-body { min-height: 428px; }
}
/* Reduced motion: every deck effect off — weather, flash, sheen. */
@media (prefers-reduced-motion: reduce) {
  .fxp, .pkg-fx[data-fx="sheen"],
  .pkg-card.flash-in, .pkg-card.flash-in .pkg-sheen { animation: none !important; }
  .pkg-deck { scroll-behavior: auto; }
}

/* ---------- Plan My Party: sticky button + page ----------
   (owner, 2026-11-15) The tool moved to its own page,
   /plan-my-party, designed after the approved demo in the brand
   palette — purple #4B1163, gold #D4A017, cream/white surfaces.
   The homepage's only entry is the sticky Plan button pinned to
   the bottom of the screen (an in-flow CTA band rode along for
   part of the day and was removed at the owner's direction). The
   button wears the cooler treatment from the same pass: a purple
   gradient with a gold ring and glow, a party glyph, a gold Start
   pill, and a gentle shine sweep + pulse — both animations stand
   down entirely under prefers-reduced-motion. */
.plan-sticky {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 1rem;
  z-index: 29; width: min(1120px, calc(100% - 2rem)); min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, #5B1A78 0%, var(--accent) 52%, var(--accent-deep) 100%);
  color: #fff; border: 1.5px solid rgba(212, 160, 23, 0.75); border-radius: 999px;
  box-shadow: 0 12px 32px rgba(42, 21, 56, 0.38), 0 0 0 0 rgba(212, 160, 23, 0.45);
  padding: 0.65rem 0.65rem 0.65rem 1.1rem; overflow: hidden;
  animation: planPulse 3.4s ease-in-out infinite;
}
.plan-sticky::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.22) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: planShine 4.6s ease-in-out infinite;
}
@keyframes planShine {
  0%, 52% { transform: translateX(-130%); }
  84%, 100% { transform: translateX(130%); }
}
@keyframes planPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(42, 21, 56, 0.38), 0 0 0 0 rgba(212, 160, 23, 0.45); }
  50% { box-shadow: 0 12px 32px rgba(42, 21, 56, 0.38), 0 0 0 10px rgba(212, 160, 23, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .plan-sticky { animation: none; }
  .plan-sticky::after { animation: none; display: none; }
}
.plan-sticky:hover {
  text-decoration: none;
  background: linear-gradient(135deg, #6A2389 0%, #57166D 52%, #2A1538 100%);
}
.plan-sticky-badge {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(212, 160, 23, 0.6);
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1;
}
.plan-sticky-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1 1 auto; }
.plan-sticky-text strong { font-size: 1.12rem; font-weight: 700; }
.plan-sticky-text strong, .plan-sticky-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-sticky-sub { color: #E9DFF2; font-size: 0.92rem; }
.plan-sticky-cta {
  flex: none; background: linear-gradient(180deg, #E5B52C, #D4A017); color: #2A1538;
  padding: 0.8rem 1.7rem; border-radius: 999px;
  font-size: 1.05rem; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.plan-sticky-arrow { display: inline-block; transition: transform 0.18s ease; }
.plan-sticky:hover .plan-sticky-cta { background: #B98A12; }
.plan-sticky:hover .plan-sticky-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .plan-sticky-arrow { transition: none; }
}
/* Stacking contract: when the sticky cart bar is on the page —
   server-rendered OR inserted later by the stay-in-place fragment
   refresh (:has sees both) — the Plan button rides directly above
   it instead of overlapping it. */
body:has(.cart-bar) .plan-sticky { bottom: 6.6rem; }
/* Same courtesy for the "Talk to us" voice widget when it is
   switched on: the Plan button rides above the FAB too (the FAB
   itself already rides above the cart bar the same way). */
body:has(.voice-widget) .plan-sticky { bottom: 4.8rem; }
body:has(.voice-widget):has(.cart-bar) .plan-sticky { bottom: 10.1rem; }
/* Page clearance so neither fixed bar can cover the footer. */
body:has(.plan-sticky) { padding-bottom: 6rem; }
body:has(.plan-sticky):has(.cart-bar) { padding-bottom: 11.75rem; }
@media (max-width: 640px) {
  .plan-sticky { width: calc(100% - 1rem); bottom: 0.5rem; padding: 0.55rem 0.55rem 0.55rem 0.8rem; gap: 0.6rem; }
  .plan-sticky-badge { width: 40px; height: 40px; font-size: 1.15rem; }
  body:has(.cart-bar) .plan-sticky { bottom: 5.95rem; }
  body:has(.voice-widget) .plan-sticky { bottom: 4.4rem; }
  body:has(.voice-widget):has(.cart-bar) .plan-sticky { bottom: 10.6rem; }
}

/* The page itself: the demo's layout — hero, then a single
   centered column carrying the planner card (occasion pills +
   guest stepper, availability banner, editable list with a purple
   totals panel) and the capture card. (The customer phone that
   rode sticky beside the column was removed at the owner's
   direction, 2026-11-15.) */
.pmp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: stretch; margin-top: 0.5rem; }
.pmp-hero-copy {
  background: var(--accent); color: #fff; border-radius: 22px;
  padding: 28px 26px 24px; position: relative; overflow: hidden;
}
.pmp-hero-copy::after {
  content: ""; position: absolute; right: -30px; bottom: -50px;
  width: 180px; height: 180px; border: 22px solid rgba(255, 255, 255, 0.08); border-radius: 50%;
}
.pmp-hero-copy h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0; }
.pmp-hero-copy h1 em { font-style: normal; color: #D4A017; }
.pmp-lead { font-size: 1.06rem; line-height: 1.55; color: #E9DFF2; max-width: 52ch; margin: 14px 0 18px; }
.pmp-lead strong { color: #fff; }
.pmp-chips { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.pmp-chip { border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px 11px; border-radius: 999px; font-weight: 700; font-size: 0.83rem; }
.pmp-chip-solid { background: #fff; color: var(--accent-deep); border-color: #fff; font-weight: 800; }
.pmp-hero-img { border-radius: 22px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pmp-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pmp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin: 18px auto 0; max-width: 880px; }
/* Centering (owner, 2026-11-15): the main column's track must be
   capped at the column width — with an implicit track the grid sized
   itself to the cards' max-content (404px at a 390px phone width),
   pushing the whole flow off-center with sideways scroll. The
   minmax(0, 1fr) track keeps every card inside the column. */
.pmp-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.pmp-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
  padding: 20px 20px 22px;
}
.pmp-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pmp-card h2 { font-size: 1.6rem; margin: 0; }
.pmp-sub { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; }
.pmp-step {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: #FFF4E2; border: 1px solid var(--line); color: var(--ink);
  padding: 6px 8px; border-radius: 999px; white-space: nowrap;
}
.pmp-form { margin-top: 4px; }
.pmp-label { font-weight: 700; font-size: 0.83rem; letter-spacing: 0.02em; text-transform: uppercase; margin: 18px 0 8px; }
.pmp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pmp-pill {
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 700;
  cursor: pointer; min-height: 44px;
}
.pmp-pill[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Pickup/Delivery segmented choice (2026-11-15): two pill radios in
   the occasion pills' language — the picked one fills purple. */
.pmp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pmp-seg-opt { position: relative; display: block; }
.pmp-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pmp-seg-opt span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; border: 1.5px solid var(--line-strong); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.pmp-seg-opt input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.pmp-seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A hidden field block must actually hide — the .pmp-field display
   rule would otherwise beat the hidden attribute. */
.pmp-field[hidden], #planDeliveryFields[hidden] { display: none; }
.pmp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pmp-field { display: block; font-size: 0.85rem; font-weight: 700; margin-top: 14px; }
.pmp-field input, .pmp-field select {
  width: 100%; margin-top: 6px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 11px 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400;
  min-height: 44px;
}
.pmp-guests {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #FFF4E2; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.pmp-guests-num { font-family: "Fraunces", Georgia, serif; font-size: 2.2rem; font-weight: 900; line-height: 1; min-width: 64px; text-align: center; }
.pmp-guests input[type="range"] { flex: 1; accent-color: #D4A017; min-height: 44px; }
.pmp-guests-input { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.pmp-guests-input input {
  width: 76px; margin-left: 6px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 8px; font: inherit; color: var(--ink); background: var(--surface); min-height: 44px;
}
.pmp-submit { width: 100%; margin-top: 20px; padding: 1rem; font-size: 1.05rem; }
.pmp-submit-alt { background: #D4A017; color: #2A1538; border: none; }
.pmp-submit-alt:hover { background: #B98A12; }
.pmp-note { font-size: 0.83rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

.pmp-avail {
  display: none; margin-top: 18px; background: #EAF6EC; border: 1px solid #BFE6CC;
  border-radius: 14px; padding: 14px 16px; gap: 12px;
}
.pmp-avail.show { display: flex; }
.pmp-avail-check {
  width: 36px; height: 36px; background: var(--ok); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; flex: none;
}
.pmp-avail strong { color: var(--ok); }
.pmp-avail-text { font-size: 0.9rem; color: var(--muted); }

.pmp-list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pmp-list-head h3 { font-size: 1.25rem; margin: 0; }
.pmp-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.pmp-item:last-of-type { border-bottom: none; }
.pmp-thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); overflow: hidden; }
.pmp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmp-item-main h4 { margin: 0; font-size: 0.95rem; }
.pmp-item-main p { margin: 2px 0 0; color: var(--muted); font-size: 0.83rem; }
.pmp-price { font-weight: 600; }
.pmp-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.82em; font-weight: 600; }
.pmp-badge-ok { background: #EEF7EE; color: #256B2A; }
.pmp-badge-low { background: #FBF3DF; color: #7A5A00; }
.pmp-badge-out { background: #FBEAEA; color: #9B2C2C; }
.pmp-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pmp-line { font-weight: 800; font-size: 0.95rem; }
.pmp-totals { background: var(--accent); color: #fff; border-radius: 16px; padding: 16px; margin-top: 16px; }
.pmp-totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; color: #E9DFF2; }
.pmp-totals > div.pmp-total { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 8px; padding-top: 10px; color: #fff; font-size: 1.12rem; font-weight: 900; }
.pmp-totals-note { margin: 8px 0 0; font-size: 0.75rem; color: #CBB8DC; }

.pmp-capture { transition: opacity 0.3s; }
.pmp-capture.is-locked { opacity: 0.55; pointer-events: none; }

.pmp-success-lines { margin-top: 14px; border-top: 1px solid var(--line); }
.pmp-success-line { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.pmp-success-total { font-weight: 800; font-size: 1.05rem; }
.pmp-success-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  /* Same centering guard as .pmp-main: the single-column tracks are
     capped at the column width so nothing sizes them by max-content. */
  .pmp-hero, .pmp-layout { grid-template-columns: minmax(0, 1fr); }
  .pmp-grid2 { grid-template-columns: 1fr; }
  .pmp-hero-img { min-height: 220px; }
}

/* ---------- Back-office Layout A · Today Cockpit (owner's pick,
   2026-11-16) — DESKTOP ONLY. The sidebar (.bo-side) and the
   cockpit (.cockpit) are display:none below 1024px, and the
   legacy phone home (.home-legacy) is display:none at 1024px and
   up, so the phone back office renders exactly as before while
   the desktop gets the sidebar shell + Today Cockpit home.
   Clean white cards, purple accent — the office language. */
.bo-side { display: none; }
.cockpit { display: none; }
@media (min-width: 1024px) {
  .bo-side {
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0; width: 220px; z-index: 40;
    background: #FFFDF8; border-right: 1px solid #E6E2EA;
    padding: 20px 14px 16px; overflow-y: auto;
  }
  .bo-brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 18px; }
  .bo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex: none; }
  .bo-brand-t { line-height: 1.2; min-width: 0; }
  .bo-brand-t b { font-size: 14.5px; display: block; }
  .bo-brand-t span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .bo-nav { display: flex; flex-direction: column; gap: 2px; }
  .bo-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #55505C; font-size: 13.5px; font-weight: 600; text-decoration: none; }
  .bo-link:hover { background: #F3EEF7; color: var(--ink); text-decoration: none; }
  .bo-link.active { background: var(--accent); color: #fff; }
  .bo-ic { width: 17px; text-align: center; font-size: 13px; opacity: .85; flex: none; }
  .bo-badge { margin-left: auto; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; line-height: 1.5; }
  .bo-link.active .bo-badge { background: #fff; color: var(--accent); }
  .bo-spacer { flex: 1; }
  .bo-newquote { display: block; text-align: center; background: var(--accent); color: #fff; border-radius: 9px; padding: 11px 16px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
  .bo-newquote:hover { background: var(--accent-dark); text-decoration: none; }
  .bo-owner { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px 8px 2px; border-top: 1px solid #E6E2EA; }
  .bo-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
  .bo-owner-t { line-height: 1.25; }
  .bo-owner-t b { font-size: 12.5px; display: block; }
  .bo-owner-t span { font-size: 11px; color: var(--muted); }
  .bo-signout { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
  body.has-side .site-header { display: none; }
  body.has-side .admin-nav { display: none; }
  body.has-side main { margin: 0 0 0 220px; max-width: none; padding: 24px 28px 0; }
  .home-legacy { display: none; }
  .cockpit { display: block; color: #1C1A1E; }
  .ck-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
  .cockpit .ck-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
  .ck-head h1 span { color: #8A8494; font-weight: 600; font-size: 15px; }
  .ck-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
  .ck-search { display: flex; align-items: center; gap: 8px; border: 1px solid #E6E2EA; border-radius: 9px; background: #FBFAFC; padding: 4px 6px 4px 12px; }
  .ck-search input { border: none; background: transparent; outline: none; font-size: 13px; color: var(--ink); min-width: 210px; }
  .ck-search button { background: var(--accent); color: #fff; border: none; border-radius: 7px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
  .ck-weeklink { color: var(--accent); font-weight: 700; font-size: 13px; white-space: nowrap; }
  .ck-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
  .ck-card { border: 1px solid #E6E2EA; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(28,26,30,.05), 0 1px 6px rgba(28,26,30,.04); padding: 16px 18px; }
  .ck-card + .ck-card { margin-top: 20px; }
  .cockpit .ck-card h2, .cockpit .ck-h2 { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin: 0 0 12px; }
  .ck-note { float: right; font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: none; letter-spacing: 0; }
  .ck-attn { display: flex; gap: 12px; padding: 11px 12px 11px 14px; border: 1px solid #E6E2EA; border-left: 4px solid var(--gold); border-radius: 9px; margin-bottom: 10px; background: #FFFDF6; }
  .ck-attn:last-child { margin-bottom: 0; }
  .ck-attn .at { flex: 1; min-width: 0; }
  .ck-attn .at b { font-size: 13.5px; display: block; }
  .ck-attn .at p { font-size: 12.5px; color: #55505C; margin: 0; }
  .ck-attn .act { align-self: center; color: var(--accent); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
  .ck-empty { font-size: 13px; color: #55505C; margin: 0; }
  .ck-tl-row { display: flex; gap: 14px; position: relative; padding: 7px 0; }
  .ck-tl-time { width: 76px; flex: none; text-align: right; font-size: 12px; font-weight: 700; color: #55505C; padding-top: 1px; }
  .ck-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 5px; }
  .ck-tl-dot.green { background: #0263E0; }
  .ck-tl-dot.gold { background: var(--gold); }
  .ck-tl-body b { font-size: 13.5px; display: block; }
  .ck-tl-body span { font-size: 12.5px; color: #55505C; }
  .ck-week-row, .ck-recent-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F0EDF4; }
  .ck-week-row:last-child, .ck-recent-row:last-child { border-bottom: none; padding-bottom: 2px; }
  .ck-week-day { width: 38px; flex: none; text-align: center; background: #F3EEF7; border-radius: 8px; padding: 4px 0; line-height: 1.15; }
  .ck-week-day b { display: block; font-size: 12.5px; color: var(--accent); }
  .ck-week-day span { font-size: 10px; color: #8A8494; font-weight: 700; text-transform: uppercase; }
  .ck-wt, .ck-rt { flex: 1; min-width: 0; }
  .ck-wt b, .ck-rt b { font-size: 13px; display: block; }
  .ck-wt span, .ck-rt span { font-size: 11.5px; color: #8A8494; }
  .ck-amt { font-weight: 800; font-size: 13px; }
  .ck-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
  .ck-pill.quote { background: #F3EEF7; color: var(--accent); }
  .ck-pill.booked { background: #FAF3E0; color: #B8860B; }
  .ck-pill.paid { background: #E8EFFC; color: #0263E0; }
  .ck-pill.out { background: #ECEAF0; color: #1C1A1E; }
  .ck-pill.returned { background: #F1EFF4; color: #8A8494; }
  .ck-pill.partial { background: #FAF3E0; color: #B8860B; }
  .ck-stats-h { margin-top: 22px; }
  .ck-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .ck-stat { border: 1px solid #E6E2EA; border-radius: 12px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 2px rgba(28,26,30,.05), 0 1px 6px rgba(28,26,30,.04); }
  .ck-stat.accent { background: #F3EEF7; border-color: #E7DDF1; }
  .ck-stat .num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
  .ck-stat .cap { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8A8494; margin-top: 2px; }
  .ck-stat .sub { font-size: 11.5px; color: #8A8494; margin-top: 3px; }
}

/* ---------- Sticky Assistant button (owner, 2026-11-17) ----------
   One fixed pill linking to the back-office Wonder chat
   (/admin/assistant), rendered by layout() under the same gate as
   the tab bar, so it shows on signed-in owner + delivery-board
   pages only. Phone: bottom-right, 12px above the 82px tab bar —
   the same offset the office voice widget already uses at this
   width (94px = 82px bar + 12px gap, plus the safe-area inset).
   Desktop (no tab bar; the Layout A sidebar owns the left edge):
   bottom-right corner. z-index 55 keeps it above page content
   and sticky bars but under the lightbox (80) and the
   send-confirm scrim (1200), so modals still cover it. Two pages
   carry their own bottom-right furniture and restack the pill
   above it via :has() (the same trick .plan-sticky uses for the
   voice widget): the New Quote page's sticky action bar (worst
   case ~210px tall with totals showing: pinned at the tab bar's
   top edge on phones, at the viewport bottom on desktop) and the
   voice-test page's "Talk to us" FAB (~49px tall where the
   widget's own bottom offset puts it). */
.assistant-fab { position: fixed; right: 1rem; bottom: calc(94px + env(safe-area-inset-bottom)); z-index: 55; display: inline-flex; align-items: center; background: var(--accent); color: #fff; font: 600 0.95rem "Inter", system-ui, sans-serif; padding: 0.8rem 1.25rem; border-radius: 999px; box-shadow: var(--shadow-lift); text-decoration: none; white-space: nowrap; }
.assistant-fab:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
body:has(.qb-actionbar) .assistant-fab { bottom: calc(302px + env(safe-area-inset-bottom)); }
body:has(.voice-widget) .assistant-fab { bottom: calc(154px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .assistant-fab { right: 20px; bottom: 20px; }
  body:has(.qb-actionbar) .assistant-fab { bottom: 224px; }
  body:has(.voice-widget) .assistant-fab { bottom: 78px; }
}

/* ---------- Back-office Twilio reskin (owner's direction,
   2026-11-29): the back office follows the Twilio console's style,
   fonts and colors. SKIN ONLY — no layout, workflow or copy
   changes. Scoped to body.office (back office, delivery board,
   driver and loader portals) and layered AFTER the A′ restyle:
   same-specificity office rules below win the cascade, and every
   var(--accent)-driven A′/office rule re-tints through the tokens.
   The storefront :root keeps the cream/purple brand untouched.
   Twilio tokens (console reads cross-checked against Paste):
   ink #121C2D, primary blue #0263E0, muted slate #5A6B7F, hairline
   #D9E0EB, pale nav #EEF1F6 with #DDE6F2 active pill, field tint
   #F4F6F9, brand red #F22F46 reserved for the logo-level mark and
   destructive actions, success blue #0263E0 (owner, 2026-12-02:
   the office success green was retired for the primary blue, so
   --ok below carries the blue and every paid/success element in
   the office reads blue). Inter is already
   the office face (loaded in layout's head, weights 400–800). */
body.office {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --band: #F4F6F9;
  --ink: #121C2D;
  --muted: #5A6B7F;
  --line: #D9E0EB;
  --line-strong: #B9C6D8;
  --accent: #0263E0;
  --accent-dark: #014EB3;
  --accent-deep: #121C2D;
  --accent-soft: #E8EFFC;
  --gold: #D97706;
  --ok: #0263E0;
  --danger: #D61F38;
  --shadow: none;
  --shadow-lift: none;
  --radius: 16px;
  --radius-sm: 10px;
}
/* Type: Paste-weight headings (700, not 800), ink stat numbers. */
body.office h1 { font-size: 1.75rem; font-weight: 700; }
body.office h2 { font-weight: 700; }
body.office .stat-n { color: var(--ink); }
/* Header wordmark reads as Twilio's dark-navy logotype text. */
body.office .site-header .brand { color: var(--ink); }
@media (max-width: 1023px) {
  body.office.owner-app .site-header .brand { color: var(--ink); }
}
/* Buttons: Twilio's two shapes — solid blue for the primary
   action (.button), outline blue on white for the secondary.
   Radius drops from the brand pill to the console's ~8px. */
body.office .button, body.office button.button { border-radius: 8px; font-weight: 600; }
body.office .button.secondary, body.office button.secondary {
  background: #FFFFFF; color: var(--accent); border: 1.5px solid var(--accent);
  border-radius: 8px; font-weight: 600;
}
body.office .button.secondary:hover, body.office button.secondary:hover { background: var(--accent-soft); text-decoration: none; }
body.office .pill-btn, body.office .need-row .pill-btn, body.office .next-quick .pill-btn { border-radius: 8px; }
/* Nav: the console's light rail treatment — pale blue-grey items,
   the active one a deeper pale pill with dark bold text (the
   selected-tab look from the console home). */
body.office .admin-nav a { background: #EEF1F6; border-color: transparent; color: #33475C; border-radius: 8px; font-weight: 600; }
body.office .admin-nav a:hover { background: #DDE6F2; color: var(--ink); }
body.office .admin-nav a.active { background: #DDE6F2; border-color: transparent; color: var(--ink); font-weight: 700; }
body.office .admin-nav a.active:hover { background: #CBDCF1; }
/* Desktop sidebar (Layout A): pale rail, pale active pill, and
   the one red brand mark — Twilio red lives at logo level only. */
body.office .bo-side { background: #EEF1F6; border-right-color: var(--line); }
body.office .bo-mark { background: #F22F46; }
body.office .bo-link { color: #33475C; }
body.office .bo-link:hover { background: #E1E9F4; color: var(--ink); }
body.office .bo-link.active { background: #DDE6F2; color: var(--ink); }
body.office .bo-badge { background: var(--accent); }
body.office .bo-link.active .bo-badge { background: var(--accent); color: #fff; }
body.office .bo-owner { border-top-color: var(--line); }
/* Fields: white with a slate border and the blue focus ring;
   the chevron re-tints to the slate. Same selector shape as the
   A′ field rules so the cascade lands here. */
body.office input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.office select,
body.office textarea { background-color: #FFFFFF; border-color: #C1CEDF; border-radius: 8px; }
body.office input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body.office select:focus,
body.office textarea:focus { background-color: #FFFFFF; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(2, 99, 224, 0.22); }
body.office select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235A6B7F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.office input[type="checkbox"], body.office input[type="radio"] { accent-color: var(--accent); }
/* Cards & panels: flat white, hairline border, console radius.
   (Shadows are already off via the token override above.) */
body.office .order-card, body.office .delivery-card { border-radius: 16px; }
body.office .stat { border-radius: 16px; }
body.office .catalog-row { border-radius: 16px; }
body.office .table { border-radius: 16px; }
body.office fieldset { border-radius: 16px; }
body.office .more-grid a { border-radius: 16px; }
body.office .route-planner { border-radius: 16px; }
body.office .need-row { border-radius: 12px; }
/* Home hero: the flat purple block becomes the console's
   blue-to-navy sweep, details in pale blue instead of lavender. */
body.office .nextup { background: linear-gradient(135deg, #0263E0, #121C2D); box-shadow: none; }
body.office .nextup .kicker { color: #A9CBF7; }
body.office .nextup p { color: #C7D8F2; }
body.office .nextup .sdot { color: #B9D2F5; }
body.office .nextup .slabels { color: #B9D2F5; }
/* Hard-coded cream/purple leftovers on office surfaces. */
body.office .order-row { border-bottom-color: var(--line); }
body.office .order-row .ocontact a { border-color: var(--line-strong); }
body.office .order-card.dayof { background: #FFFBEB; border-color: var(--gold); }
body.office .order-card.dayof h3 { color: var(--ink); }
body.office .cal-order { background: #E8EFFC; color: var(--ink); }
body.office .cal-today { outline-color: var(--accent); }
body.office .cal-toggle button { border-color: var(--line-strong); color: var(--ink); }
body.office .seg-switch .seg-opt input:checked + span { box-shadow: none; }
body.office .install-hint button { color: var(--accent); }
body.office .send-confirm-scrim { background: rgba(18, 28, 45, 0.45); }
body.office .send-confirm-card { box-shadow: 0 -8px 32px rgba(18, 28, 45, 0.3); }
body.office .assistant-fab { box-shadow: 0 4px 14px rgba(18, 28, 45, 0.22); }
body.office .new-quote-btn .nq-plus { box-shadow: none; }
/* Desktop cockpit (Layout A home): hairlines and fills join the
   same palette; cards go flat like the rest of the console. */
@media (min-width: 1024px) {
  body.office .cockpit { color: var(--ink); }
  body.office .ck-card, body.office .ck-stat { border-color: var(--line); box-shadow: none; border-radius: 16px; }
  body.office .ck-search { border-color: var(--line); background: #F4F6F9; }
  body.office .ck-attn { border-color: var(--line); background: #FFFFFF; }
  body.office .ck-attn .at p, body.office .ck-empty, body.office .ck-tl-time, body.office .ck-tl-body span { color: #5A6B7F; }
  body.office .ck-week-row, body.office .ck-recent-row { border-bottom-color: #EDF1F6; }
  body.office .ck-week-day { background: #EEF1F6; }
  body.office .ck-week-day span, body.office .ck-wt span, body.office .ck-rt span,
  body.office .ck-stat .cap, body.office .ck-stat .sub, body.office .ck-head h1 span { color: var(--muted); }
  body.office .ck-pill.quote { background: #E8EFFC; }
  body.office .ck-pill.paid { background: #E8EFFC; color: var(--ok); }
  body.office .ck-pill.out { background: #EDF1F6; color: var(--ink); }
  body.office .ck-pill.returned { background: #F1F4F8; color: var(--muted); }
  body.office .ck-stat.accent { background: #E8EFFC; border-color: #CFE0F5; }
}
