/* Shared busy feedback (busy-indicator.js): pressed element + top sweep bar. */
.amby-busy-bar {
    position: fixed;
    height: 3px;
    z-index: 9000;
    overflow: hidden;
    pointer-events: none;
    background: color-mix(in srgb, var(--tm-accent, var(--primary-color, #2d5f84)) 16%, transparent);
}

.amby-busy-bar .amby-busy-bar__sweep {
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    border-radius: 3px;
    background: var(--tm-accent, var(--primary-color, #2d5f84));
    animation: amby-busy-sweep 1.1s ease-in-out infinite;
}

@keyframes amby-busy-sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(300%); }
}

.amby-pressed {
    opacity: 0.7;
    transform: scale(0.985);
    transition: opacity 0.08s ease, transform 0.08s ease;
}

@media (prefers-reduced-motion: reduce) {
    .amby-busy-bar .amby-busy-bar__sweep {
        width: 100%;
        animation: amby-busy-pulse 1.4s ease-in-out infinite;
    }
    @keyframes amby-busy-pulse {
        0%, 100% { opacity: 0.35; }
        50% { opacity: 1; }
    }
    .amby-pressed { transform: none; }
}
