@digithings-ai/ui 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +48 -2
  2. package/package.json +143 -4
  3. package/src/components/NavShell.tsx +776 -0
  4. package/src/components/SocialRow.tsx +87 -0
  5. package/src/components/Spinner.tsx +27 -0
  6. package/src/components/StackLogo.tsx +40 -0
  7. package/src/components/Terminal.tsx +110 -0
  8. package/src/components/TerminalManifest.tsx +212 -0
  9. package/src/components/ThemeProvider.tsx +271 -0
  10. package/src/components/account/AuthCard.tsx +309 -0
  11. package/src/components/assistant-ui/elements/mermaid-diagram.aui.tsx +63 -0
  12. package/src/components/assistant-ui/elements/mermaid-diagram.tsx +340 -0
  13. package/src/components/brand/BrandWordmark.tsx +32 -0
  14. package/src/components/changelog/ReleaseRail.tsx +81 -0
  15. package/src/components/changelog/index.ts +1 -0
  16. package/src/components/chat/ChatCodeBlock.tsx +67 -0
  17. package/src/components/chat/ChatMarkdown.tsx +66 -0
  18. package/src/components/chat/ChatMarkdownSource.tsx +203 -0
  19. package/src/components/chat/ChatMermaidBlock.tsx +202 -0
  20. package/src/components/chat/ChatMessage.tsx +77 -0
  21. package/src/components/chat/ChatPlayback.tsx +422 -0
  22. package/src/components/chat/ChatStreamCursor.tsx +25 -0
  23. package/src/components/chat/ChatThinking.tsx +113 -0
  24. package/src/components/chat/ChatToolCall.tsx +190 -0
  25. package/src/components/chat/ChatTranscript.tsx +60 -0
  26. package/src/components/chat/ChatWidgetFrame.tsx +107 -0
  27. package/src/components/chat/DigichatBootLoader.tsx +683 -0
  28. package/src/components/chat/DigichatLauncher.tsx +361 -0
  29. package/src/components/chat/DigichatThread.tsx +118 -0
  30. package/src/components/chat/DigichatThreadList.tsx +54 -0
  31. package/src/components/chat/DigichatWordmark.tsx +24 -0
  32. package/src/components/chat/DotMatrix.tsx +650 -0
  33. package/src/components/chat/boot-lab.tsx +766 -0
  34. package/src/components/chat/boot-signal.ts +144 -0
  35. package/src/components/chat/chat-surfaces.ts +52 -0
  36. package/src/components/chat/connection-status.ts +40 -0
  37. package/src/components/chat/digichat-wordmark.ts +355 -0
  38. package/src/components/chat/disclosure-chevron.tsx +49 -0
  39. package/src/components/chat/followable-href.ts +9 -0
  40. package/src/components/chat/gallery-thread/action-icons.tsx +25 -0
  41. package/src/components/chat/gallery-thread/attachment.aui.tsx +262 -0
  42. package/src/components/chat/gallery-thread/block-caret.tsx +439 -0
  43. package/src/components/chat/gallery-thread/cn.ts +1 -0
  44. package/src/components/chat/gallery-thread/composer-keyboard.ts +106 -0
  45. package/src/components/chat/gallery-thread/composer-trigger-popover.aui.tsx +235 -0
  46. package/src/components/chat/gallery-thread/css.d.ts +6 -0
  47. package/src/components/chat/gallery-thread/file.tsx +238 -0
  48. package/src/components/chat/gallery-thread/follow-up-suggestions.aui.tsx +92 -0
  49. package/src/components/chat/gallery-thread/format-json-dump.ts +112 -0
  50. package/src/components/chat/gallery-thread/hooks/use-attachment-src.ts +46 -0
  51. package/src/components/chat/gallery-thread/hooks/use-copy-to-clipboard.ts +9 -0
  52. package/src/components/chat/gallery-thread/image.tsx +519 -0
  53. package/src/components/chat/gallery-thread/markdown-text.tsx +278 -0
  54. package/src/components/chat/gallery-thread/message-error.aui.tsx +105 -0
  55. package/src/components/chat/gallery-thread/message-timing.aui.tsx +143 -0
  56. package/src/components/chat/gallery-thread/private-work-step.tsx +188 -0
  57. package/src/components/chat/gallery-thread/reasoning.tsx +332 -0
  58. package/src/components/chat/gallery-thread/scroll-mode.ts +174 -0
  59. package/src/components/chat/gallery-thread/source.tsx +76 -0
  60. package/src/components/chat/gallery-thread/thread.aui.tsx +1619 -0
  61. package/src/components/chat/gallery-thread/tooltip-icon-button.tsx +53 -0
  62. package/src/components/chat/gallery-thread/typed-welcome-copy.tsx +18 -0
  63. package/src/components/chat/gallery-thread/ui/tooltip.tsx +22 -0
  64. package/src/components/chat/gallery-thread/work-chain-summary.tsx +48 -0
  65. package/src/components/chat/gallery-thread/work-chain.tsx +110 -0
  66. package/src/components/chat/gallery-thread/work-status.ts +66 -0
  67. package/src/components/chat/overlay-scrollbar.tsx +86 -0
  68. package/src/components/chat/sanitize-mermaid-svg.ts +38 -0
  69. package/src/components/chat/skins/SOURCE.md +36 -0
  70. package/src/components/chat/skins/base/attachment.aui.tsx +287 -0
  71. package/src/components/chat/skins/base/aui-default/README.md +45 -0
  72. package/src/components/chat/skins/base/aui-default/collapsible-root.tsx +19 -0
  73. package/src/components/chat/skins/base/aui-default/collapsible.tsx +21 -0
  74. package/src/components/chat/skins/base/aui-default/reasoning.aui.tsx +120 -0
  75. package/src/components/chat/skins/base/aui-default/reasoning.tsx +331 -0
  76. package/src/components/chat/skins/base/aui-default/surfaces.ts +7 -0
  77. package/src/components/chat/skins/base/aui-default/tool-fallback.aui.tsx +772 -0
  78. package/src/components/chat/skins/base/aui-default/tool-group.aui.tsx +241 -0
  79. package/src/components/chat/skins/base/docs-model-options.ts +6 -0
  80. package/src/components/chat/skins/base/elements/assistant-trace.aui.tsx +169 -0
  81. package/src/components/chat/skins/base/elements/composer-trigger-popover.aui.tsx +271 -0
  82. package/src/components/chat/skins/base/elements/directive-text.aui.tsx +29 -0
  83. package/src/components/chat/skins/base/elements/directive-text.tsx +76 -0
  84. package/src/components/chat/skins/base/elements/message-timing.aui.tsx +104 -0
  85. package/src/components/chat/skins/base/elements/model-selector.aui.tsx +140 -0
  86. package/src/components/chat/skins/base/elements/model-selector.tsx +720 -0
  87. package/src/components/chat/skins/base/elements/quote.aui.tsx +290 -0
  88. package/src/components/chat/skins/base/elements/work-chain.tsx +100 -0
  89. package/src/components/chat/skins/base/markdown-text.tsx +294 -0
  90. package/src/components/chat/skins/base/model.ts +1 -0
  91. package/src/components/chat/skins/base/thread.tsx +1050 -0
  92. package/src/components/chat/skins/base/tooltip-icon-button.tsx +56 -0
  93. package/src/components/chat/skins/base/ui/avatar.tsx +115 -0
  94. package/src/components/chat/skins/base/ui/badge.tsx +51 -0
  95. package/src/components/chat/skins/base/ui/button.tsx +67 -0
  96. package/src/components/chat/skins/base/ui/command.tsx +185 -0
  97. package/src/components/chat/skins/base/ui/dialog.tsx +168 -0
  98. package/src/components/chat/skins/base/ui/dot-matrix.tsx +267 -0
  99. package/src/components/chat/skins/base/ui/popover.tsx +97 -0
  100. package/src/components/chat/skins/base/ui/skeleton.tsx +20 -0
  101. package/src/components/chat/skins/base/ui/textarea.tsx +24 -0
  102. package/src/components/chat/skins/base/ui/tooltip.tsx +73 -0
  103. package/src/components/chat/skins/base-assistant-ui/config-provider.tsx +90 -0
  104. package/src/components/chat/skins/base-assistant-ui/defaults.ts +419 -0
  105. package/src/components/chat/skins/base-assistant-ui/index.tsx +44 -0
  106. package/src/components/chat/skins/chatgpt.tsx +448 -0
  107. package/src/components/chat/skins/claude.tsx +380 -0
  108. package/src/components/chat/skins/digichat-composer-toolbar.tsx +151 -0
  109. package/src/components/chat/skins/digichat-context-meter-shares.ts +158 -0
  110. package/src/components/chat/skins/digichat-context-meter.tsx +243 -0
  111. package/src/components/chat/skins/digichat-meter-tone.ts +26 -0
  112. package/src/components/chat/skins/digichat-usage-meter.tsx +103 -0
  113. package/src/components/chat/skins/digichat.tsx +144 -0
  114. package/src/components/chat/skins/expo-react-native.tsx +29 -0
  115. package/src/components/chat/skins/gemini.tsx +322 -0
  116. package/src/components/chat/skins/grok-icon.tsx +34 -0
  117. package/src/components/chat/skins/grok.tsx +369 -0
  118. package/src/components/chat/skins/index.ts +46 -0
  119. package/src/components/chat/skins/perplexity.tsx +462 -0
  120. package/src/components/chat/skins/product-page-assistant/assistant-modal.tsx +73 -0
  121. package/src/components/chat/skins/product-page-assistant/index.tsx +19 -0
  122. package/src/components/chat/skins/product-page-assistant/product-dashboard.tsx +164 -0
  123. package/src/components/chat/skins/react-ink.tsx +97 -0
  124. package/src/components/chat/skins/thread-skin-host-contract.ts +102 -0
  125. package/src/components/chat/skins/thread-skin-view.tsx +156 -0
  126. package/src/components/chat/skins/thread-skins.ts +143 -0
  127. package/src/components/chat/skins/tooltip-icon-button.tsx +35 -0
  128. package/src/components/chat/skins/ui/dropdown-menu.tsx +272 -0
  129. package/src/components/chat/skins/webpage-assistant/assistant-config.ts +238 -0
  130. package/src/components/chat/skins/webpage-assistant/assistant-modal.tsx +78 -0
  131. package/src/components/chat/skins/webpage-assistant/config-provider.tsx +132 -0
  132. package/src/components/chat/skins/webpage-assistant/docs-app.tsx +106 -0
  133. package/src/components/chat/skins/webpage-assistant/docs-article.tsx +109 -0
  134. package/src/components/chat/skins/webpage-assistant/docs-assistant.tsx +73 -0
  135. package/src/components/chat/skins/webpage-assistant/docs-nav.tsx +81 -0
  136. package/src/components/chat/skins/webpage-assistant/host-ui.ts +79 -0
  137. package/src/components/chat/skins/webpage-assistant/index.tsx +12 -0
  138. package/src/components/chat/skins/webpage-assistant/markdown-page.tsx +11 -0
  139. package/src/components/chat/skins/webpage-assistant/pages.ts +9 -0
  140. package/src/components/chat/skins/webpage-assistant/types.ts +178 -0
  141. package/src/components/chat/skins/webpage-assistant/use-mobile.ts +19 -0
  142. package/src/components/chat/stock/SOURCE.md +90 -0
  143. package/src/components/chat/stock/artifacts-panel.tsx +305 -0
  144. package/src/components/chat/stock/attachment.aui.tsx +280 -0
  145. package/src/components/chat/stock/chat-notice.tsx +143 -0
  146. package/src/components/chat/stock/chat-private-mode.tsx +64 -0
  147. package/src/components/chat/stock/deploy-ui-context.tsx +89 -0
  148. package/src/components/chat/stock/embed-chat-prefs.tsx +471 -0
  149. package/src/components/chat/stock/file.tsx +265 -0
  150. package/src/components/chat/stock/follow-up-suggestions.aui.tsx +83 -0
  151. package/src/components/chat/stock/image.tsx +531 -0
  152. package/src/components/chat/stock/index.ts +129 -0
  153. package/src/components/chat/stock/json-view.tsx +140 -0
  154. package/src/components/chat/stock/markdown-text.tsx +319 -0
  155. package/src/components/chat/stock/message-error.aui.tsx +96 -0
  156. package/src/components/chat/stock/message-export-menu.tsx +156 -0
  157. package/src/components/chat/stock/palette-row-preview.tsx +26 -0
  158. package/src/components/chat/stock/reasoning.aui.tsx +120 -0
  159. package/src/components/chat/stock/reasoning.tsx +335 -0
  160. package/src/components/chat/stock/skin-chrome.tsx +81 -0
  161. package/src/components/chat/stock/skin-credit.tsx +63 -0
  162. package/src/components/chat/stock/skin-palette-bridge.tsx +235 -0
  163. package/src/components/chat/stock/skin-palette-context.ts +16 -0
  164. package/src/components/chat/stock/skin-runtime.tsx +52 -0
  165. package/src/components/chat/stock/skin-slash-palette.tsx +393 -0
  166. package/src/components/chat/stock/skin-types.ts +217 -0
  167. package/src/components/chat/stock/stock-chat-prefs-host.tsx +501 -0
  168. package/src/components/chat/stock/stock-send-gate.tsx +94 -0
  169. package/src/components/chat/stock/stock-shape.tsx +39 -0
  170. package/src/components/chat/stock/thread.aui.tsx +645 -0
  171. package/src/components/chat/stock/tool-display.ts +6 -0
  172. package/src/components/chat/stock/tool-fallback.aui.tsx +866 -0
  173. package/src/components/chat/stock/tool-group.aui.tsx +244 -0
  174. package/src/components/chat/stock/tool-surface.ts +120 -0
  175. package/src/components/chat/stock/tooltip-icon-button.tsx +49 -0
  176. package/src/components/chat/stock/ui/avatar.tsx +108 -0
  177. package/src/components/chat/stock/ui/button.tsx +81 -0
  178. package/src/components/chat/stock/ui/collapsible.tsx +21 -0
  179. package/src/components/chat/stock/ui/dialog.tsx +163 -0
  180. package/src/components/chat/stock/ui/skeleton.tsx +13 -0
  181. package/src/components/chat/stock/ui/textarea.tsx +20 -0
  182. package/src/components/chat/stock/ui/tooltip.tsx +68 -0
  183. package/src/components/chat/stock/use-attachment-src.ts +42 -0
  184. package/src/components/chat/stock/use-copy-to-clipboard.ts +29 -0
  185. package/src/components/chat/strip-model-boilerplate.ts +42 -0
  186. package/src/components/chat/suggestion-cycle.tsx +230 -0
  187. package/src/components/chat/suggestion-scroll-row.tsx +81 -0
  188. package/src/components/chat/trace-grouping/chain-group-by.ts +44 -0
  189. package/src/components/chat/trace-grouping/chain-state.ts +141 -0
  190. package/src/components/chat/trace-grouping/index.ts +32 -0
  191. package/src/components/chat/trace-grouping/tool-row.ts +74 -0
  192. package/src/components/chat/trace-grouping/use-deploy-work-disclosure.ts +35 -0
  193. package/src/components/chat/trace-grouping/use-work-chain.ts +103 -0
  194. package/src/components/chat/trace-i18n/core.ts +48 -0
  195. package/src/components/chat/trace-i18n/index.tsx +23 -0
  196. package/src/components/chat/trace-i18n/locales/en.ts +24 -0
  197. package/src/components/chat/trace-i18n/locales/fr.ts +28 -0
  198. package/src/components/chat/trace-i18n/types.ts +35 -0
  199. package/src/components/chat/trace-spacing.ts +249 -0
  200. package/src/components/chat/transcript/activity-view.ts +375 -0
  201. package/src/components/chat/transcript/chat-export.ts +133 -0
  202. package/src/components/chat/transcript/index.ts +10 -0
  203. package/src/components/chat/transcript/save-file.ts +209 -0
  204. package/src/components/chat/transcript/transcript-markdown.ts +428 -0
  205. package/src/components/chat/transcript/types.ts +81 -0
  206. package/src/components/chat/turn-outcome.ts +52 -0
  207. package/src/components/chat/use-warmup-phase.ts +18 -0
  208. package/src/components/chat/work-status-lead.tsx +49 -0
  209. package/src/components/chrome.tsx +264 -0
  210. package/src/components/command-palette/CommandPalette.tsx +404 -0
  211. package/src/components/command-palette/index.ts +6 -0
  212. package/src/components/contact/ContactMailto.tsx +112 -0
  213. package/src/components/contact/index.ts +5 -0
  214. package/src/components/conviction/ConvictionMeter.tsx +40 -0
  215. package/src/components/conviction/SignedConvictionBadge.tsx +26 -0
  216. package/src/components/conviction/index.ts +7 -0
  217. package/src/components/data-layout/BentoGrid.tsx +52 -0
  218. package/src/components/data-layout/CardRail.tsx +150 -0
  219. package/src/components/data-layout/DotMatrixStat.tsx +65 -0
  220. package/src/components/data-layout/FeatureCell.tsx +80 -0
  221. package/src/components/data-layout/MediaFrame.tsx +125 -0
  222. package/src/components/data-layout/ModuleGrid.tsx +735 -0
  223. package/src/components/data-layout/Odometer.tsx +149 -0
  224. package/src/components/data-layout/ProductFrame.tsx +79 -0
  225. package/src/components/data-layout/TestimonialWall.tsx +139 -0
  226. package/src/components/data-layout/index.ts +19 -0
  227. package/src/components/data-layout/treemap.ts +368 -0
  228. package/src/components/deck/DeckStack.tsx +243 -0
  229. package/src/components/desk/DataTable.tsx +373 -0
  230. package/src/components/desk/KpiGrid.tsx +80 -0
  231. package/src/components/desk/Sparkline.tsx +63 -0
  232. package/src/components/desk/StateBlock.tsx +132 -0
  233. package/src/components/desk/index.ts +18 -0
  234. package/src/components/diagrams/ArchitectureDiagram.tsx +350 -0
  235. package/src/components/diagrams/ArchitectureTour.tsx +912 -0
  236. package/src/components/diagrams/TerminalSchematic.tsx +192 -0
  237. package/src/components/diagrams/architecture-svg.tsx +384 -0
  238. package/src/components/diagrams/index.ts +30 -0
  239. package/src/components/diagrams/mermaid-theme.ts +115 -0
  240. package/src/components/diagrams/tour-camera.ts +171 -0
  241. package/src/components/docs/CodeTabs.tsx +90 -0
  242. package/src/components/docs/CopyCommand.tsx +151 -0
  243. package/src/components/docs/DocsLayout.tsx +197 -0
  244. package/src/components/docs/DocsSearch.tsx +97 -0
  245. package/src/components/docs/Endpoint.tsx +135 -0
  246. package/src/components/document/DocumentFrame.tsx +43 -0
  247. package/src/components/document/GlyphList.tsx +51 -0
  248. package/src/components/document/PageTitle.tsx +44 -0
  249. package/src/components/document/Prose.tsx +38 -0
  250. package/src/components/document/Section.tsx +55 -0
  251. package/src/components/document/index.ts +13 -0
  252. package/src/components/effects-chrome/AnnouncementBar.tsx +88 -0
  253. package/src/components/effects-chrome/HorizontalScrollTrack.tsx +461 -0
  254. package/src/components/effects-chrome/Pipeline.tsx +226 -0
  255. package/src/components/effects-chrome/RotatingPrompts.tsx +116 -0
  256. package/src/components/effects-chrome/StackingPanels.tsx +101 -0
  257. package/src/components/effects-chrome/TabStrip.tsx +232 -0
  258. package/src/components/effects-chrome/ToastStack.tsx +201 -0
  259. package/src/components/effects-chrome/horizontal-track-core.ts +70 -0
  260. package/src/components/effects-chrome/index.ts +35 -0
  261. package/src/components/emblems.tsx +188 -0
  262. package/src/components/faviconTheme.ts +23 -0
  263. package/src/components/figure/Figure.tsx +38 -0
  264. package/src/components/figure/index.ts +2 -0
  265. package/src/components/finance-charts/DrawdownPlot.tsx +76 -0
  266. package/src/components/finance-charts/EquityCurve.tsx +71 -0
  267. package/src/components/finance-charts/PriceChart.tsx +119 -0
  268. package/src/components/finance-charts/chart-host.tsx +236 -0
  269. package/src/components/finance-charts/chart-scale.ts +93 -0
  270. package/src/components/finance-charts/demo-data.ts +88 -0
  271. package/src/components/finance-charts/index.ts +46 -0
  272. package/src/components/finance-charts/lw-chart.tsx +292 -0
  273. package/src/components/finance-composites/MarketBar.tsx +243 -0
  274. package/src/components/finance-composites/OrderBook.tsx +133 -0
  275. package/src/components/finance-composites/PerformanceDashboard.tsx +185 -0
  276. package/src/components/finance-composites/SortableTable.tsx +144 -0
  277. package/src/components/finance-composites/StockTicker.tsx +65 -0
  278. package/src/components/finance-composites/SyncedTearsheet.tsx +226 -0
  279. package/src/components/finance-composites/index.ts +28 -0
  280. package/src/components/finance-tearsheet/KpiStrip.tsx +49 -0
  281. package/src/components/finance-tearsheet/LiveBadge.tsx +29 -0
  282. package/src/components/finance-tearsheet/ReturnsMatrix.tsx +321 -0
  283. package/src/components/finance-tearsheet/StrategyTearsheet.tsx +99 -0
  284. package/src/components/finance-tearsheet/TearsheetCard.tsx +54 -0
  285. package/src/components/finance-tearsheet/TradeLogTable.tsx +73 -0
  286. package/src/components/finance-tearsheet/charts.tsx +2624 -0
  287. package/src/components/finance-tearsheet/demo-data.ts +177 -0
  288. package/src/components/finance-tearsheet/format.ts +41 -0
  289. package/src/components/finance-tearsheet/index.ts +120 -0
  290. package/src/components/finance-tearsheet/print.ts +52 -0
  291. package/src/components/finance-tearsheet/risk-bands.ts +48 -0
  292. package/src/components/finance-tearsheet/stats.ts +35 -0
  293. package/src/components/finance-tearsheet/strategy-sheet-model.ts +238 -0
  294. package/src/components/finance-tearsheet/types.ts +58 -0
  295. package/src/components/footer/FooterCells.tsx +109 -0
  296. package/src/components/footer/index.ts +6 -0
  297. package/src/components/graph.tsx +158 -0
  298. package/src/components/icons.tsx +98 -0
  299. package/src/components/landing/PixelWordmark.tsx +36 -0
  300. package/src/components/logos.ts +39 -0
  301. package/src/components/marquee/Marquee.tsx +204 -0
  302. package/src/components/metrics/PerfMetrics.tsx +68 -0
  303. package/src/components/metrics/StatCounter.tsx +104 -0
  304. package/src/components/page-geometry.tsx +177 -0
  305. package/src/components/pricing/Pricing.tsx +174 -0
  306. package/src/components/pricing/PricingMatrix.tsx +219 -0
  307. package/src/components/prose/index.ts +2 -0
  308. package/src/components/prose/prose.tsx +86 -0
  309. package/src/components/repo-activity/RepoActivity.tsx +599 -0
  310. package/src/components/repo-activity/RepoHeatmap.tsx +225 -0
  311. package/src/components/repo-activity/demo.ts +201 -0
  312. package/src/components/repo-activity/fetch.ts +211 -0
  313. package/src/components/repo-activity/heatmap.ts +123 -0
  314. package/src/components/repo-activity/index.ts +28 -0
  315. package/src/components/repo-activity/types.ts +99 -0
  316. package/src/components/stages/NumberedStages.tsx +116 -0
  317. package/src/components/symbols/marks.tsx +116 -0
  318. package/src/components/symbols/terminal-lockup.tsx +136 -0
  319. package/src/components/symbols/terminal-marks.tsx +226 -0
  320. package/src/components/terminal/ChatResponseLoader.tsx +67 -0
  321. package/src/components/terminal/ContainerBootLoader.tsx +82 -0
  322. package/src/components/terminal/TerminalStepCaret.tsx +202 -0
  323. package/src/components/themeInit.ts +24 -0
  324. package/src/components/typography/MotionReveal.tsx +108 -0
  325. package/src/components/typography/TypewriterReveal.tsx +101 -0
  326. package/src/components/typography/WordReveal.tsx +143 -0
  327. package/src/data/modules.ts +378 -0
  328. package/src/data/subsystems.ts +101 -0
  329. package/src/index.ts +587 -0
  330. package/src/lib/base-path.ts +60 -0
  331. package/src/lib/cx.ts +25 -0
  332. package/src/lib/gloomberb.ts +69 -0
  333. package/src/lib/record.ts +19 -0
  334. package/src/lib/stub-payload.ts +183 -0
  335. package/src/lib/useBodyScrollLock.ts +44 -0
  336. package/src/lib/utils.ts +6 -0
  337. package/src/motion/primitives.tsx +105 -0
  338. package/src/motion/scroll-glide.ts +62 -0
  339. package/src/motion/scrolly-core.ts +38 -0
  340. package/src/motion/scrolly.tsx +95 -0
  341. package/src/navigation/HashScrollManager.tsx +167 -0
  342. package/src/navigation/hashScroll.ts +78 -0
  343. package/src/replay/browser.ts +280 -0
  344. package/src/replay/chat-export-run.ts +121 -0
  345. package/src/replay/export-format.ts +25 -0
  346. package/src/replay/export-mount.ts +32 -0
  347. package/src/replay/filename.ts +54 -0
  348. package/src/replay/index.ts +21 -0
  349. package/src/replay/redact-dom.ts +178 -0
  350. package/src/replay/redact.ts +113 -0
  351. package/src/replay/snapshot.ts +659 -0
  352. package/src/styles/account-auth.css +339 -0
  353. package/src/styles/brand-wordmark.css +11 -0
  354. package/src/styles/card-rail.css +120 -0
  355. package/src/styles/chat-aui.css +1143 -0
  356. package/src/styles/chat-core.css +469 -0
  357. package/src/styles/chat-digichat.css +2531 -0
  358. package/src/styles/chat-math.css +70 -0
  359. package/src/styles/chat-skin-palette.css +138 -0
  360. package/src/styles/chat-stock-menu.css +37 -0
  361. package/src/styles/chat-widgets.css +190 -0
  362. package/src/styles/command-palette.css +372 -0
  363. package/src/styles/controls-core.css +2261 -0
  364. package/src/styles/controls-overlay.css +603 -0
  365. package/src/styles/data-layout.css +288 -0
  366. package/src/styles/deck.css +141 -0
  367. package/src/styles/diagrams.css +1860 -0
  368. package/src/styles/digichat-app-theme.css +250 -0
  369. package/src/styles/digichat-boot-loader.css +487 -0
  370. package/src/styles/digichat-launcher.css +377 -0
  371. package/src/styles/docs.css +165 -0
  372. package/src/styles/effects-chrome.css +888 -0
  373. package/src/styles/finance-composites.css +214 -0
  374. package/src/styles/finance-tearsheet-overlay.css +90 -0
  375. package/src/styles/finance-tearsheet.css +945 -0
  376. package/src/styles/marquee.css +168 -0
  377. package/src/styles/metrics.css +82 -0
  378. package/src/styles/nav-shell.css +551 -0
  379. package/src/styles/pricing.css +79 -0
  380. package/src/styles/repo-activity.css +575 -0
  381. package/src/styles/stages.css +69 -0
  382. package/src/styles/terminal-loaders.css +122 -0
  383. package/src/styles/terminal-manifest.css +228 -0
  384. package/src/styles/web-theme.css +1007 -0
  385. package/src/styles/word-reveal.css +204 -0
  386. package/src/theme/apply-theme.ts +214 -0
  387. package/src/theme/index.ts +27 -0
  388. package/src/theme/palette-registry.ts +855 -0
  389. package/src/theme/tui-prefs.ts +64 -0
  390. package/src/ui/alert.tsx +78 -0
  391. package/src/ui/avatar.tsx +104 -0
  392. package/src/ui/badge.tsx +75 -0
  393. package/src/ui/breadcrumb.tsx +61 -0
  394. package/src/ui/button.tsx +67 -0
  395. package/src/ui/card.tsx +139 -0
  396. package/src/ui/checkbox.tsx +27 -0
  397. package/src/ui/collapsible.tsx +32 -0
  398. package/src/ui/date-pager.tsx +325 -0
  399. package/src/ui/dialog.tsx +157 -0
  400. package/src/ui/dropdown-menu.tsx +267 -0
  401. package/src/ui/empty-state.tsx +165 -0
  402. package/src/ui/field.tsx +104 -0
  403. package/src/ui/form.tsx +36 -0
  404. package/src/ui/icon-button.tsx +36 -0
  405. package/src/ui/index.ts +34 -0
  406. package/src/ui/input.tsx +33 -0
  407. package/src/ui/kbd.tsx +30 -0
  408. package/src/ui/label.tsx +32 -0
  409. package/src/ui/pager.tsx +119 -0
  410. package/src/ui/pagination.tsx +126 -0
  411. package/src/ui/radio-group.tsx +51 -0
  412. package/src/ui/search-bar.tsx +85 -0
  413. package/src/ui/segmented-control.tsx +76 -0
  414. package/src/ui/select.tsx +257 -0
  415. package/src/ui/separator.tsx +24 -0
  416. package/src/ui/sheet.tsx +141 -0
  417. package/src/ui/skeleton.tsx +76 -0
  418. package/src/ui/slider.tsx +76 -0
  419. package/src/ui/switch.tsx +31 -0
  420. package/src/ui/table.tsx +179 -0
  421. package/src/ui/tabs.tsx +89 -0
  422. package/src/ui/tags-input.tsx +168 -0
  423. package/src/ui/textarea.tsx +17 -0
  424. package/src/ui/tooltip.tsx +71 -0
@@ -0,0 +1,1143 @@
1
+ /* ==========================================================================
2
+ First-party digichat Thread — assistant-ui CSS-var bridge
3
+ --------------------------------------------------------------------------
4
+ Maps AUI / shadcn vars used by primitives and copied elements onto the
5
+ digiweb terminal pane. SCOPED to `.digichat-thread` so the 11 official
6
+ catalog skins keep their own `--background` / radius.
7
+ Import once in the app shell (gallery globals, or via DigichatThread.tsx):
8
+ @import "@digithings-ai/ui/styles/chat-aui.css";
9
+ ========================================================================== */
10
+
11
+ @theme inline {
12
+ --color-ink: var(--ink);
13
+ --color-ink-soft: var(--ink-soft);
14
+ --color-ink-mute: var(--ink-mute);
15
+ --color-term-bg: var(--term-bg);
16
+ --color-term-ink: var(--term-ink);
17
+ --color-term-hair: var(--term-hair);
18
+ --color-term-fill: var(--term-fill);
19
+ --color-term-mute: var(--term-mute);
20
+ --color-hair: var(--hair);
21
+ --color-hair-2: var(--hair-2);
22
+ --color-surface: var(--surface);
23
+ --color-bg: var(--bg);
24
+ --color-on-accent: var(--on-accent);
25
+ --color-up: var(--up);
26
+ --color-down: var(--down);
27
+ --color-danger: var(--danger);
28
+ --color-warn: var(--warn);
29
+ }
30
+
31
+ /* The stock thread's raised fill (user bubble, skeletons, dialog, inline
32
+ code, hovers): `bg-surface-2` and `bg-surface-2/<n>`. This sheet declares
33
+ no `--color-surface-2` theme colour, so Tailwind's own `bg-*` does not emit
34
+ it; this utility does, and only inside the stock thread (its root carries
35
+ `data-stock-thread`) and the stock portals rendered from it (the dialog
36
+ carries `data-stock-portal` inside StockShapeProvider). Anywhere else the
37
+ class matches no declaration at all, exactly as before the stock thread
38
+ used it: other skins and host chrome reuse stock parts that ask for it
39
+ (markdown table heads, tool cards, the docs page's outline Button) and
40
+ keep their own background. `:where()` adds no specificity, and
41
+ `--surface-2` resolves on the element, so thread-scoped tokens win.
42
+ `--value("2")` limits the utility to `bg-surface-2`. */
43
+ @utility bg-surface-* {
44
+ &:where([data-stock-thread], [data-stock-thread] *, [data-stock-portal], [data-stock-portal] *) {
45
+ --stock-surface-step: --value("2");
46
+ background-color: var(--surface-2);
47
+ background-color: color-mix(in oklab, var(--surface-2) --modifier(integer)%, transparent);
48
+ }
49
+ }
50
+
51
+ /* `--font-geist-mono` is the retired name for the host surface's one mono face
52
+ (DIG-2375). It is declared HERE, beside the rules that read it, because every
53
+ surface that mounts this sheet sets only the generic `--font-mono-face` from
54
+ its own `fonts.ts` and none of them loads `digichat-app-theme.css`. Without it
55
+ `font-family: var(--font-geist-mono), …` below is invalid and the skin falls
56
+ back to the page font. Swap the face in the surface's config; never here. */
57
+ :root {
58
+ --font-geist-mono: var(--font-mono-face, "Geist Mono");
59
+ }
60
+
61
+ [data-thread-skin="digichat"] {
62
+ --radius: 0;
63
+ --radius-thread: 0;
64
+ --composer-radius: 0;
65
+ /* Gallery chatbot.css uses var(--font-mono). --font-geist-mono is the
66
+ retired-name alias declared below for the app's one mono face. */
67
+ --font-mono: var(--font-geist-mono), ui-monospace, monospace;
68
+ --font-sans: var(--font-geist-mono), ui-monospace, monospace;
69
+ font-family: var(--font-geist-mono), ui-monospace, monospace;
70
+ }
71
+
72
+ [data-thread-skin="digichat"] .digichat-composer textarea:focus:not(:focus-visible),
73
+ [data-thread-skin="digichat"] .aui-composer-input:focus:not(:focus-visible) {
74
+ outline: none;
75
+ box-shadow: none;
76
+ }
77
+
78
+ [data-thread-skin="digichat"] .digichat-composer textarea:focus-visible,
79
+ [data-thread-skin="digichat"] .aui-composer-input:focus-visible {
80
+ outline: 1px solid var(--accent);
81
+ outline-offset: -1px;
82
+ box-shadow: none;
83
+ }
84
+
85
+ .digichat-thread {
86
+ --accent: var(--ink);
87
+ --accent-weak: color-mix(in srgb, var(--accent) 14%, transparent);
88
+ --on-accent: #06110f;
89
+ --bg: #0a0e0c;
90
+ --surface: #121417;
91
+ --surface-2: #171a1e;
92
+ --hair: rgba(255, 255, 255, 0.09);
93
+ --hair-2: rgba(255, 255, 255, 0.15);
94
+ --ink: #eceef0;
95
+ --ink-soft: #9aa0a6;
96
+ --ink-mute: #6b7177;
97
+ --term-bg: #08090b;
98
+ --term-ink: #e7eaec;
99
+ --term-hair: #2a2e33;
100
+ --term-fill: #101317;
101
+ --term-mute: #7e858b;
102
+ --up: #3dd6c4;
103
+ --down: #e5533e;
104
+ --danger: #e5533e;
105
+ --warn: #e0b341;
106
+ --radius: 0;
107
+ --radius-thread: 0;
108
+ --thread-max-width: 44rem;
109
+ --composer-radius: 0;
110
+ --composer-padding: 0.5rem;
111
+ --composer-bg: var(--surface);
112
+ --background: var(--term-bg);
113
+ --foreground: var(--term-ink);
114
+ --card: var(--surface);
115
+ --card-foreground: var(--term-ink);
116
+ --muted: var(--term-fill);
117
+ --muted-foreground: var(--term-mute);
118
+ --border: var(--term-hair);
119
+ --primary: var(--ink);
120
+ --primary-foreground: var(--bg);
121
+ --ring: var(--accent);
122
+ font-family: var(--font-geist-mono, var(--font-mono), ui-monospace, monospace);
123
+ background: var(--term-bg);
124
+ color: var(--term-ink);
125
+ /* Full-bleed canvas like the other skins: the root fills its container so
126
+ the background reaches the edges, and the inner column in
127
+ `thread.aui.tsx` (`mx-auto max-w-(--thread-max-width)`) keeps the actual
128
+ messages and composer at 44rem. Constraining the root instead left the
129
+ page background showing through in the gutters. */
130
+ width: 100%;
131
+ }
132
+
133
+ :root[data-theme="light"] .digichat-thread,
134
+ .light .digichat-thread {
135
+ --bg: #f4f3ee;
136
+ --surface: #f1f0eb;
137
+ --surface-2: #e8e6df;
138
+ --hair: rgba(12, 12, 10, 0.12);
139
+ --hair-2: rgba(12, 12, 10, 0.2);
140
+ --ink: #1a1c1e;
141
+ --ink-soft: #4a4f54;
142
+ --ink-mute: #6b7177;
143
+ --term-bg: #f1f0eb;
144
+ --term-ink: #1a1c1e;
145
+ --term-hair: #d4d1c8;
146
+ --term-fill: #e8e6df;
147
+ --term-mute: #6b7177;
148
+ --on-accent: #06110f;
149
+ --background: var(--term-bg);
150
+ --foreground: var(--term-ink);
151
+ }
152
+
153
+ /*
154
+ Density. One token set on the thread root; `data-density` only reassigns it.
155
+ The scale is the only length source, and `--trace-*` are aliases of the
156
+ density tokens so the rules that already read them keep working.
157
+ Values mirror `DENSITY_TOKENS` in `components/chat/trace-spacing.ts` and are
158
+ pinned by `styles/density-tokens.contract.test.ts`.
159
+ */
160
+ .digichat-thread,
161
+ .digichat-launcher {
162
+ --trace-space-1: 0.125rem;
163
+ --trace-space-2: 0.25rem;
164
+ --trace-space-3: 0.375rem;
165
+ --trace-space-4: 0.5rem;
166
+ --trace-space-5: 0.625rem;
167
+ --trace-space-6: 0.75rem;
168
+ --trace-space-7: 1rem;
169
+ --trace-space-8: 1.25rem;
170
+
171
+ /* default mode: four stack gaps, body padding, leading and tracking */
172
+ --density-gap-1: var(--trace-space-2);
173
+ --density-gap-2: var(--trace-space-4);
174
+ --density-gap-3: var(--trace-space-5);
175
+ --density-gap-4: var(--trace-space-6);
176
+ --density-pad: var(--trace-space-1);
177
+ --density-leading: 1.6;
178
+ --density-leading-tight: 1.4;
179
+ --density-tracking: 0em;
180
+ --density-tracking-mono: 0.01em;
181
+ --composer-padding: calc(var(--density-pad) + 0.5rem);
182
+
183
+ /* semantic aliases the chain reads */
184
+ --trace-title-gap: var(--density-gap-3);
185
+ --trace-group-gap: var(--density-gap-2);
186
+ --trace-within-gap: var(--density-gap-1);
187
+ --trace-header-gap: var(--density-gap-1);
188
+ --trace-body-pad: var(--density-pad);
189
+ --trace-body-indent: var(--trace-space-6);
190
+ --trace-chain-gap: var(--density-gap-4);
191
+ /* component sizing tokens (chat-aui) — local to the sheet, which declares
192
+ its own palette and does not assume tokens.css is loaded. */
193
+ --aui-marker-w: 1.25rem;
194
+ --aui-marker-offset: 0.2rem;
195
+ --aui-line-height: 1.375rem;
196
+ --aui-input-pad-y: 0.2rem;
197
+ --aui-input-rows: 5;
198
+ --aui-chip-max-w: 16rem;
199
+ --aui-chip-gap: 0.35rem;
200
+ --aui-chip-pad: 0.15rem 0.45rem;
201
+ --aui-chip-fs: 0.66rem;
202
+ --aui-trace-icon: 0.875rem;
203
+ --aui-chevron-size: 0.55rem;
204
+ --aui-loader-size: 0.75rem;
205
+ --aui-copy-hit: 1.5rem;
206
+ --aui-dump-max-h: 8.5rem;
207
+ --aui-json-max-h: 18rem;
208
+ }
209
+
210
+ .digichat-thread[data-density="compact"] {
211
+ --density-gap-1: var(--trace-space-1);
212
+ --density-gap-2: var(--trace-space-2);
213
+ --density-gap-3: var(--trace-space-3);
214
+ --density-gap-4: var(--trace-space-4);
215
+ --density-pad: 0rem;
216
+ --density-leading: 1.45;
217
+ --density-leading-tight: 1.3;
218
+ --density-tracking: -0.005em;
219
+ --density-tracking-mono: 0em;
220
+ --trace-header-gap: 0rem;
221
+ --trace-body-indent: var(--trace-space-5);
222
+ }
223
+
224
+ .digichat-thread[data-density="default"] {
225
+ --density-gap-1: var(--trace-space-2);
226
+ --density-gap-2: var(--trace-space-4);
227
+ --density-gap-3: var(--trace-space-5);
228
+ --density-gap-4: var(--trace-space-6);
229
+ --density-pad: var(--trace-space-1);
230
+ --density-leading: 1.6;
231
+ --density-leading-tight: 1.4;
232
+ --density-tracking: 0em;
233
+ --density-tracking-mono: 0.01em;
234
+ --trace-header-gap: var(--trace-space-2);
235
+ --trace-body-indent: var(--trace-space-6);
236
+ }
237
+
238
+ .digichat-thread[data-density="airy"] {
239
+ --density-gap-1: var(--trace-space-3);
240
+ --density-gap-2: var(--trace-space-6);
241
+ --density-gap-3: var(--trace-space-7);
242
+ --density-gap-4: var(--trace-space-8);
243
+ --density-pad: var(--trace-space-3);
244
+ --density-leading: 1.75;
245
+ --density-leading-tight: 1.55;
246
+ --density-tracking: 0.005em;
247
+ --density-tracking-mono: 0.02em;
248
+ --trace-header-gap: var(--trace-space-6);
249
+ --trace-body-indent: var(--trace-space-7);
250
+ }
251
+
252
+ .digichat-thread [data-role="user"],
253
+ .digichat-thread .chat-msg--user,
254
+ .digichat-thread .chat-msg--assistant,
255
+ .digichat-thread .chat-msg--system {
256
+ justify-content: flex-start;
257
+ margin-inline: 0;
258
+ max-width: none;
259
+ }
260
+
261
+ .digichat-thread textarea,
262
+ .digichat-thread input,
263
+ .digichat-thread button {
264
+ border-radius: 0;
265
+ }
266
+
267
+ .digichat-example:hover,
268
+ .digichat-example:focus-visible {
269
+ color: var(--ink);
270
+ outline: none;
271
+ }
272
+
273
+ .digichat-action:hover,
274
+ .digichat-action:focus-visible {
275
+ background: transparent;
276
+ color: var(--ink);
277
+ }
278
+
279
+ .digichat-thread .aui-composer-send,
280
+ .digichat-thread .aui-composer-send:not(:disabled),
281
+ .digichat-thread .aui-composer-send:not(:disabled):hover,
282
+ .digichat-thread .aui-composer-send:focus-visible {
283
+ background: transparent;
284
+ color: color-mix(in oklab, var(--ink-mute) 22%, transparent);
285
+ box-shadow: none;
286
+ }
287
+
288
+ .digichat-thread .aui-composer-send:not(:disabled) {
289
+ color: var(--ink-soft);
290
+ }
291
+
292
+ .digichat-thread .aui-composer-send:not(:disabled):hover,
293
+ .digichat-thread .aui-composer-send:not(:disabled):focus-visible {
294
+ color: var(--ink);
295
+ }
296
+
297
+ .digichat-thread .chat-msg {
298
+ align-items: flex-start;
299
+ }
300
+
301
+ .digichat-thread [data-slot="aui_thread-viewport"],
302
+ .digichat-thread.aui-thread-root [data-slot="aui_thread-viewport"] {
303
+ overflow-x: hidden;
304
+ }
305
+
306
+ .digichat-thread .aui-assistant-message-content,
307
+ .digichat-thread .aui-assistant-message-content .aui-md {
308
+ overflow: visible;
309
+ }
310
+
311
+ .digichat-thread .aui-md-ul,
312
+ .digichat-thread .aui-md-ol {
313
+ margin-inline-start: 0;
314
+ /* Indents stay literal: gallery-thread.source.test.ts pins the source text. */
315
+ padding-inline-start: 1.75rem;
316
+ list-style-position: outside;
317
+ }
318
+
319
+ .digichat-thread .aui-md-ul {
320
+ list-style-type: disc;
321
+ }
322
+
323
+ .digichat-thread .aui-md-ol {
324
+ padding-inline-start: 2rem;
325
+ list-style-type: decimal;
326
+ }
327
+
328
+ .digichat-thread .aui-md-pre,
329
+ .digichat-thread .aui-md-table-wrapper {
330
+ max-width: 100%;
331
+ overflow-x: auto;
332
+ }
333
+
334
+ .digichat-thread .chat-msg-marker {
335
+ margin-top: var(--aui-marker-offset);
336
+ }
337
+
338
+ .digichat-thread .aui-composer-input {
339
+ display: block;
340
+ min-height: calc(var(--aui-line-height) + (2 * var(--aui-input-pad-y)));
341
+ padding-block: var(--aui-input-pad-y);
342
+ line-height: var(--aui-line-height);
343
+ field-sizing: content;
344
+ box-sizing: border-box;
345
+ /* 3-5 rows then scroll (padding-block 0.2rem each side). */
346
+ max-height: calc(
347
+ var(--aui-input-rows) * var(--aui-line-height) + (2 * var(--aui-input-pad-y))
348
+ );
349
+ overflow-y: auto;
350
+ white-space: pre-wrap;
351
+ overflow-wrap: break-word;
352
+ }
353
+
354
+ .digichat-thread .aui-composer-input:placeholder-shown {
355
+ overflow: hidden;
356
+ white-space: nowrap;
357
+ }
358
+
359
+ /* Composer shell is a border only. The input is already transparent; the
360
+ wrapper must not paint --composer-bg / --surface behind it. */
361
+ .digichat-thread [data-slot="aui_composer-shell"],
362
+ .digichat-launcher [data-slot="aui_composer-shell"] {
363
+ --composer-bg: transparent;
364
+ background: transparent;
365
+ }
366
+
367
+ /* Popup / embed compact Thread: one row until a newline. Empty and one-line
368
+ typed share 1lh — do not shorten :placeholder-shown vs typed. */
369
+ .digichat-launcher [data-slot="aui_composer-shell"][data-layout="compact"] {
370
+ --composer-padding: var(--trace-space-2);
371
+ gap: 0;
372
+ padding: var(--trace-space-2) var(--trace-space-3);
373
+ }
374
+
375
+ .digichat-launcher [data-slot="aui_composer-shell"][data-layout="compact"] .aui-composer-main {
376
+ align-items: center;
377
+ gap: var(--trace-space-2);
378
+ }
379
+
380
+ .digichat-launcher [data-slot="aui_composer-shell"][data-layout="compact"] .aui-composer-input {
381
+ display: block;
382
+ box-sizing: border-box;
383
+ field-sizing: content;
384
+ min-height: 1lh;
385
+ padding-block: 0;
386
+ line-height: var(--aui-line-height);
387
+ /* Grow to 5 rows, then scroll; long input wraps instead of running right. */
388
+ max-height: calc(var(--aui-input-rows) * var(--aui-line-height));
389
+ overflow-x: hidden;
390
+ overflow-y: auto;
391
+ white-space: pre-wrap;
392
+ overflow-wrap: break-word;
393
+ }
394
+
395
+ .digichat-launcher [data-slot="aui_composer-shell"][data-layout="compact"] .aui-composer-input:placeholder-shown {
396
+ field-sizing: fixed;
397
+ height: 1lh;
398
+ min-height: 1lh;
399
+ max-height: 1lh;
400
+ white-space: nowrap;
401
+ overflow: hidden;
402
+ text-overflow: ellipsis;
403
+ }
404
+
405
+ .digichat-thread [data-slot="dot-matrix"] {
406
+ color: currentColor;
407
+ vertical-align: -0.15em;
408
+ }
409
+
410
+ .digichat-thread :is(
411
+ .aui-composer-send,
412
+ .aui-composer-cancel,
413
+ .aui-composer-add-attachment,
414
+ .digichat-action
415
+ ) {
416
+ cursor: pointer;
417
+ animation: none;
418
+ }
419
+
420
+ .digichat-thread .aui-composer-add-attachment,
421
+ .digichat-thread [data-slot="aui_composer-add-attachment"] {
422
+ color: var(--ink-mute);
423
+ caret-color: transparent;
424
+ animation: none;
425
+ }
426
+
427
+ .digichat-thread [data-slot="aui_composer-shell"]:focus-within .aui-composer-add-attachment,
428
+ .digichat-thread [data-slot="aui_composer-shell"]:focus-within [data-slot="aui_composer-add-attachment"] {
429
+ color: var(--ink-mute);
430
+ }
431
+
432
+ .digichat-thread .aui-composer-add-attachment:hover,
433
+ .digichat-thread .aui-composer-add-attachment:active,
434
+ .digichat-thread [data-slot="aui_composer-add-attachment"]:hover,
435
+ .digichat-thread [data-slot="aui_composer-add-attachment"]:active {
436
+ color: var(--ink);
437
+ }
438
+
439
+ .digichat-thread .chat-msg-marker {
440
+ display: inline-flex;
441
+ align-items: center;
442
+ justify-content: center;
443
+ width: var(--aui-marker-w);
444
+ }
445
+
446
+ .digichat-thread .chat-md-copy {
447
+ display: inline-flex;
448
+ min-height: var(--aui-copy-hit);
449
+ min-width: var(--aui-copy-hit);
450
+ align-items: center;
451
+ justify-content: center;
452
+ }
453
+
454
+ .digichat-thread__viewport {
455
+ scrollbar-width: thin;
456
+ }
457
+
458
+ /* Keep the top-anchored (trailing) user message off the top edge. The library
459
+ pins the anchor's border-box top to the viewport top, so padding shows as a
460
+ gap there. DENSITY: the padding is the message-gap token and the same amount
461
+ is taken back as margin, so in flow the turn sits exactly one message gap
462
+ below the previous answer (no extra spacer), and when pinned the previous
463
+ message ends exactly at the viewport top. */
464
+ .digichat-thread__viewport [data-aui-top-anchor-user] {
465
+ padding-top: var(--density-gap-4, 0.75rem);
466
+ margin-top: calc(-1 * var(--density-gap-4, 0.75rem));
467
+ }
468
+
469
+ .digichat-thread-list {
470
+ --accent: var(--accent-digichat, #e2708a);
471
+ --term-bg: #08090b;
472
+ --term-ink: #e7eaec;
473
+ --term-hair: #2a2e33;
474
+ --term-fill: #101317;
475
+ --term-mute: #7e858b;
476
+ --hair: rgba(255, 255, 255, 0.09);
477
+ background: var(--term-bg);
478
+ color: var(--term-ink);
479
+ font-family: var(--font-geist-mono, var(--font-mono), ui-monospace, monospace);
480
+ }
481
+
482
+ :root[data-theme="light"] .digichat-thread-list,
483
+ .light .digichat-thread-list {
484
+ --term-bg: #f1f0eb;
485
+ --term-ink: #1a1c1e;
486
+ --term-hair: #d4d1c8;
487
+ --term-fill: #e8e6df;
488
+ --term-mute: #6b7177;
489
+ --hair: rgba(12, 12, 10, 0.12);
490
+ }
491
+
492
+ /* assistant-ui puts `data-active` / `aria-current` on the item Root, not on the
493
+ Trigger that carries `__item`, so match the parent too. The open chat gets a
494
+ ▸ marker and an accent wash that reads on a transparent sidebar. */
495
+ .digichat-thread-list__item::before {
496
+ content: "▸";
497
+ display: inline-block;
498
+ width: 1.1em;
499
+ color: transparent;
500
+ }
501
+ .digichat-thread-list__item[data-active],
502
+ .digichat-thread-list__item[aria-current="true"],
503
+ .digichat-thread-list [data-active] > .digichat-thread-list__item,
504
+ .digichat-thread-list [aria-current="true"] > .digichat-thread-list__item {
505
+ background: color-mix(in srgb, var(--accent) 14%, transparent);
506
+ color: var(--term-ink);
507
+ }
508
+ .digichat-thread-list__item[data-active]::before,
509
+ .digichat-thread-list__item[aria-current="true"]::before,
510
+ .digichat-thread-list [data-active] > .digichat-thread-list__item::before,
511
+ .digichat-thread-list [aria-current="true"] > .digichat-thread-list__item::before {
512
+ color: var(--accent);
513
+ }
514
+
515
+ .digichat-gate,
516
+ [data-thread-skin="digichat"] .dc-paywall,
517
+ [data-thread-skin="digichat"] .dc-gate-card {
518
+ border: 1px solid var(--term-hair, var(--border));
519
+ border-radius: 0;
520
+ background: var(--term-fill, var(--card));
521
+ color: var(--term-ink, var(--card-foreground));
522
+ font-family: var(--font-geist-mono, var(--font-mono), ui-monospace, monospace);
523
+ box-shadow: none;
524
+ }
525
+
526
+ [data-thread-skin="digichat"][data-chrome-mode="embed"] .digichat-thread {
527
+ --thread-max-width: 100%;
528
+ max-width: none;
529
+ }
530
+
531
+ /* Hairline attachment chips — same grammar as the gallery `/chatbot` chips. */
532
+ .digichat-thread .aui-attachment-chip {
533
+ display: inline-flex;
534
+ max-width: var(--aui-chip-max-w);
535
+ align-items: center;
536
+ gap: var(--aui-chip-gap);
537
+ padding: var(--aui-chip-pad);
538
+ border: 1px solid var(--hair);
539
+ background: transparent;
540
+ font-family: var(--font-geist-mono, var(--font-mono), ui-monospace, monospace);
541
+ font-size: var(--aui-chip-fs);
542
+ line-height: 1.3;
543
+ color: var(--ink-soft);
544
+ }
545
+
546
+ .digichat-thread .aui-attachment-chip-hit {
547
+ display: inline-flex;
548
+ min-width: 0;
549
+ border: 0;
550
+ background: transparent;
551
+ padding: 0;
552
+ color: inherit;
553
+ font: inherit;
554
+ cursor: pointer;
555
+ outline: none;
556
+ }
557
+
558
+ .digichat-thread .aui-attachment-chip-hit:focus-visible {
559
+ outline: 1px solid var(--accent);
560
+ outline-offset: 2px;
561
+ }
562
+
563
+ .digichat-thread .aui-attachment-chip-name {
564
+ color: var(--ink-soft);
565
+ }
566
+
567
+ .digichat-thread .aui-attachment-chip-type::before {
568
+ content: "· ";
569
+ color: var(--ink-mute);
570
+ }
571
+
572
+ .digichat-thread .aui-attachment-chip-type {
573
+ color: var(--ink-mute);
574
+ }
575
+
576
+ .digichat-thread .aui-attachment-chip-remove {
577
+ display: inline-flex;
578
+ flex-shrink: 0;
579
+ align-items: center;
580
+ justify-content: center;
581
+ padding: 0;
582
+ border: 0;
583
+ background: transparent;
584
+ color: var(--ink-mute);
585
+ cursor: pointer;
586
+ font: inherit;
587
+ }
588
+
589
+ .digichat-thread .aui-attachment-chip-remove:hover {
590
+ color: var(--ink);
591
+ }
592
+
593
+ .digichat-attach-viewer {
594
+ /* own tokens: the viewer is fixed-position and may mount outside the thread */
595
+ --aui-viewer-pad: 1.25rem;
596
+ --aui-viewer-w: 36rem;
597
+ --aui-viewer-h: 36rem;
598
+ --aui-viewer-head-gap: 0.75rem;
599
+ --aui-viewer-head-pad: 0.45rem 0.7rem;
600
+ --aui-viewer-title-fs: 0.72rem;
601
+ --aui-viewer-meta-fs: 0.66rem;
602
+ --aui-viewer-frame-pad: 0.7rem;
603
+ --aui-viewer-frame-min-h: 12rem;
604
+ --aui-viewer-body-fs: 0.72rem;
605
+ position: fixed;
606
+ inset: 0;
607
+ z-index: 110;
608
+ display: flex;
609
+ align-items: center;
610
+ justify-content: center;
611
+ background: color-mix(in srgb, var(--bg, #0a0e0c) 55%, transparent);
612
+ padding: var(--aui-viewer-pad);
613
+ }
614
+
615
+ .digichat-attach-viewer__panel {
616
+ display: flex;
617
+ max-height: min(80dvh, var(--aui-viewer-h));
618
+ width: min(var(--aui-viewer-w), 100%);
619
+ flex-direction: column;
620
+ border: 1px solid var(--hair, rgba(255, 255, 255, 0.09));
621
+ background: var(--term-bg, #08090b);
622
+ color: var(--term-ink, #e7eaec);
623
+ font-family: var(--font-geist-mono, var(--font-mono), ui-monospace, monospace);
624
+ }
625
+
626
+ .digichat-attach-viewer__head {
627
+ display: flex;
628
+ align-items: center;
629
+ justify-content: space-between;
630
+ gap: var(--aui-viewer-head-gap);
631
+ border-bottom: 1px solid var(--hair, rgba(255, 255, 255, 0.09));
632
+ padding: var(--aui-viewer-head-pad);
633
+ }
634
+
635
+ .digichat-attach-viewer__title {
636
+ margin: 0;
637
+ overflow: hidden;
638
+ text-overflow: ellipsis;
639
+ white-space: nowrap;
640
+ font-size: var(--aui-viewer-title-fs);
641
+ font-weight: 400;
642
+ color: var(--ink-soft, #9aa0a6);
643
+ }
644
+
645
+ .digichat-attach-viewer__close {
646
+ border: 0;
647
+ background: transparent;
648
+ color: var(--ink-mute, #6b7177);
649
+ cursor: pointer;
650
+ font: inherit;
651
+ font-size: var(--aui-viewer-meta-fs);
652
+ }
653
+
654
+ .digichat-attach-viewer__close:hover,
655
+ .digichat-attach-viewer__close:focus-visible {
656
+ color: var(--accent, #e2708a);
657
+ }
658
+
659
+ .digichat-attach-viewer__frame,
660
+ .digichat-attach-viewer__pre {
661
+ min-height: var(--aui-viewer-frame-min-h);
662
+ flex: 1;
663
+ margin: 0;
664
+ border: 0;
665
+ background: var(--term-fill, #101317);
666
+ color: var(--term-ink, #e7eaec);
667
+ padding: var(--aui-viewer-frame-pad);
668
+ font-size: var(--aui-viewer-body-fs);
669
+ line-height: 1.45;
670
+ overflow: auto;
671
+ white-space: pre-wrap;
672
+ }
673
+
674
+ @media (prefers-reduced-motion: reduce) {
675
+ .digichat-thread .chat-cursor {
676
+ animation: none;
677
+ opacity: 1;
678
+ }
679
+ }
680
+
681
+ /* Portaled menus leave .digichat-thread. The gallery sheet owns the portaled
682
+ menu skin (reference chatbot.css); chat-aui.css keeps only the rules it has
683
+ no twin for: the unwrapped-mount code-header hover, catalog-skin popover
684
+ items, tooltip/dialog accent tokens, and the hidden tooltip arrows (#3818). */
685
+
686
+ /* Belt and braces: the scope marker now matches on every mount (the Thread
687
+ declares `data-thread-skin="digichat"`), so chatbot.css's fence-copy hover
688
+ applies too — this keeps the flattened header identical for any mount that
689
+ somehow renders `.digichat-thread` without the marker. */
690
+ .digichat-thread .aui-code-header-root button:hover,
691
+ .digichat-thread .aui-code-header-root button:focus-visible {
692
+ background: transparent;
693
+ background-color: transparent;
694
+ color: var(--ink);
695
+ }
696
+
697
+ :is(.aui-theme-stage, [data-thread-skin="digichat"]) .aui-composer-trigger-popover [data-slot="composer-trigger-popover-item"],
698
+ :is(.aui-theme-stage, [data-thread-skin="digichat"]) .aui-composer-trigger-popover [role="option"],
699
+ :is(html:has(.aui-theme-stage), html:has([data-thread-skin="digichat"])) .aui-composer-trigger-popover [role="option"] {
700
+ background: transparent;
701
+ color: var(--ink-mute, #6b7177);
702
+ }
703
+
704
+ [data-thread-skin="digichat"] [data-slot="tooltip-content"],
705
+ [data-thread-skin="digichat"] .aui-action-bar-more-content,
706
+ [data-thread-skin="digichat"] [data-slot="dialog-content"],
707
+ .digichat-launcher [data-slot="tooltip-content"] {
708
+ --accent: var(--ink);
709
+ --ring: var(--ink);
710
+ background: var(--bg);
711
+ color: var(--ink);
712
+ }
713
+
714
+ :is(html:has(.aui-theme-stage), html:has([data-thread-skin="digichat"])) [data-slot="tooltip-content"] svg,
715
+ :is(html:has(.aui-theme-stage), html:has([data-thread-skin="digichat"])) [data-slot="tooltip-content"] [class*="arrow"],
716
+ .digichat-launcher [data-slot="tooltip-content"] svg,
717
+ .digichat-launcher [data-slot="tooltip-content"] [class*="arrow"] {
718
+ display: none;
719
+ }
720
+
721
+ /* Tool chain: same rhythm on website / dashboard Thread as /chatbot.
722
+ One gap, on the stack: the row sets never carry their own margins. */
723
+ .digichat-thread [data-slot="aui_tool-chain"],
724
+ .digichat-thread [data-slot="tool-group-content"] > div,
725
+ .digichat-launcher [data-slot="aui_tool-chain"],
726
+ .digichat-launcher [data-slot="tool-group-content"] > div {
727
+ display: flex;
728
+ flex-direction: column;
729
+ gap: var(--density-gap-1, 0.125rem);
730
+ }
731
+
732
+ /* No margin-bottom here: the assistant message content is the flex stack
733
+ that spaces the chain against the answer below it. */
734
+
735
+ .digichat-thread [data-slot="tool-fallback-root"],
736
+ .digichat-launcher [data-slot="tool-fallback-root"] {
737
+ display: flex;
738
+ flex-direction: column;
739
+ gap: var(--trace-header-gap, 0.25rem);
740
+ }
741
+
742
+ .digichat-thread [data-slot="tool-fallback-content"] > div,
743
+ .digichat-launcher [data-slot="tool-fallback-content"] > div {
744
+ display: flex;
745
+ flex-direction: column;
746
+ gap: 0;
747
+ margin-top: 0;
748
+ padding: 0;
749
+ border: 1px solid var(--hair);
750
+ }
751
+
752
+ .digichat-thread [data-slot="tool-fallback-args"],
753
+ .digichat-thread [data-slot="tool-fallback-result"],
754
+ .digichat-thread [data-slot="tool-fallback-error"],
755
+ .digichat-launcher [data-slot="tool-fallback-args"],
756
+ .digichat-launcher [data-slot="tool-fallback-result"],
757
+ .digichat-launcher [data-slot="tool-fallback-error"] {
758
+ display: flex;
759
+ flex-direction: column;
760
+ gap: var(--trace-header-gap, 0.25rem);
761
+ padding-block: calc(var(--density-pad, 0rem) + var(--density-gap-1, 0.125rem));
762
+ padding-inline: calc(var(--density-pad, 0rem) + var(--density-gap-2, 0.5rem));
763
+ }
764
+
765
+ .digichat-thread [data-slot="tool-fallback-result"],
766
+ .digichat-thread [data-slot="tool-fallback-error"],
767
+ .digichat-launcher [data-slot="tool-fallback-result"],
768
+ .digichat-launcher [data-slot="tool-fallback-error"] {
769
+ border-top: 1px solid var(--hair);
770
+ }
771
+
772
+ .digichat-thread .aui-tool-fallback-args-value,
773
+ .digichat-thread .aui-tool-fallback-result-content,
774
+ .digichat-launcher .aui-tool-fallback-args-value,
775
+ .digichat-launcher .aui-tool-fallback-result-content,
776
+ .digichat-thread [data-slot="tool-fallback-dump"],
777
+ .digichat-launcher [data-slot="tool-fallback-dump"] {
778
+ margin: 0;
779
+ /* DIG-4459: JSON views and error details sit in an 18rem scroll area (no
780
+ expand button); only the legacy dump keeps the short cap. */
781
+ max-height: none;
782
+ overflow: auto;
783
+ overscroll-behavior: contain;
784
+ scrollbar-width: thin;
785
+ }
786
+
787
+ .digichat-thread [data-slot="aui_thread-viewport"],
788
+ .digichat-launcher [data-slot="aui_thread-viewport"] {
789
+ scrollbar-gutter: stable;
790
+ }
791
+
792
+ .digichat-thread [data-slot="reasoning-trigger"],
793
+ .digichat-thread [data-slot="tool-fallback-trigger"],
794
+ .digichat-launcher [data-slot="reasoning-trigger"],
795
+ .digichat-launcher [data-slot="tool-fallback-trigger"] {
796
+ width: 100%;
797
+ align-items: center;
798
+ transform: none;
799
+ }
800
+
801
+ .digichat-thread [data-slot="reasoning-trigger"]:active,
802
+ .digichat-thread [data-slot="tool-fallback-trigger"]:active,
803
+ .digichat-launcher [data-slot="reasoning-trigger"]:active,
804
+ .digichat-launcher [data-slot="tool-fallback-trigger"]:active {
805
+ transform: none;
806
+ }
807
+
808
+ .digichat-thread [data-slot="reasoning-trigger-icon"],
809
+ .digichat-launcher [data-slot="reasoning-trigger-icon"] {
810
+ display: inline-flex;
811
+ width: var(--aui-trace-icon);
812
+ height: var(--aui-trace-icon);
813
+ }
814
+
815
+ .digichat-thread [data-slot="reasoning-trigger-label"],
816
+ .digichat-thread [data-slot="tool-fallback-trigger-label"],
817
+ .digichat-launcher [data-slot="reasoning-trigger-label"],
818
+ .digichat-launcher [data-slot="tool-fallback-trigger-label"] {
819
+ /* No grow: the disclosure arrow belongs right next to the label, not at
820
+ the far edge of the row. */
821
+ flex: 0 1 auto;
822
+ min-width: 0;
823
+ }
824
+
825
+ /* One disclosure caret for every trace row. Right when closed; a quarter
826
+ turn down when THAT row is open. The rotate is on the cube svg
827
+ (`dot-matrix-grid`) only, never the wrapper, the trigger, or the label.
828
+ The caret
829
+ is a direct child of its trigger, so the open rule starts at that trigger:
830
+ an open chain (`data-open` on the Base UI root) must not spin the closed
831
+ rows inside it.
832
+ The low-specificity base turns the caret in every skin (stock and
833
+ gallery threads outside the DigiChat scopes too); the scoped rules below
834
+ and in chat-digichat.css win wherever they apply. */
835
+ :where([data-slot="disclosure-chevron"]) [data-slot="dot-matrix-grid"] {
836
+ transform-origin: 50% 50%;
837
+ transition: transform 150ms ease;
838
+ }
839
+
840
+ :where([aria-expanded="true"]) > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
841
+ :where([data-panel-open]) > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
842
+ :where([data-state="open"]) > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"] {
843
+ transform: rotate(90deg);
844
+ }
845
+
846
+ @media (prefers-reduced-motion: reduce) {
847
+ :where([data-slot="disclosure-chevron"]) [data-slot="dot-matrix-grid"] {
848
+ transition: none;
849
+ }
850
+ }
851
+
852
+ .digichat-thread [data-slot="disclosure-chevron"],
853
+ .digichat-launcher [data-slot="disclosure-chevron"] {
854
+ display: inline-flex;
855
+ position: relative;
856
+ /* Width stays literal: disclosure-chevron.source.test.ts pins the string. */
857
+ width: 0.55rem;
858
+ height: 0.55rem;
859
+ flex: 0 0 0.55rem;
860
+ align-items: center;
861
+ justify-content: center;
862
+ transform: none;
863
+ animation: none;
864
+ }
865
+
866
+ .digichat-thread [data-slot="disclosure-chevron"] [data-slot="dot-matrix"],
867
+ .digichat-launcher [data-slot="disclosure-chevron"] [data-slot="dot-matrix"] {
868
+ width: var(--aui-chevron-size);
869
+ height: var(--aui-chevron-size);
870
+ max-width: var(--aui-chevron-size);
871
+ max-height: var(--aui-chevron-size);
872
+ transform: none;
873
+ animation: none;
874
+ }
875
+
876
+ .digichat-thread [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
877
+ .digichat-launcher [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"] {
878
+ display: block;
879
+ width: 100%;
880
+ height: 100%;
881
+ max-width: 100%;
882
+ max-height: 100%;
883
+ transform: rotate(0deg);
884
+ transform-origin: 50% 50%;
885
+ transition: transform 150ms ease;
886
+ animation: none;
887
+ }
888
+
889
+ .digichat-thread [aria-expanded="true"] > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
890
+ .digichat-thread [data-panel-open] > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
891
+ .digichat-thread [data-state="open"] > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
892
+ .digichat-launcher [aria-expanded="true"] > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
893
+ .digichat-launcher [data-panel-open] > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
894
+ .digichat-launcher [data-state="open"] > [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"] {
895
+ transform: rotate(90deg);
896
+ }
897
+
898
+ @media (prefers-reduced-motion: reduce) {
899
+ .digichat-thread [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"],
900
+ .digichat-launcher [data-slot="disclosure-chevron"] [data-slot="dot-matrix-grid"] {
901
+ transition: none;
902
+ }
903
+ }
904
+
905
+ /* The disclosure animates at the upstream duration (200ms): switching it off
906
+ made the chain snap shut between two tool calls. */
907
+
908
+ .digichat-thread [data-slot="reasoning-content"],
909
+ .digichat-thread [data-slot="tool-fallback-content"],
910
+ .digichat-thread [data-slot="tool-fallback-content"] > div,
911
+ .digichat-thread [data-slot="reasoning-text"],
912
+ .digichat-launcher [data-slot="reasoning-content"],
913
+ .digichat-launcher [data-slot="tool-fallback-content"],
914
+ .digichat-launcher [data-slot="tool-fallback-content"] > div,
915
+ .digichat-launcher [data-slot="reasoning-text"] {
916
+ animation: none;
917
+ transition: none;
918
+ }
919
+
920
+ /* Grouped tool-call disclosure: match the reasoning trigger rhythm. */
921
+ .digichat-thread [data-slot="aui_work-chain"],
922
+ .digichat-launcher [data-slot="aui_work-chain"] {
923
+ margin: 0;
924
+ padding: 0;
925
+ line-height: 1;
926
+ }
927
+
928
+ .digichat-thread [data-slot="aui_work-chain-trigger"],
929
+ .digichat-launcher [data-slot="aui_work-chain-trigger"] {
930
+ display: flex;
931
+ width: fit-content;
932
+ }
933
+
934
+ .digichat-thread [data-slot="aui_work-chain-content"],
935
+ .digichat-launcher [data-slot="aui_work-chain-content"] {
936
+ display: flex;
937
+ flex-direction: column;
938
+ gap: var(--trace-group-gap, 0.5rem);
939
+ padding-left: var(--trace-space-2, 0.25rem);
940
+ /* Air between the Worked title and the first row. One gap for every sibling. */
941
+ padding-top: var(--trace-title-gap, 0.625rem);
942
+ }
943
+
944
+ /* A folded chain keeps its panel mounted with [hidden]; the flex display above
945
+ must not override it, or the collapsed chain reserves its padding and its
946
+ triggers stay in the tab order. */
947
+ .digichat-thread [data-slot="aui_work-chain-content"][hidden],
948
+ .digichat-launcher [data-slot="aui_work-chain-content"][hidden] {
949
+ display: none;
950
+ }
951
+
952
+ .digichat-thread [data-slot="reasoning-root"],
953
+ .digichat-thread [data-slot="tool-group-root"],
954
+ .digichat-launcher [data-slot="reasoning-root"],
955
+ .digichat-launcher [data-slot="tool-group-root"] {
956
+ margin: 0;
957
+ }
958
+
959
+ .digichat-thread [data-slot="tool-group-trigger"],
960
+ .digichat-launcher [data-slot="tool-group-trigger"] {
961
+ width: 100%;
962
+ align-items: center;
963
+ transform: none;
964
+ }
965
+
966
+ .digichat-thread [data-slot="tool-group-trigger"]:active,
967
+ .digichat-launcher [data-slot="tool-group-trigger"]:active {
968
+ transform: none;
969
+ }
970
+
971
+ .digichat-thread [data-slot="tool-group-trigger-label"],
972
+ .digichat-launcher [data-slot="tool-group-trigger-label"] {
973
+ flex: 0 1 auto;
974
+ min-width: 0;
975
+ }
976
+
977
+ .digichat-thread [data-slot="tool-group-trigger-loader"],
978
+ .digichat-launcher [data-slot="tool-group-trigger-loader"] {
979
+ display: inline-flex;
980
+ width: var(--aui-loader-size);
981
+ height: var(--aui-loader-size);
982
+ align-items: center;
983
+ justify-content: center;
984
+ overflow: hidden;
985
+ }
986
+
987
+ .digichat-thread [data-slot="tool-group-trigger-loader"] [data-slot="dot-matrix"],
988
+ .digichat-launcher [data-slot="tool-group-trigger-loader"] [data-slot="dot-matrix"],
989
+ .digichat-thread [data-slot="tool-group-trigger-loader"] [data-slot="dot-matrix-grid"],
990
+ .digichat-launcher [data-slot="tool-group-trigger-loader"] [data-slot="dot-matrix-grid"] {
991
+ width: var(--aui-loader-size);
992
+ height: var(--aui-loader-size);
993
+ max-width: var(--aui-loader-size);
994
+ max-height: var(--aui-loader-size);
995
+ }
996
+
997
+ /* Same as the reasoning and tool rows: keep the upstream 200ms collapse. */
998
+
999
+ .digichat-thread [data-slot="tool-group-content"],
1000
+ .digichat-thread [data-slot="tool-group-content"] > div,
1001
+ .digichat-launcher [data-slot="tool-group-content"],
1002
+ .digichat-launcher [data-slot="tool-group-content"] > div {
1003
+ animation: none;
1004
+ transition: none;
1005
+ }
1006
+
1007
+ .digichat-thread [data-slot="tool-group-root"][data-variant="ghost"] [data-slot="tool-group-content"] > div,
1008
+ .digichat-launcher [data-slot="tool-group-root"][data-variant="ghost"] [data-slot="tool-group-content"] > div {
1009
+ margin-top: var(--trace-header-gap, 0.25rem);
1010
+ }
1011
+
1012
+ /* Chain of thought runs (and the tool groups nested inside them) take no
1013
+ margin of their own: `aui_assistant-message-content` is the flex stack that
1014
+ spaces every block, and the chain content spaces the rows inside it. */
1015
+ .digichat-thread [data-slot="aui_chain-of-thought"],
1016
+ .digichat-launcher [data-slot="aui_chain-of-thought"] {
1017
+ margin: 0;
1018
+ }
1019
+
1020
+ /* The pre-response loader sits flush in the message. The chain that replaces
1021
+ it must not pick up this rhythm, or the marker jumps down on the handoff. */
1022
+ .digichat-thread [data-slot="aui_assistant-message-content"] > [data-slot="aui_chain-of-thought"]:first-child,
1023
+ .digichat-launcher [data-slot="aui_assistant-message-content"] > [data-slot="aui_chain-of-thought"]:first-child {
1024
+ margin-top: 0;
1025
+ }
1026
+
1027
+ /* Portaled layers (tooltips, menus, dialogs) render under <body>, outside the
1028
+ .digichat-thread / .digichat-launcher subtree that declares the palette
1029
+ vars. Mirror the palette on <html> so --bg / --ink / --hair resolve in
1030
+ portals and those layers get an opaque surface instead of a transparent
1031
+ one (the tooltip-content background comes from chatbot.css).
1032
+ Site chat (/chat app, top-level /chat/occ) is excluded: it keeps
1033
+ packages/design/tokens.css, and a portal there should use that same source. */
1034
+ html:has([data-thread-skin="digichat"]):not([data-site-theme="1"]):not(:has([data-chrome-mode="app"])) {
1035
+ --bg: #0a0e0c;
1036
+ --ink: #eceef0;
1037
+ --hair: rgba(255, 255, 255, 0.09);
1038
+ }
1039
+
1040
+ html[data-theme="light"]:has([data-thread-skin="digichat"]):not([data-site-theme="1"]):not(:has([data-chrome-mode="app"])),
1041
+ html.light:has([data-thread-skin="digichat"]):not([data-site-theme="1"]):not(:has([data-chrome-mode="app"])) {
1042
+ --bg: #f4f3ee;
1043
+ --ink: #1a1c1e;
1044
+ --hair: rgba(12, 12, 10, 0.12);
1045
+ }
1046
+
1047
+ /* Portaled tooltips follow the chat's mono stack instead of the page body font. */
1048
+ html:has([data-thread-skin="digichat"]) [data-slot="tooltip-content"] {
1049
+ font-family: var(--font-mono, ui-monospace, monospace);
1050
+ }
1051
+
1052
+ .digichat-thread [data-slot="tool-fallback-dump"],
1053
+ .digichat-launcher [data-slot="tool-fallback-dump"] {
1054
+ max-height: var(--aui-dump-max-h);
1055
+ }
1056
+
1057
+ .digichat-thread .aui-json-view,
1058
+ .digichat-launcher .aui-json-view,
1059
+ .digichat-thread .aui-chat-notice-detail,
1060
+ .digichat-launcher .aui-chat-notice-detail {
1061
+ overflow: auto;
1062
+ max-height: var(--aui-json-max-h);
1063
+ }
1064
+
1065
+ /* Chat notices (DIG-4459), faded red (Chris, 21 Oct): danger pulled 28%
1066
+ toward the muted ink, a 5% wash and a 24% hairline; the title mixes 20%
1067
+ ink so it stays WCAG AA on the wash in dark and light. */
1068
+ .digichat-thread .aui-chat-notice[data-tone="error"],
1069
+ .digichat-launcher .aui-chat-notice[data-tone="error"] {
1070
+ --notice-danger: color-mix(in srgb, var(--danger) 72%, var(--ink-mute));
1071
+ border: 1px solid color-mix(in srgb, var(--notice-danger) 24%, transparent);
1072
+ background: color-mix(in srgb, var(--notice-danger) 5%, transparent);
1073
+ color: var(--ink-soft);
1074
+ }
1075
+
1076
+ .digichat-thread .aui-chat-notice[data-tone="error"] .aui-chat-notice-title,
1077
+ .digichat-launcher .aui-chat-notice[data-tone="error"] .aui-chat-notice-title {
1078
+ color: color-mix(in srgb, var(--notice-danger) 80%, var(--ink));
1079
+ }
1080
+
1081
+ /* ── Example-question rows: thin overlay-style scrollbar ─────────────────
1082
+ Shared by every skin through <SuggestionScrollRow>. The bar is 4px and
1083
+ invisible at rest; it shows while the row is hovered, focused or being
1084
+ scrolled. The row sets data-hover / data-focus / data-scrolling itself
1085
+ because Chrome does not repaint the thumb on :hover alone. Blink/WebKit use
1086
+ the ::-webkit-scrollbar rules; Gecko gets the standard pair, guarded so
1087
+ Chrome keeps honouring the 4px webkit size. */
1088
+ .aui-suggestion-scroll::-webkit-scrollbar {
1089
+ width: 4px;
1090
+ height: 4px;
1091
+ background: transparent;
1092
+ }
1093
+
1094
+ .aui-suggestion-scroll::-webkit-scrollbar-track,
1095
+ .aui-suggestion-scroll::-webkit-scrollbar-corner {
1096
+ background: transparent;
1097
+ }
1098
+
1099
+ .aui-suggestion-scroll::-webkit-scrollbar-button {
1100
+ display: none;
1101
+ width: 0;
1102
+ height: 0;
1103
+ }
1104
+
1105
+ .aui-suggestion-scroll::-webkit-scrollbar-thumb {
1106
+ border-radius: 0;
1107
+ background: transparent;
1108
+ }
1109
+
1110
+ .aui-suggestion-scroll:hover::-webkit-scrollbar-thumb,
1111
+ .aui-suggestion-scroll[data-hover]::-webkit-scrollbar-thumb,
1112
+ .aui-suggestion-scroll[data-focus]::-webkit-scrollbar-thumb,
1113
+ .aui-suggestion-scroll[data-scrolling]::-webkit-scrollbar-thumb {
1114
+ background: color-mix(in oklab, var(--muted-foreground, #8a8a8a) 45%, transparent);
1115
+ }
1116
+
1117
+ @supports (-moz-appearance: none) {
1118
+ .aui-suggestion-scroll {
1119
+ scrollbar-width: thin;
1120
+ scrollbar-color: transparent transparent;
1121
+ }
1122
+
1123
+ .aui-suggestion-scroll:hover,
1124
+ .aui-suggestion-scroll:focus-within,
1125
+ .aui-suggestion-scroll[data-scrolling] {
1126
+ scrollbar-color: color-mix(in oklab, var(--muted-foreground, #8a8a8a) 45%, transparent)
1127
+ transparent;
1128
+ }
1129
+ }
1130
+
1131
+ /* Send arrow on the filled accent button. Light mode: white whenever white
1132
+ clears 3:1 against the accent (WCAG 1.4.11, icons), i.e. OKLab L below
1133
+ ~0.669; a lighter accent keeps a dark arrow. Dark mode keeps the theme's
1134
+ --on-accent. Tracks whatever --accent the palette or tenant sets. */
1135
+ .aui-composer-send {
1136
+ --on-accent-icon: var(--on-accent);
1137
+ }
1138
+ :root[data-theme="light"] .aui-composer-send {
1139
+ --on-accent-icon: oklch(from var(--accent) clamp(0, (0.669 - l) * 1000, 1) 0 0);
1140
+ }
1141
+ .aui-composer-send.text-on-accent {
1142
+ color: var(--on-accent-icon);
1143
+ }