cladogram 0.5.5-beta.5 → 0.5.5-beta.7

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,50 +1,320 @@
1
- .clado-agent {
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
+ }
86
+
87
+ /* ============ 底部灵感坞(严格锁定视口宽度,绝不横向撑破屏幕) ============ */
88
+ .clado-agent-dock {
89
+ width: 100%;
90
+ max-width: min(500px, calc(100vw - 20px));
91
+ display: flex;
92
+ flex-direction: column;
93
+ gap: 7px;
94
+ min-width: 0;
95
+ pointer-events: none;
96
+ box-sizing: border-box;
97
+ }
98
+ .clado-agent-dock *,
99
+ .clado-agent-overlay *,
100
+ .clado-agent-ctx-menu * {
101
+ box-sizing: border-box;
102
+ }
103
+ .clado-agent-dock > * {
104
+ pointer-events: auto;
105
+ min-width: 0;
106
+ max-width: 100%;
107
+ }
108
+ .clado-agent-dock[hidden] {
109
+ display: none !important;
110
+ }
111
+
112
+ .clado-agent-dock .clado-cmd-approve-bar,
113
+ .clado-agent-dock .clado-single-panel,
114
+ .clado-agent-dock .clado-peer-pill,
115
+ .clado-agent-dock .clado-agent-shell {
116
+ transition:
117
+ opacity 260ms var(--clado-ease-spring),
118
+ transform 300ms var(--clado-ease-spring),
119
+ box-shadow 300ms var(--clado-ease-spring),
120
+ --ring-half 380ms var(--clado-ease-spring),
121
+ --ring-feather 380ms var(--clado-ease-spring),
122
+ --ring-color 300ms ease;
123
+ }
124
+
125
+ .clado-agent-dock.minimized {
126
+ pointer-events: none;
127
+ }
128
+ .clado-agent-dock.minimized * {
129
+ pointer-events: none !important;
130
+ }
131
+ .clado-agent-dock.minimized .clado-cmd-approve-bar,
132
+ .clado-agent-dock.minimized .clado-single-panel,
133
+ .clado-agent-dock.minimized .clado-peer-pill,
134
+ .clado-agent-dock.minimized .clado-agent-shell {
135
+ opacity: 0;
136
+ transform: translate3d(24px, 16px, 0) scale(0.86);
137
+ }
138
+
139
+ /* 右下角收起态灵感悬浮球 */
140
+ .clado-agent-orb-wrap {
2
141
  position: relative;
3
142
  align-self: end;
143
+ pointer-events: none;
4
144
  }
5
- .clado-agent-launch {
6
- min-height: 34px;
145
+ .clado-agent-orb {
146
+ appearance: none;
7
147
  display: inline-flex;
8
148
  align-items: center;
149
+ gap: 7px;
150
+ height: 42px;
151
+ padding: 0 14px;
152
+ border-radius: 15px;
153
+ color: var(--clado-ui-text);
154
+ font: inherit;
155
+ font-size: 13px;
156
+ font-weight: 580;
157
+ cursor: pointer;
158
+ white-space: nowrap;
159
+ opacity: 0;
160
+ pointer-events: none;
161
+ transform: scale(0.75) translateY(6px);
162
+ transition: opacity 260ms var(--clado-ease-spring), transform 300ms var(--clado-ease-spring);
163
+ }
164
+ .clado-agent-orb.show {
165
+ opacity: 1;
166
+ pointer-events: auto;
167
+ transform: scale(1) translateY(0);
168
+ }
169
+ .clado-agent-orb-star {
170
+ color: var(--clado-ui-brand);
171
+ font-size: 13px;
172
+ line-height: 1;
173
+ }
174
+
175
+ /* ============ 折叠包装器与命令审批条(minmax(0, 1fr) 严防长命令撑出移动端视口) ============ */
176
+ .clado-collapse-wrap {
177
+ display: grid;
178
+ grid-template-columns: minmax(0, 1fr);
179
+ grid-template-rows: 1fr;
180
+ width: 100%;
181
+ min-width: 0;
182
+ transition: grid-template-rows 280ms var(--clado-ease-spring);
183
+ }
184
+ .clado-collapse-wrap.closed {
185
+ grid-template-rows: 0fr;
186
+ pointer-events: none;
187
+ }
188
+ .clado-collapse-inner {
189
+ overflow: visible;
190
+ min-height: 0;
191
+ min-width: 0;
192
+ width: 100%;
193
+ }
194
+ .clado-collapse-wrap.closed .clado-collapse-inner {
195
+ overflow: hidden;
196
+ }
197
+ .clado-collapse-wrap.closed .clado-cmd-approve-bar {
198
+ opacity: 0;
199
+ transform: translateY(6px) scale(0.98);
200
+ }
201
+
202
+ .clado-cmd-approve-bar {
203
+ width: 100%;
204
+ min-width: 0;
205
+ max-width: 100%;
206
+ border-radius: 15px;
207
+ padding: 6px 8px 6px 11px;
208
+ display: flex;
209
+ align-items: center;
210
+ justify-content: space-between;
9
211
  gap: 6px;
10
- padding-inline: 10px;
212
+ font-size: 11.5px;
213
+ }
214
+ .clado-cmd-approve-copy {
215
+ flex: 1 1 0%;
216
+ min-width: 0;
217
+ overflow: hidden;
218
+ text-overflow: ellipsis;
219
+ white-space: nowrap;
220
+ }
221
+ .clado-cmd-approve-copy code {
222
+ padding: 1px 5px;
223
+ border-radius: 6px;
224
+ background: var(--clado-agent-well);
225
+ border: 0.5px solid var(--clado-agent-well-border);
226
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
227
+ font-size: 11px;
228
+ }
229
+ .clado-cmd-approve-actions {
230
+ display: flex;
231
+ align-items: center;
232
+ gap: 4px;
233
+ flex: 0 0 auto;
234
+ }
235
+ .clado-cmd-btn {
236
+ appearance: none;
237
+ font: inherit;
238
+ font-size: 11px;
239
+ padding: 3.5px 8px;
240
+ border-radius: 8px;
241
+ white-space: nowrap;
242
+ cursor: pointer;
243
+ transition: opacity 140ms ease, transform 120ms ease;
244
+ }
245
+ .clado-cmd-btn:active { transform: scale(0.96); }
246
+ .clado-cmd-btn.allow {
247
+ border: 0;
248
+ background: var(--clado-ui-brand);
249
+ color: #fff;
250
+ font-weight: 600;
251
+ }
252
+ .clado-cmd-btn.session {
253
+ border: 1px solid var(--clado-agent-well-border);
254
+ background: var(--clado-agent-well);
11
255
  color: var(--clado-ui-text);
256
+ font-weight: 550;
257
+ padding-inline: 7px;
12
258
  }
13
- .clado-agent-launch svg {
14
- width: 15px;
15
- height: 15px;
16
- fill: none;
17
- stroke: currentColor;
18
- stroke-width: 1.5;
19
- stroke-linejoin: round;
259
+ .clado-cmd-btn.deny {
260
+ border: 0;
261
+ background: transparent;
262
+ color: var(--clado-agent-danger);
263
+ font-weight: 550;
264
+ padding-inline: 5px;
265
+ }
266
+
267
+ /* ============ 单人视角详情抽屉 ============ */
268
+ .clado-single-wrap {
269
+ display: grid;
270
+ grid-template-columns: minmax(0, 1fr);
271
+ grid-template-rows: 0fr;
272
+ pointer-events: none;
273
+ width: 100%;
274
+ min-width: 0;
275
+ transition: grid-template-rows 300ms var(--clado-ease-spring);
20
276
  }
21
- .clado-agent-panel {
22
- position: absolute;
23
- right: 0;
24
- bottom: calc(100% + 8px);
25
- width: min(410px, calc(100vw - 32px));
26
- height: min(580px, calc(100dvh - 168px));
27
- min-height: 240px;
277
+ .clado-single-wrap.open {
278
+ grid-template-rows: 1fr;
279
+ pointer-events: auto;
280
+ }
281
+ .clado-single-clip {
282
+ overflow: hidden;
283
+ min-height: 0;
284
+ min-width: 0;
285
+ width: 100%;
286
+ padding: 12px 0;
287
+ margin: -12px 0;
288
+ }
289
+ .clado-single-panel {
290
+ width: 100%;
291
+ min-width: 0;
28
292
  display: flex;
29
293
  flex-direction: column;
30
- overflow: visible;
294
+ gap: 8px;
295
+ border-radius: 22px;
296
+ padding: 11px 12px;
297
+ opacity: 0;
298
+ transform: translateY(8px);
299
+ transform-origin: bottom center;
300
+ }
301
+ .clado-single-wrap.open .clado-single-panel {
302
+ opacity: 1;
303
+ transform: translateY(0);
31
304
  }
32
- .clado-agent-panel-body {
305
+ .clado-sp-body-fade {
33
306
  display: flex;
34
307
  flex-direction: column;
35
- flex: 1;
36
- min-height: 0;
37
- overflow: hidden;
38
- border-radius: inherit;
39
- }
40
- @keyframes clado-agent-aura-breathe {
41
- 0%, 100% { opacity: .64; transform: translateX(-50%) scaleX(.96) scaleY(.86); }
42
- 50% { opacity: 1; transform: translateX(-50%) scaleX(1.03) scaleY(1.18); }
308
+ gap: 8px;
309
+ min-width: 0;
310
+ transition: opacity 150ms ease, transform 170ms var(--clado-ease-spring);
43
311
  }
44
- @keyframes clado-agent-aura-drift {
45
- 0%, 100% { filter: blur(12px) hue-rotate(-8deg); }
46
- 50% { filter: blur(14px) hue-rotate(12deg); }
312
+ .clado-sp-body-fade.switching {
313
+ opacity: 0.25;
314
+ transform: translateY(3px);
47
315
  }
316
+
317
+ /* 保留兼容钩子与底部柔光选择符 */
48
318
  .clado-ai-aura {
49
319
  display: none;
50
320
  position: absolute;
@@ -53,220 +323,368 @@
53
323
  z-index: -1;
54
324
  }
55
325
  .clado-agent-panel.clado-ai-working > .clado-ai-aura { display: block; }
56
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::before {
57
- content: "";
58
- position: absolute;
59
- left: 50%;
60
- bottom: -.5px;
61
- width: 86%;
62
- height: 1px;
63
- transform: translateX(-50%);
64
- background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,.22) 10%, rgba(56,189,248,.52) 28%, rgba(129,140,248,.66) 50%, rgba(232,121,249,.44) 72%, rgba(244,114,182,.18) 90%, transparent 100%);
65
- }
66
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::after {
67
- content: "";
68
- position: absolute;
69
- left: 50%;
70
- top: calc(100% - 2px);
71
- width: 96%;
72
- height: 46px;
73
- transform-origin: 50% 0%;
74
- transform: translateX(-50%);
75
- background:
76
- radial-gradient(ellipse 36% 44% at 30% 6%, rgba(56,189,248,.34) 0%, rgba(56,189,248,.10) 48%, transparent 76%),
77
- radial-gradient(ellipse 34% 52% at 50% 4%, rgba(139,92,246,.34) 0%, rgba(139,92,246,.10) 46%, transparent 74%),
78
- radial-gradient(ellipse 34% 42% at 70% 7%, rgba(244,114,182,.26) 0%, rgba(244,114,182,.08) 44%, transparent 72%);
79
- mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 12%, #000 32%, #000 68%, rgba(0,0,0,.42) 88%, transparent 100%);
80
- -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 12%, #000 32%, #000 68%, rgba(0,0,0,.42) 88%, transparent 100%);
81
- animation: clado-agent-aura-breathe 2.9s ease-in-out infinite, clado-agent-aura-drift 5.5s ease-in-out infinite;
82
- }
83
- .clado-agent-panel header {
326
+
327
+ .clado-sp-header {
84
328
  display: flex;
85
329
  align-items: center;
86
330
  justify-content: space-between;
87
- gap: 8px;
88
- border-bottom: 1px solid var(--clado-ui-edge);
89
- padding: 9px 10px 9px 14px;
331
+ gap: 6px;
332
+ flex-wrap: wrap;
90
333
  }
91
- .clado-agent-heading {
92
- min-width: 0;
334
+ .clado-sp-title-group {
93
335
  display: flex;
94
- flex-direction: column;
336
+ align-items: center;
337
+ gap: 6px;
338
+ min-width: 0;
339
+ flex: 1 1 auto;
95
340
  }
96
- .clado-agent-header-actions {
97
- display: flex;
341
+ .clado-sp-name {
342
+ font-size: 13.5px;
343
+ font-weight: 650;
344
+ white-space: nowrap;
345
+ overflow: hidden;
346
+ text-overflow: ellipsis;
347
+ max-width: 150px;
348
+ }
349
+ .clado-tag-pill {
350
+ display: inline-flex;
98
351
  align-items: center;
99
- gap: 3px;
352
+ padding: 1px 6.5px;
353
+ border-radius: 6px;
354
+ font-size: 10.5px;
355
+ font-weight: 600;
356
+ line-height: 1.5;
357
+ white-space: nowrap;
100
358
  flex: none;
101
359
  }
102
- .clado-agent-header-actions .clado-ui-button {
103
- min-height: 26px;
104
- padding: 2px 7px;
105
- font-size: 11.5px;
360
+ .clado-tag-blue { background: rgba(59, 130, 246, 0.13); color: #2563eb; }
361
+ .clado-tag-teal { background: rgba(16, 185, 129, 0.13); color: #059669; }
362
+ .clado-tag-violet { background: rgba(139, 92, 246, 0.13); color: #7c3aed; }
363
+ .clado-tag-amber { background: rgba(245, 158, 11, 0.15); color: #d97706; }
364
+ :root[data-theme="dark"] .clado-tag-blue { color: #60a5fa; }
365
+ :root[data-theme="dark"] .clado-tag-teal { color: #34d399; }
366
+ :root[data-theme="dark"] .clado-tag-violet { color: #c4b5fd; }
367
+ :root[data-theme="dark"] .clado-tag-amber { color: #fbbf24; }
368
+
369
+ .clado-sp-actions {
370
+ display: flex;
371
+ align-items: center;
372
+ gap: 3px;
373
+ flex-wrap: wrap;
106
374
  }
107
- .clado-agent-follow[aria-pressed="true"] {
108
- color: var(--clado-ui-accent);
109
- background: var(--clado-ui-active);
375
+
376
+ .clado-tab-group {
377
+ display: inline-flex;
378
+ gap: 2px;
379
+ padding: 2px;
380
+ border-radius: 10px;
381
+ background: var(--clado-agent-track);
382
+ border: 0.5px solid var(--clado-agent-well-border);
110
383
  }
111
- .clado-agent-panel h2 { margin: 0; font-size: 14px; font-weight: 650; }
112
- .clado-agent-provider {
384
+ .clado-tab-btn {
385
+ appearance: none;
386
+ border: 1px solid transparent;
387
+ background: transparent;
113
388
  color: var(--clado-ui-muted);
389
+ font: inherit;
114
390
  font-size: 11px;
391
+ font-weight: 520;
392
+ padding: 3px 8px;
393
+ border-radius: 8px;
394
+ cursor: pointer;
115
395
  white-space: nowrap;
116
- overflow: hidden;
117
- text-overflow: ellipsis;
396
+ 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;
118
397
  }
119
- .clado-agent-close { font-size: 18px !important; padding-inline: 6px !important; }
120
- .clado-agent-sessions {
121
- max-height: 170px;
122
- overflow: auto;
123
- padding: 6px 10px;
124
- border-bottom: 1px solid var(--clado-ui-edge);
125
- background: color-mix(in srgb, var(--clado-ui-well) 70%, transparent);
126
- display: flex;
127
- flex-direction: column;
128
- gap: 4px;
129
- }
130
- .clado-agent-sessions[hidden] { display: none; }
131
- .clado-agent-sessions-empty {
132
- padding: 10px 6px;
133
- font-size: 11.5px;
398
+ .clado-tab-btn:active { transform: scale(0.96); }
399
+ .clado-tab-btn.active {
400
+ color: var(--clado-ui-text);
401
+ font-weight: 620;
402
+ background: var(--clado-agent-active);
403
+ border-color: var(--clado-agent-outline);
404
+ box-shadow: var(--clado-agent-active-shadow);
405
+ }
406
+
407
+ .clado-icon-act {
408
+ appearance: none;
409
+ border: 1px solid transparent;
410
+ background: transparent;
134
411
  color: var(--clado-ui-muted);
135
- text-align: center;
412
+ font: inherit;
413
+ font-size: 11.5px;
414
+ font-weight: 540;
415
+ padding: 3.5px 7px;
416
+ border-radius: 8px;
417
+ cursor: pointer;
418
+ white-space: nowrap;
419
+ transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
420
+ }
421
+ .clado-icon-act:hover,
422
+ .clado-icon-act:active,
423
+ .clado-icon-act[aria-pressed="true"] {
424
+ background: var(--clado-agent-active);
425
+ border-color: var(--clado-agent-outline);
426
+ color: var(--clado-ui-text);
136
427
  }
137
- .clado-agent-session-row {
428
+ .clado-icon-act.del:hover {
429
+ color: var(--clado-agent-danger);
430
+ }
431
+
432
+ /* 二级模式与 ACP 执行器紧凑栏 */
433
+ .clado-sp-subbar {
138
434
  display: flex;
139
435
  align-items: center;
140
- gap: 4px;
141
- border-radius: 8px;
142
- transition: background 140ms ease;
436
+ justify-content: space-between;
437
+ gap: 6px;
438
+ flex-wrap: wrap;
143
439
  }
144
- .clado-agent-session-row:hover, .clado-agent-session-row.active {
145
- background: var(--clado-ui-active);
440
+ .clado-sp-workflows {
441
+ display: inline-flex;
442
+ gap: 2px;
443
+ padding: 2px;
444
+ border-radius: 10px;
445
+ background: var(--clado-agent-track);
446
+ border: 0.5px solid var(--clado-agent-well-border);
447
+ max-width: 100%;
448
+ overflow-x: auto;
146
449
  }
147
- .clado-agent-session-open {
148
- flex: 1;
450
+ .clado-sp-executor-wrap {
451
+ position: relative;
452
+ flex: 1 1 140px;
453
+ min-width: 120px;
454
+ z-index: 30;
455
+ }
456
+ .clado-sp-executor-wrap[hidden] { display: none !important; }
457
+
458
+ /* 毛玻璃下拉组件 */
459
+ .clado-agent-select-native {
460
+ position: absolute !important;
461
+ width: 1px !important;
462
+ height: 1px !important;
463
+ opacity: 0 !important;
464
+ pointer-events: none !important;
465
+ overflow: hidden !important;
466
+ }
467
+ .clado-glass-dropdown {
468
+ position: relative;
469
+ width: 100%;
149
470
  min-width: 0;
150
- border: 0;
151
- background: transparent;
471
+ }
472
+ .clado-glass-dropdown-trigger {
473
+ appearance: none;
474
+ width: 100%;
475
+ display: flex;
476
+ align-items: center;
477
+ justify-content: space-between;
478
+ gap: 6px;
479
+ min-height: 28px;
480
+ padding: 4px 9px;
481
+ border-radius: 9px;
482
+ border: 1px solid var(--clado-agent-well-border);
483
+ background: var(--clado-agent-well);
152
484
  color: var(--clado-ui-text);
485
+ font: inherit;
486
+ font-size: 11.5px;
487
+ font-weight: 550;
153
488
  text-align: left;
154
- padding: 5px 7px;
155
489
  cursor: pointer;
490
+ }
491
+ .clado-glass-dropdown-value {
156
492
  display: flex;
157
- flex-direction: column;
158
- gap: 2px;
159
- font: inherit;
493
+ align-items: center;
494
+ gap: 6px;
495
+ min-width: 0;
496
+ flex: 1;
160
497
  }
161
- .clado-agent-session-title {
162
- font-size: 12px;
163
- font-weight: 550;
164
- white-space: nowrap;
498
+ .clado-glass-dropdown-label {
165
499
  overflow: hidden;
166
500
  text-overflow: ellipsis;
501
+ white-space: nowrap;
167
502
  }
168
- .clado-agent-session-open small {
169
- font-size: 10.5px;
170
- color: var(--clado-ui-muted);
171
- }
172
- .clado-agent-session-open small.waiting {
173
- color: #b45309;
174
- font-weight: 600;
175
- }
176
- [data-theme="dark"] .clado-agent-session-open small.waiting {
177
- color: #fbbf24;
503
+ .clado-glass-dropdown-dot {
504
+ width: 6px;
505
+ height: 6px;
506
+ border-radius: 50%;
507
+ flex: none;
178
508
  }
179
- .clado-agent-session-del {
180
- border: 0;
181
- background: transparent;
182
- color: var(--clado-ui-muted);
183
- width: 24px;
184
- height: 24px;
185
- border-radius: 6px;
186
- cursor: pointer;
187
- font-size: 14px;
509
+ .clado-glass-dropdown-chevron {
510
+ width: 13px;
511
+ height: 13px;
512
+ fill: none;
513
+ stroke: var(--clado-ui-subtle);
514
+ stroke-width: 2;
515
+ stroke-linecap: round;
516
+ stroke-linejoin: round;
188
517
  flex: none;
518
+ transition: transform 180ms ease;
189
519
  }
190
- .clado-agent-session-del:hover {
520
+ .clado-glass-dropdown.open .clado-glass-dropdown-chevron { transform: rotate(180deg); }
521
+ .clado-glass-dropdown-menu {
522
+ position: absolute;
523
+ left: 0;
524
+ right: 0;
525
+ top: calc(100% + 5px);
526
+ padding: 5px;
527
+ border-radius: 14px;
528
+ background: var(--clado-agent-popover);
529
+ backdrop-filter: blur(24px) saturate(185%);
530
+ -webkit-backdrop-filter: blur(24px) saturate(185%);
531
+ border: 1px solid var(--clado-agent-outline);
532
+ box-shadow: var(--clado-agent-shadow);
533
+ display: flex;
534
+ flex-direction: column;
535
+ gap: 2px;
536
+ z-index: 60;
537
+ }
538
+ .clado-glass-dropdown-menu[hidden] { display: none !important; }
539
+ .clado-glass-dropdown-option {
540
+ width: 100%;
541
+ display: flex;
542
+ align-items: center;
543
+ gap: 8px;
544
+ padding: 6px 9px;
545
+ border-radius: 9px;
546
+ text-align: left;
547
+ white-space: normal;
191
548
  color: var(--clado-ui-text);
192
- background: color-mix(in srgb, var(--clado-ui-edge) 50%, transparent);
549
+ font-size: 12px;
193
550
  }
194
- .clado-agent-modes {
551
+ .clado-glass-dropdown-copy {
552
+ flex: 1;
553
+ min-width: 0;
195
554
  display: flex;
196
- flex-wrap: wrap;
197
- gap: 5px;
198
- padding: 8px 12px 6px;
199
- border-bottom: 1px solid color-mix(in srgb, var(--clado-ui-edge) 70%, transparent);
555
+ flex-direction: column;
200
556
  }
201
- .clado-agent-chip {
202
- min-height: 26px;
203
- padding: 3px 9px;
557
+ .clado-glass-dropdown-copy strong { font-size: 12px; font-weight: 560; }
558
+ .clado-glass-dropdown-copy small { font-size: 10.5px; color: var(--clado-ui-subtle); }
559
+ .clado-glass-dropdown-check {
560
+ color: var(--clado-ui-brand);
204
561
  font-size: 11.5px;
205
- border-radius: 999px;
562
+ font-weight: 700;
563
+ visibility: hidden;
206
564
  }
207
- .clado-agent-persona-bar,
208
- .clado-agent-executor-bar {
565
+ .clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-check { visibility: visible; }
566
+
567
+ .clado-plan-banner {
568
+ padding: 5px 9px;
569
+ border-radius: 10px;
570
+ background: rgba(245, 158, 11, 0.13);
571
+ color: #d97706;
572
+ font-size: 11px;
573
+ line-height: 1.45;
574
+ }
575
+ :root[data-theme="dark"] .clado-plan-banner { color: #fbbf24; }
576
+
577
+ .clado-todo-box {
578
+ padding: 6px 10px;
579
+ border-radius: 11px;
580
+ background: var(--clado-agent-well);
581
+ border: 1px solid var(--clado-agent-well-border);
582
+ cursor: pointer;
583
+ font-size: 11.5px;
584
+ }
585
+ .clado-todo-box[hidden] { display: none !important; }
586
+ .clado-todo-head {
209
587
  display: flex;
210
588
  align-items: center;
589
+ justify-content: space-between;
211
590
  gap: 8px;
212
- padding: 6px 12px;
213
- border-bottom: 1px solid color-mix(in srgb, var(--clado-ui-edge) 70%, transparent);
214
- font-size: 11.5px;
215
- color: var(--clado-ui-muted);
216
591
  }
217
- .clado-agent-persona-bar[hidden],
218
- .clado-agent-executor-bar[hidden] { display: none; }
219
- .clado-agent-select {
220
- flex: 1;
221
- min-width: 0;
222
- padding: 4px 8px;
223
- border: 1px solid var(--clado-ui-edge);
224
- border-radius: 8px;
225
- background: var(--clado-ui-well);
226
- color: var(--clado-ui-text);
227
- font: inherit;
592
+ .clado-todo-summary {
593
+ font-weight: 560;
594
+ overflow: hidden;
595
+ text-overflow: ellipsis;
596
+ white-space: nowrap;
228
597
  }
598
+ .clado-todo-arrow {
599
+ font-size: 10px;
600
+ color: var(--clado-ui-subtle);
601
+ flex: none;
602
+ }
603
+ .clado-todo-list {
604
+ margin-top: 6px;
605
+ padding-top: 6px;
606
+ border-top: 1px solid var(--clado-agent-edge);
607
+ font-size: 11px;
608
+ color: var(--clado-ui-muted);
609
+ line-height: 1.6;
610
+ }
611
+
612
+ /* 消息流 */
229
613
  .clado-agent-log {
230
- flex: 1;
231
- min-height: 0;
232
- overflow: auto;
614
+ max-height: min(230px, 34dvh);
615
+ overflow-y: auto;
233
616
  overscroll-behavior: contain;
234
- padding: 13px;
235
617
  display: flex;
236
618
  flex-direction: column;
237
- gap: 12px;
619
+ gap: 8px;
620
+ padding: 2px 2px;
621
+ touch-action: pan-y;
622
+ user-select: text;
623
+ -webkit-user-select: text;
624
+ }
625
+ .clado-agent-log::-webkit-scrollbar { width: 4px; }
626
+ .clado-agent-log::-webkit-scrollbar-thumb { background: rgba(120, 130, 150, 0.24); border-radius: 99px; }
627
+ .clado-agent-log-empty {
628
+ padding: 10px 4px;
629
+ font-size: 12px;
630
+ color: var(--clado-ui-muted);
238
631
  }
632
+
239
633
  .clado-agent-message {
240
634
  width: fit-content;
241
635
  max-width: 100%;
242
- border-radius: 12px;
243
- padding: 8px 11px;
636
+ border-radius: 14px;
637
+ padding: 6px 11px;
244
638
  overflow-wrap: anywhere;
639
+ font-size: 12px;
245
640
  }
246
641
  .clado-agent-message.human {
247
- align-self: end;
248
- background: var(--clado-ui-active);
642
+ align-self: flex-end;
643
+ max-width: 88%;
644
+ border-radius: 13px 13px 4px 13px;
645
+ background: var(--clado-agent-active);
646
+ border: 1px solid var(--clado-agent-outline);
647
+ box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
249
648
  }
250
649
  .clado-agent-message.assistant {
251
650
  width: 100%;
252
- padding-inline: 3px;
651
+ padding: 2px 2px;
253
652
  }
254
- .clado-agent-message strong, .clado-agent-message small {
653
+ .clado-agent-message strong,
654
+ .clado-agent-message small {
255
655
  color: var(--clado-ui-muted);
256
- font-size: 11px;
656
+ font-size: 10.5px;
657
+ display: block;
658
+ }
659
+ .clado-agent-message p {
660
+ margin: 2px 0 0;
661
+ white-space: pre-wrap;
662
+ line-height: 1.55;
663
+ color: var(--clado-ui-text);
664
+ }
665
+
666
+ .clado-peer-call-card {
667
+ padding: 7px 10px;
668
+ border-radius: 12px;
669
+ background: var(--clado-agent-well);
670
+ border: 1px solid var(--clado-agent-well-border);
671
+ font-size: 11.5px;
672
+ line-height: 1.45;
257
673
  }
258
- .clado-agent-message p {
259
- margin: 3px 0 0;
260
- white-space: pre-wrap;
261
- line-height: 1.55;
674
+ .clado-peer-call-head {
675
+ font-size: 10.5px;
676
+ font-weight: 650;
677
+ color: var(--clado-ui-brand);
678
+ margin-bottom: 2px;
262
679
  }
680
+
263
681
  .clado-agent-thinking {
264
- margin: 5px 0 6px;
682
+ margin: 4px 0 5px;
265
683
  padding: 5px 9px;
266
- border-radius: 9px;
267
- border: 1px solid color-mix(in srgb, var(--clado-ui-edge) 75%, transparent);
268
- background: color-mix(in srgb, var(--clado-ui-well) 70%, transparent);
269
- font-size: 11.5px;
684
+ border-radius: 10px;
685
+ border: 1px solid var(--clado-agent-well-border);
686
+ background: var(--clado-agent-well);
687
+ font-size: 11px;
270
688
  }
271
689
  .clado-agent-thinking summary {
272
690
  cursor: pointer;
@@ -275,76 +693,78 @@
275
693
  user-select: none;
276
694
  }
277
695
  .clado-agent-thinking pre {
278
- margin: 6px 0 2px;
696
+ margin: 5px 0 2px;
279
697
  white-space: pre-wrap;
280
698
  overflow-wrap: anywhere;
281
699
  font-family: inherit;
282
- font-size: 11.5px;
700
+ font-size: 11px;
283
701
  line-height: 1.5;
284
702
  color: var(--clado-ui-muted);
285
703
  }
286
- .clado-agent-changes {
287
- margin-top: 8px;
288
- padding: 8px 10px;
289
- border-radius: 10px;
290
- border: 1px solid var(--clado-ui-edge);
291
- background: color-mix(in srgb, var(--clado-ui-well) 65%, transparent);
292
- }
293
- .clado-agent-changes-title {
294
- font-size: 11px;
295
- font-weight: 600;
296
- color: var(--clado-ui-muted);
297
- margin-bottom: 5px;
704
+
705
+ .clado-changes-row {
706
+ margin-top: 6px;
707
+ display: flex;
708
+ align-items: center;
709
+ justify-content: space-between;
710
+ gap: 6px;
711
+ flex-wrap: wrap;
298
712
  }
299
- .clado-agent-changes-list {
713
+ .clado-changes-chips {
300
714
  display: flex;
301
- flex-direction: column;
302
- gap: 3px;
715
+ gap: 5px;
716
+ flex-wrap: wrap;
303
717
  }
304
- .clado-agent-change-item {
305
- border: 0;
306
- background: transparent;
307
- color: var(--clado-ui-text);
718
+ .clado-tool-chip {
719
+ appearance: none;
720
+ display: inline-flex;
721
+ align-items: center;
722
+ gap: 5px;
723
+ padding: 3.5px 9px;
724
+ border-radius: 999px;
725
+ background: var(--clado-agent-well);
726
+ border: 1px solid var(--clado-agent-well-border);
308
727
  font: inherit;
309
- font-size: 11.5px;
310
- text-align: left;
311
- padding: 4px 6px;
312
- border-radius: 7px;
728
+ font-size: 11px;
729
+ color: var(--clado-ui-muted);
313
730
  cursor: pointer;
314
- display: flex;
315
- align-items: center;
316
- gap: 7px;
317
- transition: background 140ms ease;
731
+ transition: background-color 150ms ease, color 150ms ease, transform 130ms ease;
732
+ }
733
+ .clado-tool-chip:hover,
734
+ .clado-tool-chip:active {
735
+ background: var(--clado-agent-active);
736
+ color: var(--clado-ui-text);
737
+ transform: scale(0.97);
318
738
  }
319
- .clado-agent-change-item:hover {
320
- background: var(--clado-ui-active);
739
+ .clado-tool-chip.rollback {
740
+ color: var(--clado-ui-brand);
741
+ font-weight: 560;
321
742
  }
322
- .clado-agent-change-item .dot {
323
- width: 5.5px;
324
- height: 5.5px;
325
- border-radius: 50%;
326
- background: #10b981;
327
- flex: none;
743
+ .clado-tool-chip.rollback.done {
744
+ color: #059669;
328
745
  }
746
+
747
+ /* ask_user 决策卡片 */
329
748
  .clado-agent-question {
330
- margin-top: 8px;
331
- padding: 10px 11px;
332
- border-radius: 11px;
333
- border: 1px solid var(--clado-ui-edge);
334
- background: color-mix(in srgb, var(--clado-ui-well) 65%, transparent);
749
+ margin-top: 6px;
750
+ padding: 9px 10px;
751
+ border-radius: 13px;
752
+ border: 1px solid var(--clado-agent-outline);
753
+ background: var(--clado-agent-well);
754
+ box-shadow: inset 0 1px 0 var(--clado-agent-highlight);
335
755
  display: flex;
336
756
  flex-direction: column;
337
- gap: 8px;
757
+ gap: 7px;
338
758
  }
339
759
  .clado-agent-question.answered {
340
- border-color: var(--clado-ui-edge);
341
- background: color-mix(in srgb, var(--clado-ui-well) 45%, transparent);
760
+ border-color: var(--clado-agent-edge);
761
+ background: var(--clado-agent-track);
342
762
  }
343
763
  .clado-agent-question-badge {
344
764
  display: inline-flex;
345
765
  align-items: center;
346
766
  gap: 6px;
347
- font-size: 11px;
767
+ font-size: 10.5px;
348
768
  font-weight: 620;
349
769
  color: var(--clado-ui-text);
350
770
  }
@@ -354,54 +774,38 @@
354
774
  height: 6px;
355
775
  border-radius: 50%;
356
776
  background: #f59e0b;
357
- flex: none;
358
- }
359
- .clado-agent-question.answered .clado-agent-question-badge {
360
- color: var(--clado-ui-muted);
361
- }
362
- .clado-agent-question.answered .clado-agent-question-badge::before {
363
- background: var(--clado-ui-muted);
364
777
  }
365
778
  .clado-agent-question-text {
366
- font-size: 12.5px;
779
+ font-size: 12px;
367
780
  line-height: 1.5;
368
- color: var(--clado-ui-text);
369
781
  font-weight: 500;
370
782
  }
371
783
  .clado-agent-question-options {
372
784
  display: flex;
373
785
  flex-direction: column;
374
- gap: 5px;
786
+ gap: 4px;
375
787
  }
376
788
  .clado-agent-option-btn {
377
- border: 1px solid var(--clado-ui-edge);
378
- border-radius: 9px;
379
- background: color-mix(in srgb, var(--clado-ui-well) 70%, transparent);
789
+ appearance: none;
790
+ border: 1px solid transparent;
791
+ border-radius: 10px;
792
+ background: transparent;
380
793
  color: var(--clado-ui-text);
381
- padding: 7px 10px;
794
+ padding: 7px 9px;
382
795
  text-align: left;
383
796
  cursor: pointer;
384
797
  font: inherit;
385
798
  display: flex;
386
799
  flex-direction: column;
387
800
  gap: 2px;
388
- transition: background 140ms ease;
801
+ transition: background 140ms ease, border-color 140ms ease;
389
802
  }
390
803
  .clado-agent-option-btn:hover:not(:disabled) {
391
- background: var(--clado-ui-active);
392
- }
393
- .clado-agent-option-btn:disabled {
394
- opacity: .55;
395
- cursor: default;
396
- }
397
- .clado-agent-option-label {
398
- font-size: 12px;
399
- font-weight: 600;
400
- }
401
- .clado-agent-option-btn small {
402
- font-size: 11px;
403
- color: var(--clado-ui-muted);
804
+ background: var(--clado-agent-active);
805
+ border-color: var(--clado-agent-outline);
404
806
  }
807
+ .clado-agent-option-label { font-size: 11.5px; font-weight: 600; }
808
+ .clado-agent-option-btn small { font-size: 10.5px; color: var(--clado-ui-muted); }
405
809
  .clado-agent-question-custom {
406
810
  display: flex;
407
811
  gap: 5px;
@@ -410,95 +814,576 @@
410
814
  flex: 1;
411
815
  min-width: 0;
412
816
  padding: 5px 8px;
413
- border: 1px solid var(--clado-ui-edge);
817
+ border: 1px solid var(--clado-agent-well-border);
414
818
  border-radius: 8px;
415
- background: var(--clado-ui-well);
819
+ background: var(--clado-agent-well);
416
820
  color: var(--clado-ui-text);
417
821
  font: inherit;
418
822
  font-size: 11.5px;
419
- }
420
- .clado-agent-option-submit {
421
- min-height: 28px;
422
- padding: 2px 10px;
423
- font-size: 11.5px;
823
+ outline: none;
424
824
  }
425
825
  .clado-agent-question-answered {
426
- font-size: 11.5px;
427
- color: var(--clado-ui-accent);
428
- font-weight: 550;
826
+ font-size: 11px;
827
+ color: var(--clado-ui-brand);
828
+ font-weight: 560;
429
829
  }
830
+
430
831
  .clado-agent-status {
431
- margin: 0 14px;
432
- padding-block: 4px;
832
+ margin: 0;
833
+ font-size: 11px;
433
834
  color: var(--clado-ui-muted);
835
+ overflow: hidden;
836
+ text-overflow: ellipsis;
837
+ white-space: nowrap;
838
+ }
839
+ .clado-agent-status[hidden] { display: none !important; }
840
+
841
+ /* ============ 多会话单行左对齐胶囊条(overflow-x: clip 保住 100% 真毛玻璃 + 左右淡入淡出) ============ */
842
+ .clado-peer-cluster {
843
+ width: 100%;
844
+ min-width: 0;
845
+ max-width: 100%;
846
+ background: transparent;
847
+ display: flex;
848
+ align-items: center;
849
+ justify-content: flex-start;
850
+ flex-wrap: nowrap;
851
+ gap: 6px;
852
+ overflow-x: clip;
853
+ overflow-y: visible;
854
+ padding: 2px 0;
855
+ touch-action: pan-y;
856
+ cursor: grab;
857
+ user-select: none;
858
+ -webkit-user-select: none;
859
+ }
860
+ .clado-peer-cluster:active { cursor: grabbing; }
861
+
862
+ .clado-peer-pill {
863
+ appearance: none;
864
+ -webkit-appearance: none;
865
+ position: relative;
866
+ flex: 0 0 auto;
867
+ display: inline-flex;
868
+ align-items: center;
869
+ gap: 0;
870
+ height: 31px;
871
+ padding: 0 12px;
872
+ border-radius: 999px;
873
+ cursor: pointer;
874
+ border: 0;
875
+ background: var(--clado-agent-surface);
876
+ backdrop-filter: var(--clado-agent-filter);
877
+ -webkit-backdrop-filter: var(--clado-agent-filter);
878
+ color: var(--clado-ui-text);
879
+ font: inherit;
880
+ font-size: 12px;
881
+ box-shadow: var(--clado-agent-pill-shadow);
882
+ white-space: nowrap;
883
+ --ring-half: 54deg;
884
+ --ring-feather: 15deg;
885
+ --ring-color: var(--c-muted);
886
+ }
887
+ .clado-peer-pill.is-active {
888
+ --ring-half: 64deg;
889
+ --ring-feather: 14deg;
890
+ }
891
+ .clado-peer-pill:active { transform: scale(0.96); }
892
+
893
+ /* 极纤薄边缘环:
894
+ - 静息态:0.85px 发丝高度底色条(明亮清透柔和色、底下绝无白边)
895
+ - 激活态(.is-focused):沿左右边缘合拢为 1.25px 高饱和全边框,胶囊内部保持纯净 36% 透明玻璃 */
896
+ .clado-peer-pill::after {
897
+ content: "";
898
+ position: absolute;
899
+ inset: 0;
900
+ border-radius: inherit;
901
+ pointer-events: none;
902
+ z-index: 2;
903
+ padding: 0.85px;
904
+ transition: padding 260ms var(--clado-ease-spring);
905
+ background: conic-gradient(
906
+ from 0deg at 50% 50%,
907
+ var(--clado-agent-outline) 0deg,
908
+ var(--clado-agent-outline) calc(180deg - var(--ring-half) - var(--ring-feather)),
909
+ var(--ring-color) calc(180deg - var(--ring-half)),
910
+ var(--ring-color) calc(180deg + var(--ring-half)),
911
+ var(--clado-agent-outline) calc(180deg + var(--ring-half) + var(--ring-feather)),
912
+ var(--clado-agent-outline) 360deg
913
+ );
914
+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
915
+ -webkit-mask-composite: xor;
916
+ mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
917
+ mask-composite: exclude;
918
+ }
919
+
920
+ .clado-peer-pill.is-focused {
921
+ --ring-half: 180deg;
922
+ --ring-feather: 0deg;
923
+ --ring-color: var(--c-vivid);
924
+ box-shadow: 0 6px 18px var(--c-glow), var(--clado-agent-pill-shadow);
925
+ }
926
+ .clado-peer-pill.is-focused::after {
927
+ padding: 1.25px;
928
+ }
929
+
930
+ .clado-peer-pill.called-flash {
931
+ --ring-half: 64deg;
932
+ --ring-feather: 14deg;
933
+ --ring-color: var(--caller-color);
934
+ box-shadow: 0 5px 14px -2px var(--caller-glow), var(--clado-agent-pill-shadow);
935
+ }
936
+ .clado-peer-pill.called-flash::after {
937
+ padding: 1.1px;
938
+ }
939
+
940
+ .clado-peer-pill .p-name {
941
+ position: relative;
942
+ z-index: 1;
943
+ font-weight: 600;
944
+ font-size: 12px;
945
+ pointer-events: none;
946
+ }
947
+ .clado-peer-pill .p-live {
948
+ position: relative;
949
+ z-index: 1;
434
950
  font-size: 11px;
435
- max-height: 65px;
436
- overflow: auto;
437
- overflow-wrap: anywhere;
951
+ color: var(--clado-ui-muted);
952
+ max-width: 96px;
953
+ margin-left: 5px;
954
+ opacity: 1;
955
+ overflow: hidden;
956
+ text-overflow: ellipsis;
957
+ pointer-events: none;
958
+ transition: max-width 340ms var(--clado-ease-spring), opacity 240ms ease, margin-left 300ms var(--clado-ease-spring);
959
+ }
960
+ @media (min-width: 520px) {
961
+ .clado-peer-pill .p-live { max-width: 140px; }
438
962
  }
439
- .clado-agent-panel form {
963
+ .clado-peer-pill.is-dormant .p-live {
964
+ max-width: 0;
965
+ opacity: 0;
966
+ margin-left: 0;
967
+ }
968
+ @media (hover: hover) {
969
+ .clado-peer-pill.is-dormant:hover .p-live {
970
+ max-width: 120px;
971
+ opacity: 1;
972
+ margin-left: 5px;
973
+ }
974
+ }
975
+
976
+ /* ============ 底部打字框与下方窄幅清淡滚动流光条 ============ */
977
+ .clado-agent-shell {
978
+ position: relative;
979
+ border-radius: 18px;
980
+ padding: 6px 8px;
440
981
  display: flex;
441
- align-items: end;
442
- gap: 7px;
443
- padding: 9px 12px 12px;
982
+ align-items: center;
983
+ gap: 6px;
984
+ width: 100%;
985
+ min-width: 0;
986
+ }
987
+ .clado-agent-min-btn {
988
+ appearance: none;
989
+ width: 29px;
990
+ height: 29px;
991
+ border-radius: 9px;
992
+ border: 1px solid var(--clado-agent-well-border);
993
+ background: var(--clado-agent-well);
994
+ color: var(--clado-ui-brand);
995
+ font-size: 13px;
996
+ line-height: 1;
997
+ cursor: pointer;
998
+ flex: none;
999
+ display: inline-flex;
1000
+ align-items: center;
1001
+ justify-content: center;
1002
+ transition: background-color 150ms ease, transform 120ms ease;
444
1003
  }
445
- .clado-agent-panel textarea {
1004
+ .clado-agent-min-btn:hover { background: var(--clado-agent-active); }
1005
+ .clado-agent-min-btn:active { transform: scale(0.95); }
1006
+
1007
+ .clado-agent-input {
446
1008
  flex: 1;
447
1009
  min-width: 0;
448
- max-height: 100px;
449
- resize: vertical;
450
- padding: 8px;
451
- border: 1px solid var(--clado-ui-edge);
452
- border-radius: 10px;
453
- background: var(--clado-ui-well);
1010
+ border: 0;
1011
+ background: transparent;
1012
+ color: var(--clado-ui-text);
1013
+ font: inherit;
1014
+ font-size: 13.5px;
1015
+ outline: none;
1016
+ padding: 4px 2px;
1017
+ user-select: text;
1018
+ -webkit-user-select: text;
1019
+ }
1020
+ .clado-agent-input::placeholder {
1021
+ color: var(--clado-ui-subtle);
1022
+ }
1023
+
1024
+ .clado-agent-stop-btn {
1025
+ appearance: none;
1026
+ height: 29px;
1027
+ padding: 0 9px;
1028
+ border-radius: 9px;
1029
+ border: 0;
1030
+ background: rgba(244, 63, 94, 0.12);
1031
+ color: var(--clado-agent-danger);
1032
+ font: inherit;
1033
+ font-size: 11.5px;
1034
+ font-weight: 600;
1035
+ cursor: pointer;
1036
+ flex: none;
1037
+ white-space: nowrap;
1038
+ }
1039
+ .clado-agent-stop-btn[hidden] { display: none !important; }
1040
+
1041
+ .clado-agent-send-btn {
1042
+ appearance: none;
1043
+ height: 29px;
1044
+ padding: 0 13px;
1045
+ border-radius: 9px;
1046
+ border: 0;
1047
+ background: var(--clado-agent-send-bg);
1048
+ color: var(--clado-agent-send-fg);
1049
+ font: inherit;
1050
+ font-size: 12px;
1051
+ font-weight: 600;
1052
+ cursor: pointer;
1053
+ flex: none;
1054
+ white-space: nowrap;
1055
+ transition: opacity 150ms ease, transform 120ms ease;
1056
+ }
1057
+ .clado-agent-send-btn:disabled {
1058
+ opacity: 0.42;
1059
+ cursor: default;
1060
+ }
1061
+ .clado-agent-send-btn:not(:disabled):active { transform: scale(0.96); }
1062
+
1063
+ /* 打字框底部 70% 宽、1px 极细柔和滚动流光条 */
1064
+ .clado-edge-aura {
1065
+ position: absolute;
1066
+ left: 50%;
1067
+ top: calc(100% - 0.5px);
1068
+ width: 70%;
1069
+ height: 16px;
1070
+ transform: translateX(-50%);
1071
+ pointer-events: none;
1072
+ opacity: 0;
1073
+ z-index: 4;
1074
+ transition: opacity 280ms ease;
1075
+ }
1076
+ .clado-agent-shell.working > .clado-edge-aura {
1077
+ opacity: 1;
1078
+ }
1079
+ .clado-edge-aura-line {
1080
+ position: absolute;
1081
+ left: 0;
1082
+ right: 0;
1083
+ top: 0;
1084
+ height: 1px;
1085
+ border-radius: 999px;
1086
+ overflow: hidden;
1087
+ -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
1088
+ mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
1089
+ }
1090
+ .clado-edge-aura-runner {
1091
+ width: 200%;
1092
+ height: 100%;
1093
+ background: linear-gradient(
1094
+ 90deg,
1095
+ rgba(98, 217, 255, 0.65) 0%,
1096
+ rgba(181, 154, 255, 0.68) 25%,
1097
+ rgba(255, 144, 203, 0.58) 50%,
1098
+ rgba(98, 217, 255, 0.65) 75%,
1099
+ rgba(181, 154, 255, 0.68) 100%
1100
+ );
1101
+ animation: cladoEdgeFlow 2.6s linear infinite;
1102
+ }
1103
+ .clado-edge-aura-bloom {
1104
+ position: absolute;
1105
+ left: 10%;
1106
+ right: 10%;
1107
+ top: 1px;
1108
+ height: 14px;
1109
+ background: radial-gradient(ellipse 52% 85% at 50% 0%, rgba(125, 180, 255, 0.22), transparent 76%);
1110
+ filter: blur(5px);
1111
+ }
1112
+ @keyframes cladoEdgeFlow {
1113
+ 0% { transform: translate3d(0, 0, 0); }
1114
+ 100% { transform: translate3d(-50%, 0, 0); }
1115
+ }
1116
+
1117
+ /* ============ 会话长按 / 右键上下文浮层 ============ */
1118
+ .clado-agent-ctx-menu {
1119
+ position: fixed;
1120
+ z-index: 92;
1121
+ display: flex;
1122
+ flex-direction: column;
1123
+ gap: 3px;
1124
+ padding: 6px;
1125
+ border-radius: 16px;
1126
+ min-width: 188px;
1127
+ max-width: calc(100vw - 20px);
1128
+ background: var(--clado-agent-popover);
1129
+ backdrop-filter: blur(24px) saturate(190%);
1130
+ -webkit-backdrop-filter: blur(24px) saturate(190%);
1131
+ border: 1px solid var(--clado-agent-outline);
1132
+ box-shadow: var(--clado-agent-shadow);
1133
+ font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1134
+ opacity: 0;
1135
+ pointer-events: none;
1136
+ transform: scale(0.93) translateY(6px);
1137
+ transform-origin: bottom center;
1138
+ transition: opacity 180ms var(--clado-ease-spring), transform 200ms var(--clado-ease-spring);
1139
+ }
1140
+ .clado-agent-ctx-menu.open {
1141
+ opacity: 1;
1142
+ pointer-events: auto;
1143
+ transform: scale(1) translateY(0);
1144
+ }
1145
+ .clado-ctx-badge {
1146
+ padding: 3px 9px 5px;
1147
+ font-size: 10.5px;
1148
+ font-weight: 600;
1149
+ color: var(--clado-ui-subtle);
1150
+ display: flex;
1151
+ align-items: center;
1152
+ justify-content: space-between;
1153
+ gap: 8px;
1154
+ border-bottom: 1px solid var(--clado-agent-edge);
1155
+ margin-bottom: 2px;
1156
+ }
1157
+ .clado-ctx-btn {
1158
+ appearance: none;
1159
+ border: 1px solid transparent;
1160
+ background: transparent;
454
1161
  color: var(--clado-ui-text);
455
1162
  font: inherit;
1163
+ font-size: 12.5px;
1164
+ font-weight: 520;
1165
+ padding: 7.5px 10px;
1166
+ border-radius: 10px;
1167
+ text-align: left;
1168
+ cursor: pointer;
1169
+ display: flex;
1170
+ align-items: center;
1171
+ justify-content: space-between;
1172
+ gap: 10px;
1173
+ transition: background-color 140ms ease, border-color 140ms ease;
1174
+ }
1175
+ .clado-ctx-btn:hover,
1176
+ .clado-ctx-btn:active {
1177
+ background: var(--clado-agent-active);
1178
+ border-color: var(--clado-agent-outline);
1179
+ }
1180
+ .clado-ctx-btn.danger {
1181
+ color: var(--clado-agent-danger);
456
1182
  }
457
- .clado-agent-panel textarea:focus-visible { outline: 2px solid var(--clado-ui-accent); outline-offset: 1px; }
1183
+
1184
+ /* ============ 极简 Agent 设置与记忆浮层(外层不用 overflow:auto,保住 100% 真毛玻璃) ============ */
1185
+ .clado-agent-overlay {
1186
+ position: fixed;
1187
+ inset: 0;
1188
+ z-index: 84;
1189
+ padding: calc(max(12px, env(safe-area-inset-top)) + 48px) 10px max(16px, env(safe-area-inset-bottom));
1190
+ overflow: visible;
1191
+ pointer-events: none;
1192
+ visibility: hidden;
1193
+ font: 13px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1194
+ transition: visibility 0s linear 280ms;
1195
+ }
1196
+ .clado-agent-overlay.show {
1197
+ pointer-events: auto;
1198
+ visibility: visible;
1199
+ transition-delay: 0s;
1200
+ }
1201
+ .clado-panel-container {
1202
+ max-width: 480px;
1203
+ max-height: calc(100dvh - 76px);
1204
+ overflow-y: auto;
1205
+ -webkit-overflow-scrolling: touch;
1206
+ touch-action: pan-y;
1207
+ margin: 0 auto;
1208
+ padding: 14px;
1209
+ border-radius: 22px;
1210
+ display: flex;
1211
+ flex-direction: column;
1212
+ gap: 11px;
1213
+ opacity: 0;
1214
+ transform: translateY(10px) scale(0.985);
1215
+ transition: opacity 250ms var(--clado-ease-spring), transform 280ms var(--clado-ease-spring);
1216
+ }
1217
+ .clado-agent-overlay.show .clado-panel-container {
1218
+ opacity: 1;
1219
+ transform: translateY(0) scale(1);
1220
+ }
1221
+
1222
+ .clado-group-title {
1223
+ font-size: 11.5px;
1224
+ font-weight: 600;
1225
+ color: var(--clado-ui-muted);
1226
+ padding: 0 4px 4px;
1227
+ }
1228
+ .clado-settings-group {
1229
+ background: var(--clado-agent-well);
1230
+ border: 1px solid var(--clado-agent-well-border);
1231
+ box-shadow: inset 0 1px 0 var(--clado-agent-highlight);
1232
+ border-radius: 15px;
1233
+ overflow: hidden;
1234
+ }
1235
+ .clado-s-row {
1236
+ display: flex;
1237
+ align-items: center;
1238
+ justify-content: space-between;
1239
+ gap: 12px;
1240
+ min-height: 44px;
1241
+ padding: 8px 13px;
1242
+ position: relative;
1243
+ transition: background-color 150ms ease;
1244
+ }
1245
+ .clado-s-row + .clado-s-row {
1246
+ border-top: 1px solid var(--clado-agent-edge);
1247
+ }
1248
+ .clado-s-row.clickable { cursor: pointer; }
1249
+ .clado-s-row.clickable:hover,
1250
+ .clado-s-row.clickable:active { background: var(--clado-agent-hover); }
1251
+ .clado-s-title {
1252
+ font-size: 13px;
1253
+ font-weight: 530;
1254
+ color: var(--clado-ui-text);
1255
+ }
1256
+ .clado-s-val {
1257
+ font-size: 12.5px;
1258
+ color: var(--clado-ui-muted);
1259
+ display: inline-flex;
1260
+ align-items: center;
1261
+ gap: 5px;
1262
+ padding: 4px 6px;
1263
+ border-radius: 8px;
1264
+ }
1265
+
1266
+ .clado-cfg-stage { overflow-x: hidden; }
1267
+ .clado-cfg-page {
1268
+ transition: opacity 240ms var(--clado-ease-spring), transform 280ms var(--clado-ease-spring);
1269
+ }
1270
+ .clado-cfg-page.pushed-out {
1271
+ opacity: 0;
1272
+ pointer-events: none;
1273
+ transform: translateX(-22px);
1274
+ position: absolute;
1275
+ left: 14px;
1276
+ right: 14px;
1277
+ top: 14px;
1278
+ }
1279
+ .clado-cfg-sub-page {
1280
+ display: flex;
1281
+ flex-direction: column;
1282
+ gap: 10px;
1283
+ opacity: 0;
1284
+ pointer-events: none;
1285
+ transform: translateX(24px);
1286
+ position: absolute;
1287
+ left: 14px;
1288
+ right: 14px;
1289
+ top: 14px;
1290
+ transition: opacity 240ms var(--clado-ease-spring), transform 280ms var(--clado-ease-spring);
1291
+ }
1292
+ .clado-cfg-sub-page.active {
1293
+ opacity: 1;
1294
+ pointer-events: auto;
1295
+ transform: translateX(0);
1296
+ position: relative;
1297
+ left: auto;
1298
+ right: auto;
1299
+ top: auto;
1300
+ }
1301
+
1302
+ .clado-switch-btn {
1303
+ appearance: none;
1304
+ width: 40px;
1305
+ height: 23px;
1306
+ border-radius: 999px;
1307
+ border: 1px solid var(--clado-agent-well-border);
1308
+ padding: 1.5px;
1309
+ cursor: pointer;
1310
+ background: var(--clado-agent-track);
1311
+ position: relative;
1312
+ transition: background-color 200ms var(--clado-ease-spring);
1313
+ flex: none;
1314
+ }
1315
+ .clado-switch-btn.on {
1316
+ background: var(--clado-ui-brand);
1317
+ border-color: transparent;
1318
+ }
1319
+ .clado-switch-btn i {
1320
+ display: block;
1321
+ width: 18px;
1322
+ height: 18px;
1323
+ border-radius: 999px;
1324
+ background: #fff;
1325
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
1326
+ transition: transform 220ms var(--clado-ease-spring);
1327
+ pointer-events: none;
1328
+ }
1329
+ .clado-switch-btn.on i { transform: translateX(17px); }
1330
+
1331
+ .clado-clean-textarea {
1332
+ width: 100%;
1333
+ border-radius: 12px;
1334
+ padding: 10px 12px;
1335
+ font-size: 12px;
1336
+ line-height: 1.55;
1337
+ border: 1px solid var(--clado-agent-well-border);
1338
+ background: var(--clado-agent-well);
1339
+ color: var(--clado-ui-text);
1340
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
1341
+ outline: none;
1342
+ resize: vertical;
1343
+ user-select: text;
1344
+ -webkit-user-select: text;
1345
+ }
1346
+
1347
+ /* 轻提示气泡 */
1348
+ .clado-agent-toast {
1349
+ position: fixed;
1350
+ top: calc(max(10px, env(safe-area-inset-top)) + 52px);
1351
+ left: 12px;
1352
+ right: 12px;
1353
+ width: fit-content;
1354
+ max-width: calc(100vw - 24px);
1355
+ margin: 0 auto;
1356
+ transform: translateY(-8px) scale(0.95);
1357
+ z-index: 98;
1358
+ padding: 7px 14px;
1359
+ border-radius: 999px;
1360
+ font: 550 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
1361
+ color: var(--clado-ui-text);
1362
+ background: var(--clado-agent-popover);
1363
+ backdrop-filter: blur(22px) saturate(190%);
1364
+ -webkit-backdrop-filter: blur(22px) saturate(190%);
1365
+ border: 1px solid var(--clado-agent-outline);
1366
+ box-shadow: var(--clado-agent-pill-shadow);
1367
+ opacity: 0;
1368
+ pointer-events: none;
1369
+ transition: opacity 200ms var(--clado-ease-spring), transform 240ms var(--clado-ease-spring);
1370
+ overflow: hidden;
1371
+ text-overflow: ellipsis;
1372
+ white-space: nowrap;
1373
+ }
1374
+ .clado-agent-toast.show {
1375
+ opacity: 1;
1376
+ transform: translateY(0) scale(1);
1377
+ }
1378
+
458
1379
  @media (max-width: 680px) {
459
- .clado-agent-launch { height: 42px; padding-inline: 12px; border-radius: 15px; }
460
- .clado-agent-panel {
461
- position: fixed;
462
- left: 0;
463
- right: 0;
464
- bottom: 0;
465
- width: 100vw;
466
- max-width: 100vw;
467
- height: min(78dvh, 620px);
468
- max-height: 78dvh;
469
- border-radius: 22px 22px 0 0;
470
- padding-bottom: env(safe-area-inset-bottom);
471
- z-index: 30;
472
- }
473
- .clado-agent-panel-body::before {
474
- content: "";
475
- display: block;
476
- width: 36px;
477
- height: 4px;
478
- border-radius: 99px;
479
- background: var(--clado-ui-edge);
480
- margin: 8px auto 2px;
481
- flex: none;
1380
+ .clado-single-panel {
1381
+ border-radius: 26px;
482
1382
  }
483
- /* 移动端 Bottom Sheet 贴底,AI 处理柔光自动移至抽屉顶边中央 ≥80% 处,永不被屏幕底部裁切 */
484
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::before {
485
- bottom: auto;
486
- top: -.5px;
1383
+ .clado-agent-input {
1384
+ font-size: 16px;
487
1385
  }
488
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::after {
489
- top: auto;
490
- bottom: calc(100% - 2px);
491
- transform-origin: 50% 100%;
492
- background:
493
- radial-gradient(ellipse 36% 44% at 30% 94%, rgba(56,189,248,.34) 0%, rgba(56,189,248,.10) 48%, transparent 76%),
494
- radial-gradient(ellipse 34% 52% at 50% 96%, rgba(139,92,246,.34) 0%, rgba(139,92,246,.10) 46%, transparent 74%),
495
- radial-gradient(ellipse 34% 42% at 70% 93%, rgba(244,114,182,.26) 0%, rgba(244,114,182,.08) 44%, transparent 72%);
1386
+ .clado-agent-question-custom input {
1387
+ font-size: 16px;
496
1388
  }
497
- .clado-agent-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
498
- .clado-agent-modes::-webkit-scrollbar { display: none; }
499
- .clado-agent-chip { min-height: 32px; padding: 4px 12px; flex: none; }
500
- .clado-agent-panel textarea { font-size: 16px; min-height: 44px; }
501
- .clado-agent-question-custom input { font-size: 16px; min-height: 40px; }
502
- .clado-agent-send, .clado-agent-stop { min-height: 44px; padding-inline: 16px; }
503
- .clado-agent-option-btn { min-height: 44px; padding: 10px 12px; }
504
1389
  }