.site-alert-host{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#1c2b42;overflow:hidden}
.site-alert-host::backdrop{background:transparent}
.site-alert-host .swal2-popup{font-family:inherit;border-radius:20px;max-width:calc(100vw - 28px)}
.site-alert-host .swal2-html-container{line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.site-alert-host .swal2-title{line-height:1.35;overflow-wrap:anywhere}
.site-alert-host .swal2-confirm{background:#245bd6}
.site-alert-host .swal2-cancel{background:#53627a}
.site-alert-host .swal2-input{max-width:calc(100% - 48px);font-size:16px}
.site-announcement-body{white-space:pre-wrap;text-align:left}
.site-announcement-brand{font-size:12px;color:#61738d;margin:0 0 16px}
.site-announcement-link{display:inline-flex;margin-top:20px;padding:10px 16px;background:#eff4ff;color:#245bd6;border-radius:10px;text-decoration:none;font-weight:600}
@media(max-width:480px){.site-alert-host .swal2-popup{padding:0 0 20px}.site-alert-host .swal2-title{font-size:22px}.site-alert-host .swal2-html-container{font-size:15px;margin:18px 20px}.site-alert-host .swal2-actions{gap:8px}}

/* Site palettes apply to queued dialogs, direct Swal.fire calls and toasts alike. */
html[data-alert-theme="admin"] {
  --alert-surface:#1c1b20; --alert-field:#131316; --alert-line:#494238;
  --alert-text:#f2f0ec; --alert-muted:#b8b2a7; --alert-accent:#d9bd86;
  --alert-on-accent:#211d15; --alert-cancel:#302e35; --alert-focus:#d9bd8655;
  --alert-success:#a4d9b1; --alert-error:#f3a0ac; --alert-warning:#e0bd79;
}
html[data-alert-theme="secureauth"] {
  --alert-surface:#111b2e; --alert-field:#0d172a; --alert-line:#31465f;
  --alert-text:#f1f5fc; --alert-muted:#a9b9cf; --alert-accent:#39d3e7;
  --alert-on-accent:#071b25; --alert-cancel:#22334d; --alert-focus:#39d3e755;
  --alert-success:#73ddbd; --alert-error:#ff8b9d; --alert-warning:#bba7ff;
}
[data-alert-theme] .site-alert-host { color:var(--alert-text); font-family:inherit; }
[data-alert-theme] .swal2-popup {
  color-scheme:dark; font-family:inherit; background:var(--alert-surface); color:var(--alert-text);
  border:1px solid var(--alert-line); border-radius:20px; box-shadow:0 24px 80px #0007;
  width:min(32rem,calc(100vw - 28px)); padding:0 0 24px;
}
[data-alert-theme] .swal2-title { color:var(--alert-text); font-size:23px; line-height:1.4; padding:0 24px; }
[data-alert-theme] .swal2-html-container { color:var(--alert-muted); font-size:15px; line-height:1.7; }
[data-alert-theme] .swal2-actions { gap:10px; padding:0 20px; max-width:100%; }
[data-alert-theme] .swal2-styled { min-height:44px; margin:0; padding:11px 22px; border-radius:10px; font-family:inherit; font-size:14px; font-weight:600; line-height:1.4; }
[data-alert-theme] .swal2-styled.swal2-confirm { background:var(--alert-accent); color:var(--alert-on-accent); }
[data-alert-theme] .swal2-styled.swal2-cancel,
[data-alert-theme] .swal2-styled.swal2-deny { background:var(--alert-cancel); color:var(--alert-text); border:1px solid var(--alert-line); }
[data-alert-theme] .swal2-loader { border-color:var(--alert-accent) transparent; }
[data-alert-theme] .swal2-styled:focus-visible,
[data-alert-theme] .swal2-close:focus-visible { outline:2px solid var(--alert-accent); outline-offset:3px; box-shadow:none; }
[data-alert-theme] .swal2-close { color:var(--alert-muted); border-radius:10px; }
[data-alert-theme] .swal2-close:hover { color:var(--alert-text); background:var(--alert-cancel); }
[data-alert-theme] .swal2-input,
[data-alert-theme] .swal2-textarea,
[data-alert-theme] .swal2-select {
  background:var(--alert-field); color:var(--alert-text); border:1px solid var(--alert-line);
  border-radius:10px; font-size:16px; box-shadow:none;
}
[data-alert-theme] .swal2-input:focus { border-color:var(--alert-accent); box-shadow:0 0 0 3px var(--alert-focus); }
[data-alert-theme] .swal2-validation-message { background:var(--alert-cancel); color:var(--alert-error); }
[data-alert-theme] .swal2-footer { border-color:var(--alert-line); color:var(--alert-muted); }
[data-alert-theme] .swal2-icon.swal2-success { color:var(--alert-success); border-color:var(--alert-success); }
[data-alert-theme] .swal2-success-line-tip,
[data-alert-theme] .swal2-success-line-long { background:var(--alert-success); }
[data-alert-theme] .swal2-success-ring { border-color:var(--alert-success); opacity:.4; }
[data-alert-theme] .swal2-icon.swal2-error { border-color:var(--alert-error); color:var(--alert-error); }
[data-alert-theme] .swal2-x-mark-line-left,
[data-alert-theme] .swal2-x-mark-line-right { background:var(--alert-error); }
[data-alert-theme] .swal2-icon.swal2-warning { color:var(--alert-warning); border-color:var(--alert-warning); }
[data-alert-theme] .swal2-icon.swal2-info,
[data-alert-theme] .swal2-icon.swal2-question { color:var(--alert-accent); border-color:var(--alert-accent); }
[data-alert-theme] .swal2-timer-progress-bar { background:var(--alert-accent); opacity:.65; }
[data-alert-theme] .swal2-popup.swal2-toast { padding:14px; width:auto; max-width:calc(100vw - 24px); }
[data-alert-theme] .site-announcement-brand { color:var(--alert-muted); letter-spacing:.1em; }
[data-alert-theme] .site-announcement-link { background:var(--alert-cancel); color:var(--alert-accent); border:1px solid var(--alert-line); }
[data-alert-theme] input:is(:autofill, :-webkit-autofill) {
  -webkit-box-shadow:0 0 0 1000px var(--alert-field) inset;
  -webkit-text-fill-color:var(--alert-text); caret-color:var(--alert-text);
}
@media(max-width:480px) {
  [data-alert-theme] .swal2-title { font-size:21px; padding-inline:20px; }
  [data-alert-theme] .swal2-actions { width:100%; }
  [data-alert-theme] .swal2-actions button { flex:1; }
}
@media(prefers-reduced-motion:reduce) {
  [data-alert-theme] .swal2-popup { animation:none!important; transition:none!important; }
}
