.back-to-top {
  position: fixed;
  z-index: 25;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c9bde4;
  border-radius: 50%;
  color: #493585;
  background: #fcfaff;
  box-shadow: 0 4px 14px #30204820;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #eee7fa; color: #352366; }
.back-to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(2px) rotate(45deg);
}

.community-footer, .site-footer { padding-inline-end: 32px; }

@media (max-width: 735px) {
  .community-footer, .site-footer {
    padding-inline-end: 0;
    padding-block-end: calc(64px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
