dialog.neoassist-sac {
    box-sizing: border-box;
    width: min(var(--neo-widget-width, 370px), calc(100vw - 24px));
    height: min(calc(var(--neo-widget-height, 620px) + 69px), calc(100dvh - 24px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #222;
    overflow: hidden;
}
.neoassist-sac::backdrop { background: rgb(0 0 0 / 65%); }
.neoassist-sac[open] { display: flex; flex-direction: column; }
.neoassist-sac header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.neoassist-sac h2 { margin: 0; font-size: 1rem; }
.neoassist-sac header button { min-height: 44px; padding: 8px 12px; border: 1px solid #e30613; border-radius: 8px; background: #fff; color: #c6000d; font: inherit; cursor: pointer; }
.neoassist-sac button:focus-visible { outline: 3px solid #007bff; outline-offset: 2px; }
.neoassist-sac [role="status"] { padding: 12px; margin: 0; overflow-wrap: anywhere; }
.neoassist-sac [role="status"]:empty { display: none; }
.neoassist-sac-host { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.neoassist-sac-host[hidden] { display: none; }
/* Keep vendor-generated fixed positioning and iframe resizing inside the modal. */
.neoassist-sac-host iframe { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; border: 0; }
body.neoassist-sac-document { margin: 0; overflow: hidden; }
body.neoassist-sac-document > iframe { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; border: 0; }
@media (max-width: 480px) {
    dialog.neoassist-sac { width: 100vw; height: 100dvh; border-radius: 0; }
    .neoassist-sac header { padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); }
    .neoassist-sac-host { margin-bottom: env(safe-area-inset-bottom); }
}
