@changfenhuang/dsh-genui 0.9.1
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 +367 -0
- package/LICENSE +21 -0
- package/README.md +261 -0
- package/README.zh-CN.md +261 -0
- package/SKILL.md +115 -0
- package/cordis.patch.yml +9 -0
- package/demo-prompts.md +118 -0
- package/lib/assets/echarts.js +64 -0
- package/lib/assets/mermaid.js +3591 -0
- package/lib/assets/three.js +3844 -0
- package/lib/client.js +5 -0
- package/lib/index.js +1895 -0
- package/lib/invariant.js +19 -0
- package/lib/types/client/EChartNode.d.ts +4 -0
- package/lib/types/client/ErrorBoundary.d.ts +30 -0
- package/lib/types/client/GenuiBlock.d.ts +7 -0
- package/lib/types/client/PlotBlock.d.ts +44 -0
- package/lib/types/client/action-context.d.ts +7 -0
- package/lib/types/client/asset-echarts.d.ts +15 -0
- package/lib/types/client/asset-loader.d.ts +31 -0
- package/lib/types/client/asset-mermaid.d.ts +1 -0
- package/lib/types/client/asset-three.d.ts +1 -0
- package/lib/types/client/blocks/advanced.d.ts +104 -0
- package/lib/types/client/blocks/basic.d.ts +27 -0
- package/lib/types/client/blocks/charts.d.ts +38 -0
- package/lib/types/client/blocks/diagram/geometry.d.ts +73 -0
- package/lib/types/client/blocks/diagram/index.d.ts +5 -0
- package/lib/types/client/blocks/diagram/layout.d.ts +41 -0
- package/lib/types/client/blocks/diagram/theme.d.ts +35 -0
- package/lib/types/client/blocks/forms.d.ts +83 -0
- package/lib/types/client/blocks/render-node.d.ts +10 -0
- package/lib/types/client/blocks/state.d.ts +58 -0
- package/lib/types/client/dom-fence.d.ts +14 -0
- package/lib/types/client/echarts-lazy.d.ts +17 -0
- package/lib/types/client/fence-render.d.ts +58 -0
- package/lib/types/client/gallery.d.ts +9 -0
- package/lib/types/client/guard.d.ts +126 -0
- package/lib/types/client/index.d.ts +36 -0
- package/lib/types/client/interaction-store.d.ts +43 -0
- package/lib/types/client/mermaid-core.d.ts +8 -0
- package/lib/types/client/mermaid-lazy.d.ts +9 -0
- package/lib/types/client/mermaid-safe.d.ts +52 -0
- package/lib/types/client/panel-command.d.ts +29 -0
- package/lib/types/client/panel-store.d.ts +94 -0
- package/lib/types/client/panel.d.ts +15 -0
- package/lib/types/client/parse-partial.d.ts +37 -0
- package/lib/types/client/safe-math.d.ts +43 -0
- package/lib/types/client/scene3d-core.d.ts +21 -0
- package/lib/types/client/scene3d-lazy.d.ts +8 -0
- package/lib/types/client/spec.d.ts +610 -0
- package/lib/types/client/toolview.d.ts +7 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/plugin/index.d.ts +25 -0
- package/lib/types/plugin/invariant.d.ts +15 -0
- package/lib/types/plugin/tool.d.ts +27 -0
- package/lib/types/shared/fence-repair.d.ts +67 -0
- package/package.json +121 -0
- package/src/client/EChartNode.tsx +242 -0
- package/src/client/ErrorBoundary.tsx +66 -0
- package/src/client/GenuiBlock.module.css +1263 -0
- package/src/client/GenuiBlock.tsx +166 -0
- package/src/client/PlotBlock.module.css +155 -0
- package/src/client/PlotBlock.tsx +431 -0
- package/src/client/action-context.ts +32 -0
- package/src/client/asset-echarts.ts +25 -0
- package/src/client/asset-loader.ts +79 -0
- package/src/client/asset-mermaid.ts +13 -0
- package/src/client/asset-three.ts +12 -0
- package/src/client/blocks/advanced.tsx +435 -0
- package/src/client/blocks/basic.tsx +116 -0
- package/src/client/blocks/charts.tsx +319 -0
- package/src/client/blocks/diagram/geometry.ts +151 -0
- package/src/client/blocks/diagram/index.tsx +284 -0
- package/src/client/blocks/diagram/layout.ts +199 -0
- package/src/client/blocks/diagram/theme.ts +108 -0
- package/src/client/blocks/forms.tsx +523 -0
- package/src/client/blocks/render-node.tsx +260 -0
- package/src/client/blocks/state.ts +61 -0
- package/src/client/dom-fence.tsx +641 -0
- package/src/client/echarts-lazy.ts +35 -0
- package/src/client/fence-render.tsx +230 -0
- package/src/client/gallery.ts +128 -0
- package/src/client/guard.ts +1450 -0
- package/src/client/index.tsx +195 -0
- package/src/client/interaction-store.ts +122 -0
- package/src/client/mermaid-core.ts +121 -0
- package/src/client/mermaid-lazy.ts +31 -0
- package/src/client/mermaid-safe.ts +122 -0
- package/src/client/panel-command.ts +119 -0
- package/src/client/panel-store.ts +471 -0
- package/src/client/panel.tsx +185 -0
- package/src/client/parse-partial.ts +162 -0
- package/src/client/safe-math.ts +270 -0
- package/src/client/scene3d-core.ts +192 -0
- package/src/client/scene3d-lazy.ts +26 -0
- package/src/client/spec.ts +767 -0
- package/src/client/toolview.tsx +66 -0
- package/src/css-modules.d.ts +5 -0
- package/src/index.ts +12 -0
- package/src/plugin/index.ts +173 -0
- package/src/plugin/invariant.ts +30 -0
- package/src/plugin/node-shims.d.ts +31 -0
- package/src/plugin/tool.ts +330 -0
- package/src/shared/fence-repair.ts +244 -0
- package/tsconfig.json +35 -0
- package/tsdown.config.ts +193 -0
|
@@ -0,0 +1,1263 @@
|
|
|
1
|
+
/* GenuiBlock: the ```dsh-ui fence renders as an inline component block in the
|
|
2
|
+
conversation. Design system v2 (0.5.0): every geometry and color decision
|
|
3
|
+
resolves through the token layer below, which converges the old grab-bag of
|
|
4
|
+
sizes/gaps/radii (17 font sizes, 6 radii, 10+ gap values, 13 tint levels)
|
|
5
|
+
into five scales:
|
|
6
|
+
|
|
7
|
+
· type display 24 / h1 20 / h2 16 / h3·body 14 / title 13 / meta 12 / data 11
|
|
8
|
+
· spacing 4 · 8 · 12 · 16 (--dsl-g-gap-*)
|
|
9
|
+
· radius surface 12 · control 8 · pill 999
|
|
10
|
+
· color one brand accent for interaction+data; success/warn/error only
|
|
11
|
+
for state; tints normalized to 8% (subtle) / 14% (strong)
|
|
12
|
+
· surfaces components only (card/quiz/plot/accordion…) — the fence block
|
|
13
|
+
itself stays transparent inline; no slab around every fence
|
|
14
|
+
|
|
15
|
+
All colors come from the --dsw-alias-* / --dsw-static-* host tokens; the
|
|
16
|
+
literals here are only last-resort fallbacks for hosts without the token
|
|
17
|
+
sheets. */
|
|
18
|
+
|
|
19
|
+
.block {
|
|
20
|
+
/* ── design tokens (design system v2) ── */
|
|
21
|
+
--dsl-g-radius-surface: 12px;
|
|
22
|
+
--dsl-g-radius-control: 8px;
|
|
23
|
+
--dsl-g-radius-pill: 999px;
|
|
24
|
+
|
|
25
|
+
--dsl-g-font-display: 24px;
|
|
26
|
+
--dsl-g-font-h1: 20px;
|
|
27
|
+
--dsl-g-font-h2: 16px;
|
|
28
|
+
--dsl-g-font-h3: 14px;
|
|
29
|
+
--dsl-g-font-body: 14px;
|
|
30
|
+
--dsl-g-font-title: 13px;
|
|
31
|
+
--dsl-g-font-meta: 12px;
|
|
32
|
+
--dsl-g-font-data: 11px;
|
|
33
|
+
|
|
34
|
+
--dsl-g-gap-lg: 16px;
|
|
35
|
+
--dsl-g-gap-md: 12px;
|
|
36
|
+
--dsl-g-gap-sm: 8px;
|
|
37
|
+
--dsl-g-gap-xs: 4px;
|
|
38
|
+
|
|
39
|
+
--dsl-g-border: var(--dsw-alias-border-l1, var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.12)));
|
|
40
|
+
--dsl-g-border-strong: var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.12));
|
|
41
|
+
--dsl-g-accent: var(--dsw-alias-state-business-primary, #4f8ef7);
|
|
42
|
+
--dsl-g-accent-soft: color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint), transparent);
|
|
43
|
+
/* Row/surface hover: a 4% wash of the theme's own label color works on
|
|
44
|
+
* dark AND light hosts without any off-brand literal. */
|
|
45
|
+
--dsl-g-hover: color-mix(in srgb, var(--dsw-alias-label-primary) 4%, transparent);
|
|
46
|
+
--dsl-g-tint: 8%;
|
|
47
|
+
--dsl-g-tint-strong: 14%;
|
|
48
|
+
--dsl-g-font-mono: var(--ds-font-family-code, ui-monospace, 'SF Mono', monospace);
|
|
49
|
+
|
|
50
|
+
/* Inline in the conversation: no canvas, no border, no padding — the
|
|
51
|
+
components themselves (card/quiz/plot/…) carry the surfaces. A slab
|
|
52
|
+
around every fence was tried and rejected: a lone stat or text node
|
|
53
|
+
does not need a card wrapper. */
|
|
54
|
+
margin: 8px 0;
|
|
55
|
+
color: var(--dsw-alias-label-primary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.banner {
|
|
59
|
+
font-size: var(--dsl-g-font-title);
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
letter-spacing: 0.01em;
|
|
62
|
+
color: var(--dsw-alias-label-primary);
|
|
63
|
+
padding-bottom: 10px;
|
|
64
|
+
margin-bottom: var(--dsl-g-gap-lg);
|
|
65
|
+
border-bottom: 1px solid var(--dsl-g-border);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ---------- layout primitives ---------- */
|
|
69
|
+
|
|
70
|
+
.col { display: flex; flex-direction: column; gap: var(--dsl-g-gap-md); }
|
|
71
|
+
.row { display: flex; align-items: center; gap: var(--dsl-g-gap-md); }
|
|
72
|
+
.row.wrap { flex-wrap: wrap; }
|
|
73
|
+
.grid { display: grid; gap: var(--dsl-g-gap-md); }
|
|
74
|
+
.spacer { flex: 1; }
|
|
75
|
+
.divider {
|
|
76
|
+
height: 1px;
|
|
77
|
+
background: var(--dsw-alias-markdown-hr, var(--dsl-g-border));
|
|
78
|
+
border: none;
|
|
79
|
+
margin: var(--dsl-g-gap-xs) 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.card {
|
|
83
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block));
|
|
84
|
+
border: 1px solid var(--dsl-g-border);
|
|
85
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
86
|
+
padding: var(--dsl-g-gap-lg);
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
gap: var(--dsl-g-gap-md);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cardTitle {
|
|
93
|
+
font-size: var(--dsl-g-font-meta);
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
letter-spacing: 0.02em;
|
|
96
|
+
color: var(--dsw-alias-label-secondary);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* ---------- text ---------- */
|
|
100
|
+
|
|
101
|
+
.text { color: var(--dsw-alias-label-primary); }
|
|
102
|
+
.text.h1 { font-size: var(--dsl-g-font-h1); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
|
|
103
|
+
.text.h2 { font-size: var(--dsl-g-font-h2); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
|
|
104
|
+
.text.h3 { font-size: var(--dsl-g-font-h3); font-weight: 600; line-height: 1.5; }
|
|
105
|
+
.text.body { font-size: var(--dsl-g-font-body); line-height: 1.6; color: var(--dsw-alias-label-primary); }
|
|
106
|
+
.text.muted { font-size: var(--dsl-g-font-title); line-height: 1.5; color: var(--dsw-alias-label-secondary); }
|
|
107
|
+
.text.caption { font-size: var(--dsl-g-font-meta); line-height: 1.5; color: var(--dsw-alias-label-tertiary); letter-spacing: 0.02em; }
|
|
108
|
+
.text.center { text-align: center; }
|
|
109
|
+
|
|
110
|
+
/* ---------- controls ---------- */
|
|
111
|
+
|
|
112
|
+
.button {
|
|
113
|
+
border: 1px solid var(--dsl-g-border);
|
|
114
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
115
|
+
color: var(--dsw-alias-label-primary);
|
|
116
|
+
border-radius: var(--dsl-g-radius-control);
|
|
117
|
+
padding: 8px var(--dsl-g-gap-lg);
|
|
118
|
+
font-size: var(--dsl-g-font-title);
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
font-family: inherit;
|
|
121
|
+
line-height: 1.4;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
transition: border-color 0.15s, filter 0.15s, background 0.15s, transform 0.1s;
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.button:hover:not(:disabled) { border-color: var(--dsl-g-accent); filter: brightness(1.06); }
|
|
128
|
+
.button.primary:hover:not(:disabled) { filter: brightness(1.08); }
|
|
129
|
+
/* Press feedback: a 1px sink makes every actionable control feel mechanical. */
|
|
130
|
+
.button:active:not(:disabled) { transform: translateY(1px); filter: brightness(0.97); }
|
|
131
|
+
/* Display-only buttons (no action): honest disabled affordance — the
|
|
132
|
+
* clickable-looking dead button was the top interaction complaint. */
|
|
133
|
+
.button:disabled {
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
opacity: 0.45;
|
|
136
|
+
filter: none;
|
|
137
|
+
box-shadow: none;
|
|
138
|
+
pointer-events: none;
|
|
139
|
+
}
|
|
140
|
+
.button.primary {
|
|
141
|
+
background: var(--dsl-g-accent);
|
|
142
|
+
border: none;
|
|
143
|
+
color: #fff;
|
|
144
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
|
145
|
+
}
|
|
146
|
+
.button.danger {
|
|
147
|
+
background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) var(--dsl-g-tint), transparent);
|
|
148
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) 30%, transparent);
|
|
149
|
+
color: var(--dsw-alias-state-error-primary, #ffb3b3);
|
|
150
|
+
}
|
|
151
|
+
.button.success {
|
|
152
|
+
background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) var(--dsl-g-tint), transparent);
|
|
153
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 30%, transparent);
|
|
154
|
+
color: var(--dsw-alias-state-success-secondary, #9fe8c5);
|
|
155
|
+
}
|
|
156
|
+
.button.ghost { background: transparent; }
|
|
157
|
+
.button.full { width: 100%; }
|
|
158
|
+
.button.small { padding: 4px 12px; font-size: var(--dsl-g-font-meta); border-radius: var(--dsl-g-radius-control); }
|
|
159
|
+
|
|
160
|
+
.field { display: flex; flex-direction: column; gap: var(--dsl-g-gap-xs); }
|
|
161
|
+
.field > span { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); }
|
|
162
|
+
|
|
163
|
+
.input, .select {
|
|
164
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
165
|
+
border: 1px solid var(--dsl-g-border);
|
|
166
|
+
border-radius: var(--dsl-g-radius-control);
|
|
167
|
+
color: var(--dsw-alias-label-primary);
|
|
168
|
+
padding: 8px 12px;
|
|
169
|
+
font-size: var(--dsl-g-font-title);
|
|
170
|
+
font-family: inherit;
|
|
171
|
+
outline: none;
|
|
172
|
+
width: 100%;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.input:focus, .select:focus {
|
|
176
|
+
border-color: var(--dsl-g-accent);
|
|
177
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent);
|
|
178
|
+
}
|
|
179
|
+
.input::placeholder { color: var(--dsw-alias-label-caption, #5b6378); }
|
|
180
|
+
|
|
181
|
+
.checkbox { display: flex; align-items: center; gap: var(--dsl-g-gap-sm); font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-secondary); cursor: pointer; }
|
|
182
|
+
.checkbox input { accent-color: var(--dsl-g-accent); width: 15px; height: 15px; }
|
|
183
|
+
.checkbox input:focus-visible {
|
|
184
|
+
outline: 2px solid var(--dsl-g-accent);
|
|
185
|
+
outline-offset: 2px;
|
|
186
|
+
border-radius: 4px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.link {
|
|
190
|
+
color: var(--dsl-g-accent);
|
|
191
|
+
background: none;
|
|
192
|
+
border: none;
|
|
193
|
+
font-size: var(--dsl-g-font-title);
|
|
194
|
+
font-family: inherit;
|
|
195
|
+
padding: 0;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
text-decoration: none;
|
|
198
|
+
}
|
|
199
|
+
.link:hover { text-decoration: underline; }
|
|
200
|
+
|
|
201
|
+
/* Link without a whitelisted href: plain styled text, no pointer affordance. */
|
|
202
|
+
.linkText {
|
|
203
|
+
color: var(--dsl-g-accent);
|
|
204
|
+
font-size: var(--dsl-g-font-title);
|
|
205
|
+
font-family: inherit;
|
|
206
|
+
text-decoration: none;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/* ---------- native media ---------- */
|
|
210
|
+
|
|
211
|
+
.media {
|
|
212
|
+
margin: 0;
|
|
213
|
+
padding: var(--dsl-g-gap-md);
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
gap: var(--dsl-g-gap-sm);
|
|
217
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block));
|
|
218
|
+
border: 1px solid var(--dsl-g-border);
|
|
219
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
220
|
+
}
|
|
221
|
+
.mediaLabel { font-size: var(--dsl-g-font-title); font-weight: 600; color: var(--dsw-alias-label-primary); }
|
|
222
|
+
.mediaPlayer { display: block; width: 100%; min-width: 0; }
|
|
223
|
+
.videoPlayer { max-height: min(70vh, 720px); background: #000; object-fit: contain; }
|
|
224
|
+
.mediaError { font-size: var(--dsl-g-font-title); color: var(--dsw-alias-state-error-primary, #f25a5a); }
|
|
225
|
+
|
|
226
|
+
/* ---------- badges / stat / progress ---------- */
|
|
227
|
+
|
|
228
|
+
.badge {
|
|
229
|
+
display: inline-flex;
|
|
230
|
+
align-items: center;
|
|
231
|
+
gap: var(--dsl-g-gap-xs);
|
|
232
|
+
font-size: var(--dsl-g-font-meta);
|
|
233
|
+
font-weight: 500;
|
|
234
|
+
line-height: 1.5;
|
|
235
|
+
letter-spacing: 0.01em;
|
|
236
|
+
padding: 1px 10px;
|
|
237
|
+
border-radius: var(--dsl-g-radius-pill);
|
|
238
|
+
width: fit-content;
|
|
239
|
+
background: color-mix(in srgb, var(--dsw-alias-label-tertiary) var(--dsl-g-tint), transparent);
|
|
240
|
+
color: var(--dsw-alias-label-secondary);
|
|
241
|
+
border: 1px solid var(--dsl-g-border);
|
|
242
|
+
}
|
|
243
|
+
.badge.success {
|
|
244
|
+
background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) var(--dsl-g-tint), transparent);
|
|
245
|
+
color: var(--dsw-alias-state-success-secondary, #7fe3b4);
|
|
246
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 30%, transparent);
|
|
247
|
+
}
|
|
248
|
+
.badge.warn {
|
|
249
|
+
background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #f5b83d) var(--dsl-g-tint), transparent);
|
|
250
|
+
color: var(--dsw-alias-state-warn-secondary, #f7cf7d);
|
|
251
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #f5b83d) 30%, transparent);
|
|
252
|
+
}
|
|
253
|
+
.badge.danger {
|
|
254
|
+
background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) var(--dsl-g-tint), transparent);
|
|
255
|
+
color: var(--dsw-alias-state-error-primary, #ff9d9d);
|
|
256
|
+
border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) 30%, transparent);
|
|
257
|
+
}
|
|
258
|
+
.badge.accent {
|
|
259
|
+
background: color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint), transparent);
|
|
260
|
+
color: var(--dsw-alias-state-business-primary, #9cc3ff);
|
|
261
|
+
border-color: color-mix(in srgb, var(--dsl-g-accent) 30%, transparent);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.stat {
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
gap: 2px;
|
|
268
|
+
padding: 6px var(--dsl-g-gap-lg);
|
|
269
|
+
}
|
|
270
|
+
.grid > .stat, .row > .stat { border-left: 1px solid var(--dsl-g-border); }
|
|
271
|
+
.grid > .stat:first-child, .row > .stat:first-child { border-left: none; padding-left: var(--dsl-g-gap-xs); }
|
|
272
|
+
.statLabel { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); letter-spacing: 0.02em; }
|
|
273
|
+
.statValue {
|
|
274
|
+
font-family: var(--dsl-g-font-mono);
|
|
275
|
+
font-size: var(--dsl-g-font-display);
|
|
276
|
+
font-weight: 600;
|
|
277
|
+
letter-spacing: -0.02em;
|
|
278
|
+
font-variant-numeric: tabular-nums;
|
|
279
|
+
color: var(--dsw-alias-label-primary);
|
|
280
|
+
line-height: 1.2;
|
|
281
|
+
}
|
|
282
|
+
.statDelta { font-size: var(--dsl-g-font-meta); font-weight: 500; }
|
|
283
|
+
.statDelta.up { color: var(--dsw-alias-state-success-primary, #22c55e); }
|
|
284
|
+
.statDelta.down { color: var(--dsw-alias-state-error-primary, #f25a5a); }
|
|
285
|
+
|
|
286
|
+
.progress { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
287
|
+
.progressRow {
|
|
288
|
+
display: flex;
|
|
289
|
+
justify-content: space-between;
|
|
290
|
+
font-size: var(--dsl-g-font-meta);
|
|
291
|
+
color: var(--dsw-alias-label-tertiary);
|
|
292
|
+
}
|
|
293
|
+
.progressRow span:last-child { font-family: var(--dsl-g-font-mono); }
|
|
294
|
+
.track {
|
|
295
|
+
height: 6px;
|
|
296
|
+
border-radius: var(--dsl-g-radius-pill);
|
|
297
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
298
|
+
overflow: hidden;
|
|
299
|
+
box-shadow: inset 0 0 0 1px var(--dsl-g-border);
|
|
300
|
+
}
|
|
301
|
+
.fill {
|
|
302
|
+
height: 100%;
|
|
303
|
+
border-radius: var(--dsl-g-radius-pill);
|
|
304
|
+
/* A faint top sheen keeps the accent bar from reading as a flat slab. */
|
|
305
|
+
background: linear-gradient(180deg, color-mix(in srgb, var(--dsl-g-accent) 85%, white), var(--dsl-g-accent));
|
|
306
|
+
transition: width 0.5s ease;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* ---------- list / table / chart / tabs / avatar ---------- */
|
|
310
|
+
|
|
311
|
+
.list { display: flex; flex-direction: column; }
|
|
312
|
+
.li { padding: var(--dsl-g-gap-sm) var(--dsl-g-gap-xs); display: flex; flex-direction: column; gap: 2px; }
|
|
313
|
+
.li + .li { border-top: 1px solid var(--dsl-g-border); }
|
|
314
|
+
.li:last-child { border-bottom: none; }
|
|
315
|
+
.liTitle { font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-primary); font-weight: 600; line-height: 1.5; }
|
|
316
|
+
.liDesc { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); line-height: 1.5; }
|
|
317
|
+
|
|
318
|
+
.tableWrap {
|
|
319
|
+
border-radius: var(--dsl-g-radius-control);
|
|
320
|
+
/* A table whose nowrap cells exceed the column width must scroll, not clip
|
|
321
|
+
(mirrors the shell markdown table's .tableScroll pattern). */
|
|
322
|
+
overflow-x: auto;
|
|
323
|
+
overscroll-behavior-x: contain;
|
|
324
|
+
max-width: 100%;
|
|
325
|
+
min-width: 0;
|
|
326
|
+
}
|
|
327
|
+
.table { width: 100%; border-collapse: collapse; font-size: var(--dsl-g-font-title); }
|
|
328
|
+
.table th {
|
|
329
|
+
text-align: left;
|
|
330
|
+
padding: var(--dsl-g-gap-sm) var(--dsl-g-gap-md);
|
|
331
|
+
color: var(--dsw-alias-label-tertiary);
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
font-size: var(--dsl-g-font-meta);
|
|
334
|
+
border-bottom: 1px solid var(--dsl-g-border);
|
|
335
|
+
white-space: nowrap;
|
|
336
|
+
}
|
|
337
|
+
.table td {
|
|
338
|
+
padding: var(--dsl-g-gap-sm) var(--dsl-g-gap-md);
|
|
339
|
+
border-bottom: 1px solid var(--dsl-g-border);
|
|
340
|
+
color: var(--dsw-alias-label-secondary);
|
|
341
|
+
white-space: nowrap;
|
|
342
|
+
font-variant-numeric: tabular-nums;
|
|
343
|
+
line-height: 1.5;
|
|
344
|
+
}
|
|
345
|
+
.table tr:last-child td { border-bottom: none; }
|
|
346
|
+
.table tbody tr { transition: background 0.12s; }
|
|
347
|
+
.table tbody tr:hover { background: var(--dsl-g-hover); }
|
|
348
|
+
/* Numeric columns (auto-detected) right-align with tabular numerals — the
|
|
349
|
+
table's data voice. */
|
|
350
|
+
.table th.thNum, .table td.tdNum { text-align: right; }
|
|
351
|
+
|
|
352
|
+
/* sortable header button (v2.9) */
|
|
353
|
+
.thSort {
|
|
354
|
+
background: none;
|
|
355
|
+
border: none;
|
|
356
|
+
padding: 0;
|
|
357
|
+
margin: 0;
|
|
358
|
+
color: inherit;
|
|
359
|
+
font: inherit;
|
|
360
|
+
font-weight: inherit;
|
|
361
|
+
cursor: pointer;
|
|
362
|
+
text-align: left;
|
|
363
|
+
transition: color 0.12s;
|
|
364
|
+
}
|
|
365
|
+
.table th.thNum .thSort { text-align: right; width: 100%; }
|
|
366
|
+
.thSort:hover { color: var(--dsw-alias-label-primary); }
|
|
367
|
+
/* The ACTIVE sort column stays at full contrast — the sort direction mark
|
|
368
|
+
alone is too faint to read which header owns the order. */
|
|
369
|
+
.table th[aria-sort]:not([aria-sort="none"]) .thSort { color: var(--dsw-alias-label-primary); }
|
|
370
|
+
.thSortMark { color: var(--dsl-g-accent); }
|
|
371
|
+
.thSort:focus-visible { outline: 2px solid var(--dsl-g-accent); outline-offset: 1px; border-radius: var(--dsl-g-radius-control); }
|
|
372
|
+
|
|
373
|
+
/* Chart skeleton: plot area with baseline + 25/50/75% gridlines, category
|
|
374
|
+
labels in their own row below the axis (they must never cross the lines). */
|
|
375
|
+
.chart { display: flex; flex-direction: column; gap: var(--dsl-g-gap-xs); }
|
|
376
|
+
.chartPlot {
|
|
377
|
+
position: relative;
|
|
378
|
+
display: flex;
|
|
379
|
+
align-items: flex-end;
|
|
380
|
+
gap: var(--dsl-g-gap-sm);
|
|
381
|
+
height: 132px;
|
|
382
|
+
}
|
|
383
|
+
.baseline {
|
|
384
|
+
position: absolute;
|
|
385
|
+
left: 0; right: 0; bottom: 0;
|
|
386
|
+
height: 1px;
|
|
387
|
+
background: var(--dsl-g-border-strong);
|
|
388
|
+
pointer-events: none;
|
|
389
|
+
}
|
|
390
|
+
.gridline {
|
|
391
|
+
position: absolute;
|
|
392
|
+
left: 0; right: 0;
|
|
393
|
+
height: 1px;
|
|
394
|
+
background: var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.06));
|
|
395
|
+
pointer-events: none;
|
|
396
|
+
}
|
|
397
|
+
.chartLabels { display: flex; gap: var(--dsl-g-gap-sm); }
|
|
398
|
+
.chartLabels > span { flex: 1; min-width: 0; }
|
|
399
|
+
.barCol {
|
|
400
|
+
flex: 1;
|
|
401
|
+
display: flex;
|
|
402
|
+
flex-direction: column;
|
|
403
|
+
justify-content: flex-end;
|
|
404
|
+
gap: var(--dsl-g-gap-xs);
|
|
405
|
+
min-width: 0;
|
|
406
|
+
height: 100%;
|
|
407
|
+
}
|
|
408
|
+
.barValue {
|
|
409
|
+
font-family: var(--dsl-g-font-mono);
|
|
410
|
+
font-size: var(--dsl-g-font-data);
|
|
411
|
+
font-variant-numeric: tabular-nums;
|
|
412
|
+
color: var(--dsw-alias-label-secondary);
|
|
413
|
+
text-align: center;
|
|
414
|
+
line-height: 1.2;
|
|
415
|
+
}
|
|
416
|
+
.barFill {
|
|
417
|
+
border-radius: 4px 4px 2px 2px;
|
|
418
|
+
min-height: 4px;
|
|
419
|
+
background: var(--dsl-g-accent);
|
|
420
|
+
transition: height 0.6s ease, filter 0.15s;
|
|
421
|
+
}
|
|
422
|
+
.barFill:hover { filter: brightness(1.18); }
|
|
423
|
+
.barLabel {
|
|
424
|
+
font-size: var(--dsl-g-font-meta);
|
|
425
|
+
color: var(--dsw-alias-label-tertiary);
|
|
426
|
+
text-align: center;
|
|
427
|
+
white-space: nowrap;
|
|
428
|
+
overflow: hidden;
|
|
429
|
+
text-overflow: ellipsis;
|
|
430
|
+
line-height: 1.5;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.tabs { display: flex; flex-direction: column; gap: var(--dsl-g-gap-md); }
|
|
434
|
+
.tabBar { display: flex; gap: var(--dsl-g-gap-xs); border-bottom: 1px solid var(--dsl-g-border); }
|
|
435
|
+
.tab {
|
|
436
|
+
background: transparent;
|
|
437
|
+
border: none;
|
|
438
|
+
color: var(--dsw-alias-label-tertiary);
|
|
439
|
+
font-size: var(--dsl-g-font-title);
|
|
440
|
+
font-weight: 600;
|
|
441
|
+
font-family: inherit;
|
|
442
|
+
padding: 6px 12px;
|
|
443
|
+
border-bottom: 2px solid transparent;
|
|
444
|
+
margin-bottom: -1px;
|
|
445
|
+
cursor: pointer;
|
|
446
|
+
line-height: 1.5;
|
|
447
|
+
transition: color 0.15s, border-bottom-color 0.15s;
|
|
448
|
+
}
|
|
449
|
+
.tab:hover { color: var(--dsw-alias-label-secondary); }
|
|
450
|
+
.tabActive { color: var(--dsw-alias-label-primary); border-bottom-color: var(--dsl-g-accent); }
|
|
451
|
+
|
|
452
|
+
.avatar {
|
|
453
|
+
width: 32px;
|
|
454
|
+
height: 32px;
|
|
455
|
+
border-radius: 50%;
|
|
456
|
+
display: grid;
|
|
457
|
+
place-items: center;
|
|
458
|
+
font-size: var(--dsl-g-font-title);
|
|
459
|
+
font-weight: 700;
|
|
460
|
+
color: #fff;
|
|
461
|
+
flex-shrink: 0;
|
|
462
|
+
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
463
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* ---------- callout ----------
|
|
467
|
+
克制的信息条:无左竖条、无彩色块底。极淡的底色 + 细边框 + 小圆点标记,
|
|
468
|
+
文字层级轻(像 Linear / Vercel 的 notice),而不是"彩色便签"。 */
|
|
469
|
+
|
|
470
|
+
.callout {
|
|
471
|
+
display: flex;
|
|
472
|
+
flex-direction: column;
|
|
473
|
+
gap: 2px;
|
|
474
|
+
padding: 10px 14px;
|
|
475
|
+
border-radius: var(--dsl-g-radius-control);
|
|
476
|
+
border: 1px solid var(--dsl-g-border);
|
|
477
|
+
font-size: var(--dsl-g-font-title);
|
|
478
|
+
line-height: 1.6;
|
|
479
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block));
|
|
480
|
+
}
|
|
481
|
+
.calloutInfo { background: color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint), transparent); }
|
|
482
|
+
.calloutSuccess { background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) var(--dsl-g-tint), transparent); }
|
|
483
|
+
.calloutWarning { background: color-mix(in srgb, var(--dsw-alias-state-warn-primary, #f5b83d) var(--dsl-g-tint), transparent); }
|
|
484
|
+
.calloutError { background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) var(--dsl-g-tint), transparent); }
|
|
485
|
+
.calloutTitle {
|
|
486
|
+
display: flex;
|
|
487
|
+
align-items: center;
|
|
488
|
+
gap: 6px;
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
font-size: var(--dsl-g-font-meta);
|
|
491
|
+
letter-spacing: 0.02em;
|
|
492
|
+
color: var(--dsw-alias-label-secondary);
|
|
493
|
+
}
|
|
494
|
+
/* 小圆点:用色点替代左侧竖条表达语义,克制且可读 */
|
|
495
|
+
.calloutTitle::before {
|
|
496
|
+
content: "";
|
|
497
|
+
width: 6px;
|
|
498
|
+
height: 6px;
|
|
499
|
+
border-radius: 50%;
|
|
500
|
+
background: var(--dsw-alias-label-caption, var(--dsw-alias-label-tertiary));
|
|
501
|
+
}
|
|
502
|
+
.calloutInfo .calloutTitle::before { background: var(--dsl-g-accent); }
|
|
503
|
+
.calloutSuccess .calloutTitle::before { background: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
504
|
+
.calloutWarning .calloutTitle::before { background: var(--dsw-alias-state-warn-primary, #f5b83d); }
|
|
505
|
+
.calloutError .calloutTitle::before { background: var(--dsw-alias-state-error-primary, #ff6b6b); }
|
|
506
|
+
.calloutBody { color: var(--dsw-alias-label-secondary); }
|
|
507
|
+
|
|
508
|
+
/* ---------- steps ---------- */
|
|
509
|
+
|
|
510
|
+
.steps {
|
|
511
|
+
list-style: none;
|
|
512
|
+
margin: 0;
|
|
513
|
+
padding: 0;
|
|
514
|
+
display: flex;
|
|
515
|
+
flex-direction: column;
|
|
516
|
+
gap: var(--dsl-g-gap-sm);
|
|
517
|
+
}
|
|
518
|
+
.step { display: flex; gap: var(--dsl-g-gap-md); align-items: flex-start; }
|
|
519
|
+
.stepMarker {
|
|
520
|
+
width: 24px;
|
|
521
|
+
height: 24px;
|
|
522
|
+
border-radius: 50%;
|
|
523
|
+
display: grid;
|
|
524
|
+
place-items: center;
|
|
525
|
+
font-size: var(--dsl-g-font-meta);
|
|
526
|
+
font-weight: 700;
|
|
527
|
+
flex-shrink: 0;
|
|
528
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
529
|
+
border: 1px solid var(--dsl-g-border);
|
|
530
|
+
color: var(--dsw-alias-label-tertiary);
|
|
531
|
+
}
|
|
532
|
+
.stepDone .stepMarker { background: var(--dsw-alias-state-success-primary, #3ecf8e); border-color: transparent; color: #fff; font-size: 13px; }
|
|
533
|
+
.stepActive .stepMarker {
|
|
534
|
+
background: color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent);
|
|
535
|
+
border-color: var(--dsl-g-accent);
|
|
536
|
+
color: var(--dsl-g-accent);
|
|
537
|
+
}
|
|
538
|
+
.stepContent { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
|
|
539
|
+
.stepTitle { font-size: var(--dsl-g-font-title); font-weight: 600; color: var(--dsw-alias-label-primary); line-height: 1.5; }
|
|
540
|
+
.stepDesc { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); line-height: 1.5; }
|
|
541
|
+
|
|
542
|
+
/* ---------- keyvalue ---------- */
|
|
543
|
+
|
|
544
|
+
.keyvalue { margin: 0; display: flex; flex-direction: column; }
|
|
545
|
+
.kvRow {
|
|
546
|
+
display: flex;
|
|
547
|
+
gap: var(--dsl-g-gap-md);
|
|
548
|
+
padding: 6px 0;
|
|
549
|
+
font-size: var(--dsl-g-font-title);
|
|
550
|
+
}
|
|
551
|
+
.kvRow + .kvRow { border-top: 1px solid var(--dsl-g-border); }
|
|
552
|
+
.kvRow:last-child { border-bottom: none; }
|
|
553
|
+
.kvKey { width: 96px; flex-shrink: 0; color: var(--dsw-alias-label-tertiary); font-weight: 600; }
|
|
554
|
+
.kvValue { margin: 0; color: var(--dsw-alias-label-primary); word-break: break-word; line-height: 1.5; }
|
|
555
|
+
|
|
556
|
+
/* ---------- json scalar ---------- */
|
|
557
|
+
|
|
558
|
+
.jsonScalar { font-family: var(--dsl-g-font-mono); font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-secondary); }
|
|
559
|
+
|
|
560
|
+
/* ---------- chart variants ---------- */
|
|
561
|
+
|
|
562
|
+
.lineChart { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
563
|
+
.linePath { fill: none; stroke: var(--dsl-g-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
|
|
564
|
+
.lineDot { fill: var(--dsl-g-accent); transition: filter 0.15s; }
|
|
565
|
+
.lineDot:hover { filter: brightness(1.3); }
|
|
566
|
+
.lineGrid { stroke: var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.07)); stroke-width: 1; }
|
|
567
|
+
.lineGridAxis { stroke: var(--dsl-g-border-strong); stroke-width: 1; }
|
|
568
|
+
.lineTick {
|
|
569
|
+
fill: var(--dsw-alias-label-tertiary);
|
|
570
|
+
font-family: var(--dsl-g-font-mono);
|
|
571
|
+
font-size: var(--dsl-g-font-data);
|
|
572
|
+
}
|
|
573
|
+
.lineLabels { display: flex; justify-content: space-between; }
|
|
574
|
+
|
|
575
|
+
.groupedBars { display: flex; gap: var(--dsl-g-gap-xs); align-items: flex-end; height: 100%; width: 100%; }
|
|
576
|
+
.groupedBar {
|
|
577
|
+
flex: 1;
|
|
578
|
+
display: flex;
|
|
579
|
+
flex-direction: column;
|
|
580
|
+
align-items: center;
|
|
581
|
+
justify-content: flex-end;
|
|
582
|
+
gap: 2px;
|
|
583
|
+
min-width: 0;
|
|
584
|
+
height: 100%;
|
|
585
|
+
}
|
|
586
|
+
.groupValue {
|
|
587
|
+
font-family: var(--dsl-g-font-mono);
|
|
588
|
+
font-size: var(--dsl-g-font-data);
|
|
589
|
+
font-variant-numeric: tabular-nums;
|
|
590
|
+
color: var(--dsw-alias-label-secondary);
|
|
591
|
+
line-height: 1.2;
|
|
592
|
+
max-width: 100%;
|
|
593
|
+
overflow: hidden;
|
|
594
|
+
text-overflow: ellipsis;
|
|
595
|
+
}
|
|
596
|
+
.groupedFill { flex: 0 0 auto; width: 100%; border-radius: 4px 4px 2px 2px; min-height: 3px; background: var(--dsl-g-accent); transition: filter 0.15s; }
|
|
597
|
+
.groupedFill:hover { filter: brightness(1.18); }
|
|
598
|
+
|
|
599
|
+
.donut { display: flex; align-items: center; gap: var(--dsl-g-gap-lg); }
|
|
600
|
+
.donutTrack { stroke: var(--dsw-alias-border-l1, rgba(255, 255, 255, 0.08)); }
|
|
601
|
+
.donutSeg { transition: filter 0.15s; }
|
|
602
|
+
.donutSeg:hover { filter: brightness(1.18); }
|
|
603
|
+
.donutTotal { fill: var(--dsw-alias-label-primary); font-size: var(--dsl-g-font-h2); font-weight: 700; }
|
|
604
|
+
.donutTotalLabel { fill: var(--dsw-alias-label-tertiary); font-size: 10px; }
|
|
605
|
+
.donutLegend { display: flex; flex-direction: column; gap: var(--dsl-g-gap-xs); font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-secondary); line-height: 1.5; }
|
|
606
|
+
|
|
607
|
+
/* ---------- radio / switch / textarea ---------- */
|
|
608
|
+
|
|
609
|
+
.fieldGroup { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
610
|
+
.fieldLabel { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); }
|
|
611
|
+
.radio { display: flex; align-items: center; gap: var(--dsl-g-gap-sm); font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-secondary); cursor: pointer; line-height: 1.5; }
|
|
612
|
+
.radio input { accent-color: var(--dsl-g-accent); }
|
|
613
|
+
.radio input:focus-visible {
|
|
614
|
+
outline: 2px solid var(--dsl-g-accent);
|
|
615
|
+
outline-offset: 2px;
|
|
616
|
+
border-radius: 50%;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/* ---------- submit(交卷聚合 / 本地判卷) ---------- */
|
|
620
|
+
|
|
621
|
+
.submitRow { display: flex; align-items: center; gap: var(--dsl-g-gap-md); margin-top: 2px; }
|
|
622
|
+
.submit { align-self: flex-start; }
|
|
623
|
+
.submitHint { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); }
|
|
624
|
+
|
|
625
|
+
.btnSent {
|
|
626
|
+
margin-left: var(--dsl-g-gap-sm);
|
|
627
|
+
font-size: var(--dsl-g-font-meta);
|
|
628
|
+
font-weight: 600;
|
|
629
|
+
color: var(--dsw-alias-state-success-primary, #3ecf8e);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/* local grading result panel */
|
|
633
|
+
.gradeWrap { display: flex; flex-direction: column; gap: var(--dsl-g-gap-md); }
|
|
634
|
+
.gradeScore { display: flex; align-items: baseline; gap: var(--dsl-g-gap-sm); }
|
|
635
|
+
.gradeScoreValue { font-size: var(--dsl-g-font-display); font-weight: 700; color: var(--dsw-alias-label-primary); line-height: 1.2; }
|
|
636
|
+
.gradeScoreLabel { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); }
|
|
637
|
+
.gradeList { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
638
|
+
.gradeItem {
|
|
639
|
+
display: grid;
|
|
640
|
+
grid-template-columns: auto auto 1fr;
|
|
641
|
+
gap: 6px 10px;
|
|
642
|
+
align-items: baseline;
|
|
643
|
+
font-size: var(--dsl-g-font-title);
|
|
644
|
+
padding: var(--dsl-g-gap-sm) 12px;
|
|
645
|
+
border-radius: var(--dsl-g-radius-control);
|
|
646
|
+
border: 1px solid var(--dsl-g-border);
|
|
647
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
648
|
+
line-height: 1.5;
|
|
649
|
+
}
|
|
650
|
+
.gradeItemOk { border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 30%, transparent); }
|
|
651
|
+
.gradeItemNo { border-color: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) 30%, transparent); }
|
|
652
|
+
.gradeQ { font-weight: 600; color: var(--dsw-alias-label-primary); }
|
|
653
|
+
.gradeTag { font-weight: 700; }
|
|
654
|
+
.gradeItemOk .gradeTag { color: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
655
|
+
.gradeItemNo .gradeTag { color: var(--dsw-alias-state-error-primary, #ff6b6b); }
|
|
656
|
+
.gradeAns { color: var(--dsw-alias-label-secondary); }
|
|
657
|
+
.gradeRight { color: var(--dsw-alias-state-error-primary, #ffb3b3); }
|
|
658
|
+
.gradeExp { grid-column: 1 / -1; font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); line-height: 1.5; }
|
|
659
|
+
|
|
660
|
+
.switchRow { display: flex; align-items: center; justify-content: space-between; gap: var(--dsl-g-gap-md); cursor: pointer; }
|
|
661
|
+
.switchRow:focus-within .switch { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent); }
|
|
662
|
+
.switchLabel { font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-primary); line-height: 1.5; }
|
|
663
|
+
.switch {
|
|
664
|
+
width: 38px; height: 22px; border-radius: var(--dsl-g-radius-pill);
|
|
665
|
+
border: 1px solid var(--dsl-g-border);
|
|
666
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
667
|
+
position: relative;
|
|
668
|
+
transition: background 0.2s;
|
|
669
|
+
}
|
|
670
|
+
.switchOn { background: var(--dsl-g-accent); border-color: transparent; }
|
|
671
|
+
.switchKnob {
|
|
672
|
+
position: absolute;
|
|
673
|
+
top: 3px; left: 3px;
|
|
674
|
+
width: 14px; height: 14px;
|
|
675
|
+
border-radius: 50%;
|
|
676
|
+
background: #fff;
|
|
677
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
678
|
+
transition: left 0.2s;
|
|
679
|
+
}
|
|
680
|
+
.switchOn .switchKnob { left: 19px; }
|
|
681
|
+
|
|
682
|
+
/* slider form node (v2.9) */
|
|
683
|
+
.sliderRow {
|
|
684
|
+
display: flex;
|
|
685
|
+
align-items: center;
|
|
686
|
+
gap: var(--dsl-g-gap-md);
|
|
687
|
+
width: 100%;
|
|
688
|
+
}
|
|
689
|
+
.sliderInput {
|
|
690
|
+
flex: 1;
|
|
691
|
+
min-width: 0;
|
|
692
|
+
accent-color: var(--dsl-g-accent);
|
|
693
|
+
}
|
|
694
|
+
.sliderInput:focus-visible {
|
|
695
|
+
outline: 2px solid var(--dsl-g-accent);
|
|
696
|
+
outline-offset: 2px;
|
|
697
|
+
border-radius: 4px;
|
|
698
|
+
}
|
|
699
|
+
.sliderValue {
|
|
700
|
+
min-width: 44px;
|
|
701
|
+
text-align: right;
|
|
702
|
+
font-family: var(--dsl-g-font-mono);
|
|
703
|
+
font-size: var(--dsl-g-font-data);
|
|
704
|
+
color: var(--dsw-alias-label-primary);
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.textarea {
|
|
708
|
+
width: 100%;
|
|
709
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
710
|
+
border: 1px solid var(--dsl-g-border);
|
|
711
|
+
border-radius: var(--dsl-g-radius-control);
|
|
712
|
+
color: var(--dsw-alias-label-primary);
|
|
713
|
+
padding: var(--dsl-g-gap-sm) 12px;
|
|
714
|
+
font-size: var(--dsl-g-font-title);
|
|
715
|
+
font-family: inherit;
|
|
716
|
+
line-height: 1.5;
|
|
717
|
+
outline: none;
|
|
718
|
+
resize: vertical;
|
|
719
|
+
}
|
|
720
|
+
.textarea:focus {
|
|
721
|
+
border-color: var(--dsl-g-accent);
|
|
722
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/* ---------- accordion ---------- */
|
|
726
|
+
|
|
727
|
+
.accordion {
|
|
728
|
+
display: flex;
|
|
729
|
+
flex-direction: column;
|
|
730
|
+
border: 1px solid var(--dsl-g-border);
|
|
731
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
732
|
+
overflow: hidden;
|
|
733
|
+
}
|
|
734
|
+
.accItem { border-bottom: 1px solid var(--dsl-g-border); }
|
|
735
|
+
.accItem:last-child { border-bottom: none; }
|
|
736
|
+
.accHead {
|
|
737
|
+
width: 100%;
|
|
738
|
+
display: flex;
|
|
739
|
+
align-items: center;
|
|
740
|
+
justify-content: space-between;
|
|
741
|
+
gap: var(--dsl-g-gap-sm);
|
|
742
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
743
|
+
border: none;
|
|
744
|
+
color: var(--dsw-alias-label-primary);
|
|
745
|
+
padding: 10px 14px;
|
|
746
|
+
font-size: var(--dsl-g-font-title);
|
|
747
|
+
font-weight: 600;
|
|
748
|
+
cursor: pointer;
|
|
749
|
+
font-family: inherit;
|
|
750
|
+
line-height: 1.5;
|
|
751
|
+
transition: background 0.15s, color 0.15s;
|
|
752
|
+
}
|
|
753
|
+
.accHead:hover { background: color-mix(in srgb, var(--dsw-alias-label-primary) 5%, var(--dsw-alias-bg-layer-1)); }
|
|
754
|
+
.accHead:active { color: var(--dsl-g-accent); }
|
|
755
|
+
.accChevron { color: var(--dsw-alias-label-tertiary); transition: transform 0.2s; }
|
|
756
|
+
.accBody {
|
|
757
|
+
padding: var(--dsl-g-gap-md) 14px;
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-direction: column;
|
|
760
|
+
gap: var(--dsl-g-gap-sm);
|
|
761
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/* ---------- copy chip ---------- */
|
|
765
|
+
|
|
766
|
+
.copyChip {
|
|
767
|
+
border: 1px solid var(--dsl-g-border);
|
|
768
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
769
|
+
color: var(--dsw-alias-label-primary);
|
|
770
|
+
border-radius: var(--dsl-g-radius-control);
|
|
771
|
+
padding: 6px 14px;
|
|
772
|
+
font-size: var(--dsl-g-font-title);
|
|
773
|
+
font-weight: 600;
|
|
774
|
+
font-family: inherit;
|
|
775
|
+
cursor: pointer;
|
|
776
|
+
width: fit-content;
|
|
777
|
+
transition: all 0.15s;
|
|
778
|
+
}
|
|
779
|
+
.copyChip:hover { border-color: var(--dsl-g-accent); }
|
|
780
|
+
.copyChip:active { transform: translateY(1px); }
|
|
781
|
+
.copyChipDone { border-color: var(--dsw-alias-state-success-primary, #3ecf8e); color: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
782
|
+
|
|
783
|
+
/* ---------- mermaid ---------- */
|
|
784
|
+
|
|
785
|
+
.mermaid { overflow-x: auto; padding: var(--dsl-g-gap-xs) 0; }
|
|
786
|
+
.mermaid svg { max-width: 100%; height: auto; }
|
|
787
|
+
.mermaidFallback { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
788
|
+
.mermaidFallback pre {
|
|
789
|
+
margin: 0;
|
|
790
|
+
padding: var(--dsl-g-gap-sm) 10px;
|
|
791
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
792
|
+
border: 1px solid var(--dsl-g-border);
|
|
793
|
+
border-radius: var(--dsl-g-radius-control);
|
|
794
|
+
overflow-x: auto;
|
|
795
|
+
font-family: var(--dsl-g-font-mono);
|
|
796
|
+
font-size: var(--dsl-g-font-meta);
|
|
797
|
+
}
|
|
798
|
+
.mermaidErr { color: var(--dsw-alias-state-error-primary, #ff6b6b); font-size: var(--dsl-g-font-meta); }
|
|
799
|
+
.mermaidHint { color: var(--dsw-alias-label-tertiary); font-size: var(--dsl-g-font-meta); }
|
|
800
|
+
|
|
801
|
+
/* ---------- scene3d ---------- */
|
|
802
|
+
|
|
803
|
+
.scene3dWrap { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
804
|
+
|
|
805
|
+
/* ---------- echart ---------- */
|
|
806
|
+
|
|
807
|
+
.echartWrap {
|
|
808
|
+
display: flex;
|
|
809
|
+
flex-direction: column;
|
|
810
|
+
gap: var(--dsl-g-gap-sm);
|
|
811
|
+
padding: var(--dsl-g-gap-md);
|
|
812
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block));
|
|
813
|
+
border: 1px solid var(--dsl-g-border);
|
|
814
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
815
|
+
}
|
|
816
|
+
.echartTitle {
|
|
817
|
+
font-size: var(--dsl-g-font-title);
|
|
818
|
+
font-weight: 600;
|
|
819
|
+
color: var(--dsw-alias-label-primary);
|
|
820
|
+
}
|
|
821
|
+
.echartCanvas {
|
|
822
|
+
width: 100%;
|
|
823
|
+
min-height: 0;
|
|
824
|
+
}
|
|
825
|
+
.echartHint {
|
|
826
|
+
color: var(--dsw-alias-label-tertiary);
|
|
827
|
+
font-size: var(--dsl-g-font-meta);
|
|
828
|
+
}
|
|
829
|
+
.echartFallback {
|
|
830
|
+
display: flex;
|
|
831
|
+
flex-direction: column;
|
|
832
|
+
gap: var(--dsl-g-gap-sm);
|
|
833
|
+
padding: var(--dsl-g-gap-md);
|
|
834
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block));
|
|
835
|
+
border: 1px solid var(--dsl-g-border);
|
|
836
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
837
|
+
}
|
|
838
|
+
.echartErr {
|
|
839
|
+
color: var(--dsw-alias-state-error-primary, #ff6b6b);
|
|
840
|
+
font-size: var(--dsl-g-font-meta);
|
|
841
|
+
}
|
|
842
|
+
.scene3dTitle { font-size: var(--dsl-g-font-title); font-weight: 700; color: var(--dsw-alias-label-primary); }
|
|
843
|
+
.scene3dCanvas {
|
|
844
|
+
height: 240px;
|
|
845
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
846
|
+
overflow: hidden;
|
|
847
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
848
|
+
border: 1px solid var(--dsl-g-border);
|
|
849
|
+
}
|
|
850
|
+
.scene3dCanvas canvas { display: block; }
|
|
851
|
+
.scene3dHint { color: var(--dsw-alias-label-tertiary); font-size: var(--dsl-g-font-meta); }
|
|
852
|
+
|
|
853
|
+
/* ---------- timeline ---------- */
|
|
854
|
+
|
|
855
|
+
.timeline { display: flex; flex-direction: column; }
|
|
856
|
+
.tlItem { display: flex; gap: var(--dsl-g-gap-md); }
|
|
857
|
+
.tlRail { display: flex; flex-direction: column; align-items: center; width: 12px; flex-shrink: 0; }
|
|
858
|
+
.tlDot {
|
|
859
|
+
width: 10px;
|
|
860
|
+
height: 10px;
|
|
861
|
+
border-radius: 50%;
|
|
862
|
+
margin-top: 4px;
|
|
863
|
+
flex-shrink: 0;
|
|
864
|
+
background: var(--dsl-g-accent);
|
|
865
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsl-g-accent) var(--dsl-g-tint-strong), transparent);
|
|
866
|
+
}
|
|
867
|
+
.tlLine { flex: 1; width: 2px; margin: 2px 0; background: var(--dsl-g-border); }
|
|
868
|
+
.tlBody { padding-bottom: var(--dsl-g-gap-lg); flex: 1; min-width: 0; }
|
|
869
|
+
.tlHead { display: flex; align-items: baseline; gap: var(--dsl-g-gap-md); }
|
|
870
|
+
.tlTitle { font-size: var(--dsl-g-font-title); font-weight: 600; color: var(--dsw-alias-label-primary); line-height: 1.5; }
|
|
871
|
+
.tlTime { font-size: var(--dsl-g-font-meta); color: var(--dsw-alias-label-tertiary); margin-left: auto; white-space: nowrap; }
|
|
872
|
+
.tlDesc { font-size: var(--dsl-g-font-title); color: var(--dsw-alias-label-secondary); margin-top: 2px; line-height: 1.5; }
|
|
873
|
+
|
|
874
|
+
/* ---------- file tree ---------- */
|
|
875
|
+
|
|
876
|
+
.fileTree {
|
|
877
|
+
font-family: var(--dsl-g-font-mono);
|
|
878
|
+
font-size: var(--dsl-g-font-meta);
|
|
879
|
+
display: flex;
|
|
880
|
+
flex-direction: column;
|
|
881
|
+
/* A deep/long row must never collapse the column: the tree itself is the
|
|
882
|
+
horizontal scroll container (mirrors .tableWrap). Names additionally
|
|
883
|
+
ellipsize, so scroll appears only when indentation still overflows. */
|
|
884
|
+
overflow-x: auto;
|
|
885
|
+
overscroll-behavior-x: contain;
|
|
886
|
+
max-width: 100%;
|
|
887
|
+
min-width: 0;
|
|
888
|
+
}
|
|
889
|
+
.ftRow { display: flex; align-items: center; gap: var(--dsl-g-gap-sm); padding: 3px var(--dsl-g-gap-xs); border-radius: var(--dsl-g-radius-control); }
|
|
890
|
+
.ftRow:hover { background: var(--dsw-alias-bg-layer-1); }
|
|
891
|
+
.ftIcon {
|
|
892
|
+
font-size: 10px;
|
|
893
|
+
flex-shrink: 0;
|
|
894
|
+
width: 13px;
|
|
895
|
+
text-align: center;
|
|
896
|
+
font-family: var(--dsl-g-font-mono);
|
|
897
|
+
color: var(--dsw-alias-label-caption, var(--dsw-alias-label-tertiary));
|
|
898
|
+
line-height: 1;
|
|
899
|
+
}
|
|
900
|
+
.ftIconDir { color: var(--dsl-g-accent); font-size: 11px; }
|
|
901
|
+
/* Long paths must stay on ONE line (issue #28: per-character vertical
|
|
902
|
+
wrapping when the host message column gets narrow). */
|
|
903
|
+
.ftName {
|
|
904
|
+
color: var(--dsw-alias-label-secondary);
|
|
905
|
+
white-space: nowrap;
|
|
906
|
+
overflow: hidden;
|
|
907
|
+
text-overflow: ellipsis;
|
|
908
|
+
min-width: 0;
|
|
909
|
+
}
|
|
910
|
+
.ftDir { color: var(--dsw-alias-label-primary); font-weight: 600; }
|
|
911
|
+
.ftNameBtn {
|
|
912
|
+
display: inline-flex;
|
|
913
|
+
align-items: center;
|
|
914
|
+
gap: var(--dsl-g-gap-sm);
|
|
915
|
+
min-width: 0;
|
|
916
|
+
max-width: 100%;
|
|
917
|
+
background: none;
|
|
918
|
+
border: none;
|
|
919
|
+
font-family: inherit;
|
|
920
|
+
font-size: var(--dsl-g-font-body);
|
|
921
|
+
padding: 0;
|
|
922
|
+
cursor: default;
|
|
923
|
+
text-align: left;
|
|
924
|
+
}
|
|
925
|
+
/* Directory rows are interactive: show the affordance only when clickable. */
|
|
926
|
+
button.ftNameBtn[aria-expanded] { cursor: pointer; }
|
|
927
|
+
.ftNameBtn:focus-visible { outline: 2px solid var(--dsl-g-accent); outline-offset: 1px; border-radius: var(--dsl-g-radius-control); }
|
|
928
|
+
|
|
929
|
+
/* ---------- breadcrumb ---------- */
|
|
930
|
+
|
|
931
|
+
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--dsl-g-gap-xs); font-size: var(--dsl-g-font-title); }
|
|
932
|
+
.bcItem { display: inline-flex; align-items: center; gap: var(--dsl-g-gap-xs); }
|
|
933
|
+
.bcText { color: var(--dsw-alias-label-secondary); cursor: pointer; }
|
|
934
|
+
.bcText:hover { color: var(--dsl-g-accent); }
|
|
935
|
+
.bcCurrent { color: var(--dsw-alias-label-primary); font-weight: 600; cursor: default; }
|
|
936
|
+
.bcSep { color: var(--dsw-alias-label-caption, var(--dsw-alias-label-tertiary)); }
|
|
937
|
+
|
|
938
|
+
/* ---------- staggered reveal ---------- */
|
|
939
|
+
|
|
940
|
+
@keyframes genuiReveal {
|
|
941
|
+
from { opacity: 0; transform: translateY(10px); }
|
|
942
|
+
to { opacity: 1; transform: translateY(0); }
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
@keyframes genuiPopIn {
|
|
946
|
+
from { opacity: 0; transform: translateY(2px); }
|
|
947
|
+
to { opacity: 1; transform: translateY(0); }
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.reveal {
|
|
951
|
+
animation: genuiReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/* "✓ 已触发" confirmation chip: appears next to the button without layout
|
|
955
|
+
shift risk (it inherits the flex row's gap). */
|
|
956
|
+
.btnSent { animation: genuiPopIn 0.2s ease both; }
|
|
957
|
+
|
|
958
|
+
/* 尊重用户的减弱动效偏好 */
|
|
959
|
+
@media (prefers-reduced-motion: reduce) {
|
|
960
|
+
.reveal { animation: none; }
|
|
961
|
+
.btnSent { animation: none; }
|
|
962
|
+
.fill { transition: none; }
|
|
963
|
+
.barFill { transition: none; }
|
|
964
|
+
.switch, .switchKnob { transition: none; }
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/* ---------- thin scrollbars ----------
|
|
968
|
+
Overflow containers (table, file-tree, mermaid, panel) get a restrained
|
|
969
|
+
thin scrollbar instead of the browser's chunky default. WebKit hosts need
|
|
970
|
+
the pseudo-element twin; Firefox takes scrollbar-width. */
|
|
971
|
+
.tableWrap, .fileTree, .mermaid, .panelBody {
|
|
972
|
+
scrollbar-width: thin;
|
|
973
|
+
scrollbar-color: var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.22)) transparent;
|
|
974
|
+
}
|
|
975
|
+
.tableWrap::-webkit-scrollbar, .fileTree::-webkit-scrollbar,
|
|
976
|
+
.mermaid::-webkit-scrollbar, .panelBody::-webkit-scrollbar {
|
|
977
|
+
width: 8px;
|
|
978
|
+
height: 8px;
|
|
979
|
+
}
|
|
980
|
+
.tableWrap::-webkit-scrollbar-thumb, .fileTree::-webkit-scrollbar-thumb,
|
|
981
|
+
.mermaid::-webkit-scrollbar-thumb, .panelBody::-webkit-scrollbar-thumb {
|
|
982
|
+
background: var(--dsw-alias-border-l2, rgba(255, 255, 255, 0.22));
|
|
983
|
+
border-radius: 4px;
|
|
984
|
+
}
|
|
985
|
+
.tableWrap::-webkit-scrollbar-track, .fileTree::-webkit-scrollbar-track,
|
|
986
|
+
.mermaid::-webkit-scrollbar-track, .panelBody::-webkit-scrollbar-track {
|
|
987
|
+
background: transparent;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/* ---------- a11y utility ---------- */
|
|
991
|
+
|
|
992
|
+
/* Visually hidden but announced: live regions ride on this clip pattern. */
|
|
993
|
+
.visuallyHidden {
|
|
994
|
+
position: absolute;
|
|
995
|
+
width: 1px;
|
|
996
|
+
height: 1px;
|
|
997
|
+
margin: -1px;
|
|
998
|
+
padding: 0;
|
|
999
|
+
border: 0;
|
|
1000
|
+
overflow: hidden;
|
|
1001
|
+
clip: rect(0 0 0 0);
|
|
1002
|
+
clip-path: inset(50%);
|
|
1003
|
+
white-space: nowrap;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/* ---------- quiz ---------- */
|
|
1007
|
+
|
|
1008
|
+
.quiz {
|
|
1009
|
+
display: flex;
|
|
1010
|
+
flex-direction: column;
|
|
1011
|
+
gap: var(--dsl-g-gap-md);
|
|
1012
|
+
padding: var(--dsl-g-gap-lg);
|
|
1013
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
1014
|
+
border: 1px solid var(--dsl-g-border);
|
|
1015
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
1016
|
+
}
|
|
1017
|
+
.quizQuestion { font-size: var(--dsl-g-font-body); font-weight: 600; color: var(--dsw-alias-label-primary); line-height: 1.6; }
|
|
1018
|
+
.quizOptions { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
1019
|
+
.quizOpt {
|
|
1020
|
+
display: flex;
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
gap: var(--dsl-g-gap-sm);
|
|
1023
|
+
text-align: left;
|
|
1024
|
+
background: var(--dsw-alias-bg-base, #17171a);
|
|
1025
|
+
border: 1px solid var(--dsl-g-border);
|
|
1026
|
+
border-radius: var(--dsl-g-radius-control);
|
|
1027
|
+
padding: 10px 14px;
|
|
1028
|
+
font-size: var(--dsl-g-font-title);
|
|
1029
|
+
font-family: inherit;
|
|
1030
|
+
color: var(--dsw-alias-label-secondary);
|
|
1031
|
+
cursor: pointer;
|
|
1032
|
+
line-height: 1.5;
|
|
1033
|
+
transition: border-color 0.15s, background 0.15s;
|
|
1034
|
+
}
|
|
1035
|
+
.quizOpt:hover:not(:disabled) { border-color: var(--dsl-g-accent); background: var(--dsl-g-accent-soft); }
|
|
1036
|
+
.quizOpt:focus-visible, .button:focus-visible, .tab:focus-visible, .accHead:focus-visible,
|
|
1037
|
+
.copyChip:focus-visible, .link:focus-visible, .quizRetry:focus-visible, .resetBtn:focus-visible,
|
|
1038
|
+
.playBtn:focus-visible, .bcText:focus-visible {
|
|
1039
|
+
outline: 2px solid var(--dsl-g-accent);
|
|
1040
|
+
outline-offset: 1px;
|
|
1041
|
+
}
|
|
1042
|
+
.quizOpt:disabled { cursor: default; opacity: 0.85; }
|
|
1043
|
+
.quizOptCorrect {
|
|
1044
|
+
display: flex;
|
|
1045
|
+
align-items: center;
|
|
1046
|
+
gap: var(--dsl-g-gap-sm);
|
|
1047
|
+
text-align: left;
|
|
1048
|
+
background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) var(--dsl-g-tint), transparent);
|
|
1049
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 40%, transparent);
|
|
1050
|
+
border-radius: var(--dsl-g-radius-control);
|
|
1051
|
+
padding: 10px 14px;
|
|
1052
|
+
font-size: var(--dsl-g-font-title);
|
|
1053
|
+
font-family: inherit;
|
|
1054
|
+
color: var(--dsw-alias-state-success-primary, #3ecf8e);
|
|
1055
|
+
font-weight: 600;
|
|
1056
|
+
line-height: 1.5;
|
|
1057
|
+
}
|
|
1058
|
+
.quizOptWrong {
|
|
1059
|
+
display: flex;
|
|
1060
|
+
align-items: center;
|
|
1061
|
+
gap: var(--dsl-g-gap-sm);
|
|
1062
|
+
text-align: left;
|
|
1063
|
+
background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) var(--dsl-g-tint), transparent);
|
|
1064
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-error-primary, #ff6b6b) 30%, transparent);
|
|
1065
|
+
border-radius: var(--dsl-g-radius-control);
|
|
1066
|
+
padding: 10px 14px;
|
|
1067
|
+
font-size: var(--dsl-g-font-title);
|
|
1068
|
+
font-family: inherit;
|
|
1069
|
+
color: var(--dsw-alias-state-error-primary, #ff6b6b);
|
|
1070
|
+
font-weight: 600;
|
|
1071
|
+
line-height: 1.5;
|
|
1072
|
+
}
|
|
1073
|
+
.quizOptReveal {
|
|
1074
|
+
display: flex;
|
|
1075
|
+
align-items: center;
|
|
1076
|
+
gap: var(--dsl-g-gap-sm);
|
|
1077
|
+
text-align: left;
|
|
1078
|
+
background: color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) var(--dsl-g-tint), transparent);
|
|
1079
|
+
border: 1px dashed color-mix(in srgb, var(--dsw-alias-state-success-primary, #3ecf8e) 40%, transparent);
|
|
1080
|
+
border-radius: var(--dsl-g-radius-control);
|
|
1081
|
+
padding: 10px 14px;
|
|
1082
|
+
font-size: var(--dsl-g-font-title);
|
|
1083
|
+
font-family: inherit;
|
|
1084
|
+
color: var(--dsw-alias-state-success-primary, #3ecf8e);
|
|
1085
|
+
line-height: 1.5;
|
|
1086
|
+
}
|
|
1087
|
+
.quizMarker { width: 16px; text-align: center; font-weight: 700; }
|
|
1088
|
+
.quizResult { display: flex; flex-direction: column; gap: var(--dsl-g-gap-sm); }
|
|
1089
|
+
.quizCorrectMsg { font-size: var(--dsl-g-font-title); font-weight: 600; color: var(--dsw-alias-state-success-primary, #3ecf8e); }
|
|
1090
|
+
.quizWrongMsg { font-size: var(--dsl-g-font-title); font-weight: 600; color: var(--dsw-alias-state-error-primary, #ff6b6b); }
|
|
1091
|
+
.quizFeedback { font-size: var(--dsl-g-font-meta); font-weight: 400; color: var(--dsw-alias-label-secondary); margin-top: 3px; line-height: 1.5; }
|
|
1092
|
+
.quizExplanation {
|
|
1093
|
+
font-size: var(--dsl-g-font-meta);
|
|
1094
|
+
color: var(--dsw-alias-label-tertiary);
|
|
1095
|
+
line-height: 1.6;
|
|
1096
|
+
padding: var(--dsl-g-gap-sm) 10px;
|
|
1097
|
+
border-top: 1px solid var(--dsl-g-border);
|
|
1098
|
+
}
|
|
1099
|
+
.quizRetry {
|
|
1100
|
+
width: fit-content;
|
|
1101
|
+
background: transparent;
|
|
1102
|
+
border: 1px solid var(--dsl-g-border);
|
|
1103
|
+
color: var(--dsw-alias-label-secondary);
|
|
1104
|
+
border-radius: var(--dsl-g-radius-control);
|
|
1105
|
+
padding: 6px 14px;
|
|
1106
|
+
font-size: var(--dsl-g-font-title);
|
|
1107
|
+
font-family: inherit;
|
|
1108
|
+
cursor: pointer;
|
|
1109
|
+
}
|
|
1110
|
+
.quizRetry:hover { border-color: var(--dsl-g-accent); color: var(--dsl-g-accent); }
|
|
1111
|
+
|
|
1112
|
+
/* ---------- render_ui tool card ---------- */
|
|
1113
|
+
|
|
1114
|
+
.tool {
|
|
1115
|
+
/* The tool row already provides card chrome; the block sits directly. */
|
|
1116
|
+
margin: 4px 0;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.toolFallback {
|
|
1120
|
+
display: flex;
|
|
1121
|
+
align-items: center;
|
|
1122
|
+
gap: var(--dsl-g-gap-md);
|
|
1123
|
+
padding: var(--dsl-g-gap-sm) 12px;
|
|
1124
|
+
border: 1px solid var(--dsl-g-border);
|
|
1125
|
+
border-radius: var(--dsl-g-radius-surface);
|
|
1126
|
+
background: var(--dsw-alias-bg-layer-1, var(--dsw-alias-markdown-code-block));
|
|
1127
|
+
font-size: var(--dsl-g-font-title);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.toolFallbackTitle {
|
|
1131
|
+
font-weight: 600;
|
|
1132
|
+
color: var(--dsw-alias-label-primary);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.toolFallbackMeta {
|
|
1136
|
+
color: var(--dsw-alias-label-secondary);
|
|
1137
|
+
font-variant-numeric: tabular-nums;
|
|
1138
|
+
overflow: hidden;
|
|
1139
|
+
text-overflow: ellipsis;
|
|
1140
|
+
white-space: nowrap;
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
/* ---------- session panel dock ---------- */
|
|
1144
|
+
|
|
1145
|
+
.panel {
|
|
1146
|
+
/* Distinct from ordinary inline fences: accent border + badge header so a
|
|
1147
|
+
session panel is recognizable at a glance. */
|
|
1148
|
+
margin: 10px 14px 2px;
|
|
1149
|
+
border: 1px solid color-mix(in srgb, var(--dsw-alias-state-business-primary, #4f8ef7) 35%, transparent);
|
|
1150
|
+
border-radius: 14px;
|
|
1151
|
+
background: var(--dsw-alias-bg-layer-1, rgba(255, 255, 255, 0.04));
|
|
1152
|
+
overflow: hidden;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.panelHeader {
|
|
1156
|
+
display: flex;
|
|
1157
|
+
align-items: center;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
.panelToggle {
|
|
1161
|
+
display: flex;
|
|
1162
|
+
align-items: center;
|
|
1163
|
+
gap: var(--dsl-g-gap-sm);
|
|
1164
|
+
flex: 1 1 auto;
|
|
1165
|
+
min-width: 0;
|
|
1166
|
+
padding: 9px 14px;
|
|
1167
|
+
border: 0;
|
|
1168
|
+
background: none;
|
|
1169
|
+
color: inherit;
|
|
1170
|
+
font: inherit;
|
|
1171
|
+
font-size: var(--dsl-g-font-title);
|
|
1172
|
+
cursor: pointer;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
.panelToggle:hover { background: rgba(255, 255, 255, 0.04); }
|
|
1176
|
+
|
|
1177
|
+
/* In-place dismiss (issue #23): a compact ✕ at the right end of the header,
|
|
1178
|
+
distinct from the collapse/expand toggle. Applies the exact `/panel clear`
|
|
1179
|
+
local override — no navigation, no reload, state persists across refresh. */
|
|
1180
|
+
.panelClose {
|
|
1181
|
+
flex: 0 0 auto;
|
|
1182
|
+
width: 26px;
|
|
1183
|
+
height: 26px;
|
|
1184
|
+
margin-right: 8px;
|
|
1185
|
+
display: flex;
|
|
1186
|
+
align-items: center;
|
|
1187
|
+
justify-content: center;
|
|
1188
|
+
padding: 0;
|
|
1189
|
+
border: 0;
|
|
1190
|
+
border-radius: 6px;
|
|
1191
|
+
background: transparent;
|
|
1192
|
+
color: inherit;
|
|
1193
|
+
font-size: 13px;
|
|
1194
|
+
line-height: 1;
|
|
1195
|
+
cursor: pointer;
|
|
1196
|
+
opacity: 0.65;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.panelClose:hover {
|
|
1200
|
+
background: rgba(255, 255, 255, 0.08);
|
|
1201
|
+
opacity: 1;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
.panelClose:focus-visible {
|
|
1205
|
+
outline: 1px solid var(--dsw-alias-state-business-primary, #4f8ef7);
|
|
1206
|
+
outline-offset: 1px;
|
|
1207
|
+
opacity: 1;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
.panelBadge {
|
|
1211
|
+
flex: none;
|
|
1212
|
+
font-size: 11px;
|
|
1213
|
+
line-height: 1.6;
|
|
1214
|
+
padding: 0 var(--dsl-g-gap-sm);
|
|
1215
|
+
border-radius: 6px;
|
|
1216
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4f8ef7) var(--dsl-g-tint-strong), transparent);
|
|
1217
|
+
/* The semantic token adapts per theme: deepseek-500 on light canvases
|
|
1218
|
+
(≈5.7:1), deepseek-400 on dark — never the hardcoded #7ba8ff that
|
|
1219
|
+
failed AA on light backgrounds. */
|
|
1220
|
+
color: var(--dsw-alias-state-business-primary, #7ba8ff);
|
|
1221
|
+
font-weight: 600;
|
|
1222
|
+
letter-spacing: 0.04em;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.panelTitle {
|
|
1226
|
+
font-weight: 600;
|
|
1227
|
+
color: var(--dsw-alias-label-primary, #e6e6e6);
|
|
1228
|
+
overflow: hidden;
|
|
1229
|
+
text-overflow: ellipsis;
|
|
1230
|
+
white-space: nowrap;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.panelChevron {
|
|
1234
|
+
margin-left: auto;
|
|
1235
|
+
color: var(--dsw-alias-label-secondary, rgba(255, 255, 255, 0.55));
|
|
1236
|
+
font-size: var(--dsl-g-font-meta);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
.panelBody {
|
|
1240
|
+
/* Default height; a drag on the resize handle above overrides it inline.
|
|
1241
|
+
max-height would cap the user's drag, so the fixed height lives here and
|
|
1242
|
+
JS takes over once the user resizes. */
|
|
1243
|
+
height: 360px;
|
|
1244
|
+
overflow-y: auto;
|
|
1245
|
+
padding: 0 16px var(--dsl-g-gap-lg);
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/* Drag strip on the panel's TOP edge (above the header): vertical resize
|
|
1249
|
+
(ns-resize). touch-action: none keeps the pointer stream on touch
|
|
1250
|
+
devices. Full width so it reads as the panel's top border. */
|
|
1251
|
+
.panelResizeHandle {
|
|
1252
|
+
height: 6px;
|
|
1253
|
+
border-radius: 3px;
|
|
1254
|
+
cursor: ns-resize;
|
|
1255
|
+
touch-action: none;
|
|
1256
|
+
background: transparent;
|
|
1257
|
+
transition: background 0.15s;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
.panelResizeHandle:hover,
|
|
1261
|
+
.panelResizeHandleActive {
|
|
1262
|
+
background: color-mix(in srgb, var(--dsw-alias-state-business-primary, #4f8ef7) 35%, transparent);
|
|
1263
|
+
}
|