@zhin.js/adapter-sandbox 1.1.35 → 1.2.0

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.
@@ -0,0 +1,1737 @@
1
+ // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
+ /**
3
+ * Workspace styles moved from the Console (ADR 0063 D13, step 1). Until P2 the Console shipped them in
4
+ * `console-ui/src/agent-playground.css` (all of it serves only this page) and `im-workspace.css`
5
+ * (only the rules for the classes this page renders: `channel-sidebar`, `chat-area`, `rich-text-editor`,
6
+ * `editor-*` and the `im-markdown-*` / `im-inline-code` / `im-message-link` classes of
7
+ * `@zhin.js/client`'s MarkdownContent), and listed the class names in `remote-entry-style-contract.ts` so
8
+ * its Tailwind build kept them. The page now injects them itself, before `sandboxStyles`, so the cascade is
9
+ * the one the Console produced: every selector is scoped to the page with `:where(.zhin-sandbox)`, which
10
+ * adds no specificity, and the rules stay unlayered as they were in the Console.
11
+ * Plain CSS: no Tailwind utilities, `@apply` or theme functions. Values read the Console theme tokens.
12
+ * Step 2 (the page renders `@zhin.js/console-ui`): element rules skip library controls with
13
+ * `:where(:not(.console-control, [data-state]))` (no added specificity), rules for markup the page no longer
14
+ * renders were removed, and `styles.ts` adds the layout for the components.
15
+ */
16
+ export const workspaceStyles = `
17
+ /* ---- from zhinjs/console console-ui/src/agent-playground.css ---- */
18
+ .agent-playground-shell:where(.zhin-sandbox) {
19
+ --playground-accent: var(--primary);
20
+ --playground-accent-foreground: var(--primary-foreground);
21
+ --playground-accent-soft: var(--accent);
22
+ --playground-line: var(--border);
23
+ display: grid;
24
+ grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr);
25
+ width: 100%;
26
+ height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-padding-block) - 1rem);
27
+ min-height: 36rem;
28
+ overflow: hidden;
29
+ border: 1px solid transparent;
30
+ border-radius: var(--console-radius-4);
31
+ background: hsl(var(--card));
32
+ box-shadow: var(--console-elevation-1);
33
+ box-shadow: none;
34
+ isolation: isolate;
35
+ }
36
+
37
+ :where(.zhin-sandbox) .agent-playground-conversation[hidden],
38
+ :where(.zhin-sandbox) .agent-playground-composer[hidden] {
39
+ display: none;
40
+ }
41
+
42
+ :where(.zhin-sandbox) .agent-playground-conversation-details {
43
+ flex: 1;
44
+ min-height: 0;
45
+ overflow: auto;
46
+ padding: var(--console-space-4);
47
+ }
48
+
49
+ :where(.zhin-sandbox) .agent-playground-recovery {
50
+ display: grid;
51
+ flex: none;
52
+ max-height: min(40dvh, 24rem);
53
+ overflow: auto;
54
+ gap: var(--console-space-3);
55
+ margin: var(--console-space-4);
56
+ font-size: var(--console-text-body);
57
+ }
58
+ :where(.zhin-sandbox) .agent-playground-recovery[hidden] { display: none; }
59
+
60
+ :where(.zhin-sandbox) .agent-playground-recovery > section,
61
+ :where(.zhin-sandbox) .agent-playground-recovery > details {
62
+ min-width: 0;
63
+ padding: var(--console-space-4);
64
+ border: 1px solid hsl(var(--border));
65
+ border-radius: var(--console-radius-2);
66
+ background: hsl(var(--background));
67
+ }
68
+
69
+ :where(.zhin-sandbox) .agent-playground-recovery h3 { margin-bottom: var(--console-space-3); font-weight: var(--console-weight-strong); }
70
+ :where(.zhin-sandbox) .agent-playground-recovery summary { display: flex; flex-wrap: wrap; gap: var(--console-space-2) var(--console-space-4); align-items: baseline; cursor: pointer; }
71
+ :where(.zhin-sandbox) .agent-playground-recovery time { margin-left: auto; font-size: var(--console-text-label); color: hsl(var(--muted-foreground)); }
72
+ :where(.zhin-sandbox) .agent-playground-recovery details[open] summary { margin-bottom: var(--console-space-4); }
73
+ :where(.zhin-sandbox) .agent-playground-recovery details > a:where(:not(.console-control, [data-state])) { display: inline-flex; margin: var(--console-space-2) var(--console-space-3) 0 0; color: hsl(var(--primary)); }
74
+ :where(.zhin-sandbox) .agent-playground-recovery > p[role=alert],
75
+ :where(.zhin-sandbox) .agent-playground-history-navigation p[role=alert] { color: hsl(var(--destructive)); overflow-wrap: anywhere; }
76
+ :where(.zhin-sandbox) .agent-playground-recovery > button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-recovery > p > button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-history-navigation button:where(:not(.console-control, [data-state])) { padding: var(--console-space-2) var(--console-space-3); border-radius: var(--console-radius-1); color: hsl(var(--primary)); cursor: pointer; }
77
+ :where(.zhin-sandbox) .agent-playground-history-navigation { padding: var(--console-space-2) var(--console-space-4); font-size: var(--console-text-label); }
78
+ :where(.zhin-sandbox) .agent-playground-history-notice { padding: var(--console-space-2) var(--console-space-4); color: hsl(var(--muted-foreground)); text-align: center; font-size: var(--console-text-label); }
79
+ :where(.zhin-sandbox) .agent-playground-main:has(> .agent-playground-recovery:not([hidden])) .agent-playground-empty { display: none; }
80
+
81
+ .agent-playground-shell.has-inspector:where(.zhin-sandbox) {
82
+ grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr) minmax(16rem, 19rem);
83
+ }
84
+
85
+ :where(.zhin-sandbox) .agent-playground-mobilebar {
86
+ display: none;
87
+ }
88
+
89
+ :where(.zhin-sandbox) .agent-playground-sessions.channel-sidebar {
90
+ position: relative;
91
+ inset: auto;
92
+ z-index: 2;
93
+ width: auto;
94
+ max-width: none;
95
+ height: 100%;
96
+ min-width: 0;
97
+ overflow: hidden;
98
+ transform: none;
99
+ border: 0;
100
+ border-right: 1px solid hsl(var(--playground-line) / 0.7);
101
+ background: hsl(var(--sidebar));
102
+ box-shadow: none;
103
+ }
104
+
105
+ :where(.zhin-sandbox) .agent-playground-brand {
106
+ padding: var(--console-space-5) var(--console-space-4) var(--console-space-4);
107
+ border-bottom: 1px solid hsl(var(--playground-line) / 0.56);
108
+ }
109
+
110
+ :where(.zhin-sandbox) .agent-playground-brand h2,
111
+ :where(.zhin-sandbox) .agent-playground-inspector-head h2,
112
+ :where(.zhin-sandbox) .agent-playground-run-title h2,
113
+ :where(.zhin-sandbox) .agent-playground-empty h2 {
114
+ margin: 0;
115
+ letter-spacing: -0.025em;
116
+ }
117
+
118
+ :where(.zhin-sandbox) .agent-playground-brand h2 {
119
+ font-size: var(--console-text-body);
120
+ font-weight: var(--console-weight-strong);
121
+ }
122
+
123
+ :where(.zhin-sandbox) .agent-playground-brand small {
124
+ display: block;
125
+ margin-top: 0;
126
+ color: hsl(var(--muted-foreground));
127
+ font-size: var(--console-text-label);
128
+ letter-spacing: 0.04em;
129
+ text-transform: none;
130
+ }
131
+
132
+ :where(.zhin-sandbox) .agent-playground-mark,
133
+ :where(.zhin-sandbox) .agent-playground-empty-mark {
134
+ display: inline-flex;
135
+ align-items: center;
136
+ justify-content: center;
137
+ color: hsl(var(--playground-accent));
138
+ background: hsl(var(--playground-accent-soft));
139
+ }
140
+
141
+ :where(.zhin-sandbox) .agent-playground-mark {
142
+ width: 2rem;
143
+ height: 2rem;
144
+ border: 1px solid hsl(var(--playground-accent) / 0.17);
145
+ border-radius: var(--console-radius-2);
146
+ }
147
+
148
+ :where(.zhin-sandbox) .agent-playground-connection {
149
+ display: inline-flex;
150
+ width: 1.75rem;
151
+ height: 1.75rem;
152
+ align-items: center;
153
+ justify-content: center;
154
+ border: 1px solid hsl(var(--border));
155
+ border-radius: var(--console-radius-full);
156
+ background: hsl(var(--background) / 0.72);
157
+ color: hsl(var(--muted-foreground));
158
+ }
159
+
160
+ :where(.zhin-sandbox) .agent-playground-connection.is-online {
161
+ border-color: hsl(var(--playground-accent) / 0.22);
162
+ color: hsl(var(--playground-accent));
163
+ outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.06); outline-offset: calc(var(--console-border-focus) * -1);
164
+ }
165
+
166
+ :where(.zhin-sandbox) .agent-playground-section-label {
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: space-between;
170
+ padding: var(--console-space-4) var(--console-space-3) var(--console-space-2);
171
+ color: hsl(var(--muted-foreground));
172
+ font-size: var(--console-text-label);
173
+ font-weight: var(--console-weight-strong);
174
+ letter-spacing: 0.055em;
175
+ text-transform: none;
176
+ }
177
+
178
+ :where(.zhin-sandbox) .agent-playground-section-label span:last-child {
179
+ font-variant-numeric: tabular-nums;
180
+ }
181
+
182
+ :where(.zhin-sandbox) .agent-playground-session-list {
183
+ min-height: 0;
184
+ flex: 1;
185
+ overflow-y: auto;
186
+ padding: 0 var(--console-space-2) var(--console-space-3);
187
+ scrollbar-width: thin;
188
+ }
189
+
190
+ :where(.zhin-sandbox) .agent-playground-session {
191
+ position: relative;
192
+ display: flex;
193
+ width: 100%;
194
+ align-items: center;
195
+ gap: var(--console-space-3);
196
+ margin: 0 0;
197
+ padding: var(--console-space-2) var(--console-space-3);
198
+ border: 0;
199
+ border-radius: var(--console-radius-2);
200
+ background: transparent;
201
+ color: hsl(var(--foreground));
202
+ text-align: left;
203
+ cursor: pointer;
204
+ transition: background 160ms ease;
205
+ }
206
+
207
+ :where(.zhin-sandbox) .agent-playground-session:hover {
208
+ background: hsl(var(--background) / 0.72);
209
+ }
210
+
211
+ :where(.zhin-sandbox) .agent-playground-session.active {
212
+ background: hsl(var(--background));
213
+ border-inline-start: var(--console-border-focus) solid hsl(var(--playground-accent));
214
+ }
215
+
216
+ :where(.zhin-sandbox) .agent-playground-session-icon,
217
+ :where(.zhin-sandbox) .agent-playground-run-icon,
218
+ :where(.zhin-sandbox) .agent-playground-message-avatar {
219
+ display: inline-flex;
220
+ flex-shrink: 0;
221
+ align-items: center;
222
+ justify-content: center;
223
+ }
224
+
225
+ :where(.zhin-sandbox) .agent-playground-session-icon {
226
+ width: 2rem;
227
+ height: 2rem;
228
+ border-radius: var(--console-radius-2);
229
+ background: hsl(var(--muted));
230
+ color: hsl(var(--muted-foreground));
231
+ }
232
+
233
+ :where(.zhin-sandbox) .agent-playground-session.active .agent-playground-session-icon {
234
+ background: hsl(var(--playground-accent-soft));
235
+ color: hsl(var(--playground-accent));
236
+ }
237
+
238
+ :where(.zhin-sandbox) .agent-playground-new-session {
239
+ padding: var(--console-space-2) var(--console-space-3);
240
+ border-top: 1px solid hsl(var(--playground-line) / 0.56);
241
+ }
242
+
243
+ :where(.zhin-sandbox) .agent-playground-new-form {
244
+ display: grid;
245
+ gap: var(--console-space-2);
246
+ }
247
+
248
+ :where(.zhin-sandbox) .agent-playground-new-form > input:where(:not(.console-control, [data-state])) {
249
+ min-width: 0;
250
+ height: 2.15rem;
251
+ padding: 0 var(--console-space-3);
252
+ border: 1px solid hsl(var(--border));
253
+ border-radius: var(--console-radius-2);
254
+ outline: 0;
255
+ background: hsl(var(--background) / 0.75);
256
+ color: hsl(var(--foreground));
257
+ font-size: var(--console-text-label);
258
+ }
259
+
260
+ :where(.zhin-sandbox) .agent-playground-new-form > input:focus:where(:not(.console-control, [data-state])) {
261
+ border-color: hsl(var(--playground-accent) / 0.65);
262
+ outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.1); outline-offset: calc(var(--console-border-focus) * -1);
263
+ }
264
+
265
+ :where(.zhin-sandbox) .agent-playground-scope-picker {
266
+ display: grid;
267
+ grid-template-columns: repeat(3, 1fr);
268
+ gap: var(--console-space-1);
269
+ padding: var(--console-space-1);
270
+ border-radius: var(--console-radius-2);
271
+ background: hsl(var(--muted));
272
+ }
273
+
274
+ :where(.zhin-sandbox) .agent-playground-scope-picker button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-new-actions button:where(:not(.console-control, [data-state])) {
275
+ border: 0;
276
+ border-radius: var(--console-radius-1);
277
+ background: transparent;
278
+ color: hsl(var(--muted-foreground));
279
+ font-size: var(--console-text-label);
280
+ cursor: pointer;
281
+ }
282
+
283
+ :where(.zhin-sandbox) .agent-playground-scope-picker button:where(:not(.console-control, [data-state])) {
284
+ min-height: 1.65rem;
285
+ }
286
+
287
+ :where(.zhin-sandbox) .agent-playground-scope-picker button.active:where(:not(.console-control, [data-state])) {
288
+ background: hsl(var(--background));
289
+ color: hsl(var(--foreground));
290
+ box-shadow: var(--console-elevation-1);
291
+ }
292
+
293
+ :where(.zhin-sandbox) .agent-playground-new-actions {
294
+ display: flex;
295
+ justify-content: flex-end;
296
+ gap: var(--console-space-1);
297
+ }
298
+
299
+ :where(.zhin-sandbox) .agent-playground-new-actions button:where(:not(.console-control, [data-state])) {
300
+ min-height: 1.8rem;
301
+ padding: 0 var(--console-space-3);
302
+ }
303
+
304
+ :where(.zhin-sandbox) .agent-playground-new-actions button.primary:where(:not(.console-control, [data-state])) {
305
+ background: hsl(var(--playground-accent));
306
+ color: hsl(var(--playground-accent-foreground));
307
+ }
308
+
309
+ :where(.zhin-sandbox) .agent-playground-endpoint {
310
+ display: flex;
311
+ min-width: 0;
312
+ align-items: center;
313
+ justify-content: space-between;
314
+ gap: var(--console-space-2);
315
+ padding: var(--console-space-2) var(--console-space-3) var(--console-space-3);
316
+ border-top: 1px solid hsl(var(--playground-line) / 0.56);
317
+ color: hsl(var(--muted-foreground));
318
+ font-size: var(--console-text-label);
319
+ }
320
+
321
+ :where(.zhin-sandbox) .agent-playground-endpoint strong {
322
+ overflow: hidden;
323
+ color: hsl(var(--foreground) / 0.82);
324
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
325
+ font-size: var(--console-text-label);
326
+ text-overflow: ellipsis;
327
+ white-space: nowrap;
328
+ }
329
+
330
+ :where(.zhin-sandbox) .agent-playground-main.chat-area {
331
+ display: flex;
332
+ flex-direction: column;
333
+ gap: 0;
334
+ height: 100%;
335
+ min-height: 0;
336
+ min-width: 0;
337
+ overflow: hidden;
338
+ background: hsl(var(--background));
339
+ }
340
+
341
+ :where(.zhin-sandbox) .agent-playground-runbar {
342
+ display: flex;
343
+ flex-shrink: 0;
344
+ flex-wrap: wrap;
345
+ min-height: 4.75rem;
346
+ align-items: center;
347
+ justify-content: space-between;
348
+ gap: var(--console-space-4);
349
+ padding: var(--console-space-3) var(--console-space-4);
350
+ border-bottom: 1px solid hsl(var(--playground-line) / 0.7);
351
+ background: hsl(var(--background) / 0.9);
352
+ backdrop-filter: blur(14px);
353
+ }
354
+
355
+ :where(.zhin-sandbox) .agent-playground-run-identity {
356
+ display: flex;
357
+ flex: 1 1 14rem;
358
+ min-width: 0;
359
+ align-items: center;
360
+ gap: var(--console-space-3);
361
+ }
362
+
363
+ :where(.zhin-sandbox) .agent-playground-run-identity > div {
364
+ flex: 1;
365
+ min-width: 0;
366
+ }
367
+
368
+ :where(.zhin-sandbox) .agent-playground-run-icon {
369
+ width: 2.35rem;
370
+ height: 2.35rem;
371
+ border: 1px solid hsl(var(--playground-accent) / 0.18);
372
+ border-radius: var(--console-radius-2);
373
+ background: hsl(var(--playground-accent-soft));
374
+ color: hsl(var(--playground-accent));
375
+ }
376
+
377
+ :where(.zhin-sandbox) .agent-playground-run-title {
378
+ display: flex;
379
+ flex-wrap: wrap;
380
+ min-width: 0;
381
+ align-items: center;
382
+ gap: var(--console-space-2);
383
+ }
384
+
385
+ :where(.zhin-sandbox) .agent-playground-run-title h2 {
386
+ min-width: 0;
387
+ max-width: 100%;
388
+ overflow: hidden;
389
+ font-size: var(--console-text-section);
390
+ font-weight: var(--console-weight-strong);
391
+ text-overflow: ellipsis;
392
+ white-space: nowrap;
393
+ }
394
+
395
+ :where(.zhin-sandbox) .agent-playground-run-title span {
396
+ flex-shrink: 0;
397
+ padding: var(--console-space-1) var(--console-space-2);
398
+ border: 1px solid hsl(var(--border));
399
+ border-radius: var(--console-radius-full);
400
+ color: hsl(var(--muted-foreground));
401
+ font-size: var(--console-text-label);
402
+ font-weight: var(--console-weight-strong);
403
+ }
404
+
405
+ :where(.zhin-sandbox) .agent-playground-run-identity code {
406
+ display: block;
407
+ max-width: 100%;
408
+ margin-top: var(--console-space-1);
409
+ overflow: hidden;
410
+ color: hsl(var(--muted-foreground));
411
+ font-size: var(--console-text-label);
412
+ text-overflow: ellipsis;
413
+ white-space: nowrap;
414
+ }
415
+
416
+ :where(.zhin-sandbox) .agent-playground-run-actions {
417
+ display: flex;
418
+ flex-wrap: wrap;
419
+ min-width: 0;
420
+ max-width: 100%;
421
+ margin-left: auto;
422
+ justify-content: flex-end;
423
+ align-items: center;
424
+ gap: var(--console-space-1);
425
+ }
426
+
427
+ :where(.zhin-sandbox) .agent-playground-run-actions a:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-actions button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inspector-head button:where(:not(.console-control, [data-state])) {
428
+ display: inline-flex;
429
+ min-width: 2rem;
430
+ height: 2rem;
431
+ align-items: center;
432
+ justify-content: center;
433
+ gap: var(--console-space-1);
434
+ padding: 0 var(--console-space-2);
435
+ border: 1px solid hsl(var(--border));
436
+ border-radius: var(--console-radius-2);
437
+ background: hsl(var(--background));
438
+ color: hsl(var(--muted-foreground));
439
+ font-size: var(--console-text-label);
440
+ text-decoration: none;
441
+ cursor: pointer;
442
+ }
443
+
444
+ :where(.zhin-sandbox) .agent-playground-run-actions a:hover:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-actions button:hover:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inspector-head button:hover:where(:not(.console-control, [data-state])) {
445
+ border-color: hsl(var(--playground-accent) / 0.32);
446
+ color: hsl(var(--playground-accent));
447
+ background: hsl(var(--playground-accent) / 0.05);
448
+ }
449
+
450
+ :where(.zhin-sandbox) .agent-playground-run-actions button.active:where(:not(.console-control, [data-state])) {
451
+ border-color: hsl(var(--playground-accent) / 0.32);
452
+ background: hsl(var(--playground-accent-soft));
453
+ color: hsl(var(--playground-accent));
454
+ }
455
+
456
+ :where(.zhin-sandbox) .agent-playground-run-state {
457
+ display: inline-flex;
458
+ align-items: center;
459
+ gap: var(--console-space-1);
460
+ margin-right: var(--console-space-1);
461
+ color: hsl(var(--muted-foreground));
462
+ font-size: var(--console-text-label);
463
+ white-space: nowrap;
464
+ }
465
+
466
+ :where(.zhin-sandbox) .agent-playground-run-state.is-running {
467
+ color: hsl(var(--playground-accent));
468
+ }
469
+
470
+ :where(.zhin-sandbox) .agent-playground-run-state.is-running svg {
471
+ animation: playground-run-breathe 1.5s ease-in-out infinite;
472
+ }
473
+
474
+ :where(.zhin-sandbox) .agent-playground-run-state.has-problem {
475
+ color: hsl(var(--destructive));
476
+ }
477
+
478
+ :where(.zhin-sandbox) .agent-playground-run-settings {
479
+ position: relative;
480
+ z-index: 3;
481
+ display: flex;
482
+ flex-wrap: wrap;
483
+ gap: var(--console-space-3);
484
+ padding: var(--console-space-3) var(--console-space-3);
485
+ border-bottom: 1px solid hsl(var(--playground-line) / 0.7);
486
+ background: hsl(var(--sidebar));
487
+ box-shadow: none;
488
+ }
489
+
490
+ :where(.zhin-sandbox) .agent-playground-run-settings label {
491
+ display: flex;
492
+ flex: 1 1 8rem;
493
+ min-width: 0;
494
+ flex-direction: column;
495
+ gap: var(--console-space-1);
496
+ }
497
+
498
+ :where(.zhin-sandbox) .agent-playground-run-settings .agent-playground-directory-field {
499
+ flex-basis: 14rem;
500
+ }
501
+
502
+ :where(.zhin-sandbox) .agent-playground-run-settings label > span {
503
+ display: flex;
504
+ align-items: center;
505
+ gap: var(--console-space-1);
506
+ color: hsl(var(--muted-foreground));
507
+ font-size: var(--console-text-label);
508
+ font-weight: var(--console-weight-strong);
509
+ }
510
+
511
+ :where(.zhin-sandbox) .agent-playground-run-settings input[type="text"]:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-settings input:not([type]):where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-settings select:where(:not(.console-control, [data-state])) {
512
+ width: 100%;
513
+ min-width: 0;
514
+ height: 2rem;
515
+ padding: 0 var(--console-space-2);
516
+ border: 1px solid hsl(var(--border));
517
+ border-radius: var(--console-radius-2);
518
+ outline: 0;
519
+ background: hsl(var(--background) / 0.84);
520
+ color: hsl(var(--foreground));
521
+ font-size: var(--console-text-label);
522
+ }
523
+
524
+ :where(.zhin-sandbox) .agent-playground-run-settings input:focus:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-settings select:focus:where(:not(.console-control, [data-state])) {
525
+ border-color: hsl(var(--playground-accent) / 0.55);
526
+ outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.08); outline-offset: calc(var(--console-border-focus) * -1);
527
+ }
528
+
529
+ :where(.zhin-sandbox) .agent-playground-run-settings select:disabled:where(:not(.console-control, [data-state])) {
530
+ opacity: 0.58;
531
+ cursor: not-allowed;
532
+ }
533
+
534
+ :where(.zhin-sandbox) .agent-playground-network-toggle {
535
+ position: relative;
536
+ justify-content: flex-end;
537
+ padding-bottom: var(--console-space-1);
538
+ }
539
+
540
+ :where(.zhin-sandbox) .agent-playground-network-toggle input:where(:not(.console-control, [data-state])) {
541
+ position: absolute;
542
+ width: 1px;
543
+ height: 1px;
544
+ opacity: 0;
545
+ }
546
+
547
+ :where(.zhin-sandbox) .agent-playground-network-toggle i {
548
+ position: relative;
549
+ display: block;
550
+ width: 2.2rem;
551
+ height: 1.2rem;
552
+ border: 1px solid hsl(var(--border));
553
+ border-radius: var(--console-radius-full);
554
+ background: hsl(var(--muted));
555
+ cursor: pointer;
556
+ transition: background 160ms ease, border-color 160ms ease;
557
+ }
558
+
559
+ :where(.zhin-sandbox) .agent-playground-network-toggle i::after {
560
+ position: absolute;
561
+ top: 0.16rem;
562
+ left: 0.17rem;
563
+ width: 0.76rem;
564
+ height: 0.76rem;
565
+ border-radius: var(--console-radius-full);
566
+ background: hsl(var(--background));
567
+ box-shadow: var(--console-elevation-1);
568
+ content: "";
569
+ transition: transform 160ms ease;
570
+ }
571
+
572
+ :where(.zhin-sandbox) .agent-playground-network-toggle input:checked:where(:not(.console-control, [data-state])) + i {
573
+ border-color: hsl(var(--playground-accent) / 0.45);
574
+ background: hsl(var(--playground-accent));
575
+ }
576
+
577
+ :where(.zhin-sandbox) .agent-playground-network-toggle input:checked:where(:not(.console-control, [data-state])) + i::after {
578
+ transform: translateX(0.96rem);
579
+ }
580
+
581
+ :where(.zhin-sandbox) .agent-playground-network-toggle input:focus-visible:where(:not(.console-control, [data-state])) + i {
582
+ outline: 2px solid hsl(var(--playground-accent));
583
+ outline-offset: 2px;
584
+ }
585
+
586
+ :where(.zhin-sandbox) .agent-playground-run-settings > p {
587
+ display: flex;
588
+ grid-column: 1 / -1;
589
+ align-items: center;
590
+ gap: var(--console-space-2);
591
+ margin: 0;
592
+ padding-top: 0;
593
+ color: hsl(var(--destructive));
594
+ font-size: var(--console-text-label);
595
+ }
596
+
597
+ :where(.zhin-sandbox) .agent-playground-conversation {
598
+ position: relative;
599
+ min-height: 0;
600
+ flex: 1;
601
+ overflow: hidden;
602
+ background: hsl(var(--background));
603
+ }
604
+
605
+ :where(.zhin-sandbox) .agent-playground-message-scroll {
606
+ height: 100%;
607
+ overflow-y: auto;
608
+ overscroll-behavior: contain;
609
+ scrollbar-width: thin;
610
+ }
611
+
612
+ :where(.zhin-sandbox) .agent-playground-empty {
613
+ display: grid;
614
+ width: min(100% - 3rem, calc(var(--console-content-reading) * 0.7));
615
+ min-height: 100%;
616
+ align-content: center;
617
+ margin: auto;
618
+ padding: var(--console-space-7) 0;
619
+ }
620
+
621
+ :where(.zhin-sandbox) .agent-playground-empty-mark {
622
+ width: 3.6rem;
623
+ height: 3.6rem;
624
+ margin-bottom: var(--console-space-4);
625
+ border: 1px solid hsl(var(--playground-accent) / 0.18);
626
+ border-radius: var(--console-radius-3);
627
+ box-shadow: none;
628
+ }
629
+
630
+ :where(.zhin-sandbox) .agent-playground-empty h2 {
631
+ font-size: var(--console-text-display);
632
+ font-weight: var(--console-weight-strong);
633
+ }
634
+
635
+ :where(.zhin-sandbox) .agent-playground-empty p {
636
+ max-width: 34rem;
637
+ margin: var(--console-space-2) 0 var(--console-space-5);
638
+ color: hsl(var(--muted-foreground));
639
+ font-size: var(--console-text-body);
640
+ line-height: 1.65;
641
+ }
642
+
643
+ :where(.zhin-sandbox) .agent-playground-prompts {
644
+ display: grid;
645
+ grid-template-columns: repeat(3, minmax(0, 1fr));
646
+ gap: var(--console-space-2);
647
+ }
648
+
649
+ :where(.zhin-sandbox) .agent-playground-prompts button:where(:not(.console-control, [data-state])) {
650
+ min-height: 4rem;
651
+ padding: var(--console-space-3);
652
+ border: 1px solid hsl(var(--border));
653
+ border-radius: var(--console-radius-3);
654
+ background: hsl(var(--background) / 0.8);
655
+ color: hsl(var(--foreground) / 0.78);
656
+ font-size: var(--console-text-label);
657
+ line-height: 1.45;
658
+ text-align: left;
659
+ cursor: pointer;
660
+ transition: border-color 160ms ease, background-color 160ms ease;
661
+ }
662
+
663
+ :where(.zhin-sandbox) .agent-playground-prompts button:where(:not(.console-control, [data-state]))::after {
664
+ display: block;
665
+ margin-top: var(--console-space-2);
666
+ color: hsl(var(--playground-accent));
667
+ content: "↗";
668
+ }
669
+
670
+ :where(.zhin-sandbox) .agent-playground-prompts button:hover:where(:not(.console-control, [data-state])) {
671
+ border-color: hsl(var(--playground-accent) / 0.3);
672
+ background: hsl(var(--muted));
673
+ }
674
+
675
+ :where(.zhin-sandbox) .agent-playground-message-list {
676
+ display: flex;
677
+ flex-direction: column;
678
+ gap: var(--console-space-4);
679
+ width: min(100% - 2.25rem, calc(var(--console-content-reading) * 0.875));
680
+ margin: 0 auto;
681
+ padding: var(--console-space-5) 0 var(--console-space-6);
682
+ }
683
+
684
+ :where(.zhin-sandbox) .agent-playground-message {
685
+ display: flex;
686
+ align-items: flex-start;
687
+ gap: var(--console-space-3);
688
+ }
689
+
690
+ :where(.zhin-sandbox) .agent-playground-message.is-user {
691
+ flex-direction: row-reverse;
692
+ }
693
+
694
+ :where(.zhin-sandbox) .agent-playground-message-avatar {
695
+ width: 1.9rem;
696
+ height: 1.9rem;
697
+ margin-top: 0;
698
+ border: 1px solid hsl(var(--border));
699
+ border-radius: var(--console-radius-2);
700
+ background: hsl(var(--muted));
701
+ color: hsl(var(--muted-foreground));
702
+ }
703
+
704
+ :where(.zhin-sandbox) .agent-playground-message.is-agent .agent-playground-message-avatar {
705
+ border-color: hsl(var(--playground-accent) / 0.18);
706
+ border-radius: var(--console-radius-2);
707
+ background: hsl(var(--playground-accent-soft));
708
+ color: hsl(var(--playground-accent));
709
+ }
710
+
711
+ :where(.zhin-sandbox) .agent-playground-message-main {
712
+ min-width: 0;
713
+ max-width: calc(100% - 3rem);
714
+ }
715
+
716
+ :where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-main {
717
+ max-width: min(76%, calc(var(--console-content-reading) * 0.7));
718
+ }
719
+
720
+ :where(.zhin-sandbox) .agent-playground-message-meta {
721
+ display: flex;
722
+ align-items: center;
723
+ gap: var(--console-space-2);
724
+ margin: 0 0 var(--console-space-1);
725
+ color: hsl(var(--muted-foreground));
726
+ font-size: var(--console-text-label);
727
+ }
728
+
729
+ :where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-meta {
730
+ justify-content: flex-end;
731
+ }
732
+
733
+ :where(.zhin-sandbox) .agent-playground-message-meta strong {
734
+ color: hsl(var(--foreground) / 0.82);
735
+ font-weight: var(--console-weight-strong);
736
+ }
737
+
738
+ :where(.zhin-sandbox) .agent-playground-message-content {
739
+ overflow: hidden;
740
+ padding: var(--console-space-3) var(--console-space-4);
741
+ border: 1px solid hsl(var(--border) / 0.78);
742
+ border-radius: var(--console-radius-3);
743
+ background: hsl(var(--background) / 0.94);
744
+ box-shadow: none;
745
+ }
746
+
747
+ :where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-content {
748
+ border-color: hsl(var(--playground-accent) / 0.2);
749
+ border-radius: var(--console-radius-3);
750
+ background: hsl(var(--playground-accent-soft));
751
+ box-shadow: none;
752
+ }
753
+
754
+ :where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-avatar {
755
+ border-color: hsl(var(--warning) / 0.32);
756
+ background: hsl(var(--warning) / 0.1);
757
+ color: hsl(var(--warning));
758
+ }
759
+
760
+ :where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-content {
761
+ border-color: hsl(var(--warning) / 0.32);
762
+ background: hsl(var(--warning) / 0.06);
763
+ box-shadow: var(--console-elevation-2);
764
+ }
765
+
766
+ .dark :where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-content {
767
+ background: hsl(var(--warning) / 0.12);
768
+ }
769
+
770
+ :where(.zhin-sandbox) .agent-playground-message.is-approval .agent-playground-message-meta span:last-child {
771
+ padding: 0 var(--console-space-1);
772
+ border: 1px solid hsl(var(--warning) / 0.26);
773
+ border-radius: var(--console-radius-full);
774
+ color: hsl(var(--warning));
775
+ font-size: var(--console-text-label);
776
+ font-weight: var(--console-weight-strong);
777
+ letter-spacing: 0.055em;
778
+ text-transform: none;
779
+ }
780
+
781
+ :where(.zhin-sandbox) .agent-playground-approval-actions {
782
+ display: grid;
783
+ gap: var(--console-space-2);
784
+ margin-top: var(--console-space-3);
785
+ padding-top: var(--console-space-3);
786
+ border-top: 1px solid hsl(var(--warning) / 0.18);
787
+ }
788
+
789
+ :where(.zhin-sandbox) .agent-playground-approval-actions > div {
790
+ display: flex;
791
+ flex-wrap: wrap;
792
+ gap: var(--console-space-2);
793
+ }
794
+
795
+ :where(.zhin-sandbox) .agent-playground-approval-actions button:where(:not(.console-control, [data-state])) {
796
+ min-height: 1.95rem;
797
+ padding: 0 var(--console-space-3);
798
+ border: 1px solid hsl(var(--border));
799
+ border-radius: var(--console-radius-1);
800
+ background: hsl(var(--background) / 0.78);
801
+ color: hsl(var(--foreground) / 0.8);
802
+ font-size: var(--console-text-label);
803
+ font-weight: var(--console-weight-strong);
804
+ cursor: pointer;
805
+ transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
806
+ }
807
+
808
+ :where(.zhin-sandbox) .agent-playground-approval-actions button:hover:not(:disabled):where(:not(.console-control, [data-state])) {
809
+ border-color: hsl(var(--playground-accent) / 0.38);
810
+ color: hsl(var(--playground-accent));
811
+ transform: translateY(-1px);
812
+ }
813
+
814
+ :where(.zhin-sandbox) .agent-playground-approval-actions button.is-primary:where(:not(.console-control, [data-state])) {
815
+ border-color: hsl(var(--playground-accent) / 0.36);
816
+ background: hsl(var(--playground-accent));
817
+ color: hsl(var(--playground-accent-foreground));
818
+ }
819
+
820
+ :where(.zhin-sandbox) .agent-playground-approval-actions button.is-danger:where(:not(.console-control, [data-state])) {
821
+ border-color: hsl(var(--destructive) / 0.25);
822
+ color: hsl(var(--destructive));
823
+ }
824
+
825
+ :where(.zhin-sandbox) .agent-playground-approval-actions button:disabled:where(:not(.console-control, [data-state])) {
826
+ cursor: not-allowed;
827
+ opacity: 0.48;
828
+ }
829
+
830
+ :where(.zhin-sandbox) .agent-playground-approval-actions small {
831
+ display: inline-flex;
832
+ align-items: center;
833
+ gap: var(--console-space-1);
834
+ color: hsl(var(--playground-accent));
835
+ font-size: var(--console-text-label);
836
+ }
837
+
838
+ :where(.zhin-sandbox) .agent-playground-message-content > :first-child,
839
+ :where(.zhin-sandbox) .agent-playground-message-content .zhin-markdown > :first-child { margin-top: 0; }
840
+ :where(.zhin-sandbox) .agent-playground-message-content > :last-child,
841
+ :where(.zhin-sandbox) .agent-playground-message-content .zhin-markdown > :last-child { margin-bottom: 0; }
842
+
843
+ :where(.zhin-sandbox) .agent-playground-message-content .zhin-code-block {
844
+ max-width: 100%;
845
+ margin-right: calc(var(--console-space-1) * -1);
846
+ margin-left: calc(var(--console-space-1) * -1);
847
+ }
848
+
849
+ :where(.zhin-sandbox) .agent-playground-inline-run {
850
+ position: relative;
851
+ overflow: hidden;
852
+ margin-left: var(--console-space-7);
853
+ border: 1px solid hsl(var(--playground-line) / 0.82);
854
+ border-radius: var(--console-radius-3);
855
+ background: hsl(var(--background) / 0.86);
856
+ box-shadow: none;
857
+ }
858
+
859
+ .dark :where(.zhin-sandbox) .agent-playground-inline-run {
860
+ background: hsl(var(--card) / 0.72);
861
+ }
862
+
863
+ :where(.zhin-sandbox) .agent-playground-inline-run-rail {
864
+ position: absolute;
865
+ inset: 0 auto 0 0;
866
+ width: 3px;
867
+ background: hsl(var(--playground-accent));
868
+ }
869
+
870
+ :where(.zhin-sandbox) .agent-playground-inline-run.is-running .agent-playground-inline-run-rail { background: hsl(var(--info)); }
871
+ :where(.zhin-sandbox) .agent-playground-inline-run.is-failed .agent-playground-inline-run-rail { background: hsl(var(--destructive)); }
872
+ :where(.zhin-sandbox) .agent-playground-inline-run.is-cancelled .agent-playground-inline-run-rail { background: hsl(var(--warning)); }
873
+
874
+ :where(.zhin-sandbox) .agent-playground-inline-run-head {
875
+ display: grid;
876
+ grid-template-columns: auto minmax(0, 1fr) auto;
877
+ align-items: start;
878
+ gap: var(--console-space-3);
879
+ padding: var(--console-space-4) var(--console-space-4) var(--console-space-3) var(--console-space-4);
880
+ }
881
+
882
+ :where(.zhin-sandbox) .agent-playground-inline-run-icon {
883
+ display: inline-flex;
884
+ align-items: center;
885
+ justify-content: center;
886
+ width: 2.2rem;
887
+ height: 2.2rem;
888
+ border: 1px solid hsl(var(--playground-accent) / 0.18);
889
+ border-radius: var(--console-radius-2);
890
+ background: hsl(var(--playground-accent-soft));
891
+ color: hsl(var(--playground-accent));
892
+ }
893
+
894
+ :where(.zhin-sandbox) .agent-playground-inline-run.is-running .agent-playground-inline-run-icon {
895
+ border-color: hsl(var(--info) / 0.24);
896
+ background: hsl(var(--info) / 0.09);
897
+ color: hsl(var(--info));
898
+ }
899
+
900
+ :where(.zhin-sandbox) .agent-playground-inline-run-copy { min-width: 0; }
901
+ :where(.zhin-sandbox) .agent-playground-inline-run-copy > span {
902
+ display: block;
903
+ margin-bottom: var(--console-space-1);
904
+ color: hsl(var(--muted-foreground) / 0.76);
905
+ font-size: var(--console-text-label);
906
+ font-weight: var(--console-weight-strong);
907
+ letter-spacing: 0.11em;
908
+ text-transform: none;
909
+ }
910
+
911
+ :where(.zhin-sandbox) .agent-playground-inline-run-copy h3 {
912
+ margin: 0;
913
+ color: hsl(var(--foreground) / 0.91);
914
+ font-size: var(--console-text-body);
915
+ font-weight: var(--console-weight-strong);
916
+ letter-spacing: -0.012em;
917
+ }
918
+
919
+ :where(.zhin-sandbox) .agent-playground-inline-run-copy p {
920
+ display: -webkit-box;
921
+ overflow: hidden;
922
+ margin: var(--console-space-1) 0 0;
923
+ color: hsl(var(--muted-foreground));
924
+ font-size: var(--console-text-label);
925
+ line-height: 1.45;
926
+ -webkit-box-orient: vertical;
927
+ -webkit-line-clamp: 2;
928
+ }
929
+
930
+ :where(.zhin-sandbox) .agent-playground-inline-run-actions {
931
+ display: flex;
932
+ flex-wrap: wrap;
933
+ justify-content: flex-end;
934
+ gap: var(--console-space-1);
935
+ }
936
+
937
+ :where(.zhin-sandbox) .agent-playground-inline-run-actions button:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inline-run footer button:where(:not(.console-control, [data-state])) {
938
+ display: inline-flex;
939
+ align-items: center;
940
+ justify-content: center;
941
+ gap: var(--console-space-1);
942
+ min-height: 1.82rem;
943
+ padding: 0 var(--console-space-2);
944
+ border: 1px solid hsl(var(--border) / 0.82);
945
+ border-radius: var(--console-radius-1);
946
+ background: hsl(var(--background) / 0.72);
947
+ color: hsl(var(--foreground) / 0.73);
948
+ font-size: var(--console-text-label);
949
+ font-weight: var(--console-weight-strong);
950
+ cursor: pointer;
951
+ transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
952
+ }
953
+
954
+ :where(.zhin-sandbox) .agent-playground-inline-run-actions button:hover:not(:disabled):where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-inline-run footer button:hover:where(:not(.console-control, [data-state])) {
955
+ border-color: hsl(var(--playground-accent) / 0.36);
956
+ color: hsl(var(--playground-accent));
957
+ transform: translateY(-1px);
958
+ }
959
+
960
+ :where(.zhin-sandbox) .agent-playground-inline-run-actions button.is-stop:where(:not(.console-control, [data-state])) {
961
+ border-color: hsl(var(--destructive) / 0.23);
962
+ color: hsl(var(--destructive));
963
+ }
964
+
965
+ :where(.zhin-sandbox) .agent-playground-inline-run-actions button:disabled:where(:not(.console-control, [data-state])) { cursor: wait; opacity: 0.55; }
966
+
967
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics {
968
+ display: grid;
969
+ grid-template-columns: repeat(5, minmax(0, 1fr));
970
+ margin: 0;
971
+ border-top: 1px solid hsl(var(--playground-line) / 0.62);
972
+ border-bottom: 1px solid hsl(var(--playground-line) / 0.62);
973
+ background: hsl(var(--muted) / 0.22);
974
+ }
975
+
976
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics > div {
977
+ display: flex;
978
+ min-width: 0;
979
+ align-items: baseline;
980
+ justify-content: center;
981
+ gap: var(--console-space-1);
982
+ padding: var(--console-space-2) var(--console-space-1);
983
+ border-right: 1px solid hsl(var(--playground-line) / 0.48);
984
+ }
985
+
986
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:last-child { border-right: 0; }
987
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics dt { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
988
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics dd { overflow: hidden; margin: 0; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
989
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics .has-problem dd { color: hsl(var(--destructive)); }
990
+
991
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps {
992
+ display: grid;
993
+ gap: 0;
994
+ margin: 0;
995
+ padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4);
996
+ list-style: none;
997
+ }
998
+
999
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li {
1000
+ position: relative;
1001
+ display: grid;
1002
+ grid-template-columns: 0.75rem minmax(0, 1fr) auto;
1003
+ align-items: center;
1004
+ gap: var(--console-space-2);
1005
+ min-height: 2.05rem;
1006
+ }
1007
+
1008
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li:not(:last-child)::after {
1009
+ position: absolute;
1010
+ z-index: 0;
1011
+ top: 1.18rem;
1012
+ bottom: -0.86rem;
1013
+ left: 0.28rem;
1014
+ width: 1px;
1015
+ background: hsl(var(--playground-line));
1016
+ content: "";
1017
+ }
1018
+
1019
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps i {
1020
+ position: relative;
1021
+ z-index: 1;
1022
+ width: 0.58rem;
1023
+ height: 0.58rem;
1024
+ border: 2px solid hsl(var(--background));
1025
+ border-radius: var(--console-radius-full);
1026
+ background: hsl(var(--playground-accent));
1027
+ outline: var(--console-border-hairline) solid hsl(var(--playground-accent) / 0.28); outline-offset: calc(var(--console-border-hairline) * -1);
1028
+ }
1029
+
1030
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-running i {
1031
+ background: hsl(var(--info));
1032
+ outline: var(--console-border-hairline) solid hsl(var(--info) / 0.34); outline-offset: calc(var(--console-border-hairline) * -1);
1033
+ animation: playground-run-breathe 1.4s ease-in-out infinite;
1034
+ }
1035
+
1036
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-failed i,
1037
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-denied i { background: hsl(var(--destructive)); outline: var(--console-border-hairline) solid hsl(var(--destructive) / 0.3); outline-offset: calc(var(--console-border-hairline) * -1); }
1038
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-cancelled i { background: hsl(var(--warning)); outline: var(--console-border-hairline) solid hsl(var(--warning) / 0.3); outline-offset: calc(var(--console-border-hairline) * -1); }
1039
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li > div { display: flex; min-width: 0; flex-direction: column; }
1040
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps strong { overflow: hidden; color: hsl(var(--foreground) / 0.82); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
1041
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps small { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; }
1042
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li > span { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
1043
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-failed > span,
1044
+ :where(.zhin-sandbox) .agent-playground-inline-run-steps li.is-denied > span { color: hsl(var(--destructive)); }
1045
+
1046
+ :where(.zhin-sandbox) .agent-playground-inline-run-empty {
1047
+ padding: var(--console-space-3) var(--console-space-4);
1048
+ color: hsl(var(--muted-foreground));
1049
+ font-size: var(--console-text-label);
1050
+ text-align: center;
1051
+ }
1052
+
1053
+ :where(.zhin-sandbox) .agent-playground-inline-run footer {
1054
+ display: flex;
1055
+ align-items: center;
1056
+ justify-content: space-between;
1057
+ gap: var(--console-space-2);
1058
+ padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4);
1059
+ }
1060
+
1061
+ :where(.zhin-sandbox) .agent-playground-inline-run footer button:where(:not(.console-control, [data-state])) {
1062
+ min-height: auto;
1063
+ padding: var(--console-space-1) 0;
1064
+ border: 0;
1065
+ background: transparent;
1066
+ color: hsl(var(--muted-foreground));
1067
+ }
1068
+
1069
+ :where(.zhin-sandbox) .agent-playground-inline-run footer button:first-child:where(:not(.console-control, [data-state])) svg { transition: transform 150ms ease; }
1070
+ :where(.zhin-sandbox) .agent-playground-inline-run footer button:first-child[aria-expanded="true"]:where(:not(.console-control, [data-state])) svg { transform: rotate(180deg); }
1071
+
1072
+ :where(.zhin-sandbox) .agent-playground-composer {
1073
+ position: relative;
1074
+ z-index: 2;
1075
+ display: grid;
1076
+ gap: var(--console-space-2);
1077
+ padding: var(--console-space-3) var(--console-space-3) var(--console-space-3);
1078
+ border-top: 1px solid hsl(var(--playground-line) / 0.74);
1079
+ background: hsl(var(--background) / 0.94);
1080
+ box-shadow: none;
1081
+ backdrop-filter: blur(16px);
1082
+ }
1083
+
1084
+ :where(.zhin-sandbox) .agent-playground-composer .rich-text-editor,
1085
+ :where(.zhin-sandbox) .agent-playground-composer .sandbox-markdown-preview {
1086
+ min-height: 3rem !important;
1087
+ border-color: hsl(var(--border) / 0.86) !important;
1088
+ border-radius: var(--console-radius-3) !important;
1089
+ background-color: hsl(var(--muted) / 0.24);
1090
+ }
1091
+
1092
+ :where(.zhin-sandbox) .agent-playground-composer .rich-text-editor {
1093
+ padding: var(--console-space-3) var(--console-space-3) !important;
1094
+ }
1095
+
1096
+ :where(.zhin-sandbox) .agent-playground-composer .rich-text-editor:focus {
1097
+ border-color: hsl(var(--playground-accent) / 0.52) !important;
1098
+ outline: var(--console-border-focus) solid hsl(var(--playground-accent) / 0.08); outline-offset: calc(var(--console-border-focus) * -1);
1099
+ }
1100
+
1101
+ :where(.zhin-sandbox) .agent-playground-composer > div:last-child {
1102
+ opacity: 0.75;
1103
+ }
1104
+
1105
+ :where(.zhin-sandbox) .agent-playground-inspector {
1106
+ display: none;
1107
+ min-width: 0;
1108
+ height: 100%;
1109
+ flex-direction: column;
1110
+ overflow-y: auto;
1111
+ border-left: 1px solid hsl(var(--playground-line) / 0.7);
1112
+ background:
1113
+ hsl(var(--muted) / 0.25);
1114
+ scrollbar-width: thin;
1115
+ }
1116
+
1117
+ :where(.zhin-sandbox) .agent-playground-inspector.show {
1118
+ display: flex;
1119
+ }
1120
+
1121
+ :where(.zhin-sandbox) .agent-playground-inspector-head {
1122
+ display: flex;
1123
+ min-height: 4.75rem;
1124
+ flex-shrink: 0;
1125
+ align-items: center;
1126
+ justify-content: space-between;
1127
+ gap: var(--console-space-2);
1128
+ padding: var(--console-space-3) var(--console-space-3);
1129
+ border-bottom: 1px solid hsl(var(--playground-line) / 0.65);
1130
+ }
1131
+
1132
+ :where(.zhin-sandbox) .agent-playground-inspector-head > div:last-child {
1133
+ display: flex;
1134
+ gap: var(--console-space-1);
1135
+ }
1136
+
1137
+ :where(.zhin-sandbox) .agent-playground-inspector-head > div:first-child > span {
1138
+ color: hsl(var(--playground-accent));
1139
+ font-size: var(--console-text-label);
1140
+ font-weight: var(--console-weight-strong);
1141
+ letter-spacing: 0.08em;
1142
+ text-transform: none;
1143
+ }
1144
+
1145
+ :where(.zhin-sandbox) .agent-playground-inspector-head h2 {
1146
+ margin-top: 0;
1147
+ font-size: var(--console-text-body);
1148
+ font-weight: var(--console-weight-strong);
1149
+ }
1150
+
1151
+ :where(.zhin-sandbox) .agent-playground-inspector-head button:where(:not(.console-control, [data-state])) {
1152
+ padding: 0;
1153
+ }
1154
+
1155
+ :where(.zhin-sandbox) .agent-playground-inspector-view {
1156
+ display: flex;
1157
+ min-height: 0;
1158
+ flex: 1;
1159
+ flex-direction: column;
1160
+ }
1161
+
1162
+ :where(.zhin-sandbox) .agent-playground-inspector-view.hidden {
1163
+ display: none;
1164
+ }
1165
+
1166
+ :where(.zhin-sandbox) .agent-playground-inspector-section {
1167
+ padding: var(--console-space-3);
1168
+ border-bottom: 1px solid hsl(var(--playground-line) / 0.58);
1169
+ }
1170
+
1171
+ :where(.zhin-sandbox) .agent-playground-inspector-title {
1172
+ display: flex;
1173
+ align-items: center;
1174
+ justify-content: space-between;
1175
+ margin-bottom: var(--console-space-2);
1176
+ color: hsl(var(--foreground) / 0.82);
1177
+ font-size: var(--console-text-label);
1178
+ font-weight: var(--console-weight-strong);
1179
+ }
1180
+
1181
+ :where(.zhin-sandbox) .agent-playground-inspector-title small {
1182
+ color: hsl(var(--muted-foreground));
1183
+ font-size: var(--console-text-label);
1184
+ font-weight: var(--console-weight-medium);
1185
+ letter-spacing: 0.05em;
1186
+ text-transform: none;
1187
+ }
1188
+
1189
+ :where(.zhin-sandbox) .agent-playground-metrics {
1190
+ display: grid;
1191
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1192
+ border: 1px solid hsl(var(--border) / 0.72);
1193
+ border-radius: var(--console-radius-3);
1194
+ overflow: hidden;
1195
+ background: hsl(var(--background) / 0.55);
1196
+ }
1197
+
1198
+ :where(.zhin-sandbox) .agent-playground-metrics > div {
1199
+ display: grid;
1200
+ grid-template-columns: auto 1fr;
1201
+ gap: 0 var(--console-space-2);
1202
+ min-width: 0;
1203
+ padding: var(--console-space-2);
1204
+ }
1205
+
1206
+ :where(.zhin-sandbox) .agent-playground-metrics > div:nth-child(odd) { border-right: 1px solid hsl(var(--border) / 0.62); }
1207
+ :where(.zhin-sandbox) .agent-playground-metrics > div:nth-child(-n+2) { border-bottom: 1px solid hsl(var(--border) / 0.62); }
1208
+ :where(.zhin-sandbox) .agent-playground-metrics svg { grid-row: span 2; width: 0.78rem; color: hsl(var(--playground-accent)); }
1209
+ :where(.zhin-sandbox) .agent-playground-metrics strong { overflow: hidden; font-size: var(--console-text-body); font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
1210
+ :where(.zhin-sandbox) .agent-playground-metrics span { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
1211
+ :where(.zhin-sandbox) .agent-playground-metrics .has-problem svg,
1212
+ :where(.zhin-sandbox) .agent-playground-metrics .has-problem strong { color: hsl(var(--destructive)); }
1213
+
1214
+ :where(.zhin-sandbox) .agent-playground-context-list {
1215
+ display: grid;
1216
+ gap: 0;
1217
+ margin: 0;
1218
+ }
1219
+
1220
+ :where(.zhin-sandbox) .agent-playground-context-list > div {
1221
+ display: flex;
1222
+ min-width: 0;
1223
+ align-items: baseline;
1224
+ justify-content: space-between;
1225
+ gap: var(--console-space-3);
1226
+ padding: var(--console-space-1) 0;
1227
+ border-bottom: 1px dashed hsl(var(--border) / 0.6);
1228
+ font-size: var(--console-text-label);
1229
+ }
1230
+
1231
+ :where(.zhin-sandbox) .agent-playground-context-list > div:last-child { border-bottom: 0; }
1232
+ :where(.zhin-sandbox) .agent-playground-context-list dt { color: hsl(var(--muted-foreground)); }
1233
+ :where(.zhin-sandbox) .agent-playground-context-list dd {
1234
+ min-width: 0;
1235
+ margin: 0;
1236
+ overflow: hidden;
1237
+ color: hsl(var(--foreground) / 0.82);
1238
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
1239
+ text-align: right;
1240
+ text-overflow: ellipsis;
1241
+ white-space: nowrap;
1242
+ }
1243
+ :where(.zhin-sandbox) .agent-playground-context-list dd.is-online { color: hsl(var(--playground-accent)); }
1244
+
1245
+ :where(.zhin-sandbox) .agent-playground-trace-section {
1246
+ flex: 1;
1247
+ }
1248
+
1249
+ :where(.zhin-sandbox) .agent-playground-trace-list {
1250
+ position: relative;
1251
+ display: grid;
1252
+ gap: 0;
1253
+ }
1254
+
1255
+ :where(.zhin-sandbox) .agent-playground-trace-list::before {
1256
+ position: absolute;
1257
+ top: 0.55rem;
1258
+ bottom: 0.55rem;
1259
+ left: 0.26rem;
1260
+ width: 1px;
1261
+ background: hsl(var(--border));
1262
+ content: "";
1263
+ }
1264
+
1265
+ :where(.zhin-sandbox) .agent-playground-trace-item {
1266
+ position: relative;
1267
+ display: grid;
1268
+ grid-template-columns: 0.55rem minmax(0, 1fr) auto;
1269
+ gap: var(--console-space-2);
1270
+ align-items: start;
1271
+ padding: var(--console-space-2) 0;
1272
+ }
1273
+
1274
+ :where(.zhin-sandbox) .agent-playground-trace-dot {
1275
+ position: relative;
1276
+ z-index: 1;
1277
+ width: 0.calc(var(--console-content-reading) * 0.875);
1278
+ height: 0.calc(var(--console-content-reading) * 0.875);
1279
+ margin-top: var(--console-space-1);
1280
+ border: 2px solid hsl(var(--muted));
1281
+ border-radius: var(--console-radius-full);
1282
+ background: hsl(var(--muted-foreground));
1283
+ outline: var(--console-border-hairline) solid hsl(var(--border)); outline-offset: calc(var(--console-border-hairline) * -1);
1284
+ }
1285
+
1286
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-success .agent-playground-trace-dot { background: hsl(var(--playground-accent)); }
1287
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-running .agent-playground-trace-dot { background: hsl(var(--info)); }
1288
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-thinking .agent-playground-trace-dot { background: hsl(var(--info)); }
1289
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-tool .agent-playground-trace-dot { background: hsl(var(--primary)); }
1290
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-capability .agent-playground-trace-dot { background: hsl(var(--warning)); }
1291
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-usage .agent-playground-trace-dot { background: hsl(var(--info)); }
1292
+ :where(.zhin-sandbox) .agent-playground-trace-item.is-problem .agent-playground-trace-dot { background: hsl(var(--destructive)); }
1293
+ :where(.zhin-sandbox) .agent-playground-trace-item > div { display: flex; min-width: 0; flex-direction: column; }
1294
+ :where(.zhin-sandbox) .agent-playground-trace-item strong { overflow: hidden; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
1295
+ :where(.zhin-sandbox) .agent-playground-trace-item small { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; }
1296
+ :where(.zhin-sandbox) .agent-playground-trace-item time { margin-top: 0; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
1297
+
1298
+ :where(.zhin-sandbox) .agent-playground-trace-loading,
1299
+ :where(.zhin-sandbox) .agent-playground-trace-empty,
1300
+ :where(.zhin-sandbox) .agent-playground-trace-notice {
1301
+ display: flex;
1302
+ min-height: 5rem;
1303
+ align-items: center;
1304
+ justify-content: center;
1305
+ gap: var(--console-space-2);
1306
+ border: 1px dashed hsl(var(--border));
1307
+ border-radius: var(--console-radius-2);
1308
+ color: hsl(var(--muted-foreground));
1309
+ font-size: var(--console-text-label);
1310
+ text-align: center;
1311
+ }
1312
+
1313
+ :where(.zhin-sandbox) .agent-playground-trace-loading i {
1314
+ width: 0.35rem;
1315
+ height: 0.35rem;
1316
+ border-radius: var(--console-radius-full);
1317
+ background: hsl(var(--playground-accent));
1318
+ animation: playground-trace-pulse 900ms ease-in-out infinite alternate;
1319
+ }
1320
+
1321
+ :where(.zhin-sandbox) .agent-playground-trace-loading i:nth-child(2) { animation-delay: 150ms; }
1322
+ :where(.zhin-sandbox) .agent-playground-trace-loading i:nth-child(3) { animation-delay: 300ms; }
1323
+ :where(.zhin-sandbox) .agent-playground-trace-notice { padding: var(--console-space-3); border-color: hsl(var(--warning) / 0.42); color: hsl(var(--warning)); }
1324
+
1325
+ :where(.zhin-sandbox) .agent-playground-task-section,
1326
+ :where(.zhin-sandbox) .agent-playground-artifact-section {
1327
+ flex: 0 0 auto;
1328
+ }
1329
+
1330
+ :where(.zhin-sandbox) .agent-playground-artifact-section {
1331
+ flex: 1 0 auto;
1332
+ }
1333
+
1334
+ :where(.zhin-sandbox) .agent-playground-task-list,
1335
+ :where(.zhin-sandbox) .agent-playground-artifact-list {
1336
+ display: grid;
1337
+ gap: var(--console-space-2);
1338
+ }
1339
+
1340
+ :where(.zhin-sandbox) .agent-playground-task-list article {
1341
+ display: grid;
1342
+ grid-template-columns: 0.6rem minmax(0, 1fr);
1343
+ gap: 0 var(--console-space-2);
1344
+ padding: var(--console-space-2) var(--console-space-3);
1345
+ border: 1px solid hsl(var(--border) / 0.72);
1346
+ border-radius: var(--console-radius-2);
1347
+ background: hsl(var(--background) / 0.58);
1348
+ }
1349
+
1350
+ :where(.zhin-sandbox) .agent-playground-task-list article > i {
1351
+ width: 0.5rem;
1352
+ height: 0.5rem;
1353
+ margin-top: var(--console-space-1);
1354
+ border: 2px solid hsl(var(--muted));
1355
+ border-radius: var(--console-radius-full);
1356
+ background: hsl(var(--muted-foreground));
1357
+ outline: var(--console-border-hairline) solid hsl(var(--border)); outline-offset: calc(var(--console-border-hairline) * -1);
1358
+ }
1359
+
1360
+ :where(.zhin-sandbox) .agent-playground-task-list article.is-running > i { background: hsl(var(--info)); }
1361
+ :where(.zhin-sandbox) .agent-playground-task-list article.is-completed > i { background: hsl(var(--playground-accent)); }
1362
+ :where(.zhin-sandbox) .agent-playground-task-list article.is-failed > i { background: hsl(var(--destructive)); }
1363
+ :where(.zhin-sandbox) .agent-playground-task-list article.is-cancelled > i { background: hsl(var(--warning)); }
1364
+ :where(.zhin-sandbox) .agent-playground-task-list article > div { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: var(--console-space-2); }
1365
+ :where(.zhin-sandbox) .agent-playground-task-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
1366
+ :where(.zhin-sandbox) .agent-playground-task-list code { overflow: hidden; color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); text-overflow: ellipsis; }
1367
+
1368
+ :where(.zhin-sandbox) .agent-playground-task-list dl {
1369
+ display: grid;
1370
+ grid-column: 2;
1371
+ grid-template-columns: repeat(3, minmax(0, 1fr));
1372
+ margin: var(--console-space-2) 0 0;
1373
+ padding-top: var(--console-space-2);
1374
+ border-top: 1px dashed hsl(var(--border) / 0.72);
1375
+ }
1376
+
1377
+ :where(.zhin-sandbox) .agent-playground-task-list dl > div { display: flex; flex-direction: column; gap: 0; }
1378
+ :where(.zhin-sandbox) .agent-playground-task-list dt { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
1379
+ :where(.zhin-sandbox) .agent-playground-task-list dd { margin: 0; font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
1380
+
1381
+ :where(.zhin-sandbox) .agent-playground-artifact-list article {
1382
+ overflow: hidden;
1383
+ border: 1px solid hsl(var(--border) / 0.72);
1384
+ border-radius: var(--console-radius-2);
1385
+ background: hsl(var(--background) / 0.6);
1386
+ }
1387
+
1388
+ :where(.zhin-sandbox) .agent-playground-artifact-list article.is-expanded {
1389
+ border-color: hsl(var(--playground-accent) / 0.28);
1390
+ box-shadow: var(--console-elevation-2);
1391
+ }
1392
+
1393
+ :where(.zhin-sandbox) .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) {
1394
+ display: grid;
1395
+ width: 100%;
1396
+ grid-template-columns: auto minmax(0, 1fr) auto auto;
1397
+ gap: var(--console-space-2);
1398
+ align-items: center;
1399
+ padding: var(--console-space-2) var(--console-space-2);
1400
+ border: 0;
1401
+ background: transparent;
1402
+ color: inherit;
1403
+ text-align: left;
1404
+ cursor: pointer;
1405
+ }
1406
+
1407
+ :where(.zhin-sandbox) .agent-playground-artifact-icon {
1408
+ display: inline-flex;
1409
+ width: 1.65rem;
1410
+ height: 1.65rem;
1411
+ align-items: center;
1412
+ justify-content: center;
1413
+ border: 1px solid hsl(var(--playground-accent) / 0.18);
1414
+ border-radius: var(--console-radius-1);
1415
+ background: hsl(var(--playground-accent-soft));
1416
+ color: hsl(var(--playground-accent));
1417
+ }
1418
+
1419
+ :where(.zhin-sandbox) .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
1420
+ :where(.zhin-sandbox) .agent-playground-artifact-list strong,
1421
+ :where(.zhin-sandbox) .agent-playground-artifact-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1422
+ :where(.zhin-sandbox) .agent-playground-artifact-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
1423
+ :where(.zhin-sandbox) .agent-playground-artifact-list small { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); }
1424
+ :where(.zhin-sandbox) .agent-playground-artifact-list em { color: hsl(var(--muted-foreground)); font-size: var(--console-text-label); font-style: normal; text-transform: none; }
1425
+ :where(.zhin-sandbox) .agent-playground-artifact-list article.is-completed em { color: hsl(var(--playground-accent)); }
1426
+ :where(.zhin-sandbox) .agent-playground-artifact-list article.is-failed em,
1427
+ :where(.zhin-sandbox) .agent-playground-artifact-list article.is-denied em { color: hsl(var(--destructive)); }
1428
+ :where(.zhin-sandbox) .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) > svg { color: hsl(var(--muted-foreground)); transition: transform 160ms ease; }
1429
+ :where(.zhin-sandbox) .agent-playground-artifact-list article.is-expanded > button:where(:not(.console-control, [data-state])) > svg { transform: rotate(180deg); }
1430
+
1431
+ :where(.zhin-sandbox) .agent-playground-artifact-detail {
1432
+ display: grid;
1433
+ gap: var(--console-space-2);
1434
+ padding: 0 var(--console-space-2) var(--console-space-2) var(--console-space-7);
1435
+ }
1436
+
1437
+ :where(.zhin-sandbox) .agent-playground-artifact-detail > code {
1438
+ overflow-wrap: anywhere;
1439
+ color: hsl(var(--muted-foreground));
1440
+ font-size: var(--console-text-label);
1441
+ }
1442
+
1443
+ :where(.zhin-sandbox) .agent-playground-artifact-detail pre {
1444
+ max-height: 15rem;
1445
+ margin: 0;
1446
+ overflow: auto;
1447
+ padding: var(--console-space-2);
1448
+ border: 1px solid hsl(var(--border) / 0.7);
1449
+ border-radius: var(--console-radius-1);
1450
+ background: hsl(var(--foreground));
1451
+ color: hsl(var(--background));
1452
+ font-size: var(--console-text-label);
1453
+ line-height: 1.55;
1454
+ white-space: pre-wrap;
1455
+ word-break: break-word;
1456
+ }
1457
+
1458
+ :where(.zhin-sandbox) .agent-playground-artifact-detail footer {
1459
+ display: flex;
1460
+ justify-content: space-between;
1461
+ color: hsl(var(--muted-foreground));
1462
+ font-size: var(--console-text-label);
1463
+ }
1464
+
1465
+ :where(.zhin-sandbox) .agent-playground-artifact-empty {
1466
+ display: flex;
1467
+ min-height: 6.5rem;
1468
+ flex-direction: column;
1469
+ align-items: center;
1470
+ justify-content: center;
1471
+ gap: var(--console-space-2);
1472
+ padding: var(--console-space-4);
1473
+ border: 1px dashed hsl(var(--border));
1474
+ border-radius: var(--console-radius-2);
1475
+ color: hsl(var(--muted-foreground));
1476
+ font-size: var(--console-text-label);
1477
+ line-height: 1.45;
1478
+ text-align: center;
1479
+ }
1480
+
1481
+ :where(.zhin-sandbox) .agent-playground-studio-link {
1482
+ display: flex;
1483
+ flex-shrink: 0;
1484
+ flex-direction: column;
1485
+ gap: var(--console-space-1);
1486
+ margin: var(--console-space-3);
1487
+ padding: var(--console-space-3);
1488
+ border: 1px solid hsl(var(--playground-accent) / 0.2);
1489
+ border-radius: var(--console-radius-2);
1490
+ background: hsl(var(--playground-accent-soft));
1491
+ color: hsl(var(--playground-accent));
1492
+ text-decoration: none;
1493
+ }
1494
+
1495
+ :where(.zhin-sandbox) .agent-playground-studio-link > span { display: flex; align-items: center; gap: var(--console-space-2); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
1496
+ :where(.zhin-sandbox) .agent-playground-studio-link code { overflow: hidden; opacity: 0.7; font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; }
1497
+ :where(.zhin-sandbox) .agent-playground-studio-link:hover { border-color: hsl(var(--playground-accent) / 0.42); }
1498
+
1499
+ :where(.zhin-sandbox) .agent-playground-inspector-overlay { display: none; }
1500
+
1501
+ .agent-playground-shell:where(.zhin-sandbox) button:focus-visible:where(:not(.console-control, [data-state])), .agent-playground-shell:where(.zhin-sandbox) a:focus-visible:where(:not(.console-control, [data-state])), .agent-playground-shell:where(.zhin-sandbox) input:focus-visible:where(:not(.console-control, [data-state])) {
1502
+ outline: 2px solid hsl(var(--playground-accent));
1503
+ outline-offset: 2px;
1504
+ }
1505
+
1506
+ @keyframes playground-trace-pulse {
1507
+ from { opacity: 0.25; transform: translateY(1px); }
1508
+ to { opacity: 1; transform: translateY(-1px); }
1509
+ }
1510
+
1511
+ @keyframes playground-run-breathe {
1512
+ 0%, 100% { opacity: 0.52; transform: scale(0.92); }
1513
+ 50% { opacity: 1; transform: scale(1); }
1514
+ }
1515
+
1516
+ @media (width < 90rem) {
1517
+ .agent-playground-shell:where(.zhin-sandbox),
1518
+ .agent-playground-shell.has-inspector:where(.zhin-sandbox) {
1519
+ grid-template-columns: minmax(13.5rem, 15rem) minmax(0, 1fr);
1520
+ }
1521
+
1522
+ :where(.zhin-sandbox) .agent-playground-inspector {
1523
+ position: fixed;
1524
+ z-index: 1201;
1525
+ top: 0;
1526
+ right: 0;
1527
+ bottom: 0;
1528
+ width: min(22rem, 90vw);
1529
+ height: 100dvh;
1530
+ transform: translateX(105%);
1531
+ transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
1532
+ box-shadow: var(--console-elevation-3);
1533
+ }
1534
+
1535
+ :where(.zhin-sandbox) .agent-playground-inspector.show { transform: translateX(0); }
1536
+ :where(.zhin-sandbox) .agent-playground-inspector-overlay {
1537
+ position: fixed;
1538
+ z-index: 1200;
1539
+ inset: 0;
1540
+ display: block;
1541
+ background: hsl(var(--console-shadow-color) / 0.42);
1542
+ backdrop-filter: blur(2px);
1543
+ }
1544
+
1545
+ }
1546
+
1547
+ @media (width < 64rem) {
1548
+ .agent-playground-shell:where(.zhin-sandbox),
1549
+ .agent-playground-shell.has-inspector:where(.zhin-sandbox) {
1550
+ position: relative;
1551
+ grid-template-columns: minmax(0, 1fr);
1552
+ grid-template-rows: auto minmax(0, 1fr);
1553
+ }
1554
+
1555
+ :where(.zhin-sandbox) .agent-playground-mobilebar {
1556
+ display: grid;
1557
+ grid-column: 1;
1558
+ grid-row: 1;
1559
+ grid-template-columns: 1fr auto 1fr;
1560
+ align-items: center;
1561
+ min-height: 2.65rem;
1562
+ padding: var(--console-space-1) var(--console-space-2);
1563
+ border-bottom: 1px solid hsl(var(--border));
1564
+ background: hsl(var(--background));
1565
+ }
1566
+
1567
+ :where(.zhin-sandbox) .agent-playground-mobilebar strong { font-size: var(--console-text-label); }
1568
+ :where(.zhin-sandbox) .agent-playground-mobilebar button:where(:not(.console-control, [data-state])) {
1569
+ display: inline-flex;
1570
+ align-items: center;
1571
+ gap: var(--console-space-1);
1572
+ justify-self: start;
1573
+ padding: var(--console-space-2);
1574
+ border: 0;
1575
+ background: transparent;
1576
+ color: hsl(var(--muted-foreground));
1577
+ font-size: var(--console-text-label);
1578
+ cursor: pointer;
1579
+ }
1580
+ :where(.zhin-sandbox) .agent-playground-mobilebar button:last-child:where(:not(.console-control, [data-state])) { justify-self: end; }
1581
+
1582
+ :where(.zhin-sandbox) .agent-playground-sessions.channel-sidebar {
1583
+ position: fixed;
1584
+ z-index: 1201;
1585
+ top: 0;
1586
+ bottom: 0;
1587
+ left: 0;
1588
+ width: min(19rem, 88vw);
1589
+ max-width: 88vw;
1590
+ height: 100dvh;
1591
+ transform: translateX(-105%);
1592
+ visibility: hidden;
1593
+ transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
1594
+ box-shadow: var(--console-elevation-3);
1595
+ }
1596
+
1597
+ :where(.zhin-sandbox) .agent-playground-sessions.channel-sidebar.show { transform: translateX(0); visibility: visible; }
1598
+ .agent-playground-shell:where(.zhin-sandbox) .channel-overlay {
1599
+ position: fixed;
1600
+ z-index: 1200;
1601
+ inset: 0;
1602
+ display: block;
1603
+ background: hsl(var(--console-shadow-color) / 0.42);
1604
+ backdrop-filter: blur(2px);
1605
+ }
1606
+
1607
+ :where(.zhin-sandbox) .agent-playground-main.chat-area {
1608
+ grid-column: 1;
1609
+ grid-row: 2;
1610
+ padding: 0;
1611
+ }
1612
+
1613
+ :where(.zhin-sandbox) .agent-playground-network-toggle { justify-content: center; }
1614
+ }
1615
+
1616
+ @media (width < 48rem) {
1617
+ .agent-playground-shell:where(.zhin-sandbox) {
1618
+ height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-padding-block) - 1rem);
1619
+ min-height: 32rem;
1620
+ border-radius: var(--console-radius-3);
1621
+ }
1622
+
1623
+ :where(.zhin-sandbox) .agent-playground-run-actions a:where(:not(.console-control, [data-state])), :where(.zhin-sandbox) .agent-playground-run-state { display: none; }
1624
+ }
1625
+
1626
+ @media (width < 40rem) {
1627
+ .agent-playground-shell:where(.zhin-sandbox) {
1628
+ height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-padding-block) - 1rem);
1629
+ min-height: 29rem;
1630
+ border-right: 0;
1631
+ border-left: 0;
1632
+ border-radius: 0;
1633
+ }
1634
+
1635
+ :where(.zhin-sandbox) .agent-playground-runbar {
1636
+ min-height: 4.1rem;
1637
+ gap: var(--console-space-2);
1638
+ padding: var(--console-space-2) var(--console-space-3);
1639
+ }
1640
+
1641
+ :where(.zhin-sandbox) .agent-playground-run-icon { width: 2.05rem; height: 2.05rem; }
1642
+ :where(.zhin-sandbox) .agent-playground-run-title span { display: none; }
1643
+ :where(.zhin-sandbox) .agent-playground-run-actions { flex-wrap: nowrap; gap: var(--console-space-1); }
1644
+ :where(.zhin-sandbox) .agent-playground-run-actions button:where(:not(.console-control, [data-state])) {
1645
+ flex-shrink: 0;
1646
+ width: 2rem;
1647
+ min-width: 2rem;
1648
+ height: 2rem;
1649
+ gap: 0;
1650
+ padding: 0;
1651
+ font-size: 0;
1652
+ }
1653
+
1654
+ :where(.zhin-sandbox) .agent-playground-run-settings {
1655
+ max-height: 16rem;
1656
+ overflow-y: auto;
1657
+ padding: var(--console-space-3);
1658
+ }
1659
+
1660
+ :where(.zhin-sandbox) .agent-playground-network-toggle { align-items: flex-start; }
1661
+
1662
+ :where(.zhin-sandbox) .agent-playground-empty {
1663
+ width: min(100% - 1.5rem, 32rem);
1664
+ padding: var(--console-space-6) 0;
1665
+ }
1666
+
1667
+ :where(.zhin-sandbox) .agent-playground-prompts { grid-template-columns: 1fr; }
1668
+ :where(.zhin-sandbox) .agent-playground-prompts button:where(:not(.console-control, [data-state])) { min-height: 2.8rem; }
1669
+ :where(.zhin-sandbox) .agent-playground-message-list { width: calc(100% - 1rem); padding-top: var(--console-space-4); }
1670
+ :where(.zhin-sandbox) .agent-playground-message-avatar { width: 1.75rem; height: 1.75rem; }
1671
+ :where(.zhin-sandbox) .agent-playground-message-main { max-width: calc(100% - 2.35rem); }
1672
+ :where(.zhin-sandbox) .agent-playground-message.is-user .agent-playground-message-main { max-width: 84%; }
1673
+ :where(.zhin-sandbox) .agent-playground-message-content { padding: var(--console-space-3) var(--console-space-3); }
1674
+ :where(.zhin-sandbox) .agent-playground-inline-run { margin-left: 0; }
1675
+ :where(.zhin-sandbox) .agent-playground-inline-run-head { grid-template-columns: auto minmax(0, 1fr); padding: var(--console-space-3) var(--console-space-3) var(--console-space-3) var(--console-space-3); }
1676
+ :where(.zhin-sandbox) .agent-playground-inline-run-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: var(--console-space-7); }
1677
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
1678
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:nth-child(3) { border-right: 0; }
1679
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:nth-child(n+4) { border-top: 1px solid hsl(var(--playground-line) / 0.48); }
1680
+ :where(.zhin-sandbox) .agent-playground-inline-run-metrics > div:nth-child(4) { grid-column: span 2; }
1681
+ :where(.zhin-sandbox) .agent-playground-inline-run footer { align-items: flex-start; flex-direction: column; }
1682
+
1683
+ :where(.zhin-sandbox) .agent-playground-composer { padding: var(--console-space-2); }
1684
+ :where(.zhin-sandbox) .agent-playground-composer > div:first-child > .flex-1 { display: none; }
1685
+ :where(.zhin-sandbox) .agent-playground-composer > div:last-child { display: none; }
1686
+ :where(.zhin-sandbox) .agent-playground-composer .zhin-code-block { min-width: min(20rem, 78vw); }
1687
+ }
1688
+
1689
+ @media (prefers-reduced-motion: reduce) {
1690
+ .agent-playground-shell:where(.zhin-sandbox) *,
1691
+ :where(.zhin-sandbox) .agent-playground-trace-loading i {
1692
+ scroll-behavior: auto !important;
1693
+ animation-duration: 0.01ms !important;
1694
+ animation-iteration-count: 1 !important;
1695
+ transition-duration: 0.01ms !important;
1696
+ }
1697
+ }
1698
+ .console-route-view .zhin-sandbox.agent-playground-shell {
1699
+ border-radius: var(--console-radius-4);
1700
+ box-shadow: var(--console-elevation-1);
1701
+ font-size: var(--console-text-body);
1702
+ }
1703
+ .console-route-view .zhin-sandbox .sandbox-hints {
1704
+ flex-wrap: nowrap;
1705
+ overflow-x: auto;
1706
+ white-space: nowrap;
1707
+ font-size: var(--console-text-label);
1708
+ color: hsl(var(--muted-foreground));
1709
+ scrollbar-width: none;
1710
+ }
1711
+ .console-route-view .zhin-sandbox .sandbox-hints::-webkit-scrollbar { display: none; }
1712
+ .console-route-view .zhin-sandbox .sandbox-hint-key { font-size: var(--console-text-label); }
1713
+ .console-route-view .zhin-sandbox .agent-playground-run-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
1714
+
1715
+ /* ---- from zhinjs/console console-ui/src/im-workspace.css (only the rules the Sandbox DOM uses) ---- */
1716
+ :where(.zhin-sandbox) .channel-sidebar { display: flex; flex-direction: column; flex-shrink: 0; min-height: 0; }
1717
+ :where(.zhin-sandbox) .chat-area { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
1718
+ :where(.zhin-sandbox) .im-segment-list, :where(.zhin-sandbox) .im-markdown-body { display: flex; flex-direction: column; gap: var(--console-space-2); min-width: 0; }
1719
+ :where(.zhin-sandbox) .im-message-link { color: hsl(var(--primary)); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
1720
+ :where(.zhin-sandbox) .im-inline-code { padding: 0 var(--console-space-1); border: 1px solid hsl(var(--border)); border-radius: var(--console-radius-1); background: hsl(var(--muted)); font-family: var(--console-font-mono); font-size: var(--console-text-label); }
1721
+ :where(.zhin-sandbox) .im-markdown-heading { font-weight: var(--console-weight-strong); line-height: 1.4; color: hsl(var(--foreground)); }
1722
+ :where(.zhin-sandbox) .im-markdown-heading-1 { font-size: var(--console-text-title); }
1723
+ :where(.zhin-sandbox) .im-markdown-heading-2 { font-size: var(--console-text-section); }
1724
+ :where(.zhin-sandbox) .im-markdown-heading-3, :where(.zhin-sandbox) .im-markdown-heading-4 { font-size: var(--console-text-section); }
1725
+ :where(.zhin-sandbox) .im-markdown-paragraph { margin: 0; white-space: pre-wrap; }
1726
+ :where(.zhin-sandbox) .im-markdown-quote { margin: 0; padding: var(--console-space-2) var(--console-space-3); border-left: 3px solid hsl(var(--border)); border-radius: 0 var(--console-radius-1) var(--console-radius-1) 0; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
1727
+ :where(.zhin-sandbox) .im-markdown-quote p { margin: 0; }
1728
+ :where(.zhin-sandbox) .im-markdown-list { margin: 0; padding-left: var(--console-space-5); }
1729
+ :where(.zhin-sandbox) .im-markdown-list li + li { margin-top: var(--console-space-1); }
1730
+ :where(.zhin-sandbox) .rich-text-editor { font-family: inherit; line-height: 1.6; }
1731
+ :where(.zhin-sandbox) .rich-text-editor:focus { border-color: hsl(var(--ring)) !important; outline: var(--console-border-hairline) solid hsl(var(--ring)); outline-offset: calc(var(--console-border-hairline) * -1); }
1732
+ :where(.zhin-sandbox) .rich-text-editor:empty::before { content: attr(data-placeholder); color: hsl(var(--muted-foreground)); pointer-events: none; }
1733
+ :where(.zhin-sandbox) .rich-text-editor .editor-face { display: inline-block; width: 24px; height: 24px; margin: 0 var(--console-space-1); vertical-align: middle; }
1734
+ :where(.zhin-sandbox) .rich-text-editor .editor-image { display: block; max-width: min(200px,100%); border-radius: var(--console-radius-2); margin: var(--console-space-1) 0; }
1735
+ :where(.zhin-sandbox) .rich-text-editor .editor-video, :where(.zhin-sandbox) .rich-text-editor .editor-audio, :where(.zhin-sandbox) .rich-text-editor .editor-at { display: inline-flex; align-items: center; gap: var(--console-space-1); padding: var(--console-space-1) var(--console-space-2); margin: var(--console-space-1); border: 1px solid hsl(var(--border)); border-radius: var(--console-radius-1); background: hsl(var(--muted)); color: hsl(var(--foreground)); font-size: var(--console-text-label); user-select: none; }
1736
+ :where(.zhin-sandbox) .rich-text-editor .editor-at-symbol { font-weight: var(--console-weight-strong); }
1737
+ `;