.app-dialog {
  margin: auto; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: 28px; border: 1px solid var(--border2); border-radius: 18px;
  background: var(--bg2); color: var(--text); box-shadow: 0 24px 90px #0009;
  overflow-y: auto; font-family: inherit;
}
.app-dialog::backdrop { background: rgba(0,0,0,.68); backdrop-filter: blur(4px); }
.app-dialog__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,215,64,.1); color: var(--yellow); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.app-dialog h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; }
.app-dialog p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted2); white-space: pre-wrap; overflow-wrap: anywhere; }
.app-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.app-dialog__actions button { padding: 10px 18px; min-height: 42px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.app-dialog__cancel { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); }
.app-dialog__confirm { background: var(--green); border: 1px solid var(--green); color: var(--on-accent); }
.app-dialog__actions button:hover { filter: brightness(1.1); }
.app-dialog__actions button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.app-dialog__icon--success { color: var(--green); background: var(--green-glow); }
.app-dialog__icon--error { color: var(--red); background: var(--red-glow); }
