@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,857 @@
1
+ /* ==========================================================================
2
+ Header (now inside .title-bar-content)
3
+ ========================================================================== */
4
+
5
+ /* Legacy #header — removed from DOM, styles kept for .title-bar-content */
6
+ #header {
7
+ display: none;
8
+ }
9
+
10
+ #header-left {
11
+ display: flex;
12
+ align-items: center;
13
+ overflow: hidden;
14
+ min-width: 0;
15
+ }
16
+
17
+ .header-title {
18
+ font-weight: 600;
19
+ font-size: 15px;
20
+ color: var(--text);
21
+ overflow: hidden;
22
+ text-overflow: ellipsis;
23
+ white-space: nowrap;
24
+ }
25
+
26
+ #header-rename-btn {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ width: 24px;
31
+ height: 24px;
32
+ border: 1px solid transparent;
33
+ background: none;
34
+ color: var(--text-dimmer);
35
+ cursor: pointer;
36
+ border-radius: 8px;
37
+ flex-shrink: 0;
38
+ padding: 0;
39
+ margin-left: 4px;
40
+ transition: color 0.15s, background 0.15s, border-color 0.15s;
41
+ }
42
+
43
+ #header-rename-btn:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.04); border-color: var(--border); }
44
+ #header-rename-btn .lucide { width: 13px; height: 13px; }
45
+
46
+ #header-info-btn {
47
+ display: flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ width: 20px;
51
+ height: 20px;
52
+ border: none;
53
+ background: transparent;
54
+ color: var(--text-dimmer);
55
+ cursor: pointer;
56
+ border-radius: 6px;
57
+ flex-shrink: 0;
58
+ padding: 0;
59
+ margin-left: 6px;
60
+ transition: color 0.15s, background 0.15s;
61
+ position: relative;
62
+ }
63
+ #header-info-btn:hover { color: var(--text); }
64
+ #header-info-btn > * { pointer-events: none; }
65
+ #header-info-btn .lucide { width: 14px; height: 14px; }
66
+ #header-info-btn .lucide circle {
67
+ fill: currentColor;
68
+ stroke: currentColor;
69
+ }
70
+ #header-info-btn .lucide path,
71
+ #header-info-btn .lucide line {
72
+ stroke: var(--bg);
73
+ stroke-width: 2.5;
74
+ }
75
+
76
+ /* Session info popover */
77
+ .session-info-popover {
78
+ position: fixed;
79
+ background: var(--bg);
80
+ border: 1px solid var(--border);
81
+ border-radius: 10px;
82
+ padding: 12px 16px;
83
+ min-width: 260px;
84
+ box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.4);
85
+ z-index: 9999;
86
+ font-size: 12px;
87
+ color: var(--text-secondary);
88
+ line-height: 1.6;
89
+ }
90
+ .session-info-popover .info-row {
91
+ display: flex;
92
+ align-items: center;
93
+ gap: 8px;
94
+ }
95
+ .session-info-popover .info-label {
96
+ color: var(--text-muted);
97
+ flex-shrink: 0;
98
+ min-width: 70px;
99
+ }
100
+ .session-info-popover .info-value {
101
+ font-family: "Roboto Mono", monospace;
102
+ font-size: 11px;
103
+ color: var(--text);
104
+ word-break: break-all;
105
+ }
106
+ .session-info-popover .info-copy-btn {
107
+ margin-left: auto;
108
+ border: none;
109
+ background: transparent;
110
+ color: var(--text-dimmer);
111
+ cursor: pointer;
112
+ padding: 2px;
113
+ border-radius: 4px;
114
+ flex-shrink: 0;
115
+ display: flex;
116
+ align-items: center;
117
+ transition: color 0.15s;
118
+ }
119
+ .session-info-popover .info-copy-btn:hover { color: var(--accent2); }
120
+ .session-info-popover .info-copy-btn .lucide { width: 13px; height: 13px; }
121
+
122
+ .header-rename-input {
123
+ font-weight: 600;
124
+ font-size: 15px;
125
+ color: var(--text);
126
+ background: var(--input-bg);
127
+ border: 1px solid var(--accent);
128
+ border-radius: 6px;
129
+ padding: 2px 8px;
130
+ font-family: inherit;
131
+ outline: none;
132
+ min-width: 0;
133
+ flex: 1;
134
+ }
135
+
136
+ .status {
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 6px;
140
+ font-size: 12px;
141
+ color: var(--text-muted);
142
+ flex-shrink: 0;
143
+ }
144
+
145
+ /* --- Terminal toggle button (mobile only) --- */
146
+ #footer-status,
147
+ #terminal-toggle-btn {
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: center;
151
+ background: none;
152
+ border: 1px solid transparent;
153
+ border-radius: 8px;
154
+ color: var(--text-dimmer);
155
+ cursor: pointer;
156
+ padding: 4px;
157
+ transition: color 0.15s, background 0.15s, border-color 0.15s;
158
+ }
159
+ #footer-status .lucide,
160
+ #terminal-toggle-btn .lucide { width: 15px; height: 15px; }
161
+ #footer-status:hover,
162
+ #terminal-toggle-btn:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.04); border-color: var(--border); }
163
+ #terminal-toggle-btn { position: relative; }
164
+ #terminal-count {
165
+ position: absolute;
166
+ top: -4px;
167
+ right: -4px;
168
+ background: var(--success);
169
+ color: #fff;
170
+ font-size: 9px;
171
+ font-weight: 700;
172
+ min-width: 14px;
173
+ height: 14px;
174
+ border-radius: 7px;
175
+ display: inline-flex;
176
+ align-items: center;
177
+ justify-content: center;
178
+ padding: 0 3px;
179
+ font-family: "Roboto Mono", monospace;
180
+ }
181
+ #terminal-count.hidden { display: none; }
182
+
183
+ /* --- QR code button & overlay --- */
184
+ #qr-btn {
185
+ display: flex;
186
+ align-items: center;
187
+ justify-content: center;
188
+ background: none;
189
+ border: 1px solid transparent;
190
+ border-radius: 8px;
191
+ color: var(--text-dimmer);
192
+ cursor: pointer;
193
+ padding: 4px;
194
+ transition: color 0.15s, background 0.15s, border-color 0.15s;
195
+ }
196
+ #qr-btn .lucide { width: 15px; height: 15px; }
197
+ #qr-btn:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.04); border-color: var(--border); }
198
+ #qr-btn.active { color: var(--text); background: rgba(var(--overlay-rgb),0.06); border-color: var(--border); }
199
+
200
+ #qr-overlay {
201
+ position: fixed;
202
+ inset: 0;
203
+ background: rgba(var(--shadow-rgb), 0.6);
204
+ display: flex;
205
+ align-items: center;
206
+ justify-content: center;
207
+ z-index: 500;
208
+ }
209
+ #qr-overlay.hidden { display: none; }
210
+
211
+ #qr-overlay-inner {
212
+ background: #fff;
213
+ border-radius: 16px;
214
+ padding: 28px;
215
+ display: flex;
216
+ flex-direction: column;
217
+ align-items: center;
218
+ gap: 14px;
219
+ box-shadow: 0 8px 32px rgba(var(--shadow-rgb), 0.5);
220
+ }
221
+
222
+ #qr-canvas table { border-collapse: collapse; }
223
+ #qr-canvas td { width: 4px; height: 4px; padding: 0; }
224
+
225
+ #qr-url {
226
+ font-size: 13px;
227
+ color: #555;
228
+ word-break: break-all;
229
+ text-align: center;
230
+ max-width: 260px;
231
+ font-family: system-ui, sans-serif;
232
+ cursor: pointer;
233
+ padding: 4px 10px;
234
+ border-radius: 6px;
235
+ transition: background 0.15s, color 0.15s;
236
+ }
237
+ #qr-url:hover { background: #eee; color: #222; }
238
+ #qr-url:active { background: #ddd; }
239
+ #qr-url.copied { color: #16a34a; font-weight: 600; }
240
+ .qr-hint {
241
+ display: block;
242
+ font-size: 11px;
243
+ color: #999;
244
+ margin-top: 2px;
245
+ font-weight: 400;
246
+ }
247
+ .qr-share-btn {
248
+ display: inline-flex;
249
+ align-items: center;
250
+ gap: 6px;
251
+ margin-top: 12px;
252
+ padding: 8px 16px;
253
+ border: 1px solid #ddd;
254
+ border-radius: 8px;
255
+ background: #fff;
256
+ color: #333;
257
+ font-family: inherit;
258
+ font-size: 13px;
259
+ font-weight: 500;
260
+ cursor: pointer;
261
+ transition: background 0.15s;
262
+ }
263
+ .qr-share-btn:hover { background: #f5f5f5; }
264
+ .qr-share-btn .lucide { width: 14px; height: 14px; }
265
+ .qr-share-btn.hidden { display: none; }
266
+
267
+ /* --- Notification menu --- */
268
+ #notif-menu-wrap {
269
+ position: relative;
270
+ }
271
+
272
+ #notif-btn {
273
+ display: flex;
274
+ align-items: center;
275
+ justify-content: center;
276
+ background: none;
277
+ border: 1px solid transparent;
278
+ border-radius: 8px;
279
+ color: var(--text-dimmer);
280
+ cursor: pointer;
281
+ padding: 4px;
282
+ transition: color 0.15s, background 0.15s, border-color 0.15s;
283
+ }
284
+
285
+ #notif-btn .lucide { width: 15px; height: 15px; }
286
+ #notif-btn:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.04); border-color: var(--border); }
287
+ #notif-btn.active { color: var(--text); background: rgba(var(--overlay-rgb),0.06); border-color: var(--border); }
288
+
289
+ #notif-menu {
290
+ position: absolute;
291
+ top: calc(100% + 6px);
292
+ right: 0;
293
+ background: var(--bg-alt);
294
+ border: 1px solid var(--border);
295
+ border-radius: 10px;
296
+ padding: 8px 0;
297
+ min-width: 200px;
298
+ box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.4);
299
+ z-index: 200;
300
+ }
301
+
302
+ #notif-menu.hidden { display: none; }
303
+
304
+ .notif-option {
305
+ display: flex;
306
+ align-items: center;
307
+ justify-content: space-between;
308
+ padding: 8px 14px;
309
+ font-size: 13px;
310
+ color: var(--text-secondary);
311
+ cursor: pointer;
312
+ transition: background 0.15s;
313
+ }
314
+
315
+ .notif-option > span:first-child {
316
+ display: flex;
317
+ align-items: center;
318
+ gap: 8px;
319
+ }
320
+
321
+ .notif-option > span:first-child .lucide {
322
+ width: 14px;
323
+ height: 14px;
324
+ flex-shrink: 0;
325
+ }
326
+
327
+ .notif-option:hover { background: rgba(var(--overlay-rgb), 0.03); }
328
+ .notif-option input { display: none; }
329
+
330
+ #notif-blocked-hint {
331
+ padding: 6px 14px;
332
+ font-size: 11px;
333
+ line-height: 1.5;
334
+ color: var(--warning);
335
+ }
336
+
337
+ #notif-blocked-hint.hidden { display: none; }
338
+ #notif-blocked-hint a { color: var(--accent); text-decoration: none; }
339
+ #notif-blocked-hint a:hover { text-decoration: underline; }
340
+
341
+ .toggle-track {
342
+ width: 34px;
343
+ height: 20px;
344
+ background: var(--input-bg);
345
+ border: 1px solid var(--border);
346
+ border-radius: 10px;
347
+ position: relative;
348
+ transition: background 0.2s, border-color 0.2s;
349
+ flex-shrink: 0;
350
+ }
351
+
352
+ .toggle-thumb {
353
+ position: absolute;
354
+ top: 2px;
355
+ left: 2px;
356
+ width: 14px;
357
+ height: 14px;
358
+ background: var(--text-dimmer);
359
+ border-radius: 50%;
360
+ transition: transform 0.2s, background 0.2s;
361
+ }
362
+
363
+ .notif-option input:checked + .toggle-track {
364
+ background: var(--accent);
365
+ border-color: var(--accent);
366
+ }
367
+
368
+ .notif-option input:checked + .toggle-track .toggle-thumb {
369
+ transform: translateX(14px);
370
+ background: #fff;
371
+ }
372
+
373
+ /* --- Notification menu items --- */
374
+ .notif-divider {
375
+ height: 1px;
376
+ background: var(--border-subtle);
377
+ margin: 4px 0;
378
+ }
379
+
380
+ #notif-push-row {
381
+ display: none;
382
+ }
383
+
384
+ /* iOS Safari notification info */
385
+ .notif-ios-info { cursor: default; }
386
+ .notif-ios-info-btn {
387
+ background: none;
388
+ border: none;
389
+ color: var(--text-dimmer);
390
+ cursor: pointer;
391
+ padding: 2px;
392
+ display: flex;
393
+ align-items: center;
394
+ transition: color 0.15s;
395
+ }
396
+ .notif-ios-info-btn:hover { color: var(--text-secondary); }
397
+
398
+ #notif-ios-hint {
399
+ padding: 6px 14px;
400
+ font-size: 11px;
401
+ line-height: 1.5;
402
+ color: var(--text-muted);
403
+ }
404
+ #notif-ios-hint .lucide { flex-shrink: 0; }
405
+ #notif-ios-hint strong { color: var(--text-secondary); }
406
+ #notif-ios-hint.hidden { display: none; }
407
+
408
+ .notif-action {
409
+ display: flex;
410
+ align-items: center;
411
+ gap: 8px;
412
+ width: 100%;
413
+ padding: 8px 14px;
414
+ font-size: 13px;
415
+ color: var(--text-secondary);
416
+ background: none;
417
+ border: none;
418
+ font-family: inherit;
419
+ cursor: pointer;
420
+ transition: background 0.15s;
421
+ }
422
+
423
+ .notif-action:hover { background: rgba(var(--overlay-rgb), 0.03); }
424
+ .notif-action .lucide { flex-shrink: 0; }
425
+
426
+ .notif-action.copied { color: var(--success); }
427
+
428
+ #client-count {
429
+ cursor: default;
430
+ font-size: 11px;
431
+ }
432
+
433
+ .client-avatar {
434
+ width: 22px;
435
+ height: 22px;
436
+ border-radius: 50%;
437
+ border: 2px solid var(--bg);
438
+ background: var(--bg-alt);
439
+ object-fit: cover;
440
+ cursor: default;
441
+ transition: filter 0.15s;
442
+ }
443
+
444
+ .client-avatar:hover {
445
+ filter: brightness(1.3);
446
+ }
447
+
448
+ /* .tooltip styles moved to css/tooltip.css */
449
+
450
+ /* --- Config chip (inline in input bottom bar) --- */
451
+ #config-chip-wrap {
452
+ position: relative;
453
+ }
454
+
455
+ #config-chip-wrap.hidden { display: none; }
456
+
457
+ #config-chip {
458
+ display: inline-flex;
459
+ align-items: center;
460
+ gap: 4px;
461
+ height: 36px;
462
+ padding: 0 8px;
463
+ border-radius: 10px;
464
+ border: none;
465
+ background: none;
466
+ color: var(--text-muted);
467
+ font-family: inherit;
468
+ font-size: 12px;
469
+ font-weight: 500;
470
+ cursor: pointer;
471
+ transition: color 0.15s, background 0.15s;
472
+ white-space: nowrap;
473
+ }
474
+
475
+ #config-chip .lucide { width: 10px; height: 10px; }
476
+ #config-chip .config-chip-icon { display: none; }
477
+
478
+ @media (max-width: 1000px) {
479
+ #config-chip .config-chip-icon { display: inline-flex; width: 16px; height: 16px; }
480
+ #config-chip-label { display: none; }
481
+ #config-chip .lucide:last-child { display: none; }
482
+ #config-chip { padding: 0 6px; }
483
+ }
484
+ #config-chip:hover { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.06); }
485
+ #config-chip.active { color: var(--text-secondary); background: rgba(var(--overlay-rgb),0.06); }
486
+
487
+ #config-popover {
488
+ position: absolute;
489
+ bottom: calc(100% + 4px);
490
+ right: 0;
491
+ background: var(--bg-alt);
492
+ border: 1px solid var(--border);
493
+ border-radius: 12px;
494
+ padding: 4px 0;
495
+ min-width: 220px;
496
+ max-height: min(600px, calc(100vh - 120px));
497
+ overflow-y: auto;
498
+ box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.4);
499
+ z-index: 200;
500
+ }
501
+
502
+ #config-popover.hidden { display: none; }
503
+
504
+ .config-section {
505
+ padding: 6px 0 2px;
506
+ border-top: 1px solid var(--border-subtle);
507
+ }
508
+
509
+ .config-section:first-child {
510
+ border-top: none;
511
+ }
512
+
513
+ .config-section-label {
514
+ font-size: 10px;
515
+ font-weight: 600;
516
+ color: var(--text-muted);
517
+ text-transform: uppercase;
518
+ letter-spacing: 0.05em;
519
+ padding: 4px 14px 4px;
520
+ }
521
+
522
+ .config-radio-list {
523
+ display: flex;
524
+ flex-direction: column;
525
+ }
526
+
527
+ .config-radio-item {
528
+ display: flex;
529
+ align-items: center;
530
+ gap: 8px;
531
+ width: 100%;
532
+ padding: 8px 14px;
533
+ border: none;
534
+ background: none;
535
+ color: var(--text-secondary);
536
+ font-family: inherit;
537
+ font-size: 13px;
538
+ cursor: pointer;
539
+ transition: background 0.15s, color 0.15s;
540
+ white-space: nowrap;
541
+ text-align: left;
542
+ }
543
+
544
+ .config-radio-item:hover { background: rgba(var(--overlay-rgb),0.05); color: var(--text); }
545
+ .config-radio-item.active { color: var(--accent); font-weight: 600; }
546
+
547
+ /* Segmented control for effort */
548
+ .config-segmented {
549
+ display: flex;
550
+ gap: 2px;
551
+ padding: 4px 14px 8px;
552
+ }
553
+
554
+ .config-segment-btn {
555
+ flex: 1;
556
+ padding: 6px 4px;
557
+ border: 1px solid var(--border);
558
+ background: none;
559
+ color: var(--text-muted);
560
+ font-family: inherit;
561
+ font-size: 11px;
562
+ font-weight: 500;
563
+ cursor: pointer;
564
+ transition: background 0.15s, color 0.15s, border-color 0.15s;
565
+ text-transform: capitalize;
566
+ }
567
+
568
+ .config-segment-btn:first-child { border-radius: 6px 0 0 6px; }
569
+ .config-segment-btn:last-child { border-radius: 0 6px 6px 0; }
570
+ .config-segment-btn:only-child { border-radius: 6px; }
571
+
572
+ .config-segment-btn:hover {
573
+ color: var(--text-secondary);
574
+ background: rgba(var(--overlay-rgb),0.04);
575
+ }
576
+
577
+ .config-segment-btn.active {
578
+ color: var(--accent);
579
+ border-color: var(--accent);
580
+ background: rgba(var(--accent-rgb, 99, 102, 241), 0.08);
581
+ font-weight: 600;
582
+ }
583
+
584
+ /* Toggle row for beta options */
585
+ .config-toggle-row {
586
+ display: flex;
587
+ align-items: center;
588
+ justify-content: space-between;
589
+ padding: 6px 14px 8px;
590
+ }
591
+
592
+ .config-toggle-label {
593
+ font-size: 13px;
594
+ color: var(--text-secondary);
595
+ }
596
+
597
+ .config-toggle-btn {
598
+ position: relative;
599
+ width: 36px;
600
+ height: 20px;
601
+ border-radius: 10px;
602
+ border: 1px solid var(--border);
603
+ background: var(--bg-alt);
604
+ cursor: pointer;
605
+ transition: background 0.2s, border-color 0.2s;
606
+ padding: 0;
607
+ flex-shrink: 0;
608
+ }
609
+
610
+ .config-toggle-btn .config-toggle-knob {
611
+ position: absolute;
612
+ top: 2px;
613
+ left: 2px;
614
+ width: 14px;
615
+ height: 14px;
616
+ border-radius: 50%;
617
+ background: var(--text-muted);
618
+ transition: transform 0.2s, background 0.2s;
619
+ }
620
+
621
+ .config-toggle-btn.active {
622
+ background: rgba(var(--accent-rgb, 99, 102, 241), 0.15);
623
+ border-color: var(--accent);
624
+ }
625
+
626
+ .config-toggle-btn.active .config-toggle-knob {
627
+ transform: translateX(16px);
628
+ background: var(--accent);
629
+ }
630
+
631
+ .config-budget-row {
632
+ padding: 4px 14px 8px;
633
+ display: flex;
634
+ align-items: center;
635
+ gap: 8px;
636
+ }
637
+
638
+ .config-budget-label {
639
+ font-size: 11px;
640
+ color: var(--text-muted);
641
+ white-space: nowrap;
642
+ }
643
+
644
+ .config-budget-input {
645
+ width: 80px;
646
+ padding: 4px 6px;
647
+ border: 1px solid var(--border);
648
+ border-radius: 4px;
649
+ background: var(--bg);
650
+ color: var(--text);
651
+ font-size: 11px;
652
+ }
653
+
654
+ /* --- Info panels container --- */
655
+ #info-panels {
656
+ position: fixed;
657
+ top: 80px;
658
+ right: 16px;
659
+ width: 280px;
660
+ max-height: calc(100vh - 160px);
661
+ overflow-y: auto;
662
+ z-index: 50;
663
+ display: flex;
664
+ flex-direction: column;
665
+ gap: 8px;
666
+ pointer-events: none;
667
+ }
668
+
669
+ #info-panels:empty { display: none; }
670
+
671
+ /* --- Usage panel --- */
672
+ #usage-panel, #status-panel, #context-panel {
673
+ background: var(--bg-alt);
674
+ border: 1px solid var(--border);
675
+ border-radius: 12px;
676
+ box-shadow: 0 4px 16px rgba(var(--shadow-rgb), 0.3);
677
+ font-size: 12px;
678
+ pointer-events: auto;
679
+ }
680
+
681
+ #usage-panel.hidden, #status-panel.hidden, #context-panel.hidden { display: none; }
682
+
683
+ .usage-panel-header {
684
+ display: flex;
685
+ align-items: center;
686
+ justify-content: space-between;
687
+ padding: 10px 14px;
688
+ border-bottom: 1px solid var(--border-subtle);
689
+ font-weight: 600;
690
+ font-size: 13px;
691
+ color: var(--text);
692
+ }
693
+
694
+ .usage-panel-actions {
695
+ display: flex;
696
+ gap: 2px;
697
+ }
698
+
699
+ .usage-panel-header button {
700
+ display: flex;
701
+ align-items: center;
702
+ justify-content: center;
703
+ background: none;
704
+ border: none;
705
+ color: var(--text-muted);
706
+ cursor: pointer;
707
+ padding: 2px;
708
+ border-radius: 4px;
709
+ }
710
+
711
+ .usage-panel-header button:hover { color: var(--text); background: rgba(var(--overlay-rgb),0.06); }
712
+ .usage-panel-header button .lucide { width: 14px; height: 14px; }
713
+
714
+ .usage-panel-body {
715
+ padding: 8px 14px 12px;
716
+ }
717
+
718
+ /* --- Plan usage link --- */
719
+ .usage-external-link {
720
+ display: flex;
721
+ align-items: center;
722
+ justify-content: center;
723
+ gap: 6px;
724
+ padding: 8px 12px;
725
+ border-radius: 6px;
726
+ border: 1px solid var(--border-subtle);
727
+ background: var(--input-bg);
728
+ color: var(--text-secondary);
729
+ font-size: 12px;
730
+ text-decoration: none;
731
+ transition: background 0.15s, color 0.15s;
732
+ }
733
+ .usage-external-link:hover {
734
+ background: var(--hover-bg);
735
+ color: var(--text-primary);
736
+ }
737
+ .usage-external-link svg {
738
+ width: 13px;
739
+ height: 13px;
740
+ flex-shrink: 0;
741
+ }
742
+
743
+ .usage-divider {
744
+ height: 1px;
745
+ background: var(--border-subtle);
746
+ margin: 8px 0;
747
+ }
748
+
749
+ .usage-section-label {
750
+ font-size: 10px;
751
+ font-weight: 600;
752
+ color: var(--text-muted);
753
+ text-transform: uppercase;
754
+ letter-spacing: 0.05em;
755
+ margin-bottom: 4px;
756
+ }
757
+
758
+ .usage-row {
759
+ display: flex;
760
+ justify-content: space-between;
761
+ padding: 3px 0;
762
+ color: var(--text-secondary);
763
+ }
764
+
765
+ .usage-label {
766
+ color: var(--text-muted);
767
+ }
768
+
769
+ .usage-value {
770
+ font-family: "Roboto Mono", monospace;
771
+ font-weight: 500;
772
+ }
773
+
774
+ /* --- Context bar --- */
775
+ .context-bar-wrap {
776
+ display: flex;
777
+ align-items: center;
778
+ gap: 8px;
779
+ margin: 6px 0 8px;
780
+ }
781
+ .context-bar {
782
+ flex: 1;
783
+ height: 6px;
784
+ background: var(--border);
785
+ border-radius: 3px;
786
+ overflow: hidden;
787
+ }
788
+ .context-bar-fill {
789
+ height: 100%;
790
+ width: 0%;
791
+ background: var(--success);
792
+ border-radius: 3px;
793
+ transition: width 0.3s ease, background 0.3s ease;
794
+ }
795
+ .context-bar-fill.warn { background: var(--warning); }
796
+ .context-bar-fill.danger { background: var(--error); }
797
+ .context-bar-pct {
798
+ font-family: "Roboto Mono", monospace;
799
+ font-size: 11px;
800
+ font-weight: 600;
801
+ color: var(--text-secondary);
802
+ min-width: 32px;
803
+ text-align: right;
804
+ }
805
+
806
+ /* --- Context mini bar (in input area) --- */
807
+ #context-mini {
808
+ display: flex;
809
+ align-items: center;
810
+ gap: 8px;
811
+ padding: 6px 14px 2px;
812
+ cursor: pointer;
813
+ transition: opacity 0.15s;
814
+ }
815
+ #context-mini:hover { opacity: 0.8; }
816
+ #context-mini.hidden { display: none; }
817
+ .context-mini-bar {
818
+ flex: 1;
819
+ height: 4px;
820
+ background: var(--border);
821
+ border-radius: 2px;
822
+ overflow: hidden;
823
+ }
824
+ .context-mini-fill {
825
+ height: 100%;
826
+ width: 0%;
827
+ border-radius: 2px;
828
+ background: var(--success);
829
+ transition: width 0.3s ease, background 0.3s ease;
830
+ }
831
+ .context-mini-fill.warn { background: var(--warning); }
832
+ .context-mini-fill.danger { background: var(--error); }
833
+ .context-mini-label {
834
+ font-family: "Roboto Mono", monospace;
835
+ font-size: 10px;
836
+ font-weight: 600;
837
+ color: var(--text-dimmer);
838
+ min-width: 24px;
839
+ text-align: right;
840
+ }
841
+
842
+ @media (max-width: 768px) {
843
+ #info-panels {
844
+ top: auto;
845
+ bottom: calc(var(--safe-bottom, 0px) + 56px + 64px);
846
+ right: 12px;
847
+ left: 12px;
848
+ width: auto;
849
+ max-height: 60vh;
850
+ }
851
+
852
+ /* Config chip: icon-only on mobile */
853
+ #config-chip .config-chip-icon { display: inline; width: 14px; height: 14px; }
854
+ #config-chip-label { display: none; }
855
+ }
856
+
857
+