/* Winston V3 — toast. */

.toast-host {
  position: fixed;
  z-index: var(--z-toast);
  bottom: calc(var(--bottom-nav-h) + var(--space-3));
  right: var(--space-4);
  left: var(--space-4);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
  box-shadow: var(--shadow-lg);
  font-size: var(--type-sm);
  color: var(--ink);
  animation: toast-in var(--motion-base) var(--ease-out);
}
.toast.is-leaving { animation: toast-out var(--motion-fast) var(--ease-out) forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { from { opacity: 1; } to { opacity: 0; transform: translateY(4px); } }

.toast-info    { border-left: 3px solid var(--ai); }
.toast-warn    { border-left: 3px solid var(--mode-live); }
.toast-success { border-left: 3px solid var(--money-up); }
.toast-error   { border-left: 3px solid var(--money-down); }

.toast-body { line-height: var(--leading-snug); }
.toast-action {
  color: var(--ai);
  font-weight: var(--weight-semi);
  font-size: var(--type-sm);
  padding: 4px 6px;
}
.toast-action:hover { text-decoration: underline; }
.toast-close {
  width: 28px; height: 28px; border-radius: var(--radius-full);
  color: var(--ink-muted);
}
.toast-close:hover { background: var(--surface-2); color: var(--ink); }

@media (min-width: 720px) {
  .toast-host {
    bottom: var(--space-5);
    right: var(--space-5);
    left: auto;
    width: min(420px, calc(100vw - 40px));
  }
}
