.app-install-dialog:not([open]),
.app-install-dialog [hidden] { display: none !important; }

.app-install-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100% - 24px));
  max-height: min(85vh, 720px);
  max-height: min(85dvh, 720px);
  overflow: auto;
  box-sizing: border-box;
  margin: auto;
  border: 1px solid #e2dcf3;
  border-radius: 22px;
  background: #fff;
  padding: clamp(18px, 5vw, 28px);
  color: #17223b;
  box-shadow: 0 25px 65px #10162e48;
}

.app-install-dialog::backdrop { background: #111b3599; }
.app-install-dialog--fallback { z-index: 175; }
.app-install-dialog__header { display: flex; align-items: flex-start; gap: 13px; }
.app-install-dialog__header img { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 15px; }
.app-install-dialog h2 { margin: 0; font-size: clamp(1.24rem, 4vw, 1.65rem); line-height: 1.18; letter-spacing: -.02em; }
.app-install-dialog p { margin: 7px 0 0; color: #55617b; font-size: .9rem; line-height: 1.5; }
.app-install-dialog__instructions { margin-top: 18px; border-radius: 15px; background: #f4f1fe; padding: 13px 15px; }
.app-install-dialog h3 { margin: 0; color: #37315f; font-size: .92rem; line-height: 1.35; }
.app-install-dialog ol { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 19px; color: #46516a; font-size: .88rem; line-height: 1.55; }
.app-install-dialog li::marker { color: #4d3c9d; font-weight: 800; }
.app-install-dialog__message:empty { display: none; }
.app-install-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 19px; }
.app-install-dialog__actions button {
  min-height: 44px;
  border: 1px solid #dcd7ec;
  border-radius: 11px;
  padding: 7px 15px;
  font: inherit;
  font-size: .87rem;
  font-weight: 850;
  cursor: pointer;
}
.app-install-dialog__actions button:focus-visible { outline: 3px solid #9b8fe5; outline-offset: 3px; }
.app-install-dialog__primary { background: #5340c9; color: #fff; }
.app-install-dialog__primary:disabled { opacity: .7; cursor: wait; }
.app-install-dialog__close { background: #fff; color: #17223b; }

@media print {
  .app-install-dialog { display: none !important; }
}
