zcode-app-cli 3.14.4-33 → 3.15.3-35

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.
Files changed (75) hide show
  1. package/README.md +18 -4
  2. package/bin/zcode.js +4 -0
  3. package/docs/CONFIGURATION.md +68 -6
  4. package/docs/CONFIGURATION.zh-CN.md +52 -4
  5. package/docs/PROVIDER_CONFIG.md +25 -0
  6. package/docs/PROVIDER_CONFIG.zh-CN.md +20 -0
  7. package/package.json +4 -2
  8. package/vendor/cli-config.cjs +159 -0
  9. package/vendor/extraction.json +38 -5
  10. package/vendor/node_modules/@zcode/tui/dist/index.js +474 -85
  11. package/vendor/packages/browser-use-plugin/README.md +1 -1
  12. package/vendor/packages/browser-use-plugin/docs/api.json +1 -1
  13. package/vendor/packages/browser-use-plugin/docs/overview.md +6 -6
  14. package/vendor/packages/browser-use-plugin/docs/playwright.md +3 -3
  15. package/vendor/packages/browser-use-plugin/docs/workflow.md +2 -2
  16. package/vendor/packages/browser-use-plugin/scripts/browser-client.mjs +5 -7
  17. package/vendor/packages/browser-use-plugin/scripts/build.mjs +0 -1
  18. package/vendor/packages/browser-use-plugin/skills/control-browser/SKILL.md +9 -9
  19. package/vendor/packages/bundled-skills/skills/dynamic-workflows/SKILL.md +760 -687
  20. package/vendor/packages/bundled-skills/skills/dynamic-workflows/examples.md +310 -1
  21. package/vendor/packages/bundled-skills/skills/dynamic-workflows/patterns.md +336 -4
  22. package/vendor/packages/documents-plugin/.zcode-plugin/plugin.json +2 -2
  23. package/vendor/packages/documents-plugin/package.json +2 -2
  24. package/vendor/packages/documents-plugin/skills/docx/LICENSE.txt +10 -10
  25. package/vendor/packages/node-repl-host/.zcode-plugin/plugin.json +1 -1
  26. package/vendor/packages/node-repl-host/dist/mcp/server.js +116 -48
  27. package/vendor/packages/node-repl-host/package.json +1 -1
  28. package/vendor/packages/node-repl-host/scripts/build.mjs +4 -4
  29. package/vendor/packages/pdf-plugin/.zcode-plugin/plugin.json +2 -2
  30. package/vendor/packages/pdf-plugin/package.json +2 -2
  31. package/vendor/packages/pdf-plugin/skills/pdf/LICENSE.txt +10 -10
  32. package/vendor/packages/pdf-plugin/skills/pdf/references/resume-altacv.tex +1 -1
  33. package/vendor/packages/plugin-creator-plugin/skills/plugin-creator/SKILL.md +1 -1
  34. package/vendor/packages/plugin-creator-plugin/skills/plugin-creator/references/plugin-json-spec.md +1 -1
  35. package/vendor/packages/presentations-plugin/.zcode-plugin/plugin.json +2 -2
  36. package/vendor/packages/presentations-plugin/package.json +2 -2
  37. package/vendor/packages/presentations-plugin/skills/pptx/LICENSE.txt +10 -10
  38. package/vendor/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions/SKILL.md +1 -1
  39. package/vendor/packages/spreadsheets-plugin/.zcode-plugin/plugin.json +2 -2
  40. package/vendor/packages/spreadsheets-plugin/package.json +2 -2
  41. package/vendor/packages/spreadsheets-plugin/skills/xlsx/LICENSE.txt +10 -10
  42. package/vendor/packages/visualize-plugin/.zcode-plugin/plugin.json +10 -0
  43. package/vendor/packages/visualize-plugin/package.json +8 -0
  44. package/vendor/packages/visualize-plugin/skills/visualize/LICENSE.md +5 -0
  45. package/vendor/packages/visualize-plugin/skills/visualize/SKILL.md +277 -0
  46. package/vendor/packages/visualize-plugin/skills/visualize/assets/calendar.js +273 -0
  47. package/vendor/packages/visualize-plugin/skills/visualize/assets/runtime-manifest.json +16 -0
  48. package/vendor/packages/visualize-plugin/skills/visualize/assets/standalone-host-bridge.js +256 -0
  49. package/vendor/packages/visualize-plugin/skills/visualize/assets/standalone-shell.js +183 -0
  50. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/d3-7.9.0.min.js +2 -0
  51. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/d3-7.9.0.min.js.LICENSE +13 -0
  52. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-core-1.7.3.min.js +1 -0
  53. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-core-1.7.3.min.js.LICENSE +20 -0
  54. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-dom-1.7.4.min.js +1 -0
  55. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/floating-ui-dom-1.7.4.min.js.LICENSE +20 -0
  56. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/lucide-1.17.0.js +19521 -0
  57. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/lucide-1.17.0.js.LICENSE +43 -0
  58. package/vendor/packages/visualize-plugin/skills/visualize/assets/vendor/manifest.json +57 -0
  59. package/vendor/packages/visualize-plugin/skills/visualize/assets/visualize.css +1222 -0
  60. package/vendor/packages/visualize-plugin/skills/visualize/assets/visualize.html +517 -0
  61. package/vendor/packages/visualize-plugin/skills/visualize/examples/calendar.html +10 -0
  62. package/vendor/packages/visualize-plugin/skills/visualize/references/api.md +128 -0
  63. package/vendor/packages/visualize-plugin/skills/visualize/references/styles.md +3 -0
  64. package/vendor/packages/visualize-plugin/skills/visualize/scripts/render.py +248 -0
  65. package/vendor/packages/visualize-plugin/skills/visualize/scripts/vendor.py +56 -0
  66. package/vendor/packages/visualize-plugin/skills/visualize/tweak.md +62 -0
  67. package/vendor/packages/visualize-plugin/skills/visualize/widgets/calendar.md +90 -0
  68. package/vendor/packages/zcode-cua-plugin/.zcode-plugin/plugin.json +1 -1
  69. package/vendor/packages/zcode-cua-plugin/docs/computer-use.md +1 -1
  70. package/vendor/packages/zcode-cua-plugin/package.json +1 -1
  71. package/vendor/packages/zcode-cua-plugin/scripts/computer-use-client.mjs +35 -41
  72. package/vendor/packages/zcode-guide-plugin/skills/zcode-configuration-guide/SKILL.md +2 -2
  73. package/vendor/provider/zcode-builtin.json +96 -1
  74. package/vendor/zcode.cjs +1622 -1425
  75. package/zcode-runtime.lock.json +3 -3
@@ -0,0 +1,1222 @@
1
+ :root {
2
+ color-scheme: light dark;
3
+ background-color: var(
4
+ --background,
5
+ var(--color-background-primary, light-dark(rgb(255 255 255), rgb(24 24 24)))
6
+ ) !important;
7
+
8
+ /* Agent-facing contract; keep in sync with SKILL.md. */
9
+ --background: var(
10
+ --color-background-primary,
11
+ light-dark(rgb(255 255 255), rgb(24 24 24))
12
+ );
13
+ --foreground: var(
14
+ --color-text-primary,
15
+ light-dark(rgb(26 28 31), rgb(255 255 255))
16
+ );
17
+ --card: color-mix(in oklab, var(--foreground) 5%, var(--background));
18
+ --card-foreground: var(
19
+ --color-text-primary,
20
+ light-dark(rgb(26 28 31), rgb(255 255 255))
21
+ );
22
+ --popover: var(
23
+ --color-background-secondary,
24
+ light-dark(rgb(255 255 255), rgb(45 45 45))
25
+ );
26
+ --popover-foreground: var(
27
+ --color-text-primary,
28
+ light-dark(rgb(26 28 31), rgb(255 255 255))
29
+ );
30
+ --primary: var(
31
+ --color-text-info,
32
+ light-dark(rgb(51 156 255), rgb(131 195 255))
33
+ );
34
+ --primary-foreground: var(
35
+ --color-text-inverse,
36
+ light-dark(rgb(255 255 255), rgb(13 13 13))
37
+ );
38
+ --secondary: var(
39
+ --color-background-secondary,
40
+ light-dark(rgb(255 255 255 / 96%), rgb(54 54 54 / 96%))
41
+ );
42
+ --secondary-foreground: var(
43
+ --color-text-primary,
44
+ light-dark(rgb(26 28 31), rgb(255 255 255))
45
+ );
46
+ --muted: color-mix(in srgb, var(--foreground) 10%, transparent);
47
+ --muted-foreground: var(
48
+ --color-text-secondary,
49
+ light-dark(rgb(26 28 31 / 49.4%), rgb(255 255 255 / 49.8%))
50
+ );
51
+ --accent: var(
52
+ --color-background-info,
53
+ light-dark(rgb(229 242 255), rgb(13 39 63))
54
+ );
55
+ --accent-foreground: var(
56
+ --color-text-info,
57
+ light-dark(rgb(51 156 255), rgb(131 195 255))
58
+ );
59
+ --destructive: var(
60
+ --color-text-warning,
61
+ light-dark(rgb(226 85 7), rgb(255 133 73))
62
+ );
63
+ --border: var(
64
+ --color-border-secondary,
65
+ light-dark(rgb(26 28 31 / 8%), rgb(255 255 255 / 8.2%))
66
+ );
67
+ --input: var(
68
+ --color-border-primary,
69
+ light-dark(
70
+ rgb(26 28 31 / 11.8%),
71
+ color-mix(in oklab, rgb(0 0 0) 10%, transparent)
72
+ )
73
+ );
74
+ --ring: var(
75
+ --color-ring-primary,
76
+ light-dark(rgb(51 156 255), rgb(131 195 255 / 76%))
77
+ );
78
+ --font-size-base: var(--font-text-md-size, 14px);
79
+ --blue: light-dark(rgb(51 156 255), rgb(51 156 255));
80
+ --orange: light-dark(rgb(226 85 7), rgb(251 106 34));
81
+ --green: light-dark(rgb(0 162 64), rgb(64 201 119));
82
+ --red: light-dark(rgb(224 46 42), rgb(255 103 100));
83
+ --purple: light-dark(rgb(146 79 247), rgb(173 123 249));
84
+ --yellow: light-dark(rgb(255 195 0), rgb(255 210 64));
85
+ --viz-series-1: var(--primary);
86
+ --viz-series-2: light-dark(rgb(243 136 59), rgb(245 154 86));
87
+ --viz-series-3: light-dark(rgb(93 201 119), rgb(116 213 139));
88
+ --viz-series-4: light-dark(rgb(235 119 177), rgb(240 143 192));
89
+ --viz-series-5: light-dark(rgb(155 121 236), rgb(170 145 239));
90
+ --viz-series-6: light-dark(rgb(58 185 177), rgb(90 203 194));
91
+
92
+ /* Internal implementation variables; not part of the agent contract. */
93
+ --font-sans: -apple-system, system-ui, "Segoe UI", sans-serif;
94
+ --font-mono:
95
+ ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
96
+ monospace;
97
+ --font-size-normal: max(11px, var(--font-size-base));
98
+ --font-size-tooltip: calc(var(--font-size-base) - 1px);
99
+ --font-size-small: max(11px, calc(var(--font-size-base) - 2px));
100
+ --font-size-h1: calc(var(--font-size-normal) * 1.7142857143);
101
+ --font-size-h2: calc(var(--font-size-normal) * 1.4285714286);
102
+ --font-size-h3: calc(var(--font-size-normal) * 1.2857142857);
103
+ --font-weight-normal: 430;
104
+ --font-weight-medium: 500;
105
+ --icon-size: 16px;
106
+ --line-height-normal: calc(var(--font-size-normal) * 1.5);
107
+ --line-height-tooltip: calc(var(--font-size-tooltip) * 1.4285714286);
108
+ --line-height-small: calc(var(--font-size-small) + 4px);
109
+ --corner-shape: round;
110
+ --radius: var(--border-radius-lg, 10px);
111
+ --radius-sm: calc(var(--radius) * 0.6);
112
+ --radius-md: calc(var(--radius) * 0.8);
113
+ --radius-lg: var(--radius);
114
+ --radius-2xl: calc(var(--radius) * 1.6);
115
+ --radius-full: 9999px;
116
+ --shadow-sm: 0 1px 2px -1px rgb(0 0 0 / 8%);
117
+ --checkmark-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpath d='M12.8961 3.64101C13.1297 3.41418 13.4984 3.37523 13.7779 3.56581C14.0571 3.75635 14.1554 4.11331 14.0299 4.41347L13.9615 4.53847L7.71151 13.7045C7.59411 13.8767 7.4063 13.9877 7.19881 14.0072C6.99136 14.0267 6.78564 13.9533 6.63826 13.806L2.88826 10.056L2.79842 9.9457C2.6192 9.67407 2.64927 9.30496 2.88826 9.06581C3.12738 8.82669 3.49647 8.79676 3.76815 8.97597L3.8785 9.06581L7.03084 12.2182L12.8053 3.74941L12.8961 3.64101Z'/%3E%3C/svg%3E");
118
+
119
+ /* Legacy aliases; not part of the current agent contract. */
120
+ --viz-bg: transparent;
121
+ --viz-panel: var(--card);
122
+ --viz-border: var(--border);
123
+ --viz-text: var(--foreground);
124
+ --viz-muted: var(--muted-foreground);
125
+ --viz-accent: var(--primary);
126
+ --viz-accent-text: var(--primary-foreground);
127
+ --viz-accent-bg: var(--accent);
128
+ --viz-font-size: var(--font-size-base);
129
+ --viz-warning: var(--destructive);
130
+ }
131
+
132
+ :root[data-theme="light"] {
133
+ color-scheme: light;
134
+ }
135
+
136
+ :root[data-theme="dark"] {
137
+ color-scheme: dark;
138
+ }
139
+
140
+ * {
141
+ box-sizing: border-box;
142
+ }
143
+
144
+ html > body {
145
+ /* Preserve MCP aliases for older inline renderers without creating :root cycles. */
146
+ --color-background-primary: var(
147
+ --background,
148
+ light-dark(rgb(255 255 255), rgb(24 24 24))
149
+ );
150
+ --color-text-primary: var(
151
+ --foreground,
152
+ light-dark(rgb(26 28 31), rgb(255 255 255))
153
+ );
154
+ --color-border-secondary: var(
155
+ --border,
156
+ light-dark(rgb(26 28 31 / 8%), rgb(255 255 255 / 8.2%))
157
+ );
158
+
159
+ margin: 0;
160
+ padding: var(--visualize-paint-gutter, 0px);
161
+ color: var(--foreground);
162
+ background: transparent !important;
163
+ font-family: var(--font-sans) !important;
164
+ font-size: var(--font-size-normal);
165
+ font-weight: var(--font-weight-normal);
166
+ line-height: var(--line-height-normal);
167
+ }
168
+
169
+ .cursor-interaction {
170
+ cursor: var(--cursor-interaction, pointer);
171
+ }
172
+
173
+ a {
174
+ color: color-mix(in srgb, var(--viz-accent) 80%, var(--viz-text) 20%);
175
+ cursor: var(--cursor-interaction, pointer);
176
+ font-weight: var(--font-weight-medium, 500);
177
+ text-decoration: none;
178
+ text-underline-offset: 2px;
179
+ }
180
+
181
+ a:is(:hover, :focus-visible) {
182
+ text-decoration-line: underline;
183
+ text-decoration-style: dashed;
184
+ text-decoration-thickness: 0.5px;
185
+ }
186
+
187
+ h1,
188
+ h2,
189
+ h3,
190
+ h4,
191
+ h5,
192
+ h6,
193
+ p {
194
+ margin-block: 0;
195
+ }
196
+
197
+ h1 {
198
+ font-size: var(--font-size-h1);
199
+ font-weight: var(--font-weight-medium);
200
+ line-height: 1.25;
201
+ }
202
+
203
+ h2 {
204
+ font-size: var(--font-size-h2);
205
+ font-weight: var(--font-weight-medium);
206
+ line-height: 1.25;
207
+ }
208
+
209
+ h3,
210
+ h4,
211
+ h5,
212
+ h6 {
213
+ font-size: var(--font-size-h3);
214
+ font-weight: var(--font-weight-medium);
215
+ line-height: 1.3;
216
+ }
217
+
218
+ b,
219
+ strong,
220
+ th {
221
+ font-weight: var(--font-weight-medium);
222
+ }
223
+
224
+ code:not(pre code) {
225
+ display: inline;
226
+ padding: 1px 6px;
227
+ border-radius: var(--radius-sm);
228
+ corner-shape: var(--corner-shape);
229
+ background: var(--muted);
230
+ font-family: var(--font-mono);
231
+ font-size: 0.92em;
232
+ overflow-wrap: anywhere;
233
+ -webkit-box-decoration-break: clone;
234
+ box-decoration-break: clone;
235
+ word-break: break-word;
236
+ }
237
+
238
+ .table-responsive {
239
+ width: 100%;
240
+ overflow-x: auto;
241
+ scrollbar-width: thin;
242
+ }
243
+
244
+ .table {
245
+ width: 100%;
246
+ border-collapse: collapse;
247
+ color: var(--foreground);
248
+ font: inherit;
249
+ text-align: start;
250
+ }
251
+
252
+ .table :is(th, td) {
253
+ padding-block: 10px;
254
+ padding-inline: 0 24px;
255
+ overflow-wrap: anywhere;
256
+ border-bottom: 1px solid var(--border);
257
+ text-align: start;
258
+ vertical-align: top;
259
+ }
260
+
261
+ .table-responsive > .table :is(th, td) {
262
+ overflow-wrap: break-word;
263
+ }
264
+
265
+ .table :is(th, td):last-child {
266
+ padding-inline-end: 0;
267
+ }
268
+
269
+ .table :is(caption, thead th) {
270
+ font-weight: 600;
271
+ }
272
+
273
+ .table thead th {
274
+ padding-block: 8px;
275
+ border-bottom-color: color-mix(in srgb, var(--foreground) 16%, transparent);
276
+ }
277
+
278
+ .table tbody tr:last-child :is(th, td) {
279
+ border-bottom: 0;
280
+ }
281
+
282
+ .table.table-sm :is(th, td) {
283
+ padding-block: 6px;
284
+ }
285
+
286
+ .table.table-sm :is(th, td):not(:last-child) {
287
+ padding-inline-end: 16px;
288
+ }
289
+
290
+ .table :is(.text-end, [align="right"]) {
291
+ text-align: end;
292
+ font-variant-numeric: tabular-nums;
293
+ }
294
+
295
+ .table :is(.text-center, [align="center"]) {
296
+ text-align: center;
297
+ }
298
+
299
+ .table .text-nowrap {
300
+ white-space: nowrap;
301
+ }
302
+
303
+ #widget {
304
+ display: flex;
305
+ flex-direction: column;
306
+ gap: 12px;
307
+ width: 100%;
308
+ padding: 0;
309
+ background: transparent !important;
310
+ }
311
+
312
+ .card {
313
+ min-width: 0;
314
+ padding: 12px;
315
+ overflow: hidden;
316
+ overflow-wrap: break-word;
317
+ border-radius: var(--radius-2xl);
318
+ corner-shape: var(--corner-shape);
319
+ color: var(--card-foreground);
320
+ background: var(--card);
321
+ }
322
+
323
+ .widget {
324
+ min-width: 0;
325
+ overflow: hidden;
326
+ border: 0;
327
+ border-radius: var(--radius-lg);
328
+ corner-shape: var(--corner-shape);
329
+ box-shadow: 0 0 0 0.5px var(--border-strong, var(--border));
330
+ color: var(--foreground);
331
+ background: var(--background);
332
+ }
333
+
334
+ #widget > :not(.card, .widget, .progress) {
335
+ width: 100% !important;
336
+ max-width: none !important;
337
+ margin: 0 !important;
338
+ padding: 0 !important;
339
+ border: 0 !important;
340
+ border-radius: 0 !important;
341
+ background: transparent !important;
342
+ box-shadow: none !important;
343
+ }
344
+
345
+ .tooltip {
346
+ position: fixed;
347
+ z-index: 50;
348
+ top: 0;
349
+ left: 0;
350
+ width: max-content;
351
+ max-width: min(
352
+ 20rem,
353
+ var(--tooltip-available-width, calc(100vw - 10px)),
354
+ calc(100vw - 10px)
355
+ );
356
+ max-height: min(
357
+ var(--tooltip-available-height, calc(100vh - 10px)),
358
+ calc(100vh - 10px)
359
+ );
360
+ padding: 4px 8px;
361
+ border: 1px solid var(--border);
362
+ border-radius: var(--radius-lg);
363
+ corner-shape: var(--corner-shape);
364
+ color: var(--popover-foreground);
365
+ background: var(--popover);
366
+ box-shadow: none;
367
+ font-size: var(--font-size-tooltip);
368
+ line-height: var(--line-height-tooltip);
369
+ overflow-wrap: break-word;
370
+ white-space: normal;
371
+ pointer-events: none;
372
+ user-select: none;
373
+ }
374
+
375
+ .viz-grid {
376
+ display: grid;
377
+ grid-template-columns: repeat(auto-fit, minmax(max(180px, 24%), 1fr));
378
+ gap: 10px;
379
+ }
380
+
381
+ .viz-stat {
382
+ display: flex;
383
+ flex-direction: column;
384
+ gap: 2px;
385
+ }
386
+
387
+ .viz-stat-value {
388
+ font-size: var(--font-size-h2);
389
+ font-weight: var(--font-weight-medium);
390
+ line-height: 1.25;
391
+ }
392
+
393
+ .viz-row {
394
+ display: flex;
395
+ flex-wrap: wrap;
396
+ align-items: center;
397
+ gap: 10px;
398
+ }
399
+
400
+ hr {
401
+ width: 100%;
402
+ height: 1px;
403
+ margin-block: 6px;
404
+ border: 0;
405
+ background: var(--border);
406
+ }
407
+
408
+ .nav {
409
+ display: flex;
410
+ min-width: 0;
411
+ align-items: center;
412
+ gap: 4px;
413
+ }
414
+
415
+ .progress {
416
+ display: flex;
417
+ height: 8px;
418
+ margin-block: calc((var(--line-height-normal, 1.5em) - 8px) / 2);
419
+ overflow: hidden;
420
+ border: 0;
421
+ border-radius: var(--radius-full);
422
+ background: var(--muted);
423
+ }
424
+
425
+ .progress-bar:only-child {
426
+ border-radius: var(--radius-full);
427
+ }
428
+
429
+ .progress-bar {
430
+ height: 100%;
431
+ flex-shrink: 0;
432
+ border: 0;
433
+ background: var(--viz-series-1);
434
+ }
435
+
436
+ .viz-badge {
437
+ padding: 3px 8px;
438
+ border-radius: var(--radius-full);
439
+ color: var(--accent-foreground);
440
+ background: var(--accent);
441
+ font-weight: var(--font-weight-medium);
442
+ }
443
+
444
+ small,
445
+ .text-small,
446
+ .viz-badge {
447
+ font-size: var(--font-size-small);
448
+ line-height: var(--line-height-small);
449
+ }
450
+
451
+ .text-muted {
452
+ color: var(--muted-foreground);
453
+ }
454
+
455
+ .tabular-nums {
456
+ font-variant-numeric: tabular-nums;
457
+ }
458
+
459
+ .sr-only {
460
+ position: absolute;
461
+ width: 1px;
462
+ height: 1px;
463
+ padding: 0;
464
+ overflow: hidden;
465
+ clip: rect(0, 0, 0, 0);
466
+ white-space: nowrap;
467
+ border: 0;
468
+ }
469
+
470
+ .viz-controls {
471
+ display: flex;
472
+ flex-wrap: wrap;
473
+ align-items: center;
474
+ gap: 8px;
475
+ }
476
+
477
+ .viz-controls > .form-label {
478
+ display: grid;
479
+ min-width: min(100%, 260px);
480
+ flex: 1 1 280px;
481
+ grid-template-columns: minmax(0, 1fr) auto;
482
+ align-items: baseline;
483
+ gap: 2px 12px;
484
+ margin-bottom: 0;
485
+ }
486
+
487
+ .viz-controls > .form-label > :is(.form-control, .form-range, .form-select) {
488
+ grid-column: 1 / -1;
489
+ }
490
+
491
+ .btn,
492
+ .nav-link,
493
+ .form-check-input,
494
+ .form-control,
495
+ .form-range,
496
+ .form-select {
497
+ font: inherit;
498
+ }
499
+
500
+ .btn,
501
+ .nav-link {
502
+ appearance: button;
503
+ display: inline-flex;
504
+ inline-size: fit-content;
505
+ max-inline-size: 100%;
506
+ min-height: 28px;
507
+ align-items: center;
508
+ justify-content: center;
509
+ gap: 4px;
510
+ margin: 0;
511
+ padding: 0 8px;
512
+ -webkit-app-region: no-drag;
513
+ border: 1px solid var(--input);
514
+ border-radius: var(--radius-lg);
515
+ corner-shape: var(--corner-shape);
516
+ color: var(--secondary-foreground);
517
+ background: var(--secondary);
518
+ cursor: var(--cursor-interaction, pointer);
519
+ text-align: center;
520
+ text-decoration: none;
521
+ white-space: nowrap;
522
+ user-select: none;
523
+ -webkit-font-smoothing: antialiased;
524
+ }
525
+
526
+ .btn:is(.btn-block, .viz-tile) {
527
+ inline-size: 100%;
528
+ }
529
+
530
+ .btn.viz-tile {
531
+ min-width: 0;
532
+ overflow-wrap: anywhere;
533
+ white-space: normal;
534
+ }
535
+
536
+ a.btn {
537
+ cursor: var(--cursor-interaction, pointer);
538
+ text-decoration: none;
539
+ }
540
+
541
+ .btn:not(:disabled):hover,
542
+ .nav-link:not(:disabled):not([aria-disabled="true"]):hover {
543
+ background: color-mix(in srgb, var(--foreground) 6%, var(--secondary));
544
+ }
545
+
546
+ .btn-primary {
547
+ border-color: transparent;
548
+ color: var(--primary-foreground);
549
+ background: var(--foreground);
550
+ background-clip: padding-box;
551
+ }
552
+
553
+ .btn-primary .text-muted {
554
+ color: color-mix(in srgb, var(--primary-foreground) 50%, transparent);
555
+ }
556
+
557
+ .btn-primary:not(:disabled):hover {
558
+ background: color-mix(in srgb, var(--foreground) 80%, transparent);
559
+ background-clip: padding-box;
560
+ }
561
+
562
+ .btn-ghost {
563
+ border-color: transparent;
564
+ color: var(--muted-foreground);
565
+ background: transparent;
566
+ }
567
+
568
+ .btn-ghost:not(:disabled):hover {
569
+ color: var(--foreground);
570
+ background: color-mix(in srgb, var(--foreground) 6%, var(--secondary));
571
+ }
572
+
573
+ .nav-pills .nav-link {
574
+ min-width: 0;
575
+ border-color: transparent;
576
+ color: var(--muted-foreground);
577
+ background: transparent;
578
+ }
579
+
580
+ .nav-justified .nav-link {
581
+ flex: 1 1 0;
582
+ overflow-wrap: anywhere;
583
+ white-space: normal;
584
+ }
585
+
586
+ .nav-pills .nav-link.active {
587
+ color: var(--foreground);
588
+ background: var(--muted);
589
+ }
590
+
591
+ /* Shared preview chrome; product styles stay inside each variant. */
592
+ .viz-dotted-background {
593
+ background-image: radial-gradient(
594
+ circle,
595
+ color-mix(in srgb, var(--foreground) 14%, transparent) 0.8px,
596
+ transparent 0.8px
597
+ );
598
+ background-position: center;
599
+ background-size: 16px 16px;
600
+ }
601
+
602
+ .viz-carousel {
603
+ position: relative;
604
+ min-width: 0;
605
+ }
606
+
607
+ .viz-carousel:has(> .viz-carousel-controls) {
608
+ min-height: calc(60px + var(--viz-carousel-picker-height, 0px));
609
+ padding-bottom: 60px;
610
+ }
611
+
612
+ .viz-carousel > [data-variant][hidden] {
613
+ display: none !important;
614
+ }
615
+
616
+ .viz-carousel > [data-variant] {
617
+ isolation: isolate;
618
+ }
619
+
620
+ .viz-carousel-controls {
621
+ --viz-carousel-hover: light-dark(
622
+ color-mix(in srgb, var(--foreground) 5.4%, transparent),
623
+ color-mix(in srgb, var(--foreground) 7.8%, transparent)
624
+ );
625
+ position: absolute;
626
+ z-index: 2;
627
+ bottom: 8px;
628
+ left: 50%;
629
+ display: flex;
630
+ width: max-content;
631
+ /* Leave room for the host's design-controls launcher at the trailing edge. */
632
+ max-width: calc(100% - 96px);
633
+ align-items: center;
634
+ gap: 0;
635
+ padding: 0;
636
+ border: 1px solid var(--border);
637
+ border-radius: 16px;
638
+ color: var(--foreground);
639
+ background: var(--background);
640
+ font-family: var(--font-sans);
641
+ /* Match the settings dropdown chrome independently of the content font size. */
642
+ font-size: 13px;
643
+ font-weight: var(--font-weight-normal);
644
+ line-height: 18px;
645
+ transform: translateX(-50%);
646
+ user-select: none;
647
+ }
648
+
649
+ .viz-carousel-controls button,
650
+ .viz-carousel-picker > summary {
651
+ display: flex;
652
+ min-height: 30px;
653
+ align-items: center;
654
+ justify-content: center;
655
+ gap: 4px;
656
+ padding: 0 6px;
657
+ -webkit-app-region: no-drag;
658
+ border: 0;
659
+ border-radius: 14px;
660
+ color: inherit;
661
+ background: transparent;
662
+ font: inherit;
663
+ -webkit-tap-highlight-color: transparent;
664
+ }
665
+
666
+ .viz-carousel-controls > button,
667
+ .viz-carousel-picker > summary {
668
+ position: relative;
669
+ isolation: isolate;
670
+ }
671
+
672
+ .viz-carousel-controls > button {
673
+ --icon-size: 16px;
674
+ width: 30px;
675
+ padding: 0;
676
+ }
677
+
678
+ .viz-carousel-picker > summary {
679
+ padding-inline: 12px;
680
+ }
681
+
682
+ .viz-carousel-controls .viz-carousel-caret {
683
+ width: 14px;
684
+ height: 14px;
685
+ flex: none;
686
+ margin: 0;
687
+ color: inherit;
688
+ transform: rotate(180deg);
689
+ }
690
+
691
+ .viz-carousel-controls > button > svg,
692
+ .viz-carousel-controls .viz-carousel-caret,
693
+ .viz-carousel-count {
694
+ opacity: 0.5;
695
+ }
696
+
697
+ .viz-carousel-controls > button::before,
698
+ .viz-carousel-picker > summary::before {
699
+ position: absolute;
700
+ z-index: -1;
701
+ inset: 3px;
702
+ border-radius: 12px;
703
+ content: "";
704
+ pointer-events: none;
705
+ }
706
+
707
+ .viz-carousel-controls > button:hover::before,
708
+ .viz-carousel-picker > summary:hover::before {
709
+ background: var(--viz-carousel-hover);
710
+ }
711
+
712
+ .viz-carousel-controls > button,
713
+ .viz-carousel-controls [data-lucide],
714
+ .viz-carousel-controls .lucide {
715
+ flex-shrink: 0;
716
+ }
717
+
718
+ .viz-carousel-picker {
719
+ min-width: 0;
720
+ }
721
+
722
+ .viz-carousel-picker > summary {
723
+ min-width: 0;
724
+ list-style: none;
725
+ }
726
+
727
+ .viz-carousel-picker > summary::-webkit-details-marker {
728
+ display: none;
729
+ }
730
+
731
+ .viz-carousel-count {
732
+ flex-shrink: 0;
733
+ white-space: nowrap;
734
+ }
735
+
736
+ .viz-carousel-name {
737
+ min-width: 0;
738
+ overflow: hidden;
739
+ text-overflow: ellipsis;
740
+ white-space: nowrap;
741
+ }
742
+
743
+ .viz-carousel-options {
744
+ position: absolute;
745
+ right: 0;
746
+ bottom: calc(100% + 4px);
747
+ left: 0;
748
+ display: flex;
749
+ max-height: 240px;
750
+ flex-direction: column;
751
+ gap: 2px;
752
+ overflow: auto;
753
+ padding: 4px;
754
+ border: 1px solid var(--border);
755
+ border-radius: var(--radius-lg);
756
+ background: var(--background);
757
+ box-shadow: 0 4px 12px light-dark(rgb(0 0 0 / 6%), rgb(0 0 0 / 25%));
758
+ }
759
+
760
+ .viz-carousel-options > button {
761
+ width: 100%;
762
+ min-height: 28px;
763
+ justify-content: flex-start;
764
+ padding: 4px 8px;
765
+ font-size: var(--font-size-small);
766
+ text-align: start;
767
+ white-space: normal;
768
+ overflow-wrap: anywhere;
769
+ }
770
+
771
+ .viz-carousel-options > [aria-current="true"],
772
+ .viz-carousel-options > button:hover {
773
+ background: var(--viz-carousel-hover);
774
+ }
775
+
776
+ .btn:disabled,
777
+ .nav-link:disabled,
778
+ .nav-link[aria-disabled="true"] {
779
+ cursor: not-allowed;
780
+ opacity: 0.4;
781
+ }
782
+
783
+ [data-lucide] {
784
+ stroke-width: 1.6;
785
+ }
786
+
787
+ .form-label {
788
+ display: block;
789
+ margin-bottom: 6px;
790
+ color: var(--foreground);
791
+ }
792
+
793
+ .form-control {
794
+ display: block;
795
+ width: 100%;
796
+ min-height: 28px;
797
+ padding: 0 8px;
798
+ outline: none;
799
+ border: 1px solid var(--input);
800
+ border-radius: var(--radius-lg);
801
+ corner-shape: var(--corner-shape);
802
+ color: var(--foreground);
803
+ background: var(--secondary);
804
+ }
805
+
806
+ .form-control::placeholder {
807
+ color: var(--muted-foreground);
808
+ }
809
+
810
+ .form-control[type="file"] {
811
+ padding: 0;
812
+ overflow: hidden;
813
+ cursor: var(--cursor-interaction, pointer);
814
+ }
815
+
816
+ .form-control[type="file"]::file-selector-button {
817
+ min-height: 26px;
818
+ margin-right: 8px;
819
+ padding: 0 8px;
820
+ border: 0;
821
+ border-right: 1px solid var(--input);
822
+ color: var(--secondary-foreground);
823
+ background: var(--secondary);
824
+ cursor: inherit;
825
+ font: inherit;
826
+ }
827
+
828
+ .form-control[type="file"]:not(:disabled):hover::file-selector-button {
829
+ background: color-mix(in srgb, var(--foreground) 6%, var(--secondary));
830
+ }
831
+
832
+ .form-control-color[type="color"] {
833
+ width: 40px;
834
+ height: 28px;
835
+ padding: 3px;
836
+ cursor: var(--cursor-interaction, pointer);
837
+ }
838
+
839
+ .form-control-color[type="color"]::-webkit-color-swatch-wrapper {
840
+ padding: 0;
841
+ }
842
+
843
+ .form-control-color[type="color"]::-webkit-color-swatch {
844
+ border: 0;
845
+ border-radius: calc(var(--radius-lg) - 4px);
846
+ corner-shape: var(--corner-shape);
847
+ }
848
+
849
+ textarea.form-control {
850
+ height: auto;
851
+ min-height: 72px;
852
+ padding: 8px 10px;
853
+ resize: vertical;
854
+ }
855
+
856
+ .form-control:focus-visible {
857
+ border-color: var(--ring);
858
+ box-shadow: inset 0 0 0 1px var(--ring);
859
+ }
860
+
861
+ .form-control:disabled,
862
+ .form-select:disabled {
863
+ cursor: not-allowed;
864
+ opacity: 0.4;
865
+ }
866
+
867
+ .form-select {
868
+ appearance: none;
869
+ display: block;
870
+ width: 100%;
871
+ min-height: 28px;
872
+ margin: 0;
873
+ padding: 0 32px 0 8px;
874
+ outline: none;
875
+ border: 1px solid var(--input);
876
+ border-radius: var(--radius-lg);
877
+ corner-shape: var(--corner-shape);
878
+ color: var(--foreground);
879
+ background-color: var(--secondary);
880
+ background-image:
881
+ linear-gradient(45deg, transparent 50%, var(--muted-foreground) 50%),
882
+ linear-gradient(135deg, var(--muted-foreground) 50%, transparent 50%);
883
+ background-position:
884
+ calc(100% - 14px) 50%,
885
+ calc(100% - 10px) 50%;
886
+ background-repeat: no-repeat;
887
+ background-size: 4px 4px;
888
+ cursor: var(--cursor-interaction, default);
889
+ }
890
+
891
+ .form-select:not(:disabled):hover {
892
+ background-color: color-mix(in srgb, var(--foreground) 6%, var(--secondary));
893
+ }
894
+
895
+ .form-select:focus-visible {
896
+ border-color: var(--ring);
897
+ box-shadow: inset 0 0 0 1px var(--ring);
898
+ }
899
+
900
+ .form-check {
901
+ display: flex;
902
+ min-height: 20px;
903
+ align-items: center;
904
+ gap: 6px;
905
+ }
906
+
907
+ .form-check-input {
908
+ appearance: none;
909
+ width: 14px;
910
+ height: 14px;
911
+ flex: 0 0 auto;
912
+ margin: 0;
913
+ border: 1px solid var(--input);
914
+ color: var(--primary-foreground);
915
+ background-color: transparent;
916
+ cursor: var(--cursor-interaction, default);
917
+ transition:
918
+ background-color 150ms,
919
+ border-color 150ms,
920
+ box-shadow 150ms;
921
+ }
922
+
923
+ .form-check:not(.form-switch) .form-check-input[type="checkbox"] {
924
+ border-color: var(--input);
925
+ border-radius: var(--radius-sm);
926
+ corner-shape: var(--corner-shape);
927
+ background-color: var(--secondary);
928
+ box-shadow: var(--shadow-sm);
929
+ }
930
+
931
+ .form-check:not(.form-switch)
932
+ .form-check-input:not(:disabled):not(:checked):hover {
933
+ background-color: var(--card);
934
+ }
935
+
936
+ .form-check:not(.form-switch) .form-check-input[type="checkbox"]:checked {
937
+ border-color: var(--primary);
938
+ background-color: var(--primary);
939
+ }
940
+
941
+ .form-check:not(.form-switch)
942
+ .form-check-input[type="checkbox"]:checked::before {
943
+ display: block;
944
+ width: 100%;
945
+ height: 100%;
946
+ background: var(--primary-foreground);
947
+ content: "";
948
+ mask: var(--checkmark-image) center / 12px 12px no-repeat;
949
+ }
950
+
951
+ .form-check-input[type="radio"] {
952
+ width: 14px;
953
+ height: 14px;
954
+ border-radius: var(--radius-full);
955
+ }
956
+
957
+ .form-check-input[type="radio"]:checked {
958
+ border: 2px solid var(--primary);
959
+ background:
960
+ radial-gradient(circle, var(--primary-foreground) 0 2.5px, transparent 3px),
961
+ var(--primary);
962
+ }
963
+
964
+ .form-check:not(.form-switch) .form-check-input:focus-visible {
965
+ outline: 2px solid var(--ring);
966
+ outline-offset: 2px;
967
+ }
968
+
969
+ .form-check:not(.form-switch) .form-check-input:disabled {
970
+ cursor: not-allowed;
971
+ pointer-events: none;
972
+ }
973
+
974
+ .form-check:not(.form-switch) .form-check-input:disabled + .form-check-label {
975
+ cursor: not-allowed;
976
+ }
977
+
978
+ .form-switch .form-check-input:disabled,
979
+ .form-switch .form-check-input:disabled + .form-check-label {
980
+ cursor: not-allowed;
981
+ opacity: 0.6;
982
+ }
983
+
984
+ .form-check-label {
985
+ color: var(--foreground);
986
+ cursor: var(--cursor-interaction, default);
987
+ }
988
+
989
+ .form-switch .form-check-input {
990
+ position: relative;
991
+ width: 32px;
992
+ height: 20px;
993
+ border: 0;
994
+ border-radius: var(--radius-full);
995
+ background: var(--muted);
996
+ box-shadow: none;
997
+ transition: background-color 200ms cubic-bezier(0, 0, 0.2, 1);
998
+ }
999
+
1000
+ .form-switch .form-check-input::before {
1001
+ position: absolute;
1002
+ top: 50%;
1003
+ left: 0;
1004
+ width: 16px;
1005
+ height: 16px;
1006
+ box-sizing: border-box;
1007
+ border: 1px solid light-dark(var(--primary-foreground), var(--foreground));
1008
+ border-radius: var(--radius-full);
1009
+ background: light-dark(var(--primary-foreground), var(--foreground));
1010
+ box-shadow: var(--shadow-sm);
1011
+ content: "";
1012
+ transform: translate(2px, -50%);
1013
+ transition: transform 200ms cubic-bezier(0, 0, 0.2, 1);
1014
+ }
1015
+
1016
+ .form-switch .form-check-input:checked {
1017
+ background: var(--primary);
1018
+ }
1019
+
1020
+ .form-switch .form-check-input:checked::before {
1021
+ transform: translate(14px, -50%);
1022
+ }
1023
+
1024
+ .form-switch .form-check-input:focus-visible {
1025
+ box-shadow: 0 0 0 2px var(--ring);
1026
+ }
1027
+
1028
+ .form-range {
1029
+ appearance: none;
1030
+ display: block;
1031
+ width: 100%;
1032
+ height: 28px;
1033
+ flex: 1;
1034
+ margin: 0;
1035
+ padding: 0;
1036
+ outline: none;
1037
+ border: 0;
1038
+ accent-color: var(--primary);
1039
+ background: linear-gradient(
1040
+ color-mix(in srgb, var(--foreground) 7%, transparent),
1041
+ color-mix(in srgb, var(--foreground) 7%, transparent)
1042
+ )
1043
+ center / 100% 2px no-repeat;
1044
+ }
1045
+
1046
+ .form-range::-webkit-slider-runnable-track {
1047
+ height: 28px;
1048
+ background: transparent;
1049
+ }
1050
+
1051
+ .form-range::-webkit-slider-thumb {
1052
+ appearance: none;
1053
+ width: 20px;
1054
+ height: 20px;
1055
+ margin-top: 4px;
1056
+ border: 1px solid var(--border);
1057
+ border-radius: var(--radius-full);
1058
+ background: light-dark(var(--primary-foreground), var(--foreground));
1059
+ }
1060
+
1061
+ .form-range:focus-visible::-webkit-slider-thumb {
1062
+ border-color: var(--ring);
1063
+ box-shadow: inset 0 0 0 1px var(--ring);
1064
+ }
1065
+
1066
+ .form-range::-moz-range-track {
1067
+ height: 28px;
1068
+ background: transparent;
1069
+ }
1070
+
1071
+ .form-range::-moz-range-thumb {
1072
+ width: 20px;
1073
+ height: 20px;
1074
+ border: 1px solid var(--border);
1075
+ border-radius: var(--radius-full);
1076
+ background: light-dark(var(--primary-foreground), var(--foreground));
1077
+ }
1078
+
1079
+ .form-range:focus-visible::-moz-range-thumb {
1080
+ border-color: var(--ring);
1081
+ box-shadow: inset 0 0 0 1px var(--ring);
1082
+ }
1083
+
1084
+ .form-range:disabled {
1085
+ cursor: not-allowed;
1086
+ opacity: 0.4;
1087
+ }
1088
+
1089
+ .btn:not(.btn-primary, .viz-tile):is(
1090
+ [aria-pressed="true"],
1091
+ [aria-selected="true"],
1092
+ .is-selected
1093
+ ) {
1094
+ border-color: var(--primary);
1095
+ color: var(--primary-foreground);
1096
+ background: var(--primary);
1097
+ }
1098
+
1099
+ .btn.viz-tile:is([aria-pressed="true"], [aria-selected="true"], .is-selected) {
1100
+ border-color: var(--primary);
1101
+ box-shadow: inset 0 0 0 1px var(--primary);
1102
+ }
1103
+
1104
+ .btn:focus-visible,
1105
+ .nav-link:focus-visible,
1106
+ .viz-carousel-controls :is(button, summary):focus-visible {
1107
+ outline: 2px solid var(--ring);
1108
+ outline-offset: 2px;
1109
+ }
1110
+
1111
+ @media (pointer: coarse) {
1112
+ .viz-carousel:has(> .viz-carousel-controls) {
1113
+ min-height: calc(76px + var(--viz-carousel-picker-height, 0px));
1114
+ padding-bottom: 76px;
1115
+ }
1116
+
1117
+ .btn,
1118
+ .nav-link,
1119
+ .viz-carousel-controls button,
1120
+ .viz-carousel-picker > summary,
1121
+ .form-control,
1122
+ .form-select {
1123
+ min-width: 44px;
1124
+ min-height: 44px;
1125
+ }
1126
+
1127
+ /* Keep small-screen WebKit from zooming when a text field receives focus. */
1128
+ .form-control,
1129
+ .form-select {
1130
+ font-size: max(16px, var(--font-size-normal));
1131
+ }
1132
+
1133
+ .form-control[type="file"]::file-selector-button {
1134
+ min-width: 44px;
1135
+ min-height: 44px;
1136
+ }
1137
+
1138
+ .form-control-color[type="color"] {
1139
+ width: 44px;
1140
+ height: 44px;
1141
+ }
1142
+
1143
+ .form-control:is(
1144
+ [type="date"],
1145
+ [type="datetime-local"],
1146
+ [type="month"],
1147
+ [type="time"],
1148
+ [type="week"]
1149
+ ) {
1150
+ min-width: 0;
1151
+ max-width: 100%;
1152
+ padding-block: 8px;
1153
+ }
1154
+
1155
+ .form-check {
1156
+ min-height: 44px;
1157
+ padding-inline: 15px;
1158
+ }
1159
+
1160
+ .form-check-input {
1161
+ position: relative;
1162
+ }
1163
+
1164
+ .form-check-input::after {
1165
+ position: absolute;
1166
+ top: 50%;
1167
+ left: 50%;
1168
+ width: 44px;
1169
+ height: 44px;
1170
+ content: "";
1171
+ transform: translate(-50%, -50%);
1172
+ }
1173
+
1174
+ .form-check-label {
1175
+ display: inline-flex;
1176
+ min-width: 44px;
1177
+ min-height: 44px;
1178
+ align-items: center;
1179
+ }
1180
+
1181
+ .form-range {
1182
+ height: 44px;
1183
+ touch-action: pan-y;
1184
+ }
1185
+
1186
+ .form-range::-webkit-slider-runnable-track {
1187
+ height: 44px;
1188
+ }
1189
+
1190
+ .form-range::-moz-range-track {
1191
+ height: 44px;
1192
+ }
1193
+
1194
+ .form-range::-webkit-slider-thumb {
1195
+ margin-top: 12px;
1196
+ }
1197
+ }
1198
+
1199
+ svg {
1200
+ display: block;
1201
+ max-width: 100%;
1202
+ height: auto;
1203
+ }
1204
+
1205
+ #widget > svg {
1206
+ width: 100%;
1207
+ }
1208
+
1209
+ /* Model-authored chart rules can otherwise stretch icons after these styles load. */
1210
+ svg.lucide {
1211
+ display: block;
1212
+ width: var(--icon-size) !important;
1213
+ height: var(--icon-size) !important;
1214
+ flex: none;
1215
+ margin: 0 !important;
1216
+ stroke-width: 1.6;
1217
+ }
1218
+
1219
+ .text-warning,
1220
+ .text-destructive {
1221
+ color: var(--destructive);
1222
+ }