/* Keep the complete preparation frame inside the available viewport height. */
.passport-editor-editing .modal-dialog {
  height: calc(100vh - var(--bs-modal-margin) * 2);
  height: calc(100dvh - var(--bs-modal-margin) * 2);
  min-height: 0;
}
.passport-editor-editing .modal-content { height: 100%; min-height: 0; }
.passport-editor-editing .modal-body,
.passport-editor-editing .passport-editor-main,
.passport-editor-editing .passport-editor-workspace {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}
.passport-editor-editing .modal-body { overflow: hidden; }
.passport-editor-viewport { min-width: 0; min-height: 0; }
/* Both bounds constrain the intrinsic 4:3 canvas without stretching pointer coordinates. */
.passport-editor-canvas { width: auto; height: auto; touch-action: none; cursor: grab; }
.passport-editor-canvas:active { cursor: grabbing; }
