@celljs/ta-web 4.49.0 → 4.50.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 (382) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +1 -1
  3. package/esm/browser/account/account-side.js +4 -0
  4. package/esm/browser/account/device-account.d.ts +6 -0
  5. package/esm/browser/account/device-account.js +20 -5
  6. package/esm/browser/assistant/assistant-view.js +2 -0
  7. package/esm/browser/assistant/call-announcing.d.ts +25 -0
  8. package/esm/browser/assistant/call-announcing.js +32 -0
  9. package/esm/browser/assistant/call-answering.d.ts +43 -0
  10. package/esm/browser/assistant/call-answering.js +63 -0
  11. package/esm/browser/assistant/call-hearing.d.ts +53 -0
  12. package/esm/browser/assistant/call-hearing.js +98 -0
  13. package/esm/browser/assistant/call-pausing.d.ts +40 -0
  14. package/esm/browser/assistant/call-pausing.js +82 -0
  15. package/esm/browser/assistant/call-reading.d.ts +32 -0
  16. package/esm/browser/assistant/call-reading.js +35 -0
  17. package/esm/browser/assistant/call-revoicing.d.ts +33 -0
  18. package/esm/browser/assistant/call-revoicing.js +68 -0
  19. package/esm/browser/assistant/call-turns.d.ts +29 -0
  20. package/esm/browser/assistant/call-turns.js +33 -0
  21. package/esm/browser/assistant/spoken-answer.d.ts +21 -0
  22. package/esm/browser/assistant/spoken-answer.js +69 -0
  23. package/esm/browser/assistant/spoken-call.d.ts +7 -0
  24. package/esm/browser/assistant/spoken-call.js +16 -0
  25. package/esm/browser/assistant/voice-call-protocol.d.ts +5 -0
  26. package/esm/browser/assistant/voice-call.d.ts +47 -43
  27. package/esm/browser/assistant/voice-call.js +193 -219
  28. package/esm/browser/chat/chat-view.js +2 -1
  29. package/esm/browser/components/account-recovery-view.d.ts +11 -0
  30. package/esm/browser/components/account-recovery-view.js +81 -0
  31. package/esm/browser/components/account-view.d.ts +1 -2
  32. package/esm/browser/components/account-view.js +10 -1
  33. package/esm/browser/components/app-nav.js +19 -8
  34. package/esm/browser/components/app-shell-hooks.d.ts +5 -0
  35. package/esm/browser/components/app-shell-hooks.js +45 -0
  36. package/esm/browser/components/app-shell-state.js +2 -1
  37. package/esm/browser/components/app-view.js +9 -5
  38. package/esm/browser/components/chat-emoji.d.ts +35 -0
  39. package/esm/browser/components/chat-emoji.js +129 -0
  40. package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
  41. package/esm/browser/components/composer-attachments.d.ts +6 -0
  42. package/esm/browser/components/composer-attachments.js +12 -1
  43. package/esm/browser/components/composer-box-protocol.d.ts +15 -0
  44. package/esm/browser/components/composer-box.js +110 -87
  45. package/esm/browser/components/composer-drop-hooks.d.ts +26 -0
  46. package/esm/browser/components/composer-drop-hooks.js +36 -0
  47. package/esm/browser/components/composer-emoji.js +1 -1
  48. package/esm/browser/components/composer-faces.d.ts +16 -0
  49. package/esm/browser/components/composer-faces.js +37 -0
  50. package/esm/browser/components/composer-media.d.ts +10 -0
  51. package/esm/browser/components/composer-media.js +12 -1
  52. package/esm/browser/components/composer-target.d.ts +4 -0
  53. package/esm/browser/components/composer-target.js +18 -7
  54. package/esm/browser/components/composer-type-focus.d.ts +24 -0
  55. package/esm/browser/components/composer-type-focus.js +17 -0
  56. package/esm/browser/components/composer-voice.d.ts +24 -0
  57. package/esm/browser/components/composer-voice.js +37 -0
  58. package/esm/browser/components/composer.d.ts +2 -2
  59. package/esm/browser/components/composer.js +39 -8
  60. package/esm/browser/components/context-menu.js +2 -1
  61. package/esm/browser/components/emoji-panel.d.ts +11 -7
  62. package/esm/browser/components/emoji-panel.js +40 -22
  63. package/esm/browser/components/extension-settings.js +2 -2
  64. package/esm/browser/components/folder-new.d.ts +18 -0
  65. package/esm/browser/components/folder-new.js +53 -0
  66. package/esm/browser/components/folder-picker.d.ts +5 -2
  67. package/esm/browser/components/folder-picker.js +18 -6
  68. package/esm/browser/components/host-view.d.ts +1 -1
  69. package/esm/browser/components/image-menu.d.ts +8 -3
  70. package/esm/browser/components/image-menu.js +34 -9
  71. package/esm/browser/components/markdown.js +9 -2
  72. package/esm/browser/components/media.js +3 -2
  73. package/esm/browser/components/message-list.js +2 -2
  74. package/esm/browser/components/message-steps.js +20 -11
  75. package/esm/browser/components/message-user.js +2 -2
  76. package/esm/browser/components/moved-notice.js +2 -1
  77. package/esm/browser/components/nav-places.d.ts +2 -0
  78. package/esm/browser/components/nav-places.js +4 -2
  79. package/esm/browser/components/phone-shell.d.ts +2 -0
  80. package/esm/browser/components/phone-shell.js +5 -1
  81. package/esm/browser/components/secret-text.d.ts +1 -1
  82. package/esm/browser/components/secret-text.js +4 -3
  83. package/esm/browser/components/session-view.js +3 -0
  84. package/esm/browser/components/settings-choices.d.ts +2 -1
  85. package/esm/browser/components/settings-choices.js +13 -5
  86. package/esm/browser/components/settings-more.js +3 -3
  87. package/esm/browser/components/settings-parts.js +13 -2
  88. package/esm/browser/components/share-item-sheet.js +7 -1
  89. package/esm/browser/components/tab-title.d.ts +27 -0
  90. package/esm/browser/components/tab-title.js +35 -0
  91. package/esm/browser/components/use-composer-attachments.d.ts +28 -0
  92. package/esm/browser/components/use-composer-attachments.js +65 -0
  93. package/esm/browser/components/use-composer-files.d.ts +25 -0
  94. package/esm/browser/components/use-composer-files.js +52 -0
  95. package/esm/browser/components/web-composer.d.ts +3 -1
  96. package/esm/browser/components/web-composer.js +3 -2
  97. package/esm/browser/components/workbench-view.js +1 -0
  98. package/esm/browser/components/working-directory.js +2 -1
  99. package/esm/browser/device/drag-move.d.ts +21 -0
  100. package/esm/browser/device/drag-move.js +86 -0
  101. package/esm/browser/extension/icons.js +7 -1
  102. package/esm/browser/extension/web-api-desktop.d.ts +19 -0
  103. package/esm/browser/extension/web-api-menus.d.ts +19 -0
  104. package/esm/browser/extension/web-api-spec.js +2 -0
  105. package/esm/browser/extension/web-extension-api.d.ts +24 -23
  106. package/esm/browser/extension/web-extension-context.d.ts +1 -0
  107. package/esm/browser/extension/web-extension-context.js +12 -5
  108. package/esm/browser/extension/web-extension-run.js +1 -0
  109. package/esm/browser/extension/web-share-ui.d.ts +1 -1
  110. package/esm/browser/extension/web-share-ui.js +2 -0
  111. package/esm/browser/extension/web-share.d.ts +13 -0
  112. package/esm/browser/extension/web-share.js +37 -2
  113. package/esm/browser/i18n/en/account.d.ts +18 -0
  114. package/esm/browser/i18n/en/account.js +18 -0
  115. package/esm/browser/i18n/en/call.js +1 -1
  116. package/esm/browser/i18n/en/chat.d.ts +15 -0
  117. package/esm/browser/i18n/en/chat.js +16 -1
  118. package/esm/browser/i18n/en/common.d.ts +2 -0
  119. package/esm/browser/i18n/en/common.js +2 -0
  120. package/esm/browser/i18n/en/discover.d.ts +2 -0
  121. package/esm/browser/i18n/en/discover.js +2 -0
  122. package/esm/browser/i18n/en/settings.d.ts +17 -0
  123. package/esm/browser/i18n/en/settings.js +17 -0
  124. package/esm/browser/i18n/ja/account.js +18 -0
  125. package/esm/browser/i18n/ja/call.js +1 -1
  126. package/esm/browser/i18n/ja/chat.js +16 -1
  127. package/esm/browser/i18n/ja/common.js +2 -0
  128. package/esm/browser/i18n/ja/discover.js +3 -1
  129. package/esm/browser/i18n/ja/settings.js +17 -0
  130. package/esm/browser/i18n/locales.d.ts +55 -1
  131. package/esm/browser/i18n/messages.d.ts +54 -0
  132. package/esm/browser/i18n/zh/account.js +18 -0
  133. package/esm/browser/i18n/zh/call.js +1 -1
  134. package/esm/browser/i18n/zh/chat.js +16 -1
  135. package/esm/browser/i18n/zh/common.js +2 -0
  136. package/esm/browser/i18n/zh/discover.js +3 -1
  137. package/esm/browser/i18n/zh/settings.js +17 -0
  138. package/esm/browser/i18n/zh-tw/account.js +18 -0
  139. package/esm/browser/i18n/zh-tw/call.js +1 -1
  140. package/esm/browser/i18n/zh-tw/chat.js +16 -1
  141. package/esm/browser/i18n/zh-tw/common.js +2 -0
  142. package/esm/browser/i18n/zh-tw/discover.js +3 -1
  143. package/esm/browser/i18n/zh-tw/settings.js +17 -0
  144. package/esm/browser/offline/kept-chats.d.ts +3 -1
  145. package/esm/browser/offline/kept-chats.js +1 -1
  146. package/esm/browser/partners/group-picker.d.ts +3 -2
  147. package/esm/browser/partners/group-picker.js +8 -3
  148. package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
  149. package/esm/browser/sandbox/work/work-docs.js +5 -2
  150. package/esm/browser/sandbox/work/work-frame.d.ts +3 -0
  151. package/esm/browser/sandbox/work/work-frame.js +9 -3
  152. package/esm/browser/sandbox/work/work-gates.d.ts +77 -0
  153. package/esm/browser/sandbox/work/work-gates.js +182 -0
  154. package/esm/browser/settings/agent-settings.js +1 -1
  155. package/esm/browser/settings/navigation.d.ts +38 -10
  156. package/esm/browser/settings/navigation.js +73 -17
  157. package/esm/browser/settings/settings-protocol.d.ts +16 -1
  158. package/esm/browser/settings/settings-protocol.js +20 -2
  159. package/esm/browser/settings/settings.js +4 -1
  160. package/esm/browser/style/base.d.ts +1 -1
  161. package/esm/browser/style/base.js +15 -2
  162. package/esm/browser/style/chat-list.d.ts +1 -1
  163. package/esm/browser/style/chat-list.js +6 -3
  164. package/esm/browser/style/conversation-column.d.ts +1 -1
  165. package/esm/browser/style/conversation-column.js +28 -8
  166. package/esm/browser/style/conversation.d.ts +1 -1
  167. package/esm/browser/style/conversation.js +5 -0
  168. package/esm/browser/style/device.js +5 -0
  169. package/esm/browser/style/pages.d.ts +1 -1
  170. package/esm/browser/style/pages.js +3 -3
  171. package/esm/browser/style/shell.d.ts +1 -1
  172. package/esm/browser/style/shell.js +13 -6
  173. package/esm/browser/style/tasks.d.ts +1 -1
  174. package/esm/browser/style/tasks.js +4 -2
  175. package/esm/browser/util/chat-emoji.d.ts +44 -0
  176. package/esm/browser/util/chat-emoji.js +269 -0
  177. package/esm/browser/util/composer-drop.d.ts +26 -0
  178. package/esm/browser/util/composer-drop.js +40 -0
  179. package/esm/browser/util/composer-files.d.ts +48 -0
  180. package/esm/browser/util/composer-files.js +99 -0
  181. package/esm/browser/util/composer.d.ts +13 -1
  182. package/esm/browser/util/composer.js +24 -6
  183. package/esm/browser/util/markdown.d.ts +5 -0
  184. package/esm/browser/util/markdown.js +18 -0
  185. package/esm/browser/util/message.d.ts +6 -1
  186. package/esm/browser/util/message.js +13 -2
  187. package/esm/browser/util/process.d.ts +10 -13
  188. package/esm/browser/util/process.js +31 -83
  189. package/esm/browser/util/turn-join.d.ts +38 -0
  190. package/esm/browser/util/turn-join.js +119 -0
  191. package/esm/browser/workbench-services.js +1 -1
  192. package/lib/browser/account/account-side.js +4 -0
  193. package/lib/browser/account/device-account.d.ts +6 -0
  194. package/lib/browser/account/device-account.js +20 -5
  195. package/lib/browser/assistant/assistant-view.js +2 -0
  196. package/lib/browser/assistant/call-announcing.d.ts +26 -0
  197. package/lib/browser/assistant/call-announcing.js +36 -0
  198. package/lib/browser/assistant/call-answering.d.ts +44 -0
  199. package/lib/browser/assistant/call-answering.js +67 -0
  200. package/lib/browser/assistant/call-hearing.d.ts +54 -0
  201. package/lib/browser/assistant/call-hearing.js +102 -0
  202. package/lib/browser/assistant/call-pausing.d.ts +41 -0
  203. package/lib/browser/assistant/call-pausing.js +86 -0
  204. package/lib/browser/assistant/call-reading.d.ts +33 -0
  205. package/lib/browser/assistant/call-reading.js +39 -0
  206. package/lib/browser/assistant/call-revoicing.d.ts +34 -0
  207. package/lib/browser/assistant/call-revoicing.js +72 -0
  208. package/lib/browser/assistant/call-turns.d.ts +30 -0
  209. package/lib/browser/assistant/call-turns.js +37 -0
  210. package/lib/browser/assistant/spoken-answer.d.ts +22 -0
  211. package/lib/browser/assistant/spoken-answer.js +73 -0
  212. package/lib/browser/assistant/spoken-call.d.ts +8 -0
  213. package/lib/browser/assistant/spoken-call.js +19 -0
  214. package/lib/browser/assistant/voice-call-protocol.d.ts +5 -0
  215. package/lib/browser/assistant/voice-call.d.ts +47 -43
  216. package/lib/browser/assistant/voice-call.js +192 -218
  217. package/lib/browser/chat/chat-view.js +2 -1
  218. package/lib/browser/components/account-recovery-view.d.ts +12 -0
  219. package/lib/browser/components/account-recovery-view.js +117 -0
  220. package/lib/browser/components/account-view.d.ts +1 -2
  221. package/lib/browser/components/account-view.js +10 -1
  222. package/lib/browser/components/app-nav.js +19 -8
  223. package/lib/browser/components/app-shell-hooks.d.ts +5 -0
  224. package/lib/browser/components/app-shell-hooks.js +46 -0
  225. package/lib/browser/components/app-shell-state.js +1 -0
  226. package/lib/browser/components/app-view.js +8 -4
  227. package/lib/browser/components/chat-emoji.d.ts +36 -0
  228. package/lib/browser/components/chat-emoji.js +167 -0
  229. package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
  230. package/lib/browser/components/composer-attachments.d.ts +6 -0
  231. package/lib/browser/components/composer-attachments.js +12 -0
  232. package/lib/browser/components/composer-box-protocol.d.ts +15 -0
  233. package/lib/browser/components/composer-box.js +107 -84
  234. package/lib/browser/components/composer-drop-hooks.d.ts +27 -0
  235. package/lib/browser/components/composer-drop-hooks.js +72 -0
  236. package/lib/browser/components/composer-emoji.js +1 -1
  237. package/lib/browser/components/composer-faces.d.ts +17 -0
  238. package/lib/browser/components/composer-faces.js +73 -0
  239. package/lib/browser/components/composer-media.d.ts +10 -0
  240. package/lib/browser/components/composer-media.js +13 -0
  241. package/lib/browser/components/composer-target.d.ts +4 -0
  242. package/lib/browser/components/composer-target.js +18 -7
  243. package/lib/browser/components/composer-type-focus.d.ts +25 -0
  244. package/lib/browser/components/composer-type-focus.js +20 -0
  245. package/lib/browser/components/composer-voice.d.ts +25 -0
  246. package/lib/browser/components/composer-voice.js +73 -0
  247. package/lib/browser/components/composer.d.ts +2 -2
  248. package/lib/browser/components/composer.js +38 -7
  249. package/lib/browser/components/context-menu.js +2 -1
  250. package/lib/browser/components/emoji-panel.d.ts +11 -7
  251. package/lib/browser/components/emoji-panel.js +40 -22
  252. package/lib/browser/components/extension-settings.js +1 -1
  253. package/lib/browser/components/folder-new.d.ts +19 -0
  254. package/lib/browser/components/folder-new.js +90 -0
  255. package/lib/browser/components/folder-picker.d.ts +5 -2
  256. package/lib/browser/components/folder-picker.js +17 -5
  257. package/lib/browser/components/host-view.d.ts +1 -1
  258. package/lib/browser/components/image-menu.d.ts +8 -3
  259. package/lib/browser/components/image-menu.js +34 -9
  260. package/lib/browser/components/markdown.js +9 -2
  261. package/lib/browser/components/media.js +3 -2
  262. package/lib/browser/components/message-list.js +2 -2
  263. package/lib/browser/components/message-steps.js +20 -11
  264. package/lib/browser/components/message-user.js +1 -1
  265. package/lib/browser/components/moved-notice.js +2 -1
  266. package/lib/browser/components/nav-places.d.ts +2 -0
  267. package/lib/browser/components/nav-places.js +4 -2
  268. package/lib/browser/components/phone-shell.d.ts +2 -0
  269. package/lib/browser/components/phone-shell.js +5 -1
  270. package/lib/browser/components/secret-text.d.ts +1 -1
  271. package/lib/browser/components/secret-text.js +4 -3
  272. package/lib/browser/components/session-view.js +3 -0
  273. package/lib/browser/components/settings-choices.d.ts +2 -1
  274. package/lib/browser/components/settings-choices.js +12 -4
  275. package/lib/browser/components/settings-more.js +2 -2
  276. package/lib/browser/components/settings-parts.js +11 -0
  277. package/lib/browser/components/share-item-sheet.js +7 -1
  278. package/lib/browser/components/tab-title.d.ts +28 -0
  279. package/lib/browser/components/tab-title.js +38 -0
  280. package/lib/browser/components/use-composer-attachments.d.ts +29 -0
  281. package/lib/browser/components/use-composer-attachments.js +101 -0
  282. package/lib/browser/components/use-composer-files.d.ts +26 -0
  283. package/lib/browser/components/use-composer-files.js +88 -0
  284. package/lib/browser/components/web-composer.d.ts +3 -1
  285. package/lib/browser/components/web-composer.js +3 -2
  286. package/lib/browser/components/workbench-view.js +1 -0
  287. package/lib/browser/components/working-directory.js +2 -1
  288. package/lib/browser/device/drag-move.d.ts +22 -0
  289. package/lib/browser/device/drag-move.js +122 -0
  290. package/lib/browser/extension/icons.js +6 -0
  291. package/lib/browser/extension/web-api-desktop.d.ts +19 -0
  292. package/lib/browser/extension/web-api-menus.d.ts +19 -0
  293. package/lib/browser/extension/web-api-spec.js +2 -0
  294. package/lib/browser/extension/web-extension-api.d.ts +24 -23
  295. package/lib/browser/extension/web-extension-context.d.ts +1 -0
  296. package/lib/browser/extension/web-extension-context.js +12 -5
  297. package/lib/browser/extension/web-extension-run.js +1 -0
  298. package/lib/browser/extension/web-share-ui.d.ts +1 -1
  299. package/lib/browser/extension/web-share-ui.js +2 -0
  300. package/lib/browser/extension/web-share.d.ts +13 -0
  301. package/lib/browser/extension/web-share.js +37 -2
  302. package/lib/browser/i18n/en/account.d.ts +18 -0
  303. package/lib/browser/i18n/en/account.js +18 -0
  304. package/lib/browser/i18n/en/call.js +1 -1
  305. package/lib/browser/i18n/en/chat.d.ts +15 -0
  306. package/lib/browser/i18n/en/chat.js +16 -1
  307. package/lib/browser/i18n/en/common.d.ts +2 -0
  308. package/lib/browser/i18n/en/common.js +2 -0
  309. package/lib/browser/i18n/en/discover.d.ts +2 -0
  310. package/lib/browser/i18n/en/discover.js +2 -0
  311. package/lib/browser/i18n/en/settings.d.ts +17 -0
  312. package/lib/browser/i18n/en/settings.js +17 -0
  313. package/lib/browser/i18n/ja/account.js +18 -0
  314. package/lib/browser/i18n/ja/call.js +1 -1
  315. package/lib/browser/i18n/ja/chat.js +16 -1
  316. package/lib/browser/i18n/ja/common.js +2 -0
  317. package/lib/browser/i18n/ja/discover.js +3 -1
  318. package/lib/browser/i18n/ja/settings.js +17 -0
  319. package/lib/browser/i18n/locales.d.ts +55 -1
  320. package/lib/browser/i18n/messages.d.ts +54 -0
  321. package/lib/browser/i18n/zh/account.js +18 -0
  322. package/lib/browser/i18n/zh/call.js +1 -1
  323. package/lib/browser/i18n/zh/chat.js +16 -1
  324. package/lib/browser/i18n/zh/common.js +2 -0
  325. package/lib/browser/i18n/zh/discover.js +3 -1
  326. package/lib/browser/i18n/zh/settings.js +17 -0
  327. package/lib/browser/i18n/zh-tw/account.js +18 -0
  328. package/lib/browser/i18n/zh-tw/call.js +1 -1
  329. package/lib/browser/i18n/zh-tw/chat.js +16 -1
  330. package/lib/browser/i18n/zh-tw/common.js +2 -0
  331. package/lib/browser/i18n/zh-tw/discover.js +3 -1
  332. package/lib/browser/i18n/zh-tw/settings.js +17 -0
  333. package/lib/browser/offline/kept-chats.d.ts +3 -1
  334. package/lib/browser/offline/kept-chats.js +1 -1
  335. package/lib/browser/partners/group-picker.d.ts +3 -2
  336. package/lib/browser/partners/group-picker.js +8 -3
  337. package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
  338. package/lib/browser/sandbox/work/work-docs.js +5 -2
  339. package/lib/browser/sandbox/work/work-frame.d.ts +3 -0
  340. package/lib/browser/sandbox/work/work-frame.js +9 -3
  341. package/lib/browser/sandbox/work/work-gates.d.ts +78 -0
  342. package/lib/browser/sandbox/work/work-gates.js +185 -0
  343. package/lib/browser/settings/agent-settings.js +1 -1
  344. package/lib/browser/settings/navigation.d.ts +38 -10
  345. package/lib/browser/settings/navigation.js +74 -18
  346. package/lib/browser/settings/settings-protocol.d.ts +16 -1
  347. package/lib/browser/settings/settings-protocol.js +21 -3
  348. package/lib/browser/settings/settings.js +3 -0
  349. package/lib/browser/style/base.d.ts +1 -1
  350. package/lib/browser/style/base.js +15 -2
  351. package/lib/browser/style/chat-list.d.ts +1 -1
  352. package/lib/browser/style/chat-list.js +6 -3
  353. package/lib/browser/style/conversation-column.d.ts +1 -1
  354. package/lib/browser/style/conversation-column.js +28 -8
  355. package/lib/browser/style/conversation.d.ts +1 -1
  356. package/lib/browser/style/conversation.js +5 -0
  357. package/lib/browser/style/device.js +5 -0
  358. package/lib/browser/style/pages.d.ts +1 -1
  359. package/lib/browser/style/pages.js +3 -3
  360. package/lib/browser/style/shell.d.ts +1 -1
  361. package/lib/browser/style/shell.js +13 -6
  362. package/lib/browser/style/tasks.d.ts +1 -1
  363. package/lib/browser/style/tasks.js +4 -2
  364. package/lib/browser/util/chat-emoji.d.ts +45 -0
  365. package/lib/browser/util/chat-emoji.js +272 -0
  366. package/lib/browser/util/composer-drop.d.ts +27 -0
  367. package/lib/browser/util/composer-drop.js +43 -0
  368. package/lib/browser/util/composer-files.d.ts +49 -0
  369. package/lib/browser/util/composer-files.js +102 -0
  370. package/lib/browser/util/composer.d.ts +13 -1
  371. package/lib/browser/util/composer.js +24 -6
  372. package/lib/browser/util/markdown.d.ts +5 -0
  373. package/lib/browser/util/markdown.js +18 -0
  374. package/lib/browser/util/message.d.ts +6 -1
  375. package/lib/browser/util/message.js +13 -2
  376. package/lib/browser/util/process.d.ts +10 -13
  377. package/lib/browser/util/process.js +32 -84
  378. package/lib/browser/util/turn-join.d.ts +39 -0
  379. package/lib/browser/util/turn-join.js +122 -0
  380. package/lib/browser/workbench-services.js +1 -1
  381. package/package.json +7 -7
  382. package/public/emoji/wechat-v1.webp +0 -0
@@ -15,6 +15,12 @@ export const FONT_SCALES = { small: 0.9, standard: 1, large: 1.12, xlarge: 1.25
15
15
  * closer by, and its standard is the large of a computer.
16
16
  */
17
17
  export const HANDHELD_FONT_SCALE = 1.12;
18
+ /** The widths of each (`--ta-page-width` for rows, feeds and forms, `--ta-page-wide` for cards and tiles, see style/base.ts), in px. */
19
+ export const PAGE_WIDTHS = {
20
+ standard: { page: 720, wide: 880 },
21
+ wide: { page: 840, wide: 1000 },
22
+ wider: { page: 960, wide: 1120 },
23
+ };
18
24
  /** What `keepAliveMinutes` may be. */
19
25
  export const KEEP_ALIVE_CHOICES = [1, 5, 15, 30];
20
26
  /** What `chatFoldDays` may be. */
@@ -28,6 +34,7 @@ export const DEFAULT_SETTINGS = {
28
34
  language: 'system',
29
35
  fontSize: 'standard',
30
36
  chatFontSize: 'standard',
37
+ pageWidth: 'standard',
31
38
  speak: false,
32
39
  speakTalk: false,
33
40
  callCaptions: false,
@@ -51,6 +58,8 @@ export const DEFAULT_SETTINGS = {
51
58
  keepAliveMinutes: 5,
52
59
  chatFoldDays: 7,
53
60
  chatArchiveDays: 30,
61
+ tabTitle: '',
62
+ tabCounts: true,
54
63
  recentShots: true,
55
64
  sendWhileWorking: 'steer',
56
65
  installApps: true,
@@ -65,6 +74,12 @@ function fontSize(value) {
65
74
  function strings(value) {
66
75
  return Array.isArray(value) ? value.filter((item) => typeof item === 'string') : [];
67
76
  }
77
+ /** How many characters the name on the tab of the browser has at most (Settings.tabTitle). */
78
+ export const TAB_TITLE_CHARS = 40;
79
+ /** The name of Ta on the tab of the browser (Settings.tabTitle), on one line, else `''`. */
80
+ function tabTitle(value) {
81
+ return typeof value === 'string' ? value.replace(/\s+/g, ' ').trim().slice(0, TAB_TITLE_CHARS) : '';
82
+ }
68
83
  /** `<provider>/<model id>`, else `''`. */
69
84
  function modelRef(value) {
70
85
  return typeof value === 'string' && /^[^/\s]+\/\S+$/.test(value) ? value : '';
@@ -82,6 +97,7 @@ export var SettingsUtil;
82
97
  language: ['system', ...TaLanguageUtil.ALL].includes(kept.language) ? kept.language : DEFAULT_SETTINGS.language,
83
98
  fontSize: fontSize(kept.fontSize),
84
99
  chatFontSize: fontSize(kept.chatFontSize),
100
+ pageWidth: Object.keys(PAGE_WIDTHS).includes(kept.pageWidth) ? kept.pageWidth : DEFAULT_SETTINGS.pageWidth,
85
101
  speak: kept.speak === true,
86
102
  speakTalk: kept.speakTalk === true,
87
103
  callCaptions: kept.callCaptions === true,
@@ -105,6 +121,8 @@ export var SettingsUtil;
105
121
  keepAliveMinutes: choice(kept.keepAliveMinutes, KEEP_ALIVE_CHOICES, DEFAULT_SETTINGS.keepAliveMinutes),
106
122
  chatFoldDays: choice(kept.chatFoldDays, CHAT_FOLD_CHOICES, DEFAULT_SETTINGS.chatFoldDays),
107
123
  chatArchiveDays: choice(kept.chatArchiveDays, CHAT_ARCHIVE_CHOICES, DEFAULT_SETTINGS.chatArchiveDays),
124
+ tabTitle: tabTitle(kept.tabTitle),
125
+ tabCounts: kept.tabCounts !== false,
108
126
  recentShots: kept.recentShots !== false,
109
127
  sendWhileWorking: SEND_WHILE_WORKING.includes(kept.sendWhileWorking)
110
128
  ? kept.sendWhileWorking
@@ -116,8 +134,8 @@ export var SettingsUtil;
116
134
  SettingsUtil.STATE = { key: TA_WEB_SETTINGS_DATA.key, tier: 'user', initial: DEFAULT_SETTINGS, parse };
117
135
  /** How the page looks, kept on this device too: the sign-in after a sign-out looks as the page did. */
118
136
  function look(settings) {
119
- const { theme, language, fontSize, chatFontSize, reduceMotion } = settings;
120
- return { theme, language, fontSize, chatFontSize, reduceMotion };
137
+ const { theme, language, fontSize, chatFontSize, pageWidth, reduceMotion } = settings;
138
+ return { theme, language, fontSize, chatFontSize, pageWidth, reduceMotion };
121
139
  }
122
140
  SettingsUtil.look = look;
123
141
  SettingsUtil.LOOK = {
@@ -12,7 +12,7 @@ import { LocaleManager } from '@celljs/widget';
12
12
  import { MiniProgram } from '../device/mini-program.js';
13
13
  import { TaState } from '../state/state-protocol.js';
14
14
  import { TaWorkbench } from '../workbench-protocol.js';
15
- import { FONT_SCALES, SettingsUtil, TaSettings } from './settings-protocol.js';
15
+ import { FONT_SCALES, PAGE_WIDTHS, SettingsUtil, TaSettings } from './settings-protocol.js';
16
16
  /**
17
17
  * The colours of the conversation (--ta-main) and of the side columns (--ta-side), for the bar of the
18
18
  * browser and the title bar of the installed app.
@@ -98,6 +98,9 @@ let TaSettingsImpl = class TaSettingsImpl {
98
98
  root.lang = state.language;
99
99
  root.style.setProperty('--ta-page-font-scale', String(state.fontScale));
100
100
  root.style.setProperty('--ta-chat-font-scale', String(state.chatFontScale));
101
+ const width = PAGE_WIDTHS[state.settings.pageWidth];
102
+ root.style.setProperty('--ta-page-width', `${width.page}px`);
103
+ root.style.setProperty('--ta-page-wide', `${width.wide}px`);
101
104
  root.toggleAttribute('data-reduce-motion', state.reduceMotion);
102
105
  root.dataset.diagram = state.settings.diagramStyle;
103
106
  let meta = document.querySelector('meta[name="theme-color"]');
@@ -1,2 +1,2 @@
1
1
  /** Tokens of the theme, controls, levels. */
2
- export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n /* The chevron of a select, drawn in --ta-muted (an image cannot take currentColor). */\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n /* The red number of what people said unseen (PeopleBadge), white on it: WeChat's, the same in both themes. */\n --ta-badge: #fa5151;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-badge: #fa5151;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n /**\n * Under a title bar every column keeps a gap of 3px below it, and the first row of each rises into the rest of\n * its head, centred on the tabs of the workbench (34px high, below the gap) rather than on a head of 56px:\n * 28px - 3px - 17px. The search of the sidebar, 40px high, so starts right under the bar, none of it hidden.\n */\n --ta-top-gap: min(3px, var(--ta-titlebar));\n --ta-lift: min(8px, var(--ta-titlebar));\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a\n form; or wide, for cards and tiles side by side. Web extensions use them too. */\n --ta-page-width: 720px;\n --ta-page-wide: 880px;\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: var(--ta-input-height); width: var(--ta-input-height); }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n/* Fields and forms are style/forms.ts. */\n/* Every select of Ta and of its extensions has the one chevron of the model picker, kept off its right border by\n --ta-select-inset; each owner sets only its box. A select that draws its own (or none) is .ta-select-plain. */\nselect:not([multiple]):not([size]):not(.ta-select-plain) { appearance: none; -webkit-appearance: none; padding-right: calc(var(--ta-select-inset, 10px) + 21px); background-image: var(--ta-select-chevron); background-repeat: no-repeat; background-position: right var(--ta-select-inset, 10px) center; background-size: 15px 15px; text-overflow: ellipsis; cursor: pointer; }\nselect.ta-select-plain { appearance: none; -webkit-appearance: none; }\nselect:disabled { cursor: default; }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n/* A busy button that brought no ta-busy-mark of its own gets one: its label inked out alone would leave it blank. */\n.ta-button.ta-busy:not(:has(> .ta-busy-mark))::after { content: ''; position: absolute; inset: 0; width: 13px; height: 13px; margin: auto; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary.ta-busy:not(:has(> .ta-busy-mark))::after { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n/*\n * On its way (Loading, ui.Loading): a turning mark, its words under it, in the middle of the space of its parent as\n * .ta-empty (some room of its own where its parent is not a column of flex); only after a moment, so that what comes\n * at once never flashes it. Compact: a line of its own in a card, a dialog or a section.\n */\n.ta-loading { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px; box-sizing: border-box; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-fade 200ms ease-out var(--ta-loading-delay, 450ms) both; }\n.ta-loading-compact { flex: none; width: 100%; min-height: 0; padding: 20px 12px; }\n.ta-loading-label { max-width: 280px; text-wrap: balance; overflow-wrap: anywhere; }\n\n";
2
+ export declare const BASE_STYLE = "\n:root, :root[data-theme='dark'] {\n --ta-main: #141416;\n --ta-side: #1c1c1e;\n --ta-card: #1a1a1c;\n --ta-input: #1a1a1a;\n --ta-raised: #242426;\n --ta-user: #2a2a2d;\n --ta-hover: #2a2a2e;\n --ta-hover-strong: #333338;\n --ta-selected: #2c2c31;\n --ta-chip: #2a2a2e;\n /* The chosen segment of a segmented control, on a track of --ta-raised: above it, lighter in the dark. */\n --ta-segment: #333338;\n --ta-border: #2e2e33;\n --ta-border-muted: #232328;\n --ta-border-field: #3d3d45;\n --ta-border-focus: #8a8a96;\n --ta-text: #e5e5e5;\n --ta-body: #d4d4d6;\n --ta-secondary: #a3a3a3;\n --ta-muted: #7c7c82;\n /* The chevron of a select, drawn in --ta-muted (an image cannot take currentColor). */\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #e5e5e5;\n --ta-brand-text: #1a1a1a;\n --ta-accent: #34d399;\n --ta-link: #4dabf7;\n --ta-green: #4ade80;\n --ta-red: #f87171;\n /* The red number of what people said unseen (PeopleBadge), white on it: WeChat's, the same in both themes. */\n --ta-badge: #fa5151;\n --ta-yellow: #fbbf24;\n --ta-blue: #60a5fa;\n --ta-code: #161618;\n --ta-add: rgba(74, 222, 128, 0.1);\n --ta-remove: rgba(248, 113, 113, 0.1);\n --ta-shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);\n --ta-shadow-composer: 0 12px 32px rgba(0, 0, 0, 0.32);\n --ta-scrollbar: rgba(255, 255, 255, 0.12);\n color-scheme: dark;\n}\n:root[data-theme='light'] {\n --ta-main: #ffffff;\n --ta-side: #f5f5f7;\n --ta-card: #ffffff;\n --ta-input: #ffffff;\n --ta-raised: #f3f3f5;\n --ta-user: #f2f2f2;\n --ta-hover: #ebebf0;\n --ta-hover-strong: #e2e2e8;\n --ta-selected: #e6e6ea;\n --ta-chip: #ececf0;\n --ta-segment: #ffffff;\n --ta-border: #dcdee3;\n --ta-border-muted: #e8eaed;\n --ta-border-field: #c9ccd4;\n --ta-border-focus: #6b6e76;\n --ta-text: #1a1a1a;\n --ta-body: #33363b;\n --ta-secondary: #5c5c5c;\n --ta-muted: #8e8e93;\n --ta-select-chevron: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\");\n --ta-brand: #1a1a1a;\n --ta-brand-text: #ffffff;\n --ta-accent: #10a372;\n --ta-link: #1677ff;\n --ta-green: #16a34a;\n --ta-red: #e5484d;\n --ta-badge: #fa5151;\n --ta-yellow: #d97706;\n --ta-blue: #1677ff;\n --ta-code: #f7f8fa;\n --ta-add: rgba(34, 197, 94, 0.1);\n --ta-remove: rgba(239, 68, 68, 0.08);\n --ta-shadow-pop: 0 16px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);\n --ta-shadow-composer: 0 8px 24px rgba(15, 23, 42, 0.07);\n --ta-scrollbar: rgba(0, 0, 0, 0.14);\n color-scheme: light;\n}\n:root {\n /** The height of the title bar the page draws itself; see .ta-titlebar. */\n --ta-titlebar: 0px;\n /**\n * Under a title bar every column keeps a gap of 3px below it, and the first row of each rises into the rest of\n * its head, centred on the tabs of the workbench (34px high, below the gap) rather than on a head of 56px:\n * 28px - 3px - 17px. The search of the sidebar, 40px high, so starts right under the bar, none of it hidden.\n */\n --ta-top-gap: min(3px, var(--ta-titlebar));\n --ta-lift: min(8px, var(--ta-titlebar));\n --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;\n /* The font and the corners of what a brand draws (a card, a document, slides, a sheet, a work): the page's own unless a brand gives others (ta-brand, docs/design/ta-brand.md). Never the page's chrome. */\n --ta-brand-font: var(--ta-sans);\n --ta-radius: 12px;\n --ta-radius-box: 8px;\n --ta-radius-mark: 4px;\n --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;\n --ta-col: 760px;\n --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n /* The font sizes of the settings (TaSettingsImpl sets the first two). Every font size in px is written\n calc(13px * var(--ta-font-scale)), line heights in px too: the page's size (more on a phone, see\n style/device.ts), and in a conversation (.ta-conversation: its messages and the field of its message\n box) that of conversations on top of it. */\n --ta-page-font-scale: 1;\n --ta-chat-font-scale: 1;\n --ta-device-font-scale: 1;\n --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));\n /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a\n form; or wide, for cards and tiles side by side. Web extensions use them too. TaSettingsImpl sets them\n by the width of the settings (PAGE_WIDTHS). */\n --ta-page-width: 720px;\n --ta-page-wide: 880px;\n}\n.ta-conversation { --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale) * var(--ta-chat-font-scale)); font-size: calc(14px * var(--ta-font-scale)); }\n* { box-sizing: border-box; }\nhtml, body, #cell-root, #root { height: 100%; margin: 0; }\n/* The page and its scrolling areas do not bounce at the ends. Only scrolling areas of their own: on any\n other element (one with overflow: hidden is a scroll container too) it stops the wheel from reaching\n the area under it, and nothing scrolls while the pointer is over a card or a code block. */\nhtml, body, .ta-scroll, .ta-chat-scroll, .ta-side-scroll, .ta-rail-items, .ta-side-view-body, .ta-editor-body,\n.ta-workbench-launcher, .ta-workbench-menu, .ta-settings-scroll, .ta-settings-toc, .ta-pick-list, .ta-commands,\n.ta-folder-list, .ta-auth-list { overscroll-behavior: none; }\nbody { background: var(--ta-main); color: var(--ta-text); font: calc(14px * var(--ta-font-scale))/1.6 var(--ta-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }\nbutton, input, select, textarea { font: inherit; color: inherit; }\nbutton { cursor: pointer; }\ncode, pre { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); }\na { color: var(--ta-link); text-decoration: none; }\n* { scrollbar-width: thin; scrollbar-color: var(--ta-scrollbar) transparent; }\n:focus-visible { outline: 2px solid var(--ta-blue); outline-offset: 1px; }\n.ta-muted { color: var(--ta-muted); }\n.ta-small { font-size: calc(12px * var(--ta-font-scale)); }\n.ta-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-path { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-spacer { flex: 1; }\n.ta-icon { flex: none; }\n.ta-narrow-only { display: none !important; }\n.ta-glass { background: var(--ta-card); border: 1px solid var(--ta-border); }\n\n/* Controls */\n.ta-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ta-border); background: transparent; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; color: var(--ta-text); transition: background 120ms, border-color 120ms; }\n.ta-button:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-button:disabled { opacity: 0.45; cursor: default; }\n.ta-primary { background: var(--ta-brand); border-color: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-primary:hover:not(:disabled) { background: var(--ta-brand); opacity: 0.88; }\n.ta-danger, .ta-stop { color: var(--ta-red); }\n.ta-quiet { border-color: transparent; color: var(--ta-secondary); }\n.ta-wide { width: 100%; height: 38px; }\n.ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }\n/* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */\n.ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-emoji-button, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }\n.ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }\n.ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-icon-button:disabled { opacity: 0.4; }\n.ta-icon-button.ta-on { color: var(--ta-text); background: var(--ta-hover); }\n.ta-icon-button-boxed { border: 1px solid var(--ta-border-field); height: var(--ta-input-height); width: var(--ta-input-height); }\n.ta-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ta-red); color: #fff; font-size: 10px; font-weight: 600; line-height: 15px; }\n/* Fields and forms are style/forms.ts. */\n/* Every select of Ta and of its extensions has the one chevron of the model picker, kept off its right border by\n --ta-select-inset; each owner sets only its box. A select that draws its own (or none) is .ta-select-plain. */\nselect:not([multiple]):not([size]):not(.ta-select-plain) { appearance: none; -webkit-appearance: none; padding-right: calc(var(--ta-select-inset, 10px) + 21px); background-image: var(--ta-select-chevron); background-repeat: no-repeat; background-position: right var(--ta-select-inset, 10px) center; background-size: 15px 15px; text-overflow: ellipsis; cursor: pointer; }\nselect.ta-select-plain { appearance: none; -webkit-appearance: none; }\nselect:disabled { cursor: default; }\n.ta-editor { height: auto; min-height: 140px; padding: 8px 10px; font-family: var(--ta-mono); resize: vertical; }\n.ta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }\n/* Levels: the colour of the icon tells the level; the text stays in the colours of text. */\n.ta-level-info { --ta-level: var(--ta-blue); }\n.ta-level-success { --ta-level: var(--ta-green); }\n.ta-level-warning { --ta-level: var(--ta-yellow); }\n.ta-level-error { --ta-level: var(--ta-red); }\n.ta-level-icon { color: var(--ta-level, var(--ta-muted)); }\n/* In its place: a soft tint of its level, the text in the colours of text. */\n.ta-callout { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; text-align: left; color: var(--ta-body); background: color-mix(in srgb, var(--ta-level) 7%, var(--ta-card)); border: 1px solid color-mix(in srgb, var(--ta-level) 18%, var(--ta-border-muted)); }\n.ta-callout > .ta-level-icon { margin-top: 2px; }\n.ta-callout-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-empty .ta-callout { max-width: min(520px, 100%); }\n/* A turn cut off or over without a word: a quiet line where it stopped, its way on on the same line, so that what the\n user says next reads as the end of this work rather than a box apart from it. */\n.ta-callout.ta-turn-end { display: inline-flex; align-self: flex-start; max-width: 100%; align-items: center; gap: 8px; padding: 3px 4px 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ta-level) 6%, transparent); }\n.ta-callout.ta-turn-end > .ta-level-icon { margin-top: 0; }\n.ta-callout.ta-turn-end .ta-callout-text { display: block; min-width: 0; }\n.ta-callout.ta-turn-end .ta-callout-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-callout.ta-turn-end .ta-button { flex: none; height: calc(22px * var(--ta-font-scale)); padding: 0 10px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }\n.ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }\n/*\n * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),\n * so that what is quick does not flash, and takes no second click meanwhile. ta-busy a button or an icon\n * button, its spinner (ta-busy-mark; with ta-on-brand on a button of the brand's color) over its label, which keeps its width; ta-pending a row that is being\n * taken away, which fades back; ta-spinner ta-later a spinner of its own; ta-switch ta-busy a switch, which\n * moved at once, its knob turning.\n */\n.ta-busy, .ta-pending { --ta-busy-delay: 160ms; pointer-events: none; }\n.ta-busy:not(.ta-switch) { animation: ta-busy-ink 0s var(--ta-busy-delay) forwards; }\n.ta-button.ta-busy { position: relative; }\n.ta-busy > .ta-busy-mark { position: absolute; inset: 0; margin: auto; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary > .ta-busy-mark, .ta-busy-mark.ta-on-brand { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-button-danger > .ta-busy-mark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }\n/* A busy button that brought no ta-busy-mark of its own gets one: its label inked out alone would leave it blank. */\n.ta-button.ta-busy:not(:has(> .ta-busy-mark))::after { content: ''; position: absolute; inset: 0; width: 13px; height: 13px; margin: auto; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-primary.ta-busy:not(:has(> .ta-busy-mark))::after { border-color: color-mix(in srgb, var(--ta-brand-text) 30%, transparent); border-top-color: var(--ta-brand-text); }\n.ta-pending { animation: ta-busy-dim 180ms var(--ta-busy-delay) forwards; }\n.ta-spinner.ta-later { animation: ta-spin 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay, 160ms) both; }\n.ta-switch.ta-busy::before { content: ''; position: absolute; z-index: 1; top: 5px; left: 5px; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid rgba(0, 0, 0, 0.12); border-top-color: #8a8a8a; transition: translate 180ms var(--ta-ease); animation: ta-turn 0.8s linear infinite, ta-busy-in 140ms var(--ta-busy-delay) both; }\n.ta-switch.ta-busy:checked::before { translate: 16px 0; border-top-color: var(--ta-green); }\n@keyframes ta-busy-in { from { opacity: 0; } }\n@keyframes ta-busy-ink { to { color: transparent; } }\n@keyframes ta-busy-dim { to { opacity: 0.45; } }\n/* A turn by rotate, which leaves transform and translate to what is turned. */\n@keyframes ta-turn { to rotate: 360deg; }\n/* Nothing to show (EmptyState, ui.Empty): in the middle of the space of its parent, a column of flex; compact, a line of its own in a menu or a picker. */\n.ta-empty { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px 24px 56px; text-align: center; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-muted); text-wrap: balance; }\n.ta-empty-title { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-empty-title + .ta-empty-hint { margin-top: -4px; }\n/* Chinese breaks between its words and after its commas, as the first page of a conversation (.ta-hero p) */\n.ta-empty-hint { max-width: 260px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-empty-compact { flex: none; width: 100%; box-sizing: border-box; padding: 20px 12px; }\n.ta-empty-compact .ta-empty-title { font-size: calc(13px * var(--ta-font-scale)); font-weight: 400; }\n.ta-empty-picture { width: min(200px, 80%); margin-bottom: 8px; animation: ta-in 320ms var(--ta-ease) both; }\n.ta-empty-compact .ta-empty-picture { width: min(150px, 60%); margin-bottom: 4px; }\n.ta-setting-row > .ta-empty-compact { padding: 4px 0; }\n.ta-empty-error .ta-empty-title { color: var(--ta-red); overflow-wrap: anywhere; }\n/*\n * On its way (Loading, ui.Loading): a turning mark, its words under it, in the middle of the space of its parent as\n * .ta-empty (some room of its own where its parent is not a column of flex); only after a moment, so that what comes\n * at once never flashes it. Compact: a line of its own in a card, a dialog or a section.\n */\n.ta-loading { flex: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 24px; box-sizing: border-box; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; animation: ta-fade 200ms ease-out var(--ta-loading-delay, 450ms) both; }\n.ta-loading-compact { flex: none; width: 100%; min-height: 0; padding: 20px 12px; }\n.ta-loading-label { max-width: 280px; text-wrap: balance; overflow-wrap: anywhere; }\n\n";
@@ -90,6 +90,11 @@ export const BASE_STYLE = `
90
90
  --ta-top-gap: min(3px, var(--ta-titlebar));
91
91
  --ta-lift: min(8px, var(--ta-titlebar));
92
92
  --ta-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
93
+ /* The font and the corners of what a brand draws (a card, a document, slides, a sheet, a work): the page's own unless a brand gives others (ta-brand, docs/design/ta-brand.md). Never the page's chrome. */
94
+ --ta-brand-font: var(--ta-sans);
95
+ --ta-radius: 12px;
96
+ --ta-radius-box: 8px;
97
+ --ta-radius-mark: 4px;
93
98
  --ta-mono: 'SF Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
94
99
  --ta-col: 760px;
95
100
  --ta-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
@@ -102,7 +107,8 @@ export const BASE_STYLE = `
102
107
  --ta-device-font-scale: 1;
103
108
  --ta-font-scale: calc(var(--ta-device-font-scale) * var(--ta-page-font-scale));
104
109
  /* How wide the content of a page is (the pages of Discover, Extensions): a column of rows, a feed or a
105
- form; or wide, for cards and tiles side by side. Web extensions use them too. */
110
+ form; or wide, for cards and tiles side by side. Web extensions use them too. TaSettingsImpl sets them
111
+ by the width of the settings (PAGE_WIDTHS). */
106
112
  --ta-page-width: 720px;
107
113
  --ta-page-wide: 880px;
108
114
  }
@@ -142,7 +148,7 @@ a { color: var(--ta-link); text-decoration: none; }
142
148
  .ta-wide { width: 100%; height: 38px; }
143
149
  .ta-link { background: none; border: 0; padding: 0; color: var(--ta-link); font-size: calc(12px * var(--ta-font-scale)); display: inline-flex; align-items: center; gap: 4px; }
144
150
  /* Buttons that hold an icon, centred in a box of their size: without the padding of the browser, which iOS makes 14px a side, so that the icon sat off centre there. */
145
- .ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }
151
+ .ta-icon-button, .ta-footer-button, .ta-rail-item, .ta-rail-logo, .ta-send, .ta-mic, .ta-emoji-button, .ta-editor-tab-close, .ta-attachment-remove, .ta-account-button, .ta-tool-trailing, .ta-to-bottom { padding: 0; }
146
152
  .ta-icon-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--ta-secondary); transition: background 120ms, color 120ms; }
147
153
  .ta-icon-button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }
148
154
  .ta-icon-button:disabled { opacity: 0.4; }
@@ -170,6 +176,13 @@ select:disabled { cursor: default; }
170
176
  .ta-callout-message { white-space: pre-wrap; overflow-wrap: anywhere; }
171
177
  .ta-callout-detail { color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); white-space: pre-wrap; overflow-wrap: anywhere; }
172
178
  .ta-empty .ta-callout { max-width: min(520px, 100%); }
179
+ /* A turn cut off or over without a word: a quiet line where it stopped, its way on on the same line, so that what the
180
+ user says next reads as the end of this work rather than a box apart from it. */
181
+ .ta-callout.ta-turn-end { display: inline-flex; align-self: flex-start; max-width: 100%; align-items: center; gap: 8px; padding: 3px 4px 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ta-level) 6%, transparent); }
182
+ .ta-callout.ta-turn-end > .ta-level-icon { margin-top: 0; }
183
+ .ta-callout.ta-turn-end .ta-callout-text { display: block; min-width: 0; }
184
+ .ta-callout.ta-turn-end .ta-callout-message { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
185
+ .ta-callout.ta-turn-end .ta-button { flex: none; height: calc(22px * var(--ta-font-scale)); padding: 0 10px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }
173
186
  .ta-spinner { width: 13px; height: 13px; border: 1.8px solid var(--ta-border-field); border-top-color: var(--ta-text); border-radius: 50%; animation: ta-spin 0.8s linear infinite; flex: none; display: inline-block; }
174
187
  /*
175
188
  * Busy (components/busy.tsx): what waits on something slow says so only once it took a moment (--ta-busy-delay),
@@ -1,2 +1,2 @@
1
1
  /** The list of chats: its search, its rows, the letters and faces of their groups. */
2
- export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-pressed='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n/* As light as the search glass at the other end of the field. */\n.ta-chats-view .ta-icon { width: 16px; height: 16px; }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */\n.ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }\n.ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-tag { display: inline-flex; align-items: center; gap: 2px; }\n.ta-chat-tag.ta-tone-blue { background: color-mix(in oklab, var(--ta-blue) 13%, transparent); color: var(--ta-blue); }\n.ta-chat-tag.ta-tone-gray { background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); }\n.ta-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-title-line > .ta-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-title-line > .ta-chat-tag { margin: 0; }\n.ta-chat-tag-open { border: 0; font-family: inherit; cursor: pointer; }\n.ta-chat-tag-open:hover { filter: brightness(0.94); }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft, .ta-chat-flag.ta-alert { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; font-size: 9px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 2px; right: 0; z-index: 1; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--ta-blue); color: #fff; display: block; align-content: center; text-align: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -6px; right: -12px; }\n.ta-asks-badge.ta-people { background: var(--ta-badge); }\n/* Digits centred by their own height (text-box), not by the line, which sits them low; the rest centre as before. */\n.ta-chat-dot.ta-count { display: block; align-content: center; text-align: center; background: var(--ta-badge); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; }\n.ta-chat-line > .ta-chat-dot.ta-count { width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; box-sizing: border-box; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-count { top: -6px; right: -7px; bottom: auto; width: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 599px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* PeoplePicker (ui.PeoplePicker): every pick of people, as a messenger's. A box to search with the ones picked in it, rows of faces and names under headings, the round marks of several chosen. */\n.ta-picker { display: flex; flex-direction: column; gap: 6px; min-height: 0; }\n.ta-picker-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 4px 10px; box-sizing: border-box; border-radius: 10px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-picker-search:focus-within { color: var(--ta-secondary); }\n.ta-picker-search input { flex: 1; min-width: 80px; height: 28px; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); outline: none; }\n.ta-picker-search input::placeholder { color: var(--ta-muted); }\n.ta-picker-chip { flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; animation: ta-fade 140ms; }\n.ta-picker-chip:disabled { cursor: default; }\n.ta-picker-list { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: min(420px, 56vh); margin: 0 -4px; padding: 0 4px; overflow-y: auto; }\n/* Its headings stay on top as the list scrolls, on the colour of what it is drawn on: a dialog's, else --ta-picker-bg. */\n.ta-picker-heading { position: sticky; top: 0; z-index: 1; padding: 8px 8px 4px; background: var(--ta-picker-bg, var(--ta-card)); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }\n.ta-picker-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-picker-row:hover:not(:disabled), .ta-picker-row:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-picker-row:disabled { cursor: default; }\n.ta-picker-row:disabled:not([aria-pressed='true']) .ta-picker-text, .ta-picker-row:disabled:not([aria-pressed='true']) > .ta-face { opacity: .45; }\n.ta-picker-face { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }\n.ta-picker-face > span { display: inline-grid; place-items: center; flex: none; }\n.ta-picker-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-picker-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-picker-tag { flex: none; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-picker-detail { overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-picker-check { flex: none; color: var(--ta-accent); }\n/* A dialog around it: a line of what it is for, the picker, why it failed, the button. */\n.ta-picker-dialog { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-picker-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-picker-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n";
2
+ export declare const CHAT_LIST_STYLE = "\n/* The list of chats: a search, then the chats by directory (a line each under the head of its group) or by day (each with the avatar of its directory) */\n.ta-chats { gap: 8px; }\n/* On a phone a folder opened is pushed over the list (PhoneStack): the same ground and spacing as the list. */\n.ta-chats > .ta-phone-stack > .ta-phone-stack-base, .ta-chats > .ta-phone-stack > .ta-phone-stack-top { gap: 8px; }\n.ta-chats > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-chats-head { gap: 4px; padding: 0; margin-bottom: 0; }\n.ta-chats-search { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid transparent; transition: border-color 120ms, background 120ms; }\n.ta-chats-search:focus-within { border-color: var(--ta-border-field); background: var(--ta-input); }\n.ta-chats-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--ta-text); padding: 0; font-size: calc(13.5px * var(--ta-font-scale)); }\n.ta-chats-search input::placeholder { color: var(--ta-muted); }\n.ta-chats-clear { width: 24px; height: 24px; }\n.ta-chips { display: flex; gap: 6px; flex: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }\n.ta-chips::-webkit-scrollbar { display: none; }\n.ta-chip-filter { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--ta-border); background: transparent; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms, border-color 120ms; }\n.ta-chip-filter:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chip-filter[aria-pressed='true'] { background: var(--ta-selected); border-color: transparent; color: var(--ta-text); font-weight: 500; }\n.ta-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-ink); }\n.ta-chip-count { color: var(--ta-muted); font-variant-numeric: tabular-nums; font-weight: 400; }\n.ta-chat-section + .ta-chat-section { margin-top: 6px; }\n.ta-chats-view { width: 26px; height: 26px; border-radius: 7px; color: var(--ta-muted); }\n/* As light as the search glass at the other end of the field. */\n.ta-chats-view .ta-icon { width: 16px; height: 16px; }\n.ta-chats-view[aria-pressed='true'] { color: var(--ta-text); background: var(--ta-hover-strong); }\n.ta-chat-group + .ta-chat-group { margin-top: 4px; }\n.ta-chat-group-head { position: relative; display: flex; align-items: center; }\n.ta-chat-group-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 40px 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; text-align: left; }\n.ta-chat-group-toggle:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-chat-group-avatar { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--tone-tint); color: var(--tone-ink); font-size: 11px; font-weight: 600; }\n.ta-chat-group-toggle .ta-host-tag { margin-right: -3px; }\n.ta-chat-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-group-count { flex: none; color: var(--ta-muted); font-weight: 400; font-variant-numeric: tabular-nums; }\n.ta-chat-group-chevron { flex: none; color: var(--ta-muted); transition: transform 150ms ease; }\n.ta-chat-group-toggle[aria-expanded='true'] .ta-chat-group-chevron { transform: rotate(90deg); }\n.ta-chat-group-add { position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; transform: translateY(-50%); opacity: 0; }\n.ta-chat-group-head:hover .ta-chat-group-add, .ta-chat-group-add:focus-visible { opacity: 1; }\n.ta-chat-group-toggle .ta-chat-icon, .ta-chat-folder-head .ta-chat-icon { flex: none; border-radius: 6px; }\n.ta-chat-folder-head { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 2px; border-bottom: 1px solid var(--ta-border); color: var(--ta-text); font-size: calc(14px * var(--ta-font-scale)); font-weight: 600; }\n.ta-chat-folder-back { width: 30px; height: 30px; flex: none; }\n.ta-chat-folder-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-item.ta-compact { min-height: 34px; padding: 7px 10px 7px 38px; border-radius: 10px; }\n.ta-chat-row:has(.ta-chat-item.ta-compact) { border-radius: 10px; }\n.ta-compact .ta-chat-title { font-weight: 400; color: var(--ta-body); }\n.ta-chat-section-title { padding: 8px 10px 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-fold { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }\n.ta-chat-fold:hover { color: var(--ta-text); }\n.ta-chat-fold svg { transition: transform 0.15s ease; }\n.ta-chat-fold[aria-expanded=\"true\"] svg { transform: rotate(90deg); }\n.ta-chat-removed .ta-chat-item { opacity: 0.72; }\n.ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }\n.ta-chat-more { height: 1px; }\n/*\n * Every row drawn is laid out and painted: no content-visibility. A list of a page or two (CHAT_PAGE) gained little by it,\n * and a fast fling on a phone outran it: rows came in blank, the scroll bar under them. Its own stacking context\n * (isolation) keeps the raised content of a swiped row inside it, under the scroll bar.\n */\n.ta-chat-row { position: relative; border-radius: 12px; isolation: isolate; }\n.ta-chat-row:hover { background: var(--ta-hover); }\n.ta-chat-row.ta-selected { background: var(--ta-selected); }\n.ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }\n.ta-chat-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tone-tint); color: var(--tone-ink); font-size: 15px; font-weight: 600; }\n.ta-chat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }\n.ta-chat-line { display: flex; align-items: center; gap: 8px; min-width: 0; }\n.ta-chat-title { flex: 1; min-width: 0; font-size: calc(14px * var(--ta-font-scale)); font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-time { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n/* After the title, what it is (a group chat with friends): small, green, the title as short as it is so it sits beside it. */\n.ta-chat-title.ta-badged { flex: 0 1 auto; }\n.ta-chat-tag { display: inline-flex; align-items: center; gap: 2px; }\n.ta-chat-tag.ta-tone-blue { background: color-mix(in oklab, var(--ta-blue) 13%, transparent); color: var(--ta-blue); }\n.ta-chat-tag.ta-tone-gray { background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); }\n.ta-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-title-line > .ta-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-title-line > .ta-chat-tag { margin: 0; }\n.ta-chat-tag-open { border: 0; font-family: inherit; cursor: pointer; }\n.ta-chat-tag-open:hover { filter: brightness(0.94); }\n.ta-chat-badge { flex: none; margin-right: auto; margin-left: -2px; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-green) 13%, transparent); color: var(--ta-green); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-chat-sub { flex: 1; min-width: 0; font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-chat-line .ta-spinner { width: 12px; height: 12px; }\n/* Someone to talk to: the double's face, or the face an extension draws for its agent, in place of a letter. */\n.ta-chat-face { flex: none; display: inline-grid; place-items: center; }\n/* A conversation of an extension that is no one to talk to (a brief, a question): its icon on a tile of its tint. */\n.ta-chat-icon { background: var(--ta-tile); color: var(--ta-tile-ink); }\n/* In a row of one line, in the room left of its title, under the letter of its group: the title stays where the others are. */\n.ta-compact .ta-chat-face { margin-left: -28px; }\n/* What goes on in it, at the end of a line: answering (a spinner, on the line under the title), a task that failed or was stopped. */\n.ta-chat-state { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n.ta-chat-state .ta-status { width: 8px; }\n.ta-chat-state.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n/* Under the title, as a messaging app: the last thing said, or its directory; how a task ended, before it, as WeChat's [Draft]. */\n.ta-chat-dir { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; vertical-align: top; }\n.ta-chat-dir > svg { flex: none; }\n.ta-chat-flag { margin-right: 3px; }\n.ta-chat-flag.ta-replying { color: var(--ta-secondary); }\n.ta-chat-line > .ta-people { margin-left: 4px; }\n/* Out of the way of the button that takes a row out, as its words are. */\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-line > .ta-people:last-child { margin-right: 28px; }\n.ta-chat-line .ta-people-face { box-shadow: none; background: none; }\n.ta-chat-line .ta-people-face + .ta-people-face { margin-left: -3px; }\n.ta-chat-flag.ta-failed { color: color-mix(in srgb, var(--ta-red) 85%, var(--ta-muted)); }\n.ta-chat-flag.ta-draft, .ta-chat-flag.ta-alert { color: var(--ta-red); }\n.ta-chat-flag.ta-waiting, .ta-chat-state.ta-waiting { color: color-mix(in srgb, var(--ta-blue) 85%, var(--ta-muted)); }\n/* Its directory, in place of its time while the pointer is on it. */\n.ta-chat-place { display: none; flex: 0 1 auto; align-items: center; gap: 4px; min-width: 0; max-width: 45%; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-chat-place > svg { flex: none; }\n.ta-chat-place > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n@media (hover: hover) {\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-place { display: inline-flex; }\n .ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-time { display: none; }\n}\n.ta-chats-add { width: 36px; height: 36px; border-radius: 10px; background: var(--ta-raised); }\n/* On the line under the title, at its end; in the middle of a row of one line. */\n.ta-chat-delete { position: absolute; bottom: 7px; right: 8px; width: 26px; height: 26px; opacity: 0; }\n.ta-chat-row:has(.ta-compact) .ta-chat-delete { bottom: auto; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); }\n.ta-chat-row:hover .ta-chat-item:not(.ta-compact) .ta-chat-sub { padding-right: 28px; }\n.ta-chat-delete:hover:not(:disabled) { color: var(--ta-red); }\n.ta-chat-row:hover .ta-chat-delete, .ta-chat-delete:focus-visible { opacity: 1; }\n/* Taken out, while ta serve closes it: its button stays, turning. */\n.ta-chat-row .ta-chat-delete.ta-icon-button.ta-busy { display: inline-grid; opacity: 1; }\n.ta-chat-row:hover .ta-compact .ta-chat-time, .ta-chat-row:hover .ta-chat-state { visibility: hidden; }\n/*\n * Unseen, as a messenger's unread: an amber dot on the corner of the avatar (before the time in a row of one line), as\n * the agents of the side bar have; it grows in and shrinks away. Cut out of the avatar by the color of the row.\n */\n.ta-chat-avatar-box { position: relative; display: inline-flex; flex: none; }\n.ta-chat-row { --ta-chat-bg: var(--ta-side); }\n.ta-chat-row:hover { --ta-chat-bg: var(--ta-hover); }\n.ta-chat-row.ta-selected { --ta-chat-bg: var(--ta-selected); }\n/* A row that slides past others to its new place (ListMotion) goes over them, in the color of its row. */\n.ta-chat-row[data-moving] { z-index: 1; background: var(--ta-chat-bg); }\n.ta-chat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); transform: scale(0); opacity: 0; transition: transform 0.24s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.18s ease; }\n.ta-chat-line > .ta-chat-dot:not(.ta-on) { width: 0; margin-left: -8px; }\n.ta-chat-avatar-box > .ta-chat-dot { position: absolute; right: -2px; bottom: -2px; z-index: 1; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--ta-chat-bg); }\n.ta-chat-dot.ta-on { transform: none; opacity: 1; }\n/* A conversation that waits for the user to decide: a blue ? in place of the amber dot, which seeing it does not take away. */\n.ta-chat-dot.ta-asks { display: grid; place-items: center; background: var(--ta-blue); color: #fff; font-weight: 700; line-height: 1; }\n.ta-chat-line > .ta-chat-dot.ta-asks { width: 13px; height: 13px; font-size: 9px; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-asks { right: -3px; bottom: -3px; width: 17px; height: 17px; font-size: 10px; }\n/* Only those going on (the row of the double opened the list): a chip that clears it, its count beside its label. */\n.ta-chat-filter { display: flex; padding: 0 2px 2px; }\n.ta-chat-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 11px; border: 0; border-radius: 14px; background: var(--ta-chip); color: var(--ta-text); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; transition: background 120ms; }\n.ta-chat-filter-chip:hover { background: var(--ta-selected); }\n.ta-chat-filter-chip > svg { color: var(--ta-muted); }\n.ta-chat-filter-count { font-variant-numeric: tabular-nums; color: var(--ta-secondary); }\n/* How many wait for the user to decide, on the entry of the chats: over the corner of its icon. */\n.ta-asks-badge { position: absolute; top: 2px; right: 0; z-index: 1; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--ta-blue); color: #fff; display: block; align-content: center; text-align: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; pointer-events: none; box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-tabbar-icon > .ta-asks-badge { top: -6px; right: -12px; }\n.ta-asks-badge.ta-people { background: var(--ta-badge); }\n/* Digits centred by their own height (text-box), not by the line, which sits them low; the rest centre as before. */\n.ta-chat-dot.ta-count { display: block; align-content: center; text-align: center; background: var(--ta-badge); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; text-box: trim-both cap alphabetic; }\n.ta-chat-line > .ta-chat-dot.ta-count { width: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; box-sizing: border-box; }\n.ta-chat-avatar-box > .ta-chat-dot.ta-count { top: -6px; right: -7px; bottom: auto; width: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; }\n@media (prefers-reduced-motion: reduce) { .ta-chat-dot { transition: opacity 0.18s ease; } }\n/* What came unseen reads as unread: in the color of the text, not muted. */\n.ta-chat-sub.ta-unseen { color: var(--ta-text); }\n/* Above the box: where a new conversation will work (ComposerBox's head), a pill of its directory. */\n.ta-console-head { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 0 6px; }\n.ta-console-head .ta-cwd-chip { max-width: min(100%, 360px); height: 26px; padding: 0 8px 0 7px; background: transparent; }\n.ta-console-head .ta-cwd-chip:hover { background: var(--ta-hover); }\n.ta-console-head .ta-cwd-chip .ta-ellipsis { flex: 0 1 auto; min-width: 0; max-width: none; }\n.ta-cwd-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 180px; overflow: hidden; height: 30px; padding: 0 9px 0 10px; border: 0; border-radius: 15px; background: var(--ta-hover); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n.ta-cwd-chip:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-cwd-chip svg { flex: none; }\n@media (max-width: 599px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) { .ta-cwd-chip { max-width: 120px; } }\n/* The letters of the list in hues of the agents' faces (yellow, blue, orange, green, violet, pink), drawn as tints of the theme (--ta-tint-<n>, style/tints.ts). */\n.ta-tone-0 { --tone-tint: var(--ta-tint-2); --tone-ink: var(--ta-tint-ink-2); }\n.ta-tone-1 { --tone-tint: var(--ta-tint-0); --tone-ink: var(--ta-tint-ink-0); }\n.ta-tone-2 { --tone-tint: var(--ta-tint-4); --tone-ink: var(--ta-tint-ink-4); }\n.ta-tone-3 { --tone-tint: var(--ta-tint-3); --tone-ink: var(--ta-tint-ink-3); }\n.ta-tone-4 { --tone-tint: var(--ta-tint-5); --tone-ink: var(--ta-tint-ink-5); }\n.ta-tone-5 { --tone-tint: var(--ta-tint-7); --tone-ink: var(--ta-tint-ink-7); }\n/* The partners (PartnersList): agents, friends and group chats, each a section under a small title, rows as the chats. */\n.ta-partners .ta-chat-section-title { display: flex; align-items: center; gap: 6px; }\n.ta-partners .ta-chat-group + .ta-chat-group { margin-top: 6px; }\n.ta-partner-online { position: absolute; left: -1px; bottom: -1px; z-index: 1; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ta-chat-bg); background: var(--ta-green); }\n/* PeoplePicker (ui.PeoplePicker): every pick of people, as a messenger's. A box to search with the ones picked in it, rows of faces and names under headings, the round marks of several chosen. */\n.ta-picker { display: flex; flex-direction: column; gap: 6px; min-height: 0; }\n.ta-picker-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 4px 10px; box-sizing: border-box; border-radius: 10px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-picker-search:focus-within { color: var(--ta-secondary); }\n.ta-picker-search input { flex: 1; min-width: 80px; height: 28px; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); outline: none; }\n.ta-picker-search input::placeholder { color: var(--ta-muted); }\n.ta-picker-chip { flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; animation: ta-fade 140ms; }\n.ta-picker-chip:disabled { cursor: default; }\n.ta-picker-list { position: relative; display: flex; flex-direction: column; min-height: 0; max-height: min(420px, 56vh); margin: 0 -4px; padding: 0 4px; overflow-y: auto; }\n/* Its headings stay on top as the list scrolls, on the colour of what it is drawn on: a dialog's, else --ta-picker-bg. */\n.ta-picker-heading { position: sticky; top: 0; z-index: 1; padding: 8px 8px 4px; background: var(--ta-picker-bg, var(--ta-card)); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 500; }\n.ta-picker-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: var(--ta-text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-picker-row:hover:not(:disabled), .ta-picker-row:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-picker-row:disabled { cursor: default; }\n.ta-picker-row:disabled:not([aria-pressed='true']) .ta-picker-text, .ta-picker-row:disabled:not([aria-pressed='true']) > .ta-face { opacity: .45; }\n.ta-picker-face { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }\n.ta-picker-face > span { display: inline-grid; place-items: center; flex: none; }\n.ta-picker-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }\n.ta-picker-line { display: flex; align-items: center; gap: 6px; min-width: 0; }\n.ta-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(14px * var(--ta-font-scale)); }\n.ta-picker-tag { flex: none; height: calc(16px * var(--ta-font-scale)); padding: 0 5px; border-radius: 4px; background: color-mix(in oklab, var(--ta-muted) 14%, transparent); color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-picker-detail { overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-picker-check { flex: none; color: var(--ta-accent); }\n/* A dialog around it: a line of what it is for, the picker, why it failed, the button. */\n.ta-picker-dialog { display: flex; flex-direction: column; gap: 10px; min-height: 0; }\n.ta-picker-lead { margin: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-picker-error { margin: 0; color: var(--ta-red); font-size: calc(13px * var(--ta-font-scale)); }\n";
@@ -51,9 +51,12 @@ export const CHAT_LIST_STYLE = `
51
51
  .ta-chat-removed .ta-chat-item { opacity: 0.72; }
52
52
  .ta-chat-group .ta-chat-fold { margin-top: 0; padding-left: 14px; }
53
53
  .ta-chat-more { height: 1px; }
54
- /* Rows out of view are not laid out or painted (their menu opens in a portal, their actions within them). */
55
- .ta-chat-row { position: relative; border-radius: 12px; content-visibility: auto; contain-intrinsic-size: auto 60px; }
56
- .ta-chat-row:has(.ta-compact) { contain-intrinsic-size: auto 36px; }
54
+ /*
55
+ * Every row drawn is laid out and painted: no content-visibility. A list of a page or two (CHAT_PAGE) gained little by it,
56
+ * and a fast fling on a phone outran it: rows came in blank, the scroll bar under them. Its own stacking context
57
+ * (isolation) keeps the raised content of a swiped row inside it, under the scroll bar.
58
+ */
59
+ .ta-chat-row { position: relative; border-radius: 12px; isolation: isolate; }
57
60
  .ta-chat-row:hover { background: var(--ta-hover); }
58
61
  .ta-chat-row.ta-selected { background: var(--ta-selected); }
59
62
  .ta-chat-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; color: inherit; }
@@ -1,2 +1,2 @@
1
1
  /** The conversation column: the steps of a turn, the pictures of a message, the message box and its + menu, the messages waiting. */
2
- export declare const CONVERSATION_COLUMN_STYLE = "\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n/* Under the words of a turn its dot starts where they do: the dot is centred in its box, which starts a little before. */\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; margin-top: -6px; }\n.ta-run-line > .ta-run-status > .ta-status { margin-left: -3px; }\n/* Under the steps of a turn the line is one more step: its dot under the avatar, folded or open; under the open ones at their pitch, on the string's line. */\n.ta-run-line.ta-run-steps { padding-left: 9px; }\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps, .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps { margin-top: -18px; }\n/* There, a call it runs is already the last step, its dot breathing: the line would say it again. */\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool), .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool) { display: none; }\n/* What waits for the user is a blue ?, apart from the blue dot that breathes while it works and the amber of something unseen. */\n.ta-status-waiting::before { content: '?'; width: 10px; height: 10px; background: var(--ta-blue); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n/* Several: in columns as a gallery of a reply has them (GalleryUtil.columns), four in two rows of two. */\n.ta-user-images:not([data-count='1']) { display: grid; grid-template-columns: repeat(var(--ta-user-image-columns, 3), 80px); }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */\n.ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n/* A picture of a chat still on its way (ChatImages): its tiny thumbnail, blurred, in its place. */\n.ta-thumb-blurred { display: block; overflow: hidden; background: var(--ta-raised); }\n.ta-thumb-blurred img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) saturate(1.1); transform: scale(1.15); }\n.ta-user-images[data-count='1'] .ta-thumb-blurred:not([style]) { width: 160px; height: 120px; }\n.ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }\n.ta-user-image:disabled { cursor: default; opacity: 1; }\n@keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }\n/*\n * Pictures sent together, folded as WeChat folds them (ImageStack): the first in its shape, two peeking from behind it,\n * smaller and dimmer, a pill beside it to unfold them, on the side away from the edge the message keeps to.\n */\n.ta-image-stack { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }\n.ta-user-other .ta-image-stack, .trm-msg .ta-image-stack, .tac-msg .ta-image-stack { flex-direction: row-reverse; }\n.ta-stack-cards { position: relative; display: block; margin: 0 18px 4px; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }\n.ta-stack-cards:disabled { cursor: default; }\n.ta-stack-card { display: block; object-fit: cover; border-radius: 12px; background: var(--ta-raised); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }\n.ta-stack-front { position: relative; z-index: 2; }\n.ta-stack-left, .ta-stack-right { position: absolute; inset: 0; z-index: 1; filter: brightness(0.82); }\n.ta-stack-left { transform: translateX(-30px) scale(0.86); }\n.ta-stack-right { transform: translateX(30px) scale(0.86); }\n.ta-stack-unfold, .ta-stack-fold { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ta-raised); color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.3; cursor: pointer; white-space: nowrap; }\n.ta-stack-unfold:hover, .ta-stack-fold:hover { color: var(--ta-text); }\n.ta-stack-fold { grid-column: 1 / -1; justify-self: end; margin-top: 2px; padding: 4px 12px; font-size: calc(12px * var(--ta-font-scale)); }\n.ta-user-other .ta-stack-fold, .trm-msg .ta-stack-fold, .tac-msg .ta-stack-fold { justify-self: start; }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); padding: 8px 6px 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* Every entry a tile, a page of four by two at a time (PlusMenuUtil.PAGE), as WeChat's + panel: more of them is another page to swipe to, never a taller menu. */\n.ta-plus-pages { display: flex; flex: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }\n.ta-plus-pages::-webkit-scrollbar { display: none; }\n.ta-plus-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 4px 2px; scroll-snap-align: start; scroll-snap-stop: always; }\n.ta-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-plus-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ta-hover); color: var(--ta-text); transition: background 120ms, color 120ms; }\n.ta-plus-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }\n/* A switch that is on: its icon lit in green. */\n.ta-plus-tile[aria-checked='true'] .ta-plus-tile-icon { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n.ta-plus-tile:active:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-plus-tile:hover:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); } }\n.ta-plus-tile:focus-visible { outline: none; background: var(--ta-hover); }\n.ta-plus-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 0 2px; overflow: hidden; color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }\n/* A setting or a switch: its label on one line, its value (the model, on or off) under it, quieter. */\n.ta-plus-valued .ta-plus-tile-label { -webkit-line-clamp: 1; }\n.ta-plus-tile-value { max-width: 100%; margin-top: -3px; padding: 0 2px; overflow: hidden; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-dots { display: flex; flex: none; justify-content: center; gap: 2px; padding: 4px 0 0; }\n.ta-plus-dots button { position: relative; width: 16px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }\n.ta-plus-dots button::after { content: ''; position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-hover-strong); transition: background 150ms; }\n.ta-plus-dots button.ta-on::after { background: var(--ta-secondary); }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n/*\n * On a phone the panel is under the box, in place of the keyboard, as WeChat's: part of the page, so the box and\n * the conversation rise with it as it unfolds and fall as it folds (the rows of a grid, from none of it to all).\n */\n.ta-plus-dock { display: grid; grid-template-rows: 1fr; animation: ta-plus-unfold 240ms var(--ta-ease) both; }\n.ta-plus-dock.ta-closing { animation: ta-plus-fold 200ms var(--ta-ease) both; }\n.ta-plus-dock-inner { min-height: 0; overflow: hidden; }\n/* One height whatever it shows (a page of tiles, the last page, a list), as the keyboard it stands for: the box does not move as one turns to another. */\n.ta-plus-dock .ta-plus-menu { position: static; box-sizing: border-box; width: auto; max-width: none; height: 240px; padding: 14px 0 0; border: 0; border-radius: 0; background: var(--ta-main); box-shadow: none; animation: none; }\n.ta-plus-dock .ta-plus-page { gap: 10px 2px; }\n.ta-plus-dock .ta-plus-dots { padding-top: 10px; }\n.ta-plus-dock .ta-plus-pages { flex: 1; min-height: 0; }\n/*\n * A list opened in the panel (the models) as the grouped lists of iOS: under a title with its way back, a search\n * on a raised field, the entries on a raised card of rounded corners with hairlines between them, each group's\n * name above its card and sticking on top on the page's color, the one picked checked on the right.\n */\n.ta-plus-dock .ta-plus-list { padding-top: 6px; }\n.ta-plus-dock .ta-plus-back { height: 34px; margin-bottom: 6px; padding: 0 2px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-plus-dock .ta-plus-back svg { color: var(--ta-secondary); }\n.ta-plus-dock .ta-pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }\n.ta-plus-dock .ta-pick-search { height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-list { flex: 1; min-height: 0; max-height: none; padding-bottom: 10px; }\n.ta-plus-dock .ta-pick-section + .ta-pick-section { margin-top: 0; }\n.ta-plus-dock .ta-pick-group { padding: 12px 14px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > :first-child { margin-top: 8px; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > .ta-pick-group { margin-top: 0; padding-top: 6px; }\n.ta-plus-dock .ta-pick-item { min-height: 46px; padding: 0 14px; border-radius: 0; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item + .ta-pick-item { box-shadow: inset 14px 0 0 var(--ta-raised), inset 0 0.5px 0 var(--ta-border); }\n.ta-plus-dock .ta-pick-group + .ta-pick-item, .ta-plus-dock .ta-pick-section > .ta-pick-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item[data-active='true']:not(:disabled) { background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-plus-dock .ta-pick-check { color: var(--ta-green); }\n@keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }\n@keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }\n/* The emoji of the box (ComposerBoxProps.emoji): on a computer a popover above its button; on a phone a panel in place of the keyboard, as tall as the + panel, Delete and Send floating at its foot as WeChat's. */\n.ta-emoji-anchor { position: relative; flex: none; display: flex; }\n.ta-emoji-button.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-emoji-pop { position: absolute; right: -44px; bottom: calc(100% + 10px); z-index: 20; box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-height: 236px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 2px; }\n.ta-emoji { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: none; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: calc(25px * var(--ta-font-scale)); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji:active { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-emoji:hover { background: var(--ta-hover); } }\n.ta-emoji-panel { position: relative; height: 240px; background: var(--ta-emoji-back, var(--ta-main)); }\n.ta-emoji-panel .ta-emoji-grid { box-sizing: border-box; height: 100%; padding: 10px 6px 62px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }\n.ta-emoji-panel .ta-emoji-grid::-webkit-scrollbar { display: none; }\n.ta-emoji-keys { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 12px 10px 28px; background: linear-gradient(to right, transparent, var(--ta-emoji-back, var(--ta-main)) 26px); }\n.ta-emoji-key { display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji-key:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-emoji-send { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-emoji-send:active:not(:disabled) { background: var(--ta-brand); opacity: .85; }\n.ta-emoji-send:disabled { background: var(--ta-raised); color: var(--ta-muted); cursor: default; }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { padding: 5px 2px; }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n/* Stop pressed, the run not ended yet: a spinner in the colors of the button. */\n.ta-send-stopping { cursor: progress; }\n.ta-send-stopping .ta-spinner { border-color: color-mix(in srgb, var(--ta-main) 35%, transparent); border-top-color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-phone-hint { display: flex; align-items: center; gap: 6px; margin: 0 14px; padding: 2px 4px 2px 12px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); animation: ta-fade 120ms ease-out; }\n.ta-phone-hint > span { flex: 1; min-width: 0; }\n.ta-phone-hint .ta-link-button { flex: none; padding: 2px 6px; font-size: inherit; color: var(--ta-accent); }\n.ta-phone-hint .ta-icon-button { flex: none; width: 24px; height: 24px; }\n.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-head > span:first-child { margin-right: auto; }\n.ta-queue-settings { width: 22px; height: 22px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-settings:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-queue-now { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 6px; border: 0; border-radius: 11px; background: var(--ta-hover); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms; }\n.ta-queue-now:hover { background: var(--ta-hover-strong); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-queue-row > .ta-origin { flex: none; max-width: 40%; }\n.ta-queue-row > .ta-origin .ta-origin-detail { display: none; }\n.ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 10px; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background 150ms; }\n.ta-account-head:hover, .ta-account-head:focus-visible { background: var(--ta-hover); }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n";
2
+ export declare const CONVERSATION_COLUMN_STYLE = "\n/* The conversation: the avatar's mark, the folded work, the message box, the account */\n.ta-avatar-marked { position: relative; display: inline-block; flex: none; }\n.ta-avatar-marked .ta-avatar { width: 100%; height: 100%; }\n.ta-avatar-mark { position: absolute; right: -6%; bottom: -6%; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 0.8em; display: grid; place-items: center; background: var(--ta-raised); color: var(--ta-text); box-shadow: 0 0 0 1.5px var(--ta-main); font-weight: 600; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }\n.ta-working { color: var(--ta-secondary); font-weight: 400; font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-turn-head { display: flex; align-items: center; gap: 8px; min-height: 26px; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-turn-head .ta-process-head { margin-left: 0; }\n/* What ta does, before the first step, where the head of the steps will say how many there are: its words in the same place. */\n.ta-turn-head > .ta-run-status { padding-left: 6px; }\n.ta-run-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-run-phase { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-run-tokens { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-run-tokens > span { display: inline-flex; align-items: center; gap: 1px; }\n/* Under the words of a turn its dot starts where they do: the dot is centred in its box, which starts a little before. */\n.ta-run-line { display: flex; min-width: 0; min-height: 22px; margin-top: -6px; }\n.ta-run-line > .ta-run-status > .ta-status { margin-left: -3px; }\n/* Under the steps of a turn the line is one more step: its dot under the avatar, folded or open; under the open ones at their pitch, on the string's line. */\n.ta-run-line.ta-run-steps { padding-left: 9px; }\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps, .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps { margin-top: -18px; }\n/* There, a call it runs is already the last step, its dot breathing: the line would say it again. */\n.ta-thread-item:has(> .ta-message > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool), .ta-thread-item:has(> .ta-msg-ta > .ta-process > .ta-process-steps) + .ta-run-steps:has(.ta-run-tool) { display: none; }\n/* What waits for the user is a blue ?, apart from the blue dot that breathes while it works and the amber of something unseen. */\n.ta-status-waiting::before { content: '?'; width: 10px; height: 10px; background: var(--ta-blue); color: #fff; font-size: 8px; font-weight: 700; line-height: 10px; text-align: center; }\n/* On the head of a turn the face of ta already shows that it works. */\n.ta-turn-head .ta-run-status > .ta-status { display: none; }\n.ta-session { container-type: inline-size; }\n.ta-session-header .ta-session-title { min-width: 72px; }\n/* A narrow conversation (a phone, or beside an open editor): one line, the title keeps its room, the path gives way. */\n@container (max-width: 600px) {\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding-left: 12px; padding-right: 8px; }\n .ta-session-title .ta-path { display: none; }\n}\n/* A message of the user that has pictures: the pictures and the words in one bubble, the pictures first\n and within the bubble's padding. */\n.ta-bubble-media { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px; white-space: normal; }\n.ta-bubble-media .ta-bubble-text { align-self: stretch; padding: 2px 10px 5px; white-space: pre-wrap; word-break: break-word; }\n/* Pictures alone: the bubble is what they are, so it has no frame of its own. */\n.ta-bubble-media.ta-bubble-bare, .ta-msg-bubble.ta-bubble-bare { padding: 0; background: transparent; }\n/* One picture keeps its own shape, a few stand as squares of one size: the sizes of a message, not of a page. */\n.ta-user-images { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px; max-width: 100%; }\n/* Several: in columns as a gallery of a reply has them (GalleryUtil.columns), four in two rows of two. */\n.ta-user-images:not([data-count='1']) { display: grid; grid-template-columns: repeat(var(--ta-user-image-columns, 3), 80px); }\n.ta-user-image { padding: 0; border: 0; border-radius: 12px; background: transparent; line-height: 0; cursor: zoom-in; overflow: hidden; transition: opacity 120ms; }\n.ta-user-image:active { opacity: 0.8; }\n.ta-user-images .ta-thumb { display: block; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; background: var(--ta-raised); }\n.ta-user-images[data-count='1'] .ta-thumb { width: auto; height: auto; max-width: 220px; max-height: 280px; object-fit: contain; }\n/* An image still on its way (its bytes come once shown, TaShownImage), in its place: of its size when known. */\n.ta-thumb-waiting { background: var(--ta-raised); animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n/* A picture of a chat still on its way (ChatImages): its tiny thumbnail, blurred, in its place. */\n.ta-thumb-blurred { display: block; overflow: hidden; background: var(--ta-raised); }\n.ta-thumb-blurred img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(8px) saturate(1.1); transform: scale(1.15); }\n.ta-user-images[data-count='1'] .ta-thumb-blurred:not([style]) { width: 160px; height: 120px; }\n.ta-user-images[data-count='1'] .ta-thumb-waiting:not([style]) { width: 160px; height: 120px; }\n.ta-user-image:disabled { cursor: default; opacity: 1; }\n@keyframes ta-shimmer-soft { 50% { opacity: 0.6; } }\n/*\n * Pictures sent together, folded as WeChat folds them (ImageStack): the first in its shape, two peeking from behind it,\n * smaller and dimmer, a pill beside it to unfold them, on the side away from the edge the message keeps to.\n */\n.ta-image-stack { display: flex; align-items: center; justify-content: flex-end; gap: 14px; max-width: 100%; }\n.ta-user-other .ta-image-stack, .trm-msg .ta-image-stack, .tac-msg .ta-image-stack { flex-direction: row-reverse; }\n.ta-stack-cards { position: relative; display: block; margin: 0 18px 4px; padding: 0; border: 0; background: transparent; line-height: 0; cursor: zoom-in; }\n.ta-stack-cards:disabled { cursor: default; }\n.ta-stack-card { display: block; object-fit: cover; border-radius: 12px; background: var(--ta-raised); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }\n.ta-stack-front { position: relative; z-index: 2; }\n.ta-stack-left, .ta-stack-right { position: absolute; inset: 0; z-index: 1; filter: brightness(0.82); }\n.ta-stack-left { transform: translateX(-30px) scale(0.86); }\n.ta-stack-right { transform: translateX(30px) scale(0.86); }\n.ta-stack-unfold, .ta-stack-fold { flex: none; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ta-raised); color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.3; cursor: pointer; white-space: nowrap; }\n.ta-stack-unfold:hover, .ta-stack-fold:hover { color: var(--ta-text); }\n.ta-stack-fold { grid-column: 1 / -1; justify-self: end; margin-top: 2px; padding: 4px 12px; font-size: calc(12px * var(--ta-font-scale)); }\n.ta-user-other .ta-stack-fold, .trm-msg .ta-stack-fold, .tac-msg .ta-stack-fold { justify-self: start; }\n/* Pictures on their own, without a bubble to hold them: at the edge of the message, as a bubble is. */\n.ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { justify-content: flex-end; max-width: 78%; }\n.ta-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n.ta-process { display: flex; flex-direction: column; }\n.ta-process-head { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-process-head:hover { background: var(--ta-hover); color: var(--ta-secondary); } }\n.ta-process-active .ta-process-head { color: var(--ta-secondary); }\n.ta-process-chevron { transition: transform 150ms var(--ta-ease); }\n.ta-process-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-process-failed { color: var(--ta-muted); }\n/* The string of the steps runs under the middle of the avatar (24px wide): 12px in. */\n.ta-process-steps { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 4px 0 4px 12px; padding: 2px 0 2px 13px; }\n/* The string runs from the first bead to the last, not past them. */\n.ta-process-steps::before { content: ''; position: absolute; left: -0.5px; top: calc(2px + 13px * var(--ta-font-scale)); bottom: calc(2px + 13px * var(--ta-font-scale)); width: 1px; background: var(--ta-border-muted); }\n/* The dots of the steps sit on the line, like beads on a string: each in a disc of the page's color that cuts the line. */\n.ta-process-steps .ta-status { position: absolute; left: -6px; border-radius: 50%; background: var(--ta-main); }\n/* A step of words is as high as a step of a tool when it has one line, its dot on the middle of that line: the steps keep one pitch. */\n.ta-step-text { color: var(--ta-secondary); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; padding: calc(2.2px * var(--ta-font-scale)) 0; }\n.ta-step-text > .ta-status { margin-top: calc(0.8em - 6px); }\n.ta-step-toggle { display: flex; align-items: center; gap: 6px; width: calc(100% + 6px); min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; transition: background 120ms; background: transparent; text-align: left; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-step-tag { flex: none; color: var(--ta-text); }\n.ta-step-preview { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-step-chevron { flex: none; transition: transform 150ms var(--ta-ease); }\n.ta-step-toggle[aria-expanded='true'] .ta-step-chevron { transform: rotate(90deg); }\n.ta-step-thinking .ta-thinking-text, .ta-step-summary .ta-thinking-text { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); padding: 2px 0 4px; }\n.ta-console-box { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }\n.ta-console-box.ta-dragging { border-color: var(--ta-border-focus); border-style: dashed; }\n/* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),\n and each control stands centred on its last line, the half of what the line is higher than it under it\n (--ta-control: the height of the control, 30px unless it says). */\n.ta-console-row { display: flex; align-items: flex-end; gap: 2px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }\n.ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }\n.ta-console-row .ta-attach { width: 30px; height: 30px; }\n/* As high as its button, which the row centres (a block would add the line under it). */\n.ta-plus { position: relative; flex: none; display: flex; }\n.ta-plus-button { border-radius: 50%; background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-plus-button:hover, .ta-plus-button.ta-on { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-plus-button svg { transition: transform 150ms var(--ta-ease); }\n.ta-plus-button.ta-on svg { transform: rotate(45deg); }\n.ta-plus-menu { position: absolute; left: -2px; bottom: calc(100% + 10px); z-index: 20; display: flex; flex-direction: column; width: min(340px, calc(100vw - 32px)); padding: 8px 6px 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n/* Every entry a tile, a page of four by two at a time (PlusMenuUtil.PAGE), as WeChat's + panel: more of them is another page to swipe to, never a taller menu. */\n.ta-plus-pages { display: flex; flex: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }\n.ta-plus-pages::-webkit-scrollbar { display: none; }\n.ta-plus-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 4px 2px; scroll-snap-align: start; scroll-snap-stop: always; }\n.ta-plus-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 6px 0 4px; border: 0; border-radius: 12px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-plus-tile-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ta-hover); color: var(--ta-text); transition: background 120ms, color 120ms; }\n.ta-plus-tile-icon svg { width: 22px; height: 22px; stroke-width: 1.6; }\n/* A switch that is on: its icon lit in green. */\n.ta-plus-tile[aria-checked='true'] .ta-plus-tile-icon { background: color-mix(in srgb, var(--ta-green) 16%, transparent); color: var(--ta-green); }\n.ta-plus-tile:active:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-plus-tile:hover:not(:disabled) .ta-plus-tile-icon { background: var(--ta-hover-strong); } }\n.ta-plus-tile:focus-visible { outline: none; background: var(--ta-hover); }\n.ta-plus-tile:disabled { opacity: 0.45; cursor: default; }\n.ta-plus-tile-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; padding: 0 2px; overflow: hidden; color: var(--ta-secondary); font-size: calc(11.5px * var(--ta-font-scale)); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }\n/* A setting or a switch: its label on one line, its value (the model, on or off) under it, quieter. */\n.ta-plus-valued .ta-plus-tile-label { -webkit-line-clamp: 1; }\n.ta-plus-tile-value { max-width: 100%; margin-top: -3px; padding: 0 2px; overflow: hidden; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }\n.ta-plus-dots { display: flex; flex: none; justify-content: center; gap: 2px; padding: 4px 0 0; }\n.ta-plus-dots button { position: relative; width: 16px; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; }\n.ta-plus-dots button::after { content: ''; position: absolute; left: 5px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-hover-strong); transition: background 150ms; }\n.ta-plus-dots button.ta-on::after { background: var(--ta-secondary); }\n/* A list opened in the + menu, as every list to pick from (OptionList): a fixed width, that narrowing it does not change. */\n.ta-plus-list { width: 300px; }\n/*\n * On a phone the panel is under the box, in place of the keyboard, as WeChat's: part of the page, so the box and\n * the conversation rise with it as it unfolds and fall as it folds (the rows of a grid, from none of it to all).\n */\n.ta-plus-dock { display: grid; grid-template-rows: 1fr; animation: ta-plus-unfold 240ms var(--ta-ease) both; }\n.ta-plus-dock.ta-closing { animation: ta-plus-fold 200ms var(--ta-ease) both; }\n.ta-plus-dock-inner { min-height: 0; overflow: hidden; }\n/* One height whatever it shows (a page of tiles, the last page, a list), as the keyboard it stands for: the box does not move as one turns to another. */\n.ta-plus-dock .ta-plus-menu { position: static; box-sizing: border-box; width: auto; max-width: none; height: 240px; padding: 14px 0 0; border: 0; border-radius: 0; background: var(--ta-main); box-shadow: none; animation: none; }\n.ta-plus-dock .ta-plus-page { gap: 10px 2px; }\n.ta-plus-dock .ta-plus-dots { padding-top: 10px; }\n.ta-plus-dock .ta-plus-pages { flex: 1; min-height: 0; }\n/*\n * A list opened in the panel (the models) as the grouped lists of iOS: under a title with its way back, a search\n * on a raised field, the entries on a raised card of rounded corners with hairlines between them, each group's\n * name above its card and sticking on top on the page's color, the one picked checked on the right.\n */\n.ta-plus-dock .ta-plus-list { padding-top: 6px; }\n.ta-plus-dock .ta-plus-back { height: 34px; margin-bottom: 6px; padding: 0 2px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); }\n.ta-plus-dock .ta-plus-back svg { color: var(--ta-secondary); }\n.ta-plus-dock .ta-pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }\n.ta-plus-dock .ta-pick-search { height: 36px; margin-bottom: 2px; border-radius: 10px; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-list { flex: 1; min-height: 0; max-height: none; padding-bottom: 10px; }\n.ta-plus-dock .ta-pick-section + .ta-pick-section { margin-top: 0; }\n.ta-plus-dock .ta-pick-group { padding: 12px 14px 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > :first-child { margin-top: 8px; }\n.ta-plus-dock .ta-pick-list > .ta-pick-section:first-child > .ta-pick-group { margin-top: 0; padding-top: 6px; }\n.ta-plus-dock .ta-pick-item { min-height: 46px; padding: 0 14px; border-radius: 0; background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item + .ta-pick-item { box-shadow: inset 14px 0 0 var(--ta-raised), inset 0 0.5px 0 var(--ta-border); }\n.ta-plus-dock .ta-pick-group + .ta-pick-item, .ta-plus-dock .ta-pick-section > .ta-pick-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }\n.ta-plus-dock .ta-pick-item[data-active='true']:not(:disabled) { background: var(--ta-raised); }\n.ta-plus-dock .ta-pick-item:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-plus-dock .ta-pick-check { color: var(--ta-green); }\n@keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }\n@keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }\n/* The faces of a chat (chat-emoji.tsx), as WeChat's: a name said in the text ([\u5FAE\u7B11]) drawn as its picture, from the sheet the panel uses too. */\n.ta-face-emoji { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.19em; margin: 0 1px; background-repeat: no-repeat; background-size: contain; }\n.ta-face-emoji + .ta-face-emoji { margin-left: 2px; }\n/* The faces in the message box (FaceField): the field types each as one character of the font Ta Faces, as wide as a face and blank (U+E000 on, made with fontTools: 109 empty glyphs 1.3em wide), its text see-through, and the same words over it draw each face centered on its character. */\n@font-face { font-family: 'Ta Faces'; src: url(data:font/woff;base64,d09GRgABAAAAAAOwAAoAAAAACEwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABXAAAADAAAABgJOA3HGNtYXAAAAGgAAAALQAAADQADOC/Z2x5ZgAAAdwAAAABAAAAAQAAAABoZWFkAAAA9AAAADYAAAA2LYaH0mhoZWEAAAEsAAAAGwAAACQDIgRPaG10eAAAAYwAAAARAAAA4AUUAABsb2NhAAAB0AAAAAwAAADeAAAAAG1heHAAAAFIAAAAFAAAACAAbwACbmFtZQAAAeAAAABTAAAAYxemTdVwb3N0AAACNAAAAXsAAARmDOzkEQABAAAAAQAApkDkoV8PPPUAAwPoAAAAAOc4I3kAAAAA5zgjeQAAAAAAAAAAAAAAAwACAAAAAAAAeJxjYGRgYFb4b8HAwCrCAAGMDKiACQArSgF4AHicY2BkYGDIY4ABJgY0AAAL+wByeJxjYGYVYZzAwMrAwkAEEEBi2wMBA8MDhgc5zAr/LRgYmBUYTqApV2BgAADf8gZUeJxjYGBgYBVhGLYAABZIABoAAAB4nGNgYGBiYGBgBmIRIMkIplkYFIA0CxAC+Q9y/v8Hkgz//yswguUZAGC2BqkAAAB4nGNgGM4AAADeAAEAAAAAeJwtiMENgCAUxQqSqBd1A5nCERiAsAAhhAsnCPv7MfbQvFfA8KCYKLbPE80qb0GZXcrF+W/NwR2idTHl7nMZNTYCEYsTJzIdLy4MqpT2AlIsC9oAeJx9zUVDFEAcQPF9GIgdmCgKthg7M/8ZwABhWexO7FaMvfn9PfjOvMs7/jpDnbUbdDoMsY71bGAjw2xihM1sYSvb2M4OdrKL3exhlL3sYz8HOMghxjjMEcY5yjEmmOQ4JzjJKU5zhrOcY4rzXOAil+iSyBSCSmOaGWa5zBWuco055rnOAov0WKLPMje4yS1uc4e73OM+D3jIIx7zhKc84zkveMkKr3jNG97yjvd84COf+MwXvvKN7/xglZ/84jd/GAz/Haz2u92uTz774sNX3/y0n/GzfsEv+p5f8n2//P9JP+kn/aSf9JN+0k/6ST/pJ/2kn/STftJP+lk/62f9rJ/1s37Wz/pZP+tn/ayf9bN+1s/6Rb/oF/2iX/SLftEv+kW/6Bf9ol/0i37RL/qhH/qhH/qhH/qhH/qhH/qhH/qhH/qhH/pVv+pX/apf9at+1a/6Vb/qV/2qX/WrftWv+k2/6Tf9pt/0m37Tb/pNv+k3/abfev8Az98JOgA=) format('woff'); unicode-range: U+E000-E06C; font-display: block; }\n.ta-console-composer textarea.ta-faced { color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ta-text); }\n.ta-face-field { position: absolute; z-index: 1; box-sizing: border-box; margin: 0 !important; overflow: hidden; color: var(--ta-text); pointer-events: none; -webkit-user-select: none; user-select: none; }\n.ta-face-glyph { position: relative; color: transparent; }\n.ta-face-glyph > .ta-face-emoji { position: absolute; left: 0.06em; top: 50%; width: 1.18em; height: 1.18em; margin: 0; transform: translateY(-56%); }\n.ta-face-emoji.ta-face-menu { width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: 0; flex: none; }\n/* The faces of the box (ComposerBoxProps.emoji): on a computer a popover above its button; on a phone a panel in place of the keyboard, as tall as the + panel, Delete and Send at its foot as WeChat's. \u6700\u8FD1\u4F7F\u7528 over \u6240\u6709\u8868\u60C5, as WeChat's panel. */\n.ta-emoji-anchor { position: relative; flex: none; display: flex; }\n.ta-emoji-button.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-emoji-pop { position: absolute; right: -44px; bottom: calc(100% + 10px); z-index: 20; box-sizing: border-box; width: min(360px, calc(100vw - 32px)); max-height: 300px; padding: 6px 8px 10px; overflow: hidden; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-emoji-scroll { box-sizing: border-box; height: 100%; padding: 0 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }\n.ta-emoji-scroll::-webkit-scrollbar { display: none; }\n.ta-emoji-pop .ta-emoji-scroll { max-height: 284px; }\n.ta-emoji-title { padding: 10px 4px 4px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 0; }\n.ta-emoji { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: none; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji .ta-face-emoji { width: 76%; height: 76%; }\n.ta-emoji:active { background: var(--ta-hover-strong); }\n@media (hover: hover) { .ta-emoji:hover { background: var(--ta-hover); } }\n.ta-emoji-panel { position: relative; height: 240px; background: var(--ta-emoji-back, var(--ta-main)); }\n.ta-emoji-panel .ta-emoji-scroll { height: 100%; padding-top: 4px; padding-bottom: 62px; }\n.ta-emoji-keys { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 12px 10px 28px; background: linear-gradient(to right, transparent, var(--ta-emoji-back, var(--ta-main)) 26px); }\n.ta-emoji-key { display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.ta-emoji-key:active:not(:disabled) { background: var(--ta-hover-strong); }\n.ta-emoji-send { background: var(--ta-brand); color: var(--ta-brand-text); }\n.ta-emoji-send:active:not(:disabled) { background: var(--ta-brand); opacity: .85; }\n.ta-emoji-send:disabled { background: var(--ta-raised); color: var(--ta-muted); cursor: default; }\n.ta-plus-back { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; margin-bottom: 4px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; cursor: pointer; }\n.ta-plus-back:hover { background: var(--ta-hover); color: var(--ta-text); }\n\n/* OptionList: wherever one of a list is picked (a model, a level), in the + menu or a popover of a field. */\n.ta-pick { display: flex; flex-direction: column; min-height: 0; background: inherit; }\n.ta-pick-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin-bottom: 4px; padding: 0 10px; border-radius: 9px; background: var(--ta-hover); color: var(--ta-muted); cursor: text; }\n.ta-pick-search:focus-within { color: var(--ta-secondary); }\n.ta-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); outline: none; }\n.ta-pick-search input::placeholder { color: var(--ta-muted); }\n.ta-pick-list { position: relative; max-height: min(360px, 56vh); overflow-y: auto; background: inherit; }\n.ta-pick-section { background: inherit; }\n.ta-pick-section + .ta-pick-section { margin-top: 2px; }\n.ta-pick-group { position: sticky; top: 0; z-index: 1; padding: 8px 10px 4px; background: inherit; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-weight: 500; }\n.ta-pick-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(13.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.ta-pick-item[data-active='true']:not(:disabled), .ta-pick-item:focus-visible { background: var(--ta-hover); outline: none; }\n.ta-pick-item:disabled { opacity: 0.45; cursor: default; }\n.ta-pick-item[aria-selected='true'] { font-weight: 500; }\n.ta-pick-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--ta-secondary); }\n.ta-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-detail { flex: none; max-width: 40%; overflow: hidden; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }\n.ta-pick-check { flex: none; color: var(--ta-accent); }\n.ta-popover { position: fixed; z-index: 95; padding: 6px; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }\n.ta-model-popover { display: flex; flex-direction: column; }\n.ta-model-popover > .ta-pick, .ta-model-popover .ta-pick-list { flex: 1; min-height: 0; }\n/* The field that opens the list of the models (ModelPicker), as a select of the page. */\n.ta-model-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ta-text); text-align: left; cursor: pointer; }\n.ta-model-field > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-model-field > svg { flex: none; color: var(--ta-muted); transition: transform 150ms var(--ta-ease); }\n.ta-model-field.ta-on { border-color: var(--ta-border-focus); }\n.ta-model-field.ta-on > svg { transform: rotate(180deg); }\n.ta-model-field:disabled { cursor: default; opacity: 0.6; }\n.ta-model-field-default { color: var(--ta-secondary); }\n@keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }\n.ta-console-composer textarea { margin: 0 4px; padding: 5px 2px; font-family: 'Ta Faces', var(--ta-sans); }\n/* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */\n.ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.ta-console-composer textarea::placeholder { text-overflow: ellipsis; }\n.ta-send-stop { background: var(--ta-text); color: var(--ta-main); }\n/* Stop pressed, the run not ended yet: a spinner in the colors of the button. */\n.ta-send-stopping { cursor: progress; }\n.ta-send-stopping .ta-spinner { border-color: color-mix(in srgb, var(--ta-main) 35%, transparent); border-top-color: var(--ta-main); }\n.ta-attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 0; }\n.ta-attachment { position: relative; }\n.ta-attachment .ta-thumb { width: 56px; height: 56px; }\n/* An image being read: a shimmer until its thumbnail paints over it, then a veil and a spinner until it can be sent. */\n.ta-attachment-loading .ta-thumb { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-spinner { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--ta-main) 55%, transparent); animation: ta-fade 150ms; }\n.ta-attachment img.ta-thumb { animation: ta-fade 150ms; }\n.ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }\n.ta-attachment-remove:hover { color: var(--ta-text); }\n/* A file to send: a chip of its name and size (how far it is uploaded meanwhile), the shimmer while it uploads. */\n.ta-attachment-file { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-attachment-file.ta-attachment-loading { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }\n.ta-attachment-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }\n.ta-attachment-file-size { flex: none; font-variant-numeric: tabular-nums; }\n.ta-commands { max-height: 280px; overflow-y: auto; }\n.ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }\n.ta-command-note { padding: 5px 10px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); white-space: nowrap; }\n/* The messages waiting for the agent: a header with their count, then a line for each, its actions on hover. */\n.ta-phone-hint { display: flex; align-items: center; gap: 6px; margin: 0 14px; padding: 2px 4px 2px 12px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); animation: ta-fade 120ms ease-out; }\n.ta-phone-hint > span { flex: 1; min-width: 0; }\n.ta-phone-hint .ta-link-button { flex: none; padding: 2px 6px; font-size: inherit; color: var(--ta-accent); }\n.ta-phone-hint .ta-icon-button { flex: none; width: 24px; height: 24px; }\n.ta-queue { display: flex; flex-direction: column; margin: 0 14px; padding: 3px 4px; border-radius: 12px 12px 0 0; border: 1px solid var(--ta-border-field); border-bottom: 0; background: var(--ta-side); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-body); animation: ta-fade 120ms ease-out; }\n.ta-queue-head { display: flex; align-items: center; gap: 4px; padding: 2px 4px 0 8px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n.ta-queue-all { border: 0; background: none; padding: 2px 4px; border-radius: 6px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); transition: color 120ms, background 120ms; }\n.ta-queue-all:hover { color: var(--ta-text); background: var(--ta-hover); }\n.ta-queue-head > span:first-child { margin-right: auto; }\n.ta-queue-settings { width: 22px; height: 22px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-settings:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-queue-now { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 6px; border: 0; border-radius: 11px; background: var(--ta-hover); color: var(--ta-text); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms; }\n.ta-queue-now:hover { background: var(--ta-hover-strong); }\n.ta-queue-row { display: flex; align-items: center; gap: 8px; min-width: 0; height: 30px; padding: 0 2px 0 8px; border-radius: 8px; transition: background 120ms; }\n.ta-queue-row:hover { background: var(--ta-hover); }\n.ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-queue-row > .ta-origin { flex: none; max-width: 40%; }\n.ta-queue-row > .ta-origin .ta-origin-detail { display: none; }\n.ta-queue-images { flex: none; display: inline-flex; color: var(--ta-muted); }\n.ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }\n.ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }\n.ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }\n.ta-queue-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-queue-actions .ta-icon-button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n@media (hover: none) { .ta-queue-actions { opacity: 1; } }\n.ta-account { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; }\n.ta-account-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background 150ms; }\n.ta-account-button:hover, .ta-account-button.ta-on { background: var(--ta-hover); }\n.ta-account-figure { flex: none; user-select: none; }\n.ta-account-dot { position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n.ta-account-menu { position: absolute; left: calc(100% + 10px); bottom: 0; z-index: 45; width: 248px; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-fade 120ms ease-out; }\n.ta-account-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 10px; min-width: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; transition: background 150ms; }\n.ta-account-head:hover, .ta-account-head:focus-visible { background: var(--ta-hover); }\n.ta-account-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.35; }\n.ta-account-title { font-size: calc(13.5px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); }\n.ta-account-sub { font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-account-service { display: flex; align-items: center; gap: 8px; height: 32px; margin: 0 2px 2px; padding: 0 10px; border-radius: 8px; background: var(--ta-raised); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-account-service-name { flex: 1; min-width: 0; }\n.ta-account-service-state { flex: none; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); font-variant-numeric: tabular-nums; }\n.ta-account-state { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ta-muted); }\n.ta-account-state.ta-ok { background: var(--ta-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-green) 18%, transparent); }\n.ta-account-state.ta-warn { background: var(--ta-yellow); }\n.ta-account-sep { height: 1px; margin: 4px 2px; background: var(--ta-border-muted); }\n.ta-account-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-text); }\n.ta-account-item > svg, .ta-account-item > .ta-icon { flex: none; color: var(--ta-secondary); }\n.ta-account-item:hover { background: var(--ta-hover); }\n.ta-account-item.ta-danger { color: var(--ta-red); }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-account-menu { left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); }\n .ta-message > .ta-user-images, .ta-msg-user > .ta-user-images { max-width: 88%; }\n}\n";
@@ -103,7 +103,7 @@ export const CONVERSATION_COLUMN_STYLE = `
103
103
  /* The field and its controls: the field's line is 1.55 of its font and 5px above and under it (layout.ts),
104
104
  and each control stands centred on its last line, the half of what the line is higher than it under it
105
105
  (--ta-control: the height of the control, 30px unless it says). */
106
- .ta-console-row { display: flex; align-items: flex-end; gap: 6px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }
106
+ .ta-console-row { display: flex; align-items: flex-end; gap: 2px; --ta-field-font: calc(14px * var(--ta-font-scale)); --ta-field-height: calc(var(--ta-field-font) * 1.55 + 10px); }
107
107
  .ta-console-row > :not(textarea) { margin-bottom: max(0px, calc((var(--ta-field-height) - var(--ta-control, 30px)) / 2)); }
108
108
  .ta-console-row .ta-attach { width: 30px; height: 30px; }
109
109
  /* As high as its button, which the row centres (a block would add the line under it). */
@@ -172,17 +172,31 @@ export const CONVERSATION_COLUMN_STYLE = `
172
172
  .ta-plus-dock .ta-pick-check { color: var(--ta-green); }
173
173
  @keyframes ta-plus-unfold { from { grid-template-rows: 0fr; opacity: 0; } }
174
174
  @keyframes ta-plus-fold { to { grid-template-rows: 0fr; opacity: 0; } }
175
- /* The emoji of the box (ComposerBoxProps.emoji): on a computer a popover above its button; on a phone a panel in place of the keyboard, as tall as the + panel, Delete and Send floating at its foot as WeChat's. */
175
+ /* The faces of a chat (chat-emoji.tsx), as WeChat's: a name said in the text ([微笑]) drawn as its picture, from the sheet the panel uses too. */
176
+ .ta-face-emoji { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.19em; margin: 0 1px; background-repeat: no-repeat; background-size: contain; }
177
+ .ta-face-emoji + .ta-face-emoji { margin-left: 2px; }
178
+ /* The faces in the message box (FaceField): the field types each as one character of the font Ta Faces, as wide as a face and blank (U+E000 on, made with fontTools: 109 empty glyphs 1.3em wide), its text see-through, and the same words over it draw each face centered on its character. */
179
+ @font-face { font-family: 'Ta Faces'; src: url(data:font/woff;base64,d09GRgABAAAAAAOwAAoAAAAACEwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABXAAAADAAAABgJOA3HGNtYXAAAAGgAAAALQAAADQADOC/Z2x5ZgAAAdwAAAABAAAAAQAAAABoZWFkAAAA9AAAADYAAAA2LYaH0mhoZWEAAAEsAAAAGwAAACQDIgRPaG10eAAAAYwAAAARAAAA4AUUAABsb2NhAAAB0AAAAAwAAADeAAAAAG1heHAAAAFIAAAAFAAAACAAbwACbmFtZQAAAeAAAABTAAAAYxemTdVwb3N0AAACNAAAAXsAAARmDOzkEQABAAAAAQAApkDkoV8PPPUAAwPoAAAAAOc4I3kAAAAA5zgjeQAAAAAAAAAAAAAAAwACAAAAAAAAeJxjYGRgYFb4b8HAwCrCAAGMDKiACQArSgF4AHicY2BkYGDIY4ABJgY0AAAL+wByeJxjYGYVYZzAwMrAwkAEEEBi2wMBA8MDhgc5zAr/LRgYmBUYTqApV2BgAADf8gZUeJxjYGBgYBVhGLYAABZIABoAAAB4nGNgYGBiYGBgBmIRIMkIplkYFIA0CxAC+Q9y/v8Hkgz//yswguUZAGC2BqkAAAB4nGNgGM4AAADeAAEAAAAAeJwtiMENgCAUxQqSqBd1A5nCERiAsAAhhAsnCPv7MfbQvFfA8KCYKLbPE80qb0GZXcrF+W/NwR2idTHl7nMZNTYCEYsTJzIdLy4MqpT2AlIsC9oAeJx9zUVDFEAcQPF9GIgdmCgKthg7M/8ZwABhWexO7FaMvfn9PfjOvMs7/jpDnbUbdDoMsY71bGAjw2xihM1sYSvb2M4OdrKL3exhlL3sYz8HOMghxjjMEcY5yjEmmOQ4JzjJKU5zhrOcY4rzXOAil+iSyBSCSmOaGWa5zBWuco055rnOAov0WKLPMje4yS1uc4e73OM+D3jIIx7zhKc84zkveMkKr3jNG97yjvd84COf+MwXvvKN7/xglZ/84jd/GAz/Haz2u92uTz774sNX3/y0n/GzfsEv+p5f8n2//P9JP+kn/aSf9JN+0k/6ST/pJ/2kn/STftJP+lk/62f9rJ/1s37Wz/pZP+tn/ayf9bN+1s/6Rb/oF/2iX/SLftEv+kW/6Bf9ol/0i37RL/qhH/qhH/qhH/qhH/qhH/qhH/qhH/qhH/pVv+pX/apf9at+1a/6Vb/qV/2qX/WrftWv+k2/6Tf9pt/0m37Tb/pNv+k3/abfev8Az98JOgA=) format('woff'); unicode-range: U+E000-E06C; font-display: block; }
180
+ .ta-console-composer textarea.ta-faced { color: transparent; -webkit-text-fill-color: transparent; caret-color: var(--ta-text); }
181
+ .ta-face-field { position: absolute; z-index: 1; box-sizing: border-box; margin: 0 !important; overflow: hidden; color: var(--ta-text); pointer-events: none; -webkit-user-select: none; user-select: none; }
182
+ .ta-face-glyph { position: relative; color: transparent; }
183
+ .ta-face-glyph > .ta-face-emoji { position: absolute; left: 0.06em; top: 50%; width: 1.18em; height: 1.18em; margin: 0; transform: translateY(-56%); }
184
+ .ta-face-emoji.ta-face-menu { width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: 0; flex: none; }
185
+ /* The faces of the box (ComposerBoxProps.emoji): on a computer a popover above its button; on a phone a panel in place of the keyboard, as tall as the + panel, Delete and Send at its foot as WeChat's. 最近使用 over 所有表情, as WeChat's panel. */
176
186
  .ta-emoji-anchor { position: relative; flex: none; display: flex; }
177
187
  .ta-emoji-button.ta-on { background: var(--ta-hover); color: var(--ta-text); }
178
- .ta-emoji-pop { position: absolute; right: -44px; bottom: calc(100% + 10px); z-index: 20; box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-height: 236px; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }
179
- .ta-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 2px; }
180
- .ta-emoji { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: none; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-size: calc(25px * var(--ta-font-scale)); line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
188
+ .ta-emoji-pop { position: absolute; right: -44px; bottom: calc(100% + 10px); z-index: 20; box-sizing: border-box; width: min(360px, calc(100vw - 32px)); max-height: 300px; padding: 6px 8px 10px; overflow: hidden; border: 1px solid var(--ta-border); border-radius: 14px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); animation: ta-plus-in 140ms var(--ta-ease); }
189
+ .ta-emoji-scroll { box-sizing: border-box; height: 100%; padding: 0 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
190
+ .ta-emoji-scroll::-webkit-scrollbar { display: none; }
191
+ .ta-emoji-pop .ta-emoji-scroll { max-height: 284px; }
192
+ .ta-emoji-title { padding: 10px 4px 4px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }
193
+ .ta-emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-content: start; gap: 0; }
194
+ .ta-emoji { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; background: none; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
195
+ .ta-emoji .ta-face-emoji { width: 76%; height: 76%; }
181
196
  .ta-emoji:active { background: var(--ta-hover-strong); }
182
197
  @media (hover: hover) { .ta-emoji:hover { background: var(--ta-hover); } }
183
198
  .ta-emoji-panel { position: relative; height: 240px; background: var(--ta-emoji-back, var(--ta-main)); }
184
- .ta-emoji-panel .ta-emoji-grid { box-sizing: border-box; height: 100%; padding: 10px 6px 62px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
185
- .ta-emoji-panel .ta-emoji-grid::-webkit-scrollbar { display: none; }
199
+ .ta-emoji-panel .ta-emoji-scroll { height: 100%; padding-top: 4px; padding-bottom: 62px; }
186
200
  .ta-emoji-keys { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 12px 10px 28px; background: linear-gradient(to right, transparent, var(--ta-emoji-back, var(--ta-main)) 26px); }
187
201
  .ta-emoji-key { display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(15px * var(--ta-font-scale)); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, .12); cursor: pointer; -webkit-tap-highlight-color: transparent; }
188
202
  .ta-emoji-key:active:not(:disabled) { background: var(--ta-hover-strong); }
@@ -222,7 +236,7 @@ export const CONVERSATION_COLUMN_STYLE = `
222
236
  .ta-model-field:disabled { cursor: default; opacity: 0.6; }
223
237
  .ta-model-field-default { color: var(--ta-secondary); }
224
238
  @keyframes ta-plus-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
225
- .ta-console-composer textarea { padding: 5px 2px; }
239
+ .ta-console-composer textarea { margin: 0 4px; padding: 5px 2px; font-family: 'Ta Faces', var(--ta-sans); }
226
240
  /* A long placeholder stays on one line, so the empty box keeps its height beside the controls of the +. */
227
241
  .ta-console-composer textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
228
242
  .ta-console-composer textarea::placeholder { text-overflow: ellipsis; }
@@ -239,6 +253,11 @@ export const CONVERSATION_COLUMN_STYLE = `
239
253
  .ta-attachment img.ta-thumb { animation: ta-fade 150ms; }
240
254
  .ta-attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); padding: 0; }
241
255
  .ta-attachment-remove:hover { color: var(--ta-text); }
256
+ /* A file to send: a chip of its name and size (how far it is uploaded meanwhile), the shimmer while it uploads. */
257
+ .ta-attachment-file { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }
258
+ .ta-attachment-file.ta-attachment-loading { background: linear-gradient(100deg, var(--ta-raised) 30%, var(--ta-hover) 50%, var(--ta-raised) 70%) 0 0 / 200% 100%; animation: ta-shimmer 1.2s linear infinite; }
259
+ .ta-attachment-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }
260
+ .ta-attachment-file-size { flex: none; font-variant-numeric: tabular-nums; }
242
261
  .ta-commands { max-height: 280px; overflow-y: auto; }
243
262
  .ta-command-label { flex: none; font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
244
263
  .ta-commands-note { right: auto; padding: 0; border-color: var(--ta-border-muted); box-shadow: none; }
@@ -262,6 +281,7 @@ export const CONVERSATION_COLUMN_STYLE = `
262
281
  .ta-queue-kind { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
263
282
  .ta-queue-row > .ta-origin { flex: none; max-width: 40%; }
264
283
  .ta-queue-row > .ta-origin .ta-origin-detail { display: none; }
284
+ .ta-queue-images { flex: none; display: inline-flex; color: var(--ta-muted); }
265
285
  .ta-queue-text { flex: 1; min-width: 0; color: var(--ta-text); }
266
286
  .ta-queue-actions { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity 120ms; }
267
287
  .ta-queue-row:hover .ta-queue-actions, .ta-queue-actions:focus-within { opacity: 1; }