.to-top { position: fixed; bottom: 18px; z-index: 36; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 50px; height: 50px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--to-top-bg, var(--accent, #2340d0)); color: #fff; font: inherit; font-weight: 650;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, .55);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s, bottom .25s; }
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { filter: brightness(1.1); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--to-top-bg, var(--accent, #2340d0)); outline-offset: 3px; }
.to-top--right { right: 18px; }
.to-top--left { left: 18px; }
.to-top--label { padding: 0 20px 0 16px; }
.to-top svg { flex: none; }
@media (max-width: 760px) {
  .to-top { width: 46px; min-width: 46px; height: 46px; }
  .to-top--label { width: auto; padding: 0 16px 0 12px; }
  .to-top--no-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }
