/* Indeterminate: Asana does not provide a completion percentage. */
.is-asana-wait {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.is-asana-wait::before {
    content: '';
    display: inline-block;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: .9rem;
    height: .9rem;
    border: 2px solid #cbd5e1;
    border-top-color: #3159d8;
    border-radius: 50%;
    animation: afb-asana-wait-spin .8s linear infinite;
}
.is-asana-wait::after {
    content: '';
    display: block;
    flex: 0 0 100%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e5ebf7 0%, #3159d8 40%, #e5ebf7 80%);
    background-size: 250% 100%;
    animation: afb-asana-wait-bar 1.5s linear infinite;
}
@keyframes afb-asana-wait-spin { to { transform: rotate(360deg); } }
@keyframes afb-asana-wait-bar { from { background-position: 100% 0; } to { background-position: 0 0; } }
.afb-asana-navigation-wait {
    position: fixed;
    z-index: 9999;
    right: 1rem;
    bottom: 1rem;
    width: min(21rem, calc(100vw - 2rem));
    box-sizing: border-box;
    padding: .85rem 1rem;
    border: 1px solid #004c96;
    border-radius: .6rem;
    background: #005eb8;
    color: #fff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .15);
    font-size: .85rem;
    line-height: 1.4;
}
/* Sign-in redirects are a page transition, so keep the message in view. */
.afb-asana-navigation-wait.is-connecting {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    justify-content: center;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .24);
}
.afb-asana-navigation-wait.is-asana-wait::before {
    border-color: rgba(255, 255, 255, .4);
    border-top-color: #fff;
}
.afb-asana-navigation-wait.is-asana-wait::after {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .25) 0%, #fff 40%, rgba(255, 255, 255, .25) 80%);
}
.afb-asana-navigation-wait[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
    .is-asana-wait::before, .is-asana-wait::after { animation: none; }
}
