body.site-dialog-open { overflow: hidden; }
.site-dialog {
    box-sizing: border-box;
    width: min(460px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 24px;
    border: 1px solid var(--theme-border, #dce1df);
    border-radius: 8px;
    background: #fff;
    color: var(--theme-text, #252d2b);
    box-shadow: 0 16px 48px rgba(26, 39, 34, .2);
    overflow: auto;
    overscroll-behavior: contain;
    font: inherit;
}
.site-dialog::backdrop { background: rgba(24, 33, 29, .48); }
.site-dialog-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: start; gap: 12px; }
.site-dialog-symbol { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; color: var(--theme-primary, #7451ba); }
.site-dialog-symbol .ui-icon { width: 24px; height: 24px; }
.site-dialog h2 { margin: 8px 0 0; font-size: 20px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.site-dialog .icon-button { width: 44px; min-width: 44px; height: 44px; padding: 0; }
.site-dialog p { margin: 18px 0 24px; font-size: 16px; line-height: 1.6; color: var(--theme-muted, #66716d); white-space: pre-wrap; overflow-wrap: anywhere; }
.site-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.site-dialog-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 120px; padding: 10px 16px; font-size: 16px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.site-dialog-actions .site-dialog-danger { background: var(--theme-danger, #b24450); border-color: var(--theme-danger, #b24450); color: #fff; }
.site-dialog-actions .site-dialog-danger:hover { background: #973944; border-color: #973944; }
.site-dialog [hidden] { display: none !important; }
@media (max-width: 600px) {
    .site-dialog { padding: 16px; }
    .site-dialog-heading { gap: 8px; grid-template-columns: 28px minmax(0, 1fr) 44px; }
    .site-dialog-symbol { width: 28px; }
    .site-dialog h2 { font-size: 18px; }
    .site-dialog-actions .btn { flex: 1; min-width: 0; }
}
