@zhin.js/adapter-sandbox 1.1.36 → 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.
- package/CHANGELOG.md +49 -0
- package/README.md +5 -0
- package/package.json +20 -17
- package/pages/index/ConversationRecoveryPanel.js +5 -4
- package/pages/index/ConversationRecoveryPanel.tsx +7 -6
- package/pages/index/HtmlMessage.js +45 -8
- package/pages/index/HtmlMessage.tsx +67 -17
- package/pages/index/SandboxChat.js +135 -66
- package/pages/index/SandboxChat.tsx +353 -273
- package/pages/index/agentTrace.js +1 -1
- package/pages/index/agentTrace.ts +1 -1
- package/pages/index/conversationRecovery.js +28 -0
- package/pages/index/conversationRecovery.ts +41 -0
- package/pages/index/index.js +2 -0
- package/pages/index/index.tsx +2 -0
- package/pages/index/messages.js +2 -1
- package/pages/index/messages.ts +2 -1
- package/pages/index/styles.js +322 -309
- package/pages/index/styles.ts +322 -309
- package/pages/index/workspaceStyles.js +1737 -0
- package/pages/index/workspaceStyles.ts +1736 -0
package/pages/index/styles.ts
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
* (`--background`, `--primary`, ...) with a light fallback so the page also renders outside the Console, and
|
|
4
4
|
* nothing here relies on Tailwind utilities or on the shared adapter-console stylesheet being injected first.
|
|
5
5
|
* Rules: no hex literals, no gradients, no text below 12px, tap targets of at least 44px under 768px.
|
|
6
|
+
* Sizes are Console tokens (ADR 0063 P2): font sizes / weights, spacing, radii and elevation read
|
|
7
|
+
* `var(--console-…)` from @zhin.js/console-ui, breakpoints are the Console ones (40 / 48 / 64 / 90rem).
|
|
8
|
+
* The code-block syntax palette below keeps its own colors (a code theme, not UI chrome).
|
|
6
9
|
*/
|
|
7
10
|
export const sandboxStyles = `
|
|
8
11
|
.zhin-sandbox {
|
|
@@ -31,489 +34,499 @@ export const sandboxStyles = `
|
|
|
31
34
|
--sb-info: hsl(var(--info, 222 62% 50%));
|
|
32
35
|
--sb-overlay: hsl(var(--im-shadow, 0 0% 0%) / .5);
|
|
33
36
|
--sb-shadow: hsl(var(--im-shadow, 0 0% 0%) / .16);
|
|
34
|
-
--sb-radius-sm: var(--console-radius-sm, 6px);
|
|
35
|
-
--sb-radius-md: var(--console-radius-md, 10px);
|
|
36
|
-
--sb-radius-lg: var(--console-radius-lg, 14px);
|
|
37
37
|
--sb-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'PingFang SC', monospace;
|
|
38
38
|
color: var(--sb-fg);
|
|
39
39
|
font-family: 'Avenir Next', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
|
|
40
|
-
font-size:
|
|
40
|
+
font-size: var(--console-text-body);
|
|
41
41
|
line-height: 1.6;
|
|
42
42
|
text-align: left;
|
|
43
43
|
}
|
|
44
44
|
.zhin-sandbox *, .zhin-sandbox *::before, .zhin-sandbox *::after { box-sizing: border-box; }
|
|
45
45
|
.zhin-sandbox :where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, pre) { margin: 0; }
|
|
46
|
-
.zhin-sandbox :where(button, input, select, textarea) { font: inherit; color: inherit; }
|
|
47
|
-
.zhin-sandbox :where(a) { color: var(--sb-primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
|
|
48
|
-
.zhin-sandbox :where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--sb-ring); outline-offset: 2px; }
|
|
46
|
+
.zhin-sandbox :where(button, input, select, textarea):where(:not(.console-control, [data-state])) { font: inherit; color: inherit; }
|
|
47
|
+
.zhin-sandbox :where(a):where(:not(.console-control, [data-state])) { color: var(--sb-primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
|
|
48
|
+
.zhin-sandbox :where(button, a, input, select, textarea, summary):focus-visible:where(:not(.console-control, [data-state])) { outline: 2px solid var(--sb-ring); outline-offset: 2px; }
|
|
49
49
|
.zhin-sandbox [hidden] { display: none !important; }
|
|
50
50
|
|
|
51
51
|
/* ---------- Shell ---------- */
|
|
52
|
-
.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(--
|
|
52
|
+
.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(--console-radius-3); background: var(--sb-bg); }
|
|
53
53
|
|
|
54
54
|
/* ---------- Shared controls ---------- */
|
|
55
|
-
.zhin-sandbox button { display: inline-flex; justify-content: center; align-items: center; gap:
|
|
56
|
-
.zhin-sandbox button:hover:not(:disabled) { background: var(--sb-accent); }
|
|
57
|
-
.zhin-sandbox button:disabled { opacity: .5; cursor: not-allowed; }
|
|
58
|
-
.zhin-sandbox button.primary
|
|
59
|
-
.zhin-sandbox button.primary:hover:not(:disabled)
|
|
60
|
-
.zhin-sandbox button.danger { background: var(--sb-danger); color: var(--sb-danger-fg); border-color: var(--sb-danger); }
|
|
61
|
-
.zhin-sandbox button.danger:hover:not(:disabled) { background: var(--sb-danger); opacity: .9; }
|
|
62
|
-
.zhin-sandbox :where(input:not([type="checkbox"]), select) { width: 100%; min-width: 0; min-height: 34px; padding:
|
|
63
|
-
.zhin-sandbox :where(input, select):disabled { opacity: .6; cursor: not-allowed; background: var(--sb-muted); }
|
|
64
|
-
.zhin-sandbox :where(input)::placeholder { color: var(--sb-muted-fg); }
|
|
65
|
-
.zhin-sandbox .sandbox-input { width: 100%; }
|
|
55
|
+
.zhin-sandbox button:where(:not(.console-control, [data-state])) { display: inline-flex; justify-content: center; align-items: center; gap: var(--console-space-2); min-height: 34px; padding: var(--console-space-2) var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); background: var(--sb-bg); color: var(--sb-fg); font-size: var(--console-text-label); line-height: 1.4; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
|
|
56
|
+
.zhin-sandbox button:hover:not(:disabled):where(:not(.console-control, [data-state])) { background: var(--sb-accent); }
|
|
57
|
+
.zhin-sandbox button:disabled:where(:not(.console-control, [data-state])) { opacity: .5; cursor: not-allowed; }
|
|
58
|
+
.zhin-sandbox button.primary:where(:not(.console-control, [data-state])) { background: var(--sb-primary); color: var(--sb-primary-fg); border-color: var(--sb-primary); }
|
|
59
|
+
.zhin-sandbox button.primary:hover:not(:disabled):where(:not(.console-control, [data-state])) { background: var(--sb-primary); opacity: .9; }
|
|
60
|
+
.zhin-sandbox button.danger:where(:not(.console-control, [data-state])) { background: var(--sb-danger); color: var(--sb-danger-fg); border-color: var(--sb-danger); }
|
|
61
|
+
.zhin-sandbox button.danger:hover:not(:disabled):where(:not(.console-control, [data-state])) { background: var(--sb-danger); opacity: .9; }
|
|
62
|
+
.zhin-sandbox :where(input:not([type="checkbox"]), select):where(:not(.console-control, [data-state])) { width: 100%; min-width: 0; min-height: 34px; padding: var(--console-space-2) var(--console-space-3); border: 1px solid var(--sb-input); border-radius: var(--console-radius-1); background: var(--sb-bg); color: var(--sb-fg); font-size: var(--console-text-label); line-height: 1.5; }
|
|
63
|
+
.zhin-sandbox :where(input, select):disabled:where(:not(.console-control, [data-state])) { opacity: .6; cursor: not-allowed; background: var(--sb-muted); }
|
|
64
|
+
.zhin-sandbox :where(input):where(:not(.console-control, [data-state]))::placeholder { color: var(--sb-muted-fg); }
|
|
66
65
|
.zhin-sandbox .is-spinning { animation: sandbox-spin 1s linear infinite; }
|
|
67
66
|
|
|
68
67
|
/* ---------- Mobile bar and overlays (hidden on wide screens) ---------- */
|
|
69
|
-
.zhin-sandbox .agent-playground-mobilebar { display: none; }
|
|
70
68
|
.zhin-sandbox .agent-playground-inspector-overlay, .zhin-sandbox .channel-overlay { display: none; }
|
|
71
69
|
|
|
72
70
|
/* ---------- Sessions sidebar ---------- */
|
|
73
71
|
.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); }
|
|
74
|
-
.zhin-sandbox .agent-playground-brand { padding:
|
|
75
|
-
.zhin-sandbox .agent-playground-brand > div { display: flex; align-items: center; justify-content: space-between; gap:
|
|
76
|
-
.zhin-sandbox .agent-playground-brand > div > div { display: flex; align-items: center; gap:
|
|
77
|
-
.zhin-sandbox .agent-playground-brand h2 { font-size:
|
|
78
|
-
.zhin-sandbox .agent-playground-brand small { display: block; font-size:
|
|
72
|
+
.zhin-sandbox .agent-playground-brand { padding: var(--console-space-5) var(--console-space-4) var(--console-space-4); border-bottom: 1px solid var(--sb-border-soft); }
|
|
73
|
+
.zhin-sandbox .agent-playground-brand > div { display: flex; align-items: center; justify-content: space-between; gap: var(--console-space-2); }
|
|
74
|
+
.zhin-sandbox .agent-playground-brand > div > div { display: flex; align-items: center; gap: var(--console-space-3); min-width: 0; }
|
|
75
|
+
.zhin-sandbox .agent-playground-brand h2 { font-size: var(--console-text-section); font-weight: var(--console-weight-strong); letter-spacing: -.02em; }
|
|
76
|
+
.zhin-sandbox .agent-playground-brand small { display: block; font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
79
77
|
.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); }
|
|
80
|
-
.zhin-sandbox .agent-playground-mark { width: 32px; height: 32px; border: 1px solid var(--sb-primary-line); border-radius: var(--
|
|
81
|
-
.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:
|
|
78
|
+
.zhin-sandbox .agent-playground-mark { width: 32px; height: 32px; border: 1px solid var(--sb-primary-line); border-radius: var(--console-radius-2); }
|
|
79
|
+
.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: var(--console-radius-full); background: var(--sb-bg); color: var(--sb-warn); }
|
|
82
80
|
.zhin-sandbox .agent-playground-connection.is-online { color: var(--sb-ok); border-color: var(--sb-primary-line); }
|
|
83
81
|
.zhin-sandbox .is-online { color: var(--sb-ok); }
|
|
84
|
-
.zhin-sandbox .agent-playground-section-label { display: flex; align-items: center; gap:
|
|
82
|
+
.zhin-sandbox .agent-playground-section-label { display: flex; align-items: center; gap: var(--console-space-2); padding: var(--console-space-3) var(--console-space-4) var(--console-space-2) var(--console-space-4); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); letter-spacing: .04em; color: var(--sb-muted-fg); }
|
|
85
83
|
.zhin-sandbox .agent-playground-section-label span:nth-child(2) { font-variant-numeric: tabular-nums; }
|
|
86
|
-
.zhin-sandbox .agent-playground-section-label button { margin-left: auto; min-height: 28px; min-width: 28px; padding:
|
|
87
|
-
.zhin-sandbox .agent-playground-session-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0
|
|
88
|
-
.zhin-sandbox .agent-playground-session { position: relative; width: 100%; justify-content: flex-start; gap:
|
|
84
|
+
.zhin-sandbox .agent-playground-section-label button:where(:not(.console-control, [data-state])) { margin-left: auto; min-height: 28px; min-width: 28px; padding: var(--console-space-1); background: transparent; border-color: transparent; color: var(--sb-muted-fg); }
|
|
85
|
+
.zhin-sandbox .agent-playground-session-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--console-space-2) var(--console-space-3); scrollbar-width: thin; }
|
|
86
|
+
.zhin-sandbox .agent-playground-session { position: relative; width: 100%; justify-content: flex-start; gap: var(--console-space-3); margin: var(--console-space-1) 0; padding: var(--console-space-2) var(--console-space-3); border: 0; border-radius: var(--console-radius-2); background: transparent; text-align: left; }
|
|
89
87
|
.zhin-sandbox .agent-playground-session:hover:not(:disabled) { background: var(--sb-bg); }
|
|
90
|
-
.zhin-sandbox .agent-playground-session.active { background: var(--sb-bg);
|
|
91
|
-
.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(--
|
|
88
|
+
.zhin-sandbox .agent-playground-session.active { background: var(--sb-bg); border-inline-start: var(--console-border-focus) solid var(--sb-primary); }
|
|
89
|
+
.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(--console-radius-2); background: var(--sb-muted); color: var(--sb-muted-fg); }
|
|
92
90
|
.zhin-sandbox .agent-playground-session.active .agent-playground-session-icon { background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
93
91
|
.zhin-sandbox .agent-playground-session-copy { flex: 1; min-width: 0; }
|
|
94
|
-
.zhin-sandbox .agent-playground-session-title { font-size:
|
|
95
|
-
.zhin-sandbox .agent-playground-session-scope { margin-top:
|
|
96
|
-
.zhin-sandbox .agent-playground-unread { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0
|
|
97
|
-
.zhin-sandbox .agent-playground-new-session { padding:
|
|
98
|
-
.zhin-sandbox .agent-playground-
|
|
99
|
-
.zhin-sandbox .agent-playground-
|
|
100
|
-
.zhin-sandbox .agent-playground-
|
|
101
|
-
.zhin-sandbox .agent-playground-scope-picker
|
|
102
|
-
.zhin-sandbox .agent-playground-
|
|
103
|
-
.zhin-sandbox .agent-playground-
|
|
104
|
-
.zhin-sandbox .agent-playground-
|
|
105
|
-
.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); }
|
|
106
|
-
.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); }
|
|
92
|
+
.zhin-sandbox .agent-playground-session-title { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
93
|
+
.zhin-sandbox .agent-playground-session-scope { margin-top: var(--console-space-1); font-size: var(--console-text-label); color: var(--sb-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
94
|
+
.zhin-sandbox .agent-playground-unread { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 var(--console-space-2); border-radius: var(--console-radius-full); background: var(--sb-danger); color: var(--sb-danger-fg); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); font-variant-numeric: tabular-nums; }
|
|
95
|
+
.zhin-sandbox .agent-playground-new-session { padding: var(--console-space-3) var(--console-space-3); border-top: 1px solid var(--sb-border-soft); }
|
|
96
|
+
.zhin-sandbox .agent-playground-new-form { display: grid; gap: var(--console-space-2); }
|
|
97
|
+
.zhin-sandbox .agent-playground-scope-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--console-space-1); padding: var(--console-space-1); border-radius: var(--console-radius-2); background: var(--sb-muted); }
|
|
98
|
+
.zhin-sandbox .agent-playground-scope-picker button:where(:not(.console-control, [data-state])) { min-height: 30px; padding: var(--console-space-1); border: 0; background: transparent; color: var(--sb-muted-fg); font-size: var(--console-text-label); }
|
|
99
|
+
.zhin-sandbox .agent-playground-scope-picker button.active:where(:not(.console-control, [data-state])) { background: var(--sb-bg); color: var(--sb-fg); box-shadow: var(--console-elevation-1); }
|
|
100
|
+
.zhin-sandbox .agent-playground-new-actions { display: flex; justify-content: flex-end; gap: var(--console-space-2); }
|
|
101
|
+
.zhin-sandbox .agent-playground-endpoint { display: flex; align-items: center; justify-content: space-between; gap: var(--console-space-2); min-width: 0; padding: var(--console-space-3) var(--console-space-4) var(--console-space-3); border-top: 1px solid var(--sb-border-soft); font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
102
|
+
.zhin-sandbox .agent-playground-endpoint strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--sb-mono); font-size: var(--console-text-label); font-weight: var(--console-weight-medium); color: var(--sb-fg); }
|
|
107
103
|
|
|
108
104
|
/* ---------- Main column: run bar ---------- */
|
|
109
105
|
.zhin-sandbox .agent-playground-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; overflow: hidden; background: var(--sb-bg); }
|
|
110
|
-
.zhin-sandbox .agent-playground-runbar { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap:
|
|
111
|
-
.zhin-sandbox .agent-playground-run-identity { display: flex; flex: 1 1 14rem; align-items: center; gap:
|
|
106
|
+
.zhin-sandbox .agent-playground-runbar { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--console-space-3) var(--console-space-4); min-height: 68px; padding: var(--console-space-3) var(--console-space-5); border-bottom: 1px solid var(--sb-border-soft); }
|
|
107
|
+
.zhin-sandbox .agent-playground-run-identity { display: flex; flex: 1 1 14rem; align-items: center; gap: var(--console-space-3); min-width: 0; }
|
|
112
108
|
.zhin-sandbox .agent-playground-run-identity > div { flex: 1; min-width: 0; }
|
|
113
|
-
.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(--
|
|
114
|
-
.zhin-sandbox .agent-playground-run-title { display: flex; flex-wrap: wrap; align-items: center; gap:
|
|
115
|
-
.zhin-sandbox .agent-playground-run-title
|
|
116
|
-
.zhin-sandbox .agent-playground-run-title span { flex-shrink: 0; padding:
|
|
117
|
-
.zhin-sandbox .agent-playground-run-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap:
|
|
118
|
-
.zhin-sandbox .agent-playground-run-actions > a { display: inline-flex; align-items: center; justify-content: center; gap:
|
|
119
|
-
.zhin-sandbox .agent-playground-run-actions > a:hover { background: var(--sb-accent); color: var(--sb-fg); }
|
|
120
|
-
.zhin-sandbox .agent-playground-run-actions > button { color: var(--sb-muted-fg); }
|
|
121
|
-
.zhin-sandbox .agent-playground-run-actions > button:hover:not(:disabled) { border-color: var(--sb-primary-line); color: var(--sb-primary); }
|
|
122
|
-
.zhin-sandbox .agent-playground-run-actions > button.active { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
123
|
-
.zhin-sandbox .agent-playground-run-
|
|
124
|
-
.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); }
|
|
125
|
-
.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; }
|
|
109
|
+
.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(--console-radius-2); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
110
|
+
.zhin-sandbox .agent-playground-run-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--console-space-2); min-width: 0; }
|
|
111
|
+
.zhin-sandbox .agent-playground-run-title h2 { min-width: 0; max-width: 100%; overflow: hidden; font-size: var(--console-text-section); font-weight: var(--console-weight-strong); letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
|
|
112
|
+
.zhin-sandbox .agent-playground-run-title span { flex-shrink: 0; padding: 0 var(--console-space-2); border: 1px solid var(--sb-border); border-radius: var(--console-radius-full); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); color: var(--sb-muted-fg); }
|
|
113
|
+
.zhin-sandbox .agent-playground-run-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--console-space-2); min-width: 0; max-width: 100%; margin-left: auto; }
|
|
114
|
+
.zhin-sandbox .agent-playground-run-actions > a:where(:not(.console-control, [data-state])) { display: inline-flex; align-items: center; justify-content: center; gap: var(--console-space-2); min-height: 34px; padding: var(--console-space-2) var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); color: var(--sb-muted-fg); font-size: var(--console-text-label); text-decoration: none; }
|
|
115
|
+
.zhin-sandbox .agent-playground-run-actions > a:hover:where(:not(.console-control, [data-state])) { background: var(--sb-accent); color: var(--sb-fg); }
|
|
116
|
+
.zhin-sandbox .agent-playground-run-actions > button:where(:not(.console-control, [data-state])) { color: var(--sb-muted-fg); }
|
|
117
|
+
.zhin-sandbox .agent-playground-run-actions > button:hover:not(:disabled):where(:not(.console-control, [data-state])) { border-color: var(--sb-primary-line); color: var(--sb-primary); }
|
|
118
|
+
.zhin-sandbox .agent-playground-run-actions > button.active:where(:not(.console-control, [data-state])) { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
119
|
+
.zhin-sandbox .agent-playground-run-state { display: inline-flex; align-items: center; gap: var(--console-space-2); margin-right: var(--console-space-1); color: var(--sb-muted-fg); font-size: var(--console-text-label); white-space: nowrap; }
|
|
126
120
|
.zhin-sandbox .agent-playground-run-state.is-running { color: var(--sb-primary); }
|
|
127
121
|
.zhin-sandbox .agent-playground-run-state.is-running svg { animation: sandbox-breathe 1.5s ease-in-out infinite; }
|
|
128
122
|
.zhin-sandbox .agent-playground-run-state.has-problem { color: var(--sb-danger); }
|
|
129
123
|
|
|
130
124
|
/* ---------- Banners and run settings ---------- */
|
|
131
|
-
.zhin-sandbox .agent-playground-
|
|
132
|
-
.zhin-sandbox .agent-playground-
|
|
133
|
-
.zhin-sandbox .agent-playground-confirm > div > span { color: var(--sb-muted-fg); }
|
|
134
|
-
.zhin-sandbox .agent-playground-confirm button { min-height: 32px; padding: 4px 12px; background: var(--sb-bg); }
|
|
135
|
-
.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; }
|
|
136
|
-
.zhin-sandbox .sandbox-notice > svg { flex-shrink: 0; margin-top: 3px; color: var(--sb-warn); }
|
|
137
|
-
.zhin-sandbox .sandbox-notice > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
138
|
-
.zhin-sandbox .sandbox-notice button { min-height: 28px; padding: 2px 10px; background: transparent; }
|
|
139
|
-
.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); }
|
|
140
|
-
.zhin-sandbox .agent-playground-run-settings label { display: flex; flex: 1 1 140px; flex-direction: column; gap: 5px; min-width: 0; }
|
|
125
|
+
.zhin-sandbox .agent-playground-run-settings { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: var(--console-space-3); padding: var(--console-space-3) var(--console-space-5); border-bottom: 1px solid var(--sb-border-soft); background: var(--sb-sidebar); }
|
|
126
|
+
.zhin-sandbox .agent-playground-run-settings label, .zhin-sandbox .agent-playground-run-settings .sandbox-field { display: flex; flex: 1 1 140px; flex-direction: column; gap: var(--console-space-1); min-width: 0; }
|
|
141
127
|
.zhin-sandbox .agent-playground-run-settings .agent-playground-directory-field { flex-basis: 100%; }
|
|
142
|
-
.zhin-sandbox .agent-playground-run-settings label > span { display: flex; align-items: center; gap:
|
|
143
|
-
.zhin-sandbox .agent-playground-run-settings > p { display: flex; flex-basis: 100%; align-items: flex-start; gap:
|
|
144
|
-
.zhin-sandbox .agent-playground-run-settings > p > svg { flex-shrink: 0; margin-top:
|
|
145
|
-
.zhin-sandbox .agent-playground-network-toggle { position: relative; flex: none !important; flex-direction: row !important; align-items: center; gap:
|
|
146
|
-
.zhin-sandbox .agent-playground-network-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
|
|
147
|
-
.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; }
|
|
148
|
-
.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; }
|
|
149
|
-
.zhin-sandbox .agent-playground-network-toggle input:checked + i { border-color: var(--sb-primary); background: var(--sb-primary); }
|
|
150
|
-
.zhin-sandbox .agent-playground-network-toggle input:checked + i::after { transform: translateX(16px); }
|
|
151
|
-
.zhin-sandbox .agent-playground-network-toggle input:disabled + i { opacity: .6; cursor: not-allowed; }
|
|
152
|
-
.zhin-sandbox .agent-playground-network-toggle input:focus-visible + i { outline: 2px solid var(--sb-ring); outline-offset: 2px; }
|
|
128
|
+
.zhin-sandbox .agent-playground-run-settings label > span, .zhin-sandbox .agent-playground-run-settings .sandbox-field > span { display: flex; align-items: center; gap: var(--console-space-1); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); color: var(--sb-muted-fg); }
|
|
129
|
+
.zhin-sandbox .agent-playground-run-settings > p { display: flex; flex-basis: 100%; align-items: flex-start; gap: var(--console-space-2); font-size: var(--console-text-label); color: var(--sb-warn); }
|
|
130
|
+
.zhin-sandbox .agent-playground-run-settings > p > svg { flex-shrink: 0; margin-top: var(--console-space-1); }
|
|
131
|
+
.zhin-sandbox .agent-playground-network-toggle { position: relative; flex: none !important; flex-direction: row !important; align-items: center; gap: var(--console-space-3) !important; }
|
|
153
132
|
|
|
154
133
|
/* ---------- Conversation ---------- */
|
|
155
134
|
.zhin-sandbox .agent-playground-conversation { position: relative; flex: 1; display: flex; min-height: 0; overflow: hidden; }
|
|
156
|
-
.zhin-sandbox .agent-playground-message-scroll { flex: 1; min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding:
|
|
157
|
-
.zhin-sandbox .agent-playground-conversation-details { flex: 1; min-height: 0; overflow: auto; padding:
|
|
158
|
-
.zhin-sandbox .agent-playground-
|
|
159
|
-
.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); }
|
|
135
|
+
.zhin-sandbox .agent-playground-message-scroll { flex: 1; min-width: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: var(--console-space-5) var(--console-space-5); scrollbar-gutter: stable; scrollbar-width: thin; }
|
|
136
|
+
.zhin-sandbox .agent-playground-conversation-details { flex: 1; min-height: 0; overflow: auto; padding: var(--console-space-4); }
|
|
137
|
+
.zhin-sandbox .agent-playground-history-navigation, .zhin-sandbox .agent-playground-history-notice { padding: var(--console-space-2) var(--console-space-4); font-size: var(--console-text-label); text-align: center; color: var(--sb-muted-fg); }
|
|
160
138
|
.zhin-sandbox .agent-playground-history-navigation p[role=alert] { color: var(--sb-danger); overflow-wrap: anywhere; }
|
|
161
|
-
.zhin-sandbox .agent-playground-history-navigation button { min-height: 32px; border-color: transparent; background: transparent; color: var(--sb-primary); }
|
|
162
|
-
.zhin-sandbox .agent-playground-empty { display: grid; width: min(100%,
|
|
163
|
-
.zhin-sandbox .agent-playground-empty-mark { width: 56px; height: 56px; margin: 0 auto
|
|
164
|
-
.zhin-sandbox .agent-playground-empty h2 { font-size:
|
|
165
|
-
.zhin-sandbox .agent-playground-empty p { max-width: 48ch; margin: 0 auto; color: var(--sb-muted-fg); font-size:
|
|
166
|
-
.zhin-sandbox .agent-playground-prompts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:
|
|
167
|
-
.zhin-sandbox .agent-playground-prompts button { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 64px; padding:
|
|
168
|
-
.zhin-sandbox .agent-playground-prompts button::after { margin-top: auto; color: var(--sb-primary); content: "\\2197"; }
|
|
169
|
-
.zhin-sandbox .agent-playground-prompts button:hover:not(:disabled) { border-color: var(--sb-primary-line); background: var(--sb-muted); }
|
|
170
|
-
.zhin-sandbox .agent-playground-message-list { display: flex; flex-direction: column; gap:
|
|
171
|
-
.zhin-sandbox .agent-playground-message { display: flex; align-items: flex-start; gap:
|
|
139
|
+
.zhin-sandbox .agent-playground-history-navigation button:where(:not(.console-control, [data-state])) { min-height: 32px; border-color: transparent; background: transparent; color: var(--sb-primary); }
|
|
140
|
+
.zhin-sandbox .agent-playground-empty { display: grid; width: min(100%, calc(var(--console-content-reading) * 0.7)); min-height: 100%; align-content: center; margin: 0 auto; padding: var(--console-space-6) 0; text-align: center; }
|
|
141
|
+
.zhin-sandbox .agent-playground-empty-mark { width: 56px; height: 56px; margin: 0 auto var(--console-space-4); border: 1px solid var(--sb-primary-line); border-radius: var(--console-radius-3); }
|
|
142
|
+
.zhin-sandbox .agent-playground-empty h2 { font-size: var(--console-text-title); font-weight: var(--console-weight-strong); letter-spacing: -.025em; margin-bottom: var(--console-space-2); }
|
|
143
|
+
.zhin-sandbox .agent-playground-empty p { max-width: 48ch; margin: 0 auto; color: var(--sb-muted-fg); font-size: var(--console-text-body); line-height: 1.7; }
|
|
144
|
+
.zhin-sandbox .agent-playground-prompts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--console-space-2); margin-top: var(--console-space-5); }
|
|
145
|
+
.zhin-sandbox .agent-playground-prompts button:where(:not(.console-control, [data-state])) { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 64px; padding: var(--console-space-3); border-radius: var(--console-radius-2); font-size: var(--console-text-label); text-align: left; }
|
|
146
|
+
.zhin-sandbox .agent-playground-prompts button:where(:not(.console-control, [data-state]))::after { margin-top: auto; color: var(--sb-primary); content: "\\2197"; }
|
|
147
|
+
.zhin-sandbox .agent-playground-prompts button:hover:not(:disabled):where(:not(.console-control, [data-state])) { border-color: var(--sb-primary-line); background: var(--sb-muted); }
|
|
148
|
+
.zhin-sandbox .agent-playground-message-list { display: flex; flex-direction: column; gap: var(--console-space-4); width: min(100%, calc(var(--console-content-reading) * 0.875)); margin: 0 auto; padding-bottom: var(--console-space-3); }
|
|
149
|
+
.zhin-sandbox .agent-playground-message { display: flex; align-items: flex-start; gap: var(--console-space-3); }
|
|
172
150
|
.zhin-sandbox .agent-playground-message.is-user { flex-direction: row-reverse; }
|
|
173
|
-
.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(--
|
|
151
|
+
.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(--console-radius-2); background: var(--sb-muted); color: var(--sb-muted-fg); }
|
|
174
152
|
.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); }
|
|
175
153
|
.zhin-sandbox .agent-playground-message-main { min-width: 0; max-width: calc(100% - 44px); }
|
|
176
|
-
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-main { max-width: min(76%,
|
|
177
|
-
.zhin-sandbox .agent-playground-message-meta { display: flex; align-items: center; flex-wrap: wrap; gap:
|
|
154
|
+
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-main { max-width: min(76%, calc(var(--console-content-reading) * 0.7)); }
|
|
155
|
+
.zhin-sandbox .agent-playground-message-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--console-space-1) var(--console-space-2); margin: 0 var(--console-space-1) var(--console-space-1); font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
178
156
|
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-meta { justify-content: flex-end; }
|
|
179
|
-
.zhin-sandbox .agent-playground-message-meta strong { font-weight:
|
|
157
|
+
.zhin-sandbox .agent-playground-message-meta strong { font-weight: var(--console-weight-strong); color: var(--sb-fg); }
|
|
180
158
|
.zhin-sandbox .agent-playground-message-meta span { color: var(--sb-warn); }
|
|
181
|
-
.zhin-sandbox .agent-playground-message-content { min-width: 0; padding:
|
|
182
|
-
.zhin-sandbox .agent-playground-message-content img { max-width: 100%; border-radius: var(--
|
|
159
|
+
.zhin-sandbox .agent-playground-message-content { min-width: 0; padding: var(--console-space-3) var(--console-space-4); border: 1px solid var(--sb-border); border-radius: var(--console-radius-3); background: var(--sb-bg); line-height: 1.7; overflow-wrap: anywhere; overflow: hidden; }
|
|
160
|
+
.zhin-sandbox .agent-playground-message-content img { max-width: 100%; border-radius: var(--console-radius-2); }
|
|
183
161
|
.zhin-sandbox .agent-playground-message-content > :first-child { margin-top: 0; }
|
|
184
162
|
.zhin-sandbox .agent-playground-message-content > :last-child { margin-bottom: 0; }
|
|
185
163
|
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-content { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); }
|
|
186
164
|
.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); }
|
|
187
165
|
.zhin-sandbox .agent-playground-message.is-approval .agent-playground-message-content { border-color: var(--sb-warn-line); background: var(--sb-warn-soft); }
|
|
188
|
-
.zhin-sandbox .agent-playground-message.is-approval .agent-playground-message-meta span:last-of-type { padding: 0
|
|
189
|
-
.zhin-sandbox .agent-playground-approval-actions { display: grid; gap:
|
|
190
|
-
.zhin-sandbox .agent-playground-approval-actions > div { display: flex; flex-wrap: wrap; gap:
|
|
191
|
-
.zhin-sandbox .agent-playground-approval-actions button { min-height: 34px; font-weight:
|
|
192
|
-
.zhin-sandbox .agent-playground-approval-actions button.is-primary { background: var(--sb-primary); border-color: var(--sb-primary); color: var(--sb-primary-fg); }
|
|
193
|
-
.zhin-sandbox .agent-playground-approval-actions button.is-danger { background: var(--sb-danger-soft); border-color: var(--sb-danger-line); color: var(--sb-danger); }
|
|
194
|
-
.zhin-sandbox .agent-playground-approval-actions small { display: inline-flex; align-items: center; gap:
|
|
166
|
+
.zhin-sandbox .agent-playground-message.is-approval .agent-playground-message-meta span:last-of-type { padding: 0 var(--console-space-2); border: 1px solid var(--sb-warn-line); border-radius: var(--console-radius-full); font-weight: var(--console-weight-strong); }
|
|
167
|
+
.zhin-sandbox .agent-playground-approval-actions { display: grid; gap: var(--console-space-2); margin-top: var(--console-space-3); padding-top: var(--console-space-3); border-top: 1px solid var(--sb-warn-line); }
|
|
168
|
+
.zhin-sandbox .agent-playground-approval-actions > div { display: flex; flex-wrap: wrap; gap: var(--console-space-2); }
|
|
169
|
+
.zhin-sandbox .agent-playground-approval-actions button:where(:not(.console-control, [data-state])) { min-height: 34px; font-weight: var(--console-weight-strong); }
|
|
170
|
+
.zhin-sandbox .agent-playground-approval-actions button.is-primary:where(:not(.console-control, [data-state])) { background: var(--sb-primary); border-color: var(--sb-primary); color: var(--sb-primary-fg); }
|
|
171
|
+
.zhin-sandbox .agent-playground-approval-actions button.is-danger:where(:not(.console-control, [data-state])) { background: var(--sb-danger-soft); border-color: var(--sb-danger-line); color: var(--sb-danger); }
|
|
172
|
+
.zhin-sandbox .agent-playground-approval-actions small { display: inline-flex; align-items: center; gap: var(--console-space-1); font-size: var(--console-text-label); color: var(--sb-primary); }
|
|
195
173
|
|
|
196
174
|
/* ---------- Message segments (formerly Tailwind utilities) ---------- */
|
|
197
|
-
.zhin-sandbox .sandbox-chip { display: inline-flex; align-items: center; margin: 0
|
|
175
|
+
.zhin-sandbox .sandbox-chip { display: inline-flex; align-items: center; margin: 0 var(--console-space-1); padding: 0 var(--console-space-2); border-radius: var(--console-radius-1); background: var(--sb-muted); color: var(--sb-fg); font-size: var(--console-text-label); }
|
|
198
176
|
.zhin-sandbox .sandbox-chip.is-mention { background: var(--sb-accent); }
|
|
199
|
-
.zhin-sandbox .sandbox-inline-face { display: inline-block; width: 24px; height: 24px; margin: 0
|
|
200
|
-
.zhin-sandbox .sandbox-segment-note { font-size:
|
|
201
|
-
.zhin-sandbox .sandbox-media-link { display: block; margin:
|
|
202
|
-
.zhin-sandbox .sandbox-media-image { display: block; max-width: min(320px, 88%); border: 1px solid var(--sb-border); border-radius: var(--
|
|
203
|
-
.zhin-sandbox .sandbox-media-video { display: block; max-width: min(360px, 92%); max-height: 288px; margin:
|
|
204
|
-
.zhin-sandbox .sandbox-media-audio { display: block; width: 100%; max-width: 384px; height: 40px; margin:
|
|
205
|
-
.zhin-sandbox .sandbox-html-frame { display: block; width: 100%; min-width: 0; margin:
|
|
206
|
-
.zhin-sandbox .sandbox-
|
|
207
|
-
.zhin-sandbox .sandbox-
|
|
208
|
-
.zhin-sandbox .sandbox-
|
|
209
|
-
.zhin-sandbox .sandbox-forward
|
|
177
|
+
.zhin-sandbox .sandbox-inline-face { display: inline-block; width: 24px; height: 24px; margin: 0 var(--console-space-1); vertical-align: middle; }
|
|
178
|
+
.zhin-sandbox .sandbox-segment-note { font-size: var(--console-text-label); opacity: .8; }
|
|
179
|
+
.zhin-sandbox .sandbox-media-link { display: block; margin: var(--console-space-1) 0; }
|
|
180
|
+
.zhin-sandbox .sandbox-media-image { display: block; max-width: min(320px, 88%); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); }
|
|
181
|
+
.zhin-sandbox .sandbox-media-video { display: block; max-width: min(360px, 92%); max-height: 288px; margin: var(--console-space-1) 0; border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-muted); }
|
|
182
|
+
.zhin-sandbox .sandbox-media-audio { display: block; width: 100%; max-width: 384px; height: 40px; margin: var(--console-space-2) 0; }
|
|
183
|
+
.zhin-sandbox .sandbox-html-frame { display: block; width: 100%; min-width: 0; margin: var(--console-space-1) 0; border: 0; border-radius: var(--console-radius-2); background: transparent; }
|
|
184
|
+
.zhin-sandbox .sandbox-html-scaled { width: 100%; min-width: 0; margin: var(--console-space-1) 0; overflow: hidden; border-radius: var(--console-radius-2); }
|
|
185
|
+
.zhin-sandbox .sandbox-html-scaled > .sandbox-html-frame { margin: 0; max-width: none; border-radius: 0; }
|
|
186
|
+
.zhin-sandbox .sandbox-reply-quote { margin-bottom: var(--console-space-1); padding: var(--console-space-1) var(--console-space-2); border: 1px dashed var(--sb-input); border-radius: var(--console-radius-1); font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
187
|
+
.zhin-sandbox .sandbox-forward { display: grid; gap: var(--console-space-1); margin: var(--console-space-1) 0; padding: var(--console-space-2); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); background: var(--sb-muted); font-size: var(--console-text-label); }
|
|
188
|
+
.zhin-sandbox .sandbox-forward-title { font-weight: var(--console-weight-strong); }
|
|
189
|
+
.zhin-sandbox .sandbox-forward-list { display: grid; gap: var(--console-space-1); padding-left: var(--console-space-2); border-left: 2px solid var(--sb-border); }
|
|
210
190
|
.zhin-sandbox .sandbox-forward-more, .zhin-sandbox .sandbox-forward-empty { color: var(--sb-muted-fg); }
|
|
211
191
|
|
|
212
192
|
/* ---------- Rendered Markdown, lists, tables, code ---------- */
|
|
213
|
-
.zhin-sandbox .zhin-markdown { min-width: 0; color: inherit; font-size:
|
|
214
|
-
.zhin-sandbox .zhin-markdown > * + * { margin-top:
|
|
193
|
+
.zhin-sandbox .zhin-markdown { min-width: 0; color: inherit; font-size: var(--console-text-body); line-height: 1.7; overflow-wrap: anywhere; }
|
|
194
|
+
.zhin-sandbox .zhin-markdown > * + * { margin-top: var(--console-space-2); }
|
|
215
195
|
.zhin-sandbox .zhin-markdown--inverse { color: inherit; }
|
|
216
|
-
.zhin-sandbox .im-markdown-heading { font-weight:
|
|
217
|
-
.zhin-sandbox .im-markdown-heading-1 { font-size:
|
|
218
|
-
.zhin-sandbox .im-markdown-heading-2 { font-size:
|
|
219
|
-
.zhin-sandbox .im-markdown-heading-3 { font-size:
|
|
220
|
-
.zhin-sandbox .im-markdown-heading-4, .zhin-sandbox .im-markdown-heading-5, .zhin-sandbox .im-markdown-heading-6 { font-size:
|
|
196
|
+
.zhin-sandbox .im-markdown-heading { font-weight: var(--console-weight-strong); line-height: 1.35; letter-spacing: -.01em; }
|
|
197
|
+
.zhin-sandbox .im-markdown-heading-1 { font-size: var(--console-text-title); }
|
|
198
|
+
.zhin-sandbox .im-markdown-heading-2 { font-size: var(--console-text-section); }
|
|
199
|
+
.zhin-sandbox .im-markdown-heading-3 { font-size: var(--console-text-section); }
|
|
200
|
+
.zhin-sandbox .im-markdown-heading-4, .zhin-sandbox .im-markdown-heading-5, .zhin-sandbox .im-markdown-heading-6 { font-size: var(--console-text-body); }
|
|
221
201
|
.zhin-sandbox .im-markdown-paragraph { margin: 0; }
|
|
222
|
-
.zhin-sandbox .im-markdown-quote { padding:
|
|
223
|
-
.zhin-sandbox .im-markdown-list { padding-left:
|
|
202
|
+
.zhin-sandbox .im-markdown-quote { padding: var(--console-space-1) var(--console-space-3); border-left: 3px solid var(--sb-border); color: var(--sb-muted-fg); }
|
|
203
|
+
.zhin-sandbox .im-markdown-list { padding-left: var(--console-space-5); list-style: disc; }
|
|
224
204
|
.zhin-sandbox .im-markdown-list-ordered { list-style: decimal; }
|
|
225
|
-
.zhin-sandbox .im-markdown-list > li { padding-left:
|
|
226
|
-
.zhin-sandbox .im-markdown-list > li + li { margin-top:
|
|
205
|
+
.zhin-sandbox .im-markdown-list > li { padding-left: var(--console-space-1); }
|
|
206
|
+
.zhin-sandbox .im-markdown-list > li + li { margin-top: var(--console-space-1); }
|
|
227
207
|
.zhin-sandbox .im-markdown-list > li::marker { color: var(--sb-muted-fg); }
|
|
228
|
-
.zhin-sandbox .zhin-markdown-task { display: flex; align-items: baseline; gap:
|
|
229
|
-
.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); }
|
|
230
|
-
.zhin-sandbox .zhin-markdown-rule { width: 100%; margin:
|
|
231
|
-
.zhin-sandbox .im-inline-code { padding:
|
|
208
|
+
.zhin-sandbox .zhin-markdown-task { display: flex; align-items: baseline; gap: var(--console-space-2); margin-left: calc(var(--console-space-5) * -1); list-style: none; }
|
|
209
|
+
.zhin-sandbox .zhin-markdown-task input:where(:not(.console-control, [data-state])) { flex-shrink: 0; width: 14px; height: 14px; min-height: 0; margin: 0; padding: 0; accent-color: var(--sb-primary); transform: translateY(2px); }
|
|
210
|
+
.zhin-sandbox .zhin-markdown-rule { width: 100%; margin: var(--console-space-2) 0; border: 0; border-top: 1px solid var(--sb-border); }
|
|
211
|
+
.zhin-sandbox .im-inline-code { padding: 0 var(--console-space-2); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); background: var(--sb-muted); font-family: var(--sb-mono); font-size: var(--console-text-label); }
|
|
232
212
|
.zhin-sandbox .im-message-link { color: var(--sb-primary); }
|
|
233
|
-
.zhin-sandbox .zhin-markdown-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--sb-border); border-radius: var(--
|
|
234
|
-
.zhin-sandbox .zhin-markdown-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size:
|
|
235
|
-
.zhin-sandbox .zhin-markdown-table th, .zhin-sandbox .zhin-markdown-table td { padding:
|
|
236
|
-
.zhin-sandbox .zhin-markdown-table th { background: var(--sb-muted); font-weight:
|
|
213
|
+
.zhin-sandbox .zhin-markdown-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-bg); }
|
|
214
|
+
.zhin-sandbox .zhin-markdown-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: var(--console-text-label); line-height: 1.5; font-variant-numeric: tabular-nums; }
|
|
215
|
+
.zhin-sandbox .zhin-markdown-table th, .zhin-sandbox .zhin-markdown-table td { padding: var(--console-space-2) var(--console-space-3); border-right: 1px solid var(--sb-border); border-bottom: 1px solid var(--sb-border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
|
|
216
|
+
.zhin-sandbox .zhin-markdown-table th { background: var(--sb-muted); font-weight: var(--console-weight-strong); white-space: nowrap; }
|
|
237
217
|
.zhin-sandbox .zhin-markdown-table tbody tr:nth-child(even) td { background: var(--sb-muted); }
|
|
238
218
|
.zhin-sandbox .zhin-markdown-table tr:last-child td { border-bottom: 0; }
|
|
239
219
|
.zhin-sandbox .zhin-markdown-table th:last-child, .zhin-sandbox .zhin-markdown-table td:last-child { border-right: 0; }
|
|
240
|
-
.zhin-sandbox .zhin-code-block { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; margin:
|
|
241
|
-
.zhin-sandbox .zhin-code-toolbar { display: flex; align-items: center; gap:
|
|
242
|
-
.zhin-sandbox .zhin-code-language { color: hsl(210 14% 72%); font-size:
|
|
243
|
-
.zhin-sandbox .zhin-code-streaming { color: hsl(151 48% 63%); font-size:
|
|
244
|
-
.zhin-sandbox .zhin-code-streaming::before { display: inline-block; width: 6px; height: 6px; margin-right:
|
|
245
|
-
.zhin-sandbox .zhin-code-actions { display: flex; gap:
|
|
246
|
-
.zhin-sandbox .zhin-code-actions button, .zhin-sandbox .zhin-code-expand { min-height: 28px; border: 0; border-radius: var(--
|
|
247
|
-
.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%); }
|
|
248
|
-
.zhin-sandbox .zhin-code-pre { max-width: 100%; overflow: auto; padding:
|
|
220
|
+
.zhin-sandbox .zhin-code-block { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; margin: var(--console-space-1) 0; border: 1px solid hsl(218 18% 28%); border-radius: var(--console-radius-2); background: hsl(220 19% 10%); color: hsl(210 30% 92%); font-family: var(--sb-mono); }
|
|
221
|
+
.zhin-sandbox .zhin-code-toolbar { display: flex; align-items: center; gap: var(--console-space-2); min-height: 36px; padding: var(--console-space-1) var(--console-space-2) var(--console-space-1) var(--console-space-3); border-bottom: 1px solid hsl(218 16% 24%); background: hsl(220 18% 13%); }
|
|
222
|
+
.zhin-sandbox .zhin-code-language { color: hsl(210 14% 72%); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); letter-spacing: .04em; }
|
|
223
|
+
.zhin-sandbox .zhin-code-streaming { color: hsl(151 48% 63%); font-size: var(--console-text-label); }
|
|
224
|
+
.zhin-sandbox .zhin-code-streaming::before { display: inline-block; width: 6px; height: 6px; margin-right: var(--console-space-1); border-radius: var(--console-radius-full); background: currentColor; content: ""; animation: sandbox-breathe 1.2s ease-in-out infinite; }
|
|
225
|
+
.zhin-sandbox .zhin-code-actions { display: flex; gap: var(--console-space-1); margin-left: auto; }
|
|
226
|
+
.zhin-sandbox .zhin-code-actions button:where(:not(.console-control, [data-state])), .zhin-sandbox .zhin-code-expand { min-height: 28px; border: 0; border-radius: var(--console-radius-1); background: transparent; color: hsl(210 14% 76%); font-size: var(--console-text-label); }
|
|
227
|
+
.zhin-sandbox .zhin-code-actions button:hover:not(:disabled):where(:not(.console-control, [data-state])), .zhin-sandbox .zhin-code-expand:hover:not(:disabled) { background: hsl(215 18% 21%); color: hsl(0 0% 100%); }
|
|
228
|
+
.zhin-sandbox .zhin-code-pre { max-width: 100%; overflow: auto; padding: var(--console-space-2) 0 var(--console-space-3); font: inherit; font-size: var(--console-text-label); line-height: 1.65; tab-size: 2; }
|
|
249
229
|
.zhin-sandbox .zhin-code-pre--wrap .zhin-code-line-content { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
250
230
|
.zhin-sandbox .zhin-code-line { display: table-row; }
|
|
251
|
-
.zhin-sandbox .zhin-code-line-number { display: table-cell; width: 42px; padding: 0
|
|
252
|
-
.zhin-sandbox .zhin-code-line-content { display: table-cell; min-width: 100%; padding-right:
|
|
231
|
+
.zhin-sandbox .zhin-code-line-number { display: table-cell; width: 42px; padding: 0 var(--console-space-3) 0 var(--console-space-2); color: hsl(214 12% 55%); text-align: right; user-select: none; }
|
|
232
|
+
.zhin-sandbox .zhin-code-line-content { display: table-cell; min-width: 100%; padding-right: var(--console-space-4); white-space: pre; }
|
|
253
233
|
.zhin-sandbox .zhin-code-token--comment { color: hsl(148 23% 60%); font-style: italic; }
|
|
254
234
|
.zhin-sandbox .zhin-code-token--string { color: hsl(44 68% 70%); }
|
|
255
235
|
.zhin-sandbox .zhin-code-token--number { color: hsl(192 62% 68%); }
|
|
256
|
-
.zhin-sandbox .zhin-code-token--keyword { color: hsl(328 63% 73%); font-weight:
|
|
236
|
+
.zhin-sandbox .zhin-code-token--keyword { color: hsl(328 63% 73%); font-weight: var(--console-weight-medium); }
|
|
257
237
|
.zhin-sandbox .zhin-code-token--literal { color: hsl(268 72% 76%); }
|
|
258
|
-
.zhin-sandbox .zhin-code-expand { width: 100%; padding:
|
|
238
|
+
.zhin-sandbox .zhin-code-expand { width: 100%; padding: var(--console-space-2); border-top: 1px solid hsl(218 16% 22%); border-radius: 0; background: hsl(220 18% 12%); }
|
|
259
239
|
|
|
260
240
|
/* ---------- Recovery panel ---------- */
|
|
261
|
-
.zhin-sandbox .agent-playground-recovery { display: grid; flex: none; gap:
|
|
262
|
-
.zhin-sandbox .agent-playground-recovery > section, .zhin-sandbox .agent-playground-recovery > details { min-width: 0; padding:
|
|
263
|
-
.zhin-sandbox .agent-playground-recovery h3 { margin-bottom:
|
|
264
|
-
.zhin-sandbox .agent-playground-recovery summary { display: flex; flex-wrap: wrap; align-items: baseline; gap:
|
|
265
|
-
.zhin-sandbox .agent-playground-recovery time { margin-left: auto; font-size:
|
|
266
|
-
.zhin-sandbox .agent-playground-recovery details[open] summary { margin-bottom:
|
|
267
|
-
.zhin-sandbox .agent-playground-recovery details > a { display: inline-flex; margin:
|
|
241
|
+
.zhin-sandbox .agent-playground-recovery { display: grid; flex: none; gap: var(--console-space-3); max-height: min(40dvh, 24rem); margin: var(--console-space-4); overflow: auto; font-size: var(--console-text-body); }
|
|
242
|
+
.zhin-sandbox .agent-playground-recovery > section, .zhin-sandbox .agent-playground-recovery > details { min-width: 0; padding: var(--console-space-4); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-bg); }
|
|
243
|
+
.zhin-sandbox .agent-playground-recovery h3 { margin-bottom: var(--console-space-3); font-size: var(--console-text-body); font-weight: var(--console-weight-strong); }
|
|
244
|
+
.zhin-sandbox .agent-playground-recovery summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--console-space-2) var(--console-space-4); cursor: pointer; }
|
|
245
|
+
.zhin-sandbox .agent-playground-recovery time { margin-left: auto; font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
246
|
+
.zhin-sandbox .agent-playground-recovery details[open] summary { margin-bottom: var(--console-space-4); }
|
|
247
|
+
.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; }
|
|
268
248
|
.zhin-sandbox .agent-playground-recovery > p[role=alert] { color: var(--sb-danger); overflow-wrap: anywhere; }
|
|
269
|
-
.zhin-sandbox .agent-playground-recovery > button, .zhin-sandbox .agent-playground-recovery > p > button { color: var(--sb-primary); }
|
|
249
|
+
.zhin-sandbox .agent-playground-recovery > button:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-recovery > p > button:where(:not(.console-control, [data-state])) { color: var(--sb-primary); }
|
|
270
250
|
.zhin-sandbox .agent-playground-main:has(> .agent-playground-recovery:not([hidden])) .agent-playground-empty { display: none; }
|
|
271
251
|
|
|
272
252
|
/* ---------- Inline run card ---------- */
|
|
273
|
-
.zhin-sandbox .agent-playground-inline-run { position: relative; overflow: hidden; margin-left:
|
|
253
|
+
.zhin-sandbox .agent-playground-inline-run { position: relative; overflow: hidden; margin-left: var(--console-space-7); border: 1px solid var(--sb-border); border-radius: var(--console-radius-3); background: var(--sb-bg); }
|
|
274
254
|
.zhin-sandbox .agent-playground-inline-run-rail { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--sb-primary); }
|
|
275
255
|
.zhin-sandbox .agent-playground-inline-run.is-running .agent-playground-inline-run-rail { background: var(--sb-info); }
|
|
276
256
|
.zhin-sandbox .agent-playground-inline-run.is-failed .agent-playground-inline-run-rail { background: var(--sb-danger); }
|
|
277
257
|
.zhin-sandbox .agent-playground-inline-run.is-cancelled .agent-playground-inline-run-rail { background: var(--sb-warn); }
|
|
278
|
-
.zhin-sandbox .agent-playground-inline-run-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap:
|
|
279
|
-
.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(--
|
|
258
|
+
.zhin-sandbox .agent-playground-inline-run-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: var(--console-space-3); padding: var(--console-space-4) var(--console-space-4) var(--console-space-3) var(--console-space-4); }
|
|
259
|
+
.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(--console-radius-2); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
280
260
|
.zhin-sandbox .agent-playground-inline-run-copy { min-width: 0; }
|
|
281
|
-
.zhin-sandbox .agent-playground-inline-run-copy > span { display: block; font-size:
|
|
282
|
-
.zhin-sandbox .agent-playground-inline-run-copy h3 { font-size:
|
|
283
|
-
.zhin-sandbox .agent-playground-inline-run-copy p { display: -webkit-box; margin-top:
|
|
284
|
-
.zhin-sandbox .agent-playground-inline-run-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap:
|
|
285
|
-
.zhin-sandbox .agent-playground-inline-run-actions button { min-height: 30px; padding:
|
|
286
|
-
.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); }
|
|
261
|
+
.zhin-sandbox .agent-playground-inline-run-copy > span { display: block; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); letter-spacing: .04em; color: var(--sb-muted-fg); }
|
|
262
|
+
.zhin-sandbox .agent-playground-inline-run-copy h3 { font-size: var(--console-text-body); font-weight: var(--console-weight-strong); }
|
|
263
|
+
.zhin-sandbox .agent-playground-inline-run-copy p { display: -webkit-box; margin-top: var(--console-space-1); overflow: hidden; font-size: var(--console-text-label); line-height: 1.5; color: var(--sb-muted-fg); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
|
|
264
|
+
.zhin-sandbox .agent-playground-inline-run-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--console-space-2); }
|
|
265
|
+
.zhin-sandbox .agent-playground-inline-run-actions button:where(:not(.console-control, [data-state])) { min-height: 30px; padding: var(--console-space-1) var(--console-space-3); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
266
|
+
.zhin-sandbox .agent-playground-inline-run-actions button.is-stop:where(:not(.console-control, [data-state])) { background: var(--sb-danger-soft); border-color: var(--sb-danger-line); color: var(--sb-danger); }
|
|
287
267
|
.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; }
|
|
288
|
-
.zhin-sandbox .agent-playground-inline-run-metrics > div { display: flex; align-items: baseline; justify-content: center; gap:
|
|
268
|
+
.zhin-sandbox .agent-playground-inline-run-metrics > div { display: flex; align-items: baseline; justify-content: center; gap: var(--console-space-1); min-width: 0; padding: var(--console-space-2) var(--console-space-2); border-right: 1px solid var(--sb-border); }
|
|
289
269
|
.zhin-sandbox .agent-playground-inline-run-metrics > div:last-child { border-right: 0; }
|
|
290
|
-
.zhin-sandbox .agent-playground-inline-run-metrics dt { font-size:
|
|
291
|
-
.zhin-sandbox .agent-playground-inline-run-metrics dd { overflow: hidden; font-size:
|
|
270
|
+
.zhin-sandbox .agent-playground-inline-run-metrics dt { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
271
|
+
.zhin-sandbox .agent-playground-inline-run-metrics dd { overflow: hidden; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
|
|
292
272
|
.zhin-sandbox .agent-playground-inline-run-metrics .has-problem dd { color: var(--sb-danger); }
|
|
293
|
-
.zhin-sandbox .agent-playground-inline-run-steps { display: grid; padding:
|
|
294
|
-
.zhin-sandbox .agent-playground-inline-run-steps li { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap:
|
|
273
|
+
.zhin-sandbox .agent-playground-inline-run-steps { display: grid; padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4); list-style: none; }
|
|
274
|
+
.zhin-sandbox .agent-playground-inline-run-steps li { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: var(--console-space-2); min-height: 34px; }
|
|
295
275
|
.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: ""; }
|
|
296
|
-
.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:
|
|
276
|
+
.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: var(--console-radius-full); background: var(--sb-primary); outline: var(--console-border-hairline) solid var(--sb-primary-line); outline-offset: calc(var(--console-border-hairline) * -1); }
|
|
297
277
|
.zhin-sandbox .agent-playground-inline-run-steps li.is-running i { background: var(--sb-info); animation: sandbox-breathe 1.4s ease-in-out infinite; }
|
|
298
278
|
.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); }
|
|
299
279
|
.zhin-sandbox .agent-playground-inline-run-steps li.is-cancelled i { background: var(--sb-warn); }
|
|
300
280
|
.zhin-sandbox .agent-playground-inline-run-steps li > div { display: flex; flex-direction: column; min-width: 0; }
|
|
301
|
-
.zhin-sandbox .agent-playground-inline-run-steps strong { overflow: hidden; font-size:
|
|
302
|
-
.zhin-sandbox .agent-playground-inline-run-steps small { overflow: hidden; font-size:
|
|
303
|
-
.zhin-sandbox .agent-playground-inline-run-steps li > span { font-size:
|
|
281
|
+
.zhin-sandbox .agent-playground-inline-run-steps strong { overflow: hidden; font-size: var(--console-text-label); font-weight: var(--console-weight-strong); text-overflow: ellipsis; white-space: nowrap; }
|
|
282
|
+
.zhin-sandbox .agent-playground-inline-run-steps small { overflow: hidden; font-size: var(--console-text-label); color: var(--sb-muted-fg); text-overflow: ellipsis; white-space: nowrap; }
|
|
283
|
+
.zhin-sandbox .agent-playground-inline-run-steps li > span { font-size: var(--console-text-label); color: var(--sb-muted-fg); font-variant-numeric: tabular-nums; }
|
|
304
284
|
.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); }
|
|
305
|
-
.zhin-sandbox .agent-playground-inline-run-empty { padding:
|
|
306
|
-
.zhin-sandbox .agent-playground-inline-run footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap:
|
|
307
|
-
.zhin-sandbox .agent-playground-inline-run footer button { min-height: 30px; padding:
|
|
308
|
-
.zhin-sandbox .agent-playground-inline-run footer button:hover:not(:disabled) { color: var(--sb-primary); }
|
|
309
|
-
.zhin-sandbox .agent-playground-inline-run footer button:first-child svg { transition: transform .15s ease; }
|
|
310
|
-
.zhin-sandbox .agent-playground-inline-run footer button:first-child[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
285
|
+
.zhin-sandbox .agent-playground-inline-run-empty { padding: var(--console-space-3) var(--console-space-4); font-size: var(--console-text-label); text-align: center; color: var(--sb-muted-fg); }
|
|
286
|
+
.zhin-sandbox .agent-playground-inline-run footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--console-space-2); padding: var(--console-space-2) var(--console-space-4) var(--console-space-2) var(--console-space-4); }
|
|
287
|
+
.zhin-sandbox .agent-playground-inline-run footer button:where(:not(.console-control, [data-state])) { min-height: 30px; padding: var(--console-space-1) var(--console-space-2); border: 0; background: transparent; color: var(--sb-muted-fg); font-size: var(--console-text-label); }
|
|
288
|
+
.zhin-sandbox .agent-playground-inline-run footer button:hover:not(:disabled):where(:not(.console-control, [data-state])) { color: var(--sb-primary); }
|
|
289
|
+
.zhin-sandbox .agent-playground-inline-run footer button:first-child:where(:not(.console-control, [data-state])) svg { transition: transform .15s ease; }
|
|
290
|
+
.zhin-sandbox .agent-playground-inline-run footer button:first-child[aria-expanded="true"]:where(:not(.console-control, [data-state])) svg { transform: rotate(180deg); }
|
|
311
291
|
|
|
312
292
|
/* ---------- Composer ---------- */
|
|
313
|
-
.zhin-sandbox .agent-playground-composer { position: relative; z-index: 2; display: grid; gap:
|
|
314
|
-
.zhin-sandbox .sandbox-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap:
|
|
293
|
+
.zhin-sandbox .agent-playground-composer { position: relative; z-index: 2; display: grid; gap: var(--console-space-2); padding: var(--console-space-3) var(--console-space-4); border-top: 1px solid var(--sb-border-soft); background: var(--sb-bg); }
|
|
294
|
+
.zhin-sandbox .sandbox-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--console-space-2); }
|
|
315
295
|
.zhin-sandbox .sandbox-toolbar-spacer { flex: 1; min-width: 16px; }
|
|
316
|
-
.zhin-sandbox .sandbox-
|
|
317
|
-
.zhin-sandbox .sandbox-
|
|
318
|
-
.zhin-sandbox .sandbox-
|
|
319
|
-
.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); }
|
|
320
|
-
.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; }
|
|
321
|
-
.zhin-sandbox .sandbox-composer-tabs button.active { background: var(--sb-bg); color: var(--sb-fg); box-shadow: 0 1px 4px var(--sb-shadow); }
|
|
322
|
-
.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); }
|
|
323
|
-
.zhin-sandbox .sandbox-panel-hint { font-size: 12px; color: var(--sb-muted-fg); }
|
|
324
|
-
.zhin-sandbox .sandbox-panel .sandbox-submit { justify-self: start; }
|
|
325
|
-
.zhin-sandbox .sandbox-face-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 4px; }
|
|
296
|
+
.zhin-sandbox .sandbox-panel { display: grid; gap: var(--console-space-2); max-height: 256px; overflow-y: auto; padding: var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-muted); }
|
|
297
|
+
.zhin-sandbox .sandbox-panel-hint { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
298
|
+
.zhin-sandbox .sandbox-face-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: var(--console-space-1); }
|
|
326
299
|
.zhin-sandbox .sandbox-face-button { width: 100%; min-width: 0; height: 40px; padding: 0; }
|
|
327
300
|
.zhin-sandbox .sandbox-face-img { width: 32px; height: 32px; }
|
|
328
|
-
.zhin-sandbox .sandbox-empty-hint { display: flex; flex-direction: column; align-items: center; gap:
|
|
301
|
+
.zhin-sandbox .sandbox-empty-hint { display: flex; flex-direction: column; align-items: center; gap: var(--console-space-2); padding: var(--console-space-3); font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
329
302
|
.zhin-sandbox .sandbox-empty-hint > svg { opacity: .5; }
|
|
330
|
-
.zhin-sandbox .sandbox-editor-row { display: flex; align-items: flex-start; gap:
|
|
303
|
+
.zhin-sandbox .sandbox-editor-row { display: flex; align-items: flex-start; gap: var(--console-space-2); }
|
|
331
304
|
.zhin-sandbox .sandbox-editor-wrap { position: relative; flex: 1; min-width: 0; }
|
|
332
|
-
.zhin-sandbox
|
|
333
|
-
.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; }
|
|
305
|
+
.zhin-sandbox [contenteditable="true"] { min-height: 44px; padding: var(--console-space-3) var(--console-space-3); background: var(--sb-muted); border: 1px solid var(--sb-input); border-radius: var(--console-radius-2); line-height: 1.6; overflow-y: auto; outline: none; }
|
|
334
306
|
.zhin-sandbox [contenteditable="true"]:focus-visible { border-color: var(--sb-ring); outline: 2px solid var(--sb-ring); outline-offset: 1px; }
|
|
335
307
|
.zhin-sandbox [contenteditable="true"]:empty::before { content: attr(data-placeholder); color: var(--sb-muted-fg); pointer-events: none; }
|
|
336
308
|
.zhin-sandbox .editor-face { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
|
|
337
|
-
.zhin-sandbox .editor-image { max-width: 100%; max-height: 100px; display: inline-block; vertical-align: middle; border-radius: var(--
|
|
338
|
-
.zhin-sandbox .editor-video, .zhin-sandbox .editor-audio, .zhin-sandbox .editor-at { display: inline-flex; align-items: center; margin: 0
|
|
309
|
+
.zhin-sandbox .editor-image { max-width: 100%; max-height: 100px; display: inline-block; vertical-align: middle; border-radius: var(--console-radius-1); }
|
|
310
|
+
.zhin-sandbox .editor-video, .zhin-sandbox .editor-audio, .zhin-sandbox .editor-at { display: inline-flex; align-items: center; margin: 0 var(--console-space-1); padding: 0 var(--console-space-2); border-radius: var(--console-radius-1); background: var(--sb-accent); font-size: var(--console-text-label); vertical-align: baseline; }
|
|
339
311
|
.zhin-sandbox .editor-at { color: var(--sb-primary); }
|
|
340
|
-
.zhin-sandbox .sandbox-markdown-preview { min-height: 44px; max-height: 240px; padding:
|
|
341
|
-
.zhin-sandbox .sandbox-markdown-preview-empty { font-size:
|
|
342
|
-
.zhin-sandbox .sandbox-at-popover { position: absolute; z-index: 50; min-width: 240px; max-height: 288px; overflow-y: auto; padding:
|
|
343
|
-
.zhin-sandbox .sandbox-at-item { display: flex; align-items: center; gap:
|
|
312
|
+
.zhin-sandbox .sandbox-markdown-preview { min-height: 44px; max-height: 240px; padding: var(--console-space-3) var(--console-space-3); overflow: auto; background: var(--sb-muted); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); }
|
|
313
|
+
.zhin-sandbox .sandbox-markdown-preview-empty { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
314
|
+
.zhin-sandbox .sandbox-at-popover { position: absolute; z-index: 50; min-width: 240px; max-height: 288px; overflow-y: auto; padding: var(--console-space-1); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: hsl(var(--popover, 0 0% 100%)); box-shadow: var(--console-elevation-2); }
|
|
315
|
+
.zhin-sandbox .sandbox-at-item { display: flex; align-items: center; gap: var(--console-space-2); padding: var(--console-space-2); border-radius: var(--console-radius-1); cursor: pointer; }
|
|
344
316
|
.zhin-sandbox .sandbox-at-item:hover { background: var(--sb-accent); }
|
|
345
317
|
.zhin-sandbox .sandbox-at-item > svg { flex-shrink: 0; color: var(--sb-muted-fg); }
|
|
346
|
-
.zhin-sandbox .sandbox-at-name { font-size:
|
|
347
|
-
.zhin-sandbox .sandbox-at-id { font-size:
|
|
348
|
-
.zhin-sandbox .sandbox-hints { font-size:
|
|
349
|
-
.zhin-sandbox .sandbox-hints > summary { display: inline-flex; align-items: center; gap:
|
|
318
|
+
.zhin-sandbox .sandbox-at-name { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
319
|
+
.zhin-sandbox .sandbox-at-id { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
320
|
+
.zhin-sandbox .sandbox-hints { font-size: var(--console-text-label); line-height: 1.8; color: var(--sb-muted-fg); }
|
|
321
|
+
.zhin-sandbox .sandbox-hints > summary { display: inline-flex; align-items: center; gap: var(--console-space-2); cursor: pointer; user-select: none; list-style: none; }
|
|
350
322
|
.zhin-sandbox .sandbox-hints > summary::-webkit-details-marker { display: none; }
|
|
351
323
|
.zhin-sandbox .sandbox-hints > summary:hover { color: var(--sb-fg); }
|
|
352
|
-
.zhin-sandbox .sandbox-hints > ul { display: flex; flex-wrap: wrap; gap:
|
|
353
|
-
.zhin-sandbox .sandbox-hints li { display: inline-flex; align-items: center; gap:
|
|
354
|
-
.zhin-sandbox .sandbox-
|
|
355
|
-
.zhin-sandbox .sandbox-
|
|
356
|
-
.zhin-sandbox .sandbox-
|
|
357
|
-
.zhin-sandbox .sandbox-
|
|
358
|
-
.zhin-sandbox .sandbox-more-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 41; display: grid; min-width: 220px; padding: 4px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); background: var(--sb-bg); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); }
|
|
359
|
-
.zhin-sandbox .sandbox-more-menu > button { display: flex; align-items: center; gap: 8px; justify-content: flex-start; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--sb-fg); font-size: 13px; text-align: left; }
|
|
360
|
-
.zhin-sandbox .sandbox-more-menu > button:hover { background: var(--sb-accent); }
|
|
361
|
-
.zhin-sandbox .sandbox-more-menu > button[aria-checked="true"] { color: var(--sb-primary); }
|
|
362
|
-
.zhin-sandbox .sandbox-more-menu > button.is-danger { color: var(--sb-danger); }
|
|
363
|
-
.zhin-sandbox .sandbox-more-menu > button > em { margin-left: auto; font-style: normal; }
|
|
364
|
-
.zhin-sandbox .sandbox-more-menu > button > em + em { margin-left: 4px; }
|
|
365
|
-
.zhin-sandbox .sandbox-role-badge.is-simulated { color: var(--sb-muted-fg); }
|
|
366
|
-
.zhin-sandbox .sandbox-speaker-mode { display: grid; gap: 6px; grid-column: 1 / -1; }
|
|
367
|
-
.zhin-sandbox .sandbox-speaker-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
|
|
368
|
-
.zhin-sandbox .sandbox-speaker-mode > p { margin: 0; color: var(--sb-muted-fg); font-size: 12px; }
|
|
369
|
-
.zhin-sandbox .sandbox-speaker-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
|
|
324
|
+
.zhin-sandbox .sandbox-hints > ul { display: flex; flex-wrap: wrap; gap: var(--console-space-1) var(--console-space-3); margin: var(--console-space-1) 0 0; padding: 0; list-style: none; }
|
|
325
|
+
.zhin-sandbox .sandbox-hints li { display: inline-flex; align-items: center; gap: var(--console-space-1); white-space: nowrap; }
|
|
326
|
+
.zhin-sandbox .sandbox-speaker-mode { display: grid; gap: var(--console-space-2); grid-column: 1 / -1; }
|
|
327
|
+
.zhin-sandbox .sandbox-speaker-toggle { display: inline-flex; align-items: center; gap: var(--console-space-2); font-weight: var(--console-weight-strong); }
|
|
328
|
+
.zhin-sandbox .sandbox-speaker-mode > p { margin: 0; color: var(--sb-muted-fg); font-size: var(--console-text-label); }
|
|
329
|
+
.zhin-sandbox .sandbox-speaker-setup { display: flex; flex-wrap: wrap; align-items: center; gap: var(--console-space-2); font-size: var(--console-text-label); }
|
|
370
330
|
.zhin-sandbox .sandbox-speaker-setup > em { font-style: normal; color: var(--sb-muted-fg); }
|
|
371
|
-
.zhin-sandbox .sandbox-hint-key { padding:
|
|
372
|
-
.zhin-sandbox .sandbox-hint-text { margin-right: 6px; }
|
|
331
|
+
.zhin-sandbox .sandbox-hint-key { padding: 0 var(--console-space-2); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); background: var(--sb-muted); color: var(--sb-fg); font-family: var(--sb-mono); font-size: var(--console-text-label); line-height: 1.4; }
|
|
373
332
|
|
|
374
333
|
/* ---------- Inspector ---------- */
|
|
375
|
-
.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:
|
|
376
|
-
.zhin-sandbox .agent-playground-inspector-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap:
|
|
377
|
-
.zhin-sandbox .agent-playground-inspector-head > div:last-child { display: flex; gap:
|
|
378
|
-
.zhin-sandbox .agent-playground-inspector-head > div:first-child > span { font-size:
|
|
379
|
-
.zhin-sandbox .agent-playground-inspector-head h2 { font-size:
|
|
380
|
-
.zhin-sandbox .agent-playground-inspector-head button { width: 34px; padding: 0; color: var(--sb-muted-fg); }
|
|
381
|
-
.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); }
|
|
382
|
-
.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; }
|
|
383
|
-
.zhin-sandbox .agent-playground-inspector-tabs button.active { background: var(--sb-muted); border-color: var(--sb-border); color: var(--sb-fg); }
|
|
384
|
-
.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; }
|
|
334
|
+
.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: var(--console-elevation-3); scrollbar-width: thin; }
|
|
335
|
+
.zhin-sandbox .agent-playground-inspector-head { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: var(--console-space-3); min-height: 68px; padding: var(--console-space-3) var(--console-space-4); border-bottom: 1px solid var(--sb-border-soft); }
|
|
336
|
+
.zhin-sandbox .agent-playground-inspector-head > div:last-child { display: flex; gap: var(--console-space-2); }
|
|
337
|
+
.zhin-sandbox .agent-playground-inspector-head > div:first-child > span { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); letter-spacing: .04em; color: var(--sb-primary); }
|
|
338
|
+
.zhin-sandbox .agent-playground-inspector-head h2 { font-size: var(--console-text-section); font-weight: var(--console-weight-strong); }
|
|
339
|
+
.zhin-sandbox .agent-playground-inspector-head button:where(:not(.console-control, [data-state])) { width: 34px; padding: 0; color: var(--sb-muted-fg); }
|
|
385
340
|
.zhin-sandbox .agent-playground-inspector-view { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
386
|
-
.zhin-sandbox .agent-playground-inspector-section { padding:
|
|
387
|
-
.zhin-sandbox .agent-playground-inspector-title { display: flex; align-items: center; justify-content: space-between; gap:
|
|
388
|
-
.zhin-sandbox .agent-playground-inspector-title small { font-size:
|
|
389
|
-
.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(--
|
|
390
|
-
.zhin-sandbox .agent-playground-metrics > div { display: grid; grid-template-columns: auto 1fr; gap:
|
|
341
|
+
.zhin-sandbox .agent-playground-inspector-section { padding: var(--console-space-4); border-bottom: 1px solid var(--sb-border-soft); }
|
|
342
|
+
.zhin-sandbox .agent-playground-inspector-title { display: flex; align-items: center; justify-content: space-between; gap: var(--console-space-2); margin-bottom: var(--console-space-3); font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
343
|
+
.zhin-sandbox .agent-playground-inspector-title small { font-size: var(--console-text-label); font-weight: var(--console-weight-medium); letter-spacing: .03em; color: var(--sb-muted-fg); }
|
|
344
|
+
.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(--console-radius-2); background: var(--sb-bg); }
|
|
345
|
+
.zhin-sandbox .agent-playground-metrics > div { display: grid; grid-template-columns: auto 1fr; gap: var(--console-space-1) var(--console-space-2); min-width: 0; padding: var(--console-space-3); }
|
|
391
346
|
.zhin-sandbox .agent-playground-metrics > div:nth-child(odd) { border-right: 1px solid var(--sb-border); }
|
|
392
347
|
.zhin-sandbox .agent-playground-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--sb-border); }
|
|
393
348
|
.zhin-sandbox .agent-playground-metrics svg { grid-row: span 2; width: 15px; height: 15px; color: var(--sb-primary); }
|
|
394
|
-
.zhin-sandbox .agent-playground-metrics strong { overflow: hidden; font-size:
|
|
395
|
-
.zhin-sandbox .agent-playground-metrics span { font-size:
|
|
349
|
+
.zhin-sandbox .agent-playground-metrics strong { overflow: hidden; font-size: var(--console-text-section); font-weight: var(--console-weight-strong); font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
|
|
350
|
+
.zhin-sandbox .agent-playground-metrics span { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
396
351
|
.zhin-sandbox .agent-playground-metrics .has-problem svg, .zhin-sandbox .agent-playground-metrics .has-problem strong { color: var(--sb-danger); }
|
|
397
352
|
.zhin-sandbox .agent-playground-context-list { display: grid; }
|
|
398
|
-
.zhin-sandbox .agent-playground-context-list > div { display: flex; align-items: baseline; justify-content: space-between; gap:
|
|
353
|
+
.zhin-sandbox .agent-playground-context-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--console-space-3); min-width: 0; padding: var(--console-space-2) 0; border-bottom: 1px dashed var(--sb-border); font-size: var(--console-text-label); }
|
|
399
354
|
.zhin-sandbox .agent-playground-context-list > div:last-child { border-bottom: 0; }
|
|
400
355
|
.zhin-sandbox .agent-playground-context-list dt { flex-shrink: 0; color: var(--sb-muted-fg); }
|
|
401
356
|
.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; }
|
|
402
357
|
.zhin-sandbox .agent-playground-trace-section { flex: 1; }
|
|
403
358
|
.zhin-sandbox .agent-playground-trace-list { position: relative; display: grid; }
|
|
404
359
|
.zhin-sandbox .agent-playground-trace-list::before { position: absolute; top: 10px; bottom: 10px; left: 5px; width: 1px; background: var(--sb-border); content: ""; }
|
|
405
|
-
.zhin-sandbox .agent-playground-trace-item { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: start; gap:
|
|
406
|
-
.zhin-sandbox .agent-playground-trace-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin-top:
|
|
360
|
+
.zhin-sandbox .agent-playground-trace-item { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: start; gap: var(--console-space-2); padding: var(--console-space-2) 0; font-size: var(--console-text-label); }
|
|
361
|
+
.zhin-sandbox .agent-playground-trace-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: var(--console-space-1); border: 2px solid var(--sb-sidebar); border-radius: var(--console-radius-full); background: var(--sb-muted-fg); outline: var(--console-border-hairline) solid var(--sb-border); outline-offset: calc(var(--console-border-hairline) * -1); }
|
|
407
362
|
.zhin-sandbox .agent-playground-trace-item.is-success .agent-playground-trace-dot { background: var(--sb-ok); }
|
|
408
363
|
.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); }
|
|
409
364
|
.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); }
|
|
410
365
|
.zhin-sandbox .agent-playground-trace-item.is-capability .agent-playground-trace-dot { background: var(--sb-warn); }
|
|
411
366
|
.zhin-sandbox .agent-playground-trace-item.is-problem .agent-playground-trace-dot { background: var(--sb-danger); }
|
|
412
367
|
.zhin-sandbox .agent-playground-trace-item > div { display: flex; flex-direction: column; min-width: 0; }
|
|
413
|
-
.zhin-sandbox .agent-playground-trace-item strong { overflow: hidden; font-size:
|
|
414
|
-
.zhin-sandbox .agent-playground-trace-item small { overflow: hidden; font-size:
|
|
415
|
-
.zhin-sandbox .agent-playground-trace-item time { margin-top:
|
|
416
|
-
.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:
|
|
368
|
+
.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; }
|
|
369
|
+
.zhin-sandbox .agent-playground-trace-item small { overflow: hidden; font-size: var(--console-text-label); color: var(--sb-muted-fg); text-overflow: ellipsis; white-space: nowrap; }
|
|
370
|
+
.zhin-sandbox .agent-playground-trace-item time { margin-top: var(--console-space-1); font-size: var(--console-text-label); color: var(--sb-muted-fg); font-variant-numeric: tabular-nums; }
|
|
371
|
+
.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: var(--console-space-2); min-height: 80px; padding: var(--console-space-3); border: 1px dashed var(--sb-border); border-radius: var(--console-radius-2); font-size: var(--console-text-label); line-height: 1.5; text-align: center; color: var(--sb-muted-fg); }
|
|
417
372
|
.zhin-sandbox .agent-playground-artifact-empty { flex-direction: column; min-height: 104px; }
|
|
418
|
-
.zhin-sandbox .agent-playground-trace-notice { min-height: 0; margin-bottom:
|
|
419
|
-
.zhin-sandbox .agent-playground-trace-loading i { width: 6px; height: 6px; border-radius:
|
|
373
|
+
.zhin-sandbox .agent-playground-trace-notice { min-height: 0; margin-bottom: var(--console-space-3); border-color: var(--sb-warn-line); color: var(--sb-warn); }
|
|
374
|
+
.zhin-sandbox .agent-playground-trace-loading i { width: 6px; height: 6px; border-radius: var(--console-radius-full); background: var(--sb-primary); animation: sandbox-pulse .9s ease-in-out infinite alternate; }
|
|
420
375
|
.zhin-sandbox .agent-playground-trace-loading i:nth-child(2) { animation-delay: .15s; }
|
|
421
376
|
.zhin-sandbox .agent-playground-trace-loading i:nth-child(3) { animation-delay: .3s; }
|
|
422
377
|
.zhin-sandbox .agent-playground-task-section, .zhin-sandbox .agent-playground-artifact-section { flex: 0 0 auto; }
|
|
423
378
|
.zhin-sandbox .agent-playground-artifact-section { flex: 1 0 auto; }
|
|
424
|
-
.zhin-sandbox .agent-playground-task-list, .zhin-sandbox .agent-playground-artifact-list { display: grid; gap:
|
|
425
|
-
.zhin-sandbox .agent-playground-task-list article { display: grid; grid-template-columns: 10px minmax(0,1fr); gap:
|
|
426
|
-
.zhin-sandbox .agent-playground-task-list article > i { width: 8px; height: 8px; margin-top:
|
|
379
|
+
.zhin-sandbox .agent-playground-task-list, .zhin-sandbox .agent-playground-artifact-list { display: grid; gap: var(--console-space-2); }
|
|
380
|
+
.zhin-sandbox .agent-playground-task-list article { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: var(--console-space-1) var(--console-space-2); padding: var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-bg); }
|
|
381
|
+
.zhin-sandbox .agent-playground-task-list article > i { width: 8px; height: 8px; margin-top: var(--console-space-2); border-radius: var(--console-radius-full); background: var(--sb-muted-fg); }
|
|
427
382
|
.zhin-sandbox .agent-playground-task-list article.is-running > i { background: var(--sb-info); }
|
|
428
383
|
.zhin-sandbox .agent-playground-task-list article.is-completed > i { background: var(--sb-ok); }
|
|
429
384
|
.zhin-sandbox .agent-playground-task-list article.is-failed > i { background: var(--sb-danger); }
|
|
430
385
|
.zhin-sandbox .agent-playground-task-list article.is-cancelled > i { background: var(--sb-warn); }
|
|
431
|
-
.zhin-sandbox .agent-playground-task-list article > div { display: flex; align-items: baseline; justify-content: space-between; gap:
|
|
432
|
-
.zhin-sandbox .agent-playground-task-list strong { font-size:
|
|
433
|
-
.zhin-sandbox .agent-playground-task-list code { overflow: hidden; font-family: var(--sb-mono); font-size:
|
|
434
|
-
.zhin-sandbox .agent-playground-task-list dl { display: grid; grid-column: 2; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top:
|
|
386
|
+
.zhin-sandbox .agent-playground-task-list article > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--console-space-2); min-width: 0; }
|
|
387
|
+
.zhin-sandbox .agent-playground-task-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
388
|
+
.zhin-sandbox .agent-playground-task-list code { overflow: hidden; font-family: var(--sb-mono); font-size: var(--console-text-label); color: var(--sb-muted-fg); text-overflow: ellipsis; }
|
|
389
|
+
.zhin-sandbox .agent-playground-task-list dl { display: grid; grid-column: 2; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: var(--console-space-2); padding-top: var(--console-space-2); border-top: 1px dashed var(--sb-border); }
|
|
435
390
|
.zhin-sandbox .agent-playground-task-list dl > div { display: flex; flex-direction: column; }
|
|
436
|
-
.zhin-sandbox .agent-playground-task-list dt { font-size:
|
|
437
|
-
.zhin-sandbox .agent-playground-task-list dd { font-size:
|
|
438
|
-
.zhin-sandbox .agent-playground-artifact-list article { overflow: hidden; border: 1px solid var(--sb-border); border-radius: var(--
|
|
391
|
+
.zhin-sandbox .agent-playground-task-list dt { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
392
|
+
.zhin-sandbox .agent-playground-task-list dd { font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
|
|
393
|
+
.zhin-sandbox .agent-playground-artifact-list article { overflow: hidden; border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-bg); }
|
|
439
394
|
.zhin-sandbox .agent-playground-artifact-list article.is-expanded { border-color: var(--sb-primary-line); }
|
|
440
|
-
.zhin-sandbox .agent-playground-artifact-list article > button { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap:
|
|
441
|
-
.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(--
|
|
442
|
-
.zhin-sandbox .agent-playground-artifact-list article > button > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
|
|
395
|
+
.zhin-sandbox .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: var(--console-space-2); align-items: center; width: 100%; padding: var(--console-space-2) var(--console-space-3); border: 0; border-radius: 0; background: transparent; text-align: left; }
|
|
396
|
+
.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(--console-radius-1); background: var(--sb-primary-soft); color: var(--sb-primary); }
|
|
397
|
+
.zhin-sandbox .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
|
|
443
398
|
.zhin-sandbox .agent-playground-artifact-list strong, .zhin-sandbox .agent-playground-artifact-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
444
|
-
.zhin-sandbox .agent-playground-artifact-list strong { font-size:
|
|
445
|
-
.zhin-sandbox .agent-playground-artifact-list small, .zhin-sandbox .agent-playground-artifact-list em { font-size:
|
|
399
|
+
.zhin-sandbox .agent-playground-artifact-list strong { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
400
|
+
.zhin-sandbox .agent-playground-artifact-list small, .zhin-sandbox .agent-playground-artifact-list em { font-size: var(--console-text-label); font-style: normal; color: var(--sb-muted-fg); }
|
|
446
401
|
.zhin-sandbox .agent-playground-artifact-list article.is-completed em { color: var(--sb-ok); }
|
|
447
402
|
.zhin-sandbox .agent-playground-artifact-list article.is-failed em, .zhin-sandbox .agent-playground-artifact-list article.is-denied em { color: var(--sb-danger); }
|
|
448
|
-
.zhin-sandbox .agent-playground-artifact-list article > button > svg { color: var(--sb-muted-fg); transition: transform .16s ease; }
|
|
449
|
-
.zhin-sandbox .agent-playground-artifact-list article.is-expanded > button > svg { transform: rotate(180deg); }
|
|
450
|
-
.zhin-sandbox .agent-playground-artifact-detail { display: grid; gap:
|
|
451
|
-
.zhin-sandbox .agent-playground-artifact-detail > code { font-family: var(--sb-mono); font-size:
|
|
452
|
-
.zhin-sandbox .agent-playground-artifact-detail pre { max-height: 240px; overflow: auto; padding:
|
|
453
|
-
.zhin-sandbox .agent-playground-artifact-detail footer { display: flex; justify-content: space-between; gap:
|
|
454
|
-
.zhin-sandbox .sandbox-file-link { display: inline-flex; align-items: center; gap:
|
|
455
|
-
.zhin-sandbox .agent-playground-studio-link { display: flex; flex-shrink: 0; flex-direction: column; gap:
|
|
456
|
-
.zhin-sandbox .agent-playground-studio-link > span { display: flex; align-items: center; gap:
|
|
457
|
-
.zhin-sandbox .agent-playground-studio-link code { overflow: hidden; font-family: var(--sb-mono); font-size:
|
|
403
|
+
.zhin-sandbox .agent-playground-artifact-list article > button:where(:not(.console-control, [data-state])) > svg { color: var(--sb-muted-fg); transition: transform .16s ease; }
|
|
404
|
+
.zhin-sandbox .agent-playground-artifact-list article.is-expanded > button:where(:not(.console-control, [data-state])) > svg { transform: rotate(180deg); }
|
|
405
|
+
.zhin-sandbox .agent-playground-artifact-detail { display: grid; gap: var(--console-space-2); padding: 0 var(--console-space-3) var(--console-space-3) var(--console-space-7); font-size: var(--console-text-label); }
|
|
406
|
+
.zhin-sandbox .agent-playground-artifact-detail > code { font-family: var(--sb-mono); font-size: var(--console-text-label); color: var(--sb-muted-fg); overflow-wrap: anywhere; }
|
|
407
|
+
.zhin-sandbox .agent-playground-artifact-detail pre { max-height: 240px; overflow: auto; padding: var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); background: var(--sb-muted); font-family: var(--sb-mono); font-size: var(--console-text-label); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
|
|
408
|
+
.zhin-sandbox .agent-playground-artifact-detail footer { display: flex; justify-content: space-between; gap: var(--console-space-2); color: var(--sb-muted-fg); }
|
|
409
|
+
.zhin-sandbox .sandbox-file-link { display: inline-flex; align-items: center; gap: var(--console-space-1); color: var(--sb-primary); }
|
|
410
|
+
.zhin-sandbox .agent-playground-studio-link { display: flex; flex-shrink: 0; flex-direction: column; gap: var(--console-space-1); margin: var(--console-space-3); padding: var(--console-space-3) var(--console-space-3); border: 1px solid var(--sb-primary-line); border-radius: var(--console-radius-2); background: var(--sb-primary-soft); color: var(--sb-primary); font-size: var(--console-text-label); text-decoration: none; }
|
|
411
|
+
.zhin-sandbox .agent-playground-studio-link > span { display: flex; align-items: center; gap: var(--console-space-2); font-weight: var(--console-weight-strong); }
|
|
412
|
+
.zhin-sandbox .agent-playground-studio-link code { overflow: hidden; font-family: var(--sb-mono); font-size: var(--console-text-label); text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
|
|
458
413
|
|
|
459
414
|
/* ---------- Animations ---------- */
|
|
460
415
|
@keyframes sandbox-spin { to { transform: rotate(360deg); } }
|
|
461
416
|
@keyframes sandbox-breathe { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
|
|
462
417
|
@keyframes sandbox-pulse { from { opacity: .25; transform: translateY(1px); } to { opacity: 1; transform: translateY(-1px); } }
|
|
463
418
|
|
|
419
|
+
/* ---------- @zhin.js/console-ui components inside the workbench (ADR 0063 D13 step 2) ----------
|
|
420
|
+
* Buttons, inputs, selects, switches, tabs, menus and dialogs come from the component library; the element
|
|
421
|
+
* rules above skip them (:where(:not(.console-control, [data-state]))), so they keep the Console look.
|
|
422
|
+
* Only layout lives here. */
|
|
423
|
+
.zhin-sandbox .agent-playground-section-label > :nth-child(3) { margin-left: auto; }
|
|
424
|
+
.zhin-sandbox .agent-playground-run-settings label.sandbox-speaker-toggle { flex: none; flex-direction: row; align-items: center; }
|
|
425
|
+
.zhin-sandbox .agent-playground-network-toggle { min-height: 36px; }
|
|
426
|
+
.zhin-sandbox .sandbox-block-button { width: 100%; }
|
|
427
|
+
.zhin-sandbox .sandbox-details-back { margin-bottom: var(--console-space-4); }
|
|
428
|
+
.zhin-sandbox .sandbox-alert { display: flex; flex: none; align-items: center; gap: var(--console-space-3); width: auto; margin: var(--console-space-3) var(--console-space-5) 0; }
|
|
429
|
+
.zhin-sandbox .sandbox-alert-copy { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
|
|
430
|
+
.zhin-sandbox .sandbox-inspector-tabs { display: grid; flex-shrink: 0; grid-template-columns: 1fr 1.35fr; margin: var(--console-space-3) var(--console-space-3) 0; }
|
|
431
|
+
.zhin-sandbox .sandbox-inspector-tabs > * { gap: var(--console-space-2); min-width: 0; }
|
|
432
|
+
.zhin-sandbox .sandbox-tab-count { min-width: 18px; padding: 0 var(--console-space-2); border-radius: var(--console-radius-full); background: var(--sb-accent); color: var(--sb-muted-fg); font-size: var(--console-text-label); font-variant-numeric: tabular-nums; }
|
|
433
|
+
.zhin-sandbox .agent-playground-inspector-head > div:last-child { gap: var(--console-space-1); }
|
|
434
|
+
.zhin-sandbox .agent-playground-approval-actions > div { display: flex; flex-wrap: wrap; gap: var(--console-space-2); }
|
|
435
|
+
.zhin-sandbox .agent-playground-inline-run-actions, .zhin-sandbox .agent-playground-inline-run footer { gap: var(--console-space-2); }
|
|
436
|
+
.zhin-sandbox .sandbox-editor-row > .console-control { flex-shrink: 0; align-self: flex-end; }
|
|
437
|
+
/* Inside the Console shell the page header sits above the workbench (ADR 0063 决策 2). */
|
|
438
|
+
.zhin-sandbox.agent-playground-shell.is-hosted { height: calc(100dvh - var(--console-header-h, 4.5rem) - var(--console-page-header-h) - var(--console-page-padding-block) - 1rem); }
|
|
439
|
+
|
|
440
|
+
/* ---------- Simulated sender, quick commands and rich cards ---------- */
|
|
441
|
+
.zhin-sandbox .sandbox-role-switcher { display: inline-flex; flex-wrap: wrap; gap: var(--console-space-1); }
|
|
442
|
+
.zhin-sandbox .sandbox-role-switcher > .sandbox-role-option { min-height: 32px; padding: var(--console-space-1) var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-1); background: transparent; color: inherit; font-size: var(--console-text-label); }
|
|
443
|
+
.zhin-sandbox .sandbox-role-switcher > .sandbox-role-option.active { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); color: var(--sb-primary); font-weight: var(--console-weight-strong); }
|
|
444
|
+
.zhin-sandbox .sandbox-sender-presets { display: flex; flex-wrap: wrap; align-items: center; gap: var(--console-space-2); }
|
|
445
|
+
.zhin-sandbox .sandbox-quick-commands { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--console-space-1); margin-left: var(--console-space-2); }
|
|
446
|
+
.zhin-sandbox .sandbox-quick-commands > .sandbox-command-chip { min-height: 28px; gap: var(--console-space-1); padding: var(--console-space-1) var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-full); background: transparent; color: inherit; font-size: var(--console-text-label); }
|
|
447
|
+
.zhin-sandbox .sandbox-quick-commands > .sandbox-command-chip:hover:not(:disabled) { border-color: var(--sb-primary-line); background: var(--sb-primary-soft); }
|
|
448
|
+
.zhin-sandbox .sandbox-rich-card { max-width: 440px; margin-top: var(--console-space-2); overflow: hidden; border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-muted); }
|
|
449
|
+
.zhin-sandbox .sandbox-rich-card-image { display: block; width: 100%; max-height: 200px; object-fit: cover; }
|
|
450
|
+
.zhin-sandbox .sandbox-rich-card-body { display: flex; flex-direction: column; gap: var(--console-space-2); padding: var(--console-space-3) var(--console-space-3); }
|
|
451
|
+
.zhin-sandbox .sandbox-rich-card-title { font-size: var(--console-text-body); font-weight: var(--console-weight-strong); }
|
|
452
|
+
.zhin-sandbox .sandbox-rich-card-subtitle, .zhin-sandbox .sandbox-rich-card-field dt { font-size: var(--console-text-label); color: var(--sb-muted-fg); }
|
|
453
|
+
.zhin-sandbox .sandbox-rich-card-desc { font-size: var(--console-text-label); }
|
|
454
|
+
.zhin-sandbox .sandbox-rich-card-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--console-space-2); margin: var(--console-space-1) 0 0; }
|
|
455
|
+
.zhin-sandbox .sandbox-rich-card-field { padding: var(--console-space-1) var(--console-space-2); border-radius: var(--console-radius-1); background: var(--sb-bg); }
|
|
456
|
+
.zhin-sandbox .sandbox-rich-card-field dd { margin: 0; font-size: var(--console-text-label); font-weight: var(--console-weight-medium); }
|
|
457
|
+
.zhin-sandbox .sandbox-share-card { display: flex; align-items: center; gap: var(--console-space-3); max-width: 440px; margin-top: var(--console-space-2); padding: var(--console-space-2) var(--console-space-3); border: 1px solid var(--sb-border); border-radius: var(--console-radius-2); background: var(--sb-muted); }
|
|
458
|
+
.zhin-sandbox .sandbox-share-card-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--console-radius-1); object-fit: cover; }
|
|
459
|
+
.zhin-sandbox .sandbox-share-card-main { display: flex; flex: 1; flex-direction: column; gap: var(--console-space-1); min-width: 0; }
|
|
460
|
+
.zhin-sandbox .sandbox-share-card-title { font-size: var(--console-text-label); font-weight: var(--console-weight-strong); }
|
|
461
|
+
.zhin-sandbox .sandbox-share-card-desc, .zhin-sandbox .sandbox-share-card-url { overflow: hidden; color: var(--sb-muted-fg); font-size: var(--console-text-label); text-overflow: ellipsis; }
|
|
462
|
+
.zhin-sandbox .sandbox-share-card-url { white-space: nowrap; }
|
|
463
|
+
|
|
464
464
|
/* ---------- Responsive ---------- */
|
|
465
|
-
@media (
|
|
465
|
+
@media (width >= 64rem) {
|
|
466
|
+
.zhin-sandbox .agent-playground-mobilebar { display: none; }
|
|
467
|
+
}
|
|
468
|
+
/* Below 64rem (Console lg) the conversation list is a drawer (workspace styles); the bar holds its toggle. */
|
|
469
|
+
@media (width < 64rem) {
|
|
470
|
+
.zhin-sandbox .agent-playground-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: var(--console-space-2); padding: var(--console-space-2) var(--console-space-3); border-bottom: 1px solid var(--sb-border); background: var(--sb-bg); }
|
|
471
|
+
/* One column: the list is a drawer and the inspector an overlay (the workspace styles place the bar and main). */
|
|
472
|
+
.zhin-sandbox.agent-playground-shell, .zhin-sandbox.agent-playground-shell.has-inspector { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
|
|
473
|
+
/* The drawer stays inside the workbench and never covers the Console shell (D19). */
|
|
474
|
+
.zhin-sandbox .agent-playground-sessions.channel-sidebar { position: absolute; z-index: 40; height: auto; }
|
|
475
|
+
.zhin-sandbox .channel-overlay { position: absolute; z-index: 35; }
|
|
476
|
+
}
|
|
477
|
+
/* Phones: every control of the workbench is at least 44px tall (D18 第 7 条 / D19). */
|
|
478
|
+
@media (width < 48rem) {
|
|
479
|
+
.zhin-sandbox .sandbox-quick-commands > .sandbox-command-chip, .zhin-sandbox .sandbox-role-switcher > .sandbox-role-option { min-height: 44px; }
|
|
480
|
+
.zhin-sandbox [role="tablist"] { height: auto; }
|
|
481
|
+
.zhin-sandbox [role="tab"] { min-height: 44px; }
|
|
482
|
+
.zhin-sandbox .agent-playground-network-toggle, .zhin-sandbox .agent-playground-run-settings label.sandbox-speaker-toggle { min-height: 44px; }
|
|
483
|
+
}
|
|
484
|
+
@media (width >= 90rem) {
|
|
485
|
+
.zhin-sandbox.agent-playground-shell.has-inspector { grid-template-rows: minmax(0, 1fr); }
|
|
486
|
+
.zhin-sandbox .agent-playground-inspector { min-height: 0; }
|
|
487
|
+
}
|
|
488
|
+
@media (width >= 90rem) {
|
|
466
489
|
.zhin-sandbox.agent-playground-shell.has-inspector { grid-template-columns: 232px minmax(0,1fr) 330px; }
|
|
467
490
|
.zhin-sandbox .agent-playground-inspector { position: static; width: auto; box-shadow: none; }
|
|
468
491
|
}
|
|
469
|
-
@media (
|
|
492
|
+
@media (width < 90rem) {
|
|
470
493
|
.zhin-sandbox .agent-playground-inspector-overlay { display: block; position: absolute; inset: 0; z-index: 25; background: var(--sb-overlay); }
|
|
471
494
|
}
|
|
472
|
-
@media (
|
|
495
|
+
@media (width < 64rem) {
|
|
473
496
|
.zhin-sandbox .agent-playground-inline-run-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
|
|
474
497
|
.zhin-sandbox .agent-playground-inline-run-metrics > div:nth-child(3) { border-right: 0; }
|
|
475
498
|
.zhin-sandbox .agent-playground-inline-run-metrics > div:nth-child(n+4) { border-top: 1px solid var(--sb-border); }
|
|
476
499
|
}
|
|
477
|
-
@media (
|
|
478
|
-
.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(--
|
|
479
|
-
.zhin-sandbox button, .zhin-sandbox .agent-playground-run-actions > a { min-height: 44px; min-width: 44px; }
|
|
480
|
-
.zhin-sandbox :where(input:not([type="checkbox"]), select) { min-height: 44px; font-size:
|
|
500
|
+
@media (width < 48rem) {
|
|
501
|
+
.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(--console-radius-2); }
|
|
502
|
+
.zhin-sandbox button:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-run-actions > a:where(:not(.console-control, [data-state])) { min-height: 44px; min-width: 44px; }
|
|
503
|
+
.zhin-sandbox :where(input:not([type="checkbox"]), select):where(:not(.console-control, [data-state])) { min-height: 44px; font-size: var(--console-text-section); }
|
|
481
504
|
.zhin-sandbox .agent-playground-network-toggle { min-height: 44px; }
|
|
482
|
-
.zhin-sandbox .agent-playground-
|
|
483
|
-
.zhin-sandbox .agent-playground-network-toggle i::after { width: 20px; height: 20px; }
|
|
484
|
-
.zhin-sandbox .agent-playground-network-toggle input:checked + i::after { transform: translateX(18px); }
|
|
485
|
-
.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); }
|
|
486
|
-
.zhin-sandbox .agent-playground-mobilebar strong { font-size: 14px; }
|
|
487
|
-
.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; }
|
|
488
|
-
.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); }
|
|
505
|
+
.zhin-sandbox .agent-playground-sessions { display: none; position: absolute; inset: 0 auto 0 0; z-index: 40; width: min(300px, 88%); box-shadow: var(--console-elevation-3); }
|
|
489
506
|
.zhin-sandbox .agent-playground-sessions.show { display: flex; }
|
|
490
507
|
.zhin-sandbox .channel-overlay { display: block; position: absolute; inset: 0; z-index: 35; background: var(--sb-overlay); }
|
|
491
|
-
.zhin-sandbox .agent-playground-runbar { flex-direction: column; align-items: flex-start; gap:
|
|
508
|
+
.zhin-sandbox .agent-playground-runbar { flex-direction: column; align-items: flex-start; gap: var(--console-space-3); min-height: 0; padding: var(--console-space-3); }
|
|
492
509
|
/* In a column the 14rem flex-basis would become the identity row height. */
|
|
493
510
|
.zhin-sandbox .agent-playground-run-identity { flex: 0 0 auto; width: 100%; }
|
|
494
511
|
.zhin-sandbox .agent-playground-run-actions { flex-wrap: wrap; justify-content: flex-start; margin-left: 0; max-width: 100%; }
|
|
495
|
-
.zhin-sandbox .sandbox-
|
|
496
|
-
.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; }
|
|
512
|
+
.zhin-sandbox .agent-playground-run-actions > a:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-run-actions > button:where(:not(.console-control, [data-state])) { flex-shrink: 0; white-space: nowrap; width: auto; font-size: var(--console-text-label); }
|
|
497
513
|
.zhin-sandbox .agent-playground-run-title span { display: none; }
|
|
498
|
-
.zhin-sandbox .agent-playground-message-scroll { padding:
|
|
514
|
+
.zhin-sandbox .agent-playground-message-scroll { padding: var(--console-space-4) var(--console-space-3); }
|
|
499
515
|
.zhin-sandbox .agent-playground-message-main { max-width: calc(100% - 40px); }
|
|
500
516
|
.zhin-sandbox .agent-playground-message.is-user .agent-playground-message-main { max-width: 86%; }
|
|
501
|
-
.zhin-sandbox .agent-playground-message-content { padding:
|
|
502
|
-
.zhin-sandbox .agent-playground-composer { padding:
|
|
517
|
+
.zhin-sandbox .agent-playground-message-content { padding: var(--console-space-2) var(--console-space-3); }
|
|
518
|
+
.zhin-sandbox .agent-playground-composer { padding: var(--console-space-3) var(--console-space-3); }
|
|
503
519
|
.zhin-sandbox .sandbox-toolbar-spacer { display: none; }
|
|
504
|
-
.zhin-sandbox .sandbox-composer-tabs button { padding: 4px 12px; }
|
|
505
520
|
.zhin-sandbox .sandbox-face-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }
|
|
506
521
|
.zhin-sandbox .sandbox-face-button { height: 44px; }
|
|
507
522
|
.zhin-sandbox .sandbox-hints { display: none; }
|
|
508
|
-
.zhin-sandbox .agent-playground-
|
|
509
|
-
.zhin-sandbox .agent-playground-
|
|
510
|
-
.zhin-sandbox .agent-playground-run-settings { max-height: 256px; overflow-y: auto; padding: 12px; }
|
|
511
|
-
.zhin-sandbox .agent-playground-empty { padding: 20px 0; }
|
|
523
|
+
.zhin-sandbox .agent-playground-run-settings { max-height: 256px; overflow-y: auto; padding: var(--console-space-3); }
|
|
524
|
+
.zhin-sandbox .agent-playground-empty { padding: var(--console-space-5) 0; }
|
|
512
525
|
.zhin-sandbox .agent-playground-prompts { grid-template-columns: 1fr; }
|
|
513
526
|
.zhin-sandbox .agent-playground-inline-run { margin-left: 0; }
|
|
514
527
|
.zhin-sandbox .agent-playground-inline-run-head { grid-template-columns: auto minmax(0,1fr); }
|
|
515
528
|
.zhin-sandbox .agent-playground-inline-run-actions { grid-column: 1 / -1; justify-content: flex-start; }
|
|
516
|
-
.zhin-sandbox .agent-playground-scope-picker button
|
|
529
|
+
.zhin-sandbox .agent-playground-scope-picker button:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-section-label button:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-inline-run-actions button:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-inline-run footer button:where(:not(.console-control, [data-state])), .zhin-sandbox .zhin-code-actions button:where(:not(.console-control, [data-state])), .zhin-sandbox .zhin-code-expand, .zhin-sandbox .agent-playground-history-navigation button:where(:not(.console-control, [data-state])), .zhin-sandbox .agent-playground-inspector-head button:where(:not(.console-control, [data-state])) { min-height: 44px; min-width: 44px; }
|
|
517
530
|
}
|
|
518
531
|
@media (prefers-reduced-motion: reduce) {
|
|
519
532
|
.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; }
|