/* CM-2026.12.01: all visual changes are feature-gated. */
html[data-cm-contain-photos="true"] :is(#veiculos,#garagem-detalhe).approved-public .card .photo {
  aspect-ratio: 16 / 9;
  height: auto;
  background: #edf0ee;
  overflow: hidden;
}
html[data-cm-contain-photos="true"] :is(#veiculos,#garagem-detalhe).approved-public .card .photo img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
#cmSponsoredGrid[hidden] { display: none; }
#cmSponsoredGrid:not([hidden]) { margin-bottom: 18px; }
html[data-cm-institutional="true"] #partnerStrip .cm-institutional-art {
  padding: 0; overflow: hidden; background: #e6ebe8;
}
html[data-cm-institutional="true"] #partnerStrip .cm-institutional-art img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
html[data-cm-institutional="true"] #garageProfile .cm-garage-header {
  position: relative; isolation: isolate; overflow: hidden; min-height: 260px; background: #315849;
}
#garageProfile .cm-garage-header .cm-header-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
#garageProfile .cm-garage-header::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#0009,#0002); z-index: 0; pointer-events: none;
}
#garageProfile .cm-garage-header :is(.hero-copy,.hero-logo) { position: relative; z-index: 1; }
#garageProfile .cm-garage-header .hero-logo img { object-fit: contain; }
html[data-cm-contain-photos="true"] #garagens .garage-card .logo-zone img {
  object-fit: contain; object-position: center; background: #edf0ee;
}
html[data-cm-contain-photos="true"] .approved-campaign-slide img {
  object-fit: contain; object-position: center; background: #edf0ee;
}
#vehiclePriceEditor { grid-column: 1 / -1; min-width: 0; }
.financial-evidence-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; }
.bank-snapshot-hash, #transferInstructions dd, #accountCommercial dd { overflow-wrap: anywhere; }
#bankAccountEditor, #transferReconciliation, #accountCommercial, #transferInstructions { min-width: 0; max-width: 100%; }
#vehiclePriceRows [data-price-row] {
  display: grid; grid-template-columns: minmax(75px,1fr) minmax(110px,2fr) auto 36px;
  gap: 8px; align-items: end; margin-bottom: 12px;
}
#vehiclePriceRows :is(label,input,select) { min-width: 0; max-width: 100%; }
#vehiclePriceRows [data-remove-price] { width: 36px; height: 36px; }
@media (max-width: 600px) {
  #vehiclePriceRows [data-price-row] { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  html[data-cm-institutional="true"] #garageProfile .cm-garage-header { min-height: 210px; }
}
#transferInstructions { min-width: 0; padding: 16px; overflow-wrap: anywhere; }
#transferInstructions h3 { padding-right: 30px; }
#transferInstructions dd { margin: 0 0 12px; min-width: 0; }
#transferInstructions input[type="file"] { max-width: 100%; }
