/* Photo-specific EXIF choices follow the existing rose and cream palette. */
.exif-upload-help { margin: 0 0 18px; color: #80536d; font-size: 14px; line-height: 1.85; }
.exif-note { margin: 8px 0 0; color: #83556e; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.exif-details { min-width: 0; margin-top: 12px; border-top: 1px solid #edd1df; padding-top: 12px; }
.exif-details h3, .exif-details summary { margin: 0; font: inherit; font-size: 14px; font-weight: 600; color: #995675; }
.exif-details summary { cursor: pointer; min-height: 32px; padding: 4px 0; }
.exif-values { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.exif-values > div { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 10px; padding: 3px 0; }
.exif-values dt { color: #916b7f; font-weight: 400; }
.exif-values dd { margin: 0; color: #664655; overflow-wrap: anywhere; }
.upload-preview-grid:has(.upload-preview-metadata) { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.upload-preview.upload-preview-metadata { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 18px; overflow: visible; min-width: 0; background: #fff8f6; border: 1px solid #edcedf; }
.upload-preview-metadata > img, .upload-preview-metadata > .upload-file-placeholder { width: 64px; height: 80px; object-fit: contain; border-radius: 8px; background: #f6e6ee; }
.upload-preview-metadata > figcaption { position: static; min-width: 0; padding: 4px 20px 0 0; color: #74445e; background: none; display: flex; flex-direction: column; gap: 6px; }
.upload-preview-metadata > figcaption > span { white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.upload-preview-metadata > figcaption > small { font-size: 12px; }
.upload-exif-choice, .return-original-choice { grid-column: 1 / -1; min-width: 0; }
.upload-exif-choice .check-field, .file-exif .check-field { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.return-original-choice select { width: 100%; min-width: 0; font-size: 16px; }
.file-exif { min-width: 0; }
.file-exif:empty { display: none; }
.saved-return-original { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edd1df; }
.saved-return-original select { min-width: 0; max-width: 100%; font-size: 16px; }
.saved-return-original .button { margin-top: 12px; }
.return-schedule-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.return-schedule-fields .field { min-width: 0; margin: 0; }
.return-schedule-fields select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.return-photo-context-editor {
  min-width: 0;
  margin: 16px 0;
  padding-block: 14px;
  border-block: 1px solid #edd1df;
}
.return-photo-context-editor .button { margin-top: 10px; min-height: 44px; }
.return-photo-context { margin: 12px 0; color: #74445e; overflow-wrap: anywhere; }
.return-completion-actions { flex-wrap: wrap; }
.return-completion-actions .button { min-height: 44px; }
.stat-row.return-status-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.return-status-stats .stat-box span { white-space: normal; word-break: keep-all; }
body.sky-pastel .badge.no_return { color: #715768; background: #f6ecf1; border-color: #dbcbd4; }
body.sky-pastel .request-card:has(.badge.no_return):before { background: #c6a7b8; }
@media (max-width: 767px) {
  .stat-row.return-status-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .return-completion-actions .button { flex: 1 1 0; min-width: 0; padding: 10px 6px; white-space: normal; word-break: keep-all; }
}
.library-exif-form { padding: 16px; margin: 16px 0; border: 1px solid #edcedf; border-radius: 16px; background: #fff8f6; }
.library-exif-form h4 { margin: 0; font-size: 15px; font-weight: 600; color: #995675; }
.library-exif-form .check-field { font-size: 14px; line-height: 1.75; margin-top: 10px; }
.library-exif-form .check-field small { font-size: 12px; }
.exif-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.exif-form-actions .button { max-width: 100%; min-height: 44px; font-size: 13px; padding: 10px 14px; white-space: normal; }
.gallery-grid .exif-details { width: 100%; }
.lightbox-copy .exif-values { font-size: 14px; }
.exif-consent-status { min-width: 0; margin: 14px 0; padding: 14px; border: 1px solid #edcedf; border-radius: 14px; background: #fff8f6; }
.exif-consent-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.exif-consent-heading h3 { margin: 0; font: inherit; font-size: 14px; font-weight: 600; color: #80536d; }
.exif-consent-badge { display: inline-block; padding: 4px 10px; border: 1px solid #ddc9d2; border-radius: 30px; color: #765668; background: #f5ecef; font-size: 12px; line-height: 1.7; }
.exif-consent-badge.is-consented { color: #873d63; border-color: #e9b0cb; background: #fbe1ee; }
.exif-consent-status .exif-note { font-size: 13px; }
.exif-private-scope { padding-top: 8px; border-top: 1px solid #eddbe3; }
.exif-consent-history { margin-top: 10px; border-top: 1px solid #eddbe3; }
.exif-consent-history summary { cursor: pointer; display: list-item; padding: 12px 0; min-height: 44px; font-size: 13px; color: #80536d; }
.exif-consent-history ol { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.exif-consent-history li { display: grid; gap: 3px; padding: 10px 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.exif-consent-history li + li { border-top: 1px solid #eddbe3; }
.exif-consent-history strong { font-weight: 600; color: #795268; }
.exif-consent-history span, .exif-consent-history time { color: #83556e; }
.private-original-copy { min-width: 0; }
.private-original-copy > h2 { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .upload-preview-grid:has(.upload-preview-metadata) { grid-template-columns: minmax(0, 1fr); }
  .upload-preview.upload-preview-metadata { padding: 14px; }
  .exif-upload-help { font-size: 13px; }
  .exif-values > div { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
}
