.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  animation: dialog-fade 0.14s ease;
}

@keyframes dialog-fade {
  from {
    opacity: 0;
  }
}

.dialog {
  width: 100%;
  max-width: 23rem;
  padding: 1.375rem 1.375rem 1.125rem;
  border-radius: 15px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  text-align: center;
  animation: dialog-pop 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes dialog-pop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

.dialog-title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.dialog-detail {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.dialog-warning {
  margin-top: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #4a3a12;
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .dialog-warning {
    color: var(--accent);
  }
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dialog-button {
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-hover);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.dialog-button:hover {
  background: var(--bg-selected);
}

.dialog-button:active {
  transform: scale(0.98);
}

.dialog-button.strong {
  background: var(--accent);
  color: #fff;
}

.dialog-button.danger {
  color: var(--danger);
}

.dialog-button.danger.armed {
  background: var(--danger);
  color: #fff;
  animation: dialog-arm 0.2s ease;
}

@keyframes dialog-arm {
  from {
    transform: scale(0.94);
  }
}
