.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + var(--safe-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: calc(100vw - 2rem);
  padding: 0.625rem 0.75rem 0.625rem 1rem;
  border-radius: 12px;
  background: #2b2b2e;
  color: #f2f2f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  animation: toast-rise 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  .toast {
    background: #3a3a3d;
    border: 1px solid var(--line);
  }
}

@keyframes toast-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 0.75rem);
  }
}

.toast-message {
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-action {
  flex: none;
  padding: 0.25rem 0.625rem;
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.toast-action:hover {
  background: rgba(255, 255, 255, 0.1);
}
