.back-to-top {
  position: fixed;
  right: max(var(--space-5), env(safe-area-inset-right));
  bottom: max(var(--space-6), env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-7);
  height: var(--space-7);
  padding: var(--space-3);
  border: var(--border-width) solid var(--color-control-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}
.back-to-top[hidden] {
  display: none;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--color-link);
  border-color: var(--color-link);
}
.back-to-top:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
}
.back-to-top svg {
  width: 100%;
  height: 100%;
}
