{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "changelog",
  "title": "Changelog",
  "description": "Remembers what each visitor has read: unread dots, a “since your last visit” line, dots that fade as you read, and a mark-all sweep. Releases hang off a measuring-tape rail.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "src/components/changelog/changelog.tsx",
      "content": "// Brio UI · changelog · MIT License · Copyright (c) 2026 Harjot Singh Rana · https://brioui.com/docs/components/changelog\n'use client'\n/*\n * Reduced-motion preference, hydration-safe: the server and the hydrating render both read\n * `false`, then React re-renders with the real value, so server HTML and the first client\n * render always agree.\n */\nconst REDUCED_QUERY = '(prefers-reduced-motion: reduce)'\nfunction subscribeReduced(onChange: () => void) {\n  const mq = window.matchMedia(REDUCED_QUERY)\n  mq.addEventListener('change', onChange)\n  return () => mq.removeEventListener('change', onChange)\n}\nconst getReduced = () => window.matchMedia(REDUCED_QUERY).matches\nconst getServerReduced = () => false\n\n/**\n * Changelog — \"What's new\" that knows what you haven't read.\n *\n * Releases hang off a rail: a plain 1px line with a node per version\n * (`rail=\"line\"`, default), or a measuring tape with versions as the major\n * ticks (`rail=\"tape\"`). It remembers each visitor: anything new since their last visit carries an\n * unread dot, and a \"Since your last visit\" line (like the \"new messages\" line\n * in a chat) separates new from old. Linger on a release and its dot fades;\n * \"Mark all as read\" clears the rest in a sweep down the list while the count\n * rolls to zero. Tag chips filter the list and the rest fold away.\n *\n * Functional:\n *   - per-visitor read state in localStorage: the set of release ids seen, so\n *     removing or renaming old releases can never make others look unread\n *   - \"Since your last visit\" dates from the start of the previous visit\n *     (stored apart from read updates, fixed for the browser session)\n *   - releases can be added any time; new ones show up unread automatically\n *   - tag filters with counts (case-insensitive: \"New\" and \"new\" are one\n *     tag), anchor link per release, locale dates\n *   - every UI string overridable through `labels`\n *   - date-only strings (\"2026-09-22\") are calendar days: formatted in UTC,\n *     so no time zone ever shows the day before, and server and browser agree\n *   - releases may arrive async: read state waits until there are releases,\n *     so `initialSeen` still decides what a first visit sees as unread\n *   - worst-case safe: long versions truncate (full text in the tooltip), long\n *     titles, URLs and hashes wrap, `<pre>` scrolls; many tags show the first\n *     `maxFilters` chips plus \"N more\"; duplicate-case tags on one release show\n *     once; invalid dates (\"2026-02-29\", \"not a date\") are left out with a dev\n *     warning; an empty `releases` shows `labels.empty`\n *   - narrow layout (tighter rail, icon-only \"Mark all\") on screens up to 560px\n *     and wherever the component itself is 440px wide or less (container query)\n *\n * SSR: dates use the visitor's locale by default; pass `locale` when rendering\n * on the server so the markup matches on hydration.\n *\n * Accessible: an ordered list of articles with headings, unread state spoken,\n * filters are pressed-state buttons, count updates announced politely.\n * Reduced motion: dots and entries simply appear and disappear.\n *\n * Corners follow --ui-radius-sm, --ui-radius-pill (see Theming → Corners).\n * Theme via library tokens (--ui-ink, --ui-surface, --ui-accent) or\n * --changelog-*.\n *\n * Requires: react >= 19, motion >= 11.\n */\nimport { AnimatePresence, motion } from 'motion/react'\nimport {\n  createElement,\n  useEffect,\n  useId,\n  useLayoutEffect,\n  useMemo,\n  useRef,\n  useState,\n  useSyncExternalStore,\n  type CSSProperties,\n  type ReactNode,\n} from 'react'\n\n/* Icons: Iconoir (MIT, © 2021 Luca Burgio, iconoir.com), inlined so the component stays dependency-free. */\nconst UI_ICONS = {\n  'view-grid': [['path', { d: 'M14 20.4V14.6C14 14.2686 14.2686 14 14.6 14H20.4C20.7314 14 21 14.2686 21 14.6V20.4C21 20.7314 20.7314 21 20.4 21H14.6C14.2686 21 14 20.7314 14 20.4Z' }], ['path', { d: 'M3 20.4V14.6C3 14.2686 3.26863 14 3.6 14H9.4C9.73137 14 10 14.2686 10 14.6V20.4C10 20.7314 9.73137 21 9.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z' }], ['path', { d: 'M14 9.4V3.6C14 3.26863 14.2686 3 14.6 3H20.4C20.7314 3 21 3.26863 21 3.6V9.4C21 9.73137 20.7314 10 20.4 10H14.6C14.2686 10 14 9.73137 14 9.4Z' }], ['path', { d: 'M3 9.4V3.6C3 3.26863 3.26863 3 3.6 3H9.4C9.73137 3 10 3.26863 10 3.6V9.4C10 9.73137 9.73137 10 9.4 10H3.6C3.26863 10 3 9.73137 3 9.4Z' }]],\n  'sparks': [['path', { d: 'M8 15C12.8747 15 15 12.949 15 8C15 12.949 17.1104 15 22 15C17.1104 15 15 17.1104 15 22C15 17.1104 12.8747 15 8 15Z' }], ['path', { d: 'M2 6.5C5.13376 6.5 6.5 5.18153 6.5 2C6.5 5.18153 7.85669 6.5 11 6.5C7.85669 6.5 6.5 7.85669 6.5 11C6.5 7.85669 5.13376 6.5 2 6.5Z' }]],\n  'graph-up': [['path', { d: 'M20 20H4V4' }], ['path', { d: 'M4 16.5L12 9L15 12L19.5 7.5' }]],\n  'tools': [['path', { d: 'M10.0503 10.6066L2.97923 17.6777C2.19818 18.4587 2.19818 19.7251 2.97923 20.5061V20.5061C3.76027 21.2872 5.0266 21.2872 5.80765 20.5061L12.8787 13.4351' }], ['path', { d: 'M17.1927 13.7994L21.071 17.6777C21.8521 18.4587 21.8521 19.7251 21.071 20.5061V20.5061C20.29 21.2872 19.0236 21.2872 18.2426 20.5061L12.0341 14.2977' }], ['path', { d: 'M6.73267 5.90381L4.61135 6.61092L2.49003 3.07539L3.90424 1.66117L7.43978 3.78249L6.73267 5.90381ZM6.73267 5.90381L9.5629 8.73404' }], ['path', { d: 'M10.0503 10.6066C9.2065 8.45359 9.37147 5.62861 11.111 3.8891C12.8505 2.14958 16.0607 1.76778 17.8285 2.82844L14.7878 5.86911L14.5052 8.98015L17.6162 8.69754L20.6569 5.65686C21.7176 7.42463 21.3358 10.6349 19.5963 12.3744C17.8567 14.1139 15.0318 14.2789 12.8788 13.435' }]],\n  'label': [['path', { d: 'M3 17.4V6.6C3 6.26863 3.26863 6 3.6 6H16.6789C16.8795 6 17.0668 6.10026 17.1781 6.26718L20.7781 11.6672C20.9125 11.8687 20.9125 12.1313 20.7781 12.3328L17.1781 17.7328C17.0668 17.8997 16.8795 18 16.6789 18H3.6C3.26863 18 3 17.7314 3 17.4Z' }]],\n  'double-check': [['path', { d: 'M1.5 12.5L5.57574 16.5757C5.81005 16.8101 6.18995 16.8101 6.42426 16.5757L9 14' }], ['path', { d: 'M16 7L12 11' }], ['path', { d: 'M7 12L11.5757 16.5757C11.8101 16.8101 12.1899 16.8101 12.4243 16.5757L22 7' }]],\n  'page': [['path', { d: 'M4 21.4V2.6C4 2.26863 4.26863 2 4.6 2H16.2515C16.4106 2 16.5632 2.06321 16.6757 2.17574L19.8243 5.32426C19.9368 5.43679 20 5.5894 20 5.74853V21.4C20 21.7314 19.7314 22 19.4 22H4.6C4.26863 22 4 21.7314 4 21.4Z' }], ['path', { d: 'M8 10L16 10' }], ['path', { d: 'M8 18L16 18' }], ['path', { d: 'M8 14L12 14' }], ['path', { d: 'M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20' }]],\n  'nav-arrow-down': [['path', { d: 'M6 9L12 15L18 9' }]],\n  'check-circle': [['path', { d: 'M7 12.5L10 15.5L17 8.5' }], ['path', { d: 'M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z' }]],\n} as const satisfies Record<string, readonly (readonly [string, Record<string, string>])[]>\n\ntype UiIconName = keyof typeof UI_ICONS\n\nfunction UiIcon({ name, size = 16, className }: { name: UiIconName; size?: number; className?: string }) {\n  return (\n    <svg className={['ui-icon', className].filter(Boolean).join(' ')} viewBox=\"0 0 24 24\" width={size} height={size} fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n      {UI_ICONS[name].map(([tag, attrs], i) => createElement(tag, { key: i, ...attrs }))}\n    </svg>\n  )\n}\n\n/** One release in the list. */\nexport type Release = {\n  /**\n   * Shown as `v` + version. A version that already starts with `v` or `V` (`'v2.4.0'`) is shown as\n   * given. Version string, shown as \"v\" + version (\"v\" is only added when it doesn't already start\n   * with v / V).\n   */\n  version: string\n  /**\n   * ISO date. A plain `YYYY-MM-DD` is a calendar day, formatted in UTC so it never shows as the day\n   * before. A full timestamp is shown in the visitor's time zone. A date that doesn't exist\n   * (`'2026-02-29'`) or can't be parsed is left out, with a one-time console warning in\n   * development. Years before 100 (`'0001-01-01'`) are kept as written. A plain \"YYYY-MM-DD\" is\n   * treated as a calendar day (no time zone shift). Invalid dates are left out (dev warning).\n   */\n  date: string\n  /** Release heading. */\n  title: string\n  /**\n   * Tag chips and filters. `New`, `Improved` and `Fixed` (any case) get their own colour and icon;\n   * other tags get a neutral chip. Filters are case-insensitive: `New` and `new` are one chip\n   * (labelled with the first spelling in the list) and one count. Case-insensitive duplicates on\n   * one release (`['fixed', 'FIXED']`) show once; empty tags are ignored. A long tag is truncated\n   * with the full text as a tooltip.\n   */\n  tags?: string[]\n  /** Release notes, rendered as given (paragraphs, lists…). */\n  body?: ReactNode\n  /**\n   * Anchor + storage id. Defaults to \"v\" + version (minus any leading v / V) with every run of\n   * non-alphanumerics turned into \"-\" (\"2.3.0\" and \"v2.3.0\" → \"v2-3-0\"). `2.3.0` and `v2.3.0` both\n   * become `v2-3-0`. Must be unique within one changelog.\n   *\n   * @default `\"v\"` + version (minus a leading `v`), non-alphanumerics → `-`\n   */\n  id?: string\n}\n\n/** Props for {@link Changelog}. */\nexport type ChangelogProps = {\n  /** Newest first. Releases can be added at any time; new ones show up unread. */\n  releases: Release[]\n  /**\n   * localStorage key. The value is `{ seen: string[], at: number, visit: number }`: the ids read,\n   * when that list was last saved, and when the latest visit started. `sessionStorage` key ``\n   * `${storageKey}:last-visit` `` pins the previous visit's date for the rest of the browser\n   * session, so reloads don't move the divider. localStorage key for the visitor's read state.\n   *\n   * @default 'changelog'\n   */\n  storageKey?: string\n  /**\n   * Release version (`'2.3.0'` or `'v2.3.0'`) or id (`'v2-3-0'`). On a first visit, releases newer\n   * than it start unread; it and older ones are seen. A value matching no release makes every\n   * release unread. Accepts the release id / slug (\"v2-3-0\") or its version (\"2.3.0\", \"v2.3.0\").\n   * Default: only the newest is unread.\n   *\n   * @default only the newest is unread\n   */\n  initialSeen?: string\n  /**\n   * Prepended to each release's anchor id and link (`#${anchorPrefix}${id}`). Leave empty for plain\n   * deep links (`#v2-3-0`); set it when two changelogs on one page share release ids.\n   * @default ''\n   */\n  anchorPrefix?: string\n  /**\n   * UI strings. See [ChangelogLabels](#changeloglabels). English defaults; see `ChangelogLabels`.\n   *\n   * @default English\n   */\n  labels?: Partial<ChangelogLabels>\n  /**\n   * ms a release must stay on screen (60% visible) to count as read. ms a release must stay at\n   * least 60% visible to be marked read.\n   *\n   * @default 2500\n   */\n  dwell?: number\n  /**\n   * BCP 47 locale for dates. Defaults to the visitor's locale; pass it when rendering on the\n   * server.\n   *\n   * @default visitor's locale\n   */\n  locale?: string\n  /**\n   * Show tag filter chips with counts. Hidden when no release has tags.\n   *\n   * @default true\n   */\n  filters?: boolean\n  /**\n   * Tag chips shown before the rest fold behind an \"N more\" chip (`labels.moreFilters`), which\n   * expands them all and becomes \"Fewer\". The \"All\" chip and the active tag are always shown.\n   * Order: New, Improved, Fixed, then by number of releases, then alphabetically. New, Improved and\n   * Fixed come first, then by release count.\n   *\n   * @default 8\n   */\n  maxFilters?: number\n  /**\n   * `'tape'`: a measuring-tape rail with versions as major ticks. `'line'`: a 1px rail with a node\n   * per release.\n   *\n   * @default 'tape'\n   */\n  rail?: 'line' | 'tape'\n  /** Extra class on the root `<section class=\"cl-root\">`. */\n  className?: string\n  /** Inline styles on the root. Use it to set the `--changelog-*` variables. */\n  style?: CSSProperties\n}\n\n/** Every fixed UI string. */\nexport type ChangelogLabels = {\n  /** Accessible name of the root `<section>`. @default 'Changelog' */\n  region: string\n  /** After the unread count: \"3 new since your last visit\". @default 'new since your last visit' */\n  newSince: string\n  /** Status line with nothing unread. @default 'You’re all caught up' */\n  caughtUp: string\n  /** \"Mark all as read\" button (label and tooltip). @default 'Mark all as read' */\n  markAll: string\n  /** Accessible name of the filter chip group. @default 'Filter releases' */\n  filters: string\n  /** First filter chip. @default 'All' */\n  all: string\n  /** Spoken before an unread release's title. @default 'Unread:' */\n  unread: string\n  /** Heading of the divider above the releases from before the last visit (the last-visit date follows it). @default 'Before your last visit' */\n  sinceLastVisit: string\n  /** Chip under the version of each release that came out since the last visit. @default 'New to you' */\n  newToYou: string\n  /** Chip that reveals the folded tag filters. @default n => `${n} more` */\n  moreFilters: (hidden: number) => string\n  /** Chip that folds the extra tag filters again. @default 'Fewer' */\n  fewerFilters: string\n  /** Shown instead of the list when `releases` is empty. @default 'No releases yet' */\n  empty: string\n  /**\n   * Display text of a tag, e.g. t => ({ New: 'جديد', Improved: 'محسّن' })[t] ?? t. Translates the\n   * chip without changing its colour, icon or filter (those follow the tag as written in `releases`).\n   * @default t => t\n   */\n  tag: (tag: string) => string\n}\n\nconst DEFAULT_LABELS: ChangelogLabels = {\n  region: 'Changelog',\n  newSince: 'new since your last visit',\n  caughtUp: 'You’re all caught up',\n  markAll: 'Mark all as read',\n  filters: 'Filter releases',\n  all: 'All',\n  unread: 'Unread:',\n  sinceLastVisit: 'Before your last visit',\n  newToYou: 'New to you',\n  moreFilters: n => `${n} more`,\n  fewerFilters: 'Fewer',\n  empty: 'No releases yet',\n  tag: t => t,\n}\n\n/* stored as { seen, at, visit }: the ids read, when that list was last saved, and when the latest visit started */\ntype ReadState = { seen: string[] }\ntype Stored = ReadState & { at?: number; visit?: number }\n\nconst EASE_OUT = [0.23, 1, 0.32, 1] as const\nconst stripV = (version: string) => version.replace(/^v(?=\\d|$)/i, '')\nconst slug = (version: string) => version.replace(/[^a-zA-Z0-9]+/g, '-')\nconst idOf = (r: Release) => r.id ?? `v${slug(stripV(r.version))}`\n/** \"v\" + version, unless the version already carries it. */\nconst versionLabel = (version: string) => (/^v/i.test(version) ? version : `v${version}`)\n/** Other names a release answers to: its version (with or without \"v\") and the pre-fix id \"vv2-3-0\". Lowercased. */\nconst aliasesOf = (r: Release) =>\n  [r.version, stripV(r.version), `v${stripV(r.version)}`, r.id ? '' : `v${slug(r.version)}`].filter(Boolean).map(a => a.toLowerCase())\nconst TAG_TONE: Record<string, string> = { new: 'new', improved: 'improved', fixed: 'fixed' }\nconst TAG_ICON: Record<string, UiIconName> = { new: 'sparks', improved: 'graph-up', fixed: 'tools' }\nconst tagIcon = (t: string): UiIconName => TAG_ICON[t.toLowerCase()] ?? 'label'\nconst DAY = /^(\\d{4})-(\\d{2})-(\\d{2})$/\n\n// `process.env.NODE_ENV` is replaced at build time by most bundlers; where it\n// isn't and `process` doesn't exist, warn anyway (each warning fires once)\ndeclare const process: { env: Record<string, string | undefined> }\nconst warned = new Set<string>()\nfunction devWarn(message: string) {\n  let dev = true\n  try {\n    dev = process.env.NODE_ENV !== 'production'\n  } catch {\n    /* no process: treat as development */\n  }\n  if (!dev || warned.has(message)) return\n  warned.add(message)\n  console.warn(message)\n}\n\n/**\n * A calendar day (\"2026-09-22\") stays that day everywhere; full timestamps use the visitor's zone.\n * Returns null for a date that doesn't exist (\"2026-02-29\") or can't be parsed.\n */\nfunction formatDate(s: string, day: Intl.DateTimeFormat, local: Intl.DateTimeFormat): string | null {\n  const m = DAY.exec(s)\n  if (m) {\n    const [y, mo, d] = [Number(m[1]), Number(m[2]), Number(m[3])]\n    // setUTCFullYear, not Date.UTC: Date.UTC maps years 0–99 to 1900–1999\n    const date = new Date(0)\n    date.setUTCFullYear(y, mo - 1, d)\n    if (date.getUTCFullYear() === y && date.getUTCMonth() === mo - 1 && date.getUTCDate() === d) return day.format(date)\n  } else {\n    const date = new Date(s)\n    if (!Number.isNaN(date.getTime())) return local.format(date)\n  }\n  devWarn(`Changelog: release date \"${s}\" is not a valid date; it is left out.`)\n  return null\n}\n\n/** Tags with case-insensitive duplicates removed (first spelling wins). */\nconst uniqueTags = (tags: string[] | undefined) => {\n  const seen = new Set<string>()\n  return (tags ?? []).filter(t => {\n    const k = t.toLowerCase()\n    if (!t.trim() || seen.has(k)) return false\n    seen.add(k)\n    return true\n  })\n}\n\nfunction Roll({ value, reduced }: { value: number; reduced: boolean }) {\n  const digits = String(Math.max(0, value)).split('')\n  return (\n    <span className=\"cl-roll\" aria-hidden>\n      {digits.map((d, i) => (\n        <span key={digits.length - i} className=\"cl-roll-col\">\n          <motion.span\n            className=\"cl-roll-strip\"\n            initial={false}\n            animate={{ y: `${-Number(d) * 1.2}em` }}\n            transition={reduced ? { duration: 0 } : { type: 'spring', stiffness: 240, damping: 24 }}\n          >\n            {'0123456789'.split('').map(n => (\n              <span key={n}>{n}</span>\n            ))}\n          </motion.span>\n        </span>\n      ))}\n    </span>\n  )\n}\n\n/**\n * Release list that remembers, per visitor, what they have read: unread\n * dots, a \"Since your last visit\" divider, dwell-to-read, \"Mark all as\n * read\", and tag filters. Read state lives in localStorage under `storageKey`.\n */\nexport function Changelog({\n  releases,\n  storageKey = 'changelog',\n  initialSeen,\n  anchorPrefix = '',\n  labels: labelsProp,\n  dwell = 2500,\n  locale,\n  filters = true,\n  maxFilters = 8,\n  rail = 'tape',\n  className,\n  style,\n}: ChangelogProps) {\n  const reduced = useSyncExternalStore(subscribeReduced, getReduced, getServerReduced)\n  const labels: ChangelogLabels = { ...DEFAULT_LABELS, ...labelsProp }\n  const [state, setState] = useState<ReadState | null>(null)\n  const [lastVisit, setLastVisit] = useState<number | null>(null)\n  // what was new when this visit started: the divider marks this for the whole visit\n  const [sessionNew, setSessionNew] = useState<string[] | null>(null)\n  const [tag, setTag] = useState<string | null>(null)\n  const [allFilters, setAllFilters] = useState(false)\n  const uid = useId().replace(/[^a-zA-Z0-9_-]/g, '')\n  // ids being swept by \"Mark all as read\", in the order their dots clear\n  const [sweep, setSweep] = useState<string[] | null>(null)\n  const nodes = useRef(new Map<string, HTMLElement>())\n  const ids = useMemo(() => releases.map(idOf), [releases])\n  /* alias (version, \"v\"+version, pre-fix id) → id, for `initialSeen` and for read state saved under old ids */\n  const aliases = useMemo(() => {\n    const map = new Map<string, string>()\n    releases.forEach(r => aliasesOf(r).forEach(a => map.has(a) || map.set(a, idOf(r))))\n    return map\n  }, [releases])\n  const loadedKey = useRef<string | null>(null)\n  /** Start of the current visit, written with every save so read updates never move it. */\n  const visitRef = useRef<number | null>(null)\n  const sweepTimer = useRef(0)\n\n  /* load read state once releases exist (first visit: everything newer than initialSeen is unread) */\n  useEffect(() => {\n    // async releases start as []: seeding now would mark nothing seen and ignore initialSeen\n    if (!ids.length || loadedKey.current === storageKey) return\n    loadedKey.current = storageKey\n    setSessionNew(null)\n    const now = Date.now()\n    let saved: Stored | null = null\n    try {\n      const raw = localStorage.getItem(storageKey)\n      if (raw) saved = JSON.parse(raw)\n    } catch {\n      /* storage blocked */\n    }\n    const resolve = (key: string) => (ids.includes(key) ? key : aliases.get(key.toLowerCase()))\n    let seen: string[]\n    if (saved && Array.isArray(saved.seen)) {\n      seen = saved.seen.map(k => resolve(k) ?? k)\n    } else {\n      // first visit: everything from `initialSeen` down counts as already seen\n      const seenFrom = initialSeen ? resolve(initialSeen) : undefined\n      const from = initialSeen ? (seenFrom ? ids.indexOf(seenFrom) : -1) : 1\n      seen = ids.slice(from < 0 ? ids.length : from)\n    }\n    /* \"last visit\" = start of the previous visit, pinned in sessionStorage so reloads in this session keep it */\n    let last: number | null = saved ? (saved.visit ?? saved.at ?? null) : null\n    let sameSession = false\n    try {\n      const pinned = sessionStorage.getItem(`${storageKey}:last-visit`)\n      if (pinned !== null) {\n        sameSession = true\n        last = pinned ? Number(pinned) : null\n      } else sessionStorage.setItem(`${storageKey}:last-visit`, last ? String(last) : '')\n    } catch {\n      /* storage blocked */\n    }\n    visitRef.current = sameSession ? (saved?.visit ?? now) : now\n    setState({ seen })\n    setLastVisit(last)\n    try {\n      localStorage.setItem(storageKey, JSON.stringify({ seen, at: saved?.at ?? now, visit: visitRef.current }))\n    } catch {\n      /* storage blocked */\n    }\n  }, [storageKey, ids, aliases, initialSeen])\n\n  useEffect(() => () => clearTimeout(sweepTimer.current), [])\n\n  const persist = (next: ReadState) => {\n    setState(next)\n    try {\n      localStorage.setItem(storageKey, JSON.stringify({ ...next, at: Date.now(), visit: visitRef.current ?? Date.now() }))\n    } catch {\n      /* storage blocked */\n    }\n  }\n\n  const isUnread = (id: string) => !!state && !sweep && !state.seen.includes(id)\n  const unreadIds = ids.filter(isUnread)\n\n  /* snapshot the visit's new releases once; releases added later join it (derived during render) */\n  const [snapFor, setSnapFor] = useState<{ state: ReadState | null; ids: string[] }>({ state: null, ids })\n  if (state && (snapFor.state !== state || snapFor.ids !== ids)) {\n    setSnapFor({ state, ids })\n    const unread = ids.filter(id => !state.seen.includes(id))\n    const cur = sessionNew\n    const added = cur ? unread.filter(id => !cur.includes(id)) : unread\n    if (!cur) setSessionNew(unread)\n    else if (added.length) setSessionNew([...added, ...cur])\n  }\n\n  const lastNewIdx = sessionNew?.length ? Math.max(...sessionNew.map(id => ids.indexOf(id))) : -1\n\n  /* the observer lives for the component's life; it reads unread state from here */\n  const unreadRef = useRef(isUnread)\n  useLayoutEffect(() => {\n    unreadRef.current = isUnread\n  })\n  const io = useRef<IntersectionObserver | null>(null)\n  // dwell timers live outside any effect's lifetime: re-renders (which re-attach refs) never reset them\n  const timers = useRef(new Map<string, number>())\n\n  /* reading = lingering: an entry mostly on screen for `dwell` ms is marked read */\n  useEffect(() => {\n    const running = timers.current\n    const observer = new IntersectionObserver(\n      entries => {\n        for (const e of entries) {\n          const id = (e.target as HTMLElement).dataset.id!\n          if (e.isIntersecting && e.intersectionRatio >= 0.6) {\n            if (!running.has(id) && unreadRef.current(id)) {\n              running.set(\n                id,\n                window.setTimeout(() => {\n                  running.delete(id)\n                  if (!nodes.current.has(id)) return // filtered away or removed meanwhile\n                  setState(cur => {\n                    if (!cur || cur.seen.includes(id)) return cur\n                    const next = { seen: [...cur.seen, id] }\n                    try {\n                      localStorage.setItem(storageKey, JSON.stringify({ ...next, at: Date.now(), visit: visitRef.current ?? Date.now() }))\n                    } catch {\n                      /* storage blocked */\n                    }\n                    return next\n                  })\n                }, dwell),\n              )\n            }\n          } else if (running.has(id)) {\n            clearTimeout(running.get(id))\n            running.delete(id)\n          }\n        }\n      },\n      { threshold: [0, 0.6, 1] },\n    )\n    io.current = observer\n    nodes.current.forEach(el => observer.observe(el))\n    return () => {\n      observer.disconnect()\n      io.current = null\n      running.forEach(t => clearTimeout(t))\n      running.clear()\n    }\n  }, [dwell, storageKey])\n\n  /* once read state loads, re-check what is already on screen (no scroll needed) */\n  const loaded = state !== null\n  useEffect(() => {\n    const observer = io.current\n    if (!loaded || !observer) return\n    nodes.current.forEach(el => {\n      observer.unobserve(el)\n      observer.observe(el)\n    })\n  }, [loaded])\n\n  const markAll = () => {\n    if (!unreadIds.length) return\n    if (reduced) {\n      persist({ seen: [...new Set([...(state?.seen ?? []), ...ids])] })\n      setSessionNew([])\n      return\n    }\n    // dots clear in a cascade top to bottom, then the state settles\n    const order = unreadIds\n    setSweep(order)\n    clearTimeout(sweepTimer.current)\n    sweepTimer.current = window.setTimeout(() => {\n      persist({ seen: [...new Set([...(state?.seen ?? []), ...ids])] })\n      setSessionNew([])\n      setSweep(null)\n    }, 120 + order.length * 70 + 250) // outlasts the last dot (80ms + 70ms per dot + 220ms fade) by ~140ms\n  }\n\n  /* [key (lowercased), label (first spelling seen), count]: \"New\" and \"new\" are one tag */\n  const allTags = useMemo(() => {\n    const found = new Map<string, { label: string; n: number }>()\n    releases.forEach(r =>\n      uniqueTags(r.tags).forEach(label => {\n        const k = label.toLowerCase()\n        const hit = found.get(k)\n        if (hit) hit.n++\n        else found.set(k, { label, n: 1 })\n      }),\n    )\n    const rank = (k: string) => ['new', 'improved', 'fixed'].indexOf(k)\n    // stable order: New, Improved, Fixed, then the most used, then alphabetically\n    return [...found.entries()]\n      .map(([k, v]) => [k, v.label, v.n] as const)\n      .sort(([a, , na], [b, , nb]) => {\n        const ra = rank(a)\n        const rb = rank(b)\n        if (ra >= 0 || rb >= 0) return (ra < 0 ? 99 : ra) - (rb < 0 ? 99 : rb)\n        return nb - na || a.localeCompare(b)\n      })\n  }, [releases])\n\n  const visible = tag ? releases.filter(r => r.tags?.some(t => t.toLowerCase() === tag)) : releases\n  const fmt = useMemo(() => new Intl.DateTimeFormat(locale, { day: 'numeric', month: 'short', year: 'numeric' }), [locale])\n  const fmtDay = useMemo(\n    () => new Intl.DateTimeFormat(locale, { day: 'numeric', month: 'short', year: 'numeric', timeZone: 'UTC' }),\n    [locale],\n  )\n  const count = sweep ? 0 : unreadIds.length\n  const sweepOrder = (id: string) => sweep?.indexOf(id) ?? 0\n  /* many tags: the first `maxFilters` chips (plus the active one), the rest behind \"N more\" */\n  const chipCap = Math.max(1, Math.floor(Number.isFinite(maxFilters) ? maxFilters : 8))\n  const folded = !allFilters && allTags.length > chipCap + 1\n  const shownTags = folded ? allTags.filter((e, i) => i < chipCap || e[0] === tag) : allTags\n  const hiddenTags = allTags.length - shownTags.length\n\n  if (!releases.length) {\n    return (\n      <section className={['cl-root', className].filter(Boolean).join(' ')} data-rail={rail} data-empty=\"\" style={style} aria-label={labels.region}>\n        <ChangelogStyles />\n        <div className=\"cl-empty\">\n          <UiIcon name=\"page\" size={16} />\n          <span>{labels.empty}</span>\n        </div>\n      </section>\n    )\n  }\n\n  return (\n    <section className={['cl-root', className].filter(Boolean).join(' ')} data-rail={rail} style={style} aria-label={labels.region}>\n      <ChangelogStyles />\n      <header className=\"cl-head\">\n        <div className=\"cl-status\" aria-live=\"polite\">\n          <AnimatePresence mode=\"popLayout\" initial={false}>\n            {!state ? null : count > 0 ? (\n              <motion.span\n                key=\"new\"\n                className=\"cl-status-line\"\n                initial={reduced ? { opacity: 0 } : { y: '100%', opacity: 0 }}\n                animate={{ y: 0, opacity: 1 }}\n                exit={reduced ? { opacity: 0 } : { y: '-100%', opacity: 0 }}\n                transition={{ duration: 0.28, ease: EASE_OUT }}\n              >\n                <i className=\"cl-pulse\" aria-hidden />\n                {/* one run of text, so the flex gap never widens the space after the number */}\n                <span className=\"cl-status-text\">\n                  <Roll value={count} reduced={reduced} />\n                  <span className=\"cl-sr\">{count}</span>\n                  {` ${labels.newSince}`}\n                </span>\n              </motion.span>\n            ) : (\n              <motion.span\n                key=\"caught\"\n                className=\"cl-status-line\"\n                initial={reduced ? { opacity: 0 } : { y: '100%', opacity: 0 }}\n                animate={{ y: 0, opacity: 1 }}\n                exit={reduced ? { opacity: 0 } : { y: '-100%', opacity: 0 }}\n                transition={{ duration: 0.28, ease: EASE_OUT, delay: reduced ? 0 : 0.15 }}\n              >\n                <UiIcon name=\"check-circle\" size={16} className=\"cl-ok\" />\n                <span className=\"cl-status-text\">{labels.caughtUp}</span>\n              </motion.span>\n            )}\n          </AnimatePresence>\n        </div>\n        <AnimatePresence initial={false}>\n          {state && count > 0 && (\n            <motion.button\n              type=\"button\"\n              className=\"cl-markall\"\n              onClick={markAll}\n              title={labels.markAll}\n              initial={{ opacity: 0 }}\n              animate={{ opacity: 1 }}\n              exit={{ opacity: 0 }}\n              whileTap={reduced ? undefined : { scale: 0.96 }}\n            >\n              <UiIcon name=\"double-check\" size={15} />\n              <span className=\"cl-markall-label\">{labels.markAll}</span>\n            </motion.button>\n          )}\n        </AnimatePresence>\n      </header>\n\n      {filters && allTags.length > 0 && (\n        <div className=\"cl-filters\" role=\"group\" aria-label={labels.filters}>\n          {[null, ...shownTags].map(entry => {\n            const t = entry ? entry[0] : null\n            const on = tag === t\n            const n = entry ? entry[2] : releases.length\n            const text = entry ? labels.tag(entry[1]) : labels.all\n            return (\n              <button\n                key={t ?? '\\u0000all'}\n                type=\"button\"\n                aria-pressed={on}\n                className=\"cl-chip\"\n                title={text.length > 24 ? text : undefined}\n                onClick={() => setTag(t)}\n              >\n                {on && (\n                  <motion.span\n                    layoutId={`cl-${uid}-chip`}\n                    className=\"cl-chip-bg\"\n                    transition={reduced ? { duration: 0 } : { type: 'spring', visualDuration: 0.3, bounce: 0.2 }}\n                  />\n                )}\n                <UiIcon name={t ? tagIcon(t) : 'view-grid'} size={14} className=\"cl-chip-icon\" />\n                <span className=\"cl-chip-label\">{text}</span>\n                <span className=\"cl-chip-n\">{n}</span>\n              </button>\n            )\n          })}\n          {(folded || allFilters) && allTags.length > chipCap + 1 && (\n            <button type=\"button\" className=\"cl-chip cl-chip-more\" aria-expanded={!folded} onClick={() => setAllFilters(!allFilters)}>\n              <UiIcon name=\"nav-arrow-down\" size={14} className=\"cl-chip-icon\" />\n              <span className=\"cl-chip-label\">{folded ? labels.moreFilters(hiddenTags) : labels.fewerFilters}</span>\n            </button>\n          )}\n        </div>\n      )}\n\n      <ol className=\"cl-list\">\n        <AnimatePresence initial={false}>\n          {visible.map(r => {\n            const id = idOf(r)\n            const unread = isUnread(id)\n            const idx = ids.indexOf(id)\n            const dateText = formatDate(r.date, fmtDay, fmt)\n            const tags = uniqueTags(r.tags)\n            return [\n                <motion.li\n                  key={id}\n                  ref={el => {\n                    // re-attach on every render is cheap: observe() re-reports, and a running timer is kept\n                    const prev = nodes.current.get(id)\n                    if (el) {\n                      if (prev !== el) {\n                        if (prev) io.current?.unobserve(prev)\n                        nodes.current.set(id, el)\n                        io.current?.observe(el)\n                      }\n                    } else if (prev) {\n                      io.current?.unobserve(prev)\n                      nodes.current.delete(id)\n                    }\n                  }}\n                  data-id={id}\n                  id={`${anchorPrefix}${id}`}\n                  className=\"cl-rel\"\n                  data-unread={unread || undefined}\n                  initial={reduced ? { opacity: 0 } : { opacity: 0, height: 0 }}\n                  animate={{ opacity: 1, height: 'auto' }}\n                  exit={reduced ? { opacity: 0 } : { opacity: 0, height: 0 }}\n                  transition={{ duration: 0.34, ease: [0.32, 0.72, 0, 1] }}\n                >\n                  <div className=\"cl-mark\">\n                    <a\n                      className=\"cl-version\"\n                      href={`#${anchorPrefix}${id}`}\n                      title={versionLabel(r.version).length > 8 ? versionLabel(r.version) : undefined}\n                    >\n                      {versionLabel(r.version)}\n                    </a>\n                    {dateText !== null && <time dateTime={r.date}>{dateText}</time>}\n                    {/* every release since the last visit says so, read or not: the divider then only heads the older ones */}\n                    {!tag && lastNewIdx < ids.length - 1 && sessionNew?.includes(id) && <span className=\"cl-fresh\">{labels.newToYou}</span>}\n                  </div>\n                  <article className=\"cl-entry\" aria-labelledby={`cl-${uid}-${id}-title`}>\n                    <h3 className=\"cl-title\" id={`cl-${uid}-${id}-title`}>\n                      <AnimatePresence initial={false}>\n                        {(unread || sweep?.includes(id)) && (\n                          <motion.span\n                            key=\"dot\"\n                            className=\"cl-dot\"\n                            initial={reduced ? { opacity: 0 } : { scale: 0 }}\n                            animate={sweep && !reduced ? { scale: 0, opacity: 0 } : { scale: 1, opacity: 1 }}\n                            exit={reduced ? { opacity: 0 } : { scale: 0, opacity: 0 }}\n                            transition={\n                              sweep && !reduced\n                                ? { duration: 0.22, ease: EASE_OUT, delay: 0.08 + Math.min(sweepOrder(id), 10) * 0.07 }\n                                : { type: 'spring', visualDuration: 0.3, bounce: 0.4 }\n                            }\n                          >\n                            <span className=\"cl-sr\">{labels.unread} </span>\n                          </motion.span>\n                        )}\n                      </AnimatePresence>\n                      <span className=\"cl-title-text\" dir=\"auto\">\n                        {r.title}\n                      </span>\n                    </h3>\n                    {tags.length > 0 && (\n                      <p className=\"cl-tags\">\n                        {tags.map(t => (\n                          <span\n                            key={t}\n                            className=\"cl-tag\"\n                            data-tone={TAG_TONE[t.toLowerCase()] ?? 'other'}\n                            title={labels.tag(t).length > 20 ? labels.tag(t) : undefined}\n                          >\n                            <UiIcon name={tagIcon(t)} size={11} />\n                            <span className=\"cl-tag-text\" dir=\"auto\">\n                              {labels.tag(t)}\n                            </span>\n                          </span>\n                        ))}\n                      </p>\n                    )}\n                    {r.body && (\n                      <div className=\"cl-body\" dir=\"auto\">\n                        {r.body}\n                      </div>\n                    )}\n                  </article>\n                </motion.li>,\n                !tag && idx === lastNewIdx && idx < ids.length - 1 && (\n                  <motion.li\n                    key={`${id}-divider`}\n                    className=\"cl-divider\"\n                    aria-hidden\n                    initial={reduced ? { opacity: 0 } : { opacity: 0, height: 0 }}\n                    animate={{ opacity: 1, height: 'auto' }}\n                    exit={reduced ? { opacity: 0 } : { opacity: 0, height: 0 }}\n                    transition={{ duration: 0.3, ease: EASE_OUT }}\n                  >\n                    <span>\n                      <span className=\"cl-divider-text\">\n                        {labels.sinceLastVisit}\n                        {lastVisit ? ` · ${fmt.format(new Date(lastVisit))}` : ''}\n                      </span>\n                    </span>\n                  </motion.li>\n                ),\n              ]\n          })}\n        </AnimatePresence>\n      </ol>\n    </section>\n  )\n}\n\n/* ────────────────────────────────────────────────────────────────────────── */\n/* Styles — injected once, hoisted by React 19                               */\n/* ────────────────────────────────────────────────────────────────────────── */\n\nfunction ChangelogStyles() {\n  return (\n    <style href=\"changelog\" precedence=\"medium\">\n      {CSS}\n    </style>\n  )\n}\n\nconst CSS = /* css */ `\n.cl-root {\n  --_ink: var(--changelog-ink, var(--ui-ink, #17140f));\n  --_radius-sm: var(--ui-radius-sm, 8px);\n  --_pill: var(--ui-radius-pill, 999px);\n  --_accent: var(--changelog-accent, var(--ui-accent, #d4452b));\n  --_mono: var(--changelog-mono, var(--ui-font-mono, ui-monospace, Menlo, monospace));\n  --_line: color-mix(in oklab, var(--_ink) 13%, transparent);\n  --_muted: color-mix(in oklab, var(--_ink) 62%, transparent);\n  --_ok: var(--changelog-ok, var(--ui-ok, #2f7d4f));\n  --_info: var(--changelog-info, var(--ui-info, #3f7fbf));\n  --_surface: var(--changelog-surface, var(--ui-surface, #fbf8f1));\n  --_rail: 112px;\n  --_gap: 26px;\n  color: var(--_ink);\n  -webkit-tap-highlight-color: transparent;\n  /* layout follows the component's width, not the viewport; min-width 0 so it never forces a grid/flex parent wide */\n  container-type: inline-size;\n  min-width: 0;\n}\n.cl-sr {\n  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;\n  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;\n}\n\n.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }\n/* one 22px line normally; a long status wraps instead of being squeezed away by the button */\n.cl-status { position: relative; display: flex; min-height: 22px; overflow: hidden; flex: 1 1 0; min-width: min(40%, 160px); }\n.cl-status-line { display: inline-flex; align-items: flex-start; gap: 8px; max-width: 100%; font-size: 14px; font-weight: 550; line-height: 22px; }\n.cl-status-line .cl-ok { flex: none; margin-top: 3px; color: var(--_ok); }\n.cl-status-text { display: inline-flex; align-items: flex-start; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }\n.cl-status-text .cl-roll { flex: none; margin-top: calc((22px - 1.2em) / 2); }\n.cl-pulse { flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--_accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_accent) 20%, transparent); }\n.cl-root .cl-markall {\n  flex: 0 1 auto; min-width: 30px; max-width: 50%; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; margin: 0; border: 0; border-radius: var(--_radius-sm); cursor: pointer;\n  font: inherit; font-size: 12.5px; color: var(--_muted); background: none;\n  transition: color 150ms ease, background-color 150ms ease;\n}\n.cl-markall .ui-icon { flex: none; }\n.cl-markall-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.cl-root .cl-markall:hover { color: var(--_ink); background: color-mix(in oklab, var(--_ink) 6%, transparent); }\n.cl-markall:focus-visible, .cl-chip:focus-visible, .cl-version:focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }\n\n.cl-filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 22px; }\n.cl-root .cl-chip {\n  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; margin: 0; min-width: 0; max-width: 100%;\n  border: 0; border-radius: var(--_pill); background: none; cursor: pointer;\n  font: inherit; font-size: 12.5px; color: var(--_muted); text-transform: capitalize;\n  transition: color 150ms ease;\n}\n.cl-root .cl-chip[aria-pressed=\"true\"], .cl-root .cl-chip:hover { color: var(--_ink); }\n.cl-chip-bg { position: absolute; inset: 0; border-radius: inherit; background: color-mix(in oklab, var(--_ink) 7%, transparent); }\n.cl-chip-label, .cl-chip-n, .cl-chip-icon { position: relative; }\n.cl-chip-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.cl-chip-icon { flex: none; opacity: 0.85; }\n.cl-chip-n { flex: none; font-family: var(--_mono); font-size: 11px; opacity: 0.7; }\n.cl-root .cl-chip-more { text-transform: none; }\n.cl-chip-more .cl-chip-icon { transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }\n.cl-chip-more[aria-expanded=\"true\"] .cl-chip-icon { transform: rotate(180deg); }\n\n.cl-root .cl-list { position: relative; list-style: none; margin: 0; padding: 0; }\n/* line: a plain 1px rail, each release a small node on it */\n.cl-list::before {\n  content: ''; position: absolute; top: 4px; bottom: 0; inset-inline-start: calc(var(--_rail) - 1px); width: 1px;\n  background: color-mix(in oklab, var(--_ink) 16%, transparent);\n}\n.cl-mark::after {\n  content: ''; position: absolute; inset-inline-end: -3px; top: 24px; width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box;\n  background: var(--_surface); border: 1.5px solid color-mix(in oklab, var(--_ink) 40%, transparent);\n  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms ease, border-color 200ms ease;\n}\n.cl-rel:hover .cl-mark::after { transform: scale(1.3); }\n/* the unread dot sits right on the rail, over the node, level with the title's first line */\n.cl-root[data-rail=\"line\"] .cl-dot { inset-inline-start: calc(-1 * var(--_gap) - 4.5px); top: calc(0.675em - 4px); margin-top: 0; }\n\n/* tape: a rail with minor ticks, versions as major ticks */\n.cl-root[data-rail=\"tape\"] .cl-list::before {\n  content: ''; position: absolute; top: 4px; bottom: 0; inset-inline-start: calc(var(--_rail) - 1px); width: 7px;\n  background: repeating-linear-gradient(to bottom, var(--_line) 0 1px, transparent 1px 9px);\n  border-inline-start: 1px solid color-mix(in oklab, var(--_ink) 24%, transparent);\n}\n.cl-root .cl-rel { position: relative; display: grid; grid-template-columns: var(--_rail) minmax(0, 1fr); overflow: hidden; margin: 0; }\n.cl-mark { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; padding: 18px 0 0; padding-inline-end: 18px; }\n.cl-root[data-rail=\"tape\"] .cl-mark::after {\n  /* the major tick */\n  inset-inline-end: -14px; top: 27px; width: 14px; height: 1.5px; border: 0; border-radius: 0; transform: none;\n  background: color-mix(in oklab, var(--_ink) 55%, transparent); transition: width 200ms ease, background-color 200ms ease;\n}\n.cl-root[data-rail=\"tape\"] .cl-rel[data-unread] .cl-mark::after { background: var(--_accent); }\n.cl-root[data-rail=\"tape\"] .cl-rel:hover .cl-mark::after { width: 20px; }\n/* chrome: a long version truncates (full text in the tooltip) instead of spilling out of the rail; the\n   padding lets a slightly-too-long one (\"v10.12.13\") use 10px of the gap before the rail first */\n.cl-root .cl-version {\n  box-sizing: border-box; max-width: calc(100% + 10px); margin-inline-end: -10px; padding-inline-end: 10px;\n  padding-block: 4px; margin-block: -4px;\n  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px/1.3 var(--_mono); color: var(--_ink); text-decoration: none;\n}\n.cl-fresh {\n  max-width: 100%; margin-top: 4px; padding: 1px 6px; border: 1px solid color-mix(in oklab, var(--_accent) 45%, transparent); border-radius: var(--_pill);\n  font: 500 9.5px/1.4 var(--_mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--_accent);\n  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;\n}\n.cl-mark time { max-width: 100%; font: 400 11px/1.3 var(--_mono); color: var(--_muted); white-space: nowrap; }\n\n.cl-entry { padding: 16px 0 26px; padding-inline-start: var(--_gap); min-width: 0; }\n.cl-root .cl-title { position: relative; display: flex; align-items: center; gap: 9px; max-width: 70ch; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }\n.cl-title-text { min-width: 0; }\n.cl-dot {\n  /* in the gutter at the end of the rail tick, so the title never shifts */\n  position: absolute; inset-inline-start: -17px; top: 50%; margin-top: -4px;\n  width: 8px; height: 8px; border-radius: 50%; background: var(--_accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--_accent) 18%, transparent); }\n.cl-root .cl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; }\n.cl-tag {\n  display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; box-sizing: border-box;\n  padding: 2px 7px; border-radius: calc(var(--_radius-sm) * 0.625); font: 500 10.5px/1.5 var(--_mono); letter-spacing: 0.04em; text-transform: uppercase;\n  background: color-mix(in oklab, var(--_ink) 6%, transparent); color: color-mix(in oklab, var(--_ink) 70%, transparent);\n}\n.cl-tag .ui-icon { flex: none; }\n.cl-tag-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.cl-tag[data-tone=\"new\"] { background: color-mix(in oklab, var(--_accent) 14%, transparent); color: var(--_accent); }\n.cl-tag[data-tone=\"improved\"] { background: color-mix(in oklab, var(--_info) 14%, transparent); color: color-mix(in oklab, var(--_info) 85%, var(--_ink)); }\n.cl-tag[data-tone=\"fixed\"] { background: color-mix(in oklab, var(--_ok) 15%, transparent); color: color-mix(in oklab, var(--_ok) 85%, var(--_ink)); }\n.cl-body { margin-top: 10px; min-width: 0; font-size: 14.5px; line-height: 1.6; color: color-mix(in oklab, var(--_ink) 78%, transparent); text-wrap: pretty; overflow-wrap: anywhere; }\n.cl-body pre { max-width: 100%; overflow-x: auto; overflow-wrap: normal; }\n.cl-body img, .cl-body video, .cl-body table { max-width: 100%; }\n.cl-body > :first-child { margin-top: 0; }\n.cl-body > :last-child { margin-bottom: 0; }\n.cl-body ul { padding-inline-start: 18px; }\n\n.cl-root .cl-divider { position: relative; margin: 0; overflow: hidden; }\n.cl-divider > span {\n  position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; padding-inline-start: calc(var(--_rail) + var(--_gap));\n  font: 500 10.5px/1 var(--_mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--_accent);\n}\n/* a long divider label wraps (extra line-height offset by the margin, so one line is unchanged) */\n.cl-root .cl-divider-text { display: block; min-width: 0; padding: 0; line-height: 1.35; margin-block: -0.175em; overflow-wrap: anywhere; text-wrap: balance; }\n.cl-divider > span::after { content: ''; flex: 1 0 24px; height: 1px; background: color-mix(in oklab, var(--_accent) 45%, transparent); }\n\n.cl-roll { display: inline-flex; line-height: 1.2; font-variant-numeric: tabular-nums; }\n.cl-roll-col { display: inline-block; height: 1.2em; overflow: hidden; }\n.cl-roll-strip { display: flex; flex-direction: column; }\n.cl-roll-strip > span { height: 1.2em; }\n\n.cl-empty { display: flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 14px; color: var(--_muted); text-wrap: pretty; overflow-wrap: anywhere; }\n.cl-empty .ui-icon { flex: none; }\n\n/* narrow: on small screens, and wherever the component itself is narrow (a sidebar, a card) */\n@media (max-width: 560px) {\n  .cl-list { --_rail: 78px; --_gap: 20px; }\n  /* the narrow rail can't fit \"Sep 22, 2026\" on one line: wrap instead of clipping the month */\n  .cl-mark time { white-space: normal; text-align: end; }\n  /* keep the whole status line: \"Mark all as read\" shrinks to its icon (name kept for assistive tech) */\n  .cl-root .cl-markall { width: 30px; padding: 0; justify-content: center; }\n  .cl-markall-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n}\n@container (max-width: 440px) {\n  .cl-list { --_rail: 78px; --_gap: 20px; }\n  /* the narrow rail can't fit \"Sep 22, 2026\" on one line: wrap instead of clipping the month */\n  .cl-mark time { white-space: normal; text-align: end; }\n  /* keep the whole status line: \"Mark all as read\" shrinks to its icon (name kept for assistive tech) */\n  .cl-root .cl-markall { width: 30px; padding: 0; justify-content: center; }\n  .cl-markall-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n}\n/* phones and narrow columns: the version and date move above the entry, so the text gets the full width */\n@container (max-width: 400px) {\n  .cl-list { --_rail: 5px; --_gap: 14px; }\n  .cl-root .cl-rel { grid-template-columns: minmax(0, 1fr); }\n  .cl-mark { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 16px 0 0; padding-inline-start: var(--_gap); }\n  .cl-root .cl-version { max-width: 60%; margin-inline-end: 0; padding-inline-end: 0; }\n  .cl-mark time { white-space: nowrap; text-align: left; }\n  .cl-mark::after { inset-inline-end: auto; inset-inline-start: 1px; top: 21px; }\n  .cl-root[data-rail=\"tape\"] .cl-mark::after { inset-inline-end: auto; inset-inline-start: 4px; top: 24px; }\n  .cl-entry { padding-top: 6px; }\n  .cl-root[data-rail=\"line\"] .cl-dot { display: none; }\n  /* many tags: the expanded chips scroll inside a short box instead of pushing the releases off-screen */\n  .cl-filters { max-height: 116px; overflow-y: auto; scrollbar-width: thin; }\n}\n/* touch: 44px targets for chips, the mark-all button and the version permalinks */\n@media (pointer: coarse) {\n  .cl-root :is(.cl-chip, .cl-markall) { min-height: 44px; }\n  .cl-root .cl-markall { min-width: 44px; }\n  .cl-root .cl-version { padding-block: 13px; margin-block: -13px; }\n}\n/* touch: 44px targets (WCAG AAA) where they fit; visual sizes on mouse and trackpad are unchanged */\n@media (pointer: coarse) {\n  .cl-root .cl-version { min-inline-size: 44px; }\n}\n`\n\nexport default Changelog\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "tier": "free",
    "version": "1.0.0",
    "docs": "https://brioui.com/docs/components/changelog",
    "license": "MIT"
  },
  "docs": "Docs: https://brioui.com/docs/components/changelog",
  "categories": [
    "Text"
  ],
  "type": "registry:ui"
}