/* v2.4.1: keep report entry points readable and evidence previews stable. */
.reports-page-header .page-actions > .btn {
 min-width:0;max-width:100%;white-space:normal;
}
.reports-page-header .page-actions > .btn > span {
 min-width:0;overflow-wrap:anywhere;
}
@media(max-width:740px) {
 .reports-page-header .page-actions {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;
  width:100%;gap:10px;
 }
 .reports-page-header .page-actions > .btn {
  width:100%;min-height:48px;padding:12px;font-size:14px;line-height:1.35;gap:8px;
 }
 .reports-page-header .page-actions > .btn > svg {width:20px;height:20px;flex:none}
 .reports-page-header .page-actions > .btn:only-child {grid-column:1/-1}
}
@media(max-width:480px) {
 .reports-page-header .page-actions {grid-template-columns:minmax(0,1fr)}
}

/* A percentage-height image in an auto-height flex item can acquire its own
 * intrinsic height while the parent is resolving aspect-ratio. Reserve the
 * slot independently, then contain the decoded image within it. This also
 * keeps portrait and wide evidence, including edge markings, fully visible. */
.report-photo-image {
 flex:0 0 auto;width:100%;height:0;padding-top:75%;aspect-ratio:auto;
}
.report-photo-image > img {
 position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:contain;object-position:center;
}
/* Keep an actual image box for native lazy-loading intersection checks. */
.report-photo-image[data-preview-state=loading] > img,
.report-photo-image[data-preview-state=unavailable] > img {opacity:0}
.report-photo-image [hidden] {display:none!important}
.report-photo-image > input[type=checkbox] {z-index:2}
.report-photo-preview-status {
 position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:7px;padding:34px 8px 8px;text-align:center;
 background:var(--surface);color:var(--muted);font-size:12px;line-height:1.35;
}
.report-photo-preview-status .btn {
 min-height:44px;max-width:100%;min-width:0;white-space:normal;padding:7px 9px;
 font-size:12px;line-height:1.3;
}
.report-photo-preview-status .btn > span {min-width:0;overflow-wrap:anywhere}
@media(max-width:360px) {
 .report-photo-choices {grid-template-columns:minmax(0,1fr)}
}
