cladogram 0.5.5-beta.9 → 0.6.0-beta.10

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 (56) hide show
  1. package/README.md +106 -80
  2. package/bin/clado.js +35 -3
  3. package/docs/agent-context.md +63 -0
  4. package/docs/agent-reference.md +219 -0
  5. package/docs/release.md +123 -0
  6. package/package.json +5 -3
  7. package/plugins/agent/index.js +2485 -2982
  8. package/plugins/agent/settings.js +3592 -0
  9. package/plugins/agent/style.css +1441 -1315
  10. package/plugins/brand/index.js +84 -466
  11. package/plugins/brand/style.css +39 -172
  12. package/plugins/directory/index.js +10 -10
  13. package/plugins/view-controls/index.js +6 -1
  14. package/plugins/view-controls/style.css +41 -30
  15. package/skills/clado/SKILL.md +4 -2
  16. package/src/agent/automations.js +454 -0
  17. package/src/agent/clado-tools.js +792 -0
  18. package/src/agent/pi-bridge.js +2559 -0
  19. package/src/agent/pi-config.js +2411 -0
  20. package/src/agent/pi-hooks-perms.js +621 -0
  21. package/src/html/app-css.js +69 -1
  22. package/src/html/canvas-chain.js +32 -6
  23. package/src/html/canvas-focus.js +19 -13
  24. package/src/html/canvas-live-diff.js +1373 -0
  25. package/src/html/canvas-ui.css +503 -2
  26. package/src/html/canvas-wires.js +5 -1
  27. package/src/html/page.js +4 -2
  28. package/src/html/plugin-assets.js +5 -1
  29. package/src/html/plugin-ui.css +159 -134
  30. package/src/html/plugin-ui.js +3 -2
  31. package/src/html/runtime-api.js +152 -10
  32. package/src/html/runtime.js +546 -37
  33. package/src/server/agent.js +862 -1566
  34. package/src/server/assets/library-canvas.js +256 -9
  35. package/src/server/assets/library.css +951 -11
  36. package/src/server/assets/library.html +39 -4
  37. package/src/server/assets/library.js +1445 -224
  38. package/src/server/code-inspect.js +183 -0
  39. package/src/server/mcp.js +90 -22
  40. package/src/server/plugin-registry.js +671 -9
  41. package/src/server/plugins.js +1 -1
  42. package/src/server/workspace-hub.js +50 -0
  43. package/src/server/workspace.js +554 -39
  44. package/src/workspace/graph-snapshot.js +695 -0
  45. package/src/workspace/service.js +201 -9
  46. package/src/agent/commands.js +0 -204
  47. package/src/agent/context.js +0 -445
  48. package/src/agent/executors.js +0 -213
  49. package/src/agent/mcp-client.js +0 -308
  50. package/src/agent/probe.js +0 -234
  51. package/src/agent/providers/anthropic.js +0 -220
  52. package/src/agent/providers/index.js +0 -235
  53. package/src/agent/providers/openai.js +0 -146
  54. package/src/agent/runtime.js +0 -995
  55. package/src/agent/sessions.js +0 -336
  56. package/src/agent/skills.js +0 -190
@@ -1,1631 +1,1757 @@
1
- /* CSS Houdini 自定义属性(inherits: true 确保 ::after 实时继承每帧插值角度与色彩) */
2
- @property --ring-half {
3
- syntax: '<angle>';
4
- inherits: true;
5
- initial-value: 54deg;
6
- }
7
- @property --ring-feather {
8
- syntax: '<angle>';
9
- inherits: true;
10
- initial-value: 14deg;
11
- }
12
- @property --ring-color {
13
- syntax: '<color>';
14
- inherits: true;
15
- initial-value: #85c3ff;
16
- }
1
+ /* ================= Clado vNext · Liquid Crystal Glass Dock, Settings & Handoff ================= */
17
2
 
18
- :root {
19
- --clado-agent-surface: rgba(255, 255, 255, 0.36);
20
- --clado-agent-filter: blur(20px) saturate(185%) brightness(1.06);
21
- --clado-agent-well: rgba(255, 255, 255, 0.34);
22
- --clado-agent-well-border: rgba(255, 255, 255, 0.72);
23
- --clado-agent-track: rgba(255, 255, 255, 0.24);
24
- --clado-agent-hover: rgba(255, 255, 255, 0.38);
25
- --clado-agent-active: rgba(255, 255, 255, 0.56);
26
- --clado-agent-active-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.96);
27
- --clado-agent-popover: rgba(255, 255, 255, 0.86);
28
- --clado-agent-edge: rgba(15, 23, 42, 0.065);
29
- --clado-agent-highlight: rgba(255, 255, 255, 0.96);
30
- --clado-agent-outline: rgba(255, 255, 255, 0.84);
31
- --clado-agent-danger: #e11d48;
32
- --clado-agent-shadow:
33
- 0 8px 22px rgba(15, 23, 42, 0.045),
34
- 0 0 0 0.5px rgba(15, 23, 42, 0.06),
35
- inset 0 1px 0 var(--clado-agent-highlight),
36
- inset 0 0 22px rgba(255, 255, 255, 0.28);
37
- --clado-agent-pill-shadow:
38
- 0 3px 10px rgba(15, 23, 42, 0.035),
39
- 0 0 0 0.5px rgba(15, 23, 42, 0.055),
40
- inset 0 1px 0 var(--clado-agent-highlight),
41
- inset 0 0 14px rgba(255, 255, 255, 0.24);
42
- --clado-agent-send-bg: #3f4654;
43
- --clado-agent-send-fg: #ffffff;
44
- --clado-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
3
+ .clado-vnext-dock {
4
+ width: var(--clado-dock-w, 412px);
5
+ max-width: 880px;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 8px;
9
+ position: relative;
10
+ font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
45
11
  }
46
12
 
47
- :root[data-theme="dark"] {
48
- --clado-agent-surface: rgba(20, 25, 36, 0.38);
49
- --clado-agent-filter: blur(20px) saturate(195%);
50
- --clado-agent-well: rgba(255, 255, 255, 0.065);
51
- --clado-agent-well-border: rgba(255, 255, 255, 0.14);
52
- --clado-agent-track: rgba(255, 255, 255, 0.055);
53
- --clado-agent-hover: rgba(255, 255, 255, 0.09);
54
- --clado-agent-active: rgba(255, 255, 255, 0.15);
55
- --clado-agent-active-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
56
- --clado-agent-popover: rgba(22, 27, 40, 0.88);
57
- --clado-agent-edge: rgba(255, 255, 255, 0.09);
58
- --clado-agent-highlight: rgba(255, 255, 255, 0.22);
59
- --clado-agent-outline: rgba(255, 255, 255, 0.18);
60
- --clado-agent-danger: #fb7185;
61
- --clado-agent-shadow:
62
- 0 14px 34px rgba(0, 0, 0, 0.42),
63
- 0 0 0 0.5px rgba(0, 0, 0, 0.45),
64
- inset 0 1px 0 var(--clado-agent-highlight),
65
- inset 0 0 18px rgba(255, 255, 255, 0.04);
66
- --clado-agent-pill-shadow:
67
- 0 6px 16px rgba(0, 0, 0, 0.32),
68
- 0 0 0 0.5px rgba(0, 0, 0, 0.45),
69
- inset 0 1px 0 var(--clado-agent-highlight);
70
- --clado-agent-send-bg: #e2e8f0;
71
- --clado-agent-send-fg: #111318;
13
+ /* Custom ultra-sleek frosted scrollbars */
14
+ .clado-scroll::-webkit-scrollbar {
15
+ width: 5px;
16
+ height: 5px;
72
17
  }
73
-
74
- /* 直接附着式真冰晶毛玻璃:
75
- backdrop-filter 直接挂在玻璃元素自身上,外层包装器绝不使用 opacity < 1、filter 或 overflow:auto,
76
- 彻底消除浏览器 Backdrop Root 导致的展开延迟模糊与灰底色带问题。 */
77
- .clado-agent-glass {
78
- position: relative;
79
- background: var(--clado-agent-surface);
80
- backdrop-filter: var(--clado-agent-filter);
81
- -webkit-backdrop-filter: var(--clado-agent-filter);
82
- border: 1px solid var(--clado-agent-outline);
83
- box-shadow: var(--clado-agent-shadow);
84
- color: var(--clado-ui-text);
18
+ .clado-scroll::-webkit-scrollbar-track {
19
+ background: transparent;
85
20
  }
86
-
87
- /* ============ 右下角冰晶灵感坞(桌面右下悬浮,小屏自适应防溢出) ============ */
88
- .clado-agent-dock {
89
- width: min(468px, calc(100vw - 24px));
90
- max-width: 100%;
91
- display: flex;
92
- flex-direction: column;
93
- gap: 7px;
94
- min-width: 0;
95
- pointer-events: none;
96
- box-sizing: border-box;
97
- transform-origin: bottom right;
21
+ .clado-scroll::-webkit-scrollbar-thumb {
22
+ background: rgba(100, 116, 139, 0.22);
23
+ border-radius: 999px;
98
24
  }
99
- .clado-agent-dock *,
100
- .clado-agent-overlay *,
101
- .clado-agent-ctx-menu *,
102
- .clado-model-menu * {
103
- box-sizing: border-box;
25
+ .clado-scroll:hover::-webkit-scrollbar-thumb {
26
+ background: rgba(100, 116, 139, 0.38);
104
27
  }
105
- .clado-agent-dock > * {
106
- pointer-events: auto;
107
- min-width: 0;
108
- max-width: 100%;
28
+ :root[data-theme="dark"] .clado-scroll::-webkit-scrollbar-thumb {
29
+ background: rgba(148, 163, 184, 0.22);
109
30
  }
110
- .clado-agent-dock[hidden] {
111
- display: none !important;
31
+ :root[data-theme="dark"] .clado-scroll:hover::-webkit-scrollbar-thumb {
32
+ background: rgba(148, 163, 184, 0.40);
112
33
  }
113
-
114
- .clado-agent-dock .clado-cmd-approve-bar,
115
- .clado-agent-dock .clado-single-panel,
116
- .clado-agent-dock .clado-peer-pill,
117
- .clado-agent-dock .clado-peer-add-btn,
118
- .clado-agent-dock .clado-agent-shell {
119
- transition:
120
- opacity 260ms var(--clado-ease-spring),
121
- transform 300ms var(--clado-ease-spring),
122
- box-shadow 300ms var(--clado-ease-spring),
123
- --ring-half 380ms var(--clado-ease-spring),
124
- --ring-feather 380ms var(--clado-ease-spring),
125
- --ring-color 300ms ease;
34
+ .clado-scroll {
35
+ scrollbar-width: thin;
36
+ scrollbar-color: rgba(100, 116, 139, 0.26) transparent;
126
37
  }
127
-
128
- .clado-agent-dock.minimized {
129
- pointer-events: none;
38
+ :root[data-theme="dark"] .clado-scroll {
39
+ scrollbar-color: rgba(148, 163, 184, 0.26) transparent;
130
40
  }
131
- .clado-agent-dock.minimized * {
132
- pointer-events: none !important;
41
+
42
+ .clado-dock-drawer {
43
+ position: relative;
44
+ border-radius: 22px;
45
+ background: var(--clado-ui-panel-surface);
46
+ backdrop-filter: blur(24px) saturate(190%) brightness(1.03);
47
+ -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.03);
48
+ border: 1px solid var(--clado-ui-glass-outline);
49
+ box-shadow: var(--clado-ui-glass-shadow);
50
+ transition: opacity 180ms ease;
51
+ }
52
+ .clado-dock-drawer.collapsed { display: none; }
53
+ .clado-dock-drawer.resizing { user-select: none; }
54
+ body.clado-dock-resizing {
55
+ user-select: none;
56
+ -webkit-user-select: none;
133
57
  }
134
- .clado-agent-dock.minimized .clado-single-wrap {
135
- grid-template-rows: 0fr !important;
58
+ body.clado-dock-resizing iframe {
136
59
  pointer-events: none !important;
137
60
  }
138
- .clado-agent-dock.minimized .clado-cmd-approve-bar,
139
- .clado-agent-dock.minimized .clado-single-panel,
140
- .clado-agent-dock.minimized .clado-single-wrap.open .clado-single-panel,
141
- .clado-agent-dock.minimized .clado-peer-pill,
142
- .clado-agent-dock.minimized .clado-peer-add-btn,
143
- .clado-agent-dock.minimized .clado-agent-shell {
144
- opacity: 0 !important;
145
- transform: translate3d(24px, 16px, 0) scale(0.86) !important;
146
- }
147
61
 
148
- /* 右下角收起态灵感悬浮球(绝对定位于右下角同槽位,展开态零高度占位) */
149
- .clado-agent-orb-wrap {
62
+ /* Flush Liquid Crystal Glass Resize Handles (centered top pill + edge hover + invisible rounded corner) */
63
+ .clado-resize-nw {
150
64
  position: absolute;
151
- right: 0;
152
- bottom: 0;
153
- z-index: 4;
154
- pointer-events: none;
65
+ top: 0;
66
+ left: 0;
67
+ width: 20px;
68
+ height: 20px;
69
+ cursor: nwse-resize;
70
+ z-index: 22;
71
+ border-radius: 22px 0 0 0;
72
+ touch-action: none;
73
+ }
74
+ .clado-resize-n {
75
+ position: absolute;
76
+ top: 0;
77
+ left: 22px;
78
+ right: 22px;
79
+ height: 15px;
80
+ cursor: ns-resize;
81
+ z-index: 21;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ touch-action: none;
155
86
  }
156
- .clado-agent-orb {
157
- appearance: none;
158
- display: inline-flex;
87
+ .clado-resize-grip {
88
+ width: 36px;
89
+ height: 3.5px;
90
+ border-radius: 999px;
91
+ background: var(--clado-ui-subtle);
92
+ opacity: 0.34;
93
+ transition: width 160ms ease, opacity 160ms ease, background 160ms ease;
94
+ }
95
+ .clado-resize-n:hover .clado-resize-grip,
96
+ .clado-dock-drawer.resizing .clado-resize-grip {
97
+ width: 48px;
98
+ opacity: 0.85;
99
+ background: var(--clado-ui-brand);
100
+ }
101
+ .clado-resize-w {
102
+ position: absolute;
103
+ top: 22px;
104
+ bottom: 22px;
105
+ left: 0;
106
+ width: 10px;
107
+ cursor: ew-resize;
108
+ z-index: 21;
109
+ display: flex;
159
110
  align-items: center;
160
- gap: 7px;
161
- height: 42px;
162
- padding: 0 14px;
163
- border-radius: 15px;
164
- color: var(--clado-ui-text);
165
- font: inherit;
166
- font-size: 13px;
167
- font-weight: 580;
168
- cursor: pointer;
169
- white-space: nowrap;
170
- opacity: 0;
171
- pointer-events: none;
172
- transform: scale(0.75) translateY(6px);
173
- transition: opacity 260ms var(--clado-ease-spring), transform 300ms var(--clado-ease-spring);
111
+ justify-content: flex-start;
112
+ padding-left: 2px;
113
+ touch-action: none;
174
114
  }
175
- .clado-agent-orb.show {
176
- opacity: 1;
177
- pointer-events: auto;
178
- transform: scale(1) translateY(0);
115
+ .clado-resize-grip-v {
116
+ width: 3px;
117
+ height: 28px;
118
+ border-radius: 999px;
119
+ background: var(--clado-ui-brand);
120
+ opacity: 0;
121
+ transition: height 160ms ease, opacity 160ms ease;
179
122
  }
180
- .clado-agent-orb-star {
181
- color: var(--clado-ui-brand);
182
- font-size: 13px;
183
- line-height: 1;
123
+ .clado-resize-w:hover .clado-resize-grip-v,
124
+ .clado-dock-drawer.resizing .clado-resize-grip-v {
125
+ opacity: 0.72;
126
+ height: 38px;
184
127
  }
185
128
 
186
- /* ============ 折叠包装器与命令审批条(minmax(0, 1fr) 严防长命令撑出移动端视口) ============ */
187
- .clado-collapse-wrap {
188
- display: grid;
189
- grid-template-columns: minmax(0, 1fr);
190
- grid-template-rows: 1fr;
191
- width: 100%;
192
- min-width: 0;
193
- transition: grid-template-rows 280ms var(--clado-ease-spring);
194
- }
195
- .clado-collapse-wrap.closed {
196
- grid-template-rows: 0fr;
129
+ /* Gently softened bottom aura */
130
+ .clado-dock-aura {
131
+ position: absolute;
132
+ left: 16%;
133
+ right: 16%;
134
+ bottom: -14px;
135
+ height: 30px;
136
+ border-radius: 999px;
137
+ background: linear-gradient(90deg, rgba(56, 189, 248, 0.38), rgba(167, 139, 250, 0.34), rgba(251, 191, 36, 0.30));
138
+ filter: blur(22px);
139
+ opacity: 0.22;
197
140
  pointer-events: none;
141
+ z-index: -1;
198
142
  }
199
- .clado-collapse-inner {
200
- overflow: visible;
201
- min-height: 0;
202
- min-width: 0;
203
- width: 100%;
204
- }
205
- .clado-collapse-wrap.closed .clado-collapse-inner {
143
+ :root[data-theme="dark"] .clado-dock-aura { opacity: 0.18; }
144
+
145
+ .clado-dock-inner {
146
+ border-radius: 22px;
206
147
  overflow: hidden;
148
+ display: flex;
149
+ flex-direction: column;
207
150
  }
208
- .clado-collapse-wrap.closed .clado-cmd-approve-bar {
209
- opacity: 0;
210
- transform: translateY(6px) scale(0.98);
211
- }
212
-
213
- .clado-cmd-approve-bar {
214
- width: 100%;
215
- min-width: 0;
216
- max-width: 100%;
217
- border-radius: 15px;
218
- padding: 6px 8px 6px 11px;
151
+ .clado-dock-head {
219
152
  display: flex;
220
153
  align-items: center;
221
154
  justify-content: space-between;
222
- gap: 6px;
223
- font-size: 11.5px;
155
+ padding: 15px 14px 10px 16px;
156
+ border-bottom: 1px solid var(--clado-ui-edge);
157
+ gap: 8px;
158
+ position: relative;
159
+ }
160
+ .clado-dock-head-left {
161
+ display: flex;
162
+ align-items: center;
163
+ gap: 7px;
164
+ min-width: 0;
165
+ flex: 1;
224
166
  }
225
- .clado-cmd-approve-copy {
226
- flex: 1 1 0%;
167
+ .clado-dock-session-trigger {
168
+ appearance: none;
169
+ border: 1px solid transparent;
170
+ background: transparent;
171
+ color: var(--clado-ui-text);
172
+ border-radius: 10px;
173
+ padding: 3px 7px;
174
+ margin-left: -4px;
175
+ font: inherit;
176
+ font-size: 13px;
177
+ font-weight: 620;
178
+ cursor: pointer;
179
+ display: inline-flex;
180
+ align-items: center;
181
+ gap: 5px;
227
182
  min-width: 0;
183
+ max-width: 190px;
184
+ transition: background 140ms ease, border-color 140ms ease;
185
+ }
186
+ .clado-dock-session-trigger:hover {
187
+ background: var(--clado-ui-well);
188
+ border-color: var(--clado-ui-well-border);
189
+ }
190
+ .clado-dock-session-trigger span {
228
191
  overflow: hidden;
229
192
  text-overflow: ellipsis;
230
193
  white-space: nowrap;
231
194
  }
232
- .clado-cmd-approve-copy code {
233
- padding: 1px 5px;
234
- border-radius: 6px;
235
- background: var(--clado-agent-well);
236
- border: 0.5px solid var(--clado-agent-well-border);
237
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
238
- font-size: 11px;
239
- }
240
- .clado-cmd-approve-actions {
195
+ .clado-dock-actions {
241
196
  display: flex;
242
197
  align-items: center;
243
- gap: 4px;
244
- flex: 0 0 auto;
198
+ gap: 2px;
199
+ flex: none;
245
200
  }
246
- .clado-cmd-btn {
201
+ .clado-dock-mini-btn {
247
202
  appearance: none;
203
+ border: 1px solid transparent;
204
+ background: transparent;
205
+ color: var(--clado-ui-muted);
206
+ border-radius: 9px;
207
+ padding: 4px 8px;
248
208
  font: inherit;
249
- font-size: 11px;
250
- padding: 3.5px 8px;
251
- border-radius: 8px;
252
- white-space: nowrap;
209
+ font-size: 11.5px;
210
+ font-weight: 530;
253
211
  cursor: pointer;
254
- transition: opacity 140ms ease, transform 120ms ease;
255
- }
256
- .clado-cmd-btn:active { transform: scale(0.96); }
257
- .clado-cmd-btn.allow {
258
- border: 0;
259
- background: var(--clado-ui-brand);
260
- color: #fff;
261
- font-weight: 600;
212
+ display: inline-flex;
213
+ align-items: center;
214
+ gap: 4px;
215
+ white-space: nowrap;
216
+ transition: all 140ms ease;
262
217
  }
263
- .clado-cmd-btn.session {
264
- border: 1px solid var(--clado-agent-well-border);
265
- background: var(--clado-agent-well);
218
+ .clado-dock-mini-btn:hover {
219
+ background: var(--clado-ui-hover);
220
+ border-color: var(--clado-ui-hover-border);
266
221
  color: var(--clado-ui-text);
267
- font-weight: 550;
268
- padding-inline: 7px;
269
- }
270
- .clado-cmd-btn.deny {
271
- border: 0;
272
- background: transparent;
273
- color: var(--clado-agent-danger);
274
- font-weight: 550;
275
- padding-inline: 5px;
276
222
  }
277
223
 
278
- /* ============ 单人视角详情抽屉 ============ */
279
- .clado-single-wrap {
280
- display: grid;
281
- grid-template-columns: minmax(0, 1fr);
282
- grid-template-rows: 0fr;
283
- pointer-events: none;
284
- width: 100%;
285
- min-width: 0;
286
- transition: grid-template-rows 300ms var(--clado-ease-spring);
287
- }
288
- .clado-single-wrap.open {
289
- grid-template-rows: 1fr;
290
- pointer-events: auto;
291
- }
292
- .clado-single-clip {
293
- overflow: hidden;
294
- min-height: 0;
295
- min-width: 0;
296
- width: 100%;
297
- padding: 12px 0;
298
- margin: -12px 0;
299
- }
300
- .clado-single-panel {
301
- width: 100%;
302
- min-width: 0;
224
+ /* Session Manager Popover inside Drawer */
225
+ .clado-session-pop {
226
+ position: absolute;
227
+ top: 46px;
228
+ left: 12px;
229
+ right: 12px;
230
+ z-index: 30;
231
+ border-radius: 16px;
232
+ padding: 10px;
233
+ background: rgba(255, 255, 255, 0.92);
234
+ backdrop-filter: blur(28px) saturate(200%);
235
+ -webkit-backdrop-filter: blur(28px) saturate(200%);
236
+ border: 1px solid var(--clado-ui-glass-outline);
237
+ box-shadow: var(--clado-ui-glass-shadow);
303
238
  display: flex;
304
239
  flex-direction: column;
305
240
  gap: 8px;
306
- border-radius: 22px;
307
- padding: 11px 12px;
308
- opacity: 0;
309
- transform: translateY(8px);
310
- transform-origin: bottom center;
311
241
  }
312
- .clado-single-wrap.open .clado-single-panel {
313
- opacity: 1;
314
- transform: translateY(0);
242
+ :root[data-theme="dark"] .clado-session-pop {
243
+ background: rgba(18, 22, 30, 0.94);
315
244
  }
316
- .clado-sp-body-fade {
245
+ .clado-session-pop[hidden] { display: none; }
246
+ .clado-session-list {
317
247
  display: flex;
318
248
  flex-direction: column;
319
- gap: 8px;
320
- min-width: 0;
321
- transition: opacity 150ms ease, transform 170ms var(--clado-ease-spring);
322
- }
323
- .clado-sp-body-fade.switching {
324
- opacity: 0.25;
325
- transform: translateY(3px);
326
- }
327
-
328
- /* 保留兼容钩子与底部柔光选择符 */
329
- .clado-ai-aura {
330
- display: none;
331
- position: absolute;
332
- inset: 0;
333
- pointer-events: none;
334
- z-index: -1;
249
+ gap: 4px;
250
+ max-height: 210px;
251
+ overflow-y: auto;
335
252
  }
336
- .clado-agent-panel.clado-ai-working > .clado-ai-aura { display: block; }
337
-
338
- .clado-sp-header {
253
+ .clado-session-row {
339
254
  display: flex;
340
255
  align-items: center;
341
256
  justify-content: space-between;
342
257
  gap: 6px;
343
- flex-wrap: wrap;
258
+ padding: 6px 8px;
259
+ border-radius: 10px;
260
+ border: 1px solid transparent;
261
+ cursor: pointer;
262
+ transition: background 130ms ease, border-color 130ms ease;
344
263
  }
345
- .clado-sp-title-group {
346
- display: flex;
347
- align-items: center;
348
- gap: 6px;
349
- min-width: 0;
350
- flex: 1 1 auto;
264
+ .clado-session-row:hover {
265
+ background: var(--clado-ui-well);
266
+ border-color: var(--clado-ui-well-border);
351
267
  }
352
- .clado-sp-name {
353
- font-size: 13.5px;
354
- font-weight: 650;
355
- white-space: nowrap;
356
- overflow: hidden;
357
- text-overflow: ellipsis;
358
- max-width: 150px;
268
+ .clado-session-row.active {
269
+ background: var(--clado-ui-prism-bg);
270
+ border-color: var(--clado-ui-prism-border);
359
271
  }
360
- .clado-tag-pill {
272
+ .clado-session-ops {
361
273
  display: inline-flex;
362
274
  align-items: center;
363
- padding: 1px 6.5px;
364
- border-radius: 6px;
365
- font-size: 10.5px;
366
- font-weight: 600;
367
- line-height: 1.5;
368
- white-space: nowrap;
275
+ gap: 2px;
369
276
  flex: none;
370
277
  }
371
- .clado-tag-blue { background: rgba(59, 130, 246, 0.13); color: #2563eb; }
372
- .clado-tag-teal { background: rgba(16, 185, 129, 0.13); color: #059669; }
373
- .clado-tag-violet { background: rgba(139, 92, 246, 0.13); color: #7c3aed; }
374
- .clado-tag-amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }
375
- :root[data-theme="dark"] .clado-tag-blue { color: #60a5fa; }
376
- :root[data-theme="dark"] .clado-tag-teal { color: #34d399; }
377
- :root[data-theme="dark"] .clado-tag-violet { color: #c4b5fd; }
378
- :root[data-theme="dark"] .clado-tag-amber { color: #fbbf24; }
379
278
 
380
- .clado-sp-actions {
279
+ .clado-dock-stream {
280
+ padding: 13px 15px;
381
281
  display: flex;
382
- align-items: center;
383
- gap: 3px;
384
- flex-wrap: wrap;
282
+ flex-direction: column;
283
+ gap: 10px;
284
+ height: var(--clado-dock-stream-h, 300px);
285
+ min-height: 160px;
286
+ max-height: min(820px, calc(100dvh - 200px));
287
+ overflow-y: auto;
385
288
  }
386
-
387
- .clado-tab-group {
388
- display: inline-flex;
389
- gap: 2px;
390
- padding: 2px;
391
- border-radius: 10px;
392
- background: var(--clado-agent-track);
393
- border: 0.5px solid var(--clado-agent-well-border);
289
+ .clado-dock-stream > * {
290
+ flex-shrink: 0;
394
291
  }
395
- .clado-tab-btn {
396
- appearance: none;
397
- border: 1px solid transparent;
398
- background: transparent;
292
+ .clado-dock-empty {
293
+ padding: 22px 10px;
294
+ text-align: center;
399
295
  color: var(--clado-ui-muted);
400
- font: inherit;
401
- font-size: 11px;
402
- font-weight: 520;
403
- padding: 3px 8px;
404
- border-radius: 8px;
405
- cursor: pointer;
406
- white-space: nowrap;
407
- transition: background-color 180ms var(--clado-ease-spring), border-color 180ms ease, color 160ms ease, box-shadow 180ms var(--clado-ease-spring), transform 120ms ease;
296
+ font-size: 12px;
297
+ line-height: 1.68;
298
+ }
299
+ .clado-msg-user {
300
+ align-self: flex-end;
301
+ background: var(--clado-ui-prism-bg);
302
+ border: 1px solid var(--clado-ui-prism-border);
303
+ color: var(--clado-ui-prism-text);
304
+ padding: 8px 13px;
305
+ border-radius: 15px 15px 4px 15px;
306
+ font-size: 12.5px;
307
+ line-height: 1.56;
308
+ max-width: 88%;
309
+ white-space: pre-wrap;
310
+ word-break: break-word;
311
+ box-shadow: 0 3px 10px -4px rgba(99, 102, 241, 0.12), inset 0 1px 0 var(--clado-ui-highlight);
408
312
  }
409
- .clado-tab-btn:active { transform: scale(0.96); }
410
- .clado-tab-btn.active {
313
+ .clado-msg-assistant {
314
+ align-self: flex-start;
315
+ background: var(--clado-ui-well);
316
+ border: 1px solid var(--clado-ui-well-border);
411
317
  color: var(--clado-ui-text);
412
- font-weight: 620;
413
- background: var(--clado-agent-active);
414
- border-color: var(--clado-agent-outline);
415
- box-shadow: var(--clado-agent-active-shadow);
318
+ padding: 10px 13px;
319
+ border-radius: 4px 15px 15px 15px;
320
+ font-size: 12.5px;
321
+ line-height: 1.62;
322
+ max-width: 96%;
323
+ word-break: break-word;
324
+ box-shadow: inset 0 1px 0 var(--clado-ui-highlight);
416
325
  }
417
326
 
418
- .clado-icon-act {
419
- appearance: none;
420
- border: 1px solid transparent;
421
- background: transparent;
327
+ /* Rendered Markdown Typography inside Assistant Bubbles */
328
+ .clado-md > :first-child { margin-top: 0; }
329
+ .clado-md > :last-child { margin-bottom: 0; }
330
+ .clado-md p { margin: 0 0 8px; }
331
+ .clado-md h1, .clado-md h2, .clado-md h3, .clado-md h4 {
332
+ margin: 10px 0 5px;
333
+ font-weight: 640;
334
+ line-height: 1.35;
335
+ color: var(--clado-ui-text);
336
+ }
337
+ .clado-md h1 { font-size: 14.5px; }
338
+ .clado-md h2 { font-size: 13.5px; }
339
+ .clado-md h3, .clado-md h4 { font-size: 12.5px; }
340
+ .clado-md ul, .clado-md ol {
341
+ margin: 4px 0 8px;
342
+ padding-left: 18px;
343
+ }
344
+ .clado-md li { margin: 2px 0; }
345
+ .clado-md blockquote {
346
+ margin: 6px 0;
347
+ padding: 4px 10px;
348
+ border-left: 2.5px solid var(--clado-ui-prism-border);
422
349
  color: var(--clado-ui-muted);
423
- font: inherit;
350
+ background: rgba(148, 163, 184, 0.06);
351
+ border-radius: 0 8px 8px 0;
352
+ }
353
+ .clado-md code {
354
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
424
355
  font-size: 11.5px;
425
- font-weight: 540;
426
- padding: 3.5px 7px;
427
- border-radius: 8px;
428
- cursor: pointer;
429
- white-space: nowrap;
430
- transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
356
+ background: rgba(148, 163, 184, 0.14);
357
+ padding: 1px 5px;
358
+ border-radius: 5px;
431
359
  }
432
- .clado-icon-act:hover,
433
- .clado-icon-act:active,
434
- .clado-icon-act[aria-pressed="true"] {
435
- background: var(--clado-agent-active);
436
- border-color: var(--clado-agent-outline);
437
- color: var(--clado-ui-text);
360
+ .clado-md-pre {
361
+ margin: 7px 0;
362
+ border-radius: 11px;
363
+ background: rgba(15, 23, 42, 0.055);
364
+ border: 1px solid var(--clado-ui-edge);
365
+ overflow: hidden;
438
366
  }
439
- .clado-icon-act.del:hover {
440
- color: var(--clado-agent-danger);
367
+ :root[data-theme="dark"] .clado-md-pre {
368
+ background: rgba(0, 0, 0, 0.30);
441
369
  }
442
-
443
- /* 二级模式与 ACP 执行器紧凑栏 */
444
- .clado-sp-subbar {
370
+ .clado-md-pre-head {
445
371
  display: flex;
446
372
  align-items: center;
447
373
  justify-content: space-between;
448
- gap: 6px;
449
- flex-wrap: wrap;
374
+ padding: 4px 10px;
375
+ font-size: 10.5px;
376
+ color: var(--clado-ui-subtle);
377
+ border-bottom: 1px solid var(--clado-ui-edge);
378
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
450
379
  }
451
- .clado-sp-workflows {
452
- display: inline-flex;
453
- gap: 2px;
454
- padding: 2px;
455
- border-radius: 10px;
456
- background: var(--clado-agent-track);
457
- border: 0.5px solid var(--clado-agent-well-border);
458
- max-width: 100%;
380
+ .clado-md-pre pre {
381
+ margin: 0;
382
+ padding: 9px 11px;
459
383
  overflow-x: auto;
384
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
385
+ font-size: 11.5px;
386
+ line-height: 1.5;
460
387
  }
461
- .clado-sp-executor-wrap {
462
- position: relative;
463
- flex: 1 1 140px;
464
- min-width: 120px;
465
- z-index: 30;
388
+ .clado-md-pre pre code {
389
+ background: transparent;
390
+ padding: 0;
391
+ border-radius: 0;
466
392
  }
467
- .clado-sp-executor-wrap[hidden] { display: none !important; }
468
-
469
- /* 毛玻璃下拉组件 */
470
- .clado-agent-select-native {
471
- position: absolute !important;
472
- width: 1px !important;
473
- height: 1px !important;
474
- opacity: 0 !important;
475
- pointer-events: none !important;
476
- overflow: hidden !important;
393
+ .clado-md a {
394
+ color: var(--clado-ui-brand);
395
+ text-decoration: underline;
396
+ text-underline-offset: 2px;
477
397
  }
478
- .clado-glass-dropdown {
479
- position: relative;
480
- width: 100%;
481
- min-width: 0;
398
+ .clado-md hr {
399
+ border: 0;
400
+ border-top: 1px solid var(--clado-ui-edge);
401
+ margin: 8px 0;
482
402
  }
483
- .clado-glass-dropdown-trigger {
484
- appearance: none;
403
+ .clado-md table {
485
404
  width: 100%;
486
- display: flex;
487
- align-items: center;
488
- justify-content: space-between;
489
- gap: 6px;
490
- min-height: 28px;
491
- padding: 4px 9px;
492
- border-radius: 9px;
493
- border: 1px solid var(--clado-agent-well-border);
494
- background: var(--clado-agent-well);
495
- color: var(--clado-ui-text);
496
- font: inherit;
405
+ border-collapse: collapse;
406
+ margin: 6px 0;
497
407
  font-size: 11.5px;
498
- font-weight: 550;
408
+ }
409
+ .clado-md th, .clado-md td {
410
+ border: 1px solid var(--clado-ui-edge);
411
+ padding: 4px 7px;
499
412
  text-align: left;
500
- cursor: pointer;
501
413
  }
502
- .clado-glass-dropdown-value {
503
- display: flex;
504
- align-items: center;
505
- gap: 6px;
506
- min-width: 0;
507
- flex: 1;
414
+ .clado-md th {
415
+ background: rgba(148, 163, 184, 0.09);
416
+ font-weight: 600;
508
417
  }
509
- .clado-glass-dropdown-label {
418
+
419
+ .clado-tool-trace {
420
+ border-radius: 13px;
421
+ background: var(--clado-ui-well);
422
+ border: 1px solid var(--clado-ui-well-border);
510
423
  overflow: hidden;
511
- text-overflow: ellipsis;
512
- white-space: nowrap;
513
- }
514
- .clado-glass-dropdown-dot {
515
- width: 6px;
516
- height: 6px;
517
- border-radius: 50%;
518
- flex: none;
519
- }
520
- .clado-glass-dropdown-chevron {
521
- width: 13px;
522
- height: 13px;
523
- fill: none;
524
- stroke: var(--clado-ui-subtle);
525
- stroke-width: 2;
526
- stroke-linecap: round;
527
- stroke-linejoin: round;
528
- flex: none;
529
- transition: transform 180ms ease;
424
+ font-size: 11.5px;
530
425
  }
531
- .clado-glass-dropdown.open .clado-glass-dropdown-chevron { transform: rotate(180deg); }
532
- .clado-glass-dropdown-menu {
533
- position: absolute;
534
- left: 0;
535
- right: 0;
536
- top: calc(100% + 5px);
537
- padding: 5px;
538
- border-radius: 14px;
539
- background: var(--clado-agent-popover);
540
- backdrop-filter: blur(24px) saturate(185%);
541
- -webkit-backdrop-filter: blur(24px) saturate(185%);
542
- border: 1px solid var(--clado-agent-outline);
543
- box-shadow: var(--clado-agent-shadow);
544
- display: flex;
545
- flex-direction: column;
546
- gap: 2px;
547
- z-index: 60;
426
+ .clado-tool-trace-err {
427
+ border-color: rgba(244, 63, 94, 0.34);
548
428
  }
549
- .clado-glass-dropdown-menu[hidden] { display: none !important; }
550
- .clado-glass-dropdown-option {
551
- width: 100%;
429
+ .clado-tool-trace > summary {
430
+ list-style: none;
431
+ cursor: pointer;
432
+ padding: 7px 11px;
552
433
  display: flex;
553
434
  align-items: center;
435
+ justify-content: space-between;
554
436
  gap: 8px;
555
- padding: 6px 9px;
556
- border-radius: 9px;
557
- text-align: left;
558
- white-space: normal;
559
- color: var(--clado-ui-text);
560
- font-size: 12px;
437
+ color: var(--clado-ui-muted);
438
+ font-weight: 540;
439
+ user-select: none;
561
440
  }
562
- .clado-glass-dropdown-copy {
563
- flex: 1;
564
- min-width: 0;
441
+ .clado-tool-trace > summary::-webkit-details-marker { display: none; }
442
+ .clado-tool-trace > summary:hover { color: var(--clado-ui-text); }
443
+ .clado-tool-list {
565
444
  display: flex;
566
445
  flex-direction: column;
446
+ gap: 4px;
447
+ padding: 0 8px 8px;
448
+ border-top: 1px solid var(--clado-ui-edge);
449
+ padding-top: 7px;
567
450
  }
568
- .clado-glass-dropdown-copy strong { font-size: 12px; font-weight: 560; }
569
- .clado-glass-dropdown-copy small { font-size: 10.5px; color: var(--clado-ui-subtle); }
570
- .clado-glass-dropdown-check {
571
- color: var(--clado-ui-brand);
572
- font-size: 11.5px;
573
- font-weight: 700;
574
- visibility: hidden;
575
- }
576
- .clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-check { visibility: visible; }
577
-
578
- .clado-plan-banner {
579
- padding: 5px 9px;
580
- border-radius: 10px;
581
- background: rgba(245, 158, 11, 0.13);
582
- color: #d97706;
451
+ .clado-tool-step {
452
+ border-radius: 9px;
453
+ background: rgba(148, 163, 184, 0.06);
454
+ border: 1px solid var(--clado-ui-edge);
455
+ padding: 5px 8px;
456
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
583
457
  font-size: 11px;
584
- line-height: 1.45;
585
458
  }
586
- :root[data-theme="dark"] .clado-plan-banner { color: #fbbf24; }
587
-
588
- .clado-todo-box {
589
- padding: 6px 10px;
590
- border-radius: 11px;
591
- background: var(--clado-agent-well);
592
- border: 1px solid var(--clado-agent-well-border);
593
- cursor: pointer;
594
- font-size: 11.5px;
459
+ .clado-tool-step-err {
460
+ background: rgba(244, 63, 94, 0.065);
461
+ border-color: rgba(244, 63, 94, 0.28);
595
462
  }
596
- .clado-todo-box[hidden] { display: none !important; }
597
- .clado-todo-head {
463
+ .clado-tool-step-head {
598
464
  display: flex;
599
465
  align-items: center;
600
- justify-content: space-between;
601
- gap: 8px;
466
+ gap: 6px;
467
+ min-width: 0;
602
468
  }
603
- .clado-todo-summary {
604
- font-weight: 560;
469
+ .clado-tool-name {
470
+ font-weight: 620;
471
+ color: var(--clado-ui-text-soft);
472
+ flex: none;
473
+ }
474
+ .clado-tool-args {
475
+ color: var(--clado-ui-muted);
605
476
  overflow: hidden;
606
477
  text-overflow: ellipsis;
607
478
  white-space: nowrap;
479
+ flex: 1;
480
+ min-width: 0;
608
481
  }
609
- .clado-todo-arrow {
482
+ .clado-tool-status-muted {
610
483
  font-size: 10px;
611
484
  color: var(--clado-ui-subtle);
612
485
  flex: none;
613
486
  }
614
- .clado-todo-list {
615
- margin-top: 6px;
616
- padding-top: 6px;
617
- border-top: 1px solid var(--clado-agent-edge);
618
- font-size: 11px;
619
- color: var(--clado-ui-muted);
620
- line-height: 1.6;
487
+ .clado-tool-status-err {
488
+ font-size: 10px;
489
+ font-weight: 620;
490
+ color: #e11d48;
491
+ flex: none;
621
492
  }
622
-
623
- /* 消息流 */
624
- .clado-agent-log {
625
- max-height: min(230px, 34dvh);
493
+ :root[data-theme="dark"] .clado-tool-status-err {
494
+ color: #fb7185;
495
+ }
496
+ .clado-tool-preview {
497
+ margin-top: 4px;
498
+ padding-top: 4px;
499
+ border-top: 1px dashed var(--clado-ui-edge);
500
+ color: var(--clado-ui-subtle);
501
+ white-space: pre-wrap;
502
+ word-break: break-all;
503
+ max-height: 92px;
626
504
  overflow-y: auto;
627
- overscroll-behavior: contain;
628
- display: flex;
629
- flex-direction: column;
630
- gap: 8px;
631
- padding: 2px 2px;
632
- touch-action: pan-y;
633
- user-select: text;
634
- -webkit-user-select: text;
635
- }
636
- .clado-agent-log::-webkit-scrollbar { width: 4px; }
637
- .clado-agent-log::-webkit-scrollbar-thumb { background: rgba(120, 130, 150, 0.24); border-radius: 99px; }
638
- .clado-agent-log-empty {
639
- padding: 10px 4px;
640
- font-size: 12px;
505
+ line-height: 1.45;
506
+ }
507
+ .clado-tool-step-err .clado-tool-preview {
508
+ color: #be123c;
509
+ }
510
+ :root[data-theme="dark"] .clado-tool-step-err .clado-tool-preview {
511
+ color: #fda4af;
512
+ }
513
+ .clado-live-activity {
514
+ align-self: flex-start;
515
+ display: inline-flex;
516
+ align-items: center;
517
+ gap: 7px;
518
+ padding: 5px 11px;
519
+ border-radius: 999px;
520
+ background: var(--clado-ui-well);
521
+ border: 1px solid var(--clado-ui-well-border);
522
+ font-size: 11.5px;
641
523
  color: var(--clado-ui-muted);
642
524
  }
643
-
644
- .clado-agent-message {
645
- width: fit-content;
646
- max-width: 100%;
647
- border-radius: 14px;
648
- padding: 6px 11px;
649
- overflow-wrap: anywhere;
650
- font-size: 12px;
525
+ @keyframes cladoPulse {
526
+ 0%, 100% { opacity: 1; transform: scale(1); }
527
+ 50% { opacity: 0.4; transform: scale(0.82); }
651
528
  }
652
- .clado-agent-message.human {
653
- align-self: flex-end;
654
- max-width: 88%;
655
- border-radius: 13px 13px 4px 13px;
656
- background: var(--clado-agent-active);
657
- border: 1px solid var(--clado-agent-outline);
658
- box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
529
+ .clado-dot-pulse {
530
+ width: 6.5px;
531
+ height: 6.5px;
532
+ border-radius: 50%;
533
+ background: #38bdf8;
534
+ animation: cladoPulse 1.2s ease-in-out infinite;
535
+ flex: none;
659
536
  }
660
- .clado-agent-message.assistant {
661
- width: 100%;
662
- padding: 2px 2px;
537
+ .clado-dot-err {
538
+ width: 6.5px;
539
+ height: 6.5px;
540
+ border-radius: 50%;
541
+ background: #f43f5e;
542
+ flex: none;
663
543
  }
664
- .clado-agent-message strong,
665
- .clado-agent-message small {
666
- color: var(--clado-ui-muted);
667
- font-size: 10.5px;
668
- display: block;
544
+ .clado-decision-card {
545
+ border-radius: 16px;
546
+ padding: 12px 13px;
547
+ background: var(--clado-ui-decision-bg);
548
+ border: 1px solid var(--clado-ui-decision-border);
549
+ box-shadow: var(--clado-ui-decision-shadow);
550
+ display: flex;
551
+ flex-direction: column;
552
+ gap: 9px;
669
553
  }
670
- .clado-agent-message p {
671
- margin: 2px 0 0;
672
- white-space: pre-wrap;
673
- line-height: 1.55;
554
+ .clado-decision-q {
555
+ font-size: 12.5px;
556
+ line-height: 1.58;
674
557
  color: var(--clado-ui-text);
675
558
  }
676
-
677
- .clado-peer-call-card {
678
- padding: 7px 10px;
679
- border-radius: 12px;
680
- background: var(--clado-agent-well);
681
- border: 1px solid var(--clado-agent-well-border);
682
- font-size: 11.5px;
683
- line-height: 1.45;
559
+ .clado-decision-opts {
560
+ display: flex;
561
+ flex-wrap: wrap;
562
+ gap: 7px;
684
563
  }
685
- .clado-peer-call-head {
686
- font-size: 10.5px;
687
- font-weight: 650;
688
- color: var(--clado-ui-brand);
689
- margin-bottom: 2px;
564
+ .clado-decision-custom {
565
+ display: flex;
566
+ align-items: center;
567
+ gap: 6px;
568
+ padding-top: 4px;
569
+ border-top: 1px dashed var(--clado-ui-edge);
690
570
  }
691
-
692
- .clado-agent-thinking {
693
- margin: 4px 0 5px;
694
- padding: 5px 9px;
571
+ .clado-decision-input {
572
+ flex: 1;
573
+ min-width: 0;
574
+ height: 30px;
575
+ padding: 0 10px;
695
576
  border-radius: 10px;
696
- border: 1px solid var(--clado-agent-well-border);
697
- background: var(--clado-agent-well);
698
- font-size: 11px;
577
+ border: 1px solid var(--clado-ui-well-border);
578
+ background: var(--clado-ui-well);
579
+ color: var(--clado-ui-text);
580
+ font-size: 12px;
581
+ font-family: inherit;
582
+ outline: none;
583
+ transition: border-color 140ms ease, box-shadow 140ms ease;
699
584
  }
700
- .clado-agent-thinking summary {
701
- cursor: pointer;
702
- color: var(--clado-ui-muted);
703
- font-weight: 550;
704
- user-select: none;
585
+ .clado-decision-input:focus {
586
+ border-color: var(--clado-ui-brand);
587
+ box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
705
588
  }
706
- .clado-agent-thinking pre {
707
- margin: 5px 0 2px;
708
- white-space: pre-wrap;
709
- overflow-wrap: anywhere;
710
- font-family: inherit;
711
- font-size: 11px;
712
- line-height: 1.5;
589
+ .clado-decision-input::placeholder {
590
+ color: var(--clado-ui-subtle);
591
+ }
592
+ .clado-decision-submit {
593
+ flex: none;
594
+ min-height: 30px;
595
+ padding: 4px 12px;
596
+ font-size: 11.5px;
597
+ }
598
+ .clado-decision-done {
599
+ align-self: flex-start;
600
+ font-size: 11.5px;
713
601
  color: var(--clado-ui-muted);
602
+ background: var(--clado-ui-well);
603
+ border: 1px solid var(--clado-ui-well-border);
604
+ border-radius: 999px;
605
+ padding: 3px 10px;
714
606
  }
715
607
 
716
- .clado-changes-row {
717
- margin-top: 6px;
608
+ /* Role Strip */
609
+ .clado-role-strip {
718
610
  display: flex;
719
611
  align-items: center;
720
- justify-content: space-between;
721
612
  gap: 6px;
722
- flex-wrap: wrap;
723
- }
724
- .clado-changes-chips {
725
- display: flex;
726
- gap: 5px;
727
- flex-wrap: wrap;
613
+ overflow-x: auto;
614
+ scrollbar-width: none;
615
+ padding: 4px 2px 10px;
728
616
  }
729
- .clado-tool-chip {
617
+ .clado-role-strip::-webkit-scrollbar { display: none; }
618
+ .clado-role-pill {
619
+ --pill-c1: rgba(56, 189, 248, 0.85);
620
+ --pill-c2: rgba(129, 140, 248, 0.85);
621
+ --pill-glow: rgba(56, 189, 248, 0.34);
622
+ position: relative;
623
+ overflow: visible;
624
+ flex: none;
730
625
  appearance: none;
731
- display: inline-flex;
732
- align-items: center;
733
- gap: 5px;
734
- padding: 3.5px 9px;
735
626
  border-radius: 999px;
736
- background: var(--clado-agent-well);
737
- border: 1px solid var(--clado-agent-well-border);
627
+ padding: 6px 12px;
738
628
  font: inherit;
739
- font-size: 11px;
629
+ font-size: 12px;
630
+ font-weight: 540;
740
631
  color: var(--clado-ui-muted);
632
+ background: var(--clado-ui-surface);
633
+ backdrop-filter: blur(22px) saturate(190%);
634
+ -webkit-backdrop-filter: blur(22px) saturate(190%);
635
+ border: 1px solid var(--clado-ui-glass-outline);
636
+ box-shadow: var(--clado-ui-shadow);
741
637
  cursor: pointer;
742
- transition: background-color 150ms ease, color 150ms ease, transform 130ms ease;
743
- }
744
- .clado-tool-chip:hover,
745
- .clado-tool-chip:active {
746
- background: var(--clado-agent-active);
747
- color: var(--clado-ui-text);
748
- transform: scale(0.97);
749
- }
750
- .clado-tool-chip.rollback {
751
- color: var(--clado-ui-brand);
752
- font-weight: 560;
638
+ display: inline-flex;
639
+ align-items: center;
640
+ gap: 6px;
641
+ transition: all 150ms ease;
753
642
  }
754
- .clado-tool-chip.rollback.done {
755
- color: #059669;
643
+ .clado-role-pill[data-tone="sky"] {
644
+ --pill-c1: rgba(56, 189, 248, 0.85);
645
+ --pill-c2: rgba(129, 140, 248, 0.85);
646
+ --pill-glow: rgba(56, 189, 248, 0.36);
756
647
  }
757
-
758
- /* ask_user 决策卡片 */
759
- .clado-agent-question {
760
- margin-top: 6px;
761
- padding: 9px 10px;
762
- border-radius: 13px;
763
- border: 1px solid var(--clado-agent-outline);
764
- background: var(--clado-agent-well);
765
- box-shadow: inset 0 1px 0 var(--clado-agent-highlight);
766
- display: flex;
767
- flex-direction: column;
768
- gap: 7px;
648
+ .clado-role-pill[data-tone="emerald"] {
649
+ --pill-c1: rgba(16, 185, 129, 0.85);
650
+ --pill-c2: rgba(45, 212, 191, 0.85);
651
+ --pill-glow: rgba(16, 185, 129, 0.36);
769
652
  }
770
- .clado-agent-question.answered {
771
- border-color: var(--clado-agent-edge);
772
- background: var(--clado-agent-track);
653
+ .clado-role-pill[data-tone="violet"] {
654
+ --pill-c1: rgba(139, 92, 246, 0.85);
655
+ --pill-c2: rgba(244, 114, 182, 0.85);
656
+ --pill-glow: rgba(139, 92, 246, 0.36);
773
657
  }
774
- .clado-agent-question-badge {
775
- display: inline-flex;
776
- align-items: center;
777
- gap: 6px;
778
- font-size: 10.5px;
779
- font-weight: 620;
780
- color: var(--clado-ui-text);
658
+ .clado-role-pill[data-tone="amber"] {
659
+ --pill-c1: rgba(245, 158, 11, 0.85);
660
+ --pill-c2: rgba(251, 146, 60, 0.85);
661
+ --pill-glow: rgba(245, 158, 11, 0.36);
781
662
  }
782
- .clado-agent-question-badge::before {
663
+ .clado-role-pill::before {
783
664
  content: "";
784
- width: 6px;
785
- height: 6px;
665
+ position: absolute;
666
+ left: 14px;
667
+ right: 14px;
668
+ top: calc(100% - 1px);
669
+ height: 9px;
786
670
  border-radius: 50%;
787
- background: #f59e0b;
671
+ background: radial-gradient(ellipse 62% 100% at 50% 0%, var(--pill-glow), transparent 78%);
672
+ filter: blur(4px);
673
+ opacity: 0;
674
+ pointer-events: none;
675
+ transition: opacity 180ms ease;
788
676
  }
789
- .clado-agent-question-text {
790
- font-size: 12px;
791
- line-height: 1.5;
792
- font-weight: 500;
677
+ .clado-role-pill::after {
678
+ content: "";
679
+ position: absolute;
680
+ left: 16px;
681
+ right: 16px;
682
+ bottom: -0.5px;
683
+ height: 1px;
684
+ border-radius: 1px;
685
+ background: linear-gradient(90deg, transparent 0%, var(--pill-c1) 28%, var(--pill-c2) 72%, transparent 100%);
686
+ opacity: 0.42;
687
+ pointer-events: none;
688
+ transition: all 150ms ease;
689
+ }
690
+ .clado-role-pill.active,
691
+ .clado-role-pill.running {
692
+ color: var(--clado-ui-text);
693
+ background: var(--clado-ui-active);
694
+ border-color: rgba(147, 197, 253, 0.52);
695
+ box-shadow: 0 3px 12px -6px var(--pill-glow), inset 0 1px 0 var(--clado-ui-highlight);
696
+ }
697
+ .clado-role-pill.active::before,
698
+ .clado-role-pill.running::before { opacity: 0.92; }
699
+ .clado-role-pill.active::after,
700
+ .clado-role-pill.running::after { left: 11px; right: 11px; opacity: 0.88; }
701
+
702
+ .clado-role-add {
703
+ width: 30px;
704
+ height: 30px;
705
+ padding: 0;
706
+ justify-content: center;
793
707
  }
794
- .clado-agent-question-options {
708
+ .clado-role-add::before,
709
+ .clado-role-add::after { display: none; }
710
+
711
+ /* Multiline Auto-Grow Composer */
712
+ .clado-composer {
713
+ position: relative;
714
+ border-radius: 20px;
715
+ padding: 8px 10px 7px 12px;
795
716
  display: flex;
796
717
  flex-direction: column;
797
- gap: 4px;
718
+ gap: 6px;
719
+ background: var(--clado-ui-surface);
720
+ backdrop-filter: blur(22px) saturate(190%);
721
+ -webkit-backdrop-filter: blur(22px) saturate(190%);
722
+ border: 1px solid var(--clado-ui-glass-outline);
723
+ box-shadow: var(--clado-ui-shadow);
798
724
  }
799
- .clado-agent-option-btn {
800
- appearance: none;
801
- border: 1px solid transparent;
802
- border-radius: 10px;
725
+ .clado-composer-input {
726
+ width: 100%;
727
+ min-height: 22px;
728
+ max-height: 132px;
729
+ border: 0;
730
+ outline: 0;
731
+ resize: none;
803
732
  background: transparent;
804
733
  color: var(--clado-ui-text);
805
- padding: 7px 9px;
806
- text-align: left;
807
- cursor: pointer;
808
734
  font: inherit;
809
- display: flex;
810
- flex-direction: column;
811
- gap: 2px;
812
- transition: background 140ms ease, border-color 140ms ease;
735
+ font-size: 12.5px;
736
+ line-height: 1.5;
737
+ padding: 0;
738
+ overflow-y: auto;
813
739
  }
814
- .clado-agent-option-btn:hover:not(:disabled) {
815
- background: var(--clado-agent-active);
816
- border-color: var(--clado-agent-outline);
740
+ .clado-composer-input::placeholder { color: var(--clado-ui-subtle); }
741
+ .clado-composer-bar {
742
+ display: flex;
743
+ align-items: center;
744
+ justify-content: space-between;
745
+ gap: 6px;
817
746
  }
818
- .clado-agent-option-label { font-size: 11.5px; font-weight: 600; }
819
- .clado-agent-option-btn small { font-size: 10.5px; color: var(--clado-ui-muted); }
820
- .clado-agent-question-custom {
747
+ .clado-composer-left {
821
748
  display: flex;
749
+ align-items: center;
822
750
  gap: 5px;
823
- }
824
- .clado-agent-question-custom input {
825
- flex: 1;
826
751
  min-width: 0;
827
- padding: 5px 8px;
828
- border: 1px solid var(--clado-agent-well-border);
829
- border-radius: 8px;
830
- background: var(--clado-agent-well);
831
- color: var(--clado-ui-text);
832
- font: inherit;
833
- font-size: 11.5px;
834
- outline: none;
835
752
  }
836
- .clado-agent-question-answered {
837
- font-size: 11px;
838
- color: var(--clado-ui-brand);
839
- font-weight: 560;
753
+ .clado-composer-right {
754
+ display: flex;
755
+ align-items: center;
756
+ gap: 5px;
757
+ flex: none;
840
758
  }
841
-
842
- .clado-agent-status {
843
- margin: 0;
759
+ .clado-model-chip {
760
+ appearance: none;
761
+ border: 1px solid var(--clado-ui-well-border);
762
+ background: var(--clado-ui-well);
763
+ color: var(--clado-ui-text-soft);
764
+ border-radius: 999px;
765
+ padding: 3px 9px;
766
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
844
767
  font-size: 11px;
845
- color: var(--clado-ui-muted);
768
+ max-width: 126px;
846
769
  overflow: hidden;
847
770
  text-overflow: ellipsis;
848
771
  white-space: nowrap;
849
- }
850
- .clado-agent-status[hidden] { display: none !important; }
851
-
852
- /* ============ 多会话单行左对齐胶囊条(overflow-x: clip 保住 100% 真毛玻璃 + 左右淡入淡出) ============ */
853
- .clado-peer-cluster {
854
- width: 100%;
855
- min-width: 0;
856
- max-width: 100%;
857
- background: transparent;
858
- display: flex;
859
- align-items: center;
860
- justify-content: flex-start;
861
- flex-wrap: nowrap;
862
- gap: 6px;
863
- overflow-x: clip;
864
- overflow-y: visible;
865
- padding: 2px 0;
866
- touch-action: pan-y;
867
- cursor: grab;
868
- user-select: none;
869
- -webkit-user-select: none;
870
- }
871
- .clado-peer-cluster:active { cursor: grabbing; }
872
-
873
- .clado-peer-pill {
874
- appearance: none;
875
- -webkit-appearance: none;
876
- position: relative;
877
- flex: 0 0 auto;
878
- display: inline-flex;
879
- align-items: center;
880
- gap: 0;
881
- height: 31px;
882
- padding: 0 12px;
883
- border-radius: 999px;
884
772
  cursor: pointer;
885
- border: 0;
886
- background: var(--clado-agent-surface);
887
- backdrop-filter: var(--clado-agent-filter);
888
- -webkit-backdrop-filter: var(--clado-agent-filter);
889
- color: var(--clado-ui-text);
890
- font: inherit;
891
- font-size: 12px;
892
- box-shadow: var(--clado-agent-pill-shadow);
893
- white-space: nowrap;
894
- --ring-half: 54deg;
895
- --ring-feather: 15deg;
896
- --ring-color: var(--c-muted);
897
- }
898
- .clado-peer-pill.is-active {
899
- --ring-half: 64deg;
900
- --ring-feather: 14deg;
901
- }
902
- .clado-peer-pill:active { transform: scale(0.96); }
903
-
904
- /* 极纤薄边缘环:
905
- - 静息态:0.85px 发丝高度底色条(明亮清透柔和色、底下绝无白边)
906
- - 激活态(.is-focused):沿左右边缘合拢为 1.25px 高饱和全边框,胶囊内部保持纯净 36% 透明玻璃 */
907
- .clado-peer-pill::after {
908
- content: "";
909
- position: absolute;
910
- inset: 0;
911
- border-radius: inherit;
912
- pointer-events: none;
913
- z-index: 2;
914
- padding: 0.85px;
915
- transition: padding 260ms var(--clado-ease-spring);
916
- background: conic-gradient(
917
- from 0deg at 50% 50%,
918
- var(--clado-agent-outline) 0deg,
919
- var(--clado-agent-outline) calc(180deg - var(--ring-half) - var(--ring-feather)),
920
- var(--ring-color) calc(180deg - var(--ring-half)),
921
- var(--ring-color) calc(180deg + var(--ring-half)),
922
- var(--clado-agent-outline) calc(180deg + var(--ring-half) + var(--ring-feather)),
923
- var(--clado-agent-outline) 360deg
924
- );
925
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
926
- -webkit-mask-composite: xor;
927
- mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
928
- mask-composite: exclude;
929
- }
930
-
931
- .clado-peer-pill.is-focused {
932
- --ring-half: 180deg;
933
- --ring-feather: 0deg;
934
- --ring-color: var(--c-vivid);
935
- box-shadow: 0 6px 18px var(--c-glow), var(--clado-agent-pill-shadow);
936
- }
937
- .clado-peer-pill.is-focused::after {
938
- padding: 1.25px;
939
- }
940
-
941
- .clado-peer-pill.called-flash {
942
- --ring-half: 64deg;
943
- --ring-feather: 14deg;
944
- --ring-color: var(--caller-color);
945
- box-shadow: 0 5px 14px -2px var(--caller-glow), var(--clado-agent-pill-shadow);
946
- }
947
- .clado-peer-pill.called-flash::after {
948
- padding: 1.1px;
949
- }
950
-
951
- .clado-peer-pill .p-name {
952
- position: relative;
953
- z-index: 1;
954
- font-weight: 600;
955
- font-size: 12px;
956
- pointer-events: none;
957
- }
958
- .clado-peer-pill .p-live {
959
- position: relative;
960
- z-index: 1;
961
- font-size: 11px;
962
- color: var(--clado-ui-muted);
963
- max-width: 96px;
964
- margin-left: 5px;
965
- opacity: 1;
966
- overflow: hidden;
967
- text-overflow: ellipsis;
968
- pointer-events: none;
969
- transition: max-width 340ms var(--clado-ease-spring), opacity 240ms ease, margin-left 300ms var(--clado-ease-spring);
970
- }
971
- @media (min-width: 520px) {
972
- .clado-peer-pill .p-live { max-width: 140px; }
973
- }
974
- .clado-peer-pill.is-dormant .p-live {
975
- max-width: 0;
976
- opacity: 0;
977
- margin-left: 0;
978
- }
979
- @media (hover: hover) {
980
- .clado-peer-pill.is-dormant:hover .p-live {
981
- max-width: 120px;
982
- opacity: 1;
983
- margin-left: 5px;
984
- }
985
773
  }
986
-
987
- /* ============ 底部打字框与下方窄幅清淡滚动流光条 ============ */
988
- .clado-agent-shell {
989
- position: relative;
990
- border-radius: 18px;
991
- padding: 6px 8px;
992
- display: flex;
993
- align-items: center;
994
- gap: 6px;
995
- width: 100%;
996
- min-width: 0;
774
+ .clado-model-chip:hover {
775
+ background: var(--clado-ui-hover);
776
+ border-color: var(--clado-ui-hover-border);
997
777
  }
998
- .clado-agent-min-btn {
778
+ .clado-sendmode-btn {
999
779
  appearance: none;
1000
- width: 29px;
1001
- height: 29px;
1002
- border-radius: 9px;
1003
- border: 1px solid var(--clado-agent-well-border);
1004
- background: var(--clado-agent-well);
1005
- color: var(--clado-ui-brand);
1006
- font-size: 13px;
1007
- line-height: 1;
1008
- cursor: pointer;
1009
- flex: none;
1010
- display: inline-flex;
1011
- align-items: center;
1012
- justify-content: center;
1013
- transition: background-color 150ms ease, transform 120ms ease;
1014
- }
1015
- .clado-agent-min-btn:hover { background: var(--clado-agent-active); }
1016
- .clado-agent-min-btn:active { transform: scale(0.95); }
1017
-
1018
- .clado-agent-input {
1019
- flex: 1;
1020
- min-width: 0;
1021
- border: 0;
780
+ border: 1px solid transparent;
1022
781
  background: transparent;
1023
- color: var(--clado-ui-text);
1024
- font: inherit;
1025
- font-size: 13.5px;
1026
- outline: none;
1027
- padding: 4px 2px;
1028
- user-select: text;
1029
- -webkit-user-select: text;
1030
- }
1031
- .clado-agent-input::placeholder {
1032
782
  color: var(--clado-ui-subtle);
1033
- }
1034
-
1035
- .clado-agent-stop-btn {
1036
- appearance: none;
1037
- height: 29px;
1038
- padding: 0 9px;
1039
- border-radius: 9px;
1040
- border: 0;
1041
- background: rgba(244, 63, 94, 0.12);
1042
- color: var(--clado-agent-danger);
1043
- font: inherit;
1044
- font-size: 11.5px;
1045
- font-weight: 600;
1046
- cursor: pointer;
1047
- flex: none;
1048
- white-space: nowrap;
1049
- }
1050
- .clado-agent-stop-btn[hidden] { display: none !important; }
1051
-
1052
- .clado-agent-send-btn {
1053
- appearance: none;
1054
- height: 29px;
1055
- padding: 0 13px;
1056
- border-radius: 9px;
1057
- border: 0;
1058
- background: var(--clado-agent-send-bg);
1059
- color: var(--clado-agent-send-fg);
783
+ border-radius: 999px;
784
+ padding: 3px 8px;
1060
785
  font: inherit;
1061
- font-size: 12px;
1062
- font-weight: 600;
786
+ font-size: 10.5px;
1063
787
  cursor: pointer;
1064
- flex: none;
1065
788
  white-space: nowrap;
1066
- transition: opacity 150ms ease, transform 120ms ease;
789
+ transition: all 140ms ease;
1067
790
  }
1068
- .clado-agent-send-btn:disabled {
1069
- opacity: 0.42;
1070
- cursor: default;
791
+ .clado-sendmode-btn:hover {
792
+ background: var(--clado-ui-well);
793
+ border-color: var(--clado-ui-well-border);
794
+ color: var(--clado-ui-text-soft);
1071
795
  }
1072
- .clado-agent-send-btn:not(:disabled):active { transform: scale(0.96); }
1073
796
 
1074
- /* 打字框底部 70% 宽、1px 极细柔和滚动流光条 */
1075
- .clado-edge-aura {
1076
- position: absolute;
1077
- left: 50%;
1078
- top: calc(100% - 0.5px);
1079
- width: 70%;
1080
- height: 16px;
1081
- transform: translateX(-50%);
1082
- pointer-events: none;
1083
- opacity: 0;
1084
- z-index: 4;
1085
- transition: opacity 280ms ease;
1086
- }
1087
- .clado-agent-shell.working > .clado-edge-aura {
1088
- opacity: 1;
1089
- }
1090
- .clado-edge-aura-line {
797
+ /* Slash command & Model popovers */
798
+ .clado-dock-popover {
1091
799
  position: absolute;
1092
800
  left: 0;
1093
801
  right: 0;
1094
- top: 0;
1095
- height: 1px;
1096
- border-radius: 999px;
1097
- overflow: hidden;
1098
- -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
1099
- mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
1100
- }
1101
- .clado-edge-aura-runner {
1102
- width: 200%;
1103
- height: 100%;
1104
- background: linear-gradient(
1105
- 90deg,
1106
- rgba(98, 217, 255, 0.65) 0%,
1107
- rgba(181, 154, 255, 0.68) 25%,
1108
- rgba(255, 144, 203, 0.58) 50%,
1109
- rgba(98, 217, 255, 0.65) 75%,
1110
- rgba(181, 154, 255, 0.68) 100%
1111
- );
1112
- animation: cladoEdgeFlow 2.6s linear infinite;
1113
- }
1114
- .clado-edge-aura-bloom {
1115
- position: absolute;
1116
- left: 10%;
1117
- right: 10%;
1118
- top: 1px;
1119
- height: 14px;
1120
- background: radial-gradient(ellipse 52% 85% at 50% 0%, rgba(125, 180, 255, 0.22), transparent 76%);
1121
- filter: blur(5px);
1122
- }
1123
- @keyframes cladoEdgeFlow {
1124
- 0% { transform: translate3d(0, 0, 0); }
1125
- 100% { transform: translate3d(-50%, 0, 0); }
1126
- }
1127
-
1128
- /* ============ 会话长按 / 右键上下文浮层 ============ */
1129
- .clado-agent-ctx-menu {
1130
- position: fixed;
1131
- z-index: 92;
802
+ bottom: calc(100% + 8px);
803
+ border-radius: 18px;
804
+ padding: 8px;
805
+ background: var(--clado-ui-popover);
806
+ backdrop-filter: blur(26px) saturate(195%);
807
+ -webkit-backdrop-filter: blur(26px) saturate(195%);
808
+ border: 1px solid var(--clado-ui-glass-outline);
809
+ box-shadow: var(--clado-ui-glass-shadow);
1132
810
  display: flex;
1133
811
  flex-direction: column;
1134
812
  gap: 3px;
1135
- padding: 6px;
1136
- border-radius: 16px;
1137
- min-width: 188px;
1138
- max-width: calc(100vw - 20px);
1139
- background: var(--clado-agent-popover);
1140
- backdrop-filter: blur(24px) saturate(190%);
1141
- -webkit-backdrop-filter: blur(24px) saturate(190%);
1142
- border: 1px solid var(--clado-agent-outline);
1143
- box-shadow: var(--clado-agent-shadow);
1144
- font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1145
- opacity: 0;
1146
- pointer-events: none;
1147
- transform: scale(0.93) translateY(6px);
1148
- transform-origin: bottom center;
1149
- transition: opacity 180ms var(--clado-ease-spring), transform 200ms var(--clado-ease-spring);
1150
- }
1151
- .clado-agent-ctx-menu.open {
1152
- opacity: 1;
1153
- pointer-events: auto;
1154
- transform: scale(1) translateY(0);
813
+ max-height: 268px;
814
+ overflow-y: auto;
815
+ z-index: 45;
1155
816
  }
1156
- .clado-ctx-badge {
1157
- padding: 3px 9px 5px;
817
+ .clado-dock-popover[hidden] { display: none; }
818
+ .clado-pop-head {
1158
819
  font-size: 10.5px;
1159
820
  font-weight: 600;
1160
821
  color: var(--clado-ui-subtle);
822
+ padding: 3px 10px 4px;
1161
823
  display: flex;
1162
824
  align-items: center;
1163
825
  justify-content: space-between;
1164
826
  gap: 8px;
1165
- border-bottom: 1px solid var(--clado-agent-edge);
1166
- margin-bottom: 2px;
827
+ user-select: none;
1167
828
  }
1168
- .clado-ctx-btn {
829
+ .clado-pop-item {
1169
830
  appearance: none;
1170
831
  border: 1px solid transparent;
1171
832
  background: transparent;
1172
- color: var(--clado-ui-text);
833
+ color: var(--clado-ui-text-soft);
834
+ border-radius: 11px;
835
+ padding: 7px 10px;
1173
836
  font: inherit;
1174
- font-size: 12.5px;
1175
- font-weight: 520;
1176
- padding: 7.5px 10px;
1177
- border-radius: 10px;
837
+ font-size: 12px;
1178
838
  text-align: left;
1179
839
  cursor: pointer;
1180
840
  display: flex;
1181
841
  align-items: center;
1182
842
  justify-content: space-between;
1183
- gap: 10px;
1184
- transition: background-color 140ms ease, border-color 140ms ease;
843
+ gap: 8px;
1185
844
  }
1186
- .clado-ctx-btn:hover,
1187
- .clado-ctx-btn:active {
1188
- background: var(--clado-agent-active);
1189
- border-color: var(--clado-agent-outline);
845
+ .clado-pop-item:hover,
846
+ .clado-pop-item.is-selected {
847
+ background: var(--clado-ui-hover);
848
+ border-color: var(--clado-ui-hover-border);
849
+ color: var(--clado-ui-text);
1190
850
  }
1191
- .clado-ctx-btn.danger {
1192
- color: var(--clado-agent-danger);
851
+ .clado-pop-item.is-selected {
852
+ background: var(--clado-ui-prism-bg);
853
+ border-color: var(--clado-ui-prism-border);
1193
854
  }
1194
-
1195
- /* ============ 极简 Agent 设置与记忆浮层(外层不用 overflow:auto,保住 100% 真毛玻璃) ============ */
1196
- .clado-agent-overlay {
1197
- position: fixed;
1198
- inset: 0;
1199
- z-index: 84;
1200
- padding: calc(max(12px, env(safe-area-inset-top)) + 48px) 10px max(16px, env(safe-area-inset-bottom));
1201
- overflow: visible;
1202
- pointer-events: none;
1203
- visibility: hidden;
1204
- font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1205
- transition: visibility 0s linear 280ms;
1206
- }
1207
- .clado-agent-overlay.show {
1208
- pointer-events: auto;
1209
- visibility: visible;
1210
- transition-delay: 0s;
1211
- }
1212
- .clado-panel-container {
1213
- max-width: 480px;
1214
- max-height: calc(100dvh - 76px);
1215
- overflow-y: auto;
1216
- scrollbar-width: none;
1217
- -webkit-overflow-scrolling: touch;
1218
- touch-action: pan-y;
1219
- margin: 0 auto;
1220
- padding: 14px;
1221
- border-radius: 22px;
855
+ .clado-pop-main {
1222
856
  display: flex;
1223
- flex-direction: column;
1224
- gap: 11px;
1225
- opacity: 0;
1226
- transform: translateY(10px) scale(0.985);
1227
- transition: opacity 250ms var(--clado-ease-spring), transform 280ms var(--clado-ease-spring);
857
+ align-items: center;
858
+ gap: 7px;
859
+ min-width: 0;
860
+ flex: 1;
1228
861
  }
1229
- .clado-panel-container::-webkit-scrollbar { display: none; }
1230
- .clado-agent-overlay.show .clado-panel-container {
1231
- opacity: 1;
1232
- transform: translateY(0) scale(1);
862
+ .clado-pop-label {
863
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
864
+ font-size: 12px;
865
+ overflow: hidden;
866
+ text-overflow: ellipsis;
867
+ white-space: nowrap;
1233
868
  }
1234
-
1235
- .clado-group-title {
1236
- font-size: 11.5px;
869
+ .clado-pop-badge {
870
+ flex: none;
871
+ font-size: 10px;
1237
872
  font-weight: 600;
873
+ padding: 1px 6px;
874
+ border-radius: 999px;
875
+ background: var(--clado-ui-well);
876
+ border: 1px solid var(--clado-ui-well-border);
1238
877
  color: var(--clado-ui-muted);
1239
- padding: 0 4px 4px;
1240
878
  }
1241
- .clado-settings-group {
1242
- background: var(--clado-agent-well);
1243
- border: 1px solid var(--clado-agent-well-border);
1244
- box-shadow: inset 0 1px 0 var(--clado-agent-highlight);
1245
- border-radius: 15px;
879
+ .clado-pop-desc {
880
+ color: var(--clado-ui-subtle);
881
+ font-size: 11px;
882
+ max-width: 52%;
1246
883
  overflow: hidden;
884
+ text-overflow: ellipsis;
885
+ white-space: nowrap;
886
+ flex: none;
1247
887
  }
1248
- .clado-s-row {
888
+
889
+ /* ================= Unified 5-Tab Settings Center & Handoff Modal ================= */
890
+ .clado-vnext-mask {
891
+ position: absolute;
892
+ inset: 0;
893
+ z-index: 80;
894
+ background: rgba(15, 23, 42, 0.14);
895
+ backdrop-filter: blur(8px);
896
+ -webkit-backdrop-filter: blur(8px);
1249
897
  display: flex;
1250
898
  align-items: center;
1251
- justify-content: space-between;
1252
- gap: 12px;
1253
- min-height: 44px;
1254
- padding: 8px 13px;
1255
- position: relative;
1256
- transition: background-color 150ms ease;
1257
- }
1258
- .clado-s-row + .clado-s-row {
1259
- border-top: 1px solid var(--clado-agent-edge);
899
+ justify-content: center;
900
+ padding: 24px;
1260
901
  }
1261
- .clado-s-row.clickable { cursor: pointer; }
1262
- .clado-s-row.clickable:hover,
1263
- .clado-s-row.clickable:active { background: var(--clado-agent-hover); }
1264
- .clado-s-title {
1265
- font-size: 13px;
1266
- font-weight: 530;
902
+ .clado-vnext-mask[hidden] { display: none; }
903
+
904
+ .clado-settings-shell {
905
+ width: min(920px, calc(100% - 32px));
906
+ height: min(630px, calc(100% - 32px));
907
+ border-radius: 26px;
908
+ background: var(--clado-ui-popover);
909
+ backdrop-filter: blur(28px) saturate(200%);
910
+ -webkit-backdrop-filter: blur(28px) saturate(200%);
911
+ border: 1px solid var(--clado-ui-glass-outline);
912
+ box-shadow: var(--clado-ui-glass-shadow);
913
+ display: flex;
914
+ overflow: hidden;
1267
915
  color: var(--clado-ui-text);
1268
916
  }
1269
- .clado-s-val {
1270
- font-size: 12.5px;
917
+ .clado-settings-nav {
918
+ width: 224px;
919
+ flex: none;
920
+ padding: 20px 14px;
921
+ border-right: 1px solid var(--clado-ui-edge);
922
+ display: flex;
923
+ flex-direction: column;
924
+ justify-content: space-between;
925
+ background: rgba(255, 255, 255, 0.14);
926
+ }
927
+ :root[data-theme="dark"] .clado-settings-nav { background: rgba(255, 255, 255, 0.02); }
928
+ .clado-snav-list { display: flex; flex-direction: column; gap: 4px; }
929
+ .clado-snav-btn {
930
+ width: 100%;
931
+ appearance: none;
932
+ border: 1px solid transparent;
933
+ background: transparent;
1271
934
  color: var(--clado-ui-muted);
1272
- display: inline-flex;
935
+ padding: 9px 12px;
936
+ border-radius: 13px;
937
+ font: inherit;
938
+ font-size: 12.5px;
939
+ font-weight: 540;
940
+ cursor: pointer;
941
+ display: flex;
1273
942
  align-items: center;
1274
- gap: 5px;
1275
- padding: 4px 6px;
1276
- border-radius: 8px;
1277
- }
1278
-
1279
- .clado-cfg-stage { overflow-x: hidden; }
1280
- .clado-cfg-page {
1281
- transition: opacity 240ms var(--clado-ease-spring), transform 280ms var(--clado-ease-spring);
943
+ gap: 9px;
944
+ text-align: left;
945
+ transition: all 140ms ease;
1282
946
  }
1283
- .clado-cfg-page.pushed-out {
1284
- opacity: 0;
1285
- pointer-events: none;
1286
- transform: translateX(-22px);
1287
- position: absolute;
1288
- left: 14px;
1289
- right: 14px;
1290
- top: 14px;
1291
- max-height: 0;
1292
- overflow: hidden;
947
+ .clado-snav-btn:hover { background: var(--clado-ui-well); color: var(--clado-ui-text); }
948
+ .clado-snav-btn.active {
949
+ background: var(--clado-ui-prism-bg);
950
+ border-color: var(--clado-ui-prism-border);
951
+ color: var(--clado-ui-prism-text);
952
+ box-shadow: 0 3px 10px -4px rgba(99, 102, 241, 0.14), inset 0 1px 0 var(--clado-ui-highlight);
1293
953
  }
1294
- .clado-cfg-sub-page {
954
+ .clado-settings-body {
955
+ flex: 1;
956
+ padding: 24px 28px;
957
+ overflow-y: auto;
1295
958
  display: flex;
1296
959
  flex-direction: column;
1297
- gap: 10px;
1298
- opacity: 0;
1299
- pointer-events: none;
1300
- transform: translateX(24px);
1301
- position: absolute;
1302
- left: 14px;
1303
- right: 14px;
1304
- top: 14px;
1305
- max-height: 0;
1306
- overflow: hidden;
1307
- transition: opacity 240ms var(--clado-ease-spring), transform 280ms var(--clado-ease-spring);
960
+ gap: 14px;
1308
961
  }
1309
- .clado-cfg-sub-page.active {
1310
- opacity: 1;
1311
- pointer-events: auto;
1312
- transform: translateX(0);
1313
- position: relative;
1314
- left: auto;
1315
- right: auto;
1316
- top: auto;
1317
- max-height: none;
1318
- overflow: visible;
962
+ .clado-well-box {
963
+ background: var(--clado-ui-well);
964
+ border: 1px solid var(--clado-ui-well-border);
965
+ box-shadow: inset 0 1px 0 var(--clado-ui-highlight);
966
+ border-radius: 16px;
967
+ padding: 13px 16px;
968
+ }
969
+ .clado-setting-row {
970
+ display: flex;
971
+ align-items: center;
972
+ justify-content: space-between;
973
+ gap: 14px;
974
+ }
975
+ .clado-field {
976
+ width: 100%;
977
+ border-radius: 11px;
978
+ padding: 8px 11px;
979
+ border: 1px solid var(--clado-ui-well-border);
980
+ background: var(--clado-ui-well);
981
+ color: var(--clado-ui-text);
982
+ font: inherit;
983
+ font-size: 12.5px;
984
+ outline: none;
985
+ }
986
+ .clado-field:focus {
987
+ border-color: var(--clado-ui-prism-border);
988
+ background: var(--clado-ui-well-focus);
1319
989
  }
1320
990
 
1321
- .clado-switch-btn {
1322
- appearance: none;
1323
- width: 40px;
1324
- height: 23px;
991
+ /* Glass Switch */
992
+ .clado-switch {
993
+ width: 36px;
994
+ height: 20px;
1325
995
  border-radius: 999px;
1326
- border: 1px solid var(--clado-agent-well-border);
1327
- padding: 1.5px;
1328
- cursor: pointer;
1329
- background: var(--clado-agent-track);
996
+ background: var(--clado-ui-well);
997
+ border: 1px solid var(--clado-ui-well-border);
1330
998
  position: relative;
1331
- transition: background-color 200ms var(--clado-ease-spring);
999
+ cursor: pointer;
1332
1000
  flex: none;
1001
+ transition: all 160ms ease;
1333
1002
  }
1334
- .clado-switch-btn.on {
1335
- background: var(--clado-ui-brand);
1336
- border-color: transparent;
1003
+ .clado-switch::after {
1004
+ content: "";
1005
+ position: absolute;
1006
+ top: 2px;
1007
+ left: 2px;
1008
+ width: 14px;
1009
+ height: 14px;
1010
+ border-radius: 50%;
1011
+ background: #ffffff;
1012
+ box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
1013
+ transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
1337
1014
  }
1338
- .clado-switch-btn i {
1339
- display: block;
1340
- width: 18px;
1341
- height: 18px;
1015
+ .clado-switch.on {
1016
+ background: linear-gradient(135deg, rgba(56, 189, 248, 0.66), rgba(129, 140, 248, 0.70));
1017
+ border-color: rgba(125, 211, 252, 0.78);
1018
+ box-shadow: 0 0 8px rgba(56, 189, 248, 0.22);
1019
+ }
1020
+ .clado-switch.on::after { transform: translateX(16px); }
1021
+
1022
+ /* Semantic Pastel Glass Chips */
1023
+ .clado-chip {
1024
+ display: inline-flex;
1025
+ align-items: center;
1026
+ gap: 5px;
1027
+ padding: 2px 8px;
1342
1028
  border-radius: 999px;
1343
- background: #fff;
1344
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
1345
- transition: transform 220ms var(--clado-ease-spring);
1346
- pointer-events: none;
1029
+ font-size: 11px;
1030
+ font-weight: 560;
1031
+ border: 1px solid transparent;
1032
+ white-space: nowrap;
1347
1033
  }
1348
- .clado-switch-btn.on i { transform: translateX(17px); }
1034
+ .clado-chip-sky { background: rgba(186, 230, 253, 0.50); border-color: rgba(125, 211, 252, 0.58); color: #0369a1; }
1035
+ .clado-chip-mint { background: rgba(167, 243, 208, 0.48); border-color: rgba(110, 231, 183, 0.58); color: #047857; }
1036
+ .clado-chip-amber { background: rgba(253, 230, 138, 0.48); border-color: rgba(252, 211, 77, 0.62); color: #b45309; }
1037
+ .clado-chip-violet { background: rgba(221, 214, 254, 0.50); border-color: rgba(196, 181, 253, 0.62); color: #6d28d9; }
1038
+ .clado-chip-neutral { background: var(--clado-ui-well); border-color: var(--clado-ui-well-border); color: var(--clado-ui-muted); }
1349
1039
 
1350
- .clado-clean-textarea {
1351
- width: 100%;
1352
- border-radius: 12px;
1353
- padding: 10px 12px;
1354
- font-size: 12px;
1355
- line-height: 1.55;
1356
- border: 1px solid var(--clado-agent-well-border);
1357
- background: var(--clado-agent-well);
1358
- color: var(--clado-ui-text);
1359
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1360
- outline: none;
1361
- resize: vertical;
1362
- user-select: text;
1363
- -webkit-user-select: text;
1040
+ :root[data-theme="dark"] .clado-chip-sky { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.30); color: #7dd3fc; }
1041
+ :root[data-theme="dark"] .clado-chip-mint { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.30); color: #6ee7b7; }
1042
+ :root[data-theme="dark"] .clado-chip-amber { background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.30); color: #fcd34d; }
1043
+ :root[data-theme="dark"] .clado-chip-violet { background: rgba(167, 139, 250, 0.18); border-color: rgba(167, 139, 250, 0.32); color: #c4b5fd; }
1044
+
1045
+ .clado-dot-ok {
1046
+ width: 6.5px;
1047
+ height: 6.5px;
1048
+ border-radius: 50%;
1049
+ background: #34d399;
1050
+ box-shadow: 0 0 6px rgba(52, 211, 153, 0.55);
1051
+ display: inline-block;
1052
+ flex: none;
1053
+ }
1054
+ .clado-dot-sky {
1055
+ width: 6.5px;
1056
+ height: 6.5px;
1057
+ border-radius: 50%;
1058
+ background: #38bdf8;
1059
+ box-shadow: 0 0 6px rgba(56, 189, 248, 0.60);
1060
+ display: inline-block;
1061
+ flex: none;
1364
1062
  }
1365
1063
 
1366
- /* 轻提示气泡 */
1367
- .clado-agent-toast {
1368
- position: fixed;
1369
- top: calc(max(10px, env(safe-area-inset-top)) + 52px);
1370
- left: 12px;
1371
- right: 12px;
1372
- width: fit-content;
1373
- max-width: calc(100vw - 24px);
1374
- margin: 0 auto;
1375
- transform: translateY(-8px) scale(0.95);
1376
- z-index: 98;
1377
- padding: 7px 14px;
1064
+ /* Composer Context Chips Bar */
1065
+ .clado-ctx-bar {
1066
+ display: flex;
1067
+ flex-wrap: wrap;
1068
+ align-items: center;
1069
+ gap: 5px;
1070
+ padding: 0 2px 6px;
1071
+ }
1072
+ .clado-ctx-chip {
1073
+ display: inline-flex;
1074
+ align-items: center;
1075
+ gap: 5px;
1076
+ max-width: 100%;
1077
+ padding: 2px 8px;
1378
1078
  border-radius: 999px;
1379
- font: 550 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1380
- color: var(--clado-ui-text);
1381
- background: var(--clado-agent-popover);
1382
- backdrop-filter: blur(22px) saturate(190%);
1383
- -webkit-backdrop-filter: blur(22px) saturate(190%);
1384
- border: 1px solid var(--clado-agent-outline);
1385
- box-shadow: var(--clado-agent-pill-shadow);
1386
- opacity: 0;
1387
- pointer-events: none;
1388
- transition: opacity 200ms var(--clado-ease-spring), transform 240ms var(--clado-ease-spring);
1079
+ font-size: 10.5px;
1080
+ font-weight: 560;
1081
+ color: var(--clado-ui-text-soft);
1082
+ background: var(--clado-ui-well);
1083
+ border: 1px solid var(--clado-ui-well-border);
1084
+ }
1085
+ .clado-ctx-chip.is-snippet {
1086
+ background: var(--clado-ui-prism-bg);
1087
+ border-color: var(--clado-ui-prism-border);
1088
+ color: var(--clado-ui-prism-text);
1089
+ }
1090
+ .clado-ctx-chip-txt {
1389
1091
  overflow: hidden;
1390
1092
  text-overflow: ellipsis;
1391
1093
  white-space: nowrap;
1094
+ max-width: 220px;
1392
1095
  }
1393
- .clado-agent-toast.show {
1394
- opacity: 1;
1395
- transform: translateY(0) scale(1);
1396
- }
1397
-
1398
- @media (max-width: 760px) {
1399
- .clado-agent-dock {
1400
- width: 100%;
1401
- max-width: calc(100vw - 20px);
1402
- }
1403
- .clado-single-panel {
1404
- border-radius: 26px;
1405
- }
1406
- .clado-agent-input {
1407
- font-size: 16px;
1408
- }
1409
- .clado-agent-question-custom input {
1410
- font-size: 16px;
1411
- }
1096
+ .clado-ctx-chip-x {
1097
+ appearance: none;
1098
+ border: 0;
1099
+ background: transparent;
1100
+ color: inherit;
1101
+ opacity: 0.68;
1102
+ cursor: pointer;
1103
+ padding: 0 1px;
1104
+ font-size: 12px;
1105
+ line-height: 1;
1412
1106
  }
1107
+ .clado-ctx-chip-x:hover { opacity: 1; }
1413
1108
 
1414
- /* 输入栏模型快切胶囊与弹窗 + 会话条尾端新建按钮 */
1415
- .clado-model-chip {
1109
+ /* Mid-turn Stop Button */
1110
+ .clado-stop-btn {
1416
1111
  appearance: none;
1417
- flex: 0 0 auto;
1418
- height: 28px;
1419
- max-width: 126px;
1420
- padding: 0 9px;
1112
+ border: 1px solid rgba(244, 63, 94, 0.38);
1113
+ background: rgba(244, 63, 94, 0.10);
1114
+ color: #be123c;
1421
1115
  border-radius: 999px;
1422
- border: 1px solid var(--clado-agent-well-border);
1423
- background: var(--clado-agent-well);
1424
- color: var(--clado-ui-text);
1116
+ min-height: 26px;
1117
+ padding: 3px 10px;
1425
1118
  font: inherit;
1426
1119
  font-size: 11.5px;
1427
- font-weight: 580;
1120
+ font-weight: 600;
1121
+ cursor: pointer;
1122
+ transition: background 140ms ease, border-color 140ms ease;
1123
+ }
1124
+ .clado-stop-btn:hover {
1125
+ background: rgba(244, 63, 94, 0.18);
1126
+ border-color: rgba(244, 63, 94, 0.56);
1127
+ }
1128
+ :root[data-theme="dark"] .clado-stop-btn {
1129
+ color: #fda4af;
1130
+ background: rgba(244, 63, 94, 0.16);
1131
+ }
1132
+
1133
+ /* Collapsible Thinking Trace */
1134
+ .clado-thinking-trace {
1135
+ align-self: stretch;
1136
+ border-radius: 11px;
1137
+ border: 1px dashed var(--clado-ui-edge);
1138
+ background: color-mix(in srgb, var(--clado-ui-well) 65%, transparent);
1139
+ font-size: 11px;
1140
+ color: var(--clado-ui-muted);
1141
+ overflow: hidden;
1142
+ }
1143
+ .clado-thinking-trace summary {
1428
1144
  cursor: pointer;
1145
+ padding: 5px 10px;
1146
+ list-style: none;
1147
+ display: flex;
1148
+ align-items: center;
1149
+ justify-content: space-between;
1150
+ gap: 8px;
1151
+ user-select: none;
1152
+ font-weight: 540;
1153
+ }
1154
+ .clado-thinking-trace summary::-webkit-details-marker { display: none; }
1155
+ .clado-thinking-body {
1156
+ padding: 6px 10px 8px;
1157
+ border-top: 1px dashed var(--clado-ui-edge);
1158
+ white-space: pre-wrap;
1159
+ overflow-wrap: anywhere;
1160
+ max-height: 180px;
1161
+ overflow-y: auto;
1162
+ font-size: 11px;
1163
+ line-height: 1.5;
1164
+ opacity: 0.85;
1165
+ }
1166
+
1167
+ /* Clickable Card / Tag / Tool Chips in Chat */
1168
+ .clado-tool-step.is-clickable {
1169
+ cursor: pointer;
1170
+ transition: background-color 130ms ease, border-color 130ms ease;
1171
+ }
1172
+ .clado-tool-step.is-clickable:hover {
1173
+ background: var(--clado-ui-hover);
1174
+ border-color: var(--clado-ui-hover-border);
1175
+ }
1176
+ .clado-chat-ref {
1177
+ appearance: none;
1429
1178
  display: inline-flex;
1430
1179
  align-items: center;
1431
- gap: 4px;
1432
- white-space: nowrap;
1433
- transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
1180
+ gap: 3px;
1181
+ padding: 0.5px 6px;
1182
+ margin: 0 1px;
1183
+ border-radius: 6px;
1184
+ border: 1px solid var(--clado-ui-prism-border);
1185
+ background: var(--clado-ui-prism-bg);
1186
+ color: var(--clado-ui-prism-text);
1187
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1188
+ font-size: 0.9em;
1189
+ cursor: pointer;
1190
+ vertical-align: baseline;
1191
+ transition: transform 120ms ease, filter 120ms ease;
1434
1192
  }
1435
- .clado-model-chip:hover {
1436
- background: var(--clado-agent-hover);
1437
- border-color: var(--clado-agent-outline);
1193
+ .clado-chat-ref:hover {
1194
+ filter: brightness(0.96);
1195
+ transform: translateY(-0.5px);
1438
1196
  }
1439
- .clado-model-chip:active { transform: scale(0.97); }
1440
- .clado-model-chip.unconfigured {
1441
- background: rgba(37, 99, 235, 0.12);
1442
- border-color: rgba(37, 99, 235, 0.34);
1443
- color: var(--clado-ui-brand);
1444
- font-weight: 640;
1197
+ .clado-msg-user.is-steer {
1198
+ background: rgba(254, 243, 199, 0.55);
1199
+ border-color: rgba(245, 158, 11, 0.45);
1200
+ color: #92400e;
1445
1201
  }
1446
- .clado-model-chip-label {
1447
- overflow: hidden;
1448
- text-overflow: ellipsis;
1202
+ :root[data-theme="dark"] .clado-msg-user.is-steer {
1203
+ background: rgba(245, 158, 11, 0.18);
1204
+ border-color: rgba(245, 158, 11, 0.36);
1205
+ color: #fde68a;
1206
+ }
1207
+
1208
+ /* Live Context Window Meter Pill & Quick Runtime Popover */
1209
+ .clado-ctx-meter {
1210
+ appearance: none;
1211
+ border: 1px solid var(--clado-ui-well-border);
1212
+ background: var(--clado-ui-well);
1213
+ color: var(--clado-ui-muted);
1214
+ border-radius: 999px;
1215
+ padding: 2px 8px;
1216
+ height: 24px;
1217
+ font: inherit;
1218
+ font-size: 10.5px;
1219
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1220
+ display: inline-flex;
1221
+ align-items: center;
1222
+ gap: 5px;
1223
+ cursor: pointer;
1449
1224
  white-space: nowrap;
1225
+ flex-shrink: 0;
1226
+ transition: all 140ms ease;
1450
1227
  }
1451
- .clado-model-chip-caret {
1452
- font-size: 10px;
1453
- opacity: 0.65;
1228
+ .clado-ctx-meter:hover {
1229
+ border-color: var(--clado-ui-brand);
1230
+ color: var(--clado-ui-text);
1231
+ }
1232
+ .clado-ctx-meter-track {
1233
+ width: 24px;
1234
+ height: 4px;
1235
+ border-radius: 999px;
1236
+ background: rgba(148, 163, 184, 0.28);
1237
+ overflow: hidden;
1454
1238
  flex: none;
1455
1239
  }
1240
+ .clado-ctx-meter-fill {
1241
+ display: block;
1242
+ height: 100%;
1243
+ border-radius: 999px;
1244
+ background: #10b981;
1245
+ transition: width 220ms ease, background 220ms ease;
1246
+ }
1247
+ .clado-ctx-meter.is-warn .clado-ctx-meter-fill { background: #f59e0b; }
1248
+ .clado-ctx-meter.is-danger .clado-ctx-meter-fill { background: #ef4444; }
1249
+ .clado-ctx-meter.is-danger { color: #e11d48; border-color: rgba(244, 63, 94, 0.35); }
1250
+ :root[data-theme="dark"] .clado-ctx-meter.is-danger { color: #fb7185; }
1456
1251
 
1457
- .clado-model-menu {
1458
- position: fixed;
1459
- z-index: 95;
1460
- min-width: 210px;
1461
- max-width: min(290px, calc(100vw - 20px));
1462
- max-height: 320px;
1463
- overflow-y: auto;
1464
- padding: 6px;
1465
- border-radius: 16px;
1252
+ .clado-ctx-pop-card {
1253
+ padding: 8px 10px;
1466
1254
  display: flex;
1467
1255
  flex-direction: column;
1468
- gap: 2px;
1469
- background: var(--clado-agent-popover);
1470
- backdrop-filter: blur(24px) saturate(190%);
1471
- -webkit-backdrop-filter: blur(24px) saturate(190%);
1472
- border: 1px solid var(--clado-agent-outline);
1473
- box-shadow: var(--clado-agent-shadow);
1474
- font: 12.5px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1256
+ gap: 9px;
1257
+ font-size: 11.5px;
1475
1258
  color: var(--clado-ui-text);
1476
- opacity: 0;
1477
- pointer-events: none;
1478
- transform: translateY(6px) scale(0.95);
1479
- transform-origin: bottom left;
1480
- transition: opacity 160ms var(--clado-ease-spring), transform 180ms var(--clado-ease-spring);
1481
1259
  }
1482
- .clado-model-menu.open {
1483
- opacity: 1;
1484
- pointer-events: auto;
1485
- transform: translateY(0) scale(1);
1260
+ .clado-ctx-pop-head {
1261
+ display: flex;
1262
+ align-items: center;
1263
+ justify-content: space-between;
1264
+ gap: 8px;
1486
1265
  }
1487
-
1488
- .clado-peer-add-btn {
1489
- appearance: none;
1490
- flex: 0 0 auto;
1491
- width: 29px;
1492
- height: 29px;
1266
+ .clado-ctx-pop-bar {
1267
+ width: 100%;
1268
+ height: 6px;
1269
+ border-radius: 999px;
1270
+ background: rgba(148, 163, 184, 0.22);
1271
+ overflow: hidden;
1272
+ }
1273
+ .clado-ctx-pop-bar > i {
1274
+ display: block;
1275
+ height: 100%;
1493
1276
  border-radius: 999px;
1494
- border: 1px solid var(--clado-agent-outline);
1495
- background: var(--clado-agent-surface);
1496
- backdrop-filter: var(--clado-agent-filter);
1497
- -webkit-backdrop-filter: var(--clado-agent-filter);
1498
- box-shadow: var(--clado-agent-pill-shadow);
1277
+ background: #10b981;
1278
+ transition: width 200ms ease;
1279
+ }
1280
+ .clado-ctx-pop-stats {
1281
+ display: grid;
1282
+ grid-template-columns: repeat(3, 1fr);
1283
+ gap: 6px;
1284
+ }
1285
+ .clado-ctx-stat {
1286
+ padding: 6px 8px;
1287
+ border-radius: 9px;
1288
+ background: var(--clado-ui-well);
1289
+ border: 1px solid var(--clado-ui-well-border);
1290
+ }
1291
+ .clado-ctx-stat-k {
1292
+ font-size: 10px;
1293
+ color: var(--clado-ui-subtle);
1294
+ }
1295
+ .clado-ctx-stat-v {
1296
+ margin-top: 2px;
1297
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1298
+ font-size: 11.5px;
1299
+ font-weight: 600;
1300
+ }
1301
+ .clado-ctx-pills {
1302
+ display: flex;
1303
+ flex-wrap: wrap;
1304
+ gap: 5px;
1305
+ }
1306
+ .clado-ctx-pill-btn {
1307
+ appearance: none;
1308
+ border: 1px solid var(--clado-ui-well-border);
1309
+ background: var(--clado-ui-well);
1499
1310
  color: var(--clado-ui-muted);
1311
+ border-radius: 999px;
1312
+ padding: 3px 9px;
1500
1313
  font: inherit;
1501
- font-size: 14px;
1502
- font-weight: 600;
1314
+ font-size: 11px;
1503
1315
  cursor: pointer;
1316
+ transition: all 140ms ease;
1317
+ }
1318
+ .clado-ctx-pill-btn:hover {
1319
+ border-color: var(--clado-ui-brand);
1320
+ color: var(--clado-ui-text);
1321
+ }
1322
+ .clado-ctx-pill-btn.active {
1323
+ background: var(--clado-ui-prism-bg);
1324
+ border-color: var(--clado-ui-prism-border);
1325
+ color: var(--clado-ui-prism-text);
1326
+ font-weight: 600;
1327
+ }
1328
+
1329
+ /* Runtime Settings & Official Model Quick-Pick Chips inside Settings Modal */
1330
+ .clado-rt-grid {
1331
+ display: grid;
1332
+ grid-template-columns: 1fr 1fr;
1333
+ gap: 10px;
1334
+ }
1335
+ .clado-rt-field {
1336
+ display: flex;
1337
+ flex-direction: column;
1338
+ gap: 4px;
1339
+ }
1340
+ .clado-rt-label {
1341
+ font-size: 11.5px;
1342
+ font-weight: 560;
1343
+ color: var(--clado-ui-muted);
1344
+ display: flex;
1345
+ align-items: center;
1346
+ justify-content: space-between;
1347
+ }
1348
+ .clado-rt-checks {
1349
+ display: flex;
1350
+ flex-wrap: wrap;
1351
+ gap: 14px;
1352
+ font-size: 12px;
1353
+ color: var(--clado-ui-text);
1354
+ }
1355
+ .clado-rt-checks label {
1504
1356
  display: inline-flex;
1505
1357
  align-items: center;
1506
- justify-content: center;
1507
- padding: 0;
1508
- line-height: 1;
1358
+ gap: 6px;
1359
+ cursor: pointer;
1360
+ }
1361
+ .clado-model-presets {
1362
+ display: flex;
1363
+ flex-wrap: wrap;
1364
+ gap: 6px;
1509
1365
  }
1510
- .clado-peer-add-btn:hover {
1366
+ .clado-model-preset-chip {
1367
+ appearance: none;
1368
+ border: 1px solid var(--clado-ui-well-border);
1369
+ background: var(--clado-ui-well);
1511
1370
  color: var(--clado-ui-text);
1512
- background: var(--clado-agent-hover);
1371
+ border-radius: 9px;
1372
+ padding: 4px 9px;
1373
+ font-size: 11px;
1374
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1375
+ cursor: pointer;
1376
+ transition: all 140ms ease;
1377
+ }
1378
+ .clado-model-preset-chip:hover {
1379
+ border-color: var(--clado-ui-brand);
1380
+ }
1381
+ .clado-model-preset-chip.active {
1382
+ background: var(--clado-ui-prism-bg);
1383
+ border-color: var(--clado-ui-prism-border);
1384
+ color: var(--clado-ui-prism-text);
1513
1385
  }
1514
- .clado-peer-add-btn:active { transform: scale(0.93); }
1515
1386
 
1516
- .clado-clean-input {
1517
- width: 100%;
1518
- height: 35px;
1519
- padding: 0 11px;
1520
- border-radius: 10px;
1521
- border: 1px solid var(--clado-agent-well-border);
1522
- background: var(--clado-agent-well);
1523
- color: var(--clado-ui-text);
1387
+ /* Long-conversation history pagination banner */
1388
+ .clado-history-loader {
1389
+ align-self: center;
1390
+ appearance: none;
1391
+ border: 1px dashed var(--clado-ui-well-border);
1392
+ background: var(--clado-ui-well);
1393
+ color: var(--clado-ui-muted);
1394
+ border-radius: 999px;
1395
+ padding: 5px 12px;
1524
1396
  font: inherit;
1525
- font-size: 12.5px;
1526
- outline: none;
1397
+ font-size: 11px;
1398
+ cursor: pointer;
1399
+ transition: all 140ms ease;
1527
1400
  }
1528
- .clado-clean-input:focus {
1529
- border-color: var(--clado-ui-brand);
1401
+ .clado-history-loader:hover:not(:disabled) {
1402
+ border-color: var(--clado-ui-prism-border);
1403
+ color: var(--clado-ui-text);
1404
+ background: var(--clado-ui-hover);
1405
+ }
1406
+ .clado-history-loader:disabled {
1407
+ opacity: 0.72;
1408
+ cursor: wait;
1409
+ }
1410
+ .clado-msg-user.is-peer {
1411
+ border-style: dashed;
1412
+ border-color: var(--clado-ui-prism-border);
1530
1413
  }
1531
1414
 
1532
- /* `/` 斜杠命令自动补全浮层 + MCP/Skills/Commands 生态卡片 */
1533
- .clado-slash-menu {
1534
- position: fixed;
1535
- z-index: 96;
1536
- min-width: 240px;
1537
- max-width: min(360px, calc(100vw - 20px));
1538
- max-height: 260px;
1415
+ /* Automations & Event Bus Settings UI */
1416
+ .clado-auto-card {
1417
+ display: flex;
1418
+ flex-direction: column;
1419
+ gap: 8px;
1420
+ }
1421
+ .clado-auto-meta {
1422
+ display: flex;
1423
+ flex-wrap: wrap;
1424
+ align-items: center;
1425
+ gap: 6px;
1426
+ font-size: 11px;
1427
+ color: var(--clado-ui-muted);
1428
+ }
1429
+ .clado-auto-prompt {
1430
+ font-size: 11.5px;
1431
+ color: var(--clado-ui-text-soft);
1432
+ background: rgba(148, 163, 184, 0.08);
1433
+ border: 1px solid var(--clado-ui-edge);
1434
+ border-radius: 10px;
1435
+ padding: 7px 10px;
1436
+ line-height: 1.5;
1437
+ white-space: pre-wrap;
1438
+ word-break: break-word;
1439
+ }
1440
+ .clado-auto-events-grid {
1441
+ display: grid;
1442
+ grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
1443
+ gap: 6px;
1444
+ max-height: 184px;
1539
1445
  overflow-y: auto;
1540
- padding: 6px;
1541
- border-radius: 16px;
1446
+ padding: 2px;
1447
+ }
1448
+ .clado-auto-ev-group {
1449
+ border: 1px solid var(--clado-ui-edge);
1450
+ border-radius: 11px;
1451
+ padding: 7px 9px;
1452
+ background: rgba(148, 163, 184, 0.04);
1542
1453
  display: flex;
1543
1454
  flex-direction: column;
1544
- gap: 2px;
1545
- background: var(--clado-agent-popover);
1546
- backdrop-filter: blur(24px) saturate(190%);
1547
- -webkit-backdrop-filter: blur(24px) saturate(190%);
1548
- border: 1px solid var(--clado-agent-outline);
1549
- box-shadow: var(--clado-agent-shadow);
1550
- font: 12.5px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1455
+ gap: 4px;
1456
+ }
1457
+ .clado-auto-ev-title {
1458
+ font-size: 10.5px;
1459
+ font-weight: 620;
1460
+ color: var(--clado-ui-subtle);
1461
+ margin-bottom: 2px;
1462
+ }
1463
+ .clado-auto-ev-opt {
1464
+ display: flex;
1465
+ align-items: flex-start;
1466
+ gap: 6px;
1467
+ font-size: 11px;
1551
1468
  color: var(--clado-ui-text);
1552
- opacity: 0;
1553
- pointer-events: none;
1554
- transform: translateY(6px) scale(0.96);
1555
- transform-origin: bottom left;
1556
- transition: opacity 150ms var(--clado-ease-spring), transform 170ms var(--clado-ease-spring);
1469
+ cursor: pointer;
1470
+ line-height: 1.35;
1471
+ }
1472
+ .clado-auto-ev-opt code {
1473
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1474
+ font-size: 10.5px;
1475
+ color: var(--clado-ui-prism-text);
1476
+ }
1477
+
1478
+ /* Inline Plugin Parameter Editor & Local Directory Market Folder Picker */
1479
+ .clado-plugin-param-panel {
1480
+ border-top: 1px dashed var(--clado-ui-edge);
1481
+ padding-top: 10px;
1482
+ margin-top: 4px;
1483
+ display: flex;
1484
+ flex-direction: column;
1485
+ gap: 6px;
1557
1486
  }
1558
- .clado-slash-menu.open {
1559
- opacity: 1;
1560
- pointer-events: auto;
1561
- transform: translateY(0) scale(1);
1487
+ .clado-folder-picker {
1488
+ border: 1px solid var(--clado-ui-edge);
1489
+ border-radius: 12px;
1490
+ padding: 10px;
1491
+ background: var(--clado-ui-well);
1562
1492
  }
1563
- .clado-slash-item {
1493
+ .clado-folder-list {
1494
+ display: grid;
1495
+ grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
1496
+ gap: 5px;
1497
+ max-height: 180px;
1498
+ overflow-y: auto;
1499
+ padding-right: 2px;
1500
+ }
1501
+ .clado-folder-row {
1564
1502
  appearance: none;
1565
- border: 1px solid transparent;
1566
- background: transparent;
1503
+ display: inline-flex;
1504
+ align-items: center;
1505
+ gap: 6px;
1506
+ text-align: left;
1507
+ padding: 6px 9px;
1508
+ border-radius: 9px;
1509
+ border: 1px solid var(--clado-ui-edge);
1510
+ background: var(--clado-ui-surface, transparent);
1567
1511
  color: var(--clado-ui-text);
1568
1512
  font: inherit;
1569
- padding: 7px 9px;
1570
- border-radius: 10px;
1571
- text-align: left;
1513
+ font-size: 12px;
1572
1514
  cursor: pointer;
1515
+ overflow: hidden;
1516
+ transition: background 120ms ease, border-color 120ms ease;
1517
+ }
1518
+ .clado-folder-row span {
1519
+ overflow: hidden;
1520
+ text-overflow: ellipsis;
1521
+ white-space: nowrap;
1522
+ }
1523
+ .clado-folder-row:hover {
1524
+ background: var(--clado-ui-hover);
1525
+ border-color: var(--clado-ui-prism-border);
1526
+ }
1527
+
1528
+ /* =========================================================================
1529
+ Settings Center v2 (5 Groups · 16 Dedicated Directories · Searchable)
1530
+ ========================================================================= */
1531
+ :root {
1532
+ --clado-font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
1533
+ --clado-font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Menlo, Consolas, 'PingFang SC', 'Microsoft YaHei UI', monospace;
1534
+ }
1535
+ .clado-settings-shell-v2 {
1536
+ width: min(1100px, 95vw);
1537
+ height: min(790px, 90vh);
1538
+ font-family: var(--clado-font-sans);
1539
+ -webkit-font-smoothing: antialiased;
1540
+ -moz-osx-font-smoothing: grayscale;
1541
+ }
1542
+ .clado-settings-shell-v2 code,
1543
+ .clado-settings-shell-v2 pre {
1544
+ font-family: var(--clado-font-mono);
1545
+ font-variant-ligatures: none;
1546
+ }
1547
+ .clado-settings-shell-v2 textarea.clado-field {
1548
+ font-family: var(--clado-font-mono);
1549
+ font-size: 12.5px;
1550
+ line-height: 1.62;
1551
+ tab-size: 2;
1552
+ letter-spacing: 0;
1553
+ padding: 10px 12px;
1554
+ font-variant-ligatures: none;
1555
+ }
1556
+ .clado-settings-nav-v2 {
1557
+ width: 244px;
1558
+ min-width: 224px;
1559
+ padding: 14px 10px 12px;
1573
1560
  display: flex;
1574
1561
  flex-direction: column;
1575
- gap: 2px;
1562
+ gap: 10px;
1576
1563
  }
1577
- .clado-slash-item:hover,
1578
- .clado-slash-item.active {
1579
- background: var(--clado-agent-active);
1580
- border-color: var(--clado-agent-outline);
1564
+ .clado-snav-top {
1565
+ display: flex;
1566
+ flex-direction: column;
1567
+ gap: 6px;
1568
+ flex: none;
1581
1569
  }
1582
- .clado-slash-item-head {
1570
+ .clado-snav-search {
1583
1571
  display: flex;
1584
1572
  align-items: center;
1585
- justify-content: space-between;
1586
- gap: 8px;
1573
+ gap: 7px;
1574
+ padding: 6px 10px;
1575
+ border-radius: 10px;
1576
+ border: 1px solid var(--clado-ui-well-border);
1577
+ background: var(--clado-ui-well);
1578
+ color: var(--clado-ui-muted);
1587
1579
  }
1588
- .clado-slash-item-name {
1589
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1590
- font-weight: 650;
1591
- color: var(--clado-ui-brand);
1580
+ .clado-snav-search input {
1581
+ border: 0;
1582
+ background: transparent;
1583
+ color: var(--clado-ui-text);
1584
+ font: inherit;
1585
+ font-size: 12px;
1586
+ width: 100%;
1587
+ outline: none;
1592
1588
  }
1593
- .clado-slash-item-scope {
1589
+ .clado-snav-groups {
1590
+ flex: 1;
1591
+ min-height: 0;
1592
+ overflow-y: auto;
1593
+ display: flex;
1594
+ flex-direction: column;
1595
+ gap: 12px;
1596
+ padding-right: 2px;
1597
+ }
1598
+ .clado-snav-group {
1599
+ display: flex;
1600
+ flex-direction: column;
1601
+ gap: 2px;
1602
+ }
1603
+ .clado-snav-group-title {
1594
1604
  font-size: 10.5px;
1605
+ font-weight: 640;
1606
+ letter-spacing: 0.03em;
1607
+ text-transform: uppercase;
1595
1608
  color: var(--clado-ui-subtle);
1609
+ padding: 2px 10px 4px;
1596
1610
  }
1597
- .clado-slash-item-desc {
1598
- font-size: 11.5px;
1611
+ .clado-settings-nav-v2 .clado-snav-btn {
1612
+ padding: 7px 10px;
1613
+ font-size: 12.5px;
1614
+ border-radius: 9px;
1615
+ }
1616
+ .clado-snav-foot {
1617
+ flex: none;
1618
+ padding-top: 6px;
1619
+ border-top: 1px solid var(--clado-ui-edge);
1620
+ }
1621
+ .clado-settings-body-v2 {
1622
+ padding: 22px 26px 28px;
1623
+ gap: 14px;
1624
+ }
1625
+ .clado-set-head {
1626
+ display: flex;
1627
+ align-items: flex-start;
1628
+ justify-content: space-between;
1629
+ gap: 14px;
1630
+ flex-wrap: wrap;
1631
+ }
1632
+ .clado-set-title {
1633
+ font-size: 18px;
1634
+ font-weight: 640;
1635
+ letter-spacing: -0.015em;
1636
+ }
1637
+ .clado-set-sub {
1638
+ font-size: 12.5px;
1599
1639
  color: var(--clado-ui-muted);
1600
- overflow: hidden;
1601
- text-overflow: ellipsis;
1602
- white-space: nowrap;
1640
+ margin-top: 4px;
1641
+ line-height: 1.55;
1603
1642
  }
1604
-
1605
- .clado-eco-card {
1606
- padding: 10px 11px;
1607
- border-radius: 13px;
1608
- border: 1px solid var(--clado-agent-well-border);
1609
- background: var(--clado-agent-well);
1643
+ .clado-set-sub code {
1644
+ font-family: var(--clado-font-mono);
1645
+ font-size: 11.5px;
1646
+ }
1647
+ .clado-set-card {
1610
1648
  display: flex;
1611
1649
  flex-direction: column;
1612
- gap: 6px;
1650
+ gap: 11px;
1651
+ }
1652
+ .clado-set-card-title {
1653
+ font-size: 13px;
1654
+ font-weight: 620;
1655
+ color: var(--clado-ui-text);
1613
1656
  }
1614
- .clado-eco-row {
1657
+ .clado-scope-bar {
1615
1658
  display: flex;
1616
1659
  align-items: center;
1617
1660
  justify-content: space-between;
1661
+ gap: 10px;
1662
+ flex-wrap: wrap;
1663
+ padding: 8px 12px;
1664
+ border-radius: 12px;
1665
+ border: 1px solid var(--clado-ui-well-border);
1666
+ background: var(--clado-ui-well);
1667
+ }
1668
+ .clado-path-pill {
1669
+ font-family: var(--clado-font-mono);
1670
+ font-size: 11px;
1671
+ color: var(--clado-ui-muted);
1672
+ word-break: break-all;
1673
+ }
1674
+ .clado-subtabs {
1675
+ display: flex;
1676
+ align-items: center;
1677
+ gap: 6px;
1678
+ flex-wrap: wrap;
1679
+ }
1680
+ .clado-subtabs .clado-ui-button {
1681
+ min-height: 28px;
1682
+ padding: 4px 12px;
1683
+ font-size: 12px;
1684
+ }
1685
+ .clado-mode-card {
1686
+ display: flex;
1687
+ align-items: flex-start;
1618
1688
  gap: 8px;
1689
+ padding: 10px 12px;
1690
+ border-radius: 11px;
1691
+ border: 1px solid var(--clado-ui-well-border);
1692
+ background: var(--clado-ui-well);
1693
+ cursor: pointer;
1694
+ transition: border-color 140ms ease, background-color 140ms ease;
1695
+ }
1696
+ .clado-mode-card input {
1697
+ margin-top: 3px;
1698
+ flex: none;
1699
+ }
1700
+ .clado-mode-card.active {
1701
+ border-color: var(--clado-ui-prism-border);
1702
+ background: var(--clado-ui-prism-bg);
1703
+ }
1704
+ .clado-model-row {
1705
+ display: grid;
1706
+ grid-template-columns: minmax(160px, 1.5fr) 115px 105px auto auto auto;
1707
+ gap: 6px;
1708
+ align-items: center;
1709
+ padding: 7px 9px;
1710
+ border-radius: 10px;
1711
+ border: 1px solid var(--clado-ui-edge);
1712
+ background: var(--clado-ui-surface, transparent);
1713
+ }
1714
+ .clado-model-row.is-default {
1715
+ border-color: var(--clado-ui-prism-border);
1716
+ background: var(--clado-ui-prism-bg);
1717
+ }
1718
+ .clado-model-row .clado-field {
1719
+ padding: 5px 8px;
1720
+ font-size: 12px;
1721
+ font-family: var(--clado-font-mono);
1619
1722
  }
1620
- .clado-eco-badge {
1723
+ .clado-model-row label {
1621
1724
  display: inline-flex;
1622
1725
  align-items: center;
1623
- padding: 1px 7px;
1624
- border-radius: 999px;
1625
- font-size: 10.5px;
1626
- font-weight: 600;
1627
- background: rgba(37, 99, 235, 0.1);
1628
- color: var(--clado-ui-brand);
1726
+ gap: 4px;
1727
+ font-size: 11.5px;
1728
+ white-space: nowrap;
1729
+ color: var(--clado-ui-muted);
1730
+ cursor: pointer;
1629
1731
  }
1732
+ .clado-mcp-tool-chips {
1733
+ display: flex;
1734
+ flex-wrap: wrap;
1735
+ gap: 5px;
1736
+ margin-top: 8px;
1737
+ padding-top: 8px;
1738
+ border-top: 1px dashed var(--clado-ui-edge);
1739
+ }
1740
+ .clado-mcp-tool-chip {
1741
+ font-family: var(--clado-font-mono);
1742
+ font-size: 11px;
1743
+ padding: 2px 7px;
1744
+ border-radius: 6px;
1745
+ border: 1px solid var(--clado-ui-well-border);
1746
+ background: var(--clado-ui-well);
1747
+ color: var(--clado-ui-text);
1748
+ }
1749
+ :root[data-clado-density="compact"] .clado-settings-body-v2 { padding: 16px 20px; gap: 10px; }
1750
+ :root[data-clado-density="compact"] .clado-well-box { padding: 10px 12px; border-radius: 12px; }
1751
+ :root[data-clado-density="comfortable"] .clado-settings-body-v2 { padding: 26px 32px; gap: 18px; }
1630
1752
 
1631
-
1753
+ @media (max-width: 780px) {
1754
+ .clado-settings-shell-v2 { flex-direction: column; height: 92vh; }
1755
+ .clado-settings-nav-v2 { width: 100%; max-height: 210px; border-right: 0; border-bottom: 1px solid var(--clado-ui-edge); }
1756
+ .clado-model-row { grid-template-columns: 1fr 1fr; }
1757
+ }