.eds-back-to-top {
  position: fixed;
  z-index: 44;
  inset-inline-start: max(18px, env(safe-area-inset-right, 0px));
  inset-inline-end: auto;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--red-cta, #d32f3f);
  border-radius: 12px;
  background: var(--panel-soft, #17181b);
  color: var(--silver, #ededf0);
  box-shadow: 0 8px 24px #0007;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.eds-back-to-top[hidden] { display: none; }
.eds-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.eds-back-to-top:hover { background: var(--red-cta, #d32f3f); }
.eds-back-to-top:focus-visible {
  outline: 2px solid var(--focus, #ff7886);
  outline-offset: 4px;
}
.eds-back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .eds-back-to-top { transition: none; }
}
