.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(20 16 30 / 0.45);
}

.dialog {
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.25);
}

.dialog-title {
  font-size: 1.2rem;
}

.dialog-message {
  margin: 0 0 16px;
  color: var(--muted);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.dialog-actions .btn {
  min-width: 96px;
}

/* Label Swap: positions and colours flip; labels stay truthful. */
.dialog-actions.swapped {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.dialog-actions.swapped [data-choice='no'] {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}

.dialog-actions.swapped [data-choice='yes'] {
  background: var(--secondary);
  color: var(--on-secondary);
  border-color: #cfcbe0;
}

.btn.is-pending {
  visibility: hidden;
}
