#tools .rail-sorting {
  scroll-snap-type: none;
}

#tools .rail-sorting [data-favorite] {
  cursor: grabbing;
  transform: translateY(var(--rail-favorite-shift, 0px));
  transition: transform 140ms cubic-bezier(.2, .7, .2, 1);
}

#tools .rail-favorite-source {
  opacity: 0;
}

.rail-favorite-ghost {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--accent);
  border-radius: 7px;
  box-shadow: 0 4px 14px #0007;
}

.rail-favorite-ghost .icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.55;
}

.rail-favorite-ghost[data-symbol] .icon svg {
  display: none;
}

.rail-favorite-ghost[data-symbol] .icon::before {
  content: '';
  width: 19px;
  height: 19px;
  background: currentColor;
  mask: var(--drawing-symbol) center / contain no-repeat;
}

@media (max-width: 760px) {
  #tools .rail-sorting [data-favorite] {
    transform: translateX(var(--rail-favorite-shift, 0px));
  }

  .rail-favorite-ghost .icon svg,
  .rail-favorite-ghost[data-symbol] .icon::before {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tools .rail-sorting [data-favorite] {
    transition: none;
  }
}
