@simai-studio/chat 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/LICENSE.md +182 -0
  2. package/README.md +67 -2
  3. package/dist/package-receipt.json +1553 -0
  4. package/dist/set.json +107 -0
  5. package/dist/smart/chat-composer/aliases.json +67 -0
  6. package/dist/smart/chat-composer/aliases.json.gz +0 -0
  7. package/dist/smart/chat-composer/component.json +698 -0
  8. package/dist/smart/chat-composer/component.json.gz +0 -0
  9. package/dist/smart/chat-composer/css/chat-composer.css +223 -0
  10. package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
  11. package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
  12. package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
  13. package/dist/smart/chat-composer/examples.json +550 -0
  14. package/dist/smart/chat-composer/examples.json.gz +0 -0
  15. package/dist/smart/chat-composer/js/chat-composer.js +1028 -0
  16. package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
  17. package/dist/smart/chat-composer/js/chat-composer.min.js +73 -0
  18. package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
  19. package/dist/smart/chat-composer/lang/en.json +28 -0
  20. package/dist/smart/chat-composer/lang/en.json.gz +0 -0
  21. package/dist/smart/chat-composer/lang/ru.json +28 -0
  22. package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
  23. package/dist/smart/chat-composer/probe.json +416 -0
  24. package/dist/smart/chat-composer/probe.json.gz +0 -0
  25. package/dist/smart/chat-composer/smart.manifest.json +651 -0
  26. package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
  27. package/dist/smart/chat-composer/static/default/busy.html +20 -0
  28. package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
  29. package/dist/smart/chat-composer/static/default/disabled.html +20 -0
  30. package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
  31. package/dist/smart/chat-composer/static/default/files.html +99 -0
  32. package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
  33. package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
  34. package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
  35. package/dist/smart/chat-composer/static/default/reference.html +20 -0
  36. package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
  37. package/dist/smart/chat-composer/static/sheets.json +110 -0
  38. package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
  39. package/dist/smart/chat-composer/studio.fixture.json +18 -0
  40. package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
  41. package/dist/smart/chat-composer/studio.scenario.json +37 -0
  42. package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
  43. package/dist/smart/chat-composer/template/default.css +198 -0
  44. package/dist/smart/chat-composer/template/default.css.gz +0 -0
  45. package/dist/smart/chat-composer/template/default.js +109 -0
  46. package/dist/smart/chat-composer/template/default.js.gz +0 -0
  47. package/dist/smart/chat-composer/template/parts.js +89 -0
  48. package/dist/smart/chat-composer/template/parts.js.gz +0 -0
  49. package/dist/smart/chat-interlocutor/aliases.json +20 -0
  50. package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
  51. package/dist/smart/chat-interlocutor/component.json +436 -0
  52. package/dist/smart/chat-interlocutor/component.json.gz +0 -0
  53. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +72 -0
  54. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
  55. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
  56. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
  57. package/dist/smart/chat-interlocutor/examples.json +379 -0
  58. package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
  59. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
  60. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
  61. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
  62. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
  63. package/dist/smart/chat-interlocutor/lang/en.json +13 -0
  64. package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
  65. package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
  66. package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
  67. package/dist/smart/chat-interlocutor/probe.json +204 -0
  68. package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
  69. package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
  70. package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
  71. package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
  72. package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
  73. package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
  74. package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
  75. package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
  76. package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
  77. package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
  78. package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
  79. package/dist/smart/chat-interlocutor/static/sheets.json +110 -0
  80. package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
  81. package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
  82. package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
  83. package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
  84. package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
  85. package/dist/smart/chat-interlocutor/template/default.css +58 -0
  86. package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
  87. package/dist/smart/chat-interlocutor/template/default.js +43 -0
  88. package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
  89. package/dist/smart/chat-message/aliases.json +125 -0
  90. package/dist/smart/chat-message/aliases.json.gz +0 -0
  91. package/dist/smart/chat-message/component.json +850 -0
  92. package/dist/smart/chat-message/component.json.gz +0 -0
  93. package/dist/smart/chat-message/css/chat-message.css +2260 -0
  94. package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
  95. package/dist/smart/chat-message/css/chat-message.min.css +2 -0
  96. package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
  97. package/dist/smart/chat-message/examples.json +1626 -0
  98. package/dist/smart/chat-message/examples.json.gz +0 -0
  99. package/dist/smart/chat-message/js/chat-message.js +5859 -0
  100. package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
  101. package/dist/smart/chat-message/js/chat-message.min.js +15 -0
  102. package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
  103. package/dist/smart/chat-message/lang/en.json +176 -0
  104. package/dist/smart/chat-message/lang/en.json.gz +0 -0
  105. package/dist/smart/chat-message/lang/ru.json +180 -0
  106. package/dist/smart/chat-message/lang/ru.json.gz +0 -0
  107. package/dist/smart/chat-message/probe.json +1051 -0
  108. package/dist/smart/chat-message/probe.json.gz +0 -0
  109. package/dist/smart/chat-message/smart.manifest.json +824 -0
  110. package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
  111. package/dist/smart/chat-message/static/default/brief-card.html +2 -0
  112. package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
  113. package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
  114. package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
  115. package/dist/smart/chat-message/static/default/deliverables.html +2 -0
  116. package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
  117. package/dist/smart/chat-message/static/default/document.html +13 -0
  118. package/dist/smart/chat-message/static/default/document.html.gz +0 -0
  119. package/dist/smart/chat-message/static/default/failed.html +2 -0
  120. package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
  121. package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
  122. package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
  123. package/dist/smart/chat-message/static/default/limit.html +2 -0
  124. package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
  125. package/dist/smart/chat-message/static/default/proposal.html +40 -0
  126. package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
  127. package/dist/smart/chat-message/static/default/question.html +22 -0
  128. package/dist/smart/chat-message/static/default/question.html.gz +0 -0
  129. package/dist/smart/chat-message/static/default/reference.html +2 -0
  130. package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
  131. package/dist/smart/chat-message/static/default/steps.html +2 -0
  132. package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
  133. package/dist/smart/chat-message/static/default/stopped.html +2 -0
  134. package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
  135. package/dist/smart/chat-message/static/default/waiting.html +2 -0
  136. package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
  137. package/dist/smart/chat-message/static/person/person-own.html +2 -0
  138. package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
  139. package/dist/smart/chat-message/static/person/person-reply.html +2 -0
  140. package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
  141. package/dist/smart/chat-message/static/person/person.html +12 -0
  142. package/dist/smart/chat-message/static/person/person.html.gz +0 -0
  143. package/dist/smart/chat-message/static/sheets.json +452 -0
  144. package/dist/smart/chat-message/static/sheets.json.gz +0 -0
  145. package/dist/smart/chat-message/studio.fixture.json +27 -0
  146. package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
  147. package/dist/smart/chat-message/studio.scenario.json +22 -0
  148. package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
  149. package/dist/smart/chat-message/template/default.css +1805 -0
  150. package/dist/smart/chat-message/template/default.css.gz +0 -0
  151. package/dist/smart/chat-message/template/default.js +27 -0
  152. package/dist/smart/chat-message/template/default.js.gz +0 -0
  153. package/dist/smart/chat-message/template/person.js +11 -0
  154. package/dist/smart/chat-message/template/person.js.gz +0 -0
  155. package/dist/smart/chat-threads/aliases.json +174 -0
  156. package/dist/smart/chat-threads/aliases.json.gz +0 -0
  157. package/dist/smart/chat-threads/component.json +1240 -0
  158. package/dist/smart/chat-threads/component.json.gz +0 -0
  159. package/dist/smart/chat-threads/css/chat-threads.css +134 -0
  160. package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
  161. package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
  162. package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
  163. package/dist/smart/chat-threads/examples.json +689 -0
  164. package/dist/smart/chat-threads/examples.json.gz +0 -0
  165. package/dist/smart/chat-threads/js/chat-threads.js +859 -0
  166. package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
  167. package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
  168. package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
  169. package/dist/smart/chat-threads/lang/en.json +18 -0
  170. package/dist/smart/chat-threads/lang/en.json.gz +0 -0
  171. package/dist/smart/chat-threads/lang/ru.json +18 -0
  172. package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
  173. package/dist/smart/chat-threads/probe.json +406 -0
  174. package/dist/smart/chat-threads/probe.json.gz +0 -0
  175. package/dist/smart/chat-threads/smart.manifest.json +1159 -0
  176. package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
  177. package/dist/smart/chat-threads/static/default/activity.html +145 -0
  178. package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
  179. package/dist/smart/chat-threads/static/default/activity.skeleton.html +145 -0
  180. package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
  181. package/dist/smart/chat-threads/static/default/archive.html +58 -0
  182. package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
  183. package/dist/smart/chat-threads/static/default/archive.skeleton.html +58 -0
  184. package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
  185. package/dist/smart/chat-threads/static/default/avatars.html +116 -0
  186. package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
  187. package/dist/smart/chat-threads/static/default/avatars.skeleton.html +116 -0
  188. package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
  189. package/dist/smart/chat-threads/static/default/empty.html +50 -0
  190. package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
  191. package/dist/smart/chat-threads/static/default/loading.html +50 -0
  192. package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
  193. package/dist/smart/chat-threads/static/default/people.html +104 -0
  194. package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
  195. package/dist/smart/chat-threads/static/default/people.skeleton.html +104 -0
  196. package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
  197. package/dist/smart/chat-threads/static/default/reference.html +123 -0
  198. package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
  199. package/dist/smart/chat-threads/static/default/reference.skeleton.html +123 -0
  200. package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
  201. package/dist/smart/chat-threads/static/default/ungrouped.html +99 -0
  202. package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
  203. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +99 -0
  204. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
  205. package/dist/smart/chat-threads/static/sheets.json +503 -0
  206. package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
  207. package/dist/smart/chat-threads/studio.fixture.json +23 -0
  208. package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
  209. package/dist/smart/chat-threads/template/default.css +113 -0
  210. package/dist/smart/chat-threads/template/default.css.gz +0 -0
  211. package/dist/smart/chat-threads/template/default.js +62 -0
  212. package/dist/smart/chat-threads/template/default.js.gz +0 -0
  213. package/dist/smart/chat-window/aliases.json +395 -0
  214. package/dist/smart/chat-window/aliases.json.gz +0 -0
  215. package/dist/smart/chat-window/component.json +2819 -0
  216. package/dist/smart/chat-window/component.json.gz +0 -0
  217. package/dist/smart/chat-window/css/chat-window.css +1509 -0
  218. package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
  219. package/dist/smart/chat-window/css/chat-window.min.css +2 -0
  220. package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
  221. package/dist/smart/chat-window/examples.json +2798 -0
  222. package/dist/smart/chat-window/examples.json.gz +0 -0
  223. package/dist/smart/chat-window/js/chat-window.js +12780 -0
  224. package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
  225. package/dist/smart/chat-window/js/chat-window.min.js +1 -0
  226. package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
  227. package/dist/smart/chat-window/lang/en.json +212 -0
  228. package/dist/smart/chat-window/lang/en.json.gz +0 -0
  229. package/dist/smart/chat-window/lang/ru.json +218 -0
  230. package/dist/smart/chat-window/lang/ru.json.gz +0 -0
  231. package/dist/smart/chat-window/probe.json +2023 -0
  232. package/dist/smart/chat-window/probe.json.gz +0 -0
  233. package/dist/smart/chat-window/smart.manifest.json +2844 -0
  234. package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
  235. package/dist/smart/chat-window/static/default/archived.html +100 -0
  236. package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
  237. package/dist/smart/chat-window/static/default/embedded.html +125 -0
  238. package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
  239. package/dist/smart/chat-window/static/default/greeting.html +125 -0
  240. package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
  241. package/dist/smart/chat-window/static/default/people.html +104 -0
  242. package/dist/smart/chat-window/static/default/people.html.gz +0 -0
  243. package/dist/smart/chat-window/static/default/proposal.html +161 -0
  244. package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
  245. package/dist/smart/chat-window/static/default/reference.html +123 -0
  246. package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
  247. package/dist/smart/chat-window/static/default/waiting.html +123 -0
  248. package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
  249. package/dist/smart/chat-window/static/sheets.json +526 -0
  250. package/dist/smart/chat-window/static/sheets.json.gz +0 -0
  251. package/dist/smart/chat-window/studio.fixture.json +13 -0
  252. package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
  253. package/dist/smart/chat-window/studio.scenario.json +95 -0
  254. package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
  255. package/dist/smart/chat-window/template/default.css +1168 -0
  256. package/dist/smart/chat-window/template/default.css.gz +0 -0
  257. package/dist/smart/chat-window/template/default.js +12 -0
  258. package/dist/smart/chat-window/template/default.js.gz +0 -0
  259. package/dist/smart/rule.js +193 -0
  260. package/dist/smart/rule.js.gz +0 -0
  261. package/package.json +29 -4
@@ -0,0 +1,1168 @@
1
+ @layer sf.reset, sf.tokens, sf.base, sf.paint, sf.utilities, sf.components, sf.overrides, sf.states;
2
+ @layer sf.components {
3
+ /* sf-chat-window: the window's own nodes -- its shell (the conversations
4
+ beside the conversation, the field under it), the search above the list,
5
+ the greeting, the passing line, «Мои файлы» -- and how it tunes the parts
6
+ it places (sf-list-feed, sf-chat-threads) through their public
7
+ variables. Moved from simai/ui-chat (ui-chat 07bc988): chat-core's
8
+ smart.css, less the composer's and the interlocutor's rules, which went
9
+ with them, and the staff page's layout of the window's nodes
10
+ (src/staff/staff.css); the page keeps its own furniture (the skip link,
11
+ the scrim behind the phone's side panel, its buttons, the spending). The
12
+ visual grammar is ui-chat docs/design/SPEC.md §3 («Тихий документ»).
13
+
14
+ The nodes keep the 0.3 classes chat-shell__* and chat-files__*, which
15
+ pages style and test (component.json x-decisions classes). Since 1.7.0
16
+ the placement is the Framework's workspace layout (core.css
17
+ .sf-workspace, docs/developer/workspace-layout.md): the shell is the
18
+ workspace at the wide step h8, the side its list region, the conversation
19
+ its main, the preview its panel, and the page's rail -- its own node,
20
+ first in parts.shell -- its rail. This sheet only sizes and dresses the
21
+ regions; it places none of them, and the classes chat-shell--side-hidden,
22
+ chat-shell--side-open, chat-shell--preview and chat-shell--preview-sheet
23
+ are gone with the grid they placed (data-sf-workspace-list="hidden",
24
+ data-sf-workspace-view and data-sf-workspace-panel="open" say it now).
25
+ The window still toggles chat-shell--empty, chat-shell--files,
26
+ chat-shell--start and chat-shell--members.
27
+
28
+ The public variables (component.json css-variables) are read here and
29
+ never set, on the element or any ancestor:
30
+ --sf-chat-window-side-width the side panel's width
31
+ --sf-chat-window-side-color the side panel's surface
32
+ --sf-chat-window-width the reading column
33
+ --sf-chat-window-text-color the text
34
+ --sf-chat-window-muted-color meta lines, quiet controls
35
+ --sf-chat-window-border-color edges and dividers
36
+ Their fallbacks are the tokens ui-chat gave the same places; the local
37
+ --sf-chat-window--* tokens are set on the shell (.chat-shell). */
38
+ .chat-shell {
39
+ --sf-chat-window--side: var(--sf-chat-window-side-width, calc(var(--sf-f6) + var(--sf-a4)));
40
+ --sf-chat-window--side-surface: var(--sf-chat-window-side-color, var(--sf-surface-1));
41
+ --sf-chat-window--column: var(--sf-chat-window-width, var(--sf-layout-reading-width));
42
+ --sf-chat-window--gap: var(--sf-space-1\/3);
43
+ --sf-chat-window--gap-related: var(--sf-space-1\/2);
44
+ --sf-chat-window--gap-turn: var(--sf-space-1\/2);
45
+ --sf-chat-window--ink: var(--sf-chat-window-text-color, var(--sf-on-surface));
46
+ --sf-chat-window--ink-muted: var(--sf-chat-window-muted-color, var(--sf-on-surface-variant));
47
+ --sf-chat-window--fill: var(--sf-surface-container);
48
+ --sf-chat-window--edge: var(--sf-chat-window-border-color, var(--sf-outline-variant));
49
+ --sf-chat-window--line: var(--sf-px);
50
+ --sf-chat-window--touch: var(--sf-ui-2--control-height);
51
+ --sf-chat-window--ui-size: var(--sf-label-large--size);
52
+ --sf-chat-window--ui-height: var(--sf-label-large--height);
53
+ --sf-chat-window--meta-size: var(--sf-label-medium--size);
54
+ --sf-chat-window--meta-height: var(--sf-label-medium--height);
55
+ --sf-chat-window--card-radius: var(--sf-radius-2);
56
+ --sf-chat-window--nest-radius: var(--sf-radius--surface);
57
+ --sf-chat-window--nest-inset: 0px;
58
+ --sf-chat-window--greeting-max: var(--sf-g6);
59
+ /* The least height of an embedded window (ui-chat's 30rem, a step). */
60
+ --sf-chat-window--embedded-min: var(--sf-g5);
61
+ /* The source preview beside the conversation (1.2.0): two fifths of the
62
+ window between a column step and a reading measure. */
63
+ --sf-chat-window--preview: clamp(var(--sf-f6), 40%, var(--sf-g5));
64
+ /* The workspace's own public variables, from the window's: a page that
65
+ sets --sf-chat-window-side-width or --sf-chat-window-border-color moves
66
+ the region and its divider with it, and a page may still set
67
+ --sf-workspace-list, --sf-workspace-panel or --sf-workspace-rail on the
68
+ shell itself (its own rule is unlayered and outranks this one). */
69
+ --sf-workspace-list: var(--sf-chat-window--side);
70
+ --sf-workspace-panel: var(--sf-chat-window--preview);
71
+ --sf-workspace-divider-color: var(--sf-chat-window--edge);
72
+ }
73
+
74
+ /* sf-focus-ring: none -- the field's box, the «Мои файлы» heading and a
75
+ delete question clear their outline: they take the focus only from the
76
+ window (tabindex -1, never by Tab), to move the reader there, and the
77
+ controls inside them draw their own rings. */
78
+
79
+ .chat-shell .sf-chat-offscreen {
80
+ position: absolute;
81
+ inline-size: 1px;
82
+ block-size: 1px;
83
+ overflow: hidden;
84
+ clip-path: inset(50%);
85
+ white-space: nowrap;
86
+ }
87
+
88
+ /* --- the shell ------------------------------------------------------- */
89
+
90
+ /* The window owns the page's height; embedded, the host decides it (below).
91
+ Said on both classes: core's .sf-workspace gives every workspace its
92
+ parent's height and these two sheets are in one layer. */
93
+ .chat-shell.sf-workspace {
94
+ block-size: 100dvh;
95
+ }
96
+
97
+ /* Each region scrolls inside itself (the log, the list, the panel's body),
98
+ so the region itself never does: said over core's .sf-workspace > *. */
99
+ .sf-workspace > .chat-shell__side,
100
+ .sf-workspace > .chat-shell__main,
101
+ .sf-workspace > .chat-preview {
102
+ overflow: hidden;
103
+ }
104
+
105
+ .chat-shell__side {
106
+ display: flex;
107
+ flex-direction: column;
108
+ min-block-size: 0;
109
+ min-inline-size: 0;
110
+ background: var(--sf-chat-window--side-surface);
111
+ }
112
+
113
+ /* The region keeps the width (--sf-workspace-list), and takes the whole of
114
+ a narrow container; what is in it follows. */
115
+ .chat-shell__side .sf-thread-list { flex: 1; inline-size: 100%; }
116
+
117
+ /* A page put its close button here while the list slid over the
118
+ conversation; the narrow view goes back with .sf-workspace-back in main,
119
+ so there is nothing to close (1.7.0). */
120
+ .chat-shell__side-head { display: none; }
121
+
122
+ /* The search by title above the list (v1.1), on the list's width and inset. */
123
+ .chat-shell__search {
124
+ flex: none;
125
+ box-sizing: border-box;
126
+ inline-size: 100%;
127
+ padding: var(--sf-space-1\/3) var(--sf-space-1\/3) 0;
128
+ }
129
+
130
+ .chat-shell__search[hidden] { display: none; }
131
+
132
+ .chat-shell__search-field { inline-size: 100%; }
133
+
134
+ .chat-shell__search-input {
135
+ flex: 1;
136
+ min-inline-size: 0;
137
+ }
138
+
139
+ /* The field's own clear cross would be a second, smaller way to do what
140
+ Escape and an emptied field already do. */
141
+ .chat-shell__search-input::-webkit-search-cancel-button { display: none; }
142
+
143
+ .chat-shell__main {
144
+ position: relative;
145
+ display: flex;
146
+ flex-direction: column;
147
+ min-block-size: 0;
148
+ min-inline-size: 0;
149
+ }
150
+
151
+ .chat-shell__header {
152
+ display: flex;
153
+ align-items: center;
154
+ gap: var(--sf-space-1\/4);
155
+ min-block-size: calc(var(--sf-ui-1--control-height) + 2 * var(--sf-space-1\/3));
156
+ padding-inline: var(--sf-space-1\/3);
157
+ }
158
+
159
+ .chat-shell__header .sf-chat-interlocutor { min-inline-size: 0; }
160
+ .chat-shell__spacer { flex: 1; }
161
+
162
+ /* The way back to the list, first in main: the Framework shows it only in a
163
+ narrow container with main shown and a list to go back to, and answers
164
+ the press itself (.sf-workspace-back). */
165
+ .chat-shell__back { flex: none; color: var(--sf-chat-window--ink-muted); }
166
+
167
+ .chat-shell__header .sf-icon-button,
168
+ .chat-shell__side-head .sf-icon-button {
169
+ color: var(--sf-on-surface-variant);
170
+ }
171
+
172
+ .chat-shell__composer {
173
+ box-sizing: border-box;
174
+ inline-size: 100%;
175
+ max-inline-size: calc(var(--sf-chat-window--column) + 2 * var(--sf-space-3));
176
+ margin-inline: auto;
177
+ padding-inline: var(--sf-space-3);
178
+ padding-block: 0 var(--sf-space-1\/2);
179
+ display: flex;
180
+ flex-direction: column;
181
+ gap: var(--sf-space-1\/3);
182
+ outline: none;
183
+ }
184
+
185
+ /* An empty conversation: greeting, field and suggestions meet in the middle. */
186
+ .chat-shell--empty .chat-shell__main { justify-content: center; }
187
+ .chat-shell--empty .chat-shell__header { position: absolute; inset-inline: 0; inset-block-start: 0; }
188
+ .chat-shell--empty .sf-list-feed { flex: 0 0 auto; overflow: visible; }
189
+ .chat-shell--empty .chat-shell__composer { padding-block-end: 12vh; }
190
+
191
+ /* Between people the header says who this is. Before the views' rules: they hide it the same way. */
192
+ .chat-shell__head-who { display: contents; }
193
+ .chat-shell--people .chat-shell__head-who { display: flex; flex-direction: column; min-inline-size: 0; }
194
+ .chat-shell--people:not(.chat-shell--files, .chat-shell--start, .chat-shell--members) .chat-shell__thread-title { display: block !important; color: var(--sf-on-surface) !important; font-weight: 600; }
195
+ .chat-shell__thread-sub { overflow: hidden; color: var(--sf-on-surface-variant); font-size: var(--sf-label-medium--size); line-height: var(--sf-label-medium--height); text-overflow: ellipsis; white-space: nowrap; }
196
+ .chat-shell__thread-sub[hidden], .chat-shell__head-mark[hidden], .chat-shell--people sf-chat-interlocutor[hidden] { display: none !important; }
197
+ .chat-shell__head-mark { display: inline-flex; flex: none; margin-inline-end: var(--sf-space-1\/2); }
198
+ .chat-shell--start .chat-shell__head-mark, .chat-shell--members .chat-shell__head-mark, .chat-shell--files .chat-shell__head-mark,
199
+ .chat-shell--start .chat-shell__thread-sub, .chat-shell--members .chat-shell__thread-sub, .chat-shell--files .chat-shell__thread-sub { display: none !important; }
200
+
201
+ /* «Мои файлы» open (the window's chat-shell--files): they take the
202
+ conversation's place -- its log, field, title and whom it is with step
203
+ aside; the header with the page's buttons stays. The log's host is
204
+ display: contents (the Smart base's own style), so its root goes. */
205
+ .chat-shell--files .chat-shell__list > .sf-list-feed,
206
+ .chat-shell--files .chat-shell__composer,
207
+ .chat-shell--files .chat-shell__header .sf-chat-interlocutor,
208
+ .chat-shell--files .chat-shell__thread-title { display: none; }
209
+
210
+ /* The form of a new conversation and a group's members do the same without
211
+ the page's help. Important: this sheet is in a layer, and a page's own
212
+ unlayered layout of these nodes (staff.css: .chat-shell__composer {display:
213
+ flex}) would otherwise win. The window also makes them inert (syncViews). */
214
+ .chat-shell--start .chat-shell__list > .sf-list-feed,
215
+ .chat-shell--start .chat-shell__composer,
216
+ .chat-shell--start .chat-shell__find,
217
+ .chat-shell--start .chat-shell__header .sf-chat-interlocutor,
218
+ .chat-shell--start .chat-shell__thread-title,
219
+ .chat-shell--members .chat-shell__list > .sf-list-feed,
220
+ .chat-shell--members .chat-shell__composer,
221
+ .chat-shell--members .chat-shell__find,
222
+ .chat-shell--members .chat-shell__header .sf-chat-interlocutor,
223
+ .chat-shell--members .chat-shell__thread-title { display: none !important; }
224
+
225
+ .chat-shell__members-open[hidden] { display: none; }
226
+
227
+ .chat-shell__error { align-self: center; }
228
+
229
+ /* Embedded: the host page decides the height. */
230
+ .chat-shell.chat-shell--embedded {
231
+ block-size: 100%;
232
+ min-block-size: var(--sf-chat-window--embedded-min);
233
+ border: var(--sf-px) solid var(--sf-outline-variant);
234
+ border-radius: var(--sf-radius--surface);
235
+ overflow: hidden;
236
+ background: var(--sf-surface-0);
237
+ color: var(--sf-on-surface);
238
+ font-family: var(--sf-text--family);
239
+ }
240
+
241
+ /* Inside a framed host the field is not lifted again: an edge, no shadow (D-18). */
242
+ .chat-shell--embedded .sf-chat-composer__box { box-shadow: none; }
243
+
244
+ /* iOS zooms into a field under 16px; the list's field is no exception. */
245
+ @media (max-width: 1023px) {
246
+ .chat-shell__search-input { font-size: max(1rem, var(--sf-label-large--size)); }
247
+ }
248
+
249
+ @media (max-width: 599px) {
250
+ /* The field keeps the column's edges (D-10). */
251
+ .chat-shell__composer {
252
+ padding-block-end: max(var(--sf-space-1\/3), env(safe-area-inset-bottom));
253
+ }
254
+
255
+ .chat-shell--empty .chat-shell__composer { padding-block-end: 6vh; }
256
+ }
257
+
258
+ .chat-shell__thread-title {
259
+ display: none;
260
+ min-inline-size: 0;
261
+ overflow: hidden;
262
+ color: var(--sf-on-surface-variant);
263
+ font-size: var(--sf-label-large--size);
264
+ line-height: var(--sf-label-large--height);
265
+ text-overflow: ellipsis;
266
+ white-space: nowrap;
267
+ }
268
+
269
+ /* No list beside the conversation (a side panel, one conversation alone, or
270
+ a narrow container showing main): the header says its name. */
271
+ .chat-shell[data-sf-workspace-list='hidden'] .chat-shell__thread-title { display: block; }
272
+ .chat-shell--empty .chat-shell__thread-title { display: none; }
273
+
274
+ .chat-shell__status {
275
+ display: flex;
276
+ align-items: center;
277
+ justify-content: center;
278
+ gap: var(--sf-space-1\/3);
279
+ color: var(--sf-on-surface-variant);
280
+ font-size: var(--sf-label-large--size);
281
+ line-height: var(--sf-label-large--height);
282
+ }
283
+
284
+ .chat-shell__status:empty,
285
+ .chat-shell__status[hidden],
286
+ .chat-shell__suggestions[hidden] { display: none; }
287
+
288
+ .chat-shell__status--standing {
289
+ padding-block: var(--sf-space-1\/3);
290
+ padding-inline: var(--sf-space-1\/2);
291
+ border-radius: var(--sf-radius--surface);
292
+ background: var(--sf-surface-container);
293
+ }
294
+
295
+ .chat-shell__suggestions { margin-block-start: var(--sf-space-1\/2); }
296
+
297
+ /* Over a discussion (1.10.0): «В чат» and the message being discussed, two
298
+ lines at most -- the whole of it is a press away in the conversation. */
299
+ .chat-shell__thread-bar {
300
+ display: flex;
301
+ flex-direction: column;
302
+ align-items: flex-start;
303
+ gap: var(--sf-space-1\/4);
304
+ padding-block: var(--sf-space-1\/3);
305
+ padding-inline: var(--sf-space-1\/2);
306
+ border-block-end: var(--sf-chat-window--line) solid var(--sf-chat-window--edge);
307
+ }
308
+
309
+ .chat-shell__thread-bar[hidden] { display: none; }
310
+
311
+ .chat-shell__thread-root {
312
+ display: flex;
313
+ flex-direction: column;
314
+ gap: 0;
315
+ margin: 0;
316
+ padding-inline-start: var(--sf-space-1\/3);
317
+ border-inline-start: var(--sf-focus--width) solid var(--sf-chat-window--edge);
318
+ max-inline-size: 100%;
319
+ color: var(--sf-chat-window--ink-muted);
320
+ }
321
+
322
+ .chat-shell__thread-root-who { color: var(--sf-chat-window--ink); font-weight: var(--sf-font-weight-medium); }
323
+
324
+ .chat-shell__thread-root-text {
325
+ display: -webkit-box;
326
+ -webkit-line-clamp: 2;
327
+ -webkit-box-orient: vertical;
328
+ overflow: hidden;
329
+ overflow-wrap: anywhere;
330
+ }
331
+
332
+ .chat-shell__thread-root-text--deleted { font-style: italic; }
333
+
334
+ /* A narrow container shows one region at a time, so the name belongs to the
335
+ header there; the split width is the workspace's default (40rem). */
336
+ @container sf-workspace (width < 40rem) {
337
+ .chat-shell__thread-title { display: block; }
338
+ }
339
+
340
+ /* A phone has room for the assistant's name only. */
341
+ @media (max-width: 599px) {
342
+ .chat-shell__thread-title,
343
+ .chat-shell[data-sf-workspace-list='hidden'] .chat-shell__thread-title { display: none; }
344
+ }
345
+
346
+ /* --- the package's parts in the window ------------------------------ */
347
+
348
+ /* sf-list-feed (SIMAI Framework) and sf-chat-threads (this package) carry their
349
+ own layout; the window only tunes them through their public variables
350
+ to the chat's grammar (SPEC §3), so the conversation reads as it did when
351
+ the list was the chat's own: the chat's reading column, and a question
352
+ with its answer as one turn. The log groups by author, so one author's
353
+ messages in a row are a run and an answer after a question starts a new
354
+ one; the chat's rhythm is the other way round. */
355
+ .chat-shell .sf-list-feed {
356
+ --sf-list-feed--column: var(--sf-chat-window--column);
357
+ --sf-list-feed--gap-run: var(--sf-chat-window--gap-turn);
358
+ --sf-list-feed--gap-turn: var(--sf-chat-window--gap-turn);
359
+ }
360
+
361
+ .chat-shell .sf-list-feed__item--own + .sf-list-feed__item:not(.sf-list-feed__item--own) {
362
+ margin-block-start: var(--sf-chat-window--gap-related);
363
+ }
364
+
365
+ /* A row with a second line (another assistant's name, U-06) keeps the
366
+ chat's inset; one-line rows are the row height either way. */
367
+ .chat-shell .sf-thread-list__link { padding-block: var(--sf-space-1\/3); }
368
+
369
+ /* The chat's messages draw their own alignment and width. */
370
+ .chat-shell .sf-list-feed__item--own { align-items: stretch; }
371
+
372
+ /* A proposal's two answers are touch-sized where the pointer is a finger,
373
+ as every other control in a message is (D-09). */
374
+ @media (pointer: coarse) {
375
+ .sf-chat-message .sf-change-confirm__actions .sf-button {
376
+ min-inline-size: var(--sf-chat-window--touch);
377
+ min-block-size: var(--sf-chat-window--touch);
378
+ }
379
+ }
380
+
381
+ /* --- greeting -------------------------------------------------------- */
382
+
383
+ .chat-shell .sf-list-feed__empty {
384
+ display: flex;
385
+ flex-direction: column;
386
+ justify-content: flex-end;
387
+ padding-block: var(--sf-space-4) var(--sf-space-3);
388
+ }
389
+
390
+ .sf-chat-greeting {
391
+ display: flex;
392
+ flex-direction: column;
393
+ align-items: center;
394
+ gap: var(--sf-space-3);
395
+ text-align: center;
396
+ }
397
+
398
+ /* The greeting comes from the server and is often a sentence or two:
399
+ a calm lead, not a heading-sized paragraph. */
400
+ .sf-chat-greeting__title {
401
+ margin: 0;
402
+ max-inline-size: var(--sf-chat-window--greeting-max);
403
+ color: var(--sf-chat-window--ink);
404
+ font-size: var(--sf-text--size-2);
405
+ line-height: var(--sf-text--height-2);
406
+ font-weight: var(--sf-font-weight-regular);
407
+ text-wrap: balance;
408
+ }
409
+
410
+ /* Nothing open: a quiet line where the greeting stands, and no field. */
411
+ .sf-chat-unselected .sf-chat-greeting__title {
412
+ color: var(--sf-on-surface-variant);
413
+ font-size: var(--sf-text--size-1);
414
+ line-height: var(--sf-text--height-1);
415
+ }
416
+
417
+ .sf-chat-greeting__suggestions {
418
+ display: flex;
419
+ flex-wrap: wrap;
420
+ justify-content: center;
421
+ gap: var(--sf-chat-window--gap);
422
+ margin: 0;
423
+ padding: 0;
424
+ list-style: none;
425
+ }
426
+
427
+ .sf-chat-greeting__suggestion {
428
+ min-block-size: var(--sf-ui-1--control-height);
429
+ padding-inline: var(--sf-space-1);
430
+ border: var(--sf-chat-window--line) solid var(--sf-chat-window--edge);
431
+ border-radius: var(--sf-radius-circle);
432
+ background: transparent;
433
+ color: var(--sf-chat-window--ink);
434
+ font: inherit;
435
+ font-size: var(--sf-chat-window--ui-size);
436
+ line-height: var(--sf-chat-window--ui-height);
437
+ cursor: pointer;
438
+ transition: background-color var(--sf-duration-fast);
439
+ }
440
+
441
+ .sf-chat-greeting__suggestion:hover { background: var(--sf-surface-transparent-hover); }
442
+
443
+ /* --- the source preview (1.2.0) ---------------------------------------- */
444
+
445
+ /* The workspace's panel region (1.7.0): beside the conversation from the
446
+ wide step h8 (72rem -- the room the conversation kept before, the window
447
+ less its list), the Framework's drawer below it, over main at the inline
448
+ end, on the drawer's surface with its scrim, the other regions inert. The
449
+ window says only data-sf-workspace-panel="open" and measures nothing. */
450
+ .chat-preview {
451
+ display: flex;
452
+ flex-direction: column;
453
+ min-block-size: 0;
454
+ min-inline-size: 0;
455
+ background: var(--sf-surface-0);
456
+ color: var(--sf-chat-window--ink);
457
+ }
458
+
459
+ .chat-preview[hidden] { display: none; }
460
+
461
+ /* A drawer over a narrow container covers the conversation whole, as the
462
+ sheet did: a source is read in a column, not a strip. */
463
+ @container sf-workspace (width < 40rem) {
464
+ .chat-preview { --sf-workspace-panel: 100%; }
465
+ }
466
+
467
+ .chat-preview__head {
468
+ display: flex;
469
+ align-items: center;
470
+ gap: var(--sf-space-1\/4);
471
+ min-block-size: calc(var(--sf-ui-1--control-height) + 2 * var(--sf-space-1\/3));
472
+ padding-inline: var(--sf-space-1\/2) var(--sf-space-1\/3);
473
+ border-block-end: var(--sf-chat-window--line) solid var(--sf-chat-window--edge);
474
+ }
475
+
476
+ .chat-preview__back { display: none; flex: none; color: var(--sf-chat-window--ink-muted); }
477
+
478
+ /* While it is a drawer the way out is «Назад», as the sheet's was; beside
479
+ the conversation it is the close button. The width is the shell's wide
480
+ step (h8): a page that moves the step with sf-workspace--wide-* must say
481
+ these two rules again at its own width. */
482
+ @container sf-workspace (width < 72rem) {
483
+ .chat-preview__back { display: inline-flex; }
484
+ .chat-preview__close { display: none; }
485
+ }
486
+
487
+ .chat-preview__tab,
488
+ .chat-preview__close { flex: none; color: var(--sf-chat-window--ink-muted); }
489
+
490
+ .chat-preview__titles {
491
+ display: flex;
492
+ flex: 1;
493
+ flex-direction: column;
494
+ min-inline-size: 0;
495
+ padding-block: var(--sf-space-1\/3);
496
+ }
497
+
498
+ .chat-preview__title {
499
+ margin: 0;
500
+ overflow: hidden;
501
+ color: var(--sf-chat-window--ink);
502
+ font-size: var(--sf-chat-window--ui-size);
503
+ line-height: var(--sf-chat-window--ui-height);
504
+ font-weight: var(--sf-font-weight-medium);
505
+ text-overflow: ellipsis;
506
+ white-space: nowrap;
507
+ outline: none;
508
+ }
509
+
510
+ .chat-preview__meta {
511
+ margin: 0;
512
+ color: var(--sf-chat-window--ink-muted);
513
+ font-size: var(--sf-chat-window--meta-size);
514
+ line-height: var(--sf-chat-window--meta-height);
515
+ }
516
+
517
+ .chat-preview__meta[hidden] { display: none; }
518
+
519
+ .chat-preview__body {
520
+ display: flex;
521
+ flex: 1;
522
+ flex-direction: column;
523
+ min-block-size: 0;
524
+ overflow-y: auto;
525
+ padding: var(--sf-space-1) var(--sf-space-1\/2) var(--sf-space-2);
526
+ scrollbar-width: thin;
527
+ }
528
+
529
+ .chat-preview__text { max-inline-size: var(--sf-chat-window--column); }
530
+
531
+ .chat-preview__plain { white-space: pre-wrap; overflow-wrap: anywhere; }
532
+
533
+ /* The passage the answer leans on: the reading colour of a found match. */
534
+ .chat-preview__mark {
535
+ border-radius: var(--sf-radius--ui);
536
+ background: var(--sf-warning-container);
537
+ color: var(--sf-on-warning-container);
538
+ }
539
+
540
+ .chat-preview__note {
541
+ margin: 0;
542
+ color: var(--sf-chat-window--ink-muted);
543
+ }
544
+
545
+ .chat-preview__problem {
546
+ display: flex;
547
+ flex-direction: column;
548
+ align-items: flex-start;
549
+ gap: var(--sf-space-1\/2);
550
+ }
551
+
552
+ .chat-preview__frame {
553
+ flex: 1;
554
+ inline-size: 100%;
555
+ min-block-size: var(--sf-g4);
556
+ border: 0;
557
+ }
558
+
559
+ /* A document (1.12.0): the engine's page fills the panel edge to edge. */
560
+ .chat-preview--document .chat-preview__body {
561
+ padding: 0;
562
+ overflow: hidden;
563
+ }
564
+
565
+ .chat-preview__bar {
566
+ display: flex;
567
+ flex-wrap: wrap;
568
+ align-items: center;
569
+ gap: var(--sf-space-1\/3) var(--sf-space-1\/2);
570
+ padding: var(--sf-space-1\/3) var(--sf-space-1\/2);
571
+ border-block-end: 1px solid var(--sf-outline-variant);
572
+ }
573
+
574
+ .chat-preview__hint {
575
+ flex: 1 1 14em;
576
+ margin: 0;
577
+ color: var(--sf-on-surface-variant);
578
+ font-size: var(--sf-label-medium--size);
579
+ line-height: var(--sf-label-medium--height);
580
+ }
581
+
582
+ .chat-preview__download { text-decoration: none; margin-inline-start: auto; }
583
+
584
+ .chat-preview__frame--document { min-block-size: 0; }
585
+
586
+ @media (forced-colors: active) {
587
+ .chat-preview__mark { background: Mark; color: MarkText; }
588
+ }
589
+
590
+ @media (pointer: coarse) {
591
+ .chat-preview__head .sf-icon-button {
592
+ min-inline-size: var(--sf-chat-window--touch);
593
+ min-block-size: var(--sf-chat-window--touch);
594
+ }
595
+ }
596
+
597
+ /* --- «Мои файлы» (x-my-files) ------------------------------------------ */
598
+
599
+ /* The entry under the conversations is the list's own row command; open,
600
+ it is marked as the open row is. */
601
+ .chat-files__entry[aria-current='page'] { background: var(--sf-thread-list--current); }
602
+
603
+ /* What the page puts after it (Mirai24: the spending) keeps the step the
604
+ list's own foot keeps between its rows and its note. */
605
+ .chat-shell .sf-thread-list__extra:has(.chat-files__entry) {
606
+ display: flex;
607
+ flex-direction: column;
608
+ gap: var(--sf-space-1\/3);
609
+ }
610
+
611
+ /* Open, the view takes the conversation's place (chat-shell--files); the
612
+ page's layout, which places the conversation, puts it aside. */
613
+
614
+ .chat-files {
615
+ flex: 1;
616
+ min-block-size: 0;
617
+ overflow-y: auto;
618
+ container-type: inline-size;
619
+ padding-inline: var(--sf-space-3);
620
+ padding-block: 0 var(--sf-space-3);
621
+ color: var(--sf-chat-window--ink);
622
+ font-size: var(--sf-chat-window--ui-size);
623
+ line-height: var(--sf-chat-window--ui-height);
624
+ scrollbar-width: thin;
625
+ }
626
+
627
+ .chat-files[hidden] { display: none; }
628
+
629
+ /* The chat's reading column, as the conversation it stands in for. */
630
+ .chat-files > * {
631
+ box-sizing: border-box;
632
+ max-inline-size: var(--sf-chat-window--column);
633
+ margin-inline: auto;
634
+ }
635
+
636
+ .chat-files__head {
637
+ display: flex;
638
+ align-items: center;
639
+ gap: var(--sf-space-1\/4);
640
+ padding-block: var(--sf-space-1\/2);
641
+ }
642
+
643
+ .chat-files__back { flex: none; color: var(--sf-chat-window--ink-muted); }
644
+
645
+ .chat-files__title {
646
+ margin: 0;
647
+ min-inline-size: 0;
648
+ font-size: var(--sf-text--size-2);
649
+ line-height: var(--sf-text--height-2);
650
+ font-weight: var(--sf-font-weight-bold);
651
+ outline: none;
652
+ }
653
+
654
+ .chat-files__usage {
655
+ display: flex;
656
+ flex-direction: column;
657
+ gap: var(--sf-space-1\/3);
658
+ padding-block: var(--sf-space-1\/4) var(--sf-space-1);
659
+ }
660
+
661
+ .chat-files__usage[hidden],
662
+ .chat-files__bar[hidden] { display: none; }
663
+
664
+ .chat-files__used {
665
+ margin: 0;
666
+ color: var(--sf-chat-window--ink-muted);
667
+ }
668
+
669
+ .chat-files__loading {
670
+ margin: 0;
671
+ padding-block: var(--sf-space-1);
672
+ color: var(--sf-chat-window--ink-muted);
673
+ }
674
+
675
+ .chat-files__body sf-empty-state { display: block; padding-block-start: var(--sf-space-4); }
676
+
677
+ .chat-files__list {
678
+ margin: 0;
679
+ padding: 0;
680
+ list-style: none;
681
+ }
682
+
683
+ /* A row: the file's glyph, its name over its facts, then its two actions. */
684
+ .chat-files__item {
685
+ display: grid;
686
+ grid-template-columns: auto minmax(0, 1fr) auto;
687
+ align-items: center;
688
+ column-gap: var(--sf-space-1\/2);
689
+ row-gap: var(--sf-space-1\/3);
690
+ padding-block: var(--sf-space-1\/2);
691
+ }
692
+
693
+ .chat-files__item + .chat-files__item { border-block-start: var(--sf-chat-window--line) solid var(--sf-chat-window--edge); }
694
+
695
+ .chat-files__icon {
696
+ display: grid;
697
+ place-items: center;
698
+ inline-size: var(--sf-ui-1--control-height);
699
+ block-size: var(--sf-ui-1--control-height);
700
+ border-radius: var(--sf-radius--ui);
701
+ background: var(--sf-chat-window--fill);
702
+ color: var(--sf-chat-window--ink-muted);
703
+ }
704
+
705
+ .chat-files__text {
706
+ display: flex;
707
+ flex-direction: column;
708
+ min-inline-size: 0;
709
+ }
710
+
711
+ .chat-files__name {
712
+ overflow: hidden;
713
+ text-overflow: ellipsis;
714
+ white-space: nowrap;
715
+ font-weight: var(--sf-font-weight-medium);
716
+ }
717
+
718
+ .chat-files__meta {
719
+ display: flex;
720
+ flex-wrap: wrap;
721
+ column-gap: var(--sf-space-1\/2);
722
+ color: var(--sf-chat-window--ink-muted);
723
+ font-size: var(--sf-chat-window--meta-size);
724
+ line-height: var(--sf-chat-window--meta-height);
725
+ }
726
+
727
+ /* Something was saved from it into «Моя база»: as quiet as «Проверен». */
728
+ .chat-files__saved {
729
+ display: inline-flex;
730
+ align-items: center;
731
+ gap: var(--sf-space-1\/4);
732
+ color: var(--sf-on-success-container);
733
+ }
734
+
735
+ .chat-files__actions {
736
+ display: flex;
737
+ gap: var(--sf-space-1\/4);
738
+ }
739
+
740
+ .chat-files__actions .sf-button { gap: var(--sf-space-1\/4); }
741
+
742
+ /* The delete asked in its row, under the name: a card on the row's
743
+ column, its buttons nested by the rule (SPEC §3). */
744
+ .chat-files__ask {
745
+ --sf-chat-window--nest-radius: var(--sf-chat-window--card-radius);
746
+ --sf-chat-window--nest-inset: var(--sf-space-1\/2);
747
+ grid-column: 2 / -1;
748
+ display: flex;
749
+ flex-direction: column;
750
+ gap: var(--sf-space-1\/3);
751
+ padding: var(--sf-chat-window--nest-inset);
752
+ border-radius: var(--sf-chat-window--nest-radius);
753
+ background: var(--sf-chat-window--fill);
754
+ outline: none;
755
+ }
756
+
757
+ .chat-files__ask .sf-button {
758
+ border-radius: max(var(--sf-radius--ui), calc(var(--sf-chat-window--nest-radius) - var(--sf-chat-window--nest-inset)));
759
+ }
760
+
761
+ .chat-files__question,
762
+ .chat-files__problem {
763
+ margin: 0;
764
+ overflow-wrap: anywhere;
765
+ }
766
+
767
+ .chat-files__problem { color: var(--sf-error); }
768
+
769
+ .chat-files__ask-actions {
770
+ display: flex;
771
+ flex-wrap: wrap;
772
+ gap: var(--sf-space-1\/3);
773
+ }
774
+
775
+ /* Narrow: the actions go under the name, where the thumb is. */
776
+ @container (max-width: 32rem) {
777
+ .chat-files__actions {
778
+ grid-column: 2 / -1;
779
+ margin-inline-start: calc(-1 * var(--sf-space-1\/2));
780
+ }
781
+ }
782
+
783
+ @media (max-width: 599px) {
784
+ .chat-files { padding-inline: var(--sf-space-1); }
785
+ }
786
+
787
+ /* --- a new conversation or group (x-conversation-start, 1.4.0) and a group's
788
+ members (x-members, 1.4.0): in the conversation's place, as «Мои файлы». */
789
+
790
+ .chat-start,
791
+ .chat-members {
792
+ flex: 1;
793
+ min-block-size: 0;
794
+ overflow-y: auto;
795
+ padding-inline: var(--sf-space-1);
796
+ padding-block: 0 var(--sf-space-3);
797
+ color: var(--sf-chat-window--ink);
798
+ font-size: var(--sf-chat-window--ui-size);
799
+ line-height: var(--sf-chat-window--ui-height);
800
+ scrollbar-width: thin;
801
+ }
802
+
803
+ .chat-start[hidden],
804
+ .chat-members[hidden] { display: none; }
805
+
806
+ .chat-start > *,
807
+ .chat-members > * {
808
+ box-sizing: border-box;
809
+ max-inline-size: var(--sf-chat-window--column);
810
+ margin-inline: auto;
811
+ }
812
+
813
+ .chat-start__head,
814
+ .chat-members__head {
815
+ display: flex;
816
+ align-items: center;
817
+ gap: var(--sf-space-1\/4);
818
+ padding-block: var(--sf-space-1\/2);
819
+ }
820
+
821
+ .chat-start__back,
822
+ .chat-members__back { flex: none; color: var(--sf-chat-window--ink-muted); }
823
+
824
+ .chat-start__title,
825
+ .chat-members__title {
826
+ margin: 0;
827
+ min-inline-size: 0;
828
+ font-size: var(--sf-text--size-2);
829
+ line-height: var(--sf-text--height-2);
830
+ font-weight: var(--sf-font-weight-bold);
831
+ outline: none;
832
+ }
833
+
834
+ .chat-start__form {
835
+ display: flex;
836
+ flex-direction: column;
837
+ gap: var(--sf-space-1);
838
+ }
839
+
840
+ .chat-start__line:empty,
841
+ .chat-start__quiet[hidden] { display: none; }
842
+
843
+ .chat-start__quiet {
844
+ margin: 0;
845
+ color: var(--sf-chat-window--ink-muted);
846
+ }
847
+
848
+ .chat-start__actions { display: flex; justify-content: flex-start; }
849
+
850
+ .chat-members__count {
851
+ margin-inline-start: auto;
852
+ flex: none;
853
+ color: var(--sf-chat-window--ink-muted);
854
+ font-size: var(--sf-chat-window--meta-size);
855
+ line-height: var(--sf-chat-window--meta-height);
856
+ }
857
+
858
+ .chat-members__line {
859
+ margin: 0;
860
+ padding-block: var(--sf-space-1);
861
+ color: var(--sf-chat-window--ink-muted);
862
+ }
863
+
864
+ .chat-members__list {
865
+ margin: 0;
866
+ padding: 0;
867
+ list-style: none;
868
+ }
869
+
870
+ /* Up to 500 rows, one answer: the browser skips those out of view. */
871
+ .chat-members__row {
872
+ display: flex;
873
+ align-items: center;
874
+ gap: var(--sf-space-1\/2);
875
+ min-block-size: var(--sf-chat-window--touch);
876
+ content-visibility: auto;
877
+ contain-intrinsic-block-size: auto var(--sf-chat-window--touch);
878
+ }
879
+
880
+ .chat-members__row + .chat-members__row { border-block-start: var(--sf-chat-window--line) solid var(--sf-chat-window--edge); }
881
+
882
+ /* Managing (1.9.0): the row holds its line and, under it, one strip at a time. */
883
+ .chat-members__row:has(.chat-members__strip) { flex-direction: column; align-items: stretch; content-visibility: visible; }
884
+ .chat-members__who {
885
+ display: flex;
886
+ flex: 1;
887
+ align-items: center;
888
+ gap: var(--sf-space-1\/2);
889
+ min-inline-size: 0;
890
+ min-block-size: var(--sf-chat-window--touch);
891
+ }
892
+ .chat-members__more { flex: none; color: var(--sf-chat-window--ink-muted); }
893
+ .chat-members__tools { display: flex; flex: none; gap: var(--sf-space-1\/4); }
894
+ .chat-members__tools:empty { display: none; }
895
+ .chat-members__strip {
896
+ display: flex;
897
+ flex-wrap: wrap;
898
+ align-items: center;
899
+ gap: var(--sf-space-1\/4) var(--sf-space-1\/2);
900
+ padding-block: 0 var(--sf-space-1\/2);
901
+ padding-inline-start: calc(var(--sf-chat-window--touch) + var(--sf-space-1\/2));
902
+ }
903
+ .chat-members__leave-ask { padding-inline-start: 0; padding-block: var(--sf-space-1\/2); }
904
+ .chat-members__roles { display: flex; flex-wrap: wrap; gap: var(--sf-space-1\/4); }
905
+ .chat-members__ask { flex-basis: 100%; margin: 0; }
906
+ .chat-members__ask strong { font-weight: var(--sf-font-weight-bold); }
907
+ .chat-members__ask span { color: var(--sf-chat-window--ink-muted); }
908
+ .chat-members__ask-row { display: flex; gap: var(--sf-space-1\/2); }
909
+ .chat-members__remove { color: var(--sf-error); }
910
+ .chat-members__busy { opacity: .6; pointer-events: none; }
911
+ .chat-members__problem:empty { display: none; }
912
+ .chat-members__add {
913
+ display: flex;
914
+ flex-direction: column;
915
+ gap: var(--sf-space-1\/2);
916
+ padding-block: var(--sf-space-1\/2);
917
+ }
918
+ .chat-members__add[hidden] { display: none; }
919
+ .chat-members__warn { margin: 0; color: var(--sf-chat-window--ink-muted); }
920
+ .chat-members__add-done { align-self: flex-start; }
921
+
922
+ .chat-members__name {
923
+ flex: 1;
924
+ min-inline-size: 0;
925
+ overflow: hidden;
926
+ text-overflow: ellipsis;
927
+ white-space: nowrap;
928
+ }
929
+
930
+ .chat-members__role {
931
+ flex: none;
932
+ color: var(--sf-chat-window--ink-muted);
933
+ font-size: var(--sf-chat-window--meta-size);
934
+ line-height: var(--sf-chat-window--meta-height);
935
+ }
936
+
937
+ @media (pointer: coarse) {
938
+ .chat-start__back,
939
+ .chat-members__back,
940
+ .chat-members__more,
941
+ .chat-members__tool,
942
+ .chat-members__strip .sf-button,
943
+ .chat-members__add-done,
944
+ .chat-shell__members-open {
945
+ min-block-size: var(--sf-chat-window--touch);
946
+ min-inline-size: var(--sf-chat-window--touch);
947
+ }
948
+ }
949
+
950
+ @media (pointer: coarse) {
951
+ .chat-files__actions .sf-button,
952
+ .chat-files__ask .sf-button,
953
+ .chat-files__back {
954
+ min-block-size: var(--sf-chat-window--touch);
955
+ }
956
+
957
+ .chat-files__back { min-inline-size: var(--sf-chat-window--touch); }
958
+ }
959
+
960
+
961
+ @media (pointer: coarse) {
962
+ .sf-chat-greeting__suggestion { min-block-size: var(--sf-chat-window--touch); }
963
+
964
+ /* The list has no finger size of its own: its rows and commands take
965
+ the chat's through the row height, its «⋯» the same square. */
966
+ .chat-shell .sf-thread-list { --sf-thread-list--row-height: var(--sf-chat-window--touch); }
967
+
968
+ .chat-shell .sf-thread-list__more {
969
+ inline-size: var(--sf-chat-window--touch);
970
+ block-size: var(--sf-chat-window--touch);
971
+ }
972
+ }
973
+
974
+ /* --- the search in the conversation (1.1.0) --------------------------- */
975
+
976
+ /* Over the log, on the reading column: the field with «N из M» inside it,
977
+ then up, down and close. On a phone the column is the window's width. */
978
+ .chat-shell__find {
979
+ flex: none;
980
+ display: flex;
981
+ align-items: center;
982
+ gap: var(--sf-space-1\/4);
983
+ box-sizing: border-box;
984
+ inline-size: 100%;
985
+ max-inline-size: calc(var(--sf-chat-window--column) + 2 * var(--sf-space-3));
986
+ margin-inline: auto;
987
+ padding-inline: var(--sf-space-3);
988
+ padding-block: 0 var(--sf-space-1\/3);
989
+ }
990
+
991
+ .chat-shell__find[hidden],
992
+ .chat-shell--files .chat-shell__find { display: none; }
993
+
994
+ .chat-shell__find-field { flex: 1; min-inline-size: 0; }
995
+
996
+ .chat-shell__find-input { flex: 1; min-inline-size: 0; }
997
+
998
+ .chat-shell__find-input::-webkit-search-cancel-button { display: none; }
999
+
1000
+ .chat-shell__find-count {
1001
+ flex: none;
1002
+ padding-inline-end: var(--sf-space-1\/3);
1003
+ color: var(--sf-chat-window--ink-muted);
1004
+ font-size: var(--sf-chat-window--meta-size);
1005
+ line-height: var(--sf-chat-window--meta-height);
1006
+ font-variant-numeric: tabular-nums;
1007
+ white-space: nowrap;
1008
+ }
1009
+
1010
+ .chat-shell__find .sf-icon-button { flex: none; color: var(--sf-chat-window--ink-muted); }
1011
+
1012
+ /* What was found, painted over the text (CSS Custom Highlight API): every
1013
+ match in the Framework's mark colour, the current one stronger and
1014
+ underlined. A browser without it outlines the message instead. */
1015
+ ::highlight(sf-chat-window-found) { background-color: var(--sf-warning-container); }
1016
+
1017
+ ::highlight(sf-chat-window-found-current) {
1018
+ background-color: var(--sf-mark--color);
1019
+ text-decoration: underline var(--sf-warning);
1020
+ }
1021
+
1022
+ @supports not selector(::highlight(sf-chat-window-found)) {
1023
+ .chat-shell .chat-shell__found {
1024
+ outline: var(--sf-chat-window--line) solid var(--sf-warning);
1025
+ outline-offset: var(--sf-space-1\/4);
1026
+ border-radius: var(--sf-chat-window--card-radius);
1027
+ }
1028
+ }
1029
+
1030
+ @media (forced-colors: active) {
1031
+ ::highlight(sf-chat-window-found) { background-color: Mark; color: MarkText; }
1032
+ ::highlight(sf-chat-window-found-current) { background-color: Highlight; color: HighlightText; }
1033
+ }
1034
+
1035
+ @media (max-width: 599px) {
1036
+ .chat-shell__find { padding-inline: var(--sf-space-1\/3); gap: 0; }
1037
+
1038
+ /* iOS zooms into a field under 16px. */
1039
+ .chat-shell__find-input { font-size: max(1rem, var(--sf-label-large--size)); }
1040
+ }
1041
+
1042
+ /* --- the queue over the field (1.1.0) --------------------------------- */
1043
+
1044
+ /* A card per question asked while an answer was awaited: what it is, one
1045
+ or two lines of the question, and its actions. Quiet, as the passing
1046
+ line is: a note on the field, not a message. */
1047
+ /* The message being answered (1.6.0, x-reply), over the field. */
1048
+ .chat-shell__reply {
1049
+ display: flex;
1050
+ align-items: center;
1051
+ gap: var(--sf-space-1\/3);
1052
+ padding-inline-start: var(--sf-space-1\/3);
1053
+ border-inline-start: calc(2 * var(--sf-chat-window--line)) solid var(--sf-outline-variant);
1054
+ color: var(--sf-chat-window--ink-muted);
1055
+ font-size: var(--sf-chat-window--meta-size);
1056
+ line-height: var(--sf-chat-window--meta-height);
1057
+ }
1058
+
1059
+ .chat-shell__reply[hidden] { display: none; }
1060
+
1061
+ .chat-shell__reply-text {
1062
+ flex: 1;
1063
+ min-inline-size: 0;
1064
+ overflow: hidden;
1065
+ text-overflow: ellipsis;
1066
+ white-space: nowrap;
1067
+ }
1068
+
1069
+ .chat-shell__reply-name { font-weight: var(--sf-font-weight-medium); }
1070
+
1071
+ /* The original a quote leads to, marked for a moment (a line, no movement). */
1072
+ .chat-shell .chat-shell__quoted {
1073
+ outline: var(--sf-chat-window--line) solid var(--sf-primary);
1074
+ outline-offset: var(--sf-space-1\/4);
1075
+ border-radius: var(--sf-chat-window--card-radius);
1076
+ }
1077
+
1078
+ @media (prefers-reduced-motion: no-preference) {
1079
+ .chat-shell .chat-shell__quoted { animation: chat-shell-quoted 1.6s ease-out both; }
1080
+
1081
+ @keyframes chat-shell-quoted {
1082
+ from, 60% { outline-color: var(--sf-primary); }
1083
+ to { outline-color: transparent; }
1084
+ }
1085
+ }
1086
+
1087
+ .chat-shell__queue {
1088
+ display: flex;
1089
+ flex-direction: column;
1090
+ gap: var(--sf-space-1\/4);
1091
+ }
1092
+
1093
+ .chat-shell__queue[hidden],
1094
+ .chat-shell__queue-held[hidden] { display: none; }
1095
+
1096
+ .chat-shell__queue-held {
1097
+ margin: 0;
1098
+ color: var(--sf-chat-window--ink-muted);
1099
+ font-size: var(--sf-chat-window--meta-size);
1100
+ line-height: var(--sf-chat-window--meta-height);
1101
+ }
1102
+
1103
+ .chat-shell__queue-list {
1104
+ display: flex;
1105
+ flex-direction: column;
1106
+ gap: var(--sf-space-1\/4);
1107
+ margin: 0;
1108
+ padding: 0;
1109
+ list-style: none;
1110
+ }
1111
+
1112
+ .chat-shell__queued {
1113
+ display: grid;
1114
+ grid-template-columns: minmax(0, 1fr) auto;
1115
+ align-items: center;
1116
+ column-gap: var(--sf-space-1\/2);
1117
+ padding-block: var(--sf-space-1\/4);
1118
+ padding-inline: var(--sf-space-1\/2);
1119
+ border: var(--sf-chat-window--line) solid var(--sf-chat-window--edge);
1120
+ border-radius: var(--sf-chat-window--card-radius);
1121
+ color: var(--sf-chat-window--ink);
1122
+ font-size: var(--sf-chat-window--ui-size);
1123
+ line-height: var(--sf-chat-window--ui-height);
1124
+ }
1125
+
1126
+ .chat-shell__queued-label {
1127
+ grid-column: 1;
1128
+ color: var(--sf-chat-window--ink-muted);
1129
+ font-size: var(--sf-chat-window--meta-size);
1130
+ line-height: var(--sf-chat-window--meta-height);
1131
+ }
1132
+
1133
+ .chat-shell__queued-text {
1134
+ grid-column: 1;
1135
+ margin: 0;
1136
+ display: -webkit-box;
1137
+ -webkit-box-orient: vertical;
1138
+ -webkit-line-clamp: 2;
1139
+ line-clamp: 2;
1140
+ overflow: hidden;
1141
+ overflow-wrap: anywhere;
1142
+ white-space: pre-line;
1143
+ }
1144
+
1145
+ .chat-shell__queued-actions {
1146
+ grid-column: 2;
1147
+ grid-row: 1 / span 2;
1148
+ display: flex;
1149
+ align-items: center;
1150
+ gap: var(--sf-space-1\/4);
1151
+ }
1152
+
1153
+ /* A phone: the actions go under the question. */
1154
+ @media (max-width: 599px) {
1155
+ .chat-shell__queued { grid-template-columns: minmax(0, 1fr); }
1156
+
1157
+ .chat-shell__queued-actions { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
1158
+ }
1159
+
1160
+ @media (pointer: coarse) {
1161
+ .chat-shell__queued-actions .sf-button { min-block-size: var(--sf-chat-window--touch); }
1162
+
1163
+ .chat-shell__find .sf-icon-button {
1164
+ min-inline-size: var(--sf-chat-window--touch);
1165
+ min-block-size: var(--sf-chat-window--touch);
1166
+ }
1167
+ }
1168
+ }