button.site-back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 6;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--cp-border-strong, var(--line, GrayText));
  border-radius: 50%;
  background: var(--cp-surface, var(--paper, Canvas));
  color: var(--cp-text, var(--ink, CanvasText));
  cursor: pointer;
}
.site-back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button.site-back-to-top:hover { border-color: currentColor; }
button.site-back-to-top:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
button.site-back-to-top[hidden],
body.locked .site-back-to-top,
body:has(dialog[open]) .site-back-to-top { display: none; }
@media (max-width: 700px) {
  button.site-back-to-top { width: 44px; height: 44px; }
  .site-back-to-top svg { width: 20px; height: 20px; }
}
@media print { button.site-back-to-top { display: none; } }
