@zeyolabs/ui 0.0.0-stage → 2026.11.5

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 (138) hide show
  1. package/README.md +43 -2
  2. package/back-button/BackButton.svelte +26 -0
  3. package/badge/Badge.svelte +73 -0
  4. package/badge/PromoBadge.svelte +319 -0
  5. package/badge/color.ts +10 -0
  6. package/bar/Bar.svelte +63 -0
  7. package/base.css +47 -0
  8. package/boundary/Boundary.svelte +59 -0
  9. package/boundary/BoundaryFailed.svelte +40 -0
  10. package/boundary/PendingTracker.svelte +14 -0
  11. package/boundary/pending-context.ts +15 -0
  12. package/boundary/pending-flag.svelte.ts +33 -0
  13. package/boundary/report-boundary-error.ts +13 -0
  14. package/card/Card.svelte +239 -0
  15. package/card/CardBody.svelte +41 -0
  16. package/card/CardFooter.svelte +36 -0
  17. package/card/CardHeader.svelte +36 -0
  18. package/copy/CopyArea.svelte +37 -0
  19. package/copy/CopyButton.svelte +59 -0
  20. package/copy/copy-state.svelte.ts +23 -0
  21. package/copy/types.ts +1 -0
  22. package/dialog/ConfirmDialog.svelte +61 -0
  23. package/dialog/Dialog.svelte +31 -0
  24. package/dialog/DialogBody.svelte +88 -0
  25. package/dialog/DialogCloseButton.svelte +26 -0
  26. package/dialog/DialogFooter.svelte +23 -0
  27. package/dialog/DialogTrigger.svelte +15 -0
  28. package/distribution-bar/DistributionBar.svelte +37 -0
  29. package/drawer/Drawer.svelte +31 -0
  30. package/drawer/DrawerBody.svelte +61 -0
  31. package/empty-state/EmptyState.svelte +74 -0
  32. package/error/ErrorPage.svelte +54 -0
  33. package/eyebrow/Eyebrow.svelte +10 -0
  34. package/faq/FAQList.svelte +89 -0
  35. package/filter/FilterChipGroup.svelte +78 -0
  36. package/filter/FilterOptionList.svelte +188 -0
  37. package/filter/FilterPopover.svelte +122 -0
  38. package/filter/filter-draft.svelte.ts +25 -0
  39. package/form/Button.svelte +73 -0
  40. package/form/Field.svelte +111 -0
  41. package/form/FieldLabel.svelte +19 -0
  42. package/form/Form.svelte +133 -0
  43. package/form/PhoneField.svelte +214 -0
  44. package/form/UnsavedBar.svelte +22 -0
  45. package/form/field-view.svelte.ts +213 -0
  46. package/form/fields/CheckboxField.svelte +85 -0
  47. package/form/fields/Combobox.svelte +327 -0
  48. package/form/fields/ComboboxAction.svelte +16 -0
  49. package/form/fields/DateField.svelte +31 -0
  50. package/form/fields/DateRangeField.svelte +188 -0
  51. package/form/fields/DateRangePresetField.svelte +119 -0
  52. package/form/fields/EmailField.svelte +63 -0
  53. package/form/fields/FileField.svelte +145 -0
  54. package/form/fields/HexColorField.svelte +83 -0
  55. package/form/fields/IntervalField.svelte +100 -0
  56. package/form/fields/MessageField.svelte +99 -0
  57. package/form/fields/NumberField.svelte +64 -0
  58. package/form/fields/Option.svelte +48 -0
  59. package/form/fields/OptionRegistrar.svelte +15 -0
  60. package/form/fields/PasswordField.svelte +44 -0
  61. package/form/fields/RadioField.svelte +60 -0
  62. package/form/fields/RichTextField.svelte +221 -0
  63. package/form/fields/SelectField.svelte +216 -0
  64. package/form/fields/SliderField.svelte +182 -0
  65. package/form/fields/SwitchField.svelte +102 -0
  66. package/form/fields/TextField.svelte +72 -0
  67. package/form/fields/TimeField.svelte +31 -0
  68. package/form/fields/index.ts +19 -0
  69. package/form/fields/select-field-context.ts +21 -0
  70. package/form/index.ts +21 -0
  71. package/form/primitives/Checkbox.svelte +103 -0
  72. package/form/primitives/DateInput.svelte +51 -0
  73. package/form/primitives/IconInputWrapper.svelte +40 -0
  74. package/form/primitives/Input.svelte +47 -0
  75. package/form/primitives/SearchBar.svelte +37 -0
  76. package/form/primitives/Select.svelte +139 -0
  77. package/form/primitives/TextArea.svelte +51 -0
  78. package/form/primitives/index.ts +6 -0
  79. package/gallery/ImageGallery.svelte +133 -0
  80. package/gallery/flickity-fullscreen.d.ts +2 -0
  81. package/grouped-grid/GroupedGrid.svelte +143 -0
  82. package/grouped-grid/types.ts +25 -0
  83. package/layout/Cluster.svelte +92 -0
  84. package/layout/Container.svelte +9 -0
  85. package/layout/Grid.svelte +131 -0
  86. package/layout/Section.svelte +146 -0
  87. package/layout/Shell.svelte +32 -0
  88. package/layout/SplitShell.svelte +47 -0
  89. package/layout/Stack.svelte +78 -0
  90. package/list-row/ListRow.svelte +77 -0
  91. package/menu/MenuButton.svelte +101 -0
  92. package/mini-stat/MiniStat.svelte +13 -0
  93. package/package.json +169 -5
  94. package/page-hero/PageHero.svelte +35 -0
  95. package/pagination/Pagination.svelte +44 -0
  96. package/pagination/finder-pagination.svelte.ts +55 -0
  97. package/pagination/finder-search.svelte.ts +292 -0
  98. package/percentage-ring/PercentageRing.svelte +76 -0
  99. package/percentage-ring/types.ts +1 -0
  100. package/popover/InfoTip.svelte +36 -0
  101. package/popover/Popover.svelte +157 -0
  102. package/query-state/QueryState.svelte +42 -0
  103. package/schema.ts +20 -0
  104. package/skeleton/Skeleton.svelte +86 -0
  105. package/skeleton/SkeletonButton.svelte +27 -0
  106. package/skeleton/SkeletonCard.svelte +49 -0
  107. package/skeleton/SkeletonCircle.svelte +25 -0
  108. package/skeleton/SkeletonField.svelte +19 -0
  109. package/skeleton/SkeletonRow.svelte +47 -0
  110. package/skeleton/SkeletonText.svelte +46 -0
  111. package/skeleton/TableSkeleton.svelte +60 -0
  112. package/spacing.css +32 -0
  113. package/stat/NextPayoutCountdown.svelte +52 -0
  114. package/stat/Stat.svelte +103 -0
  115. package/stat/ValueBox.svelte +38 -0
  116. package/status-row/StatusRow.svelte +176 -0
  117. package/status-row/types.ts +5 -0
  118. package/table/SelectAllCell.svelte +34 -0
  119. package/table/SelectAllTableCell.svelte +25 -0
  120. package/table/SelectRowCell.svelte +31 -0
  121. package/table/SelectRowTableCell.svelte +25 -0
  122. package/table/SelectionBar.svelte +68 -0
  123. package/table/SelectionOverlay.svelte +83 -0
  124. package/table/Table.svelte +64 -0
  125. package/table/TableCell.svelte +185 -0
  126. package/table/TableRow.svelte +86 -0
  127. package/table/index.ts +9 -0
  128. package/table/selection.svelte.ts +79 -0
  129. package/tabs/TabBlock.svelte +56 -0
  130. package/tabs/TabButton.svelte +33 -0
  131. package/template.css +1393 -0
  132. package/text/Span.svelte +83 -0
  133. package/text/Text.svelte +94 -0
  134. package/text/Title.svelte +75 -0
  135. package/text/color.ts +41 -0
  136. package/theme/theme.svelte.ts +33 -0
  137. package/tokens.css +62 -0
  138. package/typography.css +164 -0
package/template.css ADDED
@@ -0,0 +1,1393 @@
1
+ /* Default component stylesheet (form primitives, button, tabs, select, combobox, pin, sliders,
2
+ date range, toast). It reads only the neutral tokens in tokens.css, so each app's brand flows
3
+ through. .btn.default fills with var(--primary-strong); .btn.lg is the 48px call-to-action size. */
4
+
5
+ /* ─── Form primitives ──────────────────────────────────────────────────────── */
6
+ /* Typography tokens (@theme/heading font-family) live in ./typography.css — every app
7
+ (dashboard, ui, admin, marketing) imports both. */
8
+
9
+ .form-field {
10
+ display: flex;
11
+ flex-direction: column;
12
+ }
13
+
14
+ .form-label {
15
+ display: block;
16
+ font-size: 11px;
17
+ font-weight: 400;
18
+ letter-spacing: 0.05em;
19
+ color: var(--txs);
20
+ margin-bottom: 3px;
21
+ }
22
+
23
+ .form-required-star {
24
+ color: var(--err, #e53e3e);
25
+ margin-left: 2px;
26
+ }
27
+
28
+ .form-input {
29
+ display: block;
30
+ width: 100%;
31
+ height: var(--control-h);
32
+ padding: 0 12px;
33
+ font-family: inherit;
34
+ font-size: 13px;
35
+ color: var(--tx);
36
+ background: var(--bg);
37
+ border: 1px solid var(--bd);
38
+ border-radius: var(--radius-md);
39
+ outline: none;
40
+ box-sizing: border-box;
41
+ transition: border-color 0.12s ease;
42
+ /* type="search" (SearchBar.svelte) gets native OS-level search-field chrome in WebKit/Blink
43
+ (the UA stylesheet's -webkit-appearance: searchfield), which ignores this rule's own
44
+ background/color entirely and renders a plain light native box regardless of dark mode.
45
+ Reset to the standard box appearance so the theme vars above actually apply. */
46
+ appearance: none;
47
+ -webkit-appearance: none;
48
+ }
49
+
50
+ /* The native "clear" (x) button a type="search" input still renders even with appearance: none
51
+ above in WebKit — themed to match instead of left as unstyled native chrome. */
52
+ .form-input::-webkit-search-cancel-button {
53
+ appearance: none;
54
+ -webkit-appearance: none;
55
+ }
56
+
57
+ .form-input:focus {
58
+ border-color: var(--tx);
59
+ }
60
+
61
+ .form-input:disabled {
62
+ opacity: 0.5;
63
+ cursor: not-allowed;
64
+ }
65
+
66
+ .form-input::placeholder {
67
+ color: var(--txs);
68
+ }
69
+
70
+ /* Compact/dense variant — a filter sidebar or tight panel, not a regular form field. */
71
+ .form-input.sm {
72
+ height: var(--control-h-sm);
73
+ padding: 0 10px;
74
+ font-size: 13px;
75
+ border-radius: var(--radius-md);
76
+ background: var(--sf);
77
+ }
78
+
79
+ .form-textarea {
80
+ height: auto;
81
+ padding: 8px 12px;
82
+ resize: none;
83
+ line-height: 1.4;
84
+ }
85
+
86
+ .form-textarea--resize {
87
+ resize: vertical;
88
+ }
89
+
90
+ .form-error {
91
+ display: block;
92
+ font-size: 11px;
93
+ color: var(--err, #9b3838);
94
+ margin-top: 1px;
95
+ }
96
+
97
+ /* Opt-in for a bottom-aligned inline row (`items-end`) of form fields — without this, one
98
+ field's error text grows its own column and drags its shorter siblings down with it. */
99
+ .form-row-tight .form-field {
100
+ position: relative;
101
+ }
102
+ .form-row-tight .form-error {
103
+ position: absolute;
104
+ top: 100%;
105
+ left: 0;
106
+ }
107
+
108
+ /* ─── Checkbox ──────────────────────────────────────────────────────────────── */
109
+
110
+ .form-checkbox-wrapper {
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: 4px;
114
+ }
115
+
116
+ .form-checkbox-row {
117
+ display: flex;
118
+ align-items: center;
119
+ gap: 8px;
120
+ }
121
+
122
+ .form-checkbox {
123
+ position: relative;
124
+ display: flex;
125
+ flex-shrink: 0;
126
+ align-items: center;
127
+ justify-content: center;
128
+ width: 16px;
129
+ height: 16px;
130
+ border-radius: var(--radius-xs);
131
+ border: 1px solid var(--bd);
132
+ background: var(--bg);
133
+ transition:
134
+ border-color 0.12s ease,
135
+ background 0.12s ease;
136
+ outline: none;
137
+ cursor: pointer;
138
+ }
139
+
140
+ .form-checkbox:focus-visible {
141
+ border-color: var(--tx);
142
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--tx) 15%, transparent);
143
+ }
144
+
145
+ .form-checkbox[data-state='checked'],
146
+ .form-checkbox[data-state='indeterminate'] {
147
+ border-color: #000;
148
+ background: #000;
149
+ color: #fff;
150
+ }
151
+
152
+ .form-checkbox[data-disabled] {
153
+ opacity: 0.5;
154
+ cursor: not-allowed;
155
+ }
156
+
157
+ .form-checkbox[aria-invalid='true'] {
158
+ border-color: var(--err, #9b3838);
159
+ }
160
+
161
+ .form-checkbox-icon {
162
+ width: 11px;
163
+ height: 11px;
164
+ }
165
+
166
+ /* ─── Radio ─────────────────────────────────────────────────────────────────── */
167
+
168
+ .form-radio {
169
+ appearance: none;
170
+ flex-shrink: 0;
171
+ width: 16px;
172
+ height: 16px;
173
+ margin: 0;
174
+ border-radius: 50%;
175
+ border: 1px solid var(--bd);
176
+ background: var(--bg);
177
+ transition:
178
+ border-color 0.12s ease,
179
+ background 0.12s ease,
180
+ box-shadow 0.12s ease;
181
+ outline: none;
182
+ cursor: pointer;
183
+ }
184
+
185
+ .form-radio:focus-visible {
186
+ border-color: var(--tx);
187
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--tx) 15%, transparent);
188
+ }
189
+
190
+ .form-radio:checked {
191
+ border-color: #000;
192
+ background: #000;
193
+ box-shadow: inset 0 0 0 3.5px #fff;
194
+ }
195
+
196
+ .form-radio:checked:focus-visible {
197
+ box-shadow:
198
+ inset 0 0 0 3.5px #fff,
199
+ 0 0 0 2px color-mix(in srgb, var(--tx) 15%, transparent);
200
+ }
201
+
202
+ .form-radio:disabled {
203
+ opacity: 0.5;
204
+ cursor: not-allowed;
205
+ }
206
+
207
+ .form-checkbox-label {
208
+ font-size: 13px;
209
+ font-weight: 400;
210
+ cursor: pointer;
211
+ line-height: 1;
212
+ color: var(--tx);
213
+ }
214
+
215
+ .form-description {
216
+ display: block;
217
+ font-size: 11px;
218
+ color: var(--txs);
219
+ }
220
+
221
+ .form-description--indented,
222
+ .form-error--indented {
223
+ margin-left: 24px;
224
+ }
225
+
226
+ /* ─── Switch ────────────────────────────────────────────────────────────────── */
227
+
228
+ .form-switch-wrapper {
229
+ display: flex;
230
+ flex-direction: column;
231
+ gap: 4px;
232
+ }
233
+
234
+ .form-switch-row {
235
+ display: flex;
236
+ align-items: center;
237
+ justify-content: space-between;
238
+ gap: 8px;
239
+ }
240
+
241
+ .form-switch-label {
242
+ font-size: 13px;
243
+ font-weight: 400;
244
+ cursor: pointer;
245
+ line-height: 1;
246
+ color: var(--tx);
247
+ }
248
+
249
+ .form-switch {
250
+ position: relative;
251
+ display: inline-flex;
252
+ align-items: center;
253
+ flex-shrink: 0;
254
+ width: 36px;
255
+ height: 20px;
256
+ border-radius: var(--radius-full);
257
+ border: none;
258
+ background: var(--bd);
259
+ cursor: pointer;
260
+ transition: background 0.15s ease;
261
+ outline: none;
262
+ }
263
+
264
+ .form-switch:focus-visible {
265
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--tx) 15%, transparent);
266
+ }
267
+
268
+ .form-switch[data-state='checked'] {
269
+ background: var(--tx);
270
+ }
271
+
272
+ .form-switch[data-disabled] {
273
+ opacity: 0.5;
274
+ cursor: not-allowed;
275
+ }
276
+
277
+ .form-switch-thumb {
278
+ display: block;
279
+ width: 16px;
280
+ height: 16px;
281
+ border-radius: var(--radius-full);
282
+ background: var(--bg);
283
+ transform: translateX(2px);
284
+ transition: transform 0.15s ease;
285
+ pointer-events: none;
286
+ }
287
+
288
+ .form-switch[data-state='checked'] .form-switch-thumb {
289
+ transform: translateX(18px);
290
+ }
291
+
292
+ .form-input-wrapper {
293
+ position: relative;
294
+ width: 100%;
295
+ }
296
+
297
+ .form-input-icon {
298
+ pointer-events: none;
299
+ position: absolute;
300
+ left: 8px;
301
+ top: 50%;
302
+ transform: translateY(-50%);
303
+ color: var(--txs);
304
+ width: 16px;
305
+ height: 16px;
306
+ display: flex;
307
+ align-items: center;
308
+ justify-content: center;
309
+ }
310
+
311
+ .form-input-icon--top {
312
+ top: 8px;
313
+ transform: none;
314
+ }
315
+
316
+ .form-input--with-icon {
317
+ padding-left: 30px;
318
+ }
319
+
320
+ .form-input-wrapper.sm .form-input-icon {
321
+ width: 16px;
322
+ height: 16px;
323
+ }
324
+
325
+ .form-input-wrapper.sm .form-input--with-icon {
326
+ padding-left: 28px;
327
+ }
328
+
329
+ /* ─── Button ───────────────────────────────────────────────────────────────── */
330
+
331
+ .btn {
332
+ display: inline-flex;
333
+ align-items: center;
334
+ justify-content: center;
335
+ gap: 5px;
336
+ height: var(--control-h);
337
+ padding: 0 12px;
338
+ font-family: inherit;
339
+ font-size: 13px;
340
+ font-weight: 400;
341
+ border-radius: var(--radius-md);
342
+ border: 1px solid var(--bd);
343
+ cursor: pointer;
344
+ transition:
345
+ background 0.12s ease,
346
+ border-color 0.12s ease,
347
+ color 0.12s ease,
348
+ opacity 0.12s ease;
349
+ user-select: none;
350
+ white-space: nowrap;
351
+ box-sizing: border-box;
352
+ }
353
+
354
+ .btn:disabled {
355
+ opacity: 0.5;
356
+ cursor: not-allowed;
357
+ pointer-events: none;
358
+ }
359
+
360
+ /* Size/shape modifiers — combine with a color variant, e.g. class="btn secondary sm".
361
+ .btn.icon must stay declared after .btn.sm/.btn.xs so its zero padding wins when
362
+ both are present (icon size="sm") — same-specificity rules, later one wins per property. */
363
+ .btn.sm {
364
+ height: var(--control-h-sm);
365
+ padding: 0 10px;
366
+ font-size: 13px;
367
+ border-radius: var(--radius-md);
368
+ }
369
+
370
+ /* For a dismiss/remove control on something as short as an 11px Badge pill — .btn.sm's
371
+ 28px footprint balloons past a ~21px chip. Not for general toolbar use (28px stays the
372
+ default "sm" footprint per docs/sveltekit-ui.md); reach for this only next to equally
373
+ small text (a Badge chip, an inline tag). */
374
+ .btn.xs {
375
+ height: 20px;
376
+ padding: 0 10px;
377
+ font-size: 11px;
378
+ }
379
+
380
+ .btn.lg {
381
+ height: var(--control-h-lg);
382
+ padding: 0 22px;
383
+ font-size: 15px;
384
+ }
385
+
386
+ .btn.icon {
387
+ padding: 0;
388
+ aspect-ratio: 1;
389
+ }
390
+
391
+ .btn.default {
392
+ background: var(--primary-strong);
393
+ color: #fff;
394
+ border-color: transparent;
395
+ }
396
+
397
+ .btn.default:hover:not(:disabled) {
398
+ background: color-mix(in srgb, var(--primary-strong) 82%, #000);
399
+ }
400
+
401
+ .btn.secondary {
402
+ background: var(--bg);
403
+ color: var(--tx);
404
+ border-color: var(--bd);
405
+ }
406
+
407
+ .btn.secondary:hover:not(:disabled) {
408
+ background: var(--sf);
409
+ border-color: var(--tx);
410
+ }
411
+
412
+ .btn.destructive {
413
+ background: var(--bg);
414
+ color: var(--err, #9b3838);
415
+ border-color: var(--bd);
416
+ }
417
+
418
+ .btn.destructive:hover:not(:disabled) {
419
+ background: var(--sf);
420
+ border-color: var(--err, #9b3838);
421
+ }
422
+
423
+ .btn.ghost {
424
+ background: var(--bg);
425
+ color: var(--txs);
426
+ border-color: var(--bd);
427
+ }
428
+
429
+ .btn.ghost:hover:not(:disabled) {
430
+ background: var(--sf);
431
+ color: var(--tx);
432
+ border-color: var(--tx);
433
+ }
434
+
435
+ .btn.ghost-destructive {
436
+ background: var(--bg);
437
+ color: var(--err, #9b3838);
438
+ border-color: color-mix(in srgb, var(--err, #9b3838) 40%, var(--bd));
439
+ }
440
+
441
+ .btn.ghost-destructive:hover:not(:disabled) {
442
+ background: var(--sf);
443
+ border-color: var(--err, #9b3838);
444
+ }
445
+
446
+ .btn.link {
447
+ background: transparent;
448
+ color: var(--tx);
449
+ border-color: transparent;
450
+ text-decoration: underline;
451
+ text-underline-offset: 2px;
452
+ }
453
+
454
+ .btn.link:hover:not(:disabled) {
455
+ color: var(--txs);
456
+ }
457
+
458
+ /* Decorative, animated CTA variant — originated as marketing's own brand fork, promoted here
459
+ so any app can reach for a conversion-focused CTA without re-forking the CSS. Distinct from
460
+ the flat default/secondary/etc set on purpose: for a handful of high-stakes CTAs
461
+ (pricing, waitlist signup), not general-purpose buttons. */
462
+ .btn.shiny {
463
+ position: relative;
464
+ overflow: hidden;
465
+ flex-shrink: 0;
466
+ height: 40px;
467
+ padding: 0 24px;
468
+ border: none;
469
+ color: #fff;
470
+ font-family: var(--font-sans);
471
+ font-size: 13px;
472
+ font-weight: 400;
473
+ letter-spacing: -0.005em;
474
+ background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f59e0b, #06b6d4, #6366f1);
475
+ background-size: 300% 300%;
476
+ animation: shiny-shift 5s ease infinite;
477
+ transition: opacity 0.15s ease;
478
+ }
479
+ @keyframes shiny-shift {
480
+ 0% {
481
+ background-position: 0% 50%;
482
+ }
483
+ 50% {
484
+ background-position: 100% 50%;
485
+ }
486
+ 100% {
487
+ background-position: 0% 50%;
488
+ }
489
+ }
490
+
491
+ .btn.shiny:hover:not(:disabled) {
492
+ opacity: 0.9;
493
+ color: #fff;
494
+ }
495
+
496
+ .btn.shiny::after {
497
+ content: '';
498
+ position: absolute;
499
+ inset: 0;
500
+ pointer-events: none;
501
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
502
+ background-size: 150px 150px;
503
+ }
504
+
505
+ /* ─── File field ───────────────────────────────────────────────────────────── */
506
+
507
+ .form-file-input {
508
+ position: absolute;
509
+ width: 1px;
510
+ height: 1px;
511
+ padding: 0;
512
+ margin: -1px;
513
+ overflow: hidden;
514
+ clip: rect(0, 0, 0, 0);
515
+ white-space: nowrap;
516
+ border: 0;
517
+ }
518
+
519
+ .form-file-button-row {
520
+ display: flex;
521
+ align-items: center;
522
+ gap: 10px;
523
+ }
524
+
525
+ .form-file-button-icon {
526
+ width: 14px;
527
+ height: 14px;
528
+ }
529
+
530
+ .form-file-name {
531
+ font-size: 13px;
532
+ color: var(--txs);
533
+ overflow: hidden;
534
+ text-overflow: ellipsis;
535
+ white-space: nowrap;
536
+ }
537
+
538
+ .form-file-dropzone {
539
+ display: flex;
540
+ flex-direction: column;
541
+ align-items: center;
542
+ justify-content: center;
543
+ gap: 6px;
544
+ padding: 20px 16px;
545
+ background: var(--bg);
546
+ border: 2px dashed var(--txs);
547
+ border-radius: var(--radius);
548
+ cursor: pointer;
549
+ outline: none;
550
+ transition:
551
+ border-color 0.12s ease,
552
+ background 0.12s ease;
553
+ }
554
+
555
+ .form-file-dropzone:hover,
556
+ .form-file-dropzone:focus-visible {
557
+ border-color: var(--tx);
558
+ }
559
+
560
+ .form-file-dropzone--over {
561
+ border-color: var(--tx);
562
+ background: var(--sf);
563
+ }
564
+
565
+ .form-file-dropzone--disabled {
566
+ opacity: 0.5;
567
+ cursor: not-allowed;
568
+ pointer-events: none;
569
+ }
570
+
571
+ .form-file-dropzone-icon {
572
+ width: 22px;
573
+ height: 22px;
574
+ color: var(--txs);
575
+ }
576
+
577
+ .form-file-dropzone-text {
578
+ font-size: 13px;
579
+ color: var(--txs);
580
+ }
581
+
582
+ /* ─── Tab ────────────────────────────────────────────────────────────────────── */
583
+
584
+ .tab {
585
+ width: fit-content;
586
+ display: grid;
587
+ gap: 0;
588
+ grid-auto-flow: column;
589
+ grid-auto-columns: 1fr;
590
+ padding: 0;
591
+ font-size: 13px;
592
+ font-weight: 400;
593
+ background: transparent;
594
+ border: none;
595
+ border-bottom: 1px solid var(--bd);
596
+ border-radius: 0;
597
+ cursor: pointer;
598
+ }
599
+
600
+ .tab--vertical {
601
+ grid-auto-flow: row;
602
+ grid-auto-rows: 1fr;
603
+ border-bottom: none;
604
+ border-right: 1px solid var(--bd);
605
+ }
606
+
607
+ .tab--disabled {
608
+ pointer-events: none;
609
+ opacity: 0.5;
610
+ }
611
+
612
+ .tab--readonly {
613
+ pointer-events: none;
614
+ }
615
+
616
+ .tab--invalid {
617
+ border-color: var(--err);
618
+ }
619
+
620
+ .tab-btn {
621
+ display: block;
622
+ padding: 8px 0.75rem;
623
+ cursor: pointer;
624
+ border: none;
625
+ border-bottom: 2px solid transparent;
626
+ border-radius: 0;
627
+ background: transparent;
628
+ color: var(--txs);
629
+ font-family: inherit;
630
+ font-size: inherit;
631
+ font-weight: inherit;
632
+ line-height: 1;
633
+ margin-bottom: -1px;
634
+ transition:
635
+ color 0.12s ease,
636
+ border-color 0.12s ease;
637
+ }
638
+
639
+ .tab-btn:hover {
640
+ color: var(--tx);
641
+ }
642
+
643
+ .tab-btn:focus-visible {
644
+ outline: 2px solid var(--tx);
645
+ outline-offset: -2px;
646
+ }
647
+
648
+ .tab-btn[data-state='active'] {
649
+ background: transparent;
650
+ color: var(--tx);
651
+ border-bottom-color: var(--tx);
652
+ }
653
+
654
+ .tab-btn--custom {
655
+ height: auto;
656
+ padding: 0.25rem;
657
+ }
658
+
659
+ /* ─── Select (form-select) ─────────────────────────────────────────────────── */
660
+
661
+ /* The trigger is a bits-ui <button>, not a native <select>: lay its content out
662
+ as [icon] [value …grows] [chevron] and keep the .form-input box styling. */
663
+ .form-select {
664
+ position: relative;
665
+ display: flex;
666
+ align-items: center;
667
+ gap: 8px;
668
+ padding-right: 10px;
669
+ text-align: left;
670
+ cursor: pointer;
671
+ }
672
+
673
+ .form-select-value {
674
+ flex: 1 1 auto;
675
+ min-width: 0;
676
+ overflow: hidden;
677
+ text-overflow: ellipsis;
678
+ white-space: nowrap;
679
+ }
680
+
681
+ .form-select--placeholder .form-select-value {
682
+ color: var(--txs);
683
+ }
684
+
685
+ .form-select-chevron {
686
+ flex: none;
687
+ pointer-events: none;
688
+ color: var(--txs);
689
+ transition: transform 0.12s ease;
690
+ }
691
+
692
+ .form-select[data-state='open'] .form-select-chevron {
693
+ transform: rotate(180deg);
694
+ }
695
+
696
+ /* Custom dropdown panel (replaces the OS-rendered <option> list). Portaled to <body> (bits-ui's
697
+ Select.Portal default), so it's a sibling of Dialog's backdrop (z-index 9999, see
698
+ dialog/DialogBody.svelte) in the same stacking context — must stay above it or the menu opens
699
+ invisibly behind the backdrop's blur when a SelectField is used inside a Dialog. */
700
+ .form-select-menu {
701
+ z-index: 10000;
702
+ width: var(--bits-combobox-anchor-width, var(--bits-select-anchor-width));
703
+ max-height: min(
704
+ 300px,
705
+ var(--bits-combobox-content-available-height, var(--bits-select-content-available-height))
706
+ );
707
+ overflow-y: auto;
708
+ padding: 4px;
709
+ background: var(--bg);
710
+ border: 1px solid var(--bd);
711
+ border-radius: var(--radius);
712
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
713
+ box-sizing: border-box;
714
+ }
715
+
716
+ .form-select-item {
717
+ display: flex;
718
+ align-items: center;
719
+ justify-content: space-between;
720
+ gap: 8px;
721
+ height: 30px;
722
+ padding: 0 8px;
723
+ font-size: 13px;
724
+ color: var(--tx);
725
+ border-radius: var(--radius);
726
+ cursor: pointer;
727
+ outline: none;
728
+ user-select: none;
729
+ }
730
+
731
+ .form-select-item-label {
732
+ overflow: hidden;
733
+ text-overflow: ellipsis;
734
+ white-space: nowrap;
735
+ }
736
+
737
+ .form-select-group-heading {
738
+ padding: 6px 8px 2px;
739
+ font-size: 11px;
740
+ font-weight: 400;
741
+ color: var(--txs);
742
+ }
743
+
744
+ .form-select-empty {
745
+ padding: 8px;
746
+ font-size: 13px;
747
+ color: var(--txs);
748
+ }
749
+
750
+ /* ─── Combobox ──────────────────────────────────────────────────────────────── */
751
+ /* Extends the .form-select/.form-select-menu/.form-select-item tokens above — a Combobox is a
752
+ searchable, optionally-multi-select Select, so it inherits that look rather than forking it. */
753
+
754
+ .form-combobox-multi {
755
+ height: auto;
756
+ min-height: var(--control-h);
757
+ align-items: flex-start;
758
+ }
759
+
760
+ .form-combobox-multi .form-select-chevron {
761
+ margin-top: 11px;
762
+ }
763
+
764
+ /* The search box lives at the top of the panel, above the (scrollable) option list. */
765
+ .form-combobox-search {
766
+ display: flex;
767
+ flex: none;
768
+ align-items: center;
769
+ gap: 8px;
770
+ padding: 0 10px;
771
+ height: 36px;
772
+ border-bottom: 1px solid var(--bds);
773
+ color: var(--txs);
774
+ }
775
+
776
+ .form-combobox-search-input {
777
+ flex: 1 1 auto;
778
+ min-width: 0;
779
+ height: 100%;
780
+ padding: 0;
781
+ background: transparent;
782
+ border: none;
783
+ outline: none !important;
784
+ font: inherit;
785
+ font-size: 13px;
786
+ color: var(--tx);
787
+ }
788
+
789
+ .form-combobox-search-input::placeholder {
790
+ color: var(--txs);
791
+ }
792
+
793
+ .form-combobox-chips {
794
+ display: flex;
795
+ flex: 1 1 auto;
796
+ flex-wrap: wrap;
797
+ align-items: center;
798
+ gap: 5px;
799
+ min-width: 0;
800
+ padding: 5px 0;
801
+ }
802
+
803
+ .form-combobox-chip {
804
+ display: inline-flex;
805
+ align-items: center;
806
+ gap: 4px;
807
+ padding: 2px 4px 2px 8px;
808
+ font-size: 11px;
809
+ font-weight: 400;
810
+ color: var(--tx);
811
+ background: var(--sf);
812
+ border: 1px solid var(--bd);
813
+ border-radius: var(--radius-full);
814
+ white-space: nowrap;
815
+ }
816
+
817
+ .form-combobox-chip-remove {
818
+ display: flex;
819
+ align-items: center;
820
+ justify-content: center;
821
+ padding: 2px;
822
+ color: var(--txs);
823
+ background: transparent;
824
+ border: none;
825
+ border-radius: var(--radius-full);
826
+ cursor: pointer;
827
+ }
828
+
829
+ .form-combobox-chip-remove:hover {
830
+ color: var(--tx);
831
+ }
832
+
833
+ .form-combobox-menu {
834
+ display: flex;
835
+ flex-direction: column;
836
+ padding: 0;
837
+ overflow: hidden;
838
+ }
839
+
840
+ .form-combobox-list {
841
+ flex: 1 1 auto;
842
+ min-height: 0;
843
+ overflow-y: auto;
844
+ padding: 4px;
845
+ }
846
+
847
+ .form-combobox-header {
848
+ padding: 8px;
849
+ font-size: 11px;
850
+ color: var(--txs);
851
+ border-bottom: 1px solid var(--bds);
852
+ }
853
+
854
+ .form-combobox-footer {
855
+ padding: 4px;
856
+ border-top: 1px solid var(--bds);
857
+ }
858
+
859
+ .form-combobox-action {
860
+ display: flex;
861
+ align-items: center;
862
+ gap: 8px;
863
+ width: 100%;
864
+ padding: 6px 8px;
865
+ background: transparent;
866
+ border: none;
867
+ border-radius: var(--radius);
868
+ cursor: pointer;
869
+ font-size: 13px;
870
+ font-weight: 400;
871
+ color: var(--txs);
872
+ text-align: left;
873
+ }
874
+
875
+ .form-combobox-action:hover {
876
+ color: var(--tx);
877
+ }
878
+
879
+ .form-combobox-action:focus-visible {
880
+ outline: none;
881
+ background: var(--sf);
882
+ }
883
+
884
+ .form-select-item-check {
885
+ flex: none;
886
+ color: var(--tx);
887
+ }
888
+
889
+ /* bits-ui marks the keyboard/pointer-highlighted item via data-highlighted. */
890
+ .form-select-item[data-highlighted] {
891
+ background: var(--sf);
892
+ }
893
+
894
+ .form-select-item[data-disabled] {
895
+ opacity: 0.5;
896
+ cursor: not-allowed;
897
+ }
898
+
899
+ /* ─── Pin ──────────────────────────────────────────────────────────────────── */
900
+
901
+ .form-pin {
902
+ display: flex;
903
+ align-items: center;
904
+ gap: 8px;
905
+ }
906
+
907
+ .form-pin-group {
908
+ display: flex;
909
+ gap: 6px;
910
+ }
911
+
912
+ .form-pin-cell {
913
+ position: relative;
914
+ display: inline-flex;
915
+ align-items: center;
916
+ justify-content: center;
917
+ width: 40px;
918
+ height: 40px;
919
+ font-family: inherit;
920
+ font-size: 15px;
921
+ color: var(--tx);
922
+ background: var(--bg);
923
+ border: 1px solid var(--bd);
924
+ border-radius: var(--radius);
925
+ outline: none;
926
+ box-sizing: border-box;
927
+ transition: border-color 0.12s ease;
928
+ }
929
+
930
+ .form-pin-cell[data-active] {
931
+ border-color: var(--tx);
932
+ }
933
+
934
+ .form-pin-cell[data-disabled] {
935
+ opacity: 0.5;
936
+ cursor: not-allowed;
937
+ }
938
+
939
+ .form-pin-separator {
940
+ display: flex;
941
+ align-items: center;
942
+ justify-content: center;
943
+ color: var(--txs);
944
+ }
945
+
946
+ .form-pin-separator-icon {
947
+ width: 12px;
948
+ height: 12px;
949
+ }
950
+
951
+ .form-pin-caret {
952
+ position: absolute;
953
+ inset: 0;
954
+ display: flex;
955
+ align-items: center;
956
+ justify-content: center;
957
+ pointer-events: none;
958
+ }
959
+
960
+ .form-pin-caret-line {
961
+ width: 1px;
962
+ height: 16px;
963
+ background: var(--tx);
964
+ animation: pinCaretBlink 1s steps(1) infinite;
965
+ }
966
+
967
+ @keyframes pinCaretBlink {
968
+ 0%,
969
+ 50% {
970
+ opacity: 1;
971
+ }
972
+
973
+ 51%,
974
+ 100% {
975
+ opacity: 0;
976
+ }
977
+ }
978
+
979
+ /* ─── OnOff (switch variation) ─────────────────────────────────────────────────── */
980
+
981
+ .form-onoff {
982
+ position: relative;
983
+ display: inline-block;
984
+ flex-shrink: 0;
985
+ width: 60px;
986
+ height: 22px;
987
+ border: none;
988
+ border-radius: var(--radius-full);
989
+ background: var(--bd);
990
+ cursor: pointer;
991
+ transition: background 0.15s ease;
992
+ outline: none;
993
+ }
994
+
995
+ .form-onoff[data-state='checked'] {
996
+ background: var(--tx);
997
+ }
998
+
999
+ .form-onoff[data-disabled] {
1000
+ opacity: 0.5;
1001
+ cursor: not-allowed;
1002
+ }
1003
+
1004
+ .form-onoff:focus-visible {
1005
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--tx) 15%, transparent);
1006
+ }
1007
+
1008
+ .form-onoff-text {
1009
+ position: absolute;
1010
+ top: 0;
1011
+ height: 100%;
1012
+ width: 50%;
1013
+ display: flex;
1014
+ align-items: center;
1015
+ justify-content: center;
1016
+ font-size: 11px;
1017
+ font-weight: 400;
1018
+ letter-spacing: 0.05em;
1019
+ pointer-events: none;
1020
+ transition: opacity 0.15s ease;
1021
+ }
1022
+
1023
+ .form-onoff-text--on {
1024
+ left: 2px;
1025
+ color: var(--bg);
1026
+ opacity: 0;
1027
+ }
1028
+
1029
+ .form-onoff-text--off {
1030
+ right: 2px;
1031
+ color: var(--tx);
1032
+ opacity: 1;
1033
+ }
1034
+
1035
+ .form-onoff[data-state='checked'] .form-onoff-text--on {
1036
+ opacity: 1;
1037
+ }
1038
+
1039
+ .form-onoff[data-state='checked'] .form-onoff-text--off {
1040
+ opacity: 0;
1041
+ }
1042
+
1043
+ .form-onoff-thumb {
1044
+ position: absolute;
1045
+ top: 2px;
1046
+ left: 2px;
1047
+ width: 28px;
1048
+ height: 18px;
1049
+ border-radius: var(--radius-full);
1050
+ background: var(--bg);
1051
+ transition: transform 0.15s ease;
1052
+ pointer-events: none;
1053
+ }
1054
+
1055
+ .form-onoff[data-state='checked'] .form-onoff-thumb {
1056
+ transform: translateX(28px);
1057
+ }
1058
+
1059
+ /* ─── Slider / Range ──────────────────────────────────────────────────────────── */
1060
+
1061
+ .form-slider-wrapper {
1062
+ display: flex;
1063
+ flex-direction: column;
1064
+ gap: 8px;
1065
+ }
1066
+
1067
+ .form-slider-row {
1068
+ display: flex;
1069
+ align-items: center;
1070
+ justify-content: space-between;
1071
+ gap: 8px;
1072
+ }
1073
+
1074
+ .form-slider-label {
1075
+ font-size: 13px;
1076
+ font-weight: 400;
1077
+ line-height: 1;
1078
+ color: var(--tx);
1079
+ }
1080
+
1081
+ .form-slider-value {
1082
+ font-size: 13px;
1083
+ font-weight: 400;
1084
+ font-variant-numeric: tabular-nums;
1085
+ color: var(--tx);
1086
+ }
1087
+
1088
+ .form-slider {
1089
+ position: relative;
1090
+ display: flex;
1091
+ align-items: center;
1092
+ width: 100%;
1093
+ height: 20px;
1094
+ touch-action: none;
1095
+ user-select: none;
1096
+ }
1097
+
1098
+ .form-slider[data-disabled] {
1099
+ opacity: 0.5;
1100
+ cursor: not-allowed;
1101
+ }
1102
+
1103
+ .form-slider-track {
1104
+ position: relative;
1105
+ width: 100%;
1106
+ height: 4px;
1107
+ background: var(--bd);
1108
+ }
1109
+
1110
+ .form-slider-range {
1111
+ position: absolute;
1112
+ height: 100%;
1113
+ background: var(--tx);
1114
+ }
1115
+
1116
+ .form-slider-thumb {
1117
+ display: block;
1118
+ width: 16px;
1119
+ height: 16px;
1120
+ border-radius: 50%;
1121
+ background: var(--tx);
1122
+ cursor: grab;
1123
+ outline: none;
1124
+ }
1125
+
1126
+ .form-slider-thumb:focus-visible {
1127
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--tx) 15%, transparent);
1128
+ }
1129
+
1130
+ .form-slider-thumb:active {
1131
+ cursor: grabbing;
1132
+ }
1133
+
1134
+ /* ─── Date range ──────────────────────────────────────────────────────────────── */
1135
+
1136
+ /* Popover panel hosting the range calendar. */
1137
+ .form-daterange-menu {
1138
+ z-index: 60;
1139
+ width: 288px;
1140
+ padding: 16px;
1141
+ background: var(--bg);
1142
+ border: 1px solid var(--bd);
1143
+ border-radius: var(--radius);
1144
+ box-shadow: 0 8px 28px rgb(0 0 0 / 14%);
1145
+ box-sizing: border-box;
1146
+ }
1147
+
1148
+ .form-daterange-header {
1149
+ display: flex;
1150
+ align-items: center;
1151
+ justify-content: space-between;
1152
+ margin-bottom: 14px;
1153
+ }
1154
+
1155
+ .form-daterange-heading {
1156
+ flex: 1;
1157
+ font-size: 13px;
1158
+ font-weight: 400;
1159
+ color: var(--tx);
1160
+ text-align: center;
1161
+ }
1162
+
1163
+ .form-daterange-nav {
1164
+ display: flex;
1165
+ flex: none;
1166
+ align-items: center;
1167
+ justify-content: center;
1168
+ width: 26px;
1169
+ height: 26px;
1170
+ color: var(--txs);
1171
+ background: transparent;
1172
+ border: none;
1173
+ border-radius: var(--radius);
1174
+ cursor: pointer;
1175
+ transition:
1176
+ background 0.12s ease,
1177
+ color 0.12s ease;
1178
+ }
1179
+
1180
+ .form-daterange-nav:hover {
1181
+ color: var(--tx);
1182
+ background: var(--sf);
1183
+ }
1184
+
1185
+ .form-daterange-nav:disabled {
1186
+ opacity: 0.35;
1187
+ cursor: not-allowed;
1188
+ }
1189
+
1190
+ .form-daterange-grid {
1191
+ width: 100%;
1192
+ border-collapse: separate;
1193
+ border-spacing: 2px;
1194
+ table-layout: fixed;
1195
+ }
1196
+
1197
+ .form-daterange-headcell {
1198
+ padding: 0 0 6px;
1199
+ font-size: 11px;
1200
+ font-weight: 400;
1201
+ color: var(--txs);
1202
+ text-align: center;
1203
+ text-transform: uppercase;
1204
+ letter-spacing: 0.05em;
1205
+ }
1206
+
1207
+ .form-daterange-cell {
1208
+ padding: 0;
1209
+ text-align: center;
1210
+ }
1211
+
1212
+ /* Range endpoints and the highlighted span between them are driven by bits-ui's
1213
+ data-range-start/-end/-middle attributes on this element. */
1214
+ .form-daterange-day {
1215
+ display: flex;
1216
+ width: 100%;
1217
+ aspect-ratio: 1;
1218
+ align-items: center;
1219
+ justify-content: center;
1220
+ font-size: 13px;
1221
+ font-variant-numeric: tabular-nums;
1222
+ color: var(--tx);
1223
+ background: transparent;
1224
+ border-radius: var(--radius);
1225
+ cursor: pointer;
1226
+ transition: background 0.12s ease;
1227
+ }
1228
+
1229
+ .form-daterange-day:hover {
1230
+ background: var(--sf);
1231
+ }
1232
+
1233
+ .form-daterange-day[data-today] {
1234
+ font-weight: 400;
1235
+ box-shadow: inset 0 0 0 1px var(--bd);
1236
+ }
1237
+
1238
+ .form-daterange-day[data-outside-month] {
1239
+ color: var(--txs);
1240
+ opacity: 0.4;
1241
+ }
1242
+
1243
+ .form-daterange-day[data-disabled],
1244
+ .form-daterange-day[data-unavailable] {
1245
+ cursor: not-allowed;
1246
+ opacity: 0.3;
1247
+ }
1248
+
1249
+ .form-daterange-day[data-range-middle] {
1250
+ background: var(--sf);
1251
+ }
1252
+
1253
+ .form-daterange-day[data-range-start],
1254
+ .form-daterange-day[data-range-end] {
1255
+ color: var(--bg);
1256
+ background: var(--tx);
1257
+ font-weight: 400;
1258
+ box-shadow: none;
1259
+ }
1260
+
1261
+ .form-daterange-day[data-focused] {
1262
+ outline: 2px solid var(--tx);
1263
+ outline-offset: -2px;
1264
+ }
1265
+
1266
+ /* ─── Toast (svelte-sonner) ───────────────────────────────────────────────────── */
1267
+
1268
+ /* Sonner toast styling to match the app's design tokens. We override the
1269
+ library's defaults rather than using `richColors` so light/dark mode
1270
+ theming flows from `--bg/--tx/--bd/--acc` like the rest of the UI.
1271
+ Right-padding (40px) reserves space for the close button so it never
1272
+ overlaps the title — sonner's default lays the close button on top of
1273
+ the content area, which clipped our title text. */
1274
+ .toast {
1275
+ background: var(--bg) !important;
1276
+ color: var(--tx) !important;
1277
+ border: 1px solid var(--bd) !important;
1278
+ border-radius: var(--radius-lg) !important;
1279
+ box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08) !important;
1280
+ font-family: inherit !important;
1281
+ padding: 12px 40px 14px 14px !important;
1282
+ overflow: hidden !important;
1283
+ }
1284
+
1285
+ .toast-title {
1286
+ font-size: 13px !important;
1287
+ font-weight: 400 !important;
1288
+ color: var(--tx) !important;
1289
+ letter-spacing: -0.005em !important;
1290
+ }
1291
+
1292
+ .toast-desc {
1293
+ font-size: 13px !important;
1294
+ color: var(--txs) !important;
1295
+ margin-top: 2px !important;
1296
+ line-height: 1.4 !important;
1297
+ }
1298
+
1299
+ /* Move close button from sonner's default top-left to top-right and
1300
+ make it always visible (sonner hides it until hover by default).
1301
+ Anchored inside the toast's reserved right-padding so it never sits
1302
+ under the title text. */
1303
+ .toast-close,
1304
+ .toast [data-close-button] {
1305
+ position: absolute !important;
1306
+ top: calc(50% - 1px) !important;
1307
+ right: 8px !important;
1308
+ left: auto !important;
1309
+ bottom: auto !important;
1310
+ transform: translateY(-50%) !important;
1311
+ opacity: 1 !important;
1312
+ background: transparent !important;
1313
+ border: none !important;
1314
+ color: var(--txs) !important;
1315
+ border-radius: var(--radius-sm) !important;
1316
+ width: 18px !important;
1317
+ height: 18px !important;
1318
+ display: flex !important;
1319
+ align-items: center !important;
1320
+ justify-content: center !important;
1321
+ padding: 0 !important;
1322
+ }
1323
+
1324
+ .toast-close:hover,
1325
+ .toast [data-close-button]:hover {
1326
+ background: transparent !important;
1327
+ color: var(--tx) !important;
1328
+ }
1329
+
1330
+ .toast-close svg,
1331
+ .toast [data-close-button] svg {
1332
+ width: 10px !important;
1333
+ height: 10px !important;
1334
+ }
1335
+
1336
+ /* Countdown line along the bottom edge: it runs out over the toast's lifetime (--toast-duration,
1337
+ matching the <Toaster> duration) and pauses while the pointer is over the toast. Its colour is
1338
+ the toast's type. */
1339
+ .toast::after {
1340
+ content: '';
1341
+ position: absolute;
1342
+ right: 0;
1343
+ bottom: 0;
1344
+ left: 0;
1345
+ height: 2px;
1346
+ background: var(--tx);
1347
+ transform-origin: left;
1348
+ animation: toast-countdown var(--toast-duration, 5s) linear forwards;
1349
+ }
1350
+
1351
+ .toast:hover::after {
1352
+ animation-play-state: paused;
1353
+ }
1354
+
1355
+ .toast-success::after {
1356
+ background: var(--ok);
1357
+ }
1358
+
1359
+ .toast-error::after {
1360
+ background: var(--err);
1361
+ }
1362
+
1363
+ .toast-warning::after {
1364
+ background: #d97706;
1365
+ }
1366
+
1367
+ .toast-info::after {
1368
+ background: var(--acc);
1369
+ }
1370
+
1371
+ @keyframes toast-countdown {
1372
+ to {
1373
+ transform: scaleX(0);
1374
+ }
1375
+ }
1376
+
1377
+ @media (prefers-reduced-motion: reduce) {
1378
+ .toast::after {
1379
+ animation: none;
1380
+ display: none;
1381
+ }
1382
+ }
1383
+
1384
+ /* No status glyph (check/x/warning/info icon) — the countdown line's colour already signals
1385
+ type; an icon on top of it would read as redundant. */
1386
+ .toast [data-icon] {
1387
+ display: none !important;
1388
+ }
1389
+
1390
+ .toast-loader {
1391
+ border-color: var(--bd) !important;
1392
+ border-top-color: var(--tx) !important;
1393
+ }