cladogram 0.5.5-beta.6 → 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,259 +1,461 @@
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
- height: 42px;
145
+ .clado-agent-orb {
146
+ appearance: none;
7
147
  display: inline-flex;
8
148
  align-items: center;
9
149
  gap: 7px;
10
- padding-inline: 14px;
150
+ height: 42px;
151
+ padding: 0 14px;
11
152
  border-radius: 15px;
12
153
  color: var(--clado-ui-text);
13
- font-weight: 560;
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);
14
163
  }
15
- .clado-agent-launch svg {
16
- width: 15px;
17
- height: 15px;
18
- fill: none;
19
- stroke: currentColor;
20
- stroke-width: 1.65;
21
- stroke-linejoin: round;
164
+ .clado-agent-orb.show {
165
+ opacity: 1;
166
+ pointer-events: auto;
167
+ transform: scale(1) translateY(0);
22
168
  }
23
- .clado-agent-panel {
24
- position: absolute;
25
- right: 0;
26
- bottom: calc(100% + 10px);
27
- width: min(416px, calc(100vw - 32px));
28
- height: min(600px, calc(100dvh - 156px));
29
- min-height: 260px;
30
- border-radius: 22px;
31
- display: flex;
32
- flex-direction: column;
33
- overflow: visible;
169
+ .clado-agent-orb-star {
170
+ color: var(--clado-ui-brand);
171
+ font-size: 13px;
172
+ line-height: 1;
34
173
  }
35
- .clado-agent-panel-body {
36
- display: flex;
37
- flex-direction: column;
38
- flex: 1;
39
- min-height: 0;
40
- overflow: hidden;
41
- border-radius: inherit;
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);
42
183
  }
43
- @keyframes clado-agent-aura-breathe {
44
- 0%, 100% { opacity: .68; transform: translateX(-50%) scaleX(.96) scaleY(.88); }
45
- 50% { opacity: 1; transform: translateX(-50%) scaleX(1.03) scaleY(1.16); }
184
+ .clado-collapse-wrap.closed {
185
+ grid-template-rows: 0fr;
186
+ pointer-events: none;
46
187
  }
47
- @keyframes clado-agent-aura-drift {
48
- 0%, 100% { filter: blur(11px) hue-rotate(-8deg); }
49
- 50% { filter: blur(13px) hue-rotate(12deg); }
188
+ .clado-collapse-inner {
189
+ overflow: visible;
190
+ min-height: 0;
191
+ min-width: 0;
192
+ width: 100%;
50
193
  }
51
- .clado-ai-aura {
52
- display: none;
53
- position: absolute;
54
- inset: 0;
55
- pointer-events: none;
56
- z-index: -1;
194
+ .clado-collapse-wrap.closed .clado-collapse-inner {
195
+ overflow: hidden;
57
196
  }
58
- .clado-agent-panel.clado-ai-working > .clado-ai-aura { display: block; }
59
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::before {
60
- content: "";
61
- position: absolute;
62
- left: 50%;
63
- bottom: -.5px;
64
- width: 86%;
65
- height: 2px;
66
- border-radius: 99px;
67
- transform: translateX(-50%);
68
- background: linear-gradient(90deg, transparent 0%, rgba(56,189,248,.28) 12%, rgba(56,189,248,.68) 28%, rgba(129,140,248,.92) 50%, rgba(232,121,249,.62) 72%, rgba(244,114,182,.24) 88%, transparent 100%);
197
+ .clado-collapse-wrap.closed .clado-cmd-approve-bar {
198
+ opacity: 0;
199
+ transform: translateY(6px) scale(0.98);
69
200
  }
70
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::after {
71
- content: "";
72
- position: absolute;
73
- left: 50%;
74
- top: calc(100% - 3px);
75
- width: 94%;
76
- height: 36px;
77
- transform-origin: 50% 0%;
78
- transform: translateX(-50%);
79
- background:
80
- radial-gradient(ellipse 36% 48% at 30% 10%, rgba(56,189,248,.34) 0%, rgba(56,189,248,.10) 48%, transparent 76%),
81
- radial-gradient(ellipse 34% 56% at 50% 8%, rgba(139,92,246,.36) 0%, rgba(139,92,246,.10) 46%, transparent 74%),
82
- radial-gradient(ellipse 34% 46% at 70% 10%, rgba(244,114,182,.26) 0%, rgba(244,114,182,.08) 44%, transparent 72%);
83
- mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.44) 12%, #000 32%, #000 68%, rgba(0,0,0,.44) 88%, transparent 100%);
84
- -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.44) 12%, #000 32%, #000 68%, rgba(0,0,0,.44) 88%, transparent 100%);
85
- animation: clado-agent-aura-breathe 2.9s ease-in-out infinite, clado-agent-aura-drift 5.5s ease-in-out infinite;
86
- }
87
- .clado-agent-panel header {
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;
88
208
  display: flex;
89
209
  align-items: center;
90
210
  justify-content: space-between;
91
- gap: 8px;
92
- padding: 12px 12px 9px 15px;
211
+ gap: 6px;
212
+ font-size: 11.5px;
93
213
  }
94
- .clado-agent-heading {
214
+ .clado-cmd-approve-copy {
215
+ flex: 1 1 0%;
95
216
  min-width: 0;
96
- display: flex;
97
- flex-direction: column;
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;
98
228
  }
99
- .clado-agent-header-actions {
229
+ .clado-cmd-approve-actions {
100
230
  display: flex;
101
231
  align-items: center;
102
- gap: 3px;
103
- flex: none;
104
- }
105
- .clado-agent-header-actions .clado-ui-button {
106
- min-height: 28px;
107
- padding: 2px 9px;
108
- font-size: 12px;
109
- border-radius: 9px;
232
+ gap: 4px;
233
+ flex: 0 0 auto;
110
234
  }
111
- .clado-agent-follow {
112
- display: inline-flex;
113
- align-items: center;
114
- gap: 5px;
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;
115
244
  }
116
- .clado-agent-follow[aria-pressed="true"]::before {
117
- content: "";
118
- width: 6px;
119
- height: 6px;
120
- border-radius: 50%;
245
+ .clado-cmd-btn:active { transform: scale(0.96); }
246
+ .clado-cmd-btn.allow {
247
+ border: 0;
121
248
  background: var(--clado-ui-brand);
122
- flex: none;
249
+ color: #fff;
250
+ font-weight: 600;
123
251
  }
124
- .clado-agent-follow[aria-pressed="true"] {
252
+ .clado-cmd-btn.session {
253
+ border: 1px solid var(--clado-agent-well-border);
254
+ background: var(--clado-agent-well);
125
255
  color: var(--clado-ui-text);
126
- font-weight: 600;
256
+ font-weight: 550;
257
+ padding-inline: 7px;
127
258
  }
128
- .clado-agent-panel h2 { margin: 0; font-size: 14px; font-weight: 650; }
129
- .clado-agent-provider {
130
- color: var(--clado-ui-subtle);
131
- font-size: 11px;
132
- margin-top: 1px;
133
- white-space: nowrap;
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);
276
+ }
277
+ .clado-single-wrap.open {
278
+ grid-template-rows: 1fr;
279
+ pointer-events: auto;
280
+ }
281
+ .clado-single-clip {
134
282
  overflow: hidden;
135
- text-overflow: ellipsis;
283
+ min-height: 0;
284
+ min-width: 0;
285
+ width: 100%;
286
+ padding: 12px 0;
287
+ margin: -12px 0;
136
288
  }
137
- .clado-agent-close { font-size: 17px !important; width: 28px; padding-inline: 0 !important; }
138
- .clado-agent-sessions {
139
- max-height: 170px;
140
- overflow: auto;
141
- margin: 0 12px 6px;
142
- padding: 6px;
143
- border: 1px solid var(--clado-ui-well-border);
144
- border-radius: 13px;
145
- background: var(--clado-ui-well);
289
+ .clado-single-panel {
290
+ width: 100%;
291
+ min-width: 0;
146
292
  display: flex;
147
293
  flex-direction: column;
148
- gap: 3px;
294
+ gap: 8px;
295
+ border-radius: 22px;
296
+ padding: 11px 12px;
297
+ opacity: 0;
298
+ transform: translateY(8px);
299
+ transform-origin: bottom center;
149
300
  }
150
- .clado-agent-sessions[hidden] { display: none; }
151
- .clado-agent-sessions-empty {
152
- padding: 10px 6px;
153
- font-size: 11.5px;
154
- color: var(--clado-ui-muted);
155
- text-align: center;
301
+ .clado-single-wrap.open .clado-single-panel {
302
+ opacity: 1;
303
+ transform: translateY(0);
156
304
  }
157
- .clado-agent-session-row {
305
+ .clado-sp-body-fade {
158
306
  display: flex;
159
- align-items: center;
160
- gap: 4px;
161
- border-radius: 9px;
162
- transition: background 140ms ease;
307
+ flex-direction: column;
308
+ gap: 8px;
309
+ min-width: 0;
310
+ transition: opacity 150ms ease, transform 170ms var(--clado-ease-spring);
311
+ }
312
+ .clado-sp-body-fade.switching {
313
+ opacity: 0.25;
314
+ transform: translateY(3px);
163
315
  }
164
- .clado-agent-session-row:hover {
165
- background: var(--clado-ui-hover);
316
+
317
+ /* 保留兼容钩子与底部柔光选择符 */
318
+ .clado-ai-aura {
319
+ display: none;
320
+ position: absolute;
321
+ inset: 0;
322
+ pointer-events: none;
323
+ z-index: -1;
166
324
  }
167
- .clado-agent-session-row.active {
168
- background: var(--clado-ui-active);
169
- box-shadow: var(--clado-ui-active-shadow);
325
+ .clado-agent-panel.clado-ai-working > .clado-ai-aura { display: block; }
326
+
327
+ .clado-sp-header {
328
+ display: flex;
329
+ align-items: center;
330
+ justify-content: space-between;
331
+ gap: 6px;
332
+ flex-wrap: wrap;
170
333
  }
171
- .clado-agent-session-open {
172
- flex: 1;
173
- min-width: 0;
174
- border: 0;
175
- background: transparent;
176
- color: var(--clado-ui-text);
177
- text-align: left;
178
- padding: 6px 8px;
179
- cursor: pointer;
334
+ .clado-sp-title-group {
180
335
  display: flex;
181
- flex-direction: column;
182
- gap: 2px;
183
- font: inherit;
336
+ align-items: center;
337
+ gap: 6px;
338
+ min-width: 0;
339
+ flex: 1 1 auto;
184
340
  }
185
- .clado-agent-session-title {
186
- font-size: 12px;
187
- font-weight: 560;
341
+ .clado-sp-name {
342
+ font-size: 13.5px;
343
+ font-weight: 650;
188
344
  white-space: nowrap;
189
345
  overflow: hidden;
190
346
  text-overflow: ellipsis;
347
+ max-width: 150px;
191
348
  }
192
- .clado-agent-session-open small {
349
+ .clado-tag-pill {
350
+ display: inline-flex;
351
+ align-items: center;
352
+ padding: 1px 6.5px;
353
+ border-radius: 6px;
193
354
  font-size: 10.5px;
194
- color: var(--clado-ui-subtle);
195
- }
196
- .clado-agent-session-open small.waiting {
197
- color: #b45309;
198
355
  font-weight: 600;
356
+ line-height: 1.5;
357
+ white-space: nowrap;
358
+ flex: none;
359
+ }
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;
199
374
  }
200
- [data-theme="dark"] .clado-agent-session-open small.waiting {
201
- color: #fbbf24;
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);
202
383
  }
203
- .clado-agent-session-del {
204
- border: 0;
384
+ .clado-tab-btn {
385
+ appearance: none;
386
+ border: 1px solid transparent;
205
387
  background: transparent;
206
388
  color: var(--clado-ui-muted);
207
- width: 24px;
208
- height: 24px;
209
- border-radius: 7px;
389
+ font: inherit;
390
+ font-size: 11px;
391
+ font-weight: 520;
392
+ padding: 3px 8px;
393
+ border-radius: 8px;
210
394
  cursor: pointer;
211
- font-size: 14px;
212
- flex: none;
395
+ white-space: nowrap;
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;
213
397
  }
214
- .clado-agent-session-del:hover {
398
+ .clado-tab-btn:active { transform: scale(0.96); }
399
+ .clado-tab-btn.active {
215
400
  color: var(--clado-ui-text);
216
- background: var(--clado-ui-hover);
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);
217
405
  }
218
406
 
219
- /* 灵动四格分段轨道:只有当前选中项浮起晶透胶囊,未选中彻底去灰块 */
220
- .clado-agent-modes {
221
- display: grid;
222
- grid-template-columns: repeat(4, minmax(0, 1fr));
223
- gap: 3px;
224
- margin: 0 12px 8px;
225
- padding: 3px;
226
- border-radius: 12px;
227
- background: var(--clado-ui-track);
228
- border: 1px solid var(--clado-ui-edge);
407
+ .clado-icon-act {
408
+ appearance: none;
409
+ border: 1px solid transparent;
410
+ background: transparent;
411
+ color: var(--clado-ui-muted);
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;
229
420
  }
230
- .clado-agent-chip {
231
- min-height: 29px;
232
- padding: 2px 6px;
233
- font-size: 12px;
234
- font-weight: 500;
235
- border-radius: 9px;
236
- text-align: center;
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);
237
427
  }
238
- .clado-agent-chip[aria-pressed="true"] {
239
- font-weight: 620;
428
+ .clado-icon-act.del:hover {
429
+ color: var(--clado-agent-danger);
240
430
  }
241
431
 
242
- /* 人设 / 执行器 自研毛玻璃选择器(彻底取代原生系统 select 弹窗) */
243
- .clado-agent-persona-bar,
244
- .clado-agent-executor-bar {
245
- position: relative;
246
- z-index: 20;
432
+ /* 二级模式与 ACP 执行器紧凑栏 */
433
+ .clado-sp-subbar {
247
434
  display: flex;
248
435
  align-items: center;
249
- gap: 8px;
250
- padding: 0 12px 10px;
251
- border-bottom: 1px solid var(--clado-ui-edge);
252
- font-size: 11.5px;
253
- color: var(--clado-ui-subtle);
436
+ justify-content: space-between;
437
+ gap: 6px;
438
+ flex-wrap: wrap;
439
+ }
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;
449
+ }
450
+ .clado-sp-executor-wrap {
451
+ position: relative;
452
+ flex: 1 1 140px;
453
+ min-width: 120px;
454
+ z-index: 30;
254
455
  }
255
- .clado-agent-persona-bar[hidden],
256
- .clado-agent-executor-bar[hidden] { display: none; }
456
+ .clado-sp-executor-wrap[hidden] { display: none !important; }
457
+
458
+ /* 毛玻璃下拉组件 */
257
459
  .clado-agent-select-native {
258
460
  position: absolute !important;
259
461
  width: 1px !important;
@@ -264,7 +466,7 @@
264
466
  }
265
467
  .clado-glass-dropdown {
266
468
  position: relative;
267
- flex: 1;
469
+ width: 100%;
268
470
  min-width: 0;
269
471
  }
270
472
  .clado-glass-dropdown-trigger {
@@ -273,36 +475,23 @@
273
475
  display: flex;
274
476
  align-items: center;
275
477
  justify-content: space-between;
276
- gap: 8px;
277
- min-height: 33px;
278
- padding: 6px 10px;
279
- border-radius: 11px;
280
- border: 1px solid var(--clado-ui-well-border);
281
- background: var(--clado-ui-well);
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);
282
484
  color: var(--clado-ui-text);
283
485
  font: inherit;
284
- font-size: 12.5px;
486
+ font-size: 11.5px;
285
487
  font-weight: 550;
286
488
  text-align: left;
287
489
  cursor: pointer;
288
- box-shadow: inset 0 1px 0 rgb(255 255 255 / .42);
289
- transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
290
- }
291
- [data-theme="dark"] .clado-glass-dropdown-trigger {
292
- box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
293
- }
294
- .clado-glass-dropdown-trigger:hover:not(:disabled) {
295
- background: var(--clado-ui-hover);
296
- border-color: var(--clado-ui-glass-outline);
297
- }
298
- .clado-glass-dropdown-trigger:disabled {
299
- opacity: .5;
300
- cursor: default;
301
490
  }
302
491
  .clado-glass-dropdown-value {
303
492
  display: flex;
304
493
  align-items: center;
305
- gap: 7px;
494
+ gap: 6px;
306
495
  min-width: 0;
307
496
  flex: 1;
308
497
  }
@@ -312,14 +501,14 @@
312
501
  white-space: nowrap;
313
502
  }
314
503
  .clado-glass-dropdown-dot {
315
- width: 7px;
316
- height: 7px;
504
+ width: 6px;
505
+ height: 6px;
317
506
  border-radius: 50%;
318
507
  flex: none;
319
508
  }
320
509
  .clado-glass-dropdown-chevron {
321
- width: 14px;
322
- height: 14px;
510
+ width: 13px;
511
+ height: 13px;
323
512
  fill: none;
324
513
  stroke: var(--clado-ui-subtle);
325
514
  stroke-width: 2;
@@ -328,117 +517,174 @@
328
517
  flex: none;
329
518
  transition: transform 180ms ease;
330
519
  }
331
- .clado-glass-dropdown.open .clado-glass-dropdown-chevron {
332
- transform: rotate(180deg);
333
- }
334
- /* 展开浮层使用清晰高可读磨砂底色(84%/88%),绝不与下方对话文字打架 */
520
+ .clado-glass-dropdown.open .clado-glass-dropdown-chevron { transform: rotate(180deg); }
335
521
  .clado-glass-dropdown-menu {
336
522
  position: absolute;
337
523
  left: 0;
338
524
  right: 0;
339
- top: calc(100% + 6px);
340
- padding: 6px;
341
- border-radius: 16px;
342
- background: var(--clado-ui-popover);
525
+ top: calc(100% + 5px);
526
+ padding: 5px;
527
+ border-radius: 14px;
528
+ background: var(--clado-agent-popover);
343
529
  backdrop-filter: blur(24px) saturate(185%);
344
530
  -webkit-backdrop-filter: blur(24px) saturate(185%);
345
- border: 1px solid var(--clado-ui-glass-outline);
346
- box-shadow: 0 16px 40px rgb(15 23 42 / .16), 0 0 0 .5px var(--clado-ui-glass-outer), inset 0 1px 0 var(--clado-ui-highlight);
531
+ border: 1px solid var(--clado-agent-outline);
532
+ box-shadow: var(--clado-agent-shadow);
347
533
  display: flex;
348
534
  flex-direction: column;
349
- gap: 3px;
535
+ gap: 2px;
350
536
  z-index: 60;
351
537
  }
352
- .clado-glass-dropdown-menu[hidden] { display: none; }
538
+ .clado-glass-dropdown-menu[hidden] { display: none !important; }
353
539
  .clado-glass-dropdown-option {
354
540
  width: 100%;
355
541
  display: flex;
356
542
  align-items: center;
357
- gap: 9px;
358
- padding: 8px 10px;
359
- border-radius: 11px;
543
+ gap: 8px;
544
+ padding: 6px 9px;
545
+ border-radius: 9px;
360
546
  text-align: left;
361
547
  white-space: normal;
362
548
  color: var(--clado-ui-text);
549
+ font-size: 12px;
363
550
  }
364
551
  .clado-glass-dropdown-copy {
365
552
  flex: 1;
366
553
  min-width: 0;
367
554
  display: flex;
368
555
  flex-direction: column;
369
- gap: 2px;
370
- }
371
- .clado-glass-dropdown-copy strong {
372
- font-size: 12.5px;
373
- font-weight: 560;
374
- color: var(--clado-ui-text);
375
- }
376
- .clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-copy strong {
377
- font-weight: 640;
378
- }
379
- .clado-glass-dropdown-copy small {
380
- font-size: 10.5px;
381
- color: var(--clado-ui-subtle);
382
- line-height: 1.35;
383
556
  }
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); }
384
559
  .clado-glass-dropdown-check {
385
560
  color: var(--clado-ui-brand);
386
- font-size: 12px;
561
+ font-size: 11.5px;
387
562
  font-weight: 700;
388
563
  visibility: hidden;
564
+ }
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 {
587
+ display: flex;
588
+ align-items: center;
589
+ justify-content: space-between;
590
+ gap: 8px;
591
+ }
592
+ .clado-todo-summary {
593
+ font-weight: 560;
594
+ overflow: hidden;
595
+ text-overflow: ellipsis;
596
+ white-space: nowrap;
597
+ }
598
+ .clado-todo-arrow {
599
+ font-size: 10px;
600
+ color: var(--clado-ui-subtle);
389
601
  flex: none;
390
602
  }
391
- .clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-check {
392
- visibility: visible;
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;
393
610
  }
394
611
 
612
+ /* 消息流 */
395
613
  .clado-agent-log {
396
- flex: 1;
397
- min-height: 0;
398
- overflow: auto;
614
+ max-height: min(230px, 34dvh);
615
+ overflow-y: auto;
399
616
  overscroll-behavior: contain;
400
- padding: 13px;
401
617
  display: flex;
402
618
  flex-direction: column;
403
- gap: 11px;
619
+ gap: 8px;
620
+ padding: 2px 2px;
621
+ touch-action: pan-y;
622
+ user-select: text;
623
+ -webkit-user-select: text;
404
624
  }
405
625
  .clado-agent-log::-webkit-scrollbar { width: 4px; }
406
- .clado-agent-log::-webkit-scrollbar-thumb { background: rgb(120 130 150 / .24); border-radius: 99px; }
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);
631
+ }
632
+
407
633
  .clado-agent-message {
408
634
  width: fit-content;
409
635
  max-width: 100%;
410
- border-radius: 15px;
411
- padding: 8px 12px;
636
+ border-radius: 14px;
637
+ padding: 6px 11px;
412
638
  overflow-wrap: anywhere;
639
+ font-size: 12px;
413
640
  }
414
641
  .clado-agent-message.human {
415
- align-self: end;
642
+ align-self: flex-end;
416
643
  max-width: 88%;
417
- border-radius: 15px 15px 5px 15px;
418
- background: var(--clado-ui-active);
419
- border: 1px solid var(--clado-ui-glass-outline);
420
- box-shadow: 0 2px 10px rgb(15 23 42 / .05);
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);
421
648
  }
422
649
  .clado-agent-message.assistant {
423
650
  width: 100%;
424
- padding-inline: 3px;
651
+ padding: 2px 2px;
425
652
  }
426
- .clado-agent-message strong, .clado-agent-message small {
653
+ .clado-agent-message strong,
654
+ .clado-agent-message small {
427
655
  color: var(--clado-ui-muted);
428
- font-size: 11px;
656
+ font-size: 10.5px;
657
+ display: block;
429
658
  }
430
659
  .clado-agent-message p {
431
- margin: 3px 0 0;
660
+ margin: 2px 0 0;
432
661
  white-space: pre-wrap;
433
- line-height: 1.58;
662
+ line-height: 1.55;
663
+ color: var(--clado-ui-text);
434
664
  }
435
- .clado-agent-thinking {
436
- margin: 5px 0 6px;
437
- padding: 6px 10px;
438
- border-radius: 11px;
439
- border: 1px solid var(--clado-ui-well-border);
440
- background: var(--clado-ui-well);
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);
441
671
  font-size: 11.5px;
672
+ line-height: 1.45;
673
+ }
674
+ .clado-peer-call-head {
675
+ font-size: 10.5px;
676
+ font-weight: 650;
677
+ color: var(--clado-ui-brand);
678
+ margin-bottom: 2px;
679
+ }
680
+
681
+ .clado-agent-thinking {
682
+ margin: 4px 0 5px;
683
+ padding: 5px 9px;
684
+ border-radius: 10px;
685
+ border: 1px solid var(--clado-agent-well-border);
686
+ background: var(--clado-agent-well);
687
+ font-size: 11px;
442
688
  }
443
689
  .clado-agent-thinking summary {
444
690
  cursor: pointer;
@@ -447,78 +693,78 @@
447
693
  user-select: none;
448
694
  }
449
695
  .clado-agent-thinking pre {
450
- margin: 6px 0 2px;
696
+ margin: 5px 0 2px;
451
697
  white-space: pre-wrap;
452
698
  overflow-wrap: anywhere;
453
699
  font-family: inherit;
454
- font-size: 11.5px;
700
+ font-size: 11px;
455
701
  line-height: 1.5;
456
702
  color: var(--clado-ui-muted);
457
703
  }
458
- .clado-agent-changes {
459
- margin-top: 8px;
460
- padding: 8px 10px;
461
- border-radius: 12px;
462
- border: 1px solid var(--clado-ui-well-border);
463
- background: var(--clado-ui-well);
464
- }
465
- .clado-agent-changes-title {
466
- font-size: 11px;
467
- font-weight: 600;
468
- color: var(--clado-ui-muted);
469
- 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;
470
712
  }
471
- .clado-agent-changes-list {
713
+ .clado-changes-chips {
472
714
  display: flex;
473
- flex-direction: column;
474
- gap: 3px;
715
+ gap: 5px;
716
+ flex-wrap: wrap;
475
717
  }
476
- .clado-agent-change-item {
477
- border: 1px solid transparent;
478
- background: transparent;
479
- 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);
480
727
  font: inherit;
481
- font-size: 11.5px;
482
- text-align: left;
483
- padding: 5px 7px;
484
- border-radius: 8px;
728
+ font-size: 11px;
729
+ color: var(--clado-ui-muted);
485
730
  cursor: pointer;
486
- display: flex;
487
- align-items: center;
488
- gap: 7px;
489
- transition: background 140ms ease, border-color 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);
490
738
  }
491
- .clado-agent-change-item:hover {
492
- background: var(--clado-ui-hover);
493
- border-color: var(--clado-ui-hover-border);
739
+ .clado-tool-chip.rollback {
740
+ color: var(--clado-ui-brand);
741
+ font-weight: 560;
494
742
  }
495
- .clado-agent-change-item .dot {
496
- width: 6px;
497
- height: 6px;
498
- border-radius: 50%;
499
- background: #10b981;
500
- flex: none;
743
+ .clado-tool-chip.rollback.done {
744
+ color: #059669;
501
745
  }
746
+
747
+ /* ask_user 决策卡片 */
502
748
  .clado-agent-question {
503
- margin-top: 8px;
504
- padding: 10px 11px;
505
- border-radius: 14px;
506
- border: 1px solid var(--clado-ui-glass-outline);
507
- background: var(--clado-ui-well);
508
- box-shadow: inset 0 1px 0 var(--clado-ui-highlight);
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);
509
755
  display: flex;
510
756
  flex-direction: column;
511
- gap: 8px;
757
+ gap: 7px;
512
758
  }
513
759
  .clado-agent-question.answered {
514
- border-color: var(--clado-ui-edge);
515
- background: var(--clado-ui-track);
760
+ border-color: var(--clado-agent-edge);
761
+ background: var(--clado-agent-track);
516
762
  }
517
763
  .clado-agent-question-badge {
518
764
  display: inline-flex;
519
765
  align-items: center;
520
766
  gap: 6px;
521
- font-size: 11px;
767
+ font-size: 10.5px;
522
768
  font-weight: 620;
523
769
  color: var(--clado-ui-text);
524
770
  }
@@ -528,18 +774,10 @@
528
774
  height: 6px;
529
775
  border-radius: 50%;
530
776
  background: #f59e0b;
531
- flex: none;
532
- }
533
- .clado-agent-question.answered .clado-agent-question-badge {
534
- color: var(--clado-ui-muted);
535
- }
536
- .clado-agent-question.answered .clado-agent-question-badge::before {
537
- background: var(--clado-ui-muted);
538
777
  }
539
778
  .clado-agent-question-text {
540
- font-size: 12.5px;
779
+ font-size: 12px;
541
780
  line-height: 1.5;
542
- color: var(--clado-ui-text);
543
781
  font-weight: 500;
544
782
  }
545
783
  .clado-agent-question-options {
@@ -548,36 +786,26 @@
548
786
  gap: 4px;
549
787
  }
550
788
  .clado-agent-option-btn {
789
+ appearance: none;
551
790
  border: 1px solid transparent;
552
- border-radius: 11px;
791
+ border-radius: 10px;
553
792
  background: transparent;
554
793
  color: var(--clado-ui-text);
555
- padding: 8px 10px;
794
+ padding: 7px 9px;
556
795
  text-align: left;
557
796
  cursor: pointer;
558
797
  font: inherit;
559
798
  display: flex;
560
799
  flex-direction: column;
561
800
  gap: 2px;
562
- transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
801
+ transition: background 140ms ease, border-color 140ms ease;
563
802
  }
564
803
  .clado-agent-option-btn:hover:not(:disabled) {
565
- background: var(--clado-ui-active);
566
- border-color: var(--clado-ui-glass-outline);
567
- box-shadow: var(--clado-ui-active-shadow);
568
- }
569
- .clado-agent-option-btn:disabled {
570
- opacity: .55;
571
- cursor: default;
572
- }
573
- .clado-agent-option-label {
574
- font-size: 12px;
575
- font-weight: 600;
576
- }
577
- .clado-agent-option-btn small {
578
- font-size: 11px;
579
- color: var(--clado-ui-muted);
804
+ background: var(--clado-agent-active);
805
+ border-color: var(--clado-agent-outline);
580
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); }
581
809
  .clado-agent-question-custom {
582
810
  display: flex;
583
811
  gap: 5px;
@@ -585,102 +813,577 @@
585
813
  .clado-agent-question-custom input {
586
814
  flex: 1;
587
815
  min-width: 0;
588
- padding: 6px 9px;
589
- border: 1px solid var(--clado-ui-well-border);
590
- border-radius: 9px;
591
- background: var(--clado-ui-well);
816
+ padding: 5px 8px;
817
+ border: 1px solid var(--clado-agent-well-border);
818
+ border-radius: 8px;
819
+ background: var(--clado-agent-well);
592
820
  color: var(--clado-ui-text);
593
821
  font: inherit;
594
- font-size: 12px;
595
- outline: none;
596
- }
597
- .clado-agent-question-custom input:focus {
598
- background: var(--clado-ui-well-focus);
599
- border-color: color-mix(in srgb, var(--clado-ui-brand) 48%, transparent);
600
- }
601
- .clado-agent-option-submit {
602
- min-height: 30px;
603
- padding: 2px 11px;
604
822
  font-size: 11.5px;
823
+ outline: none;
605
824
  }
606
825
  .clado-agent-question-answered {
607
- font-size: 11.5px;
826
+ font-size: 11px;
608
827
  color: var(--clado-ui-brand);
609
828
  font-weight: 560;
610
829
  }
830
+
611
831
  .clado-agent-status {
612
- margin: 0 14px;
613
- padding-block: 4px;
832
+ margin: 0;
833
+ font-size: 11px;
614
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;
615
950
  font-size: 11px;
616
- max-height: 65px;
617
- overflow: auto;
618
- 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; }
962
+ }
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
+ }
619
974
  }
620
- .clado-agent-panel form {
975
+
976
+ /* ============ 底部打字框与下方窄幅清淡滚动流光条 ============ */
977
+ .clado-agent-shell {
978
+ position: relative;
979
+ border-radius: 18px;
980
+ padding: 6px 8px;
621
981
  display: flex;
622
- align-items: end;
623
- gap: 7px;
624
- padding: 8px 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;
625
1003
  }
626
- .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 {
627
1008
  flex: 1;
628
1009
  min-width: 0;
629
- max-height: 100px;
630
- resize: vertical;
631
- padding: 8px 11px;
632
- border: 1px solid var(--clado-ui-well-border);
633
- border-radius: 13px;
634
- background: var(--clado-ui-well);
1010
+ border: 0;
1011
+ background: transparent;
635
1012
  color: var(--clado-ui-text);
636
1013
  font: inherit;
1014
+ font-size: 13.5px;
637
1015
  outline: none;
638
- box-shadow: inset 0 1px 0 rgb(255 255 255 / .42);
639
- transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
1016
+ padding: 4px 2px;
1017
+ user-select: text;
1018
+ -webkit-user-select: text;
640
1019
  }
641
- [data-theme="dark"] .clado-agent-panel textarea {
642
- box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
1020
+ .clado-agent-input::placeholder {
1021
+ color: var(--clado-ui-subtle);
643
1022
  }
644
- .clado-agent-panel textarea:focus {
645
- background: var(--clado-ui-well-focus);
646
- border-color: color-mix(in srgb, var(--clado-ui-brand) 48%, transparent);
647
- box-shadow: 0 0 0 3px var(--clado-ui-brand-soft);
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;
648
1038
  }
649
- .clado-agent-send {
650
- min-height: 34px;
651
- padding-inline: 14px;
652
- border-radius: 11px;
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;
653
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;
1161
+ color: var(--clado-ui-text);
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);
1182
+ }
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
+
654
1379
  @media (max-width: 680px) {
655
- .clado-agent-launch { height: 42px; padding-inline: 13px; border-radius: 15px; }
656
- .clado-agent-panel {
657
- position: fixed;
658
- left: 10px;
659
- right: 10px;
660
- bottom: max(10px, env(safe-area-inset-bottom));
661
- width: auto;
662
- max-width: 440px;
663
- margin: 0 auto;
664
- height: min(72dvh, 590px);
665
- max-height: 74dvh;
1380
+ .clado-single-panel {
666
1381
  border-radius: 26px;
667
- z-index: 30;
668
1382
  }
669
- .clado-agent-panel-body::before {
670
- content: "";
671
- display: block;
672
- width: 36px;
673
- height: 4px;
674
- border-radius: 99px;
675
- background: var(--clado-ui-edge);
676
- margin: 8px auto 2px;
677
- flex: none;
1383
+ .clado-agent-input {
1384
+ font-size: 16px;
1385
+ }
1386
+ .clado-agent-question-custom input {
1387
+ font-size: 16px;
678
1388
  }
679
- .clado-agent-chip { min-height: 32px; padding: 3px 4px; }
680
- .clado-glass-dropdown-trigger { min-height: 38px; font-size: 13px; }
681
- .clado-glass-dropdown-option { min-height: 44px; }
682
- .clado-agent-panel textarea { font-size: 16px; min-height: 42px; }
683
- .clado-agent-question-custom input { font-size: 16px; min-height: 40px; }
684
- .clado-agent-send, .clado-agent-stop { min-height: 42px; padding-inline: 16px; }
685
- .clado-agent-option-btn { min-height: 44px; padding: 10px 12px; }
686
1389
  }