{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "review-desk",
  "title": "Casefile, Legal review desk",
  "description": "A lawyer's desk with an AI assistant: pull contracts with needles, mark up a clause, check the answer's sources, redact, and seal before it leaves. A whole screen for a Next.js app, at /review-desk.",
  "dependencies": [],
  "registryDependencies": [
    "https://bevel-ui.vercel.app/r/bevel.json",
    "https://bevel-ui.vercel.app/r/approval.json",
    "https://bevel-ui.vercel.app/r/citation.json",
    "https://bevel-ui.vercel.app/r/keysort-filter.json",
    "https://bevel-ui.vercel.app/r/redaction.json",
    "https://bevel-ui.vercel.app/r/redline.json",
    "https://bevel-ui.vercel.app/r/stamp.json"
  ],
  "files": [
    {
      "path": "registry/bevel/blocks/review-desk/casefile/casefile-app.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { demoMilestone } from \"../shared/events\"\nimport { cn } from \"@/lib/utils\"\nimport {\n  KeysortFilter,\n  KeysortFilterCard,\n  KeysortFilterCount,\n  KeysortFilterDeck,\n  KeysortFilterNeedle,\n  KeysortFilterNeedles,\n} from \"@/components/ui/keysort-filter\"\nimport { Redline, RedlineChange, RedlineDocument, RedlineToolbar, type RedlineDecision } from \"@/components/ui/redline\"\nimport {\n  Citation,\n  CitationContent,\n  CitationLocation,\n  CitationQuote,\n  CitationSource,\n  CitationStatus,\n  CitationTrigger,\n} from \"@/components/ui/citation\"\nimport { Redaction } from \"@/components/ui/redaction\"\nimport {\n  Approval,\n  ApprovalActions,\n  ApprovalDescription,\n  ApprovalReject,\n  ApprovalSeal,\n  ApprovalSignature,\n  ApprovalSignatures,\n  ApprovalTitle,\n  type ApprovalState,\n} from \"@/components/ui/approval\"\nimport { Stamp, StampDetail } from \"@/components/ui/stamp\"\nimport { Legend } from \"../shared/environment\"\nimport { documentFace } from \"../shared/fonts\"\nimport { changeIds, contracts, needles, type Contract } from \"./contracts\"\n\nconst TODAY = \"17 Oct 2026\"\n\ntype Review = {\n  decisions: Record<string, RedlineDecision>\n  redacted: string[]\n  opened: number[]\n  approval: ApprovalState\n}\n\nconst emptyReview: Review = { decisions: {}, redacted: [], opened: [], approval: \"pending\" }\n\nfunction progressOf(contract: Contract, review: Review) {\n  const changes = changeIds(contract)\n  const decided = changes.filter((id) => review.decisions[id]).length\n  const redacted = contract.note.flags.filter((f) => review.redacted.includes(f.id)).length\n  const opened = contract.sources.filter((s) => review.opened.includes(s.n)).length\n  return {\n    changes: { done: decided, total: changes.length },\n    redactions: { done: redacted, total: contract.note.flags.length },\n    sources: { done: opened, total: contract.sources.length },\n    ready: decided === changes.length && redacted === contract.note.flags.length && opened === contract.sources.length,\n  }\n}\n\n/* The desk. Oak, lit from the upper left, with a grain that runs across it. */\nconst deskSurface: React.CSSProperties = {\n  backgroundColor: \"#3A2A1F\",\n  backgroundImage: [\n    \"radial-gradient(ellipse 80% 60% at 12% 0%, rgb(255 226 180 / 0.11), transparent 70%)\",\n    \"radial-gradient(ellipse 90% 70% at 100% 100%, rgb(0 0 0 / 0.32), transparent 70%)\",\n    \"repeating-linear-gradient(178deg, rgb(255 255 255 / 0.022) 0 2px, transparent 2px 9px, rgb(0 0 0 / 0.05) 9px 11px, transparent 11px 23px)\",\n    \"repeating-linear-gradient(181deg, transparent 0 41px, rgb(0 0 0 / 0.07) 41px 44px, transparent 44px 97px)\",\n  ].join(\", \"),\n}\n\n/* Paper lying on the desk: its shadow falls down and to the right, away from the light. */\nconst onDesk = \"shadow-[0_1px_1px_rgb(0_0_0/0.35),6px_14px_28px_-8px_rgb(0_0_0/0.6)]\"\n\n/* Words printed on the desk itself. */\nconst deskLegend = \"font-normal italic tracking-normal text-[17px] [text-shadow:0_1px_0_rgb(0_0_0/0.5)]\"\n\n/** Casefile: a legal review desk for one matter, with an AI assistant. */\nexport function CasefileApp() {\n  const [pushed, setPushed] = React.useState<string[]>([\"signed\", \"renews\"])\n  const [openId, setOpenId] = React.useState(\"msa\")\n  const [reviews, setReviews] = React.useState<Record<string, Review>>({})\n\n  const contract = contracts.find((c) => c.id === openId) ?? contracts[0]!\n  const review = reviews[contract.id] ?? emptyReview\n  const update = React.useCallback(\n    (id: string, patch: (r: Review) => Partial<Review>) =>\n      setReviews((all) => {\n        const current = all[id] ?? emptyReview\n        return { ...all, [id]: { ...current, ...patch(current) } }\n      }),\n    []\n  )\n  const sentCount = contracts.filter((c) => reviews[c.id]?.approval === \"approved\").length\n\n  const open = (id: string) => {\n    setOpenId(id)\n    // On a phone the desk is below the drawer: take the reader to it.\n    if (window.matchMedia(\"(max-width: 63.999rem)\").matches) {\n      document.getElementById(\"desk\")?.scrollIntoView({ behavior: \"smooth\", block: \"start\" })\n    }\n  }\n\n  return (\n    <div\n      className={cn(\n        documentFace.variable,\n        \"min-h-svh overflow-x-clip font-[family-name:var(--font-document)] text-[#E7DCCB]\",\n        \"[--foreground:#E7DCCB] [--muted-foreground:#B9A992] [--legend:#B9A992] [--ring:#C9B27A]\"\n      )}\n      style={deskSurface}\n    >\n      <main className=\"mx-auto max-w-[1360px] px-4 pt-6 pb-20 sm:px-8 lg:pt-10\">\n        <header className=\"flex flex-wrap items-end justify-between gap-x-8 gap-y-4\">\n          <FolderTab />\n          <div className=\"flex items-end gap-8\">\n            <p className=\"text-[17px] text-[#B9A992] [text-shadow:0_1px_0_rgb(0_0_0/0.5)]\">\n              Mira Castell has sent <span className=\"text-[#E7DCCB] tabular-nums\">{sentCount}</span> of {contracts.length}\n            </p>\n            <BankersLamp />\n          </div>\n        </header>\n\n        <div className=\"mt-8 grid gap-x-12 gap-y-12 lg:mt-10 lg:grid-cols-[minmax(0,29rem)_minmax(0,1fr)] [&>*]:min-w-0\">\n          <Drawer pushed={pushed} onPushedChange={setPushed} openId={contract.id} onOpen={open} reviews={reviews} />\n\n          <div className=\"flex min-w-0 flex-col gap-12\">\n            <Desk contract={contract} review={review} update={update} />\n            <div className=\"grid gap-x-10 gap-y-12 md:grid-cols-2 [&>*]:min-w-0\">\n              <CoverNote contract={contract} review={review} update={update} />\n              <Assistant contract={contract} review={review} update={update} />\n            </div>\n            <Outbox contract={contract} review={review} update={update} />\n          </div>\n        </div>\n      </main>\n    </div>\n  )\n}\n\n/** The banker's lamp, seen from above: green glass shade on a brass arm. Its light falls on the open contract. */\nfunction BankersLamp() {\n  return (\n    <div aria-hidden className=\"relative hidden h-24 w-56 lg:block\">\n      {/* Brass base and stem. */}\n      <span className=\"absolute top-1 left-1/2 size-14 -translate-x-1/2 rounded-full bg-[radial-gradient(circle_at_35%_30%,#E9CF8A,#9C7A35_60%,#5E4718)] shadow-[4px_10px_18px_-4px_rgb(0_0_0/0.7)]\" />\n      {/* The shade: a long half-cylinder of cased green glass. */}\n      <span className=\"absolute top-9 left-0 h-14 w-56 rounded-[28px] bg-[linear-gradient(180deg,#5FA571_0%,#1F6237_38%,#0E3A20_100%)] shadow-[inset_0_2px_0_rgb(255_255_255/0.35),inset_0_-3px_6px_rgb(0_0_0/0.5),6px_16px_24px_-6px_rgb(0_0_0/0.75)]\" />\n      <span className=\"absolute top-[42px] left-6 h-1.5 w-44 rounded-full bg-white/30 blur-[2px]\" />\n      {/* Brass end caps. */}\n      <span className=\"absolute top-9 left-0 h-14 w-3 rounded-l-[28px] bg-[linear-gradient(180deg,#E3C67E,#7D5F24)]\" />\n      <span className=\"absolute top-9 right-0 h-14 w-3 rounded-r-[28px] bg-[linear-gradient(180deg,#E3C67E,#7D5F24)]\" />\n    </div>\n  )\n}\n\n/** The matter's file folder, its typed label on the tab. */\nfunction FolderTab() {\n  return (\n    <div className=\"relative min-w-0 max-w-full\">\n      {/* The tab, rising from the folder's edge. */}\n      <div className={cn(\"relative z-10 inline-block max-w-full rounded-t-[10px] bg-[#D8BE8A] px-3 pt-3 pb-2\", \"shadow-[inset_0_1px_0_rgb(255_255_255/0.35)]\")}>\n        <div className=\"rounded-[2px] bg-[#FBF7EE] px-4 py-2 shadow-[0_1px_1px_rgb(0_0_0/0.25)]\">\n          <h1 className=\"text-[22px] leading-tight font-semibold text-[#2B2620] sm:text-[26px]\">\n            Northwind v. Halberd, supply dispute\n          </h1>\n          <p className=\"mt-0.5 text-[15px] text-[#6B6152]\">Matter 2026-0417, commercial litigation</p>\n        </div>\n      </div>\n      {/* The folder's front edge, running on under the papers. */}\n      <div aria-hidden className={cn(\"-mt-px h-7 w-[calc(100%+4rem)] max-w-[calc(100vw-2rem)] rounded-r-[6px] bg-[#CFB37C]\", onDesk)} />\n    </div>\n  )\n}\n\nfunction Drawer({\n  pushed,\n  onPushedChange,\n  openId,\n  onOpen,\n  reviews,\n}: {\n  pushed: string[]\n  onPushedChange: (value: string[]) => void\n  openId: string\n  onOpen: (id: string) => void\n  reviews: Record<string, Review>\n}) {\n  return (\n    <section id=\"drawer\" aria-labelledby=\"drawer-title\" className=\"flex scroll-mt-4 flex-col gap-3 lg:sticky lg:top-6 lg:self-start\">\n      <Legend id=\"drawer-title\" className={deskLegend}>\n        Drawer\n      </Legend>\n      {/* A card file box: walnut sides, the cards standing in its well. */}\n      <div className=\"rounded-[14px] bg-[#4A3526] p-1.5 sm:p-2.5 shadow-[inset_0_1px_0_rgb(255_255_255/0.12),0_2px_2px_rgb(0_0_0/0.4),8px_18px_36px_-10px_rgb(0_0_0/0.7)]\">\n        <div className=\"rounded-[8px] bg-[#241911] px-1.5 pt-4 pb-4 [--keysort-filter-column:2.3rem] sm:[--keysort-filter-column:3.5rem] shadow-[inset_0_6px_14px_rgb(0_0_0/0.65),inset_0_-1px_0_rgb(255_255_255/0.06)] sm:px-4 lg:[--keysort-filter-column:3.4rem]\">\n          <KeysortFilter aria-label=\"Contracts in this matter\" value={pushed} onValueChange={onPushedChange} className=\"text-[#E7DCCB]\">\n            <KeysortFilterNeedles className=\"[&_[data-slot=keysort-filter-needle]]:text-[12px] sm:[&_[data-slot=keysort-filter-needle]]:text-[13px]\">\n              {needles.map((n) => (\n                <KeysortFilterNeedle key={n.value} value={n.value}>\n                  {n.label}\n                </KeysortFilterNeedle>\n              ))}\n            </KeysortFilterNeedles>\n            <KeysortFilterDeck>\n              {contracts.map((c) => {\n                const isOpen = c.id === openId\n                const state = reviews[c.id]?.approval\n                return (\n                  <KeysortFilterCard\n                    key={c.id}\n                    notches={c.tags}\n                    data-open={isOpen ? \"\" : undefined}\n                    className=\"data-open:ring-2 data-open:ring-[#7FB08A] data-open:ring-offset-2 data-open:ring-offset-[#241911]\"\n                  >\n                    <button\n                      type=\"button\"\n                      onClick={() => onOpen(c.id)}\n                      aria-current={isOpen ? \"true\" : undefined}\n                      className=\"cursor-pointer rounded-sm text-left text-[14px] outline-none sm:text-[15px] hover:underline focus-visible:ring-2 focus-visible:ring-[#7FB08A]\"\n                    >\n                      {c.title}\n                      {state && (\n                        <span className=\"block text-[13px] font-normal italic opacity-80\">\n                          {state === \"approved\" ? \"Sent\" : \"Sent back\"}\n                        </span>\n                      )}\n                    </button>\n                  </KeysortFilterCard>\n                )\n              })}\n            </KeysortFilterDeck>\n            <KeysortFilterCount className=\"px-1 text-[15px] text-[#B9A992]\" />\n          </KeysortFilter>\n        </div>\n      </div>\n    </section>\n  )\n}\n\ntype PanelProps = {\n  contract: Contract\n  review: Review\n  update: (id: string, patch: (r: Review) => Partial<Review>) => void\n}\n\nfunction SentStamp({ className }: { className?: string }) {\n  return (\n    <Stamp tone=\"blue\" animate className={cn(\"pointer-events-none absolute\", className)}>\n      Sent\n      <StampDetail>{TODAY}</StampDetail>\n    </Stamp>\n  )\n}\n\n/** The hero: the open contract, under the lamp. */\nfunction Desk({ contract, review, update }: PanelProps) {\n  const sent = review.approval === \"approved\"\n  return (\n    <section id=\"desk\" aria-labelledby=\"desk-title\" className=\"relative flex scroll-mt-4 flex-col gap-3\">\n      <Legend id=\"desk-title\" className={deskLegend}>\n        On the desk\n      </Legend>\n      {/* The banker's lamp: a warm pool on the page, a little green from its shade. */}\n      <div\n        aria-hidden\n        className=\"pointer-events-none absolute -inset-x-16 -top-20 -bottom-24\"\n        style={{\n          background:\n            \"radial-gradient(ellipse 58% 52% at 50% 45%, rgb(255 238 200 / 0.34), rgb(170 215 160 / 0.12) 50%, transparent 74%)\",\n        }}\n      />\n      <div className=\"relative z-10 [--bevel-paper:oklch(0.965_0.014_85)] sm:rotate-[-0.6deg]\">\n        <Redline\n          key={contract.id}\n          className={cn(\"max-w-none\", onDesk)}\n          decisions={review.decisions}\n          onDecisionsChange={(decisions) => update(contract.id, () => ({ decisions }))}\n        >\n          <div className=\"flex flex-wrap items-start gap-x-4 gap-y-2 px-6 pt-6 sm:px-10 sm:pt-9\">\n            <div className=\"min-w-0 flex-1\">\n              <p className=\"text-[24px] leading-tight font-semibold text-(--bevel-paper-foreground) sm:text-[28px]\">\n                {contract.title}\n              </p>\n              <p className=\"mt-1 text-[15px] text-(--bevel-paper-muted)\">{contract.parties}</p>\n            </div>\n            <Stamp tone=\"red\" className=\"text-[15px]\">\n              Privileged\n            </Stamp>\n          </div>\n          <RedlineDocument className=\"px-6 pt-5 pb-7 text-[18px] leading-[2.1] sm:px-10 sm:text-[21px]\">\n            <strong>\n              {contract.clause.number} {contract.clause.heading}.\n            </strong>{\" \"}\n            {contract.clause.body.map((s, i) =>\n              typeof s === \"string\" ? (\n                <React.Fragment key={i}>{s}</React.Fragment>\n              ) : (\n                <RedlineChange key={s.change} id={s.change} deletion={s.deletion} insertion={s.insertion} />\n              )\n            )}\n          </RedlineDocument>\n          {sent ? (\n            <p className=\"border-t border-(--bevel-paper-rule) px-6 py-3 text-[15px] text-(--bevel-paper-muted) sm:px-10\">\n              Sent to {contract.note.to}. The clause is locked.\n            </p>\n          ) : (\n            <RedlineToolbar className=\"flex-wrap px-6 text-[15px] sm:px-10\" />\n          )}\n        </Redline>\n        {sent && <SentStamp className=\"right-8 bottom-16\" />}\n      </div>\n    </section>\n  )\n}\n\n/** The cover note, tucked under the contract, with the assistant's flags on a sticky note. */\nfunction CoverNote({ contract, review, update }: PanelProps) {\n  const progress = progressOf(contract, review)\n  const { note } = contract\n  const sent = review.approval === \"approved\"\n  const locked = review.approval !== \"pending\"\n  const flag = (id: string) => note.flags.find((f) => f.id === id)!\n\n  return (\n    <section aria-label=\"Cover note\" className=\"relative md:-mt-16 md:ml-2\">\n      <article\n        aria-label=\"Cover note, as the recipient will see it\"\n        className={cn(\n          \"bevel-paper relative flex flex-col gap-3 rounded-(--bevel-radius-xs) px-6 pt-6 pb-24 text-[15px] leading-relaxed md:rotate-[1.3deg] md:pt-20\",\n          onDesk\n        )}\n      >\n        <dl className=\"grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-0.5 border-b border-(--bevel-paper-rule) pb-3 text-[14px] text-(--bevel-paper-muted)\">\n          <dt>To</dt>\n          <dd className=\"break-words\">\n            {note.to}, {note.firm}\n          </dd>\n          <dt>Re</dt>\n          <dd>{note.subject}</dd>\n          <dt>Encl.</dt>\n          <dd>\n            Clause {contract.clause.number}, {progress.changes.done} of {progress.changes.total} edits decided\n          </dd>\n        </dl>\n        {note.body.map((paragraph, i) => (\n          <p key={i}>\n            {paragraph.map((seg, j) => {\n              if (typeof seg === \"string\") return <React.Fragment key={j}>{seg}</React.Fragment>\n              const f = flag(seg.redact)\n              return review.redacted.includes(f.id) ? (\n                <Redaction key={j} length={Math.min(f.text.length, 36)} reason={f.reason} />\n              ) : (\n                <mark key={j} className=\"rounded-sm bg-(--bevel-pen-red)/12 px-0.5 text-inherit box-decoration-clone\">\n                  <span className=\"sr-only\">Flagged as {f.reason}: </span>\n                  {f.text}\n                </mark>\n              )\n            })}\n          </p>\n        ))}\n        <p>\n          Kind regards,\n          <br />\n          Castell Rowe LLP\n        </p>\n        {sent && <SentStamp className=\"top-24 right-6\" />}\n      </article>\n\n      {/* The assistant's flags, on a sticky note stuck to the bottom of the page. */}\n      <fieldset\n        disabled={locked}\n        className={cn(\n          \"relative z-10 mx-auto -mt-20 flex [color-scheme:light] w-[min(100%,19rem)] flex-col gap-2 rounded-[2px] bg-[#F2DE7C] px-4 pt-3 pb-4 text-[15px] text-[#3B3215] rotate-[-2deg] sm:mr-4\",\n          \"shadow-[0_1px_1px_rgb(0_0_0/0.25),4px_10px_16px_-6px_rgb(0_0_0/0.5)]\"\n        )}\n      >\n        <legend className=\"float-left mb-1 w-full font-semibold\">Redact before sending</legend>\n        {note.flags.map((f) => (\n          <label key={f.id} className=\"flex cursor-pointer items-start gap-2 leading-snug has-disabled:cursor-default\">\n            <input\n              type=\"checkbox\"\n              className=\"mt-1 size-4 shrink-0 accent-[#3B3215]\"\n              checked={review.redacted.includes(f.id)}\n              onChange={(e) =>\n                update(contract.id, (r) => ({\n                  redacted: e.target.checked ? [...r.redacted, f.id] : r.redacted.filter((x) => x !== f.id),\n                }))\n              }\n            />\n            <span>\n              {f.label} <span className=\"italic opacity-75\">({f.reason})</span>\n            </span>\n          </label>\n        ))}\n      </fieldset>\n    </section>\n  )\n}\n\n/** The assistant's answer, printed as a memo, every claim stickered to its source. */\nfunction Assistant({ contract, review, update }: PanelProps) {\n  return (\n    <section id=\"assistant\" aria-labelledby=\"assistant-title\" className=\"flex scroll-mt-4 flex-col gap-3\">\n      <Legend id=\"assistant-title\" className={deskLegend}>\n        Assistant\n      </Legend>\n      <article\n        className={cn(\n          \"bevel-paper flex flex-col gap-4 rounded-(--bevel-radius-xs) px-6 py-6 text-[16px] leading-relaxed md:rotate-[-1.4deg]\",\n          onDesk\n        )}\n      >\n        <p className=\"border-b border-(--bevel-paper-rule) pb-3 text-[17px] italic text-(--bevel-paper-foreground)\">\n          <span className=\"sr-only\">You asked: </span>\n          {contract.question}\n        </p>\n        {contract.answer.map((paragraph, i) => (\n          <p key={i}>\n            {paragraph.map((seg, j) => {\n              if (typeof seg === \"string\") return <React.Fragment key={j}>{seg}</React.Fragment>\n              const source = contract.sources.find((s) => s.n === seg.cite)!\n              return (\n                <Citation\n                  key={j}\n                  onOpenChange={(isOpen) => {\n                    if (isOpen) update(contract.id, (r) => ({ opened: r.opened.includes(source.n) ? r.opened : [...r.opened, source.n] }))\n                  }}\n                >\n                  <CitationTrigger tone={source.external ? \"blue\" : \"yellow\"} abbreviation=\"Src.\" label=\"Source\">\n                    {source.n}\n                  </CitationTrigger>\n                  <CitationContent>\n                    <CitationSource>{source.source}</CitationSource>\n                    <CitationLocation>{source.location}</CitationLocation>\n                    <CitationQuote>{source.quote}</CitationQuote>\n                    <CitationStatus status={source.status}>{source.statusText}</CitationStatus>\n                  </CitationContent>\n                </Citation>\n              )\n            })}\n          </p>\n        ))}\n        <ol aria-label=\"Sources\" className=\"flex flex-col gap-1.5 border-t border-(--bevel-paper-rule) pt-3 text-[14px] leading-snug text-(--bevel-paper-muted)\">\n          {contract.sources.map((s) => {\n            const opened = review.opened.includes(s.n)\n            return (\n              <li key={s.n} className=\"flex gap-2\">\n                <span className=\"tabular-nums\">{s.n}.</span>\n                <span className=\"min-w-0 flex-1\">\n                  {s.source}, {s.location}\n                </span>\n                <span className={cn(\"shrink-0 italic\", opened && \"text-(--bevel-pen-blue)\")}>\n                  {opened ? (s.status === \"unverified\" ? \"Not found\" : \"Checked\") : \"Unread\"}\n                </span>\n              </li>\n            )\n          })}\n        </ol>\n      </article>\n    </section>\n  )\n}\n\nfunction Check({ done, total, label }: { done: number; total: number; label: string }) {\n  const complete = done === total\n  return (\n    <li className=\"flex items-start gap-2.5\">\n      <span\n        aria-hidden\n        className=\"mt-0.5 grid size-5 shrink-0 place-items-center rounded-[3px] border border-(--bevel-paper-foreground)/45 text-[17px] leading-none font-bold text-(--bevel-pen-blue)\"\n      >\n        {complete ? \"✓\" : \"\"}\n      </span>\n      <span className=\"min-w-0 flex-1\">\n        {label}\n        <span className=\"sr-only\">{complete ? \", done\" : `, ${done} of ${total}`}</span>\n      </span>\n      {!complete && (\n        <span aria-hidden className=\"tabular-nums text-(--bevel-paper-muted)\">\n          {done}/{total}\n        </span>\n      )}\n    </li>\n  )\n}\n\n/** Before it leaves: the checklist slip and the seal press. */\nfunction Outbox({ contract, review, update }: PanelProps) {\n  const progress = progressOf(contract, review)\n  const { note } = contract\n  const sent = review.approval === \"approved\"\n  const locked = review.approval !== \"pending\"\n\n  return (\n    <section id=\"outbox\" aria-labelledby=\"outbox-title\" className=\"flex scroll-mt-4 flex-col gap-3\">\n      <Legend id=\"outbox-title\" className={deskLegend}>\n        Before it leaves\n      </Legend>\n      <div className=\"flex flex-col items-stretch gap-8 sm:flex-row sm:items-start sm:justify-end\">\n        <div\n          className={cn(\n            \"bevel-paper relative z-10 flex flex-col gap-2 self-center rounded-[2px] px-5 py-4 text-[15px] leading-snug sm:mt-14 sm:-mr-3 sm:w-64 sm:shrink-0 sm:rotate-[2.6deg]\",\n            onDesk\n          )}\n        >\n          <ul aria-label=\"Checklist\" className=\"flex flex-col gap-2.5\">\n            <Check {...progress.changes} label=\"Decide every edit\" />\n            <Check {...progress.sources} label=\"Read every source\" />\n            <Check {...progress.redactions} label=\"Redact every flag\" />\n          </ul>\n        </div>\n\n        <Approval\n          key={contract.id}\n          className={cn(\"max-w-none sm:max-w-md sm:rotate-[-0.8deg] text-[15px]\", onDesk)}\n          state={review.approval}\n          onApprove={() => {\n            if (!progress.ready) return\n            update(contract.id, () => ({ approval: \"approved\" }))\n            demoMilestone(\"casefile\", \"seal\")\n          }}\n          onReject={() => update(contract.id, () => ({ approval: \"rejected\" }))}\n        >\n          <ApprovalTitle className=\"text-[19px]\">Send to {note.firm}</ApprovalTitle>\n          <ApprovalDescription>\n            The redacted note and clause {contract.clause.number} go to {note.to}. Sent email can&apos;t be recalled.\n          </ApprovalDescription>\n          <ApprovalSignatures>\n            <ApprovalSignature name=\"Dana Okafor\" signed />\n            <ApprovalSignature name=\"Mira Castell\" signed={sent} />\n          </ApprovalSignatures>\n          {!locked && !progress.ready && (\n            <p className=\"text-(--bevel-pen-red)\">The seal is locked until the checklist is done.</p>\n          )}\n          <ApprovalActions className=\"flex-wrap\">\n            <ApprovalReject>Send back</ApprovalReject>\n            <ApprovalSeal\n              disabled={!progress.ready}\n              className=\"size-20 disabled:cursor-not-allowed disabled:opacity-50 data-disabled:cursor-not-allowed data-disabled:opacity-50\"\n            />\n          </ApprovalActions>\n          {locked && (\n            <button\n              type=\"button\"\n              onClick={() => update(contract.id, () => ({ approval: \"pending\" }))}\n              className=\"h-9 self-start rounded-(--bevel-radius-sm) border border-(--bevel-paper-foreground)/30 px-3 font-medium text-(--bevel-paper-foreground) outline-none hover:bg-(--bevel-paper-foreground)/5 focus-visible:ring-2 focus-visible:ring-(--bevel-pen-blue)/50\"\n            >\n              {sent ? \"Reset this contract (demo)\" : \"Reopen for review\"}\n            </button>\n          )}\n        </Approval>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/casefile/casefile-app.tsx"
    },
    {
      "path": "registry/bevel/blocks/review-desk/casefile/contracts.tsx",
      "content": "/**\n * The contracts in the Northwind v. Halberd drawer. Everything here is\n * fictional: parties, people, numbers, cases.\n */\n\n/** A run of clause text, or one of the assistant's proposed edits. */\nexport type ClauseSegment = string | { change: string; deletion?: string; insertion?: string }\n\n/** A run of answer text, or a pinned source by number. */\nexport type AnswerSegment = string | { cite: number }\n\n/** A run of the cover note, or a detail the assistant flagged for redaction. */\nexport type NoteSegment = string | { redact: string }\n\nexport type Source = {\n  n: number\n  source: string\n  location: string\n  quote: string\n  status: \"verified\" | \"caution\" | \"unverified\"\n  statusText?: string\n  /** A non-contract source gets a blue sticker. */\n  external?: boolean\n}\n\nexport type Flag = { id: string; label: string; reason: string; text: string }\n\nexport type Contract = {\n  id: string\n  title: string\n  parties: string\n  ref: string\n  tags: string[]\n  clause: { number: string; heading: string; body: ClauseSegment[] }\n  question: string\n  answer: AnswerSegment[][]\n  sources: Source[]\n  note: {\n    to: string\n    firm: string\n    email: string\n    subject: string\n    body: NoteSegment[][]\n    flags: Flag[]\n  }\n}\n\nexport const needles = [\n  { value: \"nda\", label: \"NDA\" },\n  { value: \"signed\", label: \"Signed\" },\n  { value: \"eu\", label: \"EU law\" },\n  { value: \"renews\", label: \"Renews\" },\n  { value: \"dpa\", label: \"DPA\" },\n] as const\n\nexport const contracts: Contract[] = [\n  {\n    id: \"msa\",\n    title: \"Master supply agreement\",\n    parties: \"Northwind Freight B.V. and Halberd Components GmbH\",\n    ref: \"NW-031\",\n    tags: [\"signed\", \"eu\", \"renews\"],\n    clause: {\n      number: \"14.3\",\n      heading: \"Limitation of liability\",\n      body: [\n        \"Neither party's total liability under this Agreement shall exceed the fees paid in the \",\n        { change: \"cap\", deletion: \"three (3)\", insertion: \"twelve (12)\" },\n        \" months before the claim arose. This cap does not apply to \",\n        { change: \"carve\", insertion: \"breach of clause 9 (Confidentiality), \" },\n        \"fraud or wilful misconduct\",\n        { change: \"notice\", insertion: \", and no claim is barred for want of notice given within ninety (90) days\" },\n        \".\",\n      ],\n    },\n    question: \"Can Northwind recover the full cost of the March shortfall, or does the cap bite?\",\n    answer: [\n      [\n        \"Probably not in full. Liability is capped at three months' fees\",\n        { cite: 1 },\n        \", about €410,000 on the current run rate, against a claimed loss of €1.2m.\",\n      ],\n      [\n        \"The cap doesn't apply to wilful misconduct, and Halberd's own email shows it moved Northwind's allocated stock to another buyer\",\n        { cite: 2 },\n        \". The agreement renewed on 1 January\",\n        { cite: 3 },\n        \", so the current terms apply. I found a case striking down a similar cap\",\n        { cite: 4 },\n        \", but couldn't confirm it exists. Don't rely on it.\",\n      ],\n    ],\n    sources: [\n      {\n        n: 1,\n        source: \"Master supply agreement\",\n        location: \"p. 22, clause 14.3\",\n        quote: \"Neither party's total liability under this Agreement shall exceed the fees paid in the three (3) months before the claim arose.\",\n        status: \"verified\",\n      },\n      {\n        n: 2,\n        source: \"Halberd internal email, 4 Mar 2026\",\n        location: \"Disclosure bundle, tab 7\",\n        quote: \"Move the Northwind allocation to Vantor for this run. We'll make it up in April.\",\n        status: \"verified\",\n        external: true,\n      },\n      {\n        n: 3,\n        source: \"Master supply agreement\",\n        location: \"p. 3, clause 2.2\",\n        quote: \"This Agreement renews automatically for successive twelve-month terms unless either party gives ninety (90) days' notice.\",\n        status: \"verified\",\n      },\n      {\n        n: 4,\n        source: \"Brennan Freight v. Ostmark AG (2021)\",\n        location: \"¶ 18, as cited\",\n        quote: \"No matching passage found in any reporter Casefile can search.\",\n        status: \"unverified\",\n        external: true,\n      },\n    ],\n    note: {\n      to: \"Ines Varga\",\n      firm: \"Varga Lindqvist\",\n      email: \"i.varga@vargalindqvist.example\",\n      subject: \"Northwind / Halberd: proposed amendment to clause 14.3\",\n      body: [\n        [\"Dear Ms Varga,\"],\n        [\n          \"Further to our call, please find our proposed amendment to clause 14.3 of the supply agreement. \",\n          { redact: \"contact\" },\n          \" can confirm the shortfall figures on request.\",\n        ],\n        [{ redact: \"strategy\" }, \" We look forward to your client's response by 31 October.\"],\n      ],\n      flags: [\n        { id: \"contact\", label: \"Client contact's name and mobile\", reason: \"personal data\", text: \"Our client's operations lead, Tomas Reyes (+31 6 1234 5678),\" },\n        { id: \"strategy\", label: \"Our view on the cap\", reason: \"privileged\", text: \"We think the cap is unlikely to survive the diversion of stock.\" },\n      ],\n    },\n  },\n  {\n    id: \"nda\",\n    title: \"Mutual NDA\",\n    parties: \"Northwind Freight B.V. and Halberd Components GmbH\",\n    ref: \"NW-012\",\n    tags: [\"nda\", \"signed\"],\n    clause: {\n      number: \"5.1\",\n      heading: \"Duration of confidentiality\",\n      body: [\n        \"The obligations in this Agreement last for \",\n        { change: \"term\", deletion: \"two (2)\", insertion: \"five (5)\" },\n        \" years after each disclosure\",\n        { change: \"secrets\", insertion: \", and for trade secrets, for as long as the information remains a trade secret\" },\n        \".\",\n      ],\n    },\n    question: \"Can we put Halberd's pricing sheet in front of the court?\",\n    answer: [\n      [\n        \"Yes, with care. Either party may disclose Confidential Information when a court requires it\",\n        { cite: 1 },\n        \", provided it gives the other side prompt written notice first\",\n        { cite: 2 },\n        \".\",\n      ],\n      [\n        \"The sheet is marked confidential but undated\",\n        { cite: 3 },\n        \", so we should file it under seal and confirm which version Halberd sent.\",\n      ],\n    ],\n    sources: [\n      {\n        n: 1,\n        source: \"Mutual NDA\",\n        location: \"p. 4, clause 6.2\",\n        quote: \"Nothing in this Agreement prevents disclosure required by law or by order of a competent court.\",\n        status: \"verified\",\n      },\n      {\n        n: 2,\n        source: \"Mutual NDA\",\n        location: \"p. 4, clause 6.3\",\n        quote: \"The disclosing party shall give prompt written notice before any such disclosure, where lawful.\",\n        status: \"verified\",\n      },\n      {\n        n: 3,\n        source: \"Halberd pricing sheet\",\n        location: \"Disclosure bundle, tab 12, footer\",\n        quote: \"Halberd Components. Confidential. Not for distribution.\",\n        status: \"caution\",\n        statusText: \"Undated\",\n        external: true,\n      },\n    ],\n    note: {\n      to: \"Ines Varga\",\n      firm: \"Varga Lindqvist\",\n      email: \"i.varga@vargalindqvist.example\",\n      subject: \"Northwind / Halberd: notice under clause 6.3 of the NDA\",\n      body: [\n        [\"Dear Ms Varga,\"],\n        [\n          \"We give notice under clause 6.3 that our client intends to file Halberd's pricing sheet with the court, under seal. We also attach a proposed amendment to clause 5.1.\",\n        ],\n        [{ redact: \"author\" }],\n      ],\n      flags: [\n        { id: \"author\", label: \"Associate's direct line\", reason: \"personal data\", text: \"Drafted by Mira Castell, direct line +44 20 7946 0113.\" },\n      ],\n    },\n  },\n  {\n    id: \"dpa\",\n    title: \"Data processing addendum\",\n    parties: \"Northwind Freight B.V. (controller) and Halberd Components GmbH (processor)\",\n    ref: \"NW-033\",\n    tags: [\"signed\", \"eu\", \"dpa\"],\n    clause: {\n      number: \"8.1\",\n      heading: \"Breach notification\",\n      body: [\n        \"The processor shall notify the controller of a personal data breach \",\n        { change: \"speed\", deletion: \"without undue delay\", insertion: \"within twenty-four (24) hours\" },\n        \" after becoming aware of it\",\n        { change: \"annex\", insertion: \", with the information listed in Annex 3\" },\n        \".\",\n      ],\n    },\n    question: \"Did Halberd breach the DPA when the shipment manifests leaked?\",\n    answer: [\n      [\n        \"Arguably. Halberd had to tell us without undue delay\",\n        { cite: 1 },\n        \", and its first notice came nine days after it found the leak\",\n        { cite: 2 },\n        \".\",\n      ],\n      [\n        \"We then had 72 hours to tell the regulator\",\n        { cite: 3 },\n        \", which a nine-day gap makes hard. That's why I suggest a fixed 24-hour window.\",\n      ],\n    ],\n    sources: [\n      {\n        n: 1,\n        source: \"Data processing addendum\",\n        location: \"p. 6, clause 8.1\",\n        quote: \"The processor shall notify the controller of a personal data breach without undue delay after becoming aware of it.\",\n        status: \"verified\",\n      },\n      {\n        n: 2,\n        source: \"Halberd letter, 22 Aug 2026\",\n        location: \"Disclosure bundle, tab 19, para. 2\",\n        quote: \"Our team identified the exposure on 13 August and has since contained it.\",\n        status: \"verified\",\n        external: true,\n      },\n      {\n        n: 3,\n        source: \"GDPR, Article 33(1)\",\n        location: \"Regulation (EU) 2016/679\",\n        quote: \"…not later than 72 hours after having become aware of it…\",\n        status: \"verified\",\n        external: true,\n      },\n    ],\n    note: {\n      to: \"Ines Varga\",\n      firm: \"Varga Lindqvist\",\n      email: \"i.varga@vargalindqvist.example\",\n      subject: \"Northwind / Halberd: breach notification under the DPA\",\n      body: [\n        [\"Dear Ms Varga,\"],\n        [\n          \"The leaked manifests included the home address of \",\n          { redact: \"driver\" },\n          \" Please confirm what was exposed and when, and see our proposed amendment to clause 8.1.\",\n        ],\n        [{ redact: \"regulator\" }],\n      ],\n      flags: [\n        { id: \"driver\", label: \"Driver's name\", reason: \"personal data\", text: \"one of our client's drivers, Pieter Aalders.\" },\n        { id: \"regulator\", label: \"Internal note on the regulator\", reason: \"privileged\", text: \"Internal: we reported late to the regulator and may face a fine.\" },\n      ],\n    },\n  },\n  {\n    id: \"whs\",\n    title: \"Kessler warehousing\",\n    parties: \"Northwind Freight B.V. and Kessler Logistics Ltd\",\n    ref: \"NW-020\",\n    tags: [\"signed\", \"renews\"],\n    clause: {\n      number: \"11.2\",\n      heading: \"Termination for supply failure\",\n      body: [\n        \"Northwind may end this Agreement on \",\n        { change: \"notice\", deletion: \"six (6) months'\", insertion: \"sixty (60) days'\" },\n        \" written notice if its principal supplier fails to deliver for \",\n        { change: \"weeks\", deletion: \"twelve (12)\", insertion: \"eight (8)\" },\n        \" consecutive weeks.\",\n      ],\n    },\n    question: \"If Halberd stock stops, can Northwind get out of the Kessler warehouse?\",\n    answer: [\n      [\n        \"Yes, but slowly. Northwind can end it on six months' notice once supply has failed for twelve weeks\",\n        { cite: 1 },\n        \". Until then it pays for the space, empty or not\",\n        { cite: 2 },\n        \".\",\n      ],\n    ],\n    sources: [\n      {\n        n: 1,\n        source: \"Kessler warehousing agreement\",\n        location: \"p. 9, clause 11.2\",\n        quote: \"Northwind may end this Agreement on six (6) months' written notice if its principal supplier fails to deliver for twelve (12) consecutive weeks.\",\n        status: \"verified\",\n      },\n      {\n        n: 2,\n        source: \"Kessler warehousing agreement\",\n        location: \"Schedule 1, fees\",\n        quote: \"Storage fees are payable monthly for the reserved area, whether or not used.\",\n        status: \"verified\",\n      },\n    ],\n    note: {\n      to: \"Owen Hartley\",\n      firm: \"Kessler Logistics\",\n      email: \"legal@kesslerlogistics.example\",\n      subject: \"Proposed amendment to clause 11.2\",\n      body: [\n        [\"Dear Mr Hartley,\"],\n        [\n          \"Given the supply position, our client proposes the attached amendment to clause 11.2. \",\n          { redact: \"dispute\" },\n        ],\n      ],\n      flags: [\n        { id: \"dispute\", label: \"Reference to the Halberd claim\", reason: \"privileged\", text: \"This is driven by our claim against Halberd, which we expect to settle.\" },\n      ],\n    },\n  },\n  {\n    id: \"ts\",\n    title: \"Settlement term sheet, draft\",\n    parties: \"Northwind Freight B.V. and Halberd Components GmbH\",\n    ref: \"NW-041\",\n    tags: [\"eu\"],\n    clause: {\n      number: \"3\",\n      heading: \"Payment\",\n      body: [\n        \"Halberd shall pay Northwind \",\n        { change: \"sum\", deletion: \"€600,000\", insertion: \"€850,000\" },\n        \" in full and final settlement, within \",\n        { change: \"days\", deletion: \"sixty (60)\", insertion: \"thirty (30)\" },\n        \" days of signature.\",\n      ],\n    },\n    question: \"Is €850,000 a defensible opening number?\",\n    answer: [\n      [\n        \"It's within range. The cap limits a contract claim to about €410,000\",\n        { cite: 1 },\n        \", but the misconduct carve-out could lift it to the full €1.2m loss\",\n        { cite: 2 },\n        \". €850,000 prices in roughly even odds on the carve-out.\",\n      ],\n    ],\n    sources: [\n      {\n        n: 1,\n        source: \"Master supply agreement\",\n        location: \"p. 22, clause 14.3\",\n        quote: \"…shall exceed the fees paid in the three (3) months before the claim arose.\",\n        status: \"verified\",\n      },\n      {\n        n: 2,\n        source: \"Loss schedule, v4\",\n        location: \"Expert report, table 2\",\n        quote: \"Total loss, March shortfall: €1,204,300.\",\n        status: \"caution\",\n        statusText: \"Draft\",\n        external: true,\n      },\n    ],\n    note: {\n      to: \"Ines Varga\",\n      firm: \"Varga Lindqvist\",\n      email: \"i.varga@vargalindqvist.example\",\n      subject: \"Without prejudice: settlement terms\",\n      body: [\n        [\"Dear Ms Varga,\"],\n        [\n          \"Without prejudice save as to costs, we enclose revised settlement terms. \",\n          { redact: \"floor\" },\n        ],\n      ],\n      flags: [\n        { id: \"floor\", label: \"Client's walk-away figure\", reason: \"privileged\", text: \"Our client would accept €700,000 if pressed.\" },\n      ],\n    },\n  },\n  {\n    id: \"orrin\",\n    title: \"Orrin Metals NDA\",\n    parties: \"Northwind Freight B.V. and Orrin Metals S.A.\",\n    ref: \"NW-044\",\n    tags: [\"nda\", \"renews\"],\n    clause: {\n      number: \"2.1\",\n      heading: \"Permitted purpose\",\n      body: [\n        \"Northwind may use the Information only to evaluate \",\n        { change: \"purpose\", deletion: \"a supply relationship\", insertion: \"a replacement supply relationship\" },\n        \" with Orrin\",\n        { change: \"advisers\", insertion: \", and may share it with its legal advisers\" },\n        \".\",\n      ],\n    },\n    question: \"Can we show Orrin's quote to our expert as evidence of replacement cost?\",\n    answer: [\n      [\n        \"Not yet. Use is limited to evaluating a supply relationship\",\n        { cite: 1 },\n        \", and only named recipients may see it\",\n        { cite: 2 },\n        \". The proposed edit adds legal advisers, which would cover the expert through us.\",\n      ],\n    ],\n    sources: [\n      {\n        n: 1,\n        source: \"Orrin Metals NDA\",\n        location: \"p. 1, clause 2.1\",\n        quote: \"Northwind may use the Information only to evaluate a supply relationship with Orrin.\",\n        status: \"verified\",\n      },\n      {\n        n: 2,\n        source: \"Orrin Metals NDA\",\n        location: \"p. 2, clause 3.4\",\n        quote: \"Information may be shared only with the employees named in Schedule A.\",\n        status: \"verified\",\n      },\n    ],\n    note: {\n      to: \"Lucía Ferrer\",\n      firm: \"Orrin Metals\",\n      email: \"l.ferrer@orrinmetals.example\",\n      subject: \"NDA: request to extend permitted purpose\",\n      body: [\n        [\"Dear Ms Ferrer,\"],\n        [\n          \"We act for Northwind and propose the attached change to clause 2.1, so we can review your quote with our client. \",\n          { redact: \"reason\" },\n        ],\n      ],\n      flags: [\n        { id: \"reason\", label: \"Why we really want it\", reason: \"privileged\", text: \"We intend to use it as evidence of replacement cost against Halberd.\" },\n      ],\n    },\n  },\n]\n\n/** Every change id in a clause. */\nexport function changeIds(contract: Contract) {\n  return contract.clause.body.flatMap((s) => (typeof s === \"string\" ? [] : [s.change]))\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/casefile/contracts.tsx"
    },
    {
      "path": "registry/bevel/blocks/review-desk/shared/environment.tsx",
      "content": "import * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\n/**\n * Pieces of the physical environments the demos are set in. Each demo\n * mounts Bevel components on a surface; these are the surface's own parts.\n */\n\n/** A legend engraved into the surface: names the control below it. */\nexport function Legend({ className, ...props }: React.ComponentProps<\"p\">) {\n  return (\n    <p\n      className={cn(\n        \"text-[15px] leading-none font-semibold tracking-wide text-(--legend) [text-shadow:0_-1px_0_rgb(0_0_0/0.45),0_1px_0_rgb(255_255_255/0.08)]\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/** A slotted screw head, for panel corners. */\nexport function Screw({ className, angle = 30 }: { className?: string; angle?: number }) {\n  return (\n    <span\n      aria-hidden\n      className={cn(\"bevel-metal absolute size-3.5 rounded-full shadow-(--bevel-depth-raised)\", className)}\n    >\n      <span className=\"absolute inset-x-0.5 top-1/2 h-px -translate-y-1/2 bg-black/50\" style={{ rotate: `${angle}deg` }} />\n    </span>\n  )\n}\n\n/** Four screws, one in each corner of a positioned panel. */\nconst screwCorners = {\n  \"2\": [\"top-2 left-2\", \"top-2 right-2\", \"bottom-2 left-2\", \"bottom-2 right-2\"],\n  \"3\": [\"top-3 left-3\", \"top-3 right-3\", \"bottom-3 left-3\", \"bottom-3 right-3\"],\n  \"4\": [\"top-4 left-4\", \"top-4 right-4\", \"bottom-4 left-4\", \"bottom-4 right-4\"],\n} as const\n\nexport function Screws({ inset = \"3\" }: { inset?: keyof typeof screwCorners }) {\n  return (\n    <>\n      {screwCorners[inset].map((c, i) => (\n        <Screw key={c} className={c} angle={[20, 75, 130, 160][i]} />\n      ))}\n    </>\n  )\n}\n\n/** A physical key: a raised plastic button that goes down when pressed. */\nexport function PanelKey({ className, tone = \"plain\", ...props }: React.ComponentProps<\"button\"> & { tone?: \"plain\" | \"go\" }) {\n  return (\n    <button\n      type=\"button\"\n      data-tone={tone}\n      className={cn(\n        \"bevel-raised inline-flex h-11 items-center whitespace-nowrap justify-center rounded-(--bevel-radius-sm) px-5 text-[15px] font-semibold outline-none select-none\",\n        \"[--bevel-material:#5B636B] text-[#EEF1F3] data-[tone=go]:[--bevel-material:#C9A44A] data-[tone=go]:text-[#2A2208]\",\n        \"transition-[translate,box-shadow] duration-(--bevel-duration-press) active:translate-y-0.5 active:bevel-pressed\",\n        \"focus-visible:ring-3 focus-visible:ring-[#E9D28A]/60 disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/** A backlit status strip: one line of glowing text behind glass. */\nexport function StatusStrip({ className, children }: { className?: string; children: React.ReactNode }) {\n  return (\n    <div\n      className={cn(\n        \"relative overflow-hidden rounded-(--bevel-radius-sm) bg-[#0E1A17] px-4 py-3 shadow-(--bevel-depth-recessed)\",\n        className\n      )}\n    >\n      <p className=\"text-[17px] sm:truncate tracking-wide text-[#8FF0CF] [text-shadow:0_0_8px_rgb(143_240_207/0.55)]\">{children}</p>\n      <span aria-hidden className=\"bevel-glass absolute inset-0\" />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shared/environment.tsx"
    },
    {
      "path": "registry/bevel/blocks/review-desk/shared/events.ts",
      "content": "/**\n * Announces a milestone in a demo (a merge, a top-up) as a DOM event. It\n * does nothing on its own; a page that wants to count milestones listens\n * for \"bevel:demo\". The Bevel site forwards them to its analytics.\n */\nexport function demoMilestone(demo: string, action: string) {\n  if (typeof window === \"undefined\") return\n  window.dispatchEvent(new CustomEvent(\"bevel:demo\", { detail: { demo, action } }))\n}\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shared/events.ts"
    },
    {
      "path": "registry/bevel/blocks/review-desk/shared/fonts.ts",
      "content": "import { Barlow_Condensed, Libre_Caslon_Text, Overpass, Source_Serif_4 } from \"next/font/google\"\n\n/** Each demo product has its own type voice, drawn from its world. */\n\n/** Relay: console legends, the condensed grotesk of control-room engraving. */\nexport const consoleFace = Barlow_Condensed({ subsets: [\"latin\"], weight: [\"500\", \"600\", \"700\"], variable: \"--font-console\" })\n\n/** Meterline: a ledger serif, for a desk where money is written down. */\nexport const ledgerFace = Libre_Caslon_Text({ subsets: [\"latin\"], weight: [\"400\", \"700\"], variable: \"--font-ledger\" })\n\n/** Shipyard: highway-sign lettering, for a board read from across a room. */\nexport const signFace = Overpass({ subsets: [\"latin\"], weight: [\"400\", \"600\", \"800\"], variable: \"--font-sign\" })\n\n/** Casefile: a document serif, for papers on a desk. */\nexport const documentFace = Source_Serif_4({ subsets: [\"latin\"], weight: [\"400\", \"600\", \"700\"], variable: \"--font-document\" })\n",
      "type": "registry:component",
      "target": "components/bevel-demos/shared/fonts.ts"
    },
    {
      "path": "registry/bevel/blocks/review-desk/page.tsx",
      "content": "import { CasefileApp } from \"@/components/bevel-demos/casefile/casefile-app\"\n\nexport default function Page() {\n  return <CasefileApp />\n}\n",
      "type": "registry:page",
      "target": "app/review-desk/page.tsx"
    }
  ],
  "categories": [
    "blocks"
  ],
  "type": "registry:block"
}