.pwa-update-dialog, .pwa-install-status, .pwa-update-status {
  box-sizing: border-box;
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border: 2px solid #8a6bff;
  border-radius: 1rem;
  color: #161327;
  background: #fff;
  font: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pwa-update-status {
  margin: 1rem auto;
  padding: 1rem;
  font-family: system-ui, sans-serif;
}
.pwa-update-status h2 { margin: 0; font-size: 1.1rem; }
.pwa-update-status p { margin: .5rem 0 0; }
.pwa-update-status .pwa-update-actions[hidden] { display: none; }
.pwa-update-locked {
  position: fixed;
  z-index: 10000;
  inset: 1rem 0 auto;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 65%);
}
.pwa-install-status {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem auto;
  max-height: min(24rem, calc(100dvh - 2rem));
  box-shadow: 0 .5rem 2rem rgb(0 0 0 / 25%);
}
.pwa-install-status h2 { margin-top: 0; }
.pwa-update-actions button:disabled { opacity: .65; cursor: wait; }
.pwa-update-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.pwa-update-dialog h2 { margin-top: 0; }
.pwa-update-dialog li + li { margin-top: .6rem; }
.pwa-update-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.pwa-update-actions button {
  min-height: 48px;
  padding: .65rem 1rem;
  border: 2px solid #6640d9;
  border-radius: .6rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #5630bf;
  cursor: pointer;
}
.pwa-update-actions button:focus-visible { outline: 3px solid #1261ca; outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  .pwa-update-dialog, .pwa-install-status, .pwa-update-status { color: #f4f1ff; background: #181429; }
  .pwa-update-actions button:focus-visible { outline-color: #b6d7ff; }
}
