/* My Yard VehicleCard layout, copied from data-surfaces.css and adapted to scoped marketplace selectors. */
#app .grid:not(.list-view){gap:14px 12px;align-items:stretch}
#app .grid .dealer-exact{display:flex;flex-direction:column;border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}
.dc-photo{position:relative;aspect-ratio:2.15;flex-shrink:0;border-radius:9px 9px 0 0;overflow:hidden;background:var(--inset)}
.dc-photo>a{display:block;width:100%;height:100%}.dc-photo img{display:block;width:100%;height:100%;object-fit:cover}
.dc-condition{position:absolute;top:9px;left:9px;font-size:9px;line-height:12px;letter-spacing:.7px;font-weight:700;text-transform:uppercase;background:#e8edf2;color:#253039;padding:4px 8px;border-radius:4px}.dc-condition.new{color:#ae253b}
.dc-next{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#253039d9;color:#fff;border:1px solid #ffffff60;padding:5px}.dc-next svg{width:17px;height:17px}.dc-next:disabled{opacity:.5}
.dc-count{position:absolute;right:9px;bottom:9px;background:#24303acc;color:white;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:600;pointer-events:none}
.dc-body{flex:1;min-width:0;background:var(--surface);border:1px solid var(--border);border-top:0;border-radius:0 0 8px 8px;padding:8px 10px}
.dc-heading{display:flex;gap:0;min-height:44px;align-items:flex-start}.dc-heading h3{flex:1;min-width:0;font-size:16px!important;line-height:20px;margin:0;font-weight:700;letter-spacing:-.4px}.dc-heading h3 a{color:var(--ink)}
.dc-actions{display:flex;align-items:center;gap:0;position:relative;flex-shrink:0}.dc-actions button,.dc-menu>summary{width:27px;height:30px;min-width:27px;padding:4px;display:grid;place-items:center;border-radius:4px;color:var(--ink);cursor:pointer;list-style:none}.dc-menu>summary::-webkit-details-marker{display:none}.dc-save svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}.dc-save[aria-pressed=true]{background:var(--accent-soft);color:var(--red)}.dc-save[aria-pressed=true] svg{fill:currentColor}.dc-menu>summary svg{width:20px;height:20px;fill:currentColor}
.dc-menu{position:relative}.dc-popover{position:absolute;z-index:12;top:33px;right:0;width:235px;padding:8px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 28px #0003}.dc-popover>a,.dc-popover>button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;width:100%;height:auto;min-height:44px;padding:8px;font-size:12px}.dc-popover svg{width:16px;height:16px}.dc-popover p{font-size:11px;line-height:1.5;padding:8px;border-top:1px solid var(--border);color:var(--muted);margin:0}
.dc-equipment{font-size:12px;line-height:16px;min-height:32px;color:var(--muted);margin:1px 0 6px}
.dc-pricing{display:grid;grid-template-columns:1fr auto;gap:6px;background:var(--raised);margin:0 -10px;padding:8px 10px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);min-height:64px}
.dc-label{font-size:11px;line-height:15px;color:var(--muted);display:flex;align-items:center;gap:5px}.dc-pricing>div:first-child>.dc-label{text-transform:uppercase;letter-spacing:.45px}.dc-pricing strong{display:block;font-size:22px;line-height:29px;letter-spacing:-.5px;color:var(--ink)}
.dc-price-context{display:flex;flex-direction:column;align-items:flex-end;font-size:11px;line-height:16px;color:var(--muted)}.dc-price-context a{display:flex;align-items:center;color:var(--red);font-size:11px;padding:0;line-height:16px}.dc-price-context svg{width:12px;height:12px}
.dc-identifiers{display:grid;grid-template-columns:.85fr 1.35fr;gap:8px;padding:8px 0 6px}.dc-identifier{min-width:0;text-align:left;padding:0;display:flex;flex-direction:column;gap:2px;border-radius:4px}.dc-identifier:hover{background:var(--hover)}.dc-identifier:disabled{opacity:1;cursor:default}.dc-identifier b{font-size:12px;line-height:17px;font-weight:600;white-space:nowrap;color:var(--ink)}.dc-identifier .dc-vin{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;letter-spacing:-.4px}.dc-identifier svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.dc-bottom{display:flex;align-items:center;gap:4px;justify-content:space-between;font-size:11px;line-height:18px;color:var(--muted);border-top:1px solid var(--border);padding-top:4px}.dc-bottom b{color:var(--ink);font-weight:500}.dc-bottom>svg{height:12px;width:12px;fill:currentColor;flex-shrink:0}
:root[data-theme=camo] .dc-pricing,:root[data-theme=camo] .dc-bottom{background:#dedfc5;color:#121a1b}
@media(max-width:700px){
 #app .grid .dealer-exact{display:flex}
 .dc-photo{aspect-ratio:1.85}
 .dc-actions button,.dc-menu>summary{min-width:44px;width:44px;height:44px}
 .dc-heading{min-height:48px}.dc-next{width:44px;height:44px}
 .dc-price-context a{min-height:32px}.dc-identifier{min-height:44px;justify-content:center}
 .dc-equipment{font-size:13px;line-height:18px}
 .dc-bottom{flex-wrap:wrap}.dc-popover{width:230px}
}
@media(min-width:701px){#app .list-view .dealer-exact{display:grid;grid-template-columns:240px 1fr}.list-view .dc-photo{height:100%;aspect-ratio:auto}.list-view .dc-body{border-top:1px solid var(--border)}}
@media(prefers-reduced-motion:reduce){.dc-next{transition:none}}
@media(min-width:701px){
 .dc-next{min-width:30px;min-height:30px}
 .dc-actions button,.dc-menu>summary{min-height:30px}
 .dc-identifier{min-height:0}
}
@media(min-width:701px){
 #app .dc-next{width:30px;height:30px;min-width:30px;min-height:30px}
 #app .dc-actions button,#app .dc-menu>summary{width:27px;height:30px;min-width:27px;min-height:30px}
 #app .dc-identifier{min-height:0}
 #app .dc-popover>button{width:100%;height:auto;min-height:44px}
}
@media(min-width:701px){
 #app .dc-next{min-height:30px!important}
 #app .dc-actions button,#app .dc-menu>summary{min-height:30px!important}
 #app .dc-identifier{min-height:34px!important}
 #app .dc-popover>button{min-height:44px!important}
}

/* Mobile discovery feed: full-bleed imagery with concise shopper metadata. */
.mobile-feed-facts{display:none}
@media(max-width:700px){
 #app[data-page=discover] .main,#app[data-page=saved] .main,#app[data-page=recent] .main{padding-left:0;padding-right:0}
 #app #content>.grid{margin-left:0;margin-right:0;width:100%;gap:18px}
 #app #content>.grid .dealer-exact{border:0;border-radius:0;overflow:visible;background:transparent}
 #app .dealer-exact .dc-photo{border-radius:0;aspect-ratio:16/9;width:100%}
 #app .dealer-exact .dc-body{border:0;border-radius:0;padding:8px 12px 0;background:transparent}
 #app .dealer-exact .dc-heading{min-height:0;gap:4px;align-items:flex-start}
 #app .dealer-exact .dc-heading h3{font-size:1rem!important;line-height:1.3;letter-spacing:-.25px;padding-top:3px}
 #app .dc-title-condition{display:none}
 #app .dealer-exact .dc-actions{margin-top:-4px;margin-right:-6px}
 #app .dealer-exact .dc-actions .dc-save,#app .dealer-exact .dc-menu>summary{width:40px;min-width:40px;height:44px}
 #app .dealer-exact .dc-equipment,#app .dealer-exact .dc-pricing,#app .dealer-exact .dc-identifiers,#app .dealer-exact .dc-bottom{display:none}
 #app .mobile-feed-facts{display:block;margin-top:1px}
 #app .feed-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:.8125rem;line-height:1.4}
 #app .feed-price strong{color:var(--ink);font-size:1.25rem;letter-spacing:-.4px}
 #app .feed-price>span:before{content:'·';margin-right:8px}
 #app .feed-specs{font-size:.8125rem;line-height:1.4;color:var(--muted);margin:3px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #app .feed-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:0;color:var(--muted);font-size:.6875rem;line-height:1.35}
 #app .feed-footer button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 4px;color:var(--ink);font-size:.75rem;flex-shrink:0}
 #app .feed-footer button svg{width:16px;height:16px}
 #app .feed-footer button[aria-pressed=true]{color:var(--red)}
 #app .dc-popover{top:44px;max-width:calc(100vw - 24px)}
 #app #content>.chips,#app #content>.toolbar,#app #content>.shopping-summary,#app #content>.shopping-scope,#app #content>.search-understanding,#app #content>.search-coverage-notice,#app #content>.try-searches{margin-left:12px;margin-right:12px}
 #app .footer-note,#app .result-pagination{padding-left:12px;padding-right:12px}
 #app .topbar,#app:has(.shopping-summary) .topbar,#app:has(.myyard-vdp) .topbar{height:104px;grid-template-rows:30px 44px;gap:6px;padding:8px 12px}
 #app .mobile-brand small{display:none}
 #app .topbar .composer,#app .topbar>.header-filter{height:44px}
 #app .composer:not(.is-open) .searchbox{height:44px;min-height:44px;padding:7px 10px}
 #app .topbar>.header-filter{padding:10px}
 #app .main,#app:has(.shopping-summary) .main,#app:has(.myyard-vdp) .main{margin-top:104px}
 #app .mobilebar{padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom));min-height:58px}
 #app .mobilebar a{font-size:.6875rem;gap:3px;padding:5px 4px;min-height:48px}
 #app .mobilebar a svg{width:22px;height:22px}
}
@media(max-width:700px){
 #app .dealer-exact .dc-body{position:relative}
 #app .dealer-exact .dc-heading{padding-right:80px}
 #app .dealer-exact .dc-actions{position:absolute;top:5px;right:8px;margin:0}
 #app .mobile-feed-facts{margin-top:5px}
 #app .topbar,#app:has(.shopping-summary) .topbar,#app:has(.myyard-vdp) .topbar{height:108px;grid-template-rows:40px 44px;gap:4px;padding:6px 12px}
 #app .topbar>.theme-control{align-self:center;justify-self:end;width:74px}
 #app .topbar>.theme-control select{width:74px;min-height:40px!important;height:40px;font-size:.6875rem}
 #app .main,#app:has(.shopping-summary) .main,#app:has(.myyard-vdp) .main{margin-top:108px}
}

.quick-looks{display:none}
@media(max-width:700px){
 #app .grid .quick-look-desktop{display:none}
 #app .quick-looks{display:block;min-width:0;padding:8px 12px 12px;background:var(--surface);color:var(--ink)}
 #app .quick-looks>header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 12px}
 #app .quick-looks h2{margin:0;font-size:1.125rem;letter-spacing:-.3px}
 #app .quick-looks>header>span{font-size:.6875rem;color:var(--muted)}
 #app .quick-look-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
 #app .quick-look{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:12px;background:var(--raised);color:var(--ink);border:1px solid var(--border);text-decoration:none}
 #app .quick-look-photo{position:relative;aspect-ratio:4/5;background:var(--inset);display:flex;align-items:center}
 #app .quick-look-photo img{display:block;width:100%;height:100%;object-fit:contain}
 #app .quick-look-photo>span{position:absolute;top:8px;left:8px;color:white;background:#17232de6;border-radius:4px;padding:3px 6px;font-size:.625rem}
 #app .quick-look-info{padding:8px 9px 10px}
 #app .quick-look h3{font-size:.8125rem;line-height:1.3;margin:0 0 5px;font-weight:650;overflow-wrap:anywhere}
 #app .quick-look strong{display:block;font-size:1rem;line-height:1.3}
 #app .quick-look small{display:block;color:var(--muted);font-size:.6875rem;line-height:1.4;margin-top:2px}
 #app .quick-looks>p{font-size:.625rem;line-height:1.4;color:var(--muted);margin:10px 0 0}
}
@media(max-width:700px){#app .quick-look-photo{aspect-ratio:5/4}}
/* Keep the layout space stable: only move the fixed browsing header. */
@media(max-width:700px){
 #app[data-page=discover]>.topbar,#app[data-page=saved]>.topbar,#app[data-page=recent]>.topbar{transition:transform 180ms ease-out}
 .feed-header-hidden #app[data-page=discover]>.topbar,.feed-header-hidden #app[data-page=saved]>.topbar,.feed-header-hidden #app[data-page=recent]>.topbar{transform:translateY(-100%);pointer-events:none}
 .feed-header-hidden #app>.topbar:has(.composer.is-open){transform:none;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){#app>.topbar{transition:none!important}}
