/* Shared persistent-button state. State belongs to each control, never to a click observer.
   The same ring works on color swatches without replacing their chosen color. */
html body :is(button,[role="button"],[role="tab"]):is([aria-pressed="true"],[aria-selected="true"],.active,.selected,.tool-selected,.is-active,.ta-nav-current){
 outline:2px solid #ffbd88!important;
 outline-offset:1px!important;
 box-shadow:0 0 0 2px #5b4aa8!important;
}
html body :is(button,[role="button"],[role="tab"]):focus-visible{
 outline:3px solid #e69a00!important;
 outline-offset:3px!important;
}
@media(forced-colors:active){
 html body :is(button,[role="button"],[role="tab"]):is([aria-pressed="true"],[aria-selected="true"],.active,.selected,.tool-selected,.is-active,.ta-nav-current){outline:3px solid Highlight!important;}
}
