/* Shared placement for native modal dialogs, independent of page/reset styles. */
dialog:modal {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  transform: none !important;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

/* Privacy and sign-in use an overlay rather than a native dialog. */
.privacy-banner,
.auth-overlay {
  align-items: center !important;
  justify-content: center !important;
}
.privacy-banner__box,
.auth-overlay > .auth-card {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
