#kms-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--sapBackgroundColor, #fafafa);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

/* Fiori-style busy indicator: three animated dots */
#kms-splash-screen .splash-busy {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

#kms-splash-screen .splash-busy-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--sapContent_IconColor, #0070f2);
    animation: splash-dot-pulse 1.4s ease-in-out infinite;
}

#kms-splash-screen .splash-busy-dot:nth-child(2) {
    animation-delay: 0.2s;
}

#kms-splash-screen .splash-busy-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes splash-dot-pulse {
    0%, 80%, 100% {
        transform: scale(0.4);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#kms-splash-screen .splash-title {
    display: none;
    margin-top: 1.5rem;
    font-family: "72", "72full", Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sapTextColor, #1d2d3e);
    letter-spacing: normal;
}

#kms-splash-screen .splash-description {
    display: none;
    margin-top: 0.5rem;
    font-family: "72", "72full", Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--sapContent_LabelColor, #556b82);
}

/* Error state */
#kms-splash-screen.splash-error .splash-busy {
    display: none;
}

#kms-splash-screen.splash-error .splash-error-icon {
    display: block;
}

#kms-splash-screen.splash-error .splash-title {
    display: block;
}

#kms-splash-screen.splash-error .splash-description {
    display: block;
    color: var(--sapNegativeTextColor, #aa0808);
}

#kms-splash-screen .splash-error-icon {
    display: none;
    width: 3rem;
    height: 3rem;
    color: var(--sapNegativeColor, #aa0808);
}

#kms-splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Hide main container until ready */
#container[data-loading="true"] {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}