/* One quiet scrollbar treatment for pages, lists, dialogs and text fields. */
:root{--scroll-thumb:#414d68;--scroll-thumb-hover:#6d6a9f;--scroll-thumb-active:#9387ff}
*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
@supports selector(::-webkit-scrollbar){
  *{scrollbar-width:auto;scrollbar-color:auto}
  ::-webkit-scrollbar{width:10px;height:10px}
  ::-webkit-scrollbar-track{background:transparent}
  ::-webkit-scrollbar-thumb{min-height:36px;min-width:36px;border:3px solid transparent;border-radius:999px;background:var(--scroll-thumb);background-clip:padding-box}
  ::-webkit-scrollbar-thumb:hover{background-color:var(--scroll-thumb-hover)}
  ::-webkit-scrollbar-thumb:active{background-color:var(--scroll-thumb-active)}
  ::-webkit-scrollbar-button{display:none;width:0;height:0}
  ::-webkit-scrollbar-corner{background:transparent}
}
.chat-scroll-nav{position:relative;flex:0 0 0;height:0;z-index:6;pointer-events:none}
.chat-jump-bottom{position:absolute;right:20px;bottom:18px;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #414967;border-radius:50%;background:#20283b;color:#ecebff;box-shadow:0 5px 20px #05071380;cursor:pointer;pointer-events:auto;transition:background .15s,border-color .15s,transform .15s}
.chat-jump-bottom:hover{background:#32334f;border-color:#8b7ff1;transform:translateY(-2px)}
.chat-jump-bottom:active{transform:translateY(0)}
.chat-jump-bottom:focus-visible{outline:2px solid var(--purple-2,#9387ff);outline-offset:3px}
.chat-jump-count{position:absolute;top:-9px;right:-5px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border:2px solid #111622;border-radius:99px;background:#8c7cfa;color:white;font-size:11px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.chat-messages.presence-room + .chat-scroll-nav .chat-jump-bottom{bottom:56px}
.chat-scroll-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#chatMessages:focus-visible{outline:1px solid #9387ff60;outline-offset:-2px}
@media(max-width:820px){.chat-jump-bottom{right:14px;bottom:14px;width:44px;height:44px}.chat-messages.presence-room + .chat-scroll-nav .chat-jump-bottom{bottom:52px}}
@media(prefers-reduced-motion:reduce){.chat-jump-bottom{transition:none}}
@media(forced-colors:active){
  *{scrollbar-color:auto;scrollbar-width:auto}
  ::-webkit-scrollbar-thumb{background:ButtonText}
  .chat-jump-bottom,.chat-jump-count{background:Canvas;color:CanvasText;border-color:ButtonText}
}
