/* Shared presentation only. Transparent borders retain existing geometry.
   Inputs, selection states, tables, scanner guides and navigation remain intact. */
html{scrollbar-gutter:stable}
:is(.card,.panel,.vehicle,.pg-card,.profile-card,.tool,.tool-card,.alert-card,
.stat-card,.stat,.metric,.capture-card,.verify-card,.details-card,.invitationCard,
.inviteEmailPreview,.vehicleShare,#profileTray,#vvMerch):not([aria-selected="true"]):not([aria-pressed="true"]){
  border-color:transparent!important;box-shadow:none!important;
}
/* Preserve touch targets and focus outlines while removing decorative movement. */
:is(.card,.panel,.vehicle,.tool,.tool-card,.alert-card,.invitationCard):hover{
  transform:none!important;box-shadow:none!important;
}
:is(hr,.divider,.separator,.savedRow,.referralBuyer,.tradeTracking,.adminProfile,
.adminVehicle,.storeline,.vv-store-location,.vvMerchLine,.vvMerchHeading,
.vvMerchFabric,#vvMerchCart,#vvPricingAdmin,#vvProductsAdmin,
#vvMerchReviewSubtotal,#centerAccountDetails .profileCredentials>div,
#vvMerchProducts>.vvMerchProduct+.vvMerchProduct){border-color:transparent!important}
hr{background:transparent!important;box-shadow:none!important}
/* Content surfaces stay distinct through their existing spacing and backgrounds. */
:is(#vvDetails,#vvMerchDetail,#vvMerchCheckout,#inviteDialog){border-color:transparent!important}
/* Keep the product focus view anchored when description/disclosures change length.
   The copy scrolls inside its own area; the image and close control stay put. */
html #vvMerchDetail{
  height:min(88svh,760px);max-height:88svh;overflow:hidden;
  animation:none!important;
}
html #vvMerchDetailImage{height:min(40svh,340px);flex:none}
html #vvMerchDetail .vvMerchDetailCopy{
  box-sizing:border-box;height:calc(100% - min(40svh,340px));
  overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;
}
#vvMerchDetailClose{z-index:2}
/* Icon-only shop actions retain their original hit areas. */
#vvMerchDetail #vvMerchDetailClose{border-color:transparent;background:#fff;box-shadow:none}
@media(prefers-reduced-motion:reduce){
  :is(.card,.panel,.vehicle,.tool,.tool-card,.alert-card,.invitationCard){transition:none!important}
}

body:has(#welcome-title) :is(header,footer){border-color:transparent!important}

/* My Network must not pan sideways when a vertical swipe has a diagonal component.
   Clip the document edge without creating a nested scrolling container; intentional
   horizontal scrollers keep their own overflow and pinch zoom remains available. */
html:has(body.referral-center){overflow-x:clip;overscroll-behavior-x:none}
body.referral-center{max-width:100%;min-width:0;overflow-x:clip;overscroll-behavior-x:none}
body.referral-center main{min-width:0}
body.referral-center :is(.grid,.buyerActions,.vehicleShare,#vvMerchProducts) > *{min-width:0}

/* Keep Consult's document steady while preserving its horizontal model and vehicle sliders. */
html:has(body > #filters > #segBar){overflow-x:clip;overscroll-behavior-x:none}
body:has(> #filters > #segBar){max-width:100%;min-width:0;overflow-x:clip;overscroll-behavior-x:none}
