/* Scoped feedback; retain each route's typography, color and button geometry. */
.insights-loading-control {
    position: relative !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    cursor: progress !important;
}
.insights-loading-control > * { visibility: hidden !important; }
.insights-loading-unavailable:not(.insights-loading-control):not(:disabled) {
    opacity: .6;
    cursor: wait !important;
}
.insights-loading-control::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1em;
    height: 1em;
    border: 2px solid var(--insights-loading-ink, currentColor);
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: insights-loading-turn .8s linear infinite;
    pointer-events: none;
}
.insights-loading-status {
    position: fixed;
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 2000;
    box-sizing: border-box;
    max-width: calc(100vw - 2rem);
    padding: .75rem 1rem;
    border: 1px solid var(--aw-line, #D9E3E9);
    border-radius: 8px;
    background: var(--aw-surface, #fff);
    color: var(--aw-ink, #11233F);
    font: 500 .875rem/1.5 Inter, system-ui, sans-serif;
    box-shadow: 0 4px 16px rgb(17 35 63 / 12%);
    pointer-events: none;
}
.insights-loading-status:empty, .insights-loading-status[hidden] { display: none; }
.insights-loading-inline {
    min-block-size: 3em;
    margin: .375rem 0 0;
    font-size: .75rem;
    line-height: 1.5;
    color: var(--aw-muted, var(--muted, #66768C));
}
@keyframes insights-loading-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .insights-loading-control::after { animation: none; }
}
@media print {
    .insights-loading-status { display: none; }
}
