.portal-loading[hidden], .portal-loading-notice[hidden] { display: none !important; }
.portal-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 247, 251, .68);
    cursor: wait;
}
.portal-loading__card {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 22px 28px;
    border: 1px solid #dce2ed;
    border-radius: 10px;
    background: #fff;
    color: #17324f;
    box-shadow: 0 8px 30px rgba(24, 44, 80, .12);
    font: 500 14px/1.5 'Poppins', Arial, sans-serif;
}
.portal-loading__spinner {
    display: inline-block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    border: 3px solid #e1e7f2;
    border-top-color: #4467b2;
    border-radius: 50%;
    animation: portal-loading-spin .8s linear infinite;
}
.portal-loading-notice {
    box-sizing: border-box;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(440px, calc(100vw - 40px));
    padding: 14px 16px;
    border: 1px solid #dce2ed;
    border-radius: 8px;
    background: #fff;
    color: #17324f;
    box-shadow: 0 4px 20px rgba(24, 44, 80, .16);
    font: 400 13px/1.6 'Poppins', Arial, sans-serif;
}
.portal-loading-notice__close {
    border: 0;
    background: transparent;
    padding: 2px 5px;
    color: #17324f;
    cursor: pointer;
    font: 22px/1 Arial, sans-serif;
}
.portal-loading-notice--working::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid #e1e7f2;
    border-top-color: #4467b2;
    border-radius: 50%;
    animation: portal-loading-spin .8s linear infinite;
}
@keyframes portal-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .portal-loading__spinner, .portal-loading-notice--working::before { animation: none; }
}
