/* Scoped to one-time notices; persistent warnings keep their original layout. */
.ghosty-toast-stack {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 1100;
  width: min(420px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  pointer-events: none;
}
.ghosty-toast {
  --toast-accent: var(--success);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--toast-accent);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-normal);
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: ghosty-toast-enter .18s ease-out;
}
.ghosty-toast--error { --toast-accent: var(--danger); }
.ghosty-toast--warning { --toast-accent: var(--warning); }
.ghosty-toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--toast-accent);
  color: var(--toast-accent);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.ghosty-toast .ghosty-toast-content {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 3px 0 0;
  background: transparent;
  color: var(--text-normal);
  border: 0;
  box-shadow: none;
  border-radius: 0;
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ghosty-toast .ghosty-toast-content p { margin: 0; color: inherit; }
.ghosty-toast .ghosty-toast-content p + p { margin-top: 5px; }
.ghosty-toast .ghosty-toast-content .meta { color: var(--text-muted); }
.ghosty-toast-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ghosty-toast-close:hover { background: var(--bg-hover); color: var(--text-heading); }
.ghosty-toast-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes ghosty-toast-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .ghosty-toast-stack { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); right: 12px; width: calc(100vw - 24px); max-height: 55vh; }
  .ghosty-toast { padding: 12px; gap: 9px; }
}
@media (prefers-reduced-motion: reduce) { .ghosty-toast { animation: none; } }
