/* Personalização somente para mouse/trackpad; rolagem de toque permanece nativa. */
html{scroll-behavior:auto}
@media (hover:hover) and (pointer:fine){
 html[data-scroll-custom="1"],html[data-scroll-custom="1"] *{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
 @supports selector(::-webkit-scrollbar){
  html[data-scroll-custom="1"],html[data-scroll-custom="1"] *{scrollbar-width:auto;scrollbar-color:auto}
  html[data-scroll-custom="1"]::-webkit-scrollbar,html[data-scroll-custom="1"] *::-webkit-scrollbar{width:10px;height:10px}
  html[data-scroll-custom="1"]::-webkit-scrollbar-track,html[data-scroll-custom="1"] *::-webkit-scrollbar-track{background:var(--scroll-track)}
  html[data-scroll-custom="1"]::-webkit-scrollbar-thumb,html[data-scroll-custom="1"] *::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid var(--scroll-track);border-radius:99px}
  html[data-scroll-custom="1"]::-webkit-scrollbar-thumb:hover,html[data-scroll-custom="1"] *::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}
  html[data-scroll-custom="1"]::-webkit-scrollbar-corner,html[data-scroll-custom="1"] *::-webkit-scrollbar-corner{background:var(--scroll-track)}
 }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){html[data-scroll-smooth="1"]{scroll-behavior:smooth;scroll-padding-top:160px}}
.portal-back-top{position:fixed;right:24px;bottom:calc(108px + env(safe-area-inset-bottom,0px));z-index:1100;width:46px;height:46px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--scroll-track);border-radius:50%;background:var(--scroll-thumb);color:var(--scroll-icon);cursor:pointer;box-shadow:0 3px 12px #0002;transition:background-color .18s,color .18s}
.portal-back-top[hidden]{display:none!important}.portal-back-top:hover{background:var(--scroll-hover);color:var(--scroll-icon-hover)}.portal-back-top:focus-visible{outline:3px solid var(--scroll-hover);outline-offset:4px}.portal-back-top svg{display:block;width:22px;height:22px}
@media(max-width:640px){.portal-back-top{right:16px}}
@media(prefers-reduced-motion:reduce){html[data-scroll-smooth]{scroll-behavior:auto!important}.portal-back-top{transition:none}}
@media(forced-colors:active){html[data-scroll-custom="1"],html[data-scroll-custom="1"] *{scrollbar-color:auto;scrollbar-width:auto}.portal-back-top{background:ButtonFace;color:ButtonText;border:1px solid ButtonText;box-shadow:none}}
