.inventory-tools{display:flex;gap:12px;margin:25px 0}.inventory-tools input,.inventory-tools select{font:inherit;padding:12px;border:1px solid #cbd5df;background:white;min-width:0}.inventory-tools input{flex:1}.vehicle-button{border:0;text-align:left;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer}.vehicle-button .car-img img{object-fit:cover}.vehicle-meta{font-size:12px;color:#748793}.vehicle-price{font-size:19px;color:#1d466a;margin:10px 0}.status-pill{position:absolute;top:14px;left:14px;padding:5px 10px;background:#fff;color:#1d466a;font-size:11px}.vehicle-dialog{border:0;padding:30px;max-width:850px;width:90%;max-height:90svh;overflow:auto;color:#162c3d}.vehicle-dialog::backdrop{background:#102738aa}.dialog-close{float:right;background:none;border:0;font-size:24px}.vehicle-gallery{display:flex;gap:12px;overflow:auto;margin:20px 0}.vehicle-gallery img{height:300px;max-width:100%;object-fit:contain;background:#f2f4f5}.vehicle-dialog video{display:block;max-width:100%;max-height:65svh;margin:20px auto}.vehicle-description{white-space:pre-wrap}.admin-page{background:#f2f4f5}.admin-page h1{font-size:38px;margin:0}.admin-page h2{font-size:24px;margin-bottom:20px}.admin-notice{font-size:13px;color:#6d8090}.admin-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:35px;margin-top:30px}.admin-layout form,.admin-layout>section{background:#fff;padding:28px;min-width:0}.admin-layout label{display:block;font-size:12px;margin-bottom:18px}.admin-layout input:not([type=checkbox]),.admin-layout select,.admin-layout textarea{display:block;width:100%;border:1px solid #cbd5df;padding:12px;font:inherit;margin-top:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.admin-layout .check-row{display:flex;align-items:center;gap:10px}.photo-preview{display:flex;overflow:auto;gap:10px;margin:15px 0}.photo-preview img{height:100px;width:120px;object-fit:cover}.admin-item{padding:20px 0;border-top:1px solid #d8e0e6}.admin-item img{width:100%;height:160px;object-fit:cover}.admin-item h3{font-size:17px}.admin-item select{max-width:100%}#publish-message{font-size:13px}button:disabled{opacity:.5;cursor:wait}@media(max-width:650px){.admin-layout{grid-template-columns:1fr}.inventory-tools{flex-wrap:wrap}.inventory-tools input{flex-basis:100%}.vehicle-gallery img{height:220px}.vehicle-dialog{padding:20px}}
/* Keep six vehicle summaries in view on phones; full details remain in the dialog. */
@media(max-width:650px){
  #collection{padding:16px 16px 20px;scroll-margin-top:-14px}
  #collection .section-top .eyebrow,#collection .section-top>p{display:none}
  #collection .section-top h2{font-size:22px;line-height:1.3;letter-spacing:0}
  #collection .filters{gap:20px;min-height:36px;margin:8px 0 6px;align-items:stretch}
  #collection .filters button{padding:8px 2px;font-size:12px;min-height:36px}
  #collection .inventory-tools{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:8px;margin:0 0 10px}
  #collection .inventory-tools input,#collection .inventory-tools select{width:100%;height:36px;padding:7px 9px;font-size:16px;border-radius:4px}
  #collection .inventory-tools select{font-size:12px;padding-left:6px}
  #collection .cars{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}
  #collection .vehicle-button{min-width:0;overflow:hidden;border:1px solid #2b4357;border-radius:6px;background:#10202d}
  #collection .vehicle-button .car-img{height:clamp(44px,calc((100svh - 510px)/3),104px);background:#0b1722}
  #collection .vehicle-button .car-img img{object-fit:contain}
  #collection .vehicle-button h3{margin:5px 7px 0;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
  #collection .vehicle-button .vehicle-meta{margin:1px 7px 0;font-size:10px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #collection .vehicle-button .vehicle-price{margin:2px 7px 6px;font-size:12px;line-height:16px;font-weight:600;color:#a6e4ff}
  #collection .vehicle-button .status-pill{top:4px;left:4px;padding:2px 5px;font-size:9px;line-height:12px;border-radius:3px}
}
@media(max-width:650px) and (max-height:620px){
  #collection{padding-top:12px;padding-bottom:16px}
  #collection .section-top h2{font-size:20px;line-height:26px}
  #collection .filters{min-height:32px;margin:6px 0}
  #collection .filters button{min-height:32px;padding:6px 2px}
  #collection .inventory-tools{margin-bottom:8px}
  #collection .inventory-tools input,#collection .inventory-tools select{height:32px;padding-top:5px;padding-bottom:5px}
  #collection .cars{row-gap:6px}
  #collection .vehicle-button .car-img{height:36px}
  #collection .vehicle-button h3{font-size:12px;line-height:16px;margin-top:3px}
  #collection .vehicle-button .vehicle-meta{font-size:9px;line-height:12px;margin-top:0}
  #collection .vehicle-button .vehicle-price{font-size:11px;line-height:14px;margin-top:1px;margin-bottom:3px}
}
#collection{background:#0a1119;padding:36px 24px;--accent:#8edcff;--line:#2b4357}
#collection .inventory-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
#collection .inventory-heading h2{font-size:26px;letter-spacing:0;line-height:1.4;margin:0}
#vehicle-count{display:inline-block;font-size:14px;color:var(--accent);background:#173447;padding:3px 10px;border-radius:8px;vertical-align:middle}
#inventory-sync{font-size:13px;color:#91a4b6;margin:8px 0 0}
#collection .inventory-publish{padding:12px 20px;background:#72c5ed;border-radius:10px;color:white;font-size:14px;white-space:nowrap}
#collection [hidden]{display:none!important}
#collection .filters{margin:0 0 12px;gap:24px;border-color:var(--line)}
#collection .filters button.active{color:var(--accent);border-color:var(--accent)}
#collection .inventory-tools{display:flex;flex-wrap:nowrap;gap:12px;margin:0 0 24px}
#collection .inventory-tools input,#collection .inventory-tools select,#collection .inventory-tools button{background:#10202d;border:1px solid var(--line);border-radius:10px;color:#c8e6f8;height:50px;padding:10px 14px;font:inherit;font-size:14px;min-width:0}
#collection .inventory-tools input{flex:1;width:100%}
#collection .inventory-tools select{width:126px}
#collection .inventory-tools button{cursor:pointer;min-width:44px}
#collection .inventory-tools button:focus-visible,#collection .vehicle-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#collection .inventory-view{display:flex;gap:4px}
#collection .inventory-view [aria-pressed=true]{background:#1c4057;color:var(--accent)}
#collection .cars{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
#collection .vehicle-button{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#10202d;min-width:0;transition:border-color .15s}
#collection .vehicle-button:hover{border-color:#72c5ed}
#collection .vehicle-button .car-img{height:220px;background:#0a1119}
#collection .vehicle-button .car-img img{object-fit:contain;width:100%;height:100%}
#collection .vehicle-info{padding:20px}
#collection .vehicle-button .vehicle-meta{margin:0 0 8px;font-size:12px;color:#91a4b6;line-height:18px}
#collection .vehicle-button h3{margin:0;font-size:20px;line-height:28px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#collection .vehicle-facts{display:flex;justify-content:space-between;gap:8px;margin-top:14px;color:#91a4b6;font-size:12px;line-height:18px}
#collection .vehicle-button .vehicle-price{border-top:1px solid var(--line);padding-top:18px;margin:18px 0 0;color:var(--accent);font-weight:600;font-size:20px;line-height:28px}
#collection .status-pill{background:#14354a;color:#c8e6f8;border:1px solid #42647c;border-radius:5px;top:14px;left:14px;font-size:10px;padding:5px 10px}
#collection .cars.list-view{grid-template-columns:1fr;gap:10px}
#collection .list-view .vehicle-button{display:grid;grid-template-columns:180px 1fr}
#collection .list-view .car-img{height:160px}
#collection .list-view .vehicle-price{padding-top:8px;margin-top:8px}
@media(min-width:651px) and (max-width:960px){#collection .cars{grid-template-columns:repeat(2,minmax(0,1fr))}#collection .inventory-tools{flex-wrap:wrap}#collection .inventory-tools input{flex-basis:50%}}
@media(max-width:650px){
 #collection{padding:16px;scroll-margin-top:-14px}
 #collection .inventory-heading{margin-bottom:8px;gap:8px}
 #collection .inventory-heading h2{font-size:20px;line-height:26px}
 #collection .inventory-publish{font-size:11px;padding:8px 10px;border-radius:6px}
 #inventory-sync{font-size:10px;margin-top:2px}
 #collection .filters{min-height:30px;margin:0 0 6px;gap:20px}
 #collection .filters button{font-size:11px;padding:4px 2px;min-height:30px}
 #collection .inventory-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px 76px;gap:6px;margin-bottom:8px}
 #collection .inventory-tools input{grid-column:1/-1}
 #collection .inventory-tools input,#collection .inventory-tools select,#collection .inventory-tools button{height:32px;width:100%;padding:5px 7px;font-size:11px;border-radius:5px}
 #collection .inventory-tools input{font-size:16px}
 #collection .inventory-tools button{min-width:32px}
 #collection .inventory-view{gap:4px}
 #collection .cars{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #collection .vehicle-button{border-radius:8px}
 #collection .vehicle-button .car-img{height:clamp(40px,calc((100svh - 510px)/3),104px)}
 #collection .vehicle-info{padding:6px}
 #collection .vehicle-button .vehicle-meta{font-size:9px;line-height:12px;margin:0 0 2px;white-space:nowrap}
 #collection .vehicle-button h3{font-size:12px;line-height:16px;margin:0}
 #collection .vehicle-facts{font-size:9px;line-height:12px;margin-top:3px;gap:3px}
 #collection .vehicle-button .vehicle-price{font-size:11px;line-height:14px;margin:4px 0 0;padding-top:4px;white-space:nowrap}
 #collection .status-pill{top:4px;left:4px;font-size:8px;padding:1px 4px;line-height:12px}
 #collection .list-view .vehicle-button{grid-template-columns:100px 1fr}
 #collection .list-view .car-img{height:100%;min-height:90px}
}
@media(max-width:650px) and (max-height:620px){#collection{padding-top:10px}#inventory-sync{display:none}#collection .inventory-heading{margin-bottom:4px}#collection .vehicle-button .car-img{height:32px}#collection .vehicle-info{padding:4px 6px}#collection .vehicle-facts{margin-top:2px}#collection .vehicle-button .vehicle-price{margin-top:2px;padding-top:2px}}
@media(max-width:650px){#collection .vehicle-button .car-img{height:clamp(24px,calc((100svh - 650px)/3),84px)}#collection .vehicle-button .vehicle-info{padding:4px 6px}}
@media(max-width:650px) and (max-height:620px){#collection .vehicle-button .car-img{height:20px}#collection .vehicle-facts{display:none}#collection .vehicle-button .vehicle-price{font-size:10px;line-height:12px}}

#collection .inventory-publish{color:#102638;background:linear-gradient(120deg,#c8e6f8,#72c5ed);border:1px solid #8edcff}#collection .inventory-publish:hover{background:#8edcff}

/* Homepage editor and 30% larger mobile photos; preserve complete photo framing. */
#collection .vehicle-shell{display:flex;flex-direction:column;min-width:0;gap:6px}
#collection .vehicle-shell>.vehicle-button{width:100%;flex:1}
#collection .inline-edit-button{width:100%;padding:8px 12px;font-size:12px;cursor:pointer}
#collection .list-view .vehicle-shell{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:stretch}
.inline-admin{width:min(760px,94vw);padding:24px;border:1px solid #36566d}
.inline-admin .admin-layout{display:block;margin-top:16px}
.inline-admin .admin-layout>section{display:none}
.inline-admin .admin-layout form{padding:20px;scroll-margin-top:0}
@media(max-width:650px){
 #collection .vehicle-button .car-img{height:clamp(31.2px,calc((100svh - 650px)*1.3/3),109.2px)}
 #collection .vehicle-button .car-img img{object-fit:contain;transform:none}
 #collection .list-view .car-img{height:100%;min-height:117px}
 #collection .list-view .vehicle-shell{grid-template-columns:minmax(0,1fr)}
 .inline-admin{padding:14px}.inline-admin .admin-layout form{padding:14px}.inline-admin .form-grid{grid-template-columns:1fr}
}
@media(max-width:650px) and (max-height:620px){#collection .vehicle-button .car-img{height:26px}}
/* Mobile inventory: readable horizontal rows, complete photos. */
@media(max-width:650px){
 #collection{padding:20px 12px 24px}
 #collection .cars,#collection .cars.list-view{grid-template-columns:minmax(0,1fr);gap:12px}
 #collection .vehicle-button,#collection .list-view .vehicle-button{display:grid;grid-template-columns:43% minmax(0,1fr);align-items:stretch;border-radius:12px;min-height:146px;width:100%}
 #collection .vehicle-button .car-img,#collection .list-view .vehicle-button .car-img{height:100%;min-height:146px;background:#091724}
 #collection .vehicle-button .car-img img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;transform:none}
 #collection .vehicle-button .vehicle-info{padding:12px 10px;display:flex;flex-direction:column;min-width:0;justify-content:center}
 #collection .vehicle-button h3{order:-1;font-size:15px;line-height:21px;white-space:normal;overflow-wrap:anywhere;margin:0 0 7px}
 #collection .vehicle-button .vehicle-meta{font-size:11px;line-height:17px;white-space:normal;margin:0}
 #collection .vehicle-facts{display:flex;font-size:10px;line-height:15px;margin-top:5px}
 #collection .vehicle-button .vehicle-price{font-size:15px;line-height:21px;margin:8px 0 0;padding-top:8px;white-space:normal}
 #collection .vehicle-button .status-pill{top:6px;left:6px;font-size:9px;line-height:14px;padding:2px 6px}
 #collection .vehicle-shell,#collection .list-view .vehicle-shell{display:flex;flex-direction:column;gap:5px}
 #collection .inline-edit-button{min-height:34px;padding:6px 12px}
}
@media(max-width:360px){#collection .vehicle-button h3{font-size:14px;line-height:20px}#collection .vehicle-button .vehicle-info{padding:10px 8px}#collection .vehicle-button .vehicle-price{font-size:14px}}
