/* Shared report/photo expansion. The close and exit controls stay in the
   visible viewport; the document or canvas has its own scrollable region. */
.modal-overlay.screen-expanded {
  inset: 0;
  padding: 0;
  background: var(--surface);
  align-items: stretch;
  justify-content: stretch;
}
.modal.screen-expanded {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.screen-expanded > .modal-head {
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
}
.screen-expanded > .modal-head .modal-brand,
.screen-expanded > .modal-head .modal-heading > p {
  display: none;
}
.screen-expanded > .modal-head h2 { font-size: 20px; line-height: 1.25; margin: 0; }
.screen-expanded > .modal-footer {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.screen-expanded.pdf-preview-modal .pdf-preview-hint { display: none; }
.screen-expanded.pdf-preview-modal > .modal-body { min-height: 0; }
.fullscreen-control { min-height: 44px; white-space: nowrap; }
.fullscreen-control[aria-expanded="true"] { border-color: var(--lime); }
@media (max-width: 600px) {
  .screen-expanded > .modal-head { min-height: 60px; }
  .screen-expanded > .modal-head h2 { font-size: 18px; }
  .fullscreen-control { font-size: 14px; padding-inline: 12px; }
}
