/* CONE24 STEP 23 — Vehicles mobile app layer (2026-08-22)
   Scoped to Vehicles only. Routes, data contracts and desktop layouts stay intact. */

body[data-category="vehicles"],
body[data-category="vehicles"] .categoryPageShell,
body[data-category="vehicles"] .categoryPageShell > *,
body[data-category="vehicles"] main,
body[data-category="vehicles"] section,
body[data-category="vehicles"] article,
body[data-category="vehicles"] form,
body[data-category="vehicles"] fieldset,
body[data-category="vehicles"] .card {
  min-width: 0;
}

body[data-category="vehicles"] img,
body[data-category="vehicles"] video,
body[data-category="vehicles"] canvas,
body[data-category="vehicles"] svg {
  max-width: 100%;
}

body[data-category="vehicles"] :where(
  h1, h2, h3, h4, p, a, button, label, span, strong, small,
  .muted, .helper-copy, .card-caption, .vehicle-card__title
) {
  overflow-wrap: anywhere;
}

body[data-category="vehicles"] .vehicleLegacyForm__media .media-grid,
body[data-category="vehicles"] .vehicleLegacyForm__media .media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

body[data-category="vehicles"] .vehicleLegacyForm__media .media-item,
body[data-category="vehicles"] .vehicleLegacyForm__media .media-preview__item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

body[data-category="vehicles"] .vehicleLegacyForm__media .media-thumb,
body[data-category="vehicles"] .vehicleLegacyForm__media .media-preview__item {
  min-height: 138px;
  aspect-ratio: 4 / 3;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body[data-category="vehicles"] .vehicleLegacyForm__media .media-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 10px;
}

body[data-category="vehicles"] .vehicleLegacyForm__media :where(.media-radio, .media-check) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
}

:root[data-theme="light"] body[data-category="vehicles"] .vehicleLegacyForm__media .media-item,
:root[data-theme="light"] body[data-category="vehicles"] .vehicleLegacyForm__media .media-preview__item {
  border-color: rgba(20,40,80,.12);
  background-color: rgba(20,40,80,.035);
}

:root[data-theme="light"] body[data-category="vehicles"] .vehicleWorkspace .vwCard,
:root[data-theme="light"] body[data-category="vehicles"] .vehicleWorkspace .vwStat {
  border-color: rgba(20,40,80,.12) !important;
  background: #fff !important;
  color: #182235 !important;
  box-shadow: 0 14px 34px rgba(20,40,80,.08) !important;
}

:root[data-theme="light"] body[data-category="vehicles"] .vehicleWorkspace :where(.vwMuted, .vwTable th) {
  color: #667085 !important;
}

:root[data-theme="light"] body[data-category="vehicles"] .vehicleWorkspace :where(.vwBtn, .vwTag) {
  border-color: rgba(20,40,80,.12) !important;
  background: rgba(20,40,80,.035) !important;
  color: #182235 !important;
}

:root[data-theme="light"] body[data-category="vehicles"] .vehicleWorkspace .vwBtn--primary {
  background: linear-gradient(135deg,#4f8bff,#ffb347) !important;
  color: #050814 !important;
}

@media (max-width: 900px) {
  html,
  body[data-category="vehicles"] {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body[data-category="vehicles"] > main.container,
  body[data-category="vehicles"] .categoryPageShell--vehicles,
  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    overflow: visible;
  }

  body[data-category="vehicles"] :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select,
    textarea
  ) {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  body[data-category="vehicles"] :where(
    button,
    .btn,
    .vwBtn,
    .vehicleDealBtn,
    .gallery-btn,
    .utility-btn,
    .sub-action
  ) {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Marketplace: preserve its category identity, but never let a rail resize the page. */
  body[data-category="vehicles"] :where(
    .vehicle-marketplace,
    .vehicle-marketplace-shell,
    .vml-page,
    .vml-shell,
    .vml-section,
    .vml-grid,
    .vml-listRows,
    .vehicle-filters-panel,
    .vehicle-filters-stack
  ) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-category="vehicles"] :where(
    .vehicle-market-segments,
    .vehicle-quick-filter-row,
    .vml-segments,
    .vml-chipRail,
    .vehicle-pill-grid
  ) {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-category="vehicles"] .vehicle-filters-backdrop:not([hidden]) {
    padding: 0;
    align-items: stretch;
  }

  body[data-category="vehicles"] .vehicle-filters-panel {
    max-height: 100dvh;
    border-radius: 22px 22px 0 0;
  }

  /* My listings / seller inventory. */
  body[data-category="vehicles"] .vehicleMyPage {
    width: 100%;
    padding: 14px !important;
    border-radius: 20px;
  }

  body[data-category="vehicles"] .vehicleMyHeader {
    align-items: stretch !important;
    flex-direction: column;
  }

  body[data-category="vehicles"] .vehicleMyActions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch !important;
  }

  body[data-category="vehicles"] .vehicleMyActions > :where(a, button) {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  body[data-category="vehicles"] .vehicleMyWalletPill {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    border-radius: 16px !important;
  }

  body[data-category="vehicles"] .vehicleMyWalletGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-category="vehicles"] .vehicleMyWalletStat {
    min-width: 0;
    padding: 11px !important;
  }

  body[data-category="vehicles"] .vehicleMyGrid {
    width: 100%;
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  body[data-category="vehicles"] .vehicleMyGrid .vehicle-card {
    width: 100%;
    max-width: none;
    overflow: hidden;
  }

  body[data-category="vehicles"] .vehicleMyGrid .vehicle-card__img {
    width: 100%;
    min-height: 210px;
    aspect-ratio: 16 / 10;
  }

  body[data-category="vehicles"] .vehicleMyCardTitleRow {
    align-items: flex-start !important;
  }

  body[data-category="vehicles"] .vehicleMyCardTitleRow .vehicle-card__title {
    flex: 1 1 190px;
    min-width: 0;
  }

  body[data-category="vehicles"] .vehicleMyCardMetrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-category="vehicles"] .vehicleMyCardMetrics .badge {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  body[data-category="vehicles"] .vehicleMyCardNotice {
    width: 100%;
  }

  body[data-category="vehicles"] .vehicleMyCardActions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-category="vehicles"] .vehicleMyCardActions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  /* Legacy edit form remains functional, but behaves like the current wizard. */
  body[data-category="vehicles"] .vehicleLegacyForm {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__card {
    padding: 14px !important;
    border-radius: 20px;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__head {
    flex-direction: column;
    align-items: stretch !important;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__headActions,
  body[data-category="vehicles"] .vehicleLegacyForm__actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-category="vehicles"] .vehicleLegacyForm__headActions .btn,
  body[data-category="vehicles"] .vehicleLegacyForm__actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__body .form__grid {
    grid-template-columns: 1fr !important;
    gap: 11px !important;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__media {
    padding: 12px !important;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__media .media-grid,
  body[data-category="vehicles"] .vehicleLegacyForm__media .media-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-category="vehicles"] .vehicleLegacyForm__media input[type="file"] {
    min-height: 48px;
    white-space: normal;
  }

  /* Published confirmation and Boost follow-up. */
  body[data-category="vehicles"] .vehiclePublished {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
  }

  body[data-category="vehicles"] .vehiclePublished__card {
    padding: 14px !important;
    border-radius: 20px;
  }

  body[data-category="vehicles"] .vehiclePublished__head {
    flex-direction: column;
    align-items: stretch !important;
  }

  body[data-category="vehicles"] .vehiclePublished__actions,
  body[data-category="vehicles"] .vehiclePublished__actions .btn {
    width: 100%;
  }

  body[data-category="vehicles"] .vehiclePublished__actions .btn {
    justify-content: center;
    text-align: center;
  }

  body[data-category="vehicles"] .vehiclePublished__price {
    width: 100%;
  }

  body[data-category="vehicles"] .vehiclePublished__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body[data-category="vehicles"] .vehiclePublished__photo {
    min-width: 0;
  }

  body[data-category="vehicles"] .coneBoostPanel,
  body[data-category="vehicles"] .coneBoostPanel__hero,
  body[data-category="vehicles"] .coneBoostPanel__manageGrid,
  body[data-category="vehicles"] .coneBoostPanel__options,
  body[data-category="vehicles"] .coneBoostPanel__metricGrid,
  body[data-category="vehicles"] .coneBoostPanel__intelGrid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-category="vehicles"] :where(
    .coneBoostPanel__hero,
    .coneBoostPanel__manageGrid,
    .coneBoostPanel__options,
    .coneBoostPanel__metricGrid,
    .coneBoostPanel__intelGrid
  ) {
    grid-template-columns: 1fr !important;
  }

  body[data-category="vehicles"] .coneBoostPanel__head,
  body[data-category="vehicles"] .coneBoostPanel__intelBar,
  body[data-category="vehicles"] .coneBoostPanel__actions {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-category="vehicles"] .coneBoostPanel__actions :where(.btn, button, a) {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  /* Seller workspace: desktop tables become readable app-style cards. */
  body[data-category="vehicles"] .vehicleWorkspace {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 0;
    padding: 0 0 24px;
    gap: 12px;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwCard {
    width: 100%;
    padding: 14px;
    border-radius: 19px;
    overflow: hidden;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwHeader,
  body[data-category="vehicles"] .vehicleWorkspace .vwSectionHead {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwHeader h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.08;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwActions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwActions .vwBtn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
    text-align: center;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwStat {
    min-width: 0;
    padding: 12px;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwStat strong {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable {
    display: block;
    width: 100%;
    overflow: visible;
    border-spacing: 0;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable tbody,
  body[data-category="vehicles"] .vehicleWorkspace .vwTable tr,
  body[data-category="vehicles"] .vehicleWorkspace .vwTable td {
    display: block;
    width: 100%;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable tbody {
    display: grid;
    gap: 10px;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable tr {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
  }

  :root[data-theme="light"] body[data-category="vehicles"] .vehicleWorkspace .vwTable tr {
    border-color: rgba(20,40,80,.10);
    background: rgba(20,40,80,.025);
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable td {
    display: grid;
    grid-template-columns: minmax(96px, .8fr) minmax(0, 1.35fr);
    gap: 12px;
    align-items: start;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    background: transparent;
    text-align: end;
    overflow-wrap: anywhere;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable td:last-child {
    border-bottom: 0;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable td[data-label]::before {
    content: attr(data-label);
    color: #9ea4c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: start;
    text-transform: uppercase;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable .vwTableEmpty {
    display: block;
    padding: 16px;
    text-align: start;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwFormInline {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwFormInline > :where(a, form),
  body[data-category="vehicles"] .vehicleWorkspace .vwFormInline .vwBtn {
    width: 100%;
    min-width: 0;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwFormInline .vwBtn {
    padding-inline: 8px;
    white-space: normal;
    text-align: center;
  }

  /* Protected deal flow. */
  body[data-category="vehicles"] .vehicleDealPage {
    width: 100%;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 0 0 24px;
    gap: 11px;
  }

  body[data-category="vehicles"] .vehicleDealCard {
    width: 100%;
    padding: 14px;
    border-radius: 19px;
  }

  body[data-category="vehicles"] .vehicleDealHero {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-category="vehicles"] .vehicleDealHero h1 {
    font-size: clamp(22px, 7vw, 30px);
  }

  body[data-category="vehicles"] .vehicleDealBtns,
  body[data-category="vehicles"] .vehicleDealRoleSwitch,
  body[data-category="vehicles"] .vehicleDealInline {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-category="vehicles"] .vehicleDealBtns .vehicleDealBtn,
  body[data-category="vehicles"] .vehicleDealRoleSwitch .vehicleDealRolePill,
  body[data-category="vehicles"] .vehicleDealInline > :where(a, button, form),
  body[data-category="vehicles"] .vehicleDealInline .vehicleDealBtn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  body[data-category="vehicles"] .vehicleDealGrid,
  body[data-category="vehicles"] .vehicleDealReviewGrid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body[data-category="vehicles"] .vehicleDealMeta,
  body[data-category="vehicles"] .vehicleDealSteps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-category="vehicles"] .vehicleDealMetric,
  body[data-category="vehicles"] .vehicleDealStep {
    min-width: 0;
    padding: 12px;
  }

  body[data-category="vehicles"] .vehicleDealMetric strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  body[data-category="vehicles"] .vehicleDealMethodPicker {
    grid-template-columns: 1fr;
  }

  body[data-category="vehicles"] .vehicleDealMethodChip {
    width: 100%;
    min-height: 48px;
  }

  body[data-category="vehicles"] .vehicleDealReviewPrompt {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-category="vehicles"] .vehicleDealModal {
    align-items: flex-end;
    padding: 0;
    z-index: 10060;
  }

  body[data-category="vehicles"] .vehicleDealModalPanel {
    width: 100%;
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  }

  /* Vehicle detail: one-handed gallery, readable cards and sticky primary action. */
  body[data-category="vehicles"] .vehicle-detail-master,
  body[data-category="vehicles"] .vehicle-detail-master .page,
  body[data-category="vehicles"] .vehicle-detail-master .layout-main,
  body[data-category="vehicles"] .vehicle-detail-master .gallery-card,
  body[data-category="vehicles"] .vehicle-detail-master .tabs-card,
  body[data-category="vehicles"] .vehicle-detail-master .price-card,
  body[data-category="vehicles"] .vehicle-detail-master .auction-card,
  body[data-category="vehicles"] .vehicle-detail-master .rent-card,
  body[data-category="vehicles"] .vehicle-detail-master .seller-card,
  body[data-category="vehicles"] .vehicle-detail-master .dealer-wide-card,
  body[data-category="vehicles"] .vehicle-detail-master .related-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-category="vehicles"] .vehicle-detail-master .page {
    padding-inline: 0;
  }

  body[data-category="vehicles"] .vehicle-detail-master .title-area {
    gap: 12px;
  }

  body[data-category="vehicles"] .vehicle-detail-master .hero-actions,
  body[data-category="vehicles"] .vehicle-detail-master .title-top-actions,
  body[data-category="vehicles"] .vehicle-detail-master .quick-specs,
  body[data-category="vehicles"] .vehicle-detail-master .thumb-row,
  body[data-category="vehicles"] .vehicle-detail-master .tabs-header {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-category="vehicles"] .vehicle-detail-master :where(
    .hero-actions,
    .title-top-actions,
    .quick-specs,
    .thumb-row,
    .tabs-header
  )::-webkit-scrollbar {
    display: none;
  }

  body[data-category="vehicles"] .vehicle-detail-master .gallery-main {
    min-height: 250px;
    aspect-ratio: 4 / 3;
  }

  body[data-category="vehicles"] .vehicle-detail-master .gallery-tools {
    max-width: 100%;
    overflow-x: auto;
  }

  body[data-category="vehicles"] .vehicle-detail-master .cta-row,
  body[data-category="vehicles"] .vehicle-detail-master .sub-actions,
  body[data-category="vehicles"] .vehicle-detail-master .seller-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-category="vehicles"] .vehicle-detail-master :where(
    .cta-row,
    .sub-actions,
    .seller-actions
  ) > :where(a, button, form),
  body[data-category="vehicles"] .vehicle-detail-master :where(
    .cta-row,
    .sub-actions,
    .seller-actions
  ) :where(a, button) {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  body[data-category="vehicles"] .vehicle-detail-master .auction-input-row,
  body[data-category="vehicles"] .vehicle-detail-master .auction-inline-panel,
  body[data-category="vehicles"] .vehicle-detail-master .rent-date-row,
  body[data-category="vehicles"] .vehicle-detail-master .rent-price-row,
  body[data-category="vehicles"] .vehicle-detail-master .dealer-wide-card {
    grid-template-columns: 1fr;
  }

  body[data-category="vehicles"] .vehicle-detail-master .vehicle-mobile-dealbar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  /* Wizard, quick entry and bulk inventory. */
  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard :where(
    .form-grid,
    .form-grid-2,
    .form-grid-3,
    .form-grid-4,
    .bulk-grid,
    .bulk-guide,
    .bulk-uploadGrid,
    .bulk-publish-options,
    .bulk-mapping,
    .bulk-kpis
  ) {
    grid-template-columns: 1fr !important;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard :where(
    .wizard-header,
    .wizard-header__titles,
    .wizard-stepper,
    .form-contents,
    .bulk-stack,
    .bulk-tableWrap,
    .bulk-inlineActions,
    .bulk-dropField,
    .upload-zone,
    .quick-status,
    .quick-summary-box
  ) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .bulk-inlineActions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .bulk-inlineActions > :where(a, button, form),
  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .bulk-inlineActions :where(.btn, button) {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .bulk-tableWrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .bulk-table {
    min-width: 760px;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .country-picker__panel {
    width: min(100%, 520px);
    max-width: calc(100vw - 30px);
    max-height: min(70dvh, 560px);
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .wizard-actions {
    padding-bottom: calc(9px + env(safe-area-inset-bottom)) !important;
  }

  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .wizard-header {
    position: relative !important;
    inset: auto !important;
  }
}

@media (max-width: 420px) {
  body[data-category="vehicles"] .vehicleMyActions,
  body[data-category="vehicles"] .vehicleMyWalletGrid,
  body[data-category="vehicles"] .vehicleMyCardActions,
  body[data-category="vehicles"] .vehicleLegacyForm__headActions,
  body[data-category="vehicles"] .vehicleLegacyForm__actions,
  body[data-category="vehicles"] .vehiclePublished__gallery,
  body[data-category="vehicles"] .vehicleWorkspace .vwGrid,
  body[data-category="vehicles"] .vehicleWorkspace .vwActions,
  body[data-category="vehicles"] .vehicleWorkspace .vwFormInline,
  body[data-category="vehicles"] .vehicleDealBtns,
  body[data-category="vehicles"] .vehicleDealRoleSwitch,
  body[data-category="vehicles"] .vehicleDealInline,
  body[data-category="vehicles"] .vehicleDealMeta,
  body[data-category="vehicles"] .vehicleDealSteps,
  body[data-category="vehicles"] .vehicle-detail-master .cta-row,
  body[data-category="vehicles"] .vehicle-detail-master .sub-actions,
  body[data-category="vehicles"] .vehicle-detail-master .seller-actions,
  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .bulk-inlineActions,
  body[data-category="vehicles"] .categoryPageShell--vehiclesWizard .photo-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-category="vehicles"] .vehicleMyCardMetrics {
    grid-template-columns: 1fr 1fr;
  }

  body[data-category="vehicles"] .vehicleWorkspace .vwTable td {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: start;
  }

  body[data-category="vehicles"] .vehicle-detail-master .gallery-main {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-category="vehicles"] *,
  body[data-category="vehicles"] *::before,
  body[data-category="vehicles"] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* STEP 24 — a contained, app-like Vehicles header search on phones. */
@media (max-width: 780px) {
  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__inner {
    gap: 10px !important;
    background:
      radial-gradient(circle at 12% 0%, rgba(79,139,255,.16), transparent 42%),
      color-mix(in srgb, var(--surface, #0d1729) 96%, transparent) !important;
    border-bottom: 1px solid rgba(79,139,255,.24) !important;
    box-shadow: 0 24px 54px rgba(4,10,24,.28) !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchZone {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 9px !important;
    border: 1px solid rgba(79,139,255,.18) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.055) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchForm {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(84px,94px) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchInputWrap,
  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchSubmit {
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchInputWrap {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    background: color-mix(in srgb, var(--surface, #0b1424) 88%, #fff 12%) !important;
    border-color: rgba(148,163,184,.22) !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchInput {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-block: 0 !important;
    font-size: 16px !important;
    text-overflow: ellipsis !important;
    background: transparent !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchSubmit {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
    border: 0 !important;
    color: #07101f !important;
    background: linear-gradient(135deg,#74c9ff,#6674ff) !important;
    box-shadow: 0 10px 24px rgba(79,139,255,.28) !important;
    font-size: 14px !important;
    font-weight: 850 !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 2px 1px 6px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
  }
}

@media (max-width: 390px) {
  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchForm {
    grid-template-columns: minmax(0,1fr) 84px !important;
  }
}

/* STEP 25 — final Vehicles mobile-header search surface.
   One outer control surface; the input wrapper must never render as a second,
   legacy rectangular field inside it. */
@media (max-width: 780px) {
  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchZone {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 5px !important;
    border: 1px solid rgba(79,139,255,.28) !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--surface, #0d1729) 88%, #fff 12%) !important;
    box-shadow: 0 10px 26px rgba(4,10,24,.16), inset 0 1px 0 rgba(255,255,255,.10) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchForm {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(84px,94px) !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchInputWrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 10px 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchIcon {
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchInput {
    flex: 1 1 auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchZone:focus-within {
    border-color: rgba(79,139,255,.72) !important;
    box-shadow: 0 0 0 3px rgba(79,139,255,.14), 0 12px 30px rgba(4,10,24,.18) !important;
  }

  body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchSubmit {
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    border-radius: 999px !important;
  }

  html[data-theme="light"] body[data-category="vehicles"]
  .categoryHeader[data-category-header].is-mobile-expanded
  .categoryHeader__searchZone {
    border-color: rgba(50,92,160,.20) !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 10px 24px rgba(50,92,160,.10), inset 0 1px 0 #fff !important;
  }
}
