/* confirm-dialog.css — CanopyUI.ConfirmDialog (canonical system §2.10
 * .confirm-dialog; mockup .tmp/retire-sheet-mockup.html). A centered alert
 * dialog over a scrim, above any open drawer. Every rule is scoped under
 * .confirm-layer: the legacy seed/generic confirms (style.css) also use .confirm-dialog. */
.confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: var(--v2-bg-overlay);
  animation: confirmDialogFadeIn 160ms ease both;
}
@keyframes confirmDialogFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.confirm-layer .confirm-dialog {
  width: 340px;
  max-width: 100%;
  padding: 24px;
  background: var(--v2-bg-panel);
  border-radius: var(--v2-radius-lg);
  box-shadow: var(--v2-elev-3);
  font-family: var(--v2-font-body);
  color: var(--v2-text-primary);
}
.confirm-layer .confirm-dialog h3 {
  margin: 0 0 8px;
  font-family: var(--v2-font-display);
  font-size: 17.6px;
  font-weight: 600;
  line-height: 1.5;
}
.confirm-layer .confirm-dialog p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--v2-text-secondary); }
.confirm-layer .confirm-actions { display: flex; gap: 10px; }
.confirm-layer .confirm-actions button {
  flex: 1 1 0;
  height: 48px;
  padding: 0 8px;
  border-radius: var(--v2-radius-sm);
  font-family: var(--v2-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.confirm-layer .confirm-actions button:active { transform: scale(0.98); }
.confirm-layer .confirm-actions button:focus-visible { outline: 2px solid var(--v2-accent-botanical); outline-offset: 2px; }
.confirm-layer .secondary-cta { background: var(--v2-bg-card); color: var(--v2-text-primary); border: 1px solid var(--v2-border-strong); }
.confirm-layer .danger-cta { background: var(--v2-danger-strong); color: var(--v2-text-on-accent); border: 0; }
.confirm-layer .primary-cta { width: auto; }
@media (prefers-reduced-motion: reduce) {
  .confirm-layer { animation: none; }
}
