cladogram 0.5.5-beta.5 → 0.5.5-beta.6

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.
@@ -3,28 +3,31 @@
3
3
  align-self: end;
4
4
  }
5
5
  .clado-agent-launch {
6
- min-height: 34px;
6
+ height: 42px;
7
7
  display: inline-flex;
8
8
  align-items: center;
9
- gap: 6px;
10
- padding-inline: 10px;
9
+ gap: 7px;
10
+ padding-inline: 14px;
11
+ border-radius: 15px;
11
12
  color: var(--clado-ui-text);
13
+ font-weight: 560;
12
14
  }
13
15
  .clado-agent-launch svg {
14
16
  width: 15px;
15
17
  height: 15px;
16
18
  fill: none;
17
19
  stroke: currentColor;
18
- stroke-width: 1.5;
20
+ stroke-width: 1.65;
19
21
  stroke-linejoin: round;
20
22
  }
21
23
  .clado-agent-panel {
22
24
  position: absolute;
23
25
  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;
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;
28
31
  display: flex;
29
32
  flex-direction: column;
30
33
  overflow: visible;
@@ -38,12 +41,12 @@
38
41
  border-radius: inherit;
39
42
  }
40
43
  @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); }
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); }
43
46
  }
44
47
  @keyframes clado-agent-aura-drift {
45
- 0%, 100% { filter: blur(12px) hue-rotate(-8deg); }
46
- 50% { filter: blur(14px) hue-rotate(12deg); }
48
+ 0%, 100% { filter: blur(11px) hue-rotate(-8deg); }
49
+ 50% { filter: blur(13px) hue-rotate(12deg); }
47
50
  }
48
51
  .clado-ai-aura {
49
52
  display: none;
@@ -59,25 +62,26 @@
59
62
  left: 50%;
60
63
  bottom: -.5px;
61
64
  width: 86%;
62
- height: 1px;
65
+ height: 2px;
66
+ border-radius: 99px;
63
67
  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%);
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%);
65
69
  }
66
70
  .clado-agent-panel.clado-ai-working > .clado-ai-aura::after {
67
71
  content: "";
68
72
  position: absolute;
69
73
  left: 50%;
70
- top: calc(100% - 2px);
71
- width: 96%;
72
- height: 46px;
74
+ top: calc(100% - 3px);
75
+ width: 94%;
76
+ height: 36px;
73
77
  transform-origin: 50% 0%;
74
78
  transform: translateX(-50%);
75
79
  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%);
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%);
81
85
  animation: clado-agent-aura-breathe 2.9s ease-in-out infinite, clado-agent-aura-drift 5.5s ease-in-out infinite;
82
86
  }
83
87
  .clado-agent-panel header {
@@ -85,8 +89,7 @@
85
89
  align-items: center;
86
90
  justify-content: space-between;
87
91
  gap: 8px;
88
- border-bottom: 1px solid var(--clado-ui-edge);
89
- padding: 9px 10px 9px 14px;
92
+ padding: 12px 12px 9px 15px;
90
93
  }
91
94
  .clado-agent-heading {
92
95
  min-width: 0;
@@ -100,32 +103,49 @@
100
103
  flex: none;
101
104
  }
102
105
  .clado-agent-header-actions .clado-ui-button {
103
- min-height: 26px;
104
- padding: 2px 7px;
105
- font-size: 11.5px;
106
+ min-height: 28px;
107
+ padding: 2px 9px;
108
+ font-size: 12px;
109
+ border-radius: 9px;
110
+ }
111
+ .clado-agent-follow {
112
+ display: inline-flex;
113
+ align-items: center;
114
+ gap: 5px;
115
+ }
116
+ .clado-agent-follow[aria-pressed="true"]::before {
117
+ content: "";
118
+ width: 6px;
119
+ height: 6px;
120
+ border-radius: 50%;
121
+ background: var(--clado-ui-brand);
122
+ flex: none;
106
123
  }
107
124
  .clado-agent-follow[aria-pressed="true"] {
108
- color: var(--clado-ui-accent);
109
- background: var(--clado-ui-active);
125
+ color: var(--clado-ui-text);
126
+ font-weight: 600;
110
127
  }
111
128
  .clado-agent-panel h2 { margin: 0; font-size: 14px; font-weight: 650; }
112
129
  .clado-agent-provider {
113
- color: var(--clado-ui-muted);
130
+ color: var(--clado-ui-subtle);
114
131
  font-size: 11px;
132
+ margin-top: 1px;
115
133
  white-space: nowrap;
116
134
  overflow: hidden;
117
135
  text-overflow: ellipsis;
118
136
  }
119
- .clado-agent-close { font-size: 18px !important; padding-inline: 6px !important; }
137
+ .clado-agent-close { font-size: 17px !important; width: 28px; padding-inline: 0 !important; }
120
138
  .clado-agent-sessions {
121
139
  max-height: 170px;
122
140
  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);
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);
126
146
  display: flex;
127
147
  flex-direction: column;
128
- gap: 4px;
148
+ gap: 3px;
129
149
  }
130
150
  .clado-agent-sessions[hidden] { display: none; }
131
151
  .clado-agent-sessions-empty {
@@ -138,11 +158,15 @@
138
158
  display: flex;
139
159
  align-items: center;
140
160
  gap: 4px;
141
- border-radius: 8px;
161
+ border-radius: 9px;
142
162
  transition: background 140ms ease;
143
163
  }
144
- .clado-agent-session-row:hover, .clado-agent-session-row.active {
164
+ .clado-agent-session-row:hover {
165
+ background: var(--clado-ui-hover);
166
+ }
167
+ .clado-agent-session-row.active {
145
168
  background: var(--clado-ui-active);
169
+ box-shadow: var(--clado-ui-active-shadow);
146
170
  }
147
171
  .clado-agent-session-open {
148
172
  flex: 1;
@@ -151,7 +175,7 @@
151
175
  background: transparent;
152
176
  color: var(--clado-ui-text);
153
177
  text-align: left;
154
- padding: 5px 7px;
178
+ padding: 6px 8px;
155
179
  cursor: pointer;
156
180
  display: flex;
157
181
  flex-direction: column;
@@ -160,14 +184,14 @@
160
184
  }
161
185
  .clado-agent-session-title {
162
186
  font-size: 12px;
163
- font-weight: 550;
187
+ font-weight: 560;
164
188
  white-space: nowrap;
165
189
  overflow: hidden;
166
190
  text-overflow: ellipsis;
167
191
  }
168
192
  .clado-agent-session-open small {
169
193
  font-size: 10.5px;
170
- color: var(--clado-ui-muted);
194
+ color: var(--clado-ui-subtle);
171
195
  }
172
196
  .clado-agent-session-open small.waiting {
173
197
  color: #b45309;
@@ -182,50 +206,192 @@
182
206
  color: var(--clado-ui-muted);
183
207
  width: 24px;
184
208
  height: 24px;
185
- border-radius: 6px;
209
+ border-radius: 7px;
186
210
  cursor: pointer;
187
211
  font-size: 14px;
188
212
  flex: none;
189
213
  }
190
214
  .clado-agent-session-del:hover {
191
215
  color: var(--clado-ui-text);
192
- background: color-mix(in srgb, var(--clado-ui-edge) 50%, transparent);
216
+ background: var(--clado-ui-hover);
193
217
  }
218
+
219
+ /* 灵动四格分段轨道:只有当前选中项浮起晶透胶囊,未选中彻底去灰块 */
194
220
  .clado-agent-modes {
195
- 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);
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);
200
229
  }
201
230
  .clado-agent-chip {
202
- min-height: 26px;
203
- padding: 3px 9px;
204
- font-size: 11.5px;
205
- border-radius: 999px;
231
+ min-height: 29px;
232
+ padding: 2px 6px;
233
+ font-size: 12px;
234
+ font-weight: 500;
235
+ border-radius: 9px;
236
+ text-align: center;
237
+ }
238
+ .clado-agent-chip[aria-pressed="true"] {
239
+ font-weight: 620;
206
240
  }
241
+
242
+ /* 人设 / 执行器 自研毛玻璃选择器(彻底取代原生系统 select 弹窗) */
207
243
  .clado-agent-persona-bar,
208
244
  .clado-agent-executor-bar {
245
+ position: relative;
246
+ z-index: 20;
209
247
  display: flex;
210
248
  align-items: center;
211
249
  gap: 8px;
212
- padding: 6px 12px;
213
- border-bottom: 1px solid color-mix(in srgb, var(--clado-ui-edge) 70%, transparent);
250
+ padding: 0 12px 10px;
251
+ border-bottom: 1px solid var(--clado-ui-edge);
214
252
  font-size: 11.5px;
215
- color: var(--clado-ui-muted);
253
+ color: var(--clado-ui-subtle);
216
254
  }
217
255
  .clado-agent-persona-bar[hidden],
218
256
  .clado-agent-executor-bar[hidden] { display: none; }
219
- .clado-agent-select {
257
+ .clado-agent-select-native {
258
+ position: absolute !important;
259
+ width: 1px !important;
260
+ height: 1px !important;
261
+ opacity: 0 !important;
262
+ pointer-events: none !important;
263
+ overflow: hidden !important;
264
+ }
265
+ .clado-glass-dropdown {
266
+ position: relative;
220
267
  flex: 1;
221
268
  min-width: 0;
222
- padding: 4px 8px;
223
- border: 1px solid var(--clado-ui-edge);
224
- border-radius: 8px;
269
+ }
270
+ .clado-glass-dropdown-trigger {
271
+ appearance: none;
272
+ width: 100%;
273
+ display: flex;
274
+ align-items: center;
275
+ 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);
225
281
  background: var(--clado-ui-well);
226
282
  color: var(--clado-ui-text);
227
283
  font: inherit;
284
+ font-size: 12.5px;
285
+ font-weight: 550;
286
+ text-align: left;
287
+ 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
+ }
302
+ .clado-glass-dropdown-value {
303
+ display: flex;
304
+ align-items: center;
305
+ gap: 7px;
306
+ min-width: 0;
307
+ flex: 1;
308
+ }
309
+ .clado-glass-dropdown-label {
310
+ overflow: hidden;
311
+ text-overflow: ellipsis;
312
+ white-space: nowrap;
313
+ }
314
+ .clado-glass-dropdown-dot {
315
+ width: 7px;
316
+ height: 7px;
317
+ border-radius: 50%;
318
+ flex: none;
228
319
  }
320
+ .clado-glass-dropdown-chevron {
321
+ width: 14px;
322
+ height: 14px;
323
+ fill: none;
324
+ stroke: var(--clado-ui-subtle);
325
+ stroke-width: 2;
326
+ stroke-linecap: round;
327
+ stroke-linejoin: round;
328
+ flex: none;
329
+ transition: transform 180ms ease;
330
+ }
331
+ .clado-glass-dropdown.open .clado-glass-dropdown-chevron {
332
+ transform: rotate(180deg);
333
+ }
334
+ /* 展开浮层使用清晰高可读磨砂底色(84%/88%),绝不与下方对话文字打架 */
335
+ .clado-glass-dropdown-menu {
336
+ position: absolute;
337
+ left: 0;
338
+ right: 0;
339
+ top: calc(100% + 6px);
340
+ padding: 6px;
341
+ border-radius: 16px;
342
+ background: var(--clado-ui-popover);
343
+ backdrop-filter: blur(24px) saturate(185%);
344
+ -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);
347
+ display: flex;
348
+ flex-direction: column;
349
+ gap: 3px;
350
+ z-index: 60;
351
+ }
352
+ .clado-glass-dropdown-menu[hidden] { display: none; }
353
+ .clado-glass-dropdown-option {
354
+ width: 100%;
355
+ display: flex;
356
+ align-items: center;
357
+ gap: 9px;
358
+ padding: 8px 10px;
359
+ border-radius: 11px;
360
+ text-align: left;
361
+ white-space: normal;
362
+ color: var(--clado-ui-text);
363
+ }
364
+ .clado-glass-dropdown-copy {
365
+ flex: 1;
366
+ min-width: 0;
367
+ display: flex;
368
+ 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
+ }
384
+ .clado-glass-dropdown-check {
385
+ color: var(--clado-ui-brand);
386
+ font-size: 12px;
387
+ font-weight: 700;
388
+ visibility: hidden;
389
+ flex: none;
390
+ }
391
+ .clado-glass-dropdown-option[aria-selected="true"] .clado-glass-dropdown-check {
392
+ visibility: visible;
393
+ }
394
+
229
395
  .clado-agent-log {
230
396
  flex: 1;
231
397
  min-height: 0;
@@ -234,18 +400,24 @@
234
400
  padding: 13px;
235
401
  display: flex;
236
402
  flex-direction: column;
237
- gap: 12px;
403
+ gap: 11px;
238
404
  }
405
+ .clado-agent-log::-webkit-scrollbar { width: 4px; }
406
+ .clado-agent-log::-webkit-scrollbar-thumb { background: rgb(120 130 150 / .24); border-radius: 99px; }
239
407
  .clado-agent-message {
240
408
  width: fit-content;
241
409
  max-width: 100%;
242
- border-radius: 12px;
243
- padding: 8px 11px;
410
+ border-radius: 15px;
411
+ padding: 8px 12px;
244
412
  overflow-wrap: anywhere;
245
413
  }
246
414
  .clado-agent-message.human {
247
415
  align-self: end;
416
+ max-width: 88%;
417
+ border-radius: 15px 15px 5px 15px;
248
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);
249
421
  }
250
422
  .clado-agent-message.assistant {
251
423
  width: 100%;
@@ -258,14 +430,14 @@
258
430
  .clado-agent-message p {
259
431
  margin: 3px 0 0;
260
432
  white-space: pre-wrap;
261
- line-height: 1.55;
433
+ line-height: 1.58;
262
434
  }
263
435
  .clado-agent-thinking {
264
436
  margin: 5px 0 6px;
265
- 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);
437
+ padding: 6px 10px;
438
+ border-radius: 11px;
439
+ border: 1px solid var(--clado-ui-well-border);
440
+ background: var(--clado-ui-well);
269
441
  font-size: 11.5px;
270
442
  }
271
443
  .clado-agent-thinking summary {
@@ -286,9 +458,9 @@
286
458
  .clado-agent-changes {
287
459
  margin-top: 8px;
288
460
  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);
461
+ border-radius: 12px;
462
+ border: 1px solid var(--clado-ui-well-border);
463
+ background: var(--clado-ui-well);
292
464
  }
293
465
  .clado-agent-changes-title {
294
466
  font-size: 11px;
@@ -302,26 +474,27 @@
302
474
  gap: 3px;
303
475
  }
304
476
  .clado-agent-change-item {
305
- border: 0;
477
+ border: 1px solid transparent;
306
478
  background: transparent;
307
479
  color: var(--clado-ui-text);
308
480
  font: inherit;
309
481
  font-size: 11.5px;
310
482
  text-align: left;
311
- padding: 4px 6px;
312
- border-radius: 7px;
483
+ padding: 5px 7px;
484
+ border-radius: 8px;
313
485
  cursor: pointer;
314
486
  display: flex;
315
487
  align-items: center;
316
488
  gap: 7px;
317
- transition: background 140ms ease;
489
+ transition: background 140ms ease, border-color 140ms ease;
318
490
  }
319
491
  .clado-agent-change-item:hover {
320
- background: var(--clado-ui-active);
492
+ background: var(--clado-ui-hover);
493
+ border-color: var(--clado-ui-hover-border);
321
494
  }
322
495
  .clado-agent-change-item .dot {
323
- width: 5.5px;
324
- height: 5.5px;
496
+ width: 6px;
497
+ height: 6px;
325
498
  border-radius: 50%;
326
499
  background: #10b981;
327
500
  flex: none;
@@ -329,16 +502,17 @@
329
502
  .clado-agent-question {
330
503
  margin-top: 8px;
331
504
  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);
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);
335
509
  display: flex;
336
510
  flex-direction: column;
337
511
  gap: 8px;
338
512
  }
339
513
  .clado-agent-question.answered {
340
514
  border-color: var(--clado-ui-edge);
341
- background: color-mix(in srgb, var(--clado-ui-well) 45%, transparent);
515
+ background: var(--clado-ui-track);
342
516
  }
343
517
  .clado-agent-question-badge {
344
518
  display: inline-flex;
@@ -371,24 +545,26 @@
371
545
  .clado-agent-question-options {
372
546
  display: flex;
373
547
  flex-direction: column;
374
- gap: 5px;
548
+ gap: 4px;
375
549
  }
376
550
  .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);
551
+ border: 1px solid transparent;
552
+ border-radius: 11px;
553
+ background: transparent;
380
554
  color: var(--clado-ui-text);
381
- padding: 7px 10px;
555
+ padding: 8px 10px;
382
556
  text-align: left;
383
557
  cursor: pointer;
384
558
  font: inherit;
385
559
  display: flex;
386
560
  flex-direction: column;
387
561
  gap: 2px;
388
- transition: background 140ms ease;
562
+ transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
389
563
  }
390
564
  .clado-agent-option-btn:hover:not(:disabled) {
391
565
  background: var(--clado-ui-active);
566
+ border-color: var(--clado-ui-glass-outline);
567
+ box-shadow: var(--clado-ui-active-shadow);
392
568
  }
393
569
  .clado-agent-option-btn:disabled {
394
570
  opacity: .55;
@@ -409,23 +585,28 @@
409
585
  .clado-agent-question-custom input {
410
586
  flex: 1;
411
587
  min-width: 0;
412
- padding: 5px 8px;
413
- border: 1px solid var(--clado-ui-edge);
414
- border-radius: 8px;
588
+ padding: 6px 9px;
589
+ border: 1px solid var(--clado-ui-well-border);
590
+ border-radius: 9px;
415
591
  background: var(--clado-ui-well);
416
592
  color: var(--clado-ui-text);
417
593
  font: inherit;
418
- font-size: 11.5px;
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);
419
600
  }
420
601
  .clado-agent-option-submit {
421
- min-height: 28px;
422
- padding: 2px 10px;
602
+ min-height: 30px;
603
+ padding: 2px 11px;
423
604
  font-size: 11.5px;
424
605
  }
425
606
  .clado-agent-question-answered {
426
607
  font-size: 11.5px;
427
- color: var(--clado-ui-accent);
428
- font-weight: 550;
608
+ color: var(--clado-ui-brand);
609
+ font-weight: 560;
429
610
  }
430
611
  .clado-agent-status {
431
612
  margin: 0 14px;
@@ -440,34 +621,49 @@
440
621
  display: flex;
441
622
  align-items: end;
442
623
  gap: 7px;
443
- padding: 9px 12px 12px;
624
+ padding: 8px 12px 12px;
444
625
  }
445
626
  .clado-agent-panel textarea {
446
627
  flex: 1;
447
628
  min-width: 0;
448
629
  max-height: 100px;
449
630
  resize: vertical;
450
- padding: 8px;
451
- border: 1px solid var(--clado-ui-edge);
452
- border-radius: 10px;
631
+ padding: 8px 11px;
632
+ border: 1px solid var(--clado-ui-well-border);
633
+ border-radius: 13px;
453
634
  background: var(--clado-ui-well);
454
635
  color: var(--clado-ui-text);
455
636
  font: inherit;
637
+ 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;
640
+ }
641
+ [data-theme="dark"] .clado-agent-panel textarea {
642
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
643
+ }
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);
648
+ }
649
+ .clado-agent-send {
650
+ min-height: 34px;
651
+ padding-inline: 14px;
652
+ border-radius: 11px;
456
653
  }
457
- .clado-agent-panel textarea:focus-visible { outline: 2px solid var(--clado-ui-accent); outline-offset: 1px; }
458
654
  @media (max-width: 680px) {
459
- .clado-agent-launch { height: 42px; padding-inline: 12px; border-radius: 15px; }
655
+ .clado-agent-launch { height: 42px; padding-inline: 13px; border-radius: 15px; }
460
656
  .clado-agent-panel {
461
657
  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);
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;
666
+ border-radius: 26px;
471
667
  z-index: 30;
472
668
  }
473
669
  .clado-agent-panel-body::before {
@@ -480,25 +676,11 @@
480
676
  margin: 8px auto 2px;
481
677
  flex: none;
482
678
  }
483
- /* 移动端 Bottom Sheet 贴底,AI 处理柔光自动移至抽屉顶边中央 ≥80% 处,永不被屏幕底部裁切 */
484
- .clado-agent-panel.clado-ai-working > .clado-ai-aura::before {
485
- bottom: auto;
486
- top: -.5px;
487
- }
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%);
496
- }
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; }
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; }
501
683
  .clado-agent-question-custom input { font-size: 16px; min-height: 40px; }
502
- .clado-agent-send, .clado-agent-stop { min-height: 44px; padding-inline: 16px; }
684
+ .clado-agent-send, .clado-agent-stop { min-height: 42px; padding-inline: 16px; }
503
685
  .clado-agent-option-btn { min-height: 44px; padding: 10px 12px; }
504
686
  }