/* Toast / Toaster styles - global toast styling for ToastContainer */
.toast-overlay {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 99999;
  pointer-events: none;
}
.toast-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0;
  padding: 6px;
}
.toast-card {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(12px);
  opacity: 0;
  animation: toast-in 220ms cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes toast-in {
  to { transform: translateX(0); opacity: 1; }
}
.toast-content { display:flex; gap:12px; align-items:center; width:100%; }
.toast-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.toast-title { font-weight:700; color:var(--text); font-size:0.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.toast-message { color:var(--muted); font-size:0.9rem; line-height:1.2; overflow:hidden; text-overflow:ellipsis; }
.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.toast-close:hover { background: rgba(2,6,23,0.03); color: var(--text); }
.toast-info { border-left: 4px solid var(--accent); }
.toast-success { border-left: 4px solid #10b981; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-error { border-left: 4px solid #ef4444; }
@media (max-width: 540px) {
  .toast-overlay { right: 8px; left: 8px; top: calc(var(--header-h) + 8px); }
  .toast-stack { max-width: none; }
}
