@clagentic/console 1.12.0 → 1.13.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 (243) hide show
  1. package/README.md +7 -1
  2. package/bin/cli.js +18 -15
  3. package/lib/agent-roster-ws.js +38 -13
  4. package/lib/agent-roster.js +111 -12
  5. package/lib/agents.js +68 -33
  6. package/lib/atomic-install.js +334 -0
  7. package/lib/build-changes.js +33 -4
  8. package/lib/build-sha.json +2 -2
  9. package/lib/build-update-offer.js +12 -0
  10. package/lib/chat-width.js +31 -0
  11. package/lib/cli/agent-usage.js +126 -0
  12. package/lib/cli/arg-validation.js +1 -1
  13. package/lib/cli/compact-output.js +69 -0
  14. package/lib/cli/ipc-subcommands.js +92 -67
  15. package/lib/cli/output.js +28 -0
  16. package/lib/cli/restart-verb.js +132 -0
  17. package/lib/cli/schedule-input-subcommands.js +45 -8
  18. package/lib/cli/session-subcommands.js +37 -11
  19. package/lib/cli/settings-subcommands.js +74 -0
  20. package/lib/cli-transcript-title.js +56 -3
  21. package/lib/client-files.js +79 -0
  22. package/lib/daemon.js +100 -28
  23. package/lib/default-avatar-color.js +4 -0
  24. package/lib/drain.js +58 -10
  25. package/lib/mcp-tool-input.js +2 -2
  26. package/lib/model-families.js +49 -1
  27. package/lib/notify/type-registry.js +4 -0
  28. package/lib/notify/types.js +7 -4
  29. package/lib/pages.js +13 -63
  30. package/lib/permission-summary.js +12 -16
  31. package/lib/plan-usage-reader.js +70 -0
  32. package/lib/project-connection.js +4 -2
  33. package/lib/project-filesystem.js +6 -7
  34. package/lib/project-notifications.js +55 -8
  35. package/lib/project-prompt-expiry-settings.js +42 -0
  36. package/lib/project-sessions.js +52 -0
  37. package/lib/project-settings-gate.js +98 -0
  38. package/lib/project-user-mention.js +3 -2
  39. package/lib/project.js +1 -1
  40. package/lib/prompt-expiry-settings.js +49 -0
  41. package/lib/prompt-expiry.js +24 -3
  42. package/lib/prompt-kinds/codecs.js +6 -2
  43. package/lib/public/app.js +36 -36
  44. package/lib/public/css/admin.css +156 -170
  45. package/lib/public/css/agent-messages.css +24 -24
  46. package/lib/public/css/agent-picker.css +90 -38
  47. package/lib/public/css/agent-roster.css +61 -27
  48. package/lib/public/css/at-agents.css +10 -10
  49. package/lib/public/css/base.css +207 -184
  50. package/lib/public/css/chat-layout.css +228 -0
  51. package/lib/public/css/command-palette.css +86 -88
  52. package/lib/public/css/diagnostics.css +78 -204
  53. package/lib/public/css/diff.css +10 -10
  54. package/lib/public/css/filebrowser.css +32 -60
  55. package/lib/public/css/home-hub.css +100 -100
  56. package/lib/public/css/icon-strip.css +195 -238
  57. package/lib/public/css/input.css +191 -212
  58. package/lib/public/css/login-panel.css +16 -16
  59. package/lib/public/css/loop.css +96 -187
  60. package/lib/public/css/mention.css +49 -110
  61. package/lib/public/css/menus.css +162 -169
  62. package/lib/public/css/messages.css +49 -123
  63. package/lib/public/css/mobile-nav.css +207 -264
  64. package/lib/public/css/notifications-center.css +45 -124
  65. package/lib/public/css/overlay.css +269 -0
  66. package/lib/public/css/overlays.css +134 -156
  67. package/lib/public/css/playbook.css +41 -41
  68. package/lib/public/css/profile.css +43 -112
  69. package/lib/public/css/rewind.css +112 -112
  70. package/lib/public/css/scheduler-modal.css +27 -135
  71. package/lib/public/css/scheduler.css +204 -210
  72. package/lib/public/css/server-settings.css +173 -239
  73. package/lib/public/css/session-search.css +20 -20
  74. package/lib/public/css/settings-nav.css +197 -0
  75. package/lib/public/css/sidebar.css +213 -304
  76. package/lib/public/css/skills.css +121 -135
  77. package/lib/public/css/sticky-notes.css +114 -200
  78. package/lib/public/css/stt.css +17 -26
  79. package/lib/public/css/team-panel.css +36 -36
  80. package/lib/public/css/team-view.css +9 -9
  81. package/lib/public/css/title-bar.css +83 -100
  82. package/lib/public/css/tooltip.css +10 -10
  83. package/lib/public/css/user-settings.css +78 -131
  84. package/lib/public/css/user-shell.css +125 -29
  85. package/lib/public/index.html +178 -177
  86. package/lib/public/manifest.json +0 -2
  87. package/lib/public/modules/admin.js +54 -92
  88. package/lib/public/modules/agent-avatar.js +134 -3
  89. package/lib/public/modules/agent-messages.js +2 -1
  90. package/lib/public/modules/agent-picker.js +23 -21
  91. package/lib/public/modules/agent-roster-groups.js +128 -0
  92. package/lib/public/modules/agent-roster.js +40 -11
  93. package/lib/public/modules/app-connection.js +13 -1
  94. package/lib/public/modules/app-cursors.js +9 -9
  95. package/lib/public/modules/app-favicon.js +8 -16
  96. package/lib/public/modules/app-header.js +28 -19
  97. package/lib/public/modules/app-history-replay.js +67 -4
  98. package/lib/public/modules/app-home-hub.js +15 -0
  99. package/lib/public/modules/app-loop-ui.js +41 -47
  100. package/lib/public/modules/app-loop-wizard.js +9 -10
  101. package/lib/public/modules/app-messages.js +32 -36
  102. package/lib/public/modules/app-misc.js +22 -92
  103. package/lib/public/modules/app-modals.js +98 -0
  104. package/lib/public/modules/app-notifications.js +124 -135
  105. package/lib/public/modules/app-panels.js +28 -32
  106. package/lib/public/modules/app-projects.js +30 -40
  107. package/lib/public/modules/app-rate-limit.js +26 -9
  108. package/lib/public/modules/app-rendering.js +128 -110
  109. package/lib/public/modules/app-skills-install.js +6 -4
  110. package/lib/public/modules/assistant-identity.js +55 -0
  111. package/lib/public/modules/at-agents.js +3 -0
  112. package/lib/public/modules/build-guard.js +25 -11
  113. package/lib/public/modules/chat-width-choice.js +75 -0
  114. package/lib/public/modules/chat-width-prefs.js +52 -0
  115. package/lib/public/modules/chat-width.js +102 -0
  116. package/lib/public/modules/collapsible-text.js +36 -4
  117. package/lib/public/modules/command-palette.js +28 -34
  118. package/lib/public/modules/context-sources.js +3 -5
  119. package/lib/public/modules/diagnostics.js +130 -129
  120. package/lib/public/modules/info-panel.js +31 -0
  121. package/lib/public/modules/injected-identity.js +8 -8
  122. package/lib/public/modules/input-list-menu.js +39 -0
  123. package/lib/public/modules/input.js +22 -21
  124. package/lib/public/modules/markdown.js +10 -11
  125. package/lib/public/modules/mcp-ui.js +4 -14
  126. package/lib/public/modules/mention.js +100 -229
  127. package/lib/public/modules/message-header.js +80 -0
  128. package/lib/public/modules/message-participants.js +39 -0
  129. package/lib/public/modules/mobile-action-sheet.js +46 -0
  130. package/lib/public/modules/mobile-nav-sheet.js +104 -0
  131. package/lib/public/modules/model-families.js +41 -4
  132. package/lib/public/modules/note-order.js +39 -0
  133. package/lib/public/modules/notifications.js +35 -52
  134. package/lib/public/modules/overlay-history.js +73 -19
  135. package/lib/public/modules/overlay-menu.js +123 -0
  136. package/lib/public/modules/overlay-modal.js +186 -0
  137. package/lib/public/modules/overlay-registry.js +392 -0
  138. package/lib/public/modules/overlay-stack.js +110 -0
  139. package/lib/public/modules/overlay.js +117 -0
  140. package/lib/public/modules/popover-position.js +18 -2
  141. package/lib/public/modules/preference-sync.js +28 -0
  142. package/lib/public/modules/profile.js +24 -49
  143. package/lib/public/modules/project-settings.js +27 -172
  144. package/lib/public/modules/prompt-expiry-controls.js +46 -0
  145. package/lib/public/modules/prompt-kinds/command-summary.js +149 -0
  146. package/lib/public/modules/prompt-kinds/permission.js +70 -92
  147. package/lib/public/modules/prompts.js +1 -2
  148. package/lib/public/modules/qrcode.js +6 -21
  149. package/lib/public/modules/queued-button.js +15 -2
  150. package/lib/public/modules/rewind.js +9 -3
  151. package/lib/public/modules/schedule-time.js +32 -7
  152. package/lib/public/modules/scheduled-outbox.js +51 -18
  153. package/lib/public/modules/scheduler-config.js +87 -127
  154. package/lib/public/modules/scheduler.js +29 -26
  155. package/lib/public/modules/serialized-save.js +79 -0
  156. package/lib/public/modules/server-settings.js +75 -65
  157. package/lib/public/modules/session-grants.js +16 -19
  158. package/lib/public/modules/session-list-avatars.js +98 -0
  159. package/lib/public/modules/session-vendor-state.js +86 -0
  160. package/lib/public/modules/settings-access.js +35 -0
  161. package/lib/public/modules/settings-hub.js +125 -0
  162. package/lib/public/modules/settings-nav.js +182 -0
  163. package/lib/public/modules/shell-line.js +24 -0
  164. package/lib/public/modules/sidebar-mobile.js +151 -195
  165. package/lib/public/modules/sidebar-projects.js +88 -129
  166. package/lib/public/modules/sidebar-sessions.js +66 -34
  167. package/lib/public/modules/sidebar.js +2 -2
  168. package/lib/public/modules/skills.js +11 -26
  169. package/lib/public/modules/sticky-notes.js +19 -16
  170. package/lib/public/modules/stt.js +9 -23
  171. package/lib/public/modules/terminal.js +86 -90
  172. package/lib/public/modules/theme-choice.js +126 -0
  173. package/lib/public/modules/theme-colors.js +19 -0
  174. package/lib/public/modules/theme-prefs.js +121 -0
  175. package/lib/public/modules/theme.js +227 -605
  176. package/lib/public/modules/tool-palette.js +7 -17
  177. package/lib/public/modules/tools.js +8 -10
  178. package/lib/public/modules/user-settings.js +59 -115
  179. package/lib/public/modules/user-shell.js +9 -2
  180. package/lib/public/modules/utils.js +10 -12
  181. package/lib/public/modules/vendor-picker.js +4 -2
  182. package/lib/public/modules/vendor-registry.js +1 -2
  183. package/lib/public/style.css +3 -1
  184. package/lib/public/sw.js +9 -2
  185. package/lib/public/theme-core.js +411 -0
  186. package/lib/request-body.js +70 -0
  187. package/lib/sdk-bridge.js +227 -88
  188. package/lib/sdk-message-processor.js +44 -16
  189. package/lib/server-admin.js +198 -200
  190. package/lib/server-auth.js +16 -13
  191. package/lib/server-dm.js +4 -3
  192. package/lib/server-settings.js +177 -130
  193. package/lib/server.js +87 -36
  194. package/lib/session-background-tasks.js +79 -0
  195. package/lib/session-directory.js +138 -13
  196. package/lib/session-input-ipc.js +2 -0
  197. package/lib/session-input.js +39 -5
  198. package/lib/session-list-avatars.js +16 -0
  199. package/lib/session-reclaim.js +37 -25
  200. package/lib/session-vendor.js +37 -0
  201. package/lib/sessions.js +99 -34
  202. package/lib/settings-ipc.js +60 -0
  203. package/lib/settings-registry.js +86 -0
  204. package/lib/terminal-manager.js +17 -5
  205. package/lib/theme-files.js +132 -0
  206. package/lib/theme-seed.js +136 -0
  207. package/lib/themes/clagentic-dark.json +13 -6
  208. package/lib/themes/clagentic-light.json +12 -5
  209. package/lib/updater.js +6 -4
  210. package/lib/usage-store.js +97 -10
  211. package/lib/users-preferences.js +118 -19
  212. package/lib/users.js +19 -10
  213. package/lib/vendor-catalog.js +130 -0
  214. package/lib/ws-schema.js +4 -2
  215. package/lib/yoke/adapters/claude.js +81 -1
  216. package/lib/yoke/adapters/codex-user-shell.js +87 -23
  217. package/lib/yoke/adapters/codex.js +89 -5
  218. package/lib/yoke/codex-binary.js +59 -0
  219. package/package.json +1 -1
  220. package/scripts/check-test-count.js +5 -0
  221. package/scripts/install-local-test.js +50 -9
  222. package/scripts/write-build-sha.js +18 -2
  223. package/lib/public/css/channel-layout.css +0 -329
  224. package/lib/themes/ayu-light.json +0 -9
  225. package/lib/themes/catppuccin-latte.json +0 -9
  226. package/lib/themes/catppuccin-mocha.json +0 -9
  227. package/lib/themes/dracula.json +0 -9
  228. package/lib/themes/everforest-light.json +0 -9
  229. package/lib/themes/everforest.json +0 -9
  230. package/lib/themes/github-light.json +0 -9
  231. package/lib/themes/gruvbox-dark.json +0 -9
  232. package/lib/themes/gruvbox-light.json +0 -9
  233. package/lib/themes/monokai.json +0 -9
  234. package/lib/themes/nord-light.json +0 -9
  235. package/lib/themes/nord.json +0 -9
  236. package/lib/themes/one-dark.json +0 -9
  237. package/lib/themes/one-light.json +0 -9
  238. package/lib/themes/rose-pine-dawn.json +0 -9
  239. package/lib/themes/rose-pine.json +0 -9
  240. package/lib/themes/solarized-dark.json +0 -9
  241. package/lib/themes/solarized-light.json +0 -9
  242. package/lib/themes/tokyo-night-light.json +0 -9
  243. package/lib/themes/tokyo-night.json +0 -9
@@ -11,51 +11,41 @@
11
11
  position: absolute;
12
12
  top: -3px;
13
13
  right: -3px;
14
- background: var(--error, #e53935);
15
- color: #fff;
16
- font-size: 9px;
14
+ background: var(--error);
15
+ color: var(--on-error);
16
+ font-size: var(--font-size-2xs);
17
17
  font-weight: 700;
18
18
  min-width: 15px;
19
19
  height: 15px;
20
- line-height: 15px;
21
- border-radius: 8px;
20
+ line-height: var(--line-height-xs);
21
+ border-radius: var(--radius-4);
22
22
  text-align: center;
23
- padding: 0 3px;
23
+ padding: 0 var(--space-2);
24
24
  pointer-events: none;
25
25
  font-family: inherit;
26
26
  }
27
27
  .notif-badge.hidden { display: none; }
28
28
 
29
29
  /* ========================================================
30
- Banner container (fixed top-right, stacks down)
30
+ Notification banner content
31
+ The card (position, layer, chrome, close control) is the shared overlay
32
+ (overlay.css); only what is inside it is styled here.
31
33
  ======================================================== */
32
- .notif-banner-container {
33
- position: fixed;
34
- top: 48px;
35
- right: 8px;
36
- z-index: 9999;
37
- display: flex;
38
- flex-direction: column;
39
- gap: 6px;
40
- pointer-events: none;
41
- width: 340px;
42
- }
43
34
 
44
35
  /* "Clear all" pill — appears at the top of the stack when 2+ banners
45
36
  are showing. Small, muted, aligned to the right so it sits above the
46
37
  banners' corner without stealing attention. */
47
38
  .notif-banner-clear-all {
48
- pointer-events: auto;
49
39
  align-self: flex-end;
50
40
  display: inline-flex;
51
41
  align-items: center;
52
- gap: 4px;
53
- padding: 3px 10px;
42
+ gap: var(--space-2);
43
+ padding: var(--space-2) var(--space-5);
54
44
  background: var(--bg-alt, var(--bg));
55
45
  border: 1px solid var(--border);
56
- border-radius: 999px;
46
+ border-radius: var(--radius-pill);
57
47
  font-family: var(--font-mono, monospace);
58
- font-size: 9.5px;
48
+ font-size: var(--font-size-2xs);
59
49
  font-weight: 400;
60
50
  letter-spacing: 0.08em;
61
51
  color: var(--text-muted);
@@ -72,33 +62,9 @@
72
62
  height: 12px;
73
63
  }
74
64
 
75
- /* Individual banner */
65
+ /* A banner opens its session when tapped. */
76
66
  .notif-banner {
77
- position: relative;
78
- display: flex;
79
- align-items: center;
80
- gap: 10px;
81
- padding: 12px 14px;
82
- background: var(--bg-alt, var(--bg));
83
- border: 1px solid var(--border);
84
- border-radius: 10px;
85
- box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.22);
86
- pointer-events: auto;
87
67
  cursor: pointer;
88
- opacity: 0;
89
- transform: translateY(-8px);
90
- transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s ease;
91
- }
92
- .notif-banner.show {
93
- opacity: 1;
94
- transform: translateY(0);
95
- }
96
- .notif-banner.hide {
97
- opacity: 0;
98
- transform: translateY(-8px);
99
- }
100
- .notif-banner:hover {
101
- border-color: var(--border-bright, var(--accent));
102
68
  }
103
69
 
104
70
  .notif-banner-icon {
@@ -110,16 +76,17 @@
110
76
  justify-content: center;
111
77
  background: var(--bg-surface, var(--bg));
112
78
  border: 1px solid var(--border);
113
- border-radius: 6px;
79
+ border-radius: var(--radius-3);
114
80
  color: var(--text-muted);
115
81
  }
116
82
  .notif-banner-icon .lucide { width: 16px; height: 16px; }
117
- .notif-banner-emoji { font-size: 18px; line-height: 1; }
83
+ .notif-banner-logo { border-radius: var(--overlay-icon-radius); }
84
+ .notif-banner-emoji { font-size: var(--font-size-2xl); line-height: 1; }
118
85
  .notif-banner-avatar {
119
86
  width: 100%;
120
87
  height: 100%;
121
88
  object-fit: cover;
122
- border-radius: 4px;
89
+ border-radius: var(--radius-2);
123
90
  display: block;
124
91
  }
125
92
 
@@ -129,25 +96,25 @@
129
96
  }
130
97
  .notif-banner-project {
131
98
  font-family: var(--font-mono, monospace);
132
- font-size: 9.5px;
99
+ font-size: var(--font-size-2xs);
133
100
  font-weight: 400;
134
101
  color: var(--accent);
135
102
  text-transform: uppercase;
136
103
  letter-spacing: 0.12em;
137
- margin-bottom: 3px;
104
+ margin-bottom: var(--space-2);
138
105
  }
139
106
  /* Whose prompt this is: wrapped, never cut off, because a clipped label is
140
107
  the failure this line exists to fix. */
141
108
  .notif-banner-label {
142
109
  font-family: var(--font-mono, monospace);
143
- font-size: 10.5px;
110
+ font-size: var(--font-size-xs);
144
111
  color: var(--accent);
145
- margin-bottom: 3px;
112
+ margin-bottom: var(--space-2);
146
113
  overflow-wrap: anywhere;
147
114
  }
148
115
  .notif-banner-title {
149
116
  font-weight: 500;
150
- font-size: 13px;
117
+ font-size: var(--font-size-md);
151
118
  color: var(--text);
152
119
  line-height: 1.3;
153
120
  overflow: hidden;
@@ -155,9 +122,9 @@
155
122
  white-space: nowrap;
156
123
  }
157
124
  .notif-banner-text {
158
- font-size: 12px;
125
+ font-size: var(--font-size-sm);
159
126
  color: var(--text-muted);
160
- margin-top: 1px;
127
+ margin-top: var(--space-1);
161
128
  overflow: hidden;
162
129
  text-overflow: ellipsis;
163
130
  white-space: nowrap;
@@ -167,13 +134,13 @@
167
134
  .notif-banner-actions {
168
135
  display: flex;
169
136
  align-items: center;
170
- gap: 6px;
171
- margin-top: 8px;
137
+ gap: var(--space-3);
138
+ margin-top: var(--space-4);
172
139
  }
173
140
  .notif-banner-allow, .notif-banner-always, .notif-banner-deny, .notif-banner-goto {
174
- padding: 4px 10px;
175
- border-radius: 6px;
176
- font-size: 11px;
141
+ padding: var(--space-2) var(--space-5);
142
+ border-radius: var(--radius-3);
143
+ font-size: var(--font-size-xs);
177
144
  font-weight: 600;
178
145
  font-family: inherit;
179
146
  cursor: pointer;
@@ -181,13 +148,13 @@
181
148
  transition: opacity 0.15s, background 0.15s;
182
149
  }
183
150
  .notif-banner-allow {
184
- background: var(--accent, #6c5ce7);
185
- color: #fff;
151
+ background: var(--accent);
152
+ color: var(--on-accent);
186
153
  }
187
154
  .notif-banner-allow:hover { opacity: 0.85; }
188
155
  .notif-banner-always {
189
156
  background: none;
190
- border: 1px solid var(--border, #333);
157
+ border: 1px solid var(--border);
191
158
  color: var(--text-secondary);
192
159
  }
193
160
  .notif-banner-always:hover { color: var(--text); border-color: var(--text-secondary); }
@@ -200,7 +167,7 @@
200
167
  display: flex;
201
168
  align-items: center;
202
169
  justify-content: center;
203
- padding: 4px;
170
+ padding: var(--space-2);
204
171
  margin-left: auto;
205
172
  background: none;
206
173
  color: var(--text-dimmer);
@@ -208,35 +175,6 @@
208
175
  .notif-banner-goto:hover { color: var(--text); }
209
176
  .notif-banner-goto .lucide { width: 13px; height: 13px; }
210
177
 
211
- /* Banner close button */
212
- .notif-banner-close {
213
- position: absolute;
214
- top: -8px;
215
- left: -8px;
216
- display: flex;
217
- align-items: center;
218
- justify-content: center;
219
- width: 18px;
220
- height: 18px;
221
- background: var(--bg-surface, var(--bg-alt));
222
- border: 1px solid var(--border);
223
- color: var(--text-muted);
224
- cursor: pointer;
225
- border-radius: 999px;
226
- flex-shrink: 0;
227
- opacity: 0;
228
- transition: opacity 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
229
- box-shadow: 0 2px 6px rgba(var(--shadow-rgb), 0.20);
230
- z-index: 2;
231
- }
232
- .notif-banner:hover .notif-banner-close { opacity: 1; }
233
- .notif-banner-close:hover {
234
- color: var(--text);
235
- border-color: var(--border-bright, var(--border));
236
- transform: scale(1.08);
237
- }
238
- .notif-banner-close .lucide { width: 12px; height: 12px; }
239
-
240
178
  /* Update available banner */
241
179
  .notif-banner-update .notif-banner-icon {
242
180
  background: none;
@@ -247,19 +185,19 @@
247
185
  white-space: normal;
248
186
  }
249
187
  .notif-banner-auth .notif-banner-actions {
250
- margin-top: 10px;
188
+ margin-top: var(--space-5);
251
189
  }
252
190
  .notif-banner-auth-login,
253
191
  .notif-banner-new-session {
254
- padding: 4px 10px;
255
- border-radius: 6px;
256
- font-size: 11px;
192
+ padding: var(--space-2) var(--space-5);
193
+ border-radius: var(--radius-3);
194
+ font-size: var(--font-size-xs);
257
195
  font-weight: 600;
258
196
  font-family: inherit;
259
197
  cursor: pointer;
260
198
  border: none;
261
- background: var(--accent, #6c5ce7);
262
- color: #fff;
199
+ background: var(--accent);
200
+ color: var(--on-accent);
263
201
  transition: opacity 0.15s;
264
202
  }
265
203
  .notif-banner-auth-login:hover,
@@ -272,34 +210,17 @@
272
210
  cursor: default;
273
211
  }
274
212
  .notif-banner-update-now {
275
- padding: 4px 10px;
276
- border-radius: 6px;
277
- font-size: 11px;
213
+ padding: var(--space-2) var(--space-5);
214
+ border-radius: var(--radius-3);
215
+ font-size: var(--font-size-xs);
278
216
  font-weight: 600;
279
217
  font-family: inherit;
280
218
  cursor: pointer;
281
219
  border: none;
282
- background: var(--accent, #6c5ce7);
283
- color: #fff;
220
+ background: var(--accent);
221
+ color: var(--on-accent);
284
222
  transition: opacity 0.15s;
285
223
  }
286
224
  .notif-banner-update-now:hover { opacity: 0.85; }
287
225
  .notif-banner-update-now:disabled { opacity: 0.6; cursor: default; }
288
226
 
289
- /* light-theme overrides removed — all banner styles now use CSS vars */
290
-
291
- /* ========================================================
292
- Mobile
293
- ======================================================== */
294
- @media (max-width: 768px) {
295
- .notif-banner-container {
296
- right: 8px;
297
- left: 8px;
298
- width: auto;
299
- }
300
- .notif-banner-close {
301
- top: -7px;
302
- left: -7px;
303
- }
304
- .notif-banner:hover .notif-banner-close { opacity: 1; }
305
- }
@@ -0,0 +1,269 @@
1
+ /* Overlays: the one stack, the one card, the one close control.
2
+ Every toast and banner (plain toasts, diagnostic and preflight toasts, the
3
+ build-update offer, the reload banner, notification banners) is a child of
4
+ #overlay-stack, drawn by modules/overlay.js and placed by
5
+ modules/overlay-stack.js. Every menu and popover is drawn by the same
6
+ component, placed by modules/popover-position.js and tracked by
7
+ modules/overlay-registry.js. Every modal and sheet is drawn by the same
8
+ component (modules/overlay-modal.js) on the modal layer, and every panel by the
9
+ same component on the panel layer under it. Other stylesheets
10
+ style what is inside a card and never its position, layer, chrome or close
11
+ control.
12
+
13
+ Sizes and layers are the tokens in base.css (--overlay-*, --z-*). */
14
+
15
+ .overlay-stack {
16
+ position: fixed;
17
+ top: var(--overlay-stack-top);
18
+ right: var(--overlay-stack-inset);
19
+ z-index: var(--z-toast);
20
+ display: flex;
21
+ flex-direction: column;
22
+ gap: var(--overlay-gap);
23
+ width: min(var(--overlay-width), calc(100vw - 2 * var(--overlay-stack-inset)));
24
+ /* The stack is a layout box only: the gaps and the empty strip around the
25
+ cards pass clicks through to the page. */
26
+ pointer-events: none;
27
+ }
28
+ .overlay-stack > * {
29
+ pointer-events: auto;
30
+ }
31
+
32
+ /* A phone: the stack spans the width, below the notch, and the cards fill it. */
33
+ @media (max-width: 768px) {
34
+ .overlay-stack {
35
+ top: calc(var(--safe-top) + var(--overlay-stack-inset));
36
+ left: var(--overlay-stack-inset);
37
+ width: auto;
38
+ }
39
+ }
40
+
41
+ /* The card chrome: one look for a toast, a banner, a menu, a modal's dialog and
42
+ any other card (a surface that draws its own box, such as an inline picker,
43
+ adds .overlay-card). */
44
+ .overlay,
45
+ .overlay-menu,
46
+ .overlay-modal-dialog,
47
+ .overlay-card {
48
+ box-sizing: border-box;
49
+ background: var(--bg-alt);
50
+ color: var(--text);
51
+ border: 1px solid var(--border);
52
+ border-radius: var(--overlay-radius);
53
+ box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.22);
54
+ }
55
+
56
+ /* A menu or popover (modules/overlay-menu.js): anchored by popover-position.js,
57
+ which writes its left and top, on the menu layer. Padding and item styling
58
+ stay with the surface that fills it. */
59
+ .overlay-menu {
60
+ position: fixed;
61
+ z-index: var(--z-menu);
62
+ }
63
+
64
+ /* A modal or sheet (modules/overlay-modal.js): a scrim over the page and one
65
+ dialog card on it, on the modal layer. A later modal sits over an earlier one:
66
+ the registry numbers the open ones in --overlay-order and the layer adds it, so
67
+ the order holds wherever each node lives in the page. The page's toasts and
68
+ menus are on higher layers and stay readable over it. */
69
+ .overlay-modal {
70
+ position: fixed;
71
+ inset: 0;
72
+ z-index: calc(var(--z-modal) + var(--overlay-order, 0));
73
+ display: flex;
74
+ align-items: center;
75
+ justify-content: center;
76
+ }
77
+ .overlay-modal-backdrop {
78
+ position: absolute;
79
+ inset: 0;
80
+ background: rgba(var(--shadow-rgb), var(--overlay-scrim));
81
+ }
82
+ .overlay-scrim-dark .overlay-modal-backdrop {
83
+ background: rgba(var(--shadow-rgb), var(--overlay-scrim-dark));
84
+ }
85
+ .overlay-scrim-solid .overlay-modal-backdrop {
86
+ background: var(--bg);
87
+ }
88
+ /* The dialog's look is the shared card chrome above; this is its size and place. */
89
+ .overlay-modal-dialog {
90
+ position: relative;
91
+ width: 90%;
92
+ max-width: var(--overlay-modal-width);
93
+ /* The top strip holds the close control. */
94
+ padding: calc(var(--overlay-modal-pad-y) + var(--overlay-close-size)) var(--overlay-modal-pad-x) var(--overlay-modal-pad-y);
95
+ border-radius: var(--overlay-modal-radius);
96
+ }
97
+ /* A dialog that is its content (a lightbox): no card. Its close control hangs
98
+ from the viewport corner, over whatever the content is. */
99
+ .overlay-modal-bare {
100
+ width: auto;
101
+ max-width: none;
102
+ padding: 0;
103
+ background: none;
104
+ border: none;
105
+ box-shadow: none;
106
+ }
107
+ .overlay-modal-bare .overlay-close {
108
+ position: fixed;
109
+ top: var(--overlay-modal-edge);
110
+ right: var(--overlay-modal-edge);
111
+ background: color-mix(in srgb, var(--bg) 70%, transparent);
112
+ color: var(--text);
113
+ }
114
+
115
+ /* A panel (the panel option of modules/overlay-modal.js): a modal on the panel
116
+ layer, under the dialogs a panel opens, so a confirmation or a picker the
117
+ panel raises shows over it. Panels are ordered as modals are: the registry
118
+ numbers the open panels in --overlay-order (clamped, so the band stays under the
119
+ modal layer) and a later one sits over an earlier one. The phone Settings list
120
+ (#settings-hub) is on --z-panel itself and project settings one above it, so a
121
+ registry panel (the +2 here) opened from either shows over it. A panel is never
122
+ opened while a dialog is open (the registry refuses it), so a panel is never
123
+ under a dialog that came before it. */
124
+ .overlay-modal.overlay-panel {
125
+ z-index: calc(var(--z-panel) + 2 + var(--overlay-order, 0));
126
+ }
127
+ /* Its dialog fills the page, with no card chrome. A surface that is a card or a
128
+ drop-down sizes and paints its own dialog class, which loads after this rule. */
129
+ .overlay-panel-dialog {
130
+ width: 100%;
131
+ height: 100%;
132
+ max-width: none;
133
+ padding: 0;
134
+ background: var(--bg);
135
+ border: none;
136
+ border-radius: 0;
137
+ box-shadow: none;
138
+ }
139
+ /* The shared close control clears the notch, as the panel's own content does. */
140
+ .overlay-panel-dialog > .overlay-close {
141
+ top: calc(var(--safe-top) + var(--overlay-close-inset));
142
+ }
143
+
144
+ /* A sheet rises from the bottom edge at full width. */
145
+ .overlay-sheet {
146
+ align-items: flex-end;
147
+ }
148
+ .overlay-sheet-dialog {
149
+ width: 100%;
150
+ max-width: none;
151
+ /* The top strip holds the close control. */
152
+ padding: calc(var(--overlay-sheet-pad-top) + var(--overlay-close-touch)) 0 calc(var(--overlay-sheet-pad-bottom) + var(--safe-bottom));
153
+ background: var(--bg);
154
+ border: none;
155
+ border-radius: var(--overlay-sheet-radius) var(--overlay-sheet-radius) 0 0;
156
+ box-shadow: 0 -8px 24px rgba(var(--shadow-rgb), 0.22);
157
+ }
158
+ /* A sheet a bottom-nav button opens stops above the nav, so the nav stays in view
159
+ and every nav button still works while it is open. */
160
+ .overlay-nav-sheet {
161
+ bottom: var(--mobile-nav-height);
162
+ }
163
+ @media (max-width: 768px) {
164
+ .overlay-modal .overlay-close {
165
+ width: var(--overlay-close-touch);
166
+ height: var(--overlay-close-touch);
167
+ }
168
+ }
169
+
170
+ /* A panel that keeps its place in the column its container lays out (the info
171
+ panels): no float, and no layer here; the surface sets its own layer on its
172
+ node. The close control still anchors to its corner. */
173
+ .overlay-menu-inline {
174
+ position: relative;
175
+ z-index: auto;
176
+ }
177
+
178
+ .overlay {
179
+ position: relative;
180
+ display: flex;
181
+ min-width: 0;
182
+ padding: var(--overlay-pad-y) var(--overlay-pad-x);
183
+ overflow-wrap: anywhere;
184
+ opacity: 0;
185
+ transform: translateY(calc(-1 * var(--overlay-rise)));
186
+ transition: opacity 0.2s ease, transform 0.2s ease;
187
+ }
188
+ .overlay.visible {
189
+ opacity: 1;
190
+ transform: translateY(0);
191
+ }
192
+ .overlay.hide {
193
+ /* A leaving card fades for a moment; it must not swallow clicks meanwhile. */
194
+ pointer-events: none;
195
+ opacity: 0;
196
+ transform: translateY(calc(-1 * var(--overlay-rise)));
197
+ }
198
+
199
+ /* A toast reads top to bottom (header, message, actions); a banner reads left
200
+ to right (icon, text). */
201
+ .overlay-toast {
202
+ flex-direction: column;
203
+ gap: var(--overlay-toast-gap);
204
+ }
205
+ .overlay-banner {
206
+ flex-direction: row;
207
+ align-items: center;
208
+ gap: var(--overlay-banner-gap);
209
+ }
210
+
211
+ /* Severity is the card's left edge. */
212
+ .overlay[data-severity] {
213
+ border-left-width: var(--overlay-accent-width);
214
+ }
215
+ .overlay[data-severity="info"] { border-left-color: var(--text-muted); }
216
+ .overlay[data-severity="success"] { border-left-color: var(--success); }
217
+ .overlay[data-severity="warn"] { border-left-color: var(--warning); }
218
+ .overlay[data-severity="error"] { border-left-color: var(--error); }
219
+
220
+ /* The close control: one element, one corner, always visible (a phone has no
221
+ hover). The card reserves its width so text never runs under it. */
222
+ .overlay-dismissible {
223
+ padding-right: calc(var(--overlay-close-size) + var(--overlay-close-inset));
224
+ }
225
+ .overlay-close {
226
+ position: absolute;
227
+ /* Above the card's own raised content (a banner image, an avatar row). */
228
+ z-index: var(--z-base);
229
+ top: var(--overlay-close-inset);
230
+ right: var(--overlay-close-inset);
231
+ display: flex;
232
+ align-items: center;
233
+ justify-content: center;
234
+ width: var(--overlay-close-size);
235
+ height: var(--overlay-close-size);
236
+ padding: 0;
237
+ background: none;
238
+ border: none;
239
+ border-radius: 50%;
240
+ color: var(--text-muted);
241
+ cursor: pointer;
242
+ transition: color 0.15s, background 0.15s;
243
+ }
244
+ .overlay-close:hover {
245
+ color: var(--text);
246
+ background: rgba(var(--overlay-rgb), 0.06);
247
+ }
248
+ .overlay-close:focus-visible {
249
+ outline: 2px solid var(--accent);
250
+ outline-offset: 1px;
251
+ }
252
+ .overlay-close .lucide {
253
+ width: var(--overlay-icon-size);
254
+ height: var(--overlay-icon-size);
255
+ }
256
+
257
+ /* A plain toast: the message and an optional one-line detail. */
258
+ .overlay-text {
259
+ font-size: var(--overlay-text-size);
260
+ font-weight: 500;
261
+ }
262
+ .overlay-detail {
263
+ margin-top: var(--overlay-toast-gap);
264
+ font-size: var(--overlay-detail-size);
265
+ opacity: 0.7;
266
+ overflow: hidden;
267
+ text-overflow: ellipsis;
268
+ white-space: nowrap;
269
+ }