@vocdoni/skills 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.claude-plugin/marketplace.json +12 -2
  2. package/CHANGELOG.md +12 -0
  3. package/README.md +13 -0
  4. package/package.json +1 -1
  5. package/plugins/agentic-dev/.claude-plugin/plugin.json +1 -1
  6. package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +10 -5
  7. package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +20 -0
  8. package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +1 -0
  9. package/plugins/agentic-dev/skills/subagent-driven-development/scripts/task-brief.sh +2 -0
  10. package/plugins/agentic-dev/skills/subagent-driven-development/templates/plan.md +4 -0
  11. package/plugins/claude-pi-subagent/.claude-plugin/marketplace.json +1 -1
  12. package/plugins/claude-pi-subagent/plugins/pi-subagent/.claude-plugin/plugin.json +1 -1
  13. package/plugins/claude-pi-subagent/plugins/pi-subagent/dist/server.mjs +75 -12
  14. package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +89 -89
  15. package/plugins/claude-pi-subagent/plugins/pi-subagent/package.json +2 -2
  16. package/plugins/claude-pi-subagent/plugins/pi-subagent/src/server.ts +1 -1
  17. package/plugins/vocdoni-ui-style/.claude-plugin/plugin.json +25 -0
  18. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/SKILL.md +99 -0
  19. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/chakra/product.tsx +263 -0
  20. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/brand.tsx +195 -0
  21. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/button.tsx +67 -0
  22. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/components/shadcn/status-badge.tsx +93 -0
  23. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-ink.svg +15 -0
  24. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo-white.svg +15 -0
  25. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-logo.svg +15 -0
  26. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-ink.svg +7 -0
  27. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark-white.svg +7 -0
  28. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/logo/vocdoni-mark.svg +7 -0
  29. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-footer.webp +0 -0
  30. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-home-hero.webp +0 -0
  31. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-mobile.webp +0 -0
  32. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-stats-and-panels.webp +0 -0
  33. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-vertical-hero.webp +0 -0
  34. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/editorial-washes-and-comparison.webp +0 -0
  35. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-process-results.webp +0 -0
  36. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/reference/product-signin.webp +0 -0
  37. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.chakra.ts +285 -0
  38. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.css +847 -0
  39. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/editorial.tailwind.css +352 -0
  40. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.chakra.ts +410 -0
  41. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.css +1116 -0
  42. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/assets/tokens/product.tailwind.css +289 -0
  43. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/editorial-landing.html +358 -0
  44. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/email-vote-invitation.html +58 -0
  45. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-auth.html +81 -0
  46. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-builder.html +147 -0
  47. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-dashboard.html +185 -0
  48. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/examples/product-voting.html +326 -0
  49. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/brand-core.md +166 -0
  50. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/editorial.md +198 -0
  51. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/product.md +173 -0
  52. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/recipes.md +264 -0
  53. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/stacks.md +196 -0
  54. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/references/ux-flows.md +110 -0
  55. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-editorial.tsx +15 -0
  56. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/bad-product.tsx +9 -0
  57. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/doc.md +10 -0
  58. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/escaped.json +1 -0
  59. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-editorial.tsx +16 -0
  60. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/good-product.css +6 -0
  61. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/locale.json +1 -0
  62. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-attr.tsx +8 -0
  63. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/multiline-copy.tsx +10 -0
  64. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style-fixtures/regex-literal.tsx +5 -0
  65. package/plugins/vocdoni-ui-style/skills/vocdoni-ui-style/scripts/check-style.mjs +436 -0
@@ -0,0 +1,1116 @@
1
+ /*
2
+ * Vocdoni product mode - plain CSS (no framework).
3
+ * Mirrors the vocdoni-app Chakra UI v3 system (src/theme): Chakra's default
4
+ * semantic palette with the app's overrides, Inter at light weights, 6px control
5
+ * radius, 8px card radius. Values were checked against computed styles on
6
+ * app.vocdoni.io.
7
+ *
8
+ * Fonts: Inter 300/400/500/600, e.g.
9
+ * @fontsource/inter/300.css 400.css 500.css 600.css
10
+ * or <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
11
+ *
12
+ * White-label: by default the product is monochrome (gray-900 accent, gray
13
+ * tints), which is Vocdoni's own look. For an organization's color set --brand
14
+ * AND the data-brand attribute on the same element as (or an ancestor of) the
15
+ * themed UI, usually <html>:
16
+ * <html data-brand style="--brand: #1a73e8">
17
+ * Tints and shades follow (OKLab mixing, the same math as vocdoni-app's palette
18
+ * generator). CSS cannot measure contrast, so for a very light or very dark
19
+ * brand also set, inline next to --brand:
20
+ * --brand-solid-light a step reaching 3:1 against the page (button fill)
21
+ * --brand-on #fff or #000, whichever reaches 4.5:1 on that fill
22
+ * --brand-fg-light accent text reaching 4.5:1 on the page
23
+ * and the dark-mode counterparts --brand-solid-dark, --brand-on-dark,
24
+ * --brand-fg-dark. Do not set --brand-solid/--brand-contrast/--brand-fg
25
+ * directly: an inline value would also win in dark mode.
26
+ * generatePaletteScale/contrastColor in product.chakra.ts compute the steps.
27
+ *
28
+ * Color mode: light by default; class="dark" on <html> or any ancestor.
29
+ * vocdoni-app follows the system preference and offers a toggle.
30
+ */
31
+
32
+ :root {
33
+ /* Neutrals (Chakra v3 zinc gray with the app's overrides) */
34
+ --gray-50: #fcfcfc;
35
+ --gray-100: #f5f5f5;
36
+ --gray-200: #e4e4e7;
37
+ --gray-300: #d4d4d8;
38
+ --gray-400: #b2b2b2;
39
+ --gray-500: #737373;
40
+ --gray-600: #52525b;
41
+ --gray-700: #3f3f46;
42
+ --gray-800: #27272a;
43
+ --gray-900: #18181b;
44
+ --gray-950: #09090b;
45
+
46
+ /* Status palettes: subtle (bg) + fg pairs, Chakra "subtle" badge recipe */
47
+ --green-subtle: #dcfce7;
48
+ --green-fg: #116932;
49
+ --teal-subtle: #ccfbf1;
50
+ --teal-fg: #0c5d56;
51
+ --blue-subtle: #dbeafe;
52
+ --blue-fg: #173da6;
53
+ --purple-subtle: #f3e8ff;
54
+ --purple-fg: #641ba3;
55
+ --orange-subtle: #ffedd5;
56
+ --orange-fg: #92310a;
57
+ --red-subtle: #fee2e2;
58
+ --red-fg: #991919;
59
+ --yellow-subtle: #fef9c3;
60
+ --yellow-fg: #845209;
61
+ /* Solid fills that carry white text at >= 4.5:1 */
62
+ --red-solid: #dc2626;
63
+ --green-solid: #116932;
64
+ --orange-solid: #ea580c; /* bars and meters only, not behind text */
65
+ --error-fg: #dc2626; /* 4.8:1 on white */
66
+
67
+ --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
68
+ --font-mono: Menlo, ui-monospace, monospace;
69
+ /* The app's weight tokens are shifted one step lighter than usual:
70
+ "normal" = 300, "bold" = 400. Headings and buttons are 400. */
71
+ --fw-light: 300;
72
+ --fw-regular: 400;
73
+ --fw-medium: 500;
74
+ --fw-semibold: 600;
75
+
76
+ --radius-xs: 4px;
77
+ --radius-sm: 6px; /* buttons, inputs, tags, badges, tab triggers */
78
+ --radius-md: 8px; /* cards, boxes, dialogs, choice cards */
79
+ --radius-lg: 10px;
80
+ --radius-xl: 12px;
81
+ --radius-2xl: 16px;
82
+
83
+ --sidebar-w: 255px;
84
+ --sidebar-w-reduced: 48px;
85
+ --voting-sidebar-w: 320px;
86
+ --content-max: 1200px;
87
+ }
88
+
89
+ /* Light surfaces and monochrome accent. Declared on every scope that can
90
+ change the mode, so nested .dark / light sections re-resolve the aliases
91
+ (custom properties are computed where they are declared, not where used). */
92
+ :root,
93
+ .light {
94
+ color-scheme: light;
95
+ --bg: #ffffff;
96
+ --bg-subtle: var(--gray-50);
97
+ --bg-muted: var(--gray-100); /* tab rails, subtle buttons, hover rows */
98
+ --bg-emphasized: var(--gray-200);
99
+ --bg-panel: #ffffff;
100
+ --fg: var(--gray-950);
101
+ --fg-muted: var(--gray-600); /* subtitles, descriptions, meta */
102
+ --fg-subtle: var(--gray-400);
103
+ --fg-chrome: var(--gray-800); /* text on subtle buttons and neutral badges */
104
+ --border: var(--gray-200);
105
+ --border-emphasized: var(--gray-300);
106
+ --placeholder: var(--gray-500);
107
+ --dashboard-menu: #fbfbfb;
108
+ --auth-bg: var(--gray-50);
109
+ --shadow-xs: 0 1px 2px rgb(24 24 27 / 0.1), 0 0 1px rgb(24 24 27 / 0.2);
110
+ --shadow-sm: 0 2px 4px rgb(24 24 27 / 0.1), 0 0 1px rgb(24 24 27 / 0.3);
111
+ --shadow-md: 0 4px 8px rgb(24 24 27 / 0.1), 0 0 1px rgb(24 24 27 / 0.3);
112
+ --shadow-lg: 0 8px 16px rgb(24 24 27 / 0.1), 0 0 1px rgb(24 24 27 / 0.3);
113
+
114
+ /* --brand is never declared here: it is the organization's color, set inline
115
+ and inherited unchanged through nested light/dark scopes. */
116
+ --brand-default: var(--gray-900);
117
+ --brand-solid: var(--brand, var(--brand-default)); /* filled buttons, checked controls */
118
+ --brand-contrast: #ffffff; /* label on --brand-solid */
119
+ --brand-fg: var(--gray-800); /* accent text on the page (active tab, links) */
120
+ --brand-subtle: var(--gray-100);
121
+ --brand-muted: var(--gray-200); /* active nav item */
122
+ --focus-ring: var(--brand-solid);
123
+ }
124
+
125
+ .dark {
126
+ color-scheme: dark;
127
+ --bg: #0a0a0a;
128
+ --bg-subtle: #111111;
129
+ --bg-muted: #3f3f3f;
130
+ --bg-emphasized: var(--gray-800);
131
+ --bg-panel: #111111;
132
+ --fg: var(--gray-50);
133
+ --fg-muted: var(--gray-400);
134
+ --fg-subtle: var(--gray-500);
135
+ --fg-chrome: var(--gray-100);
136
+ --border: var(--gray-800);
137
+ --border-emphasized: var(--gray-700);
138
+ --dashboard-menu: #18181b;
139
+ --auth-bg: #262626;
140
+ --shadow-xs: 0 1px 1px rgb(0 0 0 / 0.64), inset 0 0 1px rgb(212 212 216 / 0.2);
141
+ --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.64), inset 0 0 1px rgb(212 212 216 / 0.3);
142
+ --shadow-md: 0 4px 8px rgb(0 0 0 / 0.64), inset 0 0 1px rgb(212 212 216 / 0.3);
143
+ --shadow-lg: 0 8px 16px rgb(0 0 0 / 0.64), inset 0 0 1px rgb(212 212 216 / 0.3);
144
+ --green-subtle: #042713;
145
+ --green-fg: #86efac;
146
+ --teal-subtle: #032726;
147
+ --teal-fg: #5eead4;
148
+ --blue-subtle: #14204a;
149
+ --blue-fg: #a3cfff;
150
+ --purple-subtle: #2f0553;
151
+ --purple-fg: #d8b4fe;
152
+ --orange-subtle: #3b1106;
153
+ --orange-fg: #fdba74;
154
+ --red-subtle: #300c0c;
155
+ --red-fg: #fca5a5;
156
+ --yellow-subtle: #422006;
157
+ --yellow-fg: #fde047;
158
+ --error-fg: #f87171;
159
+
160
+ /* Monochrome accent flips to white on dark */
161
+ --brand-default: #ffffff;
162
+ --brand-solid: var(--brand, var(--brand-default));
163
+ --brand-contrast: #000000;
164
+ --brand-fg: var(--gray-300);
165
+ --brand-subtle: var(--gray-900);
166
+ --brand-muted: var(--gray-800);
167
+ --focus-ring: var(--brand-solid);
168
+ }
169
+
170
+ /* White-label, light. Mixes match the generator: subtle = 100, muted = 200,
171
+ fg = 700. Overrides (--brand-solid etc.) win when set inline. */
172
+ [data-brand],
173
+ [data-brand] .light {
174
+ --brand-solid: var(--brand-solid-light, var(--brand));
175
+ --brand-contrast: var(--brand-on, #ffffff);
176
+ --brand-fg: var(--brand-fg-light, color-mix(in oklab, var(--brand) 70%, black));
177
+ --brand-subtle: color-mix(in oklab, var(--brand) 10%, white);
178
+ --brand-muted: color-mix(in oklab, var(--brand) 20%, white);
179
+ --focus-ring: var(--brand-solid);
180
+ }
181
+ /* White-label, dark: subtle = 900, muted = 800, fg = 300. The brand keeps its
182
+ own color; it does not flip to white. */
183
+ .dark[data-brand],
184
+ .dark [data-brand],
185
+ [data-brand] .dark {
186
+ --brand-solid: var(--brand-solid-dark, var(--brand));
187
+ --brand-contrast: var(--brand-on-dark, var(--brand-on, #ffffff));
188
+ --brand-fg: var(--brand-fg-dark, color-mix(in oklab, var(--brand) 40%, white));
189
+ --brand-subtle: color-mix(in oklab, var(--brand) 40%, black);
190
+ --brand-muted: color-mix(in oklab, var(--brand) 55%, black);
191
+ --focus-ring: var(--brand-solid);
192
+ }
193
+
194
+ /* ---------- Base ---------- */
195
+ *,
196
+ *::before,
197
+ *::after {
198
+ box-sizing: border-box;
199
+ }
200
+ body {
201
+ margin: 0;
202
+ background: var(--bg);
203
+ color: var(--fg);
204
+ font-family: var(--font-body);
205
+ font-size: 16px;
206
+ line-height: 1.5;
207
+ font-weight: var(--fw-regular);
208
+ -webkit-font-smoothing: antialiased;
209
+ }
210
+ h1,
211
+ h2,
212
+ h3,
213
+ h4 {
214
+ margin: 0;
215
+ font-weight: var(--fw-regular);
216
+ letter-spacing: -0.025em;
217
+ line-height: 1.3;
218
+ }
219
+ p {
220
+ margin: 0;
221
+ }
222
+ a {
223
+ color: inherit;
224
+ }
225
+ :focus-visible {
226
+ outline: 2px solid var(--focus-ring);
227
+ outline-offset: 2px;
228
+ }
229
+ @media (prefers-reduced-motion: reduce) {
230
+ *,
231
+ *::before,
232
+ *::after {
233
+ animation-duration: 0.01ms !important;
234
+ animation-iteration-count: 1 !important;
235
+ transition-duration: 0.01ms !important;
236
+ scroll-behavior: auto !important;
237
+ }
238
+ }
239
+
240
+ /* ---------- Type ---------- */
241
+ .vp-title-4xl {
242
+ font-size: 36px;
243
+ line-height: 1.2;
244
+ }
245
+ .vp-title-2xl {
246
+ font-size: 24px;
247
+ line-height: 1.3;
248
+ }
249
+ .vp-title-xl {
250
+ font-size: 20px;
251
+ line-height: 1.4;
252
+ }
253
+ .vp-title-lg {
254
+ font-size: 18px;
255
+ line-height: 1.56;
256
+ }
257
+ .vp-subtitle {
258
+ font-size: 16px;
259
+ color: var(--fg-muted);
260
+ }
261
+ .vp-text-sm {
262
+ font-size: 14px;
263
+ line-height: 1.43;
264
+ }
265
+ .vp-text-xs {
266
+ font-size: 12px;
267
+ line-height: 1.5;
268
+ }
269
+ .vp-muted {
270
+ color: var(--fg-muted);
271
+ }
272
+ .vp-overline {
273
+ font-size: 12px;
274
+ letter-spacing: 0.1em;
275
+ text-transform: uppercase;
276
+ color: var(--fg-muted);
277
+ }
278
+ /* Product links are underlined at rest, from-font thickness */
279
+ .vp-link {
280
+ color: var(--gray-800);
281
+ text-decoration: underline;
282
+ text-decoration-thickness: from-font;
283
+ text-underline-offset: 0.15em;
284
+ }
285
+ .vp-link:hover {
286
+ color: var(--gray-500);
287
+ }
288
+ .dark .vp-link {
289
+ color: var(--gray-400);
290
+ }
291
+ .dark .vp-link:hover {
292
+ color: var(--gray-200);
293
+ }
294
+
295
+ /* ---------- Buttons ---------- */
296
+ .vp-btn {
297
+ display: inline-flex;
298
+ align-items: center;
299
+ justify-content: center;
300
+ gap: 8px;
301
+ height: 40px;
302
+ min-width: 0;
303
+ padding: 0 16px;
304
+ border: 1px solid transparent;
305
+ border-radius: var(--radius-sm);
306
+ background: var(--brand-solid);
307
+ color: var(--brand-contrast);
308
+ font: inherit;
309
+ font-size: 14px;
310
+ font-weight: var(--fw-regular);
311
+ line-height: 20px;
312
+ white-space: nowrap;
313
+ cursor: pointer;
314
+ text-decoration: none;
315
+ transition:
316
+ background-color 150ms ease,
317
+ border-color 150ms ease,
318
+ opacity 150ms ease;
319
+ }
320
+ .vp-btn:hover {
321
+ background: color-mix(in oklab, var(--brand-solid) 90%, var(--bg));
322
+ }
323
+ .vp-btn:disabled,
324
+ .vp-btn[aria-disabled='true'] {
325
+ opacity: 0.4;
326
+ cursor: not-allowed;
327
+ }
328
+ .vp-btn svg {
329
+ width: 16px;
330
+ height: 16px;
331
+ flex-shrink: 0;
332
+ }
333
+ .vp-btn--outline {
334
+ background: transparent;
335
+ border-color: var(--border);
336
+ color: var(--fg);
337
+ }
338
+ .vp-btn--outline:hover {
339
+ background: var(--bg-muted);
340
+ }
341
+ .vp-btn--subtle {
342
+ background: var(--bg-muted);
343
+ color: var(--fg-chrome);
344
+ }
345
+ .vp-btn--subtle:hover {
346
+ background: var(--bg-emphasized);
347
+ }
348
+ .vp-btn--ghost {
349
+ background: transparent;
350
+ color: var(--fg);
351
+ }
352
+ .vp-btn--ghost:hover {
353
+ background: var(--bg-muted);
354
+ }
355
+ .vp-btn--danger {
356
+ background: var(--red-solid);
357
+ color: #fff;
358
+ }
359
+ .vp-btn--danger:hover {
360
+ background: #b91c1c;
361
+ }
362
+ .vp-btn--danger-outline {
363
+ background: transparent;
364
+ border-color: var(--border);
365
+ color: var(--red-fg);
366
+ }
367
+ .vp-btn--danger-outline:hover {
368
+ background: var(--red-subtle);
369
+ }
370
+ .vp-btn--xs {
371
+ height: 32px;
372
+ padding: 0 10px;
373
+ font-size: 12px;
374
+ }
375
+ .vp-btn--sm {
376
+ height: 36px;
377
+ padding: 0 14px;
378
+ }
379
+ .vp-btn--lg {
380
+ height: 50px;
381
+ font-size: 18px;
382
+ }
383
+ .vp-btn--block {
384
+ width: 100%;
385
+ }
386
+ .vp-btn--icon {
387
+ width: 40px;
388
+ padding: 0;
389
+ }
390
+
391
+ /* ---------- Forms ---------- */
392
+ .vp-field {
393
+ display: flex;
394
+ flex-direction: column;
395
+ gap: 6px;
396
+ }
397
+ .vp-label {
398
+ font-size: 14px;
399
+ font-weight: var(--fw-light);
400
+ }
401
+ .vp-input,
402
+ .vp-select,
403
+ .vp-textarea {
404
+ width: 100%;
405
+ height: 40px;
406
+ padding: 0 12px;
407
+ border: 1px solid var(--border);
408
+ border-radius: var(--radius-sm);
409
+ background: transparent;
410
+ color: var(--fg);
411
+ font: inherit;
412
+ font-size: 16px; /* 16px under md: iOS Safari zooms focused inputs below it */
413
+ }
414
+ @media (min-width: 768px) {
415
+ .vp-input,
416
+ .vp-select,
417
+ .vp-textarea {
418
+ font-size: 14px;
419
+ }
420
+ }
421
+ .vp-textarea {
422
+ height: auto;
423
+ min-height: 80px;
424
+ padding: 8px 12px;
425
+ }
426
+ .vp-input::placeholder,
427
+ .vp-textarea::placeholder {
428
+ color: var(--placeholder);
429
+ }
430
+ .vp-input:focus-visible,
431
+ .vp-select:focus-visible,
432
+ .vp-textarea:focus-visible {
433
+ outline: none;
434
+ border-color: var(--focus-ring);
435
+ box-shadow: 0 0 0 1px var(--focus-ring);
436
+ }
437
+ .vp-input[aria-invalid='true'] {
438
+ border-color: var(--error-fg);
439
+ box-shadow: 0 0 0 1px var(--error-fg);
440
+ }
441
+ /* Keep a distinct keyboard focus ring on invalid fields */
442
+ .vp-input[aria-invalid='true']:focus-visible,
443
+ .vp-select[aria-invalid='true']:focus-visible,
444
+ .vp-textarea[aria-invalid='true']:focus-visible {
445
+ outline: 2px solid var(--focus-ring);
446
+ outline-offset: 2px;
447
+ }
448
+ .vp-field-error {
449
+ font-size: 12px;
450
+ color: var(--error-fg);
451
+ }
452
+ .vp-helper {
453
+ font-size: 12px;
454
+ color: var(--fg-muted);
455
+ }
456
+ /* Borderless title inputs used by the process builder */
457
+ .vp-input--borderless {
458
+ height: auto;
459
+ padding: 0;
460
+ border: 0;
461
+ font-size: 24px;
462
+ }
463
+ .vp-input--borderless:focus-visible {
464
+ box-shadow: none;
465
+ outline: 2px solid var(--focus-ring);
466
+ outline-offset: 4px;
467
+ border-radius: 2px;
468
+ }
469
+ .vp-check {
470
+ display: flex;
471
+ align-items: flex-start;
472
+ gap: 10px;
473
+ font-size: 14px;
474
+ }
475
+ .vp-check input {
476
+ width: 18px;
477
+ height: 18px;
478
+ margin: 1px 0 0;
479
+ accent-color: var(--brand-solid);
480
+ }
481
+ .vp-or {
482
+ display: flex;
483
+ align-items: center;
484
+ gap: 12px;
485
+ font-size: 12px;
486
+ text-transform: uppercase;
487
+ color: var(--fg-muted);
488
+ }
489
+ .vp-or::before,
490
+ .vp-or::after {
491
+ content: '';
492
+ flex: 1;
493
+ height: 1px;
494
+ background: var(--border);
495
+ }
496
+
497
+ /* Select: native box with a chevron */
498
+ .vp-select {
499
+ appearance: none;
500
+ padding-right: 36px;
501
+ background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
502
+ linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
503
+ background-position:
504
+ calc(100% - 18px) 50%,
505
+ calc(100% - 13px) 50%;
506
+ background-size: 5px 5px;
507
+ background-repeat: no-repeat;
508
+ }
509
+ /* Switch: label left, control right */
510
+ .vp-switch {
511
+ display: flex;
512
+ align-items: flex-start;
513
+ justify-content: space-between;
514
+ gap: 16px;
515
+ font-size: 14px;
516
+ }
517
+ .vp-switch input {
518
+ appearance: none;
519
+ position: relative;
520
+ flex-shrink: 0;
521
+ width: 36px;
522
+ height: 20px;
523
+ margin: 0;
524
+ border-radius: 9999px;
525
+ background: var(--bg-emphasized);
526
+ cursor: pointer;
527
+ transition: background-color 150ms ease;
528
+ }
529
+ .vp-switch input::after {
530
+ content: '';
531
+ position: absolute;
532
+ top: 2px;
533
+ left: 2px;
534
+ width: 16px;
535
+ height: 16px;
536
+ border-radius: 50%;
537
+ background: #fff;
538
+ box-shadow: var(--shadow-xs);
539
+ transition: translate 150ms ease;
540
+ }
541
+ .vp-switch input:checked {
542
+ background: var(--brand-solid);
543
+ }
544
+ .vp-switch input:checked::after {
545
+ translate: 16px 0;
546
+ background: var(--brand-contrast);
547
+ }
548
+ /* Radio cards: a bordered option with title + one-line description */
549
+ .vp-radio-card {
550
+ display: flex;
551
+ gap: 10px;
552
+ padding: 12px;
553
+ border: 1px solid var(--border);
554
+ border-radius: var(--radius-md);
555
+ cursor: pointer;
556
+ font-size: 14px;
557
+ }
558
+ .vp-radio-card:has(input:checked) {
559
+ border-color: var(--fg);
560
+ }
561
+ .vp-radio-card:has(input:focus-visible) {
562
+ outline: 2px solid var(--focus-ring);
563
+ outline-offset: 2px;
564
+ }
565
+ .vp-radio-card input {
566
+ margin: 2px 0 0;
567
+ accent-color: var(--brand-solid);
568
+ }
569
+ /* Dropzone */
570
+ .vp-dropzone {
571
+ display: grid;
572
+ place-items: center;
573
+ gap: 6px;
574
+ padding: 28px 16px;
575
+ border: 1px dashed var(--border-emphasized);
576
+ border-radius: var(--radius-md);
577
+ text-align: center;
578
+ font-size: 14px;
579
+ color: var(--fg-muted);
580
+ }
581
+ .vp-dropzone[data-dragging] {
582
+ background: var(--bg-muted);
583
+ }
584
+ /* Numbered step marker */
585
+ .vp-step {
586
+ display: inline-grid;
587
+ place-items: center;
588
+ flex-shrink: 0;
589
+ width: 24px;
590
+ height: 24px;
591
+ border-radius: 50%;
592
+ border: 1px solid var(--border-emphasized);
593
+ font-size: 12px;
594
+ color: var(--fg-muted);
595
+ }
596
+ .vp-step[data-state='current'] {
597
+ border-color: var(--orange-solid);
598
+ color: var(--orange-fg);
599
+ }
600
+ .vp-step[data-state='error'] {
601
+ border-color: var(--red-solid);
602
+ color: var(--red-fg);
603
+ }
604
+ .vp-step[data-state='done'] {
605
+ border-color: var(--green-solid);
606
+ background: var(--green-solid);
607
+ color: #fff;
608
+ }
609
+
610
+ /* ---------- Badges & tags ---------- */
611
+ .vp-badge {
612
+ display: inline-flex;
613
+ align-items: center;
614
+ gap: 4px;
615
+ padding: 2px 4px;
616
+ border-radius: var(--radius-sm);
617
+ background: var(--bg-muted);
618
+ color: var(--fg-chrome);
619
+ font-size: 12px;
620
+ font-weight: var(--fw-light);
621
+ line-height: 18px;
622
+ white-space: nowrap;
623
+ }
624
+ .vp-badge--green {
625
+ background: var(--green-subtle);
626
+ color: var(--green-fg);
627
+ }
628
+ .vp-badge--teal {
629
+ background: var(--teal-subtle);
630
+ color: var(--teal-fg);
631
+ }
632
+ .vp-badge--blue {
633
+ background: var(--blue-subtle);
634
+ color: var(--blue-fg);
635
+ }
636
+ .vp-badge--purple {
637
+ background: var(--purple-subtle);
638
+ color: var(--purple-fg);
639
+ }
640
+ .vp-badge--orange {
641
+ background: var(--orange-subtle);
642
+ color: var(--orange-fg);
643
+ }
644
+ .vp-badge--red {
645
+ background: var(--red-subtle);
646
+ color: var(--red-fg);
647
+ }
648
+ .vp-badge--yellow {
649
+ background: var(--yellow-subtle);
650
+ color: var(--yellow-fg);
651
+ }
652
+ .vp-badge--md {
653
+ padding: 4px 8px;
654
+ font-size: 14px;
655
+ }
656
+
657
+ /* ---------- Surfaces ---------- */
658
+ .vp-card {
659
+ border: 1px solid var(--border);
660
+ border-radius: var(--radius-md);
661
+ background: var(--bg-panel);
662
+ }
663
+ .vp-card__body {
664
+ padding: 24px;
665
+ }
666
+ .vp-box {
667
+ /* DashboardBox: the bordered container for page sections */
668
+ padding: 16px;
669
+ border: 1px solid var(--border);
670
+ border-radius: var(--radius-md);
671
+ }
672
+ .vp-section {
673
+ /* DashboardSection: subtle filled panel */
674
+ padding: 16px;
675
+ border-radius: var(--radius-md);
676
+ background: var(--bg-muted);
677
+ }
678
+ .vp-alert {
679
+ display: flex;
680
+ gap: 12px;
681
+ padding: 12px 16px;
682
+ border-radius: var(--radius-md);
683
+ font-size: 14px;
684
+ }
685
+ .vp-alert svg {
686
+ width: 20px;
687
+ height: 20px;
688
+ flex-shrink: 0;
689
+ }
690
+ .vp-alert--info {
691
+ background: var(--blue-subtle);
692
+ color: var(--blue-fg);
693
+ }
694
+ .vp-alert--success {
695
+ background: var(--green-subtle);
696
+ color: var(--green-fg);
697
+ }
698
+ .vp-alert--warning {
699
+ background: var(--orange-subtle);
700
+ color: var(--orange-fg);
701
+ }
702
+ .vp-alert--error {
703
+ background: var(--red-subtle);
704
+ color: var(--red-fg);
705
+ }
706
+ .vp-alert__title {
707
+ font-weight: var(--fw-medium);
708
+ }
709
+
710
+ /* ---------- Tabs (the app's "settings" variant: a pill rail) ---------- */
711
+ .vp-tabs {
712
+ display: inline-flex;
713
+ max-width: 100%;
714
+ overflow-x: auto;
715
+ gap: 4px;
716
+ padding: 4px;
717
+ border-radius: var(--radius-sm);
718
+ background: var(--bg-muted);
719
+ }
720
+ .vp-tab {
721
+ padding: 6px 12px;
722
+ border: 0;
723
+ border-radius: var(--radius-sm);
724
+ background: transparent;
725
+ color: var(--fg-muted);
726
+ font: inherit;
727
+ font-size: 14px;
728
+ font-weight: var(--fw-light);
729
+ white-space: nowrap;
730
+ cursor: pointer;
731
+ }
732
+ .vp-tab[aria-selected='true'] {
733
+ background: var(--bg);
734
+ color: var(--brand-fg);
735
+ box-shadow: var(--shadow-xs);
736
+ }
737
+ .dark .vp-tab[aria-selected='true'] {
738
+ background: #000;
739
+ color: #fff;
740
+ }
741
+ /* Fitted line tabs (voting page Questions | Results) */
742
+ .vp-tabs-line {
743
+ display: flex;
744
+ border-bottom: 1px solid var(--border);
745
+ }
746
+ .vp-tabs-line .vp-tab {
747
+ flex: 1;
748
+ border-radius: 0;
749
+ padding: 10px 12px;
750
+ color: var(--fg-muted);
751
+ border-bottom: 2px solid transparent;
752
+ margin-bottom: -1px;
753
+ }
754
+ .vp-tabs-line .vp-tab[aria-selected='true'] {
755
+ background: none;
756
+ box-shadow: none;
757
+ color: var(--fg);
758
+ border-bottom-color: var(--brand-solid);
759
+ }
760
+
761
+ /* ---------- Tables ---------- */
762
+ .vp-table-wrap {
763
+ overflow-x: auto;
764
+ border: 1px solid var(--border);
765
+ border-radius: var(--radius-md);
766
+ }
767
+ .vp-table {
768
+ width: 100%;
769
+ border-collapse: collapse;
770
+ font-size: 14px;
771
+ }
772
+ .vp-table th {
773
+ padding: 10px 16px;
774
+ text-align: left;
775
+ font-weight: var(--fw-medium);
776
+ font-size: 12px;
777
+ color: var(--fg-muted);
778
+ background: var(--bg-subtle);
779
+ border-bottom: 1px solid var(--border);
780
+ }
781
+ .vp-table td {
782
+ padding: 12px 16px;
783
+ border-bottom: 1px solid var(--border);
784
+ }
785
+ .vp-table tr:last-child td {
786
+ border-bottom: 0;
787
+ }
788
+ .vp-table .num {
789
+ text-align: right;
790
+ font-variant-numeric: tabular-nums;
791
+ }
792
+
793
+ /* ---------- Progress & results ---------- */
794
+ .vp-progress {
795
+ height: 8px;
796
+ overflow: hidden;
797
+ border-radius: 9999px;
798
+ background: var(--bg-muted);
799
+ }
800
+ .vp-progress > span {
801
+ display: block;
802
+ height: 100%;
803
+ border-radius: inherit;
804
+ background: var(--brand-solid);
805
+ }
806
+ .vp-progress--teal > span {
807
+ background: #0d9488;
808
+ }
809
+ .vp-progress--orange > span {
810
+ background: var(--orange-solid);
811
+ }
812
+ .vp-progress--red > span {
813
+ background: var(--red-solid);
814
+ }
815
+
816
+ /* ---------- Ballot choices ---------- */
817
+ .vp-choice {
818
+ display: flex;
819
+ align-items: center;
820
+ gap: 12px;
821
+ padding: 12px;
822
+ border: 1px solid var(--border);
823
+ border-radius: var(--radius-md);
824
+ cursor: pointer;
825
+ transition:
826
+ border-color 0.2s ease,
827
+ background-color 0.2s ease;
828
+ }
829
+ .vp-choice:hover {
830
+ background: var(--bg-subtle);
831
+ }
832
+ .vp-choice:has(input:checked) {
833
+ border-color: var(--fg);
834
+ }
835
+ .vp-choice:has(input:focus-visible) {
836
+ outline: 2px solid var(--focus-ring);
837
+ outline-offset: 2px;
838
+ }
839
+ .vp-choice input {
840
+ width: 18px;
841
+ height: 18px;
842
+ margin: 0;
843
+ flex-shrink: 0;
844
+ accent-color: var(--brand-solid);
845
+ }
846
+ .vp-choice__label {
847
+ font-weight: var(--fw-semibold);
848
+ word-break: break-word;
849
+ }
850
+ .vp-choice__desc {
851
+ font-size: 14px;
852
+ color: var(--fg-muted);
853
+ }
854
+
855
+ /* ---------- Security level (voter authentication strength) ---------- */
856
+ .vp-security {
857
+ display: grid;
858
+ grid-template-columns: repeat(3, 1fr);
859
+ gap: 8px;
860
+ }
861
+ .vp-security > span {
862
+ padding: 8px 16px;
863
+ border: 2px solid var(--border);
864
+ border-radius: var(--radius-md);
865
+ background: var(--gray-900);
866
+ color: #fff;
867
+ font-weight: var(--fw-regular);
868
+ text-align: center;
869
+ text-transform: uppercase;
870
+ font-size: 13px;
871
+ }
872
+ .vp-security > [data-level='weak'][data-active] {
873
+ background: #511111;
874
+ border-color: #dc2626;
875
+ opacity: 1;
876
+ }
877
+ .vp-security > [data-level='mid'][data-active] {
878
+ background: #6c2710;
879
+ border-color: #ea580c;
880
+ opacity: 1;
881
+ }
882
+ .vp-security > [data-level='strong'][data-active] {
883
+ background: #124a28;
884
+ border-color: #16a34a;
885
+ opacity: 1;
886
+ }
887
+
888
+ /* ---------- Dialog / drawer ---------- */
889
+ .vp-backdrop {
890
+ position: fixed;
891
+ inset: 0;
892
+ z-index: 1400;
893
+ display: grid;
894
+ place-items: center;
895
+ padding: 16px;
896
+ background: rgb(0 0 0 / 0.4);
897
+ }
898
+ .vp-dialog {
899
+ color: var(--fg); /* native <dialog> does not inherit the themed body color */
900
+ width: 100%;
901
+ max-width: 448px;
902
+ border-radius: var(--radius-md);
903
+ background: var(--bg-panel);
904
+ box-shadow: var(--shadow-lg);
905
+ }
906
+ .vp-dialog__header {
907
+ padding: 24px 24px 8px;
908
+ font-size: 18px;
909
+ font-weight: var(--fw-semibold);
910
+ }
911
+ .vp-dialog__body {
912
+ padding: 8px 24px 16px;
913
+ font-size: 14px;
914
+ color: var(--fg-muted);
915
+ }
916
+ .vp-dialog__footer {
917
+ display: flex;
918
+ justify-content: flex-end;
919
+ gap: 12px;
920
+ padding: 16px 24px 24px;
921
+ }
922
+
923
+ /* ---------- Toast (bottom-center) ---------- */
924
+ .vp-toaster {
925
+ position: fixed;
926
+ bottom: 16px;
927
+ left: 50%;
928
+ translate: -50% 0;
929
+ z-index: 1500;
930
+ display: flex;
931
+ flex-direction: column;
932
+ gap: 8px;
933
+ }
934
+ .vp-toast {
935
+ display: flex;
936
+ gap: 12px;
937
+ width: fit-content;
938
+ max-width: 384px;
939
+ padding: 12px 16px;
940
+ border-radius: var(--radius-md);
941
+ background: var(--gray-900);
942
+ color: #fff;
943
+ box-shadow: var(--shadow-lg);
944
+ font-size: 14px;
945
+ }
946
+ .vp-toast__title {
947
+ font-weight: var(--fw-medium);
948
+ }
949
+ .vp-toast--success {
950
+ background: var(--green-solid);
951
+ }
952
+ .vp-toast--error {
953
+ background: var(--red-solid);
954
+ }
955
+
956
+ /* ---------- App shell ---------- */
957
+ .vp-shell {
958
+ display: grid;
959
+ grid-template-columns: 1fr;
960
+ min-height: 100dvh;
961
+ }
962
+ @media (min-width: 768px) {
963
+ .vp-shell {
964
+ grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
965
+ }
966
+ }
967
+ .vp-sidebar {
968
+ position: sticky;
969
+ top: 0;
970
+ display: none;
971
+ flex-direction: column;
972
+ gap: 16px;
973
+ height: 100dvh;
974
+ padding: 16px 12px;
975
+ border-right: 1px solid var(--border);
976
+ background: var(--dashboard-menu);
977
+ }
978
+ @media (min-width: 768px) {
979
+ .vp-sidebar {
980
+ display: flex;
981
+ }
982
+ }
983
+ .vp-sidebar__section-title {
984
+ padding: 0 8px 4px;
985
+ font-size: 12px;
986
+ font-weight: var(--fw-medium);
987
+ color: var(--fg-muted);
988
+ }
989
+ .vp-nav-item {
990
+ display: flex;
991
+ align-items: center;
992
+ gap: 8px;
993
+ height: 32px;
994
+ padding: 0 8px;
995
+ border-radius: var(--radius-sm);
996
+ font-size: 14px;
997
+ color: var(--fg);
998
+ text-decoration: none;
999
+ }
1000
+ .vp-nav-item:hover {
1001
+ background: var(--bg-muted);
1002
+ }
1003
+ .vp-nav-item[aria-current='page'] {
1004
+ background: var(--brand-muted);
1005
+ font-weight: var(--fw-medium);
1006
+ }
1007
+ .vp-nav-item svg {
1008
+ width: 16px;
1009
+ height: 16px;
1010
+ }
1011
+ .vp-content {
1012
+ min-width: 0;
1013
+ padding: 24px;
1014
+ }
1015
+ .vp-page-header {
1016
+ display: flex;
1017
+ flex-wrap: wrap;
1018
+ align-items: flex-start;
1019
+ justify-content: space-between;
1020
+ gap: 16px;
1021
+ margin-bottom: 24px;
1022
+ }
1023
+ /* Public pages: sticky blurred top bar */
1024
+ .vp-topbar {
1025
+ position: sticky;
1026
+ top: 0;
1027
+ z-index: 3;
1028
+ display: flex;
1029
+ align-items: center;
1030
+ justify-content: space-between;
1031
+ gap: 16px;
1032
+ padding: 12px 40px;
1033
+ background: color-mix(in oklab, var(--bg) 80%, transparent);
1034
+ backdrop-filter: blur(8px);
1035
+ -webkit-backdrop-filter: blur(8px);
1036
+ }
1037
+ @media (max-width: 767px) {
1038
+ .vp-topbar {
1039
+ padding: 12px 16px;
1040
+ }
1041
+ }
1042
+ /* Auth split card: form left, dark showcase right (hidden < md) */
1043
+ .vp-auth {
1044
+ display: grid;
1045
+ grid-template-columns: 1fr;
1046
+ overflow: hidden;
1047
+ border: 1px solid var(--border);
1048
+ border-radius: var(--radius-md);
1049
+ background: var(--bg);
1050
+ }
1051
+ @media (min-width: 768px) {
1052
+ .vp-auth {
1053
+ grid-template-columns: 52% 48%;
1054
+ min-height: 34rem;
1055
+ }
1056
+ }
1057
+ @media (min-width: 1024px) {
1058
+ .vp-auth {
1059
+ grid-template-columns: 46% 54%;
1060
+ min-height: 38rem;
1061
+ }
1062
+ }
1063
+ .vp-auth__form {
1064
+ display: flex;
1065
+ flex-direction: column;
1066
+ justify-content: center;
1067
+ gap: 16px;
1068
+ padding: 40px;
1069
+ }
1070
+ .vp-auth__showcase {
1071
+ display: none;
1072
+ position: relative;
1073
+ overflow: hidden;
1074
+ flex-direction: column;
1075
+ justify-content: center;
1076
+ gap: 24px;
1077
+ padding: 48px;
1078
+ background: var(--showcase-bg, #251a42);
1079
+ color: #fff;
1080
+ }
1081
+ @media (min-width: 768px) {
1082
+ .vp-auth__showcase {
1083
+ display: flex;
1084
+ }
1085
+ }
1086
+ .vp-auth__quote {
1087
+ font-size: 24px;
1088
+ line-height: 1.4;
1089
+ font-weight: var(--fw-regular);
1090
+ }
1091
+ .vp-auth__rule {
1092
+ height: 1px;
1093
+ background: rgb(255 255 255 / 0.16);
1094
+ }
1095
+
1096
+ .vp-sr-only {
1097
+ position: absolute;
1098
+ width: 1px;
1099
+ height: 1px;
1100
+ overflow: hidden;
1101
+ clip: rect(0 0 0 0);
1102
+ white-space: nowrap;
1103
+ }
1104
+ /* Skip links: visible when focused */
1105
+ a.vp-sr-only:focus-visible {
1106
+ top: 8px;
1107
+ left: 8px;
1108
+ z-index: 9999;
1109
+ width: auto;
1110
+ height: auto;
1111
+ padding: 8px 12px;
1112
+ clip: auto;
1113
+ border-radius: var(--radius-sm);
1114
+ background: var(--bg);
1115
+ color: var(--fg);
1116
+ }