/* --- Toast --- */
.toast-container {
  position: fixed;
  top: 64px;
  right: 16px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  animation: toast-in 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
}
.toast-item.leaving {
  animation: toast-out 0.3s cubic-bezier(0.28, 0.11, 0.32, 1) forwards;
}
.toast-icon {
  flex-shrink: 0;
  display: inline-flex;
}
.toast-item.success .toast-icon { color: var(--success-500); }
.toast-item.error .toast-icon { color: var(--error-500); }
.toast-item.info .toast-icon { color: var(--primary-500); }
.toast-msg {
  flex: 1;
  min-width: 0;
}
.toast-actions {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  flex-shrink: 0;
}
.toast-actions button {
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.toast-confirm-btn {
  background: var(--primary-500);
  color: #fff;
}
.toast-confirm-btn:hover {
  background: var(--primary-600);
}
.toast-confirm-btn.danger {
  background: var(--error-500);
}
.toast-confirm-btn.danger:hover {
  filter: brightness(1.1);
}
.toast-cancel-btn {
  background: var(--bg-tag);
  color: var(--text-secondary);
}
.toast-cancel-btn:hover {
  background: var(--bg-tag-hover);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(24px) scale(0.96); }
}
