.view-progress {
    max-width: 300px;
    z-index: 1;
    pointer-events: none;
}

.view-progress.skip-fast-track {
    transition: opacity .25s var(--appearance-delay, 500ms);
    will-change: opacity;
    contain: paint;

    @starting-style {
        opacity: 0;
    }
}
.view-progress.skip-fast-track.done:not(.error) {
    display: none;
}

.view-progress > .progress {
    content: '';
    display: block;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    box-sizing: border-box;
    height: 3px;
    background: rgba(198, 198, 198, 0.3);
    border-radius: 2px;
}
.view-progress > .progress::before {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
    /* transition: transform .2s; */ /* since Chrome (tested on 85) freezes transition during js loop */
    background-color: var(--color, #1f7ec5);
}

.view-progress > .content.main-secondary {
    display: flex;
    white-space: nowrap;
    gap: 1ex;
}
.view-progress > .content > .secondary {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #888;
}
