.sc-alert-dialog {
  width: min(420px, calc(100vw - 24px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  box-shadow: 0 22px 64px rgba(15, 23, 42, 0.24);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sc-alert-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

.sc-alert-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 6px;
}

.sc-alert-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef2ff;
  color: #4f46e5;
}

.sc-alert-mark svg {
  width: 17px;
  height: 17px;
}

.sc-alert-heading strong {
  flex: 1;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
}

.sc-alert-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.sc-alert-close:hover {
  background: #f1f5f9;
  color: #334155;
}

.sc-alert-message {
  max-height: min(55vh, 360px);
  overflow: auto;
  padding: 6px 12px 12px;
  color: #475569;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sc-alert-actions {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px 12px;
  border-top: 1px solid #eef2f7;
}

.sc-alert-confirm {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #4f46e5;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.sc-alert-confirm:hover {
  background: #4338ca;
}

.sc-alert-confirm:focus-visible,
.sc-alert-close:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .sc-alert-dialog[open] {
    animation: sc-alert-enter 140ms ease-out;
  }

  @keyframes sc-alert-enter {
    from { opacity: 0; transform: translateY(6px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
