.loading-spinner {
    display: inline-block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: loading-spin .8s linear infinite;
}

.page-loading {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--color-success);
    background: var(--surface);
    box-shadow: 0 4px 16px rgb(15 23 42 / 12%);
    font-size: var(--font-body);
}

.page-loading[hidden] { display: none; }

.request-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--slate);
    font-size: var(--font-body);
    line-height: 1.5;
}

.request-loading--accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .loading-spinner { animation: none; }
}
