.review-stage { align-items: center; }
.review-stage blockquote { min-width: 0; }
#review-media { width: min(100%, 440px); margin: 0 auto 20px; }
#review-media[hidden], .testimonial-file-preview[hidden], .testimonial-admin-media[hidden], #review-text[hidden] { display: none; }
.testimonial-photo { display: block; width: 100%; border: 1px solid var(--theme-line); border-radius: 16px; padding: 0; overflow: hidden; background: var(--brand-surface); cursor: pointer; }
.testimonial-photo img { cursor: pointer; }
.testimonial-photo img, #review-media video { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 16px; }
#review-media video, .testimonial-file-preview video, .testimonial-admin-media video { background: #231d2b; border-radius: 16px; width: 100%; max-height: 420px; }
.testimonial-file-field, .testimonial-file-preview, .testimonial-media-error { grid-column: 1 / -1; min-width: 0; }
.testimonial-file-field input { max-width: 100%; padding: 10px; }
.testimonial-file-field input::file-selector-button { border: 1px solid var(--theme-line); border-radius: 999px; padding: 9px 15px; margin-right: 12px; background: var(--brand-surface); color: var(--ink); cursor: pointer; }
.testimonial-file-field input::file-selector-button:hover { background: var(--gold); color: white; }
.testimonial-file-preview { display: grid; justify-items: start; gap: 12px; }
.testimonial-file-preview > :is(.testimonial-video,.testimonial-photo) { max-width: 300px; width: 100%; }
.video-fallback { font: 14px/1.5 var(--sans); color: var(--ink); }
.review-stage .video-fallback { font: 14px/1.5 var(--sans); letter-spacing: normal; }
.video-fallback[hidden] { display: none; }
.video-fallback a { color: var(--brand-deep); text-decoration: underline; }
.testimonial-file-preview .testimonial-photo img { max-height: 240px; }
.testimonial-media-error { margin: 0; color: #943e43; font-size: 14px; }
.testimonial-admin-media { width: min(100%, 240px); margin-bottom: 15px; }
.testimonial-admin-media :is(img,video) { max-height: 200px; }
.testimonial-viewer { width: min(94vw, 800px); }
.testimonial-viewer > img { display: block; width: 100%; max-height: 75dvh; object-fit: contain; border-radius: 14px; }
@media (max-width: 600px) {
  .review-stage:has(#review-media:not([hidden])) { grid-template-columns: 30px minmax(0,1fr) 30px; gap: 8px; }
  #review-media { margin-bottom: 16px; }
  #review-media :is(img,video) { max-height: 380px; }
  .testimonial-file-field input { font-size: 13px; }
}
