/* ===========================================================
   Road design system
   =========================================================== */
:root {
  --navy-950: #0b1220;
  --navy-900: #0f1830;
  --navy-800: #16213e;
  --navy-700: #1e2c4f;
  /* Brand: calm blues - deep navy -> ocean blue -> soft sky. --brand is the solid "main action"
     color; --brand-grad is for the few places that get a gradient (logo, primary buttons, hero glow).
     (--brand-violet / --brand-pink are the gradient's 2nd and 3rd stops; the names are historical.) */
  --brand: #2C5FD4;
  --brand-hover: #234FB6;
  --brand-violet: #3F7FD9;
  --brand-pink: #6FA8DC;
  --brand-grad: linear-gradient(135deg, #1E3A6E 0%, #2C5FD4 55%, #5B9BD5 100%);
  --brand-glow: rgba(44, 95, 212, 0.28);
  --accent-600: #2A57C2;
  --accent-500: #4A78DB;
  --accent-100: #E6EEFB;
  --orange-500: #5B6B82;
  --orange-100: #E9EDF2;
  --green-600: #2F7350; /* 4.9:1 on --green-100, 5.7:1 on white */
  --green-100: #E3F1E9;
  --amber-600: #7A5C1E; /* 5.3:1 on --amber-100 */
  --amber-100: #F6EFDD;
  --red-600: #A3333D; /* 5.6:1 on --red-100 */
  --red-100: #F8E5E6;
  /* Extra tones for colorful icon chips (home cards, service tiles). */
  /* Calm, low-saturation tones: blues, steel, slate, sage. Names are kept so existing classes still work. */
  --tone-blue: #2C5FD4;   --tone-blue-bg: #E6EEFB;
  --tone-teal: #2E7F8C;   --tone-teal-bg: #E1EFF1;
  --tone-orange: #4E5D73; --tone-orange-bg: #E8ECF1;
  --tone-pink: #3C8DC7;   --tone-pink-bg: #E3F0F9;
  --tone-violet: #4F5FA8; --tone-violet-bg: #E8EAF5;
  --tone-green: #4A8466;  --tone-green-bg: #E4F0E9;
  --tone-amber: #7A5C1E;  --tone-amber-bg: #F4EEE0;
  --tone-red: #B5525A;    --tone-red-bg: #F6E6E7;
  --gray-50: #F3F5F8;
  --gray-100: #EAEDF2;
  --gray-200: #DDE2E9;
  --gray-300: #C6CDD8;
  --gray-400: #99A2B1;
  --gray-500: #606A7B;
  --gray-600: #475163;
  --gray-700: #333C4C;
  --gray-800: #1C2331;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.06), 0 1px 3px rgba(15, 30, 60, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 35, 75, 0.10), 0 2px 8px rgba(15, 35, 75, 0.06);
  --shadow-lg: 0 24px 56px rgba(15, 35, 75, 0.18), 0 6px 16px rgba(15, 35, 75, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;

  /* ---- Theme tokens (light, default) ----
     Everything below is what actually flips for dark mode - components
     should reference these instead of raw grays/#111 where the surface
     or text needs to invert. See [data-theme="dark"] below. */
  --bg: #F4F6F9;
  --surface: var(--white);
  --surface-alt: var(--gray-50);
  --surface-alt-2: var(--gray-100);
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --text-faint: var(--gray-400);
  --text-strong: #0B1424;
  --border: #E1E5EC;
  --border-strong: var(--gray-300);
  --btn-primary-bg: var(--brand);
  --btn-primary-bg-hover: var(--brand-hover);
  --btn-primary-text: var(--white);
  --input-bg: var(--white);
  --skeleton-a: var(--gray-100);
  --skeleton-b: var(--gray-200);
  --link-color: var(--accent-600);
  --link-color-hover: var(--brand-violet);
  --header-bg: rgba(255, 255, 255, 0.78);
  --footer-bg: #0B1424;
}

/* Dark palette - same colors as light, tuned for a dark room: a deep navy-black
   page (not pure black, which glares against bright text), low-contrast surfaces,
   and accents a notch softer so nothing is harsh. Tinted chips (the -100s and
   tone backgrounds) become translucent washes instead of pastel blocks. */
[data-theme="dark"] {
  --brand: #3A6FD8;
  --brand-hover: #4A7EE3;
  --brand-violet: #4A83D6;
  --brand-pink: #7FAEDB;
  --brand-grad: linear-gradient(135deg, #1D3563 0%, #3464C4 55%, #5E93C8 100%);
  --brand-glow: rgba(58, 111, 216, 0.2);
  --accent-600: #9DBBF0;
  --accent-500: #6F95DE;
  --accent-100: rgba(88, 130, 220, 0.16);
  --orange-500: #9AA7BA;
  --orange-100: rgba(154, 167, 186, 0.14);
  --green-600: #7CC29C;
  --green-100: rgba(124, 194, 156, 0.13);
  --amber-600: #D4B06A;
  --amber-100: rgba(212, 176, 106, 0.13);
  --red-600: #E27B84;
  --red-100: rgba(226, 123, 132, 0.14);
  --tone-blue: #8AAEF0;   --tone-blue-bg: rgba(88, 130, 220, 0.16);
  --tone-teal: #7FC0C8;   --tone-teal-bg: rgba(127, 192, 200, 0.13);
  --tone-orange: #A4B0C2; --tone-orange-bg: rgba(164, 176, 194, 0.13);
  --tone-pink: #86BCE3;   --tone-pink-bg: rgba(134, 188, 227, 0.14);
  --tone-violet: #9BA6DE; --tone-violet-bg: rgba(155, 166, 222, 0.14);
  --tone-green: #7CC29C;  --tone-green-bg: rgba(124, 194, 156, 0.13);
  --tone-amber: #D4B06A;  --tone-amber-bg: rgba(212, 176, 106, 0.13);
  --tone-red: #E27B84;    --tone-red-bg: rgba(226, 123, 132, 0.14);
  --gray-100: #1E2430;
  --gray-600: #A0A9B8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.35);
  --bg: #090C12;
  --surface: #10141C;
  --surface-alt: #161B25;
  --surface-alt-2: #1E2430;
  --text: #D4D9E2;
  --text-muted: #8791A2;
  --text-faint: #58616F;
  --text-strong: #F1F4F8;
  --border: #212835;
  --border-strong: #303848;
  --btn-primary-bg: var(--brand);
  --btn-primary-bg-hover: var(--brand-hover);
  --btn-primary-text: #FFFFFF;
  --input-bg: #0D1118;
  --skeleton-a: #161B25;
  --skeleton-b: #1E2430;
  --link-color: #9DBBF0;
  --link-color-hover: #C3D5F5;
  --header-bg: rgba(10, 13, 19, 0.82);
  --footer-bg: #06080C;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background 0.15s ease, color 0.15s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.link-accent { color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; }
.link-accent:hover { color: var(--link-color-hover); }
/* a .link-accent that is a <button>, e.g. "Choose from list" beside a typed field */
button.link-accent { background: none; border: none; padding: 0; margin-top: 6px; cursor: pointer; font: inherit; font-size: 0.82rem; }

/* Mobile Services progress markers. There is one above each section of the page -
   Service (above the service tiles), Where and when (above the location/time card) and
   Pick a shop (above the results). Each is a bar the width of its section, green when done and
   highlighted when current, with its number or check and label under it. */
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center;
  margin-bottom: 12px; font-size: 0.84rem; color: var(--text-muted);
}
.step::before { content: ''; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--border-strong); margin-bottom: 8px; }
.step[data-step="rest"], .step[data-step="details"] { margin-top: 28px; }
.step-dot {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700;
}
.step-dot svg { width: 12px; height: 12px; }
.step.current { color: var(--text-strong); font-weight: 700; }
/* text-strong, not the accent color: in the dark theme accent-600 is nearly the page background and the bar disappears */
.step.current::before { background: var(--text-strong); }
.step.current .step-dot { background: var(--accent-100); color: var(--accent-600); border-color: transparent; }
.step.done { color: var(--green-600); }
.step.done::before { background: var(--green-600); }
.step.done .step-dot { background: var(--green-100); color: var(--green-600); border-color: transparent; }
@media (max-width: 520px) {
  .step { font-size: 0.78rem; column-gap: 6px; }
}
/* The header at the top-left of the where-and-when card: bold title, quieter line under it. */
.card-head { margin-bottom: 16px; }
.card-title { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--text-strong); }
.card-sub { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-muted); }
.summary-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 0.86rem; color: var(--text-muted);
}
.summary-bar button.link-accent { margin-top: 0; flex: none; }

/* Mobile Services "where and when" card: zip row, status line, and the When chips. */
.where-row { display: flex; gap: 8px; align-items: stretch; }
.where-row input, .where-row select { flex: 1; min-width: 0; }
.where-row .btn { white-space: nowrap; }
/* Keep the boxes a sensible length instead of running the full width of the card: Vehicle, Street address,
   City/State/ZIP (and the date/time boxes) all share one left-aligned column, so their right edges line up. */
.where-row, .address-row { max-width: 440px; }
/* The vehicle bar's row has a select plus two buttons sharing that same 440px, which isn't enough room for
   a longer year/make/model/trim - let it use the full card width instead. */
#vehicleBar .where-row { max-width: none; }
/* The Where/Vehicle rows are a bit tighter than the site's default form controls - this card is dense. */
#whereWhenCard input, #whereWhenCard select { height: 36px; padding: 0 10px; font-size: 0.9rem; }
#whereWhenCard .where-row .btn { padding: 8px 12px; font-size: 0.84rem; gap: 6px; }
#whereWhenCard .where-row .btn svg { width: 14px; height: 14px; }
/* Address suggestions under the street box: one line per place, street on top and "City, ST zip" below it. */
.address-suggest { position: relative; flex: 1; min-width: 0; }
.address-suggest input { width: 100%; }
.suggest-list {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 4px); padding: 4px; max-height: 280px; overflow-y: auto;
  width: max-content; min-width: 100%; max-width: min(400px, 90vw);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.suggest-item { display: block; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.suggest-item.active, .suggest-item:hover { background: var(--surface-alt-2); }
.suggest-main { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-strong); }
.suggest-sub { display: block; font-size: 0.78rem; color: var(--text-muted); }
.suggest-credit { padding: 6px 10px 2px; font-size: 0.7rem; color: var(--text-faint); }
/* Street address is followed by City, State and ZIP on one row (City wider); on a phone City gets a row of its own. */
.address-row { display: grid; grid-template-columns: 1fr 80px 100px; gap: 8px; margin-top: 10px; }
.address-row input, .address-row select { width: 100%; min-width: 0; }
.sub-label { font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 520px) {
  .address-row { grid-template-columns: 1fr 1fr; }
  .address-row .address-city { grid-column: 1 / -1; }
  /* On a phone the side button ("Use my location", "Add new") drops under its box so the box keeps its full width. */
  .where-row.stack-sm { flex-wrap: wrap; }
  .where-row.stack-sm input, .where-row.stack-sm select, .where-row.stack-sm .address-suggest { flex: 1 1 100%; }
  .where-row.stack-sm .btn { flex: 1 1 100%; justify-content: center; }
}
.zip-status.ok { color: var(--green-600); }
.zip-status.error { color: var(--red-600); }
/* The day-and-window picker: a scrolling row of days, then that day's windows. Used in the When card on the main page and in the request popup (Road partners with booking times). */
.tp-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.tp-day, .tp-slot { font: inherit; cursor: pointer; background: var(--surface); color: var(--text-strong); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); text-align: center; }
.tp-day { flex: 0 0 62px; padding: 7px 4px; display: flex; flex-direction: column; gap: 1px; }
.tp-d { font-size: 0.72rem; color: var(--text-muted); }
.tp-n { font-size: 1rem; font-weight: 700; }
.tp-c { font-size: 0.7rem; color: var(--green-600); }
.tp-day.none .tp-c { color: var(--text-muted); }
.tp-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.tp-slot { padding: 9px 6px; font-size: 0.86rem; font-weight: 600; }
.tp-slot.full { color: var(--text-faint); text-decoration: line-through; cursor: not-allowed; background: var(--surface-alt); font-weight: 400; }
.tp-day.sel, .tp-slot.sel { background: var(--text-strong); color: var(--surface); border-color: var(--text-strong); }
.tp-day.sel .tp-d, .tp-day.sel .tp-c { color: var(--surface); }
.tp-day:focus-visible, .tp-slot:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
/* Booking times: one row per weekday on the business's Manage Listings page. */
.week-row { display: grid; grid-template-columns: 130px 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.week-row select { width: 100%; }
.week-row .mp-feature-chip { margin: 0; }
@media (max-width: 520px) {
  .week-row { grid-template-columns: 1fr auto 1fr; }
  .week-row .mp-feature-chip { grid-column: 1 / -1; }
}
/* On the main page's When card: "Any day" is a wider button at the start of the strip, and the time row appears once a day is chosen. */
.tp-any { flex: 0 0 auto; padding: 7px 14px; justify-content: center; font-size: 0.86rem; font-weight: 600; }
/* "+ Schedule in advance": a plain link under the day strip (not a boxed pill, unlike the day buttons) - opens the
   calendar popup below. Once a date and time are set it shows them here instead, still click to change. */
.when-advance-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: none; border: none; padding: 0;
  font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.when-advance-link:hover { color: var(--link-color-hover); }
.when-advance-link[data-icon] svg, .when-advance-link :is([data-icon]) svg { width: 14px; height: 14px; }
.when-advance-link.is-set { color: var(--text-strong); }
/* The calendar + time popup opened from "Schedule in advance". */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-size: 0.94rem; }
.cal-nav { background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); width: 30px; height: 30px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--text-strong); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 0.86rem;
  background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-strong); cursor: pointer;
}
.cal-day:hover:not(:disabled) { border-color: var(--border-strong); }
.cal-day:disabled { color: var(--text-faint); cursor: not-allowed; }
.cal-day.sel { background: var(--text-strong); color: var(--surface); }
.cal-day:focus-visible, .cal-nav:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
/* Hour / minute / AM-PM in one row, always - narrower boxes than the site's default selects so all three fit
   the popup's width with room to spare. */
.cal-time-row { display: flex; align-items: center; gap: 6px; }
.cal-time-row select { width: auto; flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 0.9rem; text-align: center; }
.cal-time-row #calAmPm { flex: 0 0 62px; }
.cal-time-sep { font-weight: 700; color: var(--text-muted); }
.tp-slot:disabled { opacity: 0.45; cursor: not-allowed; }
/* "Schedule" (later: the picked date), at the side of the week: a plain single-line pill, the same shape as
   "Any day", with a real date box hidden under it (opened with showPicker() in mobileService.js). */
.tp-adv { position: relative; flex: 0 0 auto; padding: 7px 14px; justify-content: center; font-size: 0.86rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tp-adv-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.when-block { margin-top: 10px; }
.shop-open-line { color: var(--green-600); }

/* Compact drop-downs in the account popup (compactSelect() in mobileService.js):
   a button styled like the other inputs that opens a short scrollable panel,
   using the same panel/option look as the marketplace's Year and Price menus. */
.gate-dropdown { position: relative; }
.gate-select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 0.94rem; font-family: inherit; background: var(--input-bg); color: var(--text);
  text-align: left; cursor: pointer;
}
.gate-select-btn::after {
  content: ''; flex: none; width: 6px; height: 6px; opacity: 0.6;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.gate-select-btn.is-placeholder { color: var(--text-faint); }
.gate-select-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.gate-select-btn:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 1px; }
/* (.gate-dropdown prefix: this file defines .mp-dropdown-menu further down, and
   these overrides have to outrank it) */
.gate-dropdown .gate-dropdown-menu { width: max-content; min-width: 100%; max-width: 260px; max-height: none; overflow: visible; }
/* The list scrolls, not the whole panel, so the search box stays put above it. */
.gate-dropdown-list { max-height: 180px; overflow-y: auto; position: relative; }
.gate-dropdown-search { margin-bottom: 6px; padding: 8px 10px; font-size: 0.88rem; }
.gate-dropdown-search[hidden] { display: none; }
.gate-dropdown .gate-dropdown-menu .mp-dropdown-option { white-space: normal; }
.mp-dropdown-option.kbd { background: var(--surface-alt-2); }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  color: var(--text-strong);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: var(--text-strong); }
.brand .brand-dot { color: var(--text-strong); }
.brand-text-stack { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; }
.brand-sublabel { font-size: 0.42em; font-weight: 700; color: inherit; opacity: 0.8; /* readable on the light and the dark (business) header */ text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.nav-inner .brand { font-size: 1.55rem; gap: 10px; }
.nav-inner .brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
#navTabLinks { display: contents; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  color: var(--text-muted); transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--surface-alt-2); color: var(--text-strong); }
.nav-link-icon { display: inline-flex; flex: none; }
.nav-link-icon svg { width: 16px; height: 16px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-strong); font-size: 1.5rem; cursor: pointer; }
.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--text-strong); color: var(--bg); font-size: 0.68rem; font-weight: 700;
  margin-left: 6px;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text-strong); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex: none;
}
.theme-toggle:hover { background: var(--surface-alt-2); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.nav-links-account { display: none; }

/* Message center: the bell in the header and its drop-down (initNotifications() in shell.js). */
.notif { position: relative; flex: none; }
.notif-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-alt); color: var(--text-strong); cursor: pointer;
}
.notif-btn:hover { background: var(--surface-alt-2); border-color: var(--border-strong); }
.notif-btn svg { width: 20px; height: 20px; }
.notif-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--red-600); color: #fff; border: 2px solid var(--surface);
  font-size: 0.68rem; font-weight: 800; line-height: 15px; text-align: center;
}
.notif-count[hidden] { display: none; }
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: 360px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif-readall { background: none; border: none; cursor: pointer; font-size: 0.82rem; padding: 0; }
.notif-readall[hidden] { display: none; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: none; border-bottom: 1px solid var(--border);
  background: none; color: var(--text); font: inherit; cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-alt); }
.notif-item.unread { background: var(--surface-alt); }
.notif-item.unread:hover { background: var(--surface-alt-2); }
.notif-dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: transparent; }
.notif-item.unread .notif-dot { background: var(--red-600); }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-title { font-size: 0.88rem; font-weight: 600; color: var(--text-strong); }
.notif-item:not(.unread) .notif-title { font-weight: 500; color: var(--text); }
.notif-body { font-size: 0.82rem; color: var(--text-muted); overflow-wrap: anywhere; }
.notif-time { font-size: 0.74rem; color: var(--text-faint); }
.notif-empty { padding: 20px 16px; margin: 0; font-size: 0.86rem; color: var(--text-muted); text-align: center; }
.notif-foot { display: block; padding: 11px 14px; border-top: 1px solid var(--border); text-align: center; font-size: 0.84rem; font-weight: 600; }
.notif-foot:hover { background: var(--surface-alt); }

/* Header chat icon (next to the bell) - same round button, links to the Inbox. */
.chat-btn[hidden] { display: none; }
.chat-btn.active { background: var(--surface-alt-2); border-color: var(--border-strong); }

/* The Inbox (public/js/inbox.js): conversation list + open chat. One pane at a time on a phone. */
.inbox {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(680px, calc(100vh - 220px)); min-height: 420px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden;
}
.inbox-list { border-right: 1px solid var(--border); overflow-y: auto; }
.inbox-list-empty { padding: 20px 16px; }
.inbox-row {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 13px 16px;
  border: none; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; cursor: pointer;
}
.inbox-row:hover { background: var(--surface-alt); }
.inbox-row.active { background: var(--surface-alt-2); }
.inbox-row-top, .inbox-row-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.inbox-row-name { font-weight: 600; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row.unread .inbox-row-name { font-weight: 800; }
.inbox-row-time { flex: none; font-size: 0.74rem; color: var(--text-faint); }
.inbox-row-preview { font-size: 0.84rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row.unread .inbox-row-preview { color: var(--text); }
.inbox-row-count {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red-600); color: #fff;
  font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center;
}
.inbox-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--text-muted); }
.inbox-empty svg { width: 34px; height: 34px; }
.inbox-thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.inbox-thread-head > div { flex: 1; min-width: 0; }
.inbox-thread-name { font-weight: 700; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-back { display: none; background: none; border: none; font-size: 1.3rem; color: var(--text); cursor: pointer; padding: 0 4px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-day { align-self: center; margin: 10px 0 4px; font-size: 0.74rem; font-weight: 600; color: var(--text-faint); }
.chat-msg { display: flex; flex-direction: column; max-width: 76%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 9px 13px; border-radius: 16px; font-size: 0.92rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.mine .chat-bubble { background: var(--text-strong); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-msg.theirs .chat-bubble { background: var(--surface-alt-2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-time { font-size: 0.7rem; color: var(--text-faint); margin-top: 2px; }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; line-height: 1.4; }
@media (max-width: 720px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 190px); }
  .inbox-list { border-right: none; }
  .inbox .inbox-thread { display: none; }
  .inbox.thread-open .inbox-list { display: none; }
  .inbox.thread-open .inbox-thread { display: flex; }
  .inbox-back { display: block; }
}

/* The Messages page (public/js/messages.js) - same look as the bell's list, one card per message. */
.msg-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 8px; }
.msg-row.unread { border-color: var(--border-strong); background: var(--surface-alt); }
.msg-row.unread .notif-dot { background: var(--red-600); }
.msg-row:not(.unread) .notif-title { font-weight: 500; color: var(--text); }
.msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-link-btn { background: none; border: none; padding: 0; cursor: pointer; }
.msg-delete {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--radius-sm); border: 1px solid transparent; background: none; color: var(--text-muted); cursor: pointer;
}
.msg-delete:hover { color: var(--red-600); border-color: var(--border); background: var(--surface-alt-2); }
@media (max-width: 1100px) {
  .notif-panel { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; max-width: none; }
}
/* The signed-in header button - a helmet-silhouette icon in place of a
   "Hi, Name" text link, matching the size/shape of the theme toggle button
   next to it. Still navigates to the account dashboard, and still surfaces
   the person's name via aria-label/title (and visibly again in the mobile
   dropdown - see the max-width override below). */
.account-avatar-btn {
  width: 58px; height: 58px; padding: 0; border-radius: 999px;
  border: 1px solid var(--border);
  flex: none;
}
.account-avatar-icon { display: inline-flex; align-items: center; justify-content: center; }
.account-avatar-icon svg { width: 38px; height: 38px; }
.account-avatar-label { display: none; }

/* Below 1100px the full menu doesn't fit beside the logo and account buttons, so it folds into the menu button. */
@media (max-width: 1100px) {
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 4px;
    display: none; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 14px; font-size: 1.1rem; gap: 10px; }
  .nav-link-icon svg { width: 20px; height: 20px; }
  .nav-toggle { display: block; font-size: 1.9rem; }
  /* Menu collapsed: keep the inbox + bell icons on the right, beside the menu button, not floating mid-header. */
  .nav-right { margin-left: auto; }
  .nav-inner { gap: 12px; }
  .theme-toggle { width: 42px; height: 42px; }
  .theme-toggle svg { width: 21px; height: 21px; }
  #navRight { display: none; }
  .nav-links-account {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border);
  }
  .nav-links-account .btn { justify-content: flex-start; font-size: 1.05rem; padding: 14px; }
  /* In the stacked mobile menu there's room to show the icon AND the name
     together, same as the icon+label pattern used for the other nav links -
     unlike the compact circular button it collapses to in the desktop header. */
  .nav-links-account .account-avatar-btn { width: auto; height: auto; border-radius: var(--radius-sm); gap: 10px; }
  .nav-links-account .account-avatar-label { display: inline; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.05s, box-shadow 0.15s, background 0.15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
.btn-accent { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-accent:hover { background: var(--btn-primary-bg-hover); }
.btn-outline { background: var(--surface); color: var(--text-strong); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text-strong); background: var(--surface-alt); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-alt-2); }
.btn-danger { background: var(--red-100); color: var(--red-600); }
.btn-danger:hover { background: #fbdad7; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-nav { background: var(--btn-primary-bg); color: var(--btn-primary-text); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.btn-nav:hover { background: var(--btn-primary-bg-hover); }

/* ---------- Layout helpers ---------- */
.page { padding: 32px 0 80px; min-height: calc(100vh - 64px - 220px); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-cols-4 { grid-template-columns: repeat(2, 1fr); } .grid-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; } }

/* Featured sections on the homepage scroll horizontally on mobile instead
   of stacking into a tall single column, so each section stays compact. */
@media (max-width: 700px) {
  #featuredGrid, #featuredServicesGrid, #featuredMobileGrid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -20px;
    padding: 4px 20px 10px;
  }
  #featuredGrid > *, #featuredServicesGrid > *, #featuredMobileGrid > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}
.muted { color: var(--text-muted); }
.text-sm { font-size: 0.86rem; }
.text-lg { font-size: 1.15rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-hover { transition: box-shadow 0.15s, transform 0.15s; will-change: transform; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- Selectable plan cards (Business signup) ---------- */
.plan-card { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; border: 1px solid var(--border); }
.plan-card:hover { border-color: var(--border-strong); }
.plan-card.selected { border-color: var(--accent-500); box-shadow: 0 0 0 2px var(--accent-100); }

/* ---------- About Us: founder photo placeholder ---------- */
.founder-card, .founder-card-single { text-align: center; }
.founder-photo {
  width: 96px; height: 96px; border-radius: 999px; margin: 0 auto 14px;
  background: var(--surface-alt-2); border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
/* One shared group photo (not a per-person avatar) - portrait aspect ratio
   to match how the actual photo will be framed. */
.founder-photo-rect {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md); height: auto;
}
.founder-photo-rect img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  color: var(--text-strong); padding: 72px 0 88px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero h1 { font-size: 2.6rem; max-width: 700px; color: var(--text-strong); }
.hero p.lead { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; }
.hero-search {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-top: 28px;
  box-shadow: var(--shadow-md); max-width: 780px;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt-2); color: var(--text-strong); flex: none;
}

/* ---------- Homepage landing paths ("what are you here to do?") ----------
   The first thing a new visitor sees below the hero: three big, obviously
   clickable cards straight to the three things people come here to do, so
   there's no guessing or hunting through nav links on a first visit. */
.landing-paths { padding: 8px 0 48px; }
.landing-paths-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0 0 16px; }
.landing-path-card { display: block; padding: 28px 24px; }
.landing-path-card .feature-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
.landing-path-card .feature-icon svg { width: 24px; height: 24px; }
.landing-path-card h3 { font-size: 1.15rem; }

/* Keep the homepage "quick tabs" (What are you here to do?) as a real grid
   on mobile like desktop, instead of collapsing to one stacked column -
   just fewer columns, and sized up so each card stays easy to read/tap. */
@media (max-width: 620px) {
  .landing-paths .grid-cols-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .landing-path-card { padding: 22px 16px; }
  .landing-path-card .feature-icon { width: 48px; height: 48px; margin-bottom: 14px; }
  .landing-path-card .feature-icon svg { width: 22px; height: 22px; }
  .landing-path-card h3 { font-size: 1.1rem; }
  .landing-path-card p { font-size: 0.88rem; }
}

/* ---------- Service quick-select tabs (Mobile Service page) ----------
   Same icon-in-a-badge language as the homepage's landing-path-cards, but
   compact - a grid of tappable service tiles above the request form so
   picking a service doesn't mean hunting through the dropdown. */
/* Service tiles: 12-column grid so any count of tiles fills every row edge to
   edge instead of leaving a gap at the end. The first row holds 4 tiles; every
   tile after that shares the next row(s) in threes (7 tiles = 4 + 3). Two
   columns on phones, with a lone last tile spanning the full row. */
.service-tabs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin: 0 0 24px; }
.service-tabs > .service-tab { grid-column: span 3; }
.service-tabs > .service-tab:nth-child(n+5) { grid-column: span 4; }
@media (max-width: 620px) {
  .service-tabs > .service-tab, .service-tabs > .service-tab:nth-child(n+5) { grid-column: span 6; }
  .service-tabs > .service-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.service-tab {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 20px 12px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.service-tab:hover { border-color: var(--border-strong); background: var(--surface-alt); }
.service-tab.active { border-color: var(--accent-500); background: var(--accent-100); color: var(--accent-600); }
.service-tab .feature-icon { width: 50px; height: 50px; border-radius: 14px; }
.service-tab .feature-icon svg { width: 24px; height: 24px; }

/* Recommended/More-options shop cards on the Mobile Service page - laid
   out side by side (3 across) instead of stacked, so "here are your 3
   options" reads as a real comparison at a glance. Sits inside a narrower
   page container than the marketplace grid, so cards get tighter padding
   and smaller type to stay legible at ~1/3 the width. */
/* Side by side, three across (grid-cols-3 handles the responsive collapse at 980/620px) - a bit taller than
   the original tight cards, with more room between each line, so they read less cramped. */
/* CSS Grid already stretches every card in a row to the tallest one's height (display:grid's default
   align-items:stretch) - this just makes the button sink to the bottom of that extra space instead of
   sitting right under whatever content happens to be shorter on this particular card. */
.shop-cards-grid .card { padding: 24px 18px; display: flex; flex-direction: column; }
.shop-cards-grid .card > * { margin-bottom: 16px; }
.shop-cards-grid .card > *:last-child { margin-bottom: 0; }
.shop-cards-grid .card > .btn-block { margin-top: auto; }
.shop-cards-grid .card strong { font-size: 0.95rem; line-height: 1.3; }
.shop-cards-grid .btn { font-size: 0.85rem; padding: 9px 10px; }
/* "Request This Shop" is blue (scoped to just this button, not the site's other primary buttons, which stay black). */
.shop-cards-grid .btn-primary { background: #2563EB; color: #FFFFFF; }
.shop-cards-grid .btn-primary:hover { background: #1D4ED8; }
/* Divider before the real trust lines/price on a shop card - only rendered when there's something to show.
   No margin of its own: the card's uniform child spacing (.shop-cards-grid .card > *) already spaces it out. */
.shop-card-divider { border-top: 1px solid var(--border); }
.shop-trust { display: flex; flex-direction: column; gap: 4px; }
.shop-trust svg { width: 13px; height: 13px; }
/* The wrench icon at the top-left of a shop card. */
.shop-card-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-100); color: var(--accent-600);
}
.shop-card-icon svg { width: 17px; height: 17px; }
/* "Road Partner" / "Dealer Service" on a shop card - a real, clean blue (the site's own --accent tokens
   render as gray, not the blue their name implies, so this badge gets its own genuine blue instead). */
.badge-partner { background: #DCE9FB; color: #1D4ED8; }
/* Rating badge - a clean neutral pill with a genuinely yellow star, kept independent of the badge's own
   text color so the star always reads as a star, not just "the same color as the number." */
.badge-rating { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-strong); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.badge-star svg { width: 12px; height: 12px; color: var(--text-faint); }
.badge-star-filled svg { color: #F5B400; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 0.94rem; font-family: inherit; background: var(--input-bg); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
/* Year/Make/Model/Trim on the Mobile Services vehicle step: a narrower minimum so all 4 fit on one row at
   normal widths (140px was one column too wide for 4 to fit together), still wrapping on a narrow phone. */
.field-row-4 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
/* "About this business" section in a shop's popup - see shopProfile.js. */
.shop-profile { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-alt); }
.shop-profile-label {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); margin: 0 0 6px;
}
.shop-profile-label:not(:first-child) { margin-top: 12px; }
.shop-profile-text { line-height: 1.5; white-space: pre-line; margin-bottom: 8px; }
.shop-profile > :last-child { margin-bottom: 0; }

/* Business Insights page (public/js/businessInsights.js). One data color: the strongest text ink,
   on a quiet track - the page's only chart series, so it needs no legend. */
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) 64px; gap: 14px; align-items: center; }
.funnel-label { display: flex; flex-direction: column; gap: 1px; font-size: 0.9rem; font-weight: 600; }
.funnel-label .muted { font-weight: 400; }
.funnel-track { height: 14px; border-radius: 4px; background: var(--surface-alt-2); overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 4px; background: var(--text-strong); transition: width 0.3s; }
.funnel-num { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .funnel-row { grid-template-columns: minmax(0, 1fr) 56px; }
  .funnel-track { grid-column: 1 / -1; grid-row: 2; }
}
.insights-kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.insights-kv:last-of-type { border-bottom: none; }
.insights-kv strong { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .insights-split { grid-template-columns: 1fr; } }
.ins-title { font-size: 1rem; }
.ins-wrap { position: relative; padding-bottom: 20px; }
.ins-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.ins-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ins-axis { fill: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ins-bar { fill: var(--text-strong); }
.ins-hit { fill: transparent; }
.ins-col.hover .ins-hit { fill: var(--surface-alt-2); }
.ins-xlabels { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; }
.ins-xlabels span { position: absolute; transform: translateX(-50%); font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.ins-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; z-index: 2;
  padding: 5px 9px; border-radius: var(--radius-sm); background: var(--text-strong); color: var(--bg);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.insights-table-wrap { max-height: 280px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.insights-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.insights-table th, .insights-table td { padding: 6px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.insights-table th { position: sticky; top: 0; background: var(--surface); color: var(--text-muted); font-weight: 600; }

/* Homepage "Top-rated shops near you" zip box (public/js/home.js). */
.featured-zip { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }

/* Dashboard "Finish setting up your account" card - see businessRequests.js. */
.setup-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; border-color: var(--text-strong); }
.setup-banner > div { flex: 1 1 320px; }

/* Business setup wizard - see businessSetup.js. Reuses the .step progress markers above. */
.wizard-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin-bottom: 16px; }
.wizard-steps .step { margin-bottom: 0; }
.wizard-steps .step.reachable, .wizard-steps .step.done { cursor: pointer; }
.wizard-steps .step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .wizard-steps .step-label { display: none; }
  .wizard-steps .step.current .step-label { display: inline; }
  .wizard-steps .step.current { grid-column: span 1; }
}
.wizard-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.wizard-nav #stepCount { margin-right: auto; }
.wizard-nav #backBtn:not([hidden]) + #stepCount { margin-left: 4px; }
.pricing-section { padding: 14px 0; border-top: 1px solid var(--border); }
.pricing-section:first-child { border-top: none; padding-top: 0; }
.pricing-section-title { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 8px; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; }
.price-row-label { display: flex; flex-direction: column; gap: 2px; font-size: 0.92rem; font-weight: 600; min-width: 180px; flex: 1; }
.price-row-label .muted { font-weight: 400; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-input {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; width: 104px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text-muted);
}
.price-input:focus-within { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.price-input input { border: none; padding: 9px 0; background: transparent; box-shadow: none; min-width: 0; }
.price-input input:focus { box-shadow: none; }
.price-unit { width: 74px; }
@media (max-width: 520px) {
  .price-input { width: 88px; }
  .price-unit:empty { display: none; }
}
.wizard-review { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 16px; }
.review-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-row > span:nth-child(2) { overflow-wrap: anywhere; }
.review-edit { background: none; border: none; cursor: pointer; font-size: 0.86rem; padding: 0; }
@media (max-width: 520px) {
  .review-row { grid-template-columns: minmax(0, 1fr) auto; }
  .review-row > span:first-child { grid-column: 1 / -1; font-size: 0.8rem; }
}

/* "Typical pricing" in a shop's popup - see shopProfile.js. */
.shop-pricing-list { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; font-size: 0.88rem; margin-bottom: 8px; }
.shop-pricing-list span:nth-child(even) { font-weight: 600; text-align: right; }

/* Business Type toggle buttons (signup + Account) - see businessTypePicker.js. */
.type-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip { position: relative; cursor: pointer; }
.type-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--text);
  font-size: 0.88rem; font-weight: 600; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.type-chip:hover span { border-color: var(--text-muted); }
.type-chip input:checked + span { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.type-chip input:checked + span::before { content: '✓'; }
.type-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-100); }

/* Multi-select dropdown with checkboxes (business Account page,
   "Vehicles You Service") - see businessAccount.js. */
.multi-select { position: relative; }
.multi-select-btn {
  width: 100%; padding: 10px 36px 10px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 0.94rem; font-family: inherit; background-color: var(--input-bg); color: var(--text);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.multi-select-btn[aria-expanded="true"] { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.multi-select-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 8px;
}
.multi-select-search { margin-bottom: 6px; }
.multi-select-options { max-height: 280px; overflow-y: auto; }
.multi-select-group {
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); padding: 10px 12px 4px;
}
.multi-select-option {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 0.9rem; cursor: pointer;
}
.multi-select-option:hover { background: var(--surface-alt-2); }
.multi-select-option input { width: auto; margin: 0; accent-color: var(--accent-600); }
[data-theme="dark"] .multi-select-option input { accent-color: var(--text-strong); }
.multi-select-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.multi-select-chips:empty { display: none; }
.multi-select-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px;
  background: var(--surface-alt-2); border: 1px solid var(--border); font-size: 0.82rem;
}
.multi-select-chip button {
  background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; line-height: 1;
  width: 20px; height: 20px; border-radius: 999px; position: relative; flex-shrink: 0;
}
/* The x looks small but takes a 40px tap: an invisible area around it (the chip itself stays its size). */
.multi-select-chip button::before { content: ""; position: absolute; inset: -10px; }
.multi-select-chip button:hover { color: var(--text); background: var(--surface-alt); }
.form-error { background: var(--red-100); color: var(--red-600); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 14px; }
.form-success { background: var(--green-100); color: var(--green-600); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 14px; }
.auth-card { max-width: 420px; margin: 40px auto; }

/* Show/hide toggle button auto-added to every password field, see
   wirePasswordToggles() in icons.js. */
.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 42px; }
.password-toggle-btn {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-muted);
}
.password-toggle-btn:hover { color: var(--text); background: var(--surface-alt); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.badge-blue { background: var(--accent-100); color: var(--accent-600); }
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-red { background: var(--red-100); color: var(--red-600); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-orange { background: var(--orange-100); color: var(--orange-500); }

/* ---------- Listing card ---------- */
.listing-card { overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.listing-media { position: relative; background: var(--surface-alt-2); aspect-ratio: 4/3; overflow: hidden; }
.listing-media svg, .listing-media img { display: block; width: 100%; height: 100%; }
.listing-media .fav-btn {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-sm); z-index: 1; color: var(--gray-700); transition: color 0.15s;
}
.listing-media .fav-btn:hover { color: var(--red-600); }
.corner-badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.listing-media .price-drop-badge { cursor: help; }

/* Photo carousel - arrows stay hidden until the card is hovered, keeping
   cards with multiple photos visually identical to single-photo ones at
   rest. Photos are swapped by src (not pre-rendered) since some listings
   have 60-80 photos - see CARD_MAX_PHOTOS in listingCard.js. */
.listing-media .photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 999px;
  background: rgba(255,255,255,0.85); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; color: var(--gray-800); font-size: 1.1rem; line-height: 1;
  opacity: 0; transition: opacity 0.15s, background 0.15s;
}
.listing-card:hover .photo-nav { opacity: 1; }
.photo-nav:hover { background: var(--white); }
.photo-nav-prev { left: 8px; }
.photo-nav-next { right: 8px; }
/* The detail page's hero photo isn't a small hover target like a grid card - its nav arrows (and a
   slightly larger tap target) stay visible all the time instead of only on hover. */
.listing-media-hero .photo-nav { opacity: 1; width: 36px; height: 36px; font-size: 1.3rem; }
.listing-media-hero .photo-nav-prev { left: 14px; }
.listing-media-hero .photo-nav-next { right: 14px; }
.photo-count {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 1;
  background: rgba(0,0,0,0.6); color: white; font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em;
}
.listing-body { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.listing-title { font-weight: 700; font-size: 1.05rem; }
.listing-meta { color: var(--text-muted); font-size: 0.86rem; }
.listing-price { font-size: 1.05rem; font-weight: 800; color: var(--text-strong); margin-top: 4px; }
.listing-dealer { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.listing-sub-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 0.78rem; }
.listing-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--amber-600); letter-spacing: -1px; }
.listing-rating .muted { letter-spacing: normal; margin-left: 2px; }

/* ---------- Compare tool (compare.js) ---------- */
.mp-compare-link {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px;
  padding: 7px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.mp-compare-link:hover { border-color: var(--border-strong); color: var(--text-strong); }
.mp-compare-link.active { background: var(--accent-100); border-color: var(--accent-600); color: var(--accent-600); }
.compare-bar-root { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; justify-content: center; padding: 0 16px 16px; pointer-events: none; }
.compare-bar {
  pointer-events: auto; max-width: 900px; width: 100%; background: var(--text-strong); color: var(--surface);
  border-radius: var(--radius-lg); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.compare-bar .btn-outline { border-color: rgba(255,255,255,0.3); color: var(--surface); background: transparent; }
.compare-bar .btn-outline:hover { background: rgba(255,255,255,0.1); }
.compare-bar-items { display: flex; flex-wrap: wrap; gap: 8px; }
.compare-bar-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.12); font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.compare-bar-chip button { background: rgba(255,255,255,0.15); border: none; color: inherit; width: 16px; height: 16px; border-radius: 50%; font-size: 0.7rem; line-height: 1; cursor: pointer; }
.compare-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 6px; }
.compare-card { text-align: center; }
.compare-table th { white-space: nowrap; }
.compare-table td { text-align: center; }
@media (max-width: 620px) {
  .compare-bar { flex-direction: column; align-items: stretch; }
}

/* ---------- Marketplace top filter bar (search bar + quick filters up
   top, spanning the full page width, "More Filters" reveals the rest) ---------- */
.mp-topbar { padding: 16px; border-radius: var(--radius-lg); }
.mp-topbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mp-search {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--input-bg); flex: 2 1 320px; min-width: 280px;
}
.mp-search svg { flex: none; color: var(--text-muted); }
.mp-search input { flex: 1; min-width: 0; border: none; padding: 0; background: transparent; }
.mp-search input:focus { outline: none; box-shadow: none; }
.chip-select {
  width: auto; border-radius: 999px; padding: 10px 30px 10px 16px; font-weight: 600; font-size: 0.88rem;
  border: 1px solid var(--border-strong); background-color: var(--input-bg);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.mp-price-inline { display: flex; align-items: center; gap: 6px; }
.mp-price-inline input {
  width: 92px; border-radius: 999px; padding: 10px 14px; border: 1px solid var(--border-strong); background: var(--input-bg);
}
.mp-more-filters { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 10px; }
@media (max-width: 700px) {
  .mp-search { flex-basis: 100%; }
}

/* Custom small/scrollable dropdown menu - replaces a long <select>'s own
   popup (which some browsers render huge/full-screen) with a compact,
   scrollable panel anchored under a pill button. Used for Year, which has
   60+ entries. The underlying <select> stays in the DOM (hidden) as the
   real source of truth - see enhanceDropdown() in marketplace.js. */
.mp-dropdown { position: relative; display: inline-block; }
.mp-dropdown-btn { cursor: pointer; min-width: 64px; text-align: left; color: var(--text); }
.mp-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); min-width: 140px; max-height: 220px; overflow-y: auto; padding: 6px;
}
.mp-dropdown-option {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.86rem; cursor: pointer; white-space: nowrap;
}
.mp-dropdown-option:hover { background: var(--surface-alt-2); }
.mp-dropdown-option.active { background: var(--accent-100); color: var(--accent-600); font-weight: 700; }

/* "Type or pick" combo box for the manual vehicle-entry form's Year -> Make
   -> Model -> Trim fields - a real text input you can always just type
   into, plus a small toggle that reveals a filterable pick-list when
   suggestions are available. See makeCombo() in garage.js. */
.combo-wrap { position: relative; }
.combo-wrap input { padding-right: 34px; }
.combo-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 26px; height: 26px; border: none; background: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.7rem; border-radius: var(--radius-sm); padding: 0;
}
.combo-toggle:hover { background: var(--surface-alt); color: var(--text-strong); }
.combo-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); max-height: 220px; overflow-y: auto; padding: 6px;
}
.combo-option { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; cursor: pointer; color: var(--text); }
.combo-option:hover { background: var(--surface-alt-2); }

/* "More Filters" feature toggle chips (Trim/Color/etc. neighbors) */
.mp-feature-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-feature-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  color: var(--text-muted); user-select: none;
}
.mp-feature-chip input { width: auto; margin: 0; accent-color: var(--accent-600); }
.mp-feature-chip:has(input:checked) { background: var(--accent-100); color: var(--accent-600); border-color: transparent; }
/* Manage Listings' service list: a checkbox row with an optional starting-price box that only shows once ticked. */
.service-price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.service-price-row:last-child { border-bottom: none; }
.service-price-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-size: 0.94rem; color: var(--text-strong); cursor: pointer; }
.service-price-row label input { width: auto; margin: 0; accent-color: var(--accent-600); }
.row-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-mark .badge { text-decoration: none; }
.service-price-input { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; }
.service-price-input input { width: 90px; padding: 6px 8px; }

/* Marketplace results grid - deliberately its own class (not grid-cols-3)
   so the marketplace's cards can run a little larger (bigger photo, bigger
   text) without affecting the shared listing-card look used elsewhere
   (home page picks, "similar listings", etc). 3 columns, with the same
   responsive step-down as the site's other grids. */
.market-listings-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .market-listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .market-listings-grid { grid-template-columns: 1fr; } }
.market-listings-grid .listing-body { padding: 18px 20px 20px; gap: 8px; }
.market-listings-grid .listing-price { font-size: 1.4rem; }
.market-listings-grid .listing-title { font-size: 1.12rem; }
.market-listings-grid .listing-meta { font-size: 0.92rem; }
.market-listings-grid .listing-dealer { font-size: 0.88rem; }

.listing-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: flex-start; }
@media (max-width: 860px) { .listing-detail-grid { grid-template-columns: 1fr; } }

/* ---------- Payment calculator (listing detail) ---------- */
.paycalc-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--accent-100); border-radius: var(--radius-md); padding: 16px; margin-bottom: 18px;
}
.paycalc-hero-label { font-size: 0.76rem; font-weight: 700; color: var(--accent-600); text-transform: uppercase; letter-spacing: 0.04em; }
.paycalc-hero-amount { font-size: 2.1rem; font-weight: 800; color: var(--text-strong); line-height: 1.2; }
.paycalc-hero-mo { font-size: 1.05rem; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.paycalc-quick-picks { display: flex; gap: 6px; margin-top: 8px; }
.paycalc-pick {
  flex: 1; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-strong); font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.paycalc-pick:hover { border-color: var(--accent-500); }
.paycalc-pick.active { background: var(--accent-600); border-color: var(--accent-600); color: white; }
.paycalc-breakdown { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); }
.paycalc-breakdown .paycalc-total { font-weight: 700; padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--border); }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { color: var(--text-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,18,32,0.55); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal { background: var(--surface); border-radius: var(--radius-lg); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 22px; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); }
/* Small yes/no and one-question dialogs (confirmDialog / askDialog in api.js). Above any other popup. */
.dialog-backdrop { z-index: 200; align-items: center; }
.dialog-modal { max-width: 400px; }

/* The send button in the Mobile Services request popup sticks to the bottom of the screen while the
   popup is scrolled (the backdrop is what scrolls), so it's never hidden below a long form. */
.request-submit-bar {
  position: sticky; bottom: 0; z-index: 1; margin: 8px -22px -22px; padding: 12px 22px 16px;
  background: var(--surface); border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------- Empty / loading states ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon-wrap { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 999px; background: var(--surface-alt-2); display: flex; align-items: center; justify-content: center; color: var(--text-faint); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--accent-600); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--skeleton-a) 25%, var(--skeleton-b) 37%, var(--skeleton-a) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Vehicle card (garage) ---------- */
.vehicle-card { display: flex; flex-direction: column; overflow: hidden; }
.vehicle-hero { background: #111; border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 22px; color: white; display: flex; align-items: center; gap: 16px; }
.vehicle-hero .icon-wrap { width: 56px; height: 56px; background: rgba(255,255,255,0.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
/* The nickname at the top of a vehicle's page, made clickable to rename it - same "tap to edit" idea
   as the mileage pencil on the My Garage dashboard card, but styled for the dark .vehicle-hero bar. */
.vehicle-rename-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; margin: -2px 0 0 -6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: white; font: inherit; cursor: pointer; }
.vehicle-rename-btn svg { opacity: 0.6; flex: none; }
.vehicle-rename-btn:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); }
.vehicle-rename-btn:hover svg { opacity: 1; }
.stat-pill { display: flex; flex-direction: column; align-items: center; padding: 10px 8px; border-radius: var(--radius-sm); background: var(--surface-alt); flex: 1; }
.stat-pill .num { font-weight: 800; font-size: 1.15rem; }

/* A real photo of the vehicle (uploaded, or a best-effort stock photo - see
   src/services/vehiclePhotos.js) sits above the dark .vehicle-hero bar on
   both the garage grid card and the vehicle detail page. Relies on its
   parent (.vehicle-card, or the detail page's card with inline
   overflow:hidden) to clip it to the card's rounded top corners. */
.vehicle-photo-media { position: relative; aspect-ratio: 16/9; background: var(--surface-alt-2); }
.vehicle-photo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vehicle-photo-media-lg { aspect-ratio: 21/9; }
.photo-change-btn { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(2px); }
.photo-change-btn:hover { background: rgba(0,0,0,0.72); }

/* "Photo" field in the Add a Vehicle form - a small preview thumbnail next
   to a plain file input. See wirePhotoField() in
   public/js/vehiclePhotoUpload.js. */
.photo-field { display: flex; gap: 12px; align-items: flex-start; }
.photo-preview {
  width: 84px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-alt-2);
  overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; text-align: center; padding: 4px;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-field input[type="file"] { font-size: 0.82rem; padding: 8px 10px; }

/* ---------- Maintenance list ---------- */
.maint-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 8px; }
.maint-row.overdue { background: var(--red-100); border-color: #f6c6c1; }
.maint-row.due_soon { background: var(--amber-100); border-color: #f2ddaa; }
.maint-row.ok { background: var(--surface); }
.maint-row { gap: 12px; }
.maint-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.remind-btn { color: var(--text-muted); font-weight: 600; }
.remind-btn:hover { color: var(--text-strong); }
.remind-btn.on { color: var(--text-strong); }
@media (max-width: 560px) {
  .maint-row { flex-direction: column; align-items: stretch; }
  .maint-actions { justify-content: flex-end; }
}

/* ---------- Footer ---------- */
.site-footer { background: #111; color: rgba(255,255,255,0.65); padding: 40px 0 28px; margin-top: 60px; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: white; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px; padding-top: 18px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: none; margin: 20px 0; }
.pill-tabs { display: inline-flex; background: var(--surface-alt-2); padding: 4px; border-radius: 999px; }
.pill-tabs button, .pill-tabs a { border: none; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 0.86rem; cursor: pointer; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; }
.pill-tabs button.active, .pill-tabs a.active { background: var(--accent-100); color: var(--accent-600); box-shadow: var(--shadow-sm); }
.note-banner { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--amber-100); color: #8a5b06; font-size: 0.86rem; align-items: flex-start; }
.note-banner.info { background: var(--accent-100); color: #333333; }
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1A1A1A; color: white; padding: 12px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.88rem; animation: toastIn 0.2s ease; }
.toast.error { background: var(--red-600); }
.toast.success { background: var(--green-600); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Settings / theme picker ---------- */
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-row h3 { margin: 0 0 2px; font-size: 1rem; }
.settings-row p { margin: 0; color: var(--text-muted); font-size: 0.86rem; }
.theme-switch { display: inline-flex; background: var(--surface-alt); border: 1px solid var(--border); padding: 4px; border-radius: 999px; gap: 2px; }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.84rem; cursor: pointer;
  color: var(--text-muted); transition: background 0.15s, color 0.15s;
}
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button.active { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.theme-switch button:hover:not(.active) { color: var(--text); }

/* ---------- Admin analytics dashboard (public/admin/analytics) ---------- */
.admin-kpi { font-size: 1.7rem; font-weight: 800; }
.chart-wrap {
  display: flex; align-items: flex-end; gap: 3px; height: 160px;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
}
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.chart-bars { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.chart-bar { flex: 1; border-radius: 2px 2px 0 0; min-height: 2px; }
.chart-bar-pv { background: var(--accent-600); }
.chart-bar-visitor { background: var(--orange-500); }
.chart-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chart-legend-pv { background: var(--accent-600); }
.chart-legend-visitor { background: var(--orange-500); }
.breakdown-bar-track { height: 6px; border-radius: 999px; background: var(--surface-alt-2); overflow: hidden; }
.breakdown-bar-fill { height: 100%; border-radius: 999px; background: var(--accent-600); }
.admin-activity-row { padding: 9px 0; border-bottom: 1px solid var(--border); }
.admin-activity-row:last-child { border-bottom: none; }

/* Price breakdowns: Manage Listings example, a shop's dashboard, the customer's request popup. */
.quote-box { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.88rem; }
.quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--text); }
.quote-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border-strong); font-weight: 800; color: var(--text-strong); }
/* A shop's updated quote waiting on the customer (dashboard + Appointments), and the shop's editor for it. */
.proposal-box { border: 1px solid var(--orange-500); border-radius: var(--radius-md); padding: 12px 14px; }
.quote-edit-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.quote-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 32px; gap: 8px; align-items: center; }
.quote-edit-row .price-input { width: 100%; }
/* A line's description from the customer's quote: fixed text (not editable), filled in from the price. */
.quote-edit-label {
  display: flex; align-items: center; min-height: 41px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--surface-alt); border: 1px solid var(--border); font-size: 0.92rem; color: var(--text); overflow-wrap: anywhere;
}
.quote-edit-remove {
  width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer;
}
.quote-edit-remove:hover:not(:disabled) { color: var(--text); background: var(--surface-alt); }
.quote-edit-remove:disabled { opacity: 0.35; cursor: not-allowed; }
.quote-edit-total { font-size: 0.95rem; }
.price-example { margin-top: 12px; }
.service-price-input input[type=number] { width: 110px; }

/* Mobile Services "Job details" card: the questions a price depends on. */
.detail-q { margin-bottom: 18px; }
.detail-q > label { display: block; margin-bottom: 8px; }
.detail-hint { margin: 6px 0 0; font-size: 0.84rem; color: var(--text-muted); }
.detail-status { margin: 0; font-size: 0.88rem; font-weight: 600; }
.detail-status.ready { color: var(--green-600); }
.detail-size-input { max-width: 240px; margin-top: 10px; }

/* Settings page (account/settings.html): section subtitles, label/value rows, and the notification switches. */
.settings-sub { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.settings-hint { margin: 6px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.settings-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 18px 0 0; }
.settings-dl dt { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; }
.settings-dl dd { margin: 0; color: var(--text-strong); overflow-wrap: anywhere; }
.acct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.settings-sub + .acct-row { margin-top: 12px; }
.acct-row > div:first-child { min-width: 0; }
.acct-row .btn { flex-shrink: 0; }
.acct-row .btn .badge { margin-left: 4px; }
.settings-row-title { font-weight: 700; color: var(--text-strong); font-size: 0.95rem; }
.settings-row-sub { font-size: 0.86rem; color: var(--text-muted); margin-top: 2px; }
.notif-table { margin-top: 12px; }
.notif-row {
  display: grid; grid-template-columns: 1fr 64px 64px; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.notif-row > div:not(:first-child) { text-align: center; }
.notif-head { padding: 0 0 6px; border-top: none; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.notif-row .badge { font-size: 0.7rem; vertical-align: 1px; margin-left: 4px; }

/* On/off switch - a real checkbox underneath, so it's keyboard- and screen-reader-friendly. */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; margin: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong);
  transition: background 0.15s; pointer-events: none;
}
.switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: transform 0.15s;
}
.switch input:checked + span { background: var(--green-600); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-100); }

@media (max-width: 520px) {
  .acct-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .notif-row { grid-template-columns: 1fr 52px 52px; gap: 8px; }
}

/* ===========================================================
   Color refresh (Sept 2026): the brand gradient and colored accents
   layered over the components above. Everything uses theme tokens,
   so dark mode picks up its softer versions automatically.
   =========================================================== */

/* Header: frosted glass over the page, with a thin brand-gradient line underneath. */
.site-header {
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand-grad); opacity: 0.55;
}
.notif-btn, .theme-toggle { transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.notif-btn:hover { border-color: var(--accent-500); color: var(--accent-600); background: var(--accent-100); }
.nav-links a:hover, .nav-links a.active { background: var(--accent-100); color: var(--accent-600); }

/* Buttons: the main action gets the gradient and a soft colored glow. */
.btn-primary, .btn-accent, .btn-nav, .shop-cards-grid .btn-primary {
  background: var(--brand-grad); background-size: 140% 140%; background-position: 0% 50%;
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px -6px var(--brand-glow);
  transition: background-position 0.3s, box-shadow 0.2s, transform 0.05s;
}
.btn-primary:hover, .btn-accent:hover, .btn-nav:hover, .shop-cards-grid .btn-primary:hover {
  background: var(--brand-grad); background-size: 140% 140%; background-position: 100% 50%;
  box-shadow: 0 10px 24px -8px var(--brand-glow);
}
.btn-outline:hover { border-color: var(--accent-500); color: var(--accent-600); background: var(--accent-100); }
.btn-danger:hover { background: var(--red-600); color: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }

/* Hero: soft colored light blooming behind the headline, and a gradient on the key words. */
.hero {
  background:
    radial-gradient(60% 80% at 8% 0%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 60%),
    radial-gradient(50% 70% at 92% 10%, color-mix(in srgb, var(--brand-pink) 18%, transparent) 0%, transparent 60%),
    radial-gradient(45% 60% at 60% 100%, color-mix(in srgb, var(--tone-teal) 10%, transparent) 0%, transparent 65%),
    var(--bg);
}
.hero h1 .grad-text, .grad-text {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Cards: rounder, with a lift and a colored edge on hover. */
.card-hover:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: 0 16px 36px -14px var(--brand-glow), var(--shadow-sm); transform: translateY(-3px); }

/* Colored icon chips - one tone per section (home "What are you here to do?" cards, etc.). */
.tone-blue   { background: var(--tone-blue-bg);   color: var(--tone-blue); }
.tone-teal   { background: var(--tone-teal-bg);   color: var(--tone-teal); }
.tone-orange { background: var(--tone-orange-bg); color: var(--tone-orange); }
.tone-pink   { background: var(--tone-pink-bg);   color: var(--tone-pink); }
.tone-violet { background: var(--tone-violet-bg); color: var(--tone-violet); }
.tone-green  { background: var(--tone-green-bg);  color: var(--tone-green); }
.tone-amber  { background: var(--tone-amber-bg);  color: var(--tone-amber); }
.tone-red    { background: var(--tone-red-bg);    color: var(--tone-red); }
.landing-path-card .feature-icon { transition: transform 0.2s; }
.landing-path-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.landing-paths-label { color: var(--accent-600); }

/* Selected / "on" states use the brand color instead of plain black. */
.tp-day.sel, .tp-slot.sel, .cal-day.sel, .type-chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chat-msg.mine .chat-bubble { background: var(--brand-grad); color: #fff; }
.funnel-bar, .step.current::before { background: var(--brand-grad); }
.service-tab.active { border-color: var(--brand); background: var(--accent-100); color: var(--accent-600); box-shadow: 0 0 0 1px var(--brand) inset; }
.switch input:checked + span { background: var(--brand); }
.theme-switch button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.badge-partner { background: var(--tone-blue-bg); color: var(--tone-blue); }
.badge-count { background: var(--brand); color: #fff; }

/* Always-dark panels: navy instead of flat black, with a hint of the brand. */
.site-footer { background: var(--footer-bg); position: relative; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-grad); opacity: 0.7; }
.vehicle-hero { background: linear-gradient(135deg, #0F1B33 0%, #17284A 60%, #1F3558 100%); }
.toast { background: #172031; }
.note-banner { color: var(--amber-600); }
.note-banner.info { color: var(--accent-600); }
.maint-row.overdue { border-color: color-mix(in srgb, var(--red-600) 35%, transparent); }
.maint-row.due_soon { border-color: color-mix(in srgb, var(--amber-600) 35%, transparent); }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
/* Gradient headline text needs lighter stops to stay readable on the dark page. */
[data-theme="dark"] .hero h1 .grad-text, [data-theme="dark"] .grad-text { background-image: linear-gradient(135deg, #7FA3E8 0%, #9CC0EC 55%, #BFD8EE 100%); }

/* Placeholder car pictures (carSvg in icons.js): background lightness per theme. */
:root { --car-bg-s: 28%; --car-bg-a: 95%; --car-bg-b: 87%; --car-shadow: 70%; }
[data-theme="dark"] { --car-bg-s: 18%; --car-bg-a: 20%; --car-bg-b: 13%; --car-shadow: 5%; }
/* Tags sitting on top of a picture need a solid backing to stay readable, especially in dark mode. */
[data-theme="dark"] .corner-badges .badge { background-color: rgba(10, 14, 20, 0.88); }
.corner-badges .badge { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Question-based job details for Towing / Locksmith (renderQuestionCard in mobileService.js): answers are
   longer than tire counts, so chips get a little more room, and descriptions have a character counter. */
.q-slots { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.q-slots .tp-slot { padding: 10px 8px; line-height: 1.25; }
#detailsCard textarea { width: 100%; resize: vertical; font-family: inherit; }
.q-count { text-align: right; }

/* ===========================================================
   Admin dashboard (/admin - public/js/adminDashboard.js)
   Chart colors are the data-viz palette's validated slots 1 (blue) and 2 (orange), with their own
   dark-mode steps; marks are 2px lines, capped bars with rounded ends, hairline gridlines.
   =========================================================== */
.admin-page { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-grid: var(--border); }
[data-theme="dark"] .admin-page { --viz-1: #3987e5; --viz-2: #d95926; }
.admin-page .container { max-width: 1280px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.admin-eyebrow { margin: 0 0 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-600); }
.admin-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 20px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button {
  border: none; background: none; padding: 10px 14px; font: inherit; font-weight: 700; font-size: 0.9rem;
  color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.admin-tabs button:hover { color: var(--text-strong); }
.admin-tabs button.active { color: var(--accent-600); border-bottom-color: var(--brand); }

.kpi-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 14px 16px; }
.kpi-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; margin: 2px 0; overflow-wrap: anywhere; }
.kpi-delta { font-size: 0.78rem; font-weight: 700; }
.kpi-delta.up { color: var(--green-600); }
.kpi-delta.down { color: var(--red-600); }
.kpi-delta .muted { font-weight: 500; }
.kpi-note { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.admin-section { margin-bottom: 16px; min-width: 0; }
.admin-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.admin-sub { margin: 2px 0 0; font-size: 0.84rem; color: var(--text-muted); }
.admin-review { padding: 12px 0; border-bottom: 1px solid var(--border); }
.admin-review:last-child { border-bottom: 0; }
.admin-review .badge { margin-left: 6px; }
.admin-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-two > .admin-section { margin-bottom: 16px; }
.admin-empty { margin: 0; padding: 18px 0; color: var(--text-muted); font-size: 0.9rem; }
.admin-ok { margin: 0; color: var(--green-600); font-weight: 600; }
.admin-attn { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.admin-attn li { font-size: 0.92rem; }
.admin-attn .link-accent { margin: 0 0 0 6px; font-size: 0.86rem; }
.admin-integrations { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.9rem; }
.admin-integrations .badge { min-width: 38px; text-align: center; margin-right: 6px; }

/* Horizontal bars */
.bar-list { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 0.86rem; padding: 2px 0; cursor: default; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.bar-track { height: 14px; }
.bar-fill { height: 100%; max-height: 14px; background: var(--viz-1); border-radius: 0 4px 4px 0; transition: opacity 0.15s; }
.bar-row:hover .bar-fill { opacity: 0.8; }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text-strong); min-width: 32px; text-align: right; }

/* Line chart */
.lc-wrap { position: relative; }
.lc { width: 100%; height: 220px; display: block; overflow: visible; }
.lc-grid { stroke: var(--viz-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font-sans); }
.lc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-line.s1 { stroke: var(--viz-1); } .lc-line.s2 { stroke: var(--viz-2); }
.lc-area.s1 { fill: var(--viz-1); opacity: 0.1; } .lc-area.s2 { fill: var(--viz-2); opacity: 0.1; }
.lc-dot { stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lc-dot.s1 { fill: var(--viz-1); } .lc-dot.s2 { fill: var(--viz-2); }
.lc-cross { stroke: var(--text-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-legend { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin: -6px 0 8px; }
.lc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lc-key { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.lc-key.s1 { background: var(--viz-1); } .lc-key.s2 { background: var(--viz-2); }

/* Hour-of-day columns */
.cols { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 140px; }
.col { height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.col-fill { width: 100%; max-width: 24px; min-height: 1px; background: var(--viz-1); border-radius: 4px 4px 0 0; }
.col:hover .col-fill { opacity: 0.8; }
.cols-axis { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }

/* Tables */
.admin-table-wrap { overflow-x: auto; margin: 0 -4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); padding: 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table a { color: var(--link-color); }
.admin-job { max-width: 360px; font-size: 0.8rem; color: var(--text-muted); }

.admin-tooltip {
  position: fixed; z-index: 300; pointer-events: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 8px 10px; font-size: 0.82rem; max-width: 260px;
}

@media (max-width: 980px) {
  .kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kpi-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 1.3rem; }
  .bar-row { grid-template-columns: minmax(80px, 42%) 1fr auto; }
}

/* Red banner for a job answer that means someone may be in danger (e.g. a child or pet locked in a car). */
.detail-hint.detail-hint-emergency {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--red-100);
  color: var(--red-600); font-weight: 800; font-size: 0.92rem; border-left: 4px solid var(--red-600);
}

/* Service Centers page (public/service) - laid out like Mobile Services: tiles, step cards, shop cards. */
.service-tabs-8 > .service-tab, .service-tabs-8 > .service-tab:nth-child(n+5) { grid-column: span 3; }
@media (max-width: 620px) {
  .service-tabs-8 > .service-tab, .service-tabs-8 > .service-tab:nth-child(n+5) { grid-column: span 6; }
}
.svc-where-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.svc-locate .btn { white-space: nowrap; }
@media (max-width: 620px) {
  .svc-where-row { grid-template-columns: 1fr 1fr; }
  .svc-locate { grid-column: 1 / -1; }
  .svc-locate .btn { width: 100%; }
}
.svc-search { min-width: 0; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); padding: 0 12px; }
.svc-search input { border: none; box-shadow: none; padding-left: 0; background: transparent; }
.svc-search input:focus { box-shadow: none; }
.svc-search:focus-within { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.svc-search [data-icon] svg { width: 18px; height: 18px; color: var(--text-muted); }
.svc-chips { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.svc-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; }
.shop-cards-grid .svc-card > * { margin-bottom: 0; }
.svc-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; background: var(--surface-alt-2); color: var(--text); }
.svc-chip.on { background: var(--accent-100); color: var(--accent-600); }
.svc-card .shop-trust { gap: 6px; }
.svc-card .shop-trust [data-icon] svg { width: 13px; height: 13px; }
.svc-card-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: auto; }
.svc-card-actions .btn { padding: 9px 10px; font-size: 0.86rem; }
.svc-aside { position: sticky; top: 84px; }

/* Marketplace (public/marketplace) - same step layout as Mobile Services / Service Centers. */
.mp-style-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.mp-style-search { flex: 1 1 260px; }
.mp-body-tile { padding: 14px 10px; gap: 8px; }
.mp-body-tile .feature-icon { width: 50px; height: 50px; border-radius: 14px; }
.mp-tile-car { display: block; width: 76px; height: 46px; border-radius: 10px; overflow: hidden; }
.mp-tile-car svg { width: 100%; height: 100%; }
.mp-budget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mp-budget-grid select { width: 100%; }
.mp-range { display: flex; align-items: center; gap: 8px; }
.mp-range .mp-dropdown { flex: 1; min-width: 0; }
.mp-range .mp-dropdown-btn { width: 100%; }
.mp-more-inline { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
#budgetCard .when-advance-link { margin-top: 14px; }
.mp-sort { width: auto; min-width: 190px; }
.mp-results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .mp-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .mp-budget-grid { grid-template-columns: 1fr; }
  .mp-sort { width: 100%; }
}
@media (max-width: 560px) {
  /* Stays a 2-up grid on phones (not a 1-column list) so mobile matches
     desktop's card-grid layout - card typography below scales back down
     to compensate for the narrower column. */
  .mp-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .market-listings-grid .listing-body { padding: 10px 2px 2px; gap: 2px; }
  .market-listings-grid .listing-title { font-size: 0.92rem; }
  .market-listings-grid .listing-meta { font-size: 0.76rem; }
  .market-listings-grid .listing-price { font-size: 1.05rem; }
  .market-listings-grid .listing-dealer { font-size: 0.72rem; margin-top: 4px; padding-top: 6px; }
  .market-listings-grid .listing-sub-meta { font-size: 0.7rem; }
  .market-listings-grid .mp-compare-link { font-size: 0.7rem; padding: 6px 8px; }
}

/* ---- Marketplace redesign: results-first, filters in a drawer (2026-09-29) ---- */
/* Shrunk hero, used only on the marketplace page - the shared .hero class (index/mobile-service/service) is untouched. */
.hero-compact { padding: 40px 0 28px; }
.hero-compact h1 { font-size: 2rem; }
.hero-compact p.lead { font-size: 1rem; }
/* A one-line "how it works" in place of the three big cards other pages use (.landing-paths) - just enough
   orientation for a first-time visitor, without pushing the cars further down the page. */
.mp-guide-strip { border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.mp-guide-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 0; font-size: 0.86rem; color: var(--text-muted); font-weight: 600;
}
.mp-guide-inner span[data-icon] { display: inline-flex; color: var(--text-faint); vertical-align: -3px; margin-right: 4px; }
.mp-guide-arrow { color: var(--text-faint); }
/* Chip bar: active filters as removable pills, plus the floating-style Filters button that opens the drawer. */
.mp-chip-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 12px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: var(--accent-100); color: var(--accent-600); font-size: 0.82rem; font-weight: 600; border: none; cursor: pointer;
}
.mp-chip:hover { background: var(--accent-200, var(--accent-100)); }
.mp-chip .mp-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,0.08); font-size: 0.7rem; line-height: 1; }
.mp-filters-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: none;
  background: var(--text-strong); color: var(--surface); font-weight: 700; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.mp-filters-btn:hover { opacity: 0.92; }
.mp-filters-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--surface); color: var(--text-strong); font-size: 0.72rem; font-weight: 800;
}
.mp-save-search-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-strong);
  font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap; margin-left: auto;
}
.mp-save-search-btn:hover { border-color: var(--accent-500); color: var(--accent-600); }
/* "Your saved searches": a row of pills, each name + how many currently match + a delete X - same
   remove-chip interaction as the active-filter chips above, just a second, persistent row. */
.mp-saved-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.mp-saved-searches-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.mp-saved-searches-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-saved-search-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); font-size: 0.82rem; font-weight: 600; color: var(--text-strong);
}
.mp-saved-search-chip a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mp-saved-search-chip a:hover { color: var(--accent-600); }
.mp-saved-search-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent-100); color: var(--accent-600); font-size: 0.72rem; font-weight: 800;
}
.mp-saved-search-chip .mp-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,0.08); font-size: 0.7rem; line-height: 1; cursor: pointer; border: none; }
/* The filter drawer: a side panel on the left. The layer behind it lets scrolling and clicks through, so the
   marketplace stays usable while it's open (public/js/marketplace.js wireDrawer). */
.filter-drawer-backdrop {
  position: fixed; inset: 0; background: transparent; z-index: 120; pointer-events: none;
  display: flex; justify-content: flex-start;
}
.filter-drawer {
  background: var(--surface); width: 100%; max-width: 420px; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; pointer-events: auto;
  border-right: 1px solid var(--border);
  animation: filterDrawerIn 0.18s ease-out;
}
/* Wide screens: the results move over beside the open panel instead of sitting under it. */
@media (min-width: 1100px) {
  body.filters-open .hero > .container,
  body.filters-open .mp-guide-strip > .container,
  body.filters-open main.page > .container { margin-left: 444px; max-width: calc(100% - 468px); transition: margin-left 0.18s ease-out; }
}
@keyframes filterDrawerIn { from { transform: translateX(-24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.filter-drawer-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.filter-drawer-body { padding: 18px 20px; flex: 1; }
.filter-drawer-foot {
  display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--surface);
}
.filter-drawer-foot .btn { flex: 1; }
@media (max-width: 560px) {
  .filter-drawer { max-width: 100%; }
  /* A phone's panel fills the screen: dim and block the page behind it, like before. */
  .filter-drawer-backdrop { background: rgba(11,18,32,0.45); pointer-events: auto; }
}

/* ---- Ported from ROAD30: generic mobile-service job-details UI (car picker, price grid, tire size) ---- */
.detail-hint { margin: 6px 0 0; font-size: 0.84rem; color: var(--text-muted); }
.detail-status { margin: 0; font-size: 0.88rem; font-weight: 600; }
.detail-status.ready { color: var(--green-600); }
.detail-size-input { max-width: 240px; margin-top: 10px; }
/* Oil Change's auto-filled oil type (guessed from the vehicle, overridable) */
.oil-default { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-alt); }
.oil-default-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oil-default-value { font-weight: 700; color: var(--text-strong); }
.oil-default-change { background: none; border: none; padding: 0; color: var(--brand); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.oil-default-change:hover { text-decoration: underline; }
.oil-default .detail-hint { margin: 6px 0 0; }

/* Manage Listings > Service pricing */
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.class-chip { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.84rem; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.class-chip span { color: var(--text-muted); }
.pill-tabs-wrap { display: flex; flex-wrap: wrap; border-radius: var(--radius); max-width: 100%; }
.pill-tabs-wrap button { border-radius: var(--radius-sm); }
.price-grid-wrap { overflow-x: auto; }
.price-grid { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.price-grid th { text-align: left; font-weight: 700; font-size: 0.78rem; color: var(--text-muted); padding: 4px 6px; }
.price-grid td { padding: 4px 6px; border-top: 1px solid var(--border); vertical-align: middle; }
.price-grid td:first-child { min-width: 150px; }
.price-cell { display: inline-flex; align-items: center; gap: 3px; }
.price-cell input { width: 74px; padding: 6px 6px; text-align: right; }

/* Mobile Services job-details extras */
.detail-auto { font-weight: 400; font-size: 0.78rem; color: var(--green-600); margin-left: 6px; }
.detail-hint-q { margin-top: 4px; }
.dent-head { display: none; }
.dent-row { display: grid; grid-template-columns: 24px 1fr 1fr 1fr 28px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.dent-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 2px 0 6px 32px; }
.dent-extra-item { display: flex; align-items: center; gap: 6px; }
.dent-extra-label { font-size: 0.78rem; color: var(--text-muted); }
.dent-photo-thumb { width: 44px; height: 44px; }
.tp-slot-mini { padding: 4px 10px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.tp-slot-mini.sel { background: var(--text-strong); color: var(--surface); border-color: var(--text-strong); }
.dent-row:first-of-type { border-top: none; }
.dent-row select { width: 100%; min-width: 0; font-size: 0.86rem; }
.dent-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dent-remove { color: var(--text-muted); font-size: 1.1rem; line-height: 1; padding: 2px; text-align: center; text-decoration: none; }
@media (min-width: 520px) {
  .dent-head { display: grid; grid-template-columns: 24px 1fr 1fr 1fr 28px; gap: 8px; padding: 0 0 6px; font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
}
@media (max-width: 519px) {
  .dent-row { grid-template-columns: 20px 1fr 1fr 1fr 22px; }
  .dent-row select { font-size: 0.8rem; }
}

/* Wheel Repair: one row per tapped wheel (see .dent-row above for the same pattern with dents) */
.wheel-row { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.wheel-row:first-of-type { border-top: none; }
.wheel-row select { width: 100%; min-width: 0; font-size: 0.86rem; }
.wheel-row-label { font-size: 0.82rem; font-weight: 700; color: var(--text-strong); }
.wheel-row-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 2px 0 6px; }
@media (max-width: 519px) {
  .wheel-row { grid-template-columns: 1fr; gap: 6px; padding: 10px 0; }
  .wheel-row select { font-size: 0.8rem; }
}

/* Top-down car picture for choosing which tires to replace or repair: the car on the left, options on the right */
.car-picker { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 32px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-alt); }
@media (max-width: 560px) { .car-picker { grid-template-columns: 1fr; justify-items: center; } .car-side { width: 100%; } }
.car-svg { width: 190px; max-width: 100%; height: auto; }
.car-body { fill: var(--surface-alt); stroke: var(--text-muted); stroke-width: 2; }
.car-glass { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.car-light { fill: var(--border-strong); }
.car-label { fill: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.car-wheel { cursor: pointer; outline: none; }
.car-wheel rect { fill: var(--surface); stroke: var(--text-muted); stroke-width: 2.5; transition: fill 0.12s, stroke 0.12s; }
.car-wheel line { stroke: var(--border-strong); stroke-width: 2; stroke-linecap: round; }
.car-wheel:hover rect { stroke: var(--text-strong); }
.car-wheel.sel rect { fill: var(--text-strong); stroke: var(--text-strong); }
.car-wheel.sel line { stroke: var(--surface); }
.car-wheel:focus-visible rect { stroke: var(--accent-500); stroke-width: 4; }
.car-side { min-width: 0; }
.car-side-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.car-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.car-quick .tp-slot { flex: 0 0 auto; padding: 8px 16px; }
.car-summary { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--text-strong); }

/* Factory tire size: a small reminder box under the quick options, beside the car */
.fit-corner:empty { display: none; }
.fit-corner { margin-top: 16px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.84rem; max-width: 340px; }
.fit-corner .fit-label { display: block; margin: 0 0 6px; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.fit-corner .detail-hint { font-size: 0.78rem; }
.fit-corner .tp-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-corner .tp-slot { padding: 6px 12px; font-size: 0.86rem; }
.fit-corner .link-accent { display: inline-block; margin-top: 8px; font-size: 0.76rem; }

.detail-text-input { max-width: 420px; }

.ready-box { margin-bottom: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.ready-box.ready { background: var(--green-100); color: var(--green-600); }

/* Tire Change, tidier (other services keep the plain layout for now) */
.car-left { display: flex; flex-direction: column; align-items: center; }
.car-tip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-strong); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; margin-bottom: 8px; max-width: 100%; text-align: center; }
.job-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .job-pair { grid-template-columns: 1fr; } }
.tire-neat .car-picker { padding: 18px 22px; }
.tire-neat .detail-q { margin-bottom: 16px; }
.tire-neat .detail-q > label { font-size: 0.86rem; margin-bottom: 6px; }
.tire-neat .tp-slots { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tire-neat .tp-slot { padding: 9px 8px; font-size: 0.88rem; }
.tire-neat .detail-hint { font-size: 0.8rem; margin-top: 5px; }
.tire-neat .detail-select, .tire-neat .detail-text-input { width: 100%; max-width: none; padding: 10px 11px; font-size: 0.9rem; }

/* "I have my own tires" tick box */
.own-check, .detail-q > .own-check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--text-strong); margin: 0; }
.own-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--text-strong); flex: 0 0 auto; }

/* Engine facts panel (Oil Change): a small engine icon plus real facts from the VIN, when we have them */
.engine-picker { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px 28px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-alt); margin-bottom: 20px; }
.engine-picker:empty { display: none; }
@media (max-width: 560px) { .engine-picker { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.engine-svg { width: 150px; height: auto; }
.engine-block { fill: var(--surface); stroke: var(--text-muted); stroke-width: 2.5; }
.engine-svg rect:not(.engine-block) { fill: var(--surface-alt-2); stroke: var(--text-muted); stroke-width: 2; }
.engine-svg circle:not(.engine-dipstick) { fill: var(--surface-alt-2); stroke: var(--text-muted); stroke-width: 2; }
.engine-dipstick { stroke: var(--text-strong); stroke-width: 3; stroke-linecap: round; }
.engine-drop { fill: #a3822f; opacity: 0.9; } /* same accent as the Oil Change service tile */
.engine-svg-generic { opacity: 0.45; }
.engine-side { min-width: 0; }
.engine-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.engine-chip { font-size: 0.84rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-strong); }
.engine-chip b { font-weight: 700; margin-right: 5px; }
@media (max-width: 560px) { .engine-chips { justify-content: center; } }

/* Tire size popup trigger (aftermarket wheels) */
.size-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Damage photo upload (Paintless Dent Repair) */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.photo-grid:empty { margin-bottom: 0; }
.photo-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.9rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---------- My Garage dashboard (public/js/garage.js) ---------- */
.tone-gray { background: var(--surface-alt-2); color: var(--text-muted); }
.gd-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-600); margin: 0 0 8px; }
.gd-eyebrow svg { width: 15px; height: 15px; }
.gd-strong { color: var(--text-strong); }

.gd-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 36px; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 20%, rgba(91, 155, 213, 0.35), transparent 45%), linear-gradient(135deg, #0F1B33 0%, #17284A 55%, #1F3F74 100%);
  color: #fff; box-shadow: var(--shadow-md); }
.gd-hero::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,0.04); pointer-events: none; }
.gd-hero-text { position: relative; z-index: 1; }
.gd-hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.gd-hero .gd-eyebrow { color: #9DBBF0; }
.gd-hero-sub { color: rgba(255,255,255,0.78); max-width: 560px; }
.gd-hero-btn { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.gd-hero-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.gd-hero-gauge { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px; border-radius: var(--radius-md); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.gd-hero-gauge[hidden] { display: none; }
.gd-hero-gauge strong { display: block; font-size: 1.1rem; }
.gd-hero-gauge span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.gd-hero .gd-ring-track { stroke: rgba(255,255,255,0.14); }
/* Appointments banner: "Next up" as a small link under the summary, and the mobile service street scene on the right
   (public/appointments). The banner is dark in both themes, so the scene's colors are fixed. */
.appt-next { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-size: 0.86rem; text-decoration: none; }
.appt-next:hover { background: rgba(255,255,255,0.14); color: #fff; }
.appt-next b { font-weight: 700; }
.appt-next svg { width: 15px; height: 15px; flex: none; color: #9DBBF0; }
.appt-next > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-scene { position: relative; z-index: 1; flex: none; display: block; width: 100%; max-width: 470px; height: auto; aspect-ratio: 600 / 220; }
.appt-scene .as-bld { fill: rgba(255,255,255,0.06); }
.appt-scene .as-bld2 { fill: rgba(255,255,255,0.1); }
.appt-scene .as-win { fill: rgba(255,255,255,0.08); }
.appt-scene .as-win-lit { fill: rgba(242,194,48,0.55); }
.appt-scene .as-tree { fill: rgba(120,190,170,0.22); }
.appt-scene .as-trunk { fill: rgba(255,255,255,0.12); }
.appt-scene .as-glow { fill: rgba(242,194,48,0.14); }
.appt-scene .as-pole { fill: rgba(255,255,255,0.28); }
.appt-scene .as-lamp { fill: #FFE6A0; }
.appt-scene .as-walk { fill: rgba(255,255,255,0.08); }
.appt-scene .as-curb { fill: rgba(255,255,255,0.16); }
.appt-scene .as-road { fill: rgba(0,0,0,0.18); }
.appt-scene .as-lane { fill: rgba(255,255,255,0.18); }
.appt-scene .as-shadow { fill: rgba(0,0,0,0.32); }
.appt-scene .as-van { fill: #E9ECF5; }
.appt-scene .as-van-door { fill: #DCE1EE; }
.appt-scene .as-van-trim { fill: #9AA3B5; }
.appt-scene .as-van-inside { fill: #1C2340; }
.appt-scene .as-glass { fill: #2F3C62; }
.appt-scene .as-stripe { fill: #5C7AD3; }
.appt-scene .as-brand { fill: #2F3C62; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.appt-scene .as-brand-sub { fill: #5C7AD3; font-size: 6.5px; font-weight: 700; letter-spacing: 0.04em; }
.appt-scene .as-tail { fill: #D63A35; }
.appt-scene .as-head { fill: #FFF3C4; }
.appt-scene .as-tire { fill: #232532; }
.appt-scene .as-tire-line { fill: #3A3D4D; }
.appt-scene .as-rim { fill: #C9CDEE; }
.appt-scene .as-rim-dark { fill: #4A4F5C; }
.appt-scene .as-tool-red { fill: #D63A35; }
.appt-scene .as-tool-yellow { fill: #F2C230; }
.appt-scene .as-lift-yellow { fill: #F2C230; }
.appt-scene .as-lift-dark { fill: #4A4F5C; }
.appt-scene .as-lift-arm { stroke: #9298A6; stroke-width: 4; stroke-linecap: round; }
.gd-hero .gd-ring-num { fill: #fff; }

.gd-ring { flex: none; }
.gd-ring-track { stroke: var(--surface-alt-2); }
.gd-ring-fill { transition: stroke-dashoffset 0.8s ease; }
.gd-ring-green .gd-ring-fill { stroke: var(--green-600); }
.gd-ring-amber .gd-ring-fill { stroke: var(--amber-600); }
.gd-ring-red .gd-ring-fill { stroke: var(--red-600); }
.gd-ring-gray .gd-ring-fill { stroke: var(--text-faint); }
.gd-ring-num { fill: var(--text-strong); font-weight: 800; font-family: var(--font-sans); }

.gd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gd-stat { display: flex; align-items: center; gap: 14px; padding: 18px; }
.gd-stat-icon, .gd-att-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.gd-stat-icon svg { width: 21px; height: 21px; }
.gd-stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: var(--text-strong); }
.gd-stat-label { font-weight: 600; font-size: 0.9rem; }
.gd-stat-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.gd-spin { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.gd-stat-link { color: var(--text); text-decoration: none; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.gd-stat-link:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--brand-glow), var(--shadow-sm); }
.gd-stat-go { margin-left: auto; color: var(--text-faint); display: inline-flex; transition: transform 0.15s, color 0.15s; }
.gd-stat-go svg { width: 18px; height: 18px; }
.gd-stat-link:hover .gd-stat-go { color: var(--accent-600); transform: translateX(3px); }
#gdVehicles { scroll-margin-top: 90px; }

.gd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.gd-side { display: flex; flex-direction: column; gap: 16px; }
.gd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gd-section-head h2 { font-size: 1.3rem; }
.gd-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.gd-vcard { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s; }
.gd-vcard:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--brand-glow), var(--shadow-sm); }
.gd-vphoto { position: relative; display: block; aspect-ratio: 16/10; background: linear-gradient(135deg, #0F1B33, #1F3558); overflow: hidden; }
.gd-vphoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gd-vcard:hover .gd-vphoto img { transform: scale(1.04); }
.gd-vphoto-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); }
.gd-vphoto-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,20,0.35) 0%, transparent 35%, transparent 50%, rgba(5,10,20,0.88) 100%); }
.gd-vphoto-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.gd-vphoto-name { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; display: flex; flex-direction: column; }
.gd-vphoto-name strong { font-size: 1.15rem; }
.gd-vphoto-name span { font-size: 0.85rem; opacity: 0.8; }
.gd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gd-chip svg { width: 13px; height: 13px; }
.gd-chip-red { background: rgba(194, 65, 75, 0.92); color: #fff; }
.gd-chip-amber { background: rgba(212, 160, 60, 0.94); color: #1b1407; }
.gd-chip-green { background: rgba(62, 138, 99, 0.94); color: #fff; }
.gd-chip-dark { background: rgba(8, 12, 20, 0.72); color: #fff; }

.gd-vbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gd-vhealth { display: flex; align-items: center; gap: 12px; }
.gd-vhealth-title { font-weight: 700; color: var(--text-strong); }
.gd-vmiles { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.gd-vmiles strong { font-size: 1.15rem; color: var(--text-strong); }
.gd-vmiles span { font-size: 0.78rem; color: var(--text-muted); }
.gd-segbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-alt-2); }
.gd-segbar span { display: block; height: 100%; }
.gd-seg-red, .gd-dot-red { background: var(--red-600); }
.gd-seg-amber, .gd-dot-amber { background: var(--amber-600); }
.gd-seg-green, .gd-dot-green { background: var(--green-600); }
.gd-seglegend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: -4px; }
.gd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.gd-next { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); background: var(--surface-alt); border-left: 3px solid var(--green-600); }
.gd-next.overdue { border-left-color: var(--red-600); }
.gd-next.due_soon { border-left-color: var(--amber-600); }
.gd-next-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-alt-2); color: var(--text); }
.gd-next-icon svg, .gd-att-icon svg { width: 18px; height: 18px; }
.gd-vmeta { display: flex; flex-wrap: wrap; gap: 14px; }
.gd-vmeta > span { display: inline-flex; align-items: center; gap: 5px; }
.gd-vmeta svg { width: 14px; height: 14px; }
.gd-vactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.gd-vactions .btn-ghost { margin-left: auto; }

.gd-addcard { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--border-strong); border-radius: var(--radius-md); background: transparent; color: var(--text); cursor: pointer; font: inherit; transition: border-color 0.15s, background 0.15s; }
.gd-addcard:hover { border-color: var(--brand); background: var(--accent-100); }
.gd-addcard-plus { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-100); color: var(--accent-600); margin-bottom: 6px; }

.gd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gd-panel-head h3 { font-size: 1.05rem; }
.gd-att-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.gd-panel-head + .gd-att-row { border-top: none; padding-top: 2px; }
.gd-att-icon { width: 38px; height: 38px; border-radius: 11px; }
.gd-att-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gd-att-text strong { font-size: 0.92rem; }
.gd-hint { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--accent-100); color: var(--text); }
.gd-hint svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent-600); }
.gd-empty-mini { display: flex; gap: 12px; align-items: center; }

.gd-appt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.gd-panel-head + .gd-appt { border-top: none; padding-top: 2px; }
.gd-appt:hover { color: var(--text); }
.gd-appt-date { flex: none; width: 48px; height: 52px; border-radius: 12px; background: var(--accent-100); color: var(--accent-600); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.gd-appt-date span { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.gd-appt-date strong { font-size: 1.25rem; }
.gd-appt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gd-appt-text strong { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gd-action { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--text); text-decoration: none; border: 1px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.gd-action:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); transform: translateY(-1px); color: var(--text); }
.gd-action > span:last-child { display: flex; flex-direction: column; }
.gd-action strong { font-size: 0.9rem; color: var(--text-strong); }
.gd-action:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; } /* an odd one out fills the row */

.gd-tip { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, var(--amber-100), transparent 70%), var(--surface); }
.gd-tip .gd-eyebrow { color: var(--amber-600); }
.gd-eyebrow-block { display: flex; }

.gd-chart { width: 100%; height: 190px; display: block; }
.gd-chart-axis { stroke: var(--border-strong); stroke-width: 1; }
.gd-chart-bar { fill: var(--brand); }
.gd-chart-bar:hover { fill: var(--accent-500); }
.gd-chart-zero { fill: var(--surface-alt-2); }
.gd-chart-label { fill: var(--text-muted); font-size: 11px; font-family: var(--font-sans); }
.gd-chart-val { fill: var(--text-strong); font-size: 11px; font-weight: 700; font-family: var(--font-sans); }
.gd-chart-empty { display: flex; gap: 12px; align-items: center; padding: 4px 0 14px; }
/* An empty year: the twelve months as faint baseline bars under the message, so the panel isn't a blank box. */
.gd-chart-ghost { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.gd-chart-ghost span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-faint); }
.gd-chart-ghost i { display: block; width: 60%; height: 4px; border-radius: 2px; background: var(--surface-alt-2); }
@media (max-width: 520px) { .gd-chart-ghost { gap: 2px; } .gd-chart-ghost span { font-size: 0.62rem; } }

.gd-timeline { list-style: none; margin: 0; padding: 0; }
.gd-timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 14px 2px; }
.gd-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.gd-timeline li > div { display: flex; flex-direction: column; }
.gd-tl-dot { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--accent-100); }

.gd-empty { text-align: center; padding: 40px 24px; }
.gd-empty-art { color: var(--accent-500); margin-bottom: 8px; }

@media (max-width: 1100px) { .gd-layout { grid-template-columns: 1fr; } .gd-side { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .gd-two { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .gd-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .gd-side { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .gd-stats { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 460px) { .gd-actions { grid-template-columns: 1fr; } }

/* My Garage: keeping mileage current (tap-to-edit on the vehicle card + the monthly check banner) */
.gd-vmiles { align-items: flex-end; }
.gd-miles-btn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; margin: -2px -6px 0 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-strong); font: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.gd-miles-btn strong { font-size: 1.15rem; }
.gd-miles-btn:hover { border-color: var(--border-strong); background: var(--surface-alt); }
.gd-miles-pen { display: inline-flex; color: var(--text-faint); transition: color 0.15s; }
.gd-miles-btn:hover .gd-miles-pen { color: var(--accent-600); }
.gd-vmiles > span { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.gd-vmiles > span.gd-miles-stale { color: var(--amber-600); font-weight: 600; }
.gd-miles-form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gd-miles-form input { width: 120px; padding: 7px 10px; text-align: right; font-weight: 700; }
.gd-miles-form-btns { display: flex; gap: 4px; }

.gd-miles-banner { padding: 18px 20px; border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: linear-gradient(135deg, var(--accent-100), transparent 65%), var(--surface); }
.gd-miles-banner-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.gd-miles-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0 0 52px; }
.gd-miles-row-name { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.gd-miles-row input { width: 150px; padding: 8px 10px; }
@media (max-width: 620px) { .gd-miles-row { padding-left: 0; } .gd-miles-row input { flex: 1 1 120px; } }

/* Inbox: automatic messages from Road (src/services/mileageReminders.js) - a button under the message, no reply box */
.chat-bubble .chat-action { display: flex; width: fit-content; margin-top: 10px; white-space: nowrap; }
.chat-noreply { padding: 14px 16px; border-top: 1px solid var(--border); text-align: center; }

/* Credit for a Wikimedia Commons stock photo (vehicle page) */
.photo-credit { position: absolute; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85); font-size: 0.72rem; text-decoration: none; backdrop-filter: blur(2px); }
.photo-credit:hover { color: #fff; background: rgba(0,0,0,0.72); }

/* Vehicle photo: the buttons over the photo, and "Not your car? Pick another photo" (public/js/vehicle.js) */
.photo-actions { position: absolute; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: calc(100% - 24px); }
.photo-actions .photo-change-btn { position: static; }
.photo-credit { max-width: calc(100% - 24px); }
@media (max-width: 620px) {
  .photo-actions { left: 12px; bottom: 44px; justify-content: flex-start; }
}
.modal-wide { max-width: 860px; }
.modal-wide .modal-body { max-height: min(76vh, 760px); overflow-y: auto; }
.photo-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .photo-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo-pick { position: relative; display: block; padding: 0; aspect-ratio: 16/10; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-alt-2); cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-2px); }
.photo-pick.current { border-color: var(--green-600); cursor: default; }
.photo-pick:disabled { opacity: 0.6; cursor: wait; }
.photo-pick-badge { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--green-600); color: #fff; font-size: 0.72rem; font-weight: 700; }
.photo-pick-skel { aspect-ratio: 16/10; border-radius: var(--radius-sm); }
.photo-pick-own { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-style: dashed; background: transparent; color: var(--text); font: inherit; text-align: center; padding: 10px; }
.photo-pick-own-icon { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-100); color: var(--accent-600); margin-bottom: 4px; }

/* My Garage card: "Add a photo of your car" over a stock photo (public/js/garage.js) */
.gd-vphoto-wrap { position: relative; }
.gd-addphoto { position: absolute; right: 12px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); background: rgba(8,12,20,0.66); color: #fff; font: inherit; font-size: 0.76rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.15s; }
.gd-addphoto:hover { background: rgba(8,12,20,0.85); color: #fff; }
.gd-addphoto svg { width: 14px; height: 14px; }
.gd-vphoto-wrap:has(.gd-addphoto) .gd-vphoto-name { right: 150px; }
.gd-addphoto { z-index: 2; }

/* ---------- Shared dashboard pieces (public/js/uiKit.js): Appointments, Dashboard, Business Dashboard ---------- */
button.gd-stat { font: inherit; text-align: left; width: 100%; cursor: pointer; }
.ui-stat-active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 14px 30px -16px var(--brand-glow); }
.ui-stat-active .gd-stat-go { color: var(--accent-600); }
.gd-stats.ui-stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .gd-stats.ui-stats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) {
  .gd-stats.ui-stats-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ui-stats-4 .gd-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .ui-stats-4 .gd-stat-go { display: none; }
  .ui-stats-4 .gd-stat-icon { width: 36px; height: 36px; }
}

.ui-hero-next { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-width: 260px; max-width: 340px; padding: 16px 18px; border-radius: var(--radius-md); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: #fff; text-decoration: none; backdrop-filter: blur(6px); }
.ui-hero-next:hover { background: rgba(255,255,255,0.11); color: #fff; }
.ui-hero-next .ui-date { background: rgba(255,255,255,0.12); color: #fff; }
.ui-hero-next-text { display: flex; flex-direction: column; min-width: 0; }
.ui-hero-next-text small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9DBBF0; }
.ui-hero-next-text strong { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-hero-next-text span { font-size: 0.84rem; color: rgba(255,255,255,0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ui-date { flex: none; width: 58px; height: 66px; border-radius: 14px; background: var(--accent-100); color: var(--accent-600); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ui-date span { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.ui-date strong { font-size: 1.45rem; }
.ui-date em { font-style: normal; font-size: 0.66rem; opacity: 0.8; }
.ui-date-muted { background: var(--surface-alt-2); color: var(--text-muted); }

.ui-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.ui-toolbar h2 { font-size: 1.3rem; margin: 0; }

/* A request card: date block | details | status */
.ui-card { padding: 18px 20px; margin-bottom: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
.ui-card:hover { border-color: var(--border-strong); }
.ui-card.ui-attention { border-color: color-mix(in srgb, var(--amber-600) 55%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber-600) 35%, transparent) inset; }
.ui-card.ui-dim { opacity: 0.78; }
.ui-card-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ui-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ui-card-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ui-card-title .gd-att-icon { width: 36px; height: 36px; border-radius: 10px; }
.ui-card-title .gd-att-icon svg { width: 17px; height: 17px; }
.ui-card-title strong { font-size: 1.02rem; color: var(--text-strong); }
.ui-card-title small { display: block; font-size: 0.78rem; color: var(--text-muted); }
.ui-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.86rem; color: var(--text-muted); }
.ui-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ui-meta svg { width: 14px; height: 14px; flex: none; }
.ui-meta strong { color: var(--text); font-weight: 600; }
.ui-card-body > *:last-child { margin-bottom: 0; }
.ui-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.ui-callout { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--amber-100); color: var(--text); font-size: 0.88rem; }
.ui-callout svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--amber-600); }
.ui-callout-info { background: var(--accent-100); }
.ui-callout-info svg { color: var(--accent-600); }
/* Appointments page (public/js/appointments.js): "Before your visit" tips, the Add to calendar menu, the stars
   after rating a job, and the "what's due" box when nothing is booked. */
.appt-tips { margin: 4px 0 8px; font-size: 0.88rem; }
.appt-tips summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--link-color); font-weight: 600; list-style: none; }
.appt-tips summary::-webkit-details-marker { display: none; }
.appt-tips summary svg { width: 15px; height: 15px; }
.appt-tips ul { margin: 8px 0 0; padding-left: 20px; color: var(--text); line-height: 1.55; }
.appt-tips li + li { margin-top: 3px; }
.appt-cal { position: relative; }
.appt-cal-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-md); }
.appt-cal-menu a, .appt-cal-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 0.9rem; text-align: left; text-decoration: none; cursor: pointer; }
.appt-cal-menu a:hover, .appt-cal-menu button:hover { background: var(--surface-alt-2); }
.appt-rated { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.appt-stars { color: var(--amber-600); letter-spacing: 1px; }
.appt-card-due .gd-att-row:first-of-type { border-top: none; }
/* The list with "Your calendar" beside it (stacked below on narrow screens). Nothing upcoming: anything due, then
   their last appointment (or an example of one); "What happens after you book" goes under the calendar. */
.appt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.appt-layout:has(> .appt-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .appt-layout { grid-template-columns: minmax(0, 1fr); } }
.appt-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
@media (max-width: 900px) { .appt-side { position: static; } }
.appt-side:empty, #apptSideExtra:empty { display: none; }
.appt-empty { display: block; }
/* Your calendar: a month with a dot per appointment in its status color. */
.acal-head { align-items: center; }
.acal-nav { display: flex; gap: 4px; }
.acal-arrow { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-strong); cursor: pointer; }
.acal-arrow:hover { background: var(--surface-alt-2); }
.acal-arrow svg { width: 14px; height: 14px; }
.acal-weekdays, .acal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.acal-weekdays span { padding: 6px 0; text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.acal-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1; min-height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; }
.acal-day:hover { background: var(--surface-alt-2); }
.acal-has .acal-n { font-weight: 800; color: var(--text-strong); }
.acal-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; }
.acal-today .acal-n { background: var(--brand); color: #fff; }
.acal-selected { background: var(--accent-100); box-shadow: inset 0 0 0 1.5px var(--accent-600); }
.acal-dots { display: flex; gap: 2px; height: 6px; }
.acal-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--c); }
.acal-s-requested { --c: var(--tone-amber); }
.acal-s-quote-sent { --c: #D9822B; }
.acal-s-confirmed { --c: var(--tone-blue); }
.acal-s-completed { --c: var(--tone-green); }
.acal-s-cancelled { --c: var(--text-muted); }
.acal-day-list { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.acal-day-title { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.acal-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.acal-item:hover { background: var(--surface-alt-2); }
.acal-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acal-item strong { font-size: 0.9rem; color: var(--text-strong); }
.acal-item small { color: var(--text-muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acal-go { display: inline-flex; color: var(--text-muted); }
.acal-go svg { width: 14px; height: 14px; }
.acal-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 0.75rem; color: var(--text-muted); }
.acal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.acal-sync-note { text-align: center; font-size: 0.78rem; }
/* "Sync with your calendar": one row per calendar app. */
.cal-sync-options { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.cal-sync-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cal-sync-option:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow-sm); color: var(--text); }
.cal-sync-option > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cal-sync-option strong { color: var(--text-strong); font-size: 0.95rem; }
.cal-sync-option small { color: var(--text-muted); font-size: 0.82rem; }
.appt-svc-go { display: inline-flex; color: var(--text-muted); }
.appt-svc-go svg { width: 16px; height: 16px; }
.appt-empty .gd-section-head h3 { font-size: 1.05rem; }
.appt-example { position: relative; margin-top: 18px; border-style: dashed; box-shadow: none; }
.appt-example .ui-card-main, .appt-example .ui-date { opacity: 0.78; }
.appt-example .btn { pointer-events: none; }
.appt-example-tag { position: absolute; top: -11px; left: 16px; padding: 2px 10px; border-radius: 999px; background: var(--text-strong); color: var(--surface); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.appt-tips-fake { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--link-color); font-size: 0.88rem; font-weight: 600; }
.appt-tips-fake svg { width: 15px; height: 15px; }
.appt-how { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.appt-how li { display: flex; gap: 12px; align-items: flex-start; }
.appt-how li > div { display: flex; flex-direction: column; gap: 2px; }
.appt-how strong { color: var(--text-strong); font-size: 0.92rem; }
.appt-how .gd-att-icon { width: 34px; height: 34px; border-radius: 10px; }
.appt-how .gd-att-icon svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .ui-card { grid-template-columns: 1fr; } .ui-card > .ui-date { width: 100%; height: auto; flex-direction: row; gap: 8px; padding: 8px 12px; justify-content: flex-start; } .ui-card > .ui-date strong { font-size: 1.05rem; } }

.ui-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ui-step { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.ui-step i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); background: transparent; }
.ui-step.done { color: var(--text-muted); }
.ui-step.done i { background: var(--green-600); border-color: var(--green-600); }
.ui-step.on { color: var(--text-strong); }
.ui-step.on i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.ui-step-line { width: 18px; height: 2px; background: var(--border-strong); border-radius: 2px; }
.ui-steps-cancelled .ui-step.on i { background: var(--text-faint); border-color: var(--text-faint); box-shadow: none; }

.ui-empty { text-align: center; padding: 40px 24px; }
.ui-empty-icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; display: flex; }
.ui-empty-icon svg { width: 26px; height: 26px; }

.ui-list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.gd-panel-head + .ui-list-row, .ui-list-row:first-child { border-top: none; padding-top: 2px; }
.ui-list-row:hover { color: var(--text); }
.ui-list-row:hover strong { color: var(--accent-600); }
.ui-list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ui-list-text strong { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.ui-list-text span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-thumb { flex: none; width: 64px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--surface-alt-2); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.ui-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ui-unread-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.ui-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; background: var(--accent-100); color: var(--accent-600); }

/* Review page (public/review, public/js/review.js) */
.rv-wrap { max-width: 720px; }
.rv-hero { padding: 28px 30px; }
.rv-h { font-size: 1.15rem; margin: 0 0 2px; }
.rv-stars { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.rv-star { width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-alt); color: var(--border-strong); font-size: 28px; line-height: 1; cursor: pointer; transition: transform 0.12s, color 0.12s, background 0.12s, border-color 0.12s; }
.rv-star:hover { transform: translateY(-2px) scale(1.04); color: #e5a800; }
.rv-star.on { color: #f2b705; background: rgba(242, 183, 5, 0.12); border-color: rgba(242, 183, 5, 0.55); }
.rv-star:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rv-star-word { margin-left: 8px; font-weight: 700; color: var(--text-strong); min-width: 80px; }
.rv-label { display: block; font-size: 0.86rem; font-weight: 600; margin: 4px 0 8px; color: var(--text-strong); }
.rv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rv-tag { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-size: 0.86rem; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.rv-tag:hover { border-color: var(--brand); }
.rv-tag.on { background: var(--accent-100); border-color: var(--brand); color: var(--accent-600); font-weight: 600; }
.rv-wrap textarea { width: 100%; }
.rv-submit { padding: 14px; font-size: 1rem; }
.rv-thanks { text-align: center; padding: 48px 24px; }
.rv-thanks-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-600); margin-bottom: 14px; }
.rv-thanks-icon svg { width: 30px; height: 30px; }
@media (max-width: 460px) { .rv-star { width: 44px; height: 44px; font-size: 24px; } .rv-hero { padding: 22px 18px; } }

/* ---------- Ask Road (Marketplace, public/js/askRoad.js) ---------- */
.ask-card { padding: 18px 20px; border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); background: radial-gradient(circle at 100% 0%, var(--accent-100), transparent 55%), var(--surface); }
.ask-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ask-head h2 { font-size: 1.35rem; }
.ask-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px -8px var(--brand-glow); }
.ask-icon svg { width: 22px; height: 22px; }
.ask-form { display: flex; gap: 10px; position: relative; align-items: stretch; }
.ask-form-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent-600); display: inline-flex; pointer-events: none; }
.ask-form-icon svg { width: 18px; height: 18px; }
.ask-form input#askRoadInput { padding-left: 42px; }
.ask-desc { margin: 10px 2px 0; font-size: 0.85rem; color: var(--text-muted); }
.ask-form input { flex: 1; min-width: 0; padding: 14px 16px; font-size: 1rem; border-radius: 12px; }
.ask-form .btn { flex: none; padding: 0 20px; border-radius: 12px; white-space: nowrap; }
.ask-form .btn svg { width: 16px; height: 16px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-example { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-muted); font: inherit; font-size: 0.8rem; cursor: pointer; text-align: left; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.ask-example:hover { border-style: solid; border-color: var(--brand); color: var(--text-strong); background: var(--accent-100); }
.ask-result { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-alt); border: 1px solid var(--border); }
.ask-result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--text-strong); }
.ask-result-head svg { width: 16px; height: 16px; color: var(--green-600); }
.ask-undo { margin-left: auto; background: none; border: none; font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; }
.ask-understood { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chip { padding: 5px 11px; border-radius: 999px; background: var(--accent-100); color: var(--accent-600); font-size: 0.82rem; font-weight: 600; }
.ask-notes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ask-notes li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--amber-100); color: var(--text); }
.ask-notes svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--amber-600); }
.ask-hint { margin: 10px 0 0; font-size: 0.78rem; color: var(--text-muted); }
.ask-result-miss { display: flex; gap: 10px; align-items: flex-start; }
.ask-result-miss > svg, .ask-result-miss > span[data-icon] svg { width: 18px; height: 18px; color: var(--amber-600); }
.ask-result-miss strong { display: block; color: var(--text-strong); }
.ask-result-miss span { font-size: 0.88rem; color: var(--text-muted); }
.ask-result-miss ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.86rem; }
@media (max-width: 560px) {
  .ask-card { padding: 18px 16px; }
  .ask-form { flex-direction: column; }
  .ask-form .btn { padding: 12px; justify-content: center; }
  .ask-example:nth-child(n+3) { display: none; } /* two examples are plenty on a phone */
}

/* Test server banner (TEST_MODE - public/js/shell.js showTestModeBanner) */
.test-mode-banner { position: relative; z-index: 60; /* above the header, below popups (100) so it never covers one */ padding: 8px 16px; text-align: center; font-size: 0.84rem; background: #f2b705; color: #1b1407; }
.test-mode-banner strong { text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }

/* ===========================================================
   Job details cards (Mobile Services) - one look for every service:
   numbered sections, roomy option cards (icon, title, explanation), a short list of
   switch rows, chips, and a bottom bar with the job summary (never a price).
   Built by choiceLayout()/choiceButtons()/rowLabel()/renderJobFoot() in mobileService.js.
   The previous look is saved in snapshots/08-roadv37-before-job-cards.
   =========================================================== */
#detailsCard { counter-reset: jobq; }
#detailsCard .detail-q { margin-bottom: 22px; }
#detailsCard .detail-q > label:first-child:not(.own-check):not(.row-label) {
  font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 10px;
}
#detailsCard .detail-q:not([hidden]) > label:first-child:not(.own-check):not(.row-label)::before {
  counter-increment: jobq; content: counter(jobq) " \00b7\00a0"; color: var(--text-muted);
}

/* Option cards: icon, title and explanation inside each choice, equal heights per row. */
.opt-cards { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: stretch; }
.tp-slot.opt-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px 16px; line-height: 1.35; border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-strong); transition: border-color 0.15s, background 0.15s;
}
.tp-slot.opt-card:hover { border-color: var(--accent-500); }
.opt-card .opt-icon { display: inline-flex; margin-bottom: 6px; color: var(--text-muted); }
.opt-card .opt-icon svg { width: 22px; height: 22px; }
.opt-card .opt-t { font-weight: 700; font-size: 1rem; }
.opt-card .opt-s { font-weight: 400; font-size: 0.86rem; color: var(--text-muted); }
.tp-slot.opt-card.sel { background: var(--accent-100); border: 2px solid var(--brand); padding: 13px 15px; color: var(--accent-600); }
.tp-slot.opt-card.sel .opt-s, .tp-slot.opt-card.sel .opt-icon { color: var(--accent-600); }
/* Under option cards: a box with the picked option's full description ("What's included" for packages).
   Hidden until something with a description is picked; an emergency warning keeps its red styling. */
.q-cards > .detail-hint[data-hint-for]:empty, .q-cards > .detail-hint[id$="Hint"]:empty { display: none; }
.q-cards > .detail-hint[data-hint-for]:not(:empty):not(.detail-hint-emergency), .q-cards > .detail-hint[id$="Hint"]:not(:empty):not(.detail-hint-emergency) {
  margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-alt);
  border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; line-height: 1.5;
}
.detail-box-label { display: block; margin-bottom: 2px; font-size: 0.8rem; color: var(--text-strong); }

/* Switch rows: a short list - icon and question on the left, a segmented switch on the right. */
#detailsCard .detail-q.q-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; margin-bottom: 0; border-top: 1px solid var(--border);
}
#detailsCard .detail-q.q-row:not(:has(+ .detail-q.q-row:not([hidden]))) { border-bottom: 1px solid var(--border); margin-bottom: 22px; }
#detailsCard .detail-q > .row-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 0.98rem; font-weight: 500; color: var(--text-strong); }
.row-icon { display: inline-flex; color: var(--text-muted); }
.row-icon svg { width: 18px; height: 18px; }
#detailsCard .detail-q.q-row > .detail-hint { flex-basis: 100%; margin: 0; }
#detailsCard .detail-q.q-row > .detail-hint:empty { display: none; }
.seg-ctl { display: inline-flex; gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg-ctl .tp-slot { border: none; border-radius: 0; padding: 8px 16px; min-width: 70px; font-weight: 500; white-space: nowrap; }
.seg-ctl .tp-slot + .tp-slot { border-left: 1px solid var(--border-strong); }
.seg-ctl .tp-slot.sel { background: var(--accent-100); color: var(--accent-600); font-weight: 700; }

/* Chips: pick-all-that-apply. */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-slot.chip-pill { border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.tp-slot.chip-pill.sel { background: var(--accent-100); color: var(--accent-600); border-color: var(--brand); font-weight: 700; }

/* Bottom bar: the job as the shop will see it, and See shops. */
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.job-foot-text { min-width: 0; }
.job-foot-label { margin: 0; font-size: 0.86rem; color: var(--text-muted); }
.job-foot-value { margin: 2px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--text-strong); overflow-wrap: anywhere; }
.job-foot-value.muted { font-weight: 400; color: var(--text-muted); }
.job-foot-btn { flex: none; }
.job-foot + .detail-status { margin-top: 8px; }
@media (max-width: 520px) {
  .opt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #detailsCard .detail-q.q-row { flex-direction: column; align-items: flex-start; }
  .seg-ctl { width: 100%; }
  .seg-ctl .tp-slot { flex: 1; min-width: 0; padding: 8px 6px; white-space: normal; }
  .job-foot { flex-direction: column; align-items: stretch; }
}

/* ===========================================================
   Where and when (Mobile Services) - one address box that collapses to a confirmed line,
   parking chips, a day strip ending in "More dates", and a "Your appointment" line.
   The previous version is saved in snapshots/09-roadv37-before-where-when.
   =========================================================== */
.ww-section { margin-bottom: 22px; }
.ww-label { margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--text); }
.ww-n { color: var(--text-muted); }
.ww-sublabel { margin: 16px 0 8px; font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.ww-addr {
  position: relative; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); padding: 4px 4px 4px 12px;
}
.ww-addr:focus-within { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.ww-addr-icon svg { width: 18px; height: 18px; color: var(--text-muted); }
.ww-addr input { flex: 1; min-width: 0; border: none; box-shadow: none; background: transparent; padding: 8px 0; }
.ww-addr input:focus { box-shadow: none; outline: none; }
.ww-addr .btn { flex: none; white-space: nowrap; }
.ww-addr .suggest-list { left: 0; right: 0; top: calc(100% + 4px); }
.ww-manual { background: none; border: none; padding: 0; margin-top: 8px; font: inherit; font-size: 0.82rem; color: var(--link-color); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
#placeDetails { margin-top: 10px; }
.ww-place-done {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--green-100);
  border: 1px solid color-mix(in srgb, var(--green-600) 35%, transparent); color: var(--green-600); font-weight: 600;
}
.ww-place-text { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ww-place-text [data-icon] svg { width: 16px; height: 16px; }
.ww-place-done .btn { flex: none; }
/* The day strip with "More dates" as its last tile. */
.ww-days { display: flex; gap: 8px; align-items: stretch; }
.ww-days .tp-days { flex: 1; min-width: 0; margin: 0; }
.ww-days .when-advance-link {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  margin: 0; padding: 6px 12px; min-width: 74px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-strong); font-size: 0.78rem; font-weight: 600; text-decoration: none; text-align: center;
}
.ww-days .when-advance-link [data-icon] svg { width: 18px; height: 18px; }
.ww-days .when-advance-link.is-set { background: var(--accent-100); color: var(--accent-600); border-color: var(--brand); }
#whereWhenCard .tp-day.tp-any { min-width: 0; }
#apptFoot { margin-top: 18px; }
@media (max-width: 520px) {
  .ww-addr { flex-wrap: wrap; padding: 4px 4px 4px 12px; }
  .ww-addr .btn { width: 100%; margin-bottom: 4px; }
  .ww-days { flex-direction: column; }
  .ww-days .when-advance-link { flex-direction: row; min-width: 0; }
}

/* Little icons inside chips (parking spots). */
.chip-pill { display: inline-flex; align-items: center; gap: 6px; }
.chip-pill .chip-icon { display: inline-flex; color: var(--text-muted); }
.chip-pill .chip-icon svg { width: 16px; height: 16px; }
.chip-pill.sel .chip-icon { color: var(--accent-600); }

/* Compact "How it works" (Mobile Services): three small cards in one row, icon beside the text. */
.how-compact { padding: 4px 0 24px; }
.how-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.how-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.how-step .feature-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.how-step .feature-icon svg { width: 18px; height: 18px; }
.how-step h3 { margin: 0; font-size: 0.95rem; }
.how-step p { margin: 2px 0 0; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 620px) {
  .how-row { grid-template-columns: 1fr; gap: 8px; }
}
/* Keep each step's title on one line so the three cards line up. */
.how-step > div:last-child { min-width: 0; }
.how-step h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.how-step { gap: 10px; padding: 12px; }
/* Two-line descriptions: icon at the top, cards stay equal height. */
.how-step { align-items: flex-start; }
.how-step p { line-height: 1.4; }
/* Bullet checklists in the How it works cards. */
.how-step { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
.how-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.how-head .feature-icon { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.how-head .feature-icon svg { width: 16px; height: 16px; }
.how-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.how-list li { display: flex; align-items: flex-start; gap: 6px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.how-list li [data-icon] { flex: none; color: var(--green-600); margin-top: 2px; }
.how-list li [data-icon] svg { width: 13px; height: 13px; }

/* A shorter page header (Service Centers): smaller headline, less space above and below. */
.hero.hero-compact { padding: 40px 0 44px; }
.hero.hero-compact h1 { font-size: 2.05rem; margin-bottom: 10px; }
.hero.hero-compact p.lead { font-size: 1rem; margin-bottom: 0; }
@media (max-width: 620px) {
  .hero.hero-compact { padding: 28px 0 32px; }
  .hero.hero-compact h1 { font-size: 1.6rem; }
}

/* The logo mark and "Road" never shrink when the header gets crowded at desktop widths
   (before this, the menu links squeezed the logo down to a sliver). */
.nav-inner .brand { flex: none; }
.nav-inner .brand svg { flex: none; }
/* Laptop widths: slightly tighter menu links so logo, links and account buttons all fit on one row. */
@media (min-width: 1101px) and (max-width: 1320px) {
  .nav-links a { padding: 8px 10px; font-size: 0.88rem; }
  .nav-inner { gap: 10px; }
}

/* ===========================================================
   Shop reviews (details popups on Mobile Services and Service Centers) - public/js/shopReviews.js
   =========================================================== */
.shop-reviews { margin: 4px 0 16px; padding: 14px 0 0; border-top: 1px solid var(--border); }
.sr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sr-title { margin: 0; font-weight: 700; color: var(--text-strong); }
.sr-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sr-big { font-size: 1.6rem; font-weight: 800; color: var(--text-strong); line-height: 1; }
.sr-stars { color: #F5B400; letter-spacing: 1px; }
.sr-list { display: grid; gap: 10px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.sr-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-alt); }
.sr-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; }
.sr-date { margin-left: auto; color: var(--text-muted); font-size: 0.78rem; }
.sr-text { margin: 6px 0 0; font-size: 0.9rem; color: var(--text); white-space: pre-line; }

/* The "Leave a review" popup: big clickable stars. Sits above the details popup it was opened from. */
.review-backdrop { z-index: 300; }
.review-modal textarea { width: 100%; resize: vertical; font-family: inherit; }
.star-pick { display: flex; align-items: center; gap: 4px; }
.star-btn {
  background: none; border: none; padding: 0 2px; cursor: pointer; font-size: 2.1rem; line-height: 1;
  color: var(--border-strong); transition: color 0.1s, transform 0.1s;
}
.star-btn:hover { transform: scale(1.12); }
.star-btn.on { color: #F5B400; }
.star-btn:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; border-radius: 4px; }
.star-word { margin-left: 8px; font-weight: 600; color: var(--text-strong); }

/* Shops that aren't Road Partners: a Call button and a note instead of Request / Book. */
.not-on-road { display: grid; gap: 6px; }
.not-on-road-tag { display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 8px; }

/* Home page: the four "What are you here to do?" cards - four across, two by two on smaller screens. */
@media (max-width: 980px) { .landing-paths .landing-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .landing-paths .landing-four { gap: 14px; } }

/* Mobile Services page header: the three "how it works" steps and their details sit inside the header (in
   place of a separate section of cards below it), so the service picker starts higher on the page. Three
   columns with bullet points on a wide screen; on a phone each step is one row with its details run
   together on a line underneath. */
.hero.hero-compact.hero-with-steps { padding: 32px 0 26px; }
.hero-steps { list-style: none; margin: 18px auto 0; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: left; }
.hero-steps > li { padding: 10px 12px; border: 1px solid var(--border); border-top: 3px solid var(--step); border-radius: var(--radius-sm); background: var(--surface); }
/* Each step carries its own color (the same blue / amber / green tones the page's icons use). */
.hero-steps > .step-blue { --step: var(--tone-blue); }
.hero-steps > .step-amber { --step: var(--tone-amber); }
.hero-steps > .step-green { --step: var(--tone-green); }
.hero-step-head { display: flex; align-items: center; gap: 8px; color: var(--text-strong); font-size: 0.92rem; font-weight: 700; }
.hero-step-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; margin: 0; }
.hero-step-icon svg { width: 16px; height: 16px; }
.hero-step-num { color: var(--step); }
.hero-step-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.82rem; line-height: 1.4; color: var(--text-muted); }
.hero-step-list li { display: flex; gap: 6px; }
.hero-step-list li::before { content: "\2713"; color: var(--step); font-weight: 700; flex: none; }
@media (max-width: 620px) {
  .hero.hero-compact.hero-with-steps { padding: 22px 0 18px; }
  .hero-steps { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .hero-steps > li { padding: 8px 10px; }
  .hero-step-head { font-size: 0.88rem; }
  .hero-step-icon { width: 28px; height: 28px; }
  .hero-step-list { display: block; margin: 3px 0 0 36px; font-size: 0.78rem; }
  .hero-step-list li { display: inline; }
  .hero-step-list li::before { content: none; }
  .hero-step-list li:not(:last-child)::after { content: "\00b7"; margin: 0 5px; color: var(--step); font-weight: 700; }
}

/* Tire / wheel picker, compact: the car lies on its side (see carPickerHtml in mobileService.js), so the
   whole picker is about half as tall. Nothing is removed - the tip, all four wheels, the four quick-select
   buttons, the summary and the factory-size box are all still here. */
.car-picker, .tire-neat .car-picker { grid-template-columns: 270px minmax(0, 1fr); gap: 10px 24px; padding: 12px 16px; }
.car-svg { width: 270px; }
/* An invisible, larger area around each wheel so it is easy to tap with a finger. */
.car-wheel rect.car-hit, .car-wheel:hover rect.car-hit, .car-wheel.sel rect.car-hit, .car-wheel:focus-visible rect.car-hit { fill: transparent; stroke: none; }
.car-tip { margin-bottom: 6px; }
.car-summary { margin-top: 10px; }
@media (max-width: 560px) {
  .car-picker, .tire-neat .car-picker { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .car-svg { width: min(300px, 100%); }
  .car-picker .car-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .car-picker .car-quick .tp-slot { padding: 8px 2px; font-size: 0.8rem; }
  .car-side-label { margin-bottom: 6px; }
}

/* Oil Change, "What kind of oil?": the five choices as short cards (icon beside the text) - the three oil
   types on one row, then "High mileage" and "Not sure" sharing the second row, with no empty cell. */
[data-q-block="oil"] .opt-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
[data-q-block="oil"] .tp-slot.opt-card { grid-column: span 2; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 0; align-items: center; padding: 10px 12px; }
[data-q-block="oil"] .tp-slot.opt-card:nth-child(n+4) { grid-column: span 3; }
[data-q-block="oil"] .tp-slot.opt-card.sel { padding: 9px 11px; }
[data-q-block="oil"] .opt-card .opt-icon { grid-row: 1 / span 2; margin: 0; }
[data-q-block="oil"] .opt-card .opt-t, [data-q-block="oil"] .opt-card .opt-s { grid-column: 2; }
[data-q-block="oil"] .opt-card .opt-t { font-size: 0.95rem; }
[data-q-block="oil"] .opt-card .opt-s { font-size: 0.8rem; }
@media (max-width: 520px) {
  [data-q-block="oil"] .opt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-q-block="oil"] .tp-slot.opt-card, [data-q-block="oil"] .tp-slot.opt-card:nth-child(n+4) { grid-column: span 1; }
  [data-q-block="oil"] .tp-slot.opt-card:last-child { grid-column: span 2; }
}

/* Business setup (public/business/setup): the same header band and tone icons as Mobile Services.
   Each step's card takes that step's color along its top edge; step 1's fields sit in labeled groups. */
.hero.hero-compact.setup-hero { padding: 30px 0 24px; }
.setup-page { padding-top: 22px; }
.wizard-card { --step: var(--tone-blue); border-top: 3px solid var(--step); padding: 22px 24px; }
.wizard-card:has(.wizard-panel[data-step="2"]:not([hidden])) { --step: var(--tone-violet); }
.wizard-card:has(.wizard-panel[data-step="3"]:not([hidden])) { --step: var(--tone-teal); }
.wizard-card:has(.wizard-panel[data-step="4"]:not([hidden])) { --step: var(--tone-amber); }
.wizard-card:has(.wizard-panel[data-step="5"]:not([hidden])) { --step: var(--tone-green); }
.wizard-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wizard-head h3 { margin: 0; }
.wizard-head p { margin: 2px 0 0; }
.wizard-head .feature-icon { width: 40px; height: 40px; border-radius: 11px; }
.wizard-head .feature-icon svg { width: 20px; height: 20px; }
.setup-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 22px; padding: 16px 0 0; border-top: 1px solid var(--border); }
.setup-group-label { align-self: start; border-left: 3px solid var(--g); padding-left: 10px; }
.setup-group-title { margin: 0; font-size: 0.92rem; font-weight: 700; color: var(--text-strong); }
.setup-group-sub { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.setup-group.g-blue { --g: var(--tone-blue); }
.setup-group.g-green { --g: var(--tone-green); }
.setup-group.g-amber { --g: var(--tone-amber); }
.setup-group.g-violet { --g: var(--tone-violet); }
.setup-row-name { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; }
.setup-row-zip { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: end; }
.setup-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; padding-bottom: 10px; font-size: 0.82rem; color: var(--text-muted); }
.setup-hint svg { width: 15px; height: 15px; flex: none; color: var(--tone-amber); }
@media (max-width: 620px) {
  .wizard-card { padding: 18px 16px; }
  .setup-group { grid-template-columns: minmax(0, 1fr); }
  .setup-group-label { margin-bottom: 10px; }
  .setup-row-zip { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .setup-hint { margin-top: -8px; padding-bottom: 0; }
}

/* Business setup step 1: the three "what does your business do" cards, and the details blocks they switch on. */
.kind-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kind-card { position: relative; cursor: pointer; }
.kind-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-card-body {
  display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--input-bg);
  transition: border-color 0.15s, background 0.15s;
}
.kind-card-body .feature-icon { width: 36px; height: 36px; border-radius: 10px; }
.kind-card-body .feature-icon svg { width: 18px; height: 18px; }
.kind-card-body b { display: block; color: var(--text-strong); font-size: 0.95rem; }
.kind-card-body small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.82rem; line-height: 1.35; }
.kind-card:hover .kind-card-body { border-color: var(--text-muted); }
.kind-card input:checked + .kind-card-body { border: 2px solid var(--brand); padding: 13px; background: var(--accent-100); }
.kind-card input:focus-visible + .kind-card-body { box-shadow: 0 0 0 3px var(--accent-100); }
.setup-group[hidden], .setup-sub[hidden] { display: none; }
.setup-group.g-teal { --g: var(--tone-teal); }
/* Usual hours: hour (1-12) and AM/PM for the start, then the same for the end. */
.setup-row-hours { display: grid; grid-template-columns: minmax(0, 92px) minmax(0, 78px) auto minmax(0, 92px) minmax(0, 78px); justify-content: start; gap: 8px; align-items: center; }
.field.has-error input, .field.has-error textarea, .field.has-error select, .field.has-error .multi-select-btn { border-color: var(--red-600); }
.field-error { margin: 6px 0 0; font-size: 0.84rem; color: var(--red-600); }
.wizard-steps .step.skipped { opacity: 0.45; cursor: default; }
@media (max-width: 620px) {
  .kind-cards { grid-template-columns: minmax(0, 1fr); }
}
.kind-card input:checked + .kind-card-body { border-color: var(--tone-blue); }
.kind-card input:checked + .kind-card-body::after {
  content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700;
  background: var(--tone-blue); color: var(--bg);
}
.kind-card-body { padding-right: 34px; }
.kind-card input:checked + .kind-card-body { padding-right: 33px; }
/* Business setup: city and state share a row above the zip code (dealerships and service shops). */
.setup-row-city { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; }
.setup-row-city[hidden] { display: none; }
.setup-row-city input[name="state"] { text-transform: uppercase; }
/* Business setup: "Up to [ 25 ] miles" - the mobile travel range a business types in. */
.setup-row-range { display: flex; align-items: center; gap: 10px; }
.setup-row-range input { width: 110px; }
/* Business setup: tighter chips and spacing inside the question groups, so a block like Mobile service stays short. */
.setup-group .type-picker { gap: 6px; }
.setup-group .type-chip span { padding: 6px 12px; font-size: 0.84rem; }
.setup-group .field { margin-bottom: 12px; }
.setup-group .field-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.setup-row-range { gap: 8px; }
.setup-row-range span { white-space: nowrap; }
.setup-row-range input { width: 72px; }

/* "How Road sorts cars" (public/vehicle-classes) - see vehicleClassesPage.js. */
.vc-result { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-100); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); }
.vc-result-cat { margin: 0 0 2px; font-size: 1.1rem; font-weight: 800; color: var(--text-strong); }
.vc-unsure { margin-top: 6px; color: var(--amber-600); }
.vc-examples { gap: 6px; }
.vc-rules { margin: 0; padding: 0; list-style: none; counter-reset: vc; }
.vc-rules li { counter-increment: vc; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.vc-rules li::before { content: counter(vc); width: 22px; height: 22px; border-radius: 50%; background: var(--surface-alt-2); color: var(--text-muted); font-size: 0.74rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vc-list-block { padding: 14px 0; border-top: 1px solid var(--border); }
.vc-list-block:last-child { padding-bottom: 0; }
.vc-list { margin: 0; padding-left: 18px; font-size: 0.88rem; line-height: 1.6; columns: 2; column-gap: 28px; }
@media (max-width: 620px) {
  .vc-rules li { grid-template-columns: 24px minmax(0, 1fr); }
  .vc-rules li .badge { grid-column: 2; justify-self: start; }
  .vc-list { columns: 1; }
}

/* Business setup: "What kind of cars do you work on?" - one row per category. Each has its icon, name,
   what qualifies in a line or two, and the makes or cars it names as small tags. */
.class-options { display: grid; gap: 8px; }
.class-option { position: relative; display: block; cursor: pointer; }
.class-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.class-option-body {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 42px 12px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--input-bg);
  transition: border-color 0.15s, background 0.15s;
}
.class-option-body .feature-icon { width: 34px; height: 34px; border-radius: 10px; }
.class-option-body .feature-icon svg { width: 18px; height: 18px; }
.class-option-text { display: grid; gap: 5px; }
.class-option-text b { font-size: 0.95rem; line-height: 1.3; color: var(--text-strong); }
.class-point { font-size: 0.84rem; line-height: 1.4; color: var(--text); }
.class-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.class-tag { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-alt-2); font-size: 0.74rem; line-height: 1.5; color: var(--text-muted); white-space: nowrap; }
.class-tag-more { border-style: dashed; background: transparent; }
.class-option:hover .class-option-body { border-color: var(--text-muted); }
.class-option input:checked + .class-option-body { border-color: var(--tone-blue); background: var(--accent-100); }
.class-option input:checked + .class-option-body::after {
  content: '✓'; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 700;
  background: var(--tone-blue); color: var(--bg);
}
.class-option input:not(:checked) + .class-option-body::after {
  content: ''; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); box-sizing: border-box;
}
.class-option input:focus-visible + .class-option-body { box-shadow: 0 0 0 3px var(--accent-100); }
/* A group whose questions need the card's full width: its label sits above instead of beside, and the
   car categories go two to a row on a wide screen. */
.setup-group.setup-group-wide { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
@media (min-width: 700px) {
  .setup-group-wide .class-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-group-wide .class-option-body { height: 100%; }
}

/* Business setup pricing: a question priced per kind of car - its name, then one range per kind. */
.price-by-kind { padding: 10px 0 6px; }
.price-by-kind + .price-by-kind, .price-row + .price-by-kind { border-top: 1px dashed var(--border); }
.price-by-kind-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.price-copy { background: none; border: none; padding: 0; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.price-row.price-row-kind { padding: 4px 0; flex-wrap: nowrap; }
.price-kind-name { flex: 1; min-width: 0; padding-left: 12px; border-left: 2px solid var(--border-strong); font-size: 0.86rem; color: var(--text-muted); }
@media (max-width: 520px) {
  .price-row.price-row-kind { flex-wrap: wrap; }
  .price-kind-name { flex-basis: 100%; }
}

/* Business setup pricing: a full price sheet - a block per customer question, as a grid (one column per
   kind of car) or a list of prices. Reuses .price-grid / .price-cell from the Services page. */
.sheet-block { padding: 10px 0; }
.sheet-block + .sheet-block { border-top: 1px dashed var(--border); }
.sheet-q { margin: 0 0 2px; font-size: 0.92rem; font-weight: 700; color: var(--text-strong); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.88rem; }
.sheet-block .price-grid th { white-space: nowrap; }

/* "Report a problem" - the button at the bottom of every page (shell.js) and its form (public/report-problem). */
.footer-report { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md); background: rgba(255,255,255,0.04); font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.footer-report + .footer-bottom { margin-top: 18px; }
.site-footer a.footer-report-btn { color: #fff; border: 1px solid rgba(255,255,255,0.4); background: transparent; font-weight: 600; }
.site-footer a.footer-report-btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.report-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Business setup pricing: one tab per service the business offers; the panel under it is that service's prices. */
.price-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.price-tab-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--green-100); color: var(--green-600); font-size: 0.72rem; font-weight: 700; line-height: 18px; text-align: center; }
.price-tab-count:empty { display: none; }
.price-panel[hidden] { display: none; }
.pricing-section.price-panel { border-top: none; padding-top: 0; }

/* Business setup contacts: a tick-box line ("Reach me on the business phone and email above"). */
.check-line { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.check-line input { width: auto; margin: 0; accent-color: var(--accent-600); }
[data-theme="dark"] .check-line input { accent-color: var(--text-strong); }
/* Business setup contacts: the optional second contact opens under the first, from the button below it. */
#secondAdd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.contact-extra { margin: 4px 0 12px; padding: 12px 14px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-alt); }
.contact-extra[hidden] { display: none; }
.contact-extra-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#secondAdd[hidden] { display: none; }

/* Business setup: each slide's heading is centered - icon on top, then the title and its line. */
#businessForm .wizard-head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }

/* ============ Business setup (public/business/setup): the application a new business fills in ============ */
.bs { --bs-grad: linear-gradient(135deg, #3A6FD8 0%, #6C8DF0 50%, #8E7BE8 100%); --bs-ring: color-mix(in srgb, var(--brand) 45%, transparent); }
.bs-top { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); padding: 26px 0 22px;
  background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%),
              radial-gradient(60% 140% at 100% 0%, color-mix(in srgb, #8E7BE8 22%, transparent), transparent 60%), var(--bg); }
.bs-top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bs-eyebrow { margin: 0 0 4px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone-blue); }
.bs-top h1 { margin: 0; font-size: 1.75rem; letter-spacing: -0.01em; }
.bs-top p.sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.95rem; }
.bs-progress { min-width: 220px; }
.bs-progress-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.bs-progress-row b { color: var(--text-strong); }
.bs-bar { height: 8px; border-radius: 999px; background: var(--surface-alt-2); overflow: hidden; }
.bs-bar span { display: block; height: 100%; width: 20%; border-radius: 999px; background: var(--bs-grad); }

.bs-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 0 40px; }
.bs-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.bs-steps { list-style: none; margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.bs-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 8px; border-radius: 12px; }
.bs-steps li + li::before { content: ''; position: absolute; left: 24px; top: -10px; height: 20px; width: 2px; background: var(--border-strong); }
.bs-steps .n { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.86rem;
  background: var(--surface-alt-2); color: var(--text-muted); position: relative; z-index: 1; }
.bs-steps b { display: block; font-size: 0.92rem; color: var(--text-muted); }
.bs-steps small { display: block; font-size: 0.78rem; color: var(--text-faint); margin-top: 1px; }
.bs-steps li.current { background: var(--accent-100); }
.bs-steps li.current .n { background: var(--bs-grad); color: #fff; box-shadow: 0 0 0 4px var(--bs-ring); }
.bs-steps li.current b { color: var(--text-strong); }
.bs-steps li.current small { color: var(--text-muted); }


.bs-card { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.bs-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bs-tile { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.bs-tile svg { width: 21px; height: 21px; }
.bs-card-head h2 { margin: 0; font-size: 1.12rem; }
.bs-card-head p { margin: 2px 0 0; font-size: 0.86rem; color: var(--text-muted); }

.bs-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bs-kind { position: relative; text-align: left; cursor: pointer; padding: 18px 16px 16px; border-radius: 18px; border: 1.5px solid var(--border-strong); background: var(--input-bg);
  color: inherit; font: inherit; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.bs-kind:hover { transform: translateY(-2px); border-color: var(--text-muted); box-shadow: var(--shadow-md); }
.bs-kind .bs-tile { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 12px; }
.bs-kind .bs-tile svg { width: 26px; height: 26px; }
.bs-kind b { display: block; font-size: 1.02rem; color: var(--text-strong); }
.bs-kind span.d { display: block; margin-top: 3px; font-size: 0.84rem; color: var(--text-muted); line-height: 1.4; }
.bs-kind .tick { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: transparent; font-size: 0.8rem; font-weight: 800; }
.bs-pick input:checked + .bs-kind { border-color: var(--k); background: color-mix(in srgb, var(--k) 9%, var(--input-bg)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 18%, transparent); }
.bs-pick input:checked + .bs-kind .tick { background: var(--k); border-color: var(--k); color: var(--bg); }
.bs-kind.sell { --k: var(--tone-violet); } .bs-kind.shop { --k: var(--tone-teal); } .bs-kind.mobile { --k: var(--tone-green); }

.bs-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.bs-field > label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.bs-field > label em { font-style: normal; font-weight: 400; color: var(--text-faint); }
.bs-input { position: relative; }
.bs-input > [data-icon], .bs-input > .g { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; color: var(--text-muted); pointer-events: none; }
.bs-input > [data-icon]:not(.g) svg { width: 18px; height: 18px; }
.bs-input input, .bs-field textarea { width: 100%; padding: 13px 14px; border-radius: 12px; font-size: 0.96rem; }
.bs-input.icon input { padding-left: 40px; }
.bs-field textarea { min-height: 92px; resize: vertical; }
.bs-help { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-faint); display: flex; justify-content: space-between; gap: 10px; }
.bs-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.bs-social .wide { grid-column: 1 / -1; }
.bs-social .g { width: 26px; height: 26px; left: 8px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
.bs-social .g svg { width: 15px; height: 15px; }
.bs-social .bs-input input { padding-left: 44px; }

.bs-step[hidden] { display: none; }
.bs-steps li { cursor: pointer; transition: background 0.15s; }
.bs-steps li:not(.current):hover { background: var(--surface-alt); }
.bs-steps li.done .n { background: var(--green-100); color: var(--green-600); }
.bs-steps li.done b { color: var(--text); }
.bs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--input-bg); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.bs-chip svg { width: 16px; height: 16px; }
.bs-chip:hover { border-color: var(--text-muted); }
.bs-pick input:checked + .bs-chip { border-color: transparent; background: var(--bs-grad); color: #fff; box-shadow: 0 6px 16px -8px var(--brand); }
/* Seven services: four across, then three across, so both rows run edge to edge. */
.bs-services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.bs-services > .bs-pick { grid-column: span 3; }
.bs-svc { display: grid; height: 100%; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 10px 12px; text-align: left; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--input-bg); color: inherit; font: inherit; cursor: pointer; transition: all 0.15s; }
.bs-services > .bs-pick:nth-child(n+5) { grid-column: span 4; }
.bs-svc:hover { border-color: var(--text-muted); }
.bs-svc-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-alt-2); color: var(--text-muted); }
.bs-svc-icon svg { width: 18px; height: 18px; }
.bs-svc b { font-size: 0.9rem; line-height: 1.25; color: var(--text-strong); }
.bs-svc i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.7rem; font-weight: 800; color: transparent; }
.bs-pick input:checked + .bs-svc { border-color: var(--tone-blue); background: var(--accent-100); }
.bs-pick input:checked + .bs-svc .bs-svc-icon { background: var(--tone-blue); color: var(--bg); }
.bs-pick input:checked + .bs-svc i { background: var(--tone-blue); border-color: var(--tone-blue); color: var(--bg); }
.bs-kind { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 46px 14px 14px; }
.bs-kind .bs-tile { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 0; }
.bs-kind .bs-tile svg { width: 23px; height: 23px; }
.bs-kind b { align-self: end; }
.bs-kind span.d { align-self: start; margin-top: 1px; }
.bs-kind .tick { top: 50%; transform: translateY(-50%); }
.bs-sub.spaced { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.bs-input select { width: 100%; padding: 13px 14px; border-radius: 12px; font-size: 0.96rem; }
.bs-loc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.bs-loc .c6 { grid-column: span 6; } .bs-loc .c4 { grid-column: span 4; } .bs-loc .c2 { grid-column: span 2; }
.bs-loc [hidden] { display: none; }
.bs-loc .c8 { grid-column: span 8; } .bs-loc .c7 { grid-column: span 7; } .bs-loc .c1 { grid-column: span 1; }
/* The town a ZIP code belongs to, shown beside the box once all five digits are in. */
.bs-town { display: flex; align-items: center; gap: 7px; align-self: end; min-height: 48px; margin: 0; font-size: 0.94rem; font-weight: 600; color: var(--text-strong); }
.bs-town.ok::before { content: '\2713'; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-600); font-size: 0.72rem; font-weight: 800; }
.bs-town.wait { color: var(--text-muted); font-weight: 400; }
.bs-town.bad { color: var(--tone-red); }
.bs-areas-label { margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.bs-areas-label[hidden] { display: none; }
.bs-zip-row { margin-bottom: 10px; align-items: center; }
.bs-zip-row .bs-town { align-self: center; }
.bs-zip-x { justify-self: end; width: 34px; height: 34px; padding: 0; border: none; border-radius: 10px; background: transparent; color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bs-zip-x:hover { background: var(--surface-alt-2); color: var(--text-strong); }
/* One question per row: the question on the left, its answers on the right. */
.bs-asks { margin: -4px 0 -13px; }
.bs-asks > .bs-field.bs-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; margin-top: 0; padding: 13px 0; }
/* A line above every row except the first one showing (rows are hidden by kind of business). */
.bs-asks > .bs-ask:not([hidden]) ~ .bs-ask { border-top: 1px solid var(--border); }
.bs-asks > .bs-field.bs-ask[hidden] { display: none; }
.bs-ask-q label { display: block; margin: 0; }
.bs-ask-q em { font-style: normal; font-weight: 400; color: var(--text-faint); }
.bs-ask .bs-input { width: 380px; max-width: 100%; }
.bs-ask-q b { display: block; font-size: 0.94rem; font-weight: 600; color: var(--text-strong); }
.bs-ask-q small { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }
.bs-ask .bs-chips { justify-content: flex-end; flex-wrap: nowrap; }
.bs-ask .field-error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 700px) {
  .bs-asks > .bs-field.bs-ask { grid-template-columns: minmax(0, 1fr); }
  .bs-ask .bs-chips { justify-content: flex-start; flex-wrap: wrap; }
  .bs-ask .bs-input { width: 100%; }
}
.bs-grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bs-inline { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.92rem; }
.bs-inline select { width: auto; padding: 12px 34px 12px 12px; border-radius: 12px; }
.bs-sub { margin: 0 0 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.bs-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bs-sub-row .bs-sub { margin: 0; }
.bs-always { display: inline-flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 700; color: var(--text); cursor: pointer; }
.bs-always-note { margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--tone-blue); background: var(--accent-100); color: var(--text-strong); font-size: 0.9rem; }
.bs-always-note[hidden] { display: none; }
.bs-switch { position: relative; flex: none; display: inline-flex; cursor: pointer; }
.bs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-switch span { position: relative; display: block; width: 36px; height: 22px; border-radius: 999px; background: var(--surface-alt-2); transition: background 0.15s; }
.bs-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); transition: transform 0.15s, background 0.15s; }
.bs-switch input:checked + span { background: var(--tone-blue); }
.bs-switch input:checked + span::after { transform: translateX(14px); background: #fff; }
.bs-switch input:focus-visible + span { outline: 2px solid var(--tone-blue); outline-offset: 2px; }
/* Working hours down the left, service area on the right; stacked when the card is narrow. */
.bs-hours-card { container-type: inline-size; }
.bs-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@container (max-width: 720px) { .bs-split { grid-template-columns: minmax(0, 1fr); } }
.bs-sched { border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; }
.bs-day { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 46px; padding: 5px 10px 5px 14px; background: var(--input-bg); }
.bs-day + .bs-day { border-top: 1px solid var(--border); }
.bs-day:not(.on) { background: var(--surface-alt); }
.bs-day b { font-size: 0.92rem; color: var(--text-muted); font-weight: 600; }
.bs-day.on b { color: var(--text-strong); }
.bs-day-times { display: none; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.86rem; }
.bs-hours-same select { width: 112px; padding: 6px 2px 6px 10px; border-radius: 9px; font-size: 0.88rem; }
.bs-day-times select { width: 98px; padding: 6px 0 6px 8px; border-radius: 9px; font-size: 0.86rem; }
.bs-day-times span { padding: 0 2px; }
.bs-day b { white-space: nowrap; }
.bs-day-closed { padding-right: 8px; font-size: 0.86rem; color: var(--text-muted); }
/* On a working day: the shared hours as text, or - with "different hours on some days" - its own two times. */
.bs-day-same { display: none; padding-right: 8px; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.bs-day.on:not(.per-day) .bs-day-same { display: block; }
.bs-day.on.per-day .bs-day-times { display: flex; }
.bs-day.on .bs-day-closed { display: none; }
/* The hours every working day shares, across the top of the week. */
.bs-hours-same { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border-strong); background: var(--accent-100); font-size: 0.88rem; font-weight: 700; color: var(--text-strong); }
.bs-hours-same[hidden] { display: none; }
.bs-hours-same span:not(:first-child) { font-weight: 400; color: var(--text-muted); }
.bs-hours-same span:first-child { margin-right: auto; }
.bs-perday-btn { margin-top: 10px; }
.bs-panel { display: grid; gap: 18px; padding: 16px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--input-bg); }
.bs-hint { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--text-muted); }
.bs-classes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bs-class { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--input-bg); color: inherit; font: inherit; cursor: pointer; transition: all 0.15s; }
.bs-classes > .bs-pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bs-class b { display: block; color: var(--text-strong); font-size: 0.94rem; }
.bs-class small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 0.78rem; line-height: 1.4; }
.bs-class i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.74rem; font-weight: 800; color: transparent; }
.bs-pick input:checked + .bs-class { border-color: var(--tone-blue); background: var(--accent-100); }
.bs-pick input:checked + .bs-class i { background: var(--tone-blue); border-color: var(--tone-blue); color: var(--bg); }
.bs-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 14px; background: var(--surface-alt); margin-bottom: 18px; }
.bs-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: none; border-radius: 10px; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.bs-tabs button.on { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); }
.bs-tabs i { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--green-100); color: var(--green-600); font-style: normal; font-size: 0.72rem; line-height: 20px; }
.bs-q { padding: 16px 0; border-top: 1px solid var(--border); }
.bs-q:first-of-type { border-top: none; padding-top: 0; }
.bs-q h3 { margin: 0; font-size: 0.98rem; }
.bs-q > p { margin: 3px 0 12px; font-size: 0.84rem; color: var(--text-muted); }
.bs-table { overflow-x: auto; }
.bs-table table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 0.9rem; }
.bs-table th { text-align: left; padding: 0 8px 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.bs-table td { padding: 8px; background: var(--surface-alt); }
.bs-table td:first-child { border-radius: 12px 0 0 12px; padding-left: 14px; font-weight: 600; }
.bs-table td:last-child { border-radius: 0 12px 12px 0; }
.bs-money { position: relative; display: inline-block; }
.bs-money::before { content: '$'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }
.bs-money.plain::before { content: ''; }
.bs-money input { width: 104px; padding: 9px 10px 9px 24px; border-radius: 10px; text-align: right; font-size: 0.94rem; }
.bs-rows { display: grid; gap: 6px; }
.bs-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--surface-alt); font-size: 0.9rem; font-weight: 600; }
.bs-ghost { padding: 11px 16px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.bs-ghost:hover { border-color: var(--text-muted); background: var(--surface-alt); }
.bs-ghost[hidden] { display: none; }
.bs-summary { display: grid; gap: 10px; }
.bs-summary > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-alt); }
.bs-summary b { color: var(--text-strong); }
.bs-summary p { margin: 2px 0 0; font-size: 0.86rem; color: var(--text-muted); }
.bs-summary button { border: none; background: none; color: var(--tone-blue); font: inherit; font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.bs-after { background: color-mix(in srgb, var(--tone-violet) 7%, var(--surface)); }
.bs-actions { position: sticky; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border: 1px solid var(--border-strong); border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.bs-dots { display: flex; gap: 6px; margin-right: auto; align-items: center; font-size: 0.84rem; color: var(--text-muted); }
.bs-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.bs-dots i.on { width: 22px; border-radius: 999px; background: var(--bs-grad); }
.bs-next { border: none; cursor: pointer; padding: 13px 22px; border-radius: 13px; font: inherit; font-weight: 700; color: #fff; background: var(--bs-grad); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 22px -8px var(--brand); }
.bs-next:hover { filter: brightness(1.08); }
.bs-next svg { width: 16px; height: 16px; }

@media (max-width: 940px) {
  .bs-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .bs-side { position: static; }
  .bs-steps { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
  .bs-steps li { grid-template-columns: 28px auto; gap: 8px; padding: 6px 10px; flex: none; align-items: center; }
  .bs-steps li + li::before { display: none; }
  .bs-steps .n { width: 28px; height: 28px; font-size: 0.78rem; }
  .bs-steps small { display: none; }
  .bs-steps li:not(.current) b { display: none; }
  .bs-kinds, .bs-grid, .bs-grid.even, .bs-social, .bs-classes { grid-template-columns: minmax(0, 1fr); }
  .bs-dots span { display: none; }
  .bs-services > .bs-pick, .bs-services > .bs-pick:nth-child(n+5) { grid-column: span 6; }
  .bs-services > .bs-pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bs-money input { width: 84px; }
  .bs-card { padding: 18px 16px; border-radius: 16px; }
  .bs-top h1 { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .bs-day { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bs-day.per-day { grid-template-columns: auto minmax(0, 1fr); padding-bottom: 8px; }
  .bs-day-times { grid-column: 1 / -1; }
  .bs-day-closed { text-align: right; }
  .bs-loc .c6 { grid-column: 1 / -1; }
  .bs-loc .c4, .bs-loc .c2, .bs-loc .c8 { grid-column: span 6; }
  .bs-loc .c7 { grid-column: span 4; }
  .bs-loc .c1 { grid-column: span 2; }
}

/* A choice is a real checkbox or radio inside a label; the label's visible part follows it. */
.bs-pick { position: relative; display: block; margin: 0; cursor: pointer; }
.bs-chips > .bs-pick { display: inline-flex; }
.bs-pick > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bs-pick > input:focus-visible + * { outline: 2px solid var(--tone-blue); outline-offset: 2px; }
.bs-kind, .bs-class { height: 100%; }
.bs-kind:hover { transform: none; }
.bs-class { align-items: start; }
.bs-class .bs-class-text { display: grid; gap: 4px; }
.bs-steps li.skipped { display: none; }
.bs-steps li:not(.reachable):not(.current) { cursor: default; }
.bs-steps li:not(.reachable):not(.current):hover { background: transparent; }
.bs-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bs-field.has-error input, .bs-field.has-error textarea, .bs-field.has-error select { border-color: var(--red-600); }
.bs-field.has-error .bs-kind, .bs-field.has-error .bs-svc, .bs-field.has-error .bs-class, .bs-field.has-error .bs-chip, .bs-field.has-error .bs-sched { border-color: var(--red-600); }
.bs-field[hidden], .bs-card[hidden], .bs-areas[hidden], .bs-sched-wrap[hidden] { display: none; }
.bs-field + .bs-field, .bs-grid + .bs-field, .bs-field + .bs-grid, .bs-grid + .bs-grid { margin-top: 16px; }
.bs-grid > .bs-field + .bs-field, .bs-loc > .bs-field + .bs-field, .bs-social > .bs-field + .bs-field, .bs-panel > .bs-field + .bs-field { margin-top: 0; }
.bs-areas { margin-top: 14px; }
/* Beside the ZIP box: the town it belongs to, then the button for adding more ZIP codes. */
.bs-zip-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: end; min-height: 48px; }
.bs-zip-side .bs-town { min-height: 0; align-self: center; }
.bs-zip-side .bs-town[hidden] { display: none; }
.bs-zip-side .bs-ghost { margin-left: auto; white-space: nowrap; }
.bs-loc.place .bs-zip-side { grid-column: 1 / -1; min-height: 0; }
.bs-loc.place .bs-zip-side .bs-ghost { margin-left: 0; }
@media (max-width: 700px) {
  .bs-loc .bs-zip-side { grid-column: 1 / -1; min-height: 0; flex-wrap: wrap; }
  .bs-zip-side .bs-ghost { margin-left: 0; }
}
.bs-lead { margin: 0 0 14px; font-size: 0.86rem; color: var(--text-muted); }
.bs-field > label.bs-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.9rem; font-weight: 400; cursor: pointer; }
.bs-check input { flex: none; width: auto; margin: 0; }
.bs-extra { margin-top: 16px; padding: 16px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--input-bg); }
.bs-extra[hidden] { display: none; }
.bs-extra-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bs-extra-head .bs-sub { margin: 0; }
.bs-text-btn { padding: 2px; border: none; background: none; color: var(--tone-blue); font: inherit; font-weight: 700; font-size: 0.86rem; cursor: pointer; }
.bs-text-btn:hover { text-decoration: underline; }
.bs-money[data-unit]::after { content: attr(data-unit); position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.82rem; pointer-events: none; }
.bs-money[data-unit] input { padding-right: 28px; }
.bs-range { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.86rem; }
.bs-range .bs-money input { width: 92px; }
.bs-rows > div { flex-wrap: wrap; }
.bs-rows > div > span:first-child small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--text-muted); }
.bs-q-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bs-tabs i:empty { display: none; }
.bs-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bs-plan { padding: 16px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--input-bg); cursor: pointer; transition: all 0.15s; }
.bs-plan:hover { border-color: var(--text-muted); }
.bs-plan h3 { margin: 0 0 2px; font-size: 1rem; }
.bs-plan .price { margin: 0 0 8px; font-weight: 800; color: var(--text-strong); }
.bs-plan ul { margin: 0; padding-left: 18px; font-size: 0.84rem; color: var(--text-muted); display: grid; gap: 3px; }
.bs-plan.selected { border-color: var(--tone-blue); background: var(--accent-100); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone-blue) 16%, transparent); }
.bs-summary > div { align-items: start; }
.bs-summary p span { color: var(--text-faint); }
.bs-actions .bs-ghost[hidden], .bs-next[hidden] { display: none; }
.bs-note { margin-bottom: 16px; }
@media (max-width: 940px) { .bs-plans { grid-template-columns: minmax(0, 1fr); } }

/* Business Services page (/business/listings) - built from the setup wizard's cards, tiles and price tables. */
.sv-page { max-width: 900px; }
.sv-grow { flex: 1; min-width: 0; }
.sv-page .bs-card-head { align-items: flex-start; }
.sv-visible { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; background: var(--surface-alt); }
.sv-visible b { display: block; font-size: 0.92rem; color: var(--text-strong); }
.sv-visible small { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--text-muted); }
.sv-note { margin: 12px 0 0; font-size: 0.84rem; color: var(--text-muted); }
.sv-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sv-svc-text { display: grid; gap: 2px; min-width: 0; }
.sv-svc-text small { font-size: 0.76rem; font-weight: 600; line-height: 1.3; }
.sv-svc-text small:empty { display: none; }
.sv-st-ok { color: var(--green-600); }
.sv-st-warn { color: var(--tone-amber, #b7791f); }
.sv-st-muted { color: var(--text-muted); }
.sv-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.sv-copy { display: block; margin-top: 2px; font-size: 0.74rem; font-weight: 600; }
#kindChips { margin-bottom: 4px; }
@media (max-width: 620px) {
  .sv-services { grid-template-columns: minmax(0, 1fr); }
  .sv-actions .btn { width: 100%; }
}

/* ---------- Business header (shell.js): tab counts, avatar menu, phone bottom bar ---------- */
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--red-600); color: #fff; font-size: 0.68rem; font-weight: 800; line-height: 1; }
.nav-count[hidden] { display: none; }
.biz-menu { position: relative; flex: none; }
.biz-menu-btn { width: 46px; height: 46px; }
.biz-menu-btn .account-avatar-icon svg { width: 30px; height: 30px; }
.biz-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 250px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
.biz-menu-head { display: grid; gap: 6px; justify-items: start; padding: 8px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.biz-menu-head strong { font-size: 0.95rem; color: var(--text-strong); }
.biz-menu-panel a, .biz-menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: none; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 0.92rem; font-weight: 600; text-align: left; cursor: pointer; }
.biz-menu-panel a:hover, .biz-menu-panel button:hover { background: var(--surface-alt-2); color: var(--text-strong); }
.biz-menu-panel svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.biz-menu-panel a[hidden] { display: none; }
.biz-bottom-bar { display: none; }
@media (max-width: 1100px) {
  /* A business keeps its avatar menu in the header, and its tabs move to the bottom bar - no menu button. */
  .is-business .nav-toggle, .is-business .nav-links { display: none !important; }
  .is-business #navRight { display: flex; }
  .biz-bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06); }
  .biz-bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--text-muted); font-size: 0.66rem; font-weight: 700; text-align: center; min-width: 0; white-space: nowrap; }
  .biz-bottom-bar a.active { color: var(--tone-blue); background: var(--accent-100); }
  .biz-bb-icon { position: relative; display: inline-flex; }
  .biz-bb-icon svg { width: 22px; height: 22px; }
  .biz-bb-icon .nav-count { position: absolute; top: -6px; right: -12px; }
  body.has-biz-bar { padding-bottom: 76px; }
}

/* Business Home (/business/dashboard, businessHome.js): what needs doing, the week, and a setup checklist. */
.bh-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bh-grid .bs-card { margin-bottom: 0; }
.bh-side { display: grid; gap: 18px; }
.bh-rows, .bh-checks { display: grid; gap: 8px; }
.bh-row, .bh-check-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-alt); color: inherit; }
a.bh-row:hover, a.bh-check-row:hover { background: var(--surface-alt-2); }
.bh-row-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.bh-row-text strong { font-size: 0.92rem; color: var(--text-strong); }
.bh-row-text small { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; }
.bh-more { display: inline-block; margin-top: 14px; font-size: 0.88rem; font-weight: 700; }
.bh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bh-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-alt); }
.bh-stat strong { font-size: 1.5rem; line-height: 1.1; color: var(--text-strong); }
.bh-stat span { font-size: 0.8rem; color: var(--text-muted); }
.bh-progress { height: 8px; margin-bottom: 12px; border-radius: 999px; background: var(--surface-alt-2); overflow: hidden; }
.bh-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.bh-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; }
.bh-check.done { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.bh-check-row.is-done strong { font-weight: 600; color: var(--text-muted); }
.bh-go { flex: none; display: inline-flex; color: var(--text-muted); }
.bh-go svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .bh-grid { grid-template-columns: minmax(0, 1fr); } }

/* A business account looking at the customer side (shell.js showCustomerPreviewBar). */
.biz-preview-bar { border-bottom: 1px solid var(--border); background: var(--accent-100); color: var(--text-strong); }
.biz-preview-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; font-size: 0.88rem; }
.biz-preview-inner > span { display: flex; align-items: center; gap: 10px; }
.biz-preview-inner svg { width: 18px; height: 18px; flex: none; color: var(--tone-blue); }
.biz-preview-inner .btn { flex: none; }
@media (max-width: 620px) { .biz-preview-inner { flex-direction: column; align-items: stretch; } }
.sv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.sv-foot .sv-note { margin: 0; }
/* "Log out" in the business footer: a button that looks like the footer's links. */
.footer-link-btn { padding: 0; border: none; background: none; color: rgba(255,255,255,0.65); font: inherit; cursor: pointer; }
.footer-link-btn:hover { color: #fff; text-decoration: underline; }

/* A Road Partner's logo (or initials until it uploads one) - shell.js shopMarkHtml(). Always a rounded square
   on a light tile, so wide or oddly shaped logos still look neat. */
.shop-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.shop-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-mark-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 0.72rem; }
.shop-mark-md { width: 46px; height: 46px; border-radius: 12px; font-size: 0.95rem; }
.shop-mark-lg { width: 68px; height: 68px; border-radius: 16px; font-size: 1.3rem; }
.shop-mark-initials { background: var(--accent-100); color: var(--accent-600); font-weight: 800; letter-spacing: 0.02em; }
.modal-header .shop-mark, .shop-mark-title .shop-mark { margin-right: 12px; }
.shop-mark-title { display: flex; align-items: center; min-width: 0; }
/* The logo on the business side: the avatar button and the Home banner. */
.biz-menu-btn .account-avatar-icon.has-mark .shop-mark { width: 34px; height: 34px; border-radius: 10px; }
.biz-menu-btn:has(.has-mark) { border: none; }
.biz-menu-head { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.biz-menu-head .shop-mark { grid-row: span 2; }
.bh-title { display: flex; align-items: center; gap: 14px; }
.bh-title .shop-mark { border-color: rgba(255,255,255,0.25); }
/* Profile: the logo upload card (businessLogo.js). */
.logo-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-card-text { flex: 1; min-width: 200px; }
.logo-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Logos on Appointments (beside the shop's name) and in the Inbox (each conversation, and the chat's header). */
.shop-mark-xs { width: 22px; height: 22px; border-radius: 6px; font-size: 0.6rem; }
.ui-meta .shop-mark { margin-right: 2px; }
.inbox-row.has-mark { flex-direction: row; align-items: center; gap: 10px; }
.inbox-row-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.road-mark { background: transparent; border: none; }
.road-mark svg { width: 100%; height: 100%; }
.gd-stats.ui-stats-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .gd-stats.ui-stats-3 { grid-template-columns: minmax(0, 1fr); } }
.recall-dealer-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-alt); font-size: 0.86rem; color: var(--text); }
.recall-dealer-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tone-blue); }
/* MS1 homepage: two paths (Mobile Services, My Garage) instead of four. */
@media (max-width: 620px) { .landing-paths .landing-two { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
/* Business setup: the typed fleet size, sitting where the 1 / 2-3 / 4+ buttons were. */
.bs-ask .bs-input.bs-fleet { width: 110px; justify-self: end; }
.bs-fleet input { text-align: center; }
@media (max-width: 760px) { .bs-fleet { justify-self: start; } }
/* Business setup: the Back / Continue bar sits at the end of each step (it doesn't follow the page as you
   scroll), with "Questions? Email ..." across its bottom, so it's there on every step. */
.bs-actions { position: static; flex-wrap: wrap; }
.bs-help-line { flex: 1 0 100%; order: 10; margin: 2px 0 -2px; padding-top: 8px; border-top: 1px solid var(--border); text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.bs-help-line a { font-weight: 700; color: var(--tone-blue); }
/* Price boxes (business setup and Services & Prices): just type the number - no up/down arrows. */
.bs-money input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.bs-money input[type="number"]::-webkit-outer-spin-button,
.bs-money input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============ Home page (public/index.html): what Road is, for someone who has never heard of it ============ */
.hm-hero { position: relative; overflow: hidden; padding: 64px 0 72px; border-bottom: 1px solid var(--border);
  background: radial-gradient(60% 90% at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
              radial-gradient(50% 80% at 100% 10%, color-mix(in srgb, #8E7BE8 16%, transparent), transparent 60%), var(--bg); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--accent-100); color: var(--tone-blue); font-size: 0.82rem; font-weight: 700; }
.hm-eyebrow svg { width: 16px; height: 16px; }
.hm-hero h1 { margin: 0; font-size: 3rem; line-height: 1.08; letter-spacing: -0.02em; color: var(--text-strong); }
.hm-lead { margin: 18px 0 0; max-width: 560px; font-size: 1.12rem; line-height: 1.6; color: var(--text-muted); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hm-cta .btn { padding: 14px 22px; font-size: 1rem; border-radius: 12px; }
.hm-cta .btn svg { width: 16px; height: 16px; }
.hm-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.hm-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hm-trust svg { width: 18px; height: 18px; color: var(--tone-green); }

/* The phone illustration: a request on Road, with two notes floating beside it. */
.hm-visual { position: relative; display: flex; justify-content: flex-end; padding: 20px 28px 20px 0; }
.hm-phone { position: relative; width: 290px; padding: 11px; border-radius: 40px; background: linear-gradient(160deg, #2a3242, #0c111a);
  box-shadow: 0 34px 70px -24px rgba(20, 45, 100, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.07); transform: rotate(2deg); }
.hm-screen { display: grid; gap: 12px; padding: 14px 14px 18px; border-radius: 30px; background: var(--bg); min-height: 520px; align-content: start; }
.hm-screen-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); padding: 2px 6px 4px; }
.hm-notch { width: 70px; height: 18px; border-radius: 999px; background: #0c111a; }
.hm-screen-title { margin: 4px 4px 0; font-size: 1.05rem; font-weight: 800; color: var(--text-strong); }
.hm-req { display: grid; gap: 9px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.hm-req-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.hm-req-head b { display: block; font-size: 0.95rem; color: var(--text-strong); }
.hm-req-head small { display: block; font-size: 0.76rem; color: var(--text-muted); }
.hm-req-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--tone-blue-bg); color: var(--tone-blue); flex: none; }
.hm-req-icon svg { width: 19px; height: 19px; }
.hm-req-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text); }
.hm-req-row svg { width: 15px; height: 15px; color: var(--text-muted); flex: none; }
.hm-req-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 2px; padding: 10px 12px; border-radius: 12px; background: var(--accent-100); font-size: 0.8rem; color: var(--text-muted); }
.hm-req-price b { font-size: 1.15rem; color: var(--text-strong); }
.hm-steps { display: flex; justify-content: space-between; margin: 2px 4px 0; padding: 0; list-style: none; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.hm-steps li { display: grid; justify-items: center; gap: 5px; flex: 1; position: relative; }
.hm-steps li + li::before { content: ''; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.hm-steps li.done::before, .hm-steps li.now::before { background: var(--tone-green); }
.hm-steps i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-alt-2); border: 2px solid var(--border-strong); }
.hm-steps li.done i { background: var(--tone-green); border-color: var(--tone-green); }
.hm-steps li.now { color: var(--text-strong); }
.hm-steps li.now i { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
.hm-note { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.hm-note > span { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tone-green-bg); color: var(--tone-green); flex: none; }
.hm-note > span svg { width: 17px; height: 17px; }
.hm-note b { display: block; font-size: 0.84rem; color: var(--text-strong); }
.hm-note small { display: block; font-size: 0.74rem; color: var(--text-muted); }
.hm-float { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: 0.86rem; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.hm-float svg { width: 17px; height: 17px; color: var(--tone-blue); }
.hm-float-a { top: 130px; left: -12px; transform: rotate(-3deg); }
.hm-float-b { bottom: 6px; right: -8px; transform: rotate(2deg); }
.hm-float-b svg { color: var(--tone-green); }

/* Sections below the hero. */
.hm-main { padding-bottom: 8px; }
.hm-section { padding-top: 64px; }
.hm-section.hm-last { padding-bottom: 72px; }
.hm-head { max-width: 780px; margin: 0 auto 28px; text-align: center; }
.hm-head p:not(.hm-kicker) { max-width: 620px; margin-left: auto; margin-right: auto; }
.hm-head.hm-head-left { margin: 0; text-align: left; }
.hm-kicker { margin: 0 0 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone-blue); }
.hm-head h2 { margin: 0; font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; }
.hm-head p:not(.hm-kicker) { margin: 12px 0 0; font-size: 1.02rem; line-height: 1.6; color: var(--text-muted); }

/* The usual way next to Road's. */
.hm-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hm-way { padding: 26px 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.hm-way-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.05rem; font-weight: 800; color: var(--text-strong); }
.hm-way-title span { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hm-way-title svg { width: 16px; height: 16px; }
.hm-way ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm-way li { position: relative; padding-left: 26px; font-size: 0.98rem; line-height: 1.5; color: var(--text); }
.hm-way li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; }
.hm-way-old .hm-way-title span { background: var(--tone-red-bg); color: var(--tone-red); }
.hm-way-old li { color: var(--text-muted); }
.hm-way-old li::before { background: var(--border-strong); }
.hm-way-road { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface));
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.hm-way-road .hm-way-title span { background: var(--tone-green-bg); color: var(--tone-green); }
.hm-way-road li { font-weight: 600; }
.hm-way-road li::before { background: var(--tone-green); }

/* The seven services: four across, then three centered under them. */
.hm-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hm-services > a { flex: 0 1 calc((100% - 48px) / 4); min-width: 0; }

/* How it works: the help panel (.hmh-*, further down) and the parking chips. */
.hm-places { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.hm-places-label { margin-right: 4px; font-size: 0.86rem; font-weight: 700; color: var(--text-muted); }
.hm-place { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.86rem; font-weight: 600; color: var(--text); }
.hm-place svg { width: 16px; height: 16px; color: var(--tone-blue); }

/* My Garage and the business invitation: wide bands with one button. */
.hm-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.hm-band h3 { margin: 0; font-size: 1.2rem; }
.hm-band p { margin: 6px 0 0; color: var(--text-muted); line-height: 1.55; }
.hm-band-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.hm-band-icon svg { width: 26px; height: 26px; }
.hm-biz { border: none; color: #fff; background: var(--brand-grad); box-shadow: 0 22px 48px -26px var(--brand); }
.hm-biz h3 { color: #fff; }
.hm-biz p { color: rgba(255, 255, 255, 0.82); }
.hm-biz .hm-band-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.hm-biz .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
#moreFromRoad[hidden] { display: none; }

@media (max-width: 960px) {
  .hm-hero { padding: 40px 0 48px; }
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hm-visual { justify-content: center; padding: 44px 0; }
  .hm-float-a { top: 10px; left: calc(50% - 210px); }
  .hm-float-b { bottom: 10px; right: calc(50% - 210px); }
  .hm-hero h1 { font-size: 2.3rem; }
  .hm-services > a { flex-basis: calc((100% - 16px) / 2); }
  .hm-compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .hm-hero h1 { font-size: 2rem; }
  .hm-lead { font-size: 1rem; }
  .hm-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hm-phone { width: 260px; transform: none; }
  .hm-screen { min-height: 0; }
  .hm-float-a { top: 0; left: 0; }
  .hm-float-b { bottom: 0; right: 0; }
  .hm-visual { padding: 40px 0; }
  .hm-section { padding-top: 44px; }
  .hm-head h2 { font-size: 1.55rem; }
  .hm-way { padding: 22px 20px; }
  .hm-services > a { flex-basis: 100%; }
  .hm-band { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .hm-band .btn { justify-self: start; }
}

/* ============ Home page: "New here? Here's how it works" (from the Mobile Services example A) ============ */
.hmh-help-line > [data-icon] {display: inline-flex;}
.hmh-h2 {margin: 0; font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); line-height: 1.2;}
.hmh-h3 {margin: 0 0 14px; font-size: 1.1875rem; font-weight: 800; color: var(--text-strong);}
.hmh-help {background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-md); padding: 36px 40px 40px; scroll-margin-top: 84px;}
.hmh-help-head {display: flex; align-items: flex-start; gap: 16px; margin-bottom: 30px;}
.hmh-help-badge {width: 52px; height: 52px; border-radius: 16px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-100); color: var(--tone-blue);}
.hmh-help-badge svg {width: 26px; height: 26px;}
.hmh-help-sub {margin: 6px 0 0; font-size: 1.0625rem; color: var(--text-muted); max-width: 46em;}
.hmh-how {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none;}
.hmh-how-item {position: relative;}
.hmh-how-item:not(:last-child)::after {content: ''; position: absolute; top: 72px; right: -19px; width: 10px; height: 10px; border-top: 3px solid var(--border-strong); border-right: 3px solid var(--border-strong); transform: rotate(45deg);}
.hmh-how-art {height: 150px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;}
.hmh-how-art svg {width: 100%; max-width: 230px; height: 100%;}
.hmh-art-blue {background: var(--tone-blue-bg);}
.hmh-art-teal {background: var(--tone-teal-bg);}
.hmh-art-green {background: var(--tone-green-bg);}
.hmh-how-title {display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 1.1875rem; font-weight: 800; color: var(--text-strong); line-height: 1.3;}
.hmh-how-num {width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; font-size: 1rem; font-weight: 800;}
.hmh-how-desc {margin: 0; font-size: 1rem; color: var(--text-muted);}
.hmh-help-foot {display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 32px;}
.hmh-ready, .hmh-after {border-radius: 20px; padding: 24px 26px;}
.hmh-ready {background: var(--surface-alt); border: 1px solid var(--border);}
.hmh-after {background: color-mix(in srgb, var(--tone-green) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tone-green) 26%, var(--border)); display: flex; flex-direction: column;}
.hmh-ready-list, .hmh-after-list {margin: 0; padding: 0; list-style: none; display: grid; gap: 16px;}
.hmh-ready-list li, .hmh-after-list li {display: flex; align-items: flex-start; gap: 14px;}
.hmh-ready-ico {width: 42px; height: 42px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;}
.hmh-ready-ico svg {width: 21px; height: 21px;}
.hmh-ready-list b {display: block; font-size: 1.0625rem; color: var(--text-strong);}
.hmh-ready-list span.hmh-ready-sub {display: block; font-size: 1rem; color: var(--text-muted); margin-top: 2px;}
.hmh-after-list li {font-size: 1.0625rem; color: var(--text);}
.hmh-after-ico {width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--green-600); border: 1px solid color-mix(in srgb, var(--tone-green) 30%, var(--border));}
.hmh-after-ico svg {width: 17px; height: 17px;}
.hmh-after-list b {color: var(--text-strong);}
.hmh-mail {margin-top: auto; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text-strong); font-size: 1.0625rem; font-weight: 600; transition: border-color .15s, box-shadow .15s;}
.hmh-after-list + .hmh-mail {margin-top: 22px;}
.hmh-mail:hover {border-color: var(--brand); box-shadow: var(--shadow-sm);}
.hmh-mail-ico {width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-100); color: var(--tone-blue);}
.hmh-mail-ico svg {width: 19px; height: 19px;}
.hmh-mail b {color: var(--tone-blue); word-break: break-word;}
.hmh-i-card {fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5;}
.hmh-i-car {fill: color-mix(in srgb, var(--tone-blue) 70%, var(--surface));}
.hmh-i-win {fill: color-mix(in srgb, var(--tone-blue) 18%, var(--surface));}
.hmh-i-tire {fill: var(--text-muted);}
.hmh-i-hub {fill: var(--surface);}
.hmh-i-line {fill: color-mix(in srgb, var(--text-muted) 28%, var(--surface));}
.hmh-i-line-soft {fill: color-mix(in srgb, var(--text-muted) 15%, var(--surface));}
.hmh-i-badge {fill: var(--brand);}
.hmh-i-badge-check {fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;}
.hmh-i-wrench {fill: color-mix(in srgb, var(--tone-amber) 40%, var(--surface)); stroke: var(--surface); stroke-width: 2;}
.hmh-i-map1 {fill: color-mix(in srgb, var(--tone-teal) 24%, var(--surface));}
.hmh-i-map2 {fill: color-mix(in srgb, var(--tone-teal) 40%, var(--surface));}
.hmh-i-road {fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round;}
.hmh-i-pin {fill: var(--brand);}
.hmh-i-pin-dot {fill: var(--surface);}
.hmh-i-cal-top {fill: color-mix(in srgb, var(--tone-red) 62%, var(--surface));}
.hmh-i-dot {fill: color-mix(in srgb, var(--text-muted) 24%, var(--surface));}
.hmh-i-dot-on {fill: var(--brand);}
.hmh-i-van {fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5;}
.hmh-i-stripe {fill: var(--brand);}
.hmh-i-ground {fill: color-mix(in srgb, var(--tone-green) 40%, var(--surface));}
.hmh-i-ok {fill: none; stroke: var(--green-600); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round;}
.hmh-help-line {display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 1rem; color: var(--text-muted);}
.hmh-help-line svg {width: 18px; height: 18px; flex: none; margin-top: 3px;}
@media (max-width: 980px) {
  .hmh-help-foot {grid-template-columns: 1fr;}
}
@media (max-width: 820px) {
  .hmh-how {grid-template-columns: 1fr; gap: 16px;}
  .hmh-how-item {display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: center;}
  .hmh-how-item:not(:last-child)::after {display: none;}
  .hmh-how-art {height: 96px; margin: 0; border-radius: 16px;}
}
@media (max-width: 600px) {
  .hmh-help {padding: 24px 18px 22px; border-radius: 24px;}
  .hmh-help-head {flex-direction: column; gap: 12px; margin-bottom: 22px;}
  .hmh-how-item {grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start;}
  .hmh-how-art {height: 84px;}
  .hmh-how-title {font-size: 1.0625rem; gap: 10px;}
  .hmh-how-num {width: 30px; height: 30px; font-size: 0.9375rem;}
  .hmh-ready, .hmh-after {padding: 20px 16px;}
}
.hmh-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 30px 0 0; }
.hmh-start .btn { padding: 13px 22px; font-size: 1rem; border-radius: 12px; }
.hmh-start .btn svg { width: 16px; height: 16px; }
.hmh-start span { font-size: 0.95rem; color: var(--text-muted); }
@media (max-width: 620px) { .hmh-start .btn { flex: 1 1 100%; justify-content: center; } }

/* ============ Mobile Services page (public/mobile-service): the design from example E ============ */
/* The top: header, small drawing, "Have ready", "How it works" and "More help". */
.msp-page { position: relative; font-size: 1rem; line-height: 1.55; color: var(--text); background: radial-gradient(560px 460px at 100% 560px, color-mix(in srgb, var(--tone-violet) 9%, transparent), transparent 70%), radial-gradient(520px 460px at 0% 980px, color-mix(in srgb, var(--tone-teal) 8%, transparent), transparent 70%), radial-gradient(640px 420px at 85% calc(100% - 420px), color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%); }
[data-theme="dark"] .msp-page { color-scheme: dark; }
.msp-wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.msp-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.msp-c-blue { --msp-c: var(--tone-blue); }
.msp-c-teal { --msp-c: var(--tone-teal); }
.msp-c-violet { --msp-c: var(--tone-violet); }
.msp-c-green { --msp-c: var(--tone-green); }
.msp-top { position: relative; isolation: isolate; padding: 20px 0 0; background: radial-gradient(44% 120% at 0% 0%, color-mix(in srgb, var(--brand) 19%, transparent), transparent 70%), radial-gradient(30% 90% at 58% 0%, color-mix(in srgb, var(--tone-teal) 14%, transparent), transparent 72%), radial-gradient(36% 110% at 100% 24%, color-mix(in srgb, var(--tone-violet) 18%, transparent), transparent 72%); }
.msp-top::before { content: ''; position: absolute; z-index: -1; top: 0; right: 0; width: 48%; height: 78%; pointer-events: none; background-image: radial-gradient(color-mix(in srgb, var(--text-faint) 45%, transparent) 1.2px, transparent 1.7px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(60% 75% at 72% 30%, var(--text-strong), transparent 78%); mask-image: radial-gradient(60% 75% at 72% 30%, var(--text-strong), transparent 78%); opacity: 0.6; }
.msp-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.msp-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.msp-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 3px 14px 3px 3px; border-radius: 999px; font-size: 0.9375rem; font-weight: 700; color: var(--text-strong); line-height: 1.3; background: color-mix(in srgb, var(--surface) 74%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border)); box-shadow: var(--shadow-sm); }
.msp-kicker-ico { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; }
.msp-kicker-ico svg { width: 15px; height: 15px; }
.msp-h1 { margin: 8px 0 2px; font-size: clamp(1.625rem, 3vw, 2.125rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; color: var(--text-strong); text-wrap: balance; }
.msp-lead { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--text-muted); }
.msp-trust { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; padding: 0; list-style: none; }
.msp-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.msp-trust-ico { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--msp-c) 16%, var(--surface)); color: color-mix(in srgb, var(--msp-c) 82%, var(--text-strong)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--msp-c) 30%, transparent); }
.msp-trust-ico svg { width: 14px; height: 14px; stroke-width: 2.6; }
.msp-art { position: relative; width: clamp(260px, 29vw, 380px); }
.msp-art-frame { position: absolute; right: 0; width: 100%; top: 50%; transform: translateY(-50%); aspect-ratio: 440 / 170; max-height: 100%; overflow: hidden; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--tone-blue) 15%, var(--surface)) 0%, color-mix(in srgb, var(--tone-teal) 8%, var(--surface)) 72%); box-shadow: 0 22px 40px -26px color-mix(in srgb, var(--brand) 70%, transparent), var(--shadow-sm); }
.msp-art-frame svg { display: block; width: 100%; height: 100%; }
.msp-art-mini { display: none; }
.msp-a-blob1 { fill: color-mix(in srgb, var(--tone-teal) 15%, transparent); }
.msp-a-sun { fill: color-mix(in srgb, var(--tone-amber) 48%, var(--surface)); }
.msp-a-sunring { fill: none; stroke: color-mix(in srgb, var(--tone-amber) 20%, transparent); stroke-width: 8; }
.msp-a-cloud { fill: var(--surface); opacity: 0.92; }
.msp-a-hill2 { fill: color-mix(in srgb, var(--tone-teal) 20%, var(--surface)); }
.msp-a-hill { fill: color-mix(in srgb, var(--tone-green) 32%, var(--surface)); }
.msp-a-curb { fill: var(--border-strong); }
.msp-a-road { fill: color-mix(in srgb, var(--text-muted) 26%, var(--surface)); }
.msp-a-dash { fill: none; stroke: var(--surface); stroke-width: 2.5; stroke-dasharray: 14 12; stroke-linecap: round; opacity: 0.9; }
.msp-a-walk { fill: color-mix(in srgb, var(--text-muted) 12%, var(--surface)); }
.msp-a-wall { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.msp-a-roof { fill: color-mix(in srgb, var(--tone-violet) 62%, var(--surface)); stroke: color-mix(in srgb, var(--tone-violet) 62%, var(--surface)); stroke-width: 5; stroke-linejoin: round; }
.msp-a-chimney { fill: color-mix(in srgb, var(--tone-violet) 42%, var(--surface)); }
.msp-a-door { fill: color-mix(in srgb, var(--tone-amber) 68%, var(--surface)); }
.msp-a-glass { fill: color-mix(in srgb, var(--tone-blue) 26%, var(--surface)); }
.msp-a-trunk { fill: color-mix(in srgb, var(--tone-amber) 62%, var(--text-muted)); }
.msp-a-leaf { fill: color-mix(in srgb, var(--tone-green) 78%, var(--surface)); }
.msp-a-leaf2 { fill: color-mix(in srgb, var(--tone-green) 52%, var(--surface)); }
.msp-a-car { fill: color-mix(in srgb, var(--tone-teal) 88%, var(--surface)); }
.msp-a-car-glass { fill: color-mix(in srgb, var(--tone-blue) 16%, var(--surface)); }
.msp-a-tire { fill: color-mix(in srgb, var(--text-muted) 55%, var(--text-strong)); }
.msp-a-hub { fill: var(--surface-alt-2); }
.msp-a-shadow { fill: color-mix(in srgb, var(--text-strong) 10%, transparent); }
.msp-a-van { fill: var(--brand); }
.msp-a-vglass { fill: color-mix(in srgb, var(--brand) 22%, var(--surface)); }
.msp-a-vline { fill: none; stroke: var(--surface); stroke-opacity: 0.35; stroke-width: 2; }
.msp-a-vstripe { fill: var(--surface); opacity: 0.28; }
.msp-a-vlight { fill: color-mix(in srgb, var(--tone-amber) 55%, var(--surface)); }
.msp-a-route { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.5 8; }
.msp-a-pin { fill: var(--tone-red); }
.msp-a-pinring { fill: none; stroke: var(--tone-red); stroke-opacity: 0.3; stroke-width: 2; }
.msp-a-pin-dot { fill: var(--surface); }
.msp-a-motion { fill: none; stroke: color-mix(in srgb, var(--brand) 45%, transparent); stroke-width: 3; stroke-linecap: round; }
.msp-a-cardg { filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--brand) 22%, transparent)); }
.msp-a-card { fill: var(--surface); stroke: color-mix(in srgb, var(--brand) 18%, var(--border)); stroke-width: 1.2; }
.msp-a-cico { fill: color-mix(in srgb, var(--tone-blue) 16%, var(--surface)); }
.msp-a-cico-mark { fill: none; stroke: var(--tone-blue); stroke-width: 2.4; }
.msp-a-cico-dot { fill: var(--tone-blue); }
.msp-a-line { fill: color-mix(in srgb, var(--text-faint) 42%, var(--surface)); }
.msp-a-line-strong { fill: color-mix(in srgb, var(--text-muted) 55%, var(--surface)); }
.msp-a-ok { fill: var(--green-600); }
.msp-a-ok-mark { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .msp-a-cloud { fill: color-mix(in srgb, var(--tone-blue) 20%, var(--surface)); opacity: 1; }
[data-theme="dark"] .msp-a-tire { fill: color-mix(in srgb, var(--bg) 55%, var(--text-faint)); }
[data-theme="dark"] .msp-a-shadow { fill: color-mix(in srgb, var(--bg) 60%, transparent); }
.msp-prep { position: relative; margin-top: 16px; display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; grid-template-areas: "rlabel ready help" "hlabel how how" "panel panel panel"; align-items: center; gap: 10px 16px; padding: 12px 14px 12px 18px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 32px -22px color-mix(in srgb, var(--brand) 55%, transparent), var(--shadow-sm); }
.msp-prep-label { margin: 0; font-size: 0.9375rem; font-weight: 800; color: var(--text-strong); white-space: nowrap; }
.msp-prep-label-ready { grid-area: rlabel; }
.msp-prep-label-how { grid-area: hlabel; }
.msp-ready { grid-area: ready; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.msp-ready li { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 3px 14px 3px 3px; border-radius: 12px; background: color-mix(in srgb, var(--msp-c) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--msp-c) 24%, var(--border)); font-size: 0.9375rem; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.msp-ready-ico { width: 30px; height: 30px; border-radius: 9px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--msp-c) 18%, var(--surface)); color: color-mix(in srgb, var(--msp-c) 82%, var(--text-strong)); }
.msp-ready-ico svg { width: 17px; height: 17px; }
[data-theme="dark"] .msp-ready li { background: color-mix(in srgb, var(--msp-c) 12%, var(--surface)); border-color: color-mix(in srgb, var(--msp-c) 30%, var(--border)); }
[data-theme="dark"] .msp-ready-ico { background: color-mix(in srgb, var(--msp-c) 24%, var(--surface)); }
.msp-how { grid-area: how; display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; margin: 0; padding: 0; list-style: none; }
.msp-how li { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.msp-how li + li::before { content: ''; width: 44px; height: 3px; margin: 0 10px 0 2px; border-radius: 3px; background: linear-gradient(90deg, var(--msp-prev), var(--msp-c)); opacity: 0.6; }
.msp-how li + li::before { width: 24px; margin: 0 8px 0 2px; } /* five steps fit on one line on a wide screen */
.msp-how .msp-c-blue { --msp-prev: var(--tone-blue); }
.msp-how .msp-c-teal { --msp-prev: var(--tone-blue); }
.msp-how .msp-c-violet { --msp-prev: var(--tone-teal); }
.msp-how .msp-c-blue { --msp-next: var(--tone-teal); }
.msp-how .msp-c-teal { --msp-next: var(--tone-violet); }
.msp-how-num { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; font-weight: 800; line-height: 1; background: color-mix(in srgb, var(--msp-c) 15%, var(--surface)); color: color-mix(in srgb, var(--msp-c) 70%, var(--text-strong)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--msp-c) 50%, transparent); }
.msp-help-btn { grid-area: help; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px 8px 12px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text-strong); font-size: 0.9375rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.msp-help-btn:hover { border-color: var(--brand); background: var(--accent-100); }
.msp-help-btn [data-icon] { display: inline-flex; color: var(--tone-blue); }
.msp-help-btn svg { width: 18px; height: 18px; }
.msp-caret { width: 8px; height: 8px; margin-left: 2px; border-right: 2.5px solid var(--text-muted); border-bottom: 2.5px solid var(--text-muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.msp-help-btn[aria-expanded="true"] { border-color: var(--brand); background: var(--accent-100); }
.msp-help-btn[aria-expanded="true"] .msp-caret { transform: translateY(2px) rotate(-135deg); }
.msp-help { grid-area: panel; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.msp-help-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--msp-c) 6%, var(--surface-alt)); border: 1px solid color-mix(in srgb, var(--msp-c) 16%, var(--border)); }
.msp-help-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.msp-help-ico svg { width: 19px; height: 19px; }
.msp-help-title { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--text-strong); line-height: 1.35; }
.msp-help-item p { margin: 0; font-size: 1rem; color: var(--text); }
.msp-help-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.msp-help-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 1rem; color: var(--text); }
.msp-help-list [data-icon] { display: inline-flex; flex: none; margin-top: 4px; color: var(--green-600); }
.msp-help-list svg { width: 16px; height: 16px; stroke-width: 3; }
.msp-help-mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 601px) and (max-width: 1100px) {
  .msp-ready { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
  .msp-ready li:first-child { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .msp-prep-label-ready { align-self: start; margin-top: 9px; }
  .msp-help-btn { align-self: start; margin-top: -3px; }
}
@media (max-width: 960px) {
  .msp-help { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .msp-prep { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "rlabel help" "ready ready" "hlabel hlabel" "how how" "panel panel"; gap: 8px 12px; }
  .msp-prep-label-how { margin-top: 4px; }
}
@media (max-width: 760px) {
  .msp-head-grid { display: block; }
  .msp-art { display: none; }
  .msp-art-mini { display: block; flex: none; width: 87px; height: 35px; }
}
@media (max-width: 740px) {
  .msp-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .msp-how li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .msp-how li + li::before { display: none; }
  .msp-how li:not(:last-child)::after { content: ''; position: absolute; top: 12.5px; left: 34px; right: -4px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--msp-c), var(--msp-next)); opacity: 0.6; }
}
@media (max-width: 600px) {
  .msp-wrap { padding: 0 16px; }
  .msp-top { padding-top: 12px; }
  .msp-top::before { width: 70%; height: 46%; }
  .msp-h1 { margin-top: 6px; }
  .msp-lead { font-size: 1rem; }
  .msp-trust { gap: 4px 14px; margin-top: 8px; }
  .msp-prep { margin-top: 12px; padding: 10px 12px 12px 14px; border-radius: 18px; gap: 6px 10px; }
  .msp-ready { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .msp-ready li:first-child { grid-column: 1 / -1; }
  .msp-ready li { min-height: 0; gap: 8px; padding: 5px 8px 5px 4px; border-radius: 11px; line-height: 1.25; }
  .msp-ready-ico { width: 28px; height: 28px; border-radius: 8px; }
  .msp-ready-ico svg { width: 16px; height: 16px; }
  .msp-help-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 12px; }
  .msp-help-item > div { display: contents; }
  .msp-help-item > div > :not(.msp-help-title) { grid-column: 1 / -1; }
  .msp-help-ico { width: 30px; height: 30px; border-radius: 9px; }
  .msp-help-ico svg { width: 17px; height: 17px; }
  .msp-help-title { margin: 0; }
}

/* The request: one card per step (renderSteps in mobileService.js sets data-state). */
.msp-flow { padding: 6px 0 64px; }
.msp-flow .msp-wrap { max-width: 1040px; }
.msp-prog { display: flex; align-items: center; gap: 12px; min-height: 24px; margin: 4px 4px 12px; }
.msp-prog-count { font-size: 0.9375rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.msp-prog-bar { flex: 1; max-width: 240px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.msp-prog-seg { display: block; height: 6px; border-radius: 999px; background: var(--border-strong); }
.msp-prog-seg.is-done { background: var(--green-600); }
.msp-prog-seg.is-current { background: var(--brand-grad); }
.msp-step { position: relative; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); scroll-margin-top: 84px; }
.msp-step[hidden] { display: none; }
.msp-step[data-state="current"] { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); box-shadow: 0 26px 52px -32px color-mix(in srgb, var(--brand) 70%, transparent), var(--shadow-md), 0 0 0 4px color-mix(in srgb, var(--brand) 7%, transparent); }
.msp-step[data-state="current"]::before { content: ''; position: absolute; top: -1px; left: 22px; right: 22px; height: 4px; border-radius: 0 0 4px 4px; background: var(--brand-grad); }
/* The step's own heading row: a number (a check once done) and the question. */
.msp-step > .step { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 24px; font-size: 1.125rem; font-weight: 700; color: var(--text-muted); grid-template-columns: none; }
.msp-step > .step::before { display: none; }
.msp-step > .step .step-dot { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text-muted); font-size: 1rem; font-weight: 800; }
.msp-step > .step .step-dot svg { width: 20px; height: 20px; stroke-width: 3; }
.msp-step > .step .step-label { font-size: inherit; letter-spacing: -0.01em; }
.msp-step > .step.current { padding-top: 22px; padding-bottom: 8px; font-size: 1.375rem; font-weight: 800; color: var(--text-strong); }
.msp-step > .step.current .step-dot { width: 44px; height: 44px; border: 0; background: var(--brand-grad); color: #fff; font-size: 1.125rem;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent), 0 10px 20px -8px color-mix(in srgb, var(--brand) 75%, transparent); }
.msp-step > .step.done { color: var(--text-strong); }
.msp-step > .step.done .step-dot { border: 0; background: var(--green-100); color: var(--green-600); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--green-600) 38%, transparent); }
/* Until the steps before it are done, a step shows only its heading. */
.msp-step[data-state="upcoming"] > :not(.step) { display: none !important; }
.msp-step[data-state="upcoming"] > .step { padding-top: 12px; padding-bottom: 12px; }
/* The step's content sits inside the card; the old cards inside lose their own frame and repeated titles. */
.msp-step-intro { margin: 0 24px 16px; font-size: 1rem; color: var(--text-muted); }
.msp-step > .card { margin: 0 0 6px; padding: 0 24px 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.msp-step > .card > .card-head .card-title { display: none; }
.msp-step > .card > .card-head { margin-bottom: 14px; }
.msp-step > #shopResults { padding: 0 24px 24px; }

/* Step 2 for a visitor: adding a car takes a free account. */
.msp-acct { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 6%, var(--surface-alt)); border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border)); }
.msp-acct-ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--brand-grad); color: #fff; }
.msp-acct-ico svg { width: 22px; height: 22px; }
.msp-acct-body { min-width: 0; }
.msp-acct-title { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 800; color: var(--text-strong); line-height: 1.35; }
.msp-acct-text { margin: 0 0 14px; color: var(--text); }
.msp-acct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.msp-acct-actions .btn { min-height: 44px; }
@media (max-width: 560px) {
  .msp-acct { flex-direction: column; gap: 10px; padding: 16px; }
  .msp-acct-actions .btn { flex: 1 1 100%; }
}

/* The seven services as tiles: a colored icon, the name and one line about it. */
.msp-page .msp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0 24px 24px; }
.msp-page .msp-tiles > .service-tab { grid-column: auto !important; position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 84px; padding: 12px 40px 12px 12px;
  border-radius: 18px; border: 1.5px solid var(--border); background: var(--input-bg); color: var(--text); text-align: left; font: inherit; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s, box-shadow .2s, transform .15s; }
.msp-page .msp-tiles > .service-tab .feature-icon { width: 52px; height: 52px; border-radius: 15px; flex: none; transition: transform .15s; }
.msp-page .msp-tiles > .service-tab .feature-icon svg { width: 24px; height: 24px; }
.msp-tile-text { display: grid; gap: 2px; min-width: 0; }
.msp-tile-text b { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; color: var(--text-strong); }
.msp-tile-text small { font-size: 0.9375rem; line-height: 1.35; color: var(--text-muted); }
.msp-page .msp-tiles > .service-tab::after { content: ''; position: absolute; top: 50%; right: 14px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: transparent; }
@media (hover: hover) {
  .msp-page .msp-tiles > .service-tab:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--input-bg); box-shadow: var(--shadow-md); }
  .msp-page .msp-tiles > .service-tab:hover .feature-icon { transform: scale(1.06) rotate(-4deg); }
}
.msp-page .msp-tiles > .service-tab.active { border-color: var(--brand); background: var(--accent-100); color: var(--text-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent), 0 16px 30px -18px color-mix(in srgb, var(--brand) 80%, transparent); }
.msp-page .msp-tiles > .service-tab.active::after { content: '\2713'; border-color: transparent; background: var(--brand-grad); color: #fff; }
@media (prefers-reduced-motion: reduce) { .msp-page .msp-tiles > .service-tab, .msp-page .msp-tiles > .service-tab .feature-icon { transition: none; transform: none !important; } }
@media (max-width: 900px) { .msp-page .msp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .msp-page .msp-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 14px 18px; }
  .msp-step > .step { padding-left: 14px; padding-right: 14px; }
  .msp-step > .step.current { font-size: 1.25rem; }
  .msp-step-intro { margin-left: 14px; margin-right: 14px; }
  .msp-step > .card { padding: 0 14px 18px; }
  .msp-step > #shopResults { padding: 0 14px 18px; }
}

/* ==========================================================================
   My Garage (public/garage): the Dashboard look (gd-* above, uiKit.js) with the cars as cards. Each car
   is drawn (carSvg) for now - photos come back once there are good ones.
   ========================================================================== */
.gr-section { margin-top: 28px; }
/* One car at a time: its card (the drawing and its specs) with "At a glance" beside it - stacked on narrow screens. */
.gr-cars { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .gr-cars { grid-template-columns: minmax(0, 1fr); } }
.gr-glance { display: flex; flex-direction: column; }
.gr-glance-sub { margin: 14px 0 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.gr-glance .gd-panel-head + .gr-glance-sub { margin-top: 4px; }
.gr-glance-sub + .gd-att-row { border-top: none; }
.gr-glance .gd-miles-form, .gr-inline-form { flex-direction: row; align-items: center; flex-wrap: wrap; }
.gr-inline-form input, .gr-inline-form select { width: 100%; max-width: 230px; padding: 7px 10px; text-align: left; font-weight: 600; }
.gr-glance-waiting .gd-att-text strong { color: var(--text); }
/* No car yet: each part of the garage summed up - what it does once a car is added. */
.gr-feature { display: flex; align-items: flex-start; gap: 14px; padding-top: 4px; }
.gr-feature > div { flex: 1; min-width: 0; }
.gr-feature strong { display: block; color: var(--text-strong); font-size: 1rem; margin-bottom: 2px; }
.gr-feature-points { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text); }
.gr-feature-points li { display: flex; align-items: flex-start; gap: 8px; }
.gr-feature-points svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--tone-green); }
.gr-glance.gr-feature-panel .gr-feature { padding-bottom: 6px; }
/* The two sections share the panel's height (it matches the car card beside it), split by a line. */
.gr-feature-panel .gr-feature-block { flex: 1; }
.gr-feature-panel .gr-feature-block + .gr-feature-block { border-top: 1px solid var(--border); margin-top: 12px; }
.gr-feature-tile { align-items: flex-start; }
.gr-feature-tile-title { color: var(--text-strong); font-size: 1.02rem; font-weight: 800; margin: 1px 0 3px; }
.gr-feature-tile .gd-stat-sub { line-height: 1.45; }
/* With two or more cars: a button per car above the card. */
.gr-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.gr-switch-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.gr-switch-btn:hover { border-color: var(--border-strong); }
.gr-switch-btn[aria-selected="true"] { border-color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--text-strong); color: var(--text-strong); }
.gr-switch-thumb { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; display: block; }
.gr-switch-thumb svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) {
  /* A phone: one row of car buttons that scrolls sideways, instead of stacking. */
  .gr-switch { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
  .gr-switch::-webkit-scrollbar { display: none; }
  .gr-switch-btn { flex: none; }
}
.gr-car { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: box-shadow .2s, transform .2s, border-color .2s; }
@media (hover: hover) { .gr-car:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); box-shadow: 0 16px 36px -16px var(--brand-glow), var(--shadow-sm); transform: translateY(-2px); } }
.gr-car-art { display: block; aspect-ratio: 2 / 1; overflow: hidden; }
.gr-car-art svg { width: 100%; height: 100%; display: block; }
.gr-car-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 22px; }
.gr-car-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gr-car-title { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.gr-car-title strong { color: var(--text-strong); font-size: 1.2rem; line-height: 1.3; }
.gr-car-title:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.gr-car-title span { color: var(--text-muted); font-size: 0.92rem; }
/* Under the name, centered under the year/make/model line: the car's VIN once it's added, or "Add VIN" in a
   lighter blue. The name block is only as wide as its text, so centering in it centers under that line. */
.gr-car-name { display: flex; flex-direction: column; width: fit-content; min-width: 0; }
.gr-car-vin { margin-top: 2px; text-align: center; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.gr-car-vin .gr-link { font-size: 0.82rem; color: var(--accent-500); }
.gr-car-vin .gr-link:hover { color: var(--accent-600); }
[data-theme="dark"] .gr-car-vin .gr-link { color: #C3D5F5; }
[data-theme="dark"] .gr-car-vin .gr-link:hover { color: #E1EAFA; }
.gr-car-vin .gr-inline-form { justify-content: center; }
.gr-vin-input { text-transform: uppercase; }
.gr-vin-input::placeholder { text-transform: none; }
.gr-car-line { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text); }
.gr-car-line b { color: var(--text-strong); font-weight: 700; }
.gr-car-line small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.gr-car-sub { color: var(--text-muted); }
.gr-stale { color: var(--amber-600); font-weight: 600; }
.gr-car-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-alt-2); color: var(--text-muted); }
.gr-car-ico svg { width: 16px; height: 16px; }
.gr-car-ico.gr-tone-green { background: var(--tone-green-bg); color: var(--tone-green); }
.gr-car-ico.gr-tone-amber { background: var(--tone-amber-bg); color: var(--tone-amber); }
.gr-car-ico.gr-tone-red { background: var(--tone-red-bg); color: var(--tone-red); }
.gr-car-miles { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; padding-top: 5px; }
.gr-car-line > span:last-child { padding-top: 5px; min-width: 0; }
.gr-link { padding: 0; border: 0; background: none; color: var(--link-color); font: inherit; font-size: 0.86rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gr-car-miles .gd-miles-form, .gr-car-line .gd-miles-form { flex-direction: row; align-items: center; flex-wrap: wrap; }
.gr-car-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.gr-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.gr-note { margin-top: 12px; }
.gr-recalls { margin-bottom: 16px; border-color: color-mix(in srgb, var(--red-600) 30%, var(--border)); }
@media (max-width: 600px) {
  .gd-att-row:has(.gr-row-actions) { flex-wrap: wrap; }
  .gr-row-actions { width: 100%; justify-content: flex-start; padding-left: 50px; }
}
/* The car page (public/garage/vehicle): the drawn car across the top, and recalls the owner can mark. */
.page-back-row { display: flex; align-items: center; gap: 12px; }
.page-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s; }
.page-back:hover { border-color: var(--border-strong); background: var(--surface-alt-2); color: var(--text-strong); }
.page-back svg { width: 18px; height: 18px; }
.vehicle-art { height: 220px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 10px 16px 0;
  background: radial-gradient(ellipse at 50% 25%, color-mix(in srgb, var(--brand) 14%, var(--surface-alt)) 0%, var(--surface-alt) 70%); }
.vehicle-art svg { height: 100%; width: auto; max-width: 100%; display: block; }
.recall-vin-check { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-100); color: var(--text); font-size: 0.88rem; }
.recall-vin-check > [data-icon] { display: inline-flex; color: var(--accent-600); }
.recall-vin-check > [data-icon] svg { width: 16px; height: 16px; }
.recall-vin-check > span:nth-child(2) { flex: 1 1 320px; }
.recall-marked { opacity: 0.6; }
@media (max-width: 600px) { .vehicle-art { height: 170px; } }
/* My Garage welcome banner (no car yet, or logged out): welcome text and "Add your car" on the left, the cartoon
   car on the right, stacked on phones. Same width as the dark banner owners see; colors from the theme tokens. */
.gr-hero-loading { height: 236px; border-radius: var(--radius-lg); border: 0; }
.garage-welcome { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 30px; min-height: 236px; padding: 24px 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--garage-welcome-bg); overflow: hidden; isolation: isolate;
  /* The car illustration's own background color (a flat #E3E6F9) - the banner matches the approved artwork. */
  --garage-welcome-bg: #E3E6F9; }
@media (min-width: 900px) { .garage-welcome { gap: 45px; } }
.garage-welcome__eyebrow { margin: 0; color: var(--tone-violet); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.garage-welcome h1 { margin: 6px 0 8px; color: var(--text-strong); font-size: clamp(1.7rem, 3.1vw, 2.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.garage-welcome__copy { max-width: 440px; margin: 0 0 16px; color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }
.garage-welcome__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.garage-welcome__login { margin: 0; color: var(--gray-600); font-size: 0.78rem; }
.garage-welcome__login a { color: var(--link-color); font-weight: 600; text-underline-offset: 3px; }
.garage-benefits { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--gray-600); font-size: 0.78rem; }
.garage-benefits li { display: inline-flex; align-items: center; gap: 5px; }
.garage-benefits span { color: var(--tone-violet); font-weight: 600; }
/* With cars: the next service due, as a link under the summary. */
.gr-next-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 16px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.86rem; text-decoration: none; box-shadow: var(--shadow-sm); }
.gr-next-pill:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); color: var(--text); }
.gr-next-pill .gd-att-icon { width: 30px; height: 30px; border-radius: 50%; }
.gr-next-pill .gd-att-icon svg { width: 15px; height: 15px; }
.gr-next-pill b { color: var(--text-strong); }
.gr-next-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-next-pill > [data-icon="chevronRight"] { display: inline-flex; color: var(--text-muted); }
.gr-next-pill > [data-icon="chevronRight"] svg { width: 14px; height: 14px; }
.garage-welcome .garage-welcome__actions .btn-outline { background: var(--surface); }
.garage-welcome__media { margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.garage-welcome__art { display: block; width: 100%; max-width: 460px; height: auto; aspect-ratio: 540 / 200; }
/* The garage scene's colors - a traditional red and black toolbox and a yellow and gray lift - with dark versions below. */
.garage-welcome { --gw-floor: rgba(47, 60, 98, 0.12); --gw-car-shadow: rgba(47, 60, 98, 0.2);
  --gw-box: #D63A35; --gw-drawer: #E8564F; --gw-box-dark: #1F2128; --gw-tool: #A3A9B5;
  --gw-lift-post: #9298A6; --gw-lift-shade: #7A8090; --gw-lift-dark: #4A4F5C; --gw-lift-yellow: #F2C230; --gw-lift-yellow-shade: #D4A21C; --gw-lift-pad: #1F2128; }
.gw-floor { fill: var(--gw-floor); }
.gw-car-shadow { fill: var(--gw-car-shadow); }
.gw-box { fill: var(--gw-box); }
.gw-drawer { fill: var(--gw-drawer); }
.gw-box-dark { fill: var(--gw-box-dark); }
.gw-tool { fill: var(--gw-tool); }
.gw-lift-post { fill: var(--gw-lift-post); }
.gw-lift-shade { fill: var(--gw-lift-shade); }
.gw-lift-dark { fill: var(--gw-lift-dark); }
.gw-lift-yellow { fill: var(--gw-lift-yellow); }
.gw-lift-yellow-shade { fill: var(--gw-lift-yellow-shade); }
.gw-lift-pad { fill: var(--gw-lift-pad); }
.gw-lift-arm { stroke: var(--gw-lift-yellow); stroke-width: 6; stroke-linecap: round; }
/* Dark: a soft violet wash on the dark surface; the car (transparent background) sits on it directly, and the
   toolbox and lift take slightly deeper colors. */
[data-theme="dark"] .garage-welcome { background: color-mix(in srgb, var(--tone-violet) 12%, var(--surface)); }
[data-theme="dark"] .garage-welcome { --gw-floor: rgba(0, 0, 0, 0.32); --gw-car-shadow: rgba(0, 0, 0, 0.38);
  --gw-box: #C2352F; --gw-drawer: #D84A43; --gw-box-dark: #101117; --gw-tool: #8C93A1;
  --gw-lift-post: #6A7080; --gw-lift-shade: #575D6C; --gw-lift-dark: #3A3F4B; --gw-lift-yellow: #D9AE2C; --gw-lift-yellow-shade: #B38E22; --gw-lift-pad: #101117; }
@media (max-width: 600px) {
  .garage-welcome { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 22px; }
  .garage-welcome h1 { font-size: 1.85rem; }
  .garage-welcome__art { max-width: 390px; }
}
/* My Garage before a car is added (or logged out): the same page, waiting for a car. */
.gr-car-waiting .gr-car-art { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.gr-car-waiting .gr-car-title strong { color: var(--text-strong); }
.gr-waiting-row strong { color: var(--text); }

/* ==========================================================================
   Business calendar (public/business/calendar, public/js/businessCalendar.js): month or week on the left, the
   chosen day's jobs and the business's own time on the right (stacked on narrow screens).
   ========================================================================== */
.ui-focus { box-shadow: 0 0 0 2px var(--brand), var(--shadow-sm) !important; }
.bcal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bcal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.bcal-nav { display: flex; align-items: center; gap: 8px; }
.bcal-nav h2 { min-width: 190px; text-align: center; font-size: 1.2rem; }
.bcal-arrow { width: 36px; height: 36px; padding: 0; }
.bcal-arrow svg { width: 16px; height: 16px; }
.bcal-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bcal-toggle, .bcal-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.bcal-toggle { white-space: nowrap; }
.bcal-check { margin: 4px 0 10px; }
.bcal-check-help { margin-top: -6px; }
.bcal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; font-size: 0.8rem; color: var(--text-muted); }
.bcal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bcal-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* status colors: a soft fill for chips, the strong color for dots and the left edge */
.bcal-s-requested { --bc: var(--tone-amber); --bc-bg: var(--tone-amber-bg); }
.bcal-s-quote-sent { --bc: #D9822B; --bc-bg: color-mix(in srgb, #D9822B 14%, transparent); }
.bcal-s-confirmed { --bc: var(--tone-blue); --bc-bg: var(--tone-blue-bg); }
.bcal-s-completed { --bc: var(--tone-green); --bc-bg: var(--tone-green-bg); }
.bcal-s-cancelled { --bc: var(--text-muted); --bc-bg: var(--surface-alt-2); }
.bcal-s-event { --bc: var(--tone-teal); --bc-bg: var(--tone-teal-bg); }
.bcal-dot { background: var(--bc); }
.bcal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .bcal-layout { grid-template-columns: minmax(0, 1fr); } }
.bcal-grid-card { padding: 0; overflow: hidden; }
.bcal-grid-card [aria-busy="true"] { opacity: 0.6; }
.bcal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.bcal-weekdays span { padding: 10px 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.bcal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bcal-cell { display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 6px; border: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.bcal-cell:nth-child(7n) { border-right: 0; }
.bcal-cell:hover { background: var(--surface-alt-2); }
.bcal-out { background: color-mix(in srgb, var(--surface-alt-2) 55%, var(--surface)); }
.bcal-out .bcal-num { color: var(--text-muted); }
.bcal-num { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.bcal-today .bcal-num { background: var(--brand); color: #fff; }
.bcal-selected { box-shadow: inset 0 0 0 2px var(--text-strong); }
.bcal-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bcal-chip { display: block; padding: 2px 6px; border-radius: 6px; border-left: 3px solid var(--bc); background: var(--bc-bg); color: var(--text); font-size: 0.74rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcal-chip b { font-weight: 700; }
.bcal-chip-flag { box-shadow: inset 0 0 0 1px var(--tone-amber); }
.bcal-more { font-size: 0.72rem; color: var(--text-muted); padding-left: 4px; }
.bcal-dots { display: none; gap: 3px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .bcal-cell { min-height: 58px; padding: 4px; align-items: center; }
  .bcal-num { align-self: center; }
  .bcal-chips { display: none; }
  .bcal-dots { display: flex; justify-content: center; }
  .bcal-weekdays span { text-align: center; padding: 8px 2px; }
  .bcal-nav h2 { min-width: 0; font-size: 1.05rem; }
}
.bcal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bcal-wcol { display: flex; flex-direction: column; min-height: 360px; padding: 0; border: 0; border-right: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.bcal-wcol:last-child { border-right: 0; }
.bcal-wcol:hover { background: var(--surface-alt-2); }
.bcal-whead { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.bcal-whead strong { font-size: 1.15rem; color: var(--text-strong); letter-spacing: 0; }
.bcal-today .bcal-whead strong { color: var(--brand); }
.bcal-wlist { display: flex; flex-direction: column; gap: 6px; padding: 8px 6px; }
.bcal-witem { display: flex; flex-direction: column; gap: 1px; padding: 6px 7px; border-radius: 8px; border-left: 3px solid var(--bc); background: var(--bc-bg); font-size: 0.78rem; line-height: 1.3; min-width: 0; }
.bcal-witem b { font-size: 0.72rem; }
.bcal-witem span, .bcal-witem small { overflow: hidden; text-overflow: ellipsis; }
.bcal-witem small { color: var(--text-muted); }
.bcal-wempty { padding: 6px; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
@media (max-width: 700px) {
  .bcal-week { grid-template-columns: minmax(0, 1fr); }
  .bcal-wcol { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; }
  .bcal-whead { flex: none; width: 64px; border-bottom: 0; border-right: 1px solid var(--border); justify-content: center; }
  .bcal-wlist { flex: 1; }
  .bcal-wempty { text-align: left; }
}
.bcal-side .gd-panel-head { margin-bottom: 2px; }
.bcal-item { padding: 12px 0; border-top: 1px solid var(--border); border-radius: 6px; }
.bcal-item-head { display: flex; align-items: center; gap: 10px; }
.bcal-item-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bcal-facts { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.88rem; }
.bcal-facts li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.bcal-facts svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--text-muted); }
.bcal-item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bcal-undated { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.bcal-undated:hover strong { text-decoration: underline; }

/* A longer one-line answer in the job details (Tire Change: which tire do you want?) */
.detail-size-input.detail-text-wide { width: 100%; max-width: 420px; }

/* My Garage in MS1's layout (garage.js): the mileage row's label, each car's tire / oil / engine lines, and a gray
   dot for services that aren't tracked yet. */
.gd-vstat { display: flex; align-items: center; gap: 12px; }
.gd-vstat-label { font-weight: 700; color: var(--text-strong); }
.gd-vspecs { display: grid; gap: 6px; padding: 10px 0 2px; border-top: 1px solid var(--border); }
.gd-vspecs .gr-car-line { font-size: 0.88rem; }
.gd-vmeta .gr-link { padding: 0; border: 0; background: none; font: inherit; color: var(--link-color); cursor: pointer; }
.gd-dot-gray { background: var(--border-strong); }
/* My Garage banner: the welcome banner's garage scene (car, toolbox and lift) in the top right, in the scene's
   darker colors so the floor shadows show on the navy. */
.gd-hero { align-items: flex-start;
  --gw-floor: rgba(0, 0, 0, 0.32); --gw-car-shadow: rgba(0, 0, 0, 0.38);
  --gw-box: #C2352F; --gw-drawer: #D84A43; --gw-box-dark: #101117; --gw-tool: #8C93A1;
  --gw-lift-post: #9298A6; --gw-lift-shade: #7A8090; --gw-lift-dark: #4A4F5C; --gw-lift-yellow: #F2C230; --gw-lift-yellow-shade: #D4A21C; --gw-lift-pad: #101117; }
.gd-hero-art { position: relative; z-index: 1; flex: 0 1 540px; min-width: 0; margin: -14px -14px -14px 0; }
.gd-hero-art__svg { display: block; width: 100%; height: auto; aspect-ratio: 540 / 200; }
@media (max-width: 860px) { .gd-hero { flex-direction: column; } .gd-hero-art { order: -1; align-self: flex-end; width: 100%; max-width: 420px; margin: -14px -14px -6px 0; flex: none; } }
@media (max-width: 700px) { .gd-hero-art { max-width: 380px; margin: -10px -8px -6px 0; } }
/* My Garage: cars two to a row (one on a phone). With an odd number, the gap beside the last car holds Recent
   activity, plus the side panels on screens where those would otherwise drop below the cars (garage.js loadGarage). */
.gd-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-vfill { display: flex; flex-direction: column; gap: 16px; align-self: start; min-width: 0; }
.gd-vfill-side { display: none; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) { .gd-vfill-side { display: flex; } .gd-has-fill .gd-side { display: none; } }
@media (max-width: 640px) { .gd-vgrid { grid-template-columns: minmax(0, 1fr); } }
/* My Garage "Coming up": the next services, then everyday ones not tracked yet (garage.js comingUpPanel). */
.gd-two { align-items: start; }
.gd-coming-up .gd-att-row .badge { flex: none; }
.gd-up-label { padding: 12px 0 2px; border-top: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 700; }
.gd-up-label + .gd-att-row { border-top: none; }
.gd-up-add { flex: none; font-weight: 600; color: var(--link-color); white-space: nowrap; }
.gd-up-add:hover { text-decoration: underline; }
/* My Garage card header without the owner's own photo: name, trim, status and mileage on the left, the drawn
   car (icons.js carSvg - its shape from the body type) on the right. Their own photo replaces it once added. */
.gd-vhead { display: flex; align-items: center; gap: 14px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)) 0%, var(--surface) 75%); }
.gd-vhead-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gd-vhead-chip .gd-chip { backdrop-filter: none; -webkit-backdrop-filter: none; }
.gd-vhead-name { display: flex; flex-direction: column; min-width: 0; color: var(--text-strong); text-decoration: none; }
.gd-vhead-name strong { font-size: 1.18rem; line-height: 1.25; }
.gd-vhead-name span { font-size: 0.84rem; color: var(--text-muted); }
.gd-vhead-name:hover strong { color: var(--link-color); }
.gd-vhead .gd-vmiles { margin-left: 0; text-align: left; align-items: flex-start; }
.gd-vhead .gd-miles-btn { margin: 0 0 0 -6px; }
.gd-vhead .gd-miles-form { align-items: flex-start; }
.gd-vhead .gd-miles-form input { text-align: left; }
.gd-vhead-side { flex: 0 0 auto; width: min(46%, 190px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gd-vhead-art { display: block; width: min(46%, 190px); padding: 4px 2px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, var(--brand) 14%, var(--surface-alt)) 0%, var(--surface-alt) 70%); }
.gd-vhead-art svg { display: block; width: 100%; height: auto; aspect-ratio: 2; }
.ga-shadow { fill: #000; opacity: 0.14; }
[data-theme="dark"] .ga-shadow { opacity: 0.4; }
.gd-vhead-photo { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--link-color); font: inherit; font-size: 0.76rem; font-weight: 600; cursor: pointer; }
.gd-vhead-photo:hover { text-decoration: underline; }
.gd-vhead-photo svg { width: 13px; height: 13px; }
.gd-vhead-side .gd-vhead-art { width: 100%; }
.gd-vgrid > .gd-vcard { align-self: start; }
/* My Garage: every panel lifts and glows on hover, the same as the car cards (.gd-vcard:hover). */
#garageGrid .gd-panel { transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
#garageGrid .gd-panel:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--brand-glow), var(--shadow-sm); }
/* Car page: "Add your photo" over the drawn car (vehicle.js renderShell). */
.vehicle-art { position: relative; }
.vehicle-art .photo-change-btn { display: inline-flex; align-items: center; gap: 6px; }
.vehicle-art .photo-change-btn svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .vehicle-art .photo-actions { left: auto; bottom: 10px; } }
/* Header: a gear beside "Settings" (shell.js renderNavRight). */
.nav-settings { display: inline-flex; align-items: center; gap: 6px; }
.nav-settings-icon { display: inline-flex; }
.nav-settings-icon svg { width: 16px; height: 16px; }
/* FAQ page (/faq): topic links, then each question as an open/close <details>. */
.faq-page { max-width: 780px; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.faq-jump a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--text); text-decoration: none; background: var(--surface); }
.faq-jump a:hover { border-color: var(--brand); color: var(--link-color); }
.faq-group { margin-top: 28px; scroll-margin-top: 90px; }
.faq-group h2 { font-size: 1.2rem; margin-bottom: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: 8px; transition: border-color 0.15s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 700; color: var(--text-strong); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 1.3rem; line-height: 1; color: var(--text-muted); transition: transform 0.15s; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--link-color); }
.faq-item p { margin: 0; padding: 0 16px 16px; color: var(--text); }
.faq-item a, .faq-more a:not(.btn) { color: var(--link-color); }
.faq-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* "Skip to content": hidden until a keyboard user tabs to it (shell.js). */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 1000; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.2)); transition: top .15s; }
.skip-link:focus { top: 12px; }
main[tabindex="-1"]:focus { outline: none; }
/* A page's main heading (<h1>, for screen readers and search) drawn at the size its <h2> used to be. */
.h1-as-h2 { font-size: 1.5em; }
/* A section heading that's an <h2> (so headings go in order: h1, then h2) drawn at the size of an <h3>. */
.h2-as-h3 { font-size: 1.17em; }
.wizard-head .h2-as-h3 { margin: 0; }
/* Read by screen readers, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Car page Maintenance tab: "Change" how often a service is done, and the quick picks in that popup (vehicle.js). */
.maint-interval-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--link-color); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.maint-interval-btn:hover { color: var(--accent-600); }
.interval-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .interval-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Gradient buttons: the gradient starts at the outer edge, under the 1px clear border, and doesn't repeat - otherwise
   the gradient's lightest end showed as a thin light line down the left side. */
.btn-primary, .btn-accent, .btn-nav, .shop-cards-grid .btn-primary,
.btn-primary:hover, .btn-accent:hover, .btn-nav:hover, .shop-cards-grid .btn-primary:hover { background-origin: border-box; background-repeat: no-repeat; }
/* The banners trim what spills past their edges (the garage art) without becoming scrollable: with plain
   overflow:hidden, focusing a button or scrolling one into view could shift the banner's inside up and cut its
   top line off. */
.gd-hero, .garage-welcome { overflow: clip; }
/* Mobile Services "Before you start": the "Have ready" list was taken out, so "How it works" and More help share
   the first row - and on narrower screens the steps sit under them. */
.msp-prep { grid-template-areas: "hlabel how help" "panel panel panel"; }
@media (max-width: 820px) { .msp-prep { grid-template-areas: "hlabel help" "how how" "panel panel"; } .msp-prep-label-how { margin-top: 0; align-self: center; } }
/* Phones and narrow screens: all five "How it works" steps in one row - number on top, a short line to the next
   step, the words under it in smaller type (wrapping onto two or three lines). */
@media (max-width: 740px) {
  .msp-how { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: start; }
  .msp-how li { gap: 5px; font-size: 0.78rem; line-height: 1.25; }
  .msp-how-num { width: 26px; height: 26px; font-size: 0.85rem; }
  .msp-how li:not(:last-child)::after { top: 11.5px; left: 31px; right: -3px; }
}
@media (max-width: 380px) { .msp-how li { font-size: 0.72rem; } .msp-how { gap: 4px; } }
/* Mobile Services shop popup: the price for the customer's job sits at the top, set off from the shop details below. */
.shop-quote-top { padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
/* Mobile Services request popup: real addresses suggested under the street box (mobileService.js). */
.req-addr { position: relative; }
.req-addr .suggest-list { left: 0; right: 0; top: 66px; z-index: 5; }
.suggest-hint { padding: 8px 10px; font-size: 0.85rem; color: var(--text-muted); }
.suggest-hint strong { color: var(--text-strong); font-weight: 600; }
/* Towing "Where is it going?": places suggested under the box (mobileService.js onDestinationTyped). */
.detail-q[data-q-block="destination"] { position: relative; }
.dest-suggest { left: 0; right: 0; top: auto; margin-top: 4px; max-width: none; }
.q-required { font-weight: 600; color: var(--text-muted); font-size: 0.85em; }
/* Car page Service Log: a row opens the job's details (vehicle.js openLogDetails). */
tr.log-row { cursor: pointer; transition: background 0.12s; }
tr.log-row:hover, tr.log-row:focus-visible { background: var(--surface-alt); outline: none; }
.log-detail-facts { display: grid; gap: 2px; margin-bottom: 6px; }
.log-detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.log-detail-row span { color: var(--text-muted); flex: none; }
.log-detail-row strong { text-align: right; font-weight: 600; color: var(--text-strong); }
.log-detail-head { margin: 16px 0 6px; font-size: 0.95rem; }
.log-detail-list { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 0.9rem; }
.log-detail .modal-body, .modal-body.log-detail { max-height: min(78vh, 760px); overflow-y: auto; }
/* Terms of Service and Privacy Policy (/terms, /privacy): long-form reading - a summary box, a contents list, then numbered sections. */
.legal-page { max-width: 820px; }
.legal-eyebrow { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link-color); }
.legal-summary { margin: 22px 0 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.legal-summary ul { margin: 8px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 0 4px; margin-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.legal-toc a { color: var(--link-color); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section { padding-top: 22px; scroll-margin-top: 90px; }
.legal-section h2 { font-size: 1.2rem; margin-bottom: 8px; }
.legal-section h3 { font-size: 1rem; margin: 14px 0 6px; }
.legal-section p, .legal-section li { line-height: 1.65; color: var(--text); }
.legal-section ul { padding-left: 20px; display: grid; gap: 6px; margin: 6px 0 10px; }
.legal-section ul ul { margin-top: 6px; }
.legal-section a { color: var(--link-color); }
.legal-caps { font-size: 0.92rem; }
.legal-table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--text-muted); font-weight: 600; }
/* The "I agree to the Terms and Privacy Policy" box on every sign-up form. */
.terms-agree { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; font-size: 0.88rem; line-height: 1.45; color: var(--text); }
.terms-agree input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.terms-agree a { color: var(--link-color); }

/* Admin insights tabs (Bookings, Demand, Pros, Campaigns) */
.kpi-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-callout {
  margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface-alt); border: 1px solid var(--border); border-left: 4px solid var(--brand);
}
.admin-linkmaker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-linkmaker label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.admin-linkout { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-linkout code { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-alt); border: 1px solid var(--border); word-break: break-all; }
@media (max-width: 980px) { .kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .admin-linkmaker { grid-template-columns: 1fr; } }

/* Business reviews: Insights "Your reviews", the Home card and a completed job's review on Requests */
.br-reviews { scroll-margin-top: 90px; }
.br-top { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 28px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.br-score { display: grid; justify-items: center; gap: 4px; min-width: 110px; }
.br-big { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--text-strong); }
.br-score-stars { font-size: 1.15rem; }
.br-bars { display: grid; gap: 6px; }
.br-bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.br-track { height: 8px; border-radius: 999px; background: var(--surface-alt-2); overflow: hidden; }
.br-track span { display: block; height: 100%; border-radius: 999px; background: #F5B400; }
.br-num { text-align: right; color: var(--text); }
.br-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.br-said .br-tags { margin-top: 0; }
.br-tag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; background: var(--surface-alt); border: 1px solid var(--border); color: var(--text); }
.br-list { display: grid; gap: 10px; }
.br-empty { display: flex; gap: 14px; align-items: flex-start; }
.br-empty-stars { font-size: 1.3rem; opacity: 0.6; }
.bh-rating { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-alt); color: inherit; text-decoration: none; }
.bh-rating:hover { text-decoration: none; background: var(--surface-alt-2); }
.bh-rating > strong { font-size: 1.9rem; line-height: 1; color: var(--text-strong); }
.bh-rating > span { display: grid; gap: 2px; }
.bh-rating small, .bh-latest small { color: var(--text-muted); font-size: 0.8rem; }
.bh-latest { margin-top: 10px; padding: 0 2px; }
.bh-latest p { margin: 4px 0 0; font-size: 0.9rem; color: var(--text); }
.job-review { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-alt); border: 1px solid var(--border); color: var(--text); font-size: 0.9rem; text-decoration: none; }
.job-review:hover { text-decoration: none; border-color: var(--border-strong); }
@media (max-width: 760px) {
  .br-top { grid-template-columns: auto minmax(0, 1fr); }
  .br-said { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .br-top { grid-template-columns: 1fr; }
  .br-score { justify-items: start; grid-auto-flow: column; align-items: center; gap: 10px; }
}

/* Pay per lead: a locked request on Requests, the "respond" box, and Settings > Plan & billing */
.lead-locked [data-icon] { color: var(--tone-amber); }
.lead-gate-cost { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--surface-alt); border: 1px solid var(--border); }
.lead-gate-cost strong { font-size: 1.5rem; color: var(--text-strong); }
.lead-gate-cost span { font-size: 0.86rem; color: var(--text-muted); }
#billing { scroll-margin-top: 90px; }
.billing-more summary { cursor: pointer; font-weight: 700; padding: 6px 0; color: var(--text-strong); }
.billing-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.billing-price { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.billing-list { display: grid; }
.billing-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 70px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.billing-line:last-child { border-bottom: none; }
.billing-line > strong { text-align: right; }
@media (max-width: 520px) {
  .billing-line { grid-template-columns: 56px minmax(0, 1fr) 64px; }
  .billing-line .badge { grid-column: 2; justify-self: start; }
}
.admin-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 16px; }
.admin-prices label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.admin-money { display: flex; align-items: center; gap: 6px; }
.admin-money span { color: var(--text-muted); }
.admin-switch { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.admin-switch-text { font-weight: 400; color: var(--text-muted); }

/* A red star beside each booking question still to answer (markUnanswered in mobileService.js). */
.req-star { margin-left: 4px; color: #d92d20; font-weight: 800; }
.req-star + .q-required, .req-star + .muted { margin-left: 4px; }
[data-theme="dark"] .req-star { color: #ff7b72; }
