@clagentic/console 1.0.0-beta.1

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 (221) hide show
  1. package/CREDITS.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +250 -0
  4. package/bin/cli.js +2812 -0
  5. package/lib/agents-favorites.js +164 -0
  6. package/lib/agents.js +282 -0
  7. package/lib/ask-user-mcp-server.js +120 -0
  8. package/lib/browser-mcp-server.js +484 -0
  9. package/lib/build-user-env.js +63 -0
  10. package/lib/certs/fullchain.pem +47 -0
  11. package/lib/certs/privkey.pem +5 -0
  12. package/lib/cli-sessions.js +265 -0
  13. package/lib/codex-defaults.js +18 -0
  14. package/lib/config.js +332 -0
  15. package/lib/crisis-safety.js +60 -0
  16. package/lib/daemon-projects.js +164 -0
  17. package/lib/daemon.js +1602 -0
  18. package/lib/dm.js +128 -0
  19. package/lib/ipc.js +125 -0
  20. package/lib/ipv4-only.js +39 -0
  21. package/lib/mcp-local.js +385 -0
  22. package/lib/notes.js +141 -0
  23. package/lib/os-users.js +529 -0
  24. package/lib/pages.js +1325 -0
  25. package/lib/project-connection.js +302 -0
  26. package/lib/project-external-trigger.js +236 -0
  27. package/lib/project-file-watch.js +120 -0
  28. package/lib/project-filesystem.js +528 -0
  29. package/lib/project-http.js +753 -0
  30. package/lib/project-image.js +95 -0
  31. package/lib/project-knowledge.js +88 -0
  32. package/lib/project-loop.js +1304 -0
  33. package/lib/project-mcp.js +374 -0
  34. package/lib/project-memory.js +39 -0
  35. package/lib/project-notifications.js +262 -0
  36. package/lib/project-sessions.js +1581 -0
  37. package/lib/project-user-mention.js +193 -0
  38. package/lib/project-user-message.js +628 -0
  39. package/lib/project.js +1303 -0
  40. package/lib/public/app.js +1031 -0
  41. package/lib/public/apple-touch-icon.png +0 -0
  42. package/lib/public/claude-code-avatar.png +0 -0
  43. package/lib/public/codex-avatar.png +0 -0
  44. package/lib/public/console-icon.png +0 -0
  45. package/lib/public/css/admin.css +736 -0
  46. package/lib/public/css/agent-picker.css +119 -0
  47. package/lib/public/css/base.css +235 -0
  48. package/lib/public/css/channel-layout.css +441 -0
  49. package/lib/public/css/command-palette.css +559 -0
  50. package/lib/public/css/debate.css +1609 -0
  51. package/lib/public/css/diff.css +139 -0
  52. package/lib/public/css/filebrowser.css +1976 -0
  53. package/lib/public/css/highlight.css +144 -0
  54. package/lib/public/css/home-hub.css +545 -0
  55. package/lib/public/css/icon-strip.css +1856 -0
  56. package/lib/public/css/input.css +1349 -0
  57. package/lib/public/css/loop.css +1248 -0
  58. package/lib/public/css/mention.css +317 -0
  59. package/lib/public/css/menus.css +857 -0
  60. package/lib/public/css/messages.css +1833 -0
  61. package/lib/public/css/mobile-nav.css +1332 -0
  62. package/lib/public/css/notifications-center.css +296 -0
  63. package/lib/public/css/overlays.css +1273 -0
  64. package/lib/public/css/playbook.css +264 -0
  65. package/lib/public/css/profile.css +397 -0
  66. package/lib/public/css/rewind.css +671 -0
  67. package/lib/public/css/scheduler-modal.css +1495 -0
  68. package/lib/public/css/scheduler.css +1420 -0
  69. package/lib/public/css/server-settings.css +909 -0
  70. package/lib/public/css/session-search.css +159 -0
  71. package/lib/public/css/sidebar.css +2012 -0
  72. package/lib/public/css/skills.css +789 -0
  73. package/lib/public/css/sticky-notes.css +854 -0
  74. package/lib/public/css/stt.css +155 -0
  75. package/lib/public/css/title-bar.css +674 -0
  76. package/lib/public/css/tooltip.css +67 -0
  77. package/lib/public/css/user-settings.css +702 -0
  78. package/lib/public/emoji-data.json +1 -0
  79. package/lib/public/favicon-banded-32.png +0 -0
  80. package/lib/public/favicon-banded.png +0 -0
  81. package/lib/public/favicon-dark.svg +32 -0
  82. package/lib/public/favicon.svg +32 -0
  83. package/lib/public/icon-192.png +0 -0
  84. package/lib/public/icon-512.png +0 -0
  85. package/lib/public/icon-banded-76.png +0 -0
  86. package/lib/public/icon-banded-96.png +0 -0
  87. package/lib/public/icon-mono.svg +25 -0
  88. package/lib/public/icons/email/gmail.svg +7 -0
  89. package/lib/public/icons/email/outlook.svg +35 -0
  90. package/lib/public/icons/email/yahoo.svg +1 -0
  91. package/lib/public/index.html +1946 -0
  92. package/lib/public/manifest.json +27 -0
  93. package/lib/public/markdown-worker.js +43 -0
  94. package/lib/public/marked.min.js +6 -0
  95. package/lib/public/modules/admin.js +954 -0
  96. package/lib/public/modules/agent-picker.js +429 -0
  97. package/lib/public/modules/app-connection.js +216 -0
  98. package/lib/public/modules/app-cursors.js +492 -0
  99. package/lib/public/modules/app-dm.js +265 -0
  100. package/lib/public/modules/app-favicon.js +231 -0
  101. package/lib/public/modules/app-header.js +242 -0
  102. package/lib/public/modules/app-home-hub.js +432 -0
  103. package/lib/public/modules/app-loop-ui.js +691 -0
  104. package/lib/public/modules/app-loop-wizard.js +439 -0
  105. package/lib/public/modules/app-messages.js +1415 -0
  106. package/lib/public/modules/app-misc.js +463 -0
  107. package/lib/public/modules/app-notifications.js +651 -0
  108. package/lib/public/modules/app-panels.js +1061 -0
  109. package/lib/public/modules/app-projects.js +875 -0
  110. package/lib/public/modules/app-rate-limit.js +529 -0
  111. package/lib/public/modules/app-rendering.js +739 -0
  112. package/lib/public/modules/app-skills-install.js +285 -0
  113. package/lib/public/modules/avatar.js +36 -0
  114. package/lib/public/modules/command-palette.js +491 -0
  115. package/lib/public/modules/console-logo.js +162 -0
  116. package/lib/public/modules/context-sources.js +365 -0
  117. package/lib/public/modules/diff.js +412 -0
  118. package/lib/public/modules/dom-refs.js +21 -0
  119. package/lib/public/modules/emoji-picker.js +222 -0
  120. package/lib/public/modules/events.js +21 -0
  121. package/lib/public/modules/filebrowser.js +1966 -0
  122. package/lib/public/modules/fileicons.js +172 -0
  123. package/lib/public/modules/icons.js +80 -0
  124. package/lib/public/modules/input.js +1102 -0
  125. package/lib/public/modules/longpress.js +74 -0
  126. package/lib/public/modules/markdown.js +486 -0
  127. package/lib/public/modules/mcp-ui.js +295 -0
  128. package/lib/public/modules/mention.js +1093 -0
  129. package/lib/public/modules/notifications.js +613 -0
  130. package/lib/public/modules/playbook.js +578 -0
  131. package/lib/public/modules/profile.js +594 -0
  132. package/lib/public/modules/project-settings.js +849 -0
  133. package/lib/public/modules/project-switcher.js +375 -0
  134. package/lib/public/modules/qrcode.js +87 -0
  135. package/lib/public/modules/rewind.js +381 -0
  136. package/lib/public/modules/scheduler-config.js +1611 -0
  137. package/lib/public/modules/scheduler-history.js +131 -0
  138. package/lib/public/modules/scheduler.js +1689 -0
  139. package/lib/public/modules/server-settings.js +842 -0
  140. package/lib/public/modules/session-search.js +456 -0
  141. package/lib/public/modules/settings-defaults.js +253 -0
  142. package/lib/public/modules/sidebar-mobile.js +1425 -0
  143. package/lib/public/modules/sidebar-projects.js +2022 -0
  144. package/lib/public/modules/sidebar-sessions.js +1548 -0
  145. package/lib/public/modules/sidebar-users.js +449 -0
  146. package/lib/public/modules/sidebar.js +348 -0
  147. package/lib/public/modules/skills.js +793 -0
  148. package/lib/public/modules/state.js +3 -0
  149. package/lib/public/modules/sticky-notes.js +1221 -0
  150. package/lib/public/modules/store.js +34 -0
  151. package/lib/public/modules/stt.js +266 -0
  152. package/lib/public/modules/terminal.js +987 -0
  153. package/lib/public/modules/theme.js +812 -0
  154. package/lib/public/modules/tool-palette.js +562 -0
  155. package/lib/public/modules/tools.js +2285 -0
  156. package/lib/public/modules/tooltip.js +150 -0
  157. package/lib/public/modules/user-settings.js +544 -0
  158. package/lib/public/modules/utils.js +56 -0
  159. package/lib/public/modules/ws-ref.js +26 -0
  160. package/lib/public/style.css +34 -0
  161. package/lib/public/sw.js +159 -0
  162. package/lib/push.js +149 -0
  163. package/lib/scheduler.js +471 -0
  164. package/lib/sdk-bridge.js +1792 -0
  165. package/lib/sdk-message-processor.js +740 -0
  166. package/lib/sdk-message-queue.js +42 -0
  167. package/lib/sdk-skill-discovery.js +131 -0
  168. package/lib/sdk-worker.js +677 -0
  169. package/lib/server-admin.js +712 -0
  170. package/lib/server-auth.js +737 -0
  171. package/lib/server-dm.js +170 -0
  172. package/lib/server-palette.js +104 -0
  173. package/lib/server-settings.js +553 -0
  174. package/lib/server-skills.js +280 -0
  175. package/lib/server.js +1390 -0
  176. package/lib/session-search.js +693 -0
  177. package/lib/sessions.js +946 -0
  178. package/lib/smtp.js +221 -0
  179. package/lib/terminal-manager.js +219 -0
  180. package/lib/terminal.js +39 -0
  181. package/lib/themes/ayu-light.json +9 -0
  182. package/lib/themes/catppuccin-latte.json +9 -0
  183. package/lib/themes/catppuccin-mocha.json +9 -0
  184. package/lib/themes/clagentic-dark.json +10 -0
  185. package/lib/themes/clagentic-light.json +10 -0
  186. package/lib/themes/dracula.json +9 -0
  187. package/lib/themes/everforest-light.json +9 -0
  188. package/lib/themes/everforest.json +9 -0
  189. package/lib/themes/github-light.json +9 -0
  190. package/lib/themes/gruvbox-dark.json +9 -0
  191. package/lib/themes/gruvbox-light.json +9 -0
  192. package/lib/themes/monokai.json +9 -0
  193. package/lib/themes/nord-light.json +9 -0
  194. package/lib/themes/nord.json +9 -0
  195. package/lib/themes/one-dark.json +9 -0
  196. package/lib/themes/one-light.json +9 -0
  197. package/lib/themes/rose-pine-dawn.json +9 -0
  198. package/lib/themes/rose-pine.json +9 -0
  199. package/lib/themes/solarized-dark.json +9 -0
  200. package/lib/themes/solarized-light.json +9 -0
  201. package/lib/themes/tokyo-night-light.json +9 -0
  202. package/lib/themes/tokyo-night.json +9 -0
  203. package/lib/updater.js +124 -0
  204. package/lib/user-presence.js +92 -0
  205. package/lib/users-auth.js +146 -0
  206. package/lib/users-permissions.js +118 -0
  207. package/lib/users-preferences.js +254 -0
  208. package/lib/users.js +465 -0
  209. package/lib/utils.js +64 -0
  210. package/lib/worktree.js +134 -0
  211. package/lib/ws-schema.js +464 -0
  212. package/lib/yoke/adapters/claude-worker.js +759 -0
  213. package/lib/yoke/adapters/claude.js +1599 -0
  214. package/lib/yoke/adapters/codex.js +1559 -0
  215. package/lib/yoke/codex-app-server.js +352 -0
  216. package/lib/yoke/index.js +319 -0
  217. package/lib/yoke/instructions.js +61 -0
  218. package/lib/yoke/interface.js +98 -0
  219. package/lib/yoke/mcp-bridge-server.js +302 -0
  220. package/lib/yoke/package.json +7 -0
  221. package/package.json +72 -0
@@ -0,0 +1,1349 @@
1
+ /* --- Pasted content chips (in chat bubble) --- */
2
+ .bubble-pastes {
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ gap: 6px;
6
+ margin-bottom: 8px;
7
+ }
8
+
9
+ .bubble-pastes:last-child { margin-bottom: 0; }
10
+
11
+ .bubble-paste {
12
+ display: inline-flex;
13
+ align-items: center;
14
+ gap: 8px;
15
+ background: rgba(var(--overlay-rgb), 0.06);
16
+ border: 1px solid var(--border);
17
+ border-radius: 10px;
18
+ padding: 8px 12px;
19
+ cursor: pointer;
20
+ transition: border-color 0.15s, background 0.15s;
21
+ max-width: 220px;
22
+ }
23
+
24
+ .bubble-paste:hover {
25
+ border-color: var(--text-dimmer);
26
+ background: rgba(var(--overlay-rgb), 0.1);
27
+ }
28
+
29
+ .bubble-paste-preview {
30
+ font-size: 12px;
31
+ color: var(--text-muted);
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ flex: 1;
36
+ min-width: 0;
37
+ }
38
+
39
+ .bubble-paste-label {
40
+ font-size: 10px;
41
+ font-weight: 700;
42
+ color: var(--text-dimmer);
43
+ letter-spacing: 0.05em;
44
+ flex-shrink: 0;
45
+ }
46
+
47
+ /* --- Pasted content chips (input preview) --- */
48
+ .pasted-chip {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ gap: 6px;
52
+ background: var(--bg-alt);
53
+ border: 1px solid var(--border);
54
+ border-radius: 10px;
55
+ padding: 6px 10px;
56
+ font-size: 12px;
57
+ max-width: 200px;
58
+ }
59
+
60
+ .pasted-chip-preview {
61
+ color: var(--text-muted);
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ flex: 1;
66
+ min-width: 0;
67
+ }
68
+
69
+ .pasted-chip-label {
70
+ font-size: 10px;
71
+ font-weight: 700;
72
+ color: var(--text-dimmer);
73
+ letter-spacing: 0.05em;
74
+ flex-shrink: 0;
75
+ }
76
+
77
+ .pasted-chip-remove {
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ width: 16px;
82
+ height: 16px;
83
+ border-radius: 50%;
84
+ border: none;
85
+ background: transparent;
86
+ color: var(--text-muted);
87
+ cursor: pointer;
88
+ padding: 0;
89
+ flex-shrink: 0;
90
+ }
91
+
92
+ .pasted-chip-remove .lucide { width: 12px; height: 12px; }
93
+ .pasted-chip-remove:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
94
+
95
+ /* --- Paste viewer modal --- */
96
+ #paste-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
97
+ #paste-modal.hidden { display: none; }
98
+
99
+ .paste-modal-dialog {
100
+ max-width: 620px;
101
+ width: 94%;
102
+ max-height: 80vh;
103
+ display: flex;
104
+ flex-direction: column;
105
+ padding: 0;
106
+ }
107
+
108
+ .paste-modal-header {
109
+ display: flex;
110
+ align-items: center;
111
+ justify-content: space-between;
112
+ padding: 16px 20px;
113
+ border-bottom: 1px solid var(--border-subtle);
114
+ flex-shrink: 0;
115
+ }
116
+
117
+ .paste-modal-title {
118
+ font-size: 15px;
119
+ font-weight: 600;
120
+ color: var(--text);
121
+ }
122
+
123
+ .paste-modal-actions {
124
+ display: flex;
125
+ align-items: center;
126
+ gap: 4px;
127
+ }
128
+
129
+ .paste-modal-copy,
130
+ .paste-modal-close {
131
+ display: flex;
132
+ align-items: center;
133
+ justify-content: center;
134
+ background: none;
135
+ border: none;
136
+ color: var(--text-muted);
137
+ cursor: pointer;
138
+ padding: 4px;
139
+ border-radius: 6px;
140
+ transition: color 0.15s, background 0.15s;
141
+ }
142
+
143
+ .paste-modal-copy:hover,
144
+ .paste-modal-close:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.06); }
145
+
146
+ .paste-modal-body {
147
+ margin: 0;
148
+ padding: 16px 20px;
149
+ font-family: "Roboto Mono", monospace;
150
+ font-size: 13px;
151
+ line-height: 1.55;
152
+ color: var(--text-secondary);
153
+ white-space: pre-wrap;
154
+ word-break: break-word;
155
+ overflow-y: auto;
156
+ min-height: 0;
157
+ }
158
+
159
+ /* --- File chips (input preview) --- */
160
+ .file-chip {
161
+ display: inline-flex;
162
+ align-items: center;
163
+ gap: 6px;
164
+ background: var(--bg-alt);
165
+ border: 1px solid var(--border);
166
+ border-radius: 10px;
167
+ padding: 6px 10px;
168
+ font-size: 12px;
169
+ max-width: 200px;
170
+ }
171
+
172
+ .file-chip-icon {
173
+ display: flex;
174
+ align-items: center;
175
+ color: var(--text-muted);
176
+ flex-shrink: 0;
177
+ }
178
+
179
+ .file-chip-icon .lucide { width: 14px; height: 14px; }
180
+
181
+ .file-chip-name {
182
+ color: var(--text-secondary);
183
+ overflow: hidden;
184
+ text-overflow: ellipsis;
185
+ white-space: nowrap;
186
+ flex: 1;
187
+ min-width: 0;
188
+ }
189
+
190
+ .file-chip-remove {
191
+ display: flex;
192
+ align-items: center;
193
+ justify-content: center;
194
+ width: 16px;
195
+ height: 16px;
196
+ border-radius: 50%;
197
+ border: none;
198
+ background: transparent;
199
+ color: var(--text-muted);
200
+ cursor: pointer;
201
+ padding: 0;
202
+ flex-shrink: 0;
203
+ }
204
+
205
+ .file-chip-remove .lucide { width: 12px; height: 12px; }
206
+ .file-chip-remove:hover { color: var(--text); background: rgba(var(--overlay-rgb), 0.1); }
207
+
208
+ .file-chip-uploading {
209
+ opacity: 0.6;
210
+ }
211
+
212
+ .file-chip-spinner {
213
+ width: 14px;
214
+ height: 14px;
215
+ border: 2px solid var(--border);
216
+ border-top-color: var(--text-muted);
217
+ border-radius: 50%;
218
+ animation: spin 0.8s linear infinite;
219
+ flex-shrink: 0;
220
+ }
221
+
222
+ /* --- Image preview bar --- */
223
+ #image-preview-bar {
224
+ display: none;
225
+ width: 100%;
226
+ padding: 6px 4px 4px 14px;
227
+ }
228
+
229
+ #image-preview-bar.visible {
230
+ display: flex;
231
+ flex-wrap: wrap;
232
+ gap: 6px;
233
+ }
234
+
235
+ .image-preview-thumb {
236
+ position: relative;
237
+ display: inline-block;
238
+ }
239
+
240
+ .image-preview-thumb img {
241
+ width: 48px;
242
+ height: 48px;
243
+ object-fit: cover;
244
+ border-radius: 8px;
245
+ border: 1px solid var(--border-subtle);
246
+ cursor: pointer;
247
+ }
248
+
249
+ .image-preview-remove {
250
+ position: absolute;
251
+ top: -6px;
252
+ right: -6px;
253
+ width: 20px;
254
+ height: 20px;
255
+ border-radius: 50%;
256
+ border: 1px solid var(--border);
257
+ background: var(--bg);
258
+ color: var(--text-muted);
259
+ cursor: pointer;
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+ padding: 0;
264
+ }
265
+
266
+ .image-preview-remove .lucide { width: 12px; height: 12px; }
267
+
268
+ .image-preview-remove:hover {
269
+ background: var(--error);
270
+ color: white;
271
+ border-color: var(--error);
272
+ }
273
+
274
+ /* ==========================================================================
275
+ Context Sources — chips above input
276
+ ========================================================================== */
277
+
278
+ /* --- Context Sources (button in toolbar, chips in input-row) --- */
279
+
280
+ #context-sources-btn-wrap {
281
+ position: relative;
282
+ display: flex;
283
+ align-items: center;
284
+ }
285
+
286
+ #context-sources-add {
287
+ display: inline-flex;
288
+ align-items: center;
289
+ gap: 3px;
290
+ height: 36px;
291
+ padding: 0 10px;
292
+ border-radius: 18px;
293
+ border: none;
294
+ background: transparent;
295
+ color: var(--text-muted);
296
+ font-family: inherit;
297
+ font-size: 12px;
298
+ font-weight: 500;
299
+ cursor: pointer;
300
+ transition: background 0.15s, color 0.15s;
301
+ white-space: nowrap;
302
+ }
303
+
304
+ #context-sources-add .lucide { width: 20px; height: 20px; flex-shrink: 0; }
305
+
306
+ #context-sources-add:hover {
307
+ background: rgba(var(--overlay-rgb), 0.06);
308
+ color: var(--text);
309
+ }
310
+
311
+ /* Badge count when sources are active */
312
+ #context-sources-add .ctx-badge {
313
+ display: inline-flex;
314
+ align-items: center;
315
+ justify-content: center;
316
+ min-width: 16px;
317
+ height: 16px;
318
+ padding: 0 4px;
319
+ border-radius: 8px;
320
+ background: #3b82f6;
321
+ color: #fff;
322
+ font-size: 10px;
323
+ font-weight: 700;
324
+ line-height: 1;
325
+ }
326
+
327
+ .context-chip {
328
+ display: inline-flex;
329
+ align-items: stretch;
330
+ padding: 0;
331
+ border-radius: 8px;
332
+ background: var(--bg-alt);
333
+ color: var(--text);
334
+ font-size: 13px;
335
+ font-weight: 500;
336
+ line-height: 1;
337
+ white-space: nowrap;
338
+ border: 1px solid var(--border);
339
+ transition: border-color 0.15s;
340
+ animation: chipIn 0.3s ease-out;
341
+ }
342
+
343
+ @keyframes chipIn {
344
+ from { opacity: 0; transform: translateY(6px) scale(0.95); }
345
+ to { opacity: 1; transform: translateY(0) scale(1); }
346
+ }
347
+
348
+ .context-chip-label {
349
+ display: inline-flex;
350
+ align-items: center;
351
+ gap: 6px;
352
+ padding: 6px 10px 6px 12px;
353
+ }
354
+
355
+ .context-chip-label .lucide { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }
356
+
357
+ .context-chip-remove {
358
+ display: inline-flex;
359
+ align-items: center;
360
+ justify-content: center;
361
+ width: 30px;
362
+ border: none;
363
+ border-left: 1px solid var(--border);
364
+ background: transparent;
365
+ color: var(--text-muted);
366
+ cursor: pointer;
367
+ padding: 0;
368
+ border-radius: 0 8px 8px 0;
369
+ transition: color 0.15s, background 0.15s;
370
+ }
371
+
372
+ .context-chip-remove:hover {
373
+ color: var(--text);
374
+ background: rgba(var(--overlay-rgb), 0.08);
375
+ }
376
+
377
+ .context-chip-remove .lucide { width: 14px; height: 14px; }
378
+
379
+ #context-sources-picker.hidden { display: none; }
380
+
381
+ #context-sources-picker {
382
+ position: absolute;
383
+ bottom: calc(100% + 8px);
384
+ left: 0;
385
+ min-width: 220px;
386
+ max-height: 320px;
387
+ overflow-y: auto;
388
+ background: var(--sidebar-bg);
389
+ border: 1px solid var(--border);
390
+ border-radius: 10px;
391
+ padding: 4px 0;
392
+ box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.15);
393
+ z-index: 200;
394
+ animation: ctxPickerAppear 0.12s ease-out;
395
+ }
396
+
397
+ @keyframes ctxPickerAppear {
398
+ from { opacity: 0; transform: scale(0.95); }
399
+ to { opacity: 1; transform: scale(1); }
400
+ }
401
+
402
+ .context-picker-section-label {
403
+ font-size: 10px;
404
+ font-weight: 600;
405
+ color: var(--text-dimmer);
406
+ text-transform: uppercase;
407
+ letter-spacing: 0.5px;
408
+ padding: 8px 12px 4px;
409
+ }
410
+
411
+ .context-picker-item {
412
+ display: flex;
413
+ align-items: center;
414
+ gap: 8px;
415
+ width: 100%;
416
+ padding: 8px 12px;
417
+ font-size: 13px;
418
+ color: var(--text-secondary);
419
+ background: none;
420
+ border: none;
421
+ cursor: pointer;
422
+ transition: background 0.15s;
423
+ }
424
+
425
+ .context-picker-item:hover {
426
+ background: rgba(var(--overlay-rgb), 0.05);
427
+ }
428
+
429
+ .context-picker-item .lucide { width: 14px; height: 14px; flex-shrink: 0; }
430
+
431
+ .context-picker-check {
432
+ margin-left: auto;
433
+ width: 14px;
434
+ height: 14px;
435
+ color: var(--accent);
436
+ display: none;
437
+ }
438
+
439
+ .context-picker-item.active .context-picker-check {
440
+ display: block;
441
+ }
442
+
443
+ .context-picker-empty {
444
+ padding: 12px;
445
+ color: var(--text-dimmer);
446
+ font-size: 13px;
447
+ text-align: center;
448
+ }
449
+ .context-picker-ext-notice {
450
+ padding: 10px 12px;
451
+ display: flex;
452
+ flex-direction: column;
453
+ gap: 8px;
454
+ }
455
+ .context-picker-ext-notice-text {
456
+ font-size: 12px;
457
+ color: var(--text-dimmer);
458
+ line-height: 1.4;
459
+ }
460
+ .context-picker-ext-btn {
461
+ display: inline-flex;
462
+ align-items: center;
463
+ gap: 5px;
464
+ padding: 5px 10px;
465
+ font-size: 12px;
466
+ font-weight: 500;
467
+ color: var(--text);
468
+ background: var(--bg-hover, rgba(255,255,255,0.06));
469
+ border: 1px solid var(--border);
470
+ border-radius: 6px;
471
+ cursor: pointer;
472
+ transition: background 0.15s;
473
+ width: fit-content;
474
+ }
475
+ .context-picker-ext-btn:hover {
476
+ background: var(--bg-active, rgba(255,255,255,0.1));
477
+ }
478
+ .context-picker-ext-btn .lucide {
479
+ width: 13px;
480
+ height: 13px;
481
+ }
482
+
483
+ .context-picker-favicon {
484
+ width: 14px;
485
+ height: 14px;
486
+ border-radius: 2px;
487
+ flex-shrink: 0;
488
+ object-fit: contain;
489
+ }
490
+
491
+ .context-picker-unread-badge {
492
+ margin-left: auto;
493
+ margin-right: 4px;
494
+ font-size: 11px;
495
+ font-weight: 600;
496
+ background: var(--accent, #DA7756);
497
+ color: #fff;
498
+ border-radius: 8px;
499
+ padding: 1px 6px;
500
+ min-width: 16px;
501
+ text-align: center;
502
+ line-height: 1.3;
503
+ }
504
+
505
+ .context-picker-add-item {
506
+ color: var(--text-dimmer);
507
+ font-size: 13px;
508
+ opacity: 0.8;
509
+ }
510
+ .context-picker-add-item:hover {
511
+ opacity: 1;
512
+ }
513
+
514
+ /* ==========================================================================
515
+ Input Area — Claude-style unified container
516
+ ========================================================================== */
517
+
518
+ #input-area {
519
+ flex-shrink: 0;
520
+ padding: 8px 16px calc(var(--safe-bottom) + 8px);
521
+ background: transparent;
522
+ }
523
+
524
+ #input-wrapper {
525
+ max-width: var(--content-width);
526
+ margin: 0 auto;
527
+ position: relative;
528
+ }
529
+ body.mate-dm-active #input-wrapper,
530
+ #main-column.dm-mode #input-wrapper {
531
+ max-width: 100%;
532
+ }
533
+
534
+ #input-row {
535
+ display: flex;
536
+ flex-direction: column;
537
+ background: var(--input-bg);
538
+ border: none;
539
+ border-radius: 8px;
540
+ padding: 7px;
541
+ transition: box-shadow 0.2s;
542
+ }
543
+
544
+ #input-row:focus-within {
545
+ box-shadow: 0 0 0 1px var(--border);
546
+ }
547
+
548
+ #input-textarea-wrap {
549
+ position: relative;
550
+ }
551
+
552
+ #input {
553
+ width: 100%;
554
+ background: transparent;
555
+ border: none;
556
+ color: var(--text);
557
+ font-size: 16px;
558
+ font-family: inherit;
559
+ line-height: 1.4;
560
+ padding: 8px 10px 4px;
561
+ resize: none;
562
+ outline: none;
563
+ min-height: 24px;
564
+ max-height: 120px;
565
+ overflow-y: auto;
566
+ box-sizing: border-box;
567
+ unicode-bidi: plaintext;
568
+ text-align: start;
569
+ }
570
+
571
+ #input::placeholder {
572
+ color: var(--text-muted);
573
+ }
574
+
575
+ /* --- Bottom toolbar (attach left, model+send right) --- */
576
+ #input-bottom {
577
+ display: flex;
578
+ align-items: center;
579
+ justify-content: space-between;
580
+ gap: 4px;
581
+ }
582
+
583
+ #input-bottom-right {
584
+ display: flex;
585
+ align-items: center;
586
+ gap: 4px;
587
+ flex-shrink: 0;
588
+ }
589
+
590
+ /* --- Vendor toggle (split toggle) --- */
591
+ #vendor-toggle-wrap {
592
+ display: flex;
593
+ align-items: center;
594
+ border: 1px solid var(--border);
595
+ border-radius: 8px;
596
+ overflow: hidden;
597
+ height: 30px;
598
+ flex-shrink: 0;
599
+ }
600
+ #vendor-toggle-wrap.hidden { display: none; }
601
+ #vendor-toggle-wrap.locked {
602
+ border: none;
603
+ height: auto;
604
+ pointer-events: none;
605
+ }
606
+ #vendor-toggle-wrap.locked .vendor-toggle-btn:not(.active) { display: none; }
607
+ #vendor-toggle-wrap.locked .vendor-toggle-btn.active {
608
+ background: transparent;
609
+ padding: 0;
610
+ gap: 0;
611
+ opacity: 0.7;
612
+ }
613
+ #vendor-toggle-wrap.locked .vendor-toggle-btn.active .vendor-toggle-label { display: none; }
614
+ #vendor-toggle-wrap.locked .vendor-toggle-btn:first-child { border-right: none; }
615
+ .vendor-toggle-btn {
616
+ display: flex;
617
+ align-items: center;
618
+ gap: 4px;
619
+ padding: 0 10px;
620
+ height: 100%;
621
+ border: none;
622
+ background: transparent;
623
+ cursor: pointer;
624
+ font-size: 12px;
625
+ color: var(--text-secondary);
626
+ transition: background 0.15s, color 0.15s;
627
+ white-space: nowrap;
628
+ }
629
+ .vendor-toggle-btn:first-child { border-right: 1px solid var(--border); }
630
+ .vendor-toggle-btn.active {
631
+ background: var(--accent-12);
632
+ color: var(--accent);
633
+ font-weight: 600;
634
+ }
635
+ .vendor-toggle-btn.disabled {
636
+ opacity: 0.35;
637
+ cursor: default;
638
+ }
639
+ .vendor-toggle-icon {
640
+ width: 16px;
641
+ height: 16px;
642
+ border-radius: 4px;
643
+ object-fit: cover;
644
+ }
645
+ .vendor-toggle-label {
646
+ pointer-events: none;
647
+ }
648
+ @media (max-width: 900px) {
649
+ .vendor-toggle-label { display: none; }
650
+ .vendor-toggle-btn { padding: 0 8px; }
651
+ }
652
+
653
+ /* --- Attach buttons & menu --- */
654
+ #attach-wrap {
655
+ position: relative;
656
+ min-width: 0;
657
+ display: flex;
658
+ align-items: center;
659
+ gap: 2px;
660
+ flex-wrap: nowrap;
661
+ overflow: hidden;
662
+ }
663
+
664
+ /* Allow popovers (context picker) to escape when open.
665
+ Uses a JS-toggled class (.picker-open) instead of :has() to avoid
666
+ style recalc on every DOM mutation in Firefox. */
667
+ #attach-wrap.picker-open {
668
+ overflow: visible;
669
+ }
670
+
671
+ /* Project context indicator — leftmost item in the input toolbar */
672
+ #input-project-indicator {
673
+ display: inline-flex;
674
+ align-items: center;
675
+ justify-content: center;
676
+ width: 26px;
677
+ height: 26px;
678
+ border-radius: 7px;
679
+ background: var(--bg-alt);
680
+ border: 1px solid var(--border-subtle, var(--border));
681
+ font-size: 14px;
682
+ line-height: 1;
683
+ color: var(--text-secondary);
684
+ flex-shrink: 0;
685
+ margin-right: 2px;
686
+ user-select: none;
687
+ cursor: default;
688
+ transition: background 0.15s;
689
+ }
690
+ /* Abbreviation (no emoji) — slightly smaller text, monospace weight */
691
+ #input-project-indicator[data-abbrev] {
692
+ font-size: 10px;
693
+ font-weight: 700;
694
+ font-family: "Roboto Mono", monospace;
695
+ letter-spacing: -0.5px;
696
+ }
697
+ /* Hide when empty (before first project loads) */
698
+ #input-project-indicator:empty {
699
+ display: none;
700
+ }
701
+
702
+ #attach-file-btn,
703
+ #attach-image-btn,
704
+ #schedule-btn,
705
+ #input-more-btn {
706
+ width: 36px;
707
+ height: 36px;
708
+ border-radius: 50%;
709
+ border: none;
710
+ background: transparent;
711
+ color: var(--text-muted);
712
+ cursor: pointer;
713
+ display: flex;
714
+ align-items: center;
715
+ justify-content: center;
716
+ transition: background 0.15s, color 0.15s;
717
+ touch-action: manipulation;
718
+ }
719
+
720
+ #attach-file-btn .lucide,
721
+ #attach-image-btn .lucide,
722
+ #schedule-btn .lucide,
723
+ #input-more-btn .lucide { width: 20px; height: 20px; flex-shrink: 0; }
724
+
725
+ #attach-file-btn:hover,
726
+ #attach-image-btn:hover,
727
+ #schedule-btn:hover,
728
+ #input-more-btn:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text); }
729
+
730
+ #ask-mate-btn {
731
+ width: 36px;
732
+ height: 36px;
733
+ padding: 0;
734
+ border-radius: 50%;
735
+ border: none;
736
+ background: transparent;
737
+ color: var(--text-muted);
738
+ cursor: pointer;
739
+ display: flex;
740
+ align-items: center;
741
+ justify-content: center;
742
+ transition: background 0.15s, color 0.15s;
743
+ touch-action: manipulation;
744
+ position: relative;
745
+ }
746
+
747
+ #ask-mate-btn .lucide { width: 20px; height: 20px; flex-shrink: 0; }
748
+
749
+ #ask-mate-btn:hover { background: rgba(var(--overlay-rgb), 0.06); color: var(--text); }
750
+ #ask-mate-btn:active { transform: scale(0.95); }
751
+
752
+ /* Mate avatar overlay on @ button.
753
+ Rendered desaturated and dim so it sits quietly in the corner of the
754
+ input area. Regains saturation on hover, so the user only sees the
755
+ actual mate identity when they're actively reaching for the button. */
756
+ .ask-mate-avatar {
757
+ position: absolute;
758
+ bottom: 0;
759
+ right: -2px;
760
+ width: 20px;
761
+ height: 20px;
762
+ border-radius: 50%;
763
+ border: 1.5px solid var(--input-bg);
764
+ pointer-events: none;
765
+ opacity: 0.45;
766
+ filter: grayscale(100%);
767
+ transition: opacity 0.3s, transform 0.3s, filter 0.3s;
768
+ }
769
+
770
+ #ask-mate-btn:hover .ask-mate-avatar {
771
+ opacity: 0.9;
772
+ filter: grayscale(0%);
773
+ }
774
+
775
+ .ask-mate-avatar.fade-out {
776
+ opacity: 0;
777
+ transform: scale(0.6);
778
+ }
779
+
780
+ .ask-mate-avatar.fade-in {
781
+ opacity: 0.45;
782
+ transform: scale(1);
783
+ }
784
+
785
+ #send-btn {
786
+ flex-shrink: 0;
787
+ width: 36px;
788
+ height: 36px;
789
+ border-radius: 50%;
790
+ border: none;
791
+ background: var(--accent);
792
+ color: #fff;
793
+ cursor: pointer;
794
+ display: flex;
795
+ align-items: center;
796
+ justify-content: center;
797
+ transition: background 0.15s, opacity 0.15s;
798
+ touch-action: manipulation;
799
+ }
800
+
801
+ #send-btn .lucide {
802
+ width: 18px;
803
+ height: 18px;
804
+ }
805
+
806
+ #send-btn:hover:not(:disabled) {
807
+ background: var(--accent-hover);
808
+ }
809
+
810
+ #send-btn:disabled {
811
+ opacity: 0.25;
812
+ cursor: default;
813
+ }
814
+
815
+ #send-btn:active:not(:disabled) {
816
+ opacity: 0.7;
817
+ }
818
+
819
+ /* ==========================================================================
820
+ Slash Command Autocomplete
821
+ ========================================================================== */
822
+
823
+ #slash-menu {
824
+ display: none;
825
+ position: absolute;
826
+ bottom: 100%;
827
+ left: 0;
828
+ right: 0;
829
+ max-height: 240px;
830
+ overflow-y: auto;
831
+ background: var(--bg-alt);
832
+ border: 1px solid var(--border);
833
+ border-radius: 14px;
834
+ margin-bottom: 8px;
835
+ box-shadow: 0 -4px 24px rgba(var(--shadow-rgb), 0.4);
836
+ z-index: 10;
837
+ }
838
+
839
+ #slash-menu.visible { display: block; }
840
+
841
+ .slash-item {
842
+ display: flex;
843
+ align-items: center;
844
+ padding: 12px 16px;
845
+ cursor: pointer;
846
+ gap: 12px;
847
+ border-bottom: 1px solid var(--border-subtle);
848
+ }
849
+
850
+ .slash-item:last-child { border-bottom: none; }
851
+
852
+ .slash-item:hover,
853
+ .slash-item.active {
854
+ background: rgba(var(--overlay-rgb), 0.05);
855
+ }
856
+
857
+ .slash-item .slash-cmd {
858
+ color: var(--accent);
859
+ font-weight: 600;
860
+ font-size: 14px;
861
+ font-family: "Roboto Mono", monospace;
862
+ }
863
+
864
+ .slash-item .slash-desc {
865
+ color: var(--text-muted);
866
+ font-size: 13px;
867
+ }
868
+
869
+ /* ==========================================================================
870
+ Prompt Suggestion Chips (legacy, hidden)
871
+ ========================================================================== */
872
+
873
+ #suggestion-chips { display: none; }
874
+
875
+ /* ==========================================================================
876
+ Ghost Suggestion (inline prompt recommendation)
877
+ ========================================================================== */
878
+
879
+ #ghost-suggestion {
880
+ position: absolute;
881
+ top: 0;
882
+ left: 0;
883
+ right: 0;
884
+ padding: 8px 10px 4px;
885
+ font-size: 16px;
886
+ font-family: inherit;
887
+ line-height: 1.4;
888
+ color: var(--text-muted);
889
+ pointer-events: none;
890
+ white-space: pre-wrap;
891
+ overflow: hidden;
892
+ max-height: 120px;
893
+ box-sizing: border-box;
894
+ }
895
+
896
+ #ghost-suggestion.hidden { display: none; }
897
+
898
+ /* Hide native placeholder when ghost suggestion is visible.
899
+ Uses a JS-toggled class (.ghost-active) instead of :has() to avoid
900
+ forcing a style recalc on every keypress in Firefox. */
901
+ #input-textarea-wrap.ghost-active #input::placeholder {
902
+ color: transparent;
903
+ }
904
+
905
+ /* Ghost hint — inline "Enter to send" after suggestion text */
906
+
907
+ .ghost-hint {
908
+ font-size: 11px;
909
+ margin-left: 8px;
910
+ opacity: 0.55;
911
+ white-space: nowrap;
912
+ }
913
+
914
+ .ghost-hint kbd {
915
+ display: inline-block;
916
+ padding: 1px 5px;
917
+ border-radius: 3px;
918
+ border: 1px solid var(--border);
919
+ background: rgba(var(--overlay-rgb), 0.08);
920
+ font-family: inherit;
921
+ font-size: 10px;
922
+ line-height: 1.4;
923
+ }
924
+
925
+ @keyframes ghost-fade-in {
926
+ from { opacity: 0; }
927
+ to { opacity: 1; }
928
+ }
929
+
930
+ #ghost-suggestion:not(.hidden) {
931
+ animation: ghost-fade-in 0.3s ease;
932
+ }
933
+
934
+ /* ==========================================================================
935
+ Animations
936
+ ========================================================================== */
937
+
938
+ @keyframes pulse {
939
+ 0%, 100% { opacity: 1; }
940
+ 50% { opacity: 0.3; }
941
+ }
942
+
943
+ @keyframes spin {
944
+ to { transform: rotate(360deg); }
945
+ }
946
+
947
+ @keyframes sparkle {
948
+ 0%, 100% { opacity: 1; transform: scale(1); }
949
+ 50% { opacity: 0.5; transform: scale(0.85); }
950
+ }
951
+
952
+ /* ==========================================================================
953
+ Mobile Responsive
954
+ ========================================================================== */
955
+
956
+ @media (max-width: 768px) {
957
+ #layout-body {
958
+ background: var(--bg);
959
+ }
960
+
961
+ #main-area {
962
+ overflow: visible;
963
+ border-radius: 0;
964
+ border: none;
965
+ }
966
+
967
+ #sidebar {
968
+ position: fixed;
969
+ left: 0;
970
+ top: 0;
971
+ bottom: 0;
972
+ z-index: 1000;
973
+ transform: translateX(-100%);
974
+ transition: transform 0.25s ease;
975
+ width: 240px;
976
+ background: var(--sidebar-bg);
977
+ }
978
+
979
+ #sidebar.open {
980
+ transform: translateX(0);
981
+ }
982
+
983
+ #sidebar-overlay {
984
+ z-index: 999;
985
+ }
986
+
987
+ /* On mobile, sidebar-collapsed should not affect sidebar (hamburger controls it) */
988
+ #layout.sidebar-collapsed #sidebar {
989
+ width: 240px;
990
+ border-right: 1px solid var(--border-subtle);
991
+ }
992
+
993
+ #hamburger-btn,
994
+ #sidebar-toggle-btn,
995
+ #sidebar-expand-btn,
996
+ #layout.sidebar-collapsed #sidebar-expand-btn,
997
+ .sidebar-collapse-btn {
998
+ display: none;
999
+ }
1000
+
1001
+ /* Hide sidebar tools & title bar status icons — redundant with tab bar */
1002
+ #sidebar-tools,
1003
+ .title-bar-main .status {
1004
+ display: none;
1005
+ }
1006
+
1007
+ .msg-user .bubble {
1008
+ max-width: 90%;
1009
+ }
1010
+
1011
+ #input-row {
1012
+ border-radius: 8px;
1013
+ }
1014
+
1015
+ /* Offset for mobile tab bar (56px) */
1016
+ #input-area {
1017
+ padding-bottom: calc(var(--safe-bottom) + 56px + 8px);
1018
+ }
1019
+
1020
+ /* When keyboard is open, tab bar is hidden behind keyboard — remove the offset */
1021
+ body.keyboard-open #input-area {
1022
+ padding-bottom: 8px;
1023
+ }
1024
+
1025
+ /* Mobile visibility utilities for input toolbar */
1026
+ .desktop-only { display: none !important; }
1027
+ .mobile-only { display: inline-flex !important; }
1028
+ }
1029
+
1030
+ /* Desktop: hide mobile-only, show desktop-only */
1031
+ @media (min-width: 769px) {
1032
+ .mobile-only { display: none !important; }
1033
+ }
1034
+
1035
+ /* ==========================================================================
1036
+ Input More Bottom Sheet (mobile)
1037
+ ========================================================================== */
1038
+
1039
+ #input-more-sheet {
1040
+ position: fixed;
1041
+ inset: 0;
1042
+ z-index: 10000;
1043
+ pointer-events: none;
1044
+ }
1045
+
1046
+ #input-more-sheet.hidden {
1047
+ display: none;
1048
+ }
1049
+
1050
+ .input-more-backdrop {
1051
+ position: absolute;
1052
+ inset: 0;
1053
+ background: rgba(0, 0, 0, 0.4);
1054
+ opacity: 0;
1055
+ transition: opacity 0.2s ease;
1056
+ pointer-events: auto;
1057
+ }
1058
+
1059
+ #input-more-sheet.open .input-more-backdrop {
1060
+ opacity: 1;
1061
+ }
1062
+
1063
+ .input-more-content {
1064
+ position: absolute;
1065
+ left: 0;
1066
+ right: 0;
1067
+ bottom: 0;
1068
+ background: var(--bg);
1069
+ border-top-left-radius: 16px;
1070
+ border-top-right-radius: 16px;
1071
+ padding: 8px 0 calc(var(--safe-bottom) + 16px);
1072
+ transform: translateY(100%);
1073
+ transition: transform 0.25s ease;
1074
+ pointer-events: auto;
1075
+ box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
1076
+ }
1077
+
1078
+ #input-more-sheet.open .input-more-content {
1079
+ transform: translateY(0);
1080
+ }
1081
+
1082
+ .input-more-handle {
1083
+ width: 40px;
1084
+ height: 4px;
1085
+ border-radius: 2px;
1086
+ background: var(--border-subtle);
1087
+ margin: 8px auto 12px;
1088
+ }
1089
+
1090
+ .input-more-actions {
1091
+ display: grid;
1092
+ grid-template-columns: 1fr 1fr;
1093
+ gap: 8px;
1094
+ padding: 4px 16px 12px;
1095
+ }
1096
+
1097
+ .input-more-action {
1098
+ display: flex;
1099
+ flex-direction: column;
1100
+ align-items: center;
1101
+ justify-content: center;
1102
+ gap: 6px;
1103
+ padding: 16px 8px;
1104
+ background: var(--hover);
1105
+ border: 1px solid var(--border-subtle);
1106
+ border-radius: 10px;
1107
+ font-size: 13px;
1108
+ color: var(--text);
1109
+ cursor: pointer;
1110
+ }
1111
+
1112
+ .input-more-action:active {
1113
+ opacity: 0.7;
1114
+ }
1115
+
1116
+ .input-more-action .lucide {
1117
+ width: 22px;
1118
+ height: 22px;
1119
+ color: var(--text-secondary);
1120
+ }
1121
+
1122
+ .input-more-divider {
1123
+ height: 1px;
1124
+ background: var(--border-subtle);
1125
+ margin: 0 16px;
1126
+ }
1127
+
1128
+ .input-more-section-label {
1129
+ display: flex;
1130
+ align-items: center;
1131
+ gap: 8px;
1132
+ padding: 14px 20px 6px;
1133
+ font-size: 13px;
1134
+ font-weight: 500;
1135
+ color: var(--text-secondary);
1136
+ text-transform: uppercase;
1137
+ letter-spacing: 0.04em;
1138
+ }
1139
+
1140
+ .input-more-section-label .lucide {
1141
+ width: 16px;
1142
+ height: 16px;
1143
+ }
1144
+
1145
+ .input-more-context-body {
1146
+ max-height: 50vh;
1147
+ overflow-y: auto;
1148
+ padding: 0 8px 8px;
1149
+ }
1150
+
1151
+ .input-more-context-body .context-picker-item {
1152
+ padding: 12px 16px;
1153
+ font-size: 15px;
1154
+ border-radius: 8px;
1155
+ }
1156
+
1157
+ .input-more-context-body .context-picker-item .lucide {
1158
+ width: 18px;
1159
+ height: 18px;
1160
+ }
1161
+
1162
+ .input-more-context-body .context-picker-section-label {
1163
+ padding: 10px 16px 4px;
1164
+ }
1165
+
1166
+ /* ==========================================================================
1167
+ Progressive History Loading
1168
+ ========================================================================== */
1169
+
1170
+ .history-sentinel {
1171
+ text-align: center;
1172
+ padding: 16px 0 8px;
1173
+ }
1174
+
1175
+ .load-more-btn {
1176
+ background: none;
1177
+ border: 1px solid var(--border-subtle);
1178
+ border-radius: 8px;
1179
+ color: var(--text-secondary);
1180
+ padding: 6px 16px;
1181
+ font-size: 12px;
1182
+ font-family: inherit;
1183
+ cursor: pointer;
1184
+ transition: border-color 0.15s, color 0.15s;
1185
+ }
1186
+
1187
+ .load-more-btn:hover {
1188
+ border-color: var(--text-secondary);
1189
+ color: var(--text-primary, var(--text));
1190
+ }
1191
+
1192
+ .load-more-btn.loading {
1193
+ pointer-events: none;
1194
+ opacity: 0.5;
1195
+ }
1196
+
1197
+ /* ==========================================================================
1198
+ Message Scheduling
1199
+ ========================================================================== */
1200
+
1201
+ /* Schedule button — inline expand (like STT pill) */
1202
+ #schedule-btn {
1203
+ transition: width 0.2s ease, border-radius 0.2s ease, background 0.15s, color 0.15s, padding 0.2s ease;
1204
+ overflow: hidden;
1205
+ white-space: nowrap;
1206
+ gap: 6px;
1207
+ position: relative;
1208
+ }
1209
+
1210
+ #schedule-btn.schedule-expanded {
1211
+ width: auto;
1212
+ padding: 0 10px 0 8px;
1213
+ border-radius: 18px;
1214
+ }
1215
+
1216
+ #schedule-btn.schedule-active {
1217
+ color: var(--accent);
1218
+ background: var(--accent-bg, rgba(99,102,241,0.15));
1219
+ }
1220
+
1221
+ .schedule-inline-input {
1222
+ width: 48px;
1223
+ padding: 2px 4px;
1224
+ border: 1px solid var(--border);
1225
+ border-radius: 6px;
1226
+ background: var(--bg);
1227
+ color: var(--text);
1228
+ font-size: 12px;
1229
+ text-align: center;
1230
+ outline: none;
1231
+ }
1232
+ .schedule-inline-input:focus {
1233
+ border-color: var(--accent);
1234
+ }
1235
+
1236
+ .schedule-delay-label {
1237
+ font-size: 12px;
1238
+ font-weight: 600;
1239
+ color: inherit;
1240
+ }
1241
+
1242
+ /* Scheduled message bubble: accent-tinted user bubble */
1243
+ .scheduled-msg-wrap .bubble {
1244
+ background: color-mix(in srgb, var(--accent) 18%, var(--user-bubble, var(--bg-alt)));
1245
+ border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
1246
+ }
1247
+
1248
+ .scheduled-msg-wrap .msg-user-rewind-btn,
1249
+ .scheduled-msg-wrap .msg-actions { display: none !important; }
1250
+
1251
+ .scheduled-msg-meta {
1252
+ display: flex;
1253
+ align-items: center;
1254
+ gap: 6px;
1255
+ padding-right: 4px;
1256
+ font-size: 12px;
1257
+ color: var(--accent);
1258
+ }
1259
+
1260
+ .scheduled-msg-icon svg,
1261
+ .scheduled-msg-icon .lucide {
1262
+ width: 14px;
1263
+ height: 14px;
1264
+ }
1265
+
1266
+ .scheduled-msg-countdown {
1267
+ flex: 1;
1268
+ }
1269
+
1270
+
1271
+ /* Channel mode: scheduled badge in header row */
1272
+ .scheduled-msg-badge {
1273
+ display: inline-flex;
1274
+ align-items: center;
1275
+ gap: 5px;
1276
+ padding: 3px 10px;
1277
+ border-radius: 12px;
1278
+ font-size: 12px;
1279
+ font-weight: 600;
1280
+ line-height: 1;
1281
+ color: var(--accent);
1282
+ background: color-mix(in srgb, var(--accent) 12%, transparent);
1283
+ vertical-align: middle;
1284
+ }
1285
+ .scheduled-msg-badge svg,
1286
+ .scheduled-msg-badge .lucide {
1287
+ width: 13px;
1288
+ height: 13px;
1289
+ }
1290
+ /* Scheduled message action links (shared by both modes) */
1291
+ .scheduled-msg-actions {
1292
+ display: inline-flex;
1293
+ align-items: center;
1294
+ gap: 6px;
1295
+ margin-left: 4px;
1296
+ }
1297
+ .scheduled-msg-send-now {
1298
+ padding: 0;
1299
+ border: none;
1300
+ background: none;
1301
+ color: var(--accent);
1302
+ font-size: 12px;
1303
+ font-weight: 500;
1304
+ font-family: inherit;
1305
+ cursor: pointer;
1306
+ transition: text-decoration 0.15s;
1307
+ }
1308
+ .scheduled-msg-send-now:hover {
1309
+ text-decoration: underline;
1310
+ }
1311
+ .scheduled-msg-sep {
1312
+ color: var(--text-dimmer);
1313
+ font-size: 12px;
1314
+ user-select: none;
1315
+ }
1316
+ .scheduled-msg-cancel {
1317
+ padding: 0;
1318
+ border: none;
1319
+ background: none;
1320
+ color: var(--text-dimmer);
1321
+ font-size: 12px;
1322
+ font-weight: 500;
1323
+ font-family: inherit;
1324
+ cursor: pointer;
1325
+ transition: color 0.15s;
1326
+ }
1327
+ .scheduled-msg-cancel:hover {
1328
+ color: var(--error);
1329
+ }
1330
+
1331
+ /* Channel mode: strip bubble box styling, render as plain text */
1332
+ body.wide-view .scheduled-msg-wrap .bubble {
1333
+ background: none;
1334
+ border: none;
1335
+ box-shadow: none;
1336
+ padding: 0;
1337
+ border-radius: 0;
1338
+ }
1339
+
1340
+ /* Channel mode: header alignment */
1341
+ body.wide-view .scheduled-msg-wrap .dm-bubble-header {
1342
+ display: flex;
1343
+ align-items: center;
1344
+ gap: 6px;
1345
+ }
1346
+ body.wide-view .scheduled-msg-wrap .scheduled-msg-countdown {
1347
+ font-size: inherit;
1348
+ color: inherit;
1349
+ }