.global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.global-loading-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
}

.global-loading-overlay__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: rgba(0, 66, 37, 0.12) 0px 8px 32px -8px, rgba(0, 0, 0, 0.06) 0px 4px 12px -4px;
}

.global-loading-overlay__spinner {
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid hsl(154 100% 13% / 0.15);
    border-top-color: hsl(154 100% 13%);
    border-radius: 50%;
    animation: global-loading-spin 0.75s linear infinite;
}

.global-loading-overlay__message {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(154 100% 13%);
    text-align: center;
    max-width: 16rem;
}

.global-loading-overlay__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.global-loading-overlay__progress {
    width: min(16rem, 70vw);
    margin-top: 0.25rem;
}

.global-loading-overlay__progress-track {
    position: relative;
    height: 0.375rem;
    border-radius: 9999px;
    overflow: hidden;
    background: hsl(154 100% 13% / 0.12);
}

.global-loading-overlay__progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, hsl(154 100% 22%), hsl(154 100% 38%));
    box-shadow: 0 0 10px hsl(154 100% 30% / 0.45);
    transition: width 0.2s ease;
}

.global-loading-overlay__progress-bar--indeterminate {
    width: 38% !important;
    animation: global-loading-progress-indeterminate 1s ease-in-out infinite;
}

.global-loading-overlay__progress-label {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(154 100% 13% / 0.75);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@keyframes global-loading-progress-indeterminate {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
