/* Final consistency layer: purposeful empty states and shared async-action feedback. */

.ui-empty-result {
    margin: 12px 0;
    padding: 18px 16px !important;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 82%, var(--surface-soft));
    color: var(--muted);
    text-align: center;
    line-height: 1.55;
}

button.is-action-loading {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait !important;
    opacity: .86;
    transform: none !important;
    pointer-events: none;
}

button.is-action-loading::before {
    content: "";
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ui-action-spin .72s linear infinite;
}

@keyframes ui-action-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    button.is-action-loading::before {
        animation: none;
        border-right-color: currentColor;
        opacity: .45;
    }
}

@media (max-width: 430px) {
    .ui-empty-result {
        padding: 16px 13px !important;
        border-radius: 12px;
    }
}
