dialog {
  position: absolute;
  left: 0; right: 0;
  width: -moz-fit-content;
  width: -webkit-fit-content;
  width: fit-content;
  height: -moz-fit-content;
  height: -webkit-fit-content;
  height: fit-content;
  margin: auto;
  border: solid;
  padding: 1em;
  background: white;
  color: black;
  display: block;
}

dialog:not([open]) {
  display: none;
}

dialog + .backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.1);
}

._dialog_overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
}

dialog.fixed {
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
}
/* Fallbacks for Chrome/WebView 57+, including pre-flex-gap engines. */
.phone{height:calc(100vh - 48px);max-height:846px}
.web-auth{width:440px;max-width:calc(100vw - 24px);max-height:calc(100vh - 28px)}
.web-auth:not([open]){display:none}
.web-auth[open]{position:fixed;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin:0;z-index:200}
.web-auth+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(11,3,11,.85);z-index:199}
.web-language[open]{z-index:202}.web-language+.backdrop{z-index:201}
.test-ad__card{width:320px;max-width:86vw}
.rd-ban{height:auto;min-height:100px}
.no-flex-gap .web-account-bar>*+*,.no-flex-gap .web-account-who>*+*{margin-left:8px}
.no-flex-gap .web-auth-brand>*+*{margin-left:9px}
.no-flex-gap .web-recovery-check>*+*{margin-left:8px}
.no-flex-gap .top>*+*,.no-flex-gap .chips>*+*{margin-left:6px}
@media(max-width:880px){.phone{height:100%;max-height:none}.stage{height:100%;min-height:0}.app{min-height:0}}
@media(prefers-reduced-motion:reduce){.app-bg .blob,.boot .halo,.orbit-c{animation:none!important}}
.dlg-box{width:340px;max-width:100%}
/* Old Android ignores overflow-wrap:anywhere; long wallet strings must wrap. */
.rev .rr2 b{overflow-wrap:break-word;word-break:break-all}
.web-auth-intro,.web-auth-error{overflow-wrap:break-word;word-break:break-word}
.no-flex-gap .task>*+*{margin-left:12px}
.no-flex-gap .rev .rr2>*+*{margin-left:10px}
