/* Somente a modal de espera dos layouts modernos; os owners mantêm show/hide. */
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde {
    --wait-surface: #fff;
    --wait-ink: #18314b;
    --wait-muted: #596c82;
    --wait-border: #e0e7ef;
    --wait-accent: #2364b1;
    font-family: 'SGC Shell Sans', 'SGC DM Sans', Arial, sans-serif;
}
:is(.sgc-shell-modern, .sgc-login-modern).dark-mode #modalAguarde {
    --wait-surface: #192b3d;
    --wait-ink: #e1eaf3;
    --wait-muted: #a8bbce;
    --wait-border: #34495e;
    --wait-accent: #83b8f1;
}
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .modal-dialog {
    width: calc(100% - 32px);
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
}
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .modal-content {
    padding: 0 !important;
    background: var(--wait-surface);
    color: var(--wait-ink);
    border: 1px solid var(--wait-border);
    border-radius: 12px;
    box-shadow: 0 16px 48px #102b4629;
}
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-legacy { display: none; }
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-modern {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 24px;
}
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-spinner {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 3px solid var(--wait-border);
    border-top-color: var(--wait-accent);
    border-radius: 50%;
    animation: sgc-wait-spin .85s linear infinite;
}
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-copy { min-width: 0; text-align: left; }
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-copy strong {
    display: block;
    margin: 0 0 5px;
    color: var(--wait-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
:is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-copy p {
    margin: 0;
    color: var(--wait-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
@keyframes sgc-wait-spin { to { transform: rotate(360deg); } }
@media (max-width: 380px) {
    :is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-modern { padding: 20px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde,
    :is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .modal-dialog { transition: none !important; }
    :is(.sgc-shell-modern, .sgc-login-modern) #modalAguarde .sgc-wait-spinner { animation: none; }
}
