


 
.cro-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483000;          
    width: 100%;
    height: 3px;
    

    transform: scaleX(0);
    transform-origin: 0 50%;
    background: #0e6f68;          
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

 
@supports (top: env(safe-area-inset-top)) {
    .cro-loading-bar {
        top: env(safe-area-inset-top, 0px);
    }
}

.cro-loading-bar.is-active {
    opacity: 1;
}



@media (pointer: coarse) {
    .cro-loading-bar { height: 4px; }
}

 
.cro-busy-veil {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(23, 35, 51, 0.45);
    

    animation: cro-busy-fade 0.18s ease-out both;
}

@keyframes cro-busy-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cro-busy-panel {
    width: min(26rem, 100%);
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 12px 40px -12px rgba(23, 50, 80, 0.45);
    padding: 1.5rem;
    text-align: center;
    color: #172333;
    font-family: "Source Sans 3", system-ui, sans-serif;
}

.cro-busy-spinner {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.9rem;
    border: 3px solid #d9e2ea;
    border-top-color: #0e6f68;
    border-radius: 50%;
    animation: cro-busy-spin 0.7s linear infinite;
}

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

.cro-busy-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #173250;
}

.cro-busy-note {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5f6f7e;
}



.cro-busy-dismiss {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: #0e6f68;
    color: #ffffff;
    font: 600 0.95rem "Source Sans 3", system-ui, sans-serif;
    cursor: pointer;
}

.cro-busy-dismiss:hover {
    background: #0a5c56;
}

.cro-busy-dismiss:focus-visible {
    outline: 2px solid #0e6f68;
    outline-offset: 2px;
}

 
@media print {
    .cro-loading-bar,
    .cro-busy-veil {
        display: none;
    }
}



@media (prefers-reduced-motion: reduce) {
    .cro-loading-bar {
        transition: opacity 0.1s linear;
        transform: scaleX(1);
         
        background: repeating-linear-gradient(
            90deg,
            #0e6f68 0 1.25rem,
            #7fb3ae 1.25rem 2.5rem
        );
    }

    .cro-busy-veil { animation: none; }

    .cro-busy-spinner {
        animation: none;
        border-top-color: #0e6f68;
        border-right-color: #0e6f68;
    }
}

 
@media (forced-colors: active) {
    .cro-loading-bar { background: Highlight; }
    .cro-busy-panel { border: 1px solid CanvasText; }
    .cro-busy-spinner { border-color: CanvasText; border-top-color: Highlight; }
}
