/* Shared UX, Navigation, Dual-Theme (Obsidian Dark & Parchment Light),
   Deterministic Account Drawer, Back-to-Top, Recently Viewed,
   Journal Reading Metrics, Footer Newsletter, and A4 Spec Sheet Print Styles */

:root {
  --ux-gold: #d7bd83;
  --ux-gold-strong: #c8a23c;
  --ux-gold-ink: #171512;
  --ux-bg-light: #f4efe4;
  --ux-surface-light: rgba(253, 250, 243, 0.96);
  --ux-surface-light-2: rgba(245, 239, 226, 0.92);
  --ux-ink-light: #171512;
  --ux-mute-light: #575145;
  --ux-line-light: rgba(138, 114, 62, 0.28);
  --ux-line-light-strong: rgba(138, 114, 62, 0.45);
  --ux-card-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ux-card-hover-duration: 210ms;
  --ux-card-glow-duration: 240ms;
  --ux-card-lift-y: -5px;
  --ux-card-hover-scale: 1.012;
  --ux-card-photo-scale: 1.03;
  --ux-card-border-hover: rgba(215, 189, 131, 0.68);
  --ux-card-shadow-hover: 0 22px 46px rgba(0, 0, 0, 0.42);
  --ux-card-inset-hover: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ===== 1. Light Theme Override (Parchment / Daylight) ===== */
html[data-theme="light"] {
  color-scheme: light !important;
  --bg: var(--ux-bg-light) !important;
  --surface: var(--ux-surface-light) !important;
  --surface2: var(--ux-surface-light-2) !important;
  --surface-2: var(--ux-surface-light-2) !important;
  --soft: var(--ux-bg-light) !important;
  --ink: var(--ux-ink-light) !important;
  --text: var(--ux-ink-light) !important;
  --mute: var(--ux-mute-light) !important;
  --muted: var(--ux-mute-light) !important;
  --line: var(--ux-line-light) !important;
  --gold: #9e7415 !important;
  --blue: #8c6510 !important;
  --gold-ink: #171512 !important;
  --alt: #1e1b16 !important;
  --alt-ink: #f7f2e6 !important;
  --chauffeur-ink: #171512 !important;
  --chauffeur-muted: #575145 !important;
  --chauffeur-gold: #9e7415 !important;
  --chauffeur-edge: rgba(138, 114, 62, 0.28) !important;
  --ux-card-border-hover: rgba(158, 116, 21, 0.58) !important;
  --ux-card-shadow-hover: 0 20px 40px rgba(48, 38, 18, 0.16) !important;
  --ux-card-inset-hover: inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  background: var(--ux-bg-light) !important;
}

html[data-theme="light"] body {
  background-color: var(--ux-bg-light) !important;
  background-image: none !important;
  color: var(--ux-ink-light) !important;
}

html[data-theme="light"] body:before,
html[data-theme="light"] body #dealers-blurred-wallpaper {
  background: url("/public/assets/hero-backdrop-mobile.webp") center center / cover no-repeat !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="light"] body:after {
  background: rgba(246, 241, 230, 0.78) !important;
}

html[data-theme="light"] body a {
  color: #7c580a;
}

html[data-theme="light"] body :is(h1, h2, h3, h4, .details h2, .sectionhead h2, .section-title, .garage-contact-copy b, .yard-contact-title, .yard-actions-title) {
  color: #171512 !important;
}

html[data-theme="light"] body :is(p, .meta, .muted, .subtitle, .section-subtitle, .desc, .detail, .detail span, .hero p, .intro p, .lead, label, .count) {
  color: #4f493e !important;
}

html[data-theme="light"] body .eyebrow,
html[data-theme="light"] body .project-kicker {
  color: #8c6510 !important;
}

html[data-theme="light"] body :is(.price, .detail-price, .related-price, .stat strong, .stat b, .admin-stat strong, .arrow) {
  color: #835d09 !important;
}

html[data-theme="light"] body > header,
html[data-theme="light"] body > header.head,
html[data-theme="light"] body > header.top,
html[data-theme="light"] body > .wrap > header.top,
html[data-theme="light"] body > header.site-header {
  background: rgba(253, 250, 243, 0.88) !important;
  background-color: rgba(253, 250, 243, 0.88) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: 0 10px 30px rgba(48, 38, 18, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.96) !important;
  color: #171512 !important;
}

html[data-theme="light"] body > header :is(.logo, .brand) {
  color: #7c580a !important;
  -webkit-text-fill-color: #7c580a !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  background-image: none !important;
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}

html[data-theme="light"] body > header :is(
  nav a, nav button, .headnav a, .headnav button, .vehicle-header-nav a,
  .back, #navToggle, .nav-toggle, #garageNavToggle, .garage-nav-toggle
),
html[data-theme="light"] body > header #nav :is(button, a, a.navlink, button.nav-contact),
html[data-theme="light"] body > header #garageSectionNav :is(button, a, a.navlink),
html[data-theme="light"] body > header #chauffeurNav :is(button, a, a.navlink) {
  color: #26221b !important;
  border-color: rgba(138, 114, 62, 0.28) !important;
}

html[data-theme="light"] body > header :is(.back, a.back, button.back),
html[data-theme="light"] body > .wrap > header.top :is(.back, a.back, button.back) {
  background: rgba(255, 255, 255, 0.94) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: #171512 !important;
  border: 1px solid rgba(138, 114, 62, 0.38) !important;
  box-shadow: 0 2px 8px rgba(48, 38, 18, 0.06) !important;
}

html[data-theme="light"] body > header :is(
  nav a:hover, nav button:hover, .headnav a:hover, .headnav button:hover,
  .vehicle-header-nav a:hover, .back:hover
),
html[data-theme="light"] body > header #nav :is(button:hover, a:hover, a.navlink:hover, button.nav-contact:hover) {
  background: rgba(158, 116, 21, 0.14) !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.45) !important;
}

html[data-theme="light"] body > header #nav button.nav-contact[aria-selected="true"] {
  color: #8c6510 !important;
  background: transparent !important;
}

html[data-theme="light"] body > header :is(
  nav button[aria-selected="true"]:not(.nav-contact),
  nav a[aria-current="page"], nav a.active, .headnav a[aria-current="page"]
) {
  background: #dfc070 !important;
  color: #171512 !important;
  border-color: rgba(158, 116, 21, 0.45) !important;
}

html[data-theme="light"] body > header #nav,
html[data-theme="light"] body > header #garageSectionNav,
html[data-theme="light"] body > header #chauffeurNav {
  background: rgba(250, 246, 237, 0.96) !important;
  border-color: rgba(138, 114, 62, 0.28) !important;
  box-shadow: 0 12px 30px rgba(40, 32, 16, 0.12) !important;
  color: #171512 !important;
}

html[data-theme="light"] body > header .account-pill {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(138, 114, 62, 0.30) !important;
}
html[data-theme="light"] body > header .account-pill span {
  color: #171512 !important;
}
html[data-theme="light"] body > header .account-pill button {
  background: rgba(158, 116, 21, 0.14) !important;
  color: #7c580a !important;
  border-color: rgba(138, 114, 62, 0.36) !important;
}

html[data-theme="light"] body .hero,
html[data-theme="light"] #home .hero,
html[data-theme="light"] body .garage-hero,
html[data-theme="light"] body .journal-hero {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #171512 !important;
}
html[data-theme="light"] body .hero h1,
html[data-theme="light"] #home .hero h1,
html[data-theme="light"] body .garage-hero h1,
html[data-theme="light"] body .journal-hero h1 {
  color: #171512 !important;
  text-shadow: none !important;
}
html[data-theme="light"] #home .hero h1 span {
  color: #8c6510 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}
html[data-theme="light"] #home .showroom-kicker {
  color: #8c6510 !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
html[data-theme="light"] body .hero p,
html[data-theme="light"] #home .hero p,
html[data-theme="light"] body .garage-hero p,
html[data-theme="light"] body .journal-hero p {
  color: #3d372d !important;
  text-shadow: none !important;
}
html:not([data-theme="light"]) #home .showroom-actions .showroom-primary,
html:not([data-theme="light"]) #home .showroom-actions .showroom-secondary {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #f5f1e6 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-theme="light"]) #home .showroom-actions .showroom-primary:hover,
  html:not([data-theme="light"]) #home .showroom-actions .showroom-secondary:hover {
    background: rgba(227, 179, 65, 0.18) !important;
    color: #fffaf0 !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
  }
}
html[data-theme="light"] #home .showroom-actions .showroom-primary,
html[data-theme="light"] #home .showroom-actions .showroom-secondary {
  background: rgba(255, 255, 255, 0.90) !important;
  color: #171512 !important;
  border: 1px solid rgba(138, 114, 62, 0.44) !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] #home .showroom-actions .showroom-primary:hover,
  html[data-theme="light"] #home .showroom-actions .showroom-secondary:hover {
    background: #ffffff !important;
    border-color: #9e7415 !important;
  }
}

/* Motoring wisdom card (#autoQuoteRail) legible in light mode */
html[data-theme="light"] #home #autoQuoteRail {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  color: #171512 !important;
  box-shadow: none !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-top,
html[data-theme="light"] #home #autoQuoteRail .auto-quote-footer {
  border-color: rgba(138, 114, 62, 0.22) !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-label {
  color: #8c6510 !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-live {
  color: #2f6338 !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-mark {
  color: rgba(140, 101, 16, 0.45) !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-text,
html[data-theme="light"] #home #autoQuoteRail .auto-quote-author {
  color: #171512 !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-source,
html[data-theme="light"] #home #autoQuoteRail .auto-quote-updated {
  color: #575145 !important;
}
html[data-theme="light"] #home #autoQuoteRail .auto-quote-next {
  background: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.38) !important;
}

html[data-theme="light"] body :is(
  .card, .panel, .dealer, .stat, .state, .empty, .error, .seller-card,
  .info, .gallery, .seller, .note, .listing, .article-item,
  .project-item, .vehicle-card, .story-card, .contact-card, .promotion-package,
  .dashboard-card, .featured-panel, .filter-panel, .search-panel,
  .vehicle-detail-card, .article-card, .editor, .contact-form,
  .package, .notice, .booking-card, .service-card, .yard-card,
  .tile, #home .tile, .tiles .tile, .showroom-vehicle-note, .journal-intro, .journal-card, .journal-entry,
  .project-intro, .project-card, .project-public-empty, #autoQuoteRail, #home #autoQuoteRail, .auto-quote-rail,
  .vehicle, .booking, .glass, .account-box, .check,
  .chauffeur-assurance, .assurance-grid article, .steps-grid article,
  .route-preview, .trip-summary, .admin-stat, .calendar-day,
  .mechanic-card, .request-hero, .contact, #home #garageContactCard.contact,
  .garage-card, .related-card, .vehicle-details, .details, .info-card, .spec-card,
  .article, .article-toc, .inline-article-photo, .journal-internal-links a,
  #contact .contact-intro-card, #contact #publicContactForm,
  #about .about-glass-card, #about .about-value-card, .account-load-error
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  color: #171512 !important;
  box-shadow: none !important;
}

html[data-theme="light"] #accDlg .account-page {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="light"] #accDlg .workspace-v2-kicker,
html[data-theme="light"] #accDlg .account-eyebrow,
html[data-theme="light"] #accDlg .ap-eyebrow,
html[data-theme="light"] #accDlg .account-tools > h4,
html[data-theme="light"] #accDlg .dealer-editor-section h4,
html[data-theme="light"] #accDlg .seller-garage-eyebrow {
  color: #8c640d !important;
}

html[data-theme="light"] #accDlg .danger-zone h3,
html[data-theme="light"] #accDlg #accDeleteAccount {
  color: #a82820 !important;
}

html[data-theme="light"] #accDlg #accDeleteAccount {
  background: rgba(168, 40, 32, 0.08) !important;
  border-color: rgba(168, 40, 32, 0.28) !important;
}

html[data-theme="light"] body :is(
  #contact .contact-intro-copy > p, #about .about-glass-card > p,
  #about .about-principle p, #about .about-value-card p, #about .about-signoff p,
  .journal-card-body p, .project-body p, .article-body, .article-body p,
  .article-body li, .booking-row, .detail-section p, .detail-ref, .detail-note,
  .dealer-cardline, .featured-note, .price-note, .hint, .sub
) {
  color: #453f35 !important;
}

html[data-theme="light"] body :is(
  .journal-card-body h2, .project-body h2, .project-intro h2, .journal-intro h2,
  .detail-heading h2, .detail-section h3, .detail-fact strong, .booking-row strong,
  th, thead, td, tbody, .spec-row b
) {
  color: #171512 !important;
}

html[data-theme="light"] body .journal-card-top,
html[data-theme="light"] body .project-card .project-article {
  background: rgba(253, 250, 243, 0.94) !important;
  color: #171512 !important;
}

html[data-theme="light"] body :is(input, select, textarea):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.36) !important;
}
html[data-theme="light"] body :is(input, textarea)::placeholder {
  color: #776f60 !important;
}
html[data-theme="light"] body select option {
  background: #fdfaf3 !important;
  color: #171512 !important;
}

html[data-theme="light"] body :is(
  .back, a.back, button.back, #yardClearFilters, .btn.ghost, .button.ghost, .ghost,
  .journal-share, .article-share, .detail-modal-close, .auto-quote-next,
  .tabs button:not(.active)
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  background: rgba(255, 255, 255, 0.94) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  color: #171512 !important;
  border: 1px solid rgba(138, 114, 62, 0.36) !important;
  box-shadow: 0 2px 8px rgba(48, 38, 18, 0.06) !important;
}

html[data-theme="light"] body #home #garageContactCard.contact > h2 {
  color: #171512 !important;
}

html[data-theme="light"] body :is(.btn.alt, .button.alt):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  background: #171512 !important;
  background-color: #171512 !important;
  color: #f7f2e6 !important;
  border-color: #171512 !important;
}

html[data-theme="light"] body :is(.btn.gold,.btn.primary,.tabs button.active,.journal-read:not(.journal-share)):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  background: #dfc070 !important;
  color: #171512 !important;
  border-color: rgba(158, 116, 21, 0.5) !important;
}

/* Keep form field wrapper divs transparent (never dark input boxes around labels) */
html body:not(:has(#app)) .field {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] body:not(:has(#app)) .field > label {
  color: #2c261d !important;
  font-weight: 700 !important;
}

html[data-theme="light"] body :is(.service-select, .vehicle-select, .route-preview a) {
  color: #835d09 !important;
  border-top-color: rgba(138, 114, 62, 0.22) !important;
}

html[data-theme="light"] body .faq-list,
html[data-theme="light"] body .faq-list details,
html[data-theme="light"] body .booking-row,
html[data-theme="light"] body .admin-booking,
html[data-theme="light"] body .admin-subsection,
html[data-theme="light"] body .admin-row {
  border-color: rgba(138, 114, 62, 0.22) !important;
}

html[data-theme="light"] body .faq-list summary,
html[data-theme="light"] body .trip-summary-grid span,
html[data-theme="light"] body .assurance-grid article > span,
html[data-theme="light"] body .steps-grid article > span {
  color: #171512 !important;
}

html[data-theme="light"] body .tag:not(.card .tag):not(#grid .tag):not(#featuredGrid .tag),
html[data-theme="light"] body #contact .contact-specialties span {
  background: rgba(158, 116, 21, 0.12) !important;
  color: #4f442c !important;
  border-color: rgba(138, 114, 62, 0.28) !important;
}

html[data-theme="light"] body .detail:not(#dlg *):not(dialog#quickViewModal *),
html[data-theme="light"] body .detail-fact:not(#dlg *):not(dialog#quickViewModal *) {
  background: rgba(246, 240, 227, 0.85) !important;
  border-color: rgba(138, 114, 62, 0.24) !important;
  color: #171512 !important;
}

html[data-theme="light"] body :is(dialog, #authDlg):not(#accDlg):not(#accActionDlg):not(#sellerEditListingDialog):not(#dlg):not(#quickViewModal) {
  background: #faf6ec !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.32) !important;
}

html[data-theme="light"] body #home #garageContactCard .garage-contact-icon {
  background: rgba(158, 116, 21, 0.12) !important;
  border-color: rgba(138, 114, 62, 0.28) !important;
  color: #7c580a !important;
}

html[data-theme="light"] body footer,
html[data-theme="light"] body footer.foot {
  border-top: 0 !important;
  border: 0 !important;
  color: #453f35 !important;
}

@media (max-width: 760px) {
  html[data-theme="light"] body :is(
    .card, .panel, .dealer, .stat, .state, .empty, .error, .tile, #home .hero, #home .tile, .tiles .tile,
    .vehicle-card, .story-card, .journal-card, .journal-entry, .journal-intro,
    .project-card, .project-intro, .project-public-empty, .contact-card, .promotion-package,
    .dashboard-card, .filter-panel, .search-panel, .featured-panel, .about-glass-card,
    .about-value-card, .contact-intro-card, .service-card, .booking-card,
    .garage-card, .gallery, .info, .seller, .specs, .related-card,
    .vehicle, .booking, .account-box, .chauffeur-assurance, .assurance-grid article,
    .steps-grid article, .route-preview, .trip-summary, .admin-stat, .calendar-day,
    .mechanic-card, .request-hero, .contact, #home #garageContactCard.contact,
    .auto-quote-rail, #home #autoQuoteRail, .showroom-vehicle-note, .check
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(#dlg *):not(dialog#quickViewModal *) {
    -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
    backdrop-filter: blur(14px) saturate(135%) !important;
    background-color: rgba(253, 250, 243, 0.84) !important;
    background-image: none !important;
    border-color: rgba(138, 114, 62, 0.28) !important;
    box-shadow: 0 10px 26px rgba(48, 38, 18, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
    color: #171512 !important;
  }
  html[data-theme="light"] body :is(header, header.head, #nav, #garageSectionNav, #chauffeurNav) {
    background: rgba(253, 250, 243, 0.99) !important;
    background-color: rgba(253, 250, 243, 0.99) !important;
    color: #171512 !important;
  }
  html[data-theme="light"] body :is(
    .btn.ghost, .button.ghost, .ghost, .back, a.back, button.back, #yardClearFilters,
    .auto-quote-next, .journal-share, .article-share, .tabs button:not(.active),
    input, select, textarea
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
    background: rgba(255, 255, 255, 0.86) !important;
    background-color: rgba(255, 255, 255, 0.86) !important;
    color: #171512 !important;
    border-color: rgba(138, 114, 62, 0.36) !important;
  }
  html[data-theme="light"] body :is(.btn.alt, .button.alt):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
    background: #171512 !important;
    background-color: #171512 !important;
    color: #f7f2e6 !important;
    border-color: #171512 !important;
  }
  html[data-theme="light"] body > header #nav :is(button, a, a.navlink, button.nav-contact),
  html[data-theme="light"] body > header #nav > .account-pill span {
    color: #171512 !important;
  }
}

/* ===== 2. Responsive Header Normalization & UX Switchers ===== */
html[data-ux="1"] body > header :is(.logo, .brand) {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  max-width: none !important;
}

html[data-ux="1"] body > header :is(nav a, nav button, .headnav a, .headnav button, .vehicle-header-nav a, .back) {
  white-space: nowrap !important;
}

.ux-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}

.ux-subnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.ux-subnav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: rgba(244, 240, 232, 0.86);
  text-decoration: none;
  font: 600 13px/1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ux-subnav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ux-subnav-link[aria-current="page"] {
  background: #dfc070;
  color: #171512 !important;
}

html[data-theme="light"] .ux-subnav-link {
  color: #2c2820;
}

html[data-theme="light"] .ux-subnav-link:hover {
  background: rgba(158, 116, 21, 0.12);
  color: #171512;
}

.ux-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ux-theme-btn,
.ux-lang-switch button,
.ux-mobile-subtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe4;
  font: 700 12px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ux-theme-btn {
  min-width: 38px;
  padding: 6px 9px;
}

.ux-theme-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.ux-lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  gap: 2px;
}

.ux-lang-switch button {
  min-height: 32px;
  min-width: 34px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.ux-lang-switch button[aria-pressed="true"] {
  background: #dfc070;
  color: #171512 !important;
}

html[data-theme="light"] .ux-theme-btn,
html[data-theme="light"] .ux-lang-switch,
html[data-theme="light"] .ux-mobile-subtoggle {
  border-color: rgba(138, 114, 62, 0.34);
  background: rgba(255, 255, 255, 0.78);
  color: #171512;
}

html[data-theme="light"] .ux-lang-switch button {
  color: #4f493e;
}

.ux-mobile-subtoggle {
  display: none;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
}

.ux-mobile-subtoggle svg {
  width: 19px;
  height: 19px;
}

/* Home & Garage inline drawer controls inside #nav / #garageSectionNav */
.ux-drawer-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 2px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] .ux-drawer-controls {
  border-top-color: rgba(138, 114, 62, 0.24);
}

/* Prevent awkward header wrapping on compact desktop & tablet (768-1180px) for index & garage */
@media (min-width: 768px) {
  html[data-ux="1"] body > header > .wrap:has(#nav) {
    width: 100% !important;
    max-width: none !important;
    column-gap: 12px !important;
  }
  html[data-ux="1"] body > header #nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 2px !important;
  }
  html[data-ux="1"] body > header #nav :is(button, a.navlink) {
    white-space: nowrap !important;
    font-size: clamp(11.5px, 0.92vw, 13.5px) !important;
    padding-inline: clamp(5px, 0.75vw, 11px) !important;
  }
  html[data-ux="1"] body > header .ux-header-controls-desktop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  html[data-ux="1"] body > header > .wrap:has(#nav) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  html[data-ux="1"] body > header > .wrap:has(#nav) > .logo {
    margin-right: auto !important;
    min-width: 0 !important;
  }
  html[data-ux="1"] body > header .ux-header-controls-desktop {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
  }
  html[data-ux="1"] body > header #nav .ux-drawer-controls,
  html[data-ux="1"] body > header #garageSectionNav .ux-drawer-controls {
    display: flex;
  }
}

/* Garage desktop header alignment with UX controls */
@media (min-width: 768px) {
  html[data-ux="1"] body > header > .wrap:has(#garageSectionNav) {
    width: 100% !important;
    max-width: none !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
  html[data-ux="1"] body > header #garageSectionNav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  html[data-ux="1"] body > header #garageSectionNav :is(button, a.navlink) {
    white-space: nowrap !important;
    font-size: clamp(11.5px, 0.92vw, 13.5px) !important;
    padding-inline: clamp(6px, 0.8vw, 12px) !important;
  }
}

/* Garage mobile header alignment (overrides garage-mobile-account-menu-adjacent-final 3-col grid) */
@media (max-width: 767px) {
  html[data-ux="1"] body > header > .wrap:has(#garageSectionNav) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 64px !important;
  }
  html[data-ux="1"] body > header > .wrap:has(#garageSectionNav) > .logo {
    margin-right: auto !important;
    min-width: 0 !important;
  }
  html[data-ux="1"] body > header > .wrap:has(#garageSectionNav) > .account-pill,
  html[data-ux="1"] body > header > .wrap:has(#garageSectionNav) > #garageNavToggle {
    flex: 0 0 auto !important;
  }
}

html[data-ux="1"] body > header,
html[data-ux="1"] body > .wrap > header.top {
  position: sticky !important;
  z-index: 1000 !important;
}

@media (max-width: 767px) {
  html[data-ux="1"] body > header nav.ux-subnav-links,
  html[data-ux="1"] body > .wrap > header.top nav.ux-subnav-links {
    display: none !important;
  }
  .ux-mobile-subtoggle {
    display: inline-flex !important;
  }
  html[data-ux="1"] body > header nav.ux-subnav-links.is-open,
  html[data-ux="1"] body > .wrap > header.top nav.ux-subnav-links.is-open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: auto !important;
    right: -1px !important;
    z-index: 1200 !important;
    width: fit-content !important;
    min-width: 185px !important;
    max-width: 85vw !important;
    max-height: min(74dvh, 420px) !important;
    margin: 0 !important;
    overflow-y: auto !important;
    padding: 8px 9px 9px !important;
    gap: 2px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(12, 12, 14, 0.88) !important;
    background-image: none !important;
    box-shadow: 0 24px 54px -10px rgba(0, 0, 0, 0.74), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  }
  html[data-ux="1"][data-theme="light"] body > header nav.ux-subnav-links.is-open,
  html[data-ux="1"][data-theme="light"] body > .wrap > header.top nav.ux-subnav-links.is-open {
    background: rgba(252, 248, 240, 0.92) !important;
    background-color: rgba(252, 248, 240, 0.92) !important;
    background-image: none !important;
    border-color: rgba(138, 114, 62, 0.34) !important;
    box-shadow: 0 24px 54px -10px rgba(48, 38, 18, 0.28), inset 0 1px 0 0 rgba(255, 255, 255, 0.90) !important;
  }
  html[data-ux="1"][data-theme="light"] body > header nav.ux-subnav-links.is-open .ux-subnav-link,
  html[data-ux="1"][data-theme="light"] body > .wrap > header.top nav.ux-subnav-links.is-open .ux-subnav-link {
    color: #171512 !important;
  }
  html[data-ux="1"] body > header nav.ux-subnav-links.is-open .ux-subnav-link,
  html[data-ux="1"] body > .wrap > header.top nav.ux-subnav-links.is-open .ux-subnav-link {
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    font-size: 13.5px !important;
    border-radius: 9px !important;
  }
  html[data-ux="1"] body > header nav.ux-subnav-links.is-open .ux-drawer-controls,
  html[data-ux="1"] body > .wrap > header.top nav.ux-subnav-links.is-open .ux-drawer-controls {
    display: flex !important;
  }
}

/* Lock fixed mobile background wallpaper to large viewport height so address-bar collapse never shifts the car photo */
@media (max-width: 1023px), (hover: none) and (pointer: coarse) {
  html[data-ux="1"] body:not(:has(#dealers-blurred-wallpaper))::before,
  html[data-ux="1"] body #dealers-blurred-wallpaper {
    position: fixed !important;
    top: -12px !important;
    left: -12px !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100vw + 24px) !important;
    height: calc(100vh + 24px) !important;
    height: calc(100lvh + 24px) !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
  }
}

/* Keep drawer utility controls tightly grouped next to each other */
html[data-ux="1"] body > header :is(#nav, #garageSectionNav, #chauffeurNav, nav.ux-subnav-links) .ux-drawer-controls .ux-controls {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin-left: 0 !important;
}

html[data-ux="1"] body > header :is(#nav, #garageSectionNav, #chauffeurNav, nav.ux-subnav-links) .ux-drawer-controls .ux-theme-btn {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 8px !important;
  gap: 4px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  justify-content: center !important;
}

html[data-ux="1"] body > header :is(#nav, #garageSectionNav, #chauffeurNav, nav.ux-subnav-links) .ux-drawer-controls .ux-theme-btn svg {
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px !important;
}

html[data-ux="1"] body > header :is(#nav, #garageSectionNav, #chauffeurNav, nav.ux-subnav-links) .ux-drawer-controls .ux-lang-switch {
  display: inline-flex !important;
  width: auto !important;
  flex: 0 0 auto !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 2px !important;
  gap: 2px !important;
  border-radius: 8px !important;
}

html[data-ux="1"] body > header :is(#nav, #garageSectionNav, #chauffeurNav, nav.ux-subnav-links) .ux-drawer-controls .ux-lang-switch button {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: 26px !important;
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  justify-content: center !important;
  line-height: 1 !important;
}

@media (max-width: 760px) {
  .ux-controls {
    gap: 4px;
  }
  .ux-theme-btn {
    min-width: 30px !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
  }
  .ux-theme-btn svg {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
  }
  .ux-lang-switch {
    padding: 2px !important;
    border-radius: 8px !important;
  }
  .ux-lang-switch button {
    min-width: 26px !important;
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 7px !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
  }
  html[data-ux="1"] body > header #nav.is-open,
  html[data-ux="1"] body > header #nav.mobile-menu-open,
  html[data-ux="1"] body > header #garageSectionNav.is-open,
  html[data-ux="1"] body > header #chauffeurNav.is-open {
    justify-content: flex-start !important;
    left: auto !important;
    right: -1px !important;
    width: fit-content !important;
    min-width: 185px !important;
    max-width: 85vw !important;
    max-height: min(74dvh, 420px) !important;
    margin: 0 !important;
    padding: 8px 9px 9px !important;
    gap: 2px !important;
  }
  html[data-ux="1"] body > header > .wrap > button#navToggle.nav-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 9px !important;
  }
  .ux-mobile-subtoggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 560px) {
  .ux-theme-btn .ux-theme-text {
    display: none;
  }
  .ux-header-right {
    gap: 8px;
  }
  html[data-ux="1"] body > header :is(.logo, .brand) {
    font-size: clamp(14px, 4vw, 18px) !important;
    padding: 4px 7px !important;
  }
  html[data-ux="1"] body > header .back:not(.ux-home-icon-btn) {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    min-height: 36px !important;
  }
  html[data-ux="1"] body > header > .wrap:has(#nav),
  html[data-ux="1"] body > header > .wrap:has(#garageSectionNav) {
    gap: 6px !important;
  }
  html[data-ux="1"] body > header .ux-header-controls-desktop .ux-lang-switch,
  html[data-ux="1"] body > header .ux-header-right > .ux-controls .ux-lang-switch {
    display: none;
  }
}

/* ===== 3. Deterministic CSS #accountMenu (Matches Admin Console 260px Sidebar) ===== */
html[data-ux="1"] #accDlg[open] {
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
}

html[data-ux="1"] #accDlg .account-dashboard-main {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  align-self: stretch !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}

html[data-ux="1"] #accDlg #accMenuToggle {
  display: none !important;
}

html[data-ux="1"] #accDlg #accountMenuBackdrop {
  display: none !important;
}

html[data-ux="1"] #accDlg #accountMenu.account-sidebar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: stretch !important;
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 18px 14px !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(12, 14, 18, 0.16) 100%) !important;
  color: #f3efe6 !important;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 40 !important;
}

html[data-ux="1"] #accDlg #accountMenu.account-sidebar:focus,
html[data-ux="1"] #accDlg #accountMenu.account-sidebar:focus-visible,
html[data-ux="1"] #accDlg .account-dashboard-main:focus,
html[data-ux="1"] #accDlg .account-dashboard-main:focus-visible {
  outline: none !important;
}

html[data-ux="1"][data-theme="light"] #accDlg #accountMenu.account-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 244, 235, 0.24) 100%) !important;
  color: #181612 !important;
  border-right-color: rgba(112, 90, 44, 0.14) !important;
}

@media (max-width: 960px) {
  html[data-ux="1"] #accDlg[open] {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html[data-ux="1"] #accDlg .account-dashboard-main {
    grid-column: auto !important;
    flex: 1 1 auto !important;
    width: 100% !important;
  }

  html[data-ux="1"] #accDlg #accMenuToggle {
    display: inline-flex !important;
  }

  html[data-ux="1"] #accDlg #accountMenuBackdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9990 !important;
    background: rgba(6, 8, 12, 0.56) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  html[data-ux="1"] #accDlg #accountMenuBackdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html[data-ux="1"] #accDlg #accountMenu.account-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: min(290px, 84vw) !important;
    min-width: 0 !important;
    max-width: min(290px, 84vw) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    z-index: 10020 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: rgba(12, 14, 18, 0.56) !important;
    color: #f3efe6 !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
    outline: none !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(24px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
    transform: translateX(-105%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease !important;
  }

  html[data-ux="1"] #accDlg #accountMenu.account-sidebar.menu-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html[data-theme="light"] #accDlg #accountMenu.account-sidebar {
    background: rgba(248, 244, 235, 0.72) !important;
    border-right-color: rgba(112, 90, 44, 0.16) !important;
    color: #181612 !important;
  }
}

/* ===== 4. Floating Back to Top Button ===== */
.ux-back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 36px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 11, 14, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #e9d298;
  font: 700 12px/1 Manrope, system-ui, sans-serif;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.2s ease, border-color 0.2s ease;
}

body:has(#publicWhatsappFab:not([hidden]), #garageFab, .whatsapp-fab, .fab):not(:has(#home[hidden])) .ux-back-to-top,
body:has(.ux-chat-fab) .ux-back-to-top,
body:has(#publicWhatsappFab, #garageFab, .whatsapp-fab, .fab):has(.ux-chat-fab) .ux-back-to-top {
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

.ux-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ux-back-to-top:hover {
  background: #E5B96F;
  color: #111114;
  border-color: #E5B96F;
}

.ux-back-to-top svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

html[data-theme="light"] .ux-back-to-top {
  background: rgba(253, 250, 243, 0.96);
  color: #7c580a;
  border-color: rgba(158, 116, 21, 0.42);
  box-shadow: 0 10px 28px rgba(48, 38, 18, 0.16);
}

html[data-theme="light"] .ux-back-to-top:hover {
  background: #E5B96F;
  color: #171512;
  border-color: #E5B96F;
}

@media (max-width: 760px) {
  .ux-back-to-top {
    right: 14px;
    padding: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .ux-back-to-top span {
    display: none;
  }
  body:has(.ux-chat-fab) .ux-back-to-top,
  body:has(#publicWhatsappFab, #garageFab, .whatsapp-fab, .fab):has(.ux-chat-fab) .ux-back-to-top {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-back-to-top {
    transition: opacity 0.1s linear !important;
    transform: none !important;
  }
}

/* ===== 5. Recently Viewed Vehicles Section & Journal Recent Reads ===== */
.ux-recent-section {
  margin: 28px 0 34px;
  padding: clamp(20px, 2.8vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(18, 23, 30, 0.36);
  background-image: none;
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="light"] .ux-recent-section {
  background: rgba(253, 250, 243, 0.92);
  border-color: rgba(138, 114, 62, 0.28);
  box-shadow: 0 12px 30px rgba(48, 38, 18, 0.08);
}

.ux-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ux-recent-head h2,
.ux-recent-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.ux-clear-history {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: 600 12px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.ux-clear-history:hover {
  border-color: #d7bd83;
}

html[data-theme="light"] .ux-clear-history {
  border-color: rgba(138, 114, 62, 0.34);
  background: rgba(255, 255, 255, 0.85);
  color: #171512;
}

.ux-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.ux-recent-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(18, 23, 30, 0.36);
  background-image: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ux-recent-card:hover {
    transform: translateY(-2px);
    background-color: rgba(22, 28, 36, 0.46);
    border-color: rgba(215, 189, 131, 0.42);
  }
}

html[data-theme="light"] .ux-recent-card {
  background: #ffffff;
  border-color: rgba(138, 114, 62, 0.26);
}

.ux-recent-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.22);
  display: block;
}

.ux-recent-thumb-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  font: 700 12px Manrope, sans-serif;
  color: var(--mute, #a8a08a);
  background: rgba(255, 255, 255, 0.04);
}

.ux-recent-body {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ux-recent-title {
  font: 600 14px/1.3 Manrope, system-ui, sans-serif;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ux-recent-price {
  font: 700 15px/1.2 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #e3b341;
}

html[data-theme="light"] .ux-recent-price {
  color: #835d09;
}

.ux-recent-meta {
  font-size: 12px;
  color: var(--mute, #a8a08a);
  font-variant-numeric: tabular-nums;
}

/* Journal Reading Time & Recent Reads (unboxed editorial typography, zero pills) */
.ux-read-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font: 600 12.5px/1.5 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #c9b784;
  margin-top: 6px;
}

html[data-theme="light"] .ux-read-meta {
  color: #7c580a;
}

.ux-journal-recent-strip {
  margin: 0 auto 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(18, 23, 30, 0.36);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="light"] .ux-journal-recent-strip {
  background: rgba(253, 250, 243, 0.94);
  border-color: rgba(138, 114, 62, 0.28);
}

.ux-journal-recent-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.ux-journal-recent-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}

.ux-journal-recent-item:hover {
  border-color: #d7bd83;
}

html[data-theme="light"] .ux-journal-recent-item {
  background: #ffffff;
  border-color: rgba(138, 114, 62, 0.25);
}

.ux-journal-recent-item strong {
  font-size: 13.5px;
  line-height: 1.35;
}

.ux-journal-recent-item span {
  font-size: 12px;
  color: var(--mute, #a8a08a);
  font-variant-numeric: tabular-nums;
}

/* ===== 6. Footer "Auto Market Briefing" Newsletter (Borderless Translucent Glass) ===== */
html[data-ux="1"] body:not(:has(#adminSidebar)) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

html[data-ux="1"] body:not(:has(#adminSidebar)) > main,
html[data-ux="1"] body:not(:has(#adminSidebar)) > .shell,
html[data-ux="1"] body:not(:has(#adminSidebar)) > .wrap {
  flex: 1 0 auto;
}

footer:not(.a4-bottom-row),
body > footer,
html[data-ux="1"] body > footer.ux-site-footer,
.ux-site-footer {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: auto 0 0 0 !important;
  padding: 28px 0 calc(114px + env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: rgba(244, 240, 232, 0.76) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  text-align: left !important;
}

html[data-theme="light"] footer:not(.a4-bottom-row),
html[data-theme="light"] body > footer,
html[data-theme="light"] body > footer.ux-site-footer,
html[data-theme="light"] .ux-site-footer {
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #453f35 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ux-footer-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

@media (min-width: 1024px) {
  .ux-footer-inner {
    width: min(1132px, calc(100% - 48px));
  }
}

@media (min-width: 1280px) {
  .ux-footer-inner {
    width: min(1260px, calc(100% - 64px));
  }
}

@media (min-width: 1536px) {
  .ux-footer-inner {
    width: min(1420px, calc(100% - 88px));
  }
}

@media (min-width: 1920px) {
  .ux-footer-inner {
    width: min(1680px, calc(100% - 120px));
  }
}

@media (min-width: 2560px) {
  .ux-footer-inner {
    width: min(2120px, calc(100% - 160px));
  }
}

@media (min-width: 3400px) {
  .ux-footer-inner {
    width: min(2840px, calc(100% - 220px));
  }
}

.ux-footer-newsletter {
  position: relative;
  padding: 24px 26px;
  border: 0 !important;
  border-radius: 24px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  transition: background-color 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] .ux-footer-newsletter {
  background: rgba(253, 250, 243, 0.42) !important;
  background-color: rgba(253, 250, 243, 0.42) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ux-nl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ux-nl-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E5B96F;
}

html[data-theme="light"] .ux-nl-kicker {
  color: #8c6510;
}

.ux-nl-copy h3 {
  margin: 6px 0;
  font-size: 22px;
  line-height: 1.2;
}

.ux-nl-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 240, 232, 0.84);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.48);
}

html[data-theme="light"] .ux-nl-copy p {
  color: #453f35;
  text-shadow: none;
}

.ux-nl-lang-mini {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font: 700 11px/1 Manrope, sans-serif;
  cursor: pointer;
}

html[data-theme="light"] .ux-nl-lang-mini {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
  color: #171512;
}

.ux-nl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ux-nl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ux-nl-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(244, 240, 232, 0.88) !important;
  font: 600 12px/1.2 Manrope, sans-serif;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ux-nl-topic:has(input:checked) {
  border-color: rgba(229, 185, 111, 0.56) !important;
  background: rgba(229, 185, 111, 0.14) !important;
  color: #f7f4ed !important;
}

.ux-nl-topic input[type="checkbox"] {
  width: 15px;
  height: 15px;
  min-height: 15px;
  padding: 0;
  margin: 0;
  accent-color: #E5B96F;
}

html[data-theme="light"] .ux-nl-topic {
  background: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.28) !important;
  color: #171512 !important;
}

html[data-theme="light"] .ux-nl-topic:has(input:checked) {
  border-color: rgba(158, 116, 21, 0.65) !important;
  background: rgba(223, 192, 112, 0.24) !important;
  color: #171512 !important;
}

.ux-nl-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ux-nl-row input[type="email"] {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: #f7f4ed !important;
  font: 500 14px/1.3 Manrope, sans-serif;
}

.ux-nl-row input[type="email"]:focus {
  border-color: rgba(229, 185, 111, 0.65) !important;
  outline: none;
}

html[data-theme="light"] .ux-nl-row input[type="email"] {
  background: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  color: #171512 !important;
}

.ux-nl-submit {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #E5B96F !important;
  color: #111114 !important;
  font: 700 13px/1 Manrope, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ux-nl-status {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 18px;
}

.ux-nl-status.is-error {
  color: #ff8a7a;
}

html[data-theme="light"] .ux-nl-status.is-error {
  color: #b42318;
}

.ux-nl-status.is-success {
  color: #7ee098;
}

html[data-theme="light"] .ux-nl-status.is-success {
  color: #1f6c36;
}

.ux-nl-confirmed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(105, 219, 124, 0.36);
  background: rgba(43, 122, 61, 0.14);
}

html[data-theme="light"] .ux-nl-confirmed {
  border-color: rgba(31, 108, 54, 0.36);
  background: rgba(31, 108, 54, 0.08);
}

.ux-nl-confirmed-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ux-nl-confirmed-actions button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  font: 600 12px/1 Manrope, sans-serif;
  cursor: pointer;
}

html[data-theme="light"] .ux-nl-confirmed-actions button {
  border-color: rgba(138, 114, 62, 0.36);
  color: #171512;
}

.ux-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--mute, #a8a08a);
}

@media (min-width: 761px) {
  .ux-footer-legal {
    padding-right: 228px;
  }
}

.ux-footer-legal .legal-footer-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0 !important;
}

.ux-footer-legal .legal-footer-links a,
.ux-footer-legal .legal-footer-links button {
  color: #E5B96F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="light"] .ux-footer-legal .legal-footer-links a,
html[data-theme="light"] .ux-footer-legal .legal-footer-links button {
  color: #7c580a;
}

.ux-footer-legal button {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

@media (max-width: 820px) {
  .ux-footer-newsletter {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  footer:not(.a4-bottom-row),
  body > footer,
  html[data-ux="1"] body > footer.ux-site-footer,
  .ux-site-footer {
    padding: 20px 0 calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .ux-footer-inner {
    width: calc(100% - 24px);
    gap: 12px;
  }
  .ux-footer-newsletter {
    padding: 16px !important;
    gap: 10px !important;
    border-radius: 24px !important;
  }
  .ux-nl-kicker {
    font-size: 9.5px;
  }
  .ux-nl-copy h3 {
    font-size: 16px !important;
    margin: 2px 0 4px !important;
  }
  .ux-nl-copy p {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }
  .ux-nl-lang-mini {
    min-height: 24px !important;
    padding: 2px 7px !important;
    font-size: 10px !important;
  }
  .ux-nl-form {
    gap: 8px;
  }
  .ux-nl-topics {
    gap: 5px;
  }
  .ux-nl-topic {
    min-height: 28px !important;
    padding: 4px 7px !important;
    gap: 5px;
    font-size: 10.5px !important;
    border-radius: 7px;
  }
  .ux-nl-topic input[type="checkbox"] {
    width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
  }
  .ux-nl-row {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 6px !important;
  }
  .ux-nl-row input[type="email"] {
    flex: 1 1 150px;
    min-width: 0;
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }
  .ux-nl-submit {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
  }
  .ux-nl-status {
    font-size: 11px;
    min-height: 0;
  }
  .ux-nl-confirmed {
    padding: 10px 12px;
    font-size: 12px;
  }
  .ux-footer-legal {
    font-size: 11.5px;
    gap: 6px;
  }
}

/* ===== 7. Printable A4 Vehicle Spec Sheet (vehicle.html) ===== */
.a4-preview-panel {
  margin: 24px 0;
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  background-image: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="light"] .a4-preview-panel {
  background: transparent;
  background-image: none;
  box-shadow: none;
}

.a4-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.a4-preview-toolbar strong,
.a4-preview-toolbar .meta {
  color: #f4f0e8;
}

html[data-theme="light"] .a4-preview-toolbar strong,
html[data-theme="light"] .a4-preview-toolbar .meta {
  color: #171512;
}

.a4-preview-scroll {
  overflow-x: auto;
  padding: 8px 0;
}

.a4-sheet {
  width: 210mm;
  min-height: 277mm;
  margin: 0 auto;
  padding: 11mm 13mm;
  box-sizing: border-box;
  background: #ffffff !important;
  color: #141311 !important;
  border: 1px solid #d7cfbe;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  font-family: Manrope, system-ui, -apple-system, sans-serif !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.a4-sheet * {
  color: #141311;
}

.a4-sheet header.a4-letterhead,
.a4-letterhead {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 10px 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  border: 0 !important;
  border-bottom: 2px solid #b88c24 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #141311 !important;
}

.a4-sheet header.a4-letterhead * {
  color: #141311 !important;
}

.a4-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.a4-brand-row img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.a4-brand-title {
  font: 700 20px/1.1 "Sora", Manrope, sans-serif !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #141311 !important;
}

.a4-brand-sub {
  font-size: 11px;
  color: #5b5446 !important;
}

.a4-ref-meta {
  text-align: right;
  font-size: 11px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: #141311 !important;
}

.a4-hero-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.a4-photo {
  width: 100%;
  height: 58mm;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #d7cfbe;
  background: #f8f5ee;
}

.a4-title-col h1,
.a4-title-col h2 {
  margin: 0 0 6px;
  font: 700 22px/1.18 "Sora", "Manrope", system-ui, sans-serif !important;
  color: #141311 !important;
}

.a4-price-box {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-left: 4px solid #b88c24;
  background: #f8f4ea !important;
}

.a4-price-box small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b5f48 !important;
}

.a4-price-box strong {
  font: 800 22px/1.2 Manrope, sans-serif !important;
  font-variant-numeric: tabular-nums;
  color: #141311 !important;
}

.a4-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.a4-spec-cell {
  padding: 8px 10px;
  border: 1px solid #e1d9c6;
  border-radius: 6px;
  background: #fcfaf4 !important;
}

.a4-spec-cell span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b5f48 !important;
  margin-bottom: 2px;
}

.a4-spec-cell strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #141311 !important;
}

.a4-section-box {
  padding: 10px 12px;
  border: 1px solid #e1d9c6;
  border-radius: 8px;
  background: #ffffff !important;
}

.a4-section-box h3 {
  margin: 0 0 5px;
  font: 700 12px/1.2 Manrope, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8c6510 !important;
}

.a4-section-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #2c2820 !important;
}

.a4-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #d7cfbe;
}

.a4-seller-lines {
  font-size: 12px;
  line-height: 1.55;
}

.a4-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid #d7cfbe;
  border-radius: 8px;
  background: #fff !important;
}

.a4-qr-wrap svg {
  width: 24mm;
  height: 24mm;
  display: block;
}

.a4-qr-wrap small {
  font-size: 9px;
  color: #5b5446 !important;
}

.a4-url-foot {
  font-size: 10px;
  color: #5b5446 !important;
  word-break: break-all;
}

/* Off-screen print host unless preview is opened */
#vehicleA4PrintHost {
  scroll-margin-top: 96px;
}

#vehicleA4PrintHost:not(.is-preview-open) {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 210mm;
  opacity: 0;
  pointer-events: none;
}

/* ===== 8. @media print Rules ===== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  html,
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #141311 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  body:before,
  body:after,
  #dealers-blurred-wallpaper,
  header:not(.a4-letterhead),
  footer:not(.a4-bottom-row),
  .no-print,
  .ux-back-to-top,
  .whatsapp-fab,
  .fab,
  .vehicle-photo-viewer,
  #relatedVehicles,
  #recentlyViewedSection,
  .a4-preview-toolbar,
  section[aria-labelledby="tp-consent-title"],
  [role="dialog"][aria-labelledby="tp-consent-title"],
  main.wrap > :not(#vehicleA4PrintHost) {
    display: none !important;
  }

  main.wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #vehicleA4PrintHost,
  #vehicleA4PrintHost:not(.is-preview-open) {
    position: static !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .a4-preview-scroll {
    overflow: visible !important;
    padding: 0 !important;
  }

  .a4-sheet {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    gap: 9px !important;
    break-inside: avoid !important;
  }

  .a4-photo {
    height: 54mm !important;
    object-fit: contain !important;
    background: #f8f5ee !important;
  }

  .a4-bottom-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 14px !important;
    align-items: center !important;
    padding-top: 8px !important;
    border-top: 1px solid #d7cfbe !important;
    break-inside: avoid !important;
  }

  .a4-qr-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    break-inside: avoid !important;
  }

  .a4-qr-wrap svg {
    width: 22mm !important;
    height: 22mm !important;
    display: block !important;
  }
}

/* ===== 9. Inventory Fuel Efficiency Class & Side-by-Side Comparison ===== */
html[data-ux="1"] .filters {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: center !important;
}

html[data-ux="1"] .filters:has(#efficiencyClass) {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

html[data-ux="1"] .filters #q,
html[data-ux="1"] .filters input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-ux="1"] .filters select,
html[data-ux="1"] .filters .ux-saved-filter,
html[data-ux="1"] .filters .ux-compare-filter,
html[data-ux="1"] .filters #clearFilters {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 981px) {
  html[data-ux="1"] .filters:has(#savedOnlyFilter) #q {
    grid-column: span 2 !important;
  }
  html[data-ux="1"] .filters:has(#savedOnlyFilter) #efficiencyClass,
  html[data-ux="1"] .filters:has(#savedOnlyFilter) #max,
  html[data-ux="1"] .filters:has(#savedOnlyFilter) #sort,
  html[data-ux="1"] .filters:has(#savedOnlyFilter) .ux-saved-filter,
  html[data-ux="1"] .filters:has(#savedOnlyFilter) .ux-compare-filter,
  html[data-ux="1"] .filters:has(#savedOnlyFilter) #clearFilters {
    grid-column: span 2 !important;
  }
}

@media (max-width: 980px) {
  html[data-ux="1"] .filters,
  html[data-ux="1"] .filters:has(#efficiencyClass) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html[data-ux="1"] .filters:has(#savedOnlyFilter) #q {
    grid-column: 1 / -1 !important;
  }
}

.eff-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font: 500 12px/1.35 Manrope, system-ui, sans-serif;
  color: rgba(244, 240, 232, 0.78);
  font-variant-numeric: tabular-nums;
}

.eff-line strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.eff-line[data-eff="A"] strong,
.eff-line[data-eff="B"] strong {
  color: #7ee098;
}

.eff-line[data-eff="C"] strong,
.eff-line[data-eff="D"] strong {
  color: #e3b341;
}

.eff-line[data-eff="E"] strong,
.eff-line[data-eff="F"] strong,
.eff-line[data-eff="G"] strong {
  color: #f0a875;
}

html[data-theme="light"] .eff-line {
  border-top-color: rgba(138, 114, 62, 0.22);
  color: #4f493e;
}

html[data-theme="light"] .eff-line[data-eff="A"] strong,
html[data-theme="light"] .eff-line[data-eff="B"] strong {
  color: #166534;
}

html[data-theme="light"] .eff-line[data-eff="C"] strong,
html[data-theme="light"] .eff-line[data-eff="D"] strong {
  color: #835d09;
}

html[data-theme="light"] .eff-line[data-eff="E"] strong,
html[data-theme="light"] .eff-line[data-eff="F"] strong,
html[data-theme="light"] .eff-line[data-eff="G"] strong {
  color: #9a3412;
}

#featuredGrid.featured-grid .eff-line {
  margin-top: 5px;
  padding-top: 5px;
  font-size: 10px;
}

.card-actions-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
  margin-top: auto;
}

.card-actions-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.card-actions-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .card-actions-footer {
  border-top-color: rgba(138, 114, 62, 0.16);
}

.card-actions-bar .inventory-quickview-button,
.card-actions-bar .inventory-share-button,
.card-actions-bar .inventory-save-button,
.card-actions-bar .inventory-compare-button,
.card-actions-bar .inventory-alert-button {
  width: 100% !important;
  margin: 0 !important;
  min-height: 40px;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: #f4f0e8 !important;
  font: 600 12px/1.2 Manrope, system-ui, sans-serif !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.card-actions-bar .inventory-quickview-button,
.card-actions-bar .inventory-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}

.card-actions-bar .inventory-quickview-button {
  border-color: rgba(215, 189, 131, 0.42) !important;
  background: rgba(255, 255, 255, 0.085) !important;
  color: #f6ead0 !important;
  font-weight: 700 !important;
}

.card-actions-bar .inventory-share-button {
  padding: 8px 8px !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: #f4f0e8 !important;
}

.card-actions-bar .inventory-quickview-button svg,
.card-actions-bar .inventory-share-button svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.card-actions-bar .inventory-alert-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border-color: rgba(215, 189, 131, 0.34) !important;
  background: rgba(215, 189, 131, 0.09) !important;
  color: #f1dfb5 !important;
}

.card-actions-bar .inventory-alert-button svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.card-actions-bar .inventory-compare-button[aria-pressed="true"],
.card-actions-bar .inventory-save-button[aria-pressed="true"] {
  background: #dfc070 !important;
  border-color: rgba(223, 190, 111, 0.85) !important;
  color: #171512 !important;
}

.card-actions-bar .inventory-alert-button[aria-pressed="true"] {
  background: rgba(70, 196, 127, 0.16) !important;
  border-color: rgba(110, 224, 158, 0.56) !important;
  color: #a9f0c4 !important;
}

@media (hover: hover) and (pointer: fine) {
  .card-actions-bar .inventory-quickview-button:hover,
  .card-actions-bar .inventory-share-button:hover {
    border-color: rgba(223, 190, 111, 0.82) !important;
    background: rgba(215, 189, 131, 0.20) !important;
    color: #fff6df !important;
  }
  .card-actions-bar .inventory-save-button:hover,
  .card-actions-bar .inventory-compare-button:hover {
    border-color: rgba(215, 189, 131, 0.65) !important;
    background: rgba(215, 189, 131, 0.16) !important;
  }
  .card-actions-bar .inventory-alert-button:hover {
    border-color: rgba(223, 190, 111, 0.72) !important;
    background: rgba(215, 189, 131, 0.20) !important;
    color: #fff6df !important;
  }
  .card-actions-bar .inventory-alert-button[aria-pressed="true"]:hover {
    background: rgba(70, 196, 127, 0.24) !important;
    border-color: rgba(110, 224, 158, 0.75) !important;
  }
  .card-actions-bar .inventory-compare-button[aria-pressed="true"]:hover,
  .card-actions-bar .inventory-save-button[aria-pressed="true"]:hover {
    background: #e6cb82 !important;
  }
}

html[data-theme="light"] .card-actions-bar .inventory-quickview-button {
  background: #ffffff !important;
  border-color: rgba(158, 116, 21, 0.48) !important;
  color: #5c3f06 !important;
}

html[data-theme="light"] .card-actions-bar .inventory-share-button {
  background: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  color: #171512 !important;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .card-actions-bar .inventory-quickview-button:hover,
  html[data-theme="light"] .card-actions-bar .inventory-share-button:hover {
    background: rgba(223, 190, 111, 0.22) !important;
    border-color: rgba(158, 116, 21, 0.75) !important;
    color: #171512 !important;
  }
}

html[data-theme="light"] .card-actions-bar .inventory-save-button,
html[data-theme="light"] .card-actions-bar .inventory-compare-button {
  background: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  color: #171512 !important;
}

html[data-theme="light"] .card-actions-bar .inventory-alert-button {
  background: rgba(223, 190, 111, 0.16) !important;
  border-color: rgba(158, 116, 21, 0.42) !important;
  color: #6b4b08 !important;
}

html[data-theme="light"] .card-actions-bar .inventory-compare-button[aria-pressed="true"],
html[data-theme="light"] .card-actions-bar .inventory-save-button[aria-pressed="true"] {
  background: #dfc070 !important;
  border-color: rgba(158, 116, 21, 0.6) !important;
  color: #171512 !important;
}

html[data-theme="light"] .card-actions-bar .inventory-alert-button[aria-pressed="true"] {
  background: rgba(22, 101, 52, 0.12) !important;
  border-color: rgba(22, 101, 52, 0.45) !important;
  color: #14532d !important;
}

#featuredGrid.featured-grid .card-actions-bar {
  padding: 0 7px 7px;
  gap: 5px;
}

#featuredGrid.featured-grid .card-actions-top {
  gap: 4px;
}

#featuredGrid.featured-grid .card-actions-bar .inventory-quickview-button,
#featuredGrid.featured-grid .card-actions-bar .inventory-share-button {
  min-height: 32px;
  padding: 5px 5px !important;
  gap: 4px;
  font-size: 10px !important;
}

#featuredGrid.featured-grid .card-actions-bar .inventory-quickview-button svg,
#featuredGrid.featured-grid .card-actions-bar .inventory-share-button svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
}

#featuredGrid.featured-grid .card-actions-bar .inventory-save-button,
#featuredGrid.featured-grid .card-actions-bar .inventory-compare-button {
  min-height: 34px;
  padding: 5px 6px !important;
  font-size: 10.5px !important;
}

#featuredGrid.featured-grid .card-actions-bar .inventory-alert-button {
  min-height: 32px;
  padding: 5px 6px !important;
  font-size: 10.5px !important;
}

@media (max-width: 560px) {
  .eff-line {
    margin-top: 6px;
    padding-top: 6px;
    gap: 2px 5px;
    font-size: 11px;
    line-height: 1.3;
  }
  .card-actions-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 0 7px 8px;
    gap: 5px;
  }
  .card-actions-top {
    gap: 5px;
  }
  .card-actions-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding-top: 5px;
  }
  .card-actions-bar .inventory-quickview-button,
  .card-actions-bar .inventory-share-button {
    min-height: 34px;
    padding: 5px 6px !important;
    gap: 3px;
    font-size: 10px !important;
    text-overflow: clip;
  }
  .card-actions-bar .inventory-quickview-button svg,
  .card-actions-bar .inventory-share-button svg {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
  }
  .card-actions-bar .inventory-save-button,
  .card-actions-bar .inventory-compare-button {
    min-height: 34px;
    padding: 5px 4px !important;
    font-size: 10.5px !important;
    text-overflow: clip;
  }
  .card-actions-bar .inventory-alert-button {
    min-height: 34px;
    padding: 5px 4px !important;
    gap: 3px;
    font-size: 10px !important;
    text-overflow: clip;
  }
  .card-actions-bar .inventory-alert-button svg {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
  }
}

/* Floating Side-by-Side Comparison Dock */
.ux-compare-dock {
  position: fixed;
  left: 20px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(720px, calc(100vw - 110px));
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(215, 189, 131, 0.45);
  background: rgba(16, 18, 22, 0.94);
  color: #f4f0e8;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ux-compare-dock[hidden] {
  display: none !important;
}

html[data-theme="light"] .ux-compare-dock {
  background: rgba(253, 250, 243, 0.98);
  color: #171512;
  border-color: rgba(138, 114, 62, 0.46);
  box-shadow: 0 14px 36px rgba(48, 38, 18, 0.18);
}

.ux-compare-dock-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.ux-compare-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ux-compare-thumbs img {
  width: 38px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(215, 189, 131, 0.35);
  background: #1c1e22;
}

.ux-compare-dock-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-compare-dock-text strong {
  font: 700 13px/1.2 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.ux-compare-dock-text span {
  font-size: 11.5px;
  color: rgba(244, 240, 232, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .ux-compare-dock-text span {
  color: #5b5446;
}

.ux-compare-dock-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ux-compare-open-btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: #dfc070;
  color: #171512 !important;
  font: 700 12.5px/1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ux-compare-clear-btn {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  font: 600 12px/1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

html[data-theme="light"] .ux-compare-clear-btn {
  border-color: rgba(138, 114, 62, 0.36);
}

@media (max-width: 680px) {
  .ux-compare-dock {
    left: 12px;
    width: calc(100vw - 82px);
    padding: 7px 10px;
    gap: 8px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .ux-compare-thumbs {
    display: none;
  }
  .ux-compare-open-btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .ux-compare-clear-btn {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 11px;
  }
}

/* Side-by-Side Comparison Modal */
dialog#compareModal {
  width: min(1080px, calc(100vw - 32px));
  max-width: 1080px;
  max-height: calc(100dvh - 36px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(215, 189, 131, 0.35);
  border-radius: 18px;
  background: #111317;
  color: #f4f0e8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

dialog#compareModal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
}

html[data-theme="light"] dialog#compareModal {
  background: #fbf8f1;
  color: #171512;
  border-color: rgba(138, 114, 62, 0.38);
}

.ux-compare-modal-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 38px);
}

.ux-compare-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .ux-compare-modal-head {
  border-bottom-color: rgba(138, 114, 62, 0.24);
}

.ux-compare-modal-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.ux-compare-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ux-compare-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .ux-compare-close {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
}

.ux-compare-scroll {
  overflow: auto;
  padding: 18px 22px 24px;
}

.ux-compare-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ux-compare-table th,
.ux-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
  vertical-align: top;
  font-size: 13.5px;
}

html[data-theme="light"] .ux-compare-table th,
html[data-theme="light"] .ux-compare-table td {
  border-bottom-color: rgba(138, 114, 62, 0.20);
}

.ux-compare-table th.ux-compare-rowhead {
  width: 150px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(244, 240, 232, 0.65);
}

html[data-theme="light"] .ux-compare-table th.ux-compare-rowhead {
  color: #6b5f48;
}

.ux-compare-col-head {
  min-width: 190px;
}

.ux-compare-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1c20;
  margin-bottom: 10px;
  display: block;
}

.ux-compare-title {
  display: block;
  font: 700 15px/1.25 Manrope, system-ui, sans-serif;
  margin-bottom: 8px;
}

.ux-compare-col-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ux-compare-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  text-decoration: none;
  font: 600 12px/1 Manrope, sans-serif;
  cursor: pointer;
}

html[data-theme="light"] .ux-compare-mini-btn {
  border-color: rgba(138, 114, 62, 0.32);
  background: #ffffff;
}

.ux-compare-best {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #7ee098;
}

html[data-theme="light"] .ux-compare-best {
  color: #166534;
}

.ux-compare-eff-value strong {
  font-weight: 700;
}

.ux-compare-eff-value[data-eff="A"] strong,
.ux-compare-eff-value[data-eff="B"] strong {
  color: #7ee098;
}

.ux-compare-eff-value[data-eff="C"] strong,
.ux-compare-eff-value[data-eff="D"] strong {
  color: #e3b341;
}

.ux-compare-eff-value[data-eff="E"] strong,
.ux-compare-eff-value[data-eff="F"] strong,
.ux-compare-eff-value[data-eff="G"] strong {
  color: #f0a875;
}

html[data-theme="light"] .ux-compare-eff-value[data-eff="A"] strong,
html[data-theme="light"] .ux-compare-eff-value[data-eff="B"] strong {
  color: #166534;
}

html[data-theme="light"] .ux-compare-eff-value[data-eff="C"] strong,
html[data-theme="light"] .ux-compare-eff-value[data-eff="D"] strong {
  color: #835d09;
}

html[data-theme="light"] .ux-compare-eff-value[data-eff="E"] strong,
html[data-theme="light"] .ux-compare-eff-value[data-eff="F"] strong,
html[data-theme="light"] .ux-compare-eff-value[data-eff="G"] strong {
  color: #9a3412;
}

@media print {
  .ux-compare-dock,
  dialog#compareModal {
    display: none !important;
  }
}

/* Comparison modal entrance & Compare button bounce */
@keyframes uxCompareModalIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes uxCompareBackdropIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes uxCompareBtnBounce {
  0% {
    transform: scale(1) translateY(0);
  }
  30% {
    transform: scale(1.07, 1.07) translateY(-2px);
  }
  58% {
    transform: scale(0.96, 0.96) translateY(0);
  }
  80% {
    transform: scale(1.03, 1.03) translateY(-1px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes uxCompareDockIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ux-compare-dock:not([hidden]) {
  animation: uxCompareDockIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

dialog#compareModal[open] {
  animation: uxCompareModalIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

dialog#compareModal[open]::backdrop {
  animation: uxCompareBackdropIn 0.22s ease both !important;
}

.card-actions-bar .inventory-compare-button.is-compare-bouncing,
.card-actions-bar .inventory-compare-check.is-compare-bouncing,
.inventory-compare-button.is-compare-bouncing,
.inventory-compare-check.is-compare-bouncing,
#detailCompareVehicle.is-compare-bouncing,
.ux-compare-open-btn.is-compare-bouncing {
  transform-origin: center;
  animation: uxCompareBtnBounce 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.ux-saved-filter,
.ux-compare-filter {
  grid-column: span 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 183, 132, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: #f4f0e8;
  font: 600 13.5px/1.25 Manrope, system-ui, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ux-saved-filter input[type="checkbox"],
.ux-compare-filter input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #d7bd83;
  cursor: pointer;
  border-radius: 4px !important;
}

.ux-saved-filter.is-active,
.ux-compare-filter.is-active {
  border-color: rgba(223, 190, 111, 0.85);
  background: rgba(215, 189, 131, 0.16);
  color: #f7e6bd;
}

.ux-saved-filter > #savedOnlyFilterText {
  flex: 1 1 auto;
  min-width: 0;
}

.ux-saved-count-indicator {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid rgba(201, 183, 132, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 240, 232, 0.84);
  font: 700 11.5px/1.15 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.22s ease;
}

.ux-saved-count-indicator[data-has-saved="true"] {
  border-color: rgba(223, 190, 111, 0.72);
  background: rgba(215, 189, 131, 0.22);
  color: #f6df9d;
}

.ux-saved-count-indicator.is-count-updated {
  animation: uxSavedCountPulse 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes uxSavedCountPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

html[data-theme="light"] .ux-saved-filter,
html[data-theme="light"] .ux-compare-filter {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(138, 114, 62, 0.34);
  color: #171512;
}

html[data-theme="light"] .ux-saved-filter input[type="checkbox"],
html[data-theme="light"] .ux-compare-filter input[type="checkbox"] {
  accent-color: #9e7415;
}

html[data-theme="light"] .ux-saved-filter.is-active,
html[data-theme="light"] .ux-compare-filter.is-active {
  border-color: rgba(158, 116, 21, 0.72);
  background: rgba(223, 190, 111, 0.24);
  color: #171512;
}

html[data-theme="light"] .ux-saved-count-indicator {
  border-color: rgba(138, 114, 62, 0.32);
  background: rgba(138, 114, 62, 0.1);
  color: #54472c;
}

html[data-theme="light"] .ux-saved-count-indicator[data-has-saved="true"] {
  border-color: rgba(158, 116, 21, 0.7);
  background: rgba(199, 159, 62, 0.22);
  color: #5c4004;
}

@media (max-width: 980px) {
  .ux-saved-filter,
  .ux-compare-filter,
  html[data-ux="1"] .filters #clearFilters {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 760px) {
  html[data-ux="1"] :is(.filters, .tools, .yard-inventory-tools) :is(input, select, button, .back, .btn) {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 7px 9px !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  html[data-ux="1"] :is(.filters, .tools, .yard-inventory-tools) select {
    padding-right: 22px !important;
    text-overflow: ellipsis !important;
  }
  html[data-ux="1"] .filters .ux-saved-filter,
  html[data-ux="1"] .filters .ux-compare-filter {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 5px 8px !important;
    gap: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    border-radius: 10px !important;
  }
  html[data-ux="1"] .filters .ux-saved-filter > span:not(.ux-saved-count-indicator),
  html[data-ux="1"] .filters .ux-compare-filter > span {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }
  html[data-ux="1"] .filters .ux-saved-count-indicator,
  html[data-ux="1"] .filters .ux-saved-count-indicator span {
    white-space: nowrap !important;
  }
  html[data-ux="1"] .filters .ux-saved-count-indicator {
    padding: 2px 6px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 390px) {
  html[data-ux="1"] :is(.filters, .tools, .yard-inventory-tools) :is(input, select, button, .back, .btn) {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
  html[data-ux="1"] :is(.filters, .tools, .yard-inventory-tools) select {
    padding-right: 20px !important;
  }
  html[data-ux="1"] .filters .ux-saved-filter,
  html[data-ux="1"] .filters .ux-compare-filter {
    font-size: 11px !important;
    padding: 4px 7px !important;
  }
  html[data-ux="1"] .filters .ux-saved-count-indicator {
    font-size: 10px !important;
    padding: 2px 5px !important;
  }
}

.ux-compare-empty {
  padding: 28px 22px 32px;
  text-align: center;
  color: rgba(244, 240, 232, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

html[data-theme="light"] .ux-compare-empty {
  color: #5b5446;
}

@media (prefers-reduced-motion: reduce) {
  .ux-compare-dock:not([hidden]),
  dialog#compareModal[open],
  dialog#compareModal[open]::backdrop,
  .card-actions-bar .inventory-compare-button.is-compare-bouncing,
  .card-actions-bar .inventory-compare-check.is-compare-bouncing,
  .inventory-compare-button.is-compare-bouncing,
  .inventory-compare-check.is-compare-bouncing,
  #detailCompareVehicle.is-compare-bouncing,
  .ux-compare-open-btn.is-compare-bouncing {
    animation: none !important;
  }
}

.ux-compare-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(223, 190, 111, 0.72);
  background: #dfc070;
  color: #171512 !important;
  font: 700 12.5px/1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.ux-compare-pdf-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (hover: hover) and (pointer: fine) {
  .ux-compare-pdf-btn:not(:disabled):hover {
    filter: brightness(1.06);
  }
}

@media (max-width: 560px) {
  .ux-compare-modal-head {
    flex-wrap: wrap;
    padding: 14px 14px;
  }
  .ux-compare-modal-head h2 {
    font-size: 18px;
  }
  .ux-compare-head-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .ux-compare-pdf-btn {
    min-height: 36px;
    padding: 6px 11px;
    font-size: 11.5px;
  }
}

/* Saved-to-account card indicator badge and subtle highlight */
.card.is-saved {
  border-color: rgba(223, 190, 111, 0.72) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26) !important;
}

html[data-theme="light"] .card.is-saved {
  border-color: rgba(158, 116, 21, 0.76) !important;
  box-shadow: 0 12px 26px rgba(48, 38, 18, 0.12) !important;
}

.photo .saved-badge {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(223, 190, 111, 0.85);
  background: rgba(16, 18, 20, 0.88);
  color: #f3d68a;
  font: 700 10.5px/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

html[data-theme="light"] .photo .saved-badge {
  background: rgba(255, 250, 238, 0.96);
  border-color: rgba(158, 116, 21, 0.65);
  color: #7c5609;
  box-shadow: 0 4px 10px rgba(48, 38, 18, 0.16);
}

#featuredGrid.featured-grid .photo .saved-badge {
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  font-size: 9.5px;
}

@media (max-width: 560px) {
  .photo .saved-badge {
    left: 6px;
    bottom: 6px;
    padding: 3px 6px;
    font-size: 9.5px;
  }
}

/* Centered Price Alerts Modal */
#detailPriceAlertBtn[aria-pressed="true"] {
  border-color: rgba(110, 224, 158, 0.56) !important;
  background: rgba(70, 196, 127, 0.14) !important;
  color: #a9f0c4 !important;
}

html[data-theme="light"] #detailPriceAlertBtn[aria-pressed="true"] {
  border-color: rgba(22, 101, 52, 0.45) !important;
  background: rgba(22, 101, 52, 0.10) !important;
  color: #14532d !important;
}

dialog#priceAlertModal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 28px));
  max-width: min(440px, calc(100vw - 28px));
  height: auto;
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid rgba(215, 189, 131, 0.38);
  border-radius: 18px;
  background: rgba(17, 19, 23, 0.96);
  color: #f4f0e8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: auto;
}

dialog#priceAlertModal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
}

dialog#priceAlertModal[open] {
  animation: uxCompareModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

dialog#priceAlertModal[open]::backdrop {
  animation: uxCompareBackdropIn 0.2s ease both !important;
}

@media (max-width: 700px) {
  dialog#priceAlertModal {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(440px, calc(100vw - 28px)) !important;
    max-width: min(440px, calc(100vw - 28px)) !important;
    height: auto !important;
    max-height: calc(100dvh - 36px) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(215, 189, 131, 0.38) !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }
}

html[data-theme="light"] dialog#priceAlertModal {
  background: #fbf8f1 !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.42) !important;
  box-shadow: 0 24px 64px rgba(48, 38, 18, 0.24) !important;
}

.ux-price-alert-shell {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ux-price-alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ux-price-alert-head .eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dfbe6f;
}

html[data-theme="light"] .ux-price-alert-head .eyebrow {
  color: #8a6412;
}

.ux-price-alert-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.ux-price-alert-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .ux-price-alert-close {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
}

.ux-price-alert-car {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(215, 189, 131, 0.24);
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .ux-price-alert-car {
  background: rgba(223, 190, 111, 0.12);
  border-color: rgba(138, 114, 62, 0.28);
}

.ux-price-alert-car img {
  width: 64px;
  height: 48px;
  flex: 0 0 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1c20;
}

.ux-price-alert-car-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ux-price-alert-car-meta strong {
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux-price-alert-car-meta span {
  font-size: 13px;
  font-weight: 700;
  color: #dfbe6f;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .ux-price-alert-car-meta span {
  color: #8a6412;
}

.ux-price-alert-copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.78);
}

html[data-theme="light"] .ux-price-alert-copy {
  color: #5b5446;
}

.ux-price-alert-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ux-price-alert-form label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.76);
}

html[data-theme="light"] .ux-price-alert-form label {
  color: #5b5446;
}

.ux-price-alert-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f0e8;
  font: 500 14px/1.3 Manrope, system-ui, sans-serif;
}

.ux-price-alert-form input[type="email"]:focus {
  outline: none;
  border-color: #dfbe6f;
  box-shadow: inset 0 1px 0 rgba(223, 190, 111, 0.45);
}

html[data-theme="light"] .ux-price-alert-form input[type="email"] {
  background: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.36) !important;
}

.ux-price-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.ux-price-alert-submit {
  flex: 1 1 180px;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #dfc070;
  color: #171512 !important;
  font: 700 13.5px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.ux-price-alert-remove {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  font: 600 12.5px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

html[data-theme="light"] .ux-price-alert-remove {
  border-color: rgba(138, 114, 62, 0.36);
}

.ux-price-alert-status {
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.4;
  border: 1px solid rgba(70, 196, 127, 0.45);
  background: rgba(70, 196, 127, 0.12);
  color: #a9f0c4;
}

.ux-price-alert-status.is-error {
  border-color: rgba(240, 123, 110, 0.55);
  background: rgba(240, 123, 110, 0.12);
  color: #f7b8b1;
}

html[data-theme="light"] .ux-price-alert-status {
  color: #14532d;
}

html[data-theme="light"] .ux-price-alert-status.is-error {
  color: #991b1b;
}

@media print {
  dialog#priceAlertModal {
    display: none !important;
  }
}

/* ===== 10. Interactive OpenStreetMap Explorer & Multi-Turn Gemini Advisor Chat ===== */

.ux-map-section {
  margin: 28px 0 32px;
  padding: clamp(20px, 2.8vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 20px;
  background: rgba(18, 23, 30, 0.36);
  background-image: none;
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="light"] .ux-map-section {
  background: rgba(253, 250, 243, 0.94);
  border-color: rgba(138, 114, 62, 0.32);
  box-shadow: 0 12px 30px rgba(48, 38, 18, 0.09);
}

.ux-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ux-map-head h2 {
  margin: 4px 0 4px;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.15;
}

.ux-map-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted, #aaa18e);
}

.ux-map-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.ux-map-controls input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 183, 132, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 13.5px;
}

@media (max-width: 640px) {
  .ux-map-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ux-map-controls input[type="search"] {
    grid-column: 1 / -1;
    min-height: 40px;
    font-size: 13px !important;
  }
  .ux-map-controls .ux-map-btn {
    width: 100%;
    min-height: 40px;
  }
}

html[data-theme="light"] .ux-map-controls input[type="search"] {
  background: #ffffff;
  border-color: rgba(138, 114, 62, 0.36);
  color: #171512;
}

.ux-map-btn {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(223, 190, 111, 0.72);
  background: #dfc070;
  color: #171512 !important;
  font: 700 13px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.ux-map-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: inherit !important;
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .ux-map-btn.ghost {
  background: #ffffff;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.34);
}

.ux-map-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ux-map-chip {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 183, 132, 0.34);
  background: rgba(201, 183, 132, 0.1);
  color: inherit;
  font: 600 12px/1.1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

html[data-theme="light"] .ux-map-chip {
  background: rgba(223, 190, 111, 0.16);
  color: #4f3a08;
  border-color: rgba(138, 114, 62, 0.36);
}

.ux-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.ux-map-canvas {
  width: 100%;
  height: 360px;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 183, 132, 0.3);
  background: #141619;
  display: grid;
  place-items: center;
  color: rgba(244, 240, 232, 0.72);
  font-size: 13px;
}

html[data-theme="light"] .ux-map-canvas {
  background: #f1ece0;
  color: #5b5446;
}

.ux-map-canvas.leaflet-container {
  display: block;
  isolation: isolate;
  z-index: 1;
  font-family: Manrope, system-ui, sans-serif;
}

.ux-map-canvas .leaflet-popup-content-wrapper {
  background: #171a20;
  color: #f4f0e8;
  border: 1px solid rgba(215, 189, 131, 0.42);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.ux-map-canvas .leaflet-popup-tip {
  background: #171a20;
}

.ux-map-canvas .leaflet-popup-content {
  margin: 10px 13px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #f4f0e8;
}

.ux-map-canvas .leaflet-popup-content strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
}

.ux-map-canvas .leaflet-popup-content a {
  display: inline-block;
  margin-top: 5px;
  color: #e3b341;
  font-weight: 700;
  text-decoration: underline;
}

html[data-theme="light"] .ux-map-canvas .leaflet-popup-content-wrapper,
html[data-theme="light"] .ux-map-canvas .leaflet-popup-tip {
  background: #ffffff;
  color: #171512;
  border-color: rgba(138, 114, 62, 0.34);
}

html[data-theme="light"] .ux-map-canvas .leaflet-popup-content,
html[data-theme="light"] .ux-map-canvas .leaflet-popup-content strong {
  color: #171512;
}

html[data-theme="light"] .ux-map-canvas .leaflet-popup-content a {
  color: #7c5609;
}

.ux-map-places {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ux-map-place-card {
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 23, 30, 0.36);
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ux-map-place-card strong {
  font-size: 13.5px;
  line-height: 1.3;
}

.ux-map-place-card span,
.ux-map-place-card small {
  font-size: 12px;
  color: var(--muted, #aaa18e);
}

html[data-theme="light"] .ux-map-place-card {
  background: #ffffff;
  border-color: rgba(138, 114, 62, 0.28);
}

@media (max-width: 860px) {
  .ux-map-grid {
    grid-template-columns: 1fr;
  }
  .ux-map-canvas {
    height: 300px;
    min-height: 280px;
  }
  .ux-map-places {
    max-height: 220px;
  }
}

/* Multi-turn Gemini Auto Advisor Chat */
.ux-chat-fab {
  position: fixed !important;
  left: auto !important;
  right: 20px !important;
  bottom: calc(19px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 955 !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: max-content !important;
  flex: none !important;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(229, 185, 111, 0.65);
  background: #E5B96F;
  color: #111114;
  font: 700 12.5px/1 Manrope, system-ui, sans-serif;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

body:has(#publicWhatsappFab:not([hidden]), #garageFab, .whatsapp-fab, .fab):not(:has(#home[hidden])) .ux-chat-fab {
  right: 76px !important;
  bottom: calc(19px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 760px) {
  .ux-chat-fab {
    right: 14px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    height: 38px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    font-size: 11.5px !important;
  }
  .ux-chat-fab svg {
    width: 15px !important;
    height: 15px !important;
    flex-basis: 15px !important;
  }
  body:has(#publicWhatsappFab:not([hidden]), #garageFab, .whatsapp-fab, .fab):not(:has(#home[hidden])) .ux-chat-fab {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 68px !important;
  }
  body:has(.ux-chat-fab) :is(#publicWhatsappFab, #garageFab) {
    right: 14px !important;
    bottom: calc(13px + env(safe-area-inset-bottom, 0px)) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  body:has(.ux-chat-fab) :is(#publicWhatsappFab, #garageFab) svg {
    width: 30px !important;
    height: 30px !important;
  }
}

.ux-chat-fab svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

html[data-ux="1"] .ux-chat-drawer,
.ux-chat-drawer {
  position: fixed !important;
  left: auto !important;
  right: 20px !important;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 1260 !important;
  isolation: isolate;
  width: min(410px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 150px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(215, 189, 131, 0.42);
  background: #121418 !important;
  background-color: #121418 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #f4f0e8;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.ux-chat-drawer[hidden] {
  display: none !important;
}

html[data-ux="1"][data-theme="light"] .ux-chat-drawer,
html[data-theme="light"] .ux-chat-drawer {
  background: #fbf8f1 !important;
  background-color: #fbf8f1 !important;
  background-image: none !important;
  color: #171512;
  border-color: rgba(138, 114, 62, 0.45);
  box-shadow: 0 22px 60px rgba(48, 38, 18, 0.24);
}

html[data-ux="1"] #uxChatDrawer .ux-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #16191f !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-ux="1"][data-theme="light"] #uxChatDrawer .ux-chat-head {
  background: #f4efe4 !important;
  border-bottom-color: rgba(138, 114, 62, 0.22);
}

.ux-chat-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.ux-chat-head strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.2;
}

.ux-chat-head span {
  display: block;
  font-size: 11px;
  color: rgba(244, 240, 232, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .ux-chat-head span {
  color: #6b5f48;
}

.ux-chat-head-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.ux-chat-mini-btn,
.ux-chat-close-btn {
  min-height: 30px;
  height: 30px;
  padding: 0 9px;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1f232b !important;
  color: inherit;
  font: 600 11px/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.ux-chat-close-btn {
  width: 30px;
  font-size: 17px;
  padding: 0;
}

html[data-theme="light"] .ux-chat-mini-btn,
html[data-theme="light"] .ux-chat-close-btn {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff !important;
}

.ux-chat-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #15181d !important;
}

html[data-theme="light"] .ux-chat-controls {
  border-bottom-color: rgba(138, 114, 62, 0.16);
  background: #f5efe3 !important;
}

.ux-chat-controls label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(244, 240, 232, 0.72);
}

html[data-theme="light"] .ux-chat-controls label {
  color: #5b5446;
}

html[data-ux="1"] #uxChatDrawer .ux-chat-controls select,
.ux-chat-controls select {
  width: 100%;
  min-width: 0;
  height: 34px !important;
  min-height: 34px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: #1c2028 !important;
  background-color: #1c2028 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #f4f0e8 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
}

html[data-ux="1"][data-theme="light"] #uxChatDrawer .ux-chat-controls select,
html[data-theme="light"] .ux-chat-controls select {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
}

.ux-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ux-chat-empty p {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(244, 240, 232, 0.8);
}

html[data-theme="light"] .ux-chat-empty p {
  color: #4f493e;
}

.ux-chat-starters {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ux-chat-starter {
  text-align: left;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(201, 183, 132, 0.3);
  background: rgba(201, 183, 132, 0.08);
  color: inherit;
  font: 500 12.5px/1.35 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

html[data-theme="light"] .ux-chat-starter {
  background: #ffffff;
  border-color: rgba(138, 114, 62, 0.34);
}

.ux-chat-msg {
  display: flex;
}

.ux-chat-msg.is-user {
  justify-content: flex-end;
}

html[data-ux="1"] #uxChatDrawer .ux-chat-messages {
  background: #121418 !important;
}

html[data-ux="1"][data-theme="light"] #uxChatDrawer .ux-chat-messages {
  background: #fbf8f1 !important;
}

.ux-chat-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1c2028 !important;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ux-chat-msg.is-user .ux-chat-bubble {
  background: #2f2617 !important;
  border-color: rgba(223, 190, 111, 0.45);
}

.ux-chat-msg.is-error .ux-chat-bubble {
  background: #33191d !important;
  border-color: rgba(239, 68, 68, 0.45);
}

html[data-theme="light"] .ux-chat-bubble {
  background: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.25);
}

html[data-theme="light"] .ux-chat-msg.is-user .ux-chat-bubble {
  background: #f5e9cb !important;
  border-color: rgba(158, 116, 21, 0.55);
}

.ux-chat-bubble p {
  margin: 0 0 6px;
}

.ux-chat-bubble p:last-child {
  margin-bottom: 0;
}

.ux-chat-bubble ul {
  margin: 4px 0 6px;
  padding-left: 18px;
}

.ux-chat-sources {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .ux-chat-sources {
  border-top-color: rgba(138, 114, 62, 0.22);
}

.ux-chat-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e9cf8d;
  text-decoration: underline;
}

html[data-theme="light"] .ux-chat-source-link {
  color: #7c5609;
}

.ux-chat-snippet {
  display: block;
  font-size: 11px;
  color: rgba(244, 240, 232, 0.72);
  padding-left: 16px;
}

html[data-theme="light"] .ux-chat-snippet {
  color: #5b5446;
}

.ux-chat-meta {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  opacity: 0.62;
}

html[data-ux="1"] #uxChatDrawer .ux-chat-form,
.ux-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #16191f !important;
}

html[data-ux="1"][data-theme="light"] #uxChatDrawer .ux-chat-form,
html[data-theme="light"] .ux-chat-form {
  border-top-color: rgba(138, 114, 62, 0.22);
  background: #f3ede0 !important;
}

html[data-ux="1"] #uxChatDrawer .ux-chat-form textarea,
.ux-chat-form textarea {
  flex: 1 1 auto;
  min-width: 0;
  resize: none;
  min-height: 38px !important;
  max-height: 88px !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: #1c2028 !important;
  background-color: #1c2028 !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #f4f0e8 !important;
  font: 500 13.5px/1.35 Manrope, system-ui, sans-serif !important;
  overflow-y: auto;
}

html[data-ux="1"][data-theme="light"] #uxChatDrawer .ux-chat-form textarea,
html[data-theme="light"] .ux-chat-form textarea {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  color: #171512 !important;
}

html[data-ux="1"] #uxChatDrawer .ux-chat-form button[type="submit"],
.ux-chat-form button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #dfc070 !important;
  color: #171512 !important;
  font: 700 12.5px/1 Manrope, system-ui, sans-serif !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  cursor: pointer;
}

.ux-chat-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 560px) {
  .ux-chat-fab {
    left: auto !important;
    padding: 0 12px;
    height: 38px;
  }
  body:has(#uxChatDrawer:not([hidden])) .ux-chat-fab,
  body:has(#uxChatDrawer:not([hidden])) #publicWhatsappFab,
  body:has(#uxChatDrawer:not([hidden])) #garageFab,
  body:has(#uxChatDrawer:not([hidden])) .whatsapp-fab,
  body:has(#uxChatDrawer:not([hidden])) .fab {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html[data-ux="1"] #uxChatDrawer,
  .ux-chat-drawer {
    top: calc(60px + env(safe-area-inset-top, 0px)) !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 16px !important;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-head {
    padding: 10px 12px;
    gap: 8px;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-head strong {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-head span {
    font-size: 10px;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-mini-btn,
  html[data-ux="1"] #uxChatDrawer .ux-chat-close-btn {
    min-height: 28px !important;
    height: 28px !important;
    font-size: 11px;
    padding: 0 8px;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-close-btn {
    width: 28px !important;
    padding: 0 !important;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-controls {
    padding: 7px 12px;
    gap: 7px;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-controls select {
    font-size: 12px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 4px 7px !important;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-messages {
    padding: 10px 12px;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-form {
    padding: 8px 10px;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-form textarea {
    font-size: 14px !important;
    line-height: 1.35 !important;
    min-height: 38px !important;
    max-height: 88px !important;
    padding: 8px 10px !important;
  }
  html[data-ux="1"] #uxChatDrawer .ux-chat-form button[type="submit"] {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }
}

.dealer,
#grid > .card,
.story-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}



/* Auto Advisor prompt and answer icon actions */
.ux-chat-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.ux-chat-msg.is-user {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
}
.ux-chat-msg.is-user .ux-chat-bubble {
  order: 2;
  max-width: calc(88% - 38px);
}
.ux-chat-message-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 5px 0 0;
  width: min(88%, 100%);
}
.ux-chat-prompt-actions {
  order: 1;
  flex: 0 0 auto;
  width: auto;
  margin: 3px 0 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}
.ux-chat-msg.is-user:hover .ux-chat-prompt-actions,
.ux-chat-msg.is-user:focus-within .ux-chat-prompt-actions {
  opacity: 1;
  visibility: visible;
}
.ux-chat-answer-actions {
  justify-content: flex-start;
  margin-top: 5px;
  padding-left: 2px;
}
.ux-chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  min-width: 27px;
  min-height: 27px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(244, 240, 232, 0.72);
  cursor: pointer;
}
.ux-chat-icon-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ux-chat-icon-btn:hover,
.ux-chat-icon-btn.is-copied {
  color: #e9cf8d;
  background: rgba(215, 189, 131, 0.12);
}
html[data-theme="light"] .ux-chat-icon-btn {
  color: #665633;
}
html[data-theme="light"] .ux-chat-icon-btn:hover,
html[data-theme="light"] .ux-chat-icon-btn.is-copied {
  color: #76550d;
  background: rgba(223, 190, 111, 0.18);
}
.ux-chat-form {
  flex-direction: column;
}
.ux-chat-compose-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.ux-chat-edit-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e9cf8d;
  font: 600 11px/1.3 Manrope, system-ui, sans-serif;
}
.ux-chat-edit-status[hidden] {
  display: none !important;
}
.ux-chat-edit-status button {
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid rgba(215, 189, 131, 0.32);
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
html[data-theme="light"] .ux-chat-edit-status {
  color: #76550d;
}
html[data-theme="light"] .ux-chat-edit-status button {
  border-color: rgba(138, 114, 62, 0.32);
}
@media (hover: none), (pointer: coarse) {
  .ux-chat-prompt-actions {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 560px) {
  .ux-chat-icon-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }
  .ux-chat-msg.is-user {
    gap: 4px;
  }
  .ux-chat-msg.is-user .ux-chat-bubble {
    max-width: calc(88% - 34px);
  }
}

/* ============================================================
   Inventory Quick View Dialog, Desktop Float & Touch Tap UX
   ============================================================ */
dialog#quickViewModal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(14, 16, 20, 0.88);
  color: #f4f0e8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  overflow-y: auto;
  overscroll-behavior: contain;
}

dialog#quickViewModal::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
}

dialog#quickViewModal[open] {
  animation: uxCompareModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

dialog#quickViewModal[open]::backdrop {
  animation: uxCompareBackdropIn 0.2s ease both !important;
}

@media (max-width: 700px) {
  dialog#quickViewModal {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(560px, calc(100vw - 24px)) !important;
    max-width: min(560px, calc(100vw - 24px)) !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }
}

html[data-theme="light"] dialog#quickViewModal {
  background: rgba(253, 250, 243, 0.96) !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  box-shadow: 0 24px 64px rgba(48, 38, 18, 0.22) !important;
}

.ux-qv-shell {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ux-qv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ux-qv-heading {
  min-width: 0;
}

.ux-qv-heading .eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dfbe6f;
}

html[data-theme="light"] .ux-qv-heading .eyebrow {
  color: #8a6412;
}

.ux-qv-heading h2 {
  margin: 0 0 4px;
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.18;
  text-wrap: balance;
}

.ux-qv-price {
  font: 700 18px/1.2 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #e4cf98;
}

html[data-theme="light"] .ux-qv-price {
  color: #8a6412;
}

.ux-qv-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .ux-qv-close {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
  color: #171512;
}

.ux-qv-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 230px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0f12;
}

html[data-theme="light"] .ux-qv-media {
  border-color: rgba(138, 114, 62, 0.22);
  background: #ebe6db;
}

.ux-qv-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ux-qv-no-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #aaa18e;
  font-size: 13px;
}

.ux-qv-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(10, 11, 13, 0.78);
  color: #f4f0e8;
  font: 700 11px/1 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.ux-qv-step {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(215, 189, 131, 0.55);
  background: rgba(14, 15, 18, 0.80);
  color: #f5f1e6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ux-qv-prev {
  left: 8px;
}

.ux-qv-next {
  right: 8px;
}

.ux-qv-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

html[data-theme="light"] .ux-qv-specs {
  border-top-color: rgba(138, 114, 62, 0.20);
}

.ux-qv-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  min-width: 0;
}

html[data-theme="light"] .ux-qv-spec {
  border-bottom-color: rgba(138, 114, 62, 0.20);
}

.ux-qv-spec span {
  font-size: 11px;
  color: #aaa18e;
}

html[data-theme="light"] .ux-qv-spec span {
  color: #6b6356;
}

.ux-qv-spec strong {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.ux-qv-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.84);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

html[data-theme="light"] .ux-qv-desc {
  color: #464035;
}

.ux-qv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ux-qv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  font: 700 12.5px/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), filter 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ux-qv-btn-primary {
  border: 1px solid rgba(223, 190, 111, 0.82);
  background: #dfc070;
  color: #171512 !important;
}

.ux-qv-btn-secondary {
  border: 1px solid rgba(215, 189, 131, 0.45);
  background: rgba(215, 189, 131, 0.12);
  color: #f6ead0 !important;
}

.ux-qv-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f0e8 !important;
}

html[data-theme="light"] .ux-qv-btn-secondary {
  border-color: rgba(158, 116, 21, 0.45);
  background: rgba(223, 190, 111, 0.18);
  color: #5c3f06 !important;
}

html[data-theme="light"] .ux-qv-btn-ghost {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
  color: #171512 !important;
}

@media (hover: hover) and (pointer: fine) {
  .ux-qv-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }
}

@media (max-width: 480px) {
  .ux-qv-shell {
    padding: 15px 14px 16px;
    gap: 11px;
  }
  .ux-qv-specs {
    grid-template-columns: 1fr;
  }
  .ux-qv-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .ux-qv-actions .ux-qv-btn-primary {
    grid-column: 1 / -1;
  }
}

/* Desktop luxury lift & champagne-gold border transition on vehicle cards */
@media (hover: hover) and (pointer: fine) {
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car], .related-card) {
    transform-origin: center center;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
      transform var(--ux-card-hover-duration) var(--ux-card-ease),
      box-shadow var(--ux-card-glow-duration) var(--ux-card-ease),
      border-color var(--ux-card-glow-duration) var(--ux-card-ease) !important;
  }
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car]) .photo > img,
  html[data-ux="1"][data-theme] body .related-card .related-photo {
    transition: transform 0.28s var(--ux-card-ease);
  }
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car]).is-float-settled {
    animation: none !important;
  }
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car], .related-card):hover,
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car], .related-card):focus-visible {
    z-index: 5;
    will-change: transform;
    transform: translate3d(0, var(--ux-card-lift-y), 0) scale(var(--ux-card-hover-scale)) !important;
    border-color: var(--ux-card-border-hover) !important;
    box-shadow: var(--ux-card-shadow-hover), var(--ux-card-inset-hover) !important;
  }
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car]):hover .photo > img,
  html[data-ux="1"][data-theme] body :is(#grid .card, #featuredGrid .card, .card[data-yard-car]):focus-visible .photo > img,
  html[data-ux="1"][data-theme] body .related-card:hover .related-photo,
  html[data-ux="1"][data-theme] body .related-card:focus-visible .related-photo {
    transform: scale(var(--ux-card-photo-scale));
  }
}

/* Touch devices: keep hover neutral and deliver soft tactile tap feedback */
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  #grid .card,
  #featuredGrid .card,
  .card[data-yard-car],
  .related-card,
  #grid .card-actions-bar button,
  #featuredGrid .card-actions-bar button {
    -webkit-tap-highlight-color: transparent;
    transition-property: transform, box-shadow, border-color, background-color, filter !important;
    transition-duration: 150ms !important;
    transition-timing-function: var(--ux-card-ease) !important;
  }
  #grid .card:hover,
  #featuredGrid .card:hover,
  .card[data-yard-car]:hover,
  .related-card:hover {
    animation: none !important;
    transform: none !important;
  }
  #grid .card:active,
  #featuredGrid .card:active,
  .card[data-yard-car]:active,
  .related-card:active,
  #grid .card.is-tap-soft,
  #featuredGrid .card.is-tap-soft {
    transform: scale(0.985) translateY(1px) !important;
    border-color: var(--ux-card-border-hover) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26) !important;
  }
  html[data-theme="light"] #grid .card:active,
  html[data-theme="light"] #featuredGrid .card:active,
  html[data-theme="light"] .card[data-yard-car]:active,
  html[data-theme="light"] .related-card:active,
  html[data-theme="light"] #grid .card.is-tap-soft,
  html[data-theme="light"] #featuredGrid .card.is-tap-soft {
    border-color: var(--ux-card-border-hover) !important;
    box-shadow: 0 6px 16px rgba(48, 38, 18, 0.14) !important;
  }
  #grid .card-actions-bar button:active,
  #featuredGrid .card-actions-bar button:active,
  #grid .card-actions-bar button.is-tap-soft,
  #featuredGrid .card-actions-bar button.is-tap-soft {
    transform: scale(0.96) !important;
    filter: brightness(1.08) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog#quickViewModal[open],
  dialog#quickViewModal[open]::backdrop,
  dialog#shareVehicleModal[open],
  dialog#shareVehicleModal[open]::backdrop,
  dialog#inspectionBookingModal[open],
  dialog#inspectionBookingModal[open]::backdrop,
  #grid .card,
  #featuredGrid .card,
  .card[data-yard-car],
  .related-card,
  #grid .card:hover,
  #featuredGrid .card:hover,
  .card[data-yard-car]:hover,
  .related-card:hover {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================
   Inventory Vehicle Share Dialog
   ============================================================ */
dialog#shareVehicleModal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(490px, calc(100vw - 24px));
  max-width: min(490px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(215, 189, 131, 0.38);
  border-radius: 18px;
  background: rgba(17, 19, 23, 0.96);
  color: #f4f0e8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

dialog#shareVehicleModal::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
}

dialog#shareVehicleModal[open] {
  animation: uxCompareModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

dialog#shareVehicleModal[open]::backdrop {
  animation: uxCompareBackdropIn 0.2s ease both !important;
}

@media (max-width: 700px) {
  dialog#shareVehicleModal {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(490px, calc(100vw - 24px)) !important;
    max-width: min(490px, calc(100vw - 24px)) !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(215, 189, 131, 0.38) !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }
}

html[data-theme="light"] dialog#shareVehicleModal {
  background: #fbf8f1 !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.42) !important;
  box-shadow: 0 24px 64px rgba(48, 38, 18, 0.24) !important;
}

.ux-share-shell {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ux-share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ux-share-head .eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dfbe6f;
}

html[data-theme="light"] .ux-share-head .eyebrow {
  color: #8a6412;
}

.ux-share-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.ux-share-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .ux-share-close {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
  color: #171512;
}

.ux-share-car {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .ux-share-car {
  border-color: rgba(138, 114, 62, 0.24);
  background: #ffffff;
}

.ux-share-car img,
.ux-share-no-photo {
  width: 78px;
  height: 58px;
  flex: 0 0 78px;
  border-radius: 9px;
  object-fit: cover;
  background: #0d0f12;
}

.ux-share-no-photo {
  display: grid;
  place-items: center;
  color: #dfbe6f;
  font-weight: 800;
  font-size: 14px;
}

.ux-share-car-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-share-car-meta strong {
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ux-share-car-price {
  font: 700 14.5px/1.2 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #e4cf98;
}

html[data-theme="light"] .ux-share-car-price {
  color: #8a6412;
}

.ux-share-car-meta span,
.ux-share-car-meta small {
  font-size: 11.5px;
  color: #aaa18e;
  overflow-wrap: anywhere;
}

html[data-theme="light"] .ux-share-car-meta span,
html[data-theme="light"] .ux-share-car-meta small {
  color: #5b5446;
}

.ux-share-link-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ux-share-link-box label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 240, 232, 0.85);
}

html[data-theme="light"] .ux-share-link-box label {
  color: #3d372c;
}

.ux-share-link-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.ux-share-link-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #f4f0e8;
  font: 500 12.5px/1.2 Manrope, system-ui, sans-serif;
}

html[data-theme="light"] .ux-share-link-row input {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
  color: #171512;
}

.ux-share-copy-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(223, 190, 111, 0.82);
  background: #dfc070;
  color: #171512 !important;
  font: 700 12.5px/1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ux-share-feedback {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #a9f0c4;
}

.ux-share-feedback.is-error {
  color: #ff9c92;
}

html[data-theme="light"] .ux-share-feedback {
  color: #14532d;
}

html[data-theme="light"] .ux-share-feedback.is-error {
  color: #b42318;
}

.ux-share-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ux-share-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: #f4f0e8 !important;
  font: 600 12.5px/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), filter 0.16s ease, border-color 0.16s ease;
}

.ux-share-ch-primary {
  border-color: rgba(215, 189, 131, 0.55);
  background: rgba(215, 189, 131, 0.14);
  color: #f7e6bd !important;
  font-weight: 700;
}

html[data-theme="light"] .ux-share-ch {
  border-color: rgba(138, 114, 62, 0.34);
  background: #ffffff;
  color: #171512 !important;
}

html[data-theme="light"] .ux-share-ch-primary {
  border-color: rgba(158, 116, 21, 0.55);
  background: rgba(223, 190, 111, 0.22);
  color: #5c3f06 !important;
}

@media (hover: hover) and (pointer: fine) {
  .ux-share-ch:hover,
  .ux-share-copy-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
  }
}

@media (max-width: 480px) {
  .ux-share-shell {
    padding: 15px 14px 16px;
    gap: 12px;
  }
  .ux-share-link-row {
    flex-direction: column;
  }
}

/* ===== Persistent Inventory Filter Sidebar (Desktop) & Top-Bar Menu (Mobile/Tablet) ===== */
.inventory-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.inventory-filter-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(18, 23, 30, 0.36);
  background-image: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

html[data-theme="light"] .inventory-filter-sidebar {
  border-color: rgba(138, 114, 62, 0.34);
  background: rgba(253, 250, 243, 0.95);
  box-shadow: 0 14px 34px rgba(34, 28, 18, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ux-filter-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 183, 132, 0.2);
}

html[data-theme="light"] .ux-filter-menu-head {
  border-bottom-color: rgba(138, 114, 62, 0.2);
}

.ux-filter-menu-title {
  margin: 0;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  color: #f4f0e8;
}

html[data-theme="light"] .ux-filter-menu-title {
  color: #171512;
}

.ux-active-filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid rgba(215, 189, 131, 0.55);
  background: rgba(215, 189, 131, 0.16);
  color: #f6df9d;
  font: 700 11px/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ux-active-filter-badge[hidden] {
  display: none !important;
}

html[data-theme="light"] .ux-active-filter-badge {
  border-color: rgba(158, 116, 21, 0.52);
  background: rgba(223, 190, 111, 0.24);
  color: #5c3f06;
}

html[data-ux="1"] .inventory-filter-sidebar .filters {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  margin: 0 !important;
  align-items: stretch !important;
}

.ux-filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ux-filter-label {
  font: 700 10.5px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #d7bd83;
}

html[data-theme="light"] .ux-filter-label {
  color: #7c5c19;
}

html[data-ux="1"] .inventory-filter-sidebar .filters input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-ux="1"] .inventory-filter-sidebar .filters select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 41px !important;
  height: 41px !important;
  padding: 8px 11px !important;
  font-size: 13.5px !important;
  border-radius: 10px !important;
}

html[data-ux="1"] .inventory-filter-sidebar .filters input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  flex: 0 0 18px !important;
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  cursor: pointer;
}

html[data-ux="1"] .inventory-filter-sidebar .filters .ux-saved-filter,
html[data-ux="1"] .inventory-filter-sidebar .filters .ux-inspected-filter,
html[data-ux="1"] .inventory-filter-sidebar .filters .ux-compare-filter {
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 8px 11px !important;
}

html[data-ux="1"] .inventory-filter-sidebar .filters #clearFilters {
  grid-column: auto !important;
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 2px;
  font: 700 13px/1.2 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.ux-saved-count-indicator {
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ux-saved-badge-star {
  font-size: 10.5px;
  line-height: 1;
  opacity: 0.85;
}

.ux-saved-count-indicator[data-has-saved="true"] .ux-saved-badge-star {
  color: #f6d37a;
  opacity: 1;
}

html[data-theme="light"] .ux-saved-count-indicator[data-has-saved="true"] .ux-saved-badge-star {
  color: #8f6308;
}

.inventory-results-pane {
  min-width: 0;
}

.inventory-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.inventory-results-bar .count {
  margin: 0 !important;
}

@media (min-width: 1024px) {
  .inventory-results-pane #grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
}

@media (max-width: 1023px) {
  .inventory-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .inventory-filter-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 14px;
  }
  html[data-ux="1"] .inventory-filter-sidebar .filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .ux-filter-field-search,
  html[data-ux="1"] .inventory-filter-sidebar .filters #clearFilters {
    grid-column: 1 / -1 !important;
  }
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-saved-filter,
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-inspected-filter,
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-compare-filter {
    grid-column: span 1 !important;
  }
}

@media (max-width: 620px) {
  .inventory-filter-sidebar {
    padding: 12px;
    border-radius: 14px;
  }
  html[data-ux="1"] .inventory-filter-sidebar .filters {
    gap: 8px !important;
  }
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-saved-filter,
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-inspected-filter,
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-compare-filter {
    grid-column: 1 / -1 !important;
    padding: 8px 11px !important;
    font-size: 12.5px !important;
  }
  html[data-ux="1"] .inventory-filter-sidebar .filters .ux-saved-count-indicator {
    font-size: 11px !important;
    padding: 3px 7px !important;
  }
}

/* ===== Dual-Handle Price Range Slider in Inventory Sidebar ===== */
.ux-filter-field-price {
  gap: 7px;
}

.ux-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ux-price-summary {
  font: 700 11px/1.2 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #e9d49d;
  white-space: nowrap;
}

html[data-theme="light"] .ux-price-summary {
  color: #7c5609;
}

.ux-price-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ux-price-pill {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid rgba(201, 183, 132, 0.22);
  background: rgba(255, 255, 255, 0.045);
  min-width: 0;
}

.ux-price-pill span {
  font: 700 9.5px/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b4ab97;
}

.ux-price-pill strong {
  font: 700 11.5px/1.25 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #f4f0e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .ux-price-pill {
  border-color: rgba(138, 114, 62, 0.24);
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .ux-price-pill span {
  color: #6b614e;
}

html[data-theme="light"] .ux-price-pill strong {
  color: #171512;
}

.ux-dual-range {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  touch-action: none;
  user-select: none;
}

.ux-dual-range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

html[data-theme="light"] .ux-dual-range-track {
  background: rgba(91, 82, 63, 0.2);
}

.ux-dual-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 100%;
  border-radius: 999px;
  background: #d7bd83;
}

html[data-theme="light"] .ux-dual-range-fill {
  background: #b08722;
}

html[data-ux="1"] .inventory-filter-sidebar .filters .ux-dual-range input[type="range"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  pointer-events: none;
  cursor: pointer;
}

.ux-dual-range input[type="range"]:focus-visible {
  outline: none;
}

.ux-dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
  border: 0;
}

.ux-dual-range input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
  border: 0;
}

.ux-dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #f4df9e;
  border: 2.5px solid #16181c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.ux-dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4df9e;
  border: 2.5px solid #16181c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

html[data-theme="light"] .ux-dual-range input[type="range"]::-webkit-slider-thumb {
  background: #b68a24;
  border-color: #fffdf8;
  box-shadow: 0 2px 7px rgba(48, 38, 18, 0.28);
}

html[data-theme="light"] .ux-dual-range input[type="range"]::-moz-range-thumb {
  background: #b68a24;
  border-color: #fffdf8;
  box-shadow: 0 2px 7px rgba(48, 38, 18, 0.28);
}

.ux-dual-range input[type="range"]:hover::-webkit-slider-thumb,
.ux-dual-range input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.ux-dual-range input[type="range"]:hover::-moz-range-thumb,
.ux-dual-range input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.ux-dual-range input[type="range"]:focus-visible::-webkit-slider-thumb {
  border-color: #ffffff;
}

.ux-dual-range input[type="range"]:focus-visible::-moz-range-thumb {
  border-color: #ffffff;
}

@media (max-width: 1023px) {
  .ux-filter-field-price {
    grid-column: 1 / -1 !important;
  }
}

/* ===== Verified 3 Pedals Garage Pre-Purchase Inspection 'Checked' Badge ===== */
.photo .checked-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(110, 224, 158, 0.72);
  background: rgba(13, 33, 23, 0.9);
  color: #a9f4c6;
  font: 700 10.5px/1.1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  white-space: nowrap;
}

.photo .checked-badge svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

html[data-theme="light"] .photo .checked-badge {
  background: rgba(236, 251, 241, 0.97);
  border-color: rgba(22, 128, 68, 0.52);
  color: #14532d;
  box-shadow: 0 4px 10px rgba(20, 83, 45, 0.16);
}

#featuredGrid.featured-grid .photo .checked-badge {
  right: 6px;
  bottom: 6px;
  padding: 2.5px 5.5px;
  font-size: 9px;
  gap: 3px;
}

#featuredGrid.featured-grid .photo .checked-badge svg {
  width: 10px;
  height: 10px;
}

@media (max-width: 560px) {
  .photo .checked-badge {
    right: 6px;
    bottom: 6px;
    padding: 3px 6px;
    font-size: 9.5px;
    gap: 3px;
  }
  .photo .checked-badge svg {
    width: 10.5px;
    height: 10.5px;
  }
}

.ux-checked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(110, 224, 158, 0.52);
  background: rgba(44, 150, 89, 0.16);
  color: #b5f5ce;
  font: 700 11.5px/1.2 Manrope, system-ui, sans-serif;
}

.ux-checked-pill svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

html[data-theme="light"] .ux-checked-pill {
  border-color: rgba(22, 128, 68, 0.44);
  background: rgba(22, 128, 68, 0.1);
  color: #14532d;
}

/* ===== Sidebar: Inspected Vehicles Filter & Recent Searches ===== */
.ux-inspected-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(201, 183, 132, 0.28);
  background: rgba(255, 255, 255, 0.055);
  color: #f4f0e8;
  font: 600 13px/1.25 Manrope, system-ui, sans-serif;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ux-inspected-filter input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #4cc37c;
  cursor: pointer;
  border-radius: 4px !important;
}

.ux-inspected-filter > #inspectedOnlyFilterText {
  flex: 1 1 auto;
  min-width: 0;
}

.ux-inspected-count-indicator {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid rgba(110, 224, 158, 0.35);
  background: rgba(44, 150, 89, 0.16);
  color: #a9f4c6;
  font: 700 11px/1.15 Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ux-inspected-filter.is-active {
  border-color: rgba(110, 224, 158, 0.78);
  background: rgba(44, 150, 89, 0.2);
  color: #e9fdf1;
}

html[data-theme="light"] .ux-inspected-filter {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(138, 114, 62, 0.34);
  color: #171512;
}

html[data-theme="light"] .ux-inspected-filter input[type="checkbox"] {
  accent-color: #167a41;
}

html[data-theme="light"] .ux-inspected-count-indicator {
  border-color: rgba(22, 128, 68, 0.38);
  background: rgba(22, 128, 68, 0.11);
  color: #14532d;
}

html[data-theme="light"] .ux-inspected-filter.is-active {
  border-color: rgba(22, 128, 68, 0.68);
  background: rgba(22, 128, 68, 0.14);
  color: #103c21;
}

.ux-recent-searches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 3px;
}

.ux-recent-searches[hidden] {
  display: none !important;
}

.ux-recent-searches-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ux-recent-searches-label {
  font: 700 10px/1.2 Manrope, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a89f8b;
}

html[data-theme="light"] .ux-recent-searches-label {
  color: #70654e;
}

html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-searches-clear {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 22px !important;
  padding: 2px 6px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #d7bd83 !important;
  font: 600 11px/1.2 Manrope, system-ui, sans-serif !important;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-searches-clear:hover,
html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-searches-clear:focus-visible {
  color: #f6df9d !important;
  background: rgba(215, 189, 131, 0.12) !important;
}

html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-searches-clear {
  color: #846011 !important;
}

html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-searches-clear:hover,
html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-searches-clear:focus-visible {
  color: #5c4004 !important;
  background: rgba(158, 116, 21, 0.12) !important;
}

.ux-recent-searches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-search-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 28px !important;
  padding: 4px 9px !important;
  border-radius: 7px !important;
  border: 1px solid rgba(201, 183, 132, 0.26) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e9e2d2 !important;
  font: 600 12px/1.2 Manrope, system-ui, sans-serif !important;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.ux-recent-search-btn svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.78;
}

.ux-recent-search-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-search-btn:hover,
html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-search-btn:focus-visible,
html[data-ux="1"] .inventory-filter-sidebar .filters .ux-recent-search-btn.is-current {
  border-color: rgba(223, 190, 111, 0.7) !important;
  background: rgba(215, 189, 131, 0.16) !important;
  color: #f6df9d !important;
}

html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-search-btn {
  border-color: rgba(138, 114, 62, 0.3) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: #2f291e !important;
}

html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-search-btn:hover,
html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-search-btn:focus-visible,
html[data-theme="light"] .inventory-filter-sidebar .filters .ux-recent-search-btn.is-current {
  border-color: rgba(158, 116, 21, 0.65) !important;
  background: rgba(223, 190, 111, 0.24) !important;
  color: #5c3f06 !important;
}

/* ===== Sidebar Saved Filter Hover/Focus & Floating Save Notification Toast ===== */
.inventory-filter-sidebar .ux-saved-filter:hover {
  border-color: rgba(223, 190, 111, 0.56);
  background: rgba(215, 189, 131, 0.1);
}

.inventory-filter-sidebar .ux-saved-filter:focus-within {
  outline: 2px solid rgba(223, 190, 111, 0.68);
  outline-offset: 2px;
}

html[data-theme="light"] .inventory-filter-sidebar .ux-saved-filter:hover {
  border-color: rgba(158, 116, 21, 0.58);
  background: rgba(223, 190, 111, 0.16);
}

.ux-saved-count-indicator,
.ux-saved-count-indicator span {
  white-space: nowrap;
}

.ux-save-toast {
  position: fixed;
  inset: 86px 20px auto auto;
  margin: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(372px, calc(100vw - 32px));
  height: auto;
  max-width: calc(100vw - 24px);
  overflow: visible;
  padding: 11px 12px 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(223, 190, 111, 0.45);
  background: rgba(20, 22, 27, 0.96);
  color: #f4f1ea;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  font-family: Manrope, system-ui, sans-serif;
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.ux-save-toast[hidden] {
  display: none;
}

.ux-save-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.ux-save-toast.is-saved {
  border-color: rgba(110, 224, 158, 0.52);
}

.ux-save-toast.is-removed {
  border-color: rgba(223, 190, 111, 0.42);
}

.ux-save-toast.is-error {
  border-color: rgba(240, 123, 110, 0.62);
}

.ux-save-toast-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  background: rgba(215, 189, 131, 0.16);
  color: #f6d37a;
}

.ux-save-toast.is-saved .ux-save-toast-icon {
  background: rgba(44, 150, 89, 0.22);
  color: #8df0b4;
}

.ux-save-toast.is-error .ux-save-toast-icon {
  background: rgba(220, 76, 62, 0.22);
  color: #ffb1a7;
}

.ux-save-toast-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-save-toast-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #f7f4ec;
}

.ux-save-toast-sub {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(244, 240, 232, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux-save-toast-action {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(223, 190, 111, 0.5);
  background: rgba(215, 189, 131, 0.16);
  color: #f6df9d;
  font: 700 11.5px/1.1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ux-save-toast-action:hover,
.ux-save-toast-action:focus-visible {
  background: rgba(215, 189, 131, 0.28);
  border-color: rgba(223, 190, 111, 0.8);
}

.ux-save-toast-close {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(244, 240, 232, 0.68);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ux-save-toast-close:hover,
.ux-save-toast-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

html[data-theme="light"] .ux-save-toast {
  background: rgba(255, 253, 248, 0.98);
  color: #171512;
  border-color: rgba(158, 116, 21, 0.42);
  box-shadow: 0 16px 36px rgba(31, 25, 14, 0.16);
}

html[data-theme="light"] .ux-save-toast.is-saved {
  border-color: rgba(22, 128, 68, 0.48);
}

html[data-theme="light"] .ux-save-toast.is-error {
  border-color: rgba(180, 35, 24, 0.45);
}

html[data-theme="light"] .ux-save-toast-icon {
  background: rgba(199, 159, 62, 0.18);
  color: #846011;
}

html[data-theme="light"] .ux-save-toast.is-saved .ux-save-toast-icon {
  background: rgba(22, 128, 68, 0.14);
  color: #14532d;
}

html[data-theme="light"] .ux-save-toast.is-error .ux-save-toast-icon {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

html[data-theme="light"] .ux-save-toast-title {
  color: #171512;
}

html[data-theme="light"] .ux-save-toast-sub {
  color: #5b5446;
}

html[data-theme="light"] .ux-save-toast-action {
  border-color: rgba(158, 116, 21, 0.55);
  background: rgba(223, 190, 111, 0.24);
  color: #5c4004;
}

html[data-theme="light"] .ux-save-toast-close {
  color: #6b6251;
}

html[data-theme="light"] .ux-save-toast-close:hover,
html[data-theme="light"] .ux-save-toast-close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: #171512;
}

@media (max-width: 620px) {
  .ux-save-toast {
    inset: 80px 12px auto 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-save-toast,
  .ux-saved-count-indicator.is-count-updated {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== Light-Theme Home Tile Meta Contrast ===== */
html[data-theme="light"] #home .tile .meta,
html[data-theme="light"] .tiles .tile .meta {
  color: #544d40 !important;
}

/* ===== Vehicle Card Compare Checkbox & Bottom Bar Polish ===== */
.card-actions-bar .inventory-compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: #f4f0e8 !important;
  font: 600 12px/1.2 Manrope, system-ui, sans-serif !important;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.card-actions-bar .inventory-compare-check:focus-within {
  outline: 2px solid rgba(223, 190, 111, 0.72);
  outline-offset: 2px;
}

.card-actions-bar .inventory-compare-checkbox {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  flex: 0 0 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #d7bd83;
  cursor: pointer;
}

.card-actions-bar .inventory-compare-check > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions-bar .inventory-compare-check.is-checked {
  background: #dfc070 !important;
  border-color: rgba(223, 190, 111, 0.85) !important;
  color: #171512 !important;
  font-weight: 700 !important;
}

.card-actions-bar .inventory-compare-check.is-checked .inventory-compare-checkbox {
  accent-color: #171512;
}

@media (hover: hover) and (pointer: fine) {
  .card-actions-bar .inventory-compare-check:hover {
    border-color: rgba(215, 189, 131, 0.65) !important;
    background: rgba(215, 189, 131, 0.16) !important;
  }
  .card-actions-bar .inventory-compare-check.is-checked:hover {
    background: #e6cb82 !important;
  }
}

html[data-theme="light"] .card-actions-bar .inventory-compare-check {
  background: #ffffff !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  color: #171512 !important;
}

html[data-theme="light"] .card-actions-bar .inventory-compare-check.is-checked {
  background: #dfc070 !important;
  border-color: rgba(158, 116, 21, 0.6) !important;
  color: #171512 !important;
}

#featuredGrid.featured-grid .card-actions-bar .inventory-compare-check {
  min-height: 34px;
  padding: 5px 6px !important;
  gap: 5px;
  font-size: 10.5px !important;
}

#featuredGrid.featured-grid .card-actions-bar .inventory-compare-checkbox {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  flex-basis: 13px !important;
}

@media (max-width: 560px) {
  .card-actions-bar .inventory-compare-check {
    min-height: 35px;
    padding: 5px 5px !important;
    gap: 4px;
    font-size: 10.5px !important;
  }
  .card-actions-bar .inventory-compare-check > span {
    text-overflow: clip;
  }
  .card-actions-bar .inventory-compare-checkbox {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    flex-basis: 13px !important;
  }
}

@media (min-width: 761px) {
  .ux-compare-dock {
    width: min(740px, calc(100vw - 210px));
  }
}

.ux-compare-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #7ee098;
}

html[data-theme="light"] .ux-compare-check-badge {
  color: #166534;
}

/* ===== Quick Filter Chips Bar Above Inventory Grid ===== */
.ux-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.ux-quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 183, 132, 0.3);
  background: rgba(24, 25, 28, 0.62);
  color: #e9e3d5;
  font: 600 12.5px/1.15 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.ux-quick-chip:focus-visible {
  outline: 2px solid rgba(223, 190, 111, 0.8);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .ux-quick-chip:hover {
    border-color: rgba(223, 190, 111, 0.7);
    background: rgba(215, 189, 131, 0.16);
    color: #fff6df;
    transform: translateY(-1px);
  }
}

.ux-quick-chip.is-active,
.ux-quick-chip[aria-pressed="true"] {
  border-color: rgba(223, 190, 111, 0.88);
  background: #dfc070;
  color: #171512;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .ux-quick-chip {
  border-color: rgba(138, 114, 62, 0.34);
  background: rgba(255, 255, 255, 0.9);
  color: #2f291e;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .ux-quick-chip:hover {
    border-color: rgba(158, 116, 21, 0.7);
    background: rgba(223, 190, 111, 0.22);
    color: #171512;
  }
}

html[data-theme="light"] .ux-quick-chip.is-active,
html[data-theme="light"] .ux-quick-chip[aria-pressed="true"] {
  border-color: rgba(158, 116, 21, 0.78);
  background: #dfc070;
  color: #171512;
}

@media (max-width: 620px) {
  .ux-quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin-bottom: 11px;
    gap: 7px;
  }
  .ux-quick-filters::-webkit-scrollbar {
    display: none;
  }
  .ux-quick-chip {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-quick-chip,
  .ux-compare-grounding-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* ===== Sticky Compare Bar Clear Selection + Recharts Sparklines & Search Grounding ===== */
@media (min-width: 761px) {
  .ux-compare-dock {
    width: min(790px, calc(100vw - 210px));
  }
}

@media (max-width: 680px) {
  .ux-compare-dock {
    width: calc(100vw - 74px);
    padding: 7px 9px;
    gap: 7px;
  }
  .ux-compare-dock-actions {
    gap: 5px;
  }
  .ux-compare-clear-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}

.ux-compare-grounding-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

html[data-theme="light"] .ux-compare-grounding-bar {
  border-bottom-color: rgba(138, 114, 62, 0.18);
  background: rgba(223, 190, 111, 0.08);
}

.ux-compare-grounding-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ux-compare-grounding-copy strong {
  font: 700 13px/1.25 Manrope, system-ui, sans-serif;
  color: #f4f0e8;
}

html[data-theme="light"] .ux-compare-grounding-copy strong {
  color: #171512;
}

.ux-compare-grounding-status {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(244, 240, 232, 0.72);
}

.ux-compare-grounding-status.is-error {
  color: #fca5a5;
}

html[data-theme="light"] .ux-compare-grounding-status {
  color: #5b5446;
}

html[data-theme="light"] .ux-compare-grounding-status.is-error {
  color: #b91c1c;
}

.ux-compare-grounding-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(223, 190, 111, 0.45);
  background: rgba(215, 189, 131, 0.14);
  color: #f4dca1;
  font: 700 12px/1 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ux-compare-grounding-btn:hover:not(:disabled) {
  border-color: rgba(223, 190, 111, 0.8);
  background: rgba(215, 189, 131, 0.24);
  transform: translateY(-1px);
}

.ux-compare-grounding-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

html[data-theme="light"] .ux-compare-grounding-btn {
  border-color: rgba(158, 116, 21, 0.55);
  background: rgba(223, 190, 111, 0.22);
  color: #4f3808;
}

.ux-compare-sparkline-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 175px;
  padding: 9px 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(215, 189, 131, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .ux-compare-sparkline-card {
  border-color: rgba(138, 114, 62, 0.24);
  background: #ffffff;
}

.ux-compare-sparkline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ux-compare-sparkline-band {
  font: 700 11.5px/1.2 Manrope, system-ui, sans-serif;
  color: #f4f0e8;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .ux-compare-sparkline-band {
  color: #171512;
}

.ux-compare-trend-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font: 700 10.5px/1.2 Manrope, system-ui, sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ux-compare-trend-badge.is-good {
  background: rgba(126, 224, 152, 0.14);
  color: #7ee098;
}

.ux-compare-trend-badge.is-steady {
  background: rgba(223, 190, 111, 0.16);
  color: #e9c97b;
}

.ux-compare-trend-badge.is-up {
  background: rgba(240, 168, 117, 0.16);
  color: #f0a875;
}

html[data-theme="light"] .ux-compare-trend-badge.is-good {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}

html[data-theme="light"] .ux-compare-trend-badge.is-steady {
  background: rgba(131, 93, 9, 0.12);
  color: #835d09;
}

html[data-theme="light"] .ux-compare-trend-badge.is-up {
  background: rgba(154, 52, 18, 0.12);
  color: #9a3412;
}

.ux-compare-sparkline-mount {
  width: 100%;
  height: 78px;
  min-width: 155px;
}

.ux-compare-sparkline-fallback {
  height: 78px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: rgba(244, 240, 232, 0.62);
}

html[data-theme="light"] .ux-compare-sparkline-fallback {
  color: #6b5f48;
}

.ux-compare-sparkline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  color: rgba(244, 240, 232, 0.64);
}

html[data-theme="light"] .ux-compare-sparkline-foot {
  color: #6b5f48;
}

.ux-compare-market-note {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(244, 240, 232, 0.8);
}

html[data-theme="light"] .ux-compare-market-note {
  color: #463f33;
}

.ux-compare-tooltip {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(223, 190, 111, 0.45);
  background: rgba(17, 19, 23, 0.96);
  color: #f4f0e8;
  font: 600 11px/1.3 Manrope, system-ui, sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .ux-compare-tooltip {
  background: #ffffff;
  color: #171512;
  border-color: rgba(138, 114, 62, 0.45);
}

.ux-compare-sources {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(215, 189, 131, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .ux-compare-sources {
  border-color: rgba(138, 114, 62, 0.24);
  background: #ffffff;
}

.ux-compare-sources-title {
  margin: 0 0 8px;
  font: 700 11.5px/1.2 Manrope, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #dfbe6f;
}

html[data-theme="light"] .ux-compare-sources-title {
  color: #7c5609;
}

.ux-compare-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ux-compare-source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 189, 131, 0.3);
  background: rgba(215, 189, 131, 0.08);
  color: #f4f0e8;
  font: 600 11.5px/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
  max-width: 280px;
}

.ux-compare-source-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux-compare-source-link:hover {
  border-color: rgba(223, 190, 111, 0.72);
  background: rgba(215, 189, 131, 0.18);
}

html[data-theme="light"] .ux-compare-source-link {
  color: #2f291e;
  background: rgba(223, 190, 111, 0.14);
  border-color: rgba(138, 114, 62, 0.32);
}

/* ===== Top-Right Glass Heart Wishlist Button, Sold Overlay & Card Footer Share ===== */
.card .photo,
.card .swatch {
  position: relative;
}

.photo .card-wishlist-btn,
.swatch .card-wishlist-btn {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(14, 16, 20, 0.72) !important;
  background-image: none !important;
  color: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

.card-wishlist-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), fill 0.18s ease;
}

.card-wishlist-btn svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.photo .card-wishlist-btn[aria-pressed="true"],
.swatch .card-wishlist-btn[aria-pressed="true"],
.card-wishlist-btn.is-saved {
  border-color: rgba(229, 185, 111, 0.78) !important;
  background: rgba(20, 16, 18, 0.82) !important;
  color: #f4687d !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36) !important;
}

.card-wishlist-btn[aria-pressed="true"] svg path,
.card-wishlist-btn.is-saved svg path {
  fill: currentColor;
  stroke: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .photo .card-wishlist-btn:not(:disabled):hover,
  .swatch .card-wishlist-btn:not(:disabled):hover {
    transform: scale(1.08) !important;
    border-color: rgba(229, 185, 111, 0.85) !important;
    background: rgba(20, 22, 27, 0.78) !important;
  }
}

html[data-theme="light"] .photo .card-wishlist-btn,
html[data-theme="light"] .swatch .card-wishlist-btn {
  background: rgba(255, 252, 246, 0.90) !important;
  background-image: none !important;
  border-color: rgba(138, 114, 62, 0.38) !important;
  color: #2f281d !important;
  box-shadow: 0 6px 14px rgba(48, 38, 18, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="light"] .photo .card-wishlist-btn[aria-pressed="true"],
html[data-theme="light"] .swatch .card-wishlist-btn[aria-pressed="true"],
html[data-theme="light"] .card-wishlist-btn.is-saved {
  border-color: rgba(200, 51, 73, 0.54) !important;
  background: rgba(255, 252, 246, 0.96) !important;
  color: #cf344a !important;
}

/* Keep FEATURED badge clear of the top-right heart wishlist button */
.photo:has(.card-wishlist-btn) .promoted-tag,
.swatch:has(.card-wishlist-btn) .promoted-tag {
  right: 48px !important;
}

#featuredGrid.featured-grid .photo .card-wishlist-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  top: 6px !important;
  right: 6px !important;
}

#featuredGrid.featured-grid .photo .card-wishlist-btn svg {
  width: 13.5px;
  height: 13.5px;
}

#featuredGrid.featured-grid .photo:has(.card-wishlist-btn) .promoted-tag {
  right: 39px !important;
}

@media (max-width: 560px) {
  .photo .card-wishlist-btn,
  .swatch .card-wishlist-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    top: 6px !important;
    right: 6px !important;
  }
  .card-wishlist-btn svg {
    width: 14px;
    height: 14px;
  }
  .photo:has(.card-wishlist-btn) .promoted-tag,
  .swatch:has(.card-wishlist-btn) .promoted-tag {
    right: 40px !important;
  }
}

/* Sold Vehicle Card Overlay & Disabled Save State */
.card.is-sold .photo > img,
.card.is-sold .swatch > img {
  filter: grayscale(0.55) brightness(0.58) contrast(0.95) !important;
}

.sold-badge-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.78);
  background: rgba(17, 12, 14, 0.88);
  color: #fecaca;
  font: 800 12px/1 Manrope, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

html[data-theme="light"] .sold-badge-overlay {
  background: rgba(127, 29, 29, 0.92);
  border-color: rgba(254, 202, 202, 0.7);
  color: #ffffff;
}

#featuredGrid.featured-grid .sold-badge-overlay {
  padding: 5px 11px;
  font-size: 10px;
}

@media (max-width: 560px) {
  .sold-badge-overlay {
    padding: 5px 12px;
    font-size: 10.5px;
  }
}

.card.is-sold .card-wishlist-btn:disabled,
.card-wishlist-btn[aria-disabled="true"] {
  opacity: 0.42 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.card.is-sold [data-save-vehicle]:disabled,
[data-save-vehicle][aria-disabled="true"] {
  opacity: 0.50 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.45);
}

.sold-status-pill {
  background: rgba(185, 28, 28, 0.20) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
  color: #fecaca !important;
}

html[data-theme="light"] .sold-status-pill {
  background: rgba(185, 28, 28, 0.12) !important;
  border-color: rgba(185, 28, 28, 0.45) !important;
  color: #991b1b !important;
}

/* Home (#buy) & Yard Profile Footer Action Row with Save + Share Icon Button */
.account-card-footer,
.yard-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
  margin-top: auto;
}

.account-card-footer .account-card-save {
  width: 100% !important;
  margin: 0 !important;
  min-height: 36px;
}

.yard-card-main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  color: inherit;
  text-decoration: none;
}

.yard-card-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f4f0e8;
  font: 600 12px/1 Manrope, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.card-footer-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  min-height: 36px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f4f0e8 !important;
  font: 600 12px/1 Manrope, system-ui, sans-serif !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
}

.card-footer-share-btn svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

@media (hover: hover) and (pointer: fine) {
  .card-footer-share-btn:hover,
  .yard-card-open-link:hover {
    border-color: rgba(223, 190, 111, 0.78) !important;
    background: rgba(215, 189, 131, 0.18) !important;
    color: #fff6df !important;
  }
}

html[data-theme="light"] .card-footer-share-btn,
html[data-theme="light"] .yard-card-open-link {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
  color: #171512 !important;
}

@media (max-width: 560px) {
  .account-card-footer,
  .yard-card-footer {
    gap: 6px;
    padding: 0 8px 9px;
  }
  .account-card-footer .account-card-save,
  .yard-card-open-link,
  .card-footer-share-btn {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
}

/* Unified Borderless Typographic Vehicle Card Spec Line (Home, Inventory, Yard) */
#grid .card .tags,
#featuredGrid .card .tags,
.card[data-yard-car] .tags {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px 0 !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

#grid .card .tag:not(.sold-status-pill),
#featuredGrid .card .tag:not(.sold-status-pill),
.card[data-yard-car] .tag:not(.sold-status-pill) {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(235, 228, 214, 0.78) !important;
  font: 500 12px/1.35 "Manrope", system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.01em !important;
}

#grid .card .tag:not(.sold-status-pill):not(:last-child)::after,
#featuredGrid .card .tag:not(.sold-status-pill):not(:last-child)::after,
.card[data-yard-car] .tag:not(.sold-status-pill):not(:last-child)::after {
  content: "·";
  margin: 0 7px;
  color: rgba(215, 189, 131, 0.65);
  font-weight: 700;
}

html[data-theme="light"] #grid .card .tag:not(.sold-status-pill),
html[data-theme="light"] #featuredGrid .card .tag:not(.sold-status-pill),
html[data-theme="light"] .card[data-yard-car] .tag:not(.sold-status-pill) {
  color: #5a5244 !important;
  background: transparent !important;
  border: 0 !important;
}

html[data-theme="light"] #grid .card .tag:not(.sold-status-pill):not(:last-child)::after,
html[data-theme="light"] #featuredGrid .card .tag:not(.sold-status-pill):not(:last-child)::after,
html[data-theme="light"] .card[data-yard-car] .tag:not(.sold-status-pill):not(:last-child)::after {
  color: rgba(138, 114, 62, 0.72);
}

#grid .card .tag.sold-status-pill,
#featuredGrid .card .tag.sold-status-pill,
.card[data-yard-car] .tag.sold-status-pill {
  padding: 2px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(248, 113, 113, 0.55) !important;
  font: 700 10.5px/1.2 "Manrope", system-ui, sans-serif !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

@media (max-width: 560px) {
  #grid .card .tags,
  #featuredGrid .card .tags,
  .card[data-yard-car] .tags {
    margin: 3px 0 0 !important;
  }
  #grid .card .tag:not(.sold-status-pill),
  #featuredGrid .card .tag:not(.sold-status-pill),
  .card[data-yard-car] .tag:not(.sold-status-pill) {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  #grid .card .tag:not(.sold-status-pill):not(:last-child)::after,
  #featuredGrid .card .tag:not(.sold-status-pill):not(:last-child)::after,
  .card[data-yard-car] .tag:not(.sold-status-pill):not(:last-child)::after {
    margin: 0 5px;
  }
}

/* ===== 2026-11-26 Feature Upgrades: Hero Inspection CTA, About FAQ, Quick Filter Bar, Keyword Search, Preloader & Garage Expert FAQ ===== */
html:not([data-theme="light"]) #home .showroom-actions .showroom-inspection {
  background: #e0be6b !important;
  color: #15120d !important;
  border: 1px solid rgba(255, 240, 198, 0.72) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="light"] #home .showroom-actions .showroom-inspection {
  background: #171512 !important;
  color: #f6eed9 !important;
  border: 1px solid #171512 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(23, 21, 18, 0.20) !important;
}

@media (hover: hover) and (pointer: fine) {
  html:not([data-theme="light"]) #home .showroom-actions .showroom-inspection:hover {
    background: #ebd089 !important;
    border-color: #fff3cf !important;
    color: #110e09 !important;
  }
  html[data-theme="light"] #home .showroom-actions .showroom-inspection:hover {
    background: #2b261e !important;
    border-color: #8c6510 !important;
    color: #ffffff !important;
  }
}

/* Contact inspection context banner when routed from Hero */
.contact-inspection-banner {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(215, 189, 131, 0.42);
  background: rgba(215, 189, 131, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

html[data-theme="light"] .contact-inspection-banner {
  border-color: rgba(138, 114, 62, 0.36);
  background: rgba(215, 189, 131, 0.16);
  color: #171512;
}

.contact-inspection-banner a.btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}

/* About FAQ & Garage FAQ shared accessible accordion */
.about-faq,
.garage-faq-section {
  margin: 26px 0 10px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 20px;
  border: 0;
  background: transparent;
  background-image: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

html[data-theme="light"] .about-faq,
html[data-theme="light"] .garage-faq-section {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  color: #171512 !important;
  box-shadow: none !important;
}

.faq-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 18px;
}

.faq-section-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(22px, 2.8vw, 30px);
}

.faq-section-head p {
  margin: 0;
  max-width: 58ch;
  color: rgba(244, 240, 232, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

html[data-theme="light"] .faq-section-head p {
  color: #4f483d !important;
}

.faq-accordion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

@media (max-width: 760px) {
  .faq-accordion-list {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(18, 23, 30, 0.30);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(215, 189, 131, 0.42);
  background: rgba(18, 23, 30, 0.46);
}

html[data-theme="light"] .faq-item {
  border-color: rgba(138, 114, 62, 0.24);
  background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .faq-item[open] {
  border-color: rgba(138, 114, 62, 0.52);
  background: #ffffff;
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 13px 16px;
  font: 700 14.5px/1.38 "Sora", "Manrope", system-ui, sans-serif;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  content: "+" / "";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(215, 189, 131, 0.36);
  color: #dfbe6f;
  font: 700 15px/1 Manrope, sans-serif;
}

html[data-theme="light"] .faq-item summary::after {
  color: #8c6510;
  border-color: rgba(138, 114, 62, 0.40);
}

.faq-item[open] summary::after {
  content: "−";
  content: "−" / "";
}

.faq-item-body {
  padding: 0 16px 15px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(244, 240, 232, 0.82);
}

html[data-theme="light"] .faq-item-body {
  color: #423b31;
}

.faq-item-tag {
  display: inline-block;
  margin-bottom: 6px;
  font: 600 12.5px/1.2 Manrope, sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #d7bd83;
}

html[data-theme="light"] .faq-item-tag {
  color: #8c6510;
}

/* Home Recently Viewed Section */
#homeRecentViewedSection.ux-recent-section {
  margin: 26px 0 8px;
}

/* Inventory Quick-Filter Chip Bar placed cleanly inside search field container */
html[data-ux="1"] .inventory-filter-sidebar .ux-filter-field-search .ux-quick-filters,
.ux-filter-field-search .ux-quick-filters {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  overflow-x: visible !important;
  margin: 8px 0 4px !important;
  gap: 6px !important;
}

html[data-ux="1"] .inventory-filter-sidebar .ux-filter-field-search .ux-quick-chip,
.ux-filter-field-search .ux-quick-chip {
  display: inline-flex !important;
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 6px 11px !important;
  font-size: 12px !important;
}

@media (max-width: 1023px) {
  .ux-keyword-field {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 620px) {
  html[data-ux="1"] .inventory-filter-sidebar .ux-filter-field-search .ux-quick-filters,
  .ux-filter-field-search .ux-quick-filters {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px !important;
  }
  html[data-ux="1"] .inventory-filter-sidebar .ux-filter-field-search .ux-quick-chip,
  .ux-filter-field-search .ux-quick-chip {
    width: auto !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
  }
}

/* Inventory Keyword Search + Live Result Count */
.ux-keyword-field {
  gap: 6px;
}

.ux-keyword-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ux-keyword-count {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #dfbe6f;
  white-space: nowrap;
}

html[data-theme="light"] .ux-keyword-count {
  color: #8c6510;
}

.ux-keyword-hint {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(244, 240, 232, 0.66);
}

html[data-theme="light"] .ux-keyword-hint {
  color: #5a5244;
}

/* Intersection-Observer Image Preloader States */
.inventory-photo[data-preload-state="pending"] {
  opacity: 0.35;
}

.inventory-photo[data-preload-state="loading"] {
  opacity: 0.65;
  transition: opacity 0.22s ease;
}

.inventory-photo[data-preload-state="ready"] {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* Garage Ask an Expert Modal + Action CTA */
.btn.garage-expert-btn {
  border: 1px solid rgba(215, 189, 131, 0.55) !important;
  background: rgba(215, 189, 131, 0.14) !important;
  color: #f5ebd2 !important;
}

html[data-theme="light"] .btn.garage-expert-btn {
  background: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.48) !important;
}

dialog#askExpertDlg {
  width: min(560px, calc(100vw - 24px));
  max-width: 560px;
  border: 1px solid rgba(215, 189, 131, 0.35);
  border-radius: 20px;
  padding: 0;
  background: rgba(18, 20, 24, 0.96);
  color: #f4f0e8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

dialog#askExpertDlg::backdrop {
  background: rgba(5, 7, 9, 0.68);
  backdrop-filter: blur(5px);
}

html[data-theme="light"] dialog#askExpertDlg {
  background: #fcfaf4;
  color: #171512;
  border-color: rgba(138, 114, 62, 0.34);
}

.ask-expert-shell {
  padding: 24px;
}

.ask-expert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ask-expert-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(21px, 3vw, 26px);
}

.ask-expert-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(244, 240, 232, 0.74);
}

html[data-theme="light"] .ask-expert-head p {
  color: #4f483d;
}

.ask-expert-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

html[data-theme="light"] .ask-expert-close {
  border-color: rgba(138, 114, 62, 0.32);
  background: #ffffff;
}

.ask-expert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.ask-expert-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .ask-expert-grid {
    grid-template-columns: 1fr;
  }
  .ask-expert-grid .full {
    grid-column: auto;
  }
  .ask-expert-shell {
    padding: 18px;
  }
}

.ask-expert-form label {
  display: block;
  margin: 0 0 5px;
  font-size: 12.5px;
  font-weight: 700;
}

.ask-expert-form input,
.ask-expert-form select,
.ask-expert-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(12, 15, 19, 0.65);
  color: #f4f0e8;
  font: 500 14px/1.4 Manrope, sans-serif;
}

html[data-theme="light"] .ask-expert-form input,
html[data-theme="light"] .ask-expert-form select,
html[data-theme="light"] .ask-expert-form textarea {
  background: #ffffff;
  color: #171512;
  border-color: rgba(138, 114, 62, 0.34);
}

.ask-expert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.ask-expert-status {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.ask-expert-status.is-error {
  color: #ff8a7a;
}

.ask-expert-status.is-success {
  color: #7ee098;
}

html[data-theme="light"] .ask-expert-status.is-error {
  color: #b42318;
}

html[data-theme="light"] .ask-expert-status.is-success {
  color: #1f6c36;
}

/* ===== 2026-11-26 Mobile Polish: Balanced 3-Button Hero Grid & 2-Col Recently Viewed ===== */
#home .showroom-copy {
  width: 100%;
  max-width: 100%;
}

#home .showroom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  #home .showroom-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    align-items: stretch !important;
  }

  #home .showroom-actions .btn {
    flex: 1 1 calc(50% - 4.5px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 10px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  #home .showroom-actions .showroom-inspection {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-height: 46px !important;
    font-size: 13.5px !important;
  }
}

@media (max-width: 480px) {
  #home .showroom-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #home .showroom-actions .btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px 8px !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
  }

  #home .showroom-actions .showroom-inspection {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .ux-recent-section,
  #homeRecentViewedSection.ux-recent-section,
  #recentlyViewedSection.ux-recent-section {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .ux-recent-head {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .ux-recent-head > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .ux-recent-head h2,
  .ux-recent-head h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .ux-recent-head .meta {
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  .ux-clear-history {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    min-height: 36px !important;
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }

  .ux-recent-grid,
  #homeRecentViewedSection .ux-recent-grid,
  #recentlyViewedSection .ux-recent-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ux-recent-card {
    min-width: 0 !important;
    border-radius: 12px !important;
  }

  .ux-recent-thumb,
  .ux-recent-thumb-empty {
    aspect-ratio: 16 / 10 !important;
  }

  .ux-recent-body {
    padding: 9px 10px !important;
    gap: 3px !important;
  }

  .ux-recent-title {
    font-size: 13px !important;
    line-height: 1.26 !important;
  }

  .ux-recent-price {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }

  .ux-recent-meta {
    font-size: 11px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 600px) {
  #contact > .contact-grid,
  .contact-grid:has(> .contact-card) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .contact-card {
    min-width: 0 !important;
    min-height: 112px !important;
    padding: 13px 11px !important;
    overflow: hidden !important;
  }

  .contact-card span {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  .contact-card strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  #publicEmailLink strong,
  #publicEmail {
    font-size: clamp(10px, 2.75vw, 12px) !important;
    letter-spacing: -0.01em !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .contact-card small {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
  }

  #grid,
  #buy #grid,
  .inventory-results-pane #grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  #grid > .card,
  #buy #grid > .card,
  .inventory-results-pane #grid > .card {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #grid > .empty,
  #grid > .error {
    grid-column: 1 / -1 !important;
  }

  #homeRecentViewedSection .ux-recent-grid,
  #recentlyViewedSection .ux-recent-grid,
  .ux-recent-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* ===== 17. Scoped #grid .card Book Inspection Footer Button & Inspection Booking Modal ===== */

#grid .card .card-actions-footer .inventory-inspect-button,
#grid .card .account-card-footer .card-footer-inspect-btn {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(223, 190, 111, 0.72) !important;
  background: #dfc070 !important;
  color: #14120e !important;
  font: 700 12.5px/1.15 "Manrope", system-ui, sans-serif !important;
  letter-spacing: 0.01em !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

#grid .card .card-actions-footer .inventory-inspect-button:hover:not(:disabled),
#grid .card .account-card-footer .card-footer-inspect-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#grid .card .card-actions-footer .inventory-inspect-button:focus-visible,
#grid .card .account-card-footer .card-footer-inspect-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

#grid .card .card-actions-footer .inventory-inspect-button:disabled,
#grid .card .account-card-footer .card-footer-inspect-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.45);
  transform: none;
}

#grid .card .card-actions-footer .inventory-inspect-button svg,
#grid .card .account-card-footer .card-footer-inspect-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: currentColor;
}

html[data-theme="light"] #grid .card .card-actions-footer .inventory-inspect-button,
html[data-theme="light"] #grid .card .account-card-footer .card-footer-inspect-btn {
  background: #221d15 !important;
  border-color: rgba(138, 100, 18, 0.65) !important;
  color: #f6e7c1 !important;
  box-shadow: 0 4px 12px rgba(48, 38, 18, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] #grid .card .card-actions-footer .inventory-inspect-button:focus-visible,
html[data-theme="light"] #grid .card .account-card-footer .card-footer-inspect-btn:focus-visible {
  outline-color: #8a6412;
}

@media (max-width: 600px) {
  #grid .card .card-actions-footer .inventory-inspect-button,
  #grid .card .account-card-footer .card-footer-inspect-btn {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    gap: 5px !important;
  }

  #grid .card .card-actions-footer .inventory-inspect-button svg,
  #grid .card .account-card-footer .card-footer-inspect-btn svg {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
}

dialog#inspectionBookingModal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(760px, calc(100vw - 24px));
  max-width: min(760px, calc(100vw - 24px));
  height: auto;
  max-height: min(92dvh, 860px);
  padding: 0;
  border: 0 !important;
  border-radius: 22px;
  background-color: rgba(13, 15, 20, 0.88) !important;
  background-image: none !important;
  color: #f4f0e8;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(26px) saturate(135%);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  overflow: auto;
}

dialog#inspectionBookingModal::backdrop {
  background: rgba(5, 7, 10, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

dialog#inspectionBookingModal[open] {
  animation: uxCompareModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

dialog#inspectionBookingModal[open]::backdrop {
  animation: uxCompareBackdropIn 0.2s ease both !important;
}

@media (max-width: 700px) {
  dialog#inspectionBookingModal {
    position: fixed !important;
    inset: 0 !important;
    margin: auto !important;
    width: min(500px, calc(100vw - 24px)) !important;
    max-width: min(500px, calc(100vw - 24px)) !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    border-radius: 20px !important;
    border: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }
}

html[data-theme="light"] dialog#inspectionBookingModal {
  background-color: rgba(253, 250, 243, 0.94) !important;
  background-image: none !important;
  color: #171512 !important;
  border: 0 !important;
  box-shadow:
    0 24px 68px rgba(48, 38, 18, 0.22),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.98) !important;
}

.ux-inspect-modal-shell {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ux-inspect-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ux-inspect-modal-head .eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dfbe6f;
}

html[data-theme="light"] .ux-inspect-modal-head .eyebrow {
  color: #8a6412;
}

.ux-inspect-modal-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.ux-inspect-modal-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.ux-inspect-modal-close:hover,
.ux-inspect-modal-close:focus-visible {
  outline: none !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.45) !important;
}

html[data-theme="light"] .ux-inspect-modal-close {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 2px 8px rgba(48, 38, 18, 0.08) !important;
}

.ux-inspect-car {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="light"] .ux-inspect-car {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 6px 18px rgba(48, 38, 18, 0.06) !important;
}

.ux-inspect-car img,
.ux-inspect-car-fallback {
  width: 68px;
  height: 50px;
  flex: 0 0 68px;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1c20;
}

.ux-inspect-car-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #dfbe6f;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(229, 185, 111, 0.24);
}

.ux-inspect-car-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-inspect-car-meta strong {
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ux-inspect-car-price {
  font-size: 13px;
  font-weight: 700;
  color: #dfbe6f;
  font-variant-numeric: tabular-nums;
}

html[data-theme="light"] .ux-inspect-car-price {
  color: #8a6412;
}

.ux-inspect-car-sub {
  font-size: 11.5px;
  color: rgba(244, 240, 232, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] .ux-inspect-car-sub {
  color: #5b5446;
}

.ux-inspect-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ux-inspect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.ux-inspect-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ux-inspect-field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244, 240, 232, 0.86);
}

html[data-theme="light"] .ux-inspect-field label {
  color: #3f392e;
}

dialog#inspectionBookingModal .ux-inspect-field input,
dialog#inspectionBookingModal .ux-inspect-field select,
dialog#inspectionBookingModal .ux-inspect-field textarea,
dialog#inspectionBookingModal #inspectScopeInput {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 12px !important;
  border: 0 !important;
  outline: none !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  color: #f4f0e8 !important;
  font: 500 14px/1.35 "Manrope", system-ui, sans-serif;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

dialog#inspectionBookingModal .ux-inspect-field select option {
  background: #17191d;
  color: #f4f0e8;
}

dialog#inspectionBookingModal .ux-inspect-field textarea,
dialog#inspectionBookingModal #inspectScopeInput {
  min-height: 78px;
  resize: vertical;
}

dialog#inspectionBookingModal .ux-inspect-field input:hover,
dialog#inspectionBookingModal .ux-inspect-field select:hover,
dialog#inspectionBookingModal .ux-inspect-field textarea:hover,
dialog#inspectionBookingModal #inspectScopeInput:hover {
  border: 0 !important;
  outline: none !important;
  background-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.20), 0 4px 14px rgba(0, 0, 0, 0.14) !important;
}

dialog#inspectionBookingModal .ux-inspect-field input:focus,
dialog#inspectionBookingModal .ux-inspect-field input:focus-visible,
dialog#inspectionBookingModal .ux-inspect-field select:focus,
dialog#inspectionBookingModal .ux-inspect-field select:focus-visible,
dialog#inspectionBookingModal .ux-inspect-field textarea:focus,
dialog#inspectionBookingModal .ux-inspect-field textarea:focus-visible,
dialog#inspectionBookingModal #inspectScopeInput:focus,
dialog#inspectionBookingModal #inspectScopeInput:focus-visible {
  outline: none !important;
  border: 0 !important;
  transform: none !important;
  background-color: rgba(255, 255, 255, 0.11) !important;
  background-image: none !important;
  box-shadow:
    inset 0 2px 0 0 rgba(229, 185, 111, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.22) !important;
}

dialog#inspectionBookingModal .ux-inspect-field input[aria-invalid="true"],
dialog#inspectionBookingModal .ux-inspect-field textarea[aria-invalid="true"] {
  background-color: rgba(220, 38, 38, 0.12) !important;
  box-shadow: inset 0 2px 0 0 rgba(248, 113, 113, 0.85), 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field input,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field select,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field textarea,
html[data-theme="light"] dialog#inspectionBookingModal #inspectScopeInput {
  background-color: rgba(255, 255, 255, 0.86) !important;
  background-image: none !important;
  color: #171512 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 2px 10px rgba(48, 38, 18, 0.06) !important;
}

html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field input:hover,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field select:hover,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field textarea:hover,
html[data-theme="light"] dialog#inspectionBookingModal #inspectScopeInput:hover {
  background-color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.98), 0 4px 12px rgba(48, 38, 18, 0.09) !important;
}

html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field input:focus,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field input:focus-visible,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field select:focus,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field select:focus-visible,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field textarea:focus,
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field textarea:focus-visible,
html[data-theme="light"] dialog#inspectionBookingModal #inspectScopeInput:focus,
html[data-theme="light"] dialog#inspectionBookingModal #inspectScopeInput:focus-visible {
  outline: none !important;
  border: 0 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow:
    inset 0 2px 0 0 rgba(158, 116, 21, 0.65),
    0 8px 20px rgba(48, 38, 18, 0.11) !important;
}

html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field input[aria-invalid="true"],
html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field textarea[aria-invalid="true"] {
  background-color: rgba(254, 242, 242, 0.96) !important;
  box-shadow: inset 0 2px 0 0 rgba(185, 28, 28, 0.78), 0 4px 14px rgba(185, 28, 28, 0.10) !important;
}

html[data-theme="light"] dialog#inspectionBookingModal .ux-inspect-field select option {
  background: #ffffff;
  color: #171512;
}

.ux-inspect-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(244, 240, 232, 0.70);
}

html[data-theme="light"] .ux-inspect-hint {
  color: #5b5446;
}

.ux-inspect-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  border: 1px solid rgba(70, 196, 127, 0.45);
  background: rgba(70, 196, 127, 0.12);
  color: #a9f0c4;
}

.ux-inspect-status.is-error {
  border-color: rgba(240, 123, 110, 0.55);
  background: rgba(240, 123, 110, 0.12);
  color: #f7b8b1;
}

html[data-theme="light"] .ux-inspect-status {
  color: #14532d;
}

html[data-theme="light"] .ux-inspect-status.is-error {
  color: #991b1b;
}

.ux-inspect-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.ux-inspect-submit {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #dfc070;
  color: #171512 !important;
  font: 700 14.5px/1.1 "Manrope", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.ux-inspect-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ux-inspect-secondary {
  align-self: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 11px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  color: inherit;
  font: 600 12.5px/1 "Manrope", system-ui, sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.ux-inspect-secondary:hover,
.ux-inspect-secondary:focus-visible {
  outline: none !important;
  background: rgba(255, 255, 255, 0.11) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.42) !important;
}

html[data-theme="light"] .ux-inspect-secondary {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 2px 8px rgba(48, 38, 18, 0.08) !important;
  color: #171512;
}

.ux-inspect-confirm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media print {
  dialog#inspectionBookingModal {
    display: none !important;
  }
}

/* ===== 18. Unified Smoked-Glass Cards with Corner-Only 24px Border Frame (corner-frame) ===== */
html:not([data-theme="light"]) body :is(
  main.wrap > .inventory-intro-compact,
  .ux-recent-section,
  .ux-map-section,
  .about-faq,
  .garage-faq-section,
  .ux-footer-newsletter,
  .ux-journal-recent-strip,
  #home .hero,
  #home #autoQuoteRail,
  #home .showroom-vehicle-note,
  #home .tile,
  .tiles .tile,
  #home .journal-intro,
  #home .project-intro,
  .card,
  #grid .card,
  .featured-grid .card,
  .dealer,
  .panel,
  .stat,
  .state,
  .empty,
  .error,
  .seller-card,
  .info,
  .gallery,
  .seller,
  .note,
  .listing,
  .contact-card,
  .contact-intro-card,
  #contact #publicContactForm,
  #home #garageContactCard.contact,
  .project-card,
  .project-public-empty,
  .journal-card,
  .journal-entry,
  .vehicle-card,
  .story-card,
  .mechanic-card,
  .service-card,
  .booking-card,
  .garage-card,
  .related-card,
  .request-hero,
  .chauffeur-assurance,
  .assurance-grid article,
  .steps-grid article,
  .route-preview,
  .trip-summary,
  .about-glass-card,
  .about-value-card,
  .article-toc,
  .inline-article-photo,
  .journal-internal-links a,
  .details,
  .info-card,
  .spec-card,
  .vehicle-details,
  .inventory-filter-sidebar
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html:not([data-theme="light"]) body #home .hero {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

html[data-theme="light"] body :is(
  main.wrap > .inventory-intro-compact,
  .ux-recent-section,
  .ux-map-section,
  .about-faq,
  .garage-faq-section,
  .ux-footer-newsletter,
  .ux-journal-recent-strip,
  #home .hero,
  #home #autoQuoteRail,
  #home .showroom-vehicle-note,
  #home .tile,
  .tiles .tile,
  #home .journal-intro,
  #home .project-intro,
  .card,
  #grid .card,
  .featured-grid .card,
  .ux-recent-card,
  .ux-map-place-card,
  .dealer,
  .panel,
  .stat,
  .state,
  .empty,
  .error,
  .seller-card,
  .info,
  .gallery,
  .seller,
  .note,
  .listing,
  .contact-card,
  .contact-intro-card,
  #contact #publicContactForm,
  #home #garageContactCard.contact,
  .project-card,
  .project-public-empty,
  .journal-card,
  .journal-entry,
  .vehicle-card,
  .story-card,
  .mechanic-card,
  .service-card,
  .booking-card,
  .garage-card,
  .related-card,
  .request-hero,
  .chauffeur-assurance,
  .assurance-grid article,
  .steps-grid article,
  .route-preview,
  .trip-summary,
  .about-glass-card,
  .about-value-card,
  .article-toc,
  .inline-article-photo,
  .journal-internal-links a,
  .details,
  .info-card,
  .spec-card,
  .vehicle-details,
  .inventory-filter-sidebar
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *) {
  background: rgba(253, 250, 243, 0.42) !important;
  background-color: rgba(253, 250, 243, 0.42) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  color: #171512 !important;
}

html[data-theme="light"] body #home .hero {
  background: rgba(253, 250, 243, 0.28) !important;
  background-color: rgba(253, 250, 243, 0.28) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  backdrop-filter: blur(6px) !important;
}

/* Position relative on flow cards so ::before corner-only mask spans full card bounds */
html body :is(
  main.wrap > .inventory-intro-compact,
  .ux-recent-section,
  .ux-map-section,
  .about-faq,
  .garage-faq-section,
  .ux-footer-newsletter,
  .ux-journal-recent-strip,
  #home .hero,
  #home #autoQuoteRail,
  #home .showroom-vehicle-note,
  #home .tile,
  .tiles .tile,
  #home .journal-intro,
  #home .project-intro,
  .card,
  #grid .card,
  .featured-grid .card,
  .ux-recent-card,
  .ux-map-place-card,
  .dealer,
  .panel,
  .stat,
  .state,
  .empty,
  .error,
  .seller-card,
  .info,
  .gallery,
  .seller,
  .note,
  .listing,
  .contact-card,
  .contact-intro-card,
  #contact #publicContactForm,
  #home #garageContactCard.contact,
  .project-card,
  .project-public-empty,
  .journal-card,
  .journal-entry,
  .vehicle-card,
  .story-card,
  .mechanic-card,
  .service-card,
  .booking-card,
  .garage-card,
  .related-card,
  .request-hero,
  .chauffeur-assurance,
  .assurance-grid article,
  .steps-grid article,
  .route-preview,
  .trip-summary,
  .about-glass-card,
  .about-value-card,
  .article-toc,
  .inline-article-photo,
  .journal-internal-links a,
  .details,
  .info-card,
  .spec-card,
  .vehicle-details,
  .inventory-filter-sidebar
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *) {
  position: relative !important;
}

/* Unified 1px corner-only single-line border via ::before + mask-composite (straight edges dissolve cleanly) */
html:not([data-theme="light"]) body :is(
  main.wrap > .inventory-intro-compact,
  .ux-recent-section,
  .ux-map-section,
  .about-faq,
  .garage-faq-section,
  .ux-footer-newsletter,
  .ux-journal-recent-strip,
  #home .hero,
  #home #autoQuoteRail,
  #home .showroom-vehicle-note,
  #home .tile,
  .tiles .tile,
  #home .journal-intro,
  #home .project-intro,
  .card,
  #grid .card,
  .featured-grid .card,
  .ux-recent-card,
  .ux-map-place-card,
  .dealer,
  .panel,
  .stat,
  .state,
  .empty,
  .error,
  .seller-card,
  .info,
  .gallery,
  .seller,
  .note,
  .listing,
  .contact-card,
  .contact-intro-card,
  #contact #publicContactForm,
  #home #garageContactCard.contact,
  .project-card,
  .project-public-empty,
  .journal-card,
  .journal-entry,
  .vehicle-card,
  .story-card,
  .mechanic-card,
  .service-card,
  .booking-card,
  .garage-card,
  .related-card,
  .request-hero,
  .chauffeur-assurance,
  .assurance-grid article,
  .steps-grid article,
  .route-preview,
  .trip-summary,
  .about-glass-card,
  .about-value-card,
  .article-toc,
  .inline-article-photo,
  .journal-internal-links a,
  .details,
  .info-card,
  .spec-card,
  .vehicle-details,
  .inventory-filter-sidebar
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: inherit !important;
  padding: 1px !important;
  pointer-events: none !important;
  z-index: 4 !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(64px 48px at 0% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.18) 40%, rgba(255, 255, 255, 0.05) 72%, transparent 100%),
    radial-gradient(64px 48px at 100% 0%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.18) 40%, rgba(255, 255, 255, 0.05) 72%, transparent 100%) !important;
  background-position: 0 0 !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  mask-composite: exclude !important;
  opacity: 1 !important;
  transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html[data-theme="light"] body :is(
  main.wrap > .inventory-intro-compact,
  .ux-recent-section,
  .ux-map-section,
  .about-faq,
  .garage-faq-section,
  .ux-footer-newsletter,
  .ux-journal-recent-strip,
  #home .hero,
  #home #autoQuoteRail,
  #home .showroom-vehicle-note,
  #home .tile,
  .tiles .tile,
  #home .journal-intro,
  #home .project-intro,
  .card,
  #grid .card,
  .featured-grid .card,
  .ux-recent-card,
  .ux-map-place-card,
  .dealer,
  .panel,
  .stat,
  .state,
  .empty,
  .error,
  .seller-card,
  .info,
  .gallery,
  .seller,
  .note,
  .listing,
  .contact-card,
  .contact-intro-card,
  #contact #publicContactForm,
  #home #garageContactCard.contact,
  .project-card,
  .project-public-empty,
  .journal-card,
  .journal-entry,
  .vehicle-card,
  .story-card,
  .mechanic-card,
  .service-card,
  .booking-card,
  .garage-card,
  .related-card,
  .request-hero,
  .chauffeur-assurance,
  .assurance-grid article,
  .steps-grid article,
  .route-preview,
  .trip-summary,
  .about-glass-card,
  .about-value-card,
  .article-toc,
  .inline-article-photo,
  .journal-internal-links a,
  .details,
  .info-card,
  .spec-card,
  .vehicle-details,
  .inventory-filter-sidebar
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  border-radius: inherit !important;
  padding: 1px !important;
  pointer-events: none !important;
  z-index: 4 !important;
  background-color: transparent !important;
  background-image:
    radial-gradient(64px 48px at 0% 0%, rgba(138, 114, 62, 0.40) 0%, rgba(138, 114, 62, 0.26) 40%, rgba(138, 114, 62, 0.08) 72%, transparent 100%),
    radial-gradient(64px 48px at 100% 0%, rgba(138, 114, 62, 0.40) 0%, rgba(138, 114, 62, 0.26) 40%, rgba(138, 114, 62, 0.08) 72%, transparent 100%) !important;
  background-position: 0 0 !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  mask-composite: exclude !important;
  opacity: 1 !important;
  transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Disable legacy ::after perimeter border so there is never a double outline */
html body :is(
  main.wrap > .inventory-intro-compact,
  .ux-recent-section,
  .ux-map-section,
  .about-faq,
  .garage-faq-section,
  .ux-footer-newsletter,
  .ux-journal-recent-strip,
  #home .hero,
  #home #autoQuoteRail,
  #home .showroom-vehicle-note,
  #home .tile,
  .tiles .tile,
  #home .journal-intro,
  #home .project-intro,
  .card,
  #grid .card,
  .featured-grid .card,
  .ux-recent-card,
  .ux-map-place-card,
  .dealer,
  .panel,
  .stat,
  .state,
  .empty,
  .error,
  .seller-card,
  .info,
  .gallery,
  .seller,
  .note,
  .listing,
  .contact-card,
  .contact-intro-card,
  #contact #publicContactForm,
  #home #garageContactCard.contact,
  .project-card,
  .project-public-empty,
  .journal-card,
  .journal-entry,
  .vehicle-card,
  .story-card,
  .mechanic-card,
  .service-card,
  .booking-card,
  .garage-card,
  .related-card,
  .request-hero,
  .chauffeur-assurance,
  .assurance-grid article,
  .steps-grid article,
  .route-preview,
  .trip-summary,
  .about-glass-card,
  .about-value-card,
  .article-toc,
  .inline-article-photo,
  .journal-internal-links a,
  .details,
  .info-card,
  .spec-card,
  .vehicle-details,
  .inventory-filter-sidebar
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *)::after {
  content: none !important;
  display: none !important;
}

html:not([data-theme="light"]) body :is(.ux-recent-card, .ux-map-place-card):not(#accDlg *) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

/* Soften inner horizontal dividers on Motoring Wisdom card so it matches corner-frame aesthetic */
#home #autoQuoteRail .auto-quote-top,
#home #autoQuoteRail .auto-quote-footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Sentence-case card & hero kickers */
html:not([data-theme="light"]) body :is(
  #home .showroom-kicker,
  #home .auto-quote-label,
  .eyebrow,
  .project-kicker,
  .contact-card span,
  #about .about-overline,
  #about .about-value-number
):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.90) !important;
}

/* Interactive buttons keep deliberate hairline border */
html:not([data-theme="light"]) body :is(
  .btn:not(.primary):not(.gold-button),
  .showroom-primary,
  .showroom-secondary,
  .auto-quote-next,
  .ux-quick-chip,
  .ux-card-inspect-btn,
  .ux-card-view-btn
):not(header *):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *) {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

@media (hover: hover) and (pointer: fine) {
  html:not([data-theme="light"]) body :is(
    .btn:not(.primary):not(.gold-button),
    .showroom-primary,
    .showroom-secondary,
    .auto-quote-next,
    .ux-quick-chip,
    .ux-card-inspect-btn,
    .ux-card-view-btn
  ):not(header *):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(dialog#inspectionBookingModal *):hover {
    border-color: rgba(255, 255, 255, 0.34) !important;
  }

  /* Clean smoked-glass hover without pale/white gradient washout */
  html:not([data-theme="light"]) body :is(
    main.wrap > .inventory-intro-compact,
    .ux-recent-section,
    .ux-map-section,
    .about-faq,
    .garage-faq-section,
    .ux-footer-newsletter,
    .ux-journal-recent-strip,
    #home #autoQuoteRail,
    #home .showroom-vehicle-note,
    #home .tile,
    .tiles .tile,
    #home .journal-intro,
    #home .project-intro,
    .card,
    #grid .card,
    .featured-grid .card,
    .ux-recent-card,
    .ux-map-place-card,
    .dealer,
    .panel,
    .stat,
    .state,
    .empty,
    .error,
    .seller-card,
    .info,
    .gallery,
    .seller,
    .note,
    .listing,
    .contact-card,
    .contact-intro-card,
    #contact #publicContactForm,
    #home #garageContactCard.contact,
    .project-card,
    .project-public-empty,
    .journal-card,
    .journal-entry,
    .vehicle-card,
    .story-card,
    .mechanic-card,
    .service-card,
    .booking-card,
    .garage-card,
    .related-card,
    .request-hero,
    .chauffeur-assurance,
    .assurance-grid article,
    .steps-grid article,
    .route-preview,
    .trip-summary,
    .about-glass-card,
    .about-value-card,
    .article-toc,
    .inline-article-photo,
    .journal-internal-links a,
    .details,
    .info-card,
    .spec-card,
    .vehicle-details,
    .inventory-filter-sidebar
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *):is(:hover, :focus-visible) {
    background-color: rgba(255, 255, 255, 0.03) !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html:not([data-theme="light"]) body :is(
    main.wrap > .inventory-intro-compact,
    .ux-recent-section,
    .ux-map-section,
    .about-faq,
    .garage-faq-section,
    .ux-footer-newsletter,
    .ux-journal-recent-strip,
    #home .hero,
    #home #autoQuoteRail,
    #home .showroom-vehicle-note,
    #home .tile,
    .tiles .tile,
    #home .journal-intro,
    #home .project-intro,
    .card,
    #grid .card,
    .featured-grid .card,
    .ux-recent-card,
    .ux-map-place-card,
    .dealer,
    .panel,
    .stat,
    .state,
    .empty,
    .error,
    .seller-card,
    .info,
    .gallery,
    .seller,
    .note,
    .listing,
    .contact-card,
    .contact-intro-card,
    #contact #publicContactForm,
    #home #garageContactCard.contact,
    .project-card,
    .project-public-empty,
    .journal-card,
    .journal-entry,
    .vehicle-card,
    .story-card,
    .mechanic-card,
    .service-card,
    .booking-card,
    .garage-card,
    .related-card,
    .request-hero,
    .chauffeur-assurance,
    .assurance-grid article,
    .steps-grid article,
    .route-preview,
    .trip-summary,
    .about-glass-card,
    .about-value-card,
    .article-toc,
    .inline-article-photo,
    .journal-internal-links a,
    .details,
    .info-card,
    .spec-card,
    .vehicle-details,
    .inventory-filter-sidebar
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *):is(:hover, :focus-visible)::before {
    background-image:
      radial-gradient(64px 48px at 0% 0%, rgba(229, 185, 111, 0.42) 0%, rgba(229, 185, 111, 0.22) 40%, rgba(229, 185, 111, 0.06) 72%, transparent 100%),
      radial-gradient(64px 48px at 100% 0%, rgba(229, 185, 111, 0.42) 0%, rgba(229, 185, 111, 0.22) 40%, rgba(229, 185, 111, 0.06) 72%, transparent 100%) !important;
  }

  html[data-theme="light"] body :is(
    main.wrap > .inventory-intro-compact,
    .ux-recent-section,
    .ux-map-section,
    .about-faq,
    .garage-faq-section,
    .ux-footer-newsletter,
    .ux-journal-recent-strip,
    #home #autoQuoteRail,
    #home .showroom-vehicle-note,
    #home .tile,
    .tiles .tile,
    #home .journal-intro,
    #home .project-intro,
    .card,
    #grid .card,
    .featured-grid .card,
    .ux-recent-card,
    .ux-map-place-card,
    .dealer,
    .panel,
    .stat,
    .state,
    .empty,
    .error,
    .seller-card,
    .info,
    .gallery,
    .seller,
    .note,
    .listing,
    .contact-card,
    .contact-intro-card,
    #contact #publicContactForm,
    #home #garageContactCard.contact,
    .project-card,
    .project-public-empty,
    .journal-card,
    .journal-entry,
    .vehicle-card,
    .story-card,
    .mechanic-card,
    .service-card,
    .booking-card,
    .garage-card,
    .related-card,
    .request-hero,
    .chauffeur-assurance,
    .assurance-grid article,
    .steps-grid article,
    .route-preview,
    .trip-summary,
    .about-glass-card,
    .about-value-card,
    .article-toc,
    .inline-article-photo,
    .journal-internal-links a,
    .details,
    .info-card,
    .spec-card,
    .vehicle-details,
    .inventory-filter-sidebar
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *):is(:hover, :focus-visible) {
    border: 0 !important;
    background-color: rgba(255, 252, 246, 0.56) !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] body :is(
    main.wrap > .inventory-intro-compact,
    .ux-recent-section,
    .ux-map-section,
    .about-faq,
    .garage-faq-section,
    .ux-footer-newsletter,
    .ux-journal-recent-strip,
    #home .hero,
    #home #autoQuoteRail,
    #home .showroom-vehicle-note,
    #home .tile,
    .tiles .tile,
    #home .journal-intro,
    #home .project-intro,
    .card,
    #grid .card,
    .featured-grid .card,
    .ux-recent-card,
    .ux-map-place-card,
    .dealer,
    .panel,
    .stat,
    .state,
    .empty,
    .error,
    .seller-card,
    .info,
    .gallery,
    .seller,
    .note,
    .listing,
    .contact-card,
    .contact-intro-card,
    #contact #publicContactForm,
    #home #garageContactCard.contact,
    .project-card,
    .project-public-empty,
    .journal-card,
    .journal-entry,
    .vehicle-card,
    .story-card,
    .mechanic-card,
    .service-card,
    .booking-card,
    .garage-card,
    .related-card,
    .request-hero,
    .chauffeur-assurance,
    .assurance-grid article,
    .steps-grid article,
    .route-preview,
    .trip-summary,
    .about-glass-card,
    .about-value-card,
    .article-toc,
    .inline-article-photo,
    .journal-internal-links a,
    .details,
    .info-card,
    .spec-card,
    .vehicle-details,
    .inventory-filter-sidebar
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(.a4-sheet *):not(.a4-sheet):not(#dlg *):not(dialog#quickViewModal *):is(:hover, :focus-visible)::before {
    background-image:
      radial-gradient(64px 48px at 0% 0%, rgba(158, 116, 21, 0.62) 0%, rgba(158, 116, 21, 0.34) 40%, rgba(158, 116, 21, 0.10) 72%, transparent 100%),
      radial-gradient(64px 48px at 100% 0%, rgba(158, 116, 21, 0.62) 0%, rgba(158, 116, 21, 0.34) 40%, rgba(158, 116, 21, 0.10) 72%, transparent 100%) !important;
  }
}

@media (max-width: 760px) {
  html:not([data-theme="light"]) body :is(
    main.wrap > .inventory-intro-compact,
    .ux-recent-section,
    .ux-map-section,
    .about-faq,
    .garage-faq-section,
    .ux-footer-newsletter,
    #home #autoQuoteRail,
    #home .tile,
    .tiles .tile,
    #home .journal-intro,
    #home .project-intro,
    .card,
    #grid .card,
    .featured-grid .card,
    .dealer,
    .panel,
    .contact-card,
    .contact-intro-card,
    #contact #publicContactForm,
    .project-card,
    .journal-card,
    .journal-entry,
    .vehicle-card,
    .story-card,
    .mechanic-card,
    .service-card,
    .booking-card,
    .garage-card,
    .related-card,
    .ux-recent-card,
    .about-glass-card,
    .about-value-card
  ):not(#accDlg *):not(#accActionDlg *):not(#sellerEditListingDialog *):not(#dlg *):not(dialog#quickViewModal *) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html:not([data-theme="light"]) body #home .hero {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 24px !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  html:not([data-theme="light"]) body :is(
    #grid .card,
    .featured-grid .card,
    .ux-recent-card
  ):not(#accDlg *) {
    border-radius: 18px !important;
  }
}

/* Restore desktop sticky filter sidebar and eliminate mobile top:90px offset overlap */
@media (min-width: 1024px) {
  html body .inventory-filter-sidebar {
    position: sticky !important;
    top: 90px !important;
  }
}

@media (max-width: 1023px) {
  html body .inventory-workspace {
    gap: 12px !important;
  }
  html body .inventory-filter-sidebar {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ===== 19. Modernized Auth / Login Dialog (#authDlg) ===== */
html[data-ux="1"] dialog#authDlg.authbox:not(.wide) {
  width: min(440px, calc(100vw - 24px)) !important;
  max-width: 440px !important;
  max-height: min(92dvh, 760px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 22px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: #f4f0e8 !important;
  background-color: rgba(14, 16, 21, 0.94) !important;
  background-image: none !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
  backdrop-filter: blur(28px) saturate(145%) !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg.authbox:not(.wide) {
  color: #171512 !important;
  background-color: rgba(253, 250, 243, 0.97) !important;
  background-image: none !important;
  box-shadow:
    0 26px 76px rgba(48, 38, 18, 0.22),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.98) !important;
}

html[data-ux="1"] dialog#authDlg::backdrop {
  background: rgba(6, 8, 12, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html[data-ux="1"] dialog#authDlg .in {
  padding: clamp(18px, 2.5vw, 24px) !important;
}

html[data-ux="1"] dialog#authDlg .auth-brand {
  margin: 0 0 12px !important;
  padding: 0 38px !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
}

html[data-ux="1"] dialog#authDlg .auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  margin: 0 0 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-ux="1"] dialog#authDlg .auth-mode-tabs[hidden] {
  display: none !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-mode-tabs {
  background: rgba(138, 114, 62, 0.10);
  border-color: rgba(138, 114, 62, 0.22);
}

html[data-ux="1"] dialog#authDlg .auth-mode-tabs [role="tab"] {
  min-height: 38px;
  padding: 8px 12px;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: rgba(244, 240, 232, 0.72) !important;
  font: 600 13px/1 "Manrope", system-ui, sans-serif !important;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-mode-tabs [role="tab"] {
  color: #5b5446 !important;
}

html[data-ux="1"] dialog#authDlg .auth-mode-tabs [role="tab"][aria-selected="true"] {
  background: #dfc070 !important;
  color: #171512 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24) !important;
}

html[data-ux="1"] dialog#authDlg .in > h2 {
  font-size: clamp(22px, 3vw, 26px) !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.025em !important;
}

html[data-ux="1"] dialog#authDlg .auth-intro {
  margin: 0 0 14px !important;
  font-size: 13.5px !important;
  color: rgba(244, 240, 232, 0.72) !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-intro {
  color: #5b5446 !important;
}

html[data-ux="1"] dialog#authDlg .auth-fields label {
  display: block;
  margin: 10px 0 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(244, 240, 232, 0.88);
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-fields label {
  color: #2b261d !important;
}

html[data-ux="1"] dialog#authDlg .auth-fields input:not([type="radio"]) {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(10, 12, 16, 0.62) !important;
  color: #f4f0e8 !important;
  font-size: 14px;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-fields input:not([type="radio"]) {
  background: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
}

html[data-ux="1"] dialog#authDlg .auth-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

html[data-ux="1"] dialog#authDlg .auth-pw-wrap input {
  width: 100%;
  padding-right: 46px !important;
}

html[data-ux="1"] dialog#authDlg .auth-pw-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%) !important;
  width: 34px;
  height: 34px;
  min-height: 34px !important;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0 !important;
  border-radius: 9px;
  background: transparent !important;
  color: rgba(244, 240, 232, 0.66) !important;
  cursor: pointer;
  z-index: 2;
}

html[data-ux="1"] dialog#authDlg .auth-pw-toggle svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

html[data-ux="1"] dialog#authDlg .auth-pw-toggle:hover,
html[data-ux="1"] dialog#authDlg .auth-pw-toggle.is-visible {
  color: #E5B96F !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-pw-toggle {
  color: #5b5446 !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-pw-toggle:hover,
html[data-ux="1"][data-theme="light"] dialog#authDlg .auth-pw-toggle.is-visible {
  color: #8c6510 !important;
  background: rgba(138, 114, 62, 0.12) !important;
}

html[data-ux="1"] dialog#authDlg #authSubmit {
  min-height: 44px;
  border: 0 !important;
  border-radius: 12px !important;
  background: #dfc070 !important;
  color: #171512 !important;
  font-weight: 700 !important;
}

html[data-ux="1"] dialog#authDlg .google-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f4f0e8 !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg .google-btn {
  background: #ffffff !important;
  color: #171512 !important;
  border-color: rgba(138, 114, 62, 0.34) !important;
}

html[data-ux="1"] dialog#authDlg #authCloseTop {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  float: none !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: inherit !important;
  font-size: 20px !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg #authCloseTop {
  border-color: rgba(138, 114, 62, 0.32) !important;
  background: #ffffff !important;
}

html[data-ux="1"] dialog#authDlg #authSwitch {
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(229, 185, 111, 0.45) !important;
  color: #E5B96F !important;
  background: rgba(229, 185, 111, 0.10) !important;
}

html[data-ux="1"][data-theme="light"] dialog#authDlg #authSwitch {
  color: #8c6510 !important;
  border-color: rgba(138, 114, 62, 0.42) !important;
  background: rgba(158, 116, 21, 0.10) !important;
}

/* ===== 20. Journal Animated Reading Progress Indicator ===== */
.ux-read-progress-track {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  pointer-events: none;
}

html[data-theme="light"] .ux-read-progress-track {
  background: rgba(138, 114, 62, 0.16);
}

.ux-read-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(var(--ux-read-progress, 0));
  background: #e5b96f;
  box-shadow: none;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

html[data-theme="light"] .ux-read-progress-bar {
  background: #9e7415;
}

.ux-read-progress-page {
  position: sticky;
  top: 78px;
  margin-bottom: 14px;
  border-radius: 999px;
}

@media (max-width: 1023px) {
  .ux-read-progress-page {
    top: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-read-progress-bar {
    transition: none !important;
  }
}

/* ===== 21. #inspectionBookingModal Calendar, Slots, Scope & Mechanic Callback ===== */
html[data-ux="1"] dialog#inspectionBookingModal,
html[data-ux="1"] dialog#inspectionBookingModal.ux-inspect-modal {
  width: min(580px, calc(100vw - 24px)) !important;
  max-width: 580px !important;
  max-height: min(92dvh, 880px) !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-radius: 22px !important;
  background-color: rgba(13, 15, 20, 0.90) !important;
  background-image: none !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 0 rgba(255, 255, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(26px) saturate(135%) !important;
  backdrop-filter: blur(26px) saturate(135%) !important;
}

html[data-ux="1"][data-theme="light"] dialog#inspectionBookingModal,
html[data-ux="1"][data-theme="light"] dialog#inspectionBookingModal.ux-inspect-modal {
  background-color: rgba(253, 250, 243, 0.95) !important;
  background-image: none !important;
  box-shadow: 0 24px 68px rgba(48, 38, 18, 0.22), inset 0 1px 0 0 rgba(255, 255, 255, 0.98) !important;
}

.ux-inspect-scheduler {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 2px;
}

.ux-cal-pane,
.ux-slots-pane {
  padding: 13px;
  border-radius: 14px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.11), 0 8px 22px rgba(0, 0, 0, 0.14) !important;
}

html[data-theme="light"] .ux-cal-pane,
html[data-theme="light"] .ux-slots-pane {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 6px 18px rgba(48, 38, 18, 0.06) !important;
}

.ux-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ux-cal-month,
.ux-cal-month-title {
  font: 700 13.5px/1.2 "Sora", "Manrope", system-ui, sans-serif;
  color: #f4f0e8;
}

html[data-theme="light"] .ux-cal-month,
html[data-theme="light"] .ux-cal-month-title {
  color: #171512;
}

.ux-cal-nav,
.ux-cal-nav-btn {
  width: 30px;
  height: 30px;
  min-height: 30px !important;
  padding: 0;
  border-radius: 9px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
  color: inherit;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.ux-cal-nav:hover:not(:disabled),
.ux-cal-nav:focus-visible,
.ux-cal-nav-btn:hover:not(:disabled),
.ux-cal-nav-btn:focus-visible {
  outline: none !important;
  background: rgba(229, 185, 111, 0.18) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.45) !important;
}

html[data-theme="light"] .ux-cal-nav,
html[data-theme="light"] .ux-cal-nav-btn {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 2px 6px rgba(48, 38, 18, 0.08) !important;
  color: #171512;
}

.ux-cal-weekdays,
.ux-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.ux-cal-weekdays {
  margin-bottom: 5px;
}

.ux-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(244, 240, 232, 0.56);
}

html[data-theme="light"] .ux-cal-weekdays span {
  color: #6b6355;
}

.ux-cal-day {
  position: relative;
  min-height: 36px !important;
  padding: 4px 2px;
  border-radius: 9px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
  color: #f4f0e8;
  font: 600 12px/1 "Manrope", system-ui, sans-serif;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

html[data-theme="light"] .ux-cal-day {
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.94), 0 1px 4px rgba(48, 38, 18, 0.05) !important;
  color: #171512;
}

.ux-cal-day:hover:not(:disabled),
.ux-cal-day:focus-visible {
  outline: none !important;
  border: 0 !important;
  background: rgba(229, 185, 111, 0.16) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.45) !important;
}

.ux-cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 2px 0 0 rgba(229, 185, 111, 0.60) !important;
}

.ux-cal-day.is-selected {
  background: #dfc070 !important;
  color: #171512 !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), 0 6px 14px rgba(0, 0, 0, 0.22) !important;
  font-weight: 800;
}

.ux-cal-day.is-past,
.ux-cal-day.is-sunday,
.ux-cal-day:disabled {
  opacity: 0.30;
  cursor: not-allowed;
}

.ux-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E5B96F;
}

.ux-cal-day.is-selected .ux-cal-dot {
  background: #171512;
}

.ux-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
  font-size: 11px;
  color: rgba(244, 240, 232, 0.68);
}

html[data-theme="light"] .ux-cal-legend {
  color: #5b5446;
}

.ux-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ux-cal-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ux-legend-selected,
.ux-cal-legend .dot-open { background: #E5B96F; }
.ux-legend-partial,
.ux-cal-legend .dot-busy { border: 1.5px solid #E5B96F; }
.ux-legend-closed,
.ux-cal-legend .dot-closed { background: rgba(255, 255, 255, 0.28); }

html[data-theme="light"] .ux-legend-closed,
html[data-theme="light"] .ux-cal-legend .dot-closed { background: rgba(0, 0, 0, 0.22); }

.ux-slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 12px;
}

.ux-slots-date-badge,
.ux-slots-date-label {
  font-weight: 700;
  color: #E5B96F;
}

html[data-theme="light"] .ux-slots-date-badge,
html[data-theme="light"] .ux-slots-date-label {
  color: #8c6510;
}

.ux-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ux-slot-btn {
  min-height: 46px !important;
  padding: 7px 10px;
  border-radius: 11px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.10) !important;
  color: #f4f0e8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-align: left;
  font: 600 12px/1.2 "Manrope", system-ui, sans-serif;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.ux-slot-btn:hover:not(:disabled),
.ux-slot-btn:focus-visible {
  outline: none !important;
  background: rgba(229, 185, 111, 0.16) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.45) !important;
}

html[data-theme="light"] .ux-slot-btn {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.84) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 2px 8px rgba(48, 38, 18, 0.06) !important;
  color: #171512;
}

.ux-slot-btn span {
  font-size: 10.5px;
  font-weight: 600;
  color: #7ee3a9;
}

html[data-theme="light"] .ux-slot-btn span {
  color: #157347;
}

.ux-slot-btn.is-selected {
  background: #dfc070 !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(0, 0, 0, 0.22) !important;
  color: #171512 !important;
}

.ux-slot-btn.is-selected span {
  color: #171512 !important;
}

.ux-slot-btn.is-booked {
  opacity: 0.42;
  cursor: not-allowed;
}

.ux-slot-btn.is-booked strong {
  text-decoration: line-through;
}

.ux-slot-btn.is-booked span {
  color: #f1a09a;
}

html[data-theme="light"] .ux-slot-btn.is-booked span {
  color: #991b1b;
}

.ux-scope-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.ux-scope-chip {
  min-height: 34px !important;
  padding: 5px 12px;
  border-radius: 10px;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.11) !important;
  color: rgba(244, 240, 232, 0.88);
  font: 600 12px/1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.ux-scope-chip:hover,
.ux-scope-chip:focus-visible {
  outline: none !important;
  background: rgba(255, 255, 255, 0.11) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.45) !important;
}

html[data-theme="light"] .ux-scope-chip {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 2px 6px rgba(48, 38, 18, 0.06) !important;
  color: #171512;
}

.ux-scope-chip.is-active {
  border: 0 !important;
  background: rgba(229, 185, 111, 0.22) !important;
  box-shadow: inset 0 2px 0 0 rgba(229, 185, 111, 0.60) !important;
  color: #E5B96F !important;
}

html[data-theme="light"] .ux-scope-chip.is-active {
  border: 0 !important;
  background: rgba(158, 116, 21, 0.16) !important;
  box-shadow: inset 0 2px 0 0 rgba(158, 116, 21, 0.55) !important;
  color: #7c5609 !important;
}

.ux-inspect-callback-card {
  margin-top: 2px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 0 !important;
  background: rgba(229, 185, 111, 0.06) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.26), 0 8px 22px rgba(0, 0, 0, 0.14) !important;
}

html[data-theme="light"] .ux-inspect-callback-card {
  border: 0 !important;
  background: rgba(255, 252, 245, 0.90) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.96), 0 6px 18px rgba(48, 38, 18, 0.06) !important;
}

.ux-inspect-callback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ux-inspect-callback-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-inspect-callback-head strong {
  font-size: 13px;
  color: #f4f0e8;
}

.ux-inspect-callback-head small {
  font-size: 11.5px;
  color: rgba(244, 240, 232, 0.70);
}

html[data-theme="light"] .ux-inspect-callback-head strong {
  color: #171512;
}

html[data-theme="light"] .ux-inspect-callback-head small {
  color: #5b5446;
}

.ux-callback-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #E5B96F;
}

html[data-theme="light"] .ux-callback-badge {
  color: #8c6510;
}

.ux-inspect-callback-toggle {
  min-height: 36px !important;
  padding: 7px 14px;
  border-radius: 10px;
  border: 0 !important;
  background: rgba(229, 185, 111, 0.16) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.34) !important;
  color: #E5B96F;
  font: 700 12.5px/1 "Manrope", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.ux-inspect-callback-toggle:hover,
.ux-inspect-callback-toggle:focus-visible,
.ux-inspect-callback-toggle[aria-expanded="true"] {
  outline: none !important;
  border: 0 !important;
  background: rgba(229, 185, 111, 0.25) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.52) !important;
  color: #fff3d6;
}

html[data-theme="light"] .ux-inspect-callback-toggle {
  border: 0 !important;
  background: rgba(158, 116, 21, 0.13) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.85), 0 2px 6px rgba(48, 38, 18, 0.06) !important;
  color: #7c5609;
}

html[data-theme="light"] .ux-inspect-callback-toggle:hover,
html[data-theme="light"] .ux-inspect-callback-toggle:focus-visible,
html[data-theme="light"] .ux-inspect-callback-toggle[aria-expanded="true"] {
  background: #9e7415 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(158, 116, 21, 0.22) !important;
  color: #ffffff;
}

.ux-inspect-callback-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ux-inspect-callback-body[hidden] {
  display: none !important;
}

html[data-theme="light"] .ux-inspect-callback-body {
  border-top-color: rgba(138, 114, 62, 0.14);
}

.ux-inspect-callback-submit {
  min-height: 40px !important;
  padding: 8px 14px;
  border-radius: 10px;
  border: 0 !important;
  background: rgba(229, 185, 111, 0.18) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.36) !important;
  color: #E5B96F;
  font: 700 12.5px/1 "Manrope", system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  justify-self: start;
}

.ux-inspect-callback-submit:hover,
.ux-inspect-callback-submit:focus-visible {
  outline: none !important;
  border: 0 !important;
  background: rgba(229, 185, 111, 0.28) !important;
  box-shadow: inset 0 1px 0 0 rgba(229, 185, 111, 0.54) !important;
}

html[data-theme="light"] .ux-inspect-callback-submit {
  border: 0 !important;
  background: #9e7415 !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.35), 0 4px 12px rgba(158, 116, 21, 0.22) !important;
  color: #ffffff;
}

/* ===== 22. Shared Icon Helpers, Semantic Danger Actions, FAQ Category Tabs & Booking Step Flow ===== */
.ux-svg-icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.ux-btn-danger,
html[data-theme="light"] .ux-btn-danger,
.filters .ux-btn-danger,
.yard-inventory-tools .ux-btn-danger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(220, 38, 38, 0.14) !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
  color: #fca5a5 !important;
  font-weight: 700 !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
}

.ux-btn-danger:hover,
.ux-btn-danger:focus-visible {
  background: rgba(220, 38, 38, 0.24) !important;
  border-color: rgba(248, 113, 113, 0.78) !important;
  color: #fecaca !important;
}

html[data-theme="light"] .ux-btn-danger,
html[data-theme="light"] .filters .ux-btn-danger,
html[data-theme="light"] .yard-inventory-tools .ux-btn-danger {
  background: rgba(220, 38, 38, 0.10) !important;
  border: 1px solid rgba(185, 28, 28, 0.42) !important;
  color: #991b1b !important;
}

html[data-theme="light"] .ux-btn-danger:hover,
html[data-theme="light"] .ux-btn-danger:focus-visible {
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(185, 28, 28, 0.72) !important;
  color: #7f1d1d !important;
}

/* About & Contact Clean Iconography */
.about-principle-icon,
.about-value-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(229, 185, 111, 0.12);
  color: #e5b96f;
  flex: 0 0 36px;
}

html[data-theme="light"] .about-principle-icon,
html[data-theme="light"] .about-value-icon {
  background: rgba(158, 116, 21, 0.12);
  color: #8a6412;
}

.about-value-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.about-value-label {
  font: 700 12px/1.2 "Manrope", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: #e5b96f;
}

html[data-theme="light"] .about-value-label {
  color: #8a6412;
}

.contact-kicker-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #e5b96f;
  font: 700 12px/1.2 "Manrope", system-ui, sans-serif;
}

html[data-theme="light"] .contact-kicker-row {
  color: #8a6412;
}

/* Filterable FAQ Bar */
.faq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.faq-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 240, 232, 0.86);
  font: 600 12.5px/1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.faq-filter-btn:hover {
  border-color: rgba(229, 185, 111, 0.55);
  background: rgba(229, 185, 111, 0.12);
}

.faq-filter-btn.is-active {
  background: #dfc070;
  border-color: #dfc070;
  color: #171512;
  font-weight: 700;
}

.faq-filter-count {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.faq-filter-btn.is-active .faq-filter-count {
  background: rgba(23, 21, 18, 0.16);
}

html[data-theme="light"] .faq-filter-btn {
  border-color: rgba(138, 114, 62, 0.30);
  background: rgba(255, 255, 255, 0.84);
  color: #3f392e;
}

html[data-theme="light"] .faq-filter-btn.is-active {
  background: #9e7415;
  border-color: #9e7415;
  color: #ffffff;
}

html[data-theme="light"] .faq-filter-count {
  background: rgba(138, 114, 62, 0.14);
}

.faq-item[hidden] {
  display: none !important;
}

.faq-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
  font: 600 11.5px/1 "Manrope", system-ui, sans-serif;
  color: rgba(229, 185, 111, 0.85);
}

html[data-theme="light"] .faq-item-tag {
  color: #8a6412;
}

/* Sticky Topbar, Step Progress Bar, Groups & Field Errors inside #inspectionBookingModal */
.ux-inspect-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -22px;
  padding: 16px 22px 12px;
  background: rgba(13, 15, 20, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme="light"] .ux-inspect-topbar {
  background: rgba(253, 250, 243, 0.96);
  border-bottom-color: rgba(138, 114, 62, 0.16);
}

.ux-inspect-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ux-inspect-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 700 11.5px/1.2 "Manrope", system-ui, sans-serif;
  color: rgba(244, 240, 232, 0.82);
}

html[data-theme="light"] .ux-inspect-progress-meta {
  color: #4f493e;
}

.ux-inspect-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

html[data-theme="light"] .ux-inspect-progress-track {
  background: rgba(138, 114, 62, 0.16);
}

.ux-inspect-progress-fill {
  height: 100%;
  width: 0%;
  background: #e5b96f;
  transition: width 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] .ux-inspect-progress-fill {
  background: #9e7415;
}

.ux-inspect-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.ux-inspect-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(244, 240, 232, 0.64);
  font: 600 11px/1.1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ux-inspect-step.is-active {
  background: rgba(229, 185, 111, 0.18);
  color: #e5b96f;
  font-weight: 700;
}

.ux-inspect-step.is-done {
  color: #8df0b4;
}

html[data-theme="light"] .ux-inspect-step {
  background: rgba(138, 114, 62, 0.08);
  color: #5b5446;
}

html[data-theme="light"] .ux-inspect-step.is-active {
  background: rgba(158, 116, 21, 0.16);
  color: #7c5609;
}

html[data-theme="light"] .ux-inspect-step.is-done {
  color: #14532d;
}

@media (max-width: 480px) {
  .ux-inspect-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ux-inspect-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

html[data-theme="light"] .ux-inspect-group {
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 4px 14px rgba(48, 38, 18, 0.05);
}

.ux-inspect-group-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ux-inspect-group-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font: 700 14px/1.25 "Sora", "Manrope", system-ui, sans-serif;
  color: #f4f0e8;
}

html[data-theme="light"] .ux-inspect-group-title {
  color: #171512;
}

.ux-inspect-group-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(244, 240, 232, 0.68);
}

html[data-theme="light"] .ux-inspect-group-desc {
  color: #5b5446;
}

.ux-service-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ux-service-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  color: #f4f0e8;
  text-align: left;
  cursor: pointer;
}

.ux-service-choice.is-selected {
  background: rgba(229, 185, 111, 0.18);
  box-shadow: inset 0 2px 0 rgba(229, 185, 111, 0.68);
}

.ux-service-choice-head {
  font: 700 13px/1.2 "Manrope", system-ui, sans-serif;
  color: #f4f0e8;
}

.ux-service-choice.is-selected .ux-service-choice-head {
  color: #e5b96f;
}

.ux-service-choice-desc {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(244, 240, 232, 0.72);
}

html[data-theme="light"] .ux-service-choice {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 2px 8px rgba(48, 38, 18, 0.05);
  color: #171512;
}

html[data-theme="light"] .ux-service-choice.is-selected {
  background: rgba(158, 116, 21, 0.14);
  box-shadow: inset 0 2px 0 rgba(158, 116, 21, 0.65);
}

html[data-theme="light"] .ux-service-choice-head {
  color: #171512;
}

html[data-theme="light"] .ux-service-choice.is-selected .ux-service-choice-head {
  color: #7c5609;
}

html[data-theme="light"] .ux-service-choice-desc {
  color: #5b5446;
}

.ux-field-error {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(220, 38, 38, 0.14);
  color: #fecaca;
  font: 600 12px/1.35 "Manrope", system-ui, sans-serif;
}

.ux-field-error[hidden] {
  display: none !important;
}

html[data-theme="light"] .ux-field-error {
  border-color: rgba(185, 28, 28, 0.40);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

.ux-inspect-submit {
  min-height: 54px !important;
  height: auto !important;
  padding: 14px 18px !important;
  flex: 0 0 auto !important;
}

/* ===== 22. Inventory Vehicle Detail Modal (#dlg & #quickViewModal) Smoked Frosted Glass + Outer Corner-Frame ===== */
html[data-ux="1"] dialog#dlg,
html[data-ux="1"] dialog#quickViewModal {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: rgba(18, 18, 21, 0.74) !important;
  background-color: rgba(18, 18, 21, 0.74) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(26px) saturate(140%) !important;
  backdrop-filter: blur(26px) saturate(140%) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #f5f1e6 !important;
}

html[data-ux="1"][data-theme="light"] dialog#dlg,
html[data-ux="1"][data-theme="light"] dialog#quickViewModal {
  background: rgba(253, 250, 243, 0.86) !important;
  background-color: rgba(253, 250, 243, 0.86) !important;
  color: #171512 !important;
  box-shadow: 0 26px 76px rgba(48, 38, 18, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

html[data-ux="1"] dialog#dlg::backdrop,
html[data-ux="1"] dialog#quickViewModal::backdrop {
  background: rgba(6, 7, 10, 0.56) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}

html[data-ux="1"] dialog#dlg[open]::before,
html[data-ux="1"] dialog#quickViewModal[open]::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 40;
  background-image:
    radial-gradient(48px 44px at 0% 0%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 44%, transparent 74%),
    radial-gradient(48px 44px at 100% 0%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 44%, transparent 74%),
    radial-gradient(48px 44px at 0% 100%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 44%, transparent 74%),
    radial-gradient(48px 44px at 100% 100%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 44%, transparent 74%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

html[data-ux="1"][data-theme="light"] dialog#dlg[open]::before,
html[data-ux="1"][data-theme="light"] dialog#quickViewModal[open]::before {
  background-image:
    radial-gradient(48px 44px at 0% 0%, rgba(138, 114, 62, 0.44) 0%, rgba(138, 114, 62, 0.18) 44%, transparent 74%),
    radial-gradient(48px 44px at 100% 0%, rgba(138, 114, 62, 0.44) 0%, rgba(138, 114, 62, 0.18) 44%, transparent 74%),
    radial-gradient(48px 44px at 0% 100%, rgba(138, 114, 62, 0.44) 0%, rgba(138, 114, 62, 0.18) 44%, transparent 74%),
    radial-gradient(48px 44px at 100% 100%, rgba(138, 114, 62, 0.44) 0%, rgba(138, 114, 62, 0.18) 44%, transparent 74%);
}

/* Remove inner split borders/backgrounds on #dlg/.detail/.gallery/.info */
html[data-ux="1"] dialog#dlg .detail,
html[data-ux="1"] dialog#dlg .gallery,
html[data-ux="1"] dialog#dlg .info,
html[data-ux="1"] dialog#quickViewModal .gallery,
html[data-ux="1"] dialog#quickViewModal .info {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-ux="1"] dialog#dlg :is(.detail, .gallery, .info)::before,
html[data-ux="1"] dialog#dlg :is(.detail, .gallery, .info)::after,
html[data-ux="1"] dialog#quickViewModal :is(.gallery, .info)::before,
html[data-ux="1"] dialog#quickViewModal :is(.gallery, .info)::after {
  content: none !important;
  display: none !important;
}

html[data-ux="1"] dialog#dlg .mainimg {
  background: rgba(8, 10, 14, 0.36) !important;
  border-radius: 14px !important;
}

html[data-ux="1"][data-theme="light"] dialog#dlg .mainimg {
  background: rgba(232, 224, 206, 0.48) !important;
}

html[data-ux="1"] dialog#dlg .gallery-count {
  background: rgba(14, 16, 20, 0.80) !important;
  color: #f5f1e6 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html[data-ux="1"][data-theme="light"] dialog#dlg .gallery-count {
  background: rgba(253, 250, 243, 0.92) !important;
  color: #171512 !important;
  border: 1px solid rgba(138, 114, 62, 0.32) !important;
}

html[data-ux="1"] dialog#dlg .detail-fact {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

html[data-ux="1"][data-theme="light"] dialog#dlg .detail-fact {
  background: transparent !important;
  border-bottom: 1px solid rgba(138, 114, 62, 0.20) !important;
  color: #171512 !important;
}

html[data-ux="1"] dialog#dlg .seller-card {
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

html[data-ux="1"] dialog#dlg .seller-card::before,
html[data-ux="1"] dialog#dlg .seller-card::after {
  content: none !important;
  display: none !important;
}

html[data-ux="1"][data-theme="light"] dialog#dlg .seller-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(138, 114, 62, 0.22) !important;
  color: #171512 !important;
}

@media (min-width: 701px) {
  html[data-ux="1"] dialog#dlg {
    overflow: hidden !important;
    max-height: calc(100dvh - 48px) !important;
  }
  html[data-ux="1"] dialog#dlg > .detail {
    position: static !important;
    max-height: calc(100dvh - 48px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}

@media (max-width: 700px) {
  html[data-ux="1"] dialog#dlg {
    border-radius: 0 !important;
    overflow-y: auto !important;
  }
  html[data-ux="1"] dialog#dlg[open]::before {
    display: none !important;
  }
}

/* ===== 23. Final Print Suppression (Hide Floating Chat Pill & Overlays on A4 PDF) ===== */
@media print {
  #uxChatFab,
  .ux-chat-fab,
  #uxChatDrawer,
  .ux-chat-drawer,
  .ux-back-to-top,
  #compareTrayBar,
  .ux-compare-dock,
  section[aria-labelledby="tp-consent-title"],
  [role="dialog"][aria-labelledby="tp-consent-title"],
  dialog:not(#vehicleA4PrintHost) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* ===== 24. Mobile Scroll & GPU Compositing Optimization ===== */
@media (max-width: 768px) {
  html[data-ux="1"] .card,
  html[data-ux="1"] .car,
  html[data-ux="1"] .dealer-card,
  html[data-ux="1"] .yard-card,
  html[data-ux="1"] .fleet-card,
  html[data-ux="1"] .svc-card,
  html[data-ux="1"] .ux-map-place-card,
  html[data-ux="1"] .photo .year,
  html[data-ux="1"] .ux-saved-filter,
  html[data-ux="1"] .ux-compare-filter {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html[data-ux="1"] .card,
  html[data-ux="1"] .car,
  html[data-ux="1"] .dealer-card,
  html[data-ux="1"] .yard-card,
  html[data-ux="1"] .fleet-card,
  html[data-ux="1"] .svc-card {
    background: rgba(16, 17, 21, 0.90) !important;
  }
  html[data-ux="1"][data-theme="light"] .card,
  html[data-ux="1"][data-theme="light"] .car,
  html[data-ux="1"][data-theme="light"] .dealer-card,
  html[data-ux="1"][data-theme="light"] .yard-card,
  html[data-ux="1"][data-theme="light"] .fleet-card,
  html[data-ux="1"][data-theme="light"] .svc-card {
    background: rgba(255, 255, 255, 0.94) !important;
  }
}
