/* Shared back-to-top control. */
.back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #eceaed;
  color: #ff2e63;
  box-shadow: 0 3px 14px rgb(0 0 0 / 12%);
  text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top:hover { background: #fff; color: #ff2e63; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid #ff2e63; outline-offset: 4px; }
@media (max-width: 640px) {
  .back-to-top { width: 48px; height: 48px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
@media print { .back-to-top { display: none !important; } }
