chatluna-plugin-onebot-sandbox 1.0.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 (184) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +20 -0
  3. package/client/app.tsx +306 -0
  4. package/client/chat/chat-pane.tsx +303 -0
  5. package/client/chat/composer.css +635 -0
  6. package/client/chat/composer.tsx +646 -0
  7. package/client/chat/details-panel.tsx +196 -0
  8. package/client/chat/emoji-picker.tsx +70 -0
  9. package/client/chat/extension-mark.tsx +16 -0
  10. package/client/chat/forward.tsx +257 -0
  11. package/client/chat/image-preview.tsx +93 -0
  12. package/client/chat/member-menu.tsx +64 -0
  13. package/client/chat/message-list.tsx +617 -0
  14. package/client/chat/messages.css +1018 -0
  15. package/client/chat/notifications.tsx +83 -0
  16. package/client/chat/reactions.tsx +52 -0
  17. package/client/chat/search-panel.tsx +231 -0
  18. package/client/chat/sidebar.tsx +424 -0
  19. package/client/chat/webqq-view.tsx +71 -0
  20. package/client/environment/avatar-picker.tsx +92 -0
  21. package/client/environment/create-popover.tsx +228 -0
  22. package/client/environment/directory-model.ts +63 -0
  23. package/client/environment/entity-dialog.css +383 -0
  24. package/client/environment/entity-dialog.tsx +442 -0
  25. package/client/environment/page.css +14 -0
  26. package/client/environment/page.tsx +280 -0
  27. package/client/i18n.ts +19 -0
  28. package/client/index.ts +17 -0
  29. package/client/locales/en.yml +617 -0
  30. package/client/locales/zh.yml +617 -0
  31. package/client/mcp/capability-catalog.tsx +277 -0
  32. package/client/mcp/credential-manager.tsx +257 -0
  33. package/client/onebot-debug/page.tsx +329 -0
  34. package/client/records/record-layout.tsx +429 -0
  35. package/client/records/records.css +259 -0
  36. package/client/settings/about.tsx +43 -0
  37. package/client/settings/draft.ts +47 -0
  38. package/client/settings/localize.ts +76 -0
  39. package/client/settings/page.tsx +210 -0
  40. package/client/settings/settings.css +47 -0
  41. package/client/shared/avatar.tsx +35 -0
  42. package/client/shared/confirm-dialog.tsx +44 -0
  43. package/client/shared/controls.css +17 -0
  44. package/client/shared/discard-confirm.tsx +45 -0
  45. package/client/shared/floating-panel.ts +40 -0
  46. package/client/shared/format-duration.ts +22 -0
  47. package/client/shared/format-time.ts +49 -0
  48. package/client/shared/glass.css +150 -0
  49. package/client/shared/implementation.ts +12 -0
  50. package/client/shared/overlay-scrollbar.css +45 -0
  51. package/client/shared/overlay-scrollbar.tsx +123 -0
  52. package/client/shared/use-element-width.ts +19 -0
  53. package/client/shared/use-retained.ts +12 -0
  54. package/client/test-call/page.tsx +260 -0
  55. package/client/test-space/agent-visuals.tsx +121 -0
  56. package/client/test-space/observe-overlay.tsx +42 -0
  57. package/client/test-space/overview.tsx +267 -0
  58. package/client/test-space/spaces.css +201 -0
  59. package/client/test-space/thumbnail-capture.ts +63 -0
  60. package/client/test-space/thumbnail-scale.ts +21 -0
  61. package/client/test-space/use-space-list.ts +35 -0
  62. package/client/test-space/zoom.ts +197 -0
  63. package/client/webqq/composer-draft-host.ts +578 -0
  64. package/client/webqq/composer-draft.ts +81 -0
  65. package/client/webqq/conversation-tree.ts +155 -0
  66. package/client/webqq/emoji-catalog.ts +78 -0
  67. package/client/webqq/fork-boundary.ts +28 -0
  68. package/client/webqq/forward-cluster.ts +20 -0
  69. package/client/webqq/forward-dialog-stack.ts +74 -0
  70. package/client/webqq/forward-preview.ts +40 -0
  71. package/client/webqq/friend-menu.ts +17 -0
  72. package/client/webqq/group-display.ts +18 -0
  73. package/client/webqq/group-menu.ts +25 -0
  74. package/client/webqq/mention.ts +4 -0
  75. package/client/webqq/message-capabilities.ts +37 -0
  76. package/client/webqq/message-cluster.ts +68 -0
  77. package/client/webqq/message-presentation.ts +197 -0
  78. package/client/webqq/message-reveal.ts +31 -0
  79. package/client/webqq/message-search-date.ts +40 -0
  80. package/client/webqq/message-selection.ts +85 -0
  81. package/client/webqq/notification-requests.ts +20 -0
  82. package/client/webqq/participant-presentation.ts +128 -0
  83. package/client/webqq/profile-card.ts +199 -0
  84. package/client/webqq/relationship-directory.ts +62 -0
  85. package/client/webqq/thinking-panel.ts +7 -0
  86. package/client/webqq/user-stack.ts +53 -0
  87. package/client/workspace/agent-overlay-effect.ts +238 -0
  88. package/client/workspace/context.tsx +117 -0
  89. package/client/workspace/overlay-host.tsx +299 -0
  90. package/client/workspace/profile-card.css +164 -0
  91. package/client/workspace/state.ts +28 -0
  92. package/client/workspace/store.ts +388 -0
  93. package/client/workspace/use-test-spaces.ts +21 -0
  94. package/dist/.vite/manifest.json +21 -0
  95. package/dist/app-63rfTh6w.js +85 -0
  96. package/dist/client.css +4 -0
  97. package/dist/client.js +1 -0
  98. package/lib/account-profile.d.ts +17 -0
  99. package/lib/account-profile.d.ts.map +1 -0
  100. package/lib/base-dir.d.ts +4 -0
  101. package/lib/base-dir.d.ts.map +1 -0
  102. package/lib/bot.d.ts +185 -0
  103. package/lib/bot.d.ts.map +1 -0
  104. package/lib/builtin-avatar-options.d.ts +11 -0
  105. package/lib/builtin-avatar-options.d.ts.map +1 -0
  106. package/lib/builtin-avatars.d.ts +6 -0
  107. package/lib/builtin-avatars.d.ts.map +1 -0
  108. package/lib/channel-assignee.d.ts +52 -0
  109. package/lib/channel-assignee.d.ts.map +1 -0
  110. package/lib/chatluna/conversation-lines.d.ts +46 -0
  111. package/lib/chatluna/conversation-lines.d.ts.map +1 -0
  112. package/lib/chatluna/runtime.d.ts +26 -0
  113. package/lib/chatluna/runtime.d.ts.map +1 -0
  114. package/lib/chatluna/state.d.ts +67 -0
  115. package/lib/chatluna/state.d.ts.map +1 -0
  116. package/lib/chatluna/thinking.d.ts +10 -0
  117. package/lib/chatluna/thinking.d.ts.map +1 -0
  118. package/lib/chatluna/tools.d.ts +36 -0
  119. package/lib/chatluna/tools.d.ts.map +1 -0
  120. package/lib/chatluna/wakeup.d.ts +143 -0
  121. package/lib/chatluna/wakeup.d.ts.map +1 -0
  122. package/lib/console-contract.d.ts +131 -0
  123. package/lib/console-contract.d.ts.map +1 -0
  124. package/lib/console.d.ts +31 -0
  125. package/lib/console.d.ts.map +1 -0
  126. package/lib/control-service.d.ts +425 -0
  127. package/lib/control-service.d.ts.map +1 -0
  128. package/lib/conversation-resolution.d.ts +157 -0
  129. package/lib/conversation-resolution.d.ts.map +1 -0
  130. package/lib/error-detail.d.ts +3 -0
  131. package/lib/error-detail.d.ts.map +1 -0
  132. package/lib/inbound-delivery.d.ts +156 -0
  133. package/lib/inbound-delivery.d.ts.map +1 -0
  134. package/lib/index.d.ts +76 -0
  135. package/lib/index.d.ts.map +1 -0
  136. package/lib/index.js +12834 -0
  137. package/lib/index.js.map +1 -0
  138. package/lib/lifecycle.d.ts +8 -0
  139. package/lib/lifecycle.d.ts.map +1 -0
  140. package/lib/mcp/arguments.d.ts +71 -0
  141. package/lib/mcp/arguments.d.ts.map +1 -0
  142. package/lib/mcp/call-records.d.ts +32 -0
  143. package/lib/mcp/call-records.d.ts.map +1 -0
  144. package/lib/mcp/http-api.d.ts +147 -0
  145. package/lib/mcp/http-api.d.ts.map +1 -0
  146. package/lib/mcp/page-cursor.d.ts +37 -0
  147. package/lib/mcp/page-cursor.d.ts.map +1 -0
  148. package/lib/mcp/server.d.ts +60 -0
  149. package/lib/mcp/server.d.ts.map +1 -0
  150. package/lib/mcp/service.d.ts +219 -0
  151. package/lib/mcp/service.d.ts.map +1 -0
  152. package/lib/mcp/tool-registry.d.ts +113 -0
  153. package/lib/mcp/tool-registry.d.ts.map +1 -0
  154. package/lib/mcp/types.d.ts +144 -0
  155. package/lib/mcp/types.d.ts.map +1 -0
  156. package/lib/media-storage.d.ts +33 -0
  157. package/lib/media-storage.d.ts.map +1 -0
  158. package/lib/message-capabilities.d.ts +78 -0
  159. package/lib/message-capabilities.d.ts.map +1 -0
  160. package/lib/onebot-debug.d.ts +115 -0
  161. package/lib/onebot-debug.d.ts.map +1 -0
  162. package/lib/onebot-message.d.ts +23 -0
  163. package/lib/onebot-message.d.ts.map +1 -0
  164. package/lib/onebot-profiles.d.ts +45 -0
  165. package/lib/onebot-profiles.d.ts.map +1 -0
  166. package/lib/persistence.d.ts +148 -0
  167. package/lib/persistence.d.ts.map +1 -0
  168. package/lib/random.d.ts +5 -0
  169. package/lib/random.d.ts.map +1 -0
  170. package/lib/record-store.d.ts +80 -0
  171. package/lib/record-store.d.ts.map +1 -0
  172. package/lib/relationship-actions.d.ts +157 -0
  173. package/lib/relationship-actions.d.ts.map +1 -0
  174. package/lib/scope-directory.d.ts +105 -0
  175. package/lib/scope-directory.d.ts.map +1 -0
  176. package/lib/settings.d.ts +33 -0
  177. package/lib/settings.d.ts.map +1 -0
  178. package/lib/test-spaces.d.ts +69 -0
  179. package/lib/test-spaces.d.ts.map +1 -0
  180. package/lib/types.d.ts +739 -0
  181. package/lib/types.d.ts.map +1 -0
  182. package/lib/webui.d.ts +26 -0
  183. package/lib/webui.d.ts.map +1 -0
  184. package/package.json +112 -0
@@ -0,0 +1,1018 @@
1
+ /*
2
+ * 消息列表样式,逐条移植自 koishi-plugin-chatluna-sandbox 的 `client/webqq/messages.css` 与
3
+ * `message-selection.css` 中的消息行部分。
4
+ *
5
+ * 类名前缀由 `chatluna-sandbox-message-` 换成 `sandbox-message-`;原版的 WebQQ 主题变量映射到 v2 主题
6
+ * token,强调色取插件设置 `sandboxAccentColor`(`webqq-view.tsx` 写在 `.sandbox-webqq` 上)。
7
+ * 气泡小尖角由列表根上的 `.has-tail` 打开,对应设置 `sandboxTimBubbleTail`。
8
+ */
9
+
10
+ .sandbox-webqq {
11
+ --sandbox-accent: #2563eb;
12
+ }
13
+
14
+ .sandbox-message-list {
15
+ --sandbox-text: var(--foreground);
16
+ --sandbox-muted: var(--muted-foreground);
17
+ --sandbox-border: var(--border);
18
+ --sandbox-panel: var(--card);
19
+
20
+ display: flex;
21
+ flex-direction: column;
22
+ margin: 0;
23
+ padding: 20px 22px;
24
+ list-style: none;
25
+ color: var(--sandbox-text);
26
+ font-size: 13px;
27
+ line-height: 20px;
28
+ }
29
+
30
+ /* 合并转发详情(chat/forward.tsx)复用整套消息行样式;左右边距由弹窗正文提供,上下只留出气泡投影。 */
31
+ .sandbox-message-list.sandbox-forward-list {
32
+ padding: 2px 0 8px;
33
+ }
34
+
35
+ .sandbox-message-event {
36
+ align-self: center;
37
+ width: fit-content;
38
+ max-width: 74%;
39
+ margin: 0 auto 16px;
40
+ padding: 3px 10px;
41
+ border-radius: 999px;
42
+ color: color-mix(in srgb, var(--sandbox-text) 58%, transparent);
43
+ background: rgb(148 163 184 / 14%);
44
+ font-size: 12px;
45
+ line-height: 18px;
46
+ text-align: center;
47
+ }
48
+
49
+ .sandbox-message-event:last-child {
50
+ margin-bottom: 0;
51
+ }
52
+
53
+ /* 分支的继承前缀整段弱化,与自有消息拉开层级。 */
54
+ .sandbox-message-row.is-inherited {
55
+ opacity: 0.68;
56
+ }
57
+
58
+ /* 分叉点分界:继承前缀与自有消息之间的一条说明线,画在自有消息一侧。 */
59
+ .sandbox-message-fork-boundary {
60
+ display: flex;
61
+ align-items: center;
62
+ gap: 8px;
63
+ margin: 0 0 16px;
64
+ color: color-mix(in srgb, var(--sandbox-text) 46%, transparent);
65
+ font-size: 11px;
66
+ line-height: 16px;
67
+ text-align: center;
68
+ }
69
+
70
+ .sandbox-message-fork-boundary::before,
71
+ .sandbox-message-fork-boundary::after {
72
+ height: 1px;
73
+ flex: 1;
74
+ background: color-mix(in srgb, var(--sandbox-border) 70%, transparent);
75
+ content: "";
76
+ }
77
+
78
+ .sandbox-message-history-row {
79
+ display: flex;
80
+ justify-content: center;
81
+ padding: 4px 0 12px;
82
+ }
83
+
84
+ .sandbox-message-history {
85
+ border: 0;
86
+ border-radius: 999px;
87
+ padding: 6px 12px;
88
+ color: var(--sandbox-muted);
89
+ background: color-mix(in srgb, var(--sandbox-panel) 82%, transparent);
90
+ font-size: 12px;
91
+ line-height: 16px;
92
+ }
93
+
94
+ .sandbox-message-history:hover:not(:disabled),
95
+ .sandbox-message-history:focus-visible {
96
+ color: var(--sandbox-accent);
97
+ outline: none;
98
+ background: color-mix(in srgb, var(--sandbox-accent) 10%, var(--sandbox-panel));
99
+ }
100
+
101
+ .sandbox-message-history:disabled {
102
+ opacity: 0.6;
103
+ }
104
+
105
+ /* 撤回只弱化气泡内容;文字和媒体分别覆盖撤回线,避免媒体仍被误认成可操作内容。 */
106
+ .sandbox-message-row.is-recalled .sandbox-message-bubble,
107
+ .sandbox-message-thinking-row.is-recalled {
108
+ opacity: 0.62;
109
+ }
110
+
111
+ .sandbox-message-row.is-recalled .sandbox-message-text {
112
+ text-decoration-line: line-through;
113
+ text-decoration-thickness: 2px;
114
+ text-decoration-skip-ink: none;
115
+ }
116
+
117
+ .sandbox-message-row.is-recalled .sandbox-message-media img,
118
+ .sandbox-message-row.is-recalled .sandbox-message-media audio,
119
+ .sandbox-message-row.is-recalled .sandbox-message-media video,
120
+ .sandbox-message-row.is-recalled .sandbox-message-file {
121
+ opacity: 0.72;
122
+ filter: grayscale(0.15);
123
+ }
124
+
125
+ .sandbox-message-row.is-recalled .sandbox-message-media {
126
+ position: relative;
127
+ }
128
+
129
+ .sandbox-message-row.is-recalled .sandbox-message-media::after {
130
+ position: absolute;
131
+ top: 50%;
132
+ right: 0;
133
+ left: 0;
134
+ height: 2px;
135
+ background: currentColor;
136
+ content: "";
137
+ opacity: 0.72;
138
+ pointer-events: none;
139
+ transform: translateY(-50%);
140
+ }
141
+
142
+ .sandbox-message-recalled-label {
143
+ align-self: flex-end;
144
+ color: var(--sandbox-muted);
145
+ font-size: 11px;
146
+ line-height: 16px;
147
+ }
148
+
149
+ .sandbox-message-row.is-outgoing .sandbox-message-recalled-label {
150
+ color: rgb(255 255 255 / 78%);
151
+ }
152
+
153
+ .sandbox-message-row {
154
+ max-width: 74%;
155
+ display: flex;
156
+ align-items: flex-start;
157
+ gap: 8px;
158
+ margin-bottom: 16px;
159
+ }
160
+
161
+ /* 置底时末条消息不再叠加 16px 行距,避免与发送框之间的间隙翻倍。 */
162
+ .sandbox-message-row:last-child {
163
+ margin-bottom: 0;
164
+ }
165
+
166
+ .sandbox-message-row.is-outgoing {
167
+ margin-left: auto;
168
+ flex-direction: row-reverse;
169
+ text-align: right;
170
+ }
171
+
172
+ .sandbox-message-row.is-merged {
173
+ margin-top: -14px;
174
+ }
175
+
176
+ .sandbox-message-avatar-wrap {
177
+ position: relative;
178
+ display: flex;
179
+ width: 32px;
180
+ height: 32px;
181
+ flex: 0 0 32px;
182
+ padding: 0;
183
+ border: 0;
184
+ border-radius: 50%;
185
+ color: inherit;
186
+ background: transparent;
187
+ }
188
+
189
+ .sandbox-message-row.is-merged .sandbox-message-avatar-wrap {
190
+ visibility: hidden;
191
+ }
192
+
193
+ .sandbox-message-content {
194
+ display: flex;
195
+ min-width: 0;
196
+ max-width: 100%;
197
+ flex-direction: column;
198
+ align-items: flex-start;
199
+ }
200
+
201
+ .sandbox-message-body {
202
+ display: flex;
203
+ min-width: 0;
204
+ max-width: 100%;
205
+ flex-direction: row;
206
+ align-items: flex-end;
207
+ gap: 6px;
208
+ }
209
+
210
+ .sandbox-message-row.is-outgoing .sandbox-message-content {
211
+ align-items: flex-end;
212
+ }
213
+
214
+ .sandbox-message-row.is-outgoing .sandbox-message-body {
215
+ flex-direction: row-reverse;
216
+ }
217
+
218
+ .sandbox-message-sender-line {
219
+ display: flex;
220
+ max-width: 100%;
221
+ flex-wrap: wrap;
222
+ align-items: center;
223
+ gap: 4px;
224
+ font-size: 13px;
225
+ line-height: 18px;
226
+ }
227
+
228
+ .sandbox-message-row.is-outgoing .sandbox-message-sender-line {
229
+ justify-content: flex-end;
230
+ flex-direction: row-reverse;
231
+ }
232
+
233
+ .sandbox-message-sender-line + .sandbox-message-body {
234
+ margin-top: 6px;
235
+ }
236
+
237
+ .sandbox-message-time {
238
+ flex: 0 0 auto;
239
+ align-self: flex-end;
240
+ color: var(--sandbox-muted);
241
+ font-size: 11px;
242
+ line-height: 16px;
243
+ white-space: nowrap;
244
+ opacity: 0;
245
+ transition: opacity 0.16s ease;
246
+ }
247
+
248
+ .sandbox-message-row:hover .sandbox-message-time {
249
+ opacity: 1;
250
+ }
251
+
252
+ .sandbox-message-role-badge {
253
+ max-width: 120px;
254
+ overflow: hidden;
255
+ padding: 1px 6px;
256
+ border-radius: 5px;
257
+ color: #334155;
258
+ font-size: 11px;
259
+ font-weight: 600;
260
+ line-height: 16px;
261
+ white-space: nowrap;
262
+ text-overflow: ellipsis;
263
+ }
264
+
265
+ .sandbox-message-role-badge.is-owner {
266
+ color: #9a5b00;
267
+ background: #fff3cf;
268
+ }
269
+
270
+ .sandbox-message-role-badge.is-admin {
271
+ color: #237343;
272
+ background: #e9f8ef;
273
+ }
274
+
275
+ .sandbox-message-role-badge.is-title {
276
+ color: #0b7fab;
277
+ background: rgb(18 183 245 / 10%);
278
+ }
279
+
280
+ .sandbox-message-stack {
281
+ display: flex;
282
+ min-width: 0;
283
+ max-width: 100%;
284
+ flex-direction: column;
285
+ align-items: flex-start;
286
+ gap: 4px;
287
+ }
288
+
289
+ .sandbox-message-row.is-outgoing .sandbox-message-stack {
290
+ align-items: flex-end;
291
+ }
292
+
293
+ /* 右键菜单的触发层,只包住气泡,不参与气泡几何。 */
294
+ .sandbox-message-bubble-trigger {
295
+ display: flex;
296
+ min-width: 0;
297
+ max-width: 100%;
298
+ }
299
+
300
+ .sandbox-message-bubble {
301
+ --sandbox-bubble-bg: rgb(255 255 255 / 90%);
302
+ --sandbox-reaction-bg: color-mix(in srgb, var(--sandbox-bubble-bg) 88%, #64748b 12%);
303
+
304
+ position: relative;
305
+ display: flex;
306
+ max-width: 100%;
307
+ flex-direction: column;
308
+ gap: 2px;
309
+ margin: 1px 0;
310
+ padding: 9px 11px;
311
+ border: 0;
312
+ border-radius: 18px;
313
+ color: var(--sandbox-text);
314
+ background: var(--sandbox-bubble-bg);
315
+ box-shadow: 0 2px 8px rgb(15 23 42 / 8%);
316
+ font-size: 13px;
317
+ line-height: 19px;
318
+ text-align: left;
319
+ word-break: break-word;
320
+ white-space: pre-wrap;
321
+ }
322
+
323
+ .sandbox-message-row.is-outgoing .sandbox-message-bubble {
324
+ --sandbox-bubble-bg: var(--sandbox-accent);
325
+ --sandbox-reaction-bg: color-mix(in srgb, var(--sandbox-bubble-bg) 88%, #0f172a 12%);
326
+
327
+ color: #fff;
328
+ /* 强调色气泡会削弱同透明度投影的视觉,保留几何参数并提高对比度。 */
329
+ box-shadow: 0 2px 8px rgb(15 23 42 / 16%);
330
+ }
331
+
332
+ /* 同一发送者的连续气泡:靠近同伴的一侧收成 3px 小圆角。 */
333
+ .sandbox-message-row.is-cluster-first:not(.is-outgoing) .sandbox-message-bubble {
334
+ border-bottom-left-radius: 3px;
335
+ }
336
+
337
+ .sandbox-message-row.is-cluster-middle:not(.is-outgoing) .sandbox-message-bubble {
338
+ border-radius: 3px 18px 18px 3px;
339
+ }
340
+
341
+ .sandbox-message-row.is-cluster-last:not(.is-outgoing) .sandbox-message-bubble {
342
+ border-top-left-radius: 3px;
343
+ }
344
+
345
+ .sandbox-message-row.is-outgoing.is-cluster-first .sandbox-message-bubble {
346
+ border-bottom-right-radius: 3px;
347
+ }
348
+
349
+ .sandbox-message-row.is-outgoing.is-cluster-middle .sandbox-message-bubble {
350
+ border-radius: 18px 3px 3px 18px;
351
+ }
352
+
353
+ .sandbox-message-row.is-outgoing.is-cluster-last .sandbox-message-bubble {
354
+ border-top-right-radius: 3px;
355
+ }
356
+
357
+ /* 气泡小尖角:只画在一簇的首条上,朝向头像;尖角复用气泡背景,跟随强调色与暗色。 */
358
+ .sandbox-message-list.has-tail .sandbox-message-row:not(.is-outgoing):not(.is-merged) .sandbox-message-bubble {
359
+ border-top-left-radius: 0;
360
+ }
361
+
362
+ .sandbox-message-list.has-tail .sandbox-message-row.is-outgoing:not(.is-merged) .sandbox-message-bubble {
363
+ border-top-right-radius: 0;
364
+ }
365
+
366
+ .sandbox-message-list.has-tail .sandbox-message-row:not(.is-merged) .sandbox-message-bubble::before {
367
+ position: absolute;
368
+ top: 0;
369
+ width: 8px;
370
+ height: 14px;
371
+ background: inherit;
372
+ content: "";
373
+ }
374
+
375
+ .sandbox-message-list.has-tail .sandbox-message-row:not(.is-outgoing):not(.is-merged) .sandbox-message-bubble::before {
376
+ left: -8px;
377
+ clip-path: path("M 0 0 L 8 0 L 8 14 Q 8 3 0 0 Z");
378
+ }
379
+
380
+ .sandbox-message-list.has-tail .sandbox-message-row.is-outgoing:not(.is-merged) .sandbox-message-bubble::before {
381
+ right: -8px;
382
+ clip-path: path("M 8 0 L 0 0 L 0 14 Q 0 3 8 0 Z");
383
+ }
384
+
385
+ /*
386
+ * 尖角占满头像与气泡之间的 8px,机器人、群头像右下角的角标(shared/avatar.tsx,向外伸出约 3px)会压住尖端。
387
+ * 开启尖角时对方头像右侧多让 4px(间距合计 12px),思考指标行让开的头像列同步加宽;自己一侧的角标在头像外侧,
388
+ * 不受影响。写成头像外边距而不是改 gap:普通消息的间距在 .sandbox-message-select-body 上,等待气泡行的头像
389
+ * 直接放在 .sandbox-message-row 里,多选时行的 gap 还管着勾选框与消息的距离。
390
+ */
391
+ .sandbox-message-list.has-tail .sandbox-message-row:not(.is-outgoing) .sandbox-message-avatar-wrap {
392
+ margin-right: 4px;
393
+ }
394
+
395
+ .sandbox-message-list.has-tail .sandbox-message-thinking-row.is-incoming {
396
+ margin-left: 44px;
397
+ }
398
+
399
+ /*
400
+ * 对方气泡的描边样式(设置 sandboxIncomingBubbleStyle = outline,只作用于亮色主题)。border 包不到气泡外的
401
+ * 尖角伪元素,尖角改画一张 SVG:白底盖住气泡左边框的上段,弧线描边接上气泡的上边框,合成一条完整轮廓。
402
+ * SVG 里的 #fff 与 #e9eaec 是下面两个变量的字面值,改色要同步。border 占去 1px,内边距相应减 1px,
403
+ * 气泡尺寸与默认样式一致;伪元素的定位基准随 border 内缩 1px,尖角外移 1px。
404
+ */
405
+ :root:not(.dark) .sandbox-message-list.has-outline .sandbox-message-row:not(.is-outgoing) .sandbox-message-bubble {
406
+ --sandbox-bubble-bg: #fff;
407
+
408
+ padding: 8px 10px;
409
+ border: 1px solid #e9eaec;
410
+ box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
411
+ }
412
+
413
+ :root:not(.dark) .sandbox-message-list.has-tail.has-outline .sandbox-message-row:not(.is-outgoing):not(.is-merged) .sandbox-message-bubble::before {
414
+ top: -1px;
415
+ left: -9px;
416
+ width: 9px;
417
+ height: 15px;
418
+ clip-path: none;
419
+ background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='15'%3E%3Cpath d='M0 .5H9V15H8.5Q8.5 3.5 0 .5Z' fill='%23fff'/%3E%3Cpath d='M8.5 15Q8.5 3.5 0 .5H9' fill='none' stroke='%23e9eaec'/%3E%3C/svg%3E") no-repeat;
420
+ }
421
+
422
+ .sandbox-message-quote {
423
+ width: 100%;
424
+ display: flex;
425
+ flex-direction: column;
426
+ gap: 2px;
427
+ margin-bottom: 4px;
428
+ padding: 6px 8px;
429
+ box-sizing: border-box;
430
+ border: 0;
431
+ border-left: 3px solid rgb(148 163 184 / 70%);
432
+ border-radius: 6px;
433
+ color: rgb(40 40 44 / 62%);
434
+ background: rgb(148 163 184 / 16%);
435
+ font: inherit;
436
+ font-size: 12px;
437
+ line-height: 17px;
438
+ text-align: left;
439
+ }
440
+
441
+ .sandbox-message-quote-title {
442
+ color: rgb(30 30 34 / 78%);
443
+ font-weight: 600;
444
+ }
445
+
446
+ .sandbox-message-quote-title,
447
+ .sandbox-message-quote span {
448
+ overflow: hidden;
449
+ text-overflow: ellipsis;
450
+ white-space: nowrap;
451
+ }
452
+
453
+ .sandbox-message-row.is-outgoing .sandbox-message-bubble .sandbox-message-quote {
454
+ border-left-color: rgb(255 255 255 / 62%);
455
+ color: rgb(255 255 255 / 82%);
456
+ background: rgb(255 255 255 / 16%);
457
+ }
458
+
459
+ .sandbox-message-row.is-outgoing .sandbox-message-bubble .sandbox-message-quote-title {
460
+ color: #fff;
461
+ }
462
+
463
+ /* 合并转发卡片。 */
464
+ .sandbox-message-quote.sandbox-message-forward {
465
+ width: 260px;
466
+ max-width: 100%;
467
+ text-align: left;
468
+ }
469
+
470
+ .sandbox-message-quote.sandbox-message-forward:disabled {
471
+ opacity: 1;
472
+ }
473
+
474
+ .sandbox-message-forward > span:not(.sandbox-message-forward-entry) {
475
+ display: block;
476
+ /* Flex 子项默认按内容宽度参与布局,显式限制到卡片内容区才能稳定显示省略号。 */
477
+ width: 100%;
478
+ min-width: 0;
479
+ max-width: 100%;
480
+ overflow: hidden;
481
+ white-space: nowrap;
482
+ text-overflow: ellipsis;
483
+ }
484
+
485
+ .sandbox-message-forward-entry {
486
+ display: flex;
487
+ align-items: center;
488
+ justify-content: space-between;
489
+ gap: 16px;
490
+ min-height: 38px;
491
+ margin: 4px -8px -6px;
492
+ padding: 0 8px;
493
+ border-top: 1px solid rgb(148 163 184 / 18%);
494
+ color: rgb(80 90 110 / 62%);
495
+ text-align: left;
496
+ }
497
+
498
+ .sandbox-message-forward-entry > svg {
499
+ flex: none;
500
+ }
501
+
502
+ .sandbox-message-row.is-outgoing .sandbox-message-bubble .sandbox-message-forward-entry {
503
+ border-top-color: rgb(255 255 255 / 22%);
504
+ color: rgb(255 255 255 / 78%);
505
+ }
506
+
507
+ .sandbox-message-media {
508
+ display: flex;
509
+ max-width: min(280px, 100%);
510
+ flex-direction: column;
511
+ }
512
+
513
+ /* 图片放大的点击区;`min-width: 0` 防止按钮以图片固有宽度撑破窄气泡。 */
514
+ .sandbox-message-image {
515
+ display: block;
516
+ min-width: 0;
517
+ padding: 0;
518
+ border: 0;
519
+ border-radius: 7px;
520
+ background: transparent;
521
+ }
522
+
523
+ .sandbox-message-image:focus-visible {
524
+ outline: 2px solid var(--sandbox-accent);
525
+ outline-offset: 2px;
526
+ }
527
+
528
+ .sandbox-message-image img,
529
+ .sandbox-message-media img,
530
+ .sandbox-message-media video {
531
+ display: block;
532
+ max-width: 100%;
533
+ max-height: 280px;
534
+ border-radius: 7px;
535
+ object-fit: contain;
536
+ }
537
+
538
+ .sandbox-message-media audio {
539
+ width: min(260px, 100%);
540
+ height: 36px;
541
+ }
542
+
543
+ .sandbox-message-file {
544
+ display: flex;
545
+ min-width: 210px;
546
+ max-width: 100%;
547
+ align-items: center;
548
+ gap: 10px;
549
+ padding: 9px 10px;
550
+ border-radius: 8px;
551
+ color: inherit;
552
+ background: rgb(148 163 184 / 14%);
553
+ text-decoration: none;
554
+ }
555
+
556
+ .sandbox-message-row.is-outgoing .sandbox-message-file {
557
+ background: rgb(255 255 255 / 14%);
558
+ }
559
+
560
+ .sandbox-message-file > svg {
561
+ flex: none;
562
+ }
563
+
564
+ .sandbox-message-file span {
565
+ display: flex;
566
+ min-width: 0;
567
+ flex-direction: column;
568
+ }
569
+
570
+ .sandbox-message-file strong,
571
+ .sandbox-message-file small {
572
+ overflow: hidden;
573
+ text-overflow: ellipsis;
574
+ white-space: nowrap;
575
+ }
576
+
577
+ .sandbox-message-file small,
578
+ .sandbox-message-media-loading {
579
+ color: var(--sandbox-muted);
580
+ font-size: 11px;
581
+ }
582
+
583
+ .sandbox-message-row.is-outgoing .sandbox-message-file small,
584
+ .sandbox-message-row.is-outgoing .sandbox-message-media-loading {
585
+ color: rgb(255 255 255 / 72%);
586
+ }
587
+
588
+ .sandbox-message-row.is-quote-target .sandbox-message-bubble::after {
589
+ position: absolute;
590
+ inset: 0;
591
+ border-radius: inherit;
592
+ box-shadow: 0 0 0 5px rgb(59 130 246 / 22%), 0 8px 18px rgb(37 99 235 / 18%);
593
+ content: "";
594
+ pointer-events: none;
595
+ opacity: 0;
596
+ /* Chrome 在平滑滚动期间直接重绘 box-shadow 偶发横向图层接缝;固定阴影后只合成透明度。 */
597
+ animation: sandbox-message-quote-target 1.4s ease-out;
598
+ will-change: opacity;
599
+ }
600
+
601
+ @keyframes sandbox-message-quote-target {
602
+ 0% {
603
+ opacity: 0;
604
+ }
605
+
606
+ 32% {
607
+ opacity: 1;
608
+ }
609
+
610
+ 100% {
611
+ opacity: 0;
612
+ }
613
+ }
614
+
615
+ /* 表情回应胶囊:底色取所在气泡的派生色,出站与入站各自协调。 */
616
+ .sandbox-message-reactions {
617
+ display: flex;
618
+ max-width: 100%;
619
+ flex-wrap: wrap;
620
+ gap: 4px;
621
+ margin-top: 0;
622
+ margin-bottom: -5px;
623
+ }
624
+
625
+ .sandbox-message-reaction {
626
+ --sandbox-reaction-avatar-size: 18px;
627
+
628
+ display: inline-flex;
629
+ align-items: center;
630
+ gap: 4px;
631
+ margin: 0;
632
+ padding: 0 0 0 2px;
633
+ border: 0;
634
+ border-radius: 999px;
635
+ color: var(--sandbox-accent);
636
+ background: var(--sandbox-reaction-bg);
637
+ font-size: 12px;
638
+ line-height: 18px;
639
+ white-space: nowrap;
640
+ }
641
+
642
+ .sandbox-message-row.is-outgoing .sandbox-message-reaction {
643
+ color: #fff;
644
+ }
645
+
646
+ .sandbox-message-reaction-users {
647
+ display: inline-flex;
648
+ align-items: center;
649
+ }
650
+
651
+ .sandbox-message-reaction-avatar {
652
+ position: relative;
653
+ display: block;
654
+ box-sizing: border-box;
655
+ width: var(--sandbox-reaction-avatar-size);
656
+ height: var(--sandbox-reaction-avatar-size);
657
+ flex: 0 0 var(--sandbox-reaction-avatar-size);
658
+ overflow: hidden;
659
+ padding: 1px;
660
+ border-radius: 50%;
661
+ background: var(--sandbox-reaction-bg);
662
+ }
663
+
664
+ .sandbox-message-reaction-avatar:not(:only-child):not(:last-child) {
665
+ box-shadow: 0 0 0 1px var(--sandbox-reaction-bg);
666
+ }
667
+
668
+ .sandbox-message-reaction-avatar + .sandbox-message-reaction-avatar {
669
+ margin-left: -6px;
670
+ }
671
+
672
+ .sandbox-message-reaction-emoji {
673
+ width: 18px;
674
+ height: 18px;
675
+ flex: 0 0 auto;
676
+ object-fit: contain;
677
+ }
678
+
679
+ /* 多选:marker 固定占最左列,出站气泡仍由 select-body 内部反转并靠右。 */
680
+ .sandbox-message-list.is-selecting .sandbox-message-row.is-selectable {
681
+ width: 100%;
682
+ max-width: 100%;
683
+ }
684
+
685
+ .sandbox-message-row.is-selecting {
686
+ position: relative;
687
+ align-items: center;
688
+ flex-direction: row;
689
+ text-align: left;
690
+ }
691
+
692
+ .sandbox-message-select-marker {
693
+ display: inline-flex;
694
+ width: 20px;
695
+ height: 20px;
696
+ flex: none;
697
+ align-items: center;
698
+ justify-content: center;
699
+ border: 1.5px solid color-mix(in srgb, var(--sandbox-muted) 55%, transparent);
700
+ border-radius: 50%;
701
+ color: transparent;
702
+ background: color-mix(in srgb, var(--background) 88%, transparent);
703
+ transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
704
+ }
705
+
706
+ .sandbox-message-row.is-selecting .sandbox-message-select-marker {
707
+ margin-top: 10px;
708
+ align-self: flex-start;
709
+ }
710
+
711
+ .sandbox-message-select-marker.is-checked {
712
+ border-color: var(--sandbox-accent);
713
+ color: #fff;
714
+ background: var(--sandbox-accent);
715
+ }
716
+
717
+ /* select-body 始终承接消息行的左右布局,避免非多选时头像与内容叠成一列。 */
718
+ .sandbox-message-select-body {
719
+ display: flex;
720
+ align-items: flex-start;
721
+ gap: 8px;
722
+ min-width: 0;
723
+ max-width: 100%;
724
+ }
725
+
726
+ .sandbox-message-row.is-outgoing .sandbox-message-select-body {
727
+ flex-direction: row-reverse;
728
+ text-align: right;
729
+ }
730
+
731
+ .sandbox-message-row.is-selecting.is-outgoing .sandbox-message-select-body {
732
+ margin-left: auto;
733
+ }
734
+
735
+ /* 机器人正在思考:复用消息行结构,高度对齐单行文字气泡。 */
736
+ .sandbox-message-thinking-dots {
737
+ display: flex;
738
+ width: 44px;
739
+ min-height: 19px;
740
+ align-items: center;
741
+ justify-content: center;
742
+ gap: 5px;
743
+ }
744
+
745
+ .sandbox-message-thinking-dot {
746
+ width: 6px;
747
+ height: 6px;
748
+ border-radius: 50%;
749
+ background: currentColor;
750
+ opacity: 0.72;
751
+ animation: sandbox-message-thinking-dot 1s ease-in-out infinite;
752
+ }
753
+
754
+ .sandbox-message-thinking-dot:nth-child(2) {
755
+ animation-delay: 0.14s;
756
+ }
757
+
758
+ .sandbox-message-thinking-dot:nth-child(3) {
759
+ animation-delay: 0.28s;
760
+ }
761
+
762
+ @keyframes sandbox-message-thinking-dot {
763
+ 0%,
764
+ 80%,
765
+ 100% {
766
+ transform: translateY(0);
767
+ opacity: 0.48;
768
+ }
769
+
770
+ 40% {
771
+ transform: translateY(-4px);
772
+ opacity: 1;
773
+ }
774
+ }
775
+
776
+ /* 思考指标行跟在机器人最后一条消息下方:负上边距抵消消息行的 16px 间距,并让开 40px 头像列。
777
+ 宽度上限不用 74%:折叠态下整行宽度只由指标行决定,74% 在窄聊天区会把指标行压到换行。 */
778
+ .sandbox-message-thinking-row {
779
+ position: relative;
780
+ max-width: calc(100% - 40px);
781
+ display: flex;
782
+ flex-direction: column;
783
+ align-items: flex-end;
784
+ margin: -12px 40px 16px auto;
785
+ text-align: right;
786
+ }
787
+
788
+ .sandbox-message-thinking-row:last-child {
789
+ margin-bottom: 0;
790
+ }
791
+
792
+ .sandbox-message-thinking-row.is-incoming {
793
+ align-items: flex-start;
794
+ margin-right: auto;
795
+ margin-left: 40px;
796
+ text-align: left;
797
+ }
798
+
799
+ .sandbox-message-thinking-toggle {
800
+ max-width: 100%;
801
+ display: inline-flex;
802
+ align-items: center;
803
+ justify-content: flex-end;
804
+ padding: 0;
805
+ border: 0;
806
+ margin-top: 4px;
807
+ background: transparent;
808
+ color: var(--sandbox-muted);
809
+ font-size: 12px;
810
+ gap: 2px;
811
+ line-height: 18px;
812
+ /* 指标行必须始终单行:换行会把箭头挤到第二行。 */
813
+ white-space: nowrap;
814
+ }
815
+
816
+ /* 机器人在左侧时整体靠左并镜像 Token 位置,箭头始终紧跟在思考时长右侧。 */
817
+ .sandbox-message-thinking-row.is-incoming .sandbox-message-thinking-toggle {
818
+ justify-content: flex-start;
819
+ }
820
+
821
+ .sandbox-message-thinking-row.is-incoming .sandbox-message-thinking-duration {
822
+ order: 1;
823
+ }
824
+
825
+ .sandbox-message-thinking-row.is-incoming .sandbox-message-thinking-chevron {
826
+ order: 2;
827
+ }
828
+
829
+ .sandbox-message-thinking-row.is-incoming .sandbox-message-thinking-usage {
830
+ order: 3;
831
+ }
832
+
833
+ /* Token 指标默认隐藏,悬停或键盘聚焦折叠按钮时淡入,避免常态下与思考时长争抢注意力。 */
834
+ .sandbox-message-thinking-usage {
835
+ display: inline-flex;
836
+ align-items: center;
837
+ justify-content: flex-end;
838
+ margin-right: 8px;
839
+ color: var(--sandbox-muted);
840
+ font-size: 12px;
841
+ gap: 6px;
842
+ line-height: 18px;
843
+ opacity: 0;
844
+ pointer-events: none;
845
+ transition: opacity 0.16s ease, visibility 0.16s ease;
846
+ visibility: hidden;
847
+ white-space: nowrap;
848
+ }
849
+
850
+ .sandbox-message-thinking-row.is-incoming .sandbox-message-thinking-usage {
851
+ margin-right: 0;
852
+ margin-left: 8px;
853
+ }
854
+
855
+ .sandbox-message-thinking-usage-group {
856
+ display: inline-flex;
857
+ align-items: center;
858
+ gap: 2px;
859
+ white-space: nowrap;
860
+ }
861
+
862
+ /* 与消息时间一致:悬停消息行或指标所在行时显示。指标行是消息行之后的兄弟 li,用相邻选择器联动。 */
863
+ .sandbox-message-thinking-toggle:hover .sandbox-message-thinking-usage,
864
+ .sandbox-message-thinking-toggle:focus-visible .sandbox-message-thinking-usage,
865
+ .sandbox-message-row:hover + .sandbox-message-thinking-row .sandbox-message-thinking-usage,
866
+ .sandbox-message-thinking-row.is-usage-only:hover .sandbox-message-thinking-usage {
867
+ opacity: 1;
868
+ visibility: visible;
869
+ }
870
+
871
+ .sandbox-message-thinking-row.is-usage-only .sandbox-message-thinking-usage {
872
+ margin-right: 0;
873
+ }
874
+
875
+ .sandbox-message-thinking-row.is-usage-only.is-incoming .sandbox-message-thinking-usage {
876
+ margin-left: 0;
877
+ }
878
+
879
+ .sandbox-message-thinking-usage-icon {
880
+ width: 13px;
881
+ height: 13px;
882
+ fill: none;
883
+ stroke: currentColor;
884
+ stroke-linecap: round;
885
+ stroke-linejoin: round;
886
+ stroke-width: 1.8;
887
+ }
888
+
889
+ .sandbox-message-thinking-usage-icon.is-output {
890
+ margin-left: 4px;
891
+ }
892
+
893
+ .sandbox-message-thinking-chevron {
894
+ width: 13px;
895
+ height: 13px;
896
+ fill: none;
897
+ flex-shrink: 0;
898
+ stroke: currentColor;
899
+ stroke-linecap: round;
900
+ stroke-linejoin: round;
901
+ stroke-width: 1.8;
902
+ transition: transform 0.16s ease;
903
+ }
904
+
905
+ /* 两侧朝向一致:折叠指右,展开朝下。 */
906
+ .sandbox-message-thinking-chevron.is-expanded {
907
+ transform: rotate(90deg);
908
+ }
909
+
910
+ .sandbox-message-thinking-panel {
911
+ max-width: min(360px, 100%);
912
+ margin-top: 4px;
913
+ transform-origin: top right;
914
+ animation: sandbox-message-thinking-enter 0.16s ease;
915
+ }
916
+
917
+ .sandbox-message-thinking-row.is-incoming .sandbox-message-thinking-panel {
918
+ transform-origin: top left;
919
+ }
920
+
921
+ /* 边缘与对方气泡同一套处理:源插件的聊天区有渐变底,72% 白底自带轮廓;v2 的聊天区是白底,不加投影
922
+ 面板就和背景融成一片。描边样式(has-outline)下同样改成白底细描边,左侧强调线保留。 */
923
+ .sandbox-message-thinking-content {
924
+ min-height: 0;
925
+ padding: 8px 10px;
926
+ border-left: 2px solid rgb(148 163 184 / 54%);
927
+ border-radius: 6px;
928
+ background: rgb(255 255 255 / 90%);
929
+ box-shadow: 0 2px 8px rgb(15 23 42 / 8%);
930
+ color: var(--sandbox-muted);
931
+ font-size: 12px;
932
+ line-height: 18px;
933
+ overflow: hidden;
934
+ overflow-wrap: anywhere;
935
+ text-align: left;
936
+ white-space: pre-wrap;
937
+ }
938
+
939
+ :root:not(.dark) .sandbox-message-list.has-outline .sandbox-message-thinking-content {
940
+ padding: 7px 9px 7px 10px;
941
+ border: 1px solid #e9eaec;
942
+ border-left: 2px solid rgb(148 163 184 / 54%);
943
+ background: #fff;
944
+ box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
945
+ }
946
+
947
+ @keyframes sandbox-message-thinking-enter {
948
+ from {
949
+ opacity: 0;
950
+ transform: translateY(-4px) scaleY(0.98);
951
+ }
952
+ }
953
+
954
+ /* 暗色:身份标签改成半透明底,亮色的实色底块在深色背景上过于刺眼。 */
955
+ .dark .sandbox-message-role-badge.is-owner {
956
+ color: #fbbf24;
957
+ background: rgb(251 191 36 / 14%);
958
+ }
959
+
960
+ .dark .sandbox-message-role-badge.is-admin {
961
+ color: #4ade80;
962
+ background: rgb(74 222 128 / 12%);
963
+ }
964
+
965
+ .dark .sandbox-message-role-badge.is-title {
966
+ color: #38bdf8;
967
+ background: rgb(56 189 248 / 14%);
968
+ }
969
+
970
+ /* 暗色:沿用源插件暗色模式的气泡、引用与转发卡片配色。 */
971
+ .dark .sandbox-message-bubble {
972
+ --sandbox-bubble-bg: rgb(57 57 63);
973
+ --sandbox-reaction-bg: rgb(47 47 52);
974
+
975
+ color: #e5edf7;
976
+ }
977
+
978
+ .dark .sandbox-message-row.is-outgoing .sandbox-message-bubble {
979
+ --sandbox-bubble-bg: var(--sandbox-accent);
980
+ --sandbox-reaction-bg: color-mix(in srgb, var(--sandbox-bubble-bg) 88%, #0f172a 12%);
981
+
982
+ color: #fff;
983
+ }
984
+
985
+ .dark .sandbox-message-quote {
986
+ border-left-color: rgb(161 161 170 / 62%);
987
+ color: rgb(212 212 216 / 82%);
988
+ background: rgb(39 39 42 / 62%);
989
+ }
990
+
991
+ .dark .sandbox-message-quote-title {
992
+ color: #f4f4f5;
993
+ }
994
+
995
+ .dark .sandbox-message-row.is-outgoing .sandbox-message-quote {
996
+ border-left-color: rgb(255 255 255 / 62%);
997
+ color: rgb(255 255 255 / 82%);
998
+ background: rgb(255 255 255 / 16%);
999
+ }
1000
+
1001
+ .dark .sandbox-message-row.is-outgoing .sandbox-message-quote-title {
1002
+ color: #fff;
1003
+ }
1004
+
1005
+ .dark .sandbox-message-forward-entry {
1006
+ border-top-color: rgb(161 161 170 / 28%);
1007
+ color: #a1a1aa;
1008
+ }
1009
+
1010
+ .dark .sandbox-message-row.is-outgoing .sandbox-message-bubble .sandbox-message-forward-entry {
1011
+ border-top-color: rgb(255 255 255 / 22%);
1012
+ color: rgb(255 255 255 / 78%);
1013
+ }
1014
+
1015
+ .dark .sandbox-message-thinking-content {
1016
+ background: rgb(39 39 42 / 62%);
1017
+ box-shadow: 0 0 0 1px rgb(255 255 255 / 8%);
1018
+ }