@celljs/ta-web 4.47.1 → 4.48.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 (247) hide show
  1. package/esm/browser/assistant/assistant-role.d.ts +1 -1
  2. package/esm/browser/assistant/assistant-role.js +1 -1
  3. package/esm/browser/assistant/assistant-task-source.js +6 -1
  4. package/esm/browser/assistant/assistant-task-util.d.ts +1 -0
  5. package/esm/browser/assistant/assistant-task-util.js +9 -3
  6. package/esm/browser/assistant/assistant-view.js +4 -2
  7. package/esm/browser/cloud/cloud-sign-in.d.ts +26 -4
  8. package/esm/browser/cloud/cloud-sign-in.js +88 -18
  9. package/esm/browser/components/app-nav.d.ts +3 -1
  10. package/esm/browser/components/app-nav.js +3 -3
  11. package/esm/browser/components/app-view.js +16 -6
  12. package/esm/browser/components/asks-badge.d.ts +12 -0
  13. package/esm/browser/components/asks-badge.js +17 -1
  14. package/esm/browser/components/chat-list-row.d.ts +4 -1
  15. package/esm/browser/components/chat-list-row.js +7 -1
  16. package/esm/browser/components/chats-dot.d.ts +4 -1
  17. package/esm/browser/components/chats-dot.js +6 -2
  18. package/esm/browser/components/cloud-sign-in-view.d.ts +2 -1
  19. package/esm/browser/components/cloud-sign-in-view.js +28 -5
  20. package/esm/browser/components/composer-box-protocol.d.ts +5 -3
  21. package/esm/browser/components/composer-box.js +11 -11
  22. package/esm/browser/components/composer.d.ts +8 -1
  23. package/esm/browser/components/composer.js +57 -34
  24. package/esm/browser/components/host-view.d.ts +1 -1
  25. package/esm/browser/components/lightbox.d.ts +15 -1
  26. package/esm/browser/components/lightbox.js +14 -2
  27. package/esm/browser/components/link.js +8 -3
  28. package/esm/browser/components/markdown.d.ts +4 -2
  29. package/esm/browser/components/markdown.js +13 -4
  30. package/esm/browser/components/media.d.ts +6 -0
  31. package/esm/browser/components/media.js +9 -1
  32. package/esm/browser/components/message-images.d.ts +5 -0
  33. package/esm/browser/components/message-images.js +40 -4
  34. package/esm/browser/components/message-user.js +4 -2
  35. package/esm/browser/components/partner-row.js +4 -4
  36. package/esm/browser/components/phone-shell.d.ts +2 -0
  37. package/esm/browser/components/phone-shell.js +2 -2
  38. package/esm/browser/components/sending.d.ts +19 -0
  39. package/esm/browser/components/sending.js +27 -0
  40. package/esm/browser/components/session-view.js +4 -3
  41. package/esm/browser/components/settings-choices.js +1 -0
  42. package/esm/browser/components/settings-parts.js +28 -17
  43. package/esm/browser/components/share-dialog.js +3 -2
  44. package/esm/browser/components/share-item-sheet.js +1 -1
  45. package/esm/browser/components/share-sheet.d.ts +4 -2
  46. package/esm/browser/components/share-sheet.js +16 -2
  47. package/esm/browser/components/sign-in-accounts.js +7 -1
  48. package/esm/browser/components/unseen-drop.d.ts +2 -2
  49. package/esm/browser/components/unseen-drop.js +1 -1
  50. package/esm/browser/device/app-badge.d.ts +8 -0
  51. package/esm/browser/device/app-badge.js +28 -0
  52. package/esm/browser/device/code-scan.js +1 -1
  53. package/esm/browser/extension/web-api-code.d.ts +26 -0
  54. package/esm/browser/extension/web-api-components.d.ts +31 -0
  55. package/esm/browser/extension/web-api-menus.d.ts +15 -0
  56. package/esm/browser/extension/web-api-messages.d.ts +15 -0
  57. package/esm/browser/extension/web-api-messages.js +2 -0
  58. package/esm/browser/extension/web-api-partners.d.ts +16 -0
  59. package/esm/browser/extension/web-api-spec.js +1 -0
  60. package/esm/browser/extension/web-extension-api.d.ts +7 -13
  61. package/esm/browser/extension/web-extension-context.js +2 -0
  62. package/esm/browser/extension/web-session-notices.js +11 -2
  63. package/esm/browser/extension/web-share-ui.js +1 -0
  64. package/esm/browser/extension/web-share.js +3 -3
  65. package/esm/browser/extension/web-sharing.js +1 -1
  66. package/esm/browser/i18n/en/assistant.d.ts +2 -0
  67. package/esm/browser/i18n/en/assistant.js +2 -0
  68. package/esm/browser/i18n/en/chat.d.ts +11 -0
  69. package/esm/browser/i18n/en/chat.js +13 -2
  70. package/esm/browser/i18n/en/common.d.ts +4 -0
  71. package/esm/browser/i18n/en/common.js +4 -0
  72. package/esm/browser/i18n/en/service.d.ts +5 -0
  73. package/esm/browser/i18n/en/service.js +5 -0
  74. package/esm/browser/i18n/en/settings.d.ts +6 -0
  75. package/esm/browser/i18n/en/settings.js +8 -2
  76. package/esm/browser/i18n/ja/assistant.js +2 -0
  77. package/esm/browser/i18n/ja/chat.js +13 -2
  78. package/esm/browser/i18n/ja/common.js +4 -0
  79. package/esm/browser/i18n/ja/service.js +5 -0
  80. package/esm/browser/i18n/ja/settings.js +10 -4
  81. package/esm/browser/i18n/locales.d.ts +29 -1
  82. package/esm/browser/i18n/messages.d.ts +28 -0
  83. package/esm/browser/i18n/zh/assistant.js +2 -0
  84. package/esm/browser/i18n/zh/chat.js +13 -2
  85. package/esm/browser/i18n/zh/common.js +4 -0
  86. package/esm/browser/i18n/zh/service.js +5 -0
  87. package/esm/browser/i18n/zh/settings.js +8 -2
  88. package/esm/browser/i18n/zh-tw/assistant.js +2 -0
  89. package/esm/browser/i18n/zh-tw/chat.js +13 -2
  90. package/esm/browser/i18n/zh-tw/common.js +4 -0
  91. package/esm/browser/i18n/zh-tw/service.js +5 -0
  92. package/esm/browser/i18n/zh-tw/settings.js +8 -2
  93. package/esm/browser/links/links.js +1 -1
  94. package/esm/browser/notices/session-notices.d.ts +4 -4
  95. package/esm/browser/notices/session-notices.js +3 -6
  96. package/esm/browser/partners/partners-util.d.ts +6 -0
  97. package/esm/browser/partners/partners-util.js +22 -0
  98. package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
  99. package/esm/browser/settings/agent-settings.d.ts +2 -0
  100. package/esm/browser/settings/agent-settings.js +2 -0
  101. package/esm/browser/settings/settings-protocol.d.ts +8 -0
  102. package/esm/browser/settings/settings-protocol.js +5 -0
  103. package/esm/browser/style/base.d.ts +1 -1
  104. package/esm/browser/style/base.js +3 -0
  105. package/esm/browser/style/chat-list.d.ts +1 -1
  106. package/esm/browser/style/chat-list.js +8 -3
  107. package/esm/browser/style/conversation-column.d.ts +1 -1
  108. package/esm/browser/style/conversation-column.js +6 -1
  109. package/esm/browser/style/conversation.d.ts +1 -1
  110. package/esm/browser/style/conversation.js +18 -0
  111. package/esm/browser/style/phone.d.ts +1 -1
  112. package/esm/browser/style/phone.js +2 -0
  113. package/esm/browser/util/composer.d.ts +18 -3
  114. package/esm/browser/util/composer.js +31 -5
  115. package/esm/browser/util/desktop.d.ts +8 -1
  116. package/esm/browser/util/desktop.js +10 -0
  117. package/esm/browser/util/image-shrink.d.ts +5 -1
  118. package/esm/browser/util/image-shrink.js +1 -1
  119. package/esm/browser/util/markdown.d.ts +3 -5
  120. package/esm/browser/util/markdown.js +5 -29
  121. package/esm/browser/util/process.js +2 -2
  122. package/lib/browser/assistant/assistant-role.d.ts +1 -1
  123. package/lib/browser/assistant/assistant-role.js +1 -1
  124. package/lib/browser/assistant/assistant-task-source.js +5 -0
  125. package/lib/browser/assistant/assistant-task-util.d.ts +1 -0
  126. package/lib/browser/assistant/assistant-task-util.js +8 -2
  127. package/lib/browser/assistant/assistant-view.js +4 -2
  128. package/lib/browser/cloud/cloud-sign-in.d.ts +26 -4
  129. package/lib/browser/cloud/cloud-sign-in.js +89 -19
  130. package/lib/browser/components/app-nav.d.ts +3 -1
  131. package/lib/browser/components/app-nav.js +2 -2
  132. package/lib/browser/components/app-view.js +16 -6
  133. package/lib/browser/components/asks-badge.d.ts +12 -0
  134. package/lib/browser/components/asks-badge.js +19 -1
  135. package/lib/browser/components/chat-list-row.d.ts +4 -1
  136. package/lib/browser/components/chat-list-row.js +7 -1
  137. package/lib/browser/components/chats-dot.d.ts +4 -1
  138. package/lib/browser/components/chats-dot.js +6 -2
  139. package/lib/browser/components/cloud-sign-in-view.d.ts +2 -1
  140. package/lib/browser/components/cloud-sign-in-view.js +28 -5
  141. package/lib/browser/components/composer-box-protocol.d.ts +5 -3
  142. package/lib/browser/components/composer-box.js +11 -11
  143. package/lib/browser/components/composer.d.ts +8 -1
  144. package/lib/browser/components/composer.js +56 -33
  145. package/lib/browser/components/host-view.d.ts +1 -1
  146. package/lib/browser/components/lightbox.d.ts +15 -1
  147. package/lib/browser/components/lightbox.js +15 -2
  148. package/lib/browser/components/link.js +8 -3
  149. package/lib/browser/components/markdown.d.ts +4 -2
  150. package/lib/browser/components/markdown.js +11 -2
  151. package/lib/browser/components/media.d.ts +6 -0
  152. package/lib/browser/components/media.js +10 -2
  153. package/lib/browser/components/message-images.d.ts +5 -0
  154. package/lib/browser/components/message-images.js +40 -4
  155. package/lib/browser/components/message-user.js +4 -2
  156. package/lib/browser/components/partner-row.js +4 -4
  157. package/lib/browser/components/phone-shell.d.ts +2 -0
  158. package/lib/browser/components/phone-shell.js +1 -1
  159. package/lib/browser/components/sending.d.ts +20 -0
  160. package/lib/browser/components/sending.js +63 -0
  161. package/lib/browser/components/session-view.js +4 -3
  162. package/lib/browser/components/settings-choices.js +1 -0
  163. package/lib/browser/components/settings-parts.js +26 -15
  164. package/lib/browser/components/share-dialog.js +3 -2
  165. package/lib/browser/components/share-item-sheet.js +1 -1
  166. package/lib/browser/components/share-sheet.d.ts +4 -2
  167. package/lib/browser/components/share-sheet.js +16 -2
  168. package/lib/browser/components/sign-in-accounts.js +7 -1
  169. package/lib/browser/components/unseen-drop.d.ts +2 -2
  170. package/lib/browser/components/unseen-drop.js +1 -1
  171. package/lib/browser/device/app-badge.d.ts +9 -0
  172. package/lib/browser/device/app-badge.js +31 -0
  173. package/lib/browser/device/code-scan.js +1 -1
  174. package/lib/browser/extension/web-api-code.d.ts +26 -0
  175. package/lib/browser/extension/web-api-components.d.ts +31 -0
  176. package/lib/browser/extension/web-api-menus.d.ts +15 -0
  177. package/lib/browser/extension/web-api-messages.d.ts +16 -0
  178. package/lib/browser/extension/web-api-messages.js +3 -0
  179. package/lib/browser/extension/web-api-partners.d.ts +16 -0
  180. package/lib/browser/extension/web-api-spec.js +1 -0
  181. package/lib/browser/extension/web-extension-api.d.ts +7 -13
  182. package/lib/browser/extension/web-extension-context.js +2 -0
  183. package/lib/browser/extension/web-session-notices.js +10 -1
  184. package/lib/browser/extension/web-share-ui.js +1 -0
  185. package/lib/browser/extension/web-share.js +3 -3
  186. package/lib/browser/extension/web-sharing.js +1 -1
  187. package/lib/browser/i18n/en/assistant.d.ts +2 -0
  188. package/lib/browser/i18n/en/assistant.js +2 -0
  189. package/lib/browser/i18n/en/chat.d.ts +11 -0
  190. package/lib/browser/i18n/en/chat.js +13 -2
  191. package/lib/browser/i18n/en/common.d.ts +4 -0
  192. package/lib/browser/i18n/en/common.js +4 -0
  193. package/lib/browser/i18n/en/service.d.ts +5 -0
  194. package/lib/browser/i18n/en/service.js +5 -0
  195. package/lib/browser/i18n/en/settings.d.ts +6 -0
  196. package/lib/browser/i18n/en/settings.js +8 -2
  197. package/lib/browser/i18n/ja/assistant.js +2 -0
  198. package/lib/browser/i18n/ja/chat.js +13 -2
  199. package/lib/browser/i18n/ja/common.js +4 -0
  200. package/lib/browser/i18n/ja/service.js +5 -0
  201. package/lib/browser/i18n/ja/settings.js +10 -4
  202. package/lib/browser/i18n/locales.d.ts +29 -1
  203. package/lib/browser/i18n/messages.d.ts +28 -0
  204. package/lib/browser/i18n/zh/assistant.js +2 -0
  205. package/lib/browser/i18n/zh/chat.js +13 -2
  206. package/lib/browser/i18n/zh/common.js +4 -0
  207. package/lib/browser/i18n/zh/service.js +5 -0
  208. package/lib/browser/i18n/zh/settings.js +8 -2
  209. package/lib/browser/i18n/zh-tw/assistant.js +2 -0
  210. package/lib/browser/i18n/zh-tw/chat.js +13 -2
  211. package/lib/browser/i18n/zh-tw/common.js +4 -0
  212. package/lib/browser/i18n/zh-tw/service.js +5 -0
  213. package/lib/browser/i18n/zh-tw/settings.js +8 -2
  214. package/lib/browser/links/links.js +1 -1
  215. package/lib/browser/notices/session-notices.d.ts +4 -4
  216. package/lib/browser/notices/session-notices.js +3 -6
  217. package/lib/browser/partners/partners-util.d.ts +6 -0
  218. package/lib/browser/partners/partners-util.js +22 -0
  219. package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
  220. package/lib/browser/settings/agent-settings.d.ts +2 -0
  221. package/lib/browser/settings/agent-settings.js +3 -1
  222. package/lib/browser/settings/settings-protocol.d.ts +8 -0
  223. package/lib/browser/settings/settings-protocol.js +6 -1
  224. package/lib/browser/style/base.d.ts +1 -1
  225. package/lib/browser/style/base.js +3 -0
  226. package/lib/browser/style/chat-list.d.ts +1 -1
  227. package/lib/browser/style/chat-list.js +8 -3
  228. package/lib/browser/style/conversation-column.d.ts +1 -1
  229. package/lib/browser/style/conversation-column.js +6 -1
  230. package/lib/browser/style/conversation.d.ts +1 -1
  231. package/lib/browser/style/conversation.js +18 -0
  232. package/lib/browser/style/phone.d.ts +1 -1
  233. package/lib/browser/style/phone.js +2 -0
  234. package/lib/browser/util/composer.d.ts +18 -3
  235. package/lib/browser/util/composer.js +31 -5
  236. package/lib/browser/util/desktop.d.ts +8 -1
  237. package/lib/browser/util/desktop.js +10 -0
  238. package/lib/browser/util/image-shrink.d.ts +5 -1
  239. package/lib/browser/util/image-shrink.js +1 -1
  240. package/lib/browser/util/markdown.d.ts +3 -5
  241. package/lib/browser/util/markdown.js +5 -29
  242. package/lib/browser/util/process.js +1 -1
  243. package/package.json +7 -7
  244. package/esm/browser/util/share-link.d.ts +0 -21
  245. package/esm/browser/util/share-link.js +0 -61
  246. package/lib/browser/util/share-link.d.ts +0 -22
  247. package/lib/browser/util/share-link.js +0 -64
@@ -1,2 +1,2 @@
1
1
  /** A conversation: the console session, Markdown, tools, dialogs. */
2
- export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n/* The title is centred in the head, level with the tabs of the workbench and the search of the side; its directory hangs below it. */\n.ta-session-header > .ta-session-title .ta-path { margin-bottom: -1.35em; }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n/* Finding in the conversation: a row under its head, as a browser's find bar; the words found marked, the row found flashing. */\n.ta-find { display: flex; align-items: center; gap: 4px; padding: 0 20px 8px; }\n.ta-find-box { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid var(--ta-border-field); }\n.ta-find-box 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-find-box input::placeholder { color: var(--ta-muted); }\n.ta-find-count { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-find .ta-icon-button:disabled { opacity: 0.4; }\n.ta-moved { margin-bottom: 8px; align-items: center; flex-wrap: wrap; }\n.ta-moved .ta-callout-text { min-width: min(240px, 70%); }\n.ta-moved-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }\n::highlight(ta-find) { background-color: color-mix(in srgb, var(--ta-yellow) 42%, transparent); color: inherit; }\n.ta-thread-item[data-found] { animation: ta-found 1.2s ease-out; border-radius: 12px; }\n@keyframes ta-found { 0%, 30% { background: color-mix(in srgb, var(--ta-yellow) 12%, transparent); } to { background: transparent; } }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n/* A name of the vault in what was said ($TA_SECRET_PHONE): a lock and what it stands for, never the variable. */\n.ta-secret-chip { display: inline-flex; border: 0; font-family: inherit; align-items: center; gap: 3px; margin: 0 1px; padding: 0 6px; border-radius: 6px; background: var(--ta-chip); box-shadow: inset 0 0 0 1px var(--ta-border); color: var(--ta-secondary); font-size: 0.9em; line-height: 1.6; white-space: nowrap; vertical-align: baseline; cursor: default; }\n.ta-secret-chip svg { flex: none; color: var(--ta-muted); }\nbutton.ta-secret-chip { cursor: pointer; transition: background 120ms, color 120ms; }\n@media (hover: hover) { button.ta-secret-chip:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n/* Someone else's message in the same Ta (TaMessageAuthor): on the left, with their face and name, as in a group chat. */\n.ta-user.ta-user-other { align-items: flex-start; }\n.ta-user-by { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; min-width: 0; }\n.ta-user-by > .ta-face { flex: none; margin-top: 1px; }\n.ta-user-by-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }\n.ta-user-by-name { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-user-other .ta-user-marks { justify-content: flex-start; max-width: 100%; margin-bottom: 0; }\n.ta-user-other .ta-bubble { max-width: 100%; background: var(--ta-card); box-shadow: inset 0 0 0 1px var(--ta-border); border-radius: 5px 16px 16px 16px; }\n.ta-user-other .ta-skill-use { align-items: flex-start; max-width: 100%; }\n.ta-user-other .ta-user-images { justify-content: flex-start; }\n.ta-message.ta-user-other > .ta-footer { margin-left: 32px; }\n/* The record of a call (CallTranscript): Ta's face beside its words, as a messenger keeps a chat; held for the menu, no footer. */\n.ta-turn-spoken { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; align-items: start; }\n.ta-turn-spoken > :first-child { margin-top: 1px; }\n.ta-spoken-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }\n.ta-thread-item.ta-spoken > .ta-message > .ta-footer { display: none; }\n/* Others at the conversation (TaSessionInfo.people): faces one over the next; over the box, who types. */\n.ta-people { display: inline-flex; align-items: center; flex: none; }\n.ta-people-face { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--ta-main); background: var(--ta-main); }\n.ta-people-face + .ta-people-face { margin-left: -6px; }\n.ta-people-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-session-header > .ta-people { margin-left: -8px; }\n.ta-presence-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }\n.ta-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ta-typing 1.2s infinite ease-in-out; }\n.ta-typing-dots i:nth-child(2) { animation-delay: 0.15s; }\n.ta-typing-dots i:nth-child(3) { animation-delay: 0.3s; }\n@keyframes ta-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-typing-dots i { animation: none; } }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (conversation-column.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-note { flex-shrink: 0; }\n/* The line at the end about the context: a mark, what it says, and its answers as small chips, one gap of 8px between all (6px after the mark). It sits under the footer of the last message, as close as the footer to the message. */\n.ta-context-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: -6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); }\n.ta-context-line > svg { flex-shrink: 0; margin-right: -2px; }\n.ta-context-text { min-width: 0; }\n.ta-context-acts { display: inline-flex; align-items: center; gap: 8px; }\n.ta-context-act { display: inline-flex; align-items: center; height: calc(24px * var(--ta-font-scale)); padding: 0 10px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-secondary); font: inherit; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 120ms, color 120ms; }\n.ta-context-act:first-child { color: var(--ta-text); font-weight: 500; }\n@media (hover: hover) { .ta-context-act:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-context-act:active { background: var(--ta-hover); }\n.ta-context-act:disabled { opacity: 0.5; cursor: default; }\n.ta-context-dot { flex-shrink: 0; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--ta-green, #3fb950); }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n/* The handoff note, opened: a card as a skill's file is, its headings the size of the text, one rhythm of gaps. */\n.ta-compaction-summary { align-self: stretch; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-compaction-summary .ta-markdown :is(h1, h2, h3, h4, h5, h6) { margin: 10px 0 2px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-text); font-weight: 600; }\n.ta-compaction-summary .ta-markdown :is(p, ul, ol, blockquote) { margin: 0 0 6px; }\n.ta-compaction-summary .ta-markdown :is(ul, ol) { padding-left: 18px; }\n.ta-compaction-summary .ta-markdown hr { margin: 10px 0; }\n.ta-compaction-summary .ta-markdown > :first-child { margin-top: 0; }\n.ta-compaction-summary .ta-markdown > :last-child { margin-bottom: 0; }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown-inline :not(pre) > code { padding: 0 4px; font-size: 0.92em; }\n/* Words struck out, highlighted, in a colour of the page; marks of footnotes and the footnotes; lists of tasks; boxes of a kind. */\n.ta-markdown del { color: var(--ta-muted); text-decoration-thickness: 1px; }\n.ta-markdown mark { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--ta-yellow) 32%, transparent); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-tint[data-tint=\"red\"] { color: var(--ta-red); }\n.ta-tint[data-tint=\"orange\"] { color: color-mix(in srgb, var(--ta-red) 45%, var(--ta-yellow)); }\n.ta-tint[data-tint=\"yellow\"] { color: var(--ta-yellow); }\n.ta-tint[data-tint=\"green\"] { color: var(--ta-green); }\n.ta-tint[data-tint=\"blue\"] { color: var(--ta-blue); }\n.ta-tint[data-tint=\"purple\"] { color: color-mix(in srgb, var(--ta-blue) 55%, var(--ta-red)); }\n.ta-tint[data-tint=\"gray\"] { color: var(--ta-muted); }\n.ta-note-mark { margin: 0 1px; color: var(--ta-link); font-size: 0.72em; font-variant-numeric: tabular-nums; }\n.ta-footnote { display: flex; gap: 4px; margin: 0 0 4px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-footnote > .ta-note-mark { flex-shrink: 0; margin: 0; font-size: 1em; vertical-align: baseline; }\n.ta-footnote > .ta-note-mark::after { content: '.'; }\n.ta-markdown ul.ta-tasks, .ta-markdown ol.ta-tasks { padding-left: 2px; list-style: none; }\n.ta-markdown li.ta-task { position: relative; padding-left: 24px; list-style: none; }\n.ta-task-box { position: absolute; left: 2px; top: 0.3em; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 14px; height: 14px; border: 1.5px solid var(--ta-muted); border-radius: 4px; color: #fff; }\n.ta-task[data-done] > .ta-task-box { border-color: var(--ta-accent); background: var(--ta-accent); }\n.ta-task[data-done] { color: var(--ta-muted); }\n.ta-md-callout { --ta-callout: var(--ta-blue); margin: 0 0 10px; padding: 8px 12px 10px; border-left: 3px solid var(--ta-callout); border-radius: 4px 8px 8px 4px; background: color-mix(in srgb, var(--ta-callout) 9%, transparent); }\n.ta-md-callout[data-kind=\"tip\"] { --ta-callout: var(--ta-green); }\n.ta-md-callout[data-kind=\"important\"] { --ta-callout: color-mix(in srgb, var(--ta-blue) 55%, var(--ta-red)); }\n.ta-md-callout[data-kind=\"warning\"] { --ta-callout: var(--ta-yellow); }\n.ta-md-callout[data-kind=\"caution\"] { --ta-callout: var(--ta-red); }\n.ta-md-callout-title { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--ta-callout); font-weight: 600; }\n.ta-md-callout-title svg { flex-shrink: 0; }\n.ta-md-callout > .ta-markdown { color: var(--ta-text); }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-cover { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; pointer-events: none; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n/* What extensions do with a block drawn as a card (registerCodeMenu, drawn): quiet words under it, as the actions of a message; its first icon starts where the card does (-8px: the padding of a button). */\n.ta-code-drawn-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px -8px; }\n.ta-code-drawn-action { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale, 1)); cursor: pointer; }\n.ta-code-drawn-action:hover { background: var(--ta-hover); color: var(--ta-text); }\n/* The user points at a part of the block below (WebCodeRef.point). */\n.ta-code-point-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--ta-hover); color: var(--ta-text); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-code-point-hint > svg { flex: none; color: var(--ta-blue); }\n.ta-code-point-hint > span { flex: 1; min-width: 0; }\n.ta-code-point-hint > button { flex: none; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-secondary); font: inherit; cursor: pointer; }\n.ta-code-point-hint > button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n/* A diagram that comes in (DiagramStyle motion) does so once: not again as a streamed source draws longer. */\n.ta-mermaid-settled .ta-mermaid-diagram svg :is(.node, .edgeLabel) { animation: none !important; }\n:root[data-reduce-motion] .ta-mermaid-diagram svg * { animation: none !important; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n/* Pictures of a reply together (components/gallery.tsx): rows as wide as the reply, each picture whole and a row as tall (GalleryUtil.rows), the words that name each under it. */\n.ta-gallery { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }\n.ta-gallery-row { display: flex; gap: inherit; }\n.ta-gallery-item { display: flex; flex: none; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }\n.ta-gallery-tile { position: relative; display: block; width: 100%; height: var(--ta-gallery-row); padding: 0; border: 1px solid var(--ta-border-muted); border-radius: 8px; overflow: hidden; background: var(--ta-raised); line-height: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent; transition: opacity 120ms; }\n.ta-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 240ms var(--ta-ease), opacity 160ms; }\n.ta-gallery-tile:hover img { transform: scale(1.03); }\n.ta-gallery-tile:active { opacity: 0.85; }\n.ta-gallery-tile:disabled { cursor: default; }\n.ta-gallery-pending { border-color: transparent; animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n.ta-gallery-pending img { opacity: 0; }\n.ta-gallery-missing { display: grid; place-items: center; color: var(--ta-muted); cursor: pointer; }\n.ta-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.48); color: #fff; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; line-height: 1; }\n.ta-gallery-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; text-align: center; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) { .ta-gallery { gap: 4px; } }\n.ta-media-missing { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 0; border-radius: 6px; background: var(--ta-chip); font: inherit; cursor: pointer; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); vertical-align: middle; }\n/* A picture that zooms (image-zoom.ts): what scrolls is the box; the picture sits in it where ImageZoom puts it. */\n.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; overflow: hidden; }\n/* What a finger swipes to the picture beside (image-swipe.ts): the box that scrolls, and the pictures beside it at its sides, as large as it shows them at first. */\n.ta-zoom-track { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; }\n.ta-zoom-peek { position: absolute; top: 0; width: 100%; height: 100%; padding: 16px; box-sizing: border-box; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }\n.ta-zoom-peek-previous { right: calc(100% + 20px); }\n.ta-zoom-peek-next { left: calc(100% + 20px); }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; app-region: no-drag; -webkit-app-region: no-drag; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: transparent; }\n/* The dark over the page: lighter as a finger pulls the picture down (image-pull.ts), the buttons hidden meanwhile. */\n.ta-lightbox-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.86); pointer-events: none; }\n.ta-lightbox-close, .ta-lightbox-caption { transition: opacity 160ms; }\n.ta-lightbox[data-pulling] :is(.ta-lightbox-close, .ta-lightbox-caption, .ta-zoom-bar, .ta-zoom-nav) { opacity: 0; pointer-events: none; }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n/* What the picture over the page is and which of how many, at its top. */\n.ta-lightbox-caption { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 120px); padding: 0 12px; border-radius: 999px; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); line-height: calc(30px * var(--ta-font-scale)); transform: translateX(-50%); pointer-events: none; }\n.ta-lightbox-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-lightbox-count { flex: none; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }\n.ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }\n.ta-summary-line { font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n/* A thing ta did that says what it is for (a script): those words are the line, cut short as a target is. */\n.ta-tool-title-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n/* How many steps a thing took, at the end of its line. */\n.ta-tool-count { flex: none; margin-left: auto; padding-left: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-tool-count + .ta-tool-chevron { margin-left: 2px; }\n/* The steps of a thing, under its line: smaller, a little in, their dots beside them rather than on the string. */\n.ta-act-body { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; margin-bottom: 4px; }\n.ta-tool-repeats { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-process-steps .ta-act-body .ta-status { position: relative; left: 0; background: transparent; }\n.ta-act-body .ta-tool-title, .ta-act-body .ta-step-toggle { font-size: calc(12.5px * var(--ta-font-scale)); min-height: calc(24px * var(--ta-font-scale)); }\n.ta-act-body .ta-act-script { align-self: flex-start; width: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-act-body .ta-step-tag { color: var(--ta-secondary); }\n.ta-act-body .ta-tool-body { margin-top: 2px; }\n.ta-act-body > .ta-tool + .ta-tool:has(> .ta-act-script) { margin-top: 2px; }\n/* The files a turn changed, first when its work opens. */\n.ta-step-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-step-files > .ta-status { top: calc(7px * var(--ta-font-scale)); }\n.ta-step-files .ta-link { font-size: calc(12px * var(--ta-font-scale)); }\n/* The earlier steps, folded: a bead of their own on the string, as every step has. */\n.ta-step-more { display: flex; align-items: center; min-height: calc(26px * var(--ta-font-scale)); }\n.ta-step-more > .ta-more { margin-bottom: 0; }\n/* Where the work went on after it was cut short (Ta restarted, moved to the cloud and back): a quiet line among the steps. */\n.ta-step-resumed { display: flex; align-items: center; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-step-resumed-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-file-chip { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-body); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* At rest until its time comes again: still, not breathing as one that runs. */\n.ta-status-idle::before { background: color-mix(in srgb, var(--ta-blue) 45%, transparent); }\n/* A running dot breathes, like the light of a sleeping laptop: it works, it is not stuck. */\n.ta-status-running::before { background: var(--ta-blue); animation: ta-breathe 1.8s ease-in-out infinite; }\n@keyframes ta-breathe {\n 0%, 100% { transform: scale(0.8); opacity: 0.45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-blue) 0%, transparent); }\n 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-blue) 22%, transparent); }\n}\n.ta-status-thought::before { background: var(--ta-border-field); }\n.ta-diff { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 8px; overflow: auto; max-height: 400px; background: var(--ta-code); line-height: 1.6; }\n.ta-diff-line { display: grid; grid-template-columns: 42px 16px 1fr; white-space: pre; }\n.ta-diff-number { color: var(--ta-muted); text-align: right; padding-right: 8px; user-select: none; opacity: 0.7; }\n.ta-diff-sign { color: var(--ta-muted); user-select: none; }\n.ta-diff-add { background: var(--ta-add); }\n.ta-diff-add .ta-diff-sign { color: var(--ta-green); }\n.ta-diff-remove { background: var(--ta-remove); }\n.ta-diff-remove .ta-diff-sign { color: var(--ta-red); }\n.ta-diff-gap { color: var(--ta-muted); }\n.ta-add { color: var(--ta-green); }\n.ta-remove { color: var(--ta-red); }\n\n/* Dialogs */\n.ta-dialog { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ta-shadow-composer); }\n.ta-dialog-title { font-weight: 600; }\n.ta-dialog-message { margin: 0; white-space: pre-wrap; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }\n.ta-dialog-options { display: flex; flex-direction: column; gap: 4px; }\n.ta-option { text-align: left; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; transition: background 120ms; }\n.ta-option:hover, .ta-option:focus { background: var(--ta-hover); outline: none; }\n\n@keyframes ta-spin { to { transform: rotate(360deg); } }\n@keyframes ta-shimmer { to { background-position: -200% 0; } }\n@keyframes ta-pulse { 50% { opacity: 0.3; } }\n@keyframes ta-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }\n@keyframes ta-dino-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }\n@keyframes ta-dino-pop { from { transform: scale(0.4); opacity: 0; } }\n@keyframes ta-in { from { transform: translateY(4px); opacity: 0; } }\n@keyframes ta-fade { from { opacity: 0; } }\n@keyframes ta-slide { from { transform: translateX(24px); opacity: 0; } }\n@keyframes ta-up { from { transform: translateY(100%); } }\n/* Not inside a diagram being drawn: Mermaid lays a flowchart out wrong when its elements have a transition. */\n:root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }\n .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-connection-when { display: none; }\n .ta-app:has(.ta-connection:not(.ta-connection-leaving)) .ta-toasts { top: calc(100px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-narrow-only { display: inline-grid !important; }\n .ta-wide-only { display: none !important; }\n header.ta-narrow-only { display: flex !important; }\n .ta-nav { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ta-ease); box-shadow: var(--ta-shadow-pop); }\n .ta-nav-open .ta-nav { transform: none; }\n .ta-sidebar { width: min(280px, calc(88vw - 56px)); }\n .ta-scrim { display: block; position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; background: rgba(0, 0, 0, 0.35); animation: ta-fade 160ms; }\n .ta-main-head { height: calc(52px + env(safe-area-inset-top)); padding: 0 6px; padding-top: env(safe-area-inset-top); }\n .ta-chat-col { padding: 0 14px; }\n .ta-msg-bubble, .ta-bubble, .ta-skill-use { max-width: 88%; }\n .ta-close { opacity: 1; }\n .ta-session-header { padding: 8px 14px; flex-wrap: wrap; }\n .ta-find { padding: 0 14px 8px; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
2
+ export declare const CONVERSATION_STYLE = "\n/* Console session */\n.ta-session { display: flex; flex-direction: column; height: 100%; min-height: 0; }\n.ta-session-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; }\n.ta-session-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }\n.ta-session-title .ta-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); }\n/* The title is centred in the head, level with the tabs of the workbench and the search of the side; its directory hangs below it. */\n.ta-session-header > .ta-session-title .ta-path { margin-bottom: -1.35em; }\n.ta-title { font-weight: 600; }\n/* Nothing in a conversation is wider than it (long words break, tables and code scroll in their frames): it never scrolls sideways. */\n.ta-scroll { flex: 1; overflow-x: hidden; overflow-y: auto; min-height: 0; }\n/* Finding in the conversation: a row under its head, as a browser's find bar; the words found marked, the row found flashing. */\n.ta-find { display: flex; align-items: center; gap: 4px; padding: 0 20px 8px; }\n.ta-find-box { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 11px; border-radius: 10px; background: var(--ta-raised); color: var(--ta-muted); border: 1px solid var(--ta-border-field); }\n.ta-find-box 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-find-box input::placeholder { color: var(--ta-muted); }\n.ta-find-count { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-find .ta-icon-button:disabled { opacity: 0.4; }\n.ta-moved { margin-bottom: 8px; align-items: center; flex-wrap: wrap; }\n.ta-moved .ta-callout-text { min-width: min(240px, 70%); }\n.ta-moved-actions { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }\n::highlight(ta-find) { background-color: color-mix(in srgb, var(--ta-yellow) 42%, transparent); color: inherit; }\n.ta-thread-item[data-found] { animation: ta-found 1.2s ease-out; border-radius: 12px; }\n@keyframes ta-found { 0%, 30% { background: color-mix(in srgb, var(--ta-yellow) 12%, transparent); } to { background: transparent; } }\n.ta-thread { position: relative; max-width: calc(var(--ta-col) + 48px); margin: 0 auto; padding: 20px 24px 8px; display: flex; flex-direction: column; gap: 16px; }\n/* An empty conversation: the welcome in the middle of the room, as that of the double. */\n.ta-thread:has(> .ta-hero) { min-height: 100%; box-sizing: border-box; }\n.ta-bottom { max-width: calc(var(--ta-col) + 48px); width: 100%; margin: 0 auto; padding: 8px 24px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }\n/* What comes and goes over the message box (GrowBox): the gap under it is its own, to slide with it; none while it is empty. */\n.ta-grow { flex: none; margin-bottom: -8px; }\n.ta-grow-inner { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }\n.ta-grow-inner:empty { padding-bottom: 0; }\n.ta-message { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ta-body); line-height: 1.75; overflow-wrap: break-word; }\n.ta-user { align-items: flex-end; }\n.ta-bubble-quote { margin: 1px 0 7px; padding: 0 0 0 9px; border-left: 2px solid var(--ta-border-field); color: var(--ta-secondary); font-size: 0.92em; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }\n.ta-bubble { background: var(--ta-user); color: var(--ta-text); border-radius: 16px 16px 5px 16px; padding: 9px 14px; max-width: 78%; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }\n/* A long message of the user folds to its first lines (FOLD_LINES), fading out, with Show more under it. */\n.ta-fold[data-fold='measuring'], .ta-fold[data-fold='folded'] { max-height: 16em; max-height: 10lh; overflow: hidden; }\n.ta-fold[data-fold='folded'] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5em), transparent); }\n.ta-fold-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); cursor: pointer; }\n.ta-fold-toggle:hover { color: var(--ta-text); }\n.ta-bubble-media .ta-fold-toggle { margin: -8px 10px 5px; }\n/* A skill the user ran: its name on one line, which opens to the skill's file */\n.ta-skill-use { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 78%; min-width: 0; }\n.ta-skill-head { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px; padding: 0 10px 0 12px; border: 1px solid var(--ta-border); border-radius: 15px; background: var(--ta-chip); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); transition: background 120ms, color 120ms; }\n@media (hover: hover) { .ta-skill-head:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-tag { color: var(--ta-muted); flex: none; }\n/* A name of the vault in what was said ($TA_SECRET_PHONE): a lock and what it stands for, never the variable. */\n.ta-secret-chip { display: inline-flex; border: 0; font-family: inherit; align-items: center; gap: 3px; margin: 0 1px; padding: 0 6px; border-radius: 6px; background: var(--ta-chip); box-shadow: inset 0 0 0 1px var(--ta-border); color: var(--ta-secondary); font-size: 0.9em; line-height: 1.6; white-space: nowrap; vertical-align: baseline; cursor: default; }\n.ta-secret-chip svg { flex: none; color: var(--ta-muted); }\nbutton.ta-secret-chip { cursor: pointer; transition: background 120ms, color 120ms; }\n@media (hover: hover) { button.ta-secret-chip:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-skill-name { font-weight: 500; color: var(--ta-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }\n.ta-skill-head[aria-expanded='true'] .ta-process-chevron { transform: rotate(90deg); }\n.ta-skill-body { align-self: stretch; max-height: 360px; overflow-y: auto; padding: 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n/* A message that did not go: what to do with it, in the place of its footer */\n.ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }\n.ta-send-failed .ta-link-button:hover { color: var(--ta-text); }\n/* A message of the user on its way (Sending): a spinner beside it, as a messenger has it; a red mark once it did not go. */\n.ta-sending { display: flex; align-items: center; justify-content: flex-end; gap: 8px; align-self: stretch; min-width: 0; }\n.ta-sending-body { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 78%; }\n.ta-sending-body > :is(.ta-bubble, .trm-files) { max-width: 100%; }\n.ta-sending-mark { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-sending-mark .ta-spinner { width: 15px; height: 15px; }\n/* What goes at once never shows a spinner that only flickers: it comes after a moment. */\nspan.ta-sending-mark { animation: ta-busy-in 160ms 500ms both; }\nbutton.ta-sending-mark { padding: 2px; border: 0; border-radius: 50%; background: none; color: var(--ta-red); cursor: pointer; }\nbutton.ta-sending-mark:disabled { cursor: default; }\n.ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }\n.ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }\n@media (hover: none) { .ta-footer { opacity: 1; } }\n.ta-footer-button { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); transition: background 120ms, color 120ms; }\n.ta-footer-button:hover { background: var(--ta-hover); color: var(--ta-text); }\n.ta-footer-time { padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 6px; white-space: nowrap; }\n.ta-footer-usage > span { display: inline-flex; align-items: center; gap: 1px; }\n/* The time between two messages far apart, as WeChat shows it: on a touch screen only (device.ts), where the footers do not show. */\n.ta-time-break { display: none; align-self: center; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; font-variant-numeric: tabular-nums; }\n.ta-thread-item > .ta-time-break { margin-bottom: 16px; }\n/* Where the conversation goes on with another model: on every device, as the footers do not say the model. */\n.ta-model-break { display: flex; align-items: center; gap: 5px; align-self: center; max-width: 100%; margin-bottom: 16px; padding: 0 10px; height: 22px; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-model-break > span { overflow: hidden; text-overflow: ellipsis; }\n/* Where a message of the user came from when not typed (a package, the double), and that it waited for a reply: a quiet line above it. */\n.ta-user-marks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; max-width: 78%; margin-bottom: -2px; }\n/* Someone else's message in the same Ta (TaMessageAuthor): on the left, with their face and name, as in a group chat. */\n.ta-user.ta-user-other { align-items: flex-start; }\n.ta-user-by { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; min-width: 0; }\n.ta-user-by > .ta-face { flex: none; margin-top: 1px; }\n.ta-user-by-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }\n.ta-user-by-name { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; }\n.ta-user-other .ta-user-marks { justify-content: flex-start; max-width: 100%; margin-bottom: 0; }\n.ta-user-other .ta-bubble { max-width: 100%; background: var(--ta-card); box-shadow: inset 0 0 0 1px var(--ta-border); border-radius: 5px 16px 16px 16px; }\n.ta-user-other .ta-skill-use { align-items: flex-start; max-width: 100%; }\n.ta-user-other .ta-user-images { justify-content: flex-start; }\n.ta-message.ta-user-other > .ta-footer { margin-left: 32px; }\n/* The record of a call (CallTranscript): Ta's face beside its words, as a messenger keeps a chat; held for the menu, no footer. */\n.ta-turn-spoken { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; align-items: start; }\n.ta-turn-spoken > :first-child { margin-top: 1px; }\n.ta-spoken-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }\n.ta-thread-item.ta-spoken > .ta-message > .ta-footer { display: none; }\n/* Others at the conversation (TaSessionInfo.people): faces one over the next; over the box, who types. */\n.ta-people { display: inline-flex; align-items: center; flex: none; }\n.ta-people-face { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--ta-main); background: var(--ta-main); }\n.ta-people-face + .ta-people-face { margin-left: -6px; }\n.ta-people-more { margin-left: 4px; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-session-header > .ta-people { margin-left: -8px; }\n.ta-presence-line { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(20px * var(--ta-font-scale)); }\n.ta-typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }\n.ta-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: ta-typing 1.2s infinite ease-in-out; }\n.ta-typing-dots i:nth-child(2) { animation-delay: 0.15s; }\n.ta-typing-dots i:nth-child(3) { animation-delay: 0.3s; }\n@keyframes ta-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }\n@media (prefers-reduced-motion: reduce) { .ta-typing-dots i { animation: none; } }\n.ta-origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; white-space: nowrap; }\n.ta-origin-name { color: var(--ta-secondary); overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail { overflow: hidden; text-overflow: ellipsis; }\n.ta-origin-detail::before { content: '\u00B7'; margin-right: 4px; }\n/* Said on the way: on the string of the steps, where the agent read it, in the colour of the user's words. */\n.ta-step-said { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 0 6px; min-width: 0; }\n/* On the string as the other dots (conversation-column.ts), on the middle of the line of its head. */\n.ta-step-said > .ta-status { margin-top: calc(9px * var(--ta-font-scale) - 6px); }\n.ta-status.ta-status-said::before { background: var(--ta-blue); }\n.ta-said-head { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--ta-blue); font-size: calc(12px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); white-space: nowrap; }\n.ta-said-head > .ta-origin { margin-left: 4px; }\n.ta-said-bubble { max-width: min(100%, 520px); padding: 6px 11px; border-radius: 5px 14px 14px 14px; background: var(--ta-user); color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }\n/* Folded, the words said on the way stay under the head, on a string of their own. */\n.ta-process-steps.ta-said-folded::before, .ta-said-folded .ta-status { display: none; }\n/* Open, the dot on the string says it: the arrow is for the words folded out of the steps. */\n.ta-process-steps:not(.ta-said-folded) .ta-said-head > .ta-icon:first-child { display: none; }\n/* Where the context was compacted: a mark as quiet as the one above, which opens to the summary. */\n.ta-compaction { display: flex; flex-direction: column; align-items: center; min-width: 0; }\n.ta-compaction-mark { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 0 8px 0 10px; height: 22px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); white-space: nowrap; transition: background 120ms, color 120ms; }\n.ta-compaction-mark:hover { background: var(--ta-hover); color: var(--ta-secondary); }\n.ta-compaction-mark > span { overflow: hidden; text-overflow: ellipsis; }\n.ta-compaction-tokens { flex-shrink: 0; font-variant-numeric: tabular-nums; }\n.ta-compaction-note { flex-shrink: 0; }\n/* The line at the end about the context: a mark, what it says, and its answers as small chips, one gap of 8px between all (6px after the mark). It sits under the footer of the last message, as close as the footer to the message. */\n.ta-context-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: -6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); }\n.ta-context-line > svg { flex-shrink: 0; margin-right: -2px; }\n.ta-context-text { min-width: 0; }\n.ta-context-acts { display: inline-flex; align-items: center; gap: 8px; }\n.ta-context-act { display: inline-flex; align-items: center; height: calc(24px * var(--ta-font-scale)); padding: 0 10px; border: 0; border-radius: 999px; background: var(--ta-chip); color: var(--ta-secondary); font: inherit; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 120ms, color 120ms; }\n.ta-context-act:first-child { color: var(--ta-text); font-weight: 500; }\n@media (hover: hover) { .ta-context-act:hover { background: var(--ta-hover); color: var(--ta-text); } }\n.ta-context-act:active { background: var(--ta-hover); }\n.ta-context-act:disabled { opacity: 0.5; cursor: default; }\n.ta-context-dot { flex-shrink: 0; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--ta-green, #3fb950); }\n.ta-compaction-chevron { flex-shrink: 0; transition: transform 160ms; }\n.ta-compaction-mark[aria-expanded=\"true\"] .ta-compaction-chevron { transform: rotate(90deg); }\n/* The handoff note, opened: a card as a skill's file is, its headings the size of the text, one rhythm of gaps. */\n.ta-compaction-summary { align-self: stretch; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); line-height: 1.6; }\n.ta-compaction-summary .ta-markdown :is(h1, h2, h3, h4, h5, h6) { margin: 10px 0 2px; font-size: calc(13px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-text); font-weight: 600; }\n.ta-compaction-summary .ta-markdown :is(p, ul, ol, blockquote) { margin: 0 0 6px; }\n.ta-compaction-summary .ta-markdown :is(ul, ol) { padding-left: 18px; }\n.ta-compaction-summary .ta-markdown hr { margin: 10px 0; }\n.ta-compaction-summary .ta-markdown > :first-child { margin-top: 0; }\n.ta-compaction-summary .ta-markdown > :last-child { margin-bottom: 0; }\n.ta-working { display: flex; align-items: center; gap: 8px; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; }\n.ta-statusline { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; font-size: calc(11.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\n.ta-statusline-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--ta-chip); white-space: nowrap; }\n.ta-statusline-label { color: var(--ta-text); font-weight: 500; }\n.ta-statusline-part { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.ta-statusline-part + .ta-statusline-part::before { content: ''; width: 1px; height: 10px; margin-right: 2px; background: var(--ta-border-field); }\n.ta-statusline-part.ta-tone-error { color: var(--ta-red); }\n.ta-statusline-part > .ta-status { width: 8px; }\n.ta-widget { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ta-border); background: var(--ta-side); }\n.ta-widget-text { margin: 0; max-width: 100%; overflow-x: auto; font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; color: var(--ta-secondary); white-space: pre; }\n.ta-widget-art { width: 180px; height: auto; border-radius: 8px; }\n.ta-console-composer { position: relative; }\n.ta-console-box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--ta-border-field); background: var(--ta-input); box-shadow: var(--ta-shadow-composer); transition: border-color 150ms; }\n.ta-console-box:focus-within { border-color: var(--ta-border-focus); }\n.ta-console-composer textarea { flex: 1; resize: none; border: 0; outline: none; background: transparent; padding: 5px 0; max-height: 220px; font-size: var(--ta-field-font); line-height: 1.55; }\n.ta-commands { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--ta-side); border: 1px solid var(--ta-border); border-radius: 12px; padding: 4px; box-shadow: var(--ta-shadow-pop); z-index: 2; }\n.ta-command { display: flex; gap: 12px; width: 100%; height: 32px; align-items: center; padding: 0 10px; background: none; border: 0; border-radius: 8px; text-align: left; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-command .ta-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-command.ta-selected, .ta-command:hover { background: var(--ta-hover); }\n/* The screenshot just taken, offered above the + (RecentShotOffer), as WeChat's: a bubble pointing at the +, over what is above the box. */\n.ta-recent-shot { position: absolute; left: -2px; bottom: calc(100% + 12px); z-index: 19; display: flex; flex-direction: column; gap: 6px; width: calc(9em + 18px); padding: 7px; font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-side); box-shadow: var(--ta-shadow-pop); color: var(--ta-secondary); text-align: left; cursor: pointer; animation: ta-plus-in 160ms var(--ta-ease); transition: opacity 160ms var(--ta-ease), transform 160ms var(--ta-ease); }\n.ta-recent-shot::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; box-sizing: border-box; border-right: 1px solid var(--ta-border); border-bottom: 1px solid var(--ta-border); background: var(--ta-side); transform: rotate(45deg); }\n.ta-recent-shot.ta-leaving { opacity: 0; transform: translateY(4px); pointer-events: none; }\n.ta-recent-shot-label { padding: 0 1px; line-height: 1.35; }\n.ta-recent-shot-thumb { display: block; width: 100%; height: auto; max-height: 150px; object-fit: cover; object-position: top; border-radius: 7px; border: 1px solid var(--ta-border); background: var(--ta-raised); }\n\n/* Markdown */\n.ta-markdown > :first-child { margin-top: 0; }\n.ta-markdown > :last-child { margin-bottom: 0; }\n.ta-markdown p, .ta-markdown ul, .ta-markdown ol, .ta-markdown blockquote { margin: 0 0 10px; }\n/* Headings: # is the largest, ### and under the size of the text; each closer to what it heads than to what is above it. */\n.ta-markdown h3, .ta-markdown h4, .ta-markdown h5, .ta-markdown h6 { margin: 16px 0 6px; line-height: 1.4; color: var(--ta-text); font-weight: 600; }\n.ta-markdown h3 { font-size: calc(17px * var(--ta-font-scale)); }\n.ta-markdown h4 { font-size: calc(15.5px * var(--ta-font-scale)); }\n.ta-markdown h5, .ta-markdown h6 { font-size: calc(14px * var(--ta-font-scale)); }\n.ta-markdown ul, .ta-markdown ol { padding-left: 22px; }\n.ta-markdown strong { color: var(--ta-text); font-weight: 600; }\n.ta-markdown blockquote { border-left: 3px solid var(--ta-border); padding-left: 12px; color: var(--ta-secondary); }\n/* A long path in a code span breaks where the line ends, each piece in a box of its own. */\n.ta-markdown :not(pre) > code { background: var(--ta-chip); border-radius: 5px; padding: 1px 5px; font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-markdown-inline :not(pre) > code { padding: 0 4px; font-size: 0.92em; }\n/* Words struck out, highlighted, in a colour of the page; marks of footnotes and the footnotes; lists of tasks; boxes of a kind. */\n.ta-markdown del { color: var(--ta-muted); text-decoration-thickness: 1px; }\n.ta-markdown mark { padding: 0 2px; border-radius: 3px; background: color-mix(in srgb, var(--ta-yellow) 32%, transparent); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }\n.ta-tint[data-tint=\"red\"] { color: var(--ta-red); }\n.ta-tint[data-tint=\"orange\"] { color: color-mix(in srgb, var(--ta-red) 45%, var(--ta-yellow)); }\n.ta-tint[data-tint=\"yellow\"] { color: var(--ta-yellow); }\n.ta-tint[data-tint=\"green\"] { color: var(--ta-green); }\n.ta-tint[data-tint=\"blue\"] { color: var(--ta-blue); }\n.ta-tint[data-tint=\"purple\"] { color: color-mix(in srgb, var(--ta-blue) 55%, var(--ta-red)); }\n.ta-tint[data-tint=\"gray\"] { color: var(--ta-muted); }\n.ta-note-mark { margin: 0 1px; color: var(--ta-link); font-size: 0.72em; font-variant-numeric: tabular-nums; }\n.ta-footnote { display: flex; gap: 4px; margin: 0 0 4px; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-footnote > .ta-note-mark { flex-shrink: 0; margin: 0; font-size: 1em; vertical-align: baseline; }\n.ta-footnote > .ta-note-mark::after { content: '.'; }\n.ta-markdown ul.ta-tasks, .ta-markdown ol.ta-tasks { padding-left: 2px; list-style: none; }\n.ta-markdown li.ta-task { position: relative; padding-left: 24px; list-style: none; }\n.ta-task-box { position: absolute; left: 2px; top: 0.3em; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 14px; height: 14px; border: 1.5px solid var(--ta-muted); border-radius: 4px; color: #fff; }\n.ta-task[data-done] > .ta-task-box { border-color: var(--ta-accent); background: var(--ta-accent); }\n.ta-task[data-done] { color: var(--ta-muted); }\n.ta-md-callout { --ta-callout: var(--ta-blue); margin: 0 0 10px; padding: 8px 12px 10px; border-left: 3px solid var(--ta-callout); border-radius: 4px 8px 8px 4px; background: color-mix(in srgb, var(--ta-callout) 9%, transparent); }\n.ta-md-callout[data-kind=\"tip\"] { --ta-callout: var(--ta-green); }\n.ta-md-callout[data-kind=\"important\"] { --ta-callout: color-mix(in srgb, var(--ta-blue) 55%, var(--ta-red)); }\n.ta-md-callout[data-kind=\"warning\"] { --ta-callout: var(--ta-yellow); }\n.ta-md-callout[data-kind=\"caution\"] { --ta-callout: var(--ta-red); }\n.ta-md-callout-title { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--ta-callout); font-weight: 600; }\n.ta-md-callout-title svg { flex-shrink: 0; }\n.ta-md-callout > .ta-markdown { color: var(--ta-text); }\n.ta-markdown hr { border: 0; border-top: 1px solid var(--ta-border-muted); margin: 16px 0; }\n.ta-markdown a:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path { display: inline; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ta-link); text-align: inherit; cursor: pointer; overflow-wrap: anywhere; }\n.ta-link-path:hover { text-decoration: underline; text-underline-offset: 2px; }\n.ta-link-path:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; border-radius: 3px; }\n.ta-markdown .ta-link-code code { color: var(--ta-link); }\n.ta-link-code:hover { text-decoration: none; }\n.ta-link-code:hover code { text-decoration: underline; text-underline-offset: 2px; }\n.ta-modal.ta-link-dialog { width: min(520px, 100%); }\n.ta-link-dialog .ta-confirm-title { display: flex; align-items: center; gap: 8px; }\n.ta-link-address { margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--ta-chip); font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; max-height: 120px; overflow: auto; }\n.ta-link-address strong { color: var(--ta-text); font-weight: 600; }\n.ta-link-dialog .ta-dialog-actions { flex-wrap: wrap; align-items: center; row-gap: 10px; }\n.ta-link-more { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 0; }\n.ta-link-more .ta-link { font-size: calc(13px * var(--ta-font-scale)); }\n.ta-link-more .ta-link:hover { text-decoration: underline; text-underline-offset: 2px; }\n/* A table: short cells keep to one line, long ones (ta-cell-long) wrap from a width that reads; wider than the\n conversation, it scrolls in its frame rather than squeezes its columns to a character a line. */\n.ta-table { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 10px; border-radius: 10px; border: 1px solid var(--ta-border); }\n.ta-table table { border-collapse: collapse; font-size: calc(13px * var(--ta-font-scale)); width: 100%; line-height: 1.55; font-variant-numeric: tabular-nums; }\n.ta-table th, .ta-table td { border-bottom: 1px solid var(--ta-border-muted); padding: 7px 12px; text-align: left; vertical-align: top; white-space: nowrap; }\n.ta-table td.ta-cell-long { white-space: normal; min-width: 14em; }\n.ta-table [data-align='center'] { text-align: center; }\n.ta-table [data-align='right'] { text-align: right; }\n.ta-table :not(pre) > code { overflow-wrap: normal; }\n.ta-table tr:last-child td { border-bottom: 0; }\n.ta-table th { background: var(--ta-raised); font-weight: 600; color: var(--ta-text); }\n.ta-code { border: 1px solid var(--ta-border); border-radius: 10px; overflow: hidden; background: var(--ta-code); margin: 0 0 10px; line-height: 1.55; }\n.ta-code-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 10px 0 12px; font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-muted); border-bottom: 1px solid var(--ta-border-muted); }\n.ta-code-editor { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; background: var(--ta-code); }\n.ta-code-editor-host { position: absolute; inset: 0; }\n.ta-game { position: relative; flex: 1; width: 100%; height: 100%; min-height: 0; overflow: hidden; outline: none; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }\n.ta-game canvas { display: block; }\n/* While its engine loads, once it took a moment. */\n.ta-game-cover { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; pointer-events: none; }\n/* What a web extension shows over all of the page (ui.FullScreen): under the notch, above the keyboard, below the title bar of the app, under notices and menus. */\n.ta-full-screen { position: fixed; left: 0; right: 0; top: var(--ta-titlebar, 0px); z-index: 45; display: flex; flex-direction: column; height: calc(var(--ta-viewport, 100dvh) - var(--ta-titlebar, 0px)); overflow: hidden; background: var(--ta-main); color: var(--ta-text); overscroll-behavior: none; touch-action: none; }\n:root[data-keyboard] .ta-full-screen { height: calc(var(--ta-viewport, calc(100dvh - var(--ta-keyboard, 0px))) - var(--ta-titlebar, 0px)); }\n.ta-code-editor-state { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n/* A terminal (WebTerminal) fills the element it is attached to, which must have a size and position: relative. */\n.ta-terminal { position: absolute; inset: 0; background: var(--ta-code); }\n/* The padding is the terminal's own: xterm.js fits its rows and columns inside it. */\n.ta-terminal .xterm { height: 100%; padding: 10px 4px 6px 14px; }\n.ta-terminal .xterm-viewport { background: transparent !important; }\n.ta-terminal .xterm-helper-textarea { caret-color: transparent; }\n.ta-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; overscroll-behavior-x: contain; color: var(--ta-body); }\n.ta-code-actions { display: flex; align-items: center; gap: 2px; }\n.ta-code-actions .ta-icon-button { width: 24px; height: 24px; border-radius: 6px; color: var(--ta-muted); }\n.ta-code-actions .ta-icon-button:hover { color: var(--ta-text); }\n.ta-code-actions .ta-icon { width: 14px; height: 14px; }\n.ta-code:has(> .ta-code-float) { position: relative; }\n.ta-code-float { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 120ms; }\n.ta-code:hover > .ta-code-float, .ta-code-float:focus-within { opacity: 1; }\n.ta-code-float .ta-icon-button { background: var(--ta-code); }\n/* What extensions do with a block drawn as a card (registerCodeMenu, drawn): quiet words under it, as the actions of a message; its first icon starts where the card does (-8px: the padding of a button). */\n.ta-code-drawn-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px -8px; }\n.ta-code-drawn-action { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale, 1)); cursor: pointer; }\n.ta-code-drawn-action:hover { background: var(--ta-hover); color: var(--ta-text); }\n/* The user points at a part of the block below (WebCodeRef.point). */\n.ta-code-point-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--ta-hover); color: var(--ta-text); font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-code-point-hint > svg { flex: none; color: var(--ta-blue); }\n.ta-code-point-hint > span { flex: 1; min-width: 0; }\n.ta-code-point-hint > button { flex: none; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ta-secondary); font: inherit; cursor: pointer; }\n.ta-code-point-hint > button:hover { background: var(--ta-hover-strong); color: var(--ta-text); }\n.ta-math-block { margin: 0 0 10px; padding: 2px 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; text-align: center; }\n.ta-math-block .katex-display { margin: 0; }\n.ta-markdown .katex { font-size: 1.1em; }\n.ta-math-source { font-family: var(--ta-mono); font-size: calc(12.5px * var(--ta-font-scale)); color: var(--ta-secondary); }\ndiv.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px; border-radius: 10px; background: var(--ta-code); }\n.ta-mermaid-diagram { display: flex; justify-content: center; padding: 16px; overflow: auto; }\n.ta-mermaid-diagram svg { max-width: 100%; height: auto; }\n.ta-mermaid-room { width: 100%; }\n/* A diagram that comes in (DiagramStyle motion) does so once: not again as a streamed source draws longer. */\n.ta-mermaid-settled .ta-mermaid-diagram svg :is(.node, .edgeLabel) { animation: none !important; }\n:root[data-reduce-motion] .ta-mermaid-diagram svg * { animation: none !important; }\n.ta-mermaid:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: var(--ta-main); }\n.ta-mermaid:fullscreen .ta-mermaid-diagram { flex: 1; align-items: center; }\n.ta-mermaid:fullscreen .ta-mermaid-diagram svg { width: 100%; height: 100%; max-width: none !important; }\n.ta-mermaid:fullscreen pre { flex: 1; }\n.ta-media { display: block; max-width: 100%; margin: 6px 0 10px; border-radius: 10px; }\n.ta-media-image { padding: 0; border: 1px solid var(--ta-border-muted); background: var(--ta-code); overflow: hidden; cursor: zoom-in; line-height: 0; width: fit-content; }\n.ta-media-image img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; }\n.ta-media-image.ta-media-pending { width: 240px; height: 135px; border-color: transparent; background: var(--ta-raised); }\n.ta-media-image.ta-media-pending img { opacity: 0; }\n.ta-media-video { width: 560px; max-height: 420px; background: #000; }\n.ta-media-audio { width: 360px; height: 40px; }\n.ta-media-loading { display: block; width: 240px; max-width: 100%; height: 135px; margin: 6px 0 10px; border-radius: 10px; background: var(--ta-raised); }\n.ta-media-loading.ta-media-audio { height: 40px; }\n/* Pictures of a reply together (components/gallery.tsx): rows as wide as the reply, each picture whole and a row as tall (GalleryUtil.rows), the words that name each under it. */\n.ta-gallery { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }\n.ta-gallery-row { display: flex; gap: inherit; }\n.ta-gallery-item { display: flex; flex: none; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }\n.ta-gallery-tile { position: relative; display: block; width: 100%; height: var(--ta-gallery-row); padding: 0; border: 1px solid var(--ta-border-muted); border-radius: 8px; overflow: hidden; background: var(--ta-raised); line-height: 0; cursor: zoom-in; -webkit-tap-highlight-color: transparent; transition: opacity 120ms; }\n.ta-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 240ms var(--ta-ease), opacity 160ms; }\n.ta-gallery-tile:hover img { transform: scale(1.03); }\n.ta-gallery-tile:active { opacity: 0.85; }\n.ta-gallery-tile:disabled { cursor: default; }\n.ta-gallery-pending { border-color: transparent; animation: ta-shimmer-soft 1.6s ease-in-out infinite; }\n.ta-gallery-pending img { opacity: 0; }\n.ta-gallery-missing { display: grid; place-items: center; color: var(--ta-muted); cursor: pointer; }\n.ta-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.48); color: #fff; font-size: calc(20px * var(--ta-font-scale)); font-weight: 600; line-height: 1; }\n.ta-gallery-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.4; text-align: center; }\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) { .ta-gallery { gap: 4px; } }\n.ta-media-missing { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 0; border-radius: 6px; background: var(--ta-chip); font: inherit; cursor: pointer; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); vertical-align: middle; }\n/* A picture that zooms (image-zoom.ts): what scrolls is the box; the picture sits in it where ImageZoom puts it. */\n.ta-zoom { position: relative; display: flex; flex: 1; width: 100%; min-width: 0; min-height: 0; overflow: hidden; }\n/* What a finger swipes to the picture beside (image-swipe.ts): the box that scrolls, and the pictures beside it at its sides, as large as it shows them at first. */\n.ta-zoom-track { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; }\n.ta-zoom-peek { position: absolute; top: 0; width: 100%; height: 100%; padding: 16px; box-sizing: border-box; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }\n.ta-zoom-peek-previous { right: calc(100% + 20px); }\n.ta-zoom-peek-next { left: calc(100% + 20px); }\n.ta-zoom-viewport { flex: 1; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; outline: none; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }\n.ta-zoom-stage { position: relative; }\n.ta-zoom-stage img { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; cursor: zoom-in; -webkit-user-drag: none; }\n.ta-zoom-stage img:not([data-ready]) { opacity: 0; }\n/* Loading, or why it does not show: in the middle of the box, whatever scrolls. */\n.ta-zoom-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); pointer-events: none; }\n.ta-lightbox .ta-zoom-status { color: rgba(255, 255, 255, 0.7); }\n.ta-zoom-stage img.ta-zoom-pixelated { image-rendering: pixelated; }\n.ta-zoom-viewport[data-zoomed='true'] img { cursor: grab; }\n.ta-zoom-viewport[data-dragging], .ta-zoom-viewport[data-dragging] img { cursor: grabbing; }\n.ta-zoom-bar { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid var(--ta-border); border-radius: 12px; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16); color: var(--ta-secondary); transform: translateX(-50%); transition: opacity 160ms; }\n.ta-zoom-bar button { display: inline-grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; }\n.ta-zoom-bar button:hover:not(:disabled) { background: var(--ta-hover); color: var(--ta-text); }\n.ta-zoom-bar button:disabled { opacity: 0.4; }\n.ta-zoom-scale { min-width: 52px; padding: 0 4px; text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none; }\n/* The pictures beside it (of a folder, of a message), at its sides. */\n.ta-zoom-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--ta-border); border-radius: 50%; background: color-mix(in srgb, var(--ta-card) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); color: var(--ta-secondary); transform: translateY(-50%); transition: opacity 160ms, background 120ms, color 120ms; }\n.ta-zoom-nav:hover:not(:disabled) { background: var(--ta-card); color: var(--ta-text); }\n.ta-zoom-nav:disabled { opacity: 0.35; }\n.ta-zoom-previous { left: calc(12px + env(safe-area-inset-left)); }\n.ta-zoom-next { right: calc(12px + env(safe-area-inset-right)); }\n/* With a mouse, the buttons show while the pointer is over the picture; on a touch screen always. */\n:root:not([data-touch]) .ta-zoom:not(:hover):not(:focus-within) :is(.ta-zoom-bar, .ta-zoom-nav) { opacity: 0; }\n.ta-lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #f5f5f5; app-region: no-drag; -webkit-app-region: no-drag; }\n.ta-lightbox[open] { display: flex; }\n.ta-lightbox::backdrop { background: transparent; }\n/* The dark over the page: lighter as a finger pulls the picture down (image-pull.ts), the buttons hidden meanwhile. */\n.ta-lightbox-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.86); pointer-events: none; }\n.ta-lightbox-close, .ta-lightbox-caption { transition: opacity 160ms; }\n.ta-lightbox[data-pulling] :is(.ta-lightbox-close, .ta-lightbox-caption, .ta-zoom-bar, .ta-zoom-nav) { opacity: 0; pointer-events: none; }\n.ta-lightbox .ta-zoom-bar { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-bar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); color: #fff; }\n.ta-lightbox .ta-zoom-nav { border-color: rgba(255, 255, 255, 0.14); background: rgba(38, 38, 38, 0.78); color: #e5e5e5; }\n.ta-lightbox .ta-zoom-nav:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); color: #fff; }\n.ta-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; }\n.ta-lightbox-close:hover { background: rgba(64, 64, 64, 0.9); }\n/* What the picture over the page is and which of how many, at its top. */\n.ta-lightbox-caption { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 120px); padding: 0 12px; border-radius: 999px; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); line-height: calc(30px * var(--ta-font-scale)); transform: translateX(-50%); pointer-events: none; }\n.ta-lightbox-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-lightbox-count { flex: none; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }\n/* \u67E5\u770B\u539F\u56FE of a picture shown made smaller, at the bottom left as WeChat has it; over the bar of zoom on a phone. */\n.ta-lightbox-original { position: absolute; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: calc(34px * var(--ta-font-scale)); padding: 0 16px; border: 0; border-radius: 999px; background: rgba(38, 38, 38, 0.78); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; cursor: pointer; transition: opacity 160ms; }\n.ta-lightbox-original:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); }\n.ta-lightbox-original:disabled { cursor: default; }\n.ta-lightbox-original .ta-spinner { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }\n.ta-lightbox[data-pulling] .ta-lightbox-original { opacity: 0; pointer-events: none; }\n.ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }\n.ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }\n.ta-summary-line { font-size: calc(12.5px * var(--ta-font-scale)); }\n.ta-thinking-text { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }\n\n/* Tools: one line a step, a dot for its state; it opens to what it did */\n.ta-tool { min-width: 0; }\n.ta-tool-line { display: flex; align-items: center; gap: 2px; min-width: 0; }\n.ta-tool-title { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); padding: 0 6px; margin-left: -6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-secondary); }\nbutton.ta-tool-title { transition: background 120ms; }\nbutton.ta-tool-title:disabled { cursor: default; color: var(--ta-secondary); }\n@media (hover: hover) { button.ta-tool-title:hover:not(:disabled), .ta-step-toggle:hover { background: var(--ta-hover); } }\nbutton.ta-tool-title:focus-visible, .ta-step-toggle:focus-visible { outline-offset: -2px; }\n.ta-tool-title code { font-size: calc(12.5px * var(--ta-font-scale)); white-space: pre-wrap; word-break: break-all; color: var(--ta-body); }\n.ta-tool-verb { flex: none; color: var(--ta-text); }\n.ta-tool-icon { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }\n.ta-tool-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-muted); }\n.ta-tool-target.ta-mono { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); }\n/* A thing ta did that says what it is for (a script): those words are the line, cut short as a target is. */\n.ta-tool-title-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n/* How many steps a thing took, at the end of its line. */\n.ta-tool-count { flex: none; margin-left: auto; padding-left: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n.ta-tool-count + .ta-tool-chevron { margin-left: 2px; }\n/* The steps of a thing, under its line: smaller, a little in, their dots beside them rather than on the string. */\n.ta-act-body { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; margin-bottom: 4px; }\n.ta-tool-repeats { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-process-steps .ta-act-body .ta-status { position: relative; left: 0; background: transparent; }\n.ta-act-body .ta-tool-title, .ta-act-body .ta-step-toggle { font-size: calc(12.5px * var(--ta-font-scale)); min-height: calc(24px * var(--ta-font-scale)); }\n.ta-act-body .ta-act-script { align-self: flex-start; width: auto; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-act-body .ta-step-tag { color: var(--ta-secondary); }\n.ta-act-body .ta-tool-body { margin-top: 2px; }\n.ta-act-body > .ta-tool + .ta-tool:has(> .ta-act-script) { margin-top: 2px; }\n/* The files a turn changed, first when its work opens. */\n.ta-step-files { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-step-files > .ta-status { top: calc(7px * var(--ta-font-scale)); }\n.ta-step-files .ta-link { font-size: calc(12px * var(--ta-font-scale)); }\n/* The earlier steps, folded: a bead of their own on the string, as every step has. */\n.ta-step-more { display: flex; align-items: center; min-height: calc(26px * var(--ta-font-scale)); }\n.ta-step-more > .ta-more { margin-bottom: 0; }\n/* Where the work went on after it was cut short (Ta restarted, moved to the cloud and back): a quiet line among the steps. */\n.ta-step-resumed { display: flex; align-items: center; min-width: 0; min-height: calc(26px * var(--ta-font-scale)); font-size: calc(13px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-step-resumed-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-file-chip { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); color: var(--ta-body); }\n.ta-tool-chevron { flex: none; width: 13px; margin-left: auto; color: var(--ta-muted); opacity: 0; transition: transform 150ms var(--ta-ease), opacity 120ms; }\nbutton.ta-tool-title:hover:not(:disabled) .ta-tool-chevron, button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { opacity: 1; }\nbutton.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(90deg); }\n.ta-tool-body { margin: 2px 0 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; animation: ta-in 180ms var(--ta-ease); }\n.ta-tool-body > .ta-output { padding: 8px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-code); }\n.ta-tool-body .ta-code { margin: 0; }\n.ta-tool-group { display: flex; flex-direction: column; min-width: 0; }\n.ta-tool-trailing { flex: none; width: 24px; display: grid; place-items: center; }\n.ta-tool-script { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ta-muted); opacity: 0; transition: opacity 120ms, background 120ms, color 120ms; }\n.ta-tool-group:hover .ta-tool-script, .ta-tool-script:focus-visible, .ta-tool-script.ta-on { opacity: 1; }\n.ta-tool-script:hover, .ta-tool-script.ta-on { background: var(--ta-hover); color: var(--ta-text); }\n.ta-output pre, pre.ta-output { margin: 0; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; color: var(--ta-secondary); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; }\n.ta-error { color: var(--ta-red) !important; }\n/* What a tool returned, read as a person reads it: keys small and muted beside or above their values. */\n.ta-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: calc(12px * var(--ta-font-scale)); line-height: 1.55; color: var(--ta-secondary); }\n.ta-result-entries { display: flex; flex-direction: column; gap: 6px; min-width: 0; }\n.ta-result-entries .ta-result-entries { padding-left: 10px; border-left: 1px solid var(--ta-border-muted); }\n.ta-result-entry { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n.ta-result-inline { flex-direction: row; align-items: baseline; gap: 8px; }\n.ta-result-key { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); }\n.ta-result-entry:not(.ta-result-inline) > .ta-result-key { max-width: 100%; }\n.ta-result-atom { min-width: 0; font-family: var(--ta-mono); color: var(--ta-body); overflow-wrap: anywhere; }\n.ta-result-block { min-width: 0; }\n.ta-result-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--ta-mono); }\n.ta-result-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }\n.ta-result-chips > .ta-result-atom { padding: 0 6px; border-radius: 5px; background: var(--ta-hover); }\n.ta-result-shell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }\n.ta-result-stderr pre { color: var(--ta-muted); }\n.ta-result-badge { align-self: flex-start; padding: 0 6px; border-radius: 5px; font-family: var(--ta-mono); font-size: calc(11px * var(--ta-font-scale)); color: var(--ta-muted); background: var(--ta-hover); }\n.ta-result-empty { color: var(--ta-muted); }\n.ta-result-failure { display: flex; gap: 8px; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ta-muted); }\n.ta-result-script { align-self: flex-start; gap: 4px; margin-top: 0; }\n/* A command reads whole, wrapped, as the line above shows only its start. */\n.ta-result-command pre { white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-more { font-size: calc(12px * var(--ta-font-scale)); margin-bottom: 4px; color: var(--ta-muted); }\n.ta-status { position: relative; width: 12px; height: 12px; flex: none; display: inline-grid; place-items: center; }\n.ta-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ta-muted); }\n.ta-status-done::before { background: var(--ta-green); }\n.ta-status-error::before { background: color-mix(in srgb, var(--ta-red) 75%, transparent); }\n.ta-status-cancelled::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ta-muted); }\n/* At rest until its time comes again: still, not breathing as one that runs. */\n.ta-status-idle::before { background: color-mix(in srgb, var(--ta-blue) 45%, transparent); }\n/* A running dot breathes, like the light of a sleeping laptop: it works, it is not stuck. */\n.ta-status-running::before { background: var(--ta-blue); animation: ta-breathe 1.8s ease-in-out infinite; }\n@keyframes ta-breathe {\n 0%, 100% { transform: scale(0.8); opacity: 0.45; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ta-blue) 0%, transparent); }\n 50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ta-blue) 22%, transparent); }\n}\n.ta-status-thought::before { background: var(--ta-border-field); }\n.ta-diff { font-family: var(--ta-mono); font-size: calc(12px * var(--ta-font-scale)); border: 1px solid var(--ta-border); border-radius: 8px; overflow: auto; max-height: 400px; background: var(--ta-code); line-height: 1.6; }\n.ta-diff-line { display: grid; grid-template-columns: 42px 16px 1fr; white-space: pre; }\n.ta-diff-number { color: var(--ta-muted); text-align: right; padding-right: 8px; user-select: none; opacity: 0.7; }\n.ta-diff-sign { color: var(--ta-muted); user-select: none; }\n.ta-diff-add { background: var(--ta-add); }\n.ta-diff-add .ta-diff-sign { color: var(--ta-green); }\n.ta-diff-remove { background: var(--ta-remove); }\n.ta-diff-remove .ta-diff-sign { color: var(--ta-red); }\n.ta-diff-gap { color: var(--ta-muted); }\n.ta-add { color: var(--ta-green); }\n.ta-remove { color: var(--ta-red); }\n\n/* Dialogs */\n.ta-dialog { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--ta-shadow-composer); }\n.ta-dialog-title { font-weight: 600; }\n.ta-dialog-message { margin: 0; white-space: pre-wrap; color: var(--ta-secondary); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }\n.ta-dialog-options { display: flex; flex-direction: column; gap: 4px; }\n.ta-option { text-align: left; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; transition: background 120ms; }\n.ta-option:hover, .ta-option:focus { background: var(--ta-hover); outline: none; }\n\n@keyframes ta-spin { to { transform: rotate(360deg); } }\n@keyframes ta-shimmer { to { background-position: -200% 0; } }\n@keyframes ta-pulse { 50% { opacity: 0.3; } }\n@keyframes ta-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }\n@keyframes ta-dino-blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }\n@keyframes ta-dino-pop { from { transform: scale(0.4); opacity: 0; } }\n@keyframes ta-in { from { transform: translateY(4px); opacity: 0; } }\n@keyframes ta-fade { from { opacity: 0; } }\n@keyframes ta-slide { from { transform: translateX(24px); opacity: 0; } }\n@keyframes ta-up { from { transform: translateY(100%); } }\n/* Not inside a diagram being drawn: Mermaid lays a flowchart out wrong when its elements have a transition. */\n:root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }\n\n@media (max-width: 860px), (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-lightbox-original { bottom: calc(66px + env(safe-area-inset-bottom)); }\n .ta-sending-body { max-width: 88%; }\n .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }\n .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-connection-when { display: none; }\n .ta-app:has(.ta-connection:not(.ta-connection-leaving)) .ta-toasts { top: calc(100px + env(safe-area-inset-top) + var(--ta-titlebar)); }\n .ta-narrow-only { display: inline-grid !important; }\n .ta-wide-only { display: none !important; }\n header.ta-narrow-only { display: flex !important; }\n .ta-nav { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; transform: translateX(-102%); transition: transform 240ms var(--ta-ease); box-shadow: var(--ta-shadow-pop); }\n .ta-nav-open .ta-nav { transform: none; }\n .ta-sidebar { width: min(280px, calc(88vw - 56px)); }\n .ta-scrim { display: block; position: fixed; inset: 0; z-index: 29; border: 0; padding: 0; background: rgba(0, 0, 0, 0.35); animation: ta-fade 160ms; }\n .ta-main-head { height: calc(52px + env(safe-area-inset-top)); padding: 0 6px; padding-top: env(safe-area-inset-top); }\n .ta-chat-col { padding: 0 14px; }\n .ta-msg-bubble, .ta-bubble, .ta-skill-use { max-width: 88%; }\n .ta-close { opacity: 1; }\n .ta-session-header { padding: 8px 14px; flex-wrap: wrap; }\n .ta-find { padding: 0 14px 8px; }\n .ta-session-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px; }\n /* The head of the conversation is the top of the screen: below the status bar of a phone. */\n .ta-main > .ta-session > .ta-session-header { padding-top: calc(6px + env(safe-area-inset-top)); }\n .ta-session-title .ta-path { display: none; }\n .ta-thread, .ta-bottom { padding-left: 14px; padding-right: 14px; }\n}\n\n";
@@ -61,6 +61,16 @@ button.ta-secret-chip { cursor: pointer; transition: background 120ms, color 120
61
61
  .ta-send-failed { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; min-height: 26px; margin-top: -4px; color: var(--ta-red); font-size: calc(12px * var(--ta-font-scale)); }
62
62
  .ta-send-failed .ta-link-button { padding: 2px 6px; font-size: inherit; color: var(--ta-secondary); }
63
63
  .ta-send-failed .ta-link-button:hover { color: var(--ta-text); }
64
+ /* A message of the user on its way (Sending): a spinner beside it, as a messenger has it; a red mark once it did not go. */
65
+ .ta-sending { display: flex; align-items: center; justify-content: flex-end; gap: 8px; align-self: stretch; min-width: 0; }
66
+ .ta-sending-body { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 1 auto; min-width: 0; max-width: 78%; }
67
+ .ta-sending-body > :is(.ta-bubble, .trm-files) { max-width: 100%; }
68
+ .ta-sending-mark { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }
69
+ .ta-sending-mark .ta-spinner { width: 15px; height: 15px; }
70
+ /* What goes at once never shows a spinner that only flickers: it comes after a moment. */
71
+ span.ta-sending-mark { animation: ta-busy-in 160ms 500ms both; }
72
+ button.ta-sending-mark { padding: 2px; border: 0; border-radius: 50%; background: none; color: var(--ta-red); cursor: pointer; }
73
+ button.ta-sending-mark:disabled { cursor: default; }
64
74
  .ta-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin-top: -4px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 120ms; }
65
75
  .ta-message:hover > .ta-footer, .ta-msg-user:hover > .ta-footer, .ta-msg-ta:hover > .ta-footer, .ta-footer:focus-within { opacity: 1; }
66
76
  @media (hover: none) { .ta-footer { opacity: 1; } }
@@ -369,6 +379,12 @@ div.ta-math-source { white-space: pre-wrap; text-align: left; padding: 8px 12px;
369
379
  .ta-lightbox-caption { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 120px); padding: 0 12px; border-radius: 999px; background: rgba(38, 38, 38, 0.72); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); line-height: calc(30px * var(--ta-font-scale)); transform: translateX(-50%); pointer-events: none; }
370
380
  .ta-lightbox-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
371
381
  .ta-lightbox-count { flex: none; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }
382
+ /* 查看原图 of a picture shown made smaller, at the bottom left as WeChat has it; over the bar of zoom on a phone. */
383
+ .ta-lightbox-original { position: absolute; left: calc(16px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: calc(34px * var(--ta-font-scale)); padding: 0 16px; border: 0; border-radius: 999px; background: rgba(38, 38, 38, 0.78); color: #f5f5f5; font-size: calc(13px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; cursor: pointer; transition: opacity 160ms; }
384
+ .ta-lightbox-original:hover:not(:disabled) { background: rgba(64, 64, 64, 0.92); }
385
+ .ta-lightbox-original:disabled { cursor: default; }
386
+ .ta-lightbox-original .ta-spinner { border-color: rgba(255, 255, 255, 0.3); border-top-color: #fff; }
387
+ .ta-lightbox[data-pulling] .ta-lightbox-original { opacity: 0; pointer-events: none; }
372
388
  .ta-thinking, .ta-summary { color: var(--ta-muted); border-left: 2px solid var(--ta-border); padding-left: 12px; font-size: calc(13px * var(--ta-font-scale)); }
373
389
  .ta-thinking summary, .ta-summary summary { cursor: pointer; font-size: calc(12.5px * var(--ta-font-scale)); user-select: none; }
374
390
  .ta-summary-line { font-size: calc(12.5px * var(--ta-font-scale)); }
@@ -496,6 +512,8 @@ button.ta-tool-title[aria-expanded='true'] .ta-tool-chevron { transform: rotate(
496
512
  :root[data-reduce-motion] :not([id^='ta-mermaid-'] *), :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
497
513
 
498
514
  @media ${DeviceMedia.COMPACT} {
515
+ .ta-lightbox-original { bottom: calc(66px + env(safe-area-inset-bottom)); }
516
+ .ta-sending-body { max-width: 88%; }
499
517
  .ta-toasts { top: calc(8px + env(safe-area-inset-top) + var(--ta-titlebar)); bottom: auto; left: 8px; right: 8px; width: auto; flex-direction: column-reverse; justify-content: flex-start; transition: top 200ms var(--ta-ease); }
500
518
  .ta-connection { top: calc(58px + env(safe-area-inset-top) + var(--ta-titlebar)); }
501
519
  .ta-connection-when { display: none; }
@@ -3,4 +3,4 @@
3
3
  * workbench over it. Where each rests; the finger moves them in between (device/sheet-swipe.ts), and what
4
4
  * a sheet covers moves 30% of the way and darkens a little, as on iOS.
5
5
  */
6
- export declare const PHONE_STYLE = "\n/* Its screens slide in by transforms, never by scrolling: clipped, so that a focus or a menu that opens near an edge never scrolls it sideways. */\n.ta-phone { position: relative; display: block; overflow: clip; background: var(--ta-side); --ta-sheet: transform 360ms cubic-bezier(0.32, 0.72, 0, 1); }\n.ta-phone-home, .ta-phone-screen, .ta-phone > .ta-editors-pane { position: absolute; inset: 0; will-change: transform; transition: var(--ta-sheet); }\n.ta-phone-home { display: flex; flex-direction: column; background: var(--ta-side); }\n.ta-phone-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-phone-page > .ta-sidebar, .ta-phone-page > .ta-main, .ta-phone-page > .ta-phone-stack > * > .ta-sidebar, .ta-phone-page > .ta-phone-stack > * > .ta-main { flex: 1; width: auto; min-height: 0; }\n.ta-phone-page > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-phone-page .ta-chats, .ta-phone-page .ta-side-view { border-right: 0; padding-bottom: 0; padding-left: calc(8px + env(safe-area-inset-left)); padding-right: calc(8px + env(safe-area-inset-right)); }\n.ta-phone-page .ta-settings-head, .ta-phone-screen .ta-settings-head { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }\n.ta-phone-screen { z-index: 2; display: flex; background: var(--ta-main); transform: translate3d(100%, 0, 0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12); }\n.ta-phone-screen > .ta-main { flex: 1; min-width: 0; }\n.ta-phone[data-screen] .ta-phone-home { transform: translate3d(-30%, 0, 0); }\n.ta-phone[data-screen] .ta-phone-screen { transform: none; }\n.ta-phone > .ta-editors-pane { z-index: 4; width: auto; min-width: 0; max-width: none; animation: none; transform: translate3d(100%, 0, 0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12); }\n.ta-phone[data-workbench] > .ta-editors-pane { transform: none; }\n.ta-phone[data-workbench][data-screen] .ta-phone-screen, .ta-phone[data-workbench]:not([data-screen]) .ta-phone-home { transform: translate3d(-30%, 0, 0); }\n/* What a sheet covers darkens a little, as on iOS (sheet-swipe.ts follows the finger with its opacity). */\n.ta-phone-dim { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.1); opacity: 0; pointer-events: none; transition: opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }\n.ta-phone-dim[data-for='workbench'] { z-index: 3; }\n.ta-phone[data-screen] > .ta-phone-dim[data-for='screen'], .ta-phone[data-workbench] > .ta-phone-dim[data-for='workbench'] { opacity: 1; }\n/*\n * A layer at rest out of sight is not drawn: its shadow would show at the edge of the screen, and the page\n * would paint what nobody sees. It goes once it has slid away, and is there at once to come in, or for a finger.\n */\n.ta-phone-screen, .ta-phone > .ta-editors-pane { visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone[data-screen] .ta-phone-screen, .ta-phone[data-workbench] > .ta-editors-pane { visibility: visible; transition: var(--ta-sheet); }\n.ta-phone[data-screen] .ta-phone-home, .ta-phone[data-workbench] .ta-phone-home { visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone[data-workbench][data-screen] .ta-phone-screen { visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n/*\n * While a finger moves a sheet, or the browser went back by itself (its own swipe was the animation), nothing slides on its own,\n * and what it uncovers is there: as specific as the rules of the layers at rest (style.spec.ts checks), so that the conversation\n * under the workbench shows while the workbench is put away.\n */\n:root[data-sheet-drag] .ta-phone > .ta-phone-home, :root[data-sheet-drag] .ta-phone > .ta-phone-screen, :root[data-sheet-drag] .ta-phone > .ta-editors-pane { visibility: visible; transition: none; }\n:root[data-sheet-drag] .ta-phone-dim { transition: none; }\n/*\n * A frame the page may not read (an HTML file, a PDF, the browser) keeps the touches on it: the left edge of the\n * workbench over it stays the page's, so that a swipe from there puts the workbench away, as iOS keeps its back\n * at the edge over web content. Frames it may read (Markdown) are listened to anywhere (sheet-swipe.ts).\n */\n.ta-phone > .ta-editors-pane .ta-editor-body:has(iframe) { position: relative; }\n.ta-phone > .ta-editors-pane .ta-editor-body:has(iframe)::before { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 24px; }\n/* A screen pushed over the screen (PhoneStack): a section of the settings over their list, as the screen over the tabs. */\n/* clip, not hidden: a focus or scrollIntoView inside must not scroll the level off-screen into view sideways */\n.ta-phone-stack { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; }\n.ta-phone-stack-base, .ta-phone-stack-top { position: absolute; inset: 0; display: flex; flex-direction: column; will-change: transform; transition: var(--ta-sheet); }\n.ta-phone-stack-top { z-index: 2; background: var(--ta-main); transform: translate3d(100%, 0, 0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12); visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-stack[data-open] > .ta-phone-stack-top { transform: none; visibility: visible; transition: var(--ta-sheet); }\n.ta-phone-stack[data-open] > .ta-phone-stack-base { transform: translate3d(-30%, 0, 0); visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-stack[data-open] > .ta-phone-dim { opacity: 1; }\n:root[data-sheet-drag] .ta-phone-stack-base, :root[data-sheet-drag] .ta-phone-stack-top { visibility: visible; transition: none; }\n/* The tabs: a finger's height above the home indicator; away while the keyboard is up. */\n.ta-tabbar { display: flex; flex: none; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border-top: 1px solid var(--ta-border-muted); background: var(--ta-side); }\n:root[data-keyboard] .ta-tabbar { display: none; }\n.ta-tabbar-item { flex: 1; min-width: 0; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); -webkit-tap-highlight-color: transparent; }\n.ta-tabbar-item > span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-tabbar-item.ta-active { color: var(--ta-text); font-weight: 600; }\n.ta-tabbar-item > .ta-tabbar-icon { position: relative; display: inline-grid; place-items: center; max-width: none; padding: 0; overflow: visible; }\n.ta-tabbar-dot { position: absolute; top: -1px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n/* A finger drags it off as a drop (UnseenDrop): a wider grip than it looks, and the drop drawn over the page meanwhile. */\n.ta-tabbar-dot.ta-draggable { touch-action: none; }\n.ta-tabbar-dot.ta-draggable::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }\n/* The same on the entry of the double on the rail of a computer, and on the avatar of a row. */\n.ta-rail-dot { top: 6px; right: 6px; }\n.ta-chat-dot.ta-draggable { touch-action: none; cursor: grab; }\n.ta-chat-dot.ta-draggable::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; }\n.ta-chat-line > .ta-chat-dot.ta-draggable { position: relative; }\n.ta-tabbar-dot[data-dragging], .ta-asks-badge[data-dragging], .ta-chat-dot[data-dragging] { visibility: hidden; }\n.ta-asks-badge.ta-draggable { pointer-events: auto; touch-action: none; cursor: grab; }\n.ta-asks-badge.ta-draggable::before { content: ''; position: absolute; inset: -8px; border-radius: 16px; }\n.ta-unseen-drag { position: fixed; inset: 0; z-index: 2147483000; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: var(--ta-yellow); }\n.ta-unseen-ring { fill: none; stroke: var(--ta-yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ta-unseen-ring 380ms ease-out forwards; }\n.ta-unseen-spark { transform-box: fill-box; transform-origin: center; animation: ta-unseen-spark 400ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }\n.ta-unseen-drag.ta-asks { fill: var(--ta-blue); }\n.ta-unseen-drag.ta-asks .ta-unseen-ring { stroke: var(--ta-blue); }\n@keyframes ta-unseen-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }\n@keyframes ta-unseen-spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }\n/* A row with a dot that the tab scrolled to (PhoneUtil.locate): lit up a moment. */\n[data-unseen][data-flash] { position: relative; }\n[data-unseen][data-flash]::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: color-mix(in srgb, var(--ta-yellow) 18%, transparent); pointer-events: none; animation: ta-unseen-flash 1s ease-out forwards; }\n@keyframes ta-unseen-flash { 0%, 35% { opacity: 1; } to { opacity: 0; } }\n[data-asks][data-flash] { position: relative; }\n[data-asks][data-flash]::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: color-mix(in srgb, var(--ta-blue) 16%, transparent); pointer-events: none; animation: ta-unseen-flash 1s ease-out forwards; }\n/* Sideways the height is short: the label beside the icon, as iOS lays its tabs out then. */\n@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-tabbar-item { height: 40px; flex-direction: row; gap: 6px; font-size: calc(12px * var(--ta-font-scale)); }\n}\n\n/*\n * Over the first tab (ta-launcher.md): the launcher lies under the home, which a pull down moves to a strip at\n * the bottom (device/pull-down.ts); the board comes over it from the right, as a screen does.\n */\n.ta-phone { --ta-peek: calc(72px + env(safe-area-inset-bottom)); }\n.ta-phone-home { z-index: 1; }\n.ta-phone-launcher { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ta-main); visibility: hidden; transition: visibility 0s 360ms; }\n/* The body moves (and so holds what is fixed in it, as menus); what scrolls is inside it. */\n.ta-phone-launcher-body { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translate3d(0, -36px, 0) scale(0.94); transform-origin: 50% 0; will-change: transform, opacity; transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1), opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }\n.ta-phone-launcher .ta-launcher-scroll { padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(var(--ta-peek) + 20px) calc(16px + env(safe-area-inset-left)); }\n.ta-phone-launcher .ta-launcher-search-head { padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left)); }\n.ta-phone-launcher .ta-launcher-search-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }\n:root[data-keyboard] .ta-phone-launcher .ta-launcher-search-body { padding-bottom: calc(16px + var(--ta-keyboard, 0px)); }\n/* Searching, the home goes all the way down: the page of the search has the whole screen. */\n.ta-phone[data-surface='launcher'][data-surface-stack] .ta-phone-home { transform: translate3d(0, 100%, 0); box-shadow: none; }\n.ta-phone[data-surface='launcher'][data-surface-stack] .ta-phone-peek { visibility: hidden; pointer-events: none; }\n.ta-phone[data-surface='launcher'] .ta-phone-launcher { visibility: visible; transition: none; }\n.ta-phone[data-surface='launcher'] .ta-phone-launcher-body { opacity: 1; transform: none; }\n.ta-phone[data-surface='launcher'] .ta-phone-home { transform: translate3d(0, calc(100% - var(--ta-peek)), 0); }\n.ta-phone[data-surface='launcher'] .ta-phone-home, :root[data-pull] .ta-phone-home { overflow: hidden; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12); }\n:root[data-pull] .ta-phone-launcher { visibility: visible; transition: none; }\n:root[data-pull] .ta-phone-launcher-body, :root[data-pull] .ta-phone-home, :root[data-sheet-drag] .ta-phone-board { transition: none; }\n.ta-phone-peek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: var(--ta-peek); padding: 0; border: 0; background: transparent; visibility: hidden; pointer-events: none; -webkit-tap-highlight-color: transparent; }\n.ta-phone-peek::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; border-radius: 2px; background: var(--ta-border-field); transform: translateX(-50%); }\n.ta-phone[data-surface='launcher'] .ta-phone-peek { visibility: visible; pointer-events: auto; }\n/* Over the screen, which a drag of it shows at the right edge with its shadow. */\n.ta-phone-board { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: var(--ta-side); transform: translate3d(-100%, 0, 0); box-shadow: 12px 0 32px rgba(0, 0, 0, 0.12); will-change: transform; visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-board .ta-board-head { padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left)); }\n.ta-phone-board .ta-board-body { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }\n.ta-phone[data-surface='board'] .ta-phone-board { transform: none; visibility: visible; transition: var(--ta-sheet); }\n.ta-phone[data-surface='board'] .ta-phone-home { transform: translate3d(30%, 0, 0); visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-dim[data-for='board'] { z-index: 1; }\n/* The board moved by a finger: the screen and the workbench off to the right stay hidden, their shadows too. */\n:root[data-sheet-drag='board'] .ta-phone > .ta-phone-screen, :root[data-sheet-drag='board'] .ta-phone > .ta-editors-pane { visibility: hidden; }\n/* The search of the launcher put away is never seen, whatever sheet a finger moves. */\n.ta-phone-launcher[inert] .ta-phone-stack-top { visibility: hidden !important; }\n.ta-phone[data-surface='board'] > .ta-phone-dim[data-for='board'] { opacity: 1; }\n\n/* A chat on a phone: its row is a SwipeRow (style/device.ts). */\n.ta-phone .ta-chat-item:active { background: var(--ta-hover); }\n";
6
+ export declare const PHONE_STYLE = "\n/* Its screens slide in by transforms, never by scrolling: clipped, so that a focus or a menu that opens near an edge never scrolls it sideways. */\n.ta-phone { position: relative; display: block; overflow: clip; background: var(--ta-side); --ta-sheet: transform 360ms cubic-bezier(0.32, 0.72, 0, 1); }\n.ta-phone-home, .ta-phone-screen, .ta-phone > .ta-editors-pane { position: absolute; inset: 0; will-change: transform; transition: var(--ta-sheet); }\n.ta-phone-home { display: flex; flex-direction: column; background: var(--ta-side); }\n.ta-phone-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }\n.ta-phone-page > .ta-sidebar, .ta-phone-page > .ta-main, .ta-phone-page > .ta-phone-stack > * > .ta-sidebar, .ta-phone-page > .ta-phone-stack > * > .ta-main { flex: 1; width: auto; min-height: 0; }\n.ta-phone-page > .ta-phone-stack > .ta-phone-stack-top { background: var(--ta-side); }\n.ta-phone-page .ta-chats, .ta-phone-page .ta-side-view { border-right: 0; padding-bottom: 0; padding-left: calc(8px + env(safe-area-inset-left)); padding-right: calc(8px + env(safe-area-inset-right)); }\n.ta-phone-page .ta-settings-head, .ta-phone-screen .ta-settings-head { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }\n.ta-phone-screen { z-index: 2; display: flex; background: var(--ta-main); transform: translate3d(100%, 0, 0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12); }\n.ta-phone-screen > .ta-main { flex: 1; min-width: 0; }\n.ta-phone[data-screen] .ta-phone-home { transform: translate3d(-30%, 0, 0); }\n.ta-phone[data-screen] .ta-phone-screen { transform: none; }\n.ta-phone > .ta-editors-pane { z-index: 4; width: auto; min-width: 0; max-width: none; animation: none; transform: translate3d(100%, 0, 0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12); }\n.ta-phone[data-workbench] > .ta-editors-pane { transform: none; }\n.ta-phone[data-workbench][data-screen] .ta-phone-screen, .ta-phone[data-workbench]:not([data-screen]) .ta-phone-home { transform: translate3d(-30%, 0, 0); }\n/* What a sheet covers darkens a little, as on iOS (sheet-swipe.ts follows the finger with its opacity). */\n.ta-phone-dim { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.1); opacity: 0; pointer-events: none; transition: opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }\n.ta-phone-dim[data-for='workbench'] { z-index: 3; }\n.ta-phone[data-screen] > .ta-phone-dim[data-for='screen'], .ta-phone[data-workbench] > .ta-phone-dim[data-for='workbench'] { opacity: 1; }\n/*\n * A layer at rest out of sight is not drawn: its shadow would show at the edge of the screen, and the page\n * would paint what nobody sees. It goes once it has slid away, and is there at once to come in, or for a finger.\n */\n.ta-phone-screen, .ta-phone > .ta-editors-pane { visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone[data-screen] .ta-phone-screen, .ta-phone[data-workbench] > .ta-editors-pane { visibility: visible; transition: var(--ta-sheet); }\n.ta-phone[data-screen] .ta-phone-home, .ta-phone[data-workbench] .ta-phone-home { visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone[data-workbench][data-screen] .ta-phone-screen { visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n/*\n * While a finger moves a sheet, or the browser went back by itself (its own swipe was the animation), nothing slides on its own,\n * and what it uncovers is there: as specific as the rules of the layers at rest (style.spec.ts checks), so that the conversation\n * under the workbench shows while the workbench is put away.\n */\n:root[data-sheet-drag] .ta-phone > .ta-phone-home, :root[data-sheet-drag] .ta-phone > .ta-phone-screen, :root[data-sheet-drag] .ta-phone > .ta-editors-pane { visibility: visible; transition: none; }\n:root[data-sheet-drag] .ta-phone-dim { transition: none; }\n/*\n * A frame the page may not read (an HTML file, a PDF, the browser) keeps the touches on it: the left edge of the\n * workbench over it stays the page's, so that a swipe from there puts the workbench away, as iOS keeps its back\n * at the edge over web content. Frames it may read (Markdown) are listened to anywhere (sheet-swipe.ts).\n */\n.ta-phone > .ta-editors-pane .ta-editor-body:has(iframe) { position: relative; }\n.ta-phone > .ta-editors-pane .ta-editor-body:has(iframe)::before { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 24px; }\n/* A screen pushed over the screen (PhoneStack): a section of the settings over their list, as the screen over the tabs. */\n/* clip, not hidden: a focus or scrollIntoView inside must not scroll the level off-screen into view sideways */\n.ta-phone-stack { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; }\n.ta-phone-stack-base, .ta-phone-stack-top { position: absolute; inset: 0; display: flex; flex-direction: column; will-change: transform; transition: var(--ta-sheet); }\n.ta-phone-stack-top { z-index: 2; background: var(--ta-main); transform: translate3d(100%, 0, 0); box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12); visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-stack[data-open] > .ta-phone-stack-top { transform: none; visibility: visible; transition: var(--ta-sheet); }\n.ta-phone-stack[data-open] > .ta-phone-stack-base { transform: translate3d(-30%, 0, 0); visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-stack[data-open] > .ta-phone-dim { opacity: 1; }\n:root[data-sheet-drag] .ta-phone-stack-base, :root[data-sheet-drag] .ta-phone-stack-top { visibility: visible; transition: none; }\n/* The tabs: a finger's height above the home indicator; away while the keyboard is up. */\n.ta-tabbar { display: flex; flex: none; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border-top: 1px solid var(--ta-border-muted); background: var(--ta-side); }\n:root[data-keyboard] .ta-tabbar { display: none; }\n.ta-tabbar-item { flex: 1; min-width: 0; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--ta-muted); font-size: calc(10.5px * var(--ta-font-scale)); -webkit-tap-highlight-color: transparent; }\n.ta-tabbar-item > span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.ta-tabbar-item.ta-active { color: var(--ta-text); font-weight: 600; }\n.ta-tabbar-item > .ta-tabbar-icon { position: relative; display: inline-grid; place-items: center; max-width: none; padding: 0; overflow: visible; }\n.ta-tabbar-dot { position: absolute; top: -1px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); box-shadow: 0 0 0 2px var(--ta-side); }\n/* A finger drags it off as a drop (UnseenDrop): a wider grip than it looks, and the drop drawn over the page meanwhile. */\n.ta-tabbar-dot.ta-draggable { touch-action: none; }\n.ta-tabbar-dot.ta-draggable::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }\n/* The same on the entry of the double on the rail of a computer, and on the avatar of a row. */\n.ta-rail-dot { top: 6px; right: 6px; }\n.ta-chat-dot.ta-draggable { touch-action: none; cursor: grab; }\n.ta-chat-dot.ta-draggable::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; }\n.ta-chat-line > .ta-chat-dot.ta-draggable { position: relative; }\n.ta-tabbar-dot[data-dragging], .ta-asks-badge[data-dragging], .ta-chat-dot[data-dragging] { visibility: hidden; }\n.ta-asks-badge.ta-draggable { pointer-events: auto; touch-action: none; cursor: grab; }\n.ta-asks-badge.ta-draggable::before { content: ''; position: absolute; inset: -8px; border-radius: 16px; }\n.ta-unseen-drag { position: fixed; inset: 0; z-index: 2147483000; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: var(--ta-yellow); }\n.ta-unseen-ring { fill: none; stroke: var(--ta-yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ta-unseen-ring 380ms ease-out forwards; }\n.ta-unseen-spark { transform-box: fill-box; transform-origin: center; animation: ta-unseen-spark 400ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }\n.ta-unseen-drag.ta-asks { fill: var(--ta-blue); }\n.ta-unseen-drag.ta-asks .ta-unseen-ring { stroke: var(--ta-blue); }\n.ta-unseen-drag.ta-people { fill: var(--ta-badge); }\n.ta-unseen-drag.ta-people .ta-unseen-ring { stroke: var(--ta-badge); }\n@keyframes ta-unseen-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }\n@keyframes ta-unseen-spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }\n/* A row with a dot that the tab scrolled to (PhoneUtil.locate): lit up a moment. */\n[data-unseen][data-flash] { position: relative; }\n[data-unseen][data-flash]::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: color-mix(in srgb, var(--ta-yellow) 18%, transparent); pointer-events: none; animation: ta-unseen-flash 1s ease-out forwards; }\n@keyframes ta-unseen-flash { 0%, 35% { opacity: 1; } to { opacity: 0; } }\n[data-asks][data-flash] { position: relative; }\n[data-asks][data-flash]::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: color-mix(in srgb, var(--ta-blue) 16%, transparent); pointer-events: none; animation: ta-unseen-flash 1s ease-out forwards; }\n/* Sideways the height is short: the label beside the icon, as iOS lays its tabs out then. */\n@media (max-height: 500px) and (pointer: coarse), (max-height: 500px) and (hover: none) {\n .ta-tabbar-item { height: 40px; flex-direction: row; gap: 6px; font-size: calc(12px * var(--ta-font-scale)); }\n}\n\n/*\n * Over the first tab (ta-launcher.md): the launcher lies under the home, which a pull down moves to a strip at\n * the bottom (device/pull-down.ts); the board comes over it from the right, as a screen does.\n */\n.ta-phone { --ta-peek: calc(72px + env(safe-area-inset-bottom)); }\n.ta-phone-home { z-index: 1; }\n.ta-phone-launcher { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--ta-main); visibility: hidden; transition: visibility 0s 360ms; }\n/* The body moves (and so holds what is fixed in it, as menus); what scrolls is inside it. */\n.ta-phone-launcher-body { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translate3d(0, -36px, 0) scale(0.94); transform-origin: 50% 0; will-change: transform, opacity; transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1), opacity 360ms cubic-bezier(0.32, 0.72, 0, 1); }\n.ta-phone-launcher .ta-launcher-scroll { padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(var(--ta-peek) + 20px) calc(16px + env(safe-area-inset-left)); }\n.ta-phone-launcher .ta-launcher-search-head { padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left)); }\n.ta-phone-launcher .ta-launcher-search-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }\n:root[data-keyboard] .ta-phone-launcher .ta-launcher-search-body { padding-bottom: calc(16px + var(--ta-keyboard, 0px)); }\n/* Searching, the home goes all the way down: the page of the search has the whole screen. */\n.ta-phone[data-surface='launcher'][data-surface-stack] .ta-phone-home { transform: translate3d(0, 100%, 0); box-shadow: none; }\n.ta-phone[data-surface='launcher'][data-surface-stack] .ta-phone-peek { visibility: hidden; pointer-events: none; }\n.ta-phone[data-surface='launcher'] .ta-phone-launcher { visibility: visible; transition: none; }\n.ta-phone[data-surface='launcher'] .ta-phone-launcher-body { opacity: 1; transform: none; }\n.ta-phone[data-surface='launcher'] .ta-phone-home { transform: translate3d(0, calc(100% - var(--ta-peek)), 0); }\n.ta-phone[data-surface='launcher'] .ta-phone-home, :root[data-pull] .ta-phone-home { overflow: hidden; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12); }\n:root[data-pull] .ta-phone-launcher { visibility: visible; transition: none; }\n:root[data-pull] .ta-phone-launcher-body, :root[data-pull] .ta-phone-home, :root[data-sheet-drag] .ta-phone-board { transition: none; }\n.ta-phone-peek { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: var(--ta-peek); padding: 0; border: 0; background: transparent; visibility: hidden; pointer-events: none; -webkit-tap-highlight-color: transparent; }\n.ta-phone-peek::before { content: ''; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; border-radius: 2px; background: var(--ta-border-field); transform: translateX(-50%); }\n.ta-phone[data-surface='launcher'] .ta-phone-peek { visibility: visible; pointer-events: auto; }\n/* Over the screen, which a drag of it shows at the right edge with its shadow. */\n.ta-phone-board { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; background: var(--ta-side); transform: translate3d(-100%, 0, 0); box-shadow: 12px 0 32px rgba(0, 0, 0, 0.12); will-change: transform; visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-board .ta-board-head { padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left)); }\n.ta-phone-board .ta-board-body { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }\n.ta-phone[data-surface='board'] .ta-phone-board { transform: none; visibility: visible; transition: var(--ta-sheet); }\n.ta-phone[data-surface='board'] .ta-phone-home { transform: translate3d(30%, 0, 0); visibility: hidden; transition: var(--ta-sheet), visibility 0s 360ms; }\n.ta-phone-dim[data-for='board'] { z-index: 1; }\n/* The board moved by a finger: the screen and the workbench off to the right stay hidden, their shadows too. */\n:root[data-sheet-drag='board'] .ta-phone > .ta-phone-screen, :root[data-sheet-drag='board'] .ta-phone > .ta-editors-pane { visibility: hidden; }\n/* The search of the launcher put away is never seen, whatever sheet a finger moves. */\n.ta-phone-launcher[inert] .ta-phone-stack-top { visibility: hidden !important; }\n.ta-phone[data-surface='board'] > .ta-phone-dim[data-for='board'] { opacity: 1; }\n\n/* A chat on a phone: its row is a SwipeRow (style/device.ts). */\n.ta-phone .ta-chat-item:active { background: var(--ta-hover); }\n";
@@ -81,6 +81,8 @@ export const PHONE_STYLE = `
81
81
  .ta-unseen-spark { transform-box: fill-box; transform-origin: center; animation: ta-unseen-spark 400ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
82
82
  .ta-unseen-drag.ta-asks { fill: var(--ta-blue); }
83
83
  .ta-unseen-drag.ta-asks .ta-unseen-ring { stroke: var(--ta-blue); }
84
+ .ta-unseen-drag.ta-people { fill: var(--ta-badge); }
85
+ .ta-unseen-drag.ta-people .ta-unseen-ring { stroke: var(--ta-badge); }
84
86
  @keyframes ta-unseen-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
85
87
  @keyframes ta-unseen-spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }
86
88
  /* A row with a dot that the tab scrolled to (PhoneUtil.locate): lit up a moment. */
@@ -1,5 +1,6 @@
1
1
  import { type TaSlashCommand } from '@celljs/ta-protocol';
2
2
  import type { MessageId } from '../i18n/messages.js';
3
+ import type { SendWhileWorking } from '../settings/settings-protocol.js';
3
4
  /** What the text at the caret asks for: a command after `/` at the start, what follows it after its space, a file after `@`. */
4
5
  export interface ComposerTrigger {
5
6
  kind: 'command' | 'argument' | 'file';
@@ -34,6 +35,8 @@ export interface ComposerQueue {
34
35
  steering: string[];
35
36
  followUp: string[];
36
37
  }
38
+ /** How a message was sent from the box: Enter or the button, Alt+Enter, or Mod+Enter (⌘ on a Mac, Ctrl elsewhere). */
39
+ export type ComposerSendKey = 'enter' | 'alt' | 'now';
37
40
  /** A waiting message, with its place among those of its kind. */
38
41
  export interface ComposerQueued {
39
42
  kind: 'steering' | 'followUp';
@@ -77,8 +80,20 @@ export declare namespace ComposerUtil {
77
80
  }>(all: T[], query: string, limit?: number): T[];
78
81
  /** One button sends and stops: it stops while the agent works, or the conversation is compacted, and there is nothing to send. */
79
82
  function action(working: boolean, sendable: boolean, compacting?: boolean): 'send' | 'stop';
83
+ /**
84
+ * What a message sent while Ta works does: Mod+Enter sends it now; Alt+Enter queues it, or steers when queueing is
85
+ * what Enter does; Enter and the button do as the setting says.
86
+ */
87
+ function whileWorking(setting: SendWhileWorking, key: ComposerSendKey): SendWhileWorking;
88
+ /** How the keys of Alt and Mod are named before Enter in the words of the box: ⌥ and ⌘ on a Mac. */
89
+ function keyNames(mac: boolean): {
90
+ alt: string;
91
+ mod: string;
92
+ };
93
+ /** What the send button says while the agent works, with something to send. */
94
+ function sendTitleKey(setting: SendWhileWorking): MessageId;
80
95
  /** The empty box's words: on a finger only the short ones, which fit a phone beside the + and the buttons. */
81
- function placeholderKey(working: boolean, touch: boolean): MessageId;
96
+ function placeholderKey(working: boolean, touch: boolean, setting?: SendWhileWorking): MessageId;
82
97
  /** Why a pasted or dropped file is not taken, if it is not. */
83
98
  function rejectImage(file: {
84
99
  type: string;
@@ -101,6 +116,6 @@ export declare namespace ComposerUtil {
101
116
  function queued(queue: ComposerQueue): ComposerQueued[];
102
117
  /** The queue without one of its messages. */
103
118
  function without(queue: ComposerQueue, entry: ComposerQueued): ComposerQueue;
104
- /** The text of messages taken back out of the queue, before what is in the box. */
105
- function restore(queue: ComposerQueue, text: string): string;
119
+ /** The text of messages taken back out of the queue, before what is in the box, or after it (`after`). */
120
+ function restore(queue: ComposerQueue, text: string, after?: boolean): string;
106
121
  }
@@ -87,10 +87,35 @@ export var ComposerUtil;
87
87
  return (working || compacting) && !sendable ? 'stop' : 'send';
88
88
  }
89
89
  ComposerUtil.action = action;
90
+ /**
91
+ * What a message sent while Ta works does: Mod+Enter sends it now; Alt+Enter queues it, or steers when queueing is
92
+ * what Enter does; Enter and the button do as the setting says.
93
+ */
94
+ function whileWorking(setting, key) {
95
+ if (key === 'now') {
96
+ return 'interrupt';
97
+ }
98
+ if (key === 'alt') {
99
+ return setting === 'followUp' ? 'steer' : 'followUp';
100
+ }
101
+ return setting;
102
+ }
103
+ ComposerUtil.whileWorking = whileWorking;
104
+ /** How the keys of Alt and Mod are named before Enter in the words of the box: ⌥ and ⌘ on a Mac. */
105
+ function keyNames(mac) {
106
+ return mac ? { alt: '⌥', mod: '⌘' } : { alt: 'Alt+', mod: 'Ctrl+' };
107
+ }
108
+ ComposerUtil.keyNames = keyNames;
109
+ /** What the send button says while the agent works, with something to send. */
110
+ function sendTitleKey(setting) {
111
+ return `ta.composer.${setting}Title`;
112
+ }
113
+ ComposerUtil.sendTitleKey = sendTitleKey;
90
114
  /** The empty box's words: on a finger only the short ones, which fit a phone beside the + and the buttons. */
91
- function placeholderKey(working, touch) {
115
+ function placeholderKey(working, touch, setting = 'steer') {
92
116
  if (working) {
93
- return touch ? 'ta.composer.steerPlaceholderTouch' : 'ta.composer.steerPlaceholder';
117
+ const keys = { steer: 'steerPlaceholder', followUp: 'followUpPlaceholder', interrupt: 'interruptPlaceholder' };
118
+ return `ta.composer.${keys[setting]}${touch ? 'Touch' : ''}`;
94
119
  }
95
120
  return touch ? 'ta.composer.placeholderTouch' : 'ta.composer.placeholder';
96
121
  }
@@ -156,9 +181,10 @@ export var ComposerUtil;
156
181
  return { steering: rest('steering'), followUp: rest('followUp') };
157
182
  }
158
183
  ComposerUtil.without = without;
159
- /** The text of messages taken back out of the queue, before what is in the box. */
160
- function restore(queue, text) {
161
- return [...queue.steering, ...queue.followUp, text].filter(part => part.trim()).join('\n\n');
184
+ /** The text of messages taken back out of the queue, before what is in the box, or after it (`after`). */
185
+ function restore(queue, text, after = false) {
186
+ const taken = [...queue.steering, ...queue.followUp];
187
+ return (after ? [text, ...taken] : [...taken, text]).filter(part => part.trim()).join('\n\n');
162
188
  }
163
189
  ComposerUtil.restore = restore;
164
190
  })(ComposerUtil || (ComposerUtil = {}));
@@ -8,7 +8,9 @@ export type DesktopFeature = 'webview' | 'debugWebview'
8
8
  /** It pins the window of a video call above every window, or not (callWindowPin). */
9
9
  | 'callWindowPin'
10
10
  /** It installs pages as apps of the computer, each with a window of its own (docs/design/ta-install-as-app.md). */
11
- | 'apps';
11
+ | 'apps'
12
+ /** It shows a number on its icon in the Dock (macOS) or the launcher (Linux): the messages of people unseen (badge). */
13
+ | 'badge';
12
14
  /** A page installed as an app of the computer. */
13
15
  export interface DesktopApp {
14
16
  /** The id of the page, as `ui.showView` takes it. */
@@ -123,6 +125,11 @@ export declare namespace DesktopUtil {
123
125
  /** The sign-ins of the user's browsers, where Ta Desktop can read them (macOS, Windows). */
124
126
  /** Tells Ta Desktop a call goes on, or ended: it does not restart under it. None outside Ta Desktop. */
125
127
  function calling(scope?: object): ((active: boolean) => void) | undefined;
128
+ /**
129
+ * Sets the number on the icon of Ta Desktop, as a messenger's: the messages of people the user has not seen; 0 takes
130
+ * it off. None outside Ta Desktop, nor in an older one.
131
+ */
132
+ function badge(scope?: object): ((count: number) => void) | undefined;
126
133
  /**
127
134
  * Whether Ta Desktop pins the window of a video call above every window, after pinning or unpinning it when
128
135
  * `pinned` is given; it keeps the choice for the next call. None outside Ta Desktop, nor in an older one.
@@ -42,6 +42,16 @@ export var DesktopUtil;
42
42
  return has('call', scope) && typeof call === 'function' ? active => void Promise.resolve(call(active)).catch(() => undefined) : undefined;
43
43
  }
44
44
  DesktopUtil.calling = calling;
45
+ /**
46
+ * Sets the number on the icon of Ta Desktop, as a messenger's: the messages of people the user has not seen; 0 takes
47
+ * it off. None outside Ta Desktop, nor in an older one.
48
+ */
49
+ function badge(scope = globalThis) {
50
+ var _a;
51
+ const set = (_a = scope.taDesktop) === null || _a === void 0 ? void 0 : _a.badge;
52
+ return has('badge', scope) && typeof set === 'function' ? count => void Promise.resolve(set(count)).catch(() => undefined) : undefined;
53
+ }
54
+ DesktopUtil.badge = badge;
45
55
  /**
46
56
  * Whether Ta Desktop pins the window of a video call above every window, after pinning or unpinning it when
47
57
  * `pinned` is given; it keeps the choice for the next call. None outside Ta Desktop, nor in an older one.
@@ -4,10 +4,14 @@ export interface ImageShrinkLimits {
4
4
  side: number;
5
5
  bytes: number;
6
6
  }
7
- /** A picture as an extension gets it from the box: its type, base64 and size in pixels. */
7
+ /** A picture as an extension gets it from the box: its type, base64 and size in pixels; the picture picked when made smaller. */
8
8
  export interface ShrunkImage extends ComposerImage {
9
9
  width: number;
10
10
  height: number;
11
+ original?: ComposerImage & {
12
+ width: number;
13
+ height: number;
14
+ };
11
15
  }
12
16
  /** Pictures of the box made lighter in the page, for what keeps them or sends them on (a group chat, its agents). */
13
17
  export declare namespace ImageShrink {
@@ -45,7 +45,7 @@ export var ImageShrink;
45
45
  for (const quality of QUALITIES) {
46
46
  const data = canvas.toDataURL('image/jpeg', quality).replace(/^data:[^,]*,/, '');
47
47
  if (bytes(data) <= limits.bytes) {
48
- return { type: 'image', data, mimeType: 'image/jpeg', ...size };
48
+ return { type: 'image', data, mimeType: 'image/jpeg', ...size, original: { ...image, ...natural } };
49
49
  }
50
50
  }
51
51
  }
@@ -1,3 +1,4 @@
1
+ import { LocalRefs } from '@celljs/ta-protocol/lib/common/local-refs';
1
2
  /** A block of markdown. */
2
3
  export type MarkdownBlock = {
3
4
  type: 'paragraph';
@@ -151,9 +152,6 @@ export declare namespace MarkdownUtil {
151
152
  * show nothing, as `javascript:`; without `guess`, also for a target whose extension is not known.
152
153
  */
153
154
  function media(src: string, guess?: boolean): MediaKind | undefined;
154
- /**
155
- * The path of a file a target names: a relative or absolute path, or a `file:` URL of this machine;
156
- * undefined for URLs, which the page loads as they are.
157
- */
158
- function localPath(src: string): string | undefined;
155
+ /** The path of a file a target names (LocalRefs.localPath); undefined for URLs, which the page loads as they are. */
156
+ const localPath: typeof LocalRefs.localPath;
159
157
  }