.sync-toast {
  position: fixed;
  top: calc(44px + 12px);
  right: 16px;
  z-index: 50;
  width: min(280px, calc(100vw - 32px));
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--line-soft);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.sync-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sync-toast.is-leaving {
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.sync-toast-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.sync-toast-meta {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .sync-toast {
    right: calc(var(--rail-w) + 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sync-toast,
  .sync-toast.is-visible,
  .sync-toast.is-leaving {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
