body.wc-theme :is(.contact-submit,.is-recommended .package-action,.category-publish-action),
body.wc-theme :is(.contact-submit,.is-recommended .package-action,.category-publish-action):is(:hover,:active,:focus) {
  color:#fff!important;background:#005f78!important;border-color:#005f78!important;
}
body.wc-theme :is(.contact-submit,.package-action,.category-publish-action,.re-location-field button):focus-visible {
  outline:3px solid #eaa532!important;outline-offset:3px;
}
body.wc-theme .re-location-field button[type=submit],body.wc-theme .re-location-field button:not([type]) {
  min-inline-size:44px!important;min-block-size:44px!important;flex:0 0 44px!important;
  padding:0!important;display:inline-grid;place-items:center;
}
body.wc-theme .re-location-field {min-height:44px;}
body.wc-theme .re-location-field input {min-width:0;}
.wc-range-error:not(:empty),.wc-range-notice {color:#82271d;background:#fff0ea;padding:.6em;border-radius:.4em;}
.wc-range-error:empty {display:none;}
#wc-a11y-launch {position:fixed;z-index:10000;left:0;bottom: max(18%,88px);min-width:48px;min-height:44px;border:0;border-radius:0 .7rem .7rem 0;background:#173f86;color:white;font:bold 1rem system-ui;padding:.45em;}
#wc-a11y-launch[hidden] {display:none;}
#wc-a11y-panel {color:#12212c;background:white;border:1px solid #667887;border-radius:1rem;padding:1.25rem;max-width:min(25rem,88vw);}
#wc-a11y-panel::backdrop {background:#0008;}
#wc-a11y-panel label {display:flex;gap:.65rem;align-items:center;min-height:44px;}
#wc-a11y-panel button {display:block;min-height:44px;margin-top:.6rem;padding:.3em 1em;}
html.wc-a11y-larger {font-size:125%!important;}
html.wc-a11y-links a[href] {text-decoration:underline!important;text-underline-offset:.15em;}
html.wc-a11y-motion *,html.wc-a11y-motion *::before,html.wc-a11y-motion *::after {animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important;}
@media (prefers-color-scheme:dark) {
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) {color-scheme:dark;--bs-body-color:#f0f3f6;--bs-body-bg:#111315;--bs-secondary-color:#bfccd4;--bs-border-color:#53606a;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact),
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) main {
    background:#111315!important;color:#eef3f6!important;
  }
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) :is(.auth-card,.login-card,.contact-card,.contact-form-card,.contact-details-card,.filter-sidebar,.re-discovery,.hero,.home-viewed-listings,.home-shortcut-card,.home-shortcut,.home-price-tools .price-banner,.browse-card,.re-property-card) {
    color:#eef3f6!important;background:#1c1f22!important;border-color:#50606b!important;
  }
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) :is(.auth-card,.contact-page,.hero,.home-section-head,.home-shortcuts,.home-viewed-listings,.home-price-tools,.re-discovery,.browse-heading) :is(h1,h2,h3,h4,label,.form-label,strong){color:#f6f8fa!important;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) :is(.auth-card,.contact-page,.hero,.home-section-head,.home-viewed-listings,.home-price-tools,.re-discovery) :is(p,small,.text-muted,.form-text){color:#cad5dc!important;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) :is(.auth-card,.contact-page,.re-discovery,.filter-sidebar) :is(.form-control,.form-select,input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea) {
    color:#f6f8fa!important;background-color:#11191e!important;border-color:#70818c!important;
  }
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) :is(.auth-card,.contact-page,.re-discovery,.filter-sidebar) ::placeholder {color:#b6c5cf!important;opacity:1;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact) :is(.auth-card,.contact-page) a:not(.btn) {color:#85dfff!important;}
}
@media (prefers-color-scheme:dark) {
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design .navbar.wc-desktop-header.bg-primary,
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design .mobile-app-nav,
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design :is(.cookie-banner,.price-banners-row,.auth-header,.contact-aside) {
    background:#1c1f22!important;color:#eef3f6!important;border-color:#52616a!important;
  }
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design :is(.nav-auth-link,.navbar-toggler) {
    background:#303941!important;color:#eef3f6!important;border-color:#53616c!important;
  }
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design .mobile-app-nav a,
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design .cookie-banner :is(p,span) {color:#e2ebef!important;}
}
@media (prefers-color-scheme:dark) and (max-width:991px) {
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design .wc-desktop-header .navbar-toggler-icon {filter:brightness(0) invert(1)!important;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design #cookieBanner.cookie-banner {background:#23292f!important;border-color:#56626c!important;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design #cookieBanner :is(.cb-text,.cb-title) {color:#edf3f6!important;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design #cookieBanner a {color:#9ce6ff!important;}
  body.wc-theme.wc-native-app.wc-route-index.wc-city-design:has(.mobile-app-nav) #cookieBanner {bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;}
}
@media (prefers-color-scheme:dark) {
  body.wc-theme.wc-route-index .home-listings-section,
  body.wc-theme.wc-route-index .home-listings-section .home-section-head {background:#111315!important;}
  body.wc-theme.wc-route-index .home-section-head .home-category-title,
  body.wc-theme.wc-route-contact .contact-page .contact-kicker {color:#98dcf2!important;}
  body.wc-theme.wc-route-login .auth-card .auth-switch,
  body.wc-theme.wc-route-contact .contact-details-card .contact-detail-item > div > span {color:#ced9df!important;}
  body.wc-theme:is(.wc-route-index,.wc-route-login,.wc-route-contact).wc-city-design .mobile-app-nav a.is-active {
    color:#fff!important;background:#005f78!important;
  }
}
@media (prefers-color-scheme:dark) {
  body.wc-theme.wc-route-index .marketplace-card .marketplace-card-footer {
    background:#1c1f22!important;color:#d2dce2!important;
  }
  body.wc-theme.wc-route-index .marketplace-card .marketplace-card-footer span {color:#d2dce2!important;}
}

/* Legacy page, account and native styles all contain important declarations.
   Keep the palette together so a late-loading widget cannot split a color pair. */
@layer account-appearance {
  body.wc-theme:is(.identity-personal, .identity-personal-listings, .account-business-page,
      .wc-route-create-listing, .wc-route-edit-listing, .wc-route-favorites,
      .wc-route-notifications, .wc-route-notification-settings) {
    --area-bg: #f2f2f7;
    --area-paper: #fff;
    --area-ink: #1c1c1e;
    --area-secondary: #53545c;
    --area-line: #c6c7ce;
    --area-tint: #edf4ff;
    --area-accent: #0055b5;
    --area-on-accent: #fff;
    --area-danger: #a52123;
    --area-success: #185b36;
    --area-success-bg: #dff4e8;
    color-scheme: light !important;
    @media (prefers-color-scheme: dark) {
      --area-bg: #101114;
      --area-paper: #1e2025;
      --area-ink: #f1f2f5;
      --area-secondary: #bdc2cd;
      --area-line: #636975;
      --area-tint: #26374c;
      --area-accent: #97c8ff;
      --area-on-accent: #102238;
      --area-danger: #ffaaa8;
      --area-success: #b9f2d0;
      --area-success-bg: #1a382a;
      color-scheme: dark !important;
    }
    &, & main {
      background: var(--area-bg) !important;
      color: var(--area-ink) !important;
    }
    /* Raised surfaces, including both the native and desktop composers. */
    & :is(.card, .page-head, .wizard-card, .wizard-rail, .wizard-workspace, .wizard-body,
        .publish-app-progress, .publish-panel, .publish-panel-heading, .publish-panel-toggle,
        .publish-actions, .edit-savebar, .create-mobile-appbar, .publisher-context,
        .profile-section, .profile-hero, .profile-body, .personal-workspace-context > *,
        .user-nav-head, .user-nav-list, .user-nav-item, .user-mobile-tabs-scroll,
        .ml-workspace, .ml-workspace-hero, .ml-card, .ml-card-actions, .ml-filter-bar,
        .ml-filter-tab, .ml-results-head, .ml-list, .notif-empty, .notif-item, .favorites-panel,
        .favorites-panel .text-center, .review-card, .review-head, .review-list, .publish-live-preview,
        .publish-preview-label, .publish-preview-content, .cat-search-box, .cat-search-results,
        .cat-card, .city-suggest-dropdown, .street-suggest-dropdown, .account-group) {
      color: var(--area-ink) !important;
      background: var(--area-paper) !important;
      border-color: var(--area-line) !important;
    }
    & main :is(h1,h2,h3,h4,h5,h6,label,strong,.h6,.form-label,.cat-card-name,
        .profile-hero-name,.user-nav-name,.ml-card-price,.ml-card-title,.price-currency,
        .review-list dd,.page-head-text,.notifications-heading,.publish-panel-heading button, .notif-empty-title, .prefs-table .fw-bold) {
      color: var(--area-ink) !important;
    }
    & main :is(p,small,.form-text,.text-muted,.text-muted-2,.ml-card-meta,.ml-meta-item,
        .ml-card-id,.user-nav-phone,.cat-card-sub,.bp-required-note,.workspace-eyebrow,
        .personal-workspace-context span, .profile-hero-sub span:not(.account-badge),
        .publish-app-progress span, .publish-app-draft summary, .dropzone div, .dropzone small, .review-list dt,.publish-preview-content > span,.notif-empty-text,.dropzone-status) {
      color: var(--area-secondary) !important;
    }
    & main :is(.form-control,.form-select,.cat-search input,.account-fields input,.account-fields textarea) {
      color: var(--area-ink) !important;
      background-color: var(--area-paper) !important;
      border-color: var(--area-line) !important;
    }
    & main ::placeholder { color: var(--area-secondary) !important; opacity: 1; }
    & :is(.cat-selected,.publish-hashtag-tip,.publish-writing-help,.dropzone,.bg-light,
        .publish-preview-photo,.alert-info,.edit-publisher,.user-nav-avatar-initials,
        .avatar-initials,.account-badge,.ml-image-open,.notif-empty-art,.page-head-ico,
        .ml-filter-tab strong, .personal-workspace-context > [aria-current],.publish-panel-number) {
      color: var(--area-ink) !important;
      background: var(--area-tint) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.publish-panel-edit,.publisher-review-context,.board-symbol,.ml-packages-link,
        .publish-app-progress button, .account-local-nav a,.account-back,.account-text-link,.btn-link,.notif-empty-link) {
      color: var(--area-accent) !important;
    }
    & :is(.create-mobile-back,.price-type-pill,.price-preset,.btn-light,.btn-outline-primary,.btn-outline-secondary,
        .ml-action--quiet,.ml-action--promote,.notifications-settings-link,.cat-change,
        .city-suggest-item,.street-suggest-item,.publisher-context a) {
      color: var(--area-accent) !important;
      background: var(--area-paper) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.user-mobile-tab,.user-nav-item,.ml-filter-tab) { color: var(--area-secondary) !important; }
    & :is(.user-mobile-tab,.user-nav-item,.ml-filter-tab).is-active,
    & .btn-check:checked + .price-type-pill, & .cat-card:is(:hover,:focus-visible), & .price-preset:hover {
      color: var(--area-accent) !important;
      background: var(--area-tint) !important;
      border-color: var(--area-accent) !important;
    }
    & :is(.btn-primary,.btn-publish,.workspace-primary,.ml-create-action,.ml-action--edit) {
      color: var(--area-on-accent) !important;
      background: var(--area-accent) !important;
      border-color: var(--area-accent) !important;
    }
    & :is(.user-nav-item,.user-mobile-tab,.ml-filter-tab,.ml-card-meta,.ml-action,.btn-primary,
        .btn-publish,.publish-panel-toggle,.btn-outline-danger,.ml-delete-action) :is(i,span):not(.badge,.publish-panel-number,.publish-panel-edit) {
      color: inherit !important;
    }
    & .create-step-count { color: var(--area-secondary) !important; }
    & .publish-app-track li { background: var(--area-line) !important; }
    & .publish-app-track li[data-reached="true"] { background: var(--area-accent) !important; }
    & .publish-panel-heading button:disabled {
      background: var(--area-paper) !important;
      color: var(--area-secondary) !important;
    }
    & :is(.user-nav-logout,.ml-delete-action,.btn-outline-danger,.publish-inline-error,.text-danger) { color: var(--area-danger) !important; }
    & :is(.ml-delete-action,.btn-outline-danger) { background: var(--area-paper) !important; }
    & :is(.ml-status-chip--active,.is-complete .publish-panel-number) {
      color: var(--area-success) !important;
      background: var(--area-success-bg) !important;
    }
    & :is(.prefs-table th,.prefs-table td) {
      --bs-table-bg: var(--area-paper);
      color: var(--area-ink) !important;
      background-color: var(--area-paper) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.wc-desktop-header,.wc-desktop-header-inner,.navbar-collapse,.mobile-app-nav,
        .site-footer,.footer-bottom,.dropdown-menu) {
      background: var(--area-paper) !important;
      color: var(--area-ink) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.wc-desktop-header,.mobile-app-nav) :is(a,button):not(.btn-publish) {
      background-color: var(--area-paper) !important;
      color: var(--area-ink) !important;
    }
    & .site-footer :is(p,span,div,li,h3,h4,.footer-title) { color: var(--area-secondary) !important; }
    & .site-footer a { color: var(--area-accent) !important; }
    & :focus-visible { outline-color: var(--area-accent) !important; }
  }
}
/* Home history cards are rendered by the server and by the local viewed-listings client. */
@layer home-history {
  body.wc-theme.wc-route-index {
    --history-surface: #fff;
    --history-highlight: #f1f7fa;
    --history-ink: #25212d;
    --history-muted: #565e68;
    --history-border: #c7d0d6;
    --history-action: #005f78;
    --history-on-action: #fff;
  }
  @media (prefers-color-scheme: dark) {
    body.wc-theme.wc-route-index {
      --history-surface: #252b31;
      --history-highlight: #293740;
      --history-ink: #f2f5f7;
      --history-muted: #c4d0d8;
      --history-border: #52616b;
      --history-action: #8adcf5;
      --history-on-action: #0f2530;
    }
  }
  body.wc-theme.wc-route-index :is(.hero-recent-item, .hero-recent-empty, .desktop-viewed-empty, .desktop-viewed-card, .hs-bar) {
    background: var(--history-surface) !important;
    color: var(--history-ink) !important;
    border-color: var(--history-border) !important;
  }
  body.wc-theme.wc-route-index :is(.hero-recent-item.is-latest, .hero-recent-item:hover, .desktop-viewed-card:hover) {
    background: var(--history-highlight) !important;
  }
  body.wc-theme.wc-route-index :is(.hero-recent-copy strong, .hero-recent-empty strong, .desktop-viewed-copy strong, .desktop-viewed-price, .desktop-viewed-empty strong) {
    color: var(--history-ink) !important;
  }
  body.wc-theme.wc-route-index :is(.hero-recent-copy small, .hero-recent-empty small, .desktop-viewed-location, .desktop-viewed-empty small, .hs-icon) {
    color: var(--history-muted) !important;
    border-color: var(--history-border) !important;
  }
  body.wc-theme.wc-route-index .hs-input {
    background: transparent !important;
    color: var(--history-ink) !important;
  }
  body.wc-theme.wc-route-index .hs-input::placeholder { color: var(--history-muted) !important; opacity: 1; }
  body.wc-theme.wc-route-index .hs-btn {
    background: var(--history-action) !important;
    color: var(--history-on-action) !important;
  }
  body.wc-theme.wc-route-index .hs-btn :is(span, i) { color: inherit !important; }
  body.wc-theme.wc-route-index :is(.home-viewed-listings .home-section-eyebrow, .hero-recent-empty-icon) { color: var(--history-action) !important; }
  body.wc-theme.wc-route-index .hero-recent-empty-icon { background: var(--history-surface) !important; }
  body.wc-theme.wc-route-index .desktop-viewed-thumb { background-color: var(--history-highlight) !important; }
  body.wc-theme.wc-route-index .nav-actions :is(.nav-bell-btn, .nav-favorites-btn) {
    color: var(--history-ink) !important;
    background: transparent !important;
  }
  body.wc-theme.wc-route-index .nav-actions :is(.nav-bell-btn, .nav-favorites-btn) i { color: inherit !important; }
}
/* Shared website and WebView controls and content surfaces. Keep imagery and map tiles intact. */
@layer app-appearance {
  body:is(.wc-theme,.wc-native-error,.wc-status-page) {
    --app-canvas: #f5f7f8;
    --app-paper: #fff;
    --app-raised: #edf3f6;
    --app-ink: #20282e;
    --app-muted: #4f606b;
    --app-line: #b5c4cb;
    --app-link: #005c75;
    --app-action: #005d75;
    --app-on-action: #fff;
    --app-danger: #a12b32;
    --app-good: #17623b;
    --app-warn: #794a0e;
  }
  @media (prefers-color-scheme: dark) {
    :root:has(> body.wc-theme) {
      color-scheme: dark;
      background-color: #111518;
    }
    body:is(.wc-theme,.wc-native-error,.wc-status-page) {
      color-scheme: dark;
      --app-canvas: #111518;
      --app-paper: #20262b;
      --app-raised: #2a343b;
      --app-ink: #f0f4f6;
      --app-muted: #bccbd3;
      --app-line: #576771;
      --app-link: #8edcf2;
      --app-action: #17617a;
      --app-on-action: #fff;
      --app-danger: #ffaeb0;
      --app-good: #a5e9bb;
      --app-warn: #ffd795;
      --bs-body-bg: var(--app-canvas);
      --bs-body-color: var(--app-ink);
      --bs-secondary-color: var(--app-muted);
      --bs-border-color: var(--app-line);
    }
    body.wc-theme.wc-city-design {
      --city-canvas: var(--app-canvas) !important;
      --city-paper: var(--app-paper) !important;
      --city-ink: var(--app-ink) !important;
      --city-muted: var(--app-muted) !important;
      --city-line: var(--app-line) !important;
      --city-tint: var(--app-raised) !important;
      --wc-text: var(--app-ink) !important;
      --wc-text-2: var(--app-muted) !important;
      --wc-muted: var(--app-muted) !important;
      --wc-border: var(--app-line) !important;
      --wc-border-2: var(--app-line) !important;
      --wc-surface: var(--app-paper) !important;
    }
    body.wc-theme :is(.faq-item,.category-seo-text,.realestate-map-caption,#realEstateMap,.package-card,.packages-how,.page-link,.thv-item) {
      background: var(--app-paper) !important;
      color: var(--app-ink) !important;
      border-color: var(--app-line) !important;
    }
    body.wc-theme :is(.megacat-link,.faq-q,.faq-q i,.package-name,.package-price,.package-price span,
        .package-features,.package-features :is(span,strong),.packages-how-list strong,.thv-item,.site-footer .footer-title,.site-footer .footer-seo-title) {
      color: var(--app-ink) !important;
    }
    body.wc-theme :is(.faq-a,.category-seo-text p,.breadcrumb-item.active,.legal-breadcrumb,.legal-breadcrumb span,
        .login-sub,.auth-switch,.form-check-label,.packages-page p,.package-duration,.package-eyebrow,.packages-how-list li,
        .site-footer p,.site-footer li,.site-footer .footer-bottom,.site-footer .footer-contact) {
      color: var(--app-muted) !important;
    }
    body.wc-theme :is(.site-footer a,.location-related a,.category-seo-text a,.realestate-map-caption i,.breadcrumb a,.legal-breadcrumb a,.packages-page a:not(.package-action),
        .packages-kicker,.packages-how-kicker,.packages-section-label,.megacat-group,.megacat-mi,.hiw-connector i,.page-trade .btn-link) {
      color: var(--app-link) !important;
    }
    body.wc-theme :is(.page-item.active .page-link,.package-action,.package-ribbon,.packages-step-number) {
      background: var(--app-action) !important;
      color: var(--app-on-action) !important;
      border-color: var(--app-action) !important;
    }
    body.wc-theme, body.wc-theme main, body.wc-theme .site-footer {
      color: var(--app-ink) !important;
      background: var(--app-canvas) !important;
    }
    body.wc-theme :is(.wc-desktop-header,.wc-desktop-header-inner,.mobile-app-nav,.navbar-collapse,.native-menu-intro,.native-menu-account,.native-menu-section,.dropdown-menu,.dropdown-item,.native-menu-links .nav-link,
        .card,.modal-content,.modal-header,.modal-footer,.offcanvas,.page-head,.list-group-item,.accordion-item,.accordion-button,
        .filter-sidebar,.filter-sheet-head,.browse-filter-actions,.browse-search,.biz-result-card,.listing-card,.marketplace-card-footer,
        .veh-bar,.veh-qf-pop,.re-discovery,.re-location-field,.re-mobile-view-switch,.re-property-card,.realestate-map-results,.subcat-chip,.view-toggle,.category-empty-state,
        .car-prices-banner,.article-card,.legal-document,.ab-hero,.ab-editorial,.ab-section,.ab-closing,.listing-sticky-cta,.lsc-seller,.lsc-actions,
        .chat-shell,.chat-threads,.chat-threads-head,.chat-threads-list,#chatThreadsList,.chat-conv,.chat-conv-head,.chat-input-bar,.chat-composer,
        .device-card,.bu-notice,.bu-empty,.text-center.py-5,.auth-header,.spec-item,.table tr,.table td,.table th) {
      background: var(--app-paper) !important;
      color: var(--app-ink) !important;
      border-color: var(--app-line) !important;
    }
    body.wc-theme :is(.img-wrap,.gallery-main,.gallery-open-hint,.chat-thread,.legal-download,.legal-open,.veh-qf-btn,
        .city-category-more,.ab-soft,.ab-button-secondary,.btn-light,.btn-outline-primary,.btn-outline-secondary,.btn-outline-danger,
        .lsc-message,.bu-empty-link,.category-empty-state a,.view-toggle a,.alert,.content-page blockquote,.bg-light) {
      background-color: var(--app-raised) !important;
      color: var(--app-ink) !important;
      border-color: var(--app-line) !important;
    }
    body.wc-theme :is(.form-control,.form-select,input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=submit],[type=button],[type=image],[type=file],[type=hidden]),textarea,select) {
      background-color: var(--app-paper) !important;
      color: var(--app-ink) !important;
      border-color: var(--app-line) !important;
    }
    body.wc-theme :is(h1,h2,h3,h4,h5,h6,legend,dt,dd,.form-label,.card-title,.page-title,.listing-title,.article-title,.brc-name,.device-title,.nav-link,.mobile-app-nav a,.native-menu-account strong) { color:var(--app-ink) !important; }
    body.wc-theme :is(.text-dark,.text-body) { color:var(--app-ink) !important; }
    body.wc-theme :is(.text-muted,.text-secondary,.text-muted-2,.form-text,.page-subtitle,.card-subtitle,.native-menu-account small,.device-meta,.article-excerpt,.article-meta) { color:var(--app-muted) !important; }
    body.wc-theme .wc-desktop-header :is(.nav-link,.native-menu-signin,.dropdown-item,.native-menu-close,.nav-chat-btn,.native-back,.navbar-toggler) {
      color: var(--app-ink) !important; background-color:var(--app-paper) !important;
    }
    body.wc-theme :is(.mobile-app-nav,.wc-desktop-header) :is(a,button) > i { color:inherit !important; }
    body.wc-theme :is(.text-danger,.btn-outline-danger,.nav-link.text-danger) {color:var(--app-danger) !important;}
    body.wc-theme .text-warning {color:var(--app-warn) !important;}
    body.wc-theme .text-success {color:var(--app-good) !important;}
  }
  body.wc-theme ::placeholder { color:var(--app-muted) !important; opacity:1; }
  body.wc-theme :is(.btn-primary,.ab-button-primary,.re-mobile-view-switch .is-active,.mobile-app-nav .is-active) {
    background:var(--app-action) !important; color:var(--app-on-action) !important; border-color:var(--app-action) !important;
  }
  body.wc-theme :is(.btn-primary,.ab-button-primary,.re-mobile-view-switch .is-active) > :is(i,span) {color:inherit !important;}
  body.wc-theme :is(.contact-kicker,.ab-kicker,.ab-number,.ab-editorial-label,.ab-text-link,.home-category-title,.legal-open,.subcat-chip i,.filter-sheet-close,.device-meta i,.text-primary,.bu-empty-link) {color:var(--app-link) !important;}
  body.wc-theme :is(.article-meta,.article-excerpt,.brc-sub,.cte-text) {color:var(--app-muted) !important;}
}
@layer app-appearance {
  body.wc-theme .skip-to-content {color:#fff !important;background:#005d75 !important;}
  body.wc-theme :is(.hero-title.personal-hero-title span,.ab-categories a span,.ab-editorial-bottom span,.legal-help a,.legal-tabs a,.form-check-label a,.auth-switch a,.contact-detail-item a,.article-link,.listing-report-mobile a,.filter-sheet-close,.browse-filter-group summary,.re-location-field > i) {color:var(--app-link) !important;}
  body.wc-theme :is(.category-sort-form label,.category-subcats-title small,.category-subcats-title span,.category-empty-state p,.bu-empty-text,.bu-notice .bu-intro,.device-meta span,.device-meta i,.filter-sidebar .form-label,.text-center.py-5 > i,.listing-meta-chips i,.veh-qf-btn i,.native-menu-account span) {color:var(--app-muted) !important;}
  body.wc-theme :is(.brc-logo-initials,.bu-count,.re-deal-tabs .is-active,.re-filter-popover > .is-active,.re-popover-content a,.veh-type-menu a,.legal-open,#toggleFilters) {color:var(--app-link) !important;background:var(--app-raised) !important;border-color:var(--app-line) !important;}
  body.wc-theme :is(#toggleFilters,.re-filter-popover > .is-active,.article-link) i {color:inherit !important;}
  body.wc-theme .badge.bg-success {color:#fff !important;background:#17623b !important;}
  @media (prefers-color-scheme:dark) {
    body.wc-theme :is(.cpb-title,.listing-card .title,.listing-card .title span,.listing-card .price,.lsc-seller-name,.listing-mobile-price,.bu-empty-title,.listing-description-text,.bu-empty-link,.re-mobile-view-switch button:not(.is-active)) {color:var(--app-ink) !important;}
    body.wc-theme :is(.cpb-sub,.listing-card .meta span,.listing-card .title i,.listing-meta-chips span,.listing-reference-specs span,.lsc-seller-meta,.legal-page p,.legal-help,.ab-breadcrumb a,.ab-breadcrumb span,.ab-lead,.ab-description,.ab-page p,.auth-steps li,.page-head-text p,.re-property-card .meta,.browse-card-category) {color:var(--app-muted) !important;}
    body.wc-theme :is(.ab-categories a,.ab-contact-row a,.legal-page p a,.content-page a,.cpb-action span,.alert-info a,.biz-results-title i,.article-thumb > i,.contact-page label > span,.auth-switch .wc-context-back) {color:var(--app-link) !important;}
    body.wc-theme :is(.text-warning-emphasis,.listing-card .text-warning) {color:var(--app-warn) !important;}
    body.wc-theme :is(.re-popover-content,.re-results-sort,.veh-qf-pop a,.chat-action-dialog,.chat-conversation,.chat-header,.message-input-wrap,.thread-row,.chat-action-body,.chat-action-actions,.chat-msg-menu,.dropdown-menu li) {background-color:var(--app-paper) !important;color:var(--app-ink) !important;border-color:var(--app-line) !important;}
  }
}
@layer app-appearance {
  body.wc-theme :is(.filter-sheet-close,.native-menu-avatar,.re-popover-content .re-feature-option) {color:var(--app-ink) !important;background:var(--app-raised) !important;}
  body.wc-theme :is(.native-menu-avatar i,.re-popover-content strong,.re-feature-option span) {color:var(--app-ink) !important;}
  body.wc-theme :is(.site-footer p a,.contact-page span a) {color:var(--app-link) !important;}
  body.wc-theme .text-center.py-5.text-muted p {color:var(--app-muted) !important;}
}
@layer app-appearance {
  body.wc-theme :is(.ab-page p a,.legal-page p a,.ticket-thread a,.contact-page a:not(.btn),.page-contact .contact-detail a) {color:var(--app-link) !important;}
  body.wc-theme :is(.notif-count,.notif-time,.notif-message,.notif-footer-note,.notifications-list-heading > span,.notif-footer-note i) {color:var(--app-muted) !important;}
  body.wc-theme .notif-count {background:var(--app-raised) !important;}
  @media(prefers-color-scheme:dark) {
    body.wc-theme :is(.native-page-bar,.native-menu-shortcuts a,.notif-list,.notif-row,.chat-thread-item,.chat-pane,.chat-head,.chat-input,#chatForm,.ticket-thread,.brand-card,.brand-search-input,.wc-swatch) {
      color:var(--app-ink) !important;background:var(--app-paper) !important;border-color:var(--app-line) !important;
    }
    body.wc-theme :is(.native-page-title,.notif-item-title,.chat-head .fw-bold,.chat-thread-item .fw-semibold,.wc-swatch-label,.brand-name,.brand-logo-text) {color:var(--app-ink) !important;}
    body.wc-theme :is(.notif-icon,.chat-call-status,.chat-time,.chat-presence-line) {color:var(--app-muted) !important;}
    body.wc-theme :is(.notif-icon,.brand-logo.has-no-img,.ml-status-message,.chat-bubble) {background:var(--app-raised) !important;color:var(--app-ink) !important;border-color:var(--app-line) !important;}
    body.wc-theme .ml-status-message--pending {background:#3b3022 !important;color:var(--app-warn) !important;}
    body.wc-theme .chat-body {background:var(--app-canvas) !important;color:var(--app-ink) !important;}
    body.wc-theme .chat-msg.is-me .chat-bubble {background:#184455 !important;}
    body.wc-theme .chat-text {color:var(--app-ink) !important;}
    body.wc-theme .wc-route-ticket a,body.wc-theme.wc-route-ticket .wc-context-back {color:var(--app-link) !important;}
  }
}
@layer app-appearance {
  body.wc-theme :is(.home-category-title,.veh-type-menu a,.re-popover-content a,.legal-open) {
    transition-property: transform, box-shadow !important;
  }
  body.wc-theme :is(.editorial a,.lsc-seller-link-hint,.lsc-seller-chev,.content-page a,.wc-route-article main a:not(.btn-primary),.biz-mobile-sections button) { color:var(--app-link) !important; }
  body.wc-theme :is(.browse-heading p,.hiw-step-text,.td-body p) { color:var(--app-muted) !important; }
  body.wc-theme .brand-logo.has-no-img { background:var(--app-raised) !important; }
  body.wc-theme .brand-logo-text { color:var(--app-ink) !important; }
  body.wc-theme :is(.trade-hero,.hiw-num) { background-color:#153f50 !important; }
  body.wc-theme .trade-hero .trade-hero-title { color:white !important; }
  body.wc-theme .trade-hero-accent { color:#8edcf2 !important; }
  body.wc-theme .hiw-num { background:#155b71 !important; color:#fff !important; }
  body.wc-theme .text-warning { color:var(--app-warn) !important; }
  body.wc-theme .biz-mobile-sections a { color:var(--app-link) !important; }
  body:is(.wc-native-error,.wc-status-page) { background:var(--app-canvas) !important; color:var(--app-ink) !important; }
  body:is(.wc-native-error,.wc-status-page) :is(header,footer,.button.secondary) { background:var(--app-paper) !important; color:var(--app-ink) !important; border-color:var(--app-line) !important; }
  body:is(.wc-native-error,.wc-status-page) :is(.header-caption,.description,.helper,footer span) { color:var(--app-muted) !important; }
  body:is(.wc-native-error,.wc-status-page) .button:not(.secondary) { background:var(--app-action) !important; color:var(--app-on-action) !important; }
  @media(prefers-color-scheme:dark) {
    body.wc-theme :is(.hiw-section,.hiw-card,.trade-disclaimer,.biz-hero,.biz-hero-actions .btn-outline-light) { background:var(--app-paper) !important; color:var(--app-ink) !important; border-color:var(--app-line) !important; }
    body.wc-theme :is(.trade-hero-cta,.page-trade) .btn-warning { background:var(--app-action) !important; color:var(--app-on-action) !important; }
    body.wc-theme :is(.biz-empty .title,.biz-empty .small,.content-page p,.content-page li,.content-page strong,.content-page em,.editorial-sources p) { color:var(--app-ink) !important; }
    body.wc-theme .mobile-app-nav-plus { background:var(--app-action) !important; color:var(--app-on-action) !important; }
    body.wc-theme .mobile-app-nav-plus i { color:var(--app-on-action) !important; }
  }
}
@layer account-appearance {
  body.wc-theme .ml-status-message.ml-status-message--pending i { color:var(--area-ink) !important; }
  @media(prefers-color-scheme:dark) {
    body.wc-theme.wc-route-edit-listing main :is(.card.p-4,select.form-select) { background-color:#1e2025 !important; color:#f1f2f5 !important; }
  }
}
@layer app-appearance {
  body.wc-theme:is(.wc-route-privacy,.wc-route-terms,.wc-route-about) main section p a { color:var(--app-link) !important; }
  body.wc-theme .brand-logo .brand-logo-text { background-color:var(--app-raised) !important; color:var(--app-ink) !important; }
  @media(prefers-color-scheme:dark) {
    body.wc-theme.page-trade main .btn-warning { background:var(--app-action) !important; color:var(--app-on-action) !important; }
    body.wc-theme .biz-mobile-stats :is(strong,span) { color:var(--app-ink) !important; }
  }
}
@layer app-appearance {
  body.wc-theme .wc-desktop-header .navbar-toggler-icon {
    color:var(--app-ink) !important;
    border-block-color:currentColor !important;
    filter:none !important;
  }
  body.wc-theme .wc-desktop-header .navbar-toggler-icon::before {
    background-color:currentColor !important;
  }
  @media (prefers-color-scheme:dark) {
    body.wc-theme .wc-desktop-header :is(.nav-auth-link,.native-menu-close) {
      background:var(--app-raised) !important; color:var(--app-ink) !important; border-color:var(--app-line) !important;
    }
    body.wc-theme select.form-select {
      --bs-form-select-bg-img:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23bccbd3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
    }
  }
}
@layer app-appearance {
  body.wc-theme #cookieBanner {
    background:var(--app-paper) !important;
    color:var(--app-ink) !important;
    border-color:var(--app-line) !important;
  }
  body.wc-theme #cookieBanner :is(.cb-title,.cb-text) { color:var(--app-ink) !important; }
  body.wc-theme #cookieBanner :is(.cb-text a,.cb-icon) { color:var(--app-link) !important; }
  body.wc-theme #cookieBanner .cb-icon { background:var(--app-raised) !important; }
}
@layer app-appearance {
  body.wc-theme .re-primary-filters :is(.re-deal-tabs, .re-deal-tabs a, .re-filter-popover > summary, .re-more-filters) {
    background: var(--app-paper) !important;
    color: var(--app-ink) !important;
    border-color: var(--app-line) !important;
  }
  body.wc-theme .re-primary-filters .re-deal-tabs a.is-active,
  body.wc-theme .re-primary-filters .re-filter-popover[open] > summary,
  body.wc-theme .veh-qf-item[open] > summary.veh-qf-btn {
    background: var(--app-raised) !important;
    color: var(--app-link) !important;
    border-color: var(--app-link) !important;
  }
  body.wc-theme .re-primary-filters :is(summary i, .re-more-filters i),
  body.wc-theme .veh-qf-item[open] > summary.veh-qf-btn i { color: inherit !important; }
  body.wc-theme .re-popover-content label,
  body.wc-theme .re-location-field button { color: var(--app-muted) !important; }
}
@layer app-appearance {
  body.wc-theme :is(.veh-qf-pop,#filterSidebar) .wc-chip > span {
    background: var(--app-paper) !important;
    color: var(--app-ink) !important;
    border-color: var(--app-line) !important;
  }
  body.wc-theme :is(.veh-qf-pop,#filterSidebar) .wc-chip input:checked + span {
    background: var(--app-action) !important;
    color: var(--app-on-action) !important;
    border-color: var(--app-action) !important;
  }
  body.wc-theme :is(.veh-qf-pop,#filterSidebar) .wc-chip input:focus-visible + span {
    outline: 2px solid var(--app-link); outline-offset: 2px;
  }
}
@layer app-appearance {
  body.wc-theme.wc-route-notifications .notif-new-label {
    background: var(--app-raised) !important;
    color: var(--app-link) !important;
  }
}
@layer app-appearance {
  body.wc-theme .listing-report-dialog,
  body.wc-theme .listing-report-dialog .listing-report-close {
    background: var(--app-paper) !important;
    color: var(--app-ink) !important;
    border-color: var(--app-line) !important;
  }
  body.wc-theme .listing-report-dialog :is(#listingReportContext,.form-label span) {
    color: var(--app-muted) !important;
  }
  body.wc-theme .listing-report-dialog .listing-report-submit,
  body.wc-theme.wc-route-register .btn-check:checked + label.btn {
    background: var(--app-action) !important;
    color: var(--app-on-action) !important;
    border-color: var(--app-action) !important;
  }
  body.wc-theme.wc-route-register .btn-check:checked + label.btn {
    box-shadow: inset 0 -3px var(--app-link) !important;
    font-weight: 700;
  }
  @media (prefers-color-scheme:dark) {
    body.wc-theme .form-check-input:not(:checked):not(:indeterminate) {
      background-color: var(--app-paper) !important;
      border-color: var(--app-muted) !important;
    }
    body.wc-theme .form-check-input:checked {
      background-color: var(--app-action) !important;
      border-color: var(--app-link) !important;
    }
  }
}
@layer app-appearance {
  body.wc-theme .biz-hero-initials {
    background: var(--app-action) !important;
    color: var(--app-on-action) !important;
  }
  body:is(.wc-native-error,.wc-status-page) .error-number { color: var(--app-link) !important; }
  body.wc-theme :is(.fa-calendar-day,.fa-arrow-right-arrow-left).fa-3x.opacity-50,
  body.wc-theme .notif-footer-note { opacity: 1 !important; color: var(--app-muted) !important; }
  body.wc-theme :is(.veh-qf-btn,.re-filter-popover>summary,.re-deal-tabs a) {
    transition-property: transform,box-shadow !important;
  }
  @media (prefers-color-scheme:dark) {
    body.wc-theme :is(.gallery-floating-actions .gfa-btn,.gallery-nav,.chat-head-menu .chm-btn,.lsc-btn.lsc-fav,.hiw-eyebrow,.native-menu-heading button[data-bs-target="#mainNav"]) {
      background: var(--app-raised) !important;
      color: var(--app-ink) !important;
      border-color: var(--app-line) !important;
    }
    body.wc-theme .lsc-btn.lsc-fav:is(.is-active,.active,[aria-pressed=true]) { color:var(--app-danger) !important; }
    body.wc-theme .ml-card-img { background-color:var(--app-raised) !important; }
  }
}
@layer app-appearance {
  @media (prefers-color-scheme:dark) {
    body.wc-theme .ml-status-chip--pending {
      background: #3b3022 !important;
      color: var(--app-warn) !important;
    }
  }
}

/* Vehicle registration lookup in the listing composer. */
@layer account-appearance {
  body.wc-theme.wc-route-create-listing {
    & :is(.vehicle-plate-box, .vpb-official, .vpb-mode-btn) {
      background: var(--area-paper) !important;
      color: var(--area-ink) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.vpb-mode, .vpb-attrs-hint, .vpb-status--loading, .vpb-status--warn) {
      background: var(--area-tint) !important;
      color: var(--area-ink) !important;
      border-color: var(--area-line) !important;
    }
    & .vpb-mode-btn.is-active {
      background: var(--area-accent) !important;
      color: var(--area-on-accent) !important;
    }
    & :is(.vpb-mode-btn, .vpb-attrs-hint, .vpb-status, .vpb-official-head) i {
      color: inherit !important;
    }
    & :is(.vpb-status--success, .vpb-attrs-hint--success) {
      background: var(--area-success-bg) !important;
      color: var(--area-success) !important;
    }
    & .vpb-status--error {
      background: var(--area-paper) !important;
      color: var(--area-danger) !important;
    }
    & .vpb-official-head { color: var(--area-success) !important; }
    & .vpb-official-list dt { color: var(--area-secondary) !important; }
    & .vpb-official-list dd { color: var(--area-ink) !important; }
    & .vpb-official-list > div { border-color: var(--area-line) !important; }
  }
}

/* Native display QA: compact navigation, search and category controls. */
@layer app-appearance {
  @media (max-width: 991.98px) {
    /* The menu makes the underlying navigation inert while it owns focus. */
    body.wc-native-app.native-menu-open .mobile-app-nav[inert] {
      visibility: hidden !important;
    }
    body.wc-native-app.native-menu-open .navbar #mainNav.show {
      padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
      scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.wc-native-app .category-results-toolbar .view-toggle a {
      width: auto !important;
      min-inline-size: max-content !important;
      padding-inline: 10px !important;
      white-space: nowrap;
    }
  }
  body.wc-native-app #mainNav .native-menu-section-title { color: var(--app-muted) !important; }
  body.wc-native-app #mainNav .native-menu-signin {
    background: var(--app-action) !important;
    color: var(--app-on-action) !important;
  }
  @media (orientation: landscape) and (max-height: 540px) {
    /* Leave the floating accessibility launcher its own lane next to the search row. */
    body.wc-native-app.wc-route-search:is(.INDpositionLeft,.INDpositionRight) .browse-search {
      max-width: calc(100% - 60px) !important;
    }
    body.wc-native-app.wc-route-search.INDpositionLeft .browse-search { margin-left: 60px; }
    body.wc-native-app.wc-route-search.INDpositionRight .browse-search { margin-right: 60px; }
  }
}
/* End native display QA. */

/* App cookie notice */
@layer app-appearance {
  body.wc-native-app .app-cookie-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    width: min(23rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1.5rem;
    border: 1px solid var(--app-line);
    border-radius: 1.25rem;
    background: var(--app-paper);
    color: var(--app-ink);
    text-align: start;
    box-shadow: 0 16px 60px #0004;
  }
  .app-cookie-dialog::backdrop { background: rgb(0 0 0 / 50%); }
  body:has(.app-cookie-dialog[open]) { overflow: hidden; }
  body.wc-native-app .app-cookie-dialog #cookieBanner {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
  .app-cookie-dialog #cookieBanner .cb-icon { display: none !important; }
  .app-cookie-dialog #cookieBanner .cb-title {
    display: block !important;
    position: static !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding-inline-end: 2rem;
    font-size: 1.25rem !important;
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 .6rem !important;
  }
  .app-cookie-dialog #cbTitle:focus { outline: none; }
  .app-cookie-dialog #cookieBanner .cb-text { display: block; font-size: 1rem !important; line-height: 1.6 !important; }
  .app-cookie-dialog #cookieBanner .cb-text a { text-decoration: underline; }
  .app-cookie-dialog #cookieBanner .cb-actions { display: block !important; margin: 1.25rem 0 0 !important; width: 100% !important; }
  .app-cookie-dialog #cookieAccept { width: 100%; min-height: 44px; font-size: 1rem !important; }
  .app-cookie-dialog .app-cookie-close {
    position: absolute; inset-inline-end: .5rem; inset-block-start: .5rem;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--app-muted); font-size: 1.6rem !important; line-height: 1 !important;
  }
  .app-cookie-dialog :is(button,a):focus-visible { outline: 2px solid var(--app-link); outline-offset: 2px; }
}

/* App legal reader */
@layer app-appearance {
  body.wc-theme.wc-native-app.page-legal {
    &, & main { background: var(--app-canvas) !important; color: var(--app-ink) !important; }
    & main > :is(.legal-page, .app-legal-reader) {
      box-sizing: border-box; width: 100%; max-width: 44rem;
      margin-inline: auto; padding-inline: max(1.15rem, env(safe-area-inset-left), env(safe-area-inset-right)) !important;
    }
    & .legal-page { padding-block: 1rem 0 !important; }
    & .legal-breadcrumb { display: none; }
    & .legal-tabs {
      display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px !important; padding: 3px;
      background: var(--app-raised) !important; border: 0 !important; border-radius: .85rem; margin: 0 0 1.1rem !important;
    }
    & .legal-tabs a {
      display: grid; place-items: center; min-height: 44px; padding: .45rem !important; margin: 0 !important;
      border: 0 !important; border-radius: .65rem; background: transparent !important; color: var(--app-muted) !important;
      font-size: 1rem !important; text-decoration: none;
    }
    & .legal-tabs a[aria-current="page"] { background: var(--app-paper) !important; color: var(--app-ink) !important; font-weight: 700; }
    & .legal-heading { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem !important; margin: 0 0 .8rem !important; }
    & .legal-heading h1 { margin: 0 !important; font-size: clamp(1.65rem, 6vw, 2.15rem) !important; line-height: 1.3; color: var(--app-ink) !important; }
    & .legal-heading > .legal-open { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .6rem; border-radius: .6rem; background: var(--app-raised) !important; color: var(--app-link) !important; font-size: .9rem; text-decoration: none; }
    & .legal-heading p { display: none; }
    & .legal-updated { color: var(--app-muted) !important; }
    & .app-legal-text-available :is(.legal-document,.legal-help),
    & .app-legal-reader > #legalTextHeading + p { display: none; }
    & main > .app-legal-reader { padding-block: 0 2rem !important; color: var(--app-ink) !important; }
    & .app-legal-contents { border-block: 1px solid var(--app-line); margin: 0 0 1.25rem; }
    & .app-legal-contents summary { cursor: pointer; padding-block: .85rem; min-height: 44px; font-size: 1rem; font-weight: 600; color: var(--app-link) !important; }
    & .app-legal-contents nav { padding-block-end: .55rem; }
    & .app-legal-contents a {
      display: flex; align-items: center; min-height: 44px; padding: .45rem .5rem; font-size: 1rem;
      border-top: 1px solid var(--app-line); color: var(--app-link) !important; text-decoration: none;
    }
    & .app-legal-text { white-space: normal !important; overflow-wrap: anywhere; }
    & .app-legal-text p { margin: 0 0 .85rem; white-space: pre-line; font-size: 1.0625rem; line-height: 1.8; color: var(--app-ink) !important; }
    & .app-legal-text h3 { margin: 1.6rem 0 .5rem; font-size: 1.24rem; line-height: 1.5; color: var(--app-ink) !important; scroll-margin-block-start: calc(5rem + env(safe-area-inset-top)); }
    & .legal-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-block: 1.5rem; }
    & .legal-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--app-line); border-radius: .65rem; color: var(--app-link) !important; background: var(--app-paper) !important; text-decoration: none; }
    & main :is(a,summary):focus-visible { outline: 2px solid var(--app-link); outline-offset: 2px; }
  }
}

/* Native marketplace navigation */
@layer app-appearance {
 body.wc-theme.wc-native-app {
  --board-paper:var(--app-paper,#fff);
  --board-ink:var(--app-ink,#192b33);
  --board-muted:var(--app-muted,#52636c);
  --board-soft:#f2f5f6;
  --board-edge:#e4eaed;
  --board-accent:var(--app-link,#006b87);
  --board-tint:#e4f3f7;
  --board-shadow:0 4px 16px rgb(23 51 62 / 8%);
 }
 @media(prefers-color-scheme:dark){
  body.wc-theme.wc-native-app {
   --board-paper:var(--app-paper,#20262b);--board-ink:var(--app-ink,#f0f4f6);
   --board-muted:var(--app-muted,#becbd2);--board-soft:#2c363c;--board-edge:#3b484f;
   --board-accent:var(--app-link,#8edcf2);--board-tint:#233f4b;
  }
 }
 @media(max-width:991.98px){
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] {
   inset-inline:max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-left))!important;
   bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;height:auto!important;max-width:32rem!important;
   margin-inline:auto!important;padding:3px!important;align-items:stretch;
   border:1px solid var(--board-edge)!important;border-radius:36px!important;
   background:var(--board-paper)!important;box-shadow:0 5px 24px rgb(23 41 51 / 14%)!important;
  }
  body.wc-native-app:has(#mainNav.show,#mainNav.collapsing) nav[data-market-tabs] {visibility:hidden!important}
  @supports (backdrop-filter:blur(14px)) or (-webkit-backdrop-filter:blur(14px)){
   html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] {
    background:color-mix(in srgb,var(--board-paper) 89%,transparent)!important;
    -webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;
   }
  }
  @media(prefers-reduced-transparency:reduce){
   html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] {
    background:var(--board-paper)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
   }
  }
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] > a {
   min-height:49px!important;margin:0!important;padding:4px 1px!important;gap:3px;
   font-size:clamp(11px,3vw,13px)!important;font-weight:500;line-height:1.25!important;text-align:center;
   color:var(--board-ink)!important;background:transparent!important;border-radius:30px!important;
  }
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] > a.is-active {
   background:var(--board-tint)!important;color:var(--board-accent)!important;font-weight:700;
  }
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] > a.is-active::before {display:none!important}
  .wc-native-app .mobile-app-nav[data-market-tabs] svg {flex-shrink:0}
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] .mobile-app-nav-post svg {
   width:36px;height:26px;padding:4px 8px;border-radius:7px;background:#006c8b;color:white;
  }
  .wc-native-app .mobile-app-nav[data-market-tabs] > a:focus-visible {outline:2px solid var(--board-accent);outline-offset:-3px}
 }
}

@layer app-appearance {
  @media (prefers-color-scheme: dark) {
    body.page-messages.wc-theme #messages-root {
      & .chat-empty-hero {
        background: var(--app-canvas) !important;
        border-bottom-color: var(--app-action) !important;
      }
      & .chat-empty-title { color: var(--app-ink) !important; }
      & .chat-empty-text { color: var(--app-muted) !important; }
      & :is(.chat-empty-mark, .avatar-initials),
      & .chat-empty-hero:not(:has(.chat-empty-mark))::before {
        background: var(--app-raised) !important;
        color: var(--app-link) !important;
      }
      & .chat-thread-item:is(:hover, .is-active) { background: var(--app-raised) !important; }
      & .chat-thread-item.is-active { border-inline-start-color: var(--app-link) !important; }
    }
    body.wc-theme.page-listing {
      & .seller-card :is(.listing-price, .seller-name) { color: var(--app-ink) !important; }
      & .seller-card :is(.listing-price, .seller-divider) { border-color: var(--app-line) !important; }
      & .seller-card :is(.seller-meta, .seller-offline, .seller-publisher) { color: var(--app-muted) !important; }
      & .seller-card .seller-online { color: var(--app-good) !important; }
      & .seller-card :is(.seller-favorite, .seller-bizlink, .seller-name a) { color: var(--app-link) !important; }
      & .seller-card .seller-favorite:is(.active, [aria-pressed=true]) { color: var(--app-danger) !important; }
      & .gallery-counter {
        color: var(--app-ink) !important;
        background: var(--app-raised) !important;
        border-color: var(--app-line) !important;
      }
      & .gallery-thumbs img { background-color: var(--app-raised) !important; }
      & .gallery-thumbs img:is(.active, :hover) { border-color: var(--app-link) !important; }
    }
  }
}

/* Shared page canvas */
@layer account-appearance {
  :root:has(> body.wc-theme) {
    --wc-page-canvas: #f5f7f8;
    @media (prefers-color-scheme: dark) { --wc-page-canvas: #111518; }
    background: var(--wc-page-canvas) !important;
  }
  :root body.wc-theme,
  :root body.wc-theme > main {
    background: var(--wc-page-canvas) !important;
  }
  body.wc-theme.page-home :is(.hero, .home-viewed-listings, .home-listings-section, .home-section-head),
  body.wc-theme.listing-reference .listing-details-card {
    background: transparent !important;
  }
}
/* End shared page canvas */

/* Listings empty state and home subtitle */
@layer account-appearance {
  body.wc-theme.wc-route-my-listings .ml-empty-state {
    background: var(--area-paper, var(--app-paper)) !important;
    border-color: var(--area-line, var(--app-line)) !important;
  }
  body.wc-theme.wc-route-index .hero .hero-sub {
    color: var(--app-muted) !important;
  }
  body.wc-theme #wc-a11y-panel {
    background: var(--app-paper) !important;
    color: var(--app-ink) !important;
    border-color: var(--app-line) !important;
  }
}
/* End listings empty state and home subtitle */

/* Desktop category picker */
@layer account-appearance {
  @media (min-width: 992px) {
    body.wc-theme.wc-route-create-listing:not(.wc-native-app) .wizard-card[data-publish-redesign][data-current-stage="0"] {
      &, & :is(.wizard-workspace, .wizard-body, .publish-panel) {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
      }
      @media (forced-colors: none) {
        & .cat-card {
          border-color: transparent !important;
          box-shadow: none !important;
        }
      }
      & .cat-card:focus-visible {
        outline: 3px solid var(--area-accent) !important;
        outline-offset: 2px;
      }
    }
  }
}

/* End desktop category picker */

/* Desktop publication stages */
@layer account-appearance {
  @media (min-width: 992px) {
    body.wc-route-create-listing.wc-theme:not(.wc-native-app) .wizard-card[data-publish-redesign]:is([data-current-stage="1"], [data-current-stage="2"], [data-current-stage="3"], [data-current-stage="4"]) {
      &, & :is(.wizard-workspace, .wizard-body) {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
      }
      @media (forced-colors: none) {
        & .publish-panel {
          border: 0 !important;
          box-shadow: none !important;
        }
        & :is([data-writing-help], .empty-attrs, .publish-live-preview, .review-card) {
          background: transparent !important;
          border: 0 !important;
          border-radius: 0 !important;
          box-shadow: none !important;
        }
        & .review-card {
          border-block-start: 1px solid var(--area-line) !important;
        }
      }
    }
  }
}
/* End desktop publication stages */

/* Desktop vehicle details */
@layer account-appearance {
  @media (min-width: 992px) and (forced-colors: none) {
    body.wc-theme.wc-route-create-listing:not(.wc-native-app) .wizard-card[data-publish-redesign][data-current-stage="1"] {
      & .vehicle-plate-box, & .vpb-attrs-hint {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding-inline: 0;
      }
      & .vehicle-plate-box { padding-block: 0; }
      & .vpb-mode {
        background: transparent !important;
        padding: 0;
      }
    }
  }
}
/* End desktop vehicle details */

/* Desktop listing editor */
@layer account-appearance {
  @media (min-width: 992px) and (forced-colors: none) {
    body.wc-theme.wc-route-edit-listing:not(.wc-native-app) .edit-workspace:not(.edit-receipt) {
      & .col-lg-9 > .card, & .edit-publisher, & [data-writing-help] {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
      }
      & .edit-publisher, & [data-writing-help] {
        padding-inline: 0 !important;
      }
      & .edit-savebar {
        bottom: 0;
        background: var(--area-paper) !important;
        border: 0 !important;
        border-block-start: 1px solid var(--area-line) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
      }
    }
  }
}
/* End desktop listing editor */

/* Notification inbox rows */
@layer account-appearance {
  body.wc-theme.wc-route-notifications:not(.wc-native-app) {
    & .notif-item .notif-row { background: transparent !important; }
    & .notif-item :is(.notif-item-title, .notif-title-link) { color: var(--area-ink) !important; }
    & .notif-item .notif-cta { color: var(--area-accent) !important; }
    & .notif-list .notif-item:is(.is-unread, .has-link:hover, .has-link:focus-within) {
      background: var(--area-tint) !important;
    }
    & .notif-list .notif-item.is-unread { border-inline-start-color: var(--area-accent) !important; }
  }
}
/* End notification inbox rows */

/* Native messages tab */
@layer app-appearance {
 @media(max-width:991.98px){
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] {
   grid-template-columns:repeat(5,minmax(0,1fr))!important;
   column-gap:0!important;
  }
  html body.wc-theme.wc-native-app nav.mobile-app-nav[data-market-tabs] > a {
   min-width:0;align-self:stretch;white-space:nowrap;
  }
 }
}
/* End native messages tab */

/* My listings promotion credit balances */
@layer account-appearance {
  body.wc-theme.wc-route-my-listings .credits-banner {
    &, & .credit-group {
      background: var(--area-paper) !important;
      color: var(--area-ink) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.credit-totals, .credit-breakdown-list li, .credits-banner-notice) {
      background: var(--area-bg) !important;
      color: var(--area-secondary) !important;
      border-color: var(--area-line) !important;
    }
    & :is(.listing-credits-summary, .credit-pkg-name, .cb-date, strong) { color: var(--area-ink) !important; }
    & :is(.credit-stat, .credit-stats-label, .credit-totals-label, .cb-source, .credits-banner-count small) { color: var(--area-secondary) !important; }
    & :is(.credit-breakdown summary, .credits-banner-kicker, .credits-banner-notice a, .credit-stat i, .credits-banner-notice i) { color: var(--area-accent) !important; }
    & :is(.credits-banner-icon, .credit-count-badge) { background: var(--area-tint) !important; color: var(--area-accent) !important; }
    & .cb-next { background: var(--area-success-bg) !important; color: var(--area-success) !important; }
    & :is(.listing-credits-summary, .credits-banner-count, .credit-breakdown, .credit-apply-form) { border-color: var(--area-line) !important; }
  }
}
/* End my listings promotion credit balances */

/* My listings workspace */
body.wc-theme.wc-route-my-listings .ml-page-column {
  --ml-rule: color-mix(in srgb, var(--area-line) 55%, var(--area-paper));
  min-width: 0;
  & :is(.ml-workspace,.ml-filter-bar,.ml-list,.ml-results-head) {
    padding: 0; box-shadow: none; border-radius: 0;
  }
  & .ml-workspace { overflow: visible; }
  & .ml-filter-bar { display: block; margin: 0 0 1rem; }
  & .ml-filter-label, & .ml-filter-tab i { display: none; }
  & .ml-filter-scroll { display: flex; flex-wrap: nowrap; gap: .4rem; padding: 4px; overflow-x: auto; }
  & .ml-filter-tab {
    display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: .45rem .8rem;
    gap: .45rem; font-size: .9rem; font-weight: 600; white-space: nowrap; box-shadow: none;
  }
  & .ml-filter-tab strong { font-size: .8rem; font-variant-numeric: tabular-nums; border: 0; }
  & .ml-results-head { margin: 1.25rem 0 .8rem; }
  & .ml-results-head h2 { font-size: 1.15rem; font-weight: 700; }
  & .ml-result-count { color: var(--area-secondary); font-variant-numeric: tabular-nums; }
  & .ml-card { min-width: 0; min-height: 0; box-shadow: none; transform: none; }
  & .ml-card-title { display: block; overflow-wrap: anywhere; font-size: 1.14rem; font-weight: 700; line-height: 1.4; }
  & .ml-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .85rem; }
  & .ml-card-price { font-size: 1.1rem; font-weight: 650; }
  & .ml-card-id, & .ml-meta-item { font-size: .8rem; }
  & .ml-card-head { flex-wrap: wrap; gap: .3rem .6rem; }
  & .ml-status-chip { border: 0; border-radius: .45rem; font-size: .78rem; padding: .2rem .5rem; }
  & .ml-status-message { margin-block-start: .6rem; padding: .55rem .7rem; font-size: .85rem; line-height: 1.5; }
  & .ml-card-actions {
    grid-column: 1 / -1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: .3rem .55rem; padding: .55rem .85rem; border: 0;
  }
  & .ml-card-actions > * { width: auto; min-width: 0; margin: 0; }
  & .ml-card-actions .ml-card-del { margin-inline-start: auto; padding: 0; border: 0; }
  & :is(.ml-action,.ml-delete-action) {
    display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px;
    width: auto; padding: .45rem .7rem; gap: .4rem; border-radius: .65rem;
    font-size: .9rem; box-shadow: none;
  }
  & .ml-action .ml-btn-label { display: inline; }
  & .ml-empty-state { padding: clamp(2rem,6vw,4.5rem) 1.2rem; border-radius: 1.1rem; }
}
body.wc-theme.wc-route-my-listings:not(.wc-native-app) .ml-page-column {
  & .ml-workspace-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem 2rem; padding: clamp(1.1rem,3vw,2.4rem); margin-bottom: 1.45rem; border-radius: 1.1rem; box-shadow: none;
  }
  & .ml-hero-copy h1 { font-size: clamp(1.9rem,3vw,2.75rem); line-height: 1.18; }
  & .ml-hero-copy p { margin-block: .5rem 0; }
  & .ml-hero-side { width: auto; margin: 0; gap: .4rem; }
  & .ml-hero-side .ml-create-action { min-height: 44px; border: 0; }
  & .ml-filter-scroll { border-block-end: 1px solid var(--ml-rule); }
  & .ml-filter-tab { border-radius: .55rem; }
  & .ml-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18.5rem),1fr)); gap: 1rem; }
  & .ml-card {
    display: grid; grid-template: auto 1fr auto / minmax(0,1fr); align-content: start; padding: 0;
    gap: 0; border-radius: 1rem;
  }
  & .ml-card-img { width: 100%; height: clamp(10rem,15vw,13.5rem); min-height: 0; border-radius: 0; }
  & .ml-card-body { padding: 1rem 1.1rem; }
  & .ml-image-open { border: 0; border-radius: .5rem; }
}
body.wc-theme.wc-native-app.wc-route-my-listings .ml-page-column {
  font-family: system-ui,sans-serif;
  & .ml-workspace-hero { display: block; padding: .75rem .2rem 1.1rem; margin: 0; box-shadow: none; }
  & .ml-hero-copy h1 { margin: 0; font-size: clamp(2rem,7vw,2.65rem); line-height: 1.2; font-weight: 750; }
  & .ml-hero-copy p { margin: .35rem 0 0; font-size: .95rem; }
  & .ml-hero-side { display: flex; align-items: flex-start; gap: .5rem; margin-block-start: .85rem; }
  & .ml-hero-side .ml-create-action { min-height: 44px; border-radius: 2rem; padding-inline: 1rem; }
  & .ml-filter-scroll { padding: .25rem; gap: .15rem; background: var(--ml-rule); border-radius: .9rem; }
  & .ml-filter-tab { border-radius: .7rem; font-size: .875rem; }
  & .ml-list { display: block; overflow: hidden; border-radius: 1.1rem; }
  & .ml-card {
    display: grid; grid-template: auto auto / clamp(4.4rem,18vw,6.25rem) minmax(0,1fr);
    gap: .75rem; padding: 1rem; border-radius: 0;
  }
  & .ml-card-img { width: 100%; height: auto; min-height: 0; aspect-ratio: 1; border-radius: .85rem; }
  & .ml-card-body { padding: 0; }
  & .ml-card-head { justify-content: flex-start; margin-block-end: .4rem; }
  & .ml-card-actions { padding: .35rem 0 0; }
  & .ml-native-promotion[open] { flex-basis: 100%; }
  & .ml-delete-action { position: relative; }
  & .ml-delete-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@layer account-appearance {
  body.wc-theme.wc-route-my-listings .ml-page-column {
    & :is(.ml-workspace,.ml-filter-bar,.ml-list,.ml-results-head) { background: transparent !important; border: 0 !important;
    }
    & .ml-filter-tab { border: 0 !important;
      background: transparent !important;
    }
    & .ml-filter-tab strong { background: transparent !important; color: inherit !important; }
    & .ml-filter-tab[aria-current="page"] { background: var(--area-tint) !important; color: var(--area-accent) !important; }
    & .ml-card-actions { border-top: 1px solid var(--ml-rule) !important;
      background: transparent !important;
    }
    & :is(.ml-action,.ml-delete-action) { border: 0 !important;
    }
    & .ml-action--edit { background: var(--area-tint) !important; color: var(--area-accent) !important; }
    & .ml-empty-state { border: 1px solid var(--ml-rule) !important; }
  }
  body.wc-theme.wc-route-my-listings:not(.wc-native-app) .ml-page-column {
    & .ml-workspace-hero {
      border: 0 !important; background: #143649 !important;
    }
    & .ml-hero-copy h1 { color: #fff !important; }
    & .ml-hero-copy p { color: #d3e5ed !important; }
    & .ml-hero-side .ml-create-action { background: #e2f4fd !important; color: #12374a !important; }
    & .ml-hero-side .ml-packages-link { color: #d3e5ed !important; }
    & .ml-card { border: 1px solid var(--ml-rule) !important;
    }
  }
  body.wc-theme.wc-native-app.wc-route-my-listings .ml-page-column {
    & .ml-workspace-hero { background: transparent !important; border: 0 !important; }
    & .ml-hero-side .ml-create-action { width: auto !important; }
    & .ml-filter-tab[aria-current="page"] { background: var(--area-paper) !important; color: var(--area-ink) !important; }
    & .ml-list { background: var(--area-paper) !important; }
    & .ml-card { border: 0 !important;
    }
    & .ml-card + .ml-card { border-block-start: 1px solid var(--ml-rule) !important; }
  }
}
@layer account-appearance {
  body.wc-theme.wc-route-my-listings .ml-page-column {
    & :is(.ml-card--expired,.ml-card--sold) .ml-status-chip {
      color: var(--area-secondary) !important; background: var(--area-bg) !important;
    }
    & .ml-action--reactivate { color: var(--area-accent) !important; background: var(--area-tint) !important; }
  }
  body.wc-theme.wc-route-my-listings:not(.wc-native-app) .ml-page-column .ml-workspace-hero {
    padding: clamp(1.15rem,2.8vw,2.25rem) !important;
  }
  body.wc-theme.wc-native-app.wc-route-my-listings .ml-page-column {
    & .ml-hero-copy h1 { font: 750 clamp(2rem,7vw,2.65rem)/1.2 system-ui,sans-serif !important; }
    & .ml-card-title { grid-row: 2 !important; font: 650 1.06rem/1.45 system-ui,sans-serif !important; }
    & .ml-card-head { grid-row: 1 !important; }
    & .ml-card-meta { grid-row: 3 !important; }
    & .ml-card { grid-template-rows: auto auto auto !important; align-items: start; gap: .35rem .75rem !important; }
    & .ml-card-img {
      grid-row: 1 / span 3; grid-column: 1; align-self: start !important;
      width: clamp(4.4rem,18vw,6.25rem) !important; height: clamp(4.4rem,18vw,6.25rem) !important;
    }
    & .ml-card-body { display: contents !important; }
    & .ml-card-head, & .ml-card-title, & .ml-card-meta { grid-column: 2; margin: 0 !important; }
    & .ml-card-body > :is(.ml-status-message,.ml-card-promo) { grid-column: 1 / -1; margin-block: .25rem !important; }
    & .ml-card-actions { display: flex !important; flex-flow: row wrap !important; gap: .35rem !important; align-items: center; }
    & .ml-card-actions > * { width: auto !important; flex: 0 1 auto !important; }
    & .ml-card-actions .ml-card-del { margin-inline-start: auto !important; }
    & .ml-hero-side { display: flex !important; flex-flow: row wrap !important; align-items: center !important; }
    & .ml-hero-side .ml-packages-link { min-height: 44px; display: inline-flex; align-items: center; }
  }
}
@media (min-width: 992px) {
  body.wc-theme.wc-route-my-listings:not(.wc-native-app) .ml-page-column .credits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr));
    gap: .75rem; align-items: start;
  }
}
/* End my listings workspace */

/* Mobile navigation menu */
@layer account-appearance {
  @media (max-width: 991.98px) {
    .wc-desktop-header .navbar-toggler .navbar-toggler-icon {
      display: inline-block;
      box-sizing: border-box;
      width: 20px !important;
      height: 14px !important;
      position: relative;
      vertical-align: middle;
      border: 0 !important;
      border-block: 2px solid currentColor !important;
      background: transparent !important;
      color: inherit !important;
      filter: none !important;
    }
    .wc-desktop-header .navbar-toggler .navbar-toggler-icon::before {
      content: "";
      position: absolute;
      inset: 4px 0 auto !important;
      width: auto !important;
      height: 2px;
      transform: none !important;
      background: currentColor !important;
    }
    .wc-desktop-header .navbar-toggler .navbar-toggler-icon::after {
      content: none !important;
    }
    /* Lift the sticky header's stacking context for the panel and its transition. */
    body.wc-theme > .wc-desktop-header:has(#mainNav:is(.show, .collapsing)) {
      z-index: 1095 !important;
    }
    body.wc-native-app #mainNav .native-menu-shortcuts a {
      border: 1px solid var(--app-line, #bac4ca) !important;
    }
    body.wc-native-app #mainNav .native-menu-shortcuts a > :is(i, span) {
      background: transparent !important;
      color: inherit !important;
    }
    body.wc-native-app #mainNav .native-account-menu-heading,
    body.wc-native-app #mainNav .native-account-menu-heading h3 {
      background: transparent !important;
    }
  }
}
/* End mobile navigation menu */

/* Native menu viewport */
@layer account-appearance {
  @media (max-width: 991.98px) {
    html:has(> body.wc-native-app.native-menu-open, > body.wc-native-app #mainNav:is(.collapsing, .show)) {
      overflow: hidden !important;
      overscroll-behavior: none;

      /* Keep the sticky header relative to the root while the panel scrolls. */
      & > body { overflow: clip !important; }
      & > body > .wc-desktop-header {
        /* A blurred ancestor makes WebKit position the fixed panel against that ancestor. */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
      }
    }
  }
}
/* End native menu viewport */

/* Wide native navigation */
@layer app-appearance {
  @media (min-width: 992px) {
    html body.wc-native-app:has(nav[data-market-tabs]) {
      padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important;
    }
    html body.wc-native-app nav.mobile-app-nav[data-market-tabs] {
      display: grid !important;
      grid-template-columns: repeat(5,minmax(0,1fr));
      position: fixed; z-index: 1040;
      inset: auto 0 max(.5rem, env(safe-area-inset-bottom)) !important;
      width: min(32rem,90vw) !important; height: auto !important;
      margin-inline: auto; padding: .25rem;
      color: var(--app-ink,#192b33); background: var(--app-paper,Canvas) !important;
      border: 1px solid var(--app-line,#bac4ca); border-radius: 2rem;
      box-shadow: 0 .25rem 1rem rgb(23 41 51 / 14%);
    }
    html body.wc-native-app nav[data-market-tabs] > a {
      display: grid; justify-items: center; align-content: center; gap: .2rem;
      min-height: 3.25rem; color: inherit; text-decoration: none; border-radius: 2rem;
    }
    html body.wc-native-app nav[data-market-tabs] > a.is-active {
      color: var(--app-link,LinkText); background: var(--board-tint,ButtonFace);
    }
    html body.wc-native-app .navbar .navbar-toggler { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
    html body.wc-native-app .navbar > .container > .nav-actions { display: flex !important; align-items: center; gap: .25rem; }
    html body.wc-native-app .navbar .nav-actions > a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
    html body.wc-native-app .navbar #mainNav:not(.show):not(.collapsing),
    html body.wc-native-app .navbar #mainNav :is(.megacats,.d-lg-block),
    html body.wc-native-app .navbar #mainNav > .wc-web-mobile-links,
    html body.wc-native-app .search-strip { display: none !important; }
    html body.wc-native-app .navbar #mainNav:is(.show,.collapsing) {
      display: block !important; position: fixed !important; z-index: 1096;
      inset: var(--native-menu-top,4rem) 0 0 !important; width: auto !important; height: auto !important;
      overflow-y: auto; overscroll-behavior: contain; padding: 1rem max(2rem,calc((100vw - 40rem)/2));
      color: var(--app-ink,CanvasText); background: var(--app-paper,Canvas) !important;
    }
    html body.wc-native-app .navbar #mainNav :is(.native-menu-intro, .d-lg-none) { display: block !important; }
    html body.wc-native-app .navbar #mainNav .navbar-nav { flex-direction: column !important; align-items: stretch !important; }
    html body.wc-native-app .navbar #mainNav :is(.nav-link,.native-menu-shortcuts a,.native-menu-signin) { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: inherit !important; }
    html body.wc-native-app .navbar #mainNav .native-menu-heading { display: flex; align-items: center; justify-content: space-between; }
    html body.wc-native-app .navbar #mainNav .native-menu-heading button { min-width: 44px; min-height: 44px; }
    html:has(> body.wc-native-app #mainNav:is(.show,.collapsing)) {
      overflow: hidden !important;
      overscroll-behavior: none;
      & > body { overflow: clip !important; }
      & > body > .wc-desktop-header {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
      }
    }
    html body.wc-native-app:has(#mainNav.show,#mainNav.collapsing) :is(nav[data-market-tabs], .site-footer) { visibility: hidden; }
    html.wc-native-keyboard body.wc-native-app nav[data-market-tabs],
    html body.wc-native-app:has(.lightbox,dialog[open]) nav[data-market-tabs] { visibility: hidden; }
  }
}
/* End wide native navigation */
/* Use one line for the common vehicle filters; the full sheet retains the other choices. */
@media (max-width: 991.98px) {
  body.page-category-vehicle .veh-bar:has(.veh-qf) { padding-block: 0 6px !important; margin-block: 0 6px !important; }
  body.page-category-vehicle .veh-bar .veh-qf { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 6px !important; }
  body.wc-theme.page-category-vehicle:has(#toggleFilters) .veh-qf > .veh-qf-more,
  body.page-category-vehicle .veh-qf > details:has(select[name="region"]) { display: none !important; }
  body.page-category-vehicle .veh-qf > details > summary { min-height: 44px; }
  body.page-category-vehicle #filterSidebar .veh-type-menu { position: static !important; width: 100% !important; max-height: 14rem; overflow-y: auto; }
  body.page-category-vehicle .category-hero { margin-block-end: 4px !important; padding-block-end: 4px !important; }
  body.page-category-vehicle .category-results-toolbar { margin-block: 0 5px !important; }
  body.wc-theme.page-listing.listing-reference .listing-sticky-cta .lsc-seller { display: none !important; }
  body.wc-theme.page-listing.listing-reference:has(.listing-sticky-cta) #sellerSection.seller-card { display: block !important; order: 2; position: static; width: 100%; }
  body.wc-theme.page-listing.listing-reference:has(.listing-sticky-cta) #sellerSection > :is(.seller-divider,.btn,.seller-secondary-actions) { display: none !important; }
  .wc-header-access-slot { width: 44px; height: 44px; flex: 0 0 44px; }
  .wc-desktop-header-inner:has(> #mainNav):has(> .wc-header-access-slot) {
    grid-template-columns: 44px minmax(0,1fr) max-content 44px !important;
    column-gap: 4px !important;
  }
  .wc-desktop-header-inner:has(> #mainNav):has(> .wc-header-access-slot):has(.native-back) {
    grid-template-columns: 44px 44px minmax(0,1fr) max-content 44px !important;
  }
  .wc-desktop-header-inner > .wc-header-access-slot { grid-row: 1; grid-column: -2; }
  .wc-desktop-header-inner:has(> .wc-header-access-slot) > .wc-web-publish { padding-inline: 6px !important; }
  body:has(.wc-header-access-slot) :is(#INDmenu-btn,#wc-a11y-launch),
  body:has(.wc-header-access-slot) #INDShadowRootHost::part(wc-header-launcher) {
    position: fixed !important;
    top: var(--wc-access-top) !important; left: var(--wc-access-left) !important;
    right: auto !important; bottom: auto !important;
    width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important;
    box-sizing: border-box !important; margin: 0 !important; padding: 0 !important;
    transform: none !important; touch-action: manipulation;
  }
  /* The supplier draws the icon on a 90px canvas. Scale the complete
     control to its 44px target, including its original border and padding. */
  body:has(.wc-header-access-slot) #INDmenu-btn,
  body:has(.wc-header-access-slot) #INDShadowRootHost::part(wc-header-launcher) {
    width: 90px !important; height: 90px !important; padding: 15px !important;
    transform-origin: top left !important; transform: scale(.489) !important;
  }
  body:has(.wc-header-access-slot) #wc-a11y-launch { border-radius: 50%; font-size: 12px; }
  body[data-header-launcher-covered] :is(#INDmenu-btn,#wc-a11y-launch),
  body[data-header-launcher-covered] #INDShadowRootHost::part(wc-header-launcher) { visibility: hidden !important; }
}
@media (max-width: 991.98px) and (max-height: 720px) {
  body.wc-theme.page-listing.listing-reference:not(.wc-native-app) .listing-gallery-card .gallery-main {
    max-height: 35svh;
  }
}
@media (min-width: 992px) {
  body.wc-theme.page-home .hero .hero-inner { padding-block: 24px 18px !important; }
  body.wc-theme.page-home .container.home-shortcuts { margin-block: 12px 16px !important; padding-block: 10px 0 !important; }
  body.wc-theme.page-home .home-shortcuts .home-section-head { margin-block-end: 6px !important; }
  body.wc-theme.page-home .home-shortcut-grid .home-shortcut { padding-block: 6px !important; min-height: 0 !important; }
  body.wc-theme.page-home .home-listings-section { margin-block-start: 20px !important; }
}
