/* Shared by every workbench document, including dynamically added scrollers.
   Keep overflow, wheel/keyboard behaviour and touch scrolling with the browser. */
:root{--wh-scroll-thumb:#6e786f;--wh-scroll-hover:#a0afa3}
:root[data-wh-theme="light"]{--wh-scroll-thumb:#9ba3ad;--wh-scroll-hover:#657180}
:root[data-wh-theme="paper"]{--wh-scroll-thumb:#a89a83;--wh-scroll-hover:#776a55}
:root[data-wh-theme="navy"]{--wh-scroll-thumb:#647993;--wh-scroll-hover:#9bb3d0}
:root,:root *{scrollbar-width:thin!important;scrollbar-color:var(--wh-scroll-thumb) transparent!important}
/* Non-auto standard properties override WebKit pseudo styling in Chromium.
   Select one styling mechanism so the requested 4px width is actually used. */
@supports selector(::-webkit-scrollbar){
 :root,:root *{scrollbar-width:auto!important;scrollbar-color:auto!important}
 :root::-webkit-scrollbar,:root *::-webkit-scrollbar{display:block!important;width:4px!important;height:4px!important;background:transparent!important}
 :root::-webkit-scrollbar-track,:root *::-webkit-scrollbar-track,
 :root::-webkit-scrollbar-track-piece,:root *::-webkit-scrollbar-track-piece{background:transparent!important;border:0!important;box-shadow:none!important}
 :root::-webkit-scrollbar-thumb,:root *::-webkit-scrollbar-thumb{background:var(--wh-scroll-thumb)!important;border:0!important;border-radius:4px!important;box-shadow:none!important}
 :root::-webkit-scrollbar-thumb:hover,:root *::-webkit-scrollbar-thumb:hover,
 :root::-webkit-scrollbar-thumb:active,:root *::-webkit-scrollbar-thumb:active{background:var(--wh-scroll-hover)!important}
 :root::-webkit-scrollbar-button,:root *::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
 :root::-webkit-scrollbar-corner,:root *::-webkit-scrollbar-corner{background:transparent!important}
}
@media(forced-colors:active){:root{--wh-scroll-thumb:CanvasText;--wh-scroll-hover:Highlight}}

/* Navigation strips deliberately scroll without a visible bar. Keep their wheel,
   touch and arrow-button scrolling; the global rule above must not reveal it. */
:root :is(.conversationNodes,.composerOptions,.agentToolbarScroll,.agentCategoryTabs,.categories,.skillCategories,.pluginFilters .states){scrollbar-width:none!important}
@supports selector(::-webkit-scrollbar){
 :root :is(.conversationNodes,.composerOptions,.agentToolbarScroll,.agentCategoryTabs,.categories,.skillCategories,.pluginFilters .states)::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}

/* Category selection remains clear through weight and color, without an underline. */
:root .agentCategoryTabs button{border-bottom:0!important}
:root :is(.categories,.skillCategories) button[aria-pressed="true"]::after{content:none!important;display:none!important}
