.bp-hero-editor { min-width: 0; margin: 20px 0; padding: 16px; border: 1px solid #ddd; border-radius: 12px; }
.bp-hero-editor legend { font-weight: 700; padding: 0 8px; }
.bp-hero-editor p { font-size: 13px; line-height: 1.7; }
.bp-hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bp-hero-card { min-width: 0; padding: 12px; background: #f8f6f5; border-radius: 8px; }
.bp-hero-thumb { position: relative; display: grid; place-items: center; margin: 10px 0; background: #ece8e6; overflow: hidden; }
.bp-hero-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.bp-hero-thumb span { font-size: 12px; color: #615955; }
.bp-hero-thumb [hidden] { display: none; }
.bp-hero-select { display: block; font-size: 13px; cursor: pointer; }
.bp-hero-editor input[type=file] { max-width: 100%; margin: 8px 0; font-size: 12px; }
.bp-hero-card-actions, .bp-crop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bp-hero-editor button, .bp-crop-dialog button { padding: 8px 12px; border: 1px solid #8c817d; border-radius: 6px; background: #fff; color: #302927; cursor: pointer; font: inherit; font-size: 13px; }
.bp-hero-editor button:disabled { opacity: .35; cursor: default; }
.bp-crop-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: 12px; background: #fff; color: #302927; overflow: auto; box-sizing: border-box; }
.bp-crop-dialog::backdrop { background: rgba(0,0,0,.7); }
.bp-crop-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.bp-crop-dialog p { font-size: 13px; line-height: 1.6; }
.bp-crop-dialog canvas { display: block; max-width: 100%; max-height: 42dvh; width: auto; height: auto; margin: auto; cursor: grab; touch-action: none; }
.bp-crop-dialog label { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; margin: 12px 0; font-size: 14px; }
.bp-crop-dialog input[type=range] { width: 100%; padding: 0; }
.bp-crop-dialog [data-crop-confirm] { background: #493833; color: #fff; }
@media (max-width: 600px) { .bp-hero-cards { grid-template-columns: 1fr; } .bp-hero-thumb { max-height: 260px; } .bp-crop-dialog { padding: 16px; } }

.bp-hero-thumb:has([data-fallback-image]) span { z-index: 1; align-self: end; justify-self: stretch; padding: 6px; text-align: center; background: #fffdf0e8; color: #302927; }
.bp-hero-editor .bp-hero-select { position: relative; padding: 10px; border: 1px solid #8c817d; border-radius: 6px; background: #fff; text-align: center; }
.bp-hero-editor .bp-hero-select:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
.bp-hero-editor .bp-hero-select input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }
.bp-crop-dialog { margin: auto; }

/* Shared photo fields: the preview uses the same ratio as the public photo. */
.bp-photo-card, .bp-gallery-editor { box-sizing: border-box; min-width: 0; padding: 16px; margin: 12px 0; border: 1px solid #ddd; border-radius: 12px; background: #f8f6f5; }
.bp-photo-card > strong, .bp-gallery-editor > strong { display: block; font-size: 14px; }
.bp-photo-card p, .bp-gallery-editor p { margin: 10px 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.bp-photo-hint { color: #625b58; }
.bp-photo-preview { position: relative; display: grid; place-items: center; width: min(100%, 360px); aspect-ratio: var(--bp-photo-ratio); margin: 12px 0; overflow: hidden; border-radius: 6px; background: #ece8e6; }
.bp-photo-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-photo-preview span { font-size: 13px; color: #615955; }
.bp-photo-preview [hidden] { display: none; }
[data-photo-field=profile] .bp-photo-preview { max-width: 180px; }
[data-photo-field=instructors] .bp-photo-preview { max-width: 240px; }
[data-photo-field=logo] .bp-photo-preview { background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
[data-photo-field=logo] .bp-photo-preview img { object-fit: contain; }
.bp-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-photo-card .bp-photo-select, .bp-gallery-editor .bp-photo-select, .bp-photo-card button, .bp-gallery-editor button { position: relative; display: inline-block; box-sizing: border-box; padding: 10px 14px; margin: 0; border: 1px solid #8c817d; border-radius: 6px; background: #fff; color: #302927; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.bp-photo-select:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
.bp-photo-card .bp-photo-select input[type=file], .bp-gallery-editor .bp-photo-select input[type=file] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }
.bp-gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 12px 0; }
.bp-gallery-card { min-width: 0; padding: 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; }
.bp-gallery-card img { display: block; width: 100%; height: 160px; object-fit: contain; background: #ece8e6; }
.bp-crop-dialog canvas { background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
[data-photo-field=instructors] .bp-photo-preview img { object-position: center top; }
.ballet-pages-dashboard-shell :is(.bp-photo-card, .bp-gallery-editor, .bp-hero-editor) :is(button, .bp-photo-select, .bp-hero-select) { border: 1px solid var(--bp-border, #ddd); border-radius: 6px; padding: 10px 14px; background: #fff; color: var(--bp-ink, #302927); font-size: 13px; line-height: 1.5; }
