.back-to-top{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:90;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid rgba(255,255,255,.45);border-radius:var(--r-md,12px);background:var(--action,#a64f2c);color:#fff;cursor:pointer;box-shadow:0 3px 12px #0002;transition:transform .2s ease,background .2s ease}
.back-to-top[hidden]{display:none}
.back-to-top:hover{transform:translateY(-2px)}
.back-to-top:active{transform:translateY(0)}
.back-to-top:focus-visible{outline:3px solid var(--ink,#2b241f);outline-offset:4px}
@media(max-width:640px){.back-to-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px))}body:has(>nav.actionbar) .back-to-top{bottom:calc(80px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}
