/* Shared web prompts. Specificity intentionally beats historic global overrides. */
body .swal2-popup[role="dialog"]:not(.swal2-toast) {
    box-sizing: border-box; width: 440px !important; max-width: calc(100vw - 32px);
    padding: 28px !important; border: 1px solid #e4e0eb; border-radius: 16px !important;
    background: #fff; color: #23212d; font-family: var(--site-ui-font, Arial, sans-serif);
    text-align: left; box-shadow: 0 20px 70px #21152d24;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-header { align-items: flex-start; padding: 0; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-title {
    display: block; box-sizing: border-box; min-width: 0; width: 100%; margin: 0 0 10px; padding: 0 24px 0 0;
    color: #23212d; text-align: left; font-size: 20px !important; font-weight: 600;
    line-height: 1.4 !important; overflow-wrap: anywhere;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) #swal2-content,
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-html-container,
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-content {
    min-width: 0; margin: 0; padding: 0; color: #6c6779; font-size: 14px !important; font-weight: 400;
    line-height: 1.57143; text-align: left; opacity: 1; overflow-wrap: anywhere;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) #swal2-content { white-space: normal; }
body .swal2-popup.deft-dialog-upgrade[role="dialog"] #swal2-content,
body .swal2-popup.deft-dialog-limit[role="dialog"] #swal2-content,
body .swal2-popup.markdown-empty-dialog[role="dialog"] #swal2-content { white-space: pre-line; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-icon {
    box-sizing: border-box; align-self: flex-start; width: 38px; height: 38px;
    margin: 0 0 18px; border: 0; border-radius: 11px; background: #f1ebfc;
    color: #7945ed; font-size: 0 !important; line-height: 38px; animation: none !important;
}
/* Small stable glyphs replace the oversized animated library illustrations. */
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-icon > * { display: none !important; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-icon::before {
    display: block; width: 100%; text-align: center; font: 600 22px/38px Arial, sans-serif;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-info::before { content: 'i'; }
body .swal2-popup.deft-dialog-upgrade[role="dialog"] .swal2-info::before {
    content: ''; width: 20px; height: 20px; margin: 9px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237945ed' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v3'/%3E%3C/svg%3E") center/contain no-repeat;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-warning::before { content: '!'; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-error { background: #fff0f0; color: #bb3344; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-error::before { content: '×'; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-success { background: #eaf7f1; color: #25845c; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-success::before { content: '✓'; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-question::before { content: '?'; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-close {
    top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border-radius: 9px;
    color: #797382; font: 300 28px/44px Arial, sans-serif;
}
body .swal2-popup.swal2-loading .swal2-close,
body .swal2-popup:has(.swal2-loading) .swal2-close { display: none !important; }
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-actions {
    width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-actions button {
    box-sizing: border-box; min-width: 0; min-height: 44px; max-width: 100%; height: auto;
    margin: 0; padding: 10px 17px !important; border: 1px solid #e4e0eb !important;
    border-radius: 9px !important; background: #fff !important; color: #393344 !important;
    font: 600 14px/1.57143 var(--site-ui-font, Arial, sans-serif) !important;
    text-transform: none; white-space: normal; overflow-wrap: anywhere; box-shadow: none;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-actions .swal2-confirm {
    border-color: #7945ed !important; background: #7945ed !important; color: #fff !important;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-actions .swal2-confirm:hover { background: #6738d4 !important; }
body .swal2-popup.deft-dialog-danger[role="dialog"] .swal2-actions .swal2-confirm {
    background: #bb3344 !important; border-color: #bb3344 !important;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) button:focus-visible {
    outline: 2px solid #7945ed; outline-offset: 3px;
}
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-input,
body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-textarea {
    box-sizing: border-box; max-width: 100%; min-height: 44px; border: 1px solid #e4e0eb;
    border-radius: 9px; font-size: 14px; color: #23212d;
}
@media (max-width: 480px) {
    body .swal2-popup[role="dialog"]:not(.swal2-toast) { padding: 24px 22px !important; }
    body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-actions { flex-direction: column-reverse; align-items: stretch; }
    body .swal2-popup[role="dialog"]:not(.swal2-toast) .swal2-actions button { width: 100%; }
}
