button.back-to-top {
  position:fixed;
  z-index:20;
  right:max(16px,env(safe-area-inset-right));
  bottom:calc(var(--back-to-top-offset, 16px) + env(safe-area-inset-bottom, 0px));
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  padding:0;
  border:0;
  border-radius:19px;
  color:#292e36;
  background:var(--public-menu-glass,rgba(248,250,252,.51));
  -webkit-backdrop-filter:blur(20px) saturate(1.15);
  backdrop-filter:blur(20px) saturate(1.15);
  box-shadow:var(--public-menu-shadow,0 9px 28px rgba(29,38,50,.12));
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:opacity .16s, visibility .16s;
}
button.back-to-top[data-visible] {opacity:1;visibility:visible}
.back-to-top svg {width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
button.back-to-top::before {
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:var(--public-menu-hover,rgba(54,66,81,.075));opacity:0;
}
@media (hover:hover) {button.back-to-top:hover::before {opacity:1}}
@media (prefers-reduced-motion:no-preference) {button.back-to-top::before {transition:opacity .15s}}
button.back-to-top:focus-visible {outline:3px solid #175ddc;outline-offset:3px}
body:has(.app-footer) {--back-to-top-offset:86px}
body:has(dialog[open]) > .back-to-top {display:none}
@media (prefers-reduced-motion:reduce) {button.back-to-top {transition:none}}
@media (max-width:700px), (hover:none) and (pointer:coarse) {button.back-to-top {display:none}}
