tabherd 0.0.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +166 -0
  2. package/LICENSE +674 -0
  3. package/README.md +538 -2
  4. package/launcher/npm.js +9 -0
  5. package/lib/agents.js +324 -0
  6. package/lib/codex-client.js +306 -0
  7. package/lib/codex-rollout.js +251 -0
  8. package/lib/codex.js +424 -0
  9. package/lib/comfy.js +479 -0
  10. package/lib/completed.js +55 -0
  11. package/lib/copilot.js +359 -0
  12. package/lib/cursor.js +516 -0
  13. package/lib/dismissed.js +30 -0
  14. package/lib/filters.js +120 -0
  15. package/lib/groups.js +144 -0
  16. package/lib/history.js +253 -0
  17. package/lib/llamacpp.js +159 -0
  18. package/lib/lmstudio.js +134 -0
  19. package/lib/localai.js +291 -0
  20. package/lib/memory.js +55 -0
  21. package/lib/ollama.js +124 -0
  22. package/lib/open-dashboard.js +39 -0
  23. package/lib/opencode.js +371 -0
  24. package/lib/repos.js +81 -0
  25. package/lib/saved.js +33 -0
  26. package/lib/secrets.js +196 -0
  27. package/lib/session-id.js +9 -0
  28. package/lib/settings.js +231 -0
  29. package/lib/store.js +44 -0
  30. package/lib/terminals/index.js +62 -0
  31. package/lib/terminals/kitty.js +126 -0
  32. package/lib/terminals/linux.js +310 -0
  33. package/lib/terminals/macos.js +468 -0
  34. package/lib/terminals/tmux.js +89 -0
  35. package/lib/terminals/unix-driver.js +172 -0
  36. package/lib/terminals/unix.js +204 -0
  37. package/lib/terminals/unsupported.js +22 -0
  38. package/lib/terminals/wezterm.js +103 -0
  39. package/lib/terminals/windows-close.ps1 +125 -0
  40. package/lib/terminals/windows-focus.ps1 +235 -0
  41. package/lib/terminals/windows-pick-folder.ps1 +57 -0
  42. package/lib/terminals/windows-titles.js +124 -0
  43. package/lib/terminals/windows-titles.ps1 +95 -0
  44. package/lib/terminals/windows.js +166 -0
  45. package/lib/ticket-refs.js +184 -0
  46. package/lib/tickets.js +437 -0
  47. package/lib/todos.js +166 -0
  48. package/lib/trackers.js +541 -0
  49. package/lib/transcript.js +314 -0
  50. package/lib/updates.js +186 -0
  51. package/package.json +35 -7
  52. package/public/app.js +4077 -0
  53. package/public/favicon.svg +1 -0
  54. package/public/icons/tabherd-128.png +0 -0
  55. package/public/icons/tabherd-16.png +0 -0
  56. package/public/icons/tabherd-20.png +0 -0
  57. package/public/icons/tabherd-24.png +0 -0
  58. package/public/icons/tabherd-256.png +0 -0
  59. package/public/icons/tabherd-32.png +0 -0
  60. package/public/icons/tabherd-40.png +0 -0
  61. package/public/icons/tabherd-48.png +0 -0
  62. package/public/icons/tabherd-512.png +0 -0
  63. package/public/icons/tabherd-64.png +0 -0
  64. package/public/index.html +655 -0
  65. package/public/lang/es.js +742 -0
  66. package/public/style.css +1443 -0
  67. package/server.js +814 -0
  68. package/placeholder.js +0 -3
@@ -0,0 +1,1443 @@
1
+ /* Each colour is light-dark(light, dark). color-scheme picks which: the
2
+ system's by default, or the one chosen under Theme in Settings. */
3
+ :root {
4
+ color-scheme: light dark;
5
+ --bg: light-dark(#f5f4ef, #191816);
6
+ --panel: light-dark(#ffffff, #22211e);
7
+ --panel-2: light-dark(#f8f7f3, #1d1c1a);
8
+ --border: light-dark(#e3e0d8, #35332f);
9
+ --text: light-dark(#1f1e1b, #ecebe6);
10
+ --muted: light-dark(#6b6760, #a7a39a);
11
+ --faint: light-dark(#9b978e, #77736b);
12
+ /* The logo's blue. Text on it is white in light mode, the logo's navy in
13
+ dark mode, where the blue is brighter. */
14
+ --accent: light-dark(#0a6cdc, #4a9dff);
15
+ --on-accent: light-dark(#ffffff, #0b1f3a);
16
+ --busy: light-dark(#1f8a5b, #4cc38a);
17
+ --busy-bg: light-dark(#e3f4ea, #17382a);
18
+ /* The logo's purple, so "Shell running" doesn't look like the blue buttons. */
19
+ --shell: light-dark(#6d3fd1, #a98bf5);
20
+ --shell-bg: light-dark(#ede7fb, #2a2142);
21
+ --wait: light-dark(#b56d00, #f0a83a);
22
+ --wait-bg: light-dark(#fdf0d9, #3d2c0f);
23
+ --idle: light-dark(#85817a, #8f8b83);
24
+ --idle-bg: light-dark(#efede8, #2b2a27);
25
+ --danger: light-dark(#c0392b, #ef6a5a);
26
+ /* Behind white text. Dark mode's --danger is too light for it. */
27
+ --danger-fill: #c0392b;
28
+ --bar: light-dark(#e8e5de, #34322e);
29
+ --shadow-color: light-dark(rgb(0 0 0 / 0.04), transparent);
30
+ --shadow: 0 1px 2px var(--shadow-color), 0 2px 8px var(--shadow-color);
31
+ --scroll-shadow: light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.45));
32
+ --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
33
+ }
34
+ :root[data-theme="light"] { color-scheme: light; }
35
+ :root[data-theme="dark"] { color-scheme: dark; }
36
+
37
+ * { box-sizing: border-box; }
38
+
39
+ body {
40
+ margin: 0;
41
+ background: var(--bg);
42
+ color: var(--text);
43
+ font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
44
+ -webkit-font-smoothing: antialiased;
45
+ }
46
+
47
+ button { font: inherit; color: inherit; }
48
+ code, pre { font-family: var(--mono); font-size: 12.5px; }
49
+ a { color: var(--accent); }
50
+
51
+ /* Header */
52
+
53
+ .top {
54
+ position: sticky;
55
+ top: 0;
56
+ z-index: 5;
57
+ display: flex;
58
+ flex-wrap: wrap;
59
+ align-items: center;
60
+ gap: 12px 14px;
61
+ padding: 14px 24px;
62
+ background: color-mix(in srgb, var(--bg) 88%, transparent);
63
+ backdrop-filter: blur(8px);
64
+ border-bottom: 1px solid var(--border);
65
+ }
66
+
67
+ .brand { display: flex; align-items: center; gap: 10px; }
68
+ .brand h1 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
69
+ /* The computer's name, with the version running under it. */
70
+ .brand-host { display: grid; line-height: 1.2; }
71
+ .host { color: var(--faint); font-size: 12.5px; }
72
+ .version { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
73
+ .version:empty { display: none; }
74
+
75
+ .filters {
76
+ display: flex;
77
+ gap: 2px;
78
+ max-width: 100%;
79
+ overflow-x: auto;
80
+ scrollbar-width: thin;
81
+ padding: 3px;
82
+ background: var(--panel-2);
83
+ border: 1px solid var(--border);
84
+ border-radius: 9px;
85
+ }
86
+ .filters button {
87
+ flex: none;
88
+ white-space: nowrap;
89
+ border: 0;
90
+ background: none;
91
+ padding: 5px 11px;
92
+ border-radius: 6px;
93
+ cursor: pointer;
94
+ color: var(--muted);
95
+ }
96
+ .filters button b { font-weight: 600; margin-left: 3px; color: var(--faint); }
97
+ .filters button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
98
+ .filters button[aria-pressed="true"] b { color: var(--text); }
99
+ .filters button.has b { color: var(--wait); }
100
+ .filters .filter-menu-button { padding: 5px 9px; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; }
101
+ .filters .filter-menu-button:hover { color: var(--text); background: var(--panel); }
102
+
103
+ .notes-button,
104
+ .sound,
105
+ .todo-new,
106
+ .update-button {
107
+ display: inline-flex;
108
+ align-items: center;
109
+ gap: 6px;
110
+ height: 30px;
111
+ padding: 0 9px;
112
+ border: 1px solid var(--border);
113
+ border-radius: 8px;
114
+ background: var(--panel);
115
+ color: var(--muted);
116
+ cursor: pointer;
117
+ font-size: 12.5px;
118
+ }
119
+ .notes-button:hover,
120
+ .sound:hover { color: var(--text); }
121
+ .notes-button svg,
122
+ .sound svg,
123
+ .todo-new svg,
124
+ .update-button svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
125
+ .notes-button { padding: 0 7px; }
126
+ .notes-button b { font-weight: 600; }
127
+ .notes-button b:empty { display: none; }
128
+ .notes-button.has-needs { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 45%, transparent); }
129
+ .sound .slash { display: none; }
130
+ .sound.off { color: var(--faint); }
131
+ .sound.off .slash { display: inline; }
132
+ .sound.blocked { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 45%, transparent); }
133
+ #sound-label:empty { display: none; }
134
+ .todo-new { gap: 5px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
135
+ .todo-new:hover { border-color: var(--accent); }
136
+ .todo-new svg { stroke-width: 2; }
137
+
138
+ .header-icon { width: 30px; height: 30px; }
139
+ .header-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
140
+ /* The desktop app's pin, lit while the window stays on top. Not in a browser. */
141
+ .pin-button[hidden] { display: none; }
142
+ .pin-button[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
143
+ .pin-button[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--accent) 30%, transparent); }
144
+ .history-button { margin-left: auto; }
145
+ /* A newer Tabherd: first of the buttons on the right, until it's updated or
146
+ put off. */
147
+ .update-button { margin-left: auto; gap: 5px; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
148
+ .update-button:hover { border-color: var(--accent); }
149
+ .update-button svg { stroke-width: 2; }
150
+ .update-button[hidden] { display: none; }
151
+ .update-button:not([hidden]) ~ .history-button { margin-left: 0; }
152
+
153
+ /* Asking once whether to check for a newer Tabherd, above the cards. */
154
+ .update-ask {
155
+ display: flex;
156
+ flex-wrap: wrap;
157
+ align-items: center;
158
+ gap: 10px 16px;
159
+ margin: 0 0 16px;
160
+ padding: 12px 16px;
161
+ border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
162
+ border-radius: 10px;
163
+ background: var(--panel);
164
+ }
165
+ .update-ask[hidden] { display: none; }
166
+ .update-ask p { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 13px; }
167
+ .update-ask b { color: var(--text); }
168
+ .update-ask-actions { display: flex; gap: 8px; }
169
+
170
+ /* What's new in a newer Tabherd, and how to update. */
171
+ .update-notes { max-height: 45vh; overflow: auto; margin: 0 0 4px; font-size: 13px; }
172
+ .update-notes p { margin: 0 0 8px; }
173
+ .update-notes ul { margin: 0 0 8px; padding-left: 18px; }
174
+ .update-notes li + li { margin-top: 6px; }
175
+ .update-how-title { margin: 14px 0 4px; font-size: 13px; font-weight: 650; }
176
+ .update-how { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
177
+ .update-command { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
178
+ .update-command[hidden] { display: none; }
179
+ .update-command code { flex: 1; padding: 6px 8px; border-radius: 6px; background: var(--panel-2); font-size: 12.5px; }
180
+ a.btn { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
181
+ a.btn-primary { color: var(--on-accent); }
182
+
183
+ .conn { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12.5px; }
184
+ .conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
185
+ .conn.live .conn-dot { background: var(--busy); }
186
+ .conn.down { color: var(--danger); }
187
+ .conn.down .conn-dot { background: var(--danger); }
188
+
189
+ /* The desktop app's title bar, which the header stands in for. On Windows and
190
+ Linux the window's buttons sit in its top right corner, as the system's
191
+ would; on macOS the system's own sit in its top left. The cards scroll
192
+ below it, rather than the whole page, so the page's scroll bar doesn't run
193
+ up beside the buttons. */
194
+ :root[data-title-bar] body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
195
+ :root[data-title-bar] main { flex: 1; min-height: 0; overflow-y: auto; }
196
+ :root[data-title-bar="buttons"] .top { padding-right: calc(24px + 3 * 46px); }
197
+ :root[data-title-bar="inset"] .top { padding-left: 80px; }
198
+ .window-buttons {
199
+ position: absolute;
200
+ top: 0;
201
+ right: 0;
202
+ display: flex;
203
+ }
204
+ .window-buttons[hidden] { display: none; }
205
+ .window-buttons button {
206
+ display: grid;
207
+ place-items: center;
208
+ width: 46px;
209
+ height: 32px;
210
+ padding: 0;
211
+ border: 0;
212
+ background: none;
213
+ color: var(--text);
214
+ }
215
+ .window-buttons button:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
216
+ .window-buttons button:active { background: color-mix(in srgb, var(--text) 15%, transparent); }
217
+ .window-buttons button:focus-visible { outline-offset: -2px; }
218
+ .window-buttons .window-close:hover { background: #c42b1c; color: #fff; }
219
+ .window-buttons .window-close:active { background: #b62d1f; color: #fff; }
220
+ .window-buttons svg { fill: none; stroke: currentColor; stroke-width: 1; }
221
+ .window-buttons .restore,
222
+ .window-buttons .maximized .maximize { display: none; }
223
+ .window-buttons .maximized .restore { display: inline; }
224
+
225
+ /* List */
226
+
227
+ main { padding: 20px 24px 48px; }
228
+ .list {
229
+ --card-width: 470px;
230
+ display: grid;
231
+ grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-width)), 1fr));
232
+ gap: 14px;
233
+ align-items: start;
234
+ }
235
+ .list.stale { opacity: 0.55; }
236
+
237
+ /* Small, Medium and Large make every card the same size. The header and
238
+ buttons stay put, and the middle scrolls when it doesn't fit. */
239
+ .list[data-size="small"] { --card-width: 340px; --card-height: 380px; }
240
+ .list[data-size="medium"] { --card-height: 480px; }
241
+ .list[data-size="large"] { --card-width: 560px; --card-height: 560px; }
242
+ .list.uniform .card { display: flex; flex-direction: column; height: var(--card-height); }
243
+ /* One line per header row, so every card's activity starts at the same height. */
244
+ .list.uniform :is(.name, .title, .proc, .where > *) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
245
+ .list.uniform .name-link { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
246
+ .list.uniform .card-head :is(.badge, .since) { flex: none; }
247
+ .list.uniform .proc { min-width: 0; }
248
+ .list.uniform .where { flex-wrap: nowrap; overflow: hidden; }
249
+ .list.uniform .where > * { flex: none; }
250
+ .list.uniform .where .path { flex-shrink: 1; min-width: 0; }
251
+ .list.uniform .where .branch { max-width: 40%; }
252
+ .list.uniform .card-body {
253
+ flex: 1;
254
+ min-height: 0;
255
+ overflow-y: auto;
256
+ scrollbar-width: thin;
257
+ scrollbar-color: color-mix(in srgb, var(--faint) 55%, transparent) transparent;
258
+ /* Room for focus rings and the scrollbar, taken from the card's padding. */
259
+ margin: 0 -10px;
260
+ padding: 0 10px 4px;
261
+ /* A shadow at the top or bottom edge while there's more to scroll to. */
262
+ background:
263
+ linear-gradient(var(--panel) 40%, transparent) top / 100% 24px no-repeat local,
264
+ linear-gradient(transparent, var(--panel) 60%) bottom / 100% 24px no-repeat local,
265
+ linear-gradient(var(--scroll-shadow), transparent) top / 100% 10px no-repeat scroll,
266
+ linear-gradient(transparent, var(--scroll-shadow)) bottom / 100% 10px no-repeat scroll;
267
+ }
268
+
269
+ .empty { max-width: 460px; margin: 12vh auto; text-align: center; color: var(--muted); }
270
+ .empty-title { font-size: 16px; color: var(--text); font-weight: 600; }
271
+
272
+ /* Card */
273
+
274
+ .card {
275
+ background: var(--panel);
276
+ border: 1px solid var(--border);
277
+ border-left: 3px solid var(--idle);
278
+ border-radius: 10px;
279
+ padding: 14px 16px 12px;
280
+ box-shadow: var(--shadow);
281
+ min-width: 0;
282
+ }
283
+ .card.s-busy { border-left-color: var(--busy); }
284
+ .card.s-shell { border-left-color: var(--shell); }
285
+ .card.s-waiting { border-left-color: var(--wait); }
286
+ .card.flash { animation: flash 1.1s ease-out 2; }
287
+ @keyframes flash {
288
+ from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
289
+ to { box-shadow: 0 0 0 12px transparent; }
290
+ }
291
+ @media (prefers-reduced-motion: reduce) { .card.flash { animation: none; outline: 2px solid var(--accent); } }
292
+
293
+ .card-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
294
+ .card-head .spacer { flex: 1; }
295
+ .proc { color: var(--faint); font-family: var(--mono); font-size: 11.5px; }
296
+ /* Which app a session is: Claude's clay, and Codex in plain ink, so neither
297
+ reads as a status. */
298
+ .app {
299
+ flex: none;
300
+ padding: 0 6px;
301
+ border: 1px solid var(--border);
302
+ border-radius: 4px;
303
+ font-size: 11px;
304
+ font-weight: 600;
305
+ line-height: 17px;
306
+ }
307
+ .app-claude { color: light-dark(#a8502b, #e3916b); border-color: light-dark(#ecd3c6, #4a3127); }
308
+ .app-codex { color: var(--text); background: var(--panel-2); }
309
+ .app-copilot { color: light-dark(#2f5fb3, #8fb3f0); border-color: light-dark(#d3def2, #2c3a55); }
310
+ .app-cursor { color: light-dark(#26251e, #edecec); border-color: light-dark(#d8d6cf, #3d3c38); }
311
+ .app-opencode { color: light-dark(#4a4a52, #c9c9d1); border-color: light-dark(#d6d6dc, #3c3c44); }
312
+
313
+ .badge {
314
+ display: inline-flex;
315
+ align-items: center;
316
+ gap: 6px;
317
+ padding: 2px 9px 2px 8px;
318
+ border-radius: 999px;
319
+ font-weight: 600;
320
+ font-size: 12px;
321
+ color: var(--idle);
322
+ background: var(--idle-bg);
323
+ }
324
+ .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
325
+ .badge.s-busy { color: var(--busy); background: var(--busy-bg); }
326
+ .badge.s-shell { color: var(--shell); background: var(--shell-bg); }
327
+ .badge.s-waiting { color: var(--wait); background: var(--wait-bg); }
328
+ .badge.s-busy .dot, .badge.s-waiting .dot { animation: pulse 1.6s ease-in-out infinite; }
329
+ .since { color: var(--muted); font-variant-numeric: tabular-nums; }
330
+
331
+ @keyframes pulse { 50% { opacity: 0.3; } }
332
+ @media (prefers-reduced-motion: reduce) { .badge .dot { animation: none !important; } }
333
+
334
+ .name { margin: 9px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
335
+ .name-link {
336
+ padding: 0;
337
+ border: 0;
338
+ background: none;
339
+ font: inherit;
340
+ letter-spacing: inherit;
341
+ text-align: left;
342
+ cursor: pointer;
343
+ }
344
+ .name-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
345
+ .name-link:disabled { cursor: progress; opacity: 0.6; }
346
+ .title { margin: 1px 0 0; color: var(--muted); }
347
+ .where {
348
+ margin: 6px 0 0;
349
+ display: flex;
350
+ flex-wrap: wrap;
351
+ gap: 4px 10px;
352
+ align-items: center;
353
+ font-size: 12px;
354
+ color: var(--faint);
355
+ }
356
+ .path { font-family: var(--mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
357
+ .tag {
358
+ padding: 0 6px;
359
+ border: 1px solid var(--border);
360
+ border-radius: 4px;
361
+ font-size: 11px;
362
+ color: var(--muted);
363
+ }
364
+
365
+ /* Activity */
366
+
367
+ .activity { margin-top: 12px; display: grid; gap: 8px; }
368
+
369
+ .now {
370
+ display: grid;
371
+ gap: 4px;
372
+ padding: 8px 10px;
373
+ border-radius: 7px;
374
+ background: var(--panel-2);
375
+ border: 1px solid var(--border);
376
+ }
377
+ .now.waiting { background: var(--wait-bg); border-color: color-mix(in srgb, var(--wait) 35%, transparent); }
378
+ .now-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
379
+ .now-row .what { font-weight: 600; white-space: nowrap; }
380
+ .now-row .detail {
381
+ flex: 1;
382
+ min-width: 0;
383
+ color: var(--muted);
384
+ font-family: var(--mono);
385
+ font-size: 12px;
386
+ white-space: nowrap;
387
+ overflow: hidden;
388
+ text-overflow: ellipsis;
389
+ }
390
+ .now-row .since { font-size: 12px; }
391
+ .now.waiting .what { color: var(--wait); }
392
+
393
+ .msg { margin: 0; min-width: 0; }
394
+ .msg .label {
395
+ display: block;
396
+ font-size: 11px;
397
+ font-weight: 600;
398
+ text-transform: uppercase;
399
+ letter-spacing: 0.04em;
400
+ color: var(--faint);
401
+ margin-bottom: 1px;
402
+ }
403
+ .msg .label .since { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--faint); }
404
+ .msg .text {
405
+ margin: 0;
406
+ display: -webkit-box;
407
+ -webkit-box-orient: vertical;
408
+ -webkit-line-clamp: 2;
409
+ line-clamp: 2;
410
+ overflow: hidden;
411
+ overflow-wrap: anywhere;
412
+ cursor: pointer;
413
+ }
414
+ .msg.expanded .text { -webkit-line-clamp: unset; line-clamp: unset; }
415
+ .msg.prompt .text { color: var(--muted); }
416
+ /* A to-do's notes, with their line breaks. */
417
+ .msg.todo-text .text { white-space: pre-wrap; }
418
+
419
+ /* To-dos: their own cards, dashed, until a session starts; then a note on
420
+ the session's card. */
421
+ .card.todo-card { border-style: dashed; border-left: 3px solid var(--accent); }
422
+ .badge.s-todo { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
423
+ .badge.s-todo.starting .dot { animation: pulse 1.6s ease-in-out infinite; }
424
+ .no-folder { font-style: italic; }
425
+ .todo-msg { padding: 7px 10px 8px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 7px; }
426
+ .todo-msg-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
427
+ .todo-msg .label { flex: none; margin: 0; color: var(--accent); }
428
+ .todo-msg-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
429
+ .todo-msg .text { margin-top: 2px; color: var(--muted); }
430
+ .link-btn { flex: none; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; cursor: pointer; }
431
+ .link-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
432
+
433
+ /* Stats */
434
+
435
+ .stats {
436
+ margin-top: 12px;
437
+ display: flex;
438
+ flex-wrap: wrap;
439
+ align-items: center;
440
+ gap: 4px 14px;
441
+ font-size: 12px;
442
+ color: var(--muted);
443
+ font-variant-numeric: tabular-nums;
444
+ }
445
+ .stats .model { color: var(--text); font-weight: 600; }
446
+ .ctx { display: inline-flex; align-items: center; gap: 7px; }
447
+ .bar { width: 74px; height: 6px; border-radius: 3px; background: var(--bar); overflow: hidden; }
448
+ .bar i { display: block; height: 100%; background: var(--busy); border-radius: 3px; }
449
+ .bar.mid i { background: var(--wait); }
450
+ .bar.high i { background: var(--danger); }
451
+
452
+ /* Subagents */
453
+
454
+ .subs { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
455
+ .subs summary {
456
+ cursor: pointer;
457
+ font-size: 12px;
458
+ font-weight: 600;
459
+ color: var(--muted);
460
+ list-style-position: inside;
461
+ }
462
+ .subs ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
463
+ .sub { display: grid; grid-template-columns: 12px auto 1fr auto; align-items: baseline; gap: 2px 7px; font-size: 12.5px; }
464
+ .sub .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--busy); align-self: center; }
465
+ .sub.done .dot { background: var(--faint); }
466
+ .sub.stopped .dot { background: var(--danger); }
467
+ .sub .type { font-weight: 600; white-space: nowrap; }
468
+ .sub .desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
469
+ .sub .tool {
470
+ grid-column: 2 / -1;
471
+ font-family: var(--mono);
472
+ font-size: 11.5px;
473
+ color: var(--faint);
474
+ overflow: hidden;
475
+ text-overflow: ellipsis;
476
+ white-space: nowrap;
477
+ }
478
+ .sub.done, .sub.stopped { color: var(--muted); }
479
+ .subs .more { font-size: 12px; color: var(--faint); margin: 2px 0 0 19px; }
480
+
481
+ /* PRs + actions */
482
+
483
+ .prs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
484
+ .prs a { text-decoration: none; padding: 1px 7px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); }
485
+ .prs a:hover { border-color: var(--accent); }
486
+
487
+ /* Tickets: a chip each, with a dot in its status group's colour */
488
+
489
+ .tickets { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
490
+ .ticket { display: inline-flex; align-items: center; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); max-width: 100%; }
491
+ .ticket > a, .ticket > span { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; color: inherit; text-decoration: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
492
+ .ticket:hover { border-color: var(--accent); }
493
+ .ticket-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--idle); }
494
+ .t-progress .ticket-dot { background: var(--accent); }
495
+ .t-done .ticket-dot { background: var(--busy); }
496
+ .t-closed .ticket-dot { background: var(--muted); }
497
+ .t-done > a, .t-closed > a { color: var(--muted); }
498
+ .ticket-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 6px 0 0; font-size: 11px; line-height: 1; }
499
+ .ticket-x:hover { color: var(--danger); }
500
+ button.ticket-add { cursor: pointer; padding: 1px 7px; color: var(--muted); border-style: dashed; font: inherit; }
501
+ button.ticket-add:hover { color: var(--accent); }
502
+ .ticket-for { font-weight: 600; margin: 0 0 8px; }
503
+
504
+ /* Complete's dialog, for a session with tickets: each ticket's comment and move */
505
+
506
+ #complete-dialog { width: min(600px, calc(100vw - 32px)); }
507
+ #complete-dialog form { padding: 16px 20px 18px; }
508
+ .complete-ticket { border-top: 1px solid var(--border); padding: 12px 0; display: grid; gap: 8px; }
509
+ .complete-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
510
+ .complete-title .complete-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
511
+ .complete-note { color: var(--muted); font-size: 12.5px; }
512
+ .complete-ticket .checks { align-items: center; }
513
+ .complete-ticket .field { margin: 0; }
514
+ .complete-ticket textarea { min-height: 90px; }
515
+ .complete-ticket textarea:disabled { opacity: 0.6; }
516
+ .complete-ticket select { padding: 3px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 12.5px; }
517
+ .complete-ticket .settings-help { margin: 0; }
518
+ .complete-problem { margin: 0; color: var(--danger); font-size: 12.5px; }
519
+ .check:has(input:disabled) { opacity: 0.55; cursor: default; }
520
+
521
+ .actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
522
+ .btn {
523
+ padding: 5px 11px;
524
+ border: 1px solid var(--border);
525
+ border-radius: 7px;
526
+ background: var(--panel);
527
+ cursor: pointer;
528
+ font-size: 12.5px;
529
+ }
530
+ .btn:hover { background: var(--panel-2); border-color: var(--faint); }
531
+ .btn:disabled { opacity: 0.5; cursor: progress; }
532
+ .actions .btn-stop { margin-left: auto; }
533
+ /* A session's Complete and Stop, which both end it, at the right together. */
534
+ .actions .actions-end { display: flex; gap: inherit; margin-left: auto; }
535
+ .actions .actions-end .btn-stop { margin-left: 0; }
536
+ .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
537
+ .btn-primary:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.08); }
538
+ .btn-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 600; }
539
+ .btn-accent:hover { border-color: var(--accent); }
540
+ .btn-accent:disabled { cursor: not-allowed; }
541
+ /* Stop, Delete and the like are red. Asking for a second click adds
542
+ btn-danger, which comes after so its white text wins. */
543
+ .btn-stop { color: var(--danger); }
544
+ .btn-stop:hover { border-color: var(--danger); }
545
+ .btn-danger { background: var(--danger-fill); border-color: var(--danger-fill); color: #fff; }
546
+ .btn-danger:hover { background: var(--danger-fill); filter: brightness(1.08); border-color: var(--danger-fill); }
547
+
548
+ button:focus-visible, a:focus-visible, summary:focus-visible, .msg .text:focus-visible {
549
+ outline: 2px solid var(--accent);
550
+ outline-offset: 2px;
551
+ }
552
+
553
+ /* Repo menu */
554
+
555
+ .icon-btn {
556
+ display: inline-grid;
557
+ place-items: center;
558
+ flex: none;
559
+ width: 32px;
560
+ height: 32px;
561
+ padding: 0;
562
+ border: 1px solid var(--border);
563
+ border-radius: 8px;
564
+ background: var(--panel);
565
+ color: var(--muted);
566
+ cursor: pointer;
567
+ font-size: 15px;
568
+ line-height: 1;
569
+ }
570
+ .icon-btn:hover { background: var(--panel-2); color: var(--text); }
571
+
572
+ .burger, .burger::before, .burger::after {
573
+ display: block;
574
+ width: 16px;
575
+ height: 2px;
576
+ border-radius: 1px;
577
+ background: currentColor;
578
+ }
579
+ .burger { position: relative; }
580
+ .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
581
+ .burger::before { top: -5px; }
582
+ .burger::after { top: 5px; }
583
+ .menu-button { color: var(--text); margin-right: -6px; }
584
+
585
+ .drawer {
586
+ margin: 0;
587
+ inset: 0 auto 0 0;
588
+ width: min(400px, 92vw);
589
+ height: 100dvh;
590
+ max-width: 100vw;
591
+ max-height: 100dvh;
592
+ padding: 0;
593
+ border: 0;
594
+ border-right: 1px solid var(--border);
595
+ background: var(--panel);
596
+ color: var(--text);
597
+ box-shadow: 4px 0 24px rgb(0 0 0 / 0.18);
598
+ }
599
+ .drawer[open] { display: flex; flex-direction: column; animation: drawer-in 0.16s ease-out; }
600
+ .drawer::backdrop { background: rgb(0 0 0 / 0.35); }
601
+ @keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } }
602
+ .drawer-right {
603
+ inset: 0 0 0 auto;
604
+ width: min(460px, 92vw);
605
+ border-right: 0;
606
+ border-left: 1px solid var(--border);
607
+ box-shadow: -4px 0 24px rgb(0 0 0 / 0.18);
608
+ }
609
+ .drawer-right[open] { animation-name: drawer-in-right; }
610
+ @keyframes drawer-in-right { from { transform: translateX(24px); opacity: 0; } }
611
+ @media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
612
+
613
+ .drawer-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px; }
614
+ .drawer-titles { flex: 1; min-width: 0; }
615
+ .drawer-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
616
+ .drawer-sub { margin: 2px 0 0; color: var(--faint); font-size: 12px; font-family: var(--mono); }
617
+ .drawer-search { padding: 0 16px 8px; }
618
+ .drawer-search input,
619
+ .excluded-search input {
620
+ width: 100%;
621
+ padding: 7px 10px;
622
+ border: 1px solid var(--border);
623
+ border-radius: 8px;
624
+ background: var(--panel-2);
625
+ color: var(--text);
626
+ font: inherit;
627
+ }
628
+ .drawer-search input:focus,
629
+ .excluded-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
630
+ .drawer-foot {
631
+ margin: 0;
632
+ padding: 10px 16px 14px;
633
+ border-top: 1px solid var(--border);
634
+ color: var(--faint);
635
+ font-size: 12px;
636
+ }
637
+
638
+ .tree { flex: 1; overflow: auto; padding: 2px 8px 12px; }
639
+ .tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
640
+ .tree > ul { padding-left: 0; }
641
+ .tree summary {
642
+ display: flex;
643
+ align-items: center;
644
+ gap: 6px;
645
+ padding: 4px 8px;
646
+ border-radius: 6px;
647
+ list-style: none;
648
+ cursor: pointer;
649
+ color: var(--muted);
650
+ font-weight: 600;
651
+ }
652
+ .tree summary::-webkit-details-marker { display: none; }
653
+ .tree summary:hover { background: var(--panel-2); color: var(--text); }
654
+ .chev {
655
+ flex: none;
656
+ width: 6px;
657
+ height: 6px;
658
+ margin: 0 3px 0 1px;
659
+ border-right: 1.5px solid currentColor;
660
+ border-bottom: 1.5px solid currentColor;
661
+ transform: rotate(-45deg);
662
+ transition: transform 0.12s;
663
+ }
664
+ .tree details[open] > summary .chev { transform: rotate(45deg); }
665
+ .folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
666
+ .folder-count { color: var(--faint); font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
667
+
668
+ .repo {
669
+ display: flex;
670
+ align-items: center;
671
+ gap: 8px;
672
+ width: 100%;
673
+ padding: 4px 8px 4px 22px;
674
+ border: 0;
675
+ border-radius: 6px;
676
+ background: none;
677
+ text-align: left;
678
+ cursor: pointer;
679
+ }
680
+ .repo:hover { background: var(--panel-2); }
681
+ .repo:hover .repo-name { color: var(--accent); }
682
+ .repo:disabled { opacity: 0.5; cursor: progress; }
683
+ .repo-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
684
+ .repo-live { display: inline-flex; align-items: center; gap: 4px; color: var(--busy); font-size: 12px; font-weight: 600; }
685
+ .repo-live .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
686
+ .tree-empty { margin: 16px 8px; color: var(--faint); }
687
+
688
+ /* History */
689
+
690
+ .history-list { flex: 1; overflow: auto; padding: 0 12px 12px; }
691
+ .history-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
692
+ .history-day {
693
+ margin: 12px 4px 6px;
694
+ font-size: 11px;
695
+ font-weight: 600;
696
+ text-transform: uppercase;
697
+ letter-spacing: 0.04em;
698
+ color: var(--faint);
699
+ }
700
+ .past { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
701
+ .past-head { display: flex; align-items: baseline; gap: 8px; }
702
+ .past-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
703
+ .past-head .since { flex: none; color: var(--faint); font-size: 12px; }
704
+ .past-title { margin: 1px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
705
+ .past .where { margin-top: 4px; }
706
+ .past-prompt {
707
+ display: -webkit-box;
708
+ margin: 6px 0 0;
709
+ overflow: hidden;
710
+ -webkit-line-clamp: 2;
711
+ -webkit-box-orient: vertical;
712
+ color: var(--muted);
713
+ font-size: 12.5px;
714
+ }
715
+ .past-prompt b { font-weight: 600; color: var(--faint); }
716
+ .past-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
717
+ .past-meta { margin-left: auto; color: var(--faint); font-size: 12px; }
718
+
719
+ /* Settings */
720
+
721
+ .settings form { padding: 16px 20px 18px; }
722
+ .settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
723
+ .settings-head h2 { margin: 0; font-size: 16px; font-weight: 650; }
724
+ .settings fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
725
+ .settings fieldset + fieldset { margin-top: 18px; }
726
+ .settings legend {
727
+ padding: 0;
728
+ margin-bottom: 8px;
729
+ font-size: 11px;
730
+ font-weight: 600;
731
+ text-transform: uppercase;
732
+ letter-spacing: 0.04em;
733
+ color: var(--faint);
734
+ }
735
+
736
+ /* Radio buttons drawn as one row of tabs, like the status filters. */
737
+ .segmented {
738
+ display: flex;
739
+ gap: 2px;
740
+ padding: 3px;
741
+ background: var(--panel-2);
742
+ border: 1px solid var(--border);
743
+ border-radius: 9px;
744
+ }
745
+ .segmented label {
746
+ position: relative;
747
+ flex: 1;
748
+ padding: 5px 11px;
749
+ border-radius: 6px;
750
+ text-align: center;
751
+ color: var(--muted);
752
+ cursor: pointer;
753
+ }
754
+ .segmented label:hover { color: var(--text); }
755
+ .segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
756
+ .segmented label:has(input:checked) {
757
+ background: var(--panel);
758
+ color: var(--text);
759
+ box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent);
760
+ }
761
+ .segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
762
+
763
+ .choice {
764
+ display: flex;
765
+ align-items: center;
766
+ gap: 12px;
767
+ padding: 9px 12px;
768
+ border: 1px solid var(--border);
769
+ border-radius: 9px;
770
+ cursor: pointer;
771
+ }
772
+ .choice + .choice { margin-top: 8px; }
773
+ .choice:hover { background: var(--panel-2); }
774
+ .choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
775
+ .choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
776
+ .choice input { flex: none; margin: 0; accent-color: var(--accent); }
777
+ .choice:has(input:disabled) { opacity: 0.55; cursor: default; }
778
+ .choice:has(input:disabled):hover { background: none; }
779
+ .choice-text { display: grid; gap: 1px; min-width: 0; }
780
+ .choice-text b { font-weight: 600; }
781
+ .choice-text em {
782
+ margin-left: 4px;
783
+ padding: 0 6px;
784
+ border: 1px solid var(--border);
785
+ border-radius: 4px;
786
+ font-size: 11px;
787
+ font-style: normal;
788
+ font-weight: 400;
789
+ color: var(--muted);
790
+ }
791
+ .choice-text > span { color: var(--muted); font-size: 12.5px; }
792
+
793
+ /* A tiny picture of the grid each size makes. */
794
+ .size-shape { flex: none; display: flex; align-items: flex-start; gap: 2px; width: 34px; height: 24px; }
795
+ .size-shape i { flex: 1; height: 100%; border-radius: 2px; background: var(--faint); opacity: 0.55; }
796
+ .choice:has(input:checked) .size-shape i { background: var(--accent); opacity: 0.85; }
797
+ .size-shape.fit i:nth-child(2) { height: 55%; }
798
+ .size-shape.fit i:nth-child(3) { height: 80%; }
799
+ .size-shape.small i { height: 55%; }
800
+ .size-shape.medium i { height: 75%; }
801
+ .settings-foot { margin: 12px 0 0; color: var(--faint); font-size: 12px; }
802
+ .settings-help { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
803
+ .field + .settings-help { margin-top: 6px; }
804
+ #todo-from-ticket.problem { color: var(--danger); }
805
+
806
+ /* A labelled text box or list, in Settings and the to-do dialog. */
807
+ .field { display: grid; gap: 4px; margin: 10px 0 0; }
808
+ .field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
809
+ .field input,
810
+ .field select,
811
+ .field textarea {
812
+ width: 100%;
813
+ padding: 7px 10px;
814
+ border: 1px solid var(--border);
815
+ border-radius: 8px;
816
+ background: var(--panel-2);
817
+ color: var(--text);
818
+ font: inherit;
819
+ }
820
+ .field textarea { min-height: 130px; resize: vertical; }
821
+ .field :is(input, select, textarea):focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
822
+
823
+ /* The desktop app's Transparency: a slider and its value. */
824
+ .see-through-row { display: flex; align-items: center; gap: 12px; }
825
+ .field .see-through-row input { flex: 1; width: auto; padding: 0; border: 0; background: none; accent-color: var(--accent); }
826
+ .field .see-through-row input:focus-visible { outline-offset: 2px; }
827
+ .see-through-row output { min-width: 3em; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
828
+
829
+ /* With it on, what's behind the window shows through the page and the
830
+ cards, by --see-through. Cards stay a little more solid than the page, so
831
+ they stand out. Text, buttons and dialogs stay solid. */
832
+ :root.see-through body,
833
+ :root.see-through .top { background: color-mix(in srgb, var(--bg) calc(100% - var(--see-through)), transparent); }
834
+ :root.see-through .card { background: color-mix(in srgb, var(--panel) calc(100% - var(--see-through) * 0.7), transparent); }
835
+
836
+ /* The repo menu's folders as a tree of checkboxes: ticked is shown. */
837
+ .excluded-search { margin-bottom: 6px; }
838
+ .excluded-tree {
839
+ max-height: 300px;
840
+ padding: 4px;
841
+ border: 1px solid var(--border);
842
+ border-radius: 9px;
843
+ }
844
+ .excluded-tree input { flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }
845
+ .excluded-tree input:disabled { cursor: default; }
846
+ .excluded-repo {
847
+ display: flex;
848
+ align-items: center;
849
+ gap: 8px;
850
+ padding: 4px 8px 4px 24px;
851
+ border-radius: 6px;
852
+ cursor: pointer;
853
+ }
854
+ .excluded-repo:hover { background: var(--panel-2); }
855
+ .excluded-tree summary:has(> input:not(:checked)) .folder-name,
856
+ .excluded-repo:has(input:not(:checked)) .repo-name { color: var(--faint); }
857
+ .excluded-tree summary:has(> input:not(:checked):not(:disabled)) .folder-name,
858
+ .excluded-repo:has(input:not(:checked):not(:disabled)) .repo-name { text-decoration: line-through; }
859
+ .excluded-tree .folder-count.some { color: var(--wait); }
860
+
861
+ .excluded {
862
+ list-style: none;
863
+ margin: 0;
864
+ padding: 0;
865
+ max-height: 168px;
866
+ overflow: auto;
867
+ border: 1px solid var(--border);
868
+ border-radius: 9px;
869
+ }
870
+ .excluded li { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 12px; }
871
+ .excluded li + li { border-top: 1px solid var(--border); }
872
+ .excluded-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
873
+ .excluded .icon-btn { width: 26px; height: 26px; border-color: transparent; background: none; font-size: 12px; }
874
+ #excluded-missing { margin-top: 10px; }
875
+
876
+ /* Notification list: a popover under its header button. */
877
+
878
+ .notes {
879
+ position: fixed;
880
+ inset: 60px 16px auto auto;
881
+ width: min(380px, calc(100vw - 32px));
882
+ max-height: calc(100vh - 80px);
883
+ margin: 0;
884
+ padding: 0;
885
+ overflow: auto;
886
+ border: 1px solid var(--border);
887
+ border-radius: 12px;
888
+ background: var(--panel);
889
+ color: var(--text);
890
+ box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
891
+ }
892
+ @supports (anchor-name: --a) {
893
+ .notes-button { anchor-name: --notes-button; }
894
+ .notes {
895
+ position-anchor: --notes-button;
896
+ inset: anchor(bottom) anchor(right) auto auto;
897
+ margin-top: 6px;
898
+ position-try-fallbacks: flip-inline;
899
+ }
900
+ }
901
+ .notes-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 6px; }
902
+ .notes-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
903
+ .notes-list { list-style: none; margin: 0; padding: 0 6px 6px; }
904
+ .note {
905
+ display: grid;
906
+ grid-template-columns: auto minmax(0, 1fr) auto auto;
907
+ align-items: center;
908
+ gap: 10px;
909
+ padding: 7px 8px;
910
+ border-radius: 8px;
911
+ }
912
+ .note:hover { background: var(--panel-2); }
913
+ .note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
914
+ .note.k-needs .dot { background: var(--wait); }
915
+ .note.k-update .dot { background: var(--accent); }
916
+ .note-text { display: grid; min-width: 0; }
917
+ .note-name,
918
+ .note-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
919
+ .note-name { font-weight: 600; }
920
+ .note-what { color: var(--muted); font-size: 12.5px; }
921
+ .note .since { color: var(--faint); font-size: 12px; }
922
+ .note-clear { width: 26px; height: 26px; border-color: transparent; background: none; font-size: 12px; }
923
+ .notes-empty { margin: 2px 14px 14px; color: var(--faint); font-size: 12.5px; }
924
+
925
+ /* Confirm + toast */
926
+
927
+ .confirm,
928
+ .settings {
929
+ width: min(460px, calc(100vw - 32px));
930
+ padding: 20px 22px;
931
+ border: 1px solid var(--border);
932
+ border-radius: 12px;
933
+ background: var(--panel);
934
+ color: var(--text);
935
+ }
936
+ .settings { padding: 0; }
937
+ .confirm::backdrop,
938
+ .settings::backdrop { background: rgb(0 0 0 / 0.4); }
939
+
940
+ /* Filters: the list in Settings, and the editor. */
941
+ .filter-list { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--border); border-radius: 9px; }
942
+ .filter-list:empty { display: none; }
943
+ .filter-row { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 12px; }
944
+ .filter-row + .filter-row { border-top: 1px solid var(--border); }
945
+ .filter-row-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
946
+ .filter-row-text span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
947
+ .filter-row .icon-btn { width: 28px; height: 28px; border-color: transparent; background: none; }
948
+ .filter-row .icon-btn:disabled { opacity: 0.3; cursor: default; }
949
+ .filter-none { padding: 10px 12px; color: var(--faint); font-size: 12.5px; }
950
+ .filter-list-actions { display: flex; flex-wrap: wrap; gap: 8px; }
951
+ #filter-dialog { width: min(520px, calc(100vw - 32px)); }
952
+ #filter-dialog form { padding: 16px 20px 18px; }
953
+
954
+ /* Settings → Tickets: the trackers, and the editor. */
955
+ .tracker-row .btn { padding: 4px 9px; font-size: 12.5px; }
956
+ .filter-row-text .tracker-ok { color: var(--busy); }
957
+ .filter-row-text .tracker-error { color: var(--danger); white-space: normal; }
958
+ .tracker-protection { margin-top: 10px; }
959
+ #tracker-dialog { width: min(520px, calc(100vw - 32px)); }
960
+ #tracker-dialog form { padding: 16px 20px 18px; }
961
+ /* A field the chosen type doesn't use. Without this, .field's grid shows it. */
962
+ #tracker-dialog .field[hidden] { display: none; }
963
+ .tracker-help { margin-top: 10px; }
964
+ .filter-pick { margin-top: 14px !important; }
965
+ .filter-pick legend { margin-bottom: 6px; }
966
+ .checks { display: flex; flex-wrap: wrap; gap: 6px; }
967
+ .check {
968
+ display: inline-flex;
969
+ align-items: center;
970
+ gap: 6px;
971
+ padding: 4px 10px 4px 8px;
972
+ border: 1px solid var(--border);
973
+ border-radius: 999px;
974
+ font-size: 12.5px;
975
+ cursor: pointer;
976
+ }
977
+ .check:hover { background: var(--panel-2); }
978
+ .check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
979
+ .check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
980
+ .check input { margin: 0; accent-color: var(--accent); }
981
+ .check .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--group); }
982
+ .filter-todos { margin-top: 12px; }
983
+ .filter-count { margin: 10px 0 0; }
984
+ #filter-dialog .confirm-actions #filter-delete { margin-right: auto; }
985
+
986
+ /* Settings: a list of sections down the left, and the one picked. */
987
+ /* One height for every section, so the dialog doesn't jump as they change;
988
+ a long one scrolls inside it. */
989
+ #settings { width: min(780px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 48px)); }
990
+ #settings form { display: flex; flex-direction: column; height: 100%; }
991
+ .settings-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; }
992
+ .settings-nav { display: flex; flex-direction: column; gap: 2px; }
993
+ .settings-panels { min-height: 0; overflow-y: auto; padding-right: 4px; }
994
+ .settings-nav button {
995
+ padding: 7px 10px;
996
+ border: 0;
997
+ border-radius: 7px;
998
+ background: none;
999
+ color: var(--muted);
1000
+ text-align: left;
1001
+ cursor: pointer;
1002
+ }
1003
+ .settings-nav button:hover { color: var(--text); background: var(--panel-2); }
1004
+ .settings-nav button[aria-selected="true"] { color: var(--text); background: var(--panel-2); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
1005
+ .settings-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
1006
+ .settings-section[hidden] { display: none; }
1007
+ .settings-section fieldset + fieldset { margin-top: 18px; }
1008
+ @media (max-width: 640px) {
1009
+ .settings-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
1010
+ .settings-nav { flex-direction: row; overflow-x: auto; }
1011
+ .settings-nav button { flex: none; }
1012
+ .settings-nav button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
1013
+ }
1014
+ .confirm h2 { margin: 0 0 8px; font-size: 16px; }
1015
+ .confirm p { margin: 8px 0; color: var(--muted); }
1016
+ .confirm pre {
1017
+ margin: 0;
1018
+ padding: 8px 10px;
1019
+ border-radius: 6px;
1020
+ background: var(--panel-2);
1021
+ border: 1px solid var(--border);
1022
+ white-space: pre-wrap;
1023
+ word-break: break-all;
1024
+ }
1025
+ .confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
1026
+
1027
+ /* A popover, so the browser's popover box styles are undone. */
1028
+ .toast {
1029
+ position: fixed;
1030
+ inset: auto auto 22px 50%;
1031
+ margin: 0;
1032
+ border: 0;
1033
+ overflow: visible;
1034
+ transform: translate(-50%, 20px);
1035
+ padding: 8px 14px;
1036
+ border-radius: 8px;
1037
+ background: var(--text);
1038
+ color: var(--bg);
1039
+ font-size: 13px;
1040
+ opacity: 0;
1041
+ pointer-events: none;
1042
+ transition: opacity 0.18s, transform 0.18s;
1043
+ }
1044
+ .toast.show { opacity: 1; transform: translate(-50%, 0); }
1045
+ /* Fades in from hidden each time it's opened. */
1046
+ @starting-style { .toast.show { opacity: 0; transform: translate(-50%, 20px); } }
1047
+ .toast.error { background: var(--danger-fill); color: #fff; }
1048
+
1049
+ @media (max-width: 640px) {
1050
+ .top { padding: 12px 16px; }
1051
+ :root[data-title-bar="buttons"] .top { padding-right: calc(16px + 3 * 46px); }
1052
+ :root[data-title-bar="inset"] .top { padding-left: 80px; }
1053
+ main { padding: 16px 16px 40px; }
1054
+ .history-button { margin-left: 0; }
1055
+ }
1056
+
1057
+ /* Groups. Each colour is set for light and dark, and kept apart from the
1058
+ status colours: the left edge of a card is its status, and its group is a
1059
+ line along the top and a named chip. */
1060
+
1061
+ .g-rose { --group: light-dark(#c2255c, #f06595); }
1062
+ .g-orange { --group: light-dark(#c4510f, #ff8c4a); }
1063
+ .g-olive { --group: light-dark(#6f7d0e, #b8c94a); }
1064
+ .g-teal { --group: light-dark(#0b7f7a, #3cc7bf); }
1065
+ .g-indigo { --group: light-dark(#4446c8, #8b8ef7); }
1066
+ .g-plum { --group: light-dark(#9c2f9c, #e07ae0); }
1067
+ .g-brown { --group: light-dark(#8b5a2b, #c99a6b); }
1068
+ .g-slate { --group: light-dark(#4f6475, #9fb4c4); }
1069
+
1070
+ .card.grouped { box-shadow: inset 0 3px 0 var(--group), var(--shadow); }
1071
+
1072
+ .group-chip {
1073
+ flex: 0 1 auto;
1074
+ display: inline-flex;
1075
+ align-items: center;
1076
+ gap: 5px;
1077
+ min-width: 0;
1078
+ max-width: 45%;
1079
+ padding: 0 8px;
1080
+ border: 1px solid color-mix(in srgb, var(--group) 35%, transparent);
1081
+ border-radius: 999px;
1082
+ background: color-mix(in srgb, var(--group) 11%, var(--panel));
1083
+ color: var(--group);
1084
+ font-size: 11.5px;
1085
+ font-weight: 600;
1086
+ line-height: 18px;
1087
+ white-space: nowrap;
1088
+ overflow: hidden;
1089
+ text-overflow: ellipsis;
1090
+ cursor: pointer;
1091
+ }
1092
+ .group-chip .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
1093
+ .group-chip:hover { border-color: var(--group); }
1094
+ .group-chip.static { cursor: default; }
1095
+ .group-chip.none { --group: var(--faint); background: none; border-style: dashed; }
1096
+ .group-chip.none .dot { background: none; border: 1px solid currentColor; }
1097
+ /* Out of the way until the card is pointed at or reached by keyboard. */
1098
+ .card:not(:hover, :focus-within) .group-chip.none { visibility: hidden; }
1099
+
1100
+ .view-filters { display: flex; gap: 6px; }
1101
+ .view-select {
1102
+ height: 30px;
1103
+ padding: 0 4px;
1104
+ border: 1px solid var(--border);
1105
+ border-radius: 8px;
1106
+ background: var(--panel);
1107
+ color: var(--text);
1108
+ font: inherit;
1109
+ font-size: 12.5px;
1110
+ cursor: pointer;
1111
+ }
1112
+ .view-select.chosen { border-color: var(--group); box-shadow: inset 3px 0 0 var(--group); }
1113
+ .view-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1114
+
1115
+ .section-head {
1116
+ grid-column: 1 / -1;
1117
+ display: flex;
1118
+ align-items: center;
1119
+ gap: 8px;
1120
+ margin: 6px 0 -4px;
1121
+ font-size: 13px;
1122
+ font-weight: 650;
1123
+ color: var(--group, var(--muted));
1124
+ }
1125
+ .section-head:first-child { margin-top: 0; }
1126
+ .section-toggle {
1127
+ display: inline-flex;
1128
+ align-items: center;
1129
+ gap: 8px;
1130
+ margin: -3px 0 -3px -6px;
1131
+ padding: 3px 8px 3px 6px;
1132
+ border: 0;
1133
+ border-radius: 6px;
1134
+ background: none;
1135
+ color: inherit;
1136
+ font: inherit;
1137
+ cursor: pointer;
1138
+ }
1139
+ .section-toggle:hover { background: var(--panel-2); }
1140
+ .section-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
1141
+ .section-toggle[aria-expanded='true'] .chev { transform: rotate(45deg); }
1142
+ .section-head > .section-toggle > .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
1143
+ .section-head.none > .section-toggle > .dot { background: none; border: 1.5px solid currentColor; }
1144
+ .section-head b { font-weight: 600; color: var(--faint); }
1145
+ .section-head .badge { font-size: 12px; }
1146
+
1147
+ /* The memory and models card, across the top of the grid. Whatever the card
1148
+ size, it's as tall as what it shows, so it shrinks when its models close. */
1149
+ .memory-card { grid-column: 1 / -1; border-left-color: var(--accent); }
1150
+ .list.uniform .memory-card { height: auto; }
1151
+ /* Kept in view: it stops under the header, and the gap above it is filled
1152
+ so the cards scrolling past don't show through. A long list of models
1153
+ scrolls inside it, so it never takes most of the window. */
1154
+ .list.memory-float .memory-card {
1155
+ position: sticky;
1156
+ top: calc(var(--top-height, 64px) + 12px);
1157
+ z-index: 4;
1158
+ box-shadow: var(--shadow), 0 10px 18px -12px var(--scroll-shadow);
1159
+ }
1160
+ .list.memory-float .memory-card::before {
1161
+ content: '';
1162
+ position: absolute;
1163
+ left: -3px;
1164
+ right: -1px;
1165
+ bottom: calc(100% + 1px);
1166
+ height: 14px;
1167
+ background: var(--bg);
1168
+ }
1169
+ /* In the desktop app the cards scroll below the header, not under it. */
1170
+ :root[data-title-bar] .list.memory-float .memory-card { top: 12px; }
1171
+ .list.memory-float .mem-models { max-height: 30dvh; overflow-y: auto; }
1172
+ /* In the desktop app's Transparency, it stays solid, so the cards passing
1173
+ under it don't show through, and the gap above it is like the header. */
1174
+ :root.see-through .list.memory-float .memory-card { background: var(--panel); }
1175
+ :root.see-through .list.memory-float .memory-card::before {
1176
+ background: color-mix(in srgb, var(--bg) calc(100% - var(--see-through)), transparent);
1177
+ backdrop-filter: blur(8px);
1178
+ }
1179
+ .mem-title { margin: 0; font-size: 14px; font-weight: 650; }
1180
+ .mem-bars { display: grid; gap: 6px; margin-top: 10px; }
1181
+ .mem-row { display: grid; grid-template-columns: minmax(80px, 220px) minmax(120px, 420px) auto; align-items: center; gap: 12px; font-size: 12.5px; }
1182
+ .mem-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1183
+ .mem-row .bar { display: block; width: auto; height: 8px; border-radius: 4px; background: var(--bar); overflow: hidden; }
1184
+ .mem-row .bar i { display: block; height: 100%; background: var(--busy); border-radius: 4px; transition: width 0.4s; }
1185
+ .mem-row .bar.mid i { background: var(--wait); }
1186
+ .mem-row .bar.high i { background: var(--danger); }
1187
+ .mem-figure { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
1188
+ /* The models, under a line with how many and what they take, which opens and
1189
+ closes the list. */
1190
+ .mem-models-box { margin-top: 12px; border-top: 1px solid var(--border); }
1191
+ .mem-models-box > summary {
1192
+ display: flex;
1193
+ align-items: center;
1194
+ gap: 6px;
1195
+ width: fit-content;
1196
+ padding: 8px 0 4px;
1197
+ list-style: none;
1198
+ cursor: pointer;
1199
+ color: var(--muted);
1200
+ font-size: 12.5px;
1201
+ font-weight: 600;
1202
+ font-variant-numeric: tabular-nums;
1203
+ }
1204
+ .mem-models-box > summary::-webkit-details-marker { display: none; }
1205
+ .mem-models-box > summary:hover { color: var(--text); }
1206
+ .mem-models-box[open] > summary .chev { transform: rotate(45deg); }
1207
+ /* In columns, so each model's name, facts and memory line up with the
1208
+ others'. */
1209
+ .mem-models {
1210
+ display: grid;
1211
+ grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr) auto auto;
1212
+ column-gap: 10px;
1213
+ list-style: none;
1214
+ margin: 0;
1215
+ padding: 0;
1216
+ }
1217
+ .mem-model { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; padding: 7px 0; font-size: 13px; }
1218
+ .mem-model + .mem-model { border-top: 1px solid var(--border); }
1219
+ .mem-model .app { flex: none; }
1220
+ .mem-model-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1221
+ .mem-model-facts { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1222
+ .mem-model-size { text-align: right; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
1223
+ .mem-model .btn { flex: none; }
1224
+ .mem-none { margin: 10px 0 0; color: var(--faint); font-size: 12.5px; }
1225
+ @media (max-width: 640px) {
1226
+ .mem-row { grid-template-columns: 1fr auto; }
1227
+ .mem-row .bar { grid-column: 1 / -1; grid-row: 2; }
1228
+ .mem-models { display: block; }
1229
+ .mem-model { display: flex; flex-wrap: wrap; gap: 10px; }
1230
+ .mem-model-size { margin-left: auto; }
1231
+ .mem-model-facts { flex-basis: 100%; order: 3; }
1232
+ }
1233
+
1234
+ /* The menu under a card's group chip. */
1235
+ .menu {
1236
+ position: fixed;
1237
+ inset: auto;
1238
+ width: 260px;
1239
+ margin: 0;
1240
+ padding: 5px;
1241
+ border: 1px solid var(--border);
1242
+ border-radius: 10px;
1243
+ background: var(--panel);
1244
+ color: var(--text);
1245
+ box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
1246
+ }
1247
+ .menu hr { margin: 5px 2px; border: 0; border-top: 1px solid var(--border); }
1248
+ .menu-item {
1249
+ display: flex;
1250
+ align-items: center;
1251
+ gap: 8px;
1252
+ width: 100%;
1253
+ padding: 6px 8px;
1254
+ border: 0;
1255
+ border-radius: 6px;
1256
+ background: none;
1257
+ text-align: left;
1258
+ cursor: pointer;
1259
+ }
1260
+ .menu-item:hover, .menu-item:focus-visible { background: var(--panel-2); outline: none; }
1261
+ .menu-item[aria-checked="true"] { font-weight: 650; }
1262
+ .menu-item[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); }
1263
+ .menu-item .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--group); }
1264
+ .menu-item .dot.none { background: none; border: 1.5px solid var(--faint); }
1265
+ .menu-new { display: grid; gap: 5px; padding: 4px 8px 6px; }
1266
+ .menu-new label { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1267
+ .menu-new-row { display: flex; gap: 6px; }
1268
+ .menu-new input {
1269
+ flex: 1;
1270
+ min-width: 0;
1271
+ padding: 4px 8px;
1272
+ border: 1px solid var(--border);
1273
+ border-radius: 7px;
1274
+ background: var(--panel-2);
1275
+ color: var(--text);
1276
+ font: inherit;
1277
+ }
1278
+ .menu-new input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
1279
+
1280
+ /* The repo menu marks a group's folders with its colour. */
1281
+ .group-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--group); }
1282
+
1283
+ /* Groups in Settings. */
1284
+ .group-editor { display: grid; gap: 10px; margin-bottom: 10px; }
1285
+ .group-editor:empty { display: none; }
1286
+ .group-row {
1287
+ display: grid;
1288
+ gap: 8px;
1289
+ padding: 10px 12px;
1290
+ border: 1px solid var(--border);
1291
+ border-left: 3px solid var(--group);
1292
+ border-radius: 9px;
1293
+ }
1294
+ .group-row-head { display: flex; align-items: center; gap: 8px; }
1295
+ .group-row-head .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--group); }
1296
+ .group-name {
1297
+ flex: 1;
1298
+ min-width: 0;
1299
+ padding: 5px 9px;
1300
+ border: 1px solid var(--border);
1301
+ border-radius: 7px;
1302
+ background: var(--panel-2);
1303
+ color: var(--text);
1304
+ font: inherit;
1305
+ font-weight: 600;
1306
+ }
1307
+ .group-name:focus, .group-add-folder input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
1308
+ .swatches { display: flex; flex-wrap: wrap; gap: 6px; }
1309
+ .swatch {
1310
+ width: 22px;
1311
+ height: 22px;
1312
+ padding: 0;
1313
+ border: 2px solid var(--panel);
1314
+ border-radius: 50%;
1315
+ background: var(--group);
1316
+ box-shadow: 0 0 0 1px var(--border);
1317
+ cursor: pointer;
1318
+ }
1319
+ .swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--group); }
1320
+ .swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
1321
+ .group-folders { margin: 0; }
1322
+ .group-add-folder { display: flex; gap: 6px; }
1323
+ .group-add-folder input {
1324
+ flex: 1;
1325
+ min-width: 0;
1326
+ padding: 5px 9px;
1327
+ border: 1px solid var(--border);
1328
+ border-radius: 7px;
1329
+ background: var(--panel-2);
1330
+ color: var(--text);
1331
+ font: inherit;
1332
+ font-size: 13px;
1333
+ }
1334
+ #group-add { margin-bottom: 6px; }
1335
+
1336
+ /* Claude or Codex for new sessions, in the repo menu and Settings. */
1337
+ .repos-app { margin-top: 8px; }
1338
+ .drawer-search .repos-app input { padding: 0; border: 0; }
1339
+ #app-setting { margin-bottom: 10px; }
1340
+ #app-setting .settings-help { margin-top: 6px; }
1341
+
1342
+ /* Background runs: claude -p, as scheduled jobs and background reviews use. */
1343
+ .tag.background { color: var(--shell); border-color: color-mix(in srgb, var(--shell) 40%, transparent); }
1344
+ .tag.complete { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
1345
+ .history-background { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
1346
+ .history-background input { margin: 0; accent-color: var(--accent); }
1347
+ .drawer-search .history-background input { width: auto; padding: 0; }
1348
+
1349
+ /* Other apps' cards: ComfyUI's jobs and LocalAI's models, downloads and chats. */
1350
+ .app-comfy { color: light-dark(#7a3fb0, #c49af0); border-color: light-dark(#e3d3f2, #3e2d52); }
1351
+ .app-localai { color: light-dark(#0f766e, #5fd0c3); border-color: light-dark(#cdeae6, #1e4440); }
1352
+ .app-ollama { color: light-dark(#3d3d3d, #d6d6d6); border-color: light-dark(#dcdcdc, #3f3f3f); }
1353
+ .app-lmstudio { color: light-dark(#5b4bc4, #a99cf2); border-color: light-dark(#dcd7f5, #352f59); }
1354
+ .app-llamacpp { color: light-dark(#8a5a00, #f0b45a); border-color: light-dark(#ecdcbf, #4a3a20); }
1355
+ .badge.s-queued { color: var(--muted); background: var(--idle-bg); }
1356
+ .card.s-queued { border-left-color: var(--faint); }
1357
+ .progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
1358
+ .progress .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bar); overflow: hidden; }
1359
+ .progress .bar i { display: block; height: 100%; background: var(--busy); border-radius: 3px; transition: width 0.4s; }
1360
+ .preview { display: block; max-width: 100%; max-height: 180px; margin-top: 10px; border-radius: 6px; background: var(--panel-2); object-fit: contain; }
1361
+ .note-preview { display: block; max-width: 100%; max-height: 120px; margin-top: 6px; border-radius: 5px; background: var(--panel-2); object-fit: contain; }
1362
+ .facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 10px 0 0; font-size: 12.5px; }
1363
+ .facts dt { color: var(--muted); }
1364
+ .facts dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1365
+ a.btn { display: inline-flex; align-items: center; text-decoration: none; }
1366
+
1367
+ /* Save and close all. */
1368
+ .save-close-list { list-style: none; margin: 8px 0; padding: 0; max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
1369
+ .save-close-list li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; font-size: 13px; }
1370
+ .save-close-list li + li { border-top: 1px solid var(--border); }
1371
+ .save-close-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1372
+ .save-close-list .badge { flex: none; font-size: 11.5px; }
1373
+ .save-close-busy { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; border: 0; font-size: 13px; }
1374
+ .save-close-busy legend { padding: 0; margin-bottom: 4px; font-weight: 600; color: var(--text); }
1375
+ .save-close-busy[hidden] { display: none; }
1376
+ .save-close-busy input { accent-color: var(--accent); }
1377
+ .save-close-left { font-size: 12.5px; }
1378
+ .menu-item:disabled { color: var(--faint); cursor: default; background: none; }
1379
+ .menu-meta { margin-left: auto; color: var(--faint); font-size: 12px; }
1380
+ .menu-note { margin: 4px 8px 2px; font-size: 12px; color: var(--muted); }
1381
+ .tag.closing { cursor: pointer; color: var(--wait); border-color: color-mix(in srgb, var(--wait) 45%, transparent); background: none; font: inherit; font-size: 11px; }
1382
+
1383
+ /* The first-run tour: the whole screen, dimmed but for what each step is
1384
+ about, with a panel beside it. */
1385
+ .tour {
1386
+ position: fixed;
1387
+ inset: 0;
1388
+ width: 100vw;
1389
+ height: 100dvh;
1390
+ max-width: none;
1391
+ max-height: none;
1392
+ margin: 0;
1393
+ padding: 0;
1394
+ border: 0;
1395
+ background: transparent;
1396
+ color: var(--text);
1397
+ overflow: hidden;
1398
+ }
1399
+ .tour::backdrop { background: transparent; }
1400
+ .tour.no-spot { background: rgb(0 0 0 / 0.55); }
1401
+ .tour.no-spot .tour-spot { display: none; }
1402
+ .tour-spot {
1403
+ position: absolute;
1404
+ border-radius: 12px;
1405
+ box-shadow: 0 0 0 200vmax rgb(0 0 0 / 0.55);
1406
+ outline: 2px solid var(--accent);
1407
+ outline-offset: 2px;
1408
+ pointer-events: none;
1409
+ transition: left 0.25s, top 0.25s, width 0.25s, height 0.25s;
1410
+ }
1411
+ .tour-panel {
1412
+ position: absolute;
1413
+ width: min(360px, calc(100vw - 24px));
1414
+ padding: 14px 16px 16px;
1415
+ background: var(--panel);
1416
+ border: 1px solid var(--border);
1417
+ border-radius: 12px;
1418
+ box-shadow: 0 14px 40px rgb(0 0 0 / 0.3);
1419
+ transition: left 0.25s, top 0.25s;
1420
+ }
1421
+ .tour-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
1422
+ .tour-step { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
1423
+ .tour-skip { font-weight: 600; }
1424
+ .tour-panel h2 { margin: 10px 0 6px; font-size: 16px; font-weight: 650; }
1425
+ .tour-panel p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
1426
+ .tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
1427
+ .card.tour-sample { position: relative; }
1428
+ .card.tour-sample::after {
1429
+ content: "Example";
1430
+ position: absolute;
1431
+ top: -9px;
1432
+ right: 14px;
1433
+ padding: 1px 8px;
1434
+ border-radius: 999px;
1435
+ background: var(--accent);
1436
+ color: var(--on-accent);
1437
+ font-size: 11px;
1438
+ font-weight: 650;
1439
+ }
1440
+ @media (prefers-reduced-motion: reduce) {
1441
+ .tour-spot,
1442
+ .tour-panel { transition: none; }
1443
+ }