{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toast-newton-cradle",
  "title": "Toast Newton Cradle",
  "description": "A toast stack that behaves like a Newton's cradle: a new toast swings in and strikes the queue, a fast domino of shunts carries the impact down the stack, and past capacity that momentum visibly ejects the oldest toast off the far end.",
  "dependencies": [],
  "files": [
    {
      "path": "registry/loud/toast-newton-cradle/component.tsx",
      "content": "\"use client\";\n\nimport {\n  forwardRef,\n  useCallback,\n  useEffect,\n  useId,\n  useImperativeHandle,\n  useRef,\n  useState,\n  type ReactNode,\n} from \"react\";\n\n// ---------------------------------------------------------------------------\n// ImpulseCradle — a toast stack that behaves like a Newton's cradle. A new\n// toast swings in from the top with an accelerating (ease-in) entrance and\n// \"strikes\" the queue; the impact travels down through every already-queued\n// toast as a fast domino of 2-3px shunts, staggered 35ms apart, so the eye\n// reads how deep the stack is without counting anything. Under capacity that\n// impulse simply dissipates — the last toast shunts and returns. At capacity\n// the same impulse instead carries the oldest toast off the far (bottom) end:\n// it inherits the shunt's momentum and departs with an ease-out arc, a slight\n// rotation, and a fade — conservation of notifications, visibly enforced.\n// Pure DOM transforms via the Web Animations API, tokens only, no canvas.\n// ---------------------------------------------------------------------------\n\nexport type ImpulseSeverity = \"info\" | \"error\";\n\nexport interface ImpulseToastInput {\n  severity?: ImpulseSeverity;\n  title: string;\n  message?: string;\n  /** ms before auto-dismiss; 0 disables; defaults to the stack `duration` */\n  duration?: number;\n}\n\nexport interface ImpulseCradleHandle {\n  /** swing a new toast into the stack, returns its id */\n  push: (toast: ImpulseToastInput) => string;\n  dismiss: (id: string) => void;\n  clear: () => void;\n}\n\ntype ToastRec = {\n  id: string;\n  severity: ImpulseSeverity;\n  title: string;\n  message?: string;\n  duration: number;\n};\n\ntype HistoryReason = \"dismissed\" | \"expired\" | \"evicted\";\ntype HistoryRec = ToastRec & { reason: HistoryReason; at: number };\n\ntype TimerEntry = { handle: number | null; deadline: number; remaining: number };\ntype PauseReason = \"hover\" | \"focus\";\n\nconst SHUNT_STAGGER = 35; // ms between each toast's impulse pulse\nconst SHUNT_MS = 60;\nconst SHUNT_PX = 3;\nconst EJECT_MS = 340;\nconst ENTER_MS = 200;\nconst EXIT_MS = 150;\nconst EASE_IN = \"cubic-bezier(.55,.06,.68,.19)\"; // accelerating, released-ball entrance\nconst EASE_OUT = \"cubic-bezier(0.16,1,0.3,1)\"; // decelerating, matches the eject's inherited velocity\n\nconst ICONS: Record<ImpulseSeverity, ReactNode> = {\n  error: (\n    <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <circle cx=\"12\" cy=\"12\" r=\"9\" />\n      <path d=\"m15 9-6 6M9 9l6 6\" />\n    </svg>\n  ),\n  info: (\n    <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      <circle cx=\"12\" cy=\"12\" r=\"9\" />\n      <path d=\"m8.5 12.5 2.5 2.5 4.5-5\" />\n    </svg>\n  ),\n};\n\nfunction CardShell({ toast, onDismiss }: { toast: ToastRec; onDismiss: () => void }) {\n  return (\n    <div className=\"flex items-start gap-2.5 py-2.5 pl-3 pr-1.5\">\n      <span className=\"mt-0.5 shrink-0 text-ns-muted\">{ICONS[toast.severity]}</span>\n      <div className=\"min-w-0 flex-1\">\n        <p\n          className={`truncate text-[13px] leading-tight text-foreground ${\n            toast.severity === \"error\" ? \"font-semibold\" : \"font-medium\"\n          }`}\n        >\n          {toast.title}\n        </p>\n        {toast.message ? (\n          <p className=\"mt-0.5 truncate font-mono text-[11px] leading-tight text-ns-muted\">\n            {toast.message}\n          </p>\n        ) : null}\n      </div>\n      <button\n        type=\"button\"\n        aria-label={`Dismiss: ${toast.title}`}\n        onClick={onDismiss}\n        className=\"shrink-0 cursor-pointer rounded-sm p-1 text-ns-muted transition-colors duration-150 hover:bg-foreground/10 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ns-accent\"\n      >\n        <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden>\n          <path d=\"M18 6 6 18M6 6l12 12\" />\n        </svg>\n      </button>\n    </div>\n  );\n}\n\nexport const ImpulseCradle = forwardRef<\n  ImpulseCradleHandle,\n  {\n    /** how many toasts the stack shows before the impulse starts ejecting */\n    maxVisible?: number;\n    /** ms before a toast auto-dismisses (paused on hover/focus); 0 disables */\n    duration?: number;\n    /** toasts present at mount */\n    initial?: ImpulseToastInput[];\n    /** extra classes merged onto the rendered root element */\n    className?: string;\n    /** accessible name for the toast stack */\n    \"aria-label\"?: string;\n  }\n>(function ImpulseCradle(\n  {\n    maxVisible = 4,\n    duration = 5000,\n    initial,\n    className = \"w-full max-w-sm\",\n    \"aria-label\": ariaLabel = \"Notifications\",\n  },\n  ref\n) {\n  const cap = Math.max(1, maxVisible);\n  const regionRef = useRef<HTMLDivElement>(null);\n  const historyPanelId = useId();\n\n  const seqRef = useRef(0);\n  const liveSeqRef = useRef(0);\n  const toastsRef = useRef<ToastRec[]>([]);\n  const timersRef = useRef<Map<string, TimerEntry>>(new Map());\n  const pauseReasonsRef = useRef<Map<string, Set<PauseReason>>>(new Map());\n  const cardElsRef = useRef<Map<string, HTMLDivElement>>(new Map());\n  const enteredRef = useRef<Set<string>>(new Set());\n  const exitingIdsRef = useRef<Set<string>>(new Set());\n  const evictDelayRef = useRef<Map<string, number>>(new Map());\n  const evictAttachedRef = useRef<Set<string>>(new Set());\n\n  const [toasts, setToasts] = useState<ToastRec[]>(() =>\n    (initial ?? []).map((t, i) => ({\n      id: `ic-init-${i}`,\n      severity: t.severity ?? \"info\",\n      title: t.title,\n      message: t.message,\n      duration: t.duration ?? duration,\n    }))\n  );\n  toastsRef.current = toasts;\n  const [evicting, setEvicting] = useState<ToastRec[]>([]);\n  const [history, setHistory] = useState<HistoryRec[]>([]);\n  const [historyOpen, setHistoryOpen] = useState(false);\n  const [reduced, setReduced] = useState(false);\n  const [live, setLive] = useState<{ text: string; level: \"polite\" | \"assertive\"; seq: number }>({\n    text: \"\",\n    level: \"polite\",\n    seq: -1,\n  });\n\n  useEffect(() => {\n    const mq = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n    const update = () => setReduced(mq.matches);\n    update();\n    mq.addEventListener(\"change\", update);\n    return () => mq.removeEventListener(\"change\", update);\n  }, []);\n\n  const announce = useCallback((text: string, level: \"polite\" | \"assertive\") => {\n    setLive({ text, level, seq: ++liveSeqRef.current });\n  }, []);\n\n  const pushHistory = useCallback((t: ToastRec, reason: HistoryReason) => {\n    setHistory((prev) => [{ ...t, reason, at: Date.now() }, ...prev].slice(0, 12));\n  }, []);\n\n  const clearTimer = useCallback((id: string) => {\n    const entry = timersRef.current.get(id);\n    if (entry?.handle !== null && entry) clearTimeout(entry.handle);\n    timersRef.current.delete(id);\n    pauseReasonsRef.current.delete(id);\n  }, []);\n\n  const dismiss = useCallback(\n    (id: string, reason: HistoryReason = \"dismissed\") => {\n      if (exitingIdsRef.current.has(id)) return;\n      const t = toastsRef.current.find((x) => x.id === id);\n      if (!t) return;\n      exitingIdsRef.current.add(id);\n      clearTimer(id);\n      const el = cardElsRef.current.get(id);\n      const finish = () => {\n        exitingIdsRef.current.delete(id);\n        cardElsRef.current.delete(id);\n        enteredRef.current.delete(id);\n        setToasts((prev) => prev.filter((x) => x.id !== id));\n        pushHistory(t, reason);\n      };\n      if (el) {\n        const anim = el.animate([{ opacity: 1 }, { opacity: 0 }], {\n          duration: EXIT_MS,\n          easing: \"ease-out\",\n          fill: \"forwards\",\n        });\n        anim.finished.catch(() => {}).finally(finish);\n      } else {\n        finish();\n      }\n    },\n    [clearTimer, pushHistory]\n  );\n\n  const armTimer = useCallback(\n    (t: ToastRec) => {\n      if (t.duration <= 0) return;\n      timersRef.current.set(t.id, {\n        handle: window.setTimeout(() => dismiss(t.id, \"expired\"), t.duration),\n        deadline: Date.now() + t.duration,\n        remaining: t.duration,\n      });\n    },\n    [dismiss]\n  );\n\n  const pauseTimer = useCallback((id: string, reason: PauseReason) => {\n    const reasons = pauseReasonsRef.current.get(id) ?? new Set<PauseReason>();\n    reasons.add(reason);\n    pauseReasonsRef.current.set(id, reasons);\n    const entry = timersRef.current.get(id);\n    if (entry?.handle !== null && entry) {\n      clearTimeout(entry.handle);\n      entry.handle = null;\n      entry.remaining = Math.max(0, entry.deadline - Date.now());\n    }\n  }, []);\n\n  const resumeTimer = useCallback(\n    (id: string, reason: PauseReason) => {\n      const reasons = pauseReasonsRef.current.get(id);\n      if (reasons) {\n        reasons.delete(reason);\n        if (reasons.size > 0) return;\n      }\n      const entry = timersRef.current.get(id);\n      if (!entry || entry.handle !== null) return;\n      const ms = Math.max(400, entry.remaining);\n      entry.deadline = Date.now() + ms;\n      entry.handle = window.setTimeout(() => dismiss(id, \"expired\"), ms);\n    },\n    [dismiss]\n  );\n\n  const finalizeEvict = useCallback(\n    (t: ToastRec) => {\n      evictAttachedRef.current.delete(t.id);\n      cardElsRef.current.delete(t.id);\n      setEvicting((prev) => prev.filter((x) => x.id !== t.id));\n      pushHistory(t, \"evicted\");\n    },\n    [pushHistory]\n  );\n\n  // entrance: every freshly-mounted toast card plays this exactly once — by\n  // construction the only card that ever mounts fresh is the newest arrival,\n  // since surviving cards keep their DOM identity (same React key) and just\n  // ride out the shunt in place instead of remounting.\n  const attachCard = useCallback(\n    (id: string, el: HTMLDivElement | null) => {\n      if (!el) return;\n      cardElsRef.current.set(id, el);\n      if (enteredRef.current.has(id)) return;\n      enteredRef.current.add(id);\n      if (reduced) {\n        el.animate([{ opacity: 0 }, { opacity: 1 }], { duration: EXIT_MS, easing: \"ease-out\" });\n      } else {\n        el.animate(\n          [\n            { transform: \"translateY(-26px) scale(0.97)\", opacity: 0 },\n            { transform: \"translateY(0) scale(1)\", opacity: 1 },\n          ],\n          { duration: ENTER_MS, easing: EASE_IN }\n        );\n      }\n    },\n    [reduced]\n  );\n\n  // eviction: the oldest toast, bumped out of the visible cap, keeps\n  // rendering (in an inert overlay list) just long enough to play its\n  // departure, inheriting the same stagger slot the shunt cascade would have\n  // given it had it survived.\n  const attachEvicting = useCallback(\n    (t: ToastRec, el: HTMLDivElement | null) => {\n      if (!el || evictAttachedRef.current.has(t.id)) return;\n      evictAttachedRef.current.add(t.id);\n      const delay = evictDelayRef.current.get(t.id) ?? 0;\n      const anim = reduced\n        ? el.animate([{ opacity: 1 }, { opacity: 0 }], {\n            duration: EXIT_MS,\n            easing: \"ease-out\",\n            fill: \"forwards\",\n          })\n        : el.animate(\n            [\n              { transform: \"translateY(0px) rotate(0deg)\", opacity: 1 },\n              { transform: \"translateY(10px) rotate(2deg)\", opacity: 1, offset: 0.35 },\n              { transform: \"translateY(46px) rotate(9deg)\", opacity: 0 },\n            ],\n            { duration: EJECT_MS, delay, easing: EASE_OUT, fill: \"forwards\" }\n          );\n      anim.finished\n        .catch(() => {})\n        .finally(() => finalizeEvict(t));\n    },\n    [reduced, finalizeEvict]\n  );\n\n  const push = useCallback(\n    (input: ImpulseToastInput): string => {\n      const id = `ic-${++seqRef.current}`;\n      const severity: ImpulseSeverity = input.severity ?? \"info\";\n      const rec: ToastRec = {\n        id,\n        severity,\n        title: input.title,\n        message: input.message,\n        duration: input.duration ?? duration,\n      };\n\n      const prev = toastsRef.current;\n      const overCap = prev.length >= cap;\n      const kept = overCap ? prev.slice(0, Math.max(0, cap - 1)) : prev;\n      const ejected = overCap ? prev[prev.length - 1] : null;\n      const next = [rec, ...kept];\n      toastsRef.current = next;\n      setToasts(next);\n\n      if (ejected) {\n        clearTimer(ejected.id);\n        evictDelayRef.current.set(ejected.id, kept.length * SHUNT_STAGGER);\n        setEvicting((ev) => [...ev, ejected]);\n      }\n\n      armTimer(rec);\n      announce(\n        `${severity === \"error\" ? \"Error\" : \"Notification\"}: ${rec.title}${\n          rec.message ? `. ${rec.message}` : \"\"\n        }`,\n        severity === \"error\" ? \"assertive\" : \"polite\"\n      );\n\n      // the impulse cascade — every toast that survives the push (i.e. every\n      // toast except the new arrival) gets a 3px shunt toward the far end,\n      // staggered 35ms deeper per position, then springs back. The ejected\n      // toast plays the matching (but non-returning) motion in attachEvicting.\n      if (!reduced) {\n        requestAnimationFrame(() => {\n          kept.forEach((t, i) => {\n            const el = cardElsRef.current.get(t.id);\n            el?.animate(\n              [\n                { transform: \"translateY(0px)\" },\n                { transform: `translateY(${SHUNT_PX}px)`, offset: 0.4 },\n                { transform: \"translateY(0px)\" },\n              ],\n              { duration: SHUNT_MS, delay: (i + 1) * SHUNT_STAGGER, easing: \"ease-out\" }\n            );\n          });\n        });\n      }\n\n      return id;\n    },\n    [cap, duration, armTimer, announce, clearTimer, reduced]\n  );\n\n  const clear = useCallback(() => {\n    for (const t of toastsRef.current) dismiss(t.id);\n  }, [dismiss]);\n\n  useImperativeHandle(ref, () => ({ push, dismiss, clear }), [push, dismiss, clear]);\n\n  // arm timers for `initial` toasts seeded at mount (push() handles its own)\n  useEffect(() => {\n    for (const t of toastsRef.current) {\n      if (!timersRef.current.has(t.id)) armTimer(t);\n    }\n    // deliberately mount-only: push() arms its own toasts as they arrive\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  // teardown: every pending timer dies with the component\n  useEffect(() => {\n    const timers = timersRef.current;\n    return () => {\n      for (const entry of timers.values()) if (entry.handle !== null) clearTimeout(entry.handle);\n      timers.clear();\n    };\n  }, []);\n\n  // F6 (pane-jump convention): send focus straight to the toast region —\n  // the newest toast if one is present, otherwise the region landmark itself.\n  useEffect(() => {\n    const onKey = (e: KeyboardEvent) => {\n      if (e.key !== \"F6\") return;\n      const root = regionRef.current;\n      if (!root) return;\n      e.preventDefault();\n      const firstToast = root.querySelector<HTMLElement>(\"[data-ic-toast]\");\n      (firstToast ?? root).focus();\n    };\n    window.addEventListener(\"keydown\", onKey);\n    return () => window.removeEventListener(\"keydown\", onKey);\n  }, []);\n\n  return (\n    <div className={`relative ${className}`}>\n      <div\n        ref={regionRef}\n        role=\"region\"\n        aria-label={ariaLabel}\n        tabIndex={-1}\n        className=\"flex flex-col gap-2 outline-none\"\n      >\n        {toasts.map((t) => (\n          <div\n            key={t.id}\n            ref={(el) => attachCard(t.id, el)}\n            data-ic-toast\n            role={t.severity === \"error\" ? \"alert\" : \"status\"}\n            aria-label={`${t.severity === \"error\" ? \"Error\" : \"Notification\"}: ${t.title}`}\n            tabIndex={0}\n            onPointerEnter={() => pauseTimer(t.id, \"hover\")}\n            onPointerLeave={() => resumeTimer(t.id, \"hover\")}\n            onFocus={() => pauseTimer(t.id, \"focus\")}\n            onBlur={() => resumeTimer(t.id, \"focus\")}\n            onKeyDown={(e) => {\n              if (e.key === \"Escape\") {\n                e.stopPropagation();\n                dismiss(t.id);\n              }\n            }}\n            className=\"overflow-hidden rounded-sm border border-border bg-background will-change-transform focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ns-accent\"\n          >\n            <CardShell toast={t} onDismiss={() => dismiss(t.id)} />\n          </div>\n        ))}\n        {evicting.map((t) => (\n          <div\n            key={`evict-${t.id}`}\n            ref={(el) => attachEvicting(t, el)}\n            aria-hidden=\"true\"\n            className=\"pointer-events-none overflow-hidden rounded-sm border border-border bg-background will-change-transform\"\n          >\n            <CardShell toast={t} onDismiss={() => {}} />\n          </div>\n        ))}\n      </div>\n\n      {history.length > 0 ? (\n        <div className=\"mt-2\">\n          <button\n            type=\"button\"\n            data-ic-history-toggle\n            aria-expanded={historyOpen}\n            aria-controls={historyPanelId}\n            onClick={() => setHistoryOpen((v) => !v)}\n            className=\"cursor-pointer rounded-sm border border-border px-2 py-1 font-mono text-[11px] tracking-wide text-ns-muted transition-colors duration-150 hover:border-foreground/20 hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ns-accent\"\n          >\n            History ({history.length})\n          </button>\n          {historyOpen ? (\n            <ul\n              id={historyPanelId}\n              className=\"mt-1.5 flex flex-col gap-1 rounded-sm border border-border p-2\"\n            >\n              {history.map((h) => (\n                <li\n                  key={`${h.id}-${h.at}`}\n                  data-ic-history-item\n                  className=\"flex items-baseline justify-between gap-3 font-mono text-[11px]\"\n                >\n                  <span className=\"truncate text-foreground\">{h.title}</span>\n                  <span className=\"shrink-0 text-ns-muted\">{h.reason}</span>\n                </li>\n              ))}\n            </ul>\n          ) : null}\n        </div>\n      ) : null}\n\n      {/* single shared announcer: politeness swaps between info and error by\n          remounting on `seq`, since a live region's live-ness is typically\n          fixed at first AT encounter — physics-only reflow never touches\n          this, so an existing toast is never re-announced */}\n      <div key={live.seq} role=\"status\" aria-live={live.level} aria-atomic=\"true\" className=\"sr-only\">\n        {live.text}\n      </div>\n    </div>\n  );\n});\n",
      "type": "registry:ui",
      "target": "components/ui/toast-newton-cradle.tsx"
    }
  ],
  "cssVars": {
    "theme": {
      "color-ns-muted": "var(--ns-muted)",
      "color-ns-accent": "var(--ns-accent)"
    },
    "light": {
      "ns-muted": "#4d4d4d",
      "ns-accent": "#006bff"
    },
    "dark": {
      "ns-muted": "#8f8f8f"
    }
  },
  "meta": {
    "collection": "loud",
    "tags": [
      "toast",
      "notification",
      "queue",
      "micro-interaction",
      "aria-live",
      "feedback",
      "physics"
    ],
    "instruction": "A toast stack, capped at `maxVisible` (default 4), choreographed as a Newton's cradle rather than a generic slide/scale stack. RENDERING: plain DOM cards in a vertical flex column (severity icon, truncated title, optional mono message, dismiss button), newest on top; every transform is written directly via the Web Animations API on refs, not React state, so no canvas and no per-frame re-render. MOTION: a pushed toast enters at the top on an accelerating ease-in curve (cubic-bezier(.55,.06,.68,.19), 200ms, translateY -26px to 0 plus a 0.97-to-1 scale) reading as a released cradle ball picking up speed as it swings in and 'strikes' the queue. The instant it lands, every OTHER currently-visible toast (every toast except the new arrival) plays a 60ms shunt: translateY 0 to 3px and back, staggered 35ms deeper per row via the animation's own delay — a fast domino of tiny nudges that visibly propagates from the impact point to the far end, letting a glance at the stagger read the stack's depth without counting cards. Under capacity that impulse simply dissipates: the deepest toast shunts and returns exactly like every other row. At capacity, the same event instead ejects the oldest (bottommost) toast: it is pulled out of the visible list into a brief inert overlay and, at the exact stagger slot it would have shunted at, plays a 340ms departure on the ease-out curve cubic-bezier(0.16,1,0.3,1) — translateY 0 to 10px (the 'arc') with a 2deg rotation at the 35% mark, continuing to translateY 46px, rotate 9deg, opacity 0 — matching the inherited momentum with a decelerating exit rather than an abrupt cut. Manual dismiss and auto-expiry both play a plain 150ms opacity fade (no shunt, no eject arc) before the toast leaves the array, since those departures were never caused by an incoming impulse. AUTO-DISMISS: duration prop, default 5000ms per toast (0 disables); a hover OR a keyboard focus on the card pauses its own timer, and the timer only resumes once both are clear, so a screen-reader user tabbed onto a toast is never raced by the clock. ACCESSIBILITY: a single shared aria-live announcer (visually hidden) is the only thing that speaks — remounted (via a React key on an internal sequence number) each time so a screen reader re-registers its live-ness, aria-live='assertive' for error toasts and 'polite' for info, announcing each toast's title and message exactly once on arrival; the physics-only reflow of existing toasts (shunt, eject, reposition) never touches the announcer, so nothing already announced gets re-announced. Each toast card itself is role=alert (error) or role=status (info), keyboard-focusable, with an aria-label naming its severity and title; Escape while a toast has focus dismisses that toast. A global F6 keydown sends focus straight into the region — to the newest toast if one is visible, otherwise the region landmark itself — a pane-jump convention for reaching the stack without tabbing through the whole page. Every evicted, expired, or manually dismissed toast is appended to a capped (12-entry) history list surfaced behind a 'History (n)' disclosure button (aria-expanded/aria-controls) below the stack, so an ejected toast — the whole point of the eviction policy — stays reachable and readable, tagged with why it left ('evicted' / 'expired' / 'dismissed'). REDUCED MOTION: every custom animation call above is swapped for a plain 150-200ms opacity fade in the same Web Animations calls (checked once via a matchMedia('(prefers-reduced-motion: reduce)') listener) — no shunt, no eject arc, no translateY at all — while the queue, capacity, eviction, timer, and history logic all run identically, so the cap and the eviction reason are still fully legible, just without the choreography. Colors are exclusively --background/--foreground/--ns-muted/--border/--ns-accent (--ns-accent only as the focus ring); severity is distinguished by icon shape and title weight, never by hue. Imperative handle exposes push/dismiss/clear; props: maxVisible, duration, initial (toasts seeded at mount), className, aria-label. Every timer, animation, and the window keydown listener is torn down on unmount."
  },
  "type": "registry:ui"
}