wisp-agents 0.15.0 → 0.17.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 (122) hide show
  1. package/CHANGELOG.md +55 -1
  2. package/README.md +29 -13
  3. package/bin/wisp.js +3 -2
  4. package/package.json +3 -3
  5. package/server/adapters/antigravity.js +7 -3
  6. package/server/adapters/claude.js +79 -55
  7. package/server/adapters/codex.js +5 -2
  8. package/server/adapters/common.js +14 -34
  9. package/server/adapters/cursor.js +4 -2
  10. package/server/adapters/grok.js +17 -2
  11. package/server/adapters/index.js +25 -2
  12. package/server/adapters/opencode.js +78 -12
  13. package/server/checkpoint.js +12 -68
  14. package/server/client.js +6 -4
  15. package/server/git.js +9 -4
  16. package/server/handoff.js +71 -0
  17. package/server/http/respond.js +59 -0
  18. package/server/http/router.js +64 -0
  19. package/server/http/static.js +36 -0
  20. package/server/index.js +138 -1216
  21. package/server/machines/bootstrap.js +56 -0
  22. package/server/machines/hosts.js +127 -0
  23. package/server/machines.js +7 -179
  24. package/server/mcp-ask.js +113 -8
  25. package/server/mcp-wisp.js +17 -5
  26. package/server/mentions.js +39 -0
  27. package/server/openapi.js +36 -4
  28. package/server/paths.js +32 -0
  29. package/server/preferences.js +2 -6
  30. package/server/proc.js +54 -0
  31. package/server/protocol.js +8 -1
  32. package/server/recipes.js +2 -4
  33. package/server/remote.js +14 -14
  34. package/server/render.js +3 -1
  35. package/server/router.js +7 -3
  36. package/server/routes/auto.js +29 -0
  37. package/server/routes/automations.js +92 -0
  38. package/server/routes/internal.js +176 -0
  39. package/server/routes/machines.js +43 -0
  40. package/server/routes/meta.js +76 -0
  41. package/server/routes/proxy.js +47 -0
  42. package/server/routes/sessions.js +351 -0
  43. package/server/routes/settings.js +144 -0
  44. package/server/routes/ship.js +61 -0
  45. package/server/routes/uploads.js +19 -0
  46. package/server/runner.js +216 -49
  47. package/server/services/auto.js +67 -0
  48. package/server/services/feedback.js +53 -0
  49. package/server/services/install.js +69 -0
  50. package/server/services/launch.js +127 -0
  51. package/server/services/phone.js +65 -0
  52. package/server/services/ship.js +82 -0
  53. package/server/services/telemetry.js +34 -0
  54. package/server/services/uploads.js +59 -0
  55. package/server/services/webhooks.js +28 -0
  56. package/server/store.js +13 -5
  57. package/server/subagents.js +5 -4
  58. package/server/telemetry.js +1 -1
  59. package/server/terminal.js +2 -1
  60. package/server/triggers.js +5 -7
  61. package/server/update.js +4 -3
  62. package/server/usage.js +94 -0
  63. package/server/util.js +42 -0
  64. package/server/welcome.js +3 -3
  65. package/web/css/auto.css +29 -0
  66. package/web/css/automations.css +71 -0
  67. package/web/css/base.css +83 -0
  68. package/web/css/blocks.css +461 -0
  69. package/web/css/composer.css +84 -0
  70. package/web/css/feed.css +235 -0
  71. package/web/css/launcher.css +204 -0
  72. package/web/css/layout.css +61 -0
  73. package/web/css/machines.css +125 -0
  74. package/web/css/modals.css +176 -0
  75. package/web/css/palette.css +79 -0
  76. package/web/css/responsive.css +35 -0
  77. package/web/css/ship.css +95 -0
  78. package/web/css/subagents.css +130 -0
  79. package/web/css/tokens.css +115 -0
  80. package/web/index.html +17 -1
  81. package/web/js/app.js +28 -5237
  82. package/web/js/blocks.js +46 -0
  83. package/web/js/core/api.js +25 -0
  84. package/web/js/core/bus.js +28 -0
  85. package/web/js/core/dom.js +7 -0
  86. package/web/js/core/format.js +27 -0
  87. package/web/js/core/state.js +43 -0
  88. package/web/js/features/actions.js +344 -0
  89. package/web/js/features/attachments.js +115 -0
  90. package/web/js/features/auto.js +54 -0
  91. package/web/js/features/automations.js +305 -0
  92. package/web/js/features/commands.js +123 -0
  93. package/web/js/features/compare.js +105 -0
  94. package/web/js/features/composer.js +315 -0
  95. package/web/js/features/feed.js +400 -0
  96. package/web/js/features/feedback.js +127 -0
  97. package/web/js/features/keys.js +83 -0
  98. package/web/js/features/launcher.js +561 -0
  99. package/web/js/features/live.js +91 -0
  100. package/web/js/features/machines.js +313 -0
  101. package/web/js/features/memory.js +154 -0
  102. package/web/js/features/mentions.js +125 -0
  103. package/web/js/features/notify.js +36 -0
  104. package/web/js/features/phone.js +124 -0
  105. package/web/js/features/places.js +38 -0
  106. package/web/js/features/projects.js +284 -0
  107. package/web/js/features/runner-picker.js +233 -0
  108. package/web/js/features/runners.js +163 -0
  109. package/web/js/features/scroll.js +75 -0
  110. package/web/js/features/settings.js +390 -0
  111. package/web/js/features/setup.js +94 -0
  112. package/web/js/features/ship.js +122 -0
  113. package/web/js/features/team.js +386 -0
  114. package/web/js/features/turns.js +432 -0
  115. package/web/js/features/update.js +48 -0
  116. package/web/js/features/usage.js +75 -0
  117. package/web/js/mention-text.js +59 -0
  118. package/web/js/ui/kbd.js +46 -0
  119. package/web/js/ui/overlay.js +38 -0
  120. package/web/js/ui/popover.js +52 -0
  121. package/web/js/ui/toast.js +23 -0
  122. package/web/css/app.css +0 -1910
package/web/css/app.css DELETED
@@ -1,1910 +0,0 @@
1
- /* wisp — quiet, neutral, out of the way. One accent, hairlines, native type. */
2
-
3
- :root {
4
- --bg: #ffffff;
5
- --bg-2: #f3f3f2;
6
- --rail: #f7f7f6;
7
- --surface: #ffffff;
8
- --surface-2: #f9f9f8;
9
- --ink: #171717;
10
- --ink-2: #3d3d3d;
11
- --muted: #6e6e6e;
12
- --faint: #a3a3a3;
13
- --line: #ebebea;
14
- --line-2: #dcdcda;
15
- --accent: #2f5bea;
16
- --accent-ink: #2149cc;
17
- --accent-soft: rgba(47, 91, 234, 0.08);
18
- --good: #18794e;
19
- --warn: #a35c00;
20
- --bad: #cd2b31;
21
- --info: #2f5bea;
22
- --add: #18794e;
23
- --del: #cd2b31;
24
- --add-bg: rgba(24, 121, 78, 0.07);
25
- --del-bg: rgba(205, 43, 49, 0.06);
26
- --add-strong: rgba(24, 121, 78, 0.14);
27
- --term-bg: #141414;
28
- --term-ink: #e8e8e6;
29
- --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
30
- --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px -12px rgba(0, 0, 0, 0.14);
31
- --radius: 10px;
32
- --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
33
- --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
34
- --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
35
- --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
36
- --tk-k: #cf222e;
37
- --tk-s: #0a3069;
38
- --tk-c: #8c8c8c;
39
- --tk-n: #0550ae;
40
- --tk-t: #8250df;
41
- color-scheme: light;
42
- }
43
-
44
- @media (prefers-color-scheme: dark) {
45
- :root:not([data-theme='light']) {
46
- --bg: #111111;
47
- --bg-2: #1e1e1e;
48
- --rail: #151515;
49
- --surface: #171717;
50
- --surface-2: #1a1a1a;
51
- --ink: #ededed;
52
- --ink-2: #c7c7c7;
53
- --muted: #8f8f8f;
54
- --faint: #5e5e5e;
55
- --line: #262626;
56
- --line-2: #333333;
57
- --accent: #6d8dff;
58
- --accent-ink: #94adff;
59
- --accent-soft: rgba(109, 141, 255, 0.12);
60
- --good: #4cc38a;
61
- --warn: #f0a33a;
62
- --bad: #ff6369;
63
- --info: #6d8dff;
64
- --add: #4cc38a;
65
- --del: #ff6369;
66
- --add-bg: rgba(76, 195, 138, 0.08);
67
- --del-bg: rgba(255, 99, 105, 0.08);
68
- --add-strong: rgba(76, 195, 138, 0.16);
69
- --term-bg: #0c0c0c;
70
- --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
71
- --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
72
- --tk-k: #ff7b72;
73
- --tk-s: #a5d6ff;
74
- --tk-c: #6e7681;
75
- --tk-n: #79c0ff;
76
- --tk-t: #d2a8ff;
77
- color-scheme: dark;
78
- }
79
- }
80
-
81
- /* project colours — muted, distinguishable, never neon */
82
- .c-violet { --pc: #7c6bd6; }
83
- .c-teal { --pc: #2b9a8a; }
84
- .c-amber { --pc: #c9932a; }
85
- .c-rose { --pc: #c9586f; }
86
- .c-sky { --pc: #3f8fd2; }
87
- .c-lime { --pc: #5f9a3a; }
88
- .c-orange { --pc: #d27637; }
89
- .c-indigo { --pc: #5262c9; }
90
- .c-slate { --pc: #8a8a8a; }
91
-
92
- * { box-sizing: border-box; }
93
- html, body { margin: 0; height: 100%; }
94
- body {
95
- background: var(--bg);
96
- color: var(--ink);
97
- font: 14px/1.55 var(--sans);
98
- -webkit-font-smoothing: antialiased;
99
- letter-spacing: -0.003em;
100
- }
101
- button, input, textarea, select { font: inherit; color: inherit; }
102
- button { cursor: pointer; background: none; border: 0; padding: 0; }
103
- a { color: inherit; text-decoration: none; }
104
- code, kbd, pre { font-family: var(--mono); }
105
- kbd {
106
- font-size: 10.5px; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-2);
107
- border-bottom-width: 2px; color: var(--muted); background: var(--surface); line-height: 1.4;
108
- }
109
- .i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
110
- .muted { color: var(--muted); }
111
- .xs { font-size: 12px; }
112
- .grow { flex: 1; }
113
- [hidden] { display: none !important; }
114
- ::selection { background: var(--accent-soft); }
115
-
116
- /* ---------- buttons ---------- */
117
- .primary {
118
- display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 16px;
119
- border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 500;
120
- transition: opacity 0.15s;
121
- }
122
- .primary:hover { opacity: 0.86; }
123
- .primary:disabled { opacity: 0.5; }
124
- .primary kbd { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 35%, transparent); opacity: 0.7; }
125
- .primary.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
126
- .ghost {
127
- display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px;
128
- color: var(--ink-2); transition: background 0.15s, color 0.15s;
129
- }
130
- .ghost:hover { background: var(--bg-2); color: var(--ink); }
131
- .ghost.on { color: var(--good); }
132
- .ghost.sm { height: 28px; font-size: 13px; }
133
- .ghost.xs { height: 24px; padding: 0 6px; border-radius: 7px; }
134
- .ghost.danger:hover { color: var(--bad); background: var(--del-bg); }
135
- .icon-btn {
136
- display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--muted);
137
- transition: background 0.15s, color 0.15s;
138
- }
139
- .icon-btn:hover { background: var(--bg-2); color: var(--ink); }
140
- .link { color: var(--accent-ink); font-weight: 500; }
141
- .link:hover { text-decoration: underline; text-underline-offset: 3px; }
142
- .link.on { color: var(--ink); }
143
- /* ---------- form kit ----------
144
- One look for every standalone control. Use these classes, don't restyle controls per component:
145
- <input class="input"> <textarea class="textarea"> <select> (styled by default)
146
- .mono code-ish values: paths, cron, tokens, commands
147
- .sm / .lg 30px rows in dense panels / the 38px add-project row
148
- .field a box holding an icon / prefix + a bare <input>: <label class="field">icon<input></label>
149
- .check a label wrapping a checkbox and its text
150
- Components set only layout (width, flex) on these; a container already tinted surface-2 sets
151
- --field-bg: var(--surface) so its fields don't melt into it. Prompt boxes (launcher, composer, rerun) and
152
- inline renames (project name, memory edit) are their own, deliberately borderless pattern. */
153
- :is(.input, .textarea, select, .field) {
154
- width: 100%; min-width: 0; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2);
155
- background-color: var(--field-bg, var(--surface-2)); color: var(--ink); font: 13px/1.4 var(--sans); outline: 0;
156
- transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
157
- }
158
- :is(.input, .textarea, select, .field):hover { border-color: color-mix(in srgb, var(--ink) 14%, var(--line-2)); }
159
- :is(.input, .textarea, select):focus, .field:focus-within {
160
- border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft);
161
- }
162
- :is(.input, .textarea, .field input)::placeholder { color: var(--faint); }
163
- :is(.input, .textarea, select):disabled { opacity: 0.55; cursor: not-allowed; }
164
- :is(.input, .textarea, select):is([aria-invalid='true'], :user-invalid) { border-color: var(--bad); }
165
- :is(.input, .textarea, select):is([aria-invalid='true'], :user-invalid):focus { box-shadow: 0 0 0 3px var(--del-bg); }
166
- .textarea { display: block; height: auto; min-height: 64px; padding: 7px 10px; line-height: 1.5; resize: vertical; }
167
- :is(.input, .textarea, .field).mono { font-family: var(--mono); font-size: 12.5px; }
168
- :is(.input, .field).sm { height: 30px; padding: 0 8px; }
169
- :is(.input, .field).lg { height: 38px; padding: 0 12px; border-radius: 11px; }
170
- select:not([multiple]) {
171
- width: auto; padding-right: 28px; appearance: none; cursor: pointer; text-overflow: ellipsis;
172
- background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
173
- background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat;
174
- }
175
- .field { display: flex; align-items: center; gap: 8px; color: var(--muted); }
176
- .field .i { width: 14px; height: 14px; flex: none; }
177
- .field > input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
178
- input[type='checkbox'] { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
179
- .check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
180
-
181
- /* ---------- the mark ---------- */
182
- /* A plain dot. Brand: ink dot with an offset accent dot. Live: a thin spinner ring. */
183
- .orb { --s: 14px; position: relative; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); flex: none; }
184
- .orb i { display: none; }
185
- .orb.tiny { --s: 12px; }
186
- .orb.tiny::after {
187
- content: ''; position: absolute; width: 6px; height: 6px; right: -4px; bottom: -2px; border-radius: 50%;
188
- background: var(--accent); box-shadow: 0 0 0 2px var(--bg);
189
- }
190
- .orb.big { display: none; }
191
- .orb.live {
192
- --s: 18px; background: none; border: 2px solid var(--line-2); border-top-color: var(--accent);
193
- animation: orb-spin 0.9s linear infinite;
194
- }
195
- .waiting .orb.live { border: 0; background: var(--warn); --s: 10px; margin: 4px; animation: pulse 1.6s ease-in-out infinite; }
196
-
197
- @keyframes orb-spin { to { rotate: 360deg; } }
198
-
199
- /* ---------- layout: one column — top bar, launcher, feed ---------- */
200
- .stage {
201
- position: relative; height: 100vh; overflow-y: auto; overflow-x: hidden; scroll-padding-top: 116px; /* top bar + docked launcher */
202
- /* reserve the gutter on both sides so the scrollbar appearing never shifts or off-centres the layout */
203
- scrollbar-gutter: stable both-edges;
204
- }
205
-
206
- /* scrollbars: a hairline pill on a clear track — faint at rest, firmer and wider when grabbed, gone when idle */
207
- ::-webkit-scrollbar { width: 10px; height: 10px; }
208
- ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
209
- ::-webkit-scrollbar-thumb {
210
- border-radius: 99px; border: 3px solid transparent; min-height: 40px;
211
- background: color-mix(in srgb, var(--ink) 16%, transparent) padding-box;
212
- }
213
- ::-webkit-scrollbar-thumb:hover { border-width: 2px; background-color: color-mix(in srgb, var(--ink) 32%, transparent); }
214
- ::-webkit-scrollbar-thumb:active { border-width: 2px; background-color: color-mix(in srgb, var(--ink) 45%, transparent); }
215
- :not(:hover)::-webkit-scrollbar-thumb { background-color: transparent; }
216
- ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
217
- @supports not selector(::-webkit-scrollbar) {
218
- * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 20%, transparent) transparent; }
219
- }
220
- .feed-wrap { max-width: 800px; margin: 0 auto; padding: 20px 24px 120px; }
221
-
222
- .topbar {
223
- position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px;
224
- background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
225
- border-bottom: 1px solid transparent; transition: border-color 0.2s;
226
- }
227
- .topbar.scrolled { border-bottom-color: var(--line); }
228
-
229
- .to-top {
230
- position: fixed; top: 116px; left: 0; right: 0; margin-inline: auto; z-index: 20; display: flex; align-items: center; gap: 7px;
231
- width: max-content; height: 38px; padding: 0 9px 0 12px; border-radius: 19px; color: var(--ink-2);
232
- background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
233
- transition: color 0.15s, border-color 0.15s, translate 0.2s var(--ease); animation: to-top-in 0.25s var(--ease);
234
- }
235
- .to-top kbd { line-height: 1.3; }
236
- .to-top:hover { color: var(--ink); border-color: var(--faint); translate: 0 -2px; }
237
- @keyframes to-top-in { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
238
- .to-top:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); }
239
- .brand { display: flex; align-items: center; gap: 9px; flex: none; }
240
- .brand .word { font: 600 15px/1 var(--display); letter-spacing: -0.02em; }
241
- .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
242
- .dot.ok { background: var(--good); }
243
- .dot.bad { background: var(--bad); }
244
-
245
- /* project filter chips in the top bar */
246
- .projects { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
247
- .projects::-webkit-scrollbar { display: none; }
248
- .p-chip {
249
- display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; flex: none;
250
- font-size: 12.5px; color: var(--muted); border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s;
251
- }
252
- .p-chip:hover { background: var(--bg-2); color: var(--ink-2); }
253
- .p-chip.on { background: var(--surface); border-color: var(--line-2); color: var(--ink); font-weight: 500; }
254
- .p-chip.add { padding: 0 6px; }
255
- .p-chip.add .i { width: 14px; height: 14px; }
256
- .p-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); display: inline-block; flex: none; }
257
- .p-run { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
258
- .p-need { font-size: 10.5px; font-weight: 600; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
259
-
260
- /* ---------- launcher ---------- */
261
- .launcher { container: launcher / inline-size; padding: 12px 12px 10px; border-radius: 12px; border-color: var(--line-2); box-shadow: var(--shadow-1); transition: box-shadow 0.15s, border-color 0.15s; }
262
- /* A picker or menu opened from the launcher lives on <body> and takes focus; the launcher stays lit
263
- while it's open so switching between the two harness pickers doesn't flash the ring off and on. */
264
- .launcher:is(:focus-within, :has(.open)) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
265
- .launcher.drop, .composer.drop { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
266
- .l-projects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 2px 8px; }
267
- .l-in { font-size: 12.5px; color: var(--faint); margin-right: 2px; }
268
- .lp-chip {
269
- display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px; border-radius: 99px;
270
- font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); transition: all 0.15s;
271
- }
272
- .lp-chip:hover { border-color: var(--line-2); background: var(--surface-2); }
273
- .lp-chip.on { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); font-weight: 500; }
274
- .lp-chip.add { color: var(--muted); border-style: dashed; }
275
- .lp-chip.add .i { width: 14px; height: 14px; }
276
- /* recipes: one-click prompts under the launch bar */
277
- .l-recipes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px -12px -10px; padding: 7px 14px 8px; border-top: 1px solid var(--line); }
278
- .l-recipes .l-in { display: inline-flex; align-items: center; gap: 5px; }
279
- .l-recipes .l-in .i { width: 13px; height: 13px; color: var(--accent); }
280
- .l-recipes .lp-chip { height: 24px; padding: 0 9px; font-size: 12px; }
281
- .l-recipes .lp-chip.rc { background: var(--surface-2); }
282
- .l-recipes .lp-chip.rc:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); color: var(--ink); }
283
- .l-recipes .lp-chip[hidden] { display: none; }
284
- .rc-f { font-style: normal; color: var(--faint); margin-left: -3px; }
285
- .lr-empty { margin-right: 2px; }
286
- .launcher textarea, .composer textarea {
287
- display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; padding: 8px 4px;
288
- font-size: 15px; line-height: 1.55; color: var(--ink); min-height: 64px;
289
- }
290
- .launcher textarea::placeholder, .composer textarea::placeholder { color: var(--faint); }
291
- /* docked: pinned under the top bar once scrolled past, one line until focused (or a menu of it is open) */
292
- .launcher.docked {
293
- position: fixed; top: 60px; left: 0; right: 0; margin-inline: auto; z-index: 15; width: min(752px, calc(100% - 48px));
294
- max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: var(--shadow-2); animation: dock-in 0.2s var(--ease);
295
- }
296
- .launcher.docked:is(:focus-within, :has(.open)) { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-2); }
297
- .launcher.docked:not(:focus-within):not(:has(.open)) { display: flex; align-items: center; gap: 6px; padding: 6px 8px; cursor: text; overflow: hidden; }
298
- .launcher.docked:not(:focus-within):not(:has(.open)) :is(.l-in, .lp-chip:not(.on), .tray, .l-bar, .l-recipes) { display: none; }
299
- .launcher.docked:not(:focus-within):not(:has(.open)) .l-projects { flex: none; flex-wrap: nowrap; padding: 0; }
300
- .launcher.docked:not(:focus-within):not(:has(.open)) textarea {
301
- flex: 1; min-width: 0; min-height: 0; height: 30px !important; padding: 4px; font-size: 14px; white-space: pre; overflow: hidden; cursor: text;
302
- }
303
- @keyframes dock-in { from { opacity: 0; transform: translateY(-8px); } }
304
- body:has(.launcher.docked:is(:focus-within, :has(.open))) .to-top { display: none; }
305
- .l-bar { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
306
- .l-bar > :not(.runners) { flex: none; }
307
- .l-bar .grow { flex: 1; }
308
- /* harness pill(s): "vs" rides on the end of it; each harness added joins the same pill behind a
309
- "vs" of its own (hover: ×, removes it), and the end button turns into a + for the next one */
310
- .runners {
311
- display: inline-flex; align-items: stretch; min-width: 0; height: 30px; border-radius: 9px;
312
- border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s;
313
- }
314
- .runners:hover, .runners:has(.open) { border-color: var(--line-2); }
315
- .runners .runner-btn { height: 28px; min-width: 0; border: 0; border-radius: 8px; background: transparent; }
316
- .runners .runner-btn:hover, .runners .runner-btn.open { background: var(--bg-2); }
317
- .runners .runner-btn { overflow: hidden; }
318
- .runners .rb-logo { flex: none; }
319
- .runners .rb-h { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
320
- .runners .rb-m { flex: 0 100 auto; min-width: 0; }
321
- .runners.cmp .rb-e, .l-bar:has(.runners.cmp) #wtBtn span { display: none; }
322
- /* three or four harnesses: logos only (each button's tooltip names it), the bar's other labels fold too */
323
- .runners.many .runner-btn { flex: none; padding-inline: 6px; }
324
- .runners.many :is(.rb-h, .rb-m) { display: none; }
325
- .runners.many .rb-logo { margin-right: 3px; }
326
- .runners.many .runner-btn .chev { margin-left: 0; }
327
- .l-bar:has(.runners.many) :is(.mode-btn span, .team-btn .tb-label) { display: none; }
328
- /* two harnesses on a narrow bar: drop the model names, then the harness names (logos stay) */
329
- @container launcher (max-width: 640px) { .runners.cmp .rb-m { display: none; } }
330
- @container launcher (max-width: 520px) {
331
- .l-bar .mode-btn span, .l-bar #wtBtn span, .runners .rb-m { display: none; }
332
- .runners.cmp .rb-h { display: none; }
333
- .runners.cmp .runner-btn .chev { margin-left: 0; }
334
- .runners.cmp .rb-logo { margin-right: 4px; }
335
- }
336
- @container launcher (max-width: 600px) {
337
- .runners.many .runner-btn .chev { display: none; }
338
- .runners.many .vs-del { width: 18px; }
339
- }
340
- .vs-btn {
341
- position: relative; flex: none; display: grid; place-items: center; width: 30px;
342
- font: 600 11px var(--mono); letter-spacing: 0.02em; color: var(--faint); transition: color 0.15s, background 0.15s;
343
- }
344
- .vs-btn[hidden] { display: none; }
345
- .vs-btn:hover { color: var(--accent-ink); }
346
- .vs-btn .i { display: none; width: 13px; height: 13px; }
347
- .vs-btn:focus-visible { outline: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--accent); }
348
- .vs-add::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 1px; background: var(--line); }
349
- .runners.cmp { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
350
- .runners.cmp .vs-add { width: 26px; }
351
- .runners.cmp .vs-add span { display: none; }
352
- .runners.cmp .vs-add .i { display: block; width: 12px; height: 12px; }
353
- .vs-del { width: 24px; color: var(--accent-ink); }
354
- .runners.many .vs-del { width: 20px; }
355
- .vs-del:hover { color: var(--bad); }
356
- .vs-del:not(.fresh):is(:hover, :focus-visible) span { display: none; }
357
- .vs-del:not(.fresh):is(:hover, :focus-visible) .i { display: block; }
358
- .vs-del.fresh { cursor: default; }
359
- /* permission mode: icon-only on the default, labelled otherwise */
360
- .mode-btn {
361
- display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 9px; border-radius: 9px;
362
- font-size: 12.5px; font-weight: 500; color: var(--muted); transition: background 0.15s, color 0.15s;
363
- }
364
- .mode-btn:hover, .mode-btn.open { background: var(--bg-2); color: var(--ink); }
365
- .mode-btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); }
366
- .mode-btn.m-plan { color: var(--accent-ink); }
367
- .mode-btn.m-auto, .menu.mode .m-auto > .i:first-child { color: var(--warn); }
368
- .menu.mode { width: 290px; }
369
- .menu.mode button { align-items: flex-start; text-align: left; }
370
- .menu.mode button > .i:first-child { margin-top: 2px; }
371
- .mm-text { display: grid; gap: 1px; flex: 1; }
372
- .mm-text b { font-weight: 500; color: var(--ink); }
373
- .mm-text small { font-size: 12px; color: var(--muted); line-height: 1.35; }
374
- .mm-check { margin-top: 2px; color: var(--accent); visibility: hidden; }
375
- .menu.mode .on .mm-check { visibility: visible; }
376
- .menu.mode button:focus-visible { outline: 0; background: var(--bg-2); }
377
- .model-btn {
378
- display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 9px; border-radius: 8px;
379
- font-size: 12.5px; color: var(--muted); transition: background 0.15s, color 0.15s;
380
- }
381
- .model-btn .i { width: 14px; height: 14px; }
382
- .model-btn .chev { width: 12px; height: 12px; color: var(--faint); transform: rotate(90deg); transition: transform 0.2s var(--ease); }
383
- .model-btn:hover, .model-btn.open { background: var(--bg-2); color: var(--ink); }
384
- .model-btn.open .chev { transform: rotate(-90deg); }
385
- .model-btn.set { color: var(--ink-2); font-weight: 500; }
386
- .model-btn.set > .i:first-child { color: var(--accent); }
387
- .model-btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); }
388
-
389
- /* harness · model button in the launcher */
390
- .runner-btn {
391
- display: inline-flex; align-items: center; height: 30px; padding: 0 8px 0 4px; border-radius: 9px; gap: 0;
392
- border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--ink-2);
393
- transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
394
- }
395
- .runner-btn:hover, .runner-btn.open { background: var(--bg-2); border-color: var(--line-2); }
396
- .runner-btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); }
397
- .rb-logo { display: grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 6px; background: var(--bg-2); color: var(--ink); }
398
- .runner-btn:hover .rb-logo, .runner-btn.open .rb-logo { background: var(--surface); }
399
- .rb-logo > * { display: block; width: 13px; height: 13px; }
400
- .rb-logo .mono, .pk-logo .mono { background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
401
- .rb-h { font-weight: 500; color: var(--ink); }
402
- .rb-m { position: relative; margin-left: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
403
- .rb-m::before { content: ''; position: absolute; left: -7px; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: var(--line-2); }
404
- .rb-e { flex: none; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 11.5px; background: var(--accent-soft); color: var(--accent-ink); }
405
- .runner-btn .chev { width: 12px; height: 12px; margin-left: 6px; color: var(--faint); transform: rotate(90deg); transition: transform 0.2s var(--ease); }
406
- .runner-btn.open .chev { transform: rotate(-90deg); }
407
-
408
- /* harness + model picker */
409
- .picker {
410
- position: fixed; z-index: 40; display: grid; grid-template-columns: 200px 1fr; height: min(420px, 70vh); overflow: hidden;
411
- border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: pop 0.2s var(--ease);
412
- }
413
- .pk-side { display: flex; flex-direction: column; gap: 2px; padding: 6px; overflow-y: auto; background: var(--surface-2); border-right: 1px solid var(--line); }
414
- .pk-head, .pk-ghead { padding: 8px 10px 5px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
415
- .pk-h, .pk-m { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border-radius: 9px; text-align: left; outline: 0; color: var(--ink-2); transition: background 0.12s; }
416
- .pk-h:hover:not(:disabled), .pk-m:hover, .pk-m:focus-visible { background: var(--bg-2); }
417
- .pk-h:focus-visible { box-shadow: inset 0 0 0 1px var(--line-2); }
418
- .pk-h.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
419
- .pk-h.off { opacity: 0.45; cursor: not-allowed; }
420
- .pk-logo { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
421
- .pk-h.on .pk-logo { background: var(--bg-2); border-color: transparent; }
422
- .pk-logo > * { display: block; width: 15px; height: 15px; }
423
- .pk-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
424
- .pk-text b { font-weight: 500; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
425
- .pk-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
426
- .pk-text small:empty { display: none; }
427
- .pk-text small.warn { color: var(--warn); }
428
- .pk-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
429
- .pk-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
430
- .pk-search { flex: none; width: auto; margin: 8px 8px 2px; color: var(--faint); }
431
- .pk-list { flex: 1; overflow-y: auto; padding: 6px; }
432
- .pk-group + .pk-group { margin-top: 4px; }
433
- .pk-check { width: 15px; height: 15px; flex: none; color: var(--accent); visibility: hidden; }
434
- .pk-m.on .pk-check { visibility: visible; }
435
- .pk-m.on b { color: var(--accent-ink); }
436
- .pk-effort { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 10px; border-top: 1px solid var(--line); background: var(--surface-2); }
437
- .pk-effort[hidden] { display: none; }
438
- .pk-ehead { padding: 0 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
439
- .pk-seg { display: flex; min-width: 0; gap: 2px; padding: 2px; overflow-x: auto; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); }
440
- .pk-seg button { flex: 1 0 auto; padding: 4px 7px; border-radius: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; outline: 0; transition: background 0.12s, color 0.12s; }
441
- .pk-seg button:hover { color: var(--ink); }
442
- .pk-seg button:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
443
- .pk-seg button.on { background: var(--surface); color: var(--accent-ink); font-weight: 500; box-shadow: var(--shadow-1); }
444
- .pk-empty { padding: 30px 10px; text-align: center; font-size: 13px; color: var(--muted); }
445
- @media (max-width: 560px) {
446
- .picker { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
447
- .pk-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
448
- .pk-side .pk-head, .pk-h .pk-text small { display: none; }
449
- .pk-h { width: auto; flex: none; }
450
- }
451
-
452
- /* ---------- feed ---------- */
453
- .feed-head { display: flex; align-items: center; gap: 14px; min-height: 22px; margin: 26px 0 10px; padding: 0 4px; font-size: 13px; }
454
- .feed-head[hidden] + .feed { margin-top: 26px; }
455
- .hs { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
456
- .hs i { width: 7px; height: 7px; border-radius: 50%; }
457
- .hs.working i { background: var(--accent); animation: pulse 1.6s infinite; }
458
- .hs.needs i { background: var(--warn); }
459
- .hs.calm i { background: var(--good); }
460
-
461
- .f-group { margin-bottom: 22px; }
462
- .f-group h4 {
463
- display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0 4px;
464
- font-size: 12px; font-weight: 500; color: var(--muted);
465
- }
466
- .f-group h4 .n { color: var(--faint); }
467
- .collapse-all {
468
- display: inline-flex; align-items: center;
469
- position: fixed; right: 22px; bottom: 22px; z-index: 30; height: 30px; padding: 0 12px; border-radius: 15px;
470
- background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
471
- font-size: 12.5px; font-weight: 500; color: var(--ink-2);
472
- opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity 0.18s, translate 0.18s var(--ease), visibility 0.18s, color 0.15s;
473
- }
474
- .collapse-all.on { opacity: 1; visibility: visible; translate: 0 0; }
475
- .collapse-all:hover { color: var(--ink); }
476
- .collapse-all kbd { margin-left: 8px; }
477
- .toggle-done { cursor: pointer; user-select: none; }
478
- .toggle-done:hover { color: var(--ink-2); }
479
- .toggle-done .chev { width: 12px; height: 12px; transition: transform 0.2s; }
480
- .f-group.done:not(.collapsed) .chev { transform: rotate(90deg); }
481
- /* Folded groups are just a row of headings: stack them tight instead of leaving a section gap each. */
482
- .f-group.collapsed { margin-bottom: 2px; }
483
- .f-group.collapsed h4 { margin: 0; }
484
- .f-group h4.toggle-done { width: fit-content; min-height: 24px; margin-left: -4px; padding: 0 8px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
485
- .f-group h4.toggle-done:hover { background: var(--bg-2); }
486
- .f-list { display: flex; flex-direction: column; gap: 6px; }
487
- .feed-empty { padding: 48px 0; text-align: center; color: var(--faint); font-size: 13.5px; }
488
-
489
- /* one feed item — a row that expands in place */
490
- .item {
491
- background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
492
- transition: border-color 0.15s, box-shadow 0.15s;
493
- }
494
- .item:hover { border-color: var(--line-2); }
495
- .item.focused { border-color: var(--line-2); box-shadow: 0 0 0 1px var(--line-2); }
496
- .item.open { border-color: var(--line-2); box-shadow: var(--shadow-2); }
497
- .item.st-done:not(.open) { background: transparent; }
498
- /* a launch the server hasn't confirmed yet: shown at once, can't be opened */
499
- .item.pending { opacity: 0.75; }
500
- .item.pending .it-head { cursor: default; }
501
- .item.pending .chev { visibility: hidden; }
502
- .item.arrived { animation: arrive 1.4s var(--ease); }
503
- @keyframes arrive { from { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); } }
504
-
505
- .it-head {
506
- display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center;
507
- padding: 11px 12px 11px 14px; cursor: pointer; outline: 0; border-radius: var(--radius);
508
- }
509
- .item.open .it-head { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
510
- .q-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); position: relative; }
511
- .item.st-done .q-dot { opacity: 0.35; }
512
- .q-dot.live::after, .q-dot.waiting::after {
513
- content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--pc); animation: ring 1.8s ease-out infinite;
514
- }
515
- .q-dot.waiting { background: var(--warn); --pc: var(--warn); }
516
- .it-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
517
- .it-title { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: 0; border-radius: 5px; }
518
- .item.unread .it-title, .item.st-waiting .it-title, .item.open .it-title { color: var(--ink); font-weight: 600; }
519
- .item.open .it-title { white-space: normal; }
520
- .item.st-done .it-title { color: var(--muted); }
521
- .it-title[contenteditable='true'] { white-space: normal; background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-soft); padding: 0 4px; cursor: text; }
522
- .it-sub, .q-live { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
523
- .q-live.running { color: var(--ink-2); }
524
- .q-live.waiting { color: var(--warn); font-weight: 500; }
525
- .it-side { display: flex; align-items: center; gap: 10px; }
526
- .it-side .chev { width: 14px; height: 14px; color: var(--faint); transition: transform 0.2s; }
527
- .item.open .it-side .chev { transform: rotate(90deg); }
528
- .q-proj {
529
- font-size: 11px; font-weight: 500; padding: 0 7px; border-radius: 5px; line-height: 19px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
530
- color: color-mix(in srgb, var(--pc) 65%, var(--ink)); background: color-mix(in srgb, var(--pc) 10%, transparent);
531
- }
532
- .q-time { font-size: 11.5px; color: var(--faint); min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
533
- .q-queued { font-size: 11px; color: var(--accent-ink); font-weight: 600; }
534
- /* one-click done on collapsed review rows; revealed on hover/focus */
535
- .it-quick {
536
- display: grid; place-items: center; width: 24px; height: 24px; margin: -4px -6px -4px 0; border-radius: 7px;
537
- color: var(--faint); opacity: 0; transition: opacity 0.15s, background 0.15s, color 0.15s;
538
- }
539
- .it-quick .i { width: 14px; height: 14px; }
540
- .item:hover .it-quick, .item.focused .it-quick, .it-quick:focus-visible { opacity: 1; }
541
- .it-quick:hover { background: var(--bg-2); color: var(--good); }
542
- @media (hover: none) { .it-quick { opacity: 1; } }
543
-
544
- /* expanded body */
545
- .it-body { animation: rise 0.3s var(--ease); }
546
- .it-loading { display: flex; align-items: center; gap: 10px; padding: 18px; color: var(--muted); font-size: 13px; }
547
- .it-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 14px; }
548
- .it-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
549
- .it-actions { display: flex; gap: 2px; flex: none; }
550
- .it-body .earlier { display: block; margin: 4px 0 0 18px; }
551
- .it-dock { padding: 4px 14px 14px; }
552
-
553
- /* ---------- pills ---------- */
554
- .pill {
555
- display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px;
556
- font-size: 12px; font-weight: 500; --tone: var(--good); color: color-mix(in srgb, var(--tone) 85%, var(--ink));
557
- background: color-mix(in srgb, var(--tone) 9%, transparent);
558
- }
559
- .pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
560
- .pill.st-partial, .pill.st-waiting { --tone: var(--warn); }
561
- .pill.st-blocked { --tone: var(--bad); }
562
- .pill.st-info { --tone: var(--accent); }
563
-
564
- .turns { padding: 6px 18px 8px; }
565
- .turn { padding-top: 12px; }
566
- .turn + .turn { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
567
- /* older exchanges fold to a single row; the latest stays open */
568
- .turn.folded { padding-top: 0; }
569
- .turn.folded + .turn.folded { margin-top: 2px; border-top: 0; padding-top: 0; }
570
- .turn + .turn.folded { margin-top: 14px; padding-top: 10px; }
571
- .turn.folded + .turn:not(.folded) { margin-top: 14px; }
572
- .t-fold {
573
- display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 7px 10px; border-radius: 8px;
574
- text-align: left; font-size: 13px; color: var(--muted); transition: background 0.15s, color 0.15s;
575
- }
576
- .t-fold:hover { background: var(--bg-2); color: var(--ink); }
577
- .t-fold .chev { flex: none; width: 12px; height: 12px; color: var(--faint); }
578
- .t-prompt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
579
- .t-result { flex: 0 1 auto; max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--faint); }
580
- .t-fold time { flex: none; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
581
- .ask:has(.t-unfold) { padding-right: 40px; }
582
- .t-unfold { position: absolute; top: 6px; right: 6px; }
583
- .t-unfold .chev { width: 12px; height: 12px; transform: rotate(90deg); }
584
-
585
- .ask { position: relative; margin: 0 0 20px; padding: 10px 14px; border-radius: var(--radius); background: var(--bg-2); }
586
- .ask-text { white-space: pre-wrap; color: var(--ink); font-size: 14px; }
587
- .ask-text.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
588
- .ask-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
589
- .ask time { font-size: 11.5px; color: var(--faint); }
590
- .model-logo { position: relative; display: inline-flex; width: 13px; height: 13px; color: var(--ink-2); cursor: default; outline: none; }
591
- .model-logo > * { display: block; width: 100%; height: 100%; }
592
- .model-logo .mono { background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
593
- .model-logo::after {
594
- content: attr(data-tip); position: absolute; left: -6px; bottom: calc(100% + 6px); transform: translateY(2px);
595
- padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 11px; white-space: nowrap;
596
- opacity: 0; pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 5;
597
- }
598
- .model-logo:hover::after, .model-logo:focus-visible::after { opacity: 1; transform: none; }
599
- /* In the card header the logo sits at the right edge, so the tooltip opens down and leftwards. */
600
- .it-side .model-logo::after { left: auto; right: -6px; bottom: auto; top: calc(100% + 6px); transform: translateY(-2px); }
601
- .it-side .model-logo:hover::after, .it-side .model-logo:focus-visible::after { transform: none; }
602
- .ask-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
603
- .ask-atts img { height: 72px; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; object-fit: cover; max-width: min(100%, 320px); }
604
- .att-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
605
-
606
- /* ---------- working panel (not `.working` — the feed group and head badge use that) ---------- */
607
- .w-panel {
608
- display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
609
- animation: rise 0.4s var(--ease) both; position: relative; overflow: hidden;
610
- }
611
- .w-panel.waiting { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
612
- .w-orb { padding-top: 2px; }
613
- .w-body { flex: 1; min-width: 0; position: relative; }
614
- .w-status { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
615
- .w-status b { font-weight: 600; }
616
- .w-status span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
617
- .ticker, .log { list-style: none; margin: 0; padding: 0; }
618
- .act { display: flex; align-items: center; gap: 9px; padding: 3px 0; font-size: 13px; color: var(--ink-2); min-width: 0; }
619
- .act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
620
- .act .i { width: 14px; height: 14px; color: var(--faint); }
621
- .ticker .act:nth-child(1) { color: var(--ink); }
622
- .ticker .act:nth-child(1) .i { color: var(--accent); }
623
- .ticker .act:nth-child(2) { opacity: 0.8; }
624
- .ticker .act:nth-child(3) { opacity: 0.6; }
625
- .ticker .act:nth-child(4) { opacity: 0.42; }
626
- .ticker .act:nth-child(5) { opacity: 0.25; }
627
- .act.new { animation: tick-in 0.45s var(--ease); }
628
- .act.k-error { color: var(--bad); }
629
- .act.k-ask, .act.k-wait { color: var(--warn); }
630
- .act.k-text span { white-space: normal; color: var(--muted); }
631
- .log { max-height: 340px; overflow-y: auto; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
632
- .w-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
633
- .w-queued { font-size: 12px; color: var(--accent-ink); font-weight: 500; }
634
- @keyframes tick-in { from { opacity: 0; transform: translateY(-4px); } }
635
-
636
- /* ask card (mid-run question) */
637
- .ask-card, .b-question {
638
- position: relative; padding: 16px 18px; border-radius: var(--radius); margin: 4px 0 14px;
639
- background: var(--surface); border: 1px solid color-mix(in srgb, var(--warn) 60%, var(--line));
640
- animation: rise 0.4s var(--ease) both;
641
- }
642
- .b-question { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
643
- .b-question.answered { opacity: 0.65; background: var(--surface-2); border: 1px solid var(--line); }
644
- .q-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--warn); }
645
- .b-question .q-head { color: var(--accent-ink); }
646
- .q-text { margin: 6px 0 12px; font: 600 17px/1.4 var(--display); letter-spacing: -0.015em; color: var(--ink); }
647
- .q-context { margin: -4px 0 12px; font-size: 13.5px; color: var(--ink-2); }
648
- .q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
649
- .opt {
650
- display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 12px 6px 8px; border-radius: 8px;
651
- border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; text-align: left; transition: border-color 0.15s, background 0.15s;
652
- }
653
- .opt small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
654
- .opt .k { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--bg-2); font: 500 11px var(--mono); color: var(--muted); flex: none; }
655
- .opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
656
- .opt.own { color: var(--muted); border-style: dashed; padding-left: 12px; }
657
- .q-own { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
658
- .ask-card.sent { opacity: 0.5; pointer-events: none; }
659
-
660
- /* ---------- presentation blocks ---------- */
661
- .presentation { display: flex; flex-direction: column; gap: 14px; }
662
- .blk { animation: rise 0.45s var(--ease) var(--d) both; min-width: 0; }
663
- @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
664
- .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
665
- .b-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
666
- .b-title .count { font-weight: 500; color: var(--faint); }
667
- .caption { margin: 0; padding: 10px 16px 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
668
- .fallback-note { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
669
-
670
- /* hero */
671
- .b-hero { position: relative; padding: 2px 0 6px; }
672
- .b-hero .aura { display: none; }
673
- .hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
674
- .hero-top .meta { font-size: 12.5px; color: var(--muted); }
675
- .hero-top .meta + .meta::before { content: '·'; margin-right: 12px; color: var(--faint); }
676
- .b-hero h2 { margin: 12px 0 6px; font: 600 26px/1.2 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
677
- .b-hero p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 70ch; text-wrap: pretty; }
678
-
679
- /* markdown */
680
- .prose { color: var(--ink-2); line-height: 1.65; }
681
- .prose > :first-child { margin-top: 0; }
682
- .prose > :last-child { margin-bottom: 0; }
683
- .prose p, .prose ul, .prose ol, .prose pre, .prose blockquote, .prose .table-wrap { margin: 0 0 12px; }
684
- .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--ink); margin: 18px 0 8px; font-weight: 600; font-size: 15px; }
685
- .prose h3 { font: 600 17px/1.3 var(--display); letter-spacing: -0.015em; }
686
- .prose ul, .prose ol { padding-left: 20px; }
687
- .prose li { margin: 3px 0; }
688
- .prose li::marker { color: var(--faint); }
689
- .prose li.task { list-style: none; margin-left: -18px; }
690
- .prose li.task::before { content: '☐ '; color: var(--faint); }
691
- .prose li.task.done::before { content: '☑ '; color: var(--good); }
692
- .prose strong { color: var(--ink); font-weight: 600; }
693
- .prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
694
- .prose code, .b-hero code, .note code, .b-steps code, .q-text code, .b-check code, .b-compare code, .b-commits code {
695
- font-size: 0.86em; padding: 1px 5px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
696
- }
697
- .prose blockquote { border-left: 2px solid var(--line-2); padding-left: 14px; color: var(--muted); }
698
- .prose hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
699
- .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
700
- .prose table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
701
- .prose th, .prose td { padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--line); }
702
- .prose th { font-weight: 600; color: var(--ink); background: var(--surface-2); }
703
- .prose tr:last-child td { border-bottom: 0; }
704
- pre.code { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; font-size: 12.5px; line-height: 1.6; }
705
- .b-md { padding: 0 2px; }
706
-
707
- /* steps */
708
- .b-steps { padding: 18px 20px 8px; }
709
- .b-steps ol { list-style: none; margin: 0; padding: 0; position: relative; }
710
- .b-steps ol::before {
711
- content: ''; position: absolute; left: 10px; top: 12px; bottom: 22px; width: 1.5px; background: var(--line-2);
712
- transform-origin: top; animation: draw-y 1.1s var(--ease) calc(var(--d, 0ms) + 200ms) both;
713
- }
714
- .blk-steps { --dd: var(--d); }
715
- .b-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 14px; position: relative; animation: rise 0.55s var(--ease) calc(240ms + var(--k) * 110ms) both; }
716
- .b-steps .dot {
717
- width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface);
718
- border: 1.5px solid var(--good); color: var(--good); position: relative; z-index: 1;
719
- }
720
- .b-steps .dot .i { width: 12px; height: 12px; }
721
- .b-steps .st-failed .dot { border-color: var(--bad); color: var(--bad); }
722
- .b-steps .st-skipped .dot { border-color: var(--line-2); color: var(--faint); }
723
- .b-steps b { font-weight: 600; display: block; line-height: 22px; }
724
- .b-steps li p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
725
- @keyframes draw-y { from { transform: scaleY(0); } }
726
-
727
- /* stats */
728
- .b-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
729
- .stat { position: relative; padding: 14px 16px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; animation: rise 0.4s var(--ease) calc(var(--k) * 50ms) both; }
730
- .stat .num { font: 600 26px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
731
- .stat .u { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
732
- .stat .lbl { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
733
- .stat .delta { position: absolute; top: 12px; right: 12px; font: 500 11.5px var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--bg-2); color: var(--ink-2); }
734
- .stat.tone-good .delta { background: var(--add-bg); color: var(--good); }
735
- .stat.tone-bad .delta { background: var(--del-bg); color: var(--bad); }
736
- @keyframes draw-x { from { transform: scaleX(0); } }
737
-
738
- /* files */
739
- .b-files { padding: 16px 8px 8px; }
740
- .b-files .b-title { padding: 0 12px; }
741
- .b-files ul { list-style: none; margin: 0; padding: 0; }
742
- .b-files li { border-radius: 10px; animation: rise 0.5s var(--ease) calc(200ms + var(--k) * 60ms) both; }
743
- .b-files li.has-diff { cursor: pointer; }
744
- .b-files li:hover { background: var(--surface-2); }
745
- .b-files li.open { background: var(--surface-2); }
746
- .b-files .row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; min-width: 0; }
747
- .b-files .note { margin: -4px 0 0; padding: 0 12px 8px 42px; font-size: 13px; color: var(--muted); }
748
- .b-files .actions { margin-left: auto; display: flex; opacity: 0; transition: opacity 0.15s; }
749
- .b-files li:hover .actions, .b-files li.open .actions { opacity: 1; }
750
- .b-files .toggle .i { transition: transform 0.2s; }
751
- .b-files li.open .toggle .i { transform: rotate(90deg); }
752
- .b-files .b-diff.bare { margin: 0 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
753
- .badge { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 600 11px var(--mono); flex: none; }
754
- .badge.add { background: var(--add-bg); color: var(--add); }
755
- .badge.mod { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
756
- .badge.del { background: var(--del-bg); color: var(--del); }
757
- .badge.ren { background: var(--accent-soft); color: var(--accent-ink); }
758
- .path { font: 12.5px var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
759
- .path .dir { color: var(--faint); }
760
- .path .base { color: var(--ink); font-weight: 500; }
761
- .nums { font: 500 11.5px var(--mono); display: inline-flex; gap: 6px; flex: none; }
762
- .plus { color: var(--add); }
763
- .minus { color: var(--del); }
764
-
765
- /* tree */
766
- .b-tree { padding: 16px 18px 12px; }
767
- .b-tree ul { list-style: none; margin: 0; padding: 0; font: 12.5px/1.5 var(--mono); }
768
- .b-tree li { padding-left: calc(var(--depth) * 18px); animation: rise 0.45s var(--ease) calc(150ms + var(--k) * 40ms) both; }
769
- .b-tree .row { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border-radius: 7px; }
770
- .b-tree li.file .row { cursor: pointer; }
771
- .b-tree li.file .row:hover { background: var(--surface-2); }
772
- .b-tree .i { width: 14px; height: 14px; color: var(--faint); }
773
- .b-tree .dir .name { color: var(--muted); }
774
- .b-tree .badge { width: 17px; height: 17px; font-size: 10px; }
775
- .b-tree .note { font-family: var(--sans); color: var(--muted); font-size: 12.5px; margin-left: 4px; }
776
-
777
- /* diff & code */
778
- .b-diff, .b-code { overflow: hidden; }
779
- .diff-head, .code-head {
780
- display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
781
- }
782
- .diff-head .i { color: var(--faint); }
783
- .diff-head .nums { margin-left: auto; }
784
- .code-head { justify-content: space-between; }
785
- .code-head .lang { font: 500 11.5px var(--mono); color: var(--muted); }
786
- .code-head .file { display: inline-flex; min-width: 0; }
787
- .lineno { font: 12.5px var(--mono); color: var(--faint); }
788
- .diff-scroll, .code-scroll { overflow-x: auto; max-height: 560px; overflow-y: auto; }
789
- .b-diff table, .b-code table { border-collapse: collapse; width: 100%; font: 12.5px/1.65 var(--mono); }
790
- .b-diff td, .b-code td { padding: 0; vertical-align: top; }
791
- .b-diff .no, .b-code .no { width: 1%; min-width: 36px; padding: 0 10px 0 12px; text-align: right; color: var(--faint); user-select: none; font-size: 11.5px; }
792
- .b-diff .sign { width: 1%; padding: 0 6px 0 4px; color: var(--faint); user-select: none; }
793
- .b-diff .src, .b-code .src { white-space: pre; padding-right: 18px; color: var(--ink-2); }
794
- .b-diff tr.add { background: var(--add-bg); }
795
- .b-diff tr.add .sign, .b-diff tr.add .no { color: var(--add); }
796
- .b-diff tr.del { background: var(--del-bg); }
797
- .b-diff tr.del .sign, .b-diff tr.del .no { color: var(--del); }
798
- .b-diff tr.del .src { opacity: 0.8; }
799
- .b-diff tr.gap td { padding: 3px 12px; font: 11.5px var(--sans); color: var(--faint); background: var(--surface-2); }
800
- .b-diff tr.gap .i { width: 12px; height: 12px; vertical-align: -2px; }
801
- .b-diff tr.sep td { height: 10px; background: var(--surface-2); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
802
- .b-diff tbody tr:first-child td { padding-top: 6px; }
803
- .b-diff tbody tr:last-child td { padding-bottom: 6px; }
804
- .b-diff tr.ln { animation: line-in 0.4s var(--ease) both; }
805
- .b-diff.missing { padding: 0 0 4px; }
806
- .b-diff.missing p { padding: 10px 14px; margin: 0; font-size: 13px; }
807
- .b-code tr.hl { background: color-mix(in srgb, var(--accent) 10%, transparent); }
808
- .b-code tr.hl .no { color: var(--accent); box-shadow: inset 2px 0 var(--accent); }
809
- .b-code .code-scroll { padding: 6px 0; }
810
- .copy.copied { color: var(--good); }
811
- @keyframes line-in { from { opacity: 0; } }
812
-
813
- .tk-k { color: var(--tk-k); }
814
- .tk-s { color: var(--tk-s); }
815
- .tk-c { color: var(--tk-c); font-style: italic; }
816
- .tk-n { color: var(--tk-n); }
817
- .tk-t { color: var(--tk-t); }
818
-
819
- /* compare */
820
- .b-compare { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; }
821
- .b-compare .side { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
822
- .b-compare .before { background: var(--surface-2); }
823
- .b-compare .after { border-color: var(--line-2); }
824
- .side-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
825
- .after .side-label { color: var(--good); }
826
- .b-compare ul { list-style: none; margin: 0; padding: 0; }
827
- .b-compare li { display: flex; gap: 9px; padding: 4px 0; font-size: 13.5px; animation: rise 0.5s var(--ease) calc(250ms + var(--k) * 90ms) both; }
828
- .b-compare li .i { margin-top: 3px; width: 14px; height: 14px; }
829
- .before li { color: var(--muted); }
830
- .before li .i { color: var(--del); }
831
- .after li .i { color: var(--good); }
832
- .b-compare .arrow { display: grid; place-items: center; color: var(--faint); }
833
- .b-compare pre.code { margin: 0; }
834
-
835
- /* flow */
836
- .b-flow { padding: 16px 18px 20px; }
837
- .flow-stage { position: relative; padding: 4px 2px; }
838
- .wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
839
- .wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s var(--ease) calc(500ms + var(--k) * 180ms) forwards; }
840
- .wire.back { stroke-dasharray: 0.012 0.012; stroke-dashoffset: 0; animation: fade-in 0.6s calc(900ms + var(--k) * 180ms) both; stroke: var(--faint); }
841
- .spark { fill: var(--accent); }
842
- .spark.back { fill: var(--muted); }
843
- .wire-label { font: 500 11px var(--sans); fill: var(--muted); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
844
- .cols { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 46px; }
845
- .col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 220px; }
846
- .cols.snake { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); column-gap: 46px; row-gap: 40px; align-items: center; }
847
- .cols.snake .col { width: 100%; max-width: 220px; justify-self: center; }
848
- .node {
849
- position: relative; padding: 9px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2);
850
- text-align: center; animation: pop 0.4s var(--ease) calc(200ms + var(--k) * 120ms) both;
851
- }
852
- .node b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
853
- .node span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.35; }
854
- @keyframes draw { to { stroke-dashoffset: 0; } }
855
- @keyframes dash { to { stroke-dashoffset: -0.024; } }
856
- @keyframes fade-in { from { opacity: 0; } }
857
- @keyframes pop { from { opacity: 0; transform: scale(0.9) translateY(6px); } }
858
-
859
- /* chart */
860
- .b-chart { padding: 16px 18px 14px; }
861
- .bars { display: flex; flex-direction: column; gap: 10px; }
862
- .bar-row { display: grid; grid-template-columns: minmax(80px, 28%) 1fr auto; align-items: center; gap: 12px; animation: rise 0.5s var(--ease) calc(150ms + var(--k) * 90ms) both; }
863
- .bar-label { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
864
- .bar-track { height: 8px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
865
- .bar { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--accent); transform-origin: left; animation: grow-x 0.8s var(--ease) calc(200ms + var(--k) * 100ms) both; }
866
- .bar-row:nth-child(2n) .bar { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
867
- .bar-val { font: 500 13px var(--mono); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
868
- .bar-val .u { color: var(--muted); margin-left: 2px; font-size: 11.5px; }
869
- @keyframes grow-x { from { transform: scaleX(0); } }
870
-
871
- /* terminal */
872
- .b-term { border-radius: var(--radius); background: var(--term-bg); color: var(--term-ink); overflow: hidden; border: 1px solid var(--line); }
873
- .term-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: #8a8a8a; }
874
- .lights { display: none; }
875
- .term-head .title { flex: 1; font-family: var(--mono); font-size: 11.5px; }
876
- .exit { font: 500 11px var(--mono); padding: 1px 7px; border-radius: 5px; }
877
- .exit.ok { background: rgba(76, 195, 138, 0.14); color: #4cc38a; }
878
- .exit.bad { background: rgba(255, 99, 105, 0.14); color: #ff6369; }
879
- .b-term pre { margin: 0; padding: 12px 14px 14px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 440px; overflow-y: auto; }
880
- .b-term .ps { color: #8a8a8a; }
881
- .b-term .cmd { color: #fff; }
882
- .b-term .caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #e8e8e6; animation: blink 1s steps(1) infinite; }
883
- .b-term.ran .caret { display: none; }
884
- .b-term .out { color: #b4b4b0; opacity: 0; transition: opacity 0.4s; }
885
- .b-term.ran .out { opacity: 1; }
886
- @keyframes blink { 50% { opacity: 0; } }
887
-
888
- /* tests */
889
- .b-tests { padding: 18px 20px; }
890
- .tests-main { display: flex; align-items: center; gap: 18px; position: relative; }
891
- .ring { width: 76px; height: 76px; transform: rotate(-90deg); flex: none; }
892
- .ring circle { fill: none; stroke-width: 7; }
893
- .ring .track { stroke: var(--bg-2); }
894
- .ring .seg { stroke-linecap: butt; animation: ring-in 1.3s var(--ease) 0.35s both; }
895
- .ring .pass { stroke: var(--good); }
896
- .ring .fail { stroke: var(--bad); }
897
- .ring .skip { stroke: var(--line-2); }
898
- .ring-label { position: absolute; left: 0; width: 76px; display: grid; place-items: center; }
899
- .ring-label .i { width: 24px; height: 24px; }
900
- .b-tests.ok .ring-label { color: var(--good); }
901
- .b-tests.bad .ring-label { color: var(--bad); }
902
- .verdict { font: 600 18px/1.25 var(--display); letter-spacing: -0.015em; }
903
- .counts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
904
- .counts b { font-weight: 600; font-variant-numeric: tabular-nums; }
905
- .counts .pass b { color: var(--good); }
906
- .counts .fail b { color: var(--bad); }
907
- .cmdline { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); }
908
- .failures { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
909
- .failures li { display: flex; gap: 10px; padding: 6px 0; }
910
- .failures li > .i { color: var(--bad); margin-top: 3px; }
911
- .failures b { font-weight: 600; font-size: 13.5px; }
912
- .failures pre { margin: 4px 0; padding: 8px 10px; border-radius: 8px; background: var(--del-bg); font-size: 12px; white-space: pre-wrap; color: var(--ink-2); }
913
- .failures .file { font: 12px var(--mono); }
914
- @keyframes ring-in { from { stroke-dasharray: 0 400; } }
915
-
916
- /* commits */
917
- .b-commits { padding: 16px 20px 10px; }
918
- .b-commits .b-title .i { width: 14px; height: 14px; }
919
- .b-commits ol { list-style: none; margin: 0; padding: 0; position: relative; }
920
- .b-commits ol::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 16px; width: 2px; background: var(--line-2); transform-origin: top; animation: draw-y 0.9s var(--ease) 0.3s both; }
921
- .b-commits li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding-bottom: 12px; animation: rise 0.5s var(--ease) calc(300ms + var(--k) * 110ms) both; }
922
- .b-commits .node { all: unset; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-2); position: relative; z-index: 1; }
923
- .b-commits .msg { font-weight: 500; }
924
- .b-commits .sub { display: flex; gap: 10px; margin-top: 2px; font: 12px var(--mono); color: var(--muted); }
925
- .b-commits .sub code { padding: 0 5px; }
926
-
927
- /* graph: a PR's branches, the merge target and its conflicts */
928
- .b-graph { --g-base: var(--faint); --g-1: #3b82f6; --g-2: #14b8a6; --g-3: #8b5cf6; --g-4: #e5487f; --g-merged: #8250df; padding: 14px 16px 12px; container-type: inline-size; }
929
- .g-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
930
- .g-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
931
- .g-ref { font-weight: 500; color: var(--muted); }
932
- .g-pr { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; --tone: var(--good); color: var(--tone); }
933
- .g-pr i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
934
- .g-pr.st-merged { --tone: var(--g-merged); }
935
- .g-pr.st-closed { --tone: var(--bad); }
936
- .g-pr.st-draft { --tone: var(--muted); }
937
- .g-body { position: relative; display: grid; grid-template-columns: var(--g-w) 1fr; column-gap: 14px; }
938
- .g-svg { overflow: visible; }
939
- .g-wire { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.75; animation: draw 0.7s var(--ease) calc(250ms + var(--k) * 60ms) forwards; }
940
- .g-wire.pending { stroke-dasharray: 3 3; stroke-dashoffset: 0; animation: fade-in 0.5s 0.5s both; stroke: var(--faint); }
941
- .g-wire.pending.st-conflict { stroke: var(--warn); }
942
- .g-wire.pending.st-ready { stroke: var(--good); }
943
- .g-wire.st-merged { stroke: var(--g-merged); }
944
- .g-tail { fill: none; stroke-width: 1.5; stroke-dasharray: 2 3; opacity: 0.5; animation: fade-in 0.5s 0.4s both; }
945
- .g-dot { fill: var(--lc); stroke: var(--surface); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pop 0.35s var(--ease) calc(200ms + var(--k) * 60ms) both; }
946
- .g-dot.conflict { fill: var(--warn); }
947
- .g-dot.merge { fill: var(--surface); stroke: var(--lc); stroke-width: 1.6; }
948
- .g-target circle { fill: var(--surface); stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 2 2; }
949
- .g-target path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
950
- .g-target.st-conflict circle { fill: var(--warn); stroke: color-mix(in srgb, var(--warn) 25%, transparent); stroke-width: 4; stroke-dasharray: none; paint-order: stroke; }
951
- .g-target.st-ready circle { fill: var(--good); stroke: color-mix(in srgb, var(--good) 22%, transparent); stroke-width: 4; stroke-dasharray: none; paint-order: stroke; }
952
- .g-target.st-merged circle { fill: var(--g-merged); stroke: none; }
953
- .g-target.st-blocked circle { fill: var(--bad); stroke: none; }
954
- .g-rows { list-style: none; margin: 0; padding: 0; min-width: 0; }
955
- .g-row { display: flex; align-items: center; gap: 8px; height: 30px; min-width: 0; margin: 0 -6px; padding: 0 6px; border-radius: 6px; font-size: 13.5px; animation: rise 0.4s var(--ease) calc(200ms + var(--k) * 60ms) both; transition: background 0.15s; }
956
- .g-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
957
- .g-row.other .g-msg, .g-row.target .g-msg { color: var(--muted); }
958
- .g-row.conflict .g-msg { color: var(--warn); }
959
- .g-row.lit { background: color-mix(in srgb, var(--warn) 9%, transparent); }
960
- .g-tag { flex: none; padding: 1px 6px; border-radius: 5px; font: 11.5px var(--mono); color: var(--lc); background: color-mix(in srgb, var(--lc) 11%, transparent); }
961
- .g-num { flex: none; display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
962
- .g-meta { flex: none; margin-left: auto; padding-left: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
963
- .g-meta code { font: 12px var(--mono); color: var(--faint); background: none; padding: 0; margin-right: 4px; }
964
- .g-state { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--muted); }
965
- .g-row.st-conflict .g-state { color: var(--warn); }
966
- .g-row.st-ready .g-state { color: var(--good); }
967
- .g-row.st-merged .g-state { color: var(--g-merged); }
968
- .g-row.st-blocked .g-state { color: var(--bad); }
969
- .g-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
970
- .g-check { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; font-size: 12.5px; animation: rise 0.4s var(--ease) calc(500ms + var(--k) * 60ms) both; }
971
- .g-check .i { width: 12px; height: 12px; color: var(--good); }
972
- .g-check b { font-weight: 500; }
973
- .g-check span { color: var(--muted); }
974
- .g-check.st-fail .i { color: var(--bad); }
975
- .g-check.st-pending .i, .g-check.st-skip .i { color: var(--muted); }
976
- .g-conflicts { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); }
977
- .g-conflicts li { padding: 7px 6px; margin: 0 -6px; border-radius: 8px; animation: rise 0.4s var(--ease) calc(500ms + var(--k) * 70ms) both; transition: background 0.15s; }
978
- .g-conflicts li.lit { background: color-mix(in srgb, var(--warn) 7%, transparent); }
979
- .g-c-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; }
980
- .g-c-head .g-num { align-self: center; }
981
- .g-file { font: 12.5px var(--mono); }
982
- .g-c-detail { color: var(--ink-2); }
983
- .g-sides { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; align-items: baseline; margin: 5px 0 0 25px; font-size: 12px; }
984
- .g-side { display: contents; }
985
- .g-num.plain { color: var(--muted); background: var(--bg-2); }
986
- .g-who { font: 11.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
987
- .g-side code { font: 12px var(--mono); white-space: pre-wrap; word-break: break-word; padding: 2px 6px; border-radius: 5px; background: var(--add-bg); color: var(--ink-2); }
988
- .g-side.theirs code { background: color-mix(in srgb, var(--warn) 8%, transparent); }
989
- .g-res { display: flex; gap: 6px; margin: 5px 0 0 25px; font-size: 12.5px; color: var(--ink-2); }
990
- .g-res .i { width: 13px; height: 13px; margin-top: 2px; color: var(--good); flex: none; }
991
- .g-foot { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-top: 8px; font-size: 13.5px; color: var(--ink); }
992
- .g-foot > .i { width: 14px; height: 14px; color: var(--muted); flex: none; }
993
- .g-foot.st-conflict > .i, .g-count { color: var(--warn); }
994
- .g-foot.st-ready > .i { color: var(--good); }
995
- .g-foot.st-merged > .i { color: var(--g-merged); }
996
- .g-foot.st-blocked > .i { color: var(--bad); }
997
- .g-foot-text { flex: 1; min-width: 0; }
998
- .g-count { font: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
999
- .g-action { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); transition: background 0.15s; }
1000
- .g-action:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 16%, transparent); }
1001
- .g-action:disabled { opacity: 0.5; cursor: default; }
1002
- @container (max-width: 520px) {
1003
- .g-meta { display: none; }
1004
- }
1005
- @media (prefers-color-scheme: dark) {
1006
- :root:not([data-theme='light']) .b-graph { --g-1: #6d8dff; --g-2: #2fd0b4; --g-3: #a78bfa; --g-4: #f472b6; --g-merged: #b48cff; }
1007
- }
1008
-
1009
- /* checklist */
1010
- .b-check { padding: 16px 20px 12px; }
1011
- .b-check ul { list-style: none; margin: 0; padding: 0; }
1012
- .b-check li { display: flex; gap: 10px; padding: 5px 0; animation: rise 0.45s var(--ease) calc(200ms + var(--k) * 90ms) both; }
1013
- .b-check .box { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--line-2); color: transparent; flex: none; }
1014
- .b-check .box .i { width: 12px; height: 12px; }
1015
- .b-check li.done .box { background: var(--good); border-color: var(--good); color: #fff; animation: check-in 0.4s var(--ease) calc(400ms + var(--k) * 90ms) both; }
1016
- .b-check li.done > span:last-child { color: var(--ink-2); }
1017
- .b-check li:not(.done) > span:last-child { color: var(--muted); }
1018
- @keyframes check-in { from { transform: scale(0.4); background: transparent; border-color: var(--line-2); } }
1019
-
1020
- /* callout */
1021
- .b-callout { --t: var(--info); display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--t) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t) 20%, var(--line)); }
1022
- .b-callout.tone-success { --t: var(--good); }
1023
- .b-callout.tone-warn { --t: var(--warn); }
1024
- .b-callout.tone-danger { --t: var(--bad); }
1025
- .b-callout .ic { color: var(--t); padding-top: 1px; }
1026
- .b-callout b { display: block; font-weight: 600; margin-bottom: 2px; color: var(--ink); }
1027
- .b-callout .prose { font-size: 14px; }
1028
-
1029
- /* image */
1030
- .b-image { margin: 0; overflow: hidden; }
1031
- .b-image img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--surface-2); cursor: zoom-in; }
1032
- .b-image figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
1033
- .b-image.broken img { min-height: 80px; }
1034
- .lightbox { max-width: 92vw; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow-2); }
1035
-
1036
- /* next */
1037
- .b-next { padding-top: 6px; }
1038
- .next-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
1039
- .next-label .i { color: var(--muted); width: 14px; height: 14px; }
1040
- .chips { display: flex; flex-wrap: wrap; gap: 6px; }
1041
- .chip {
1042
- padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2);
1043
- transition: border-color 0.15s, background 0.15s, color 0.15s; animation: rise 0.4s var(--ease) calc(200ms + var(--k) * 50ms) both; text-align: left;
1044
- }
1045
- .chip:hover { border-color: var(--faint); color: var(--ink); background: var(--surface-2); }
1046
-
1047
- /* actions block */
1048
- .b-actions { padding: 16px 18px 12px; }
1049
- .act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
1050
- .act-row { border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; animation: rise 0.45s var(--ease) calc(150ms + var(--k) * 70ms) both; transition: border-color 0.15s; }
1051
- .act-row.ran-ok { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
1052
- .act-row.ran-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
1053
- .act-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; }
1054
- .act-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
1055
- .act-info b { font-weight: 600; font-size: 13.5px; color: var(--ink); }
1056
- .act-cmd { font: 11.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1057
- .act-detail { font-size: 12.5px; color: var(--muted); }
1058
- .act-side { display: inline-flex; align-items: center; gap: 8px; flex: none; }
1059
- .act-side .exit { background: var(--bg-2); color: var(--muted); }
1060
- .act-side .exit.ok { background: var(--add-bg); color: var(--good); }
1061
- .act-side .exit.bad { background: var(--del-bg); color: var(--bad); }
1062
- .act-res { border-top: 1px solid var(--line); background: var(--term-bg); color: var(--term-ink); padding: 10px 12px; }
1063
- .act-out { margin: 0; font: 12px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 280px; overflow-y: auto; color: #b4b4b0; }
1064
- .act-fix { margin-top: 8px; }
1065
-
1066
- /* interactive terminal, tests, revert & checkpoints */
1067
- .term-run { color: #b4b4b0; border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); }
1068
- .term-run:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
1069
- .tests-cmd { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
1070
- .tests-cmd .cmdline { margin-top: 0; }
1071
- .tests-rerun-out { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--term-bg); color: var(--term-ink); }
1072
- .tests-rerun-out pre { margin: 0; font: 12px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow-y: auto; color: #b4b4b0; }
1073
- .rev-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 5px; font: 500 11px var(--sans); background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
1074
- .cp-sha { font: 500 11px var(--mono); color: var(--faint); padding: 1px 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
1075
- .b-diff.is-reverted .diff-scroll { opacity: 0.55; }
1076
- .b-diff.is-reverted .path .base, .b-files li.is-reverted .path .base { text-decoration: line-through; color: var(--muted); }
1077
- .cp-rollback { display: inline-flex; align-items: center; gap: 5px; }
1078
- .cp-rollback .i { width: 12px; height: 12px; }
1079
- .cp-rollback.rolled-back { color: var(--accent-ink); }
1080
-
1081
- /* trail */
1082
- .trail { margin-top: 18px; }
1083
- .trail-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 2px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--faint); }
1084
- .tb { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
1085
- .tb .i { width: 13px; height: 13px; }
1086
- .trail-bar .link { font-size: 12px; }
1087
- /* Activity counts double as the Activity toggle, so the bar carries no separate "Activity" link. */
1088
- .tb-acts { display: inline-flex; align-items: center; gap: 10px; margin: -3px -6px; padding: 3px 6px; border-radius: 6px; color: inherit; transition: color 0.15s, background 0.15s; }
1089
- .tb-acts:hover, .tb-acts.on { color: var(--ink); background: var(--bg-2); }
1090
- /* Secondary turn actions: icon-only, faint until the turn is hovered (same rule as the thumbs). */
1091
- .tb-tools { display: inline-flex; align-items: center; gap: 1px; margin-left: -8px; }
1092
- .tb-btn { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; color: var(--faint); opacity: 0.5; transition: color 0.15s, background 0.15s, opacity 0.15s; }
1093
- .tb-btn .i { width: 13px; height: 13px; }
1094
- .tb-btn:hover, .tb-btn.on { color: var(--ink); background: var(--bg-2); }
1095
- .turn:hover .tb-btn, .tb-btn:focus-visible, .tb-btn.on { opacity: 1; }
1096
- .trail-body { padding: 8px 0 0; animation: rise 0.4s var(--ease); }
1097
- .trail-body .presentation { gap: 10px; }
1098
- /* Thumbs: faint until the trail is hovered or the turn is rated, so a finished turn reads the same. */
1099
- .rate { display: inline-flex; gap: 1px; opacity: 0.5; transition: opacity 0.15s; }
1100
- .turn:hover .rate, .rate.rated, .rate:focus-within { opacity: 1; }
1101
- .rate-btn { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; color: var(--faint); transition: color 0.15s, background 0.15s; }
1102
- .rate-btn .i { width: 13px; height: 13px; }
1103
- .rate-btn:hover { color: var(--ink); background: var(--bg-2); }
1104
- .rate-btn[data-rate="up"].on { color: var(--good); }
1105
- .rate-btn[data-rate="down"].on { color: var(--bad); }
1106
- .rate-btn.on .i { fill: color-mix(in srgb, currentColor 18%, transparent); }
1107
- .rate.thanked [data-rate="up"].on .i { animation: thumb-pop 0.45s var(--ease); }
1108
- @keyframes thumb-pop { 40% { transform: scale(1.35) rotate(-12deg); } }
1109
- .why { display: grid; gap: 6px; }
1110
- .why .textarea { min-height: 0; resize: none; }
1111
- .why-foot { display: flex; align-items: center; gap: 10px; }
1112
- .why-foot .muted { margin-right: auto; }
1113
- .why-foot .primary { height: 24px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
1114
- .fb-modal { width: min(520px, 100%); }
1115
- .fb-rate { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
1116
- .fb-rate span { margin-right: 6px; }
1117
- .fb-rate .rate-btn { width: 30px; height: 28px; }
1118
- .fb-rate .rate-btn .i { width: 16px; height: 16px; }
1119
- .fb-modal .ship-foot { margin-top: 12px; }
1120
-
1121
- /* ---------- per-item composer ---------- */
1122
- .composer {
1123
- padding: 6px 8px 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
1124
- transition: box-shadow 0.15s, border-color 0.15s;
1125
- }
1126
- .composer:focus-within { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
1127
- .composer textarea { min-height: 26px; font-size: 14px; padding: 6px 2px; }
1128
- .composer textarea:disabled { cursor: not-allowed; }
1129
- .c-bar { display: flex; align-items: center; gap: 8px; }
1130
- .c-queued { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
1131
- .c-queued:not(:empty) { padding: 4px 0 6px; }
1132
- .cq { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 6px 30px 6px 10px; border-radius: 8px; border: 1px dashed var(--line-2); font-size: 12.5px; animation: pop 0.35s var(--ease); }
1133
- .cq-tag { flex: none; font-size: 11px; font-weight: 600; color: var(--accent-ink); }
1134
- .cq .att-x:hover { color: var(--bad); }
1135
- .cq-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
1136
- .c-hint { flex: 1; font-size: 11.5px; color: var(--faint); }
1137
- .c-bar .mode-btn { height: 30px; min-width: 30px; padding: 0 8px; }
1138
- .c-bar .mode-btn.changed { background: var(--bg-2); }
1139
- .t-mode { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 5px; font: 500 11px var(--sans); color: var(--muted); border: 1px solid var(--line); }
1140
- .t-mode .i { width: 12px; height: 12px; }
1141
- .t-mode.m-plan { color: var(--accent-ink); }
1142
- .t-mode.m-auto { color: var(--warn); }
1143
- .send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); transition: opacity 0.15s; }
1144
- .send:hover { opacity: 0.86; }
1145
- .send:disabled { opacity: 0.5; }
1146
- .send.busy { opacity: 1; position: relative; color: transparent; }
1147
- .send.busy::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid var(--bg); border-right-color: transparent; animation: spin 0.7s linear infinite; }
1148
- @keyframes spin { to { transform: rotate(360deg); } }
1149
- .c-done { color: var(--muted); }
1150
- .c-ship { color: var(--accent-ink); }
1151
- .c-queue { color: var(--faint); font-size: 12px; }
1152
- .c-queue.on { color: var(--ink); background: var(--bg-2); }
1153
- .c-done:hover { color: var(--good); }
1154
-
1155
- /* attachments tray */
1156
- .tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 8px; }
1157
- .att {
1158
- position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 30px 0 4px; border-radius: 10px;
1159
- background: var(--surface-2); border: 1px solid var(--line); max-width: 240px; animation: pop 0.35s var(--ease);
1160
- }
1161
- .att img { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; }
1162
- .att-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: var(--bg-2); color: var(--muted); }
1163
- .att-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
1164
- .att-size { font-size: 11px; color: var(--faint); white-space: nowrap; }
1165
- .att-x { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--muted); }
1166
- .att-x:hover { background: var(--bg-2); color: var(--ink); }
1167
- .att-x .i { width: 12px; height: 12px; }
1168
- .att.uploading::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
1169
- .att.failed { border-color: var(--bad); }
1170
-
1171
- /* ---------- overlay, modals, menus, toasts ---------- */
1172
- .overlay {
1173
- position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
1174
- background: rgba(0, 0, 0, 0.28);
1175
- opacity: 0; transition: opacity 0.2s;
1176
- }
1177
- .overlay.on { opacity: 1; }
1178
- .modal {
1179
- width: min(600px, 100%); max-height: 86vh; overflow-y: auto; padding: 18px 20px 20px; border-radius: 14px;
1180
- background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35); transform: translateY(4px); transition: transform 0.2s var(--ease);
1181
- }
1182
- .overlay.on .modal { transform: none; }
1183
- .modal header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
1184
- .modal h2 { margin: 0; font: 600 18px/1.2 var(--display); letter-spacing: -0.015em; }
1185
- .modal h4 { margin: 22px 0 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
1186
- .modal .hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
1187
- .modal .hint code { font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: var(--bg-2); }
1188
- /* rerun dialog: the launcher's prompt + harness bar, in a modal. Its popovers sit above the overlay. */
1189
- .rr-box { padding: 8px 10px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); transition: border-color 0.15s, box-shadow 0.15s; }
1190
- .rr-box:is(:focus-within, :has(.open)) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
1191
- .rr-prompt { display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent; padding: 6px 2px; font-size: 14.5px; line-height: 1.55; color: var(--ink); min-height: 72px; }
1192
- .rr-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 6px; }
1193
- .rr-file { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--ink-2); background: var(--bg-2); }
1194
- .rr-file .i { width: 12px; height: 12px; color: var(--muted); }
1195
- .overlay:not([hidden]) ~ :is(.picker, .menu) { z-index: 55; }
1196
- .add-row { display: flex; gap: 8px; }
1197
- .path-input { position: relative; flex: 1; }
1198
- .path-input .i { width: 16px; height: 16px; }
1199
- .path-input .browse { display: grid; place-items: center; margin-left: -4px; width: 26px; height: 26px; border-radius: 7px; }
1200
- .path-input .browse:hover { background: var(--bg-2); }
1201
- .path-input .browse:hover .i { color: var(--accent); }
1202
- .suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 2; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
1203
- .suggest button { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 8px; font: 12.5px var(--mono); color: var(--ink-2); }
1204
- .suggest button:hover, .suggest button.on { background: var(--accent-soft); color: var(--ink); }
1205
- .plist { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
1206
- .prow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 11px; transition: background 0.15s; }
1207
- .prow:hover { background: var(--surface-2); }
1208
- .swatch { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
1209
- .swatch:hover { background: var(--bg-2); }
1210
- .swatch .p-dot { width: 12px; height: 12px; }
1211
- .prow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
1212
- .pname { border: 0; background: transparent; outline: 0; font-weight: 600; padding: 0; border-radius: 4px; }
1213
- .pname:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
1214
- .ppath { font: 11.5px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1215
- .pcount { font-size: 12px; color: var(--muted); }
1216
- .found { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
1217
- .found-item { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; text-align: left; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); transition: all 0.15s; }
1218
- .found-item:hover { border-color: var(--accent); background: var(--accent-soft); }
1219
- .found-item .i { grid-row: span 2; margin-top: 2px; color: var(--accent); }
1220
- .found-item b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1221
- .found-item span { font: 11px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1222
- .settings-modal label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
1223
- .settings-modal label > span { font-weight: 500; }
1224
- .settings-modal .setting { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
1225
- .settings-modal .setting > span:first-child { font-weight: 500; margin-right: auto; }
1226
- .switch { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--line-2); transition: background 0.15s; cursor: pointer; }
1227
- .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
1228
- .switch[aria-checked='true'] { background: var(--accent); }
1229
- .switch[aria-checked='true']::after { transform: translateX(14px); }
1230
- .switch:disabled { opacity: 0.4; cursor: not-allowed; }
1231
- .settings-modal label > .input { flex: 1; max-width: 340px; }
1232
-
1233
- /* settings: sidebar of sections, one pane at a time */
1234
- .modal.sx { display: grid; grid-template-columns: 196px 1fr; width: min(880px, 100%); height: min(620px, 86vh); padding: 0; overflow: hidden; }
1235
- .sx-nav { display: flex; flex-direction: column; gap: 1px; padding: 18px 10px; background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; }
1236
- .sx-nav h2 { margin: 0 8px 14px; font: 600 18px/1.2 var(--display); letter-spacing: -0.015em; }
1237
- .sx-nav button { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: left; transition: background 0.12s, color 0.12s; }
1238
- .sx-nav button .i { width: 15px; height: 15px; color: var(--muted); }
1239
- .sx-nav button span { flex: 1; }
1240
- .sx-nav button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
1241
- .sx-nav button[aria-selected='true'] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-1); }
1242
- .sx-nav button[aria-selected='true'] .i { color: var(--accent); }
1243
- .sx-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
1244
- .sx-main { min-width: 0; padding: 18px 24px 24px; overflow-y: auto; }
1245
- .sx-main > header { align-items: flex-start; gap: 16px; margin-bottom: 18px; }
1246
- .sx-title { margin: 2px 0 4px; font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; }
1247
- .sx-lede { margin: 0; font-size: 12.5px; color: var(--muted); }
1248
- .sx-group { --field-bg: var(--surface); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
1249
- .sx-group + .sx-group, .sx-pane > * + .sx-group { margin-top: 14px; }
1250
- .sx-row { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 9px 14px; }
1251
- .sx-row + .sx-row { border-top: 1px solid var(--line); }
1252
- .sx-row[hidden] { display: none; }
1253
- .sx-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
1254
- .sx-text b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; }
1255
- .sx-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
1256
- .sx-text code { font-size: 11px; }
1257
- .sx-ctl { flex: none; display: flex; align-items: center; gap: 8px; }
1258
- .sx-ctl .input { width: 300px; }
1259
- .sx-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
1260
- .sx-state.bad { color: var(--bad); }
1261
- #recheck.busy { cursor: progress; }
1262
- #recheck.busy .i { animation: spin 0.8s linear infinite reverse; }
1263
- .sx-usage .it-loading { grid-column: 1 / -1; }
1264
- /* a view (Memory, Automations, Usage, Phone) opened inside Settings: no dialog chrome of its own */
1265
- .modal.embedded { width: auto; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; transform: none; }
1266
- .modal.embedded header { justify-content: flex-start; gap: 10px; }
1267
- .modal.embedded header h2 { font-size: 16px; margin-right: auto; }
1268
- .sx-back { margin-left: -8px; padding: 0 8px 0 4px; color: var(--muted); }
1269
- .sx-back .i { width: 16px; height: 16px; }
1270
- @media (max-width: 640px) {
1271
- .modal.sx { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
1272
- .sx-nav { flex-direction: row; align-items: center; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
1273
- .sx-nav h2 { display: none; }
1274
- .sx-nav button { flex: none; }
1275
- .sx-main { padding: 16px; }
1276
- .sx-ctl .input { width: 180px; }
1277
- .sx-usage { grid-template-columns: repeat(2, 1fr); }
1278
- }
1279
-
1280
- /* memory: what the background retros learned */
1281
- .memory-modal { width: min(680px, 100%); }
1282
- .memory-modal header { gap: 10px; }
1283
- .memory-modal header h2 { margin-right: auto; }
1284
- .mem-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
1285
- .mem-live .orb.live { --s: 11px; border-width: 1.5px; }
1286
- .mem-lede { margin: -6px 0 14px; font-size: 13px; color: var(--muted); }
1287
- .mem-tabs { display: flex; align-items: center; gap: 2px; padding: 3px; overflow-x: auto; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
1288
- .mem-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; transition: background 0.12s, color 0.12s; }
1289
- .mem-tabs button:hover { color: var(--ink); }
1290
- .mem-tabs button.on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-1); }
1291
- .mem-tabs button span { min-width: 16px; padding: 0 4px; border-radius: 5px; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; background: var(--line); color: var(--muted); }
1292
- .mem-tabs button.on span { background: var(--accent-soft); color: var(--accent-ink); }
1293
- .mem-tabs i { flex: 1; min-width: 8px; }
1294
- .mem-body { padding-top: 6px; }
1295
- .mem-body.off .mem-sec, .mem-body.off .tl { opacity: 0.5; }
1296
- .mem-off { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: var(--ink-2); background: var(--bg-2); }
1297
- .mem-off span { flex: 1; }
1298
- .mem-off .i { color: var(--muted); }
1299
- .mem-budget { margin: 10px 2px 0; }
1300
- .mem-sec h4 { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
1301
- .mem-sec h4 .muted { font-weight: 400; }
1302
- .mem-sec h4 em { margin-left: auto; font: 500 11px var(--mono); font-style: normal; color: var(--faint); }
1303
- .mem-sec h4 em.full { color: var(--warn); }
1304
- .mem-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; transition: background 0.12s; }
1305
- .mem-item:hover { background: var(--surface-2); }
1306
- .mem-ico { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); }
1307
- .mem-sec[data-kind='lessons'] .mem-ico, .mem-sec[data-kind='lessons'] .mem-edit .mem-ico { background: var(--add-bg); color: var(--good); }
1308
- .mem-ico .i { width: 13px; height: 13px; }
1309
- .mem-main { flex: 1; min-width: 0; }
1310
- .mem-main p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
1311
- .mem-src { font-size: 11.5px; color: var(--faint); }
1312
- .mem-src a, .tl-head a { color: inherit; text-decoration: none; }
1313
- .mem-src a:hover, .tl-head a:hover { color: var(--accent-ink); text-decoration: underline; }
1314
- .mem-acts { display: flex; gap: 2px; opacity: 0; transition: opacity 0.12s; }
1315
- .mem-item:hover .mem-acts, .mem-item:focus-within .mem-acts { opacity: 1; }
1316
- .mem-edit { align-items: center; padding-top: 7px; padding-bottom: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent); }
1317
- .mem-edit input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 13.5px var(--sans); color: var(--ink); }
1318
- .mem-add { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 4px 8px 4px 6px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
1319
- .mem-add:hover { color: var(--accent-ink); background: var(--accent-soft); }
1320
- .mem-add .i { width: 13px; height: 13px; }
1321
- .mem-empty { margin: 2px 0 4px; font-size: 12.5px; color: var(--faint); }
1322
- .mem-body > .mem-empty { margin: 22px 0 8px; text-align: center; }
1323
- /* retros: a timeline, newest first */
1324
- .tl { position: relative; display: flex; gap: 12px; padding: 12px 0 2px; }
1325
- .tl:first-of-type { margin-top: 6px; }
1326
- .tl::before { content: ''; position: absolute; left: 4.5px; top: 26px; bottom: -12px; width: 1px; background: var(--line); }
1327
- .tl:last-child::before { display: none; }
1328
- .tl-dot { flex: none; display: grid; place-items: center; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--surface); }
1329
- .tl.nothing .tl-dot { background: var(--line-2); }
1330
- .tl.failed .tl-dot { background: var(--bad); }
1331
- .tl.running .tl-dot { background: none; }
1332
- .tl.running .orb.live { --s: 12px; border-width: 1.5px; }
1333
- .tl-main { flex: 1; min-width: 0; }
1334
- .tl-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
1335
- .tl-head b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1336
- .tl-head .muted:last-child { margin-left: auto; flex: none; }
1337
- .tl-main p { margin: 2px 0; font-size: 12.5px; line-height: 1.45; }
1338
- .tl-add::before { content: '+ '; color: var(--good); font-weight: 600; }
1339
- .tl-del { color: var(--muted); }
1340
- .tl-del::before { content: '− '; font-weight: 600; }
1341
- .tl-tag { margin-left: 4px; font-size: 11px; color: var(--faint); white-space: nowrap; }
1342
- .tl-err { color: var(--bad); font: 11.5px/1.45 var(--mono); }
1343
- .keys-modal { width: min(380px, 100%); }
1344
- .krow { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
1345
- .krow kbd { min-width: 56px; text-align: center; font-size: 11.5px; }
1346
-
1347
- /* ---------- command palette (⌘K) ---------- */
1348
- .search-btn {
1349
- display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px 0 10px; border-radius: 9px;
1350
- border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13px; transition: border-color 0.15s, color 0.15s;
1351
- }
1352
- .search-btn:hover { border-color: var(--line-2); color: var(--ink); }
1353
- .search-btn .i { width: 14px; height: 14px; }
1354
- .search-btn kbd { margin-left: 8px; }
1355
- .update-btn {
1356
- display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px;
1357
- background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 500; transition: background 0.15s;
1358
- }
1359
- .update-btn[hidden] { display: none; }
1360
- .update-btn:hover { background: var(--accent); color: #fff; }
1361
- .update-btn.busy { opacity: 0.7; cursor: progress; }
1362
- .update-btn .i { width: 14px; height: 14px; }
1363
- .auto-btn {
1364
- display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 9px;
1365
- border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 13px; transition: border-color 0.15s, color 0.15s;
1366
- }
1367
- .auto-btn:hover { border-color: var(--line-2); color: var(--ink); }
1368
- .auto-btn .i { width: 14px; height: 14px; }
1369
- .auto-btn.live .i { color: var(--accent); }
1370
- .ab-n { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
1371
- .ab-n[hidden] { display: none; }
1372
- .overlay:has(.palette) { place-items: start center; padding-top: min(14vh, 120px); background: rgba(0, 0, 0, 0.18); }
1373
- .palette {
1374
- display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(560px, 72vh); overflow: hidden; border-radius: 14px;
1375
- background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 30px 70px -18px rgba(0, 0, 0, 0.4);
1376
- transform: scale(0.98) translateY(-4px); transition: transform 0.18s var(--ease);
1377
- }
1378
- .overlay.on .palette { transform: none; }
1379
- .pal-input { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-bottom: 1px solid var(--line); }
1380
- .pal-input .i { width: 18px; height: 18px; color: var(--faint); }
1381
- .pal-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
1382
- .pal-input input::placeholder { color: var(--faint); }
1383
- .pal-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; scroll-padding: 28px 0 6px; overscroll-behavior: contain; }
1384
- .pal-group { padding: 10px 10px 5px; font-size: 11.5px; font-weight: 500; color: var(--faint); letter-spacing: 0.01em; }
1385
- .pal-group:first-child { padding-top: 6px; }
1386
- .pal-row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
1387
- .pal-row.on { background: var(--bg-2); color: var(--ink); }
1388
- .pal-lead { display: grid; place-items: center; width: 18px; flex: none; color: var(--muted); }
1389
- .pal-row.on .pal-lead { color: var(--ink); }
1390
- .pal-lead .i { width: 15px; height: 15px; }
1391
- .pal-label { flex: none; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1392
- .pal-label mark { background: none; color: var(--accent-ink); font-weight: 600; }
1393
- .pal-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--faint); }
1394
- .pal-kbd { margin-left: auto; display: flex; gap: 3px; flex: none; }
1395
- .pal-empty { padding: 34px 12px; text-align: center; color: var(--muted); font-size: 13.5px; }
1396
- .pal-foot { flex: none; display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11.5px; color: var(--faint); }
1397
- .pal-foot kbd { margin-right: 3px; }
1398
-
1399
- .menu { position: fixed; z-index: 40; min-width: 220px; padding: 5px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: pop 0.2s var(--ease); }
1400
- .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
1401
- .menu button:hover { background: var(--bg-2); color: var(--ink); }
1402
- .menu .danger:hover { color: var(--bad); background: var(--del-bg); }
1403
- .menu-kbd { margin-left: auto; }
1404
-
1405
- .toasts { position: fixed; bottom: 22px; left: 50%; translate: -50% 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
1406
- .toast {
1407
- pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 16px; border-radius: 13px; max-width: min(560px, 92vw);
1408
- background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 13.5px; animation: toast-in 0.35s var(--ease);
1409
- transition: opacity 0.35s, transform 0.35s;
1410
- }
1411
- .toast .i { vertical-align: -3px; margin-right: 4px; }
1412
- .toast .link { color: color-mix(in srgb, var(--bg) 75%, var(--accent)); white-space: nowrap; }
1413
- .toast.bad { background: var(--bad); color: #fff; }
1414
- .toast.out { opacity: 0; transform: translateY(8px); }
1415
- @keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
1416
-
1417
- .flying-wisp {
1418
- position: fixed; z-index: 70; width: 12px; height: 12px; border-radius: 50%; pointer-events: none;
1419
- background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
1420
- }
1421
-
1422
- @keyframes pulse { 50% { opacity: 0.35; } }
1423
- @keyframes ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
1424
- @keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
1425
-
1426
- /* ---------- machines: other computers over SSH ---------- */
1427
- .machines-btn.trouble .i { color: var(--warn); }
1428
- .q-machine {
1429
- display: inline-flex; align-items: center; gap: 4px; max-width: 120px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line);
1430
- font-size: 11px; font-weight: 500; line-height: 17px; color: var(--ink-2); white-space: nowrap;
1431
- }
1432
- .q-machine span { overflow: hidden; text-overflow: ellipsis; }
1433
- .q-machine .i { flex: none; width: 11px; height: 11px; color: var(--accent); }
1434
- .q-machine.off { color: var(--faint); border-style: dashed; }
1435
- .q-machine.off .i { color: var(--faint); }
1436
- /* the launcher: one group of project chips per place it runs on */
1437
- .l-projects { row-gap: 6px; }
1438
- .lp-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
1439
- .lp-group + .lp-group { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); }
1440
- .lp-gl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
1441
- .lp-gl .i { width: 13px; height: 13px; color: var(--accent); }
1442
- .lp-gl.off { color: var(--faint); }
1443
- .lp-gl.off .i { color: var(--faint); }
1444
- .lp-gl .link { margin-left: 2px; }
1445
- .where-btn .chev { width: 11px; height: 11px; opacity: 0.6; transform: rotate(90deg); }
1446
- .where-btn.bare span, .where-btn.bare .chev { display: none; }
1447
- .where-menu { min-width: 300px; }
1448
- .wm-h { display: flex; align-items: baseline; gap: 8px; padding: 6px 10px 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
1449
- .wm-h small { font-weight: 400; color: var(--faint); }
1450
- .where-menu .wm-row { gap: 10px; }
1451
- .wm-check { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid var(--line-2); color: transparent; }
1452
- .wm-check .i { width: 11px; height: 11px; }
1453
- .wm-row.on .wm-check { background: var(--accent); border-color: var(--accent); color: #fff; }
1454
- .wm-icon { position: relative; display: inline-grid; place-items: center; flex: none; color: var(--muted); }
1455
- .wm-icon .i { width: 16px; height: 16px; }
1456
- .wm-icon .dot { position: absolute; right: -3px; bottom: -2px; width: 7px; height: 7px; border: 1.5px solid var(--surface); box-sizing: content-box; }
1457
- .wm-row.on .wm-icon { color: var(--accent); }
1458
- .wm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
1459
- .wm-name b { font-weight: 500; color: var(--ink); }
1460
- .wm-name small { font: 11px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1461
- .wm-agents { display: inline-flex; gap: 5px; }
1462
- .wm-only { padding: 1px 6px; border-radius: 6px; font-size: 11px; color: var(--muted); opacity: 0; transition: opacity 0.12s; }
1463
- .wm-row:hover .wm-only { opacity: 1; }
1464
- .wm-only:hover { background: var(--bg-2); color: var(--ink); }
1465
- .wm-sep { height: 1px; margin: 5px 4px; background: var(--line); }
1466
- .p-chip .p-where { width: 11px; height: 11px; color: var(--muted); }
1467
- .projects-modal .where { margin-bottom: 12px; }
1468
- .projects-modal .where .i { width: 13px; height: 13px; color: var(--muted); }
1469
- .projects-modal .where button.on .i { color: var(--accent); }
1470
- .projects-modal .where .dot { width: 6px; height: 6px; }
1471
- .machines-modal { width: min(640px, 100%); }
1472
- .mc-list { display: flex; flex-direction: column; gap: 10px; }
1473
- .mc { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
1474
- .mc-head { display: flex; align-items: center; gap: 10px; }
1475
- .mc-icon { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--bg-2); color: var(--muted); }
1476
- .mc-icon .i { width: 17px; height: 17px; }
1477
- .mc-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); border: 2px solid var(--surface); }
1478
- .mc.st-online .mc-icon { color: var(--accent); }
1479
- .mc.st-online .mc-dot { background: var(--good); }
1480
- .mc.st-error .mc-dot { background: var(--bad); }
1481
- .mc:is(.st-connecting, .st-reconnecting) .mc-dot { background: var(--warn); animation: blink 1.2s infinite; }
1482
- .mc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
1483
- .mc-title b { font-size: 14px; font-weight: 600; }
1484
- .mc-title span { font: 11.5px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1485
- .mc-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
1486
- .mc.st-online .mc-state { color: var(--good); }
1487
- .mc.st-error .mc-state { color: var(--bad); }
1488
- .mc-meta, .mc-steps, .mc-hint, .mc-projects, .mc-edit { margin-left: 42px; }
1489
- .mc-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
1490
- .mc-meta .bad { color: var(--bad); }
1491
- .mc-meta .mc-update { margin-left: -6px; color: var(--accent); }
1492
- .mc-agents { display: inline-flex; gap: 7px; }
1493
- .mc-steps { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-top: 10px; margin-bottom: 0; padding: 0; }
1494
- .mc-steps li { display: grid; grid-template-columns: 16px auto 1fr; align-items: center; column-gap: 8px; font-size: 12.5px; color: var(--faint); }
1495
- .mc-steps li b { font-weight: 500; }
1496
- .mc-steps li small { font: 11.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1497
- .mc-si { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); }
1498
- .mc-si .i { width: 10px; height: 10px; }
1499
- .mc-steps .s-done { color: var(--ink-2); }
1500
- .mc-steps .s-done .mc-si { background: var(--good); border-color: var(--good); color: #fff; animation: check-in 0.25s var(--ease); }
1501
- .mc-steps .s-run { color: var(--ink); }
1502
- .mc-steps .s-run .mc-si { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
1503
- .mc-steps .s-fail { color: var(--bad); }
1504
- .mc-steps .s-fail .mc-si { background: var(--bad); border-color: var(--bad); color: #fff; }
1505
- .mc-steps .s-fail small { color: var(--bad); white-space: normal; }
1506
- .mc-steps .s-warn { color: var(--warn); }
1507
- .mc-steps .s-warn .mc-si { border-color: var(--warn); color: var(--warn); }
1508
- .mc-steps .s-warn small { white-space: normal; }
1509
- .mc-hint { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--bad) 25%, var(--line)); background: var(--del-bg); font-size: 12.5px; color: var(--ink-2); }
1510
- .mc-hint.soft { border-color: var(--line); background: var(--surface-2); }
1511
- .mc-hint p { margin: 0 0 6px; }
1512
- .mc-hint > :last-child { margin-bottom: 0; }
1513
- .mc-cmd { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 3px 3px 3px 10px; border-radius: 8px; background: var(--term-bg); color: var(--term-ink); }
1514
- .mc-cmd code { flex: 1; font: 12px var(--mono); }
1515
- .mc-cmd .ghost { color: var(--term-ink); }
1516
- .mc-cmd .ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
1517
- .mc-log summary { cursor: pointer; font-size: 12px; color: var(--muted); width: max-content; }
1518
- .mc-log pre { max-height: 180px; overflow: auto; margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font: 11px/1.5 var(--mono); white-space: pre-wrap; }
1519
- .mc-projects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
1520
- .mc-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
1521
- .mc-add { margin-top: 12px; }
1522
- .mc-add h4 { margin-top: 18px; }
1523
- .mc-new { height: 32px; }
1524
- .mc-found { margin-bottom: 14px; }
1525
- .mc-found h4 { margin: 0 0 8px; }
1526
- .mc-found-list { display: flex; flex-wrap: wrap; gap: 6px; }
1527
- .mc-found .lp-chip .i { width: 14px; height: 14px; color: var(--muted); }
1528
- .mc-found .lp-chip.off { color: var(--muted); }
1529
- .mc-fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
1530
- .lp-chip.off .mc-fdot { background: var(--faint); }
1531
- .mc-form { display: flex; flex-direction: column; gap: 10px; }
1532
- .mc-row { display: flex; gap: 10px; }
1533
- .mc-field { display: flex; flex-direction: column; gap: 5px; width: 150px; min-width: 0; }
1534
- .mc-field.grow { flex: 1; width: auto; }
1535
- .mc-field span { font-size: 12px; font-weight: 500; color: var(--ink-2); }
1536
- .mc-adv summary { cursor: pointer; width: max-content; font-size: 12.5px; color: var(--muted); }
1537
- .mc-adv[open] summary { margin-bottom: 8px; }
1538
- .mc-check { margin-top: 8px; }
1539
- /* Hosted inside Settings: undo its row styling for labels (centred, padded, bordered, input flexed to 0 tall). */
1540
- .mc-form label { padding: 0; border-bottom: 0; }
1541
- .mc-form .mc-field { align-items: stretch; justify-content: flex-start; gap: 5px; }
1542
- .mc-form .mc-field > span { text-align: left; }
1543
- .mc-form .mc-field > .input { flex: none; max-width: none; }
1544
- .mc-form .mc-check { display: inline-flex; justify-content: flex-start; gap: 8px; width: max-content; }
1545
- .mc-foot { display: flex; align-items: center; gap: 10px; }
1546
- .mc-foot .hint { flex: 1; margin: 0 !important; font-size: 12px !important; }
1547
- .mc-foot .primary { flex: none; }
1548
- .mc-foot .primary .i { width: 14px; height: 14px; }
1549
- .menu button.danger:hover { color: var(--bad); background: var(--del-bg); }
1550
-
1551
- /* ---------- responsive ---------- */
1552
- @media (max-width: 720px) {
1553
- .topbar { padding: 0 12px; gap: 10px; }
1554
- .search-btn span, .search-btn kbd, .update-btn span, .auto-btn span { display: none; }
1555
- .auto-btn { padding: 0 8px; border-color: transparent; background: none; }
1556
- .search-btn { padding: 0 8px; border-color: transparent; background: none; }
1557
- .feed-wrap { padding: 14px 16px 80px; }
1558
- .launcher.docked { width: calc(100% - 32px); }
1559
- .it-side .q-proj, .it-actions span, .c-done span, .q-machine span { display: none; }
1560
- .mc-row { flex-direction: column; }
1561
- .mc-field { width: auto; }
1562
- .mc-meta, .mc-steps, .mc-hint, .mc-projects, .mc-edit { margin-left: 0; }
1563
- .turns { padding: 6px 14px 8px; }
1564
- .it-dock { padding: 4px 10px 10px; }
1565
- .b-hero h2 { font-size: 22px; }
1566
- .b-compare { grid-template-columns: 1fr; gap: 8px; }
1567
- .b-compare .arrow { transform: rotate(90deg); height: 20px; }
1568
- .cols { flex-direction: column; gap: 30px; align-items: stretch; }
1569
- .col { max-width: none; flex-direction: row; justify-content: center; }
1570
- .col .node { flex: 1; max-width: 260px; }
1571
- }
1572
-
1573
- @media (prefers-reduced-motion: reduce) {
1574
- *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
1575
- }
1576
-
1577
- /* ---------- desktop (Electron) ---------- */
1578
- /* Drag regions swallow clicks even under overlays: only the top bar drags,
1579
- and everything clickable in it (or floating above it) opts out. */
1580
- .drag-strip { display: none; }
1581
- body.electron .topbar { -webkit-app-region: drag; }
1582
- body.electron .topbar button, body.electron .topbar a, body.electron .topbar .projects { -webkit-app-region: no-drag; }
1583
- body.electron .overlay, body.electron .overlay *, body.electron .menu, body.electron .menu *, body.electron .toasts, body.electron .toast * { -webkit-app-region: no-drag; }
1584
- body.electron.mac .topbar { padding-left: 88px; }
1585
-
1586
- /* ---------- worktrees, compare, ship it ---------- */
1587
- .tog-btn {
1588
- display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border-radius: 9px;
1589
- font-size: 12.5px; color: var(--muted); transition: background 0.15s, color 0.15s;
1590
- }
1591
- .tog-btn:hover { background: var(--bg-2); color: var(--ink); }
1592
- .tog-btn.on { color: var(--accent-ink); }
1593
- .tog-btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 1px var(--accent); }
1594
- .vs-mark { font: 600 11px var(--mono); }
1595
- .q-vs { font: 600 10.5px var(--mono); color: var(--accent-ink); padding: 1px 5px; border-radius: 5px; background: var(--accent-soft); }
1596
-
1597
- /* a compare task: one card, the shared prompt on top and a row per run under it */
1598
- .task-item {
1599
- background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip;
1600
- transition: border-color 0.15s, box-shadow 0.15s;
1601
- }
1602
- .task-item:hover, .task-item:has(.item.focused) { border-color: var(--line-2); }
1603
- .task-item:has(.item.open) { border-color: var(--line-2); box-shadow: var(--shadow-2); }
1604
- .task-item.st-done { background: transparent; }
1605
- .task-item.arrived { animation: arrive 1.4s var(--ease); }
1606
- .task-head { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px 9px 14px; }
1607
- .task-head .it-title { color: var(--ink); font-weight: 600; }
1608
- .task-item.st-done .task-head .it-title { color: var(--muted); font-weight: 500; }
1609
- .task-item.st-done .q-dot { opacity: 0.35; }
1610
- .task-head .it-sub { display: flex; align-items: center; gap: 7px; }
1611
- .task-item.st-waiting .task-head .it-sub { color: var(--warn); }
1612
- .task-head .ghost .vs-mark { margin-right: 5px; color: var(--accent-ink); }
1613
- .task-item:hover .it-quick, .task-head .it-quick:focus-visible { opacity: 1; }
1614
- .task-runs { display: flex; flex-direction: column; }
1615
- .item.run { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
1616
- .item.run.focused { box-shadow: inset 2px 0 0 var(--line-2); background: var(--surface-2); }
1617
- .item.run.open { box-shadow: inset 2px 0 0 var(--accent); }
1618
- .item.run .it-head { grid-template-columns: 18px 1fr auto; padding: 8px 12px 8px 26px; border-radius: 0; }
1619
- .item.run.open .it-head { border-radius: 0; }
1620
- .item.run .it-title { font-size: 13px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
1621
- .item.run .it-title b { font-weight: 600; color: var(--ink); }
1622
- .run-model { margin-left: 8px; color: var(--muted); }
1623
- .item.run .it-sub, .item.run .q-live { font-size: 12px; }
1624
- .run-logo { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--bg-2); color: var(--ink); }
1625
- .run-logo > * { display: block; width: 11px; height: 11px; }
1626
- .run-logo .mono { background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
1627
- .pill.st-running { --tone: var(--accent); }
1628
- .it-meta .m.branch, .it-meta .m:has(> .i) { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
1629
- .it-meta .m.branch { font: 11px var(--mono); color: var(--ink-2); }
1630
- .it-meta .m .i { width: 12px; height: 12px; flex: none; color: var(--faint); }
1631
- .it-meta .m.m-plan, .it-meta .m.m-plan .i { color: var(--accent-ink); }
1632
- .it-meta .m.m-auto, .it-meta .m.m-auto .i { color: var(--warn); }
1633
-
1634
- .pill.pr { gap: 5px; font-variant-numeric: tabular-nums; }
1635
- .pill.pr-pass, .pr-strip.pr-pass { --tone: var(--good); }
1636
- .pill.pr-pending, .pr-strip.pr-pending { --tone: var(--warn); }
1637
- .pill.pr-fail, .pr-strip.pr-fail { --tone: var(--bad); }
1638
- .pill.pr-merged, .pr-strip.pr-merged { --tone: #8250df; }
1639
- .pill.pr-closed, .pr-strip.pr-closed { --tone: var(--faint); }
1640
- .pr-strip {
1641
- display: flex; align-items: center; gap: 8px; margin: 0 14px 4px; padding: 5px 6px 5px 10px; border-radius: 9px;
1642
- font-size: 12.5px; background: color-mix(in srgb, var(--tone) 7%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 18%, transparent);
1643
- }
1644
- .pr-strip[hidden] { display: none; }
1645
- .pr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); flex: none; }
1646
- .pr-strip.pr-pending .pr-dot { animation: pulse 1.4s ease-in-out infinite; }
1647
- .pr-num { font-weight: 600; color: var(--ink); }
1648
- .pr-line { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1649
- .pr-strip .ghost .i { width: 13px; height: 13px; }
1650
- .pr-strip .pr-merge { color: var(--good); font-weight: 500; }
1651
- @keyframes pulse { 50% { opacity: 0.35; } }
1652
-
1653
- .ship-modal, .run-modal { width: min(620px, 100%); }
1654
- .ship-route { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; font-size: 12.5px; }
1655
- .ship-route code { font: 12px var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--bg-2); }
1656
- .ship-route .i { width: 13px; height: 13px; color: var(--faint); }
1657
- .ship-route .muted { margin-left: auto; }
1658
- .ship-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
1659
- .ship-field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
1660
- .ship-field select { width: 100%; }
1661
- .ship-check { display: flex; margin-top: 10px; }
1662
- .ship-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
1663
- .ship-foot > .muted { margin-right: auto; }
1664
- .ship-foot code { font-size: 11px; }
1665
- .hint.bad { color: var(--bad); }
1666
-
1667
- .compare-modal { width: min(1280px, 100%); max-height: 92vh; display: flex; flex-direction: column; }
1668
- .cmp-prompt { margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2); font-size: 13px; white-space: pre-wrap; max-height: 96px; overflow: auto; }
1669
- .cmp-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(280px, 1fr)); gap: 12px; overflow-x: auto; }
1670
- .cmp-col { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
1671
- .cmp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
1672
- .cmp-who { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
1673
- .cmp-who small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1674
- .cmp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
1675
- .cmp-stats div { display: flex; flex-direction: column; gap: 2px; }
1676
- .cmp-stats dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); }
1677
- .cmp-stats dd { margin: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
1678
- .cmp-body { flex: 1; min-height: 160px; max-height: 58vh; overflow: auto; padding: 12px; background: var(--surface); }
1679
- .cmp-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
1680
-
1681
- /* ---------- automations, usage, phone ---------- */
1682
- .auto-modal, .usage-modal, .phone-modal { width: min(720px, 100%); position: relative; }
1683
- .usage-modal { padding-bottom: 24px; }
1684
- .mem-lede code { font-size: 11.5px; padding: 1px 5px; border-radius: 5px; background: var(--bg-2); }
1685
- .auto-body { padding-top: 10px; }
1686
- .au-list { display: flex; flex-direction: column; gap: 2px; }
1687
- .au-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: 10px; }
1688
- .au-item:hover { background: var(--surface-2); }
1689
- .au-item.off .au-main { opacity: 0.55; }
1690
- .au-main { flex: 1; min-width: 0; }
1691
- .au-main b { font-size: 13.5px; }
1692
- .au-main p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
1693
- .au-main code { font-size: 11.5px; padding: 0 4px; border-radius: 4px; background: var(--bg-2); }
1694
- .au-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
1695
- .au-tags i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--bg-2); color: var(--ink-2); }
1696
- .au-tags a { color: var(--accent-ink); }
1697
- .au-err { display: flex; align-items: center; gap: 5px; color: var(--bad) !important; }
1698
- .au-err .i { width: 12px; height: 12px; }
1699
- .au-acts { display: flex; align-items: center; gap: 4px; flex: none; }
1700
- .au-form { display: flex; flex-direction: column; gap: 0; }
1701
- .au-form > label, .au-form > div > label, .au-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
1702
- .au-form label > span, .au-row > span { width: 92px; flex: none; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
1703
- .au-form label.stack { flex-direction: column; align-items: stretch; gap: 6px; }
1704
- .au-form label.stack > span { width: auto; }
1705
- .au-form :is(.input, .textarea, select) { flex: 1; }
1706
- .au-form [hidden] { display: none !important; }
1707
- .au-params { margin: 6px 0 2px; }
1708
- .au-params code, .k-vars code { font-size: 11px; }
1709
- .au-runner { display: flex; align-items: center; gap: 10px; }
1710
- .au-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px 106px; }
1711
- .au-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
1712
- .au-kinds button { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
1713
- .au-kinds button .i { grid-row: span 2; margin-top: 2px; color: var(--muted); }
1714
- .au-kinds button b { font-size: 13px; }
1715
- .au-kinds button small { font-size: 11px; color: var(--muted); }
1716
- .au-kinds button.on { border-color: var(--accent); background: var(--accent-soft); }
1717
- .au-kinds button.on .i { color: var(--accent); }
1718
- .au-warn { display: flex; gap: 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
1719
- .au-warn .i { flex: none; margin-top: 1px; }
1720
- .au-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
1721
-
1722
- .usage-modal header { gap: 12px; }
1723
- .usage-modal header h2 { margin-right: auto; }
1724
- .us-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
1725
- .us-tiles div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); }
1726
- .us-tiles span { font-size: 11.5px; color: var(--muted); }
1727
- .us-tiles b { font: 600 22px/1.3 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
1728
- .us-tiles small { font-size: 11px; color: var(--faint); }
1729
- .us-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-bottom: 1px; border-bottom: 1px solid var(--line-2); }
1730
- .us-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
1731
- .us-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--accent); opacity: 0.85; }
1732
- .us-bar:hover i { opacity: 1; }
1733
- .us-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--faint); }
1734
- .us-tip { position: absolute; z-index: 5; transform: translate(-50%, -100%); padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 11px; white-space: nowrap; pointer-events: none; }
1735
- .us-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
1736
- .us-table th { text-align: right; font-weight: 500; font-size: 11px; color: var(--faint); padding: 4px 6px; border-bottom: 1px solid var(--line); }
1737
- .us-table td { text-align: right; padding: 6px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
1738
- .us-table :is(th, td):first-child { text-align: left; color: var(--ink); }
1739
- .us-proj, .us-runner { display: inline-flex; align-items: center; gap: 6px; }
1740
-
1741
- .phone-modal .ph-sec h4 { display: flex; align-items: center; gap: 8px; }
1742
- .phone-modal .ph-sec h4 .switch { margin-left: auto; }
1743
- .phone-modal .settings-modal { width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
1744
- .settings-modal label.check { padding: 0; border: 0; gap: 6px; }
1745
- .ph-ok, .ph-bad { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; }
1746
- .ph-ok { color: var(--good); }
1747
- .ph-bad { color: var(--bad); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1748
- .ph-ok .i, .ph-bad .i { width: 12px; height: 12px; }
1749
- .ph-start { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
1750
- .ph-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
1751
-
1752
- /* ---------- subagents ---------- */
1753
- /* logo stack: the lead in front, its subagents tucked behind; they fan out on hover */
1754
- .team-stack { position: relative; display: inline-flex; align-items: center; flex: none; height: 20px; padding-right: 1px; outline: none; cursor: default; }
1755
- .team-stack .ts-l, .team-stack .ts-m, .tb-stack .ts-m {
1756
- position: relative; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%;
1757
- background: var(--bg-2); color: var(--ink); box-shadow: 0 0 0 1.5px var(--surface);
1758
- transition: margin 0.22s var(--ease), transform 0.22s var(--ease), opacity 0.15s, filter 0.15s;
1759
- }
1760
- .team-stack .ts-l { z-index: 6; background: var(--surface); box-shadow: 0 0 0 1.5px var(--surface), inset 0 0 0 1px var(--line-2); }
1761
- .team-stack .ts-m { margin-left: -4px; z-index: calc(5 - var(--i)); }
1762
- .team-stack :is(.ts-l, .ts-m) > *, .tb-stack .ts-m > * { display: block; width: 11px; height: 11px; }
1763
- .team-stack .mono, .tb-stack .mono, .sub-logo .mono, .tl-logo .mono { background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
1764
- .team-stack .ts-more { font: 600 9.5px var(--mono); color: var(--muted); }
1765
- .team-stack .ts-m.idle { opacity: 0.45; filter: grayscale(1); }
1766
- .team-stack:is(:hover, :focus-visible) .ts-m { margin-left: 3px; transform: translateY(calc(-1px * (var(--i) - 1.5))); }
1767
- .team-stack:is(:hover, :focus-visible) .ts-m.idle { opacity: 0.8; filter: none; }
1768
- .team-stack .ts-m.busy { background: var(--accent-soft); animation: ts-pulse 1.4s var(--ease) infinite; }
1769
- @keyframes ts-pulse { 50% { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); } }
1770
- @keyframes ts-spin { to { transform: rotate(360deg); } }
1771
- .team-stack::after {
1772
- content: attr(data-tip); position: absolute; right: -6px; top: calc(100% + 6px); transform: translateY(-2px);
1773
- padding: 3px 7px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 11px; white-space: nowrap;
1774
- opacity: 0; pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 7;
1775
- }
1776
- .team-stack:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
1777
- .subs-head .team-stack::after { right: auto; left: 0; }
1778
- .it-side .team-stack { margin-right: 2px; }
1779
-
1780
- /* launcher button + its member stack */
1781
- .tb-stack { display: inline-flex; align-items: center; flex: none; }
1782
- .tb-stack .ts-m { width: 18px; height: 18px; z-index: calc(6 - var(--i)); }
1783
- .tb-stack .ts-more { font: 600 9px var(--mono); color: var(--muted); }
1784
- .tb-stack .ts-m + .ts-m { margin-left: -4px; }
1785
- .team-btn.on { color: var(--accent-ink); background: var(--accent-soft); }
1786
- .team-btn.on:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
1787
- .team-btn.off { color: var(--faint); }
1788
- .team-btn.off .tb-stack { opacity: 0.5; filter: grayscale(1); }
1789
- .team-btn .tb-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1790
- .team-btn.open { background: var(--bg-2); color: var(--ink); }
1791
- /* narrow bar: the member logos carry the button, so the harness name keeps its room */
1792
- @container launcher (max-width: 640px) { .team-btn .tb-label { display: none; } }
1793
-
1794
- /* editor popover */
1795
- .team-pop {
1796
- position: fixed; z-index: 40; display: flex; flex-direction: column; max-height: min(520px, 76vh); overflow: hidden;
1797
- border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: pop 0.2s var(--ease);
1798
- }
1799
- .tp-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 10px; }
1800
- .tp-title { flex: 1; display: grid; gap: 2px; }
1801
- .tp-title b { font-weight: 600; font-size: 14px; }
1802
- .tp-title small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
1803
- .tp-presets { flex: none; gap: 5px; }
1804
- .tp-presets .chev { width: 11px; height: 11px; transform: rotate(90deg); color: var(--faint); }
1805
- .tp-warn { display: flex; gap: 8px; margin: 0 14px 10px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--line)); }
1806
- .tp-warn[hidden] { display: none; }
1807
- .tp-warn .i { flex: none; width: 14px; height: 14px; margin-top: 1px; }
1808
- .tp-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 14px 12px; }
1809
- .tp-row { --field-bg: var(--surface); display: grid; gap: 6px; padding: 8px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); animation: rise 0.25s var(--ease) both; }
1810
- .tp-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
1811
- .tp-runner { flex: 0 1 auto; min-width: 0; overflow: hidden; }
1812
- .tp-runner .rb-m { max-width: 140px; }
1813
- .tp-name { flex: 1 1 90px; min-width: 70px; width: auto; gap: 0; color: var(--faint); }
1814
- .tp-copies { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 2px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); }
1815
- .tp-copies b { min-width: 22px; text-align: center; font: 500 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
1816
- .tp-copies.on { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
1817
- .tp-copies.on b { color: var(--accent-ink); }
1818
- .tp-copies button { display: grid; place-items: center; width: 22px; height: 24px; border-radius: 7px; color: var(--muted); }
1819
- .tp-copies button:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
1820
- .tp-copies button:disabled { opacity: 0.35; }
1821
- .tp-copies button:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--accent); }
1822
- .tp-copies .i { width: 11px; height: 11px; }
1823
- .tp-del { flex: none; width: 28px; height: 28px; }
1824
- .tp-del .i { width: 13px; height: 13px; }
1825
- .tp-use > span { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
1826
- .tp-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 11px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
1827
- .tp-empty .i { flex: none; width: 22px; height: 22px; color: var(--faint); }
1828
- .tp-empty p { margin: 0; line-height: 1.4; }
1829
- .tp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
1830
- .tp-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
1831
- .tp-saveform { display: flex; align-items: center; gap: 8px; flex: 1; }
1832
- .tp-saveform .input { flex: 1; }
1833
- .menu.tp-menu { width: 300px; }
1834
- .menu.tp-menu button { align-items: center; text-align: left; }
1835
- .menu.tp-menu button.on b { color: var(--accent-ink); }
1836
- .tp-mdel { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; color: var(--faint); opacity: 0; }
1837
- .menu.tp-menu button:hover .tp-mdel { opacity: 1; }
1838
- .tp-mdel:hover { color: var(--bad); background: var(--del-bg); }
1839
- .tp-mdel .i { width: 13px; height: 13px; }
1840
- .tp-mempty { padding: 12px; font-size: 13px; color: var(--muted); }
1841
-
1842
- /* session meta */
1843
- .it-meta .m.team-m { font: 11px var(--mono); color: var(--accent-ink); }
1844
-
1845
- /* live: one line per subagent while the lead waits */
1846
- .team-live { display: grid; gap: 4px; margin: 0 0 10px; padding: 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
1847
- .tl-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 3px 4px; font-size: 13px; }
1848
- .tl-logo { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); position: relative; }
1849
- .tl-logo > * { width: 12px; height: 12px; display: block; }
1850
- .tl-row.live .tl-logo::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--accent); border-right-color: transparent; border-bottom-color: transparent; animation: ts-spin 1.1s linear infinite; }
1851
- .tl-name { flex: none; font: 500 12.5px var(--mono); color: var(--ink); }
1852
- .tl-live { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
1853
- .tl-row.live .tl-live { color: var(--ink-2); }
1854
- .tl-row .elapsed { flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
1855
-
1856
- /* after: the team's reports */
1857
- .subs { margin: 14px 0 4px; }
1858
- .subs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
1859
- .subs-head b { font-weight: 600; }
1860
- .subs-to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); color: var(--muted); }
1861
- .subs-list { display: grid; gap: 6px; }
1862
- .sub { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color 0.15s; }
1863
- .sub:hover, .sub.open { border-color: var(--line-2); }
1864
- .sub-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; text-align: left; }
1865
- .sub-logo { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-2); color: var(--ink); }
1866
- .sub-logo > * { width: 15px; height: 15px; display: block; }
1867
- .sub-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
1868
- .sub-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
1869
- .sub-top b { flex: none; font: 600 12.5px var(--mono); color: var(--ink); }
1870
- .sub-model { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--faint); }
1871
- .sub-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--ink-2); }
1872
- .sub-side { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
1873
- .sub-side .chev { width: 12px; height: 12px; color: var(--faint); transform: rotate(90deg); transition: transform 0.2s var(--ease); }
1874
- .sub.open .sub-side .chev { transform: rotate(-90deg); }
1875
- .sub-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
1876
- .sub-task { margin: 10px 0 12px; }
1877
- .sub-task span { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
1878
- .sub-task p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
1879
- .sub-wait { margin: 0; font-size: 13px; }
1880
- @container (max-width: 520px) { .sub-files, .sub-dur, .sub-model { display: none; } }
1881
-
1882
- /* Auto: wisp's router as a harness (picker, card badge, Settings → Auto) */
1883
- .auto-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
1884
- .auto-mark .i { width: 100%; height: 100%; }
1885
- .model-logo.routed::before { content: ''; position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--surface); }
1886
- .pk-note { margin: 8px 10px 4px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
1887
- .pk-note a { color: var(--accent-ink); }
1888
- .ro-goal { flex: none; }
1889
- .ro-allowed { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 360px; }
1890
- .chip-tog { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
1891
- .chip-tog:hover { color: var(--ink); }
1892
- .chip-tog.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
1893
- .router-modal { width: min(720px, 100%); position: relative; padding-bottom: 20px; }
1894
- .router-modal .hint { margin: 0 0 12px; }
1895
- .router-modal h4 { margin: 16px 0 6px; }
1896
- .ro-table td small.ro-types { display: block; margin: 2px 0 0 19px; font-size: 11px; color: var(--faint); }
1897
- .ro-table .sx-state { justify-content: flex-end; }
1898
- .sx-state.ok { color: var(--good); }
1899
- .sx-state.warn { color: var(--warn); }
1900
- .dot.warn { background: var(--warn); }
1901
- .ro-recent { list-style: none; margin: 0; padding: 0; }
1902
- .ro-recent li { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
1903
- .ro-recent .ro-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
1904
- .ro-recent small { flex: none; color: var(--faint); }
1905
- .ro-recent .ok { color: var(--good); }
1906
- .ro-recent .warn { color: var(--warn); }
1907
- .ro-recent .bad { color: var(--bad); }
1908
- .ro-recent .dim { color: var(--faint); }
1909
- .ro-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
1910
- .ro-foot .hint { margin: 0; }