#rsc-back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px;
  background: #bf914c;
  color: #14263a;
  box-shadow: 0 4px 18px rgba(20,38,58,.2);
  cursor: pointer;
  line-height: 1;
  transition: background-color .18s ease, transform .18s ease;
}
#rsc-back-to-top[hidden] { display: none !important; }
#rsc-back-to-top:hover { background: #d4ad6c; transform: translateY(-2px); }
#rsc-back-to-top:focus-visible { outline: 3px solid #203d63; outline-offset: 4px; }
#rsc-back-to-top svg { display: block; pointer-events: none; }
@media (max-width:600px) {
  #rsc-back-to-top { right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { #rsc-back-to-top { transition: none; } }
@media print { #rsc-back-to-top { display: none !important; } }
