/* Shared availability contract. Themes own their palette; state owns operability. */
:root{--wd-action-background:linear-gradient(#326cc3,#285cad 55%,#214e96);--wd-action-text:#fff;--wd-action-border:#6e97d4}
.fd-workspace{--wd-action-background:#d8bd96;--wd-action-text:#432b17;--wd-action-border:#987249}
#wd-document-preview{--wd-action-background:linear-gradient(#fff,#e0e9d8);--wd-action-text:#173e2b;--wd-action-border:#9aad97}
/* Secondary is a legacy class, never a muted availability state. */
:root :is(#accounting-panel,.ac-dialog) button.ac-secondary,
:root :is(.vendor-workspace button,.vw-button,.wd-global-results button,.ops-price-button),
:root #wedoin-store button.secondary{
 background:var(--wd-action-background)!important;color:var(--wd-action-text)!important;border-color:var(--wd-action-border)!important;
 box-shadow:inset 0 1px #ffffff14,0 2px 3px #02081530!important;
}
:root :is(button,input[type=button],input[type=submit],input[type=reset],a.button,[role=button]):not(:disabled):not([aria-disabled=true]):not(.disabled):not([data-unavailable=true]){opacity:1;cursor:pointer}
/* High specificity keeps late-loaded module CSS from fading the active color. */
:root :is(button,input[type=button],input[type=submit],input[type=reset],a.button,[role=button]):is(:disabled,[aria-disabled=true],.disabled,[data-unavailable=true]),
:root #wedoin-store :is(button,input[type=button],input[type=submit],input[type=reset],a.button,[role=button]):is(:disabled,[aria-disabled=true],.disabled,[data-unavailable=true]){
 background:#d1d8df!important;color:#465260!important;border-color:#9ba8b5!important;
 opacity:1!important;cursor:default!important;box-shadow:none!important;filter:none!important;transform:none!important;text-shadow:none!important;
}
:root button[aria-busy=true]::after{content:'';display:inline-block;width:.8em;height:.8em;margin-left:.6em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-.1em;animation:wd-action-spin .8s linear infinite}
@keyframes wd-action-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){:root button[aria-busy=true]::after{animation:none}}
