/*
 * LiteWorkPro interaction contracts.
 * These rules replace legacy indicator, autosize, and scroll plugins with
 * accessible native browser behavior.
 */

[aria-busy="true"] {
    cursor: progress;
}

[aria-busy="true"] > .indicator-label {
    display: none;
}

[aria-busy="true"] > .indicator-progress {
    align-items: center;
    display: inline-flex;
    gap: var(--lwp-space-2, .5rem);
}

[aria-busy="false"] > .indicator-progress,
[aria-busy="true"] > .indicator-label {
    display: none;
}

[data-lwp-scroll-region="true"] {
    max-block-size: min(68vh, 48rem);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

textarea[data-lwp-autosize="true"] {
    field-sizing: content;
    max-block-size: 18rem;
    min-block-size: 2.75rem;
    overflow-y: auto;
    resize: vertical;
}

@media (forced-colors: active) {
    [aria-busy="true"] {
        outline: 1px solid ButtonText;
    }
}
