html { scrollbar-gutter: stable; }
body.report-details-open { overflow: hidden; }
.report-dialog {
  color: var(--text);
  background: #f6f7ef;
  border: 1px solid #d5e2d1;
  border-radius: 22px;
  box-shadow: 0 24px 90px #092b1d55;
  padding: 0;
  width: min(880px, calc(100% - 40px));
  max-width: none;
  height: min(880px, 90vh);
  height: min(880px, 90dvh);
  max-height: none;
  overflow: hidden;
}
.report-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.report-dialog::backdrop { background: #092b1db3; }
.report-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fffdf8; border-bottom: 1px solid #d5e2d1; }
.report-dialog-header h2 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.8rem); overflow-wrap: anywhere; }
.report-dialog-kicker { margin: 0 0 4px; color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.report-dialog-close { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #b7caba; border-radius: 10px; background: #e8f1df; color: #173b2b; font: 700 .95rem/1.25 system-ui, sans-serif; cursor: pointer; }
.report-dialog-close span { margin-left: 5px; font-size: 1.3rem; }
.report-dialog-content { padding: 24px; overflow: auto; overscroll-behavior: contain; }
#report-details-description { margin: 0 0 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-photo-help { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.report-details-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.report-details-photos figure { margin: 0; min-width: 0; }
.report-details-photos figcaption { margin-bottom: 8px; font-weight: 700; }
.report-details-photos p { color: var(--muted); font-size: .9rem; }
.report-photo-button { display: block; width: 100%; border: 1px solid #b7caba; border-radius: 12px; padding: 0; background: #e6eee0; overflow: hidden; cursor: zoom-in; }
.report-photo-button:disabled { cursor: default; }
.report-photo-button img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.report-photo-button img[hidden] { display: none; }
.report-dialog-footer { display: block; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #d5e2d1; background: #fffdf8; }
.report-removal-link { display: block; padding: 12px 16px; border-radius: 12px; text-align: center; background: #275b40; color: white; font-weight: 700; text-decoration: none; }
.report-removal-link[hidden] { display: none; }
.lifecycle-badge { display: inline-block; background: #e6eee0; border-radius: 8px; padding: 4px 12px; margin: 0 0 8px; font-weight: 750; }
#report-details-dates { font-size: .9rem; color: var(--muted); }
.lifecycle-history { margin-top: 24px; border-top: 1px solid #b7caba; padding-top: 12px; }
.lifecycle-history ol { padding-left: 24px; }
.lifecycle-history li { padding: 8px 0 16px; }
.lifecycle-history p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.lifecycle-history small { color: var(--muted); }
#report-history-more { min-height: 44px; padding: 8px 14px; background: #e8f1df; border: 1px solid #b7caba; border-radius: 9px; font: inherit; cursor: pointer; }
.report-dialog :focus-visible, .leaflet-interactive[role="button"]:focus-visible { outline: 3px solid #1359c7; outline-offset: 3px; }
.report-photo-viewer { width: calc(100% - 24px); height: 94vh; height: 94dvh; background: #13291e; }
.report-photo-viewer[open] { grid-template-rows: auto minmax(0, 1fr); }
.report-large-photo { overflow: auto; padding: 12px; }
.report-large-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) {
  .report-dialog { width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; height: 94vh; height: 94dvh; }
  .report-dialog-header { padding: 14px 16px; gap: 10px; }
  .report-dialog-content { padding: 20px 16px; }
  .report-dialog-footer { padding-inline: 16px; }
  .report-details-photos { grid-template-columns: 1fr; }
  .report-photo-viewer { height: 100vh; height: 100dvh; border-radius: 0; }
}
@media (max-height: 480px) {
  .report-dialog { height: calc(100vh - 12px); height: calc(100dvh - 12px); }
  .report-dialog-header { padding-block: 8px; }
  .report-dialog-kicker { display: none; }
  .report-dialog-footer { padding-block: 8px; }
}
