/* Keep the copied dealer VDP isolated from the marketplace shell. */
.myyard-vdp svg{width:auto;height:auto;stroke-width:2}.myyard-vdp .expand-photo{position:static;background:none;border-radius:0;padding:0;width:100%;height:100%}.myyard-vdp .hero-photo .expand-photo img{width:100%;height:100%;object-fit:cover}.myyard-vdp .equipment-type{display:inline-block}.myyard-vdp .equipment-group{margin-top:0}.myyard-vdp .equipment-group h3{margin:0}.myyard-vdp .sticker-facts dd{margin:0}.myyard-vdp .market-vdp-dialog{width:min(960px,94vw);max-width:94vw}.myyard-vdp .market-expanded-photo{width:100%;max-height:65vh;object-fit:contain}.myyard-vdp .market-photo-controls{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:15px;font-size:0.75rem}.myyard-vdp .equipment-find input{outline:0}.myyard-vdp .detail-information{outline:0}
/* My Yard records under a compact photo stage; recommendations stay alongside. */
.myyard-vdp .recommendation-layout{grid-template-columns:minmax(0,1fr) 310px;gap:22px}.myyard-vdp .dealer-vdp-data>.gallery{margin-bottom:14px}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:300px;max-height:300px;aspect-ratio:auto;background:#aab7bd;border-radius:10px}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo img{object-fit:contain}.myyard-vdp .dealer-vdp-data>.gallery .thumbnails{margin-top:9px;gap:8px}.myyard-vdp .dealer-vdp-data>.gallery .thumbnails button{width:65px;height:42px}.myyard-vdp .dealer-vdp-data>.vehicle-summary{display:grid;grid-template-columns:1fr auto auto;gap:5px 12px;align-items:center;padding:13px 16px;border:1px solid var(--price-line);border-top:3px solid var(--price-line);background:var(--price-bg);border-radius:10px;margin-bottom:16px;position:sticky;top:80px;z-index:4}.myyard-vdp .vehicle-summary .price-label{grid-column:1;grid-row:1;font-size:0.5625rem}.myyard-vdp .vehicle-summary .vdp-price{grid-column:1;grid-row:2;font-size:1.6875rem;line-height:1.2}.myyard-vdp .vehicle-summary .msrp{grid-column:1;grid-row:3;font-size:0.625rem}.myyard-vdp .vehicle-summary .website-button{grid-column:2;grid-row:1/4;margin:0;font-size:0.6875rem;min-height:42px}.myyard-vdp .vehicle-summary .copy-vdp{grid-column:3;grid-row:1/4;margin:0;font-size:0.6875rem;min-height:42px}.myyard-vdp .vehicle-summary .simulation-caption{grid-column:1/-1;margin:4px 0 0;font-size:0.5625rem}.myyard-vdp .recommendation-rail{position:sticky;top:84px;align-self:start;max-height:calc(100dvh - 100px);overflow-y:auto;scrollbar-width:thin;padding-right:4px}.myyard-vdp .recommendation-rail>h2{font-size:1.125rem;margin:0 0 7px}.myyard-vdp .recommendation-rail>p{font-size:0.625rem;color:var(--muted);margin:0 0 16px}.myyard-vdp .recommended-car{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;color:var(--ink);text-decoration:none;margin:0 0 17px}.myyard-vdp .recommended-photo{position:relative;align-self:start}.myyard-vdp .recommended-photo img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;display:block}.myyard-vdp .recommended-photo>span{position:absolute;bottom:5px;right:5px;background:#253039df;color:white;padding:3px 5px;border-radius:3px;font-size:0.5rem}.myyard-vdp .recommended-car h3{font-size:0.75rem;line-height:1.35;margin:0 0 3px}.myyard-vdp .recommended-car p,.myyard-vdp .recommended-car small{display:block;font-size:0.625rem;line-height:1.5;color:var(--muted);margin:2px 0}.myyard-vdp .recommended-car strong{display:block;font-size:0.9375rem;margin:5px 0}.myyard-vdp .recommendation-reason{display:block;font-size:0.5625rem;color:var(--positive);margin-top:5px}.myyard-vdp .recommended-car:hover h3{text-decoration:underline;color:var(--red)}.myyard-vdp .shopper-mobile-actions{display:none}.myyard-vdp .expanded-thumbnails{display:flex;justify-content:center;gap:10px;margin-top:16px}.myyard-vdp .expanded-thumbnails button{width:80px;height:55px;padding:3px;border:2px solid transparent;border-radius:6px}.myyard-vdp .expanded-thumbnails button[aria-pressed=true]{border-color:var(--red)}.myyard-vdp .expanded-thumbnails img{width:100%;height:100%;object-fit:cover;border-radius:3px}
@media(max-width:1200px){.myyard-vdp .recommendation-layout{grid-template-columns:minmax(0,1fr) 265px}.myyard-vdp .recommended-car{grid-template-columns:105px 1fr}.myyard-vdp .vehicle-summary .copy-vdp{grid-column:2;grid-row:3/5}.myyard-vdp .vehicle-summary .website-button{grid-column:2;grid-row:1/3}.myyard-vdp .vehicle-summary .simulation-caption{grid-column:1;grid-row:4}.myyard-vdp .dealer-vdp-data>.vehicle-summary{grid-template-columns:1fr auto}}
@media(max-width:900px){.myyard-vdp .recommendation-layout{grid-template-columns:1fr}.myyard-vdp .recommendation-rail{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:1fr 1fr;gap:12px}.myyard-vdp .recommendation-rail>h2,.myyard-vdp .recommendation-rail>p{grid-column:1/-1}.myyard-vdp .recommendation-rail>p{margin-bottom:3px}.myyard-vdp .recommended-car{grid-template-columns:110px 1fr}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:270px}}
@media(max-width:700px){.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:215px;max-height:215px}.myyard-vdp .dealer-vdp-data>.vehicle-summary{position:static;padding:12px}.myyard-vdp .recommendation-rail{display:block;margin-top:10px}.myyard-vdp .recommended-car{grid-template-columns:140px 1fr;margin-bottom:16px}.myyard-vdp .recommendation-rail>p{margin-bottom:16px}.myyard-vdp .shopper-mobile-actions{position:fixed;bottom:60px;left:0;right:0;display:flex;align-items:center;gap:7px;padding:10px 14px;background:var(--price-bg);border-top:1px solid var(--price-line);z-index:25}.myyard-vdp .shopper-mobile-actions>div{flex:1;min-width:0}.myyard-vdp .shopper-mobile-actions strong{font-size:1.0625rem;display:block}.myyard-vdp .shopper-mobile-actions small{font-size:0.5rem;display:block;color:var(--muted)}.myyard-vdp .shopper-mobile-actions button{min-height:42px;padding:9px;font-size:0.625rem}.myyard-vdp{padding-bottom:65px}.myyard-vdp .market-expanded-photo{max-height:48vh}.myyard-vdp .market-photo-controls{gap:12px;font-size:0.625rem}.myyard-vdp .market-vdp-dialog{padding:16px}.myyard-vdp .vdp-title{flex-wrap:wrap}.myyard-vdp .vdp-save-actions{margin-bottom:4px}}
.myyard-vdp .top-shopper-contact{font-size:0.6875rem;padding:12px;min-height:42px}.myyard-vdp .vdp-save-actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:700px){.myyard-vdp .top-shopper-contact{display:none}.myyard-vdp .vdp-save-actions{justify-content:flex-start}}
.myyard-vdp .market-vdp-dialog .dialog-heading{position:sticky;top:-16px;background:var(--surface);z-index:2;padding:10px 0}.myyard-vdp .market-expanded-photo{max-height:55vh}
/* One page scroll: vehicle record below the photo, seven suggestions alongside. */
.myyard-vdp .recommendation-rail{position:static;max-height:none;overflow:visible;padding-right:0}.myyard-vdp .dealer-vdp-data>.vehicle-summary{position:static}.myyard-vdp .more-recommendations{width:100%;justify-content:center;min-height:44px;font-size:0.75rem;margin-top:4px;text-decoration:none;grid-column:1/-1}
@media(min-width:901px){.myyard-vdp .back-link{margin-bottom:12px}.myyard-vdp .vdp-title{margin-bottom:14px}.myyard-vdp .vdp-title h1{font-size:1.75rem;margin:7px 0}.myyard-vdp .vdp-title p{font-size:0.8125rem}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:clamp(130px,calc(100dvh - 440px),220px);max-height:220px}.myyard-vdp .dealer-vdp-data>.gallery{margin-bottom:10px}.myyard-vdp .dealer-vdp-data>.gallery .thumbnails{margin:6px 0 0;gap:7px}.myyard-vdp .dealer-vdp-data>.gallery .thumbnails button{height:32px;width:50px}.myyard-vdp .dealer-vdp-data>.vehicle-summary{padding:9px 12px;margin-bottom:10px;gap:3px 10px}.myyard-vdp .vehicle-summary .vdp-price{font-size:1.5rem}.myyard-vdp .detail-sections button{padding:10px 7px;min-height:40px}}
/* Price and quick facts lead the right column, freeing height for the photo. */
.myyard-vdp .recommendation-rail>.vehicle-summary{display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;background:var(--price-bg);border:1px solid var(--price-line);border-top:3px solid var(--price-line);border-radius:10px;padding:14px;margin:0 0 20px;position:static}.myyard-vdp .vehicle-summary .price-label{grid-column:1/-1;grid-row:auto;font-size:0.5625rem}.myyard-vdp .vehicle-summary .vdp-price{grid-column:1/-1;grid-row:auto;font-size:1.8125rem}.myyard-vdp .vehicle-summary .msrp{grid-column:1/-1;grid-row:auto;font-size:0.6875rem}.myyard-vdp .vehicle-summary .website-button,.myyard-vdp .vehicle-summary .copy-vdp{grid-column:1/-1;grid-row:auto;width:100%;margin:3px 0 0;min-height:38px;justify-content:center;font-size:0.6875rem}.myyard-vdp .vehicle-summary .simulation-caption{grid-column:1/-1;grid-row:auto;font-size:0.5625rem;line-height:1.5;margin:5px 0}.myyard-vdp .shopper-basic-facts{display:grid;grid-template-columns:1fr 1fr;grid-column:1/-1;gap:8px 12px;margin:5px 0 0;border-top:1px solid var(--price-line);padding-top:10px}.myyard-vdp .shopper-basic-facts>div{display:block;padding:0;border:0}.myyard-vdp .shopper-basic-facts dt{font-size:0.5625rem;color:var(--muted)}.myyard-vdp .shopper-basic-facts dd{font-size:0.75rem;font-weight:600;margin:3px 0 0;text-align:left}
@media(min-width:901px){.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:clamp(220px,calc(100dvh - 330px),360px);max-height:360px}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo img{object-fit:cover;object-position:center 57%}}
@media(max-width:900px){.myyard-vdp .recommendation-rail>.vehicle-summary{grid-column:1/-1}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo img{object-fit:cover;object-position:center 57%}}
/* Enlarge within the frame without cutting off the vehicle roof or wheels. */
.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{background:#d0d0cf;overflow:hidden}.myyard-vdp .dealer-vdp-data>.gallery .hero-photo img{object-fit:contain;object-position:center;transform:scale(1.28)}
.myyard-vdp .recommendation-list>h2{font-size:1.125rem;margin:0 0 7px}.myyard-vdp .recommendation-list>p{font-size:0.625rem;color:var(--muted);margin:0 0 16px}
@media(max-width:900px){.myyard-vdp .recommendation-layout{display:flex;flex-direction:column;gap:16px}.myyard-vdp .dealer-vdp-data,.myyard-vdp .recommendation-rail{display:contents}.myyard-vdp .dealer-vdp-data>.gallery{order:1;width:100%;margin-bottom:0}.myyard-vdp .recommendation-rail>.vehicle-summary{order:2;width:100%;margin:0}.myyard-vdp .mobile-record-slot{order:3;width:100%;min-width:0}.myyard-vdp .recommendation-list{order:4;width:100%;min-width:0}.myyard-vdp .recommendation-list>h2{margin-top:6px}}
/* Compact mobile VDP header; marketplace browsing pages keep their existing shell. */
@media(max-width:700px){
#app:has(.myyard-vdp) .topbar{height:94px;padding:6px 12px;gap:4px;grid-template-rows:28px 44px}
#app:has(.myyard-vdp) .topbar .mobile-brand img{width:25px;height:25px}
#app:has(.myyard-vdp) .topbar .avatar{width:25px;height:25px;font-size:0.625rem}
#app:has(.myyard-vdp) .topbar .location{font-size:0.625rem}
#app:has(.myyard-vdp) .main{margin-top:94px;padding-top:10px}
#app:has(.myyard-vdp) .composer.is-open .composer-shell{max-height:calc(100dvh - 115px)}
.myyard-vdp .back-link{font-size:0.6875rem;margin:0 0 10px;padding:0;min-height:24px}
.myyard-vdp .vdp-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 0 12px}
.myyard-vdp .vdp-title h1{font-size:1.1875rem;line-height:1.15;letter-spacing:-.4px;margin:4px 0}
.myyard-vdp .vdp-title .eyebrow{font-size:0.4375rem;line-height:1.3;letter-spacing:.8px}
.myyard-vdp .vdp-title p{font-size:0.625rem;line-height:1.4;margin:0}
.myyard-vdp .vdp-title p span{margin:0 4px}
.myyard-vdp .vdp-save-actions{display:flex;flex-direction:column;gap:5px;margin:0;align-items:flex-end}
.myyard-vdp .vdp-save-actions .secondary{padding:7px 8px;font-size:0.625rem;min-height:32px;gap:5px}
.myyard-vdp .vdp-save-actions .secondary svg{width:14px;height:14px}
.myyard-vdp .vdp-save-actions .availability{font-size:0.5rem;padding:4px 7px}
.myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:185px;max-height:185px}
.myyard-vdp .dealer-vdp-data>.gallery .thumbnails{margin:6px 0 0;gap:7px}
.myyard-vdp .dealer-vdp-data>.gallery .thumbnails button{width:50px;height:32px}
.myyard-vdp .recommendation-layout{gap:10px}
.myyard-vdp .recommendation-rail>.vehicle-summary{padding:11px;gap:4px 8px}
}
/* Mobile has one contact-action location: the fixed bottom bar. */
@media(max-width:700px){
.myyard-vdp .vehicle-summary{grid-template-columns:1fr auto;gap:3px 10px;padding:10px 12px}
.myyard-vdp .vehicle-summary .website-button,.myyard-vdp .vehicle-summary .copy-vdp{display:none}
.myyard-vdp .vehicle-summary .price-label{grid-column:1;grid-row:1;font-size:0.5rem}
.myyard-vdp .vehicle-summary .vdp-price{grid-column:1;grid-row:2;font-size:1.5rem;line-height:1.2}
.myyard-vdp .vehicle-summary .msrp{grid-column:2;grid-row:2;font-size:0.625rem;text-align:right;align-self:center}
.myyard-vdp .vehicle-summary .simulation-caption{grid-column:1/-1;grid-row:3;margin:2px 0;font-size:0.5rem;line-height:1.4}
.myyard-vdp .shopper-basic-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:3px;padding-top:7px}
.myyard-vdp .shopper-basic-facts dt{font-size:0.5rem}.myyard-vdp .shopper-basic-facts dd{font-size:0.625rem;margin-top:2px;overflow-wrap:anywhere}
}
/* Keep section switching available through the mobile vehicle record. */
@media(max-width:700px){
.myyard-vdp .detail-sections{position:sticky;top:94px;z-index:10;background:var(--inset);box-shadow:0 3px 6px #25303918;margin-bottom:12px}
.myyard-vdp .detail-information{overflow:visible}
}
@media(max-width:700px){.myyard-vdp .detail-information{scroll-margin-top:94px}}
@media(max-width:700px){#app:has(.myyard-vdp){overflow-anchor:none}}
.myyard-vdp .gallery-count{font-size:0.75rem;color:var(--muted);margin-top:5px;font-weight:600}.myyard-vdp .swipe-photo-stage{touch-action:pan-y;user-select:none;cursor:grab}.myyard-vdp .swipe-photo-stage:active{cursor:grabbing}.myyard-vdp .swipe-photo-stage img{pointer-events:none;display:block}.myyard-vdp .swipe-hint{text-align:center;font-size:0.6875rem;color:var(--muted);margin:10px 0}.myyard-vdp .swipe-gallery-dialog .dialog-heading .icon-button{width:44px;height:44px;min-width:44px;border:1px solid var(--border);border-radius:50%;background:var(--inset);display:grid;place-items:center}.myyard-vdp .swipe-gallery-dialog .dialog-heading{top:0;padding:10px 0;margin-bottom:12px}.myyard-vdp .swipe-gallery-dialog .market-photo-controls button{min-height:44px;min-width:48px}
@media(max-width:700px){.myyard-vdp .swipe-gallery-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0 14px 18px;overscroll-behavior:contain}.myyard-vdp .swipe-gallery-dialog .dialog-heading{padding:12px 0;position:sticky;top:0;z-index:5}.myyard-vdp .swipe-gallery-dialog .dialog-heading h2{font-size:1.1875rem}.myyard-vdp .swipe-gallery-dialog .market-expanded-photo{height:clamp(180px,48dvh,480px);max-height:48dvh;object-fit:contain;transform:none;background:var(--inset);border-radius:8px}.myyard-vdp .swipe-gallery-dialog .market-photo-controls{margin-top:10px}.myyard-vdp .swipe-gallery-dialog .expanded-thumbnails{margin-top:12px}}
@media(max-width:700px){.myyard-vdp .gallery .expand-photo{touch-action:pan-y;user-select:none}.myyard-vdp .gallery .expand-photo img{pointer-events:none}}
.myyard-vdp .zoom-photo-stage{touch-action:none;overflow:hidden;border-radius:8px;position:relative}.myyard-vdp .zoom-photo-stage .market-expanded-photo{transform-origin:center;will-change:transform}.myyard-vdp .photo-zoom-controls{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:12px;font-size:0.6875rem}.myyard-vdp .photo-zoom-controls button{min-height:44px;min-width:44px;padding:8px 12px}.myyard-vdp .photo-zoom-controls span{min-width:42px;text-align:center;font-weight:650}
@media(max-width:700px){.myyard-vdp .swipe-gallery-dialog .market-expanded-photo{height:40dvh;max-height:40dvh}.myyard-vdp .swipe-gallery-dialog .swipe-hint{font-size:0.625rem;margin:8px 0}.myyard-vdp .swipe-gallery-dialog .photo-zoom-controls{gap:6px;margin-top:8px}.myyard-vdp .swipe-gallery-dialog .expanded-thumbnails{margin-top:8px}}
/* Animate a separate layer so zoom and pan never compete with slide motion. */
.myyard-vdp .photo-slide-frame{position:relative;display:block;width:100%;height:100%;overflow:hidden;isolation:isolate}.myyard-vdp .photo-slide-layer{display:block;width:100%;height:100%;position:relative;will-change:transform}.myyard-vdp .photo-slide-outgoing{position:absolute;inset:0;pointer-events:none}.myyard-vdp .photo-slide-outgoing img{pointer-events:none}.myyard-vdp .zoom-photo-stage .photo-slide-frame{height:auto}.myyard-vdp .gallery .photo-slide-frame{pointer-events:none}
@media(prefers-reduced-motion:reduce){.myyard-vdp .photo-slide-layer{will-change:auto}}
.myyard-vdp .photo-drag-track{display:flex;width:100%;height:100%;transform:translateX(-100%);will-change:transform}.myyard-vdp .photo-drag-layer{display:block;flex:0 0 100%;width:100%;height:100%;overflow:hidden}.myyard-vdp .photo-drag-layer img{width:100%;height:100%}.myyard-vdp .zoom-photo-stage .photo-drag-track,.myyard-vdp .zoom-photo-stage .photo-drag-layer{height:auto}
@media(prefers-reduced-motion:reduce){.myyard-vdp .photo-drag-track{will-change:auto}}
.myyard-vdp .photo-drag-track{transform:translateX(-200%)}

/* Explain how related vehicles fit the active shopping criteria. */
.myyard-vdp .recommendation-group-heading{font-size:0.6875rem;font-weight:650;color:var(--ink);padding:10px 0 7px;border-top:1px solid var(--border);margin:8px 0 0}
.myyard-vdp .recommendation-labels{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.myyard-vdp .recommendation-labels .recommendation-reason{margin:0;padding:3px 5px;border-radius:4px;font-size:0.5625rem;line-height:1.4;background:var(--positive-soft);color:var(--positive)}
.myyard-vdp .recommendation-labels.alternative .recommendation-reason{color:var(--ink);background:var(--inset);border:1px solid var(--border)}

/* Full-screen gallery: photo area first, native browser pinch remains available. */
.myyard-vdp .dealer-vdp-data,.myyard-vdp .gallery{min-width:0;max-width:100%}
.myyard-vdp .gallery .thumbnails,.myyard-vdp .expanded-thumbnails{display:flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;gap:8px}
.myyard-vdp .gallery .thumbnails button,.myyard-vdp .expanded-thumbnails button{flex:0 0 54px;width:54px}
.myyard-vdp .swipe-gallery-dialog[open]{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:16px 20px;border:0;border-radius:0;overflow:hidden;display:flex;flex-direction:column;background:#111820;color:#fff}
.myyard-vdp .swipe-gallery-dialog .dialog-heading{position:static;flex:0 0 auto;padding:0 0 12px;margin:0;background:transparent;color:#fff}
.myyard-vdp .swipe-gallery-dialog h2,.myyard-vdp .swipe-gallery-dialog .gallery-count{color:#fff}
.myyard-vdp .swipe-gallery-dialog .icon-button{color:#14202b;background:#fff;min-width:44px;min-height:44px}
.myyard-vdp .simple-photo-viewer{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;outline-offset:-2px}
.myyard-vdp .simple-photo-stage{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;touch-action:pan-y pinch-zoom;cursor:grab}
.myyard-vdp .simple-photo-stage .market-expanded-photo{display:block;width:100%;height:100%;max-height:none;object-fit:contain;margin:0;pointer-events:none}
.myyard-vdp .simple-photo-stage .photo-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:5;background:#fff;color:#14202b;border:1px solid #677380;box-shadow:0 2px 8px #0006;width:48px;height:48px;border-radius:50%}
.myyard-vdp .simple-photo-stage .prev{left:8px}.myyard-vdp .simple-photo-stage .next{right:8px}
.myyard-vdp .gallery-source-caption{flex:0 0 auto;text-align:center;color:#d4dce3;font-size:.75rem;margin:8px 0}
.myyard-vdp .swipe-gallery-dialog .expanded-thumbnails{flex:0 0 58px;margin:0;padding:2px 0;align-items:center}
.myyard-vdp .expanded-thumbnails button{height:48px;min-height:48px;padding:2px;border:2px solid transparent;background:transparent;border-radius:5px}
.myyard-vdp .expanded-thumbnails button[aria-pressed="true"]{border-color:#fff}
.myyard-vdp .expanded-thumbnails img{display:block;width:100%;height:100%;object-fit:cover}
.myyard-vdp .hero-photo .expand-photo{touch-action:pan-y pinch-zoom}
@media(max-width:700px){.myyard-vdp .swipe-gallery-dialog[open]{padding:12px 8px max(8px,env(safe-area-inset-bottom))}.myyard-vdp .swipe-gallery-dialog .dialog-heading{padding:0 4px 8px}.myyard-vdp .swipe-gallery-dialog h2{font-size:1rem}.myyard-vdp .simple-photo-stage .photo-nav{width:44px;height:44px}.myyard-vdp .simple-photo-stage .prev{left:4px}.myyard-vdp .simple-photo-stage .next{right:4px}}
.myyard-vdp .swipe-gallery-dialog .expanded-thumbnails{justify-content:flex-start}
.myyard-vdp .swipe-gallery-dialog .expanded-thumbnails button{flex:0 0 54px;width:54px;height:48px;min-height:48px}
.myyard-vdp .swipe-gallery-dialog .simple-photo-stage img{background:transparent}

/* Dealer VDP hierarchy: vehicle record first, compact shopping rail. */
.myyard-vdp .recommendation-layout{grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:20px}
.myyard-vdp .recommendation-rail>.gallery{margin:0 0 14px;min-width:0}
.myyard-vdp .recommendation-rail .hero-photo{height:auto;aspect-ratio:1.6;min-height:0}
.myyard-vdp .recommendation-rail .hero-photo .expand-photo{height:100%;width:100%}
.myyard-vdp .recommendation-rail .hero-photo .photo-tag{font-size:.5625rem;padding:5px;max-width:90%}
.myyard-vdp .recommendation-rail .photo-nav{width:30px;height:30px;min-height:30px!important;min-width:30px}
.myyard-vdp .recommendation-rail .photo-nav.prev{left:8px}.myyard-vdp .recommendation-rail .photo-nav.next{right:8px}
.myyard-vdp .recommendation-rail .thumbnails{justify-content:flex-start;margin-top:8px}
.myyard-vdp .dealer-vdp-data>.vehicle-description{margin-top:16px}
.myyard-vdp .marketplace-sticker{padding:16px;background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--muted);border-radius:10px}
.myyard-vdp .marketplace-sticker .sticker-document-heading{display:flex;justify-content:space-between;gap:20px;padding:0 0 14px;border-bottom:3px solid var(--ink)}
.myyard-vdp .marketplace-sticker h2{font-size:1.75rem;line-height:1.25;margin:6px 0}
.myyard-vdp .marketplace-sticker .sticker-document-heading p{font-size:1rem;line-height:1.45}
.myyard-vdp .sticker-msrp{display:flex;flex-direction:column;gap:6px;text-align:right;font-size:.9375rem}
.myyard-vdp .sticker-msrp strong{font-size:1.375rem}.myyard-vdp .sticker-msrp small{color:var(--muted);font-size:.875rem;line-height:1.4}
.myyard-vdp .marketplace-sticker .sticker-section-title{font-size:1rem;margin:14px 0 8px;text-transform:uppercase;letter-spacing:.06em}
.myyard-vdp .marketplace-sticker .sticker-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--raised)}
.myyard-vdp .marketplace-sticker .sticker-facts>div{padding:8px 0;border-bottom:1px solid var(--border)}
.myyard-vdp .marketplace-sticker .sticker-facts dt{font-size:1rem;font-weight:600;line-height:1.4;color:var(--ink)}
.myyard-vdp .marketplace-sticker .sticker-facts dd{font-size:1.125rem;font-weight:600;line-height:1.4;margin:3px 0 0;overflow-wrap:anywhere;position:relative}
.myyard-vdp .marketplace-sticker .sticker-facts dd:has(.inline-copy){padding-right:44px;min-height:28px}
.myyard-vdp .sticker-record-note,.myyard-vdp .sticker-document-footer p{font-size:1rem;line-height:1.5;color:var(--muted);margin:14px 0}
.myyard-vdp .sticker-equipment-columns{display:grid;grid-template-columns:1fr 1fr;border-top:2px solid var(--ink);gap:20px;margin-top:18px}
.myyard-vdp .sticker-equipment-columns h3{font-size:1rem;text-transform:uppercase;border-bottom:1px solid var(--border);padding:14px 0 10px;margin:0}
.myyard-vdp .sticker-equipment-columns p{font-size:1rem;line-height:1.5;color:var(--muted)}
@media(max-width:900px){
 .myyard-vdp .recommendation-layout{display:block}
 .myyard-vdp .dealer-vdp-data>.gallery .hero-photo{height:auto;aspect-ratio:2;min-height:0}
 .myyard-vdp .dealer-vdp-data>.gallery{margin-bottom:10px}
 .myyard-vdp .marketplace-sticker .sticker-document-heading{gap:12px;flex-wrap:wrap;padding-bottom:12px}
 .myyard-vdp .marketplace-sticker h2{font-size:1.375rem}
 .myyard-vdp .sticker-msrp{text-align:left;font-size:.875rem}.myyard-vdp .sticker-msrp strong{font-size:1rem}
 .myyard-vdp .marketplace-sticker .sticker-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:8px}
 .myyard-vdp .marketplace-sticker{padding:12px}
 .myyard-vdp .sticker-equipment-columns{grid-template-columns:1fr;gap:0}
}
@media(min-width:901px){.myyard-vdp .recommendation-rail .photo-nav{padding:0;display:grid;place-items:center;border-radius:50%}}
@media(max-width:700px){
 .myyard-vdp .dealer-vdp-data>.vehicle-summary{padding:10px 12px;margin-bottom:12px}
 .myyard-vdp .dealer-vdp-data>.vehicle-summary .shopper-basic-facts,.myyard-vdp .dealer-vdp-data>.vehicle-summary .simulation-caption{display:none}
 .myyard-vdp .dealer-vdp-data>.vehicle-summary .vdp-price{margin:4px 0;font-size:1.375rem}
 .myyard-vdp .dealer-vdp-data>.vehicle-summary .msrp{margin-bottom:0}
}

/* Keep formerly hidden specifications and equipment in the sticker document. */
.myyard-vdp .sticker-listed-equipment{grid-column:1/-1}
.myyard-vdp .sticker-equipment-columns ul{padding-left:20px;margin:12px 0;line-height:1.5;font-size:1rem;overflow-wrap:anywhere}
.myyard-vdp .sticker-listed-equipment>ul{columns:2;column-gap:28px}
.myyard-vdp .sticker-equipment-columns li{break-inside:avoid;margin-bottom:6px}
.myyard-vdp .sticker-facts .inline-copy{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0;color:var(--ink)}
@media(max-width:700px){.myyard-vdp .sticker-listed-equipment>ul{columns:1}}

@media(max-width:700px){
 .myyard-vdp .marketplace-sticker .sticker-facts dt{font-size:.9375rem}
 .myyard-vdp .marketplace-sticker .sticker-facts dd{font-size:1rem}
 .myyard-vdp .marketplace-sticker .sticker-facts>div{padding:7px 0}
 .myyard-vdp .marketplace-sticker .sticker-document-heading p,.myyard-vdp .sticker-record-note,.myyard-vdp .sticker-document-footer p,.myyard-vdp .sticker-equipment-columns p,.myyard-vdp .sticker-equipment-columns ul{font-size:.9375rem}
}

/* Continue the marketplace feed below the complete VDP. */
.myyard-vdp .recommendation-feed{margin-top:28px;padding-top:24px;border-top:1px solid var(--border);min-width:0}
.myyard-vdp .recommendation-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.myyard-vdp .recommendation-feed-heading h2{font-size:1.5rem;margin:0 0 5px}
.myyard-vdp .recommendation-feed-heading p{font-size:.875rem;color:var(--muted);margin:0}
.myyard-vdp .recommendation-feed>.search-understanding{margin:0 0 16px}
.myyard-vdp .recommendation-feed-item{min-width:0}
.myyard-vdp .recommendation-feed-item>div:first-child{height:100%}
.myyard-vdp .recommendation-feed-item .card{height:100%}
.myyard-vdp .recommendation-feed .recommendation-labels:empty{display:none}
.myyard-vdp .recommendation-feed .recommendation-labels:not(:empty){padding:8px;background:var(--surface)}
.myyard-vdp .recommendation-feed .more-recommendations{margin:20px auto 0;max-width:320px;display:flex;justify-content:center;min-height:44px}
#app .myyard-vdp .recommendation-feed .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:701px) and (max-width:1100px){#app .myyard-vdp .recommendation-feed .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .myyard-vdp .recommendation-feed{margin-left:-14px;margin-right:-14px;padding-top:20px}
 .myyard-vdp .recommendation-feed-heading{padding:0 12px;align-items:flex-start;flex-wrap:wrap;gap:8px}
 .myyard-vdp .recommendation-feed-heading h2{font-size:1.375rem}
 .myyard-vdp .recommendation-feed-heading .secondary{min-height:44px}
 .myyard-vdp .recommendation-feed>.search-understanding{margin:0 12px 16px}
 #app .myyard-vdp .recommendation-feed .grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .myyard-vdp .recommendation-feed-item>div:first-child,.myyard-vdp .recommendation-feed-item .card{height:auto}
 #app .myyard-vdp.browsing-recommendations .shopper-mobile-actions{display:none}
}
#app .myyard-vdp .recommendation-feed .dc-next{background:#253039e6;color:#fff;border:1px solid #ffffff80;border-radius:50%;padding:5px}
#app .myyard-vdp .recommendation-feed .dc-menu>summary{border:0;background:transparent;margin:0;padding:4px}
#app .myyard-vdp .recommendation-feed .dc-save[aria-pressed=true]{background:var(--accent-soft);color:var(--red)}
.myyard-vdp .recommendation-feed-item{display:flex;flex-direction:column}
.myyard-vdp .recommendation-feed-item>div:first-child{height:auto;flex:1}
