/* "Connection lost" box — markup built by js/kx-reconnect-ui.js inside #components-reconnect-modal (Alfa Test #80).
   It reuses the branded error popup's .kx-err-* look from kx-error-ui.css, so it needs the same theme variables.
   Sits above the LoadingPanel overlay (z-index 9999), just below the error popup. */

#components-reconnect-modal {
    --kx-primary: var(--bs-primary);
    --kx-on-primary: var(--bs-white);
    --kx-bg: var(--bs-body-bg);
    --kx-fg: var(--bs-body-color);
    --kx-muted: var(--bs-secondary-color);
    --kx-border: var(--bs-border-color);
    --kx-radius: var(--bs-border-radius-lg);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    font-family: var(--bs-font-sans-serif);
}

#components-reconnect-modal.kx-rc-on { display: block; }

#components-reconnect-modal .kx-err-pop { animation: kxe-rise .45s cubic-bezier(.2, 1.3, .4, 1) both; }

.kx-rc-spin {
    width: 40px;
    height: 40px;
    margin: 4px auto 8px;
    border: 3px solid var(--kx-border);
    border-top-color: var(--kx-primary);
    border-radius: 50%;
    animation: kxrc-spin 1s linear infinite;
}

@keyframes kxrc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .kx-rc-spin { animation-duration: 3s; }
    #components-reconnect-modal .kx-err-pop { animation: none; }
}
