/* toast.css */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: white;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  width: min(360px, calc(100vw - 24px));
  min-width: 0;
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  animation: toastIn .25s ease;
  border-left: 4px solid var(--primary);
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--error); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info    { border-left-color: var(--info); }
.toast.removing { animation: toastOut .2s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
@keyframes toastOut { to   { opacity:0; transform:translateX(20px); } }

.toast-icon  { font-size: 18px; flex-shrink: 0; }
.toast-body  { flex: 1; min-width: 0; }
.toast-title { font-size: var(--text-sm); font-weight: 700; color: var(--black); }
.toast-msg   { font-size: var(--text-xs); color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.toast-close { font-size: 14px; color: var(--gray-400); cursor: pointer; background: none; border: none; padding: 0; flex-shrink: 0; }
.toast-close:hover { color: var(--black); }

@media (max-width: 480px) {
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { width: 100%; }
}
