.app-alert-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: visible;
  background: transparent;
  color: var(--ink, #292841);
  box-shadow: 0 24px 80px rgba(35, 29, 54, .24);
}

.app-alert-dialog::backdrop {
  background: rgba(35, 32, 52, .5);
  backdrop-filter: blur(3px);
}

.app-alert-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(239, 235, 241, .95);
  border-radius: 24px;
  background: #fff;
  animation: app-alert-enter .2s ease-out both;
}

.app-alert-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 0 44px 18px 0;
}

.app-alert-icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.app-alert-card h2 {
  margin: 0;
  color: var(--ink, #292841);
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.4px;
}

.app-alert-card p {
  margin: 0;
  color: #686679;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.app-alert-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f6f3f8;
  color: #777487;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.app-alert-close:hover { background: #eee8f4; color: var(--ink, #292841); }
.app-alert-close:focus-visible, .app-alert-actions .button:focus-visible { outline: 3px solid #b7a0ef; outline-offset: 3px; }

.app-alert-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.app-alert-actions .button { min-width: 112px; }

@keyframes app-alert-enter {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .app-alert-card { padding: 24px 21px 21px; }
  .app-alert-card p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-alert-card { animation: none; }
}
