/* Logo artwork keeps its own proportions; layout limits belong to each placement. */
.brand-logo,
.club-overview > .brand-logo,
.customer-mobile-shell .club-overview > .brand-logo {
  display: block;
  width: min(var(--club-logo-width, 220px), 100%);
  height: auto;
  max-width: 100%;
  max-height: 160px;
  aspect-ratio: var(--club-logo-ratio, auto);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  padding: 0;
}
.brand-logo--sm { max-height: 112px; }
.customer-mobile-identity .customer-club-logo { width: var(--club-logo-width, 48px); height: auto; max-width: min(96px, 100%); max-height: 48px; aspect-ratio: var(--club-logo-ratio, auto); object-fit: contain; border-radius: 0; }
.club-logo-upload { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; }
.club-logo-upload legend { padding: 0 6px; font-weight: 700; }
.club-logo-upload input[type="file"] { max-width: 100%; }
.club-logo-upload .checkbox-inline { display: flex; align-items: center; gap: 8px; }
.club-logo-upload .checkbox-inline input { flex: 0 0 auto; width: auto; margin: 0; }
.club-logo-previews { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.club-logo-previews > div { min-width: 0; max-width: 100%; }
.club-logo-preview { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; margin-top: 8px; padding: 12px; border: 1px dashed var(--border); border-radius: 8px; background: var(--panel); }
.club-logo-preview img { display: block; width: auto; height: auto; object-fit: contain; padding: 0; }
.club-logo-preview--header { min-height: 74px; }
.club-logo-preview--header img { max-width: min(96px, 100%); max-height: 48px; }
.club-logo-preview--header img[data-compact-badge="true"] { max-width: min(48px, 100%); }
.club-logo-preview--card { width: 186px; height: 138px; }
.club-logo-preview--card img { max-width: min(160px, 100%); max-height: 112px; }
.club-logo-preview--email { width: 246px; height: 158px; background: white; }
.club-logo-preview--email img { max-width: min(220px, 100%); max-height: 132px; }
.club-logo-upload [role="alert"] { color: var(--error, #a52b24); }
.club-badge-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.club-badge-editor { display: grid; justify-items: start; gap: 10px; margin-top: 16px; min-width: 0; max-width: 100%; }
.club-badge-editor[hidden] { display: none; }
.club-badge-crop-frame { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; min-width: 0; }
.club-badge-editor canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 2px solid var(--accent); border-radius: 8px; touch-action: none; cursor: grab; background: repeating-conic-gradient(#fff 0% 25%, #e9edf1 0% 50%) 0 0 / 16px 16px; }
.club-badge-editor canvas:active { cursor: grabbing; }
.club-badge-editor canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.club-badge-editor input[type="range"] { width: min(320px, 100%); min-height: 44px; margin: 0; }
