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

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.
@@ -1,1631 +1,917 @@
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
- }
17
-
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);
45
- }
46
-
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;
72
- }
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);
85
- }
1
+ /* ================= Clado vNext · Liquid Crystal Glass Dock, Settings & Handoff ================= */
86
2
 
87
- /* ============ 右下角冰晶灵感坞(桌面右下悬浮,小屏自适应防溢出) ============ */
88
- .clado-agent-dock {
89
- width: min(468px, calc(100vw - 24px));
90
- max-width: 100%;
3
+ .clado-vnext-dock {
4
+ width: var(--clado-dock-w, 412px);
5
+ max-width: 840px;
91
6
  display: flex;
92
7
  flex-direction: column;
93
- gap: 7px;
94
- min-width: 0;
95
- pointer-events: none;
96
- box-sizing: border-box;
97
- transform-origin: bottom right;
8
+ gap: 8px;
9
+ position: relative;
10
+ font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
98
11
  }
99
- .clado-agent-dock *,
100
- .clado-agent-overlay *,
101
- .clado-agent-ctx-menu *,
102
- .clado-model-menu * {
103
- box-sizing: border-box;
12
+
13
+ /* Custom ultra-sleek frosted scrollbars */
14
+ .clado-scroll::-webkit-scrollbar {
15
+ width: 5px;
16
+ height: 5px;
104
17
  }
105
- .clado-agent-dock > * {
106
- pointer-events: auto;
107
- min-width: 0;
108
- max-width: 100%;
18
+ .clado-scroll::-webkit-scrollbar-track {
19
+ background: transparent;
109
20
  }
110
- .clado-agent-dock[hidden] {
111
- display: none !important;
21
+ .clado-scroll::-webkit-scrollbar-thumb {
22
+ background: rgba(100, 116, 139, 0.22);
23
+ border-radius: 999px;
112
24
  }
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;
25
+ .clado-scroll:hover::-webkit-scrollbar-thumb {
26
+ background: rgba(100, 116, 139, 0.38);
126
27
  }
127
-
128
- .clado-agent-dock.minimized {
129
- pointer-events: none;
28
+ :root[data-theme="dark"] .clado-scroll::-webkit-scrollbar-thumb {
29
+ background: rgba(148, 163, 184, 0.22);
130
30
  }
131
- .clado-agent-dock.minimized * {
132
- pointer-events: none !important;
31
+ :root[data-theme="dark"] .clado-scroll:hover::-webkit-scrollbar-thumb {
32
+ background: rgba(148, 163, 184, 0.40);
133
33
  }
134
- .clado-agent-dock.minimized .clado-single-wrap {
135
- grid-template-rows: 0fr !important;
136
- pointer-events: none !important;
34
+ .clado-scroll {
35
+ scrollbar-width: thin;
36
+ scrollbar-color: rgba(100, 116, 139, 0.26) transparent;
137
37
  }
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;
38
+ :root[data-theme="dark"] .clado-scroll {
39
+ scrollbar-color: rgba(148, 163, 184, 0.26) transparent;
146
40
  }
147
41
 
148
- /* 右下角收起态灵感悬浮球(绝对定位于右下角同槽位,展开态零高度占位) */
149
- .clado-agent-orb-wrap {
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
+
55
+ /* Subtle Resize Handles (Top-Left NW corner + Top edge + Left edge) */
56
+ .clado-resize-nw {
150
57
  position: absolute;
151
- right: 0;
152
- bottom: 0;
153
- z-index: 4;
154
- pointer-events: none;
155
- }
156
- .clado-agent-orb {
157
- appearance: none;
158
- display: inline-flex;
58
+ top: -3px;
59
+ left: -3px;
60
+ width: 18px;
61
+ height: 18px;
62
+ cursor: nwse-resize;
63
+ z-index: 20;
64
+ border-radius: 18px 0 6px 0;
65
+ display: flex;
159
66
  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);
67
+ justify-content: center;
174
68
  }
175
- .clado-agent-orb.show {
176
- opacity: 1;
177
- pointer-events: auto;
178
- transform: scale(1) translateY(0);
69
+ .clado-resize-nw::after {
70
+ content: "";
71
+ width: 7px;
72
+ height: 7px;
73
+ border-top: 1.5px solid var(--clado-ui-subtle);
74
+ border-left: 1.5px solid var(--clado-ui-subtle);
75
+ border-radius: 2px 0 0 0;
76
+ opacity: 0.35;
77
+ transition: opacity 140ms ease, border-color 140ms ease;
78
+ }
79
+ .clado-resize-nw:hover::after,
80
+ .clado-dock-drawer.resizing .clado-resize-nw::after {
81
+ opacity: 0.9;
82
+ border-color: var(--clado-ui-brand);
179
83
  }
180
- .clado-agent-orb-star {
181
- color: var(--clado-ui-brand);
182
- font-size: 13px;
183
- line-height: 1;
84
+ .clado-resize-n {
85
+ position: absolute;
86
+ top: -4px;
87
+ left: 18px;
88
+ right: 18px;
89
+ height: 8px;
90
+ cursor: ns-resize;
91
+ z-index: 18;
92
+ }
93
+ .clado-resize-w {
94
+ position: absolute;
95
+ top: 18px;
96
+ bottom: 18px;
97
+ left: -4px;
98
+ width: 8px;
99
+ cursor: ew-resize;
100
+ z-index: 18;
184
101
  }
185
102
 
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;
103
+ /* Gently softened bottom aura */
104
+ .clado-dock-aura {
105
+ position: absolute;
106
+ left: 16%;
107
+ right: 16%;
108
+ bottom: -14px;
109
+ height: 30px;
110
+ border-radius: 999px;
111
+ background: linear-gradient(90deg, rgba(56, 189, 248, 0.38), rgba(167, 139, 250, 0.34), rgba(251, 191, 36, 0.30));
112
+ filter: blur(22px);
113
+ opacity: 0.22;
197
114
  pointer-events: none;
115
+ z-index: -1;
198
116
  }
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 {
117
+ :root[data-theme="dark"] .clado-dock-aura { opacity: 0.18; }
118
+
119
+ .clado-dock-inner {
120
+ border-radius: 22px;
206
121
  overflow: hidden;
122
+ display: flex;
123
+ flex-direction: column;
207
124
  }
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;
125
+ .clado-dock-head {
219
126
  display: flex;
220
127
  align-items: center;
221
128
  justify-content: space-between;
222
- gap: 6px;
223
- font-size: 11.5px;
129
+ padding: 11px 14px 11px 16px;
130
+ border-bottom: 1px solid var(--clado-ui-edge);
131
+ gap: 8px;
132
+ position: relative;
133
+ }
134
+ .clado-dock-head-left {
135
+ display: flex;
136
+ align-items: center;
137
+ gap: 7px;
138
+ min-width: 0;
139
+ flex: 1;
224
140
  }
225
- .clado-cmd-approve-copy {
226
- flex: 1 1 0%;
141
+ .clado-dock-session-trigger {
142
+ appearance: none;
143
+ border: 1px solid transparent;
144
+ background: transparent;
145
+ color: var(--clado-ui-text);
146
+ border-radius: 10px;
147
+ padding: 3px 7px;
148
+ margin-left: -4px;
149
+ font: inherit;
150
+ font-size: 13px;
151
+ font-weight: 620;
152
+ cursor: pointer;
153
+ display: inline-flex;
154
+ align-items: center;
155
+ gap: 5px;
227
156
  min-width: 0;
157
+ max-width: 190px;
158
+ transition: background 140ms ease, border-color 140ms ease;
159
+ }
160
+ .clado-dock-session-trigger:hover {
161
+ background: var(--clado-ui-well);
162
+ border-color: var(--clado-ui-well-border);
163
+ }
164
+ .clado-dock-session-trigger span {
228
165
  overflow: hidden;
229
166
  text-overflow: ellipsis;
230
167
  white-space: nowrap;
231
168
  }
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 {
169
+ .clado-dock-actions {
241
170
  display: flex;
242
171
  align-items: center;
243
- gap: 4px;
244
- flex: 0 0 auto;
172
+ gap: 2px;
173
+ flex: none;
245
174
  }
246
- .clado-cmd-btn {
175
+ .clado-dock-mini-btn {
247
176
  appearance: none;
177
+ border: 1px solid transparent;
178
+ background: transparent;
179
+ color: var(--clado-ui-muted);
180
+ border-radius: 9px;
181
+ padding: 4px 8px;
248
182
  font: inherit;
249
- font-size: 11px;
250
- padding: 3.5px 8px;
251
- border-radius: 8px;
252
- white-space: nowrap;
183
+ font-size: 11.5px;
184
+ font-weight: 530;
253
185
  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;
186
+ display: inline-flex;
187
+ align-items: center;
188
+ gap: 4px;
189
+ white-space: nowrap;
190
+ transition: all 140ms ease;
262
191
  }
263
- .clado-cmd-btn.session {
264
- border: 1px solid var(--clado-agent-well-border);
265
- background: var(--clado-agent-well);
192
+ .clado-dock-mini-btn:hover {
193
+ background: var(--clado-ui-hover);
194
+ border-color: var(--clado-ui-hover-border);
266
195
  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
196
  }
277
197
 
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;
198
+ /* Session Manager Popover inside Drawer */
199
+ .clado-session-pop {
200
+ position: absolute;
201
+ top: 46px;
202
+ left: 12px;
203
+ right: 12px;
204
+ z-index: 30;
205
+ border-radius: 16px;
206
+ padding: 10px;
207
+ background: rgba(255, 255, 255, 0.92);
208
+ backdrop-filter: blur(28px) saturate(200%);
209
+ -webkit-backdrop-filter: blur(28px) saturate(200%);
210
+ border: 1px solid var(--clado-ui-glass-outline);
211
+ box-shadow: var(--clado-ui-glass-shadow);
303
212
  display: flex;
304
213
  flex-direction: column;
305
214
  gap: 8px;
306
- border-radius: 22px;
307
- padding: 11px 12px;
308
- opacity: 0;
309
- transform: translateY(8px);
310
- transform-origin: bottom center;
311
215
  }
312
- .clado-single-wrap.open .clado-single-panel {
313
- opacity: 1;
314
- transform: translateY(0);
216
+ :root[data-theme="dark"] .clado-session-pop {
217
+ background: rgba(18, 22, 30, 0.94);
315
218
  }
316
- .clado-sp-body-fade {
219
+ .clado-session-pop[hidden] { display: none; }
220
+ .clado-session-list {
317
221
  display: flex;
318
222
  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;
223
+ gap: 4px;
224
+ max-height: 210px;
225
+ overflow-y: auto;
335
226
  }
336
- .clado-agent-panel.clado-ai-working > .clado-ai-aura { display: block; }
337
-
338
- .clado-sp-header {
227
+ .clado-session-row {
339
228
  display: flex;
340
229
  align-items: center;
341
230
  justify-content: space-between;
342
231
  gap: 6px;
343
- flex-wrap: wrap;
232
+ padding: 6px 8px;
233
+ border-radius: 10px;
234
+ border: 1px solid transparent;
235
+ cursor: pointer;
236
+ transition: background 130ms ease, border-color 130ms ease;
344
237
  }
345
- .clado-sp-title-group {
346
- display: flex;
347
- align-items: center;
348
- gap: 6px;
349
- min-width: 0;
350
- flex: 1 1 auto;
238
+ .clado-session-row:hover {
239
+ background: var(--clado-ui-well);
240
+ border-color: var(--clado-ui-well-border);
351
241
  }
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;
242
+ .clado-session-row.active {
243
+ background: var(--clado-ui-prism-bg);
244
+ border-color: var(--clado-ui-prism-border);
359
245
  }
360
- .clado-tag-pill {
246
+ .clado-session-ops {
361
247
  display: inline-flex;
362
248
  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;
249
+ gap: 2px;
369
250
  flex: none;
370
251
  }
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
252
 
380
- .clado-sp-actions {
253
+ .clado-dock-stream {
254
+ padding: 13px 15px;
381
255
  display: flex;
382
- align-items: center;
383
- gap: 3px;
384
- flex-wrap: wrap;
256
+ flex-direction: column;
257
+ gap: 10px;
258
+ height: var(--clado-dock-stream-h, 300px);
259
+ min-height: 160px;
260
+ max-height: 640px;
261
+ overflow-y: auto;
385
262
  }
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);
263
+ .clado-dock-stream > * {
264
+ flex-shrink: 0;
394
265
  }
395
- .clado-tab-btn {
396
- appearance: none;
397
- border: 1px solid transparent;
398
- background: transparent;
266
+ .clado-dock-empty {
267
+ padding: 22px 10px;
268
+ text-align: center;
399
269
  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;
270
+ font-size: 12px;
271
+ line-height: 1.68;
272
+ }
273
+ .clado-msg-user {
274
+ align-self: flex-end;
275
+ background: var(--clado-ui-prism-bg);
276
+ border: 1px solid var(--clado-ui-prism-border);
277
+ color: var(--clado-ui-prism-text);
278
+ padding: 8px 13px;
279
+ border-radius: 15px 15px 4px 15px;
280
+ font-size: 12.5px;
281
+ line-height: 1.56;
282
+ max-width: 88%;
283
+ white-space: pre-wrap;
284
+ word-break: break-word;
285
+ box-shadow: 0 3px 10px -4px rgba(99, 102, 241, 0.12), inset 0 1px 0 var(--clado-ui-highlight);
408
286
  }
409
- .clado-tab-btn:active { transform: scale(0.96); }
410
- .clado-tab-btn.active {
287
+ .clado-msg-assistant {
288
+ align-self: flex-start;
289
+ background: var(--clado-ui-well);
290
+ border: 1px solid var(--clado-ui-well-border);
291
+ color: var(--clado-ui-text);
292
+ padding: 10px 13px;
293
+ border-radius: 4px 15px 15px 15px;
294
+ font-size: 12.5px;
295
+ line-height: 1.62;
296
+ max-width: 96%;
297
+ word-break: break-word;
298
+ box-shadow: inset 0 1px 0 var(--clado-ui-highlight);
299
+ }
300
+
301
+ /* Rendered Markdown Typography inside Assistant Bubbles */
302
+ .clado-md > :first-child { margin-top: 0; }
303
+ .clado-md > :last-child { margin-bottom: 0; }
304
+ .clado-md p { margin: 0 0 8px; }
305
+ .clado-md h1, .clado-md h2, .clado-md h3, .clado-md h4 {
306
+ margin: 10px 0 5px;
307
+ font-weight: 640;
308
+ line-height: 1.35;
411
309
  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);
416
310
  }
417
-
418
- .clado-icon-act {
419
- appearance: none;
420
- border: 1px solid transparent;
421
- background: transparent;
311
+ .clado-md h1 { font-size: 14.5px; }
312
+ .clado-md h2 { font-size: 13.5px; }
313
+ .clado-md h3, .clado-md h4 { font-size: 12.5px; }
314
+ .clado-md ul, .clado-md ol {
315
+ margin: 4px 0 8px;
316
+ padding-left: 18px;
317
+ }
318
+ .clado-md li { margin: 2px 0; }
319
+ .clado-md blockquote {
320
+ margin: 6px 0;
321
+ padding: 4px 10px;
322
+ border-left: 2.5px solid var(--clado-ui-prism-border);
422
323
  color: var(--clado-ui-muted);
423
- font: inherit;
324
+ background: rgba(148, 163, 184, 0.06);
325
+ border-radius: 0 8px 8px 0;
326
+ }
327
+ .clado-md code {
328
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
424
329
  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;
330
+ background: rgba(148, 163, 184, 0.14);
331
+ padding: 1px 5px;
332
+ border-radius: 5px;
431
333
  }
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);
334
+ .clado-md-pre {
335
+ margin: 7px 0;
336
+ border-radius: 11px;
337
+ background: rgba(15, 23, 42, 0.055);
338
+ border: 1px solid var(--clado-ui-edge);
339
+ overflow: hidden;
438
340
  }
439
- .clado-icon-act.del:hover {
440
- color: var(--clado-agent-danger);
341
+ :root[data-theme="dark"] .clado-md-pre {
342
+ background: rgba(0, 0, 0, 0.30);
441
343
  }
442
-
443
- /* 二级模式与 ACP 执行器紧凑栏 */
444
- .clado-sp-subbar {
344
+ .clado-md-pre-head {
445
345
  display: flex;
446
346
  align-items: center;
447
347
  justify-content: space-between;
448
- gap: 6px;
449
- flex-wrap: wrap;
348
+ padding: 4px 10px;
349
+ font-size: 10.5px;
350
+ color: var(--clado-ui-subtle);
351
+ border-bottom: 1px solid var(--clado-ui-edge);
352
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
450
353
  }
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%;
354
+ .clado-md-pre pre {
355
+ margin: 0;
356
+ padding: 9px 11px;
459
357
  overflow-x: auto;
358
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
359
+ font-size: 11.5px;
360
+ line-height: 1.5;
460
361
  }
461
- .clado-sp-executor-wrap {
462
- position: relative;
463
- flex: 1 1 140px;
464
- min-width: 120px;
465
- z-index: 30;
362
+ .clado-md-pre pre code {
363
+ background: transparent;
364
+ padding: 0;
365
+ border-radius: 0;
466
366
  }
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;
477
- }
478
- .clado-glass-dropdown {
479
- position: relative;
480
- width: 100%;
481
- min-width: 0;
367
+ .clado-md a {
368
+ color: var(--clado-ui-brand);
369
+ text-decoration: underline;
370
+ text-underline-offset: 2px;
482
371
  }
483
- .clado-glass-dropdown-trigger {
484
- appearance: none;
372
+ .clado-md hr {
373
+ border: 0;
374
+ border-top: 1px solid var(--clado-ui-edge);
375
+ margin: 8px 0;
376
+ }
377
+ .clado-md table {
485
378
  width: 100%;
379
+ border-collapse: collapse;
380
+ margin: 6px 0;
381
+ font-size: 11.5px;
382
+ }
383
+ .clado-md th, .clado-md td {
384
+ border: 1px solid var(--clado-ui-edge);
385
+ padding: 4px 7px;
386
+ text-align: left;
387
+ }
388
+ .clado-md th {
389
+ background: rgba(148, 163, 184, 0.09);
390
+ font-weight: 600;
391
+ }
392
+
393
+ .clado-tool-trace {
394
+ border-radius: 13px;
395
+ background: var(--clado-ui-well);
396
+ border: 1px solid var(--clado-ui-well-border);
397
+ overflow: hidden;
398
+ font-size: 11.5px;
399
+ }
400
+ .clado-tool-trace > summary {
401
+ list-style: none;
402
+ cursor: pointer;
403
+ padding: 7px 11px;
486
404
  display: flex;
487
405
  align-items: center;
488
406
  justify-content: space-between;
489
- gap: 6px;
490
- min-height: 28px;
491
- padding: 4px 9px;
407
+ gap: 8px;
408
+ color: var(--clado-ui-muted);
409
+ font-weight: 540;
410
+ user-select: none;
411
+ }
412
+ .clado-tool-trace > summary::-webkit-details-marker { display: none; }
413
+ .clado-tool-trace > summary:hover { color: var(--clado-ui-text); }
414
+ .clado-tool-list {
415
+ display: flex;
416
+ flex-direction: column;
417
+ gap: 4px;
418
+ padding: 0 8px 8px;
419
+ border-top: 1px solid var(--clado-ui-edge);
420
+ padding-top: 7px;
421
+ }
422
+ .clado-tool-step {
492
423
  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;
497
- font-size: 11.5px;
498
- font-weight: 550;
499
- text-align: left;
500
- cursor: pointer;
424
+ background: rgba(148, 163, 184, 0.06);
425
+ border: 1px solid var(--clado-ui-edge);
426
+ padding: 5px 8px;
427
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
428
+ font-size: 11px;
501
429
  }
502
- .clado-glass-dropdown-value {
430
+ .clado-tool-step-head {
503
431
  display: flex;
504
432
  align-items: center;
505
433
  gap: 6px;
506
434
  min-width: 0;
507
- flex: 1;
508
435
  }
509
- .clado-glass-dropdown-label {
510
- overflow: hidden;
511
- text-overflow: ellipsis;
512
- white-space: nowrap;
436
+ .clado-tool-name {
437
+ font-weight: 620;
438
+ color: var(--clado-ui-text-soft);
439
+ flex: none;
440
+ }
441
+ .clado-tool-args {
442
+ color: var(--clado-ui-muted);
443
+ overflow: hidden;
444
+ text-overflow: ellipsis;
445
+ white-space: nowrap;
446
+ flex: 1;
447
+ min-width: 0;
448
+ }
449
+ .clado-tool-preview {
450
+ margin-top: 4px;
451
+ padding-top: 4px;
452
+ border-top: 1px dashed var(--clado-ui-edge);
453
+ color: var(--clado-ui-subtle);
454
+ white-space: pre-wrap;
455
+ word-break: break-all;
456
+ max-height: 76px;
457
+ overflow-y: auto;
458
+ line-height: 1.45;
459
+ }
460
+ .clado-live-activity {
461
+ align-self: flex-start;
462
+ display: inline-flex;
463
+ align-items: center;
464
+ gap: 7px;
465
+ padding: 5px 11px;
466
+ border-radius: 999px;
467
+ background: var(--clado-ui-well);
468
+ border: 1px solid var(--clado-ui-well-border);
469
+ font-size: 11.5px;
470
+ color: var(--clado-ui-muted);
471
+ }
472
+ @keyframes cladoPulse {
473
+ 0%, 100% { opacity: 1; transform: scale(1); }
474
+ 50% { opacity: 0.4; transform: scale(0.82); }
513
475
  }
514
- .clado-glass-dropdown-dot {
515
- width: 6px;
516
- height: 6px;
476
+ .clado-dot-pulse {
477
+ width: 6.5px;
478
+ height: 6.5px;
517
479
  border-radius: 50%;
480
+ background: #38bdf8;
481
+ animation: cladoPulse 1.2s ease-in-out infinite;
518
482
  flex: none;
519
483
  }
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;
484
+ .clado-dot-err {
485
+ width: 6.5px;
486
+ height: 6.5px;
487
+ border-radius: 50%;
488
+ background: #f43f5e;
528
489
  flex: none;
529
- transition: transform 180ms ease;
530
490
  }
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);
491
+ .clado-decision-card {
492
+ border-radius: 16px;
493
+ padding: 12px 13px;
494
+ background: var(--clado-ui-decision-bg);
495
+ border: 1px solid var(--clado-ui-decision-border);
496
+ box-shadow: var(--clado-ui-decision-shadow);
544
497
  display: flex;
545
498
  flex-direction: column;
546
- gap: 2px;
547
- z-index: 60;
499
+ gap: 9px;
548
500
  }
549
- .clado-glass-dropdown-menu[hidden] { display: none !important; }
550
- .clado-glass-dropdown-option {
551
- width: 100%;
552
- display: flex;
553
- align-items: center;
554
- gap: 8px;
555
- padding: 6px 9px;
556
- border-radius: 9px;
557
- text-align: left;
558
- white-space: normal;
501
+ .clado-decision-q {
502
+ font-size: 12.5px;
503
+ line-height: 1.58;
559
504
  color: var(--clado-ui-text);
560
- font-size: 12px;
561
505
  }
562
- .clado-glass-dropdown-copy {
563
- flex: 1;
564
- min-width: 0;
506
+ .clado-decision-opts {
565
507
  display: flex;
566
- flex-direction: column;
508
+ flex-wrap: wrap;
509
+ gap: 7px;
567
510
  }
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);
511
+ .clado-decision-done {
512
+ align-self: flex-start;
572
513
  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;
583
- font-size: 11px;
584
- line-height: 1.45;
514
+ color: var(--clado-ui-muted);
515
+ background: var(--clado-ui-well);
516
+ border: 1px solid var(--clado-ui-well-border);
517
+ border-radius: 999px;
518
+ padding: 3px 10px;
585
519
  }
586
- :root[data-theme="dark"] .clado-plan-banner { color: #fbbf24; }
587
520
 
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;
595
- }
596
- .clado-todo-box[hidden] { display: none !important; }
597
- .clado-todo-head {
521
+ .clado-dock-handoff {
522
+ padding: 8px 14px;
523
+ border-top: 1px solid var(--clado-ui-edge);
598
524
  display: flex;
599
525
  align-items: center;
600
526
  justify-content: space-between;
601
527
  gap: 8px;
602
- }
603
- .clado-todo-summary {
604
- font-weight: 560;
605
- overflow: hidden;
606
- text-overflow: ellipsis;
607
- white-space: nowrap;
608
- }
609
- .clado-todo-arrow {
610
- font-size: 10px;
611
- color: var(--clado-ui-subtle);
612
- flex: none;
613
- }
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;
528
+ font-size: 11.5px;
621
529
  }
622
530
 
623
- /* 消息流 */
624
- .clado-agent-log {
625
- max-height: min(230px, 34dvh);
626
- overflow-y: auto;
627
- overscroll-behavior: contain;
531
+ /* Role Strip */
532
+ .clado-role-strip {
628
533
  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;
641
- color: var(--clado-ui-muted);
534
+ align-items: center;
535
+ gap: 6px;
536
+ overflow-x: auto;
537
+ scrollbar-width: none;
538
+ padding: 2px 1px;
642
539
  }
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;
540
+ .clado-role-strip::-webkit-scrollbar { display: none; }
541
+ .clado-role-pill {
542
+ position: relative;
543
+ overflow: hidden;
544
+ flex: none;
545
+ appearance: none;
546
+ border-radius: 999px;
547
+ padding: 6px 12px;
548
+ font: inherit;
650
549
  font-size: 12px;
651
- }
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);
659
- }
660
- .clado-agent-message.assistant {
661
- width: 100%;
662
- padding: 2px 2px;
663
- }
664
- .clado-agent-message strong,
665
- .clado-agent-message small {
550
+ font-weight: 540;
666
551
  color: var(--clado-ui-muted);
667
- font-size: 10.5px;
668
- display: block;
552
+ background: var(--clado-ui-surface);
553
+ backdrop-filter: blur(22px) saturate(190%);
554
+ -webkit-backdrop-filter: blur(22px) saturate(190%);
555
+ border: 1px solid var(--clado-ui-glass-outline);
556
+ box-shadow: var(--clado-ui-shadow);
557
+ cursor: pointer;
558
+ display: inline-flex;
559
+ align-items: center;
560
+ gap: 6px;
561
+ transition: all 150ms ease;
669
562
  }
670
- .clado-agent-message p {
671
- margin: 2px 0 0;
672
- white-space: pre-wrap;
673
- line-height: 1.55;
563
+ .clado-role-pill::after {
564
+ content: "";
565
+ position: absolute;
566
+ left: 16px;
567
+ right: 16px;
568
+ bottom: 0;
569
+ height: 1.5px;
570
+ border-radius: 2px;
571
+ opacity: 0.36;
572
+ transition: all 150ms ease;
573
+ }
574
+ .clado-role-pill[data-tone="sky"]::after { background: linear-gradient(90deg, #38bdf8, #818cf8); }
575
+ .clado-role-pill[data-tone="emerald"]::after { background: linear-gradient(90deg, #34d399, #2dd4bf); }
576
+ .clado-role-pill[data-tone="violet"]::after { background: linear-gradient(90deg, #a78bfa, #f472b6); }
577
+ .clado-role-pill[data-tone="amber"]::after { background: linear-gradient(90deg, #fbbf24, #fb923c); }
578
+ .clado-role-pill.active {
674
579
  color: var(--clado-ui-text);
580
+ background: var(--clado-ui-active);
581
+ border-color: rgba(147, 197, 253, 0.58);
582
+ box-shadow: 0 4px 14px -6px rgba(56, 189, 248, 0.16), inset 0 1px 0 var(--clado-ui-highlight);
675
583
  }
584
+ .clado-role-pill.active::after { left: 10px; right: 10px; opacity: 0.72; }
676
585
 
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;
684
- }
685
- .clado-peer-call-head {
686
- font-size: 10.5px;
687
- font-weight: 650;
688
- color: var(--clado-ui-brand);
689
- margin-bottom: 2px;
586
+ .clado-role-add {
587
+ width: 30px;
588
+ height: 30px;
589
+ padding: 0;
590
+ justify-content: center;
690
591
  }
592
+ .clado-role-add::after { display: none; }
691
593
 
692
- .clado-agent-thinking {
693
- margin: 4px 0 5px;
694
- padding: 5px 9px;
695
- border-radius: 10px;
696
- border: 1px solid var(--clado-agent-well-border);
697
- background: var(--clado-agent-well);
698
- font-size: 11px;
699
- }
700
- .clado-agent-thinking summary {
701
- cursor: pointer;
702
- color: var(--clado-ui-muted);
703
- font-weight: 550;
704
- user-select: none;
594
+ /* Multiline Auto-Grow Composer */
595
+ .clado-composer {
596
+ position: relative;
597
+ border-radius: 20px;
598
+ padding: 8px 10px 7px 12px;
599
+ display: flex;
600
+ flex-direction: column;
601
+ gap: 6px;
602
+ background: var(--clado-ui-surface);
603
+ backdrop-filter: blur(22px) saturate(190%);
604
+ -webkit-backdrop-filter: blur(22px) saturate(190%);
605
+ border: 1px solid var(--clado-ui-glass-outline);
606
+ box-shadow: var(--clado-ui-shadow);
705
607
  }
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;
608
+ .clado-composer-input {
609
+ width: 100%;
610
+ min-height: 22px;
611
+ max-height: 132px;
612
+ border: 0;
613
+ outline: 0;
614
+ resize: none;
615
+ background: transparent;
616
+ color: var(--clado-ui-text);
617
+ font: inherit;
618
+ font-size: 12.5px;
712
619
  line-height: 1.5;
713
- color: var(--clado-ui-muted);
620
+ padding: 0;
621
+ overflow-y: auto;
714
622
  }
715
-
716
- .clado-changes-row {
717
- margin-top: 6px;
623
+ .clado-composer-input::placeholder { color: var(--clado-ui-subtle); }
624
+ .clado-composer-bar {
718
625
  display: flex;
719
626
  align-items: center;
720
627
  justify-content: space-between;
721
628
  gap: 6px;
722
- flex-wrap: wrap;
723
629
  }
724
- .clado-changes-chips {
630
+ .clado-composer-left {
725
631
  display: flex;
632
+ align-items: center;
726
633
  gap: 5px;
727
- flex-wrap: wrap;
634
+ min-width: 0;
728
635
  }
729
- .clado-tool-chip {
730
- appearance: none;
731
- display: inline-flex;
636
+ .clado-composer-right {
637
+ display: flex;
732
638
  align-items: center;
733
639
  gap: 5px;
734
- padding: 3.5px 9px;
640
+ flex: none;
641
+ }
642
+ .clado-model-chip {
643
+ appearance: none;
644
+ border: 1px solid var(--clado-ui-well-border);
645
+ background: var(--clado-ui-well);
646
+ color: var(--clado-ui-text-soft);
735
647
  border-radius: 999px;
736
- background: var(--clado-agent-well);
737
- border: 1px solid var(--clado-agent-well-border);
738
- font: inherit;
648
+ padding: 3px 9px;
649
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
739
650
  font-size: 11px;
740
- color: var(--clado-ui-muted);
651
+ max-width: 126px;
652
+ overflow: hidden;
653
+ text-overflow: ellipsis;
654
+ white-space: nowrap;
741
655
  cursor: pointer;
742
- transition: background-color 150ms ease, color 150ms ease, transform 130ms ease;
743
656
  }
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);
657
+ .clado-model-chip:hover {
658
+ background: var(--clado-ui-hover);
659
+ border-color: var(--clado-ui-hover-border);
749
660
  }
750
- .clado-tool-chip.rollback {
751
- color: var(--clado-ui-brand);
752
- font-weight: 560;
661
+ .clado-sendmode-btn {
662
+ appearance: none;
663
+ border: 1px solid transparent;
664
+ background: transparent;
665
+ color: var(--clado-ui-subtle);
666
+ border-radius: 999px;
667
+ padding: 3px 8px;
668
+ font: inherit;
669
+ font-size: 10.5px;
670
+ cursor: pointer;
671
+ white-space: nowrap;
672
+ transition: all 140ms ease;
753
673
  }
754
- .clado-tool-chip.rollback.done {
755
- color: #059669;
674
+ .clado-sendmode-btn:hover {
675
+ background: var(--clado-ui-well);
676
+ border-color: var(--clado-ui-well-border);
677
+ color: var(--clado-ui-text-soft);
756
678
  }
757
679
 
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);
680
+ /* Slash command & Model popovers */
681
+ .clado-dock-popover {
682
+ position: absolute;
683
+ left: 0;
684
+ right: 0;
685
+ bottom: calc(100% + 8px);
686
+ border-radius: 18px;
687
+ padding: 8px;
688
+ background: var(--clado-ui-popover);
689
+ backdrop-filter: blur(26px) saturate(195%);
690
+ -webkit-backdrop-filter: blur(26px) saturate(195%);
691
+ border: 1px solid var(--clado-ui-glass-outline);
692
+ box-shadow: var(--clado-ui-glass-shadow);
766
693
  display: flex;
767
694
  flex-direction: column;
768
- gap: 7px;
769
- }
770
- .clado-agent-question.answered {
771
- border-color: var(--clado-agent-edge);
772
- background: var(--clado-agent-track);
695
+ gap: 3px;
696
+ max-height: 220px;
697
+ overflow-y: auto;
698
+ z-index: 45;
773
699
  }
774
- .clado-agent-question-badge {
775
- display: inline-flex;
700
+ .clado-dock-popover[hidden] { display: none; }
701
+ .clado-pop-item {
702
+ appearance: none;
703
+ border: 1px solid transparent;
704
+ background: transparent;
705
+ color: var(--clado-ui-text-soft);
706
+ border-radius: 11px;
707
+ padding: 7px 10px;
708
+ font: inherit;
709
+ font-size: 12px;
710
+ text-align: left;
711
+ cursor: pointer;
712
+ display: flex;
776
713
  align-items: center;
777
- gap: 6px;
778
- font-size: 10.5px;
779
- font-weight: 620;
714
+ justify-content: space-between;
715
+ gap: 8px;
716
+ }
717
+ .clado-pop-item:hover {
718
+ background: var(--clado-ui-hover);
719
+ border-color: var(--clado-ui-hover-border);
780
720
  color: var(--clado-ui-text);
781
721
  }
782
- .clado-agent-question-badge::before {
783
- content: "";
784
- width: 6px;
785
- height: 6px;
786
- border-radius: 50%;
787
- background: #f59e0b;
722
+
723
+ /* ================= Unified 5-Tab Settings Center & Handoff Modal ================= */
724
+ .clado-vnext-mask {
725
+ position: absolute;
726
+ inset: 0;
727
+ z-index: 80;
728
+ background: rgba(15, 23, 42, 0.14);
729
+ backdrop-filter: blur(8px);
730
+ -webkit-backdrop-filter: blur(8px);
731
+ display: flex;
732
+ align-items: center;
733
+ justify-content: center;
734
+ padding: 24px;
788
735
  }
789
- .clado-agent-question-text {
790
- font-size: 12px;
791
- line-height: 1.5;
792
- font-weight: 500;
736
+ .clado-vnext-mask[hidden] { display: none; }
737
+
738
+ .clado-settings-shell {
739
+ width: min(920px, calc(100% - 32px));
740
+ height: min(630px, calc(100% - 32px));
741
+ border-radius: 26px;
742
+ background: var(--clado-ui-popover);
743
+ backdrop-filter: blur(28px) saturate(200%);
744
+ -webkit-backdrop-filter: blur(28px) saturate(200%);
745
+ border: 1px solid var(--clado-ui-glass-outline);
746
+ box-shadow: var(--clado-ui-glass-shadow);
747
+ display: flex;
748
+ overflow: hidden;
749
+ color: var(--clado-ui-text);
793
750
  }
794
- .clado-agent-question-options {
751
+ .clado-settings-nav {
752
+ width: 224px;
753
+ flex: none;
754
+ padding: 20px 14px;
755
+ border-right: 1px solid var(--clado-ui-edge);
795
756
  display: flex;
796
757
  flex-direction: column;
797
- gap: 4px;
758
+ justify-content: space-between;
759
+ background: rgba(255, 255, 255, 0.14);
798
760
  }
799
- .clado-agent-option-btn {
761
+ :root[data-theme="dark"] .clado-settings-nav { background: rgba(255, 255, 255, 0.02); }
762
+ .clado-snav-list { display: flex; flex-direction: column; gap: 4px; }
763
+ .clado-snav-btn {
764
+ width: 100%;
800
765
  appearance: none;
801
766
  border: 1px solid transparent;
802
- border-radius: 10px;
803
767
  background: transparent;
804
- color: var(--clado-ui-text);
805
- padding: 7px 9px;
806
- text-align: left;
807
- cursor: pointer;
768
+ color: var(--clado-ui-muted);
769
+ padding: 9px 12px;
770
+ border-radius: 13px;
808
771
  font: inherit;
772
+ font-size: 12.5px;
773
+ font-weight: 540;
774
+ cursor: pointer;
775
+ display: flex;
776
+ align-items: center;
777
+ gap: 9px;
778
+ text-align: left;
779
+ transition: all 140ms ease;
780
+ }
781
+ .clado-snav-btn:hover { background: var(--clado-ui-well); color: var(--clado-ui-text); }
782
+ .clado-snav-btn.active {
783
+ background: var(--clado-ui-prism-bg);
784
+ border-color: var(--clado-ui-prism-border);
785
+ color: var(--clado-ui-prism-text);
786
+ box-shadow: 0 3px 10px -4px rgba(99, 102, 241, 0.14), inset 0 1px 0 var(--clado-ui-highlight);
787
+ }
788
+ .clado-settings-body {
789
+ flex: 1;
790
+ padding: 24px 28px;
791
+ overflow-y: auto;
809
792
  display: flex;
810
793
  flex-direction: column;
811
- gap: 2px;
812
- transition: background 140ms ease, border-color 140ms ease;
794
+ gap: 14px;
813
795
  }
814
- .clado-agent-option-btn:hover:not(:disabled) {
815
- background: var(--clado-agent-active);
816
- border-color: var(--clado-agent-outline);
796
+ .clado-well-box {
797
+ background: var(--clado-ui-well);
798
+ border: 1px solid var(--clado-ui-well-border);
799
+ box-shadow: inset 0 1px 0 var(--clado-ui-highlight);
800
+ border-radius: 16px;
801
+ padding: 13px 16px;
817
802
  }
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 {
803
+ .clado-setting-row {
821
804
  display: flex;
822
- gap: 5px;
805
+ align-items: center;
806
+ justify-content: space-between;
807
+ gap: 14px;
823
808
  }
824
- .clado-agent-question-custom input {
825
- flex: 1;
826
- 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);
809
+ .clado-field {
810
+ width: 100%;
811
+ border-radius: 11px;
812
+ padding: 8px 11px;
813
+ border: 1px solid var(--clado-ui-well-border);
814
+ background: var(--clado-ui-well);
831
815
  color: var(--clado-ui-text);
832
816
  font: inherit;
833
- font-size: 11.5px;
817
+ font-size: 12.5px;
834
818
  outline: none;
835
819
  }
836
- .clado-agent-question-answered {
837
- font-size: 11px;
838
- color: var(--clado-ui-brand);
839
- font-weight: 560;
820
+ .clado-field:focus {
821
+ border-color: var(--clado-ui-prism-border);
822
+ background: var(--clado-ui-well-focus);
840
823
  }
841
824
 
842
- .clado-agent-status {
843
- margin: 0;
844
- font-size: 11px;
845
- color: var(--clado-ui-muted);
846
- overflow: hidden;
847
- text-overflow: ellipsis;
848
- white-space: nowrap;
825
+ /* Glass Switch */
826
+ .clado-switch {
827
+ width: 36px;
828
+ height: 20px;
829
+ border-radius: 999px;
830
+ background: var(--clado-ui-well);
831
+ border: 1px solid var(--clado-ui-well-border);
832
+ position: relative;
833
+ cursor: pointer;
834
+ flex: none;
835
+ transition: all 160ms ease;
849
836
  }
850
- .clado-agent-status[hidden] { display: none !important; }
837
+ .clado-switch::after {
838
+ content: "";
839
+ position: absolute;
840
+ top: 2px;
841
+ left: 2px;
842
+ width: 14px;
843
+ height: 14px;
844
+ border-radius: 50%;
845
+ background: #ffffff;
846
+ box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
847
+ transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
848
+ }
849
+ .clado-switch.on {
850
+ background: linear-gradient(135deg, rgba(56, 189, 248, 0.66), rgba(129, 140, 248, 0.70));
851
+ border-color: rgba(125, 211, 252, 0.78);
852
+ box-shadow: 0 0 8px rgba(56, 189, 248, 0.22);
853
+ }
854
+ .clado-switch.on::after { transform: translateX(16px); }
851
855
 
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;
856
+ /* Semantic Pastel Glass Chips */
857
+ .clado-chip {
878
858
  display: inline-flex;
879
859
  align-items: center;
880
- gap: 0;
881
- height: 31px;
882
- padding: 0 12px;
860
+ gap: 5px;
861
+ padding: 2px 8px;
883
862
  border-radius: 999px;
884
- 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
863
  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
- }
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;
997
- }
998
- .clado-agent-min-btn {
999
- 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;
1022
- 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
- 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);
1060
- font: inherit;
1061
- font-size: 12px;
1062
- font-weight: 600;
1063
- cursor: pointer;
1064
- flex: none;
1065
- white-space: nowrap;
1066
- transition: opacity 150ms ease, transform 120ms ease;
1067
- }
1068
- .clado-agent-send-btn:disabled {
1069
- opacity: 0.42;
1070
- cursor: default;
1071
- }
1072
- .clado-agent-send-btn:not(:disabled):active { transform: scale(0.96); }
1073
-
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 {
1091
- position: absolute;
1092
- left: 0;
1093
- 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;
1132
- display: flex;
1133
- flex-direction: column;
1134
- 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);
1155
- }
1156
- .clado-ctx-badge {
1157
- padding: 3px 9px 5px;
1158
- font-size: 10.5px;
1159
- font-weight: 600;
1160
- color: var(--clado-ui-subtle);
1161
- display: flex;
1162
- align-items: center;
1163
- justify-content: space-between;
1164
- gap: 8px;
1165
- border-bottom: 1px solid var(--clado-agent-edge);
1166
- margin-bottom: 2px;
1167
- }
1168
- .clado-ctx-btn {
1169
- appearance: none;
864
+ font-weight: 560;
1170
865
  border: 1px solid transparent;
1171
- background: transparent;
1172
- color: var(--clado-ui-text);
1173
- font: inherit;
1174
- font-size: 12.5px;
1175
- font-weight: 520;
1176
- padding: 7.5px 10px;
1177
- border-radius: 10px;
1178
- text-align: left;
1179
- cursor: pointer;
1180
- display: flex;
1181
- align-items: center;
1182
- justify-content: space-between;
1183
- gap: 10px;
1184
- transition: background-color 140ms ease, border-color 140ms ease;
1185
- }
1186
- .clado-ctx-btn:hover,
1187
- .clado-ctx-btn:active {
1188
- background: var(--clado-agent-active);
1189
- border-color: var(--clado-agent-outline);
1190
- }
1191
- .clado-ctx-btn.danger {
1192
- color: var(--clado-agent-danger);
1193
- }
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;
1222
- 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);
1228
- }
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);
1233
- }
1234
-
1235
- .clado-group-title {
1236
- font-size: 11.5px;
1237
- font-weight: 600;
1238
- color: var(--clado-ui-muted);
1239
- padding: 0 4px 4px;
1240
- }
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;
1246
- overflow: hidden;
1247
- }
1248
- .clado-s-row {
1249
- display: flex;
1250
- 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);
1260
- }
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;
1267
- color: var(--clado-ui-text);
1268
- }
1269
- .clado-s-val {
1270
- font-size: 12.5px;
1271
- color: var(--clado-ui-muted);
1272
- display: inline-flex;
1273
- 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);
1282
- }
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;
1293
- }
1294
- .clado-cfg-sub-page {
1295
- display: flex;
1296
- 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);
1308
- }
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;
1319
- }
1320
-
1321
- .clado-switch-btn {
1322
- appearance: none;
1323
- width: 40px;
1324
- height: 23px;
1325
- 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);
1330
- position: relative;
1331
- transition: background-color 200ms var(--clado-ease-spring);
1332
- flex: none;
1333
- }
1334
- .clado-switch-btn.on {
1335
- background: var(--clado-ui-brand);
1336
- border-color: transparent;
1337
- }
1338
- .clado-switch-btn i {
1339
- display: block;
1340
- width: 18px;
1341
- height: 18px;
1342
- 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;
1347
- }
1348
- .clado-switch-btn.on i { transform: translateX(17px); }
1349
-
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;
1364
- }
1365
-
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;
1378
- 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);
1389
- overflow: hidden;
1390
- text-overflow: ellipsis;
1391
866
  white-space: nowrap;
1392
867
  }
1393
- .clado-agent-toast.show {
1394
- opacity: 1;
1395
- transform: translateY(0) scale(1);
1396
- }
868
+ .clado-chip-sky { background: rgba(186, 230, 253, 0.50); border-color: rgba(125, 211, 252, 0.58); color: #0369a1; }
869
+ .clado-chip-mint { background: rgba(167, 243, 208, 0.48); border-color: rgba(110, 231, 183, 0.58); color: #047857; }
870
+ .clado-chip-amber { background: rgba(253, 230, 138, 0.48); border-color: rgba(252, 211, 77, 0.62); color: #b45309; }
871
+ .clado-chip-violet { background: rgba(221, 214, 254, 0.50); border-color: rgba(196, 181, 253, 0.62); color: #6d28d9; }
872
+ .clado-chip-neutral { background: var(--clado-ui-well); border-color: var(--clado-ui-well-border); color: var(--clado-ui-muted); }
1397
873
 
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
- }
1412
- }
874
+ :root[data-theme="dark"] .clado-chip-sky { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.30); color: #7dd3fc; }
875
+ :root[data-theme="dark"] .clado-chip-mint { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.30); color: #6ee7b7; }
876
+ :root[data-theme="dark"] .clado-chip-amber { background: rgba(251, 191, 36, 0.16); border-color: rgba(251, 191, 36, 0.30); color: #fcd34d; }
877
+ :root[data-theme="dark"] .clado-chip-violet { background: rgba(167, 139, 250, 0.18); border-color: rgba(167, 139, 250, 0.32); color: #c4b5fd; }
1413
878
 
1414
- /* 输入栏模型快切胶囊与弹窗 + 会话条尾端新建按钮 */
1415
- .clado-model-chip {
1416
- appearance: none;
1417
- flex: 0 0 auto;
1418
- height: 28px;
1419
- max-width: 126px;
1420
- padding: 0 9px;
1421
- border-radius: 999px;
1422
- border: 1px solid var(--clado-agent-well-border);
1423
- background: var(--clado-agent-well);
1424
- color: var(--clado-ui-text);
1425
- font: inherit;
1426
- font-size: 11.5px;
1427
- font-weight: 580;
1428
- cursor: pointer;
1429
- display: inline-flex;
1430
- align-items: center;
1431
- gap: 4px;
1432
- white-space: nowrap;
1433
- transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
1434
- }
1435
- .clado-model-chip:hover {
1436
- background: var(--clado-agent-hover);
1437
- border-color: var(--clado-agent-outline);
1438
- }
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;
1445
- }
1446
- .clado-model-chip-label {
1447
- overflow: hidden;
1448
- text-overflow: ellipsis;
1449
- white-space: nowrap;
1450
- }
1451
- .clado-model-chip-caret {
1452
- font-size: 10px;
1453
- opacity: 0.65;
879
+ .clado-dot-ok {
880
+ width: 6.5px;
881
+ height: 6.5px;
882
+ border-radius: 50%;
883
+ background: #34d399;
884
+ box-shadow: 0 0 6px rgba(52, 211, 153, 0.55);
885
+ display: inline-block;
1454
886
  flex: none;
1455
887
  }
1456
-
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;
1466
- display: flex;
1467
- 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;
1475
- 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
- }
1482
- .clado-model-menu.open {
1483
- opacity: 1;
1484
- pointer-events: auto;
1485
- transform: translateY(0) scale(1);
1486
- }
1487
-
1488
- .clado-peer-add-btn {
1489
- appearance: none;
1490
- flex: 0 0 auto;
1491
- width: 29px;
1492
- height: 29px;
1493
- 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);
1499
- color: var(--clado-ui-muted);
1500
- font: inherit;
1501
- font-size: 14px;
1502
- font-weight: 600;
1503
- cursor: pointer;
1504
- display: inline-flex;
1505
- align-items: center;
1506
- justify-content: center;
1507
- padding: 0;
1508
- line-height: 1;
1509
- }
1510
- .clado-peer-add-btn:hover {
1511
- color: var(--clado-ui-text);
1512
- background: var(--clado-agent-hover);
1513
- }
1514
- .clado-peer-add-btn:active { transform: scale(0.93); }
1515
-
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);
1524
- font: inherit;
1525
- font-size: 12.5px;
1526
- outline: none;
1527
- }
1528
- .clado-clean-input:focus {
1529
- border-color: var(--clado-ui-brand);
888
+ .clado-dot-sky {
889
+ width: 6.5px;
890
+ height: 6.5px;
891
+ border-radius: 50%;
892
+ background: #38bdf8;
893
+ box-shadow: 0 0 6px rgba(56, 189, 248, 0.60);
894
+ display: inline-block;
895
+ flex: none;
1530
896
  }
1531
897
 
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;
1539
- overflow-y: auto;
1540
- padding: 6px;
1541
- border-radius: 16px;
1542
- display: flex;
1543
- 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;
898
+ .clado-handoff-card {
899
+ width: min(468px, calc(100% - 32px));
900
+ border-radius: 24px;
901
+ padding: 24px;
902
+ background: var(--clado-ui-popover);
903
+ backdrop-filter: blur(28px) saturate(200%);
904
+ -webkit-backdrop-filter: blur(28px) saturate(200%);
905
+ border: 1px solid var(--clado-ui-glass-outline);
906
+ box-shadow: var(--clado-ui-glass-shadow);
907
+ position: relative;
1551
908
  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);
1557
909
  }
1558
- .clado-slash-menu.open {
1559
- opacity: 1;
1560
- pointer-events: auto;
1561
- transform: translateY(0) scale(1);
1562
- }
1563
- .clado-slash-item {
1564
- appearance: none;
1565
- border: 1px solid transparent;
1566
- background: transparent;
1567
- color: var(--clado-ui-text);
1568
- font: inherit;
1569
- padding: 7px 9px;
1570
- border-radius: 10px;
1571
- text-align: left;
910
+ .clado-handoff-opt {
1572
911
  cursor: pointer;
1573
- display: flex;
1574
- flex-direction: column;
1575
- gap: 2px;
1576
- }
1577
- .clado-slash-item:hover,
1578
- .clado-slash-item.active {
1579
- background: var(--clado-agent-active);
1580
- border-color: var(--clado-agent-outline);
1581
- }
1582
- .clado-slash-item-head {
1583
- display: flex;
1584
- align-items: center;
1585
- justify-content: space-between;
1586
- gap: 8px;
1587
- }
1588
- .clado-slash-item-name {
1589
- font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1590
- font-weight: 650;
1591
- color: var(--clado-ui-brand);
1592
- }
1593
- .clado-slash-item-scope {
1594
- font-size: 10.5px;
1595
- color: var(--clado-ui-subtle);
1596
- }
1597
- .clado-slash-item-desc {
1598
- font-size: 11.5px;
1599
- color: var(--clado-ui-muted);
1600
- overflow: hidden;
1601
- text-overflow: ellipsis;
1602
- white-space: nowrap;
912
+ transition: all 150ms ease;
1603
913
  }
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);
1610
- display: flex;
1611
- flex-direction: column;
1612
- gap: 6px;
914
+ .clado-handoff-opt:hover {
915
+ background: var(--clado-ui-hover);
916
+ border-color: var(--clado-ui-hover-border);
1613
917
  }
1614
- .clado-eco-row {
1615
- display: flex;
1616
- align-items: center;
1617
- justify-content: space-between;
1618
- gap: 8px;
1619
- }
1620
- .clado-eco-badge {
1621
- display: inline-flex;
1622
- 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);
1629
- }
1630
-
1631
-