/* FPC Wire v2.3.0a — Smooth Core Interactions */
.wire-action-pending {
  pointer-events: none;
}

.wire-action-pending button {
  opacity: .72;
}

.wire-action-pending button[aria-busy="true"] {
  position: relative;
}

.wire-action-pending button[aria-busy="true"]::after {
  content: "";
  width: 11px;
  height: 11px;
  margin-left: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wire-action-spin .65s linear infinite;
}

@keyframes wire-action-spin {
  to { transform: rotate(360deg); }
}

.wire-toast-stack {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(92vw, 380px);
  z-index: 10000;
  pointer-events: none;
}

.wire-toast {
  padding: 11px 14px;
  border: 1px solid rgba(120, 160, 205, .42);
  border-radius: 12px;
  background: rgba(10, 22, 35, .96);
  color: #eef6ff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42);
  opacity: 0;
  transform: translateY(9px);
  transition: opacity .18s ease, transform .18s ease;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

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

.wire-toast-error {
  border-color: rgba(255, 99, 107, .58);
  color: #ffd6d9;
}

.wire-sr-live {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wire-action-removing {
  transition:
    height .24s ease,
    opacity .2s ease,
    padding .24s ease,
    margin .24s ease;
}

@media (max-width: 680px) {
  .wire-toast-stack {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .wire-toast {
    padding: 10px 12px;
    font-size: 12px;
  }

  .post-action,
  [data-repost-toggle],
  .community-card button,
  .suggestion-card button {
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire-toast,
  .wire-action-removing {
    transition: none;
  }

  .wire-action-pending button[aria-busy="true"]::after {
    animation: none;
  }
}
