/* Company inventory phone contract. Keep these anchors together: header hint,
   wall-contained search, two cards, and the approved right-side action column.
   The shared poster owns image geometry; never give its canvas a fixed height. */
@media(max-width:700px){
 @layer pbb-company-controls {
  html body:has(#inventory.page-current) #site-header#site-header>.logo-menu-label{top:calc(60px + var(--pbb-screen-safe-top,0px))!important;bottom:auto!important;margin:0!important}
  html body #inventory#inventory#inventory .studio-banner-copy{top:82px!important;left:50%!important;width:90%!important;transform:translateX(-50%)!important}
  html body #inventory#inventory#inventory .studio-banner-copy>.eyebrow{font-size:8px!important;letter-spacing:3px!important;margin:0 0 8px!important}
  html body #inventory#inventory#inventory .studio-banner-copy h1{font-size:clamp(22px,6vw,27px)!important;line-height:1.25!important;margin:0!important}
  html body #inventory#inventory#inventory .pbb-inventory-search-tools{top:calc(var(--showroom-horizon) - 58px)!important;left:var(--showroom-wall-left,12%)!important;right:var(--showroom-wall-right,12%)!important;width:auto!important;min-width:0!important;transform:none!important;gap:8px!important}
  html body #inventory#inventory#inventory .pbb-inventory-search-tools>.pbb-independent-search{height:44px!important;min-height:44px!important;padding:0 10px!important;box-sizing:border-box!important;min-width:0!important}
  html body #inventory#inventory#inventory .pbb-independent-search input#search{font-size:16px!important;height:42px!important;min-height:42px!important;padding:0!important;border:0!important;background:transparent!important;min-width:0!important}
  html body #inventory#inventory#inventory .pbb-inventory-search-tools>details.pbb-showroom-controls{flex:0 0 70px!important;width:70px!important;height:44px!important}
  html body #inventory#inventory#inventory .pbb-controls-summary{height:44px!important;min-height:44px!important;padding:0 12px!important;justify-content:center!important;box-sizing:border-box!important;font-size:14px!important}
  html body #inventory#inventory#inventory details.pbb-showroom-controls[open]>.pbb-controls-body{width:calc(100vw - var(--showroom-wall-left,12vw) - var(--showroom-wall-right,12vw))!important;max-height:calc(100dvh - var(--showroom-horizon) - 12px)!important}
  html body #inventory#inventory#inventory .pbb-showroom-list{padding:18px 16px 84px!important;mask-image:none!important;-webkit-mask-image:none!important}
  html body #inventory#inventory#inventory #cars{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 14px!important;margin:0!important;align-items:stretch!important}
  html body #inventory#inventory#inventory #cars>.pbb-art-card.pbb-shared-card{width:100%!important;max-width:none!important;grid-template-columns:minmax(0,1fr) 30px!important;grid-template-rows:74px auto minmax(0,1fr) 44px!important;gap:4px 8px!important;align-self:stretch!important;min-width:0!important}
  html body #inventory#inventory#inventory #cars .pbb-poster-heading{grid-row:1!important;min-height:0!important;height:74px!important;padding:0!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important}
  html body #inventory#inventory#inventory #cars .pbb-poster-heading h3{font-size:clamp(15px,4.4vw,19px)!important;line-height:1.1!important;overflow-wrap:anywhere!important}
  html body #inventory#inventory#inventory #cars .pbb-poster-make{font-size:10px!important;letter-spacing:2px!important}
  html body #inventory#inventory#inventory #cars .pbb-art-visual{grid-row:2!important;margin:0!important}
  html body #inventory#inventory#inventory #cars .pbb-art-info{grid-row:3!important;grid-column:1!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"price" "miles" "reduction" "signals" "highlights" "ratings"!important;align-items:baseline!important;align-content:start!important;gap:5px!important;padding:8px 0 0!important;min-height:0!important;box-sizing:border-box!important}
  html body #inventory#inventory#inventory #cars .pbb-art-info>strong{grid-area:price!important;order:0!important;font-size:clamp(18px,5.8vw,24px)!important;line-height:1.1!important;white-space:nowrap!important;letter-spacing:-.5px!important}
  html body #inventory#inventory#inventory #cars .pbb-art-info>p{grid-area:miles!important;order:0!important;align-self:baseline!important;justify-self:start!important;text-align:left!important;white-space:nowrap!important;font-size:clamp(9px,2.5vw,11px)!important;line-height:1.2!important;padding:0!important;border:0!important;margin:0!important;flex-basis:auto!important}
  html body #inventory#inventory#inventory #cars .vehicle-highlight-tags{grid-area:highlights!important;order:0!important;min-height:0!important;align-content:start!important;gap:4px!important;margin:0!important}
  html body #inventory#inventory#inventory #cars .vehicle-highlight-tags>*{font-size:10px!important;padding:3px 5px!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important}
  /* Social geometry comes from vehicle-cards-shared.css, not a phone override. */
  html body #inventory#inventory#inventory #cars .pbb-art-social{padding-top:8px!important;box-sizing:border-box!important}
  html body #inventory#inventory#inventory #cars .pbb-art-actions{grid-row:4!important;grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0!important;width:100%!important}
  html body #inventory#inventory#inventory #cars .pbb-art-actions>button{min-width:0!important;width:100%!important;height:44px!important;min-height:44px!important;padding:4px!important;font-size:11px!important;white-space:nowrap!important;line-height:1.2!important}
  html body #inventory#inventory#inventory #cars .pbb-art-info>.pbb-price-signals{grid-area:signals!important;order:0!important;min-height:0!important;margin:0!important;gap:4px!important}
  html body #inventory#inventory#inventory #cars .pbb-art-info>.pbb-price-signals:empty{display:none!important}
  html body #inventory#inventory#inventory #cars .pbb-art-info>small{grid-area:ratings!important;order:0!important;min-height:0!important;padding:0!important;margin:0!important;flex-wrap:wrap!important}
  html body #inventory#inventory#inventory #cars .pbb-card-reduction{grid-area:reduction!important;order:0!important;display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:2px 5px!important;padding:0!important;margin:0!important;width:auto!important;background:none!important;border:0!important}
  html body #inventory#inventory#inventory #cars .pbb-card-reduction>small{font-size:9px!important;line-height:1.3!important}
  html body #inventory#inventory#inventory #cars .pbb-card-reduction .pbb-reduction-value{display:inline-flex!important;gap:4px!important;padding:0!important}
  html body #inventory#inventory#inventory #cars .pbb-card-reduction .pbb-reduction-value>strong{font-size:12px!important;line-height:1.3!important}
  html body #inventory#inventory#inventory #cars .pbb-card-reduction .pbb-reduction-value>b{font-size:9px!important;line-height:1.3!important}
  html body #inventory#inventory#inventory #cars .pbb-card-reduction .pbb-reduction-prices{display:none!important}
 }
 /* Inherit the current shared showroom background; no phone-only legacy image. */
}
@layer pbb-company-controls {
 @media(max-width:700px){
  html body #inventory#inventory#inventory#inventory .pbb-inventory-search-tools{left:14px!important;right:14px!important;width:auto!important;max-width:calc(100vw - 28px)!important;top:calc(var(--showroom-horizon) - 58px)!important;translate:none!important;transform:none!important;box-sizing:border-box!important;gap:8px!important}
  html body #inventory#inventory#inventory#inventory .pbb-inventory-search-tools>.pbb-independent-search{flex:1 1 0!important;width:0!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important}
  html body #inventory#inventory#inventory#inventory .pbb-inventory-search-tools>details.pbb-showroom-controls{flex:0 0 70px!important;width:70px!important;height:44px!important;min-height:44px!important}
  html body #inventory#inventory#inventory#inventory .pbb-controls-summary{height:44px!important;min-height:44px!important;box-sizing:border-box!important}
 }
}
