/* Old browsers do not give unknown <dialog> elements native hiding behavior. */
dialog:not([open]) { display: none; }
.compat-dialog-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(48, 53, 34, .56);
  -webkit-tap-highlight-color: transparent;
}
dialog.compat-dialog-fallback[open] {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
