@zhin.js/adapter-sandbox 1.1.23 → 1.1.25
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.
- package/CHANGELOG.md +60 -0
- package/adapters/sandbox/index.js +16 -7
- package/adapters/sandbox/index.ts +16 -7
- package/lib/endpoint.js +45 -7
- package/lib/protocol.d.ts +6 -0
- package/lib/protocol.js +15 -0
- package/package.json +17 -17
- package/pages/index/HtmlMessage.js +1 -1
- package/pages/index/HtmlMessage.tsx +1 -1
- package/pages/index/RichTextEditor.js +1 -15
- package/pages/index/RichTextEditor.tsx +4 -15
- package/pages/index/SandboxChat.js +131 -30
- package/pages/index/SandboxChat.tsx +335 -73
- package/pages/index/index.js +1 -1
- package/pages/index/index.tsx +1 -1
- package/pages/index/messages.js +2 -0
- package/pages/index/messages.ts +2 -0
- package/pages/index/styles.js +501 -0
- package/pages/index/styles.ts +500 -0
- package/plugin.js +1 -0
- package/src/endpoint.ts +42 -7
- package/src/protocol.ts +26 -0
package/pages/index/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { definePage } from '@zhin.js/console-contract';
|
|
4
|
-
import SandboxChat, {} from './SandboxChat';
|
|
4
|
+
import SandboxChat, {} from './SandboxChat.js';
|
|
5
5
|
export const meta = definePage({
|
|
6
6
|
title: '会话',
|
|
7
7
|
titleI18n: { en: 'Conversations' },
|
package/pages/index/index.tsx
CHANGED
package/pages/index/messages.js
CHANGED
|
@@ -46,6 +46,8 @@ export const sandboxEnglish = {
|
|
|
46
46
|
"停止中": "Stopping",
|
|
47
47
|
"停止": "Stop",
|
|
48
48
|
"重试": "Retry",
|
|
49
|
+
"表情列表加载失败,表情选择器暂不可用。": "Could not load the emoji list. The emoji picker is unavailable.",
|
|
50
|
+
"收到一条无法解析的消息,已忽略。": "Received a message that could not be parsed and ignored it.",
|
|
49
51
|
"导出 Markdown 运行报告": "Export Markdown run report",
|
|
50
52
|
"导出": "Export",
|
|
51
53
|
"耗时": "Duration",
|
package/pages/index/messages.ts
CHANGED
|
@@ -47,6 +47,8 @@ export const sandboxEnglish: Readonly<Record<string, string>> = {
|
|
|
47
47
|
"停止中": "Stopping",
|
|
48
48
|
"停止": "Stop",
|
|
49
49
|
"重试": "Retry",
|
|
50
|
+
"表情列表加载失败,表情选择器暂不可用。": "Could not load the emoji list. The emoji picker is unavailable.",
|
|
51
|
+
"收到一条无法解析的消息,已忽略。": "Received a message that could not be parsed and ignored it.",
|
|
50
52
|
"导出 Markdown 运行报告": "Export Markdown run report",
|
|
51
53
|
"导出": "Export",
|
|
52
54
|
"耗时": "Duration",
|
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
+
/**
|
|
3
|
+
* The Sandbox workbench owns its complete presentation. Every colour derives from the Console theme tokens
|
|
4
|
+
* (`--background`, `--primary`, ...) with a light fallback so the page also renders outside the Console, and
|
|
5
|
+
* nothing here relies on Tailwind utilities or on the shared adapter-console stylesheet being injected first.
|
|
6
|
+
* Rules: no hex literals, no gradients, no text below 12px, tap targets of at least 44px under 768px.
|
|
7
|
+
*/
|
|
8
|
+
export const sandboxStyles = `
|
|
9
|
+
.zhin-sandbox {
|
|
10
|
+
--sb-bg: hsl(var(--background, 0 0% 100%));
|
|
11
|
+
--sb-fg: hsl(var(--foreground, 0 0% 12%));
|
|
12
|
+
--sb-muted: hsl(var(--muted, 0 0% 96%));
|
|
13
|
+
--sb-muted-fg: hsl(var(--muted-foreground, 0 0% 39%));
|
|
14
|
+
--sb-accent: hsl(var(--accent, 0 0% 95%));
|
|
15
|
+
--sb-border: hsl(var(--border, 0 0% 90%));
|
|
16
|
+
--sb-border-soft: hsl(var(--border, 0 0% 90%) / .7);
|
|
17
|
+
--sb-input: hsl(var(--input, 0 0% 57%));
|
|
18
|
+
--sb-sidebar: hsl(var(--sidebar, 0 0% 97%));
|
|
19
|
+
--sb-primary: hsl(var(--primary, 222 62% 50%));
|
|
20
|
+
--sb-primary-fg: hsl(var(--primary-foreground, 0 0% 99%));
|
|
21
|
+
--sb-primary-soft: hsl(var(--primary, 222 62% 50%) / .1);
|
|
22
|
+
--sb-primary-line: hsl(var(--primary, 222 62% 50%) / .3);
|
|
23
|
+
--sb-ring: hsl(var(--ring, 222 62% 50%));
|
|
24
|
+
--sb-danger: hsl(var(--destructive, 0 68% 42%));
|
|
25
|
+
--sb-danger-fg: hsl(var(--destructive-foreground, 0 0% 100%));
|
|
26
|
+
--sb-danger-soft: hsl(var(--destructive, 0 68% 42%) / .1);
|
|
27
|
+
--sb-danger-line: hsl(var(--destructive, 0 68% 42%) / .3);
|
|
28
|
+
--sb-ok: hsl(var(--success, 145 52% 28%));
|
|
29
|
+
--sb-warn: hsl(var(--warning, 32 80% 30%));
|
|
30
|
+
--sb-warn-soft: hsl(var(--warning, 32 80% 30%) / .12);
|
|
31
|
+
--sb-warn-line: hsl(var(--warning, 32 80% 30%) / .32);
|
|
32
|
+
--sb-info: hsl(var(--info, 222 62% 50%));
|
|
33
|
+
--sb-overlay: hsl(var(--im-shadow, 0 0% 0%) / .5);
|
|
34
|
+
--sb-shadow: hsl(var(--im-shadow, 0 0% 0%) / .16);
|
|
35
|
+
--sb-radius-sm: var(--console-radius-sm, 6px);
|
|
36
|
+
--sb-radius-md: var(--console-radius-md, 10px);
|
|
37
|
+
--sb-radius-lg: var(--console-radius-lg, 14px);
|
|
38
|
+
--sb-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'PingFang SC', monospace;
|
|
39
|
+
color: var(--sb-fg);
|
|
40
|
+
font-family: 'Avenir Next', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
line-height: 1.6;
|
|
43
|
+
text-align: left;
|
|
44
|
+
}
|
|
45
|
+
.zhin-sandbox *, .zhin-sandbox *::before, .zhin-sandbox *::after { box-sizing: border-box; }
|
|
46
|
+
.zhin-sandbox :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, pre) { margin: 0; }
|
|
47
|
+
.zhin-sandbox :where(button, input, select, textarea) { font: inherit; color: inherit; }
|
|
48
|
+
.zhin-sandbox :where(a) { color: var(--sb-primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
|
|
49
|
+
.zhin-sandbox :where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--sb-ring); outline-offset: 2px; }
|
|
50
|
+
.zhin-sandbox [hidden] { display: none !important; }
|
|
51
|
+
|
|
52
|
+
/* ---------- Shell ---------- */
|
|
53
|
+
.zhin-sandbox.agent-playground-shell { position: relative; display: grid; grid-template-columns: 232px minmax(0,1fr); width: 100%; height: calc(100dvh - 72px); min-height: 520px; overflow: hidden; isolation: isolate; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); background: var(--sb-bg); }
|
|
54
|
+
|
|
55
|
+
/* ---------- Shared controls ---------- */
|
|
56
|
+
.zhin-sandbox button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); background: var(--sb-bg); color: var(--sb-fg); font-size: 13px; line-height: 1.4; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
|
|
57
|
+
.zhin-sandbox button:hover:not(:disabled) { background: var(--sb-accent); }
|
|
58
|
+
.zhin-sandbox button:disabled { opacity: .5; cursor: not-allowed; }
|
|
59
|
+
.zhin-sandbox button.primary, .zhin-sandbox .sandbox-send, .zhin-sandbox .sandbox-submit { background: var(--sb-primary); color: var(--sb-primary-fg); border-color: var(--sb-primary); }
|
|
60
|
+
.zhin-sandbox button.primary:hover:not(:disabled), .zhin-sandbox .sandbox-send:hover:not(:disabled), .zhin-sandbox .sandbox-submit:hover:not(:disabled) { background: var(--sb-primary); opacity: .9; }
|
|
61
|
+
.zhin-sandbox button.danger { background: var(--sb-danger); color: var(--sb-danger-fg); border-color: var(--sb-danger); }
|
|
62
|
+
.zhin-sandbox button.danger:hover:not(:disabled) { background: var(--sb-danger); opacity: .9; }
|
|
63
|
+
.zhin-sandbox :where(input:not([type="checkbox"]), select) { width: 100%; min-width: 0; min-height: 34px; padding: 6px 10px; border: 1px solid var(--sb-input); border-radius: var(--sb-radius-sm); background: var(--sb-bg); color: var(--sb-fg); font-size: 13px; line-height: 1.5; }
|
|
64
|
+
.zhin-sandbox :where(input, select):disabled { opacity: .6; cursor: not-allowed; background: var(--sb-muted); }
|
|
65
|
+
.zhin-sandbox :where(input)::placeholder { color: var(--sb-muted-fg); }
|
|
66
|
+
.zhin-sandbox .sandbox-input { width: 100%; }
|
|
67
|
+
.zhin-sandbox .is-spinning { animation: sandbox-spin 1s linear infinite; }
|
|
68
|
+
|
|
69
|
+
/* ---------- Mobile bar and overlays (hidden on wide screens) ---------- */
|
|
70
|
+
.zhin-sandbox .agent-playground-mobilebar { display: none; }
|
|
71
|
+
.zhin-sandbox .agent-playground-inspector-overlay, .zhin-sandbox .channel-overlay { display: none; }
|
|
72
|
+
|
|
73
|
+
/* ---------- Sessions sidebar ---------- */
|
|
74
|
+
.zhin-sandbox .agent-playground-sessions { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--sb-sidebar); border-right: 1px solid var(--sb-border); }
|
|
75
|
+
.zhin-sandbox .agent-playground-brand { padding: 20px 16px 16px; border-bottom: 1px solid var(--sb-border-soft); }
|
|
76
|
+
.zhin-sandbox .agent-playground-brand > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
77
|
+
.zhin-sandbox .agent-playground-brand > div > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
|
|
78
|
+
.zhin-sandbox .agent-playground-brand h2 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
|
|
79
|
+
.zhin-sandbox .agent-playground-brand small { display: block; font-size: 12px; color: var(--sb-muted-fg); }
|
|
80
|
+
.zhin-sandbox .agent-playground-mark, .zhin-sandbox .agent-playground-empty-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sb-primary); background: var(--sb-primary-soft); }
|
|
81
|
+
.zhin-sandbox .agent-playground-mark { width: 32px; height: 32px; border: 1px solid var(--sb-primary-line); border-radius: var(--sb-radius-md); }
|
|
82
|
+
.zhin-sandbox .agent-playground-connection { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--sb-border); border-radius: 999px; background: var(--sb-bg); color: var(--sb-warn); }
|
|
83
|
+
.zhin-sandbox .agent-playground-connection.is-online { color: var(--sb-ok); border-color: var(--sb-primary-line); }
|
|
84
|
+
.zhin-sandbox .is-online { color: var(--sb-ok); }
|
|
85
|
+
.zhin-sandbox .agent-playground-section-label { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--sb-muted-fg); }
|
|
86
|
+
.zhin-sandbox .agent-playground-section-label span:nth-child(2) { font-variant-numeric: tabular-nums; }
|
|
87
|
+
.zhin-sandbox .agent-playground-section-label button { margin-left: auto; min-height: 28px; min-width: 28px; padding: 4px; background: transparent; border-color: transparent; color: var(--sb-muted-fg); }
|
|
88
|
+
.zhin-sandbox .agent-playground-session-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; scrollbar-width: thin; }
|
|
89
|
+
.zhin-sandbox .agent-playground-session { position: relative; width: 100%; justify-content: flex-start; gap: 10px; margin: 2px 0; padding: 9px 10px; border: 0; border-radius: var(--sb-radius-md); background: transparent; text-align: left; }
|
|
90
|
+
.zhin-sandbox .agent-playground-session:hover:not(:disabled) { background: var(--sb-bg); }
|
|
91
|
+
.zhin-sandbox .agent-playground-session.active { background: var(--sb-bg); box-shadow: inset 2px 0 var(--sb-primary); }
|
|
92
|
+
.zhin-sandbox .agent-playground-session-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--sb-radius-md); background: var(--sb-muted); color: var(--sb-muted-fg); }
|
|
93
|
+
.zhin-sandbox .agent-playground-session.active .agent-playground-session-icon { background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
94
|
+
.zhin-sandbox .agent-playground-session-copy { flex: 1; min-width: 0; }
|
|
95
|
+
.zhin-sandbox .agent-playground-session-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
96
|
+
.zhin-sandbox .agent-playground-session-scope { margin-top: 2px; font-size: 12px; color: var(--sb-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
97
|
+
.zhin-sandbox .agent-playground-unread { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sb-danger); color: var(--sb-danger-fg); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
98
|
+
.zhin-sandbox .agent-playground-new-session { padding: 10px 12px; border-top: 1px solid var(--sb-border-soft); }
|
|
99
|
+
.zhin-sandbox .agent-playground-add { width: 100%; min-height: 36px; border: 1px dashed var(--sb-primary-line); background: var(--sb-primary-soft); color: var(--sb-primary); font-weight: 600; }
|
|
100
|
+
.zhin-sandbox .agent-playground-add:hover:not(:disabled) { border-style: solid; background: var(--sb-primary-soft); }
|
|
101
|
+
.zhin-sandbox .agent-playground-new-form { display: grid; gap: 8px; }
|
|
102
|
+
.zhin-sandbox .agent-playground-scope-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: var(--sb-radius-md); background: var(--sb-muted); }
|
|
103
|
+
.zhin-sandbox .agent-playground-scope-picker button { min-height: 30px; padding: 4px; border: 0; background: transparent; color: var(--sb-muted-fg); font-size: 12px; }
|
|
104
|
+
.zhin-sandbox .agent-playground-scope-picker button.active { background: var(--sb-bg); color: var(--sb-fg); box-shadow: 0 1px 4px var(--sb-shadow); }
|
|
105
|
+
.zhin-sandbox .agent-playground-new-actions { display: flex; justify-content: flex-end; gap: 6px; }
|
|
106
|
+
.zhin-sandbox .agent-playground-endpoint { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 10px 16px 12px; border-top: 1px solid var(--sb-border-soft); font-size: 12px; color: var(--sb-muted-fg); }
|
|
107
|
+
.zhin-sandbox .agent-playground-endpoint strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sb-mono); font-size: 12px; font-weight: 500; color: var(--sb-fg); }
|
|
108
|
+
|
|
109
|
+
/* ---------- Main column: run bar ---------- */
|
|
110
|
+
.zhin-sandbox .agent-playground-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: var(--sb-bg); }
|
|
111
|
+
.zhin-sandbox .agent-playground-runbar { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 68px; padding: 12px 20px; border-bottom: 1px solid var(--sb-border-soft); }
|
|
112
|
+
.zhin-sandbox .agent-playground-run-identity { display: flex; flex: 1 1 14rem; align-items: center; gap: 10px; min-width: 0; }
|
|
113
|
+
.zhin-sandbox .agent-playground-run-identity > div { flex: 1; min-width: 0; }
|
|
114
|
+
.zhin-sandbox .agent-playground-run-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--sb-primary-line); border-radius: var(--sb-radius-md); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
115
|
+
.zhin-sandbox .agent-playground-run-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
|
|
116
|
+
.zhin-sandbox .agent-playground-run-title h1 { min-width: 0; max-width: 100%; overflow: hidden; font-size: 16px; font-weight: 700; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
|
|
117
|
+
.zhin-sandbox .agent-playground-run-title span { flex-shrink: 0; padding: 1px 8px; border: 1px solid var(--sb-border); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--sb-muted-fg); }
|
|
118
|
+
.zhin-sandbox .agent-playground-run-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; max-width: 100%; margin-left: auto; }
|
|
119
|
+
.zhin-sandbox .agent-playground-run-actions > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); color: var(--sb-muted-fg); font-size: 13px; text-decoration: none; }
|
|
120
|
+
.zhin-sandbox .agent-playground-run-actions > a:hover { background: var(--sb-accent); color: var(--sb-fg); }
|
|
121
|
+
.zhin-sandbox .agent-playground-run-actions > button { color: var(--sb-muted-fg); }
|
|
122
|
+
.zhin-sandbox .agent-playground-run-actions > button:hover:not(:disabled) { border-color: var(--sb-primary-line); color: var(--sb-primary); }
|
|
123
|
+
.zhin-sandbox .agent-playground-run-actions > button.active { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
124
|
+
.zhin-sandbox .agent-playground-run-actions > .agent-playground-stop { background: var(--sb-danger-soft); border-color: var(--sb-danger-line); color: var(--sb-danger); }
|
|
125
|
+
.zhin-sandbox .agent-playground-run-actions > .agent-playground-stop:hover:not(:disabled) { background: var(--sb-danger-soft); border-color: var(--sb-danger); color: var(--sb-danger); }
|
|
126
|
+
.zhin-sandbox .agent-playground-run-state { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--sb-muted-fg); font-size: 13px; white-space: nowrap; }
|
|
127
|
+
.zhin-sandbox .agent-playground-run-state.is-running { color: var(--sb-primary); }
|
|
128
|
+
.zhin-sandbox .agent-playground-run-state.is-running svg { animation: sandbox-breathe 1.5s ease-in-out infinite; }
|
|
129
|
+
.zhin-sandbox .agent-playground-run-state.has-problem { color: var(--sb-danger); }
|
|
130
|
+
|
|
131
|
+
/* ---------- Banners and run settings ---------- */
|
|
132
|
+
.zhin-sandbox .agent-playground-confirm { display: flex; align-items: center; gap: 8px 10px; padding: 10px 20px; border-bottom: 1px solid var(--sb-danger-line); background: var(--sb-danger-soft); color: var(--sb-fg); font-size: 13px; }
|
|
133
|
+
.zhin-sandbox .agent-playground-confirm > div { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
|
|
134
|
+
.zhin-sandbox .agent-playground-confirm > div > span { color: var(--sb-muted-fg); }
|
|
135
|
+
.zhin-sandbox .agent-playground-confirm button { min-height: 32px; padding: 4px 12px; background: var(--sb-bg); }
|
|
136
|
+
.zhin-sandbox .sandbox-notice { display: flex; align-items: flex-start; gap: 8px; padding: 8px 20px; border-bottom: 1px solid var(--sb-warn-line); background: var(--sb-warn-soft); color: var(--sb-fg); font-size: 13px; }
|
|
137
|
+
.zhin-sandbox .sandbox-notice > svg { flex-shrink: 0; margin-top: 3px; color: var(--sb-warn); }
|
|
138
|
+
.zhin-sandbox .sandbox-notice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
139
|
+
.zhin-sandbox .sandbox-notice button { min-height: 28px; padding: 2px 10px; background: transparent; }
|
|
140
|
+
.zhin-sandbox .agent-playground-run-settings { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--sb-border-soft); background: var(--sb-sidebar); }
|
|
141
|
+
.zhin-sandbox .agent-playground-run-settings label { display: flex; flex: 1 1 140px; flex-direction: column; gap: 5px; min-width: 0; }
|
|
142
|
+
.zhin-sandbox .agent-playground-run-settings .agent-playground-directory-field { flex-basis: 100%; }
|
|
143
|
+
.zhin-sandbox .agent-playground-run-settings label > span { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--sb-muted-fg); }
|
|
144
|
+
.zhin-sandbox .agent-playground-run-settings > p { display: flex; flex-basis: 100%; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--sb-warn); }
|
|
145
|
+
.zhin-sandbox .agent-playground-run-settings > p > svg { flex-shrink: 0; margin-top: 3px; }
|
|
146
|
+
.zhin-sandbox .agent-playground-network-toggle { position: relative; flex: none !important; flex-direction: row !important; align-items: center; gap: 10px !important; }
|
|
147
|
+
.zhin-sandbox .agent-playground-network-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
|
148
|
+
.zhin-sandbox .agent-playground-network-toggle i { position: relative; display: block; width: 36px; height: 20px; border: 1px solid var(--sb-input); border-radius: 999px; background: var(--sb-muted); cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
|
|
149
|
+
.zhin-sandbox .agent-playground-network-toggle i::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--sb-bg); box-shadow: 0 1px 3px var(--sb-shadow); content: ""; transition: transform .16s ease; }
|
|
150
|
+
.zhin-sandbox .agent-playground-network-toggle input:checked + i { border-color: var(--sb-primary); background: var(--sb-primary); }
|
|
151
|
+
.zhin-sandbox .agent-playground-network-toggle input:checked + i::after { transform: translateX(16px); }
|
|
152
|
+
.zhin-sandbox .agent-playground-network-toggle input:disabled + i { opacity: .6; cursor: not-allowed; }
|
|
153
|
+
.zhin-sandbox .agent-playground-network-toggle input:focus-visible + i { outline: 2px solid var(--sb-ring); outline-offset: 2px; }
|
|
154
|
+
|
|
155
|
+
/* ---------- Conversation ---------- */
|
|
156
|
+
.zhin-sandbox .agent-playground-conversation { position: relative; flex: 1; display: flex; min-height: 0; overflow: hidden; }
|
|
157
|
+
.zhin-sandbox .agent-playground-message-scroll { flex: 1; min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px; scrollbar-gutter: stable; scrollbar-width: thin; }
|
|
158
|
+
.zhin-sandbox .agent-playground-conversation-details { flex: 1; min-height: 0; overflow: auto; padding: 16px; }
|
|
159
|
+
.zhin-sandbox .agent-playground-details-back { margin-bottom: 12px; border-color: transparent; background: transparent; color: var(--sb-muted-fg); }
|
|
160
|
+
.zhin-sandbox .agent-playground-history-navigation, .zhin-sandbox .agent-playground-history-notice { padding: 8px 16px; font-size: 12px; text-align: center; color: var(--sb-muted-fg); }
|
|
161
|
+
.zhin-sandbox .agent-playground-history-navigation p[role=alert] { color: var(--sb-danger); overflow-wrap: anywhere; }
|
|
162
|
+
.zhin-sandbox .agent-playground-history-navigation button { min-height: 32px; border-color: transparent; background: transparent; color: var(--sb-primary); }
|
|
163
|
+
.zhin-sandbox .agent-playground-empty { display: grid; width: min(100%, 42rem); min-height: 100%; align-content: center; margin: 0 auto; padding: 32px 0; text-align: center; }
|
|
164
|
+
.zhin-sandbox .agent-playground-empty-mark { width: 56px; height: 56px; margin: 0 auto 18px; border: 1px solid var(--sb-primary-line); border-radius: var(--sb-radius-lg); }
|
|
165
|
+
.zhin-sandbox .agent-playground-empty h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
|
|
166
|
+
.zhin-sandbox .agent-playground-empty p { max-width: 48ch; margin: 0 auto; color: var(--sb-muted-fg); font-size: 14px; line-height: 1.7; }
|
|
167
|
+
.zhin-sandbox .agent-playground-prompts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 22px; }
|
|
168
|
+
.zhin-sandbox .agent-playground-prompts button { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 64px; padding: 12px; border-radius: var(--sb-radius-md); font-size: 13px; text-align: left; }
|
|
169
|
+
.zhin-sandbox .agent-playground-prompts button::after { margin-top: auto; color: var(--sb-primary); content: "\\2197"; }
|
|
170
|
+
.zhin-sandbox .agent-playground-prompts button:hover:not(:disabled) { border-color: var(--sb-primary-line); background: var(--sb-muted); }
|
|
171
|
+
.zhin-sandbox .agent-playground-message-list { display: flex; flex-direction: column; gap: 18px; width: min(100%, 52rem); margin: 0 auto; padding-bottom: 12px; }
|
|
172
|
+
.zhin-sandbox .agent-playground-message { display: flex; align-items: flex-start; gap: 10px; }
|
|
173
|
+
.zhin-sandbox .agent-playground-message.is-user { flex-direction: row-reverse; }
|
|
174
|
+
.zhin-sandbox .agent-playground-message-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-muted); color: var(--sb-muted-fg); }
|
|
175
|
+
.zhin-sandbox .agent-playground-message.is-agent .agent-playground-message-avatar { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
176
|
+
.zhin-sandbox .agent-playground-message-main { min-width: 0; max-width: calc(100% - 44px); }
|
|
177
|
+
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-main { max-width: min(76%, 42rem); }
|
|
178
|
+
.zhin-sandbox .agent-playground-message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 2px 4px; font-size: 12px; color: var(--sb-muted-fg); }
|
|
179
|
+
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-meta { justify-content: flex-end; }
|
|
180
|
+
.zhin-sandbox .agent-playground-message-meta strong { font-weight: 650; color: var(--sb-fg); }
|
|
181
|
+
.zhin-sandbox .agent-playground-message-meta span { color: var(--sb-warn); }
|
|
182
|
+
.zhin-sandbox .agent-playground-message-content { min-width: 0; padding: 10px 14px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); background: var(--sb-bg); line-height: 1.7; overflow-wrap: anywhere; overflow: hidden; }
|
|
183
|
+
.zhin-sandbox .agent-playground-message-content img { max-width: 100%; border-radius: var(--sb-radius-md); }
|
|
184
|
+
.zhin-sandbox .agent-playground-message-content > :first-child { margin-top: 0; }
|
|
185
|
+
.zhin-sandbox .agent-playground-message-content > :last-child { margin-bottom: 0; }
|
|
186
|
+
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-content { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); }
|
|
187
|
+
.zhin-sandbox .agent-playground-message.is-approval .agent-playground-message-avatar { border-color: var(--sb-warn-line); background: var(--sb-warn-soft); color: var(--sb-warn); }
|
|
188
|
+
.zhin-sandbox .agent-playground-message.is-approval .agent-playground-message-content { border-color: var(--sb-warn-line); background: var(--sb-warn-soft); }
|
|
189
|
+
.zhin-sandbox .agent-playground-message.is-approval .agent-playground-message-meta span:last-of-type { padding: 0 8px; border: 1px solid var(--sb-warn-line); border-radius: 999px; font-weight: 600; }
|
|
190
|
+
.zhin-sandbox .agent-playground-approval-actions { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sb-warn-line); }
|
|
191
|
+
.zhin-sandbox .agent-playground-approval-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
192
|
+
.zhin-sandbox .agent-playground-approval-actions button { min-height: 34px; font-weight: 600; }
|
|
193
|
+
.zhin-sandbox .agent-playground-approval-actions button.is-primary { background: var(--sb-primary); border-color: var(--sb-primary); color: var(--sb-primary-fg); }
|
|
194
|
+
.zhin-sandbox .agent-playground-approval-actions button.is-danger { background: var(--sb-danger-soft); border-color: var(--sb-danger-line); color: var(--sb-danger); }
|
|
195
|
+
.zhin-sandbox .agent-playground-approval-actions small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sb-primary); }
|
|
196
|
+
|
|
197
|
+
/* ---------- Message segments (formerly Tailwind utilities) ---------- */
|
|
198
|
+
.zhin-sandbox .sandbox-chip { display: inline-flex; align-items: center; margin: 0 2px; padding: 1px 6px; border-radius: var(--sb-radius-sm); background: var(--sb-muted); color: var(--sb-fg); font-size: 12px; }
|
|
199
|
+
.zhin-sandbox .sandbox-chip.is-mention { background: var(--sb-accent); }
|
|
200
|
+
.zhin-sandbox .sandbox-inline-face { display: inline-block; width: 24px; height: 24px; margin: 0 2px; vertical-align: middle; }
|
|
201
|
+
.zhin-sandbox .sandbox-segment-note { font-size: 12px; opacity: .8; }
|
|
202
|
+
.zhin-sandbox .sandbox-media-link { display: block; margin: 4px 0; }
|
|
203
|
+
.zhin-sandbox .sandbox-media-image { display: block; max-width: min(320px, 88%); border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); }
|
|
204
|
+
.zhin-sandbox .sandbox-media-video { display: block; max-width: min(360px, 92%); max-height: 288px; margin: 4px 0; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-muted); }
|
|
205
|
+
.zhin-sandbox .sandbox-media-audio { display: block; width: 100%; max-width: 384px; height: 40px; margin: 8px 0; }
|
|
206
|
+
.zhin-sandbox .sandbox-html-frame { display: block; width: 100%; min-width: 0; margin: 4px 0; border: 0; border-radius: var(--sb-radius-md); background: transparent; }
|
|
207
|
+
.zhin-sandbox .sandbox-reply-quote { margin-bottom: 4px; padding: 2px 8px; border: 1px dashed var(--sb-input); border-radius: var(--sb-radius-sm); font-size: 12px; color: var(--sb-muted-fg); }
|
|
208
|
+
.zhin-sandbox .sandbox-forward { display: grid; gap: 4px; margin: 4px 0; padding: 8px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); background: var(--sb-muted); font-size: 12px; }
|
|
209
|
+
.zhin-sandbox .sandbox-forward-title { font-weight: 600; }
|
|
210
|
+
.zhin-sandbox .sandbox-forward-list { display: grid; gap: 4px; padding-left: 8px; border-left: 2px solid var(--sb-border); }
|
|
211
|
+
.zhin-sandbox .sandbox-forward-more, .zhin-sandbox .sandbox-forward-empty { color: var(--sb-muted-fg); }
|
|
212
|
+
|
|
213
|
+
/* ---------- Rendered Markdown, lists, tables, code ---------- */
|
|
214
|
+
.zhin-sandbox .zhin-markdown { min-width: 0; color: inherit; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
|
|
215
|
+
.zhin-sandbox .zhin-markdown > * + * { margin-top: 8px; }
|
|
216
|
+
.zhin-sandbox .zhin-markdown--inverse { color: inherit; }
|
|
217
|
+
.zhin-sandbox .im-markdown-heading { font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
|
|
218
|
+
.zhin-sandbox .im-markdown-heading-1 { font-size: 20px; }
|
|
219
|
+
.zhin-sandbox .im-markdown-heading-2 { font-size: 18px; }
|
|
220
|
+
.zhin-sandbox .im-markdown-heading-3 { font-size: 16px; }
|
|
221
|
+
.zhin-sandbox .im-markdown-heading-4, .zhin-sandbox .im-markdown-heading-5, .zhin-sandbox .im-markdown-heading-6 { font-size: 14px; }
|
|
222
|
+
.zhin-sandbox .im-markdown-paragraph { margin: 0; }
|
|
223
|
+
.zhin-sandbox .im-markdown-quote { padding: 4px 12px; border-left: 3px solid var(--sb-border); color: var(--sb-muted-fg); }
|
|
224
|
+
.zhin-sandbox .im-markdown-list { padding-left: 22px; list-style: disc; }
|
|
225
|
+
.zhin-sandbox .im-markdown-list-ordered { list-style: decimal; }
|
|
226
|
+
.zhin-sandbox .im-markdown-list > li { padding-left: 2px; }
|
|
227
|
+
.zhin-sandbox .im-markdown-list > li + li { margin-top: 3px; }
|
|
228
|
+
.zhin-sandbox .im-markdown-list > li::marker { color: var(--sb-muted-fg); }
|
|
229
|
+
.zhin-sandbox .zhin-markdown-task { display: flex; align-items: baseline; gap: 8px; margin-left: -22px; list-style: none; }
|
|
230
|
+
.zhin-sandbox .zhin-markdown-task input { flex-shrink: 0; width: 14px; height: 14px; min-height: 0; margin: 0; padding: 0; accent-color: var(--sb-primary); transform: translateY(2px); }
|
|
231
|
+
.zhin-sandbox .zhin-markdown-rule { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--sb-border); }
|
|
232
|
+
.zhin-sandbox .im-inline-code { padding: 1px 6px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); background: var(--sb-muted); font-family: var(--sb-mono); font-size: 13px; }
|
|
233
|
+
.zhin-sandbox .im-message-link { color: var(--sb-primary); }
|
|
234
|
+
.zhin-sandbox .zhin-markdown-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-bg); }
|
|
235
|
+
.zhin-sandbox .zhin-markdown-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
|
|
236
|
+
.zhin-sandbox .zhin-markdown-table th, .zhin-sandbox .zhin-markdown-table td { padding: 8px 12px; border-right: 1px solid var(--sb-border); border-bottom: 1px solid var(--sb-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
|
|
237
|
+
.zhin-sandbox .zhin-markdown-table th { background: var(--sb-muted); font-weight: 650; white-space: nowrap; }
|
|
238
|
+
.zhin-sandbox .zhin-markdown-table tbody tr:nth-child(even) td { background: var(--sb-muted); }
|
|
239
|
+
.zhin-sandbox .zhin-markdown-table tr:last-child td { border-bottom: 0; }
|
|
240
|
+
.zhin-sandbox .zhin-markdown-table th:last-child, .zhin-sandbox .zhin-markdown-table td:last-child { border-right: 0; }
|
|
241
|
+
.zhin-sandbox .zhin-code-block { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; margin: 4px 0; border: 1px solid hsl(218 18% 28%); border-radius: var(--sb-radius-md); background: hsl(220 19% 10%); color: hsl(210 30% 92%); font-family: var(--sb-mono); }
|
|
242
|
+
.zhin-sandbox .zhin-code-toolbar { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 2px 6px 2px 12px; border-bottom: 1px solid hsl(218 16% 24%); background: hsl(220 18% 13%); }
|
|
243
|
+
.zhin-sandbox .zhin-code-language { color: hsl(210 14% 72%); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
|
|
244
|
+
.zhin-sandbox .zhin-code-streaming { color: hsl(151 48% 63%); font-size: 12px; }
|
|
245
|
+
.zhin-sandbox .zhin-code-streaming::before { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; content: ""; animation: sandbox-breathe 1.2s ease-in-out infinite; }
|
|
246
|
+
.zhin-sandbox .zhin-code-actions { display: flex; gap: 2px; margin-left: auto; }
|
|
247
|
+
.zhin-sandbox .zhin-code-actions button, .zhin-sandbox .zhin-code-expand { min-height: 28px; border: 0; border-radius: var(--sb-radius-sm); background: transparent; color: hsl(210 14% 76%); font-size: 12px; }
|
|
248
|
+
.zhin-sandbox .zhin-code-actions button:hover:not(:disabled), .zhin-sandbox .zhin-code-expand:hover:not(:disabled) { background: hsl(215 18% 21%); color: hsl(0 0% 100%); }
|
|
249
|
+
.zhin-sandbox .zhin-code-pre { max-width: 100%; overflow: auto; padding: 8px 0 10px; font: inherit; font-size: 13px; line-height: 1.65; tab-size: 2; }
|
|
250
|
+
.zhin-sandbox .zhin-code-pre--wrap .zhin-code-line-content { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
251
|
+
.zhin-sandbox .zhin-code-line { display: table-row; }
|
|
252
|
+
.zhin-sandbox .zhin-code-line-number { display: table-cell; width: 42px; padding: 0 12px 0 8px; color: hsl(214 12% 55%); text-align: right; user-select: none; }
|
|
253
|
+
.zhin-sandbox .zhin-code-line-content { display: table-cell; min-width: 100%; padding-right: 16px; white-space: pre; }
|
|
254
|
+
.zhin-sandbox .zhin-code-token--comment { color: hsl(148 23% 60%); font-style: italic; }
|
|
255
|
+
.zhin-sandbox .zhin-code-token--string { color: hsl(44 68% 70%); }
|
|
256
|
+
.zhin-sandbox .zhin-code-token--number { color: hsl(192 62% 68%); }
|
|
257
|
+
.zhin-sandbox .zhin-code-token--keyword { color: hsl(328 63% 73%); font-weight: 500; }
|
|
258
|
+
.zhin-sandbox .zhin-code-token--literal { color: hsl(268 72% 76%); }
|
|
259
|
+
.zhin-sandbox .zhin-code-expand { width: 100%; padding: 6px; border-top: 1px solid hsl(218 16% 22%); border-radius: 0; background: hsl(220 18% 12%); }
|
|
260
|
+
|
|
261
|
+
/* ---------- Recovery panel ---------- */
|
|
262
|
+
.zhin-sandbox .agent-playground-recovery { display: grid; flex: none; gap: 12px; max-height: min(40dvh, 24rem); margin: 16px; overflow: auto; font-size: 14px; }
|
|
263
|
+
.zhin-sandbox .agent-playground-recovery > section, .zhin-sandbox .agent-playground-recovery > details { min-width: 0; padding: 14px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-bg); }
|
|
264
|
+
.zhin-sandbox .agent-playground-recovery h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
|
|
265
|
+
.zhin-sandbox .agent-playground-recovery summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; cursor: pointer; }
|
|
266
|
+
.zhin-sandbox .agent-playground-recovery time { margin-left: auto; font-size: 12px; color: var(--sb-muted-fg); }
|
|
267
|
+
.zhin-sandbox .agent-playground-recovery details[open] summary { margin-bottom: 14px; }
|
|
268
|
+
.zhin-sandbox .agent-playground-recovery details > a { display: inline-flex; margin: 8px 12px 0 0; }
|
|
269
|
+
.zhin-sandbox .agent-playground-recovery > p[role=alert] { color: var(--sb-danger); overflow-wrap: anywhere; }
|
|
270
|
+
.zhin-sandbox .agent-playground-recovery > button, .zhin-sandbox .agent-playground-recovery > p > button { color: var(--sb-primary); }
|
|
271
|
+
.zhin-sandbox .agent-playground-main:has(> .agent-playground-recovery:not([hidden])) .agent-playground-empty { display: none; }
|
|
272
|
+
|
|
273
|
+
/* ---------- Inline run card ---------- */
|
|
274
|
+
.zhin-sandbox .agent-playground-inline-run { position: relative; overflow: hidden; margin-left: 40px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-lg); background: var(--sb-bg); }
|
|
275
|
+
.zhin-sandbox .agent-playground-inline-run-rail { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--sb-primary); }
|
|
276
|
+
.zhin-sandbox .agent-playground-inline-run.is-running .agent-playground-inline-run-rail { background: var(--sb-info); }
|
|
277
|
+
.zhin-sandbox .agent-playground-inline-run.is-failed .agent-playground-inline-run-rail { background: var(--sb-danger); }
|
|
278
|
+
.zhin-sandbox .agent-playground-inline-run.is-cancelled .agent-playground-inline-run-rail { background: var(--sb-warn); }
|
|
279
|
+
.zhin-sandbox .agent-playground-inline-run-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 14px 14px 12px 16px; }
|
|
280
|
+
.zhin-sandbox .agent-playground-inline-run-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--sb-primary-line); border-radius: var(--sb-radius-md); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
281
|
+
.zhin-sandbox .agent-playground-inline-run-copy { min-width: 0; }
|
|
282
|
+
.zhin-sandbox .agent-playground-inline-run-copy > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--sb-muted-fg); }
|
|
283
|
+
.zhin-sandbox .agent-playground-inline-run-copy h3 { font-size: 14px; font-weight: 700; }
|
|
284
|
+
.zhin-sandbox .agent-playground-inline-run-copy p { display: -webkit-box; margin-top: 3px; overflow: hidden; font-size: 12px; line-height: 1.5; color: var(--sb-muted-fg); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
285
|
+
.zhin-sandbox .agent-playground-inline-run-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
|
|
286
|
+
.zhin-sandbox .agent-playground-inline-run-actions button { min-height: 30px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
|
|
287
|
+
.zhin-sandbox .agent-playground-inline-run-actions button.is-stop { background: var(--sb-danger-soft); border-color: var(--sb-danger-line); color: var(--sb-danger); }
|
|
288
|
+
.zhin-sandbox .agent-playground-inline-run-metrics { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); margin: 0; border-top: 1px solid var(--sb-border); border-bottom: 1px solid var(--sb-border); background: var(--sb-muted); font-variant-numeric: tabular-nums; }
|
|
289
|
+
.zhin-sandbox .agent-playground-inline-run-metrics > div { display: flex; align-items: baseline; justify-content: center; gap: 5px; min-width: 0; padding: 7px 6px; border-right: 1px solid var(--sb-border); }
|
|
290
|
+
.zhin-sandbox .agent-playground-inline-run-metrics > div:last-child { border-right: 0; }
|
|
291
|
+
.zhin-sandbox .agent-playground-inline-run-metrics dt { font-size: 12px; color: var(--sb-muted-fg); }
|
|
292
|
+
.zhin-sandbox .agent-playground-inline-run-metrics dd { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
|
|
293
|
+
.zhin-sandbox .agent-playground-inline-run-metrics .has-problem dd { color: var(--sb-danger); }
|
|
294
|
+
.zhin-sandbox .agent-playground-inline-run-steps { display: grid; padding: 6px 14px 6px 16px; list-style: none; }
|
|
295
|
+
.zhin-sandbox .agent-playground-inline-run-steps li { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 34px; }
|
|
296
|
+
.zhin-sandbox .agent-playground-inline-run-steps li:not(:last-child)::after { position: absolute; top: 20px; bottom: -14px; left: 5px; width: 1px; background: var(--sb-border); content: ""; }
|
|
297
|
+
.zhin-sandbox .agent-playground-inline-run-steps i { position: relative; z-index: 1; width: 10px; height: 10px; border: 2px solid var(--sb-bg); border-radius: 50%; background: var(--sb-primary); box-shadow: 0 0 0 1px var(--sb-primary-line); }
|
|
298
|
+
.zhin-sandbox .agent-playground-inline-run-steps li.is-running i { background: var(--sb-info); animation: sandbox-breathe 1.4s ease-in-out infinite; }
|
|
299
|
+
.zhin-sandbox .agent-playground-inline-run-steps li.is-failed i, .zhin-sandbox .agent-playground-inline-run-steps li.is-denied i { background: var(--sb-danger); }
|
|
300
|
+
.zhin-sandbox .agent-playground-inline-run-steps li.is-cancelled i { background: var(--sb-warn); }
|
|
301
|
+
.zhin-sandbox .agent-playground-inline-run-steps li > div { display: flex; flex-direction: column; min-width: 0; }
|
|
302
|
+
.zhin-sandbox .agent-playground-inline-run-steps strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
|
303
|
+
.zhin-sandbox .agent-playground-inline-run-steps small { overflow: hidden; font-size: 12px; color: var(--sb-muted-fg); text-overflow: ellipsis; white-space: nowrap; }
|
|
304
|
+
.zhin-sandbox .agent-playground-inline-run-steps li > span { font-size: 12px; color: var(--sb-muted-fg); font-variant-numeric: tabular-nums; }
|
|
305
|
+
.zhin-sandbox .agent-playground-inline-run-steps li.is-failed > span, .zhin-sandbox .agent-playground-inline-run-steps li.is-denied > span { color: var(--sb-danger); }
|
|
306
|
+
.zhin-sandbox .agent-playground-inline-run-empty { padding: 12px 16px; font-size: 12px; text-align: center; color: var(--sb-muted-fg); }
|
|
307
|
+
.zhin-sandbox .agent-playground-inline-run footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px 8px 16px; }
|
|
308
|
+
.zhin-sandbox .agent-playground-inline-run footer button { min-height: 30px; padding: 2px 6px; border: 0; background: transparent; color: var(--sb-muted-fg); font-size: 12px; }
|
|
309
|
+
.zhin-sandbox .agent-playground-inline-run footer button:hover:not(:disabled) { color: var(--sb-primary); }
|
|
310
|
+
.zhin-sandbox .agent-playground-inline-run footer button:first-child svg { transition: transform .15s ease; }
|
|
311
|
+
.zhin-sandbox .agent-playground-inline-run footer button:first-child[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
312
|
+
|
|
313
|
+
/* ---------- Composer ---------- */
|
|
314
|
+
.zhin-sandbox .agent-playground-composer { position: relative; z-index: 2; display: grid; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--sb-border-soft); background: var(--sb-bg); }
|
|
315
|
+
.zhin-sandbox .sandbox-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
|
|
316
|
+
.zhin-sandbox .sandbox-toolbar-spacer { flex: 1; min-width: 16px; }
|
|
317
|
+
.zhin-sandbox .sandbox-tool-button { width: 34px; padding: 4px; color: var(--sb-muted-fg); }
|
|
318
|
+
.zhin-sandbox .sandbox-tool-button.is-active { background: var(--sb-primary); border-color: var(--sb-primary); color: var(--sb-primary-fg); }
|
|
319
|
+
.zhin-sandbox .sandbox-tool-button.is-active:hover:not(:disabled) { background: var(--sb-primary); opacity: .9; }
|
|
320
|
+
.zhin-sandbox .sandbox-composer-tabs { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border-radius: var(--sb-radius-md); background: var(--sb-muted); }
|
|
321
|
+
.zhin-sandbox .sandbox-composer-tabs button { min-height: 28px; padding: 2px 10px; border-color: transparent; background: transparent; color: var(--sb-muted-fg); font-size: 12px; white-space: nowrap; }
|
|
322
|
+
.zhin-sandbox .sandbox-composer-tabs button.active { background: var(--sb-bg); color: var(--sb-fg); box-shadow: 0 1px 4px var(--sb-shadow); }
|
|
323
|
+
.zhin-sandbox .sandbox-panel { display: grid; gap: 8px; max-height: 256px; overflow-y: auto; padding: 12px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-muted); }
|
|
324
|
+
.zhin-sandbox .sandbox-panel-hint { font-size: 12px; color: var(--sb-muted-fg); }
|
|
325
|
+
.zhin-sandbox .sandbox-panel .sandbox-submit { justify-self: start; }
|
|
326
|
+
.zhin-sandbox .sandbox-face-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 4px; }
|
|
327
|
+
.zhin-sandbox .sandbox-face-button { width: 100%; min-width: 0; height: 40px; padding: 0; }
|
|
328
|
+
.zhin-sandbox .sandbox-face-img { width: 32px; height: 32px; }
|
|
329
|
+
.zhin-sandbox .sandbox-empty-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; font-size: 13px; color: var(--sb-muted-fg); }
|
|
330
|
+
.zhin-sandbox .sandbox-empty-hint > svg { opacity: .5; }
|
|
331
|
+
.zhin-sandbox .sandbox-editor-row { display: flex; align-items: flex-start; gap: 8px; }
|
|
332
|
+
.zhin-sandbox .sandbox-editor-wrap { position: relative; flex: 1; min-width: 0; }
|
|
333
|
+
.zhin-sandbox .sandbox-send { min-height: 44px; padding: 8px 16px; font-weight: 600; }
|
|
334
|
+
.zhin-sandbox [contenteditable="true"] { min-height: 44px; padding: 10px 12px; background: var(--sb-muted); border: 1px solid var(--sb-input); border-radius: var(--sb-radius-md); line-height: 1.6; overflow-y: auto; outline: none; }
|
|
335
|
+
.zhin-sandbox [contenteditable="true"]:focus-visible { border-color: var(--sb-ring); outline: 2px solid var(--sb-ring); outline-offset: 1px; }
|
|
336
|
+
.zhin-sandbox [contenteditable="true"]:empty::before { content: attr(data-placeholder); color: var(--sb-muted-fg); pointer-events: none; }
|
|
337
|
+
.zhin-sandbox .editor-face { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
|
|
338
|
+
.zhin-sandbox .editor-image { max-width: 100%; max-height: 100px; display: inline-block; vertical-align: middle; border-radius: var(--sb-radius-sm); }
|
|
339
|
+
.zhin-sandbox .editor-video, .zhin-sandbox .editor-audio, .zhin-sandbox .editor-at { display: inline-flex; align-items: center; margin: 0 2px; padding: 0 8px; border-radius: var(--sb-radius-sm); background: var(--sb-accent); font-size: 13px; vertical-align: baseline; }
|
|
340
|
+
.zhin-sandbox .editor-at { color: var(--sb-primary); }
|
|
341
|
+
.zhin-sandbox .sandbox-markdown-preview { min-height: 44px; max-height: 240px; padding: 10px 12px; overflow: auto; background: var(--sb-muted); border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); }
|
|
342
|
+
.zhin-sandbox .sandbox-markdown-preview-empty { font-size: 13px; color: var(--sb-muted-fg); }
|
|
343
|
+
.zhin-sandbox .sandbox-at-popover { position: absolute; z-index: 50; min-width: 240px; max-height: 288px; overflow-y: auto; padding: 4px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: hsl(var(--popover, 0 0% 100%)); box-shadow: 0 8px 24px var(--sb-shadow); }
|
|
344
|
+
.zhin-sandbox .sandbox-at-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--sb-radius-sm); cursor: pointer; }
|
|
345
|
+
.zhin-sandbox .sandbox-at-item:hover { background: var(--sb-accent); }
|
|
346
|
+
.zhin-sandbox .sandbox-at-item > svg { flex-shrink: 0; color: var(--sb-muted-fg); }
|
|
347
|
+
.zhin-sandbox .sandbox-at-name { font-size: 13px; font-weight: 600; }
|
|
348
|
+
.zhin-sandbox .sandbox-at-id { font-size: 12px; color: var(--sb-muted-fg); }
|
|
349
|
+
.zhin-sandbox .sandbox-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; line-height: 1.8; color: var(--sb-muted-fg); }
|
|
350
|
+
.zhin-sandbox .sandbox-hints > svg { flex-shrink: 0; }
|
|
351
|
+
.zhin-sandbox .sandbox-hint-key { padding: 1px 6px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); background: var(--sb-muted); color: var(--sb-fg); font-family: var(--sb-mono); font-size: 12px; line-height: 1.4; }
|
|
352
|
+
.zhin-sandbox .sandbox-hint-text { margin-right: 6px; }
|
|
353
|
+
|
|
354
|
+
/* ---------- Inspector ---------- */
|
|
355
|
+
.zhin-sandbox .agent-playground-inspector { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; width: min(360px, 90%); min-width: 0; overflow-y: auto; background: var(--sb-sidebar); border-left: 1px solid var(--sb-border); box-shadow: -12px 0 32px var(--sb-shadow); scrollbar-width: thin; }
|
|
356
|
+
.zhin-sandbox .agent-playground-inspector-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 12px 16px; border-bottom: 1px solid var(--sb-border-soft); }
|
|
357
|
+
.zhin-sandbox .agent-playground-inspector-head > div:last-child { display: flex; gap: 6px; }
|
|
358
|
+
.zhin-sandbox .agent-playground-inspector-head > div:first-child > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--sb-primary); }
|
|
359
|
+
.zhin-sandbox .agent-playground-inspector-head h2 { font-size: 15px; font-weight: 700; }
|
|
360
|
+
.zhin-sandbox .agent-playground-inspector-head button { width: 34px; padding: 0; color: var(--sb-muted-fg); }
|
|
361
|
+
.zhin-sandbox .agent-playground-inspector-tabs { display: grid; flex-shrink: 0; grid-template-columns: 1fr 1.35fr; gap: 4px; margin: 10px 12px 0; padding: 3px; border: 1px solid var(--sb-border-soft); border-radius: var(--sb-radius-md); background: var(--sb-bg); }
|
|
362
|
+
.zhin-sandbox .agent-playground-inspector-tabs button { min-width: 0; min-height: 32px; border-color: transparent; background: transparent; color: var(--sb-muted-fg); font-size: 12px; font-weight: 600; }
|
|
363
|
+
.zhin-sandbox .agent-playground-inspector-tabs button.active { background: var(--sb-muted); border-color: var(--sb-border); color: var(--sb-fg); }
|
|
364
|
+
.zhin-sandbox .agent-playground-inspector-tabs button span { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--sb-accent); color: var(--sb-muted-fg); font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
365
|
+
.zhin-sandbox .agent-playground-inspector-view { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
366
|
+
.zhin-sandbox .agent-playground-inspector-section { padding: 14px; border-bottom: 1px solid var(--sb-border-soft); }
|
|
367
|
+
.zhin-sandbox .agent-playground-inspector-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 650; }
|
|
368
|
+
.zhin-sandbox .agent-playground-inspector-title small { font-size: 12px; font-weight: 500; letter-spacing: .03em; color: var(--sb-muted-fg); }
|
|
369
|
+
.zhin-sandbox .agent-playground-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-bg); }
|
|
370
|
+
.zhin-sandbox .agent-playground-metrics > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; min-width: 0; padding: 10px; }
|
|
371
|
+
.zhin-sandbox .agent-playground-metrics > div:nth-child(odd) { border-right: 1px solid var(--sb-border); }
|
|
372
|
+
.zhin-sandbox .agent-playground-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--sb-border); }
|
|
373
|
+
.zhin-sandbox .agent-playground-metrics svg { grid-row: span 2; width: 15px; height: 15px; color: var(--sb-primary); }
|
|
374
|
+
.zhin-sandbox .agent-playground-metrics strong { overflow: hidden; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
|
|
375
|
+
.zhin-sandbox .agent-playground-metrics span { font-size: 12px; color: var(--sb-muted-fg); }
|
|
376
|
+
.zhin-sandbox .agent-playground-metrics .has-problem svg, .zhin-sandbox .agent-playground-metrics .has-problem strong { color: var(--sb-danger); }
|
|
377
|
+
.zhin-sandbox .agent-playground-context-list { display: grid; }
|
|
378
|
+
.zhin-sandbox .agent-playground-context-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 6px 0; border-bottom: 1px dashed var(--sb-border); font-size: 12px; }
|
|
379
|
+
.zhin-sandbox .agent-playground-context-list > div:last-child { border-bottom: 0; }
|
|
380
|
+
.zhin-sandbox .agent-playground-context-list dt { flex-shrink: 0; color: var(--sb-muted-fg); }
|
|
381
|
+
.zhin-sandbox .agent-playground-context-list dd { min-width: 0; overflow: hidden; font-family: var(--sb-mono); text-align: right; text-overflow: ellipsis; white-space: nowrap; }
|
|
382
|
+
.zhin-sandbox .agent-playground-trace-section { flex: 1; }
|
|
383
|
+
.zhin-sandbox .agent-playground-trace-list { position: relative; display: grid; }
|
|
384
|
+
.zhin-sandbox .agent-playground-trace-list::before { position: absolute; top: 10px; bottom: 10px; left: 5px; width: 1px; background: var(--sb-border); content: ""; }
|
|
385
|
+
.zhin-sandbox .agent-playground-trace-item { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: start; gap: 8px; padding: 6px 0; font-size: 12px; }
|
|
386
|
+
.zhin-sandbox .agent-playground-trace-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 5px; border: 2px solid var(--sb-sidebar); border-radius: 50%; background: var(--sb-muted-fg); box-shadow: 0 0 0 1px var(--sb-border); }
|
|
387
|
+
.zhin-sandbox .agent-playground-trace-item.is-success .agent-playground-trace-dot { background: var(--sb-ok); }
|
|
388
|
+
.zhin-sandbox .agent-playground-trace-item.is-running .agent-playground-trace-dot, .zhin-sandbox .agent-playground-trace-item.is-thinking .agent-playground-trace-dot { background: var(--sb-info); }
|
|
389
|
+
.zhin-sandbox .agent-playground-trace-item.is-tool .agent-playground-trace-dot, .zhin-sandbox .agent-playground-trace-item.is-usage .agent-playground-trace-dot { background: var(--sb-primary); }
|
|
390
|
+
.zhin-sandbox .agent-playground-trace-item.is-capability .agent-playground-trace-dot { background: var(--sb-warn); }
|
|
391
|
+
.zhin-sandbox .agent-playground-trace-item.is-problem .agent-playground-trace-dot { background: var(--sb-danger); }
|
|
392
|
+
.zhin-sandbox .agent-playground-trace-item > div { display: flex; flex-direction: column; min-width: 0; }
|
|
393
|
+
.zhin-sandbox .agent-playground-trace-item strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
|
|
394
|
+
.zhin-sandbox .agent-playground-trace-item small { overflow: hidden; font-size: 12px; color: var(--sb-muted-fg); text-overflow: ellipsis; white-space: nowrap; }
|
|
395
|
+
.zhin-sandbox .agent-playground-trace-item time { margin-top: 2px; font-size: 12px; color: var(--sb-muted-fg); font-variant-numeric: tabular-nums; }
|
|
396
|
+
.zhin-sandbox .agent-playground-trace-loading, .zhin-sandbox .agent-playground-trace-empty, .zhin-sandbox .agent-playground-trace-notice, .zhin-sandbox .agent-playground-artifact-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 80px; padding: 12px; border: 1px dashed var(--sb-border); border-radius: var(--sb-radius-md); font-size: 12px; line-height: 1.5; text-align: center; color: var(--sb-muted-fg); }
|
|
397
|
+
.zhin-sandbox .agent-playground-artifact-empty { flex-direction: column; min-height: 104px; }
|
|
398
|
+
.zhin-sandbox .agent-playground-trace-notice { min-height: 0; margin-bottom: 10px; border-color: var(--sb-warn-line); color: var(--sb-warn); }
|
|
399
|
+
.zhin-sandbox .agent-playground-trace-loading i { width: 6px; height: 6px; border-radius: 50%; background: var(--sb-primary); animation: sandbox-pulse .9s ease-in-out infinite alternate; }
|
|
400
|
+
.zhin-sandbox .agent-playground-trace-loading i:nth-child(2) { animation-delay: .15s; }
|
|
401
|
+
.zhin-sandbox .agent-playground-trace-loading i:nth-child(3) { animation-delay: .3s; }
|
|
402
|
+
.zhin-sandbox .agent-playground-task-section, .zhin-sandbox .agent-playground-artifact-section { flex: 0 0 auto; }
|
|
403
|
+
.zhin-sandbox .agent-playground-artifact-section { flex: 1 0 auto; }
|
|
404
|
+
.zhin-sandbox .agent-playground-task-list, .zhin-sandbox .agent-playground-artifact-list { display: grid; gap: 8px; }
|
|
405
|
+
.zhin-sandbox .agent-playground-task-list article { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 2px 8px; padding: 10px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-bg); }
|
|
406
|
+
.zhin-sandbox .agent-playground-task-list article > i { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--sb-muted-fg); }
|
|
407
|
+
.zhin-sandbox .agent-playground-task-list article.is-running > i { background: var(--sb-info); }
|
|
408
|
+
.zhin-sandbox .agent-playground-task-list article.is-completed > i { background: var(--sb-ok); }
|
|
409
|
+
.zhin-sandbox .agent-playground-task-list article.is-failed > i { background: var(--sb-danger); }
|
|
410
|
+
.zhin-sandbox .agent-playground-task-list article.is-cancelled > i { background: var(--sb-warn); }
|
|
411
|
+
.zhin-sandbox .agent-playground-task-list article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
|
|
412
|
+
.zhin-sandbox .agent-playground-task-list strong { font-size: 13px; font-weight: 650; }
|
|
413
|
+
.zhin-sandbox .agent-playground-task-list code { overflow: hidden; font-family: var(--sb-mono); font-size: 12px; color: var(--sb-muted-fg); text-overflow: ellipsis; }
|
|
414
|
+
.zhin-sandbox .agent-playground-task-list dl { display: grid; grid-column: 2; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--sb-border); }
|
|
415
|
+
.zhin-sandbox .agent-playground-task-list dl > div { display: flex; flex-direction: column; }
|
|
416
|
+
.zhin-sandbox .agent-playground-task-list dt { font-size: 12px; color: var(--sb-muted-fg); }
|
|
417
|
+
.zhin-sandbox .agent-playground-task-list dd { font-size: 12px; font-variant-numeric: tabular-nums; }
|
|
418
|
+
.zhin-sandbox .agent-playground-artifact-list article { overflow: hidden; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-md); background: var(--sb-bg); }
|
|
419
|
+
.zhin-sandbox .agent-playground-artifact-list article.is-expanded { border-color: var(--sb-primary-line); }
|
|
420
|
+
.zhin-sandbox .agent-playground-artifact-list article > button { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 0; background: transparent; text-align: left; }
|
|
421
|
+
.zhin-sandbox .agent-playground-artifact-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--sb-primary-line); border-radius: var(--sb-radius-sm); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
422
|
+
.zhin-sandbox .agent-playground-artifact-list article > button > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
|
|
423
|
+
.zhin-sandbox .agent-playground-artifact-list strong, .zhin-sandbox .agent-playground-artifact-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
424
|
+
.zhin-sandbox .agent-playground-artifact-list strong { font-size: 13px; font-weight: 600; }
|
|
425
|
+
.zhin-sandbox .agent-playground-artifact-list small, .zhin-sandbox .agent-playground-artifact-list em { font-size: 12px; font-style: normal; color: var(--sb-muted-fg); }
|
|
426
|
+
.zhin-sandbox .agent-playground-artifact-list article.is-completed em { color: var(--sb-ok); }
|
|
427
|
+
.zhin-sandbox .agent-playground-artifact-list article.is-failed em, .zhin-sandbox .agent-playground-artifact-list article.is-denied em { color: var(--sb-danger); }
|
|
428
|
+
.zhin-sandbox .agent-playground-artifact-list article > button > svg { color: var(--sb-muted-fg); transition: transform .16s ease; }
|
|
429
|
+
.zhin-sandbox .agent-playground-artifact-list article.is-expanded > button > svg { transform: rotate(180deg); }
|
|
430
|
+
.zhin-sandbox .agent-playground-artifact-detail { display: grid; gap: 8px; padding: 0 10px 10px 46px; font-size: 12px; }
|
|
431
|
+
.zhin-sandbox .agent-playground-artifact-detail > code { font-family: var(--sb-mono); font-size: 12px; color: var(--sb-muted-fg); overflow-wrap: anywhere; }
|
|
432
|
+
.zhin-sandbox .agent-playground-artifact-detail pre { max-height: 240px; overflow: auto; padding: 10px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); background: var(--sb-muted); font-family: var(--sb-mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
|
|
433
|
+
.zhin-sandbox .agent-playground-artifact-detail footer { display: flex; justify-content: space-between; gap: 8px; color: var(--sb-muted-fg); }
|
|
434
|
+
.zhin-sandbox .sandbox-file-link { display: inline-flex; align-items: center; gap: 4px; color: var(--sb-primary); }
|
|
435
|
+
.zhin-sandbox .agent-playground-studio-link { display: flex; flex-shrink: 0; flex-direction: column; gap: 4px; margin: 12px; padding: 10px 12px; border: 1px solid var(--sb-primary-line); border-radius: var(--sb-radius-md); background: var(--sb-primary-soft); color: var(--sb-primary); font-size: 13px; text-decoration: none; }
|
|
436
|
+
.zhin-sandbox .agent-playground-studio-link > span { display: flex; align-items: center; gap: 6px; font-weight: 650; }
|
|
437
|
+
.zhin-sandbox .agent-playground-studio-link code { overflow: hidden; font-family: var(--sb-mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
|
|
438
|
+
|
|
439
|
+
/* ---------- Animations ---------- */
|
|
440
|
+
@keyframes sandbox-spin { to { transform: rotate(360deg); } }
|
|
441
|
+
@keyframes sandbox-breathe { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
|
|
442
|
+
@keyframes sandbox-pulse { from { opacity: .25; transform: translateY(1px); } to { opacity: 1; transform: translateY(-1px); } }
|
|
443
|
+
|
|
444
|
+
/* ---------- Responsive ---------- */
|
|
445
|
+
@media (min-width: 1280px) {
|
|
446
|
+
.zhin-sandbox.agent-playground-shell.has-inspector { grid-template-columns: 232px minmax(0,1fr) 330px; }
|
|
447
|
+
.zhin-sandbox .agent-playground-inspector { position: static; width: auto; box-shadow: none; }
|
|
448
|
+
}
|
|
449
|
+
@media (max-width: 1279px) {
|
|
450
|
+
.zhin-sandbox .agent-playground-inspector-overlay { display: block; position: absolute; inset: 0; z-index: 25; background: var(--sb-overlay); }
|
|
451
|
+
}
|
|
452
|
+
@media (max-width: 1023px) {
|
|
453
|
+
.zhin-sandbox .agent-playground-inline-run-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
|
|
454
|
+
.zhin-sandbox .agent-playground-inline-run-metrics > div:nth-child(3) { border-right: 0; }
|
|
455
|
+
.zhin-sandbox .agent-playground-inline-run-metrics > div:nth-child(n+4) { border-top: 1px solid var(--sb-border); }
|
|
456
|
+
}
|
|
457
|
+
@media (max-width: 767px) {
|
|
458
|
+
.zhin-sandbox.agent-playground-shell { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); height: calc(100dvh - 92px); min-height: 480px; border-radius: var(--sb-radius-md); }
|
|
459
|
+
.zhin-sandbox button, .zhin-sandbox .agent-playground-run-actions > a { min-height: 44px; min-width: 44px; }
|
|
460
|
+
.zhin-sandbox :where(input:not([type="checkbox"]), select) { min-height: 44px; font-size: 16px; }
|
|
461
|
+
.zhin-sandbox .agent-playground-network-toggle { min-height: 44px; }
|
|
462
|
+
.zhin-sandbox .agent-playground-network-toggle i { width: 44px; height: 26px; }
|
|
463
|
+
.zhin-sandbox .agent-playground-network-toggle i::after { width: 20px; height: 20px; }
|
|
464
|
+
.zhin-sandbox .agent-playground-network-toggle input:checked + i::after { transform: translateX(18px); }
|
|
465
|
+
.zhin-sandbox .agent-playground-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--sb-border); background: var(--sb-bg); }
|
|
466
|
+
.zhin-sandbox .agent-playground-mobilebar strong { font-size: 14px; }
|
|
467
|
+
.zhin-sandbox .agent-playground-mobilebar button { min-height: 44px; padding: 6px 10px; border-color: transparent; background: transparent; color: var(--sb-muted-fg); font-size: 13px; }
|
|
468
|
+
.zhin-sandbox .agent-playground-sessions { display: none; position: absolute; inset: 0 auto 0 0; z-index: 40; width: min(300px, 88%); box-shadow: 12px 0 32px var(--sb-shadow); }
|
|
469
|
+
.zhin-sandbox .agent-playground-sessions.show { display: flex; }
|
|
470
|
+
.zhin-sandbox .channel-overlay { display: block; position: absolute; inset: 0; z-index: 35; background: var(--sb-overlay); }
|
|
471
|
+
.zhin-sandbox .agent-playground-runbar { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 12px; }
|
|
472
|
+
/* In a column the 14rem flex-basis would become the identity row height. */
|
|
473
|
+
.zhin-sandbox .agent-playground-run-identity { flex: 0 0 auto; width: 100%; }
|
|
474
|
+
.zhin-sandbox .agent-playground-run-actions { flex-wrap: nowrap; justify-content: flex-start; margin-left: 0; overflow-x: auto; max-width: 100%; }
|
|
475
|
+
.zhin-sandbox .agent-playground-run-actions > button[aria-controls="sandbox-run-inspector"] { display: none; }
|
|
476
|
+
.zhin-sandbox .agent-playground-run-actions > a, .zhin-sandbox .agent-playground-run-actions > button { flex-shrink: 0; white-space: nowrap; width: auto; font-size: 13px; }
|
|
477
|
+
.zhin-sandbox .agent-playground-run-title span { display: none; }
|
|
478
|
+
.zhin-sandbox .agent-playground-message-scroll { padding: 16px 10px; }
|
|
479
|
+
.zhin-sandbox .agent-playground-message-main { max-width: calc(100% - 40px); }
|
|
480
|
+
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-main { max-width: 86%; }
|
|
481
|
+
.zhin-sandbox .agent-playground-message-content { padding: 8px 12px; }
|
|
482
|
+
.zhin-sandbox .agent-playground-composer { padding: 10px 12px; }
|
|
483
|
+
.zhin-sandbox .sandbox-toolbar-spacer { display: none; }
|
|
484
|
+
.zhin-sandbox .sandbox-composer-tabs button { padding: 4px 12px; }
|
|
485
|
+
.zhin-sandbox .sandbox-face-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
|
|
486
|
+
.zhin-sandbox .sandbox-face-button { height: 44px; }
|
|
487
|
+
.zhin-sandbox .sandbox-hints { display: none; }
|
|
488
|
+
.zhin-sandbox .agent-playground-confirm, .zhin-sandbox .sandbox-notice { padding: 10px 12px; flex-wrap: wrap; }
|
|
489
|
+
.zhin-sandbox .agent-playground-confirm > div { flex-basis: 100%; }
|
|
490
|
+
.zhin-sandbox .agent-playground-run-settings { max-height: 256px; overflow-y: auto; padding: 12px; }
|
|
491
|
+
.zhin-sandbox .agent-playground-empty { padding: 20px 0; }
|
|
492
|
+
.zhin-sandbox .agent-playground-prompts { grid-template-columns: 1fr; }
|
|
493
|
+
.zhin-sandbox .agent-playground-inline-run { margin-left: 0; }
|
|
494
|
+
.zhin-sandbox .agent-playground-inline-run-head { grid-template-columns: auto minmax(0,1fr); }
|
|
495
|
+
.zhin-sandbox .agent-playground-inline-run-actions { grid-column: 1 / -1; justify-content: flex-start; }
|
|
496
|
+
.zhin-sandbox .agent-playground-scope-picker button, .zhin-sandbox .agent-playground-section-label button, .zhin-sandbox .agent-playground-inspector-tabs button, .zhin-sandbox .sandbox-composer-tabs button, .zhin-sandbox .agent-playground-confirm button, .zhin-sandbox .agent-playground-inline-run-actions button, .zhin-sandbox .agent-playground-inline-run footer button, .zhin-sandbox .zhin-code-actions button, .zhin-sandbox .zhin-code-expand, .zhin-sandbox .sandbox-notice button, .zhin-sandbox .agent-playground-history-navigation button, .zhin-sandbox .agent-playground-inspector-head button, .zhin-sandbox .sandbox-tool-button { min-height: 44px; min-width: 44px; }
|
|
497
|
+
}
|
|
498
|
+
@media (prefers-reduced-motion: reduce) {
|
|
499
|
+
.zhin-sandbox *, .zhin-sandbox *::before, .zhin-sandbox *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
|
|
500
|
+
}
|
|
501
|
+
`;
|