{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "message-rich-text",
  "type": "registry:ui",
  "title": "Message Rich Text",
  "description": "Shows a sent message with the app, agent, and file chips from the Chat Input.",
  "categories": [
    "agent-patterns"
  ],
  "dependencies": [
    "@hugeicons/core-free-icons@4.4.0",
    "@hugeicons/react@1.1.10"
  ],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json",
    "https://sprout.tulipfarm.ai/r/file-viewer.json",
    "https://sprout.tulipfarm.ai/r/hover-card.json",
    "https://sprout.tulipfarm.ai/r/rich-text-editor.json",
    "https://sprout.tulipfarm.ai/r/tooltip.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/message-rich-text.tsx",
      "type": "registry:ui",
      "target": "components/ui/message-rich-text.tsx",
      "content": "import { Fragment, useState, type ComponentProps, type CSSProperties, type ReactNode } from 'react';\nimport { LinkOffIcon } from '@/lib/sprout/icons/link-off-icon';\nimport { chatReferenceChars } from '@/lib/sprout/chat-reference';\nimport { cn } from '@/lib/sprout/classes';\nimport { KeywordHintBody } from '@/lib/sprout/keyword-hint';\nimport {\n  ReferenceHintBody,\n  ReferencePeek,\n  referenceDetail,\n  referenceHover,\n  type ChatReferenceDetail,\n  type ChatReferenceResolved,\n} from '@/lib/sprout/reference-hint';\nimport {\n  hasHint,\n  keywordPattern,\n  objectReplacement,\n  scanText,\n  type KeywordHit,\n  type KeywordPattern,\n} from '@/lib/sprout/keywords';\nimport type { RichTextKeyword, RichTextValue } from '@/components/ui/rich-text-editor';\nimport { FileViewer } from '@/components/ui/file-viewer';\nimport { HoverCard, HoverCardTrigger } from '@/components/ui/hover-card';\nimport { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';\n\nexport interface MessageRichTextProps extends Omit<ComponentProps<'div'>, 'children'> {\n  value: RichTextValue;\n  keywords?: readonly RichTextKeyword[] | undefined;\n  accounts?: Readonly<Record<string, string>> | undefined;\n  resolveReference?:\n    | ((reference: MessageRichTextReference) => MessageRichTextResolvedReference | undefined)\n    | undefined;\n  renderNode?: ((node: RichTextValue) => ReactNode) | undefined;\n}\n\nexport type MessageRichTextReference = ChatReferenceDetail;\nexport type MessageRichTextResolvedReference = ChatReferenceResolved;\n\nfunction ChipHint({ hint, children }: { hint: ReactNode; children: ReactNode }) {\n  return (\n    <Tooltip>\n      <TooltipTrigger delay={150} tabIndex={0} render={<span className=\"sprout-message-rich-text-keyword\" />}>\n        {children}\n      </TooltipTrigger>\n      <TooltipContent className=\"sprout-message-rich-text-hint\">{hint}</TooltipContent>\n    </Tooltip>\n  );\n}\n\ntype Mark = { type: string; attrs?: Record<string, unknown> };\n\nconst safeHref = (href: unknown) =>\n  typeof href === 'string' && /^(https?:|mailto:)/i.test(href.trim()) ? href.trim() : undefined;\n\nfunction withMarks(content: ReactNode, marks: readonly Mark[] | undefined, key: string): ReactNode {\n  let node = content;\n  for (const mark of marks ?? []) {\n    if (mark.type === 'bold') node = <strong>{node}</strong>;\n    else if (mark.type === 'italic') node = <em>{node}</em>;\n    else if (mark.type === 'strike') node = <s>{node}</s>;\n    else if (mark.type === 'underline') node = <u>{node}</u>;\n    else if (mark.type === 'code') node = <code>{node}</code>;\n    else if (mark.type === 'link') {\n      const href = safeHref(mark.attrs?.href);\n      if (href)\n        node = (\n          <a href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n            {node}\n          </a>\n        );\n    }\n  }\n  return <span key={key}>{node}</span>;\n}\n\nfunction Keyword({ keyword, children }: { keyword: RichTextKeyword; children: ReactNode }) {\n  const connected = String(keyword.connected !== false);\n  const style = keyword.color ? ({ '--sprout-rich-text-keyword-color': keyword.color } as CSSProperties) : undefined;\n  const chip = (\n    <>\n      {keyword.icon != null && (\n        <span\n          className=\"sprout-rich-text-keyword-icon\"\n          data-keyword={keyword.id}\n          data-connected={connected}\n          aria-hidden=\"true\"\n        >\n          <span className=\"sprout-rich-text-keyword-glyph\">{keyword.icon}</span>\n        </span>\n      )}\n      <span\n        className=\"sprout-rich-text-keyword\"\n        data-keyword={keyword.id}\n        data-connected={connected}\n        data-icon={keyword.icon != null ? '' : undefined}\n        data-tinted={keyword.color ? '' : undefined}\n        style={style}\n      >\n        {children}\n      </span>\n      {keyword.connected === false && (\n        <span\n          className=\"sprout-rich-text-keyword-status\"\n          data-keyword={keyword.id}\n          data-connected=\"false\"\n          aria-hidden=\"true\"\n        >\n          <span className=\"sprout-rich-text-keyword-glyph\">\n            <LinkOffIcon />\n          </span>\n        </span>\n      )}\n    </>\n  );\n  if (!hasHint(keyword)) return chip;\n  return <ChipHint hint={<KeywordHintBody keyword={keyword} />}>{chip}</ChipHint>;\n}\n\nfunction plainChild(child: RichTextValue) {\n  return child.type === 'text' && !child.marks?.some(mark => mark.type === 'code' || mark.type === 'link');\n}\n\ntype Renderers = Pick<MessageRichTextProps, 'resolveReference' | 'renderNode'>;\n\nfunction Reference({ reference, resolved }: { reference: ChatReferenceDetail; resolved?: ChatReferenceResolved }) {\n  const [open, setOpen] = useState(false);\n  const chip = (\n    <span className=\"sprout-chat-input-reference\" data-chat-reference={reference.kind} data-id={reference.id}>\n      {`${chatReferenceChars[reference.kind] ?? ''}${reference.label}`}\n    </span>\n  );\n  const hover = referenceHover(reference, resolved);\n  if (hover === 'hint')\n    return <ChipHint hint={<ReferenceHintBody reference={reference} media={resolved?.media} />}>{chip}</ChipHint>;\n  const file = resolved?.file;\n  if (!file) return chip;\n  const opener = {\n    type: 'button' as const,\n    className: 'sprout-message-rich-text-keyword sprout-message-rich-text-file',\n    onClick: () => setOpen(true),\n  };\n  return (\n    <>\n      {hover === 'peek' ? (\n        <HoverCard>\n          <HoverCardTrigger delay={300} closeDelay={150} render={<button {...opener} />}>\n            {chip}\n          </HoverCardTrigger>\n          <ReferencePeek file={file} />\n        </HoverCard>\n      ) : (\n        <button {...opener}>{chip}</button>\n      )}\n      <FileViewer file={file} open={open} onOpenChange={setOpen} />\n    </>\n  );\n}\n\nfunction renderInline(\n  content: readonly RichTextValue[],\n  pattern: KeywordPattern | null,\n  renderers: Renderers,\n  key: string,\n) {\n  const hits: KeywordHit[] = [];\n  if (pattern) {\n    const text = content.map(child => (plainChild(child) ? (child.text ?? '') : objectReplacement)).join('');\n    scanText(text, pattern, 0, hits);\n  }\n  const out: ReactNode[] = [];\n  let offset = 0;\n  content.forEach((child, index) => {\n    const childKey = `${key}.${index}`;\n    if (child.type === 'text') {\n      const text = child.text ?? '';\n      const start = offset;\n      const end = start + (plainChild(child) ? text.length : 1);\n      offset = end;\n      if (!plainChild(child)) return out.push(withMarks(text, child.marks as Mark[], childKey));\n      let cursor = start;\n      for (const hit of hits) {\n        if (hit.to <= start || hit.from >= end) continue;\n        const from = Math.max(hit.from, start);\n        const to = Math.min(hit.to, end);\n        if (from > cursor)\n          out.push(withMarks(text.slice(cursor - start, from - start), child.marks as Mark[], `${childKey}.${cursor}`));\n        out.push(\n          <Keyword key={`${childKey}.${from}.k`} keyword={hit.keyword}>\n            {withMarks(text.slice(from - start, to - start), child.marks as Mark[], 'text')}\n          </Keyword>,\n        );\n        cursor = to;\n      }\n      if (cursor < end) out.push(withMarks(text.slice(cursor - start), child.marks as Mark[], `${childKey}.${cursor}`));\n      return;\n    }\n    offset += 1;\n    if (child.type === 'hardBreak') out.push(<br key={childKey} />);\n    else if (child.type === 'chatReference') {\n      const reference = referenceDetail(child.attrs);\n      out.push(<Reference key={childKey} reference={reference} resolved={renderers.resolveReference?.(reference)} />);\n    } else if (renderers.renderNode) out.push(<Fragment key={childKey}>{renderers.renderNode(child)}</Fragment>);\n  });\n  return out;\n}\n\nfunction renderBlock(\n  node: RichTextValue,\n  pattern: KeywordPattern | null,\n  renderers: Renderers,\n  key: string,\n): ReactNode {\n  const children = (node.content ?? []).map((child, index) =>\n    renderBlock(child, pattern, renderers, `${key}.${index}`),\n  );\n  const inline = () => renderInline(node.content ?? [], pattern, renderers, key);\n  switch (node.type) {\n    case 'doc':\n      return children;\n    case 'paragraph':\n      return <p key={key}>{inline()}</p>;\n    case 'heading': {\n      const level = Math.min(Math.max(Number(node.attrs?.level) || 1, 1), 6);\n      const Heading = `h${level}` as 'h1';\n      return <Heading key={key}>{inline()}</Heading>;\n    }\n    case 'bulletList':\n      return <ul key={key}>{children}</ul>;\n    case 'orderedList':\n      return (\n        <ol key={key} start={Number(node.attrs?.start) || undefined}>\n          {children}\n        </ol>\n      );\n    case 'listItem':\n      return <li key={key}>{children}</li>;\n    case 'blockquote':\n      return <blockquote key={key}>{children}</blockquote>;\n    case 'codeBlock':\n      return (\n        <pre key={key}>\n          <code>{(node.content ?? []).map(child => child.text ?? '').join('')}</code>\n        </pre>\n      );\n    case 'horizontalRule':\n      return <hr key={key} />;\n    default:\n      return node.content?.some(child => child.type === 'text') ? <p key={key}>{inline()}</p> : children;\n  }\n}\n\nexport function MessageRichText({\n  value,\n  keywords,\n  accounts,\n  resolveReference,\n  renderNode,\n  className,\n  ...props\n}: MessageRichTextProps) {\n  const sent = accounts\n    ? keywords?.map(keyword =>\n        accounts[keyword.id] ? { ...keyword, connected: true, account: accounts[keyword.id] } : keyword,\n      )\n    : keywords;\n  const pattern = sent?.length ? keywordPattern(sent) : null;\n  return (\n    <div data-slot=\"message-rich-text\" className={cn('sprout-message-rich-text', className)} {...props}>\n      {renderBlock(value, pattern, { resolveReference, renderNode }, 'n')}\n    </div>\n  );\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/book-open-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/book-open-icon.tsx",
      "content": "import { BookOpenIcon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const BookOpenIcon = /* @__PURE__ */ createIcon(glyph, 'BookOpenIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/create-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/create-icon.tsx",
      "content": "import { HugeiconsIcon, type IconSvgElement } from '@hugeicons/react';\nimport type { ReactElement, Ref, SVGProps } from 'react';\n\nexport const iconSizes = {\n  xs: 12,\n  sm: 14,\n  md: 16,\n  lg: 18,\n  xl: 20,\n  '2xl': 24,\n} as const;\n\nexport type IconSize = keyof typeof iconSizes;\n\nexport const iconStrokeWidth = 1.5;\n\nexport type IconProps = Omit<SVGProps<SVGSVGElement>, 'ref'> & {\n  size?: IconSize | number;\n  ref?: Ref<SVGSVGElement>;\n};\n\nexport type IconComponent = (props: IconProps) => ReactElement;\n\nexport function createIcon(glyph: IconSvgElement, name: string): IconComponent {\n  const Icon = ({ size = '2xl', strokeWidth = iconStrokeWidth, ...props }: IconProps) => (\n    <HugeiconsIcon\n      icon={glyph}\n      size={typeof size === 'number' ? size : iconSizes[size]}\n      strokeWidth={Number(strokeWidth)}\n      {...props}\n    />\n  );\n  Icon.displayName = name;\n  return Icon;\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/document-text-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/document-text-icon.tsx",
      "content": "import { File02Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const DocumentTextIcon = /* @__PURE__ */ createIcon(glyph, 'DocumentTextIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/link-off-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/link-off-icon.tsx",
      "content": "import { Unlink01Icon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const LinkOffIcon = /* @__PURE__ */ createIcon(glyph, 'LinkOffIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/icons/user-icon.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/icons/user-icon.tsx",
      "content": "import { UserIcon as glyph } from '@hugeicons/core-free-icons';\nimport { createIcon } from '@/lib/sprout/icons/create-icon';\n\nexport const UserIcon = /* @__PURE__ */ createIcon(glyph, 'UserIcon');\n"
    },
    {
      "path": "registry/sprout/lib/sprout/chat-reference.ts",
      "type": "registry:lib",
      "target": "lib/sprout/chat-reference.ts",
      "content": "export const chatReferenceChars = { agent: '@', skill: '/', file: '#' } as const;\n\nexport type ChatReferenceKind = keyof typeof chatReferenceChars;\n"
    },
    {
      "path": "registry/sprout/lib/sprout/keyword-hint.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/keyword-hint.tsx",
      "content": "import { LinkOffIcon } from '@/lib/sprout/icons/link-off-icon';\nimport type { RichTextKeyword } from '@/components/ui/rich-text-editor';\nimport { accountLabel } from '@/lib/sprout/keywords';\n\nexport function KeywordHintBody({ keyword }: { keyword: RichTextKeyword }) {\n  if (keyword.connected === false)\n    return (\n      <>\n        <LinkOffIcon size=\"sm\" aria-hidden=\"true\" />\n        <span>{keyword.label} isn't connected</span>\n      </>\n    );\n  return (\n    <>\n      {keyword.icon != null && (\n        <span className=\"sprout-rich-text-keyword-hint-icon\" aria-hidden=\"true\">\n          {keyword.icon}\n        </span>\n      )}\n      <span className=\"sprout-rich-text-keyword-hint-label\">{keyword.label}</span>\n      <span className=\"sprout-rich-text-keyword-hint-account\">{accountLabel(keyword)}</span>\n    </>\n  );\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/keywords.ts",
      "type": "registry:lib",
      "target": "lib/sprout/keywords.ts",
      "content": "import type { RichTextKeyword } from '@/components/ui/rich-text-editor';\n\nexport type KeywordHit = { keyword: RichTextKeyword; from: number; to: number };\nexport type KeywordPattern = { regex: RegExp; terms: Map<string, RichTextKeyword> };\n\nexport const objectReplacement = '\\ufffc';\n\nexport const accountLabel = (keyword: RichTextKeyword) =>\n  keyword.accounts?.find(account => account.id === keyword.account)?.label ?? keyword.account;\n\nexport const hasHint = (keyword: RichTextKeyword) => keyword.connected === false || !!keyword.account;\n\nconst normalizeTerm = (term: string) => term.trim().toLowerCase().replace(/\\s+/g, ' ');\n\nexport function keywordPattern(keywords: readonly RichTextKeyword[]): KeywordPattern | null {\n  const terms = new Map<string, RichTextKeyword>();\n  for (const keyword of keywords)\n    for (const term of keyword.match?.length ? keyword.match : [keyword.label]) {\n      const key = normalizeTerm(term);\n      if (key && !terms.has(key)) terms.set(key, keyword);\n    }\n  if (!terms.size) return null;\n  const alternatives = [...terms.keys()]\n    .sort((a, b) => b.length - a.length)\n    .map(term => term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&').replace(/ /g, '\\\\s+'));\n  const word = '[\\\\p{L}\\\\p{N}_]';\n  const joiner = '[-./\\\\\\\\@:#~+=&?%]';\n  return {\n    regex: new RegExp(`(?<!${word}|${joiner})(?:${alternatives.join('|')})(?!${word}|${joiner}${word})`, 'giu'),\n    terms,\n  };\n}\n\nexport function scanText(text: string, pattern: KeywordPattern, offset: number, hits: KeywordHit[]) {\n  for (const match of text.matchAll(pattern.regex)) {\n    const keyword = pattern.terms.get(normalizeTerm(match[0]));\n    if (keyword) hits.push({ keyword, from: offset + match.index, to: offset + match.index + match[0].length });\n  }\n}\n"
    },
    {
      "path": "registry/sprout/lib/sprout/reference-hint.tsx",
      "type": "registry:lib",
      "target": "lib/sprout/reference-hint.tsx",
      "content": "import type { ReactNode } from 'react';\nimport { BookOpenIcon } from '@/lib/sprout/icons/book-open-icon';\nimport { DocumentTextIcon } from '@/lib/sprout/icons/document-text-icon';\nimport { UserIcon } from '@/lib/sprout/icons/user-icon';\nimport { FilePreview, isPreviewableFile, type ViewableFile } from '@/components/ui/file-viewer';\nimport { HoverCardContent, type HoverCardContentProps } from '@/components/ui/hover-card';\nimport type { ChatReferenceKind } from '@/lib/sprout/chat-reference';\n\nexport interface ChatReferenceDetail {\n  kind: ChatReferenceKind;\n  id: string;\n  label: string;\n  description?: string | undefined;\n}\n\nexport interface ChatReferenceResolved {\n  media?: ReactNode;\n  file?: ViewableFile | undefined;\n}\n\nconst fallbackIcons = { agent: UserIcon, skill: BookOpenIcon } as const;\n\nexport function ReferenceHintBody({ reference, media }: { reference: ChatReferenceDetail; media?: ReactNode }) {\n  const Fallback = reference.kind === 'file' ? DocumentTextIcon : fallbackIcons[reference.kind];\n  return (\n    <>\n      <span className=\"sprout-rich-text-keyword-hint-icon\" aria-hidden=\"true\">\n        {media ?? <Fallback size={16} />}\n      </span>\n      <span className=\"sprout-rich-text-keyword-hint-label\">{reference.label}</span>\n      {reference.description && <span className=\"sprout-rich-text-keyword-hint-account\">{reference.description}</span>}\n    </>\n  );\n}\n\nexport function ReferencePeek({\n  file,\n  anchor,\n  ...props\n}: { file: ViewableFile; anchor?: HoverCardContentProps['anchor'] } & {\n  onPointerEnter?: () => void;\n  onPointerLeave?: () => void;\n}) {\n  return (\n    <HoverCardContent\n      side=\"top\"\n      align=\"start\"\n      anchor={anchor}\n      className=\"sprout-file-attachment-peek\"\n      data-slot=\"chat-reference-peek\"\n      {...props}\n    >\n      <FilePreview file={file} />\n    </HoverCardContent>\n  );\n}\n\nexport function referenceHover(reference: ChatReferenceDetail, resolved: ChatReferenceResolved | undefined) {\n  if (reference.kind !== 'file') return 'hint';\n  return resolved?.file && isPreviewableFile(resolved.file) ? 'peek' : null;\n}\n\nexport function referenceDetail(attrs: Record<string, unknown> | undefined): ChatReferenceDetail {\n  const kind = String(attrs?.kind ?? 'file') as ChatReferenceKind;\n  return {\n    kind,\n    id: String(attrs?.id ?? ''),\n    label: String(attrs?.label ?? ''),\n    description: attrs?.description ? String(attrs.description) : undefined,\n  };\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-message-rich-text": {
        "overflow-wrap": "anywhere",
        "min-width": "0"
      },
      ".sprout-message-rich-text-keyword": {
        "outline": "none"
      },
      ".sprout-message-rich-text-keyword:focus-visible > .sprout-rich-text-keyword": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "1px"
      },
      ".sprout-message-rich-text-file": {
        "color": "inherit",
        "font": "inherit",
        "cursor": "pointer",
        "background": "none",
        "border": "0",
        "padding": "0"
      },
      "@media (hover: hover)": {
        ".sprout-message-rich-text-file:hover > .sprout-chat-input-reference": {
          "background-color": "color-mix(in oklab, var(--sprout-text) 14%, transparent)"
        },
        ".sprout-chat-input-bar .sprout-input-group-button[data-variant=\"ghost\"]:hover": {
          "color": "var(--sprout-text)"
        },
        ".sprout-chat-input[data-mode-color] .sprout-chat-input-bar .sprout-chat-input-mode:hover": {
          "background": "color-mix(in oklab, var(--sprout-chat-input-mode) 22%, transparent)"
        },
        ".sprout-attachment:has( > a,  > button):hover": {
          "background": "color-mix(in oklab, var(--sprout-hover) 50%, var(--sprout-surface))"
        },
        ".sprout-file-attachment:has(button.sprout-file-attachment-open:not(:disabled)):hover": {
          "background": "color-mix(in oklab, var(--sprout-hover) 50%, var(--sprout-surface))"
        }
      },
      ".sprout-message-rich-text .sprout-rich-text-keyword-status": {
        "cursor": "inherit"
      },
      ".sprout-message-rich-text > *": {
        "margin-block": "0"
      },
      ".sprout-message-rich-text > * + *": {
        "margin-top": ".5em"
      },
      ".sprout-message-rich-text :is(h1, h2, h3, h4, h5, h6)": {
        "font-size": "1em",
        "font-weight": "600"
      },
      ".sprout-message-rich-text :is(ul, ol)": {
        "padding-left": "1.25em"
      },
      ".sprout-message-rich-text ul": {
        "list-style": "outside"
      },
      ".sprout-message-rich-text ol": {
        "list-style": "decimal"
      },
      ".sprout-message-rich-text li > p": {
        "margin": "0"
      },
      ".sprout-message-rich-text blockquote": {
        "border-left": "2px solid var(--sprout-border)",
        "color": "var(--sprout-muted)",
        "margin-inline": "0",
        "padding-left": ".75em"
      },
      ".sprout-message-rich-text code": {
        "border-radius": "var(--sprout-radius-control)",
        "background-color": "color-mix(in oklab, var(--sprout-text) 8%, transparent)",
        "padding": ".125em .3em",
        "font-family": "ui-monospace, SFMono-Regular, Menlo, monospace",
        "font-size": ".875em"
      },
      ".sprout-message-rich-text pre": {
        "border-radius": "var(--sprout-radius-control)",
        "background-color": "color-mix(in oklab, var(--sprout-text) 8%, transparent)",
        "padding": ".5em .75em",
        "overflow-x": "auto"
      },
      ".sprout-message-rich-text pre code": {
        "white-space": "pre",
        "background-color": "#0000",
        "padding": "0"
      },
      ".sprout-message-rich-text a": {
        "color": "var(--sprout-info)",
        "text-underline-offset": "2px",
        "text-decoration": "underline"
      },
      ".sprout-message-rich-text hr": {
        "border": "0",
        "border-top": "1px solid var(--sprout-border)"
      },
      ".sprout-tooltip-content.sprout-message-rich-text-hint": {
        "border-radius": "var(--sprout-radius-panel)",
        "box-shadow": "var(--sprout-shadow-overlay)",
        "white-space": "nowrap",
        "gap": "6px",
        "padding": "4px 10px"
      },
      ".sprout-message-rich-text-hint > .sprout-tooltip-arrow": {
        "display": "none"
      },
      ".sprout-chat-input": {
        "box-sizing": "border-box",
        "width": "100%",
        "min-width": "0",
        "font-family": "var(--sprout-font)",
        "flex-direction": "column",
        "gap": "12px",
        "display": "flex"
      },
      ".sprout-chat-input-form": {
        "min-width": "0",
        "position": "relative"
      },
      ".sprout-chat-input-attachments.sprout-input-group-addon": {
        "overscroll-behavior-x": "contain",
        "scrollbar-width": "none",
        "cursor": "default",
        "flex-wrap": "nowrap",
        "justify-content": "flex-start",
        "gap": "6px",
        "padding": "4px 4px 0",
        "overflow-x": "auto"
      },
      ".sprout-chat-input-attachments::-webkit-scrollbar": {
        "display": "none"
      },
      ".sprout-chat-input-attachments > *": {
        "flex-shrink": "0"
      },
      ".sprout-chat-input-editor .sprout-rich-text-editor-body": {
        "min-height": "4.5rem"
      },
      ".sprout-chat-input-editor .sprout-rich-text-editor-content": {
        "font-size": "var(--sprout-text-base)",
        "line-height": "1.625"
      },
      ".sprout-chat-input-reference": {
        "border-radius": "var(--sprout-radius-control)",
        "background": "color-mix(in oklab, var(--sprout-text) 8%, transparent)",
        "color": "var(--sprout-text)",
        "white-space": "nowrap",
        "-webkit-box-decoration-break": "clone",
        "box-decoration-break": "clone",
        "padding": "0 .4375em",
        "font-weight": "500"
      },
      ".sprout-chat-input-reference[data-openable]": {
        "cursor": "pointer"
      },
      ".sprout-chat-input-reference[data-chat-reference=\"agent\"]": {
        "background": "var(--sprout-info-subtle)",
        "color": "var(--sprout-info)"
      },
      ".sprout-chat-input-reference.ProseMirror-selectednode": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "0"
      },
      ".sprout-chat-input-editor .sprout-rich-text-editor-content a": {
        "color": "var(--sprout-info)",
        "text-underline-offset": "2px",
        "text-decoration": "underline"
      },
      ".sprout-chat-input-bar": {
        "flex": "1",
        "justify-content": "space-between",
        "align-items": "center",
        "gap": "8px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-chat-input-bar-start, .sprout-chat-input-bar-end": {
        "align-items": "center",
        "gap": "2px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-chat-input-bar-end": {
        "flex-shrink": "0",
        "gap": "6px"
      },
      ".sprout-chat-input-divider": {
        "background": "var(--sprout-line)",
        "align-self": "center",
        "width": "1px",
        "height": "20px",
        "margin-inline": "6px"
      },
      ".sprout-chat-input-bar .sprout-input-group-button[data-variant=\"ghost\"]": {
        "color": "var(--sprout-muted)"
      },
      ".sprout-chat-input-picker-label": {
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "min-width": "0",
        "max-width": "10rem",
        "overflow": "hidden"
      },
      ".sprout-chat-input-bar .sprout-chat-input-mode": {
        "color": "var(--sprout-text)"
      },
      ".sprout-chat-input[data-mode-color] .sprout-input-group.sprout-chat-input-box": {
        "border-color": "var(--sprout-chat-input-mode)",
        "box-shadow": "0 0 0 3px color-mix(in oklab, var(--sprout-chat-input-mode) 14%, transparent)"
      },
      ".sprout-chat-input[data-mode-color] .sprout-chat-input-bar .sprout-chat-input-mode": {
        "background": "color-mix(in oklab, var(--sprout-chat-input-mode) 14%, transparent)",
        "color": "var(--sprout-chat-input-mode)"
      },
      ".sprout-chat-input-mode-option > :is(svg, .sprout-brand-icon)": {
        "color": "var(--sprout-chat-input-mode)"
      },
      ".sprout-dropdown-menu-content.sprout-chat-input-menu": {
        "width": "18rem"
      },
      ".sprout-chat-input-menu :is(.sprout-dropdown-menu-item, .sprout-command-item):has(.sprout-chat-input-option-text)": {
        "align-items": "flex-start",
        "padding-block": "6px"
      },
      ".sprout-chat-input-menu :is(.sprout-dropdown-menu-item, .sprout-command-item):has(.sprout-chat-input-option-text) > :is(svg, .sprout-brand-icon)": {
        "margin-top": "2px"
      },
      ".sprout-chat-input-option-text": {
        "flex-direction": "column",
        "gap": "2px",
        "min-width": "0",
        "display": "flex"
      },
      ".sprout-chat-input-option-description": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "line-height": "1rem"
      },
      ".sprout-chat-input-panel": {
        "inset-inline": "0",
        "z-index": "20",
        "position": "absolute",
        "bottom": "calc(100% + 8px)"
      },
      ".sprout-chat-input-panel[data-side=\"bottom\"]": {
        "top": "calc(100% + 8px)",
        "bottom": "auto"
      },
      ".sprout-chat-input-prompts": {
        "flex-wrap": "wrap",
        "gap": "8px",
        "display": "flex"
      },
      ".sprout-chat-input-stop": {
        "background": "currentColor",
        "border-radius": "2px",
        "width": "10px",
        "height": "10px"
      },
      ".sprout-button.sprout-chat-input-prompt": {
        "font-weight": "400"
      },
      "@media (pointer: coarse)": {
        ".sprout-chat-input-picker-label": {
          "max-width": "6rem"
        },
        ".sprout-chat-input .sprout-button.sprout-chat-input-send": {
          "border-radius": "calc(var(--sprout-radius-control) + 8px)",
          "background-clip": "padding-box",
          "border": "8px solid #0000"
        },
        ".sprout-attachment-carousel-arrow": {
          "opacity": "1"
        }
      },
      "@media (width <= 480px)": {
        ".sprout-chat-input-bar .sprout-chat-input-picker-label": {
          "display": "none"
        }
      },
      "@media (prefers-reduced-motion: no-preference)": {
        ".sprout-chat-input[data-status=\"streaming\"] .sprout-rich-text-editor-content .is-editor-empty:first-child:before": {
          "animation": "1.6s ease-in-out infinite alternate sprout-chat-input-pulse"
        },
        ".sprout-input-group.sprout-chat-input-box": {
          "transition": "border-color var(--sprout-motion-normal) var(--sprout-motion-ease),\n        box-shadow var(--sprout-motion-normal) var(--sprout-motion-ease)"
        },
        ".sprout-attachment, .sprout-file-attachment, .sprout-attachment-dropzone": {
          "transition": "background-color var(--sprout-motion-normal) var(--sprout-motion-ease),\n        border-color var(--sprout-motion-normal) var(--sprout-motion-ease)"
        },
        ".sprout-attachment-media[data-variant=\"image\"]": {
          "transition": "opacity var(--sprout-motion-normal) var(--sprout-motion-ease)"
        },
        ".sprout-attachment-carousel-arrow": {
          "transition": "opacity var(--sprout-motion-fast) var(--sprout-motion-ease),\n        background-color var(--sprout-motion-fast) var(--sprout-motion-ease),\n        color var(--sprout-motion-fast) var(--sprout-motion-ease)"
        },
        ".sprout-attachment-carousel-viewport": {
          "scroll-behavior": "smooth"
        },
        ".sprout-attachment:is([data-state=\"uploading\"], [data-state=\"processing\"]) .sprout-attachment-title, .sprout-file-attachment:is([data-state=\"uploading\"], [data-state=\"processing\"]) .sprout-file-attachment-name": {
          "background": "linear-gradient(90deg,\n          var(--sprout-muted) 0%,\n          var(--sprout-muted) 40%,\n          var(--sprout-text) 50%,\n          var(--sprout-muted) 60%,\n          var(--sprout-muted) 100%)\n        0 0 / 250% 100%",
          "-webkit-text-fill-color": "transparent",
          "-webkit-background-clip": "text",
          "background-clip": "text",
          "animation": "1.8s linear infinite sprout-attachment-shimmer"
        }
      },
      "@keyframes sprout-chat-input-pulse": {
        "to": {
          "opacity": ".4"
        }
      },
      "@media (forced-colors: active)": {
        ".sprout-chat-input[data-status=\"streaming\"] .sprout-rich-text-editor-content .is-editor-empty:first-child:before": {
          "color": "graytext"
        },
        ".sprout-attachment-title, .sprout-file-attachment-name": {
          "-webkit-text-fill-color": "currentColor !important",
          "background": "none !important"
        }
      },
      ".sprout-attachment": {
        "box-sizing": "border-box",
        "border": "1px solid var(--sprout-line)",
        "background": "var(--sprout-surface)",
        "width": "fit-content",
        "min-width": "0",
        "max-width": "100%",
        "color": "var(--sprout-text)",
        "border-radius": "12px",
        "flex-wrap": "wrap",
        "flex-shrink": "0",
        "font-family": "inherit",
        "display": "flex",
        "position": "relative"
      },
      ".sprout-attachment:has( > .sprout-attachment-trigger:focus-visible)": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "0"
      },
      ".sprout-attachment[data-state=\"idle\"]": {
        "border-style": "dashed"
      },
      ".sprout-attachment[data-state=\"error\"]": {
        "border-color": "color-mix(in oklab, var(--sprout-danger) 35%, transparent)"
      },
      ".sprout-attachment-size-lg": {
        "font-size": "var(--sprout-text-sm)",
        "gap": "8px"
      },
      ".sprout-attachment-size-lg:has([data-slot=\"attachment-content\"])": {
        "padding": "8px 10px"
      },
      ".sprout-attachment-size-lg:has([data-slot=\"attachment-media\"])": {
        "padding": "8px"
      },
      ".sprout-attachment-size-md": {
        "font-size": "var(--sprout-text-xs)",
        "gap": "10px"
      },
      ".sprout-attachment-size-md:has([data-slot=\"attachment-content\"])": {
        "padding": "6px 8px"
      },
      ".sprout-attachment-size-md:has([data-slot=\"attachment-media\"])": {
        "padding": "6px"
      },
      ".sprout-attachment-size-sm": {
        "font-size": "var(--sprout-text-xs)",
        "border-radius": "8px",
        "gap": "6px"
      },
      ".sprout-attachment-size-sm:has([data-slot=\"attachment-content\"])": {
        "padding": "4px 6px"
      },
      ".sprout-attachment-size-sm:has([data-slot=\"attachment-media\"])": {
        "padding": "4px"
      },
      ".sprout-attachment-horizontal": {
        "align-items": "center",
        "min-width": "10rem"
      },
      ".sprout-attachment-vertical": {
        "flex-direction": "column",
        "width": "6rem"
      },
      ".sprout-attachment-vertical:has([data-slot=\"attachment-content\"])": {
        "width": "7.5rem"
      },
      ".sprout-attachment-media": {
        "aspect-ratio": "1",
        "background": "var(--sprout-hover)",
        "width": "40px",
        "color": "var(--sprout-text)",
        "border-radius": "8px",
        "flex-shrink": "0",
        "justify-content": "center",
        "align-items": "center",
        "display": "flex",
        "position": "relative",
        "overflow": "hidden"
      },
      ".sprout-attachment-size-md .sprout-attachment-media": {
        "width": "32px"
      },
      ".sprout-attachment-size-sm .sprout-attachment-media": {
        "border-radius": "6px",
        "width": "28px"
      },
      ".sprout-attachment-vertical .sprout-attachment-media": {
        "width": "100%"
      },
      ".sprout-attachment[data-state=\"error\"] .sprout-attachment-media": {
        "background": "var(--sprout-danger-subtle)",
        "color": "var(--sprout-danger)"
      },
      ".sprout-attachment-media svg": {
        "pointer-events": "none"
      },
      ".sprout-attachment-media svg:not([class*=\"size-\"])": {
        "width": "16px",
        "height": "16px"
      },
      ".sprout-attachment-vertical .sprout-attachment-media svg:not([class*=\"size-\"]), .sprout-attachment-vertical .sprout-attachment-media > [data-slot=\"spinner\"]": {
        "width": "24px",
        "height": "24px"
      },
      ".sprout-attachment-size-sm .sprout-attachment-media svg:not([class*=\"size-\"])": {
        "width": "14px",
        "height": "14px"
      },
      ".sprout-attachment-media[data-variant=\"image\"]": {
        "opacity": ".6"
      },
      ".sprout-attachment:is([data-state=\"done\"], [data-state=\"idle\"]) .sprout-attachment-media[data-variant=\"image\"]": {
        "opacity": "1"
      },
      ".sprout-attachment-media[data-variant=\"image\"] > img": {
        "aspect-ratio": "1",
        "object-fit": "cover",
        "width": "100%"
      },
      ".sprout-attachment-content": {
        "flex": "1",
        "min-width": "0",
        "max-width": "100%",
        "line-height": "1.25"
      },
      ".sprout-attachment-vertical .sprout-attachment-content": {
        "padding-inline": "4px"
      },
      ".sprout-attachment-title": {
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "min-width": "0",
        "max-width": "100%",
        "font-weight": "500",
        "display": "block",
        "overflow": "hidden"
      },
      ".sprout-attachment-description": {
        "min-width": "0",
        "max-width": "100%",
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "margin-top": "2px",
        "display": "block",
        "overflow": "hidden"
      },
      ".sprout-attachment[data-state=\"error\"] .sprout-attachment-description": {
        "color": "var(--sprout-danger)"
      },
      ".sprout-attachment-actions": {
        "z-index": "2",
        "flex-shrink": "0",
        "align-items": "center",
        "display": "flex",
        "position": "relative"
      },
      ".sprout-attachment-vertical .sprout-attachment-actions": {
        "gap": "4px",
        "position": "absolute",
        "top": "12px",
        "right": "12px"
      },
      ".sprout-attachment-vertical .sprout-attachment-actions .sprout-button": {
        "background": "color-mix(in oklab, var(--sprout-surface) 88%, transparent)"
      },
      ".sprout-attachment-size-sm.sprout-attachment-vertical .sprout-attachment-actions": {
        "top": "6px",
        "right": "6px"
      },
      ".sprout-attachment-trigger": {
        "z-index": "1",
        "border-radius": "inherit",
        "cursor": "pointer",
        "background": "none",
        "border": "0",
        "outline": "none",
        "margin": "0",
        "padding": "0",
        "position": "absolute",
        "inset": "0"
      },
      ".sprout-attachment:is([data-state=\"uploading\"], [data-state=\"processing\"]) .sprout-attachment-title, .sprout-file-attachment:is([data-state=\"uploading\"], [data-state=\"processing\"]) .sprout-file-attachment-name": {
        "color": "var(--sprout-muted)"
      },
      ".sprout-attachment-group": {
        "min-width": "0"
      },
      ".sprout-attachment-group-grid": {
        "grid-template-columns": "repeat(2, minmax(0, 1fr))",
        "gap": "12px",
        "display": "grid"
      },
      "@media (width >= 40rem)": {
        ".sprout-attachment-group-grid": {
          "grid-template-columns": "repeat(3, minmax(0, 1fr))"
        }
      },
      ".sprout-attachment-group-list": {
        "flex-direction": "column",
        "gap": "8px",
        "display": "flex"
      },
      ".sprout-attachment-group-inline": {
        "flex-wrap": "wrap",
        "gap": "8px",
        "display": "flex"
      },
      ".sprout-attachment-group-carousel": {
        "--sprout-attachment-fade": "var(--sprout-surface)",
        "position": "relative"
      },
      ".sprout-attachment-carousel-viewport": {
        "overscroll-behavior-x": "contain",
        "scrollbar-width": "none",
        "scroll-padding-inline": "32px",
        "overflow": "auto hidden"
      },
      ".sprout-attachment-carousel-viewport::-webkit-scrollbar": {
        "display": "none"
      },
      ".sprout-attachment-carousel-track": {
        "gap": "8px",
        "width": "max-content",
        "padding": "4px 3px",
        "display": "flex"
      },
      ".sprout-attachment-carousel-item": {
        "flex-shrink": "0",
        "min-width": "0"
      },
      ".sprout-attachment-carousel-edge": {
        "pointer-events": "none",
        "align-items": "center",
        "display": "flex",
        "position": "absolute",
        "inset-block": "0"
      },
      ".sprout-attachment-carousel-edge[data-side=\"start\"]": {
        "background": "linear-gradient(to right, var(--sprout-attachment-fade), transparent)",
        "padding-right": "32px",
        "left": "0"
      },
      ".sprout-attachment-carousel-edge[data-side=\"end\"]": {
        "background": "linear-gradient(to left, var(--sprout-attachment-fade), transparent)",
        "padding-left": "32px",
        "right": "0"
      },
      ".sprout-attachment-carousel-arrow": {
        "opacity": "0",
        "pointer-events": "auto"
      },
      ".sprout-attachment-group-carousel:hover .sprout-attachment-carousel-arrow, .sprout-attachment-group-carousel:focus-within .sprout-attachment-carousel-arrow, .sprout-attachment-carousel-arrow:focus-visible": {
        "opacity": "1"
      },
      ".sprout-file-type-icon": {
        "flex-shrink": "0"
      },
      ".sprout-file-type-icon-size-sm": {
        "width": "20px",
        "height": "24px"
      },
      ".sprout-file-type-icon-size-lg": {
        "width": "30px",
        "height": "36px"
      },
      ".sprout-file-type-icon-paper": {
        "fill": "var(--sprout-file-paper)",
        "stroke": "var(--sprout-file-edge)"
      },
      ".sprout-file-type-icon-fold": {
        "fill": "none",
        "stroke": "var(--sprout-file-edge)"
      },
      ".sprout-file-type-icon-lines": {
        "stroke": "var(--sprout-file-edge)"
      },
      ".sprout-file-type-icon-badge": {
        "fill": "var(--sprout-file-generic)"
      },
      ".sprout-file-type-icon[data-kind=\"pdf\"] .sprout-file-type-icon-badge": {
        "fill": "var(--sprout-file-pdf)"
      },
      ".sprout-file-type-icon[data-kind=\"sheet\"] .sprout-file-type-icon-badge": {
        "fill": "var(--sprout-file-sheet)"
      },
      ".sprout-file-type-icon:is([data-kind=\"document\"], [data-kind=\"google\"]) .sprout-file-type-icon-badge": {
        "fill": "var(--sprout-file-document)"
      },
      ".sprout-file-type-icon[data-kind=\"slides\"] .sprout-file-type-icon-badge": {
        "fill": "var(--sprout-file-slides)"
      },
      ".sprout-file-type-icon[data-kind=\"image\"] .sprout-file-type-icon-badge": {
        "fill": "var(--sprout-file-image)"
      },
      ".sprout-file-type-icon-label": {
        "fill": "var(--sprout-file-label)",
        "font-family": "inherit"
      },
      ".sprout-file-attachment": {
        "box-sizing": "border-box",
        "border": "1px solid var(--sprout-line)",
        "background": "var(--sprout-surface)",
        "min-width": "0",
        "color": "var(--sprout-text)",
        "border-radius": "12px",
        "font-family": "inherit",
        "position": "relative"
      },
      ".sprout-file-attachment[data-state=\"error\"]": {
        "border-color": "var(--sprout-danger)"
      },
      ".sprout-file-attachment[data-variant=\"list\"]": {
        "align-items": "center",
        "gap": "8px",
        "padding": "8px",
        "display": "flex"
      },
      ".sprout-file-attachment[data-variant=\"inline\"]": {
        "align-items": "center",
        "gap": "4px",
        "max-width": "100%",
        "padding-left": "8px",
        "display": "flex"
      },
      ".sprout-file-attachment[data-variant=\"inline\"]:not(:has(.sprout-file-attachment-actions))": {
        "padding-right": "10px"
      },
      ".sprout-file-attachment[data-variant=\"grid\"]": {
        "flex-direction": "column",
        "display": "flex"
      },
      ".sprout-file-attachment[data-variant=\"chip\"]": {
        "max-width": "12rem",
        "height": "36px",
        "box-shadow": "var(--sprout-shadow-control)",
        "flex-shrink": "0",
        "align-items": "center",
        "gap": "4px",
        "padding": "0 12px 0 10px",
        "display": "flex"
      },
      ".sprout-file-attachment[data-variant=\"chip\"][data-removable]": {
        "padding-right": "4px"
      },
      ".sprout-file-attachment-open": {
        "min-width": "0",
        "color": "inherit",
        "font": "inherit",
        "text-align": "left",
        "background": "none",
        "border": "0",
        "border-radius": "6px",
        "flex": "1",
        "margin": "0",
        "padding": "4px 0",
        "display": "block"
      },
      "button.sprout-file-attachment-open": {
        "cursor": "pointer"
      },
      "button.sprout-file-attachment-open:disabled": {
        "cursor": "default"
      },
      ".sprout-file-attachment[data-variant=\"grid\"] .sprout-file-attachment-open": {
        "padding": "12px"
      },
      ".sprout-file-attachment[data-variant=\"chip\"] .sprout-file-attachment-open": {
        "align-items": "center",
        "gap": "8px",
        "padding": "0",
        "display": "flex"
      },
      ".sprout-hover-card-content.sprout-file-attachment-peek": {
        "width": "22rem",
        "padding": "4px"
      },
      ".sprout-file-attachment-open:focus-visible, .sprout-file-attachment-preview:focus-visible": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "0"
      },
      ".sprout-file-attachment[data-variant=\"chip\"] button.sprout-file-attachment-open:after": {
        "content": "\"\"",
        "border-radius": "inherit",
        "position": "absolute",
        "inset": "0"
      },
      ".sprout-file-attachment[data-variant=\"chip\"] > :not(.sprout-file-attachment-open)": {
        "z-index": "1",
        "position": "relative"
      },
      ".sprout-file-attachment[data-variant=\"chip\"] .sprout-file-attachment-open:focus-visible": {
        "outline": "none"
      },
      ".sprout-file-attachment[data-variant=\"chip\"]:has( > .sprout-file-attachment-open:focus-visible)": {
        "outline": "var(--sprout-focus-width) solid var(--sprout-focus-ring)",
        "outline-offset": "0"
      },
      ".sprout-file-attachment-name": {
        "min-width": "0",
        "font-size": "var(--sprout-text-sm)",
        "text-overflow": "ellipsis",
        "white-space": "nowrap",
        "font-weight": "500",
        "line-height": "1.25rem",
        "display": "block",
        "overflow": "hidden"
      },
      ".sprout-file-attachment[data-variant=\"chip\"] .sprout-file-attachment-name": {
        "font-size": "var(--sprout-text-xs)",
        "line-height": "1rem"
      },
      ".sprout-file-attachment-status": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "align-items": "center",
        "gap": "4px",
        "margin-top": "2px",
        "line-height": "1rem",
        "display": "flex"
      },
      ".sprout-file-attachment[data-state=\"error\"] .sprout-file-attachment-status, .sprout-file-attachment-failed": {
        "color": "var(--sprout-danger)"
      },
      ".sprout-file-attachment-failed": {
        "font-size": "var(--sprout-text-xs)",
        "flex-shrink": "0"
      },
      ".sprout-file-attachment-media": {
        "color": "var(--sprout-muted)",
        "flex-shrink": "0",
        "display": "flex"
      },
      ".sprout-file-attachment[data-variant=\"list\"] .sprout-file-attachment-media": {
        "background": "var(--sprout-hover)",
        "border-radius": "6px",
        "justify-content": "center",
        "align-items": "center",
        "width": "40px",
        "height": "40px",
        "overflow": "hidden"
      },
      ".sprout-file-attachment-media > .sprout-attachment-image": {
        "object-fit": "cover",
        "width": "100%",
        "height": "100%"
      },
      ".sprout-file-attachment-preview": {
        "aspect-ratio": "16 / 9",
        "background": "var(--sprout-hover)",
        "width": "100%",
        "color": "var(--sprout-muted)",
        "font": "inherit",
        "border": "0",
        "border-radius": "11px 11px 0 0",
        "justify-content": "center",
        "align-items": "center",
        "margin": "0",
        "padding": "0",
        "display": "flex",
        "overflow": "hidden"
      },
      "button.sprout-file-attachment-preview": {
        "cursor": "pointer"
      },
      ".sprout-file-attachment-preview > .sprout-attachment-image": {
        "object-fit": "cover",
        "width": "100%",
        "height": "100%"
      },
      ".sprout-file-attachment-thumb": {
        "background": "var(--sprout-file-image)",
        "border-radius": "6px",
        "flex-shrink": "0",
        "justify-content": "center",
        "align-items": "center",
        "width": "22px",
        "height": "22px",
        "display": "flex",
        "overflow": "hidden"
      },
      ".sprout-file-attachment-thumb > .sprout-attachment-image": {
        "object-fit": "cover",
        "width": "100%",
        "height": "100%"
      },
      ".sprout-file-attachment-thumb > .sprout-attachment-image-failed": {
        "padding": "0",
        "font-size": "0"
      },
      ".sprout-file-attachment-thumb > .sprout-attachment-image-failed svg": {
        "width": "12px",
        "height": "12px"
      },
      ".sprout-file-attachment-actions": {
        "flex-shrink": "0",
        "align-items": "center",
        "display": "flex"
      },
      ".sprout-file-attachment[data-variant=\"grid\"] .sprout-file-attachment-actions": {
        "background": "var(--sprout-surface)",
        "border-radius": "6px",
        "position": "absolute",
        "top": "4px",
        "right": "4px"
      },
      ".sprout-attachment-image-failed": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-xs)",
        "align-items": "center",
        "gap": "8px",
        "padding": "8px",
        "display": "flex"
      },
      ".sprout-attachment-dropzone": {
        "box-sizing": "border-box",
        "border": "1px dashed var(--sprout-input)",
        "background": "color-mix(in oklab, var(--sprout-hover) 30%, var(--sprout-surface))",
        "color": "var(--sprout-text)",
        "text-align": "center",
        "border-radius": "12px",
        "padding": "20px"
      },
      ".sprout-attachment-dropzone[data-dragging]": {
        "border-color": "var(--sprout-focus)",
        "background": "var(--sprout-hover)"
      },
      ".sprout-attachment-dropzone[data-disabled]": {
        "cursor": "not-allowed"
      },
      ".sprout-attachment-dropzone[data-disabled] .sprout-attachment-dropzone-icon": {
        "opacity": ".5"
      },
      ".sprout-attachment-dropzone-icon": {
        "color": "var(--sprout-muted)",
        "margin": "0 auto 8px",
        "display": "block"
      },
      ".sprout-attachment-dropzone-text": {
        "color": "var(--sprout-muted)",
        "font-size": "var(--sprout-text-sm)",
        "margin": "0 0 12px",
        "line-height": "1.25rem"
      },
      "@keyframes sprout-attachment-shimmer": {
        "from": {
          "background-position": "100% 0"
        },
        "to": {
          "background-position": "0 0"
        }
      }
    },
    "@layer base": {
      ":root, .light": {
        "--sprout-file-paper": "oklch(100% 0 0)",
        "--sprout-file-edge": "oklch(87.17% .0082 286.23)",
        "--sprout-file-generic": "oklch(65.18% .0118 280.36)",
        "--sprout-file-pdf": "oklch(61.65% .1939 27.02)",
        "--sprout-file-sheet": "oklch(57.34% .1422 151.05)",
        "--sprout-file-document": "oklch(53.55% .1755 260.83)",
        "--sprout-file-slides": "oklch(63.49% .1638 42.8)",
        "--sprout-file-image": "oklch(85.06% .0674 242.56)",
        "--sprout-file-label": "oklch(100% 0 0)"
      },
      ".dark": {
        "--sprout-file-paper": "oklch(29.01% .0092 276.8)",
        "--sprout-file-edge": "oklch(41.45% .0116 279.39)",
        "--sprout-file-image": "oklch(57.61% .0841 245.81)"
      },
      "@media (prefers-color-scheme: dark)": {
        ":root:not(.light):not(.dark)": {
          "--sprout-file-paper": "oklch(29.01% .0092 276.8)",
          "--sprout-file-edge": "oklch(41.45% .0116 279.39)",
          "--sprout-file-image": "oklch(57.61% .0841 245.81)"
        }
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/message-rich-text/",
  "meta": {
    "source": "packages/sprout/src/components/message-rich-text.tsx"
  }
}
