/* The line that says the next page is on its way (menu-nav-feedback.js,
   2026-09-05). Three points of the theme's accent sliding along the very top
   of the screen, above everything, in both modes and on every theme: it is
   its own colour and sits on nothing. Hidden until a menu link is pressed. */
.elbe-nav-wait {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 30000;
    pointer-events: none;
    overflow: hidden;
    display: none;
}

.elbe-nav-wait.on { display: block; }

.elbe-nav-wait::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--theme-accent, #0d6efd), transparent);
    animation: elbe-nav-wait-run 1.1s linear infinite;
}

@keyframes elbe-nav-wait-run {
    0% { left: -40%; }
    100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .elbe-nav-wait::before { animation: none; left: 0; width: 100%; opacity: 0.7; }
}

/*  "Please wait…" (menu-nav-feedback.js, Kamal 2026-09-06): a small pill near the
    top, shown only once something a tap set going has taken more than two
    seconds. One fixed palette on every theme and layout: white on #1e293b is
    14.6:1, the ring rgba(255,255,255,.18) marks its edge on a light page too.
    It sits above everything and takes no taps. */
.elbe-please-wait {
    position: fixed;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    z-index: 30001;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    white-space: nowrap;
}
.elbe-please-wait.on { display: inline-flex; animation: elbe-pw-in 0.15s ease-out; }
.elbe-please-wait-spin {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: elbe-pw-spin 0.8s linear infinite;
}
@keyframes elbe-pw-spin { to { transform: rotate(360deg); } }
@keyframes elbe-pw-in { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .elbe-please-wait-spin { animation: none; }
    .elbe-please-wait.on { animation: none; }
}
