#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 10000;
  display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none; max-width: 420px;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--line);
  color: var(--text); font-size: 14px; line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: auto; cursor: pointer;
  animation: toast-in 0.25s ease-out;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 420px; word-break: break-word;
}
.toast.toast-out {
  opacity: 0; transform: translateX(40px);
}
.toast-icon {
  flex-shrink: 0; width: 20px; height: 20px; line-height: 20px;
  text-align: center; font-size: 16px;
}
.toast-body { flex: 1; }
.toast-close {
  flex-shrink: 0; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 16px; padding: 0 0 0 8px; line-height: 20px;
}
.toast-close:hover { color: var(--text); }

/* Types */
.toast.toast-error { border-color: var(--red); }
.toast.toast-error .toast-icon { color: var(--red); }
.toast.toast-success { border-color: var(--green); }
.toast.toast-success .toast-icon { color: var(--green); }
.toast.toast-warning { border-color: var(--amber); }
.toast.toast-warning .toast-icon { color: var(--amber); }
.toast.toast-info { border-color: var(--accent); }
.toast.toast-info .toast-icon { color: var(--accent); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
