@pontive/pontkit-core 1.26.0 → 1.28.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 (93) hide show
  1. package/catalog.json +1 -1
  2. package/custom-elements.json +1 -1
  3. package/dist/pont2/core/attrs.d.ts +22 -0
  4. package/dist/pont2/core/controllers/action.d.ts +79 -0
  5. package/dist/pont2/core/controllers/copy.d.ts +34 -0
  6. package/dist/pont2/core/controllers/roving-focus.d.ts +38 -0
  7. package/dist/pont2/core/events.d.ts +28 -0
  8. package/dist/pont2/core/form-control.d.ts +70 -0
  9. package/dist/pont2/core/host-element.d.ts +129 -0
  10. package/dist/pont2/core/icons.d.ts +28 -0
  11. package/dist/pont2/core/ids.d.ts +6 -0
  12. package/dist/pont2/core/index.d.ts +10 -0
  13. package/dist/pont2/core/names.d.ts +78 -0
  14. package/dist/pont2/core/popup/anchored.d.ts +48 -0
  15. package/dist/pont2/core/popup/index.d.ts +5 -0
  16. package/dist/pont2/core/popup/list.d.ts +38 -0
  17. package/dist/pont2/core/popup/popup-content.d.ts +68 -0
  18. package/dist/pont2/core/popup/popup-root.d.ts +94 -0
  19. package/dist/pont2/core/popup/position.d.ts +73 -0
  20. package/dist/pont2/globals.css +109 -0
  21. package/dist/pont2/index.d.ts +44 -0
  22. package/dist/pont2/index.mjs +5660 -0
  23. package/dist/pont2/index.mjs.map +1 -0
  24. package/dist/pont2/kit/alert/alert.d.ts +62 -0
  25. package/dist/pont2/kit/aliases.d.ts +33 -0
  26. package/dist/pont2/kit/auth-button/auth-button.d.ts +185 -0
  27. package/dist/pont2/kit/auth-button/providers.d.ts +15 -0
  28. package/dist/pont2/kit/auth-field/auth-field.d.ts +267 -0
  29. package/dist/pont2/kit/auth-field/password-field.d.ts +124 -0
  30. package/dist/pont2/kit/avatar/avatar.d.ts +52 -0
  31. package/dist/pont2/kit/block/block.d.ts +64 -0
  32. package/dist/pont2/kit/block/branding.d.ts +36 -0
  33. package/dist/pont2/kit/container/container.d.ts +40 -0
  34. package/dist/pont2/kit/countdown/countdown.d.ts +64 -0
  35. package/dist/pont2/kit/divider/divider.d.ts +30 -0
  36. package/dist/pont2/kit/edit-identifier/edit-identifier.d.ts +47 -0
  37. package/dist/pont2/kit/flow-widget/flow-widget.d.ts +151 -0
  38. package/dist/pont2/kit/gap/gap.d.ts +36 -0
  39. package/dist/pont2/kit/header/header.d.ts +37 -0
  40. package/dist/pont2/kit/index.d.ts +26 -0
  41. package/dist/pont2/kit/input-otp/input-otp.d.ts +59 -0
  42. package/dist/pont2/kit/layout/flow-error.d.ts +21 -0
  43. package/dist/pont2/kit/layout/layout.d.ts +120 -0
  44. package/dist/pont2/kit/link/link.d.ts +62 -0
  45. package/dist/pont2/kit/logo/logo.d.ts +57 -0
  46. package/dist/pont2/kit/otp-field/otp-field.d.ts +93 -0
  47. package/dist/pont2/kit/otp-field/otp-resend.d.ts +61 -0
  48. package/dist/pont2/kit/provider-field/provider-field.d.ts +87 -0
  49. package/dist/pont2/kit/qr-code/qr-code.d.ts +86 -0
  50. package/dist/pont2/kit/recovery-codes/recovery-codes.d.ts +64 -0
  51. package/dist/pont2/kit/scope-list/scope-list.d.ts +69 -0
  52. package/dist/pont2/kit/scope-list/scope-value.d.ts +16 -0
  53. package/dist/pont2/kit/secret/secret.d.ts +67 -0
  54. package/dist/pont2/kit/story-helpers.d.ts +9 -0
  55. package/dist/pont2/kit/typography/typography.d.ts +70 -0
  56. package/dist/pont2/kit/watermark/pontive-logo.d.ts +8 -0
  57. package/dist/pont2/kit/watermark/watermark.d.ts +42 -0
  58. package/dist/pont2/primitives/alert/alert.d.ts +49 -0
  59. package/dist/pont2/primitives/avatar/avatar.d.ts +89 -0
  60. package/dist/pont2/primitives/badge/badge.d.ts +30 -0
  61. package/dist/pont2/primitives/button/button.d.ts +113 -0
  62. package/dist/pont2/primitives/button-group/button-group.d.ts +55 -0
  63. package/dist/pont2/primitives/card/card.d.ts +63 -0
  64. package/dist/pont2/primitives/checkbox/checkbox.d.ts +54 -0
  65. package/dist/pont2/primitives/combobox/combobox.d.ts +213 -0
  66. package/dist/pont2/primitives/dropdown-menu/dropdown-menu.d.ts +267 -0
  67. package/dist/pont2/primitives/empty/empty.d.ts +60 -0
  68. package/dist/pont2/primitives/field/field.d.ts +146 -0
  69. package/dist/pont2/primitives/input/input.d.ts +47 -0
  70. package/dist/pont2/primitives/input-group/input-group.d.ts +97 -0
  71. package/dist/pont2/primitives/input-otp/input-otp.d.ts +121 -0
  72. package/dist/pont2/primitives/input-otp/otp.d.ts +22 -0
  73. package/dist/pont2/primitives/item/item.d.ts +100 -0
  74. package/dist/pont2/primitives/kbd/kbd.d.ts +29 -0
  75. package/dist/pont2/primitives/label/label.d.ts +37 -0
  76. package/dist/pont2/primitives/native-select/native-select.d.ts +59 -0
  77. package/dist/pont2/primitives/popover/popover.d.ts +85 -0
  78. package/dist/pont2/primitives/progress/progress.d.ts +80 -0
  79. package/dist/pont2/primitives/radio-group/radio-group.d.ts +93 -0
  80. package/dist/pont2/primitives/select/select.d.ts +184 -0
  81. package/dist/pont2/primitives/separator/separator.d.ts +34 -0
  82. package/dist/pont2/primitives/skeleton/skeleton.d.ts +18 -0
  83. package/dist/pont2/primitives/slider/slider-math.d.ts +42 -0
  84. package/dist/pont2/primitives/slider/slider.d.ts +85 -0
  85. package/dist/pont2/primitives/spinner/spinner.d.ts +29 -0
  86. package/dist/pont2/primitives/switch/switch.d.ts +55 -0
  87. package/dist/pont2/primitives/table/table.d.ts +55 -0
  88. package/dist/pont2/primitives/tabs/tabs.d.ts +126 -0
  89. package/dist/pont2/primitives/textarea/textarea.d.ts +41 -0
  90. package/dist/pont2/primitives/tooltip/tooltip.d.ts +69 -0
  91. package/dist/pont2/styles.css +4839 -0
  92. package/dist/pont2/with-legacy.css +10 -0
  93. package/package.json +16 -4
@@ -0,0 +1,4839 @@
1
+ /* @pontive/pontkit-core pont2 — generated by pont2/scripts/build-css.mjs */
2
+ /*
3
+ * pont2 stylesheet: `@pontive/pontkit-core/pont2/styles.css`.
4
+ *
5
+ * Cascade layers do for pont2 what `cn()` / tailwind-merge does for shadcn:
6
+ * a later layer beats an earlier one whatever the specificity, so
7
+ * reset < tokens < base < primitives < kit
8
+ * and ANY unlayered app CSS beats all of them (that is what consumers expect
9
+ * from `className`). The order is declared once, here, before anything else.
10
+ *
11
+ * `pont2.reset` is first and only used by the optional globals.css.
12
+ *
13
+ * Coexisting with an unlayered stylesheet that resets elements (Tailwind 3
14
+ * preflight, including the legacy pontkit `dist/styles.css`) needs one line
15
+ * in the app; see docs/08-parallel-constraints.md.
16
+ */
17
+ @layer pont2.reset, pont2.tokens, pont2.base, pont2.primitives, pont2.kit;
18
+
19
+ /* ./tokens.css */
20
+ /*
21
+ * pont2 design tokens.
22
+ *
23
+ * Values are shadcn's current defaults: the "neutral" base colour and the
24
+ * Vega style (apps/v4/registry/themes.ts and styles/style-vega.css in
25
+ * shadcn-ui/ui). Names are shadcn's with the `--pont2-` prefix, so a shadcn
26
+ * theme (from ui.shadcn.com/themes or `shadcn create`) is ported by
27
+ * find-and-replace `--` → `--pont2-` (docs/03-styling.md, "Theming").
28
+ *
29
+ * Dark mode: shadcn's `.dark` class AND pontkit's `[data-theme="dark"]`, on
30
+ * any ancestor (usually <html>).
31
+ *
32
+ * In the tokens layer, so any unlayered `:root { --pont2-primary: … }` in the
33
+ * app wins without specificity games.
34
+ */
35
+ @layer pont2.tokens {
36
+ :root {
37
+ /* Colour: semantic, exactly shadcn's set */
38
+ --pont2-background: oklch(1 0 0);
39
+ --pont2-foreground: oklch(0.145 0 0);
40
+ --pont2-card: oklch(1 0 0);
41
+ --pont2-card-foreground: oklch(0.145 0 0);
42
+ --pont2-popover: oklch(1 0 0);
43
+ --pont2-popover-foreground: oklch(0.145 0 0);
44
+ --pont2-primary: oklch(0.205 0 0);
45
+ --pont2-primary-foreground: oklch(0.985 0 0);
46
+ --pont2-secondary: oklch(0.97 0 0);
47
+ --pont2-secondary-foreground: oklch(0.205 0 0);
48
+ --pont2-muted: oklch(0.97 0 0);
49
+ --pont2-muted-foreground: oklch(0.556 0 0);
50
+ --pont2-accent: oklch(0.97 0 0);
51
+ --pont2-accent-foreground: oklch(0.205 0 0);
52
+ --pont2-destructive: oklch(0.577 0.245 27.325);
53
+ --pont2-border: oklch(0.922 0 0);
54
+ --pont2-input: oklch(0.922 0 0);
55
+ --pont2-ring: oklch(0.708 0 0);
56
+ --pont2-chart-1: oklch(0.87 0 0);
57
+ --pont2-chart-2: oklch(0.556 0 0);
58
+ --pont2-chart-3: oklch(0.439 0 0);
59
+ --pont2-chart-4: oklch(0.371 0 0);
60
+
61
+ /* Status colours: a pont2 ADDITION (shadcn has only destructive). Used by
62
+ kit composites (pont2-alert status="success|warning|info"); primitives
63
+ never read them. Tailwind palette steps: green-700, amber-600, blue-600. */
64
+ --pont2-success: oklch(0.527 0.154 150.069);
65
+ --pont2-warning: oklch(0.666 0.179 58.318);
66
+ --pont2-info: oklch(0.546 0.245 262.881);
67
+ --pont2-chart-5: oklch(0.269 0 0);
68
+
69
+ /* Radius: shadcn's scale, derived from one knob */
70
+ --pont2-radius: 0.625rem;
71
+ --pont2-radius-sm: calc(var(--pont2-radius) * 0.6);
72
+ --pont2-radius-md: calc(var(--pont2-radius) * 0.8);
73
+ --pont2-radius-lg: var(--pont2-radius);
74
+ --pont2-radius-xl: calc(var(--pont2-radius) * 1.4);
75
+ --pont2-radius-2xl: calc(var(--pont2-radius) * 1.8);
76
+ --pont2-radius-3xl: calc(var(--pont2-radius) * 2.2);
77
+ --pont2-radius-4xl: calc(var(--pont2-radius) * 2.6);
78
+
79
+ /* Typography: Tailwind v4 defaults that shadcn classes resolve to */
80
+ --pont2-font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
81
+ "Segoe UI Symbol", "Noto Color Emoji";
82
+ --pont2-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
83
+ "Courier New", monospace;
84
+ --pont2-text-xs: 0.75rem;
85
+ --pont2-text-xs--line-height: calc(1 / 0.75);
86
+ --pont2-text-sm: 0.875rem;
87
+ --pont2-text-sm--line-height: calc(1.25 / 0.875);
88
+ --pont2-text-base: 1rem;
89
+ --pont2-text-base--line-height: calc(1.5 / 1);
90
+ --pont2-text-lg: 1.125rem;
91
+ --pont2-text-lg--line-height: calc(1.75 / 1.125);
92
+ --pont2-text-xl: 1.25rem;
93
+ --pont2-text-xl--line-height: calc(1.75 / 1.25);
94
+ --pont2-text-2xl: 1.5rem;
95
+ --pont2-text-2xl--line-height: calc(2 / 1.5);
96
+ --pont2-font-weight-normal: 400;
97
+ --pont2-font-weight-medium: 500;
98
+ --pont2-font-weight-semibold: 600;
99
+ --pont2-font-weight-bold: 700;
100
+ --pont2-tracking-tight: -0.025em;
101
+ --pont2-leading-snug: 1.375;
102
+ --pont2-leading-normal: 1.5;
103
+
104
+ /* Elevation: Tailwind v4 shadow-* */
105
+ --pont2-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
106
+ --pont2-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
107
+ --pont2-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
108
+ --pont2-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
109
+
110
+ /* Motion: Tailwind v4 transition defaults */
111
+ --pont2-duration: 150ms;
112
+ --pont2-ease: cubic-bezier(0.4, 0, 0.2, 1);
113
+ --pont2-ease-out: cubic-bezier(0, 0, 0.2, 1);
114
+
115
+ /* Focus ring: `focus-visible:ring-3 ring-ring/50` */
116
+ --pont2-ring-width: 3px;
117
+
118
+ color-scheme: light;
119
+ }
120
+
121
+ :root.dark,
122
+ :root[data-theme="dark"],
123
+ .dark,
124
+ [data-theme="dark"] {
125
+ --pont2-background: oklch(0.145 0 0);
126
+ --pont2-foreground: oklch(0.985 0 0);
127
+ --pont2-card: oklch(0.205 0 0);
128
+ --pont2-card-foreground: oklch(0.985 0 0);
129
+ --pont2-popover: oklch(0.205 0 0);
130
+ --pont2-popover-foreground: oklch(0.985 0 0);
131
+ --pont2-primary: oklch(0.922 0 0);
132
+ --pont2-primary-foreground: oklch(0.205 0 0);
133
+ --pont2-secondary: oklch(0.269 0 0);
134
+ --pont2-secondary-foreground: oklch(0.985 0 0);
135
+ --pont2-muted: oklch(0.269 0 0);
136
+ --pont2-muted-foreground: oklch(0.708 0 0);
137
+ --pont2-accent: oklch(0.269 0 0);
138
+ --pont2-accent-foreground: oklch(0.985 0 0);
139
+ --pont2-destructive: oklch(0.704 0.191 22.216);
140
+ --pont2-border: oklch(1 0 0 / 10%);
141
+ --pont2-input: oklch(1 0 0 / 15%);
142
+ --pont2-ring: oklch(0.556 0 0);
143
+ /* green-500, amber-400, blue-400 */
144
+ --pont2-success: oklch(0.723 0.219 149.579);
145
+ --pont2-warning: oklch(0.828 0.189 84.429);
146
+ --pont2-info: oklch(0.707 0.165 254.624);
147
+ color-scheme: dark;
148
+ }
149
+ }
150
+
151
+ /* ./base.css */
152
+ /*
153
+ * pont2 base: the machinery every component recipe shares.
154
+ *
155
+ * Nothing here styles the page. Components never rely on a global reset
156
+ * (shadcn relies on Tailwind preflight); every recipe states the box,
157
+ * border, font and margin it needs, so pont2 renders correctly with or
158
+ * without `globals.css`. See docs/03-styling.md, "Self-sufficient recipes".
159
+ */
160
+
161
+ /*
162
+ * Box-shadow composition (how Tailwind composes `shadow-xs` + `ring-3`).
163
+ * A recipe sets `--pont2-shadow` and/or `--pont2-ring-shadow` and the
164
+ * shared declaration below combines them, so a focus ring never erases the
165
+ * elevation shadow. `inherits: false` stops a parent's ring leaking into
166
+ * children. @property is global; it cannot be layered and does not need to be.
167
+ */
168
+ @property --pont2-shadow {
169
+ syntax: "*";
170
+ inherits: false;
171
+ initial-value: 0 0 #0000;
172
+ }
173
+ @property --pont2-ring-shadow {
174
+ syntax: "*";
175
+ inherits: false;
176
+ initial-value: 0 0 #0000;
177
+ }
178
+
179
+ @layer pont2.base {
180
+ /* Tier 3 shells: a tag for authors, no box, no role, never styled. */
181
+ [data-pont2-shell] {
182
+ display: contents;
183
+ }
184
+
185
+ /*
186
+ * Before upgrade. An element that is not yet defined has not stamped its
187
+ * identity attribute, so every recipe selects `:is(pont2-x, [data-pont2-x])`:
188
+ * the tag styles the element from the first paint, the attribute styles
189
+ * subclasses and hand-written recipe markup. Children are already in their
190
+ * final place (host-as-root never moves nodes), so nothing jumps on upgrade.
191
+ */
192
+
193
+ /*
194
+ * `hidden` must keep working on pont2 hosts, whose recipes set `display`
195
+ * (an author-origin declaration beats the UA's `[hidden] { display: none }`).
196
+ * !important inside a layer only outranks normal declarations, which is
197
+ * exactly the UA's intent restored.
198
+ */
199
+ [hidden]:where(:not([hidden="until-found"])) {
200
+ display: none !important;
201
+ }
202
+
203
+ /* Screen-reader-only helper, Tailwind's `sr-only`. */
204
+ [data-pont2-sr-only] {
205
+ position: absolute;
206
+ width: 1px;
207
+ height: 1px;
208
+ padding: 0;
209
+ margin: -1px;
210
+ overflow: hidden;
211
+ clip-path: inset(50%);
212
+ white-space: nowrap;
213
+ border-width: 0;
214
+ }
215
+ }
216
+
217
+ @layer pont2.base {
218
+ @keyframes pont2-spin {
219
+ to {
220
+ transform: rotate(360deg);
221
+ }
222
+ }
223
+ @keyframes pont2-pulse {
224
+ 50% {
225
+ opacity: 0.5;
226
+ }
227
+ }
228
+ }
229
+
230
+ /* Primitives: pont2-prim-* (each file wraps itself in @layer pont2.primitives) */
231
+ /* ../primitives/button/button.css */
232
+ /*
233
+ * Button recipe. shadcn (Base UI, Vega):
234
+ * buttonVariants base + .cn-button + .cn-button-variant-* + .cn-button-size-*
235
+ *
236
+ * Tier 3: the recipe styles a NATIVE <button> or <a> carrying
237
+ * `data-pont2-button` (the identity), with `data-variant` / `data-size`.
238
+ * A missing data-variant / data-size means "default", so the minimal
239
+ * hand-written recipe is `<button data-pont2-button>`.
240
+ */
241
+ @layer pont2.primitives {
242
+ [data-pont2-button] {
243
+ /* self-sufficient: what Tailwind preflight would have given a <button>/<a> */
244
+ box-sizing: border-box;
245
+ margin: 0;
246
+ font-family: inherit;
247
+ text-decoration: none;
248
+ cursor: default;
249
+ -webkit-appearance: none;
250
+ appearance: none;
251
+
252
+ /* buttonVariants base */
253
+ display: inline-flex;
254
+ flex-shrink: 0;
255
+ align-items: center;
256
+ justify-content: center;
257
+ white-space: nowrap;
258
+ user-select: none;
259
+ outline: none;
260
+ transition-property: all;
261
+ transition-duration: var(--pont2-duration);
262
+ transition-timing-function: var(--pont2-ease);
263
+
264
+ /* .cn-button */
265
+ border: 1px solid transparent;
266
+ border-radius: var(--pont2-radius-md);
267
+ background-clip: padding-box;
268
+ background-color: transparent;
269
+ color: inherit;
270
+ font-size: var(--pont2-text-sm);
271
+ line-height: var(--pont2-text-sm--line-height);
272
+ font-weight: var(--pont2-font-weight-medium);
273
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
274
+ }
275
+
276
+ [data-pont2-button] svg {
277
+ pointer-events: none;
278
+ flex-shrink: 0;
279
+ }
280
+ [data-pont2-button] svg:not([class*="size-"]) {
281
+ width: 1rem;
282
+ height: 1rem;
283
+ }
284
+
285
+ [data-pont2-button]:focus-visible {
286
+ border-color: var(--pont2-ring);
287
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
288
+ }
289
+
290
+ [data-pont2-button][aria-invalid="true"] {
291
+ border-color: var(--pont2-destructive);
292
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
293
+ }
294
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][aria-invalid="true"] {
295
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
296
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
297
+ }
298
+
299
+ [data-pont2-button]:active:not([aria-haspopup]) {
300
+ translate: 0 1px;
301
+ }
302
+
303
+ /* Base UI Button sets data-disabled; `focusableWhenDisabled` uses aria-disabled. */
304
+ [data-pont2-button]:disabled,
305
+ [data-pont2-button][data-disabled],
306
+ [data-pont2-button][aria-disabled="true"] {
307
+ pointer-events: none;
308
+ opacity: 0.5;
309
+ }
310
+
311
+ /* ------------------------------------------------------------------ */
312
+ /* Variants */
313
+ /* ------------------------------------------------------------------ */
314
+
315
+ [data-pont2-button]:not([data-variant]),
316
+ [data-pont2-button][data-variant="default"] {
317
+ background-color: var(--pont2-primary);
318
+ color: var(--pont2-primary-foreground);
319
+ }
320
+ [data-pont2-button]:not([data-variant]):hover,
321
+ [data-pont2-button][data-variant="default"]:hover {
322
+ background-color: color-mix(in oklab, var(--pont2-primary) 80%, transparent);
323
+ }
324
+
325
+ [data-pont2-button][data-variant="outline"] {
326
+ border-color: var(--pont2-border);
327
+ background-color: var(--pont2-background);
328
+ --pont2-shadow: var(--pont2-shadow-xs);
329
+ }
330
+ [data-pont2-button][data-variant="outline"]:hover,
331
+ [data-pont2-button][data-variant="outline"][aria-expanded="true"] {
332
+ background-color: var(--pont2-muted);
333
+ color: var(--pont2-foreground);
334
+ }
335
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="outline"] {
336
+ border-color: var(--pont2-input);
337
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
338
+ }
339
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="outline"]:hover {
340
+ background-color: color-mix(in oklab, var(--pont2-input) 50%, transparent);
341
+ }
342
+
343
+ [data-pont2-button][data-variant="secondary"],
344
+ [data-pont2-button][data-variant="secondary"][aria-expanded="true"] {
345
+ background-color: var(--pont2-secondary);
346
+ color: var(--pont2-secondary-foreground);
347
+ }
348
+ [data-pont2-button][data-variant="secondary"]:hover {
349
+ background-color: color-mix(in oklch, var(--pont2-secondary), var(--pont2-foreground) 5%);
350
+ }
351
+
352
+ [data-pont2-button][data-variant="ghost"]:hover,
353
+ [data-pont2-button][data-variant="ghost"][aria-expanded="true"] {
354
+ background-color: var(--pont2-muted);
355
+ color: var(--pont2-foreground);
356
+ }
357
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="ghost"]:hover {
358
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
359
+ }
360
+
361
+ [data-pont2-button][data-variant="destructive"] {
362
+ background-color: color-mix(in oklab, var(--pont2-destructive) 10%, transparent);
363
+ color: var(--pont2-destructive);
364
+ }
365
+ [data-pont2-button][data-variant="destructive"]:hover {
366
+ background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
367
+ }
368
+ [data-pont2-button][data-variant="destructive"]:focus-visible {
369
+ border-color: color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
370
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
371
+ }
372
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="destructive"] {
373
+ background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
374
+ }
375
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="destructive"]:hover {
376
+ background-color: color-mix(in oklab, var(--pont2-destructive) 30%, transparent);
377
+ }
378
+ :where(.dark, [data-theme="dark"]) [data-pont2-button][data-variant="destructive"]:focus-visible {
379
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
380
+ }
381
+
382
+ [data-pont2-button][data-variant="link"] {
383
+ color: var(--pont2-primary);
384
+ text-underline-offset: 4px;
385
+ }
386
+ [data-pont2-button][data-variant="link"]:hover {
387
+ text-decoration-line: underline;
388
+ }
389
+
390
+ /* ------------------------------------------------------------------ */
391
+ /* Sizes */
392
+ /* ------------------------------------------------------------------ */
393
+
394
+ [data-pont2-button]:not([data-size]),
395
+ [data-pont2-button][data-size="default"] {
396
+ height: 2.25rem;
397
+ gap: 0.375rem;
398
+ padding: 0 0.625rem;
399
+ }
400
+ [data-pont2-button]:not([data-size]):has([data-icon="inline-end"]),
401
+ [data-pont2-button][data-size="default"]:has([data-icon="inline-end"]) {
402
+ padding-right: 0.5rem;
403
+ }
404
+ [data-pont2-button]:not([data-size]):has([data-icon="inline-start"]),
405
+ [data-pont2-button][data-size="default"]:has([data-icon="inline-start"]) {
406
+ padding-left: 0.5rem;
407
+ }
408
+
409
+ [data-pont2-button][data-size="xs"] {
410
+ height: 1.5rem;
411
+ gap: 0.25rem;
412
+ padding: 0 0.5rem;
413
+ border-radius: min(var(--pont2-radius-md), 8px);
414
+ font-size: var(--pont2-text-xs);
415
+ line-height: var(--pont2-text-xs--line-height);
416
+ }
417
+ [data-pont2-button][data-size="xs"]:has([data-icon="inline-end"]) {
418
+ padding-right: 0.375rem;
419
+ }
420
+ [data-pont2-button][data-size="xs"]:has([data-icon="inline-start"]) {
421
+ padding-left: 0.375rem;
422
+ }
423
+ [data-pont2-button][data-size="xs"] svg:not([class*="size-"]),
424
+ [data-pont2-button][data-size="icon-xs"] svg:not([class*="size-"]) {
425
+ width: 0.75rem;
426
+ height: 0.75rem;
427
+ }
428
+
429
+ [data-pont2-button][data-size="sm"] {
430
+ height: 2rem;
431
+ gap: 0.25rem;
432
+ padding: 0 0.625rem;
433
+ border-radius: min(var(--pont2-radius-md), 10px);
434
+ }
435
+ [data-pont2-button][data-size="sm"]:has([data-icon="inline-end"]) {
436
+ padding-right: 0.375rem;
437
+ }
438
+ [data-pont2-button][data-size="sm"]:has([data-icon="inline-start"]) {
439
+ padding-left: 0.375rem;
440
+ }
441
+
442
+ [data-pont2-button][data-size="lg"] {
443
+ height: 2.5rem;
444
+ gap: 0.375rem;
445
+ padding: 0 0.625rem;
446
+ }
447
+ [data-pont2-button][data-size="lg"]:has([data-icon="inline-end"]) {
448
+ padding-right: 0.5rem;
449
+ }
450
+ [data-pont2-button][data-size="lg"]:has([data-icon="inline-start"]) {
451
+ padding-left: 0.5rem;
452
+ }
453
+
454
+ [data-pont2-button][data-size^="icon"] {
455
+ padding: 0;
456
+ }
457
+ [data-pont2-button][data-size="icon-xs"] {
458
+ width: 1.5rem;
459
+ height: 1.5rem;
460
+ border-radius: min(var(--pont2-radius-md), 8px);
461
+ }
462
+ [data-pont2-button][data-size="icon-sm"] {
463
+ width: 2rem;
464
+ height: 2rem;
465
+ border-radius: min(var(--pont2-radius-md), 10px);
466
+ }
467
+ [data-pont2-button][data-size="icon"] {
468
+ width: 2.25rem;
469
+ height: 2.25rem;
470
+ }
471
+ [data-pont2-button][data-size="icon-lg"] {
472
+ width: 2.5rem;
473
+ height: 2.5rem;
474
+ }
475
+
476
+ /* in-data-[slot=button-group]:rounded-md (ButtonGroup owns the joins) */
477
+ [data-slot="button-group"] [data-pont2-button]:is([data-size="xs"], [data-size="sm"], [data-size="icon-xs"], [data-size="icon-sm"]),
478
+ [data-slot="button-group"] [data-pont2-button]:is(:not([data-size]), [data-size="default"]) {
479
+ border-radius: var(--pont2-radius-md);
480
+ }
481
+ }
482
+
483
+ /* ../primitives/separator/separator.css */
484
+ /*
485
+ * Separator. shadcn (Base UI): "shrink-0 bg-border data-horizontal:h-px
486
+ * data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch".
487
+ *
488
+ * `pont2-prim-separator` selects the not-yet-upgraded tag; `[data-pont2-separator]`
489
+ * selects the upgraded element, its subclasses and hand-written recipe
490
+ * markup (`<div role="separator" data-pont2-separator>`).
491
+ */
492
+ @layer pont2.primitives {
493
+ :is(pont2-prim-separator, pont2-separator, [data-pont2-separator]) {
494
+ display: block;
495
+ flex-shrink: 0;
496
+ box-sizing: border-box;
497
+ margin: 0;
498
+ border: 0;
499
+ background-color: var(--pont2-border);
500
+ height: 1px;
501
+ width: 100%;
502
+ }
503
+
504
+ :is(pont2-prim-separator, pont2-separator, [data-pont2-separator]):is([data-orientation="vertical"], [orientation="vertical"]) {
505
+ width: 1px;
506
+ height: auto;
507
+ align-self: stretch;
508
+ }
509
+ }
510
+
511
+ /* ../primitives/label/label.css */
512
+ /*
513
+ * Label. shadcn (Base UI, Vega):
514
+ * "flex items-center select-none group-data-[disabled=true]:pointer-events-none
515
+ * peer-disabled:cursor-not-allowed" + .cn-label
516
+ * "gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50
517
+ * peer-disabled:opacity-50"
518
+ */
519
+ @layer pont2.primitives {
520
+ [data-pont2-label] {
521
+ box-sizing: border-box;
522
+ margin: 0;
523
+ display: flex;
524
+ align-items: center;
525
+ gap: 0.5rem;
526
+ user-select: none;
527
+ font-size: var(--pont2-text-sm);
528
+ line-height: 1;
529
+ font-weight: var(--pont2-font-weight-medium);
530
+ }
531
+
532
+ /* group-data-[disabled=true]: inside a disabled group (e.g. <pont2-prim-field data-disabled>) */
533
+ :is([data-disabled="true"], [data-disabled=""]) [data-pont2-label] {
534
+ pointer-events: none;
535
+ opacity: 0.5;
536
+ }
537
+
538
+ /* peer-disabled: the label follows a disabled control (native or form-associated).
539
+ The second selector sees through a Tier 3 shell (<pont2-prim-label, pont2-label><label>): the shell
540
+ has no box, but it is still the DOM sibling. */
541
+ :is(:disabled, [data-disabled]) ~ [data-pont2-label],
542
+ :is(:disabled, [data-disabled]) ~ [data-pont2-shell] > [data-pont2-label] {
543
+ cursor: not-allowed;
544
+ opacity: 0.5;
545
+ }
546
+ }
547
+
548
+ /* ../primitives/input/input.css */
549
+ /*
550
+ * Input. shadcn (Base UI, Vega):
551
+ * "w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent
552
+ * file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none
553
+ * disabled:cursor-not-allowed disabled:opacity-50" + .cn-input
554
+ */
555
+ @layer pont2.primitives {
556
+ [data-pont2-input] {
557
+ box-sizing: border-box;
558
+ margin: 0;
559
+ font-family: inherit;
560
+ color: inherit;
561
+ -webkit-appearance: none;
562
+ appearance: none;
563
+
564
+ width: 100%;
565
+ min-width: 0;
566
+ height: 2.25rem;
567
+ padding: 0.25rem 0.625rem;
568
+ border: 1px solid var(--pont2-input);
569
+ border-radius: var(--pont2-radius-md);
570
+ background-color: transparent;
571
+ font-size: var(--pont2-text-base);
572
+ line-height: var(--pont2-text-base--line-height);
573
+ outline: none;
574
+ --pont2-shadow: var(--pont2-shadow-xs);
575
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
576
+ transition-property: color, box-shadow;
577
+ transition-duration: var(--pont2-duration);
578
+ transition-timing-function: var(--pont2-ease);
579
+ }
580
+
581
+ @media (width >= 48rem) {
582
+ [data-pont2-input] {
583
+ font-size: var(--pont2-text-sm);
584
+ line-height: var(--pont2-text-sm--line-height);
585
+ }
586
+ }
587
+
588
+ :where(.dark, [data-theme="dark"]) [data-pont2-input] {
589
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
590
+ }
591
+
592
+ [data-pont2-input]::placeholder {
593
+ color: var(--pont2-muted-foreground);
594
+ opacity: 1;
595
+ }
596
+
597
+ [data-pont2-input]::file-selector-button {
598
+ display: inline-flex;
599
+ height: 1.75rem;
600
+ border: 0;
601
+ background-color: transparent;
602
+ color: var(--pont2-foreground);
603
+ font: inherit;
604
+ font-size: var(--pont2-text-sm);
605
+ line-height: var(--pont2-text-sm--line-height);
606
+ font-weight: var(--pont2-font-weight-medium);
607
+ }
608
+
609
+ [data-pont2-input]:focus-visible {
610
+ border-color: var(--pont2-ring);
611
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
612
+ }
613
+
614
+ [data-pont2-input][aria-invalid="true"] {
615
+ border-color: var(--pont2-destructive);
616
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
617
+ }
618
+ :where(.dark, [data-theme="dark"]) [data-pont2-input][aria-invalid="true"] {
619
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
620
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
621
+ }
622
+
623
+ [data-pont2-input]:disabled {
624
+ pointer-events: none;
625
+ cursor: not-allowed;
626
+ opacity: 0.5;
627
+ }
628
+ }
629
+
630
+ /* ../primitives/textarea/textarea.css */
631
+ /*
632
+ * Textarea. shadcn (Base UI, Vega):
633
+ * "flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground
634
+ * disabled:cursor-not-allowed disabled:opacity-50" + .cn-textarea
635
+ */
636
+ @layer pont2.primitives {
637
+ [data-pont2-textarea] {
638
+ box-sizing: border-box;
639
+ margin: 0;
640
+ font-family: inherit;
641
+ color: inherit;
642
+ resize: vertical;
643
+
644
+ display: flex;
645
+ field-sizing: content;
646
+ min-height: 4rem;
647
+ width: 100%;
648
+ padding: 0.5rem 0.625rem;
649
+ border: 1px solid var(--pont2-input);
650
+ border-radius: var(--pont2-radius-md);
651
+ background-color: transparent;
652
+ font-size: var(--pont2-text-base);
653
+ line-height: var(--pont2-text-base--line-height);
654
+ outline: none;
655
+ --pont2-shadow: var(--pont2-shadow-xs);
656
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
657
+ transition-property: color, box-shadow;
658
+ transition-duration: var(--pont2-duration);
659
+ transition-timing-function: var(--pont2-ease);
660
+ }
661
+
662
+ @media (width >= 48rem) {
663
+ [data-pont2-textarea] {
664
+ font-size: var(--pont2-text-sm);
665
+ line-height: var(--pont2-text-sm--line-height);
666
+ }
667
+ }
668
+
669
+ :where(.dark, [data-theme="dark"]) [data-pont2-textarea] {
670
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
671
+ }
672
+
673
+ [data-pont2-textarea]::placeholder {
674
+ color: var(--pont2-muted-foreground);
675
+ opacity: 1;
676
+ }
677
+
678
+ [data-pont2-textarea]:focus-visible {
679
+ border-color: var(--pont2-ring);
680
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
681
+ }
682
+
683
+ [data-pont2-textarea][aria-invalid="true"] {
684
+ border-color: var(--pont2-destructive);
685
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
686
+ }
687
+ :where(.dark, [data-theme="dark"]) [data-pont2-textarea][aria-invalid="true"] {
688
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
689
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
690
+ }
691
+
692
+ [data-pont2-textarea]:disabled {
693
+ cursor: not-allowed;
694
+ opacity: 0.5;
695
+ }
696
+ }
697
+
698
+ /* ../primitives/checkbox/checkbox.css */
699
+ /*
700
+ * Checkbox. shadcn (Base UI, Vega):
701
+ * root: "peer relative shrink-0 outline-none after:absolute after:-inset-x-3
702
+ * after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50" + .cn-checkbox
703
+ * indicator: "grid place-content-center text-current transition-none" + .cn-checkbox-indicator
704
+ *
705
+ * The host is form-associated, so `:disabled` and `:invalid` match it like a
706
+ * native control. `aria-checked` lives in ElementInternals (not an attribute),
707
+ * so checked styles select Base UI's `[data-checked]`.
708
+ */
709
+ @layer pont2.primitives {
710
+ :is(pont2-prim-checkbox, pont2-checkbox, [data-pont2-checkbox]) {
711
+ box-sizing: border-box;
712
+ position: relative;
713
+ flex-shrink: 0;
714
+ display: flex;
715
+ align-items: center;
716
+ justify-content: center;
717
+ width: 1rem;
718
+ height: 1rem;
719
+ border: 1px solid var(--pont2-input);
720
+ border-radius: 4px;
721
+ outline: none;
722
+ color: inherit;
723
+ --pont2-shadow: var(--pont2-shadow-xs);
724
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
725
+ transition-property: box-shadow;
726
+ transition-duration: var(--pont2-duration);
727
+ transition-timing-function: var(--pont2-ease);
728
+ }
729
+
730
+ /* Enlarged hit area: after:absolute after:-inset-x-3 after:-inset-y-2 */
731
+ :is(pont2-prim-checkbox, pont2-checkbox, [data-pont2-checkbox])::after {
732
+ content: "";
733
+ position: absolute;
734
+ inset: -0.5rem -0.75rem;
735
+ }
736
+
737
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-checkbox, pont2-checkbox, [data-pont2-checkbox]) {
738
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
739
+ }
740
+
741
+ [data-pont2-checkbox]:is([data-checked], [data-indeterminate]) {
742
+ background-color: var(--pont2-primary);
743
+ color: var(--pont2-primary-foreground);
744
+ border-color: var(--pont2-primary);
745
+ }
746
+
747
+ [data-pont2-checkbox]:focus-visible {
748
+ border-color: var(--pont2-ring);
749
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
750
+ }
751
+
752
+ [data-pont2-checkbox][aria-invalid="true"] {
753
+ border-color: var(--pont2-destructive);
754
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
755
+ }
756
+ [data-pont2-checkbox][aria-invalid="true"]:is([data-checked], [data-indeterminate]) {
757
+ border-color: var(--pont2-primary);
758
+ }
759
+ :where(.dark, [data-theme="dark"]) [data-pont2-checkbox][aria-invalid="true"] {
760
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
761
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
762
+ }
763
+
764
+ [data-pont2-checkbox]:is(:disabled, [data-disabled]) {
765
+ cursor: not-allowed;
766
+ opacity: 0.5;
767
+ }
768
+
769
+ /* group-has-disabled/field:opacity-50 */
770
+ [data-slot="field"]:has(:disabled) [data-pont2-checkbox] {
771
+ opacity: 0.5;
772
+ }
773
+
774
+ /* Inside a choice-card FieldLabel the label draws the focus ring instead. */
775
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-checkbox] {
776
+ --pont2-ring-shadow: 0 0 #0000;
777
+ }
778
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-checkbox]:not([data-checked]) {
779
+ border-color: var(--pont2-input);
780
+ }
781
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-checkbox][data-checked] {
782
+ border-color: var(--pont2-primary);
783
+ }
784
+
785
+ [data-pont2-checkbox-indicator] {
786
+ display: grid;
787
+ place-content: center;
788
+ color: currentColor;
789
+ transition: none;
790
+ }
791
+ [data-pont2-checkbox-indicator] > svg {
792
+ width: 0.875rem;
793
+ height: 0.875rem;
794
+ }
795
+ }
796
+
797
+ /* ../primitives/badge/badge.css */
798
+ /*
799
+ * Badge. shadcn (Base UI, Vega):
800
+ * "inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap
801
+ * focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50
802
+ * aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&>svg]:pointer-events-none"
803
+ * + .cn-badge + .cn-badge-variant-*
804
+ */
805
+ @layer pont2.primitives {
806
+ :is(pont2-prim-badge, pont2-badge, [data-pont2-badge]) {
807
+ box-sizing: border-box;
808
+ margin: 0;
809
+ font-family: inherit;
810
+ text-decoration: none;
811
+
812
+ display: inline-flex;
813
+ width: fit-content;
814
+ flex-shrink: 0;
815
+ align-items: center;
816
+ justify-content: center;
817
+ overflow: hidden;
818
+ white-space: nowrap;
819
+ height: 1.25rem;
820
+ gap: 0.25rem;
821
+ padding: 0.125rem 0.5rem;
822
+ border: 1px solid transparent;
823
+ border-radius: var(--pont2-radius-4xl);
824
+ font-size: var(--pont2-text-xs);
825
+ line-height: var(--pont2-text-xs--line-height);
826
+ font-weight: var(--pont2-font-weight-medium);
827
+ outline: none;
828
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
829
+ transition-property: all;
830
+ transition-duration: var(--pont2-duration);
831
+ transition-timing-function: var(--pont2-ease);
832
+
833
+ /* default variant (attribute may be missing before upgrade / in recipes) */
834
+ background-color: var(--pont2-primary);
835
+ color: var(--pont2-primary-foreground);
836
+ }
837
+
838
+ :is(pont2-prim-badge, pont2-badge, [data-pont2-badge]) > svg {
839
+ pointer-events: none;
840
+ width: 0.75rem !important;
841
+ height: 0.75rem !important;
842
+ }
843
+
844
+ :is(pont2-prim-badge, pont2-badge, [data-pont2-badge]):has([data-icon="inline-end"]) {
845
+ padding-right: 0.375rem;
846
+ }
847
+ :is(pont2-prim-badge, pont2-badge, [data-pont2-badge]):has([data-icon="inline-start"]) {
848
+ padding-left: 0.375rem;
849
+ }
850
+
851
+ [data-pont2-badge]:focus-visible {
852
+ border-color: var(--pont2-ring);
853
+ --pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
854
+ }
855
+ [data-pont2-badge][aria-invalid="true"] {
856
+ border-color: var(--pont2-destructive);
857
+ --pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
858
+ }
859
+
860
+ a[data-pont2-badge]:is(:not([data-variant]), [data-variant="default"]):hover {
861
+ background-color: color-mix(in oklab, var(--pont2-primary) 80%, transparent);
862
+ }
863
+
864
+ [data-pont2-badge][data-variant="secondary"] {
865
+ background-color: var(--pont2-secondary);
866
+ color: var(--pont2-secondary-foreground);
867
+ }
868
+ a[data-pont2-badge][data-variant="secondary"]:hover {
869
+ background-color: color-mix(in oklab, var(--pont2-secondary) 80%, transparent);
870
+ }
871
+
872
+ [data-pont2-badge][data-variant="outline"] {
873
+ background-color: transparent;
874
+ border-color: var(--pont2-border);
875
+ color: var(--pont2-foreground);
876
+ }
877
+ a[data-pont2-badge][data-variant="outline"]:hover {
878
+ background-color: var(--pont2-muted);
879
+ color: var(--pont2-muted-foreground);
880
+ }
881
+
882
+ [data-pont2-badge][data-variant="destructive"] {
883
+ background-color: color-mix(in oklab, var(--pont2-destructive) 10%, transparent);
884
+ color: var(--pont2-destructive);
885
+ }
886
+ a[data-pont2-badge][data-variant="destructive"]:hover {
887
+ background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
888
+ }
889
+ [data-pont2-badge][data-variant="destructive"]:focus-visible {
890
+ --pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
891
+ }
892
+ :where(.dark, [data-theme="dark"]) [data-pont2-badge][data-variant="destructive"] {
893
+ background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
894
+ }
895
+ :where(.dark, [data-theme="dark"]) [data-pont2-badge][data-variant="destructive"]:focus-visible {
896
+ --pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
897
+ }
898
+
899
+ [data-pont2-badge]:is([data-variant="ghost"], [data-variant="link"]) {
900
+ background-color: transparent;
901
+ color: inherit;
902
+ }
903
+ [data-pont2-badge][data-variant="ghost"]:hover {
904
+ background-color: var(--pont2-muted);
905
+ color: var(--pont2-muted-foreground);
906
+ }
907
+ :where(.dark, [data-theme="dark"]) [data-pont2-badge][data-variant="ghost"]:hover {
908
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
909
+ }
910
+
911
+ [data-pont2-badge][data-variant="link"] {
912
+ color: var(--pont2-primary);
913
+ text-underline-offset: 4px;
914
+ }
915
+ [data-pont2-badge][data-variant="link"]:hover {
916
+ text-decoration-line: underline;
917
+ }
918
+ }
919
+
920
+ /* ../primitives/kbd/kbd.css */
921
+ /*
922
+ * Kbd. shadcn (Base UI, Vega):
923
+ * kbd: "pointer-events-none inline-flex items-center justify-center select-none" + .cn-kbd
924
+ * group: "inline-flex items-center" + .cn-kbd-group (gap-1)
925
+ */
926
+ @layer pont2.primitives {
927
+ :is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
928
+ box-sizing: border-box;
929
+ margin: 0;
930
+ pointer-events: none;
931
+ display: inline-flex;
932
+ align-items: center;
933
+ justify-content: center;
934
+ user-select: none;
935
+ height: 1.25rem;
936
+ width: fit-content;
937
+ min-width: 1.25rem;
938
+ gap: 0.25rem;
939
+ padding: 0 0.25rem;
940
+ border-radius: var(--pont2-radius-sm);
941
+ background-color: var(--pont2-muted);
942
+ color: var(--pont2-muted-foreground);
943
+ font-family: var(--pont2-font-sans);
944
+ font-size: var(--pont2-text-xs);
945
+ line-height: var(--pont2-text-xs--line-height);
946
+ font-weight: var(--pont2-font-weight-medium);
947
+ }
948
+
949
+ :is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) svg:not([class*="size-"]) {
950
+ width: 0.75rem;
951
+ height: 0.75rem;
952
+ }
953
+
954
+ /* in-data-[slot=tooltip-content] */
955
+ [data-slot="tooltip-content"] :is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
956
+ background-color: color-mix(in oklab, var(--pont2-background) 20%, transparent);
957
+ color: var(--pont2-background);
958
+ }
959
+ :where(.dark, [data-theme="dark"]) [data-slot="tooltip-content"] :is(pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
960
+ background-color: color-mix(in oklab, var(--pont2-background) 10%, transparent);
961
+ }
962
+
963
+ :is(pont2-prim-kbd-group, pont2-kbd-group, [data-pont2-kbd-group]) {
964
+ display: inline-flex;
965
+ align-items: center;
966
+ gap: 0.25rem;
967
+ }
968
+ }
969
+
970
+ /* ../primitives/skeleton/skeleton.css */
971
+ /* Skeleton. shadcn (Base UI, Vega): "animate-pulse" + .cn-skeleton "bg-muted rounded-md" */
972
+ @layer pont2.primitives {
973
+ :is(pont2-prim-skeleton, pont2-skeleton, [data-pont2-skeleton]) {
974
+ display: block;
975
+ box-sizing: border-box;
976
+ background-color: var(--pont2-muted);
977
+ border-radius: var(--pont2-radius-md);
978
+ animation: pont2-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
979
+ }
980
+
981
+ @media (prefers-reduced-motion: reduce) {
982
+ :is(pont2-prim-skeleton, pont2-skeleton, [data-pont2-skeleton]) {
983
+ animation: none;
984
+ }
985
+ }
986
+ }
987
+
988
+ /* ../primitives/spinner/spinner.css */
989
+ /*
990
+ * Spinner. shadcn (Base UI): lucide Loader2Icon + "size-4 animate-spin".
991
+ * Drawn as a mask so the host stays the only node (see spinner.ts).
992
+ */
993
+ @layer pont2.primitives {
994
+ :is(pont2-prim-spinner, pont2-spinner, [data-pont2-spinner]) {
995
+ /* Read through var() with a fallback (not declared here), so the icon can be set on any ancestor. */
996
+ --_pont2-spinner-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E");
997
+ display: inline-block;
998
+ flex-shrink: 0;
999
+ box-sizing: border-box;
1000
+ width: 1rem;
1001
+ height: 1rem;
1002
+ background-color: currentColor;
1003
+ -webkit-mask: var(--pont2-spinner-icon, var(--_pont2-spinner-default)) center / contain no-repeat;
1004
+ mask: var(--pont2-spinner-icon, var(--_pont2-spinner-default)) center / contain no-repeat;
1005
+ animation: pont2-spin 1s linear infinite;
1006
+ }
1007
+ }
1008
+
1009
+ /* --- structural (A) --- */
1010
+ /* ../primitives/alert/alert.css */
1011
+ /*
1012
+ * Alert. shadcn (Base UI, Vega):
1013
+ * alert: "group/alert relative w-full" + .cn-alert
1014
+ * "grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm
1015
+ * has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18
1016
+ * has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2
1017
+ * *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4"
1018
+ * default: "bg-card text-card-foreground"
1019
+ * destructive: "text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90"
1020
+ * title: "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground"
1021
+ * description: "text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4" (+ link rules)
1022
+ * action: "absolute top-2.5 right-3"
1023
+ */
1024
+ @layer pont2.primitives {
1025
+ :is(pont2-prim-alert, [data-pont2-alert]) {
1026
+ box-sizing: border-box;
1027
+ position: relative;
1028
+ display: grid;
1029
+ width: 100%;
1030
+ gap: 0.125rem;
1031
+ margin: 0;
1032
+ padding: 0.75rem 1rem;
1033
+ border: 1px solid var(--pont2-border);
1034
+ border-radius: var(--pont2-radius-lg);
1035
+ text-align: left;
1036
+ font-size: var(--pont2-text-sm);
1037
+ line-height: var(--pont2-text-sm--line-height);
1038
+ background-color: var(--pont2-card);
1039
+ color: var(--pont2-card-foreground);
1040
+ }
1041
+
1042
+ :is(pont2-prim-alert, [data-pont2-alert]):has([data-slot="alert-action"]) {
1043
+ padding-right: 4.5rem;
1044
+ }
1045
+
1046
+ :is(pont2-prim-alert, [data-pont2-alert]):has(> svg) {
1047
+ grid-template-columns: auto 1fr;
1048
+ column-gap: 0.625rem;
1049
+ }
1050
+
1051
+ :is(pont2-prim-alert, [data-pont2-alert]) > svg {
1052
+ grid-row: span 2 / span 2;
1053
+ translate: 0 0.125rem;
1054
+ color: currentColor;
1055
+ }
1056
+ :is(pont2-prim-alert, [data-pont2-alert]) > svg:not([class*="size-"]) {
1057
+ width: 1rem;
1058
+ height: 1rem;
1059
+ }
1060
+
1061
+ [data-pont2-alert][data-variant="destructive"] {
1062
+ background-color: var(--pont2-card);
1063
+ color: var(--pont2-destructive);
1064
+ }
1065
+ [data-pont2-alert][data-variant="destructive"] > [data-slot="alert-description"] {
1066
+ color: color-mix(in oklab, var(--pont2-destructive) 90%, transparent);
1067
+ }
1068
+
1069
+ :is(pont2-prim-alert-title, [data-pont2-alert-title]) {
1070
+ display: block;
1071
+ font-weight: var(--pont2-font-weight-medium);
1072
+ }
1073
+ :is(pont2-prim-alert, [data-pont2-alert]):has(> svg) :is(pont2-prim-alert-title, [data-pont2-alert-title]) {
1074
+ grid-column-start: 2;
1075
+ }
1076
+
1077
+ :is(pont2-prim-alert-description, [data-pont2-alert-description]) {
1078
+ display: block;
1079
+ color: var(--pont2-muted-foreground);
1080
+ font-size: var(--pont2-text-sm);
1081
+ line-height: var(--pont2-text-sm--line-height);
1082
+ text-wrap: balance;
1083
+ }
1084
+ @media (width >= 48rem) {
1085
+ :is(pont2-prim-alert-description, [data-pont2-alert-description]) {
1086
+ text-wrap: pretty;
1087
+ }
1088
+ }
1089
+ :is(pont2-prim-alert-description, [data-pont2-alert-description]) p {
1090
+ margin: 0;
1091
+ }
1092
+ :is(pont2-prim-alert-description, [data-pont2-alert-description]) p:not(:last-child) {
1093
+ margin-bottom: 1rem;
1094
+ }
1095
+
1096
+ :is(pont2-prim-alert-title, [data-pont2-alert-title], pont2-prim-alert-description, [data-pont2-alert-description]) a {
1097
+ color: inherit;
1098
+ text-decoration-line: underline;
1099
+ text-underline-offset: 3px;
1100
+ }
1101
+ :is(pont2-prim-alert-title, [data-pont2-alert-title], pont2-prim-alert-description, [data-pont2-alert-description]) a:hover {
1102
+ color: var(--pont2-foreground);
1103
+ }
1104
+
1105
+ :is(pont2-prim-alert-action, [data-pont2-alert-action]) {
1106
+ display: block;
1107
+ position: absolute;
1108
+ top: 0.625rem;
1109
+ right: 0.75rem;
1110
+ }
1111
+ }
1112
+
1113
+ /* ../primitives/avatar/avatar.css */
1114
+ /*
1115
+ * Avatar. shadcn (Base UI, Vega):
1116
+ * root: "group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border
1117
+ * after:border-border after:mix-blend-darken dark:after:mix-blend-lighten"
1118
+ * + "size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6"
1119
+ * image: "aspect-square size-full object-cover" + "rounded-full"
1120
+ * fallback: "flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs"
1121
+ * + "bg-muted text-muted-foreground rounded-full"
1122
+ * badge: "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full
1123
+ * bg-blend-color ring-2 select-none" + per-size sizes + "bg-primary text-primary-foreground ring-background"
1124
+ * group: "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background"
1125
+ * count: "relative flex shrink-0 items-center justify-center ring-2 ring-background"
1126
+ * + "bg-muted text-muted-foreground size-8 rounded-full text-sm" + group size variants
1127
+ *
1128
+ * Base UI mounts the <img> only once loaded and the fallback only until then.
1129
+ * pont2 keeps both in the DOM and swaps them on `data-image-loading-status`.
1130
+ */
1131
+ @layer pont2.primitives {
1132
+ :is(pont2-prim-avatar, [data-pont2-avatar]) {
1133
+ box-sizing: border-box;
1134
+ position: relative;
1135
+ display: flex;
1136
+ flex-shrink: 0;
1137
+ width: 2rem;
1138
+ height: 2rem;
1139
+ border-radius: 9999px;
1140
+ user-select: none;
1141
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
1142
+ }
1143
+ :is(pont2-prim-avatar, [data-pont2-avatar])::after {
1144
+ content: "";
1145
+ position: absolute;
1146
+ inset: 0;
1147
+ box-sizing: border-box;
1148
+ border: 1px solid var(--pont2-border);
1149
+ border-radius: 9999px;
1150
+ mix-blend-mode: darken;
1151
+ pointer-events: none;
1152
+ }
1153
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-avatar, [data-pont2-avatar])::after {
1154
+ mix-blend-mode: lighten;
1155
+ }
1156
+ :is(pont2-prim-avatar, [data-pont2-avatar]):is([data-size="lg"], [size="lg"]) {
1157
+ width: 2.5rem;
1158
+ height: 2.5rem;
1159
+ }
1160
+ :is(pont2-prim-avatar, [data-pont2-avatar]):is([data-size="sm"], [size="sm"]) {
1161
+ width: 1.5rem;
1162
+ height: 1.5rem;
1163
+ }
1164
+
1165
+ /* Image: the author's native <img>, shown only once loaded. */
1166
+ :is(pont2-prim-avatar, [data-pont2-avatar]) > img {
1167
+ display: none;
1168
+ box-sizing: border-box;
1169
+ aspect-ratio: 1 / 1;
1170
+ width: 100%;
1171
+ height: 100%;
1172
+ max-width: none;
1173
+ object-fit: cover;
1174
+ border-radius: 9999px;
1175
+ }
1176
+ [data-pont2-avatar][data-image-loading-status="loaded"] > img {
1177
+ display: block;
1178
+ }
1179
+
1180
+ :is(pont2-prim-avatar-fallback, [data-pont2-avatar-fallback]) {
1181
+ display: flex;
1182
+ align-items: center;
1183
+ justify-content: center;
1184
+ width: 100%;
1185
+ height: 100%;
1186
+ border-radius: 9999px;
1187
+ background-color: var(--pont2-muted);
1188
+ color: var(--pont2-muted-foreground);
1189
+ font-size: var(--pont2-text-sm);
1190
+ line-height: var(--pont2-text-sm--line-height);
1191
+ }
1192
+ [data-pont2-avatar][data-size="sm"] :is(pont2-prim-avatar-fallback, [data-pont2-avatar-fallback]) {
1193
+ font-size: var(--pont2-text-xs);
1194
+ line-height: var(--pont2-text-xs--line-height);
1195
+ }
1196
+ [data-pont2-avatar][data-image-loading-status="loaded"] :is(pont2-prim-avatar-fallback, [data-pont2-avatar-fallback]) {
1197
+ display: none;
1198
+ }
1199
+
1200
+ :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) {
1201
+ box-sizing: border-box;
1202
+ position: absolute;
1203
+ right: 0;
1204
+ bottom: 0;
1205
+ z-index: 10;
1206
+ display: inline-flex;
1207
+ align-items: center;
1208
+ justify-content: center;
1209
+ width: 0.625rem;
1210
+ height: 0.625rem;
1211
+ border-radius: 9999px;
1212
+ background-blend-mode: color;
1213
+ background-color: var(--pont2-primary);
1214
+ color: var(--pont2-primary-foreground);
1215
+ user-select: none;
1216
+ box-shadow: 0 0 0 2px var(--pont2-background);
1217
+ }
1218
+ :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) > svg {
1219
+ width: 0.5rem;
1220
+ height: 0.5rem;
1221
+ }
1222
+ [data-pont2-avatar][data-size="sm"] :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) {
1223
+ width: 0.5rem;
1224
+ height: 0.5rem;
1225
+ }
1226
+ [data-pont2-avatar][data-size="sm"] :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) > svg {
1227
+ display: none;
1228
+ }
1229
+ [data-pont2-avatar][data-size="lg"] :is(pont2-prim-avatar-badge, [data-pont2-avatar-badge]) {
1230
+ width: 0.75rem;
1231
+ height: 0.75rem;
1232
+ }
1233
+
1234
+ :is(pont2-prim-avatar-group, [data-pont2-avatar-group]) {
1235
+ display: flex;
1236
+ }
1237
+ /* -space-x-2 (Tailwind v4: negative inline-end margin on all but the last child) */
1238
+ :is(pont2-prim-avatar-group, [data-pont2-avatar-group]) > :not(:last-child) {
1239
+ margin-inline-end: -0.5rem;
1240
+ }
1241
+ :is(pont2-prim-avatar-group, [data-pont2-avatar-group]) > [data-slot="avatar"] {
1242
+ --pont2-ring-shadow: 0 0 0 2px var(--pont2-background);
1243
+ }
1244
+
1245
+ :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) {
1246
+ box-sizing: border-box;
1247
+ position: relative;
1248
+ display: flex;
1249
+ flex-shrink: 0;
1250
+ align-items: center;
1251
+ justify-content: center;
1252
+ width: 2rem;
1253
+ height: 2rem;
1254
+ border-radius: 9999px;
1255
+ background-color: var(--pont2-muted);
1256
+ color: var(--pont2-muted-foreground);
1257
+ font-size: var(--pont2-text-sm);
1258
+ line-height: var(--pont2-text-sm--line-height);
1259
+ box-shadow: 0 0 0 2px var(--pont2-background);
1260
+ }
1261
+ :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) > svg {
1262
+ width: 1rem;
1263
+ height: 1rem;
1264
+ }
1265
+ [data-pont2-avatar-group]:has([data-size="lg"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) {
1266
+ width: 2.5rem;
1267
+ height: 2.5rem;
1268
+ }
1269
+ [data-pont2-avatar-group]:has([data-size="lg"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) > svg {
1270
+ width: 1.25rem;
1271
+ height: 1.25rem;
1272
+ }
1273
+ [data-pont2-avatar-group]:has([data-size="sm"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) {
1274
+ width: 1.5rem;
1275
+ height: 1.5rem;
1276
+ }
1277
+ [data-pont2-avatar-group]:has([data-size="sm"]) :is(pont2-prim-avatar-group-count, [data-pont2-avatar-group-count]) > svg {
1278
+ width: 0.75rem;
1279
+ height: 0.75rem;
1280
+ }
1281
+ }
1282
+
1283
+ /* ../primitives/button-group/button-group.css */
1284
+ /*
1285
+ * ButtonGroup. shadcn (Base UI, Vega):
1286
+ * group: "flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10
1287
+ * [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1"
1288
+ * + "has-[>[data-slot=button-group]]:gap-2"
1289
+ * horizontal: "*:data-slot:rounded-r-none [&>[data-slot]~[data-slot]]:rounded-l-none
1290
+ * [&>[data-slot]~[data-slot]]:border-l-0" + last item "rounded-r-md!"
1291
+ * vertical: "flex-col *:data-slot:rounded-b-none [&>[data-slot]~[data-slot]]:rounded-t-none
1292
+ * [&>[data-slot]~[data-slot]]:border-t-0" + last item "rounded-b-md!"
1293
+ * text: "flex items-center [&_svg]:pointer-events-none"
1294
+ * + "bg-muted gap-2 rounded-md border px-2.5 text-sm font-medium shadow-xs [&_svg:not([class*='size-'])]:size-4"
1295
+ * separator: Separator + "relative self-stretch data-horizontal:mx-px data-horizontal:w-auto
1296
+ * data-vertical:my-px data-vertical:h-auto" + "bg-input"
1297
+ *
1298
+ * "Item" = a direct child, or the native element inside a direct-child Tier 3
1299
+ * shell (display: contents). Nested button groups are spaced, not joined.
1300
+ */
1301
+ @layer pont2.primitives {
1302
+ :is(pont2-prim-button-group, [data-pont2-button-group]) {
1303
+ box-sizing: border-box;
1304
+ display: flex;
1305
+ width: fit-content;
1306
+ align-items: stretch;
1307
+ }
1308
+ :is(pont2-prim-button-group, [data-pont2-button-group]):has(> [data-slot="button-group"]) {
1309
+ gap: 0.5rem;
1310
+ }
1311
+ :is(pont2-prim-button-group, [data-pont2-button-group]) > :focus-visible,
1312
+ :is(pont2-prim-button-group, [data-pont2-button-group]) > [data-pont2-shell] > :focus-visible {
1313
+ position: relative;
1314
+ z-index: 10;
1315
+ }
1316
+ :is(pont2-prim-button-group, [data-pont2-button-group]) > [data-slot="select-trigger"]:not([class*="w-"]) {
1317
+ width: fit-content;
1318
+ }
1319
+ :is(pont2-prim-button-group, [data-pont2-button-group]) > input,
1320
+ :is(pont2-prim-button-group, [data-pont2-button-group]) > [data-pont2-shell] > input {
1321
+ flex: 1 1 0%;
1322
+ }
1323
+
1324
+ /* ---- horizontal joins ---- */
1325
+ [data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
1326
+ > :not([data-pont2-shell]):not(:last-child),
1327
+ [data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
1328
+ > [data-pont2-shell]:not(:last-child) > * {
1329
+ border-top-right-radius: 0;
1330
+ border-bottom-right-radius: 0;
1331
+ }
1332
+ [data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
1333
+ > :not([data-pont2-shell]):not(:first-child),
1334
+ [data-pont2-button-group]:not([data-orientation="vertical"]):not(:has(> [data-slot="button-group"]))
1335
+ > [data-pont2-shell]:not(:first-child) > * {
1336
+ border-top-left-radius: 0;
1337
+ border-bottom-left-radius: 0;
1338
+ border-left-width: 0;
1339
+ }
1340
+
1341
+ /* ---- vertical joins ---- */
1342
+ [data-pont2-button-group][data-orientation="vertical"] {
1343
+ flex-direction: column;
1344
+ }
1345
+ [data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
1346
+ > :not([data-pont2-shell]):not(:last-child),
1347
+ [data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
1348
+ > [data-pont2-shell]:not(:last-child) > * {
1349
+ border-bottom-left-radius: 0;
1350
+ border-bottom-right-radius: 0;
1351
+ }
1352
+ [data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
1353
+ > :not([data-pont2-shell]):not(:first-child),
1354
+ [data-pont2-button-group][data-orientation="vertical"]:not(:has(> [data-slot="button-group"]))
1355
+ > [data-pont2-shell]:not(:first-child) > * {
1356
+ border-top-left-radius: 0;
1357
+ border-top-right-radius: 0;
1358
+ border-top-width: 0;
1359
+ }
1360
+
1361
+ /* ---- separators are items too, but are never rounded or bordered ---- */
1362
+ :is(pont2-prim-button-group-separator, [data-pont2-button-group-separator]) {
1363
+ position: relative;
1364
+ align-self: stretch;
1365
+ background-color: var(--pont2-input);
1366
+ }
1367
+ [data-pont2-button-group-separator][data-orientation="vertical"] {
1368
+ height: auto;
1369
+ margin-block: 1px;
1370
+ }
1371
+ [data-pont2-button-group-separator][data-orientation="horizontal"] {
1372
+ width: auto;
1373
+ margin-inline: 1px;
1374
+ }
1375
+
1376
+ /* ---- text ---- */
1377
+ :is(pont2-prim-button-group-text, [data-pont2-button-group-text]) {
1378
+ box-sizing: border-box;
1379
+ display: flex;
1380
+ align-items: center;
1381
+ gap: 0.5rem;
1382
+ margin: 0;
1383
+ padding: 0 0.625rem;
1384
+ border: 1px solid var(--pont2-border);
1385
+ border-radius: var(--pont2-radius-md);
1386
+ background-color: var(--pont2-muted);
1387
+ font-size: var(--pont2-text-sm);
1388
+ line-height: var(--pont2-text-sm--line-height);
1389
+ font-weight: var(--pont2-font-weight-medium);
1390
+ --pont2-shadow: var(--pont2-shadow-xs);
1391
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
1392
+ }
1393
+ :is(pont2-prim-button-group-text, [data-pont2-button-group-text]) svg {
1394
+ pointer-events: none;
1395
+ }
1396
+ :is(pont2-prim-button-group-text, [data-pont2-button-group-text]) svg:not([class*="size-"]) {
1397
+ width: 1rem;
1398
+ height: 1rem;
1399
+ }
1400
+ }
1401
+
1402
+ /* ../primitives/card/card.css */
1403
+ /*
1404
+ * Card. shadcn (Base UI, Vega):
1405
+ * card: "group/card flex flex-col" + .cn-card "ring-foreground/10 bg-card text-card-foreground
1406
+ * gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm shadow-xs ring-1
1407
+ * [--card-spacing:--spacing(6)] has-[>img:first-child]:pt-0
1408
+ * data-[size=sm]:[--card-spacing:--spacing(4)] *:[img:first-child]:rounded-t-xl
1409
+ * *:[img:last-child]:rounded-b-xl"
1410
+ * header: "group/card-header @container/card-header grid auto-rows-min items-start
1411
+ * has-data-[slot=card-action]:grid-cols-[1fr_auto]
1412
+ * has-data-[slot=card-description]:grid-rows-[auto_auto]"
1413
+ * + "gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing)"
1414
+ * title: "text-base leading-normal font-medium group-data-[size=sm]/card:text-sm"
1415
+ * description: "text-muted-foreground text-sm"
1416
+ * action: "col-start-2 row-span-2 row-start-1 self-start justify-self-end"
1417
+ * content: "px-(--card-spacing)"
1418
+ * footer: "flex items-center" + "rounded-b-xl px-(--card-spacing) [.border-t]:pt-(--card-spacing)"
1419
+ *
1420
+ * `[.border-b]` / `[.border-t]` are Tailwind class hooks in shadcn; pont2 keeps
1421
+ * them (`.border-b`) and also accepts `data-border` for non-Tailwind apps.
1422
+ */
1423
+ @layer pont2.primitives {
1424
+ :is(pont2-prim-card, [data-pont2-card]) {
1425
+ --pont2-card-spacing: 1.5rem;
1426
+ box-sizing: border-box;
1427
+ display: flex;
1428
+ flex-direction: column;
1429
+ gap: var(--pont2-card-spacing);
1430
+ margin: 0;
1431
+ padding-block: var(--pont2-card-spacing);
1432
+ overflow: hidden;
1433
+ border-radius: var(--pont2-radius-xl);
1434
+ background-color: var(--pont2-card);
1435
+ color: var(--pont2-card-foreground);
1436
+ font-size: var(--pont2-text-sm);
1437
+ line-height: var(--pont2-text-sm--line-height);
1438
+ --pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
1439
+ --pont2-shadow: var(--pont2-shadow-xs);
1440
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
1441
+ }
1442
+
1443
+ :is(pont2-prim-card, [data-pont2-card]):is([data-size="sm"], [size="sm"]) {
1444
+ --pont2-card-spacing: 1rem;
1445
+ }
1446
+
1447
+ :is(pont2-prim-card, [data-pont2-card]):has(> img:first-child) {
1448
+ padding-top: 0;
1449
+ }
1450
+ :is(pont2-prim-card, [data-pont2-card]) > img:first-child {
1451
+ border-top-left-radius: var(--pont2-radius-xl);
1452
+ border-top-right-radius: var(--pont2-radius-xl);
1453
+ }
1454
+ :is(pont2-prim-card, [data-pont2-card]) > img:last-child {
1455
+ border-bottom-left-radius: var(--pont2-radius-xl);
1456
+ border-bottom-right-radius: var(--pont2-radius-xl);
1457
+ }
1458
+
1459
+ :is(pont2-prim-card-header, [data-pont2-card-header]) {
1460
+ box-sizing: border-box;
1461
+ container-type: inline-size;
1462
+ display: grid;
1463
+ grid-auto-rows: min-content;
1464
+ align-items: start;
1465
+ gap: 0.25rem;
1466
+ padding-inline: var(--pont2-card-spacing);
1467
+ border-top-left-radius: var(--pont2-radius-xl);
1468
+ border-top-right-radius: var(--pont2-radius-xl);
1469
+ }
1470
+ :is(pont2-prim-card-header, [data-pont2-card-header]):has([data-slot="card-action"]) {
1471
+ grid-template-columns: 1fr auto;
1472
+ }
1473
+ :is(pont2-prim-card-header, [data-pont2-card-header]):has([data-slot="card-description"]) {
1474
+ grid-template-rows: auto auto;
1475
+ }
1476
+ :is(pont2-prim-card-header, [data-pont2-card-header]):is(.border-b, [data-border~="bottom"]) {
1477
+ padding-bottom: var(--pont2-card-spacing);
1478
+ }
1479
+
1480
+ :is(pont2-prim-card-title, [data-pont2-card-title]) {
1481
+ display: block;
1482
+ font-size: var(--pont2-text-base);
1483
+ line-height: var(--pont2-leading-normal);
1484
+ font-weight: var(--pont2-font-weight-medium);
1485
+ }
1486
+ :is(pont2-prim-card, [data-pont2-card])[data-size="sm"] :is(pont2-prim-card-title, [data-pont2-card-title]) {
1487
+ font-size: var(--pont2-text-sm);
1488
+ }
1489
+
1490
+ :is(pont2-prim-card-description, [data-pont2-card-description]) {
1491
+ display: block;
1492
+ color: var(--pont2-muted-foreground);
1493
+ font-size: var(--pont2-text-sm);
1494
+ line-height: var(--pont2-text-sm--line-height);
1495
+ }
1496
+
1497
+ :is(pont2-prim-card-action, [data-pont2-card-action]) {
1498
+ display: block;
1499
+ grid-column-start: 2;
1500
+ grid-row: 1 / span 2;
1501
+ align-self: start;
1502
+ justify-self: end;
1503
+ }
1504
+
1505
+ :is(pont2-prim-card-content, [data-pont2-card-content]) {
1506
+ display: block;
1507
+ padding-inline: var(--pont2-card-spacing);
1508
+ }
1509
+
1510
+ :is(pont2-prim-card-footer, [data-pont2-card-footer]) {
1511
+ box-sizing: border-box;
1512
+ display: flex;
1513
+ align-items: center;
1514
+ padding-inline: var(--pont2-card-spacing);
1515
+ border-bottom-left-radius: var(--pont2-radius-xl);
1516
+ border-bottom-right-radius: var(--pont2-radius-xl);
1517
+ }
1518
+ :is(pont2-prim-card-footer, [data-pont2-card-footer]):is(.border-t, [data-border~="top"]) {
1519
+ padding-top: var(--pont2-card-spacing);
1520
+ }
1521
+
1522
+ /* `border-b` / `border-t` on header/footer, for apps without Tailwind */
1523
+ :is(pont2-prim-card-header, [data-pont2-card-header])[data-border~="bottom"] {
1524
+ border-bottom: 1px solid var(--pont2-border);
1525
+ }
1526
+ :is(pont2-prim-card-footer, [data-pont2-card-footer])[data-border~="top"] {
1527
+ border-top: 1px solid var(--pont2-border);
1528
+ }
1529
+ }
1530
+
1531
+ /* ../primitives/empty/empty.css */
1532
+ /*
1533
+ * Empty. shadcn (Base UI, Vega):
1534
+ * empty: "flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance"
1535
+ * + "gap-4 rounded-lg border-dashed p-12"
1536
+ * (border-dashed sets only the style: the border is 0 wide unless you add one, as in shadcn)
1537
+ * header: "flex max-w-sm flex-col items-center" + "gap-2"
1538
+ * media: "flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0" + "mb-2"
1539
+ * media icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg
1540
+ * [&_svg:not([class*='size-'])]:size-6"
1541
+ * title: "text-lg font-medium tracking-tight"
1542
+ * description: "text-muted-foreground text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary"
1543
+ * content: "flex w-full max-w-sm min-w-0 flex-col items-center text-balance" + "gap-4 text-sm"
1544
+ */
1545
+ @layer pont2.primitives {
1546
+ :is(pont2-prim-empty, [data-pont2-empty]) {
1547
+ box-sizing: border-box;
1548
+ display: flex;
1549
+ flex: 1 1 0%;
1550
+ flex-direction: column;
1551
+ align-items: center;
1552
+ justify-content: center;
1553
+ gap: 1rem;
1554
+ width: 100%;
1555
+ min-width: 0;
1556
+ margin: 0;
1557
+ padding: 3rem;
1558
+ border: 0 dashed var(--pont2-border);
1559
+ border-radius: var(--pont2-radius-lg);
1560
+ text-align: center;
1561
+ text-wrap: balance;
1562
+ }
1563
+
1564
+ :is(pont2-prim-empty-header, [data-pont2-empty-header]) {
1565
+ display: flex;
1566
+ flex-direction: column;
1567
+ align-items: center;
1568
+ gap: 0.5rem;
1569
+ max-width: 24rem;
1570
+ }
1571
+
1572
+ :is(pont2-prim-empty-media, [data-pont2-empty-media]) {
1573
+ box-sizing: border-box;
1574
+ display: flex;
1575
+ flex-shrink: 0;
1576
+ align-items: center;
1577
+ justify-content: center;
1578
+ margin-bottom: 0.5rem;
1579
+ background-color: transparent;
1580
+ }
1581
+ :is(pont2-prim-empty-media, [data-pont2-empty-media]) svg {
1582
+ pointer-events: none;
1583
+ flex-shrink: 0;
1584
+ }
1585
+ [data-pont2-empty-media][data-variant="icon"] {
1586
+ width: 2.5rem;
1587
+ height: 2.5rem;
1588
+ border-radius: var(--pont2-radius-lg);
1589
+ background-color: var(--pont2-muted);
1590
+ color: var(--pont2-foreground);
1591
+ }
1592
+ [data-pont2-empty-media][data-variant="icon"] svg:not([class*="size-"]) {
1593
+ width: 1.5rem;
1594
+ height: 1.5rem;
1595
+ }
1596
+
1597
+ :is(pont2-prim-empty-title, [data-pont2-empty-title]) {
1598
+ display: block;
1599
+ font-size: var(--pont2-text-lg);
1600
+ line-height: var(--pont2-text-lg--line-height);
1601
+ font-weight: var(--pont2-font-weight-medium);
1602
+ letter-spacing: -0.025em;
1603
+ }
1604
+
1605
+ :is(pont2-prim-empty-description, [data-pont2-empty-description]) {
1606
+ display: block;
1607
+ color: var(--pont2-muted-foreground);
1608
+ font-size: var(--pont2-text-sm);
1609
+ line-height: 1.625;
1610
+ }
1611
+ :is(pont2-prim-empty-description, [data-pont2-empty-description]) > a {
1612
+ color: inherit;
1613
+ text-decoration-line: underline;
1614
+ text-underline-offset: 4px;
1615
+ }
1616
+ :is(pont2-prim-empty-description, [data-pont2-empty-description]) > a:hover {
1617
+ color: var(--pont2-primary);
1618
+ }
1619
+
1620
+ :is(pont2-prim-empty-content, [data-pont2-empty-content]) {
1621
+ display: flex;
1622
+ flex-direction: column;
1623
+ align-items: center;
1624
+ gap: 1rem;
1625
+ width: 100%;
1626
+ max-width: 24rem;
1627
+ min-width: 0;
1628
+ font-size: var(--pont2-text-sm);
1629
+ line-height: var(--pont2-text-sm--line-height);
1630
+ text-wrap: balance;
1631
+ }
1632
+ }
1633
+
1634
+ /* ../primitives/field/field.css */
1635
+ /*
1636
+ * Field. shadcn (Base UI, Vega), per part:
1637
+ * field-set: "flex flex-col" + "gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3"
1638
+ * field-legend: "mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base"
1639
+ * field-group: "group/field-group @container/field-group flex w-full flex-col"
1640
+ * + "gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4"
1641
+ * field: "group/field flex w-full" + "data-[invalid=true]:text-destructive gap-3"
1642
+ * vertical: "flex-col *:w-full [&>.sr-only]:w-auto"
1643
+ * horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start
1644
+ * *:data-[slot=field-label]:flex-auto
1645
+ * has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
1646
+ * responsive: vertical below the field-group's @md (28rem) container width, horizontal above
1647
+ * field-content:"group/field-content flex flex-1 flex-col leading-snug" + "gap-1"
1648
+ * field-label: Label + "group/field-label peer/field-label flex w-fit has-[>[data-slot=field]]:w-full
1649
+ * has-[>[data-slot=field]]:flex-col" + .cn-field-label (choice-card styles)
1650
+ * field-title: "flex w-fit items-center" + "gap-2 leading-snug text-sm font-medium group-data-[disabled=true]/field:opacity-50"
1651
+ * description: "leading-normal font-normal group-has-data-horizontal/field:text-balance last:mt-0 nth-last-2:-mt-1
1652
+ * [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary"
1653
+ * + "text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5"
1654
+ * separator: "relative" + "-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2";
1655
+ * its Separator "absolute inset-0 top-1/2", its span "relative mx-auto block w-fit bg-background px-2 text-muted-foreground"
1656
+ * error: "font-normal" + "text-destructive text-sm"
1657
+ *
1658
+ * Roles/state: Base UI checkbox/radio expose role through internals, so
1659
+ * `[role=checkbox]` cannot match them; pont2 also matches their data-slot.
1660
+ * `data-disabled` / `data-invalid` accept shadcn's `="true"` and Base UI's presence form.
1661
+ */
1662
+ @layer pont2.primitives {
1663
+ /* ---------------- FieldSet / FieldLegend (native) ---------------- */
1664
+ [data-pont2-field-set] {
1665
+ box-sizing: border-box;
1666
+ display: flex;
1667
+ flex-direction: column;
1668
+ gap: 1.5rem;
1669
+ min-inline-size: 0;
1670
+ margin: 0;
1671
+ padding: 0;
1672
+ border: 0;
1673
+ }
1674
+ [data-pont2-field-set]:has(> :is([data-slot="checkbox-group"], [data-slot="radio-group"])) {
1675
+ gap: 0.75rem;
1676
+ }
1677
+
1678
+ [data-pont2-field-legend] {
1679
+ margin: 0 0 0.75rem;
1680
+ padding: 0;
1681
+ font-weight: var(--pont2-font-weight-medium);
1682
+ font-size: var(--pont2-text-base);
1683
+ line-height: var(--pont2-text-base--line-height);
1684
+ }
1685
+ [data-pont2-field-legend][data-variant="label"] {
1686
+ font-size: var(--pont2-text-sm);
1687
+ line-height: var(--pont2-text-sm--line-height);
1688
+ }
1689
+
1690
+ /* ---------------- FieldGroup ---------------- */
1691
+ :is(pont2-prim-field-group, [data-pont2-field-group]) {
1692
+ box-sizing: border-box;
1693
+ container-type: inline-size;
1694
+ container-name: field-group;
1695
+ display: flex;
1696
+ flex-direction: column;
1697
+ gap: 1.75rem;
1698
+ width: 100%;
1699
+ }
1700
+ :is(pont2-prim-field-group, [data-pont2-field-group])[data-slot="checkbox-group"] {
1701
+ gap: 0.75rem;
1702
+ }
1703
+ :is(pont2-prim-field-group, [data-pont2-field-group]) > [data-slot="field-group"] {
1704
+ gap: 1rem;
1705
+ }
1706
+
1707
+ /* ---------------- Field ---------------- */
1708
+ :is(pont2-prim-field, [data-pont2-field]) {
1709
+ box-sizing: border-box;
1710
+ display: flex;
1711
+ flex-direction: column;
1712
+ gap: 0.75rem;
1713
+ width: 100%;
1714
+ }
1715
+ :is(pont2-prim-field, [data-pont2-field]):is([data-invalid]:not([data-invalid="false"])) {
1716
+ color: var(--pont2-destructive);
1717
+ }
1718
+
1719
+ /* vertical (default) and responsive below @md */
1720
+ :is(pont2-prim-field, [data-pont2-field]):is(:not([data-orientation]), [data-orientation="vertical"], [data-orientation="responsive"]) > * {
1721
+ width: 100%;
1722
+ }
1723
+ :is(pont2-prim-field, [data-pont2-field]):is(:not([data-orientation]), [data-orientation="vertical"], [data-orientation="responsive"]) > :is(.sr-only, [data-pont2-sr-only]) {
1724
+ width: auto;
1725
+ }
1726
+
1727
+ /* horizontal */
1728
+ [data-pont2-field][data-orientation="horizontal"] {
1729
+ flex-direction: row;
1730
+ align-items: center;
1731
+ }
1732
+ [data-pont2-field][data-orientation="horizontal"]:has(> [data-slot="field-content"]) {
1733
+ align-items: flex-start;
1734
+ }
1735
+ [data-pont2-field][data-orientation="horizontal"] > [data-slot="field-label"] {
1736
+ flex: 1 1 auto;
1737
+ }
1738
+ [data-pont2-field][data-orientation="horizontal"]:has(> [data-slot="field-content"])
1739
+ > :is([role="checkbox"], [role="radio"], [data-slot="checkbox"], [data-slot="radio-group-item"]) {
1740
+ margin-top: 1px;
1741
+ }
1742
+
1743
+ @container field-group (width >= 28rem) {
1744
+ [data-pont2-field][data-orientation="responsive"] {
1745
+ flex-direction: row;
1746
+ align-items: center;
1747
+ }
1748
+ [data-pont2-field][data-orientation="responsive"] > * {
1749
+ width: auto;
1750
+ }
1751
+ [data-pont2-field][data-orientation="responsive"]:has(> [data-slot="field-content"]) {
1752
+ align-items: flex-start;
1753
+ }
1754
+ [data-pont2-field][data-orientation="responsive"] > [data-slot="field-label"] {
1755
+ flex: 1 1 auto;
1756
+ }
1757
+ [data-pont2-field][data-orientation="responsive"]:has(> [data-slot="field-content"])
1758
+ > :is([role="checkbox"], [role="radio"], [data-slot="checkbox"], [data-slot="radio-group-item"]) {
1759
+ margin-top: 1px;
1760
+ }
1761
+ }
1762
+
1763
+ /* ---------------- FieldContent ---------------- */
1764
+ :is(pont2-prim-field-content, [data-pont2-field-content]) {
1765
+ display: flex;
1766
+ flex: 1 1 0%;
1767
+ flex-direction: column;
1768
+ gap: 0.25rem;
1769
+ line-height: var(--pont2-leading-snug);
1770
+ }
1771
+
1772
+ /* ---------------- FieldLabel (native label; Label recipe applies too) ---------------- */
1773
+ [data-pont2-field-label] {
1774
+ display: flex;
1775
+ width: fit-content;
1776
+ gap: 0.5rem;
1777
+ line-height: var(--pont2-leading-snug);
1778
+ }
1779
+ [data-pont2-field][data-disabled]:not([data-disabled="false"]) [data-pont2-field-label],
1780
+ [data-pont2-field][data-disabled]:not([data-disabled="false"]) [data-pont2-field-title] {
1781
+ opacity: 0.5;
1782
+ }
1783
+
1784
+ /* Choice card: a FieldLabel that wraps a whole Field */
1785
+ [data-pont2-field-label]:has(> [data-slot="field"]) {
1786
+ width: 100%;
1787
+ flex-direction: column;
1788
+ border: 1px solid var(--pont2-border);
1789
+ border-radius: var(--pont2-radius-md);
1790
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
1791
+ }
1792
+ [data-pont2-field-label]:has(> [data-slot="field"]):not(:has(:disabled, [data-disabled])):hover {
1793
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
1794
+ }
1795
+ [data-pont2-field-label]:has(> [data-slot="field"]):has(:focus-visible) {
1796
+ border-color: var(--pont2-ring);
1797
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
1798
+ }
1799
+ [data-pont2-field-label] > [data-slot="field"] {
1800
+ padding: 0.75rem;
1801
+ }
1802
+ [data-pont2-field-label]:has([data-checked]:not([data-checked="false"])) {
1803
+ background-color: color-mix(in oklab, var(--pont2-primary) 5%, transparent);
1804
+ border-color: color-mix(in oklab, var(--pont2-primary) 30%, transparent);
1805
+ }
1806
+ :where(.dark, [data-theme="dark"]) [data-pont2-field-label]:has([data-checked]:not([data-checked="false"])) {
1807
+ background-color: color-mix(in oklab, var(--pont2-primary) 10%, transparent);
1808
+ border-color: color-mix(in oklab, var(--pont2-primary) 20%, transparent);
1809
+ }
1810
+
1811
+ /* ---------------- FieldTitle ---------------- */
1812
+ :is(pont2-prim-field-title, [data-pont2-field-title]) {
1813
+ display: flex;
1814
+ width: fit-content;
1815
+ align-items: center;
1816
+ gap: 0.5rem;
1817
+ font-size: var(--pont2-text-sm);
1818
+ line-height: var(--pont2-leading-snug);
1819
+ font-weight: var(--pont2-font-weight-medium);
1820
+ }
1821
+
1822
+ /* ---------------- FieldDescription ---------------- */
1823
+ :is(pont2-prim-field-description, [data-pont2-field-description]) {
1824
+ display: block;
1825
+ margin: 0;
1826
+ color: var(--pont2-muted-foreground);
1827
+ text-align: left;
1828
+ font-size: var(--pont2-text-sm);
1829
+ line-height: var(--pont2-leading-normal);
1830
+ font-weight: var(--pont2-font-weight-normal);
1831
+ }
1832
+ :is(pont2-prim-field-description, [data-pont2-field-description]):nth-last-child(2) {
1833
+ margin-top: -0.25rem;
1834
+ }
1835
+ :is(pont2-prim-field-description, [data-pont2-field-description]):last-child {
1836
+ margin-top: 0;
1837
+ }
1838
+ [data-variant="legend"] + :is(pont2-prim-field-description, [data-pont2-field-description]) {
1839
+ margin-top: -0.375rem;
1840
+ }
1841
+ [data-pont2-field]:is([data-orientation="horizontal"], [data-orientation="responsive"]) :is(pont2-prim-field-description, [data-pont2-field-description]) {
1842
+ text-wrap: balance;
1843
+ }
1844
+ :is(pont2-prim-field-description, [data-pont2-field-description]) > a {
1845
+ color: inherit;
1846
+ text-decoration-line: underline;
1847
+ text-underline-offset: 4px;
1848
+ }
1849
+ :is(pont2-prim-field-description, [data-pont2-field-description]) > a:hover {
1850
+ color: var(--pont2-primary);
1851
+ }
1852
+
1853
+ /* ---------------- FieldSeparator ---------------- */
1854
+ :is(pont2-prim-field-separator, [data-pont2-field-separator]) {
1855
+ box-sizing: border-box;
1856
+ position: relative;
1857
+ display: flex;
1858
+ align-items: center;
1859
+ height: 1.25rem;
1860
+ margin-block: -0.5rem;
1861
+ color: var(--pont2-muted-foreground);
1862
+ font-size: var(--pont2-text-sm);
1863
+ line-height: var(--pont2-text-sm--line-height);
1864
+ white-space: nowrap;
1865
+ }
1866
+ :is(pont2-prim-field-separator, [data-pont2-field-separator])::before,
1867
+ :is(pont2-prim-field-separator, [data-pont2-field-separator])::after {
1868
+ content: "";
1869
+ flex: 1 1 0%;
1870
+ height: 1px;
1871
+ background-color: var(--pont2-border);
1872
+ }
1873
+ :is(pont2-prim-field-separator, [data-pont2-field-separator])[data-content="true"] {
1874
+ column-gap: 0.5rem;
1875
+ }
1876
+ :is(pont2-prim-field-separator, [data-pont2-field-separator]):not([data-content="true"])::after {
1877
+ display: none;
1878
+ }
1879
+ [data-slot="field-group"][data-variant="outline"] :is(pont2-prim-field-separator, [data-pont2-field-separator]) {
1880
+ margin-bottom: -0.5rem;
1881
+ }
1882
+
1883
+ /* ---------------- FieldError ---------------- */
1884
+ :is(pont2-prim-field-error, [data-pont2-field-error]) {
1885
+ display: block;
1886
+ color: var(--pont2-destructive);
1887
+ font-size: var(--pont2-text-sm);
1888
+ line-height: var(--pont2-text-sm--line-height);
1889
+ font-weight: var(--pont2-font-weight-normal);
1890
+ }
1891
+ :is(pont2-prim-field-error, [data-pont2-field-error]):empty {
1892
+ display: none;
1893
+ }
1894
+ :is(pont2-prim-field-error, [data-pont2-field-error]) > ul {
1895
+ display: flex;
1896
+ flex-direction: column;
1897
+ gap: 0.25rem;
1898
+ margin: 0 0 0 1rem;
1899
+ padding: 0;
1900
+ list-style: disc;
1901
+ }
1902
+ }
1903
+
1904
+ /* ../primitives/input-group/input-group.css */
1905
+ /*
1906
+ * InputGroup. shadcn (Base UI, Vega):
1907
+ * group: "group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto"
1908
+ * + .cn-input-group: "border-input dark:bg-input/30 h-9 rounded-md border shadow-xs transition-[color,box-shadow]
1909
+ * has-[[data-slot=input-group-control]:focus-visible]:border-ring …:ring-ring/50 …:ring-3
1910
+ * has-[[data-slot][aria-invalid=true]]:ring-destructive/20 …:border-destructive dark:…:ring-destructive/40 …:ring-3
1911
+ * in-data-[slot=combobox-content]:focus-within:border-inherit …:ring-0
1912
+ * has-[>[data-align=block-end|block-start]]:h-auto …:flex-col
1913
+ * has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3
1914
+ * has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5"
1915
+ * addon: "flex cursor-text items-center justify-center select-none" + "text-muted-foreground h-auto gap-2 py-1.5
1916
+ * text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)]
1917
+ * [&>svg:not([class*='size-'])]:size-4"
1918
+ * inline-start: "order-first" + "pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]"
1919
+ * inline-end: "order-last" + "pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]"
1920
+ * block-start: "order-first w-full justify-start" + "px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2"
1921
+ * block-end: "order-last w-full justify-start" + "px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
1922
+ * button: Button(ghost, xs) + "flex items-center shadow-none" + "gap-2 text-sm"
1923
+ * xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5"
1924
+ * icon-xs: "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0"
1925
+ * icon-sm: "size-8 p-0 has-[>svg]:p-0"
1926
+ * text: "flex items-center [&_svg]:pointer-events-none" + "text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4"
1927
+ * input: Input + "flex-1" + "rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent"
1928
+ * textarea:Textarea + "flex-1 resize-none" + same + "py-2"
1929
+ *
1930
+ * shadcn's `>input` / `>button` child selectors also match through a Tier 3
1931
+ * shell (`> [data-pont2-shell] > input`), since a shell has no box.
1932
+ */
1933
+ @layer pont2.primitives {
1934
+ :is(pont2-prim-input-group, [data-pont2-input-group]) {
1935
+ box-sizing: border-box;
1936
+ position: relative;
1937
+ display: flex;
1938
+ align-items: center;
1939
+ width: 100%;
1940
+ min-width: 0;
1941
+ height: 2.25rem;
1942
+ margin: 0;
1943
+ border: 1px solid var(--pont2-input);
1944
+ border-radius: var(--pont2-radius-md);
1945
+ outline: none;
1946
+ --pont2-shadow: var(--pont2-shadow-xs);
1947
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
1948
+ transition-property: color, box-shadow;
1949
+ transition-duration: var(--pont2-duration);
1950
+ transition-timing-function: var(--pont2-ease);
1951
+ }
1952
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-input-group, [data-pont2-input-group]) {
1953
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
1954
+ }
1955
+
1956
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has([data-slot="input-group-control"]:focus-visible) {
1957
+ border-color: var(--pont2-ring);
1958
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
1959
+ }
1960
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has([data-slot][aria-invalid="true"]) {
1961
+ border-color: var(--pont2-destructive);
1962
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
1963
+ }
1964
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-input-group, [data-pont2-input-group]):has([data-slot][aria-invalid="true"]) {
1965
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
1966
+ }
1967
+ [data-slot="combobox-content"] :is(pont2-prim-input-group, [data-pont2-input-group]):focus-within {
1968
+ border-color: inherit;
1969
+ --pont2-ring-shadow: 0 0 #0000;
1970
+ }
1971
+
1972
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> textarea, > [data-pont2-shell] > textarea) {
1973
+ height: auto;
1974
+ }
1975
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-start"], > [data-align="block-end"]) {
1976
+ height: auto;
1977
+ flex-direction: column;
1978
+ }
1979
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-end"]) > input,
1980
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-end"]) > [data-pont2-shell] > input {
1981
+ padding-top: 0.75rem;
1982
+ }
1983
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-start"]) > input,
1984
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="block-start"]) > [data-pont2-shell] > input {
1985
+ padding-bottom: 0.75rem;
1986
+ }
1987
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-end"]) > input,
1988
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-end"]) > [data-pont2-shell] > input {
1989
+ padding-right: 0.375rem;
1990
+ }
1991
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-start"]) > input,
1992
+ :is(pont2-prim-input-group, [data-pont2-input-group]):has(> [data-align="inline-start"]) > [data-pont2-shell] > input {
1993
+ padding-left: 0.375rem;
1994
+ }
1995
+
1996
+ /* ---------------- Addon ---------------- */
1997
+ :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) {
1998
+ box-sizing: border-box;
1999
+ display: flex;
2000
+ align-items: center;
2001
+ justify-content: center;
2002
+ gap: 0.5rem;
2003
+ height: auto;
2004
+ padding-block: 0.375rem;
2005
+ cursor: text;
2006
+ user-select: none;
2007
+ color: var(--pont2-muted-foreground);
2008
+ font-size: var(--pont2-text-sm);
2009
+ line-height: var(--pont2-text-sm--line-height);
2010
+ font-weight: var(--pont2-font-weight-medium);
2011
+ order: -9999;
2012
+ padding-left: 0.5rem;
2013
+ }
2014
+ [data-pont2-input-group]:is([data-disabled="true"], [data-disabled=""]) :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) {
2015
+ opacity: 0.5;
2016
+ }
2017
+ :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) > :is(kbd, pont2-prim-kbd, pont2-kbd, [data-pont2-kbd]) {
2018
+ border-radius: calc(var(--pont2-radius) - 5px);
2019
+ }
2020
+ :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]) > svg:not([class*="size-"]) {
2021
+ width: 1rem;
2022
+ height: 1rem;
2023
+ }
2024
+
2025
+ :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]):has(> button, > [data-pont2-shell] > button):is(:not([data-align]), [data-align="inline-start"]) {
2026
+ margin-left: -0.25rem;
2027
+ }
2028
+ :is(pont2-prim-input-group-addon, [data-pont2-input-group-addon]):has(> :is(kbd, pont2-prim-kbd, pont2-kbd, [data-pont2-kbd])):is(:not([data-align]), [data-align="inline-start"]) {
2029
+ margin-left: -0.15rem;
2030
+ }
2031
+
2032
+ [data-pont2-input-group-addon][data-align="inline-end"] {
2033
+ order: 9999;
2034
+ padding-left: 0;
2035
+ padding-right: 0.5rem;
2036
+ }
2037
+ [data-pont2-input-group-addon][data-align="inline-end"]:has(> button, > [data-pont2-shell] > button) {
2038
+ margin-right: -0.25rem;
2039
+ }
2040
+ [data-pont2-input-group-addon][data-align="inline-end"]:has(> :is(kbd, pont2-prim-kbd, pont2-kbd, [data-pont2-kbd])) {
2041
+ margin-right: -0.15rem;
2042
+ }
2043
+
2044
+ [data-pont2-input-group-addon]:is([data-align="block-start"], [data-align="block-end"]) {
2045
+ width: 100%;
2046
+ justify-content: flex-start;
2047
+ padding-inline: 0.625rem;
2048
+ }
2049
+ [data-pont2-input-group-addon][data-align="block-start"] {
2050
+ order: -9999;
2051
+ padding-top: 0.5rem;
2052
+ }
2053
+ [data-pont2-input-group-addon][data-align="block-start"]:is(.border-b, [data-border~="bottom"]) {
2054
+ padding-bottom: 0.5rem;
2055
+ }
2056
+ [data-pont2-input-group-addon][data-align="block-end"] {
2057
+ order: 9999;
2058
+ padding-bottom: 0.5rem;
2059
+ }
2060
+ [data-pont2-input-group-addon][data-align="block-end"]:is(.border-t, [data-border~="top"]) {
2061
+ padding-top: 0.5rem;
2062
+ }
2063
+ [data-pont2-input-group-addon][data-border~="bottom"] {
2064
+ border-bottom: 1px solid var(--pont2-border);
2065
+ }
2066
+ [data-pont2-input-group-addon][data-border~="top"] {
2067
+ border-top: 1px solid var(--pont2-border);
2068
+ }
2069
+
2070
+ /* ---------------- Text ---------------- */
2071
+ :is(pont2-prim-input-group-text, [data-pont2-input-group-text]) {
2072
+ display: flex;
2073
+ align-items: center;
2074
+ gap: 0.5rem;
2075
+ color: var(--pont2-muted-foreground);
2076
+ font-size: var(--pont2-text-sm);
2077
+ line-height: var(--pont2-text-sm--line-height);
2078
+ }
2079
+ :is(pont2-prim-input-group-text, [data-pont2-input-group-text]) svg {
2080
+ pointer-events: none;
2081
+ }
2082
+ :is(pont2-prim-input-group-text, [data-pont2-input-group-text]) svg:not([class*="size-"]) {
2083
+ width: 1rem;
2084
+ height: 1rem;
2085
+ }
2086
+
2087
+ /* ---------------- Controls ---------------- */
2088
+ [data-pont2-input-group-input],
2089
+ [data-pont2-input-group-textarea] {
2090
+ flex: 1 1 0%;
2091
+ border: 0;
2092
+ border-radius: 0;
2093
+ background-color: transparent;
2094
+ --pont2-shadow: 0 0 #0000;
2095
+ --pont2-ring-shadow: 0 0 #0000;
2096
+ }
2097
+ :where(.dark, [data-theme="dark"]) :is([data-pont2-input-group-input], [data-pont2-input-group-textarea]) {
2098
+ background-color: transparent;
2099
+ }
2100
+ :is([data-pont2-input-group-input], [data-pont2-input-group-textarea]):is(:focus-visible, [aria-invalid="true"]) {
2101
+ --pont2-ring-shadow: 0 0 #0000;
2102
+ }
2103
+ [data-pont2-input-group-textarea] {
2104
+ resize: none;
2105
+ padding-block: 0.5rem;
2106
+ }
2107
+
2108
+ /* ---------------- Button ---------------- */
2109
+ [data-pont2-input-group-button][data-pont2-button] {
2110
+ display: flex;
2111
+ align-items: center;
2112
+ gap: 0.5rem;
2113
+ --pont2-shadow: 0 0 #0000;
2114
+ font-size: var(--pont2-text-sm);
2115
+ line-height: var(--pont2-text-sm--line-height);
2116
+ }
2117
+ [data-pont2-input-group-button][data-size="xs"] {
2118
+ height: 1.5rem;
2119
+ gap: 0.25rem;
2120
+ padding: 0 0.375rem;
2121
+ border-radius: calc(var(--pont2-radius) - 5px);
2122
+ font-size: var(--pont2-text-sm);
2123
+ line-height: var(--pont2-text-sm--line-height);
2124
+ }
2125
+ [data-pont2-input-group-button][data-size="xs"] > svg:not([class*="size-"]) {
2126
+ width: 0.875rem;
2127
+ height: 0.875rem;
2128
+ }
2129
+ [data-pont2-input-group-button][data-size="icon-xs"] {
2130
+ width: 1.5rem;
2131
+ height: 1.5rem;
2132
+ padding: 0;
2133
+ border-radius: calc(var(--pont2-radius) - 5px);
2134
+ }
2135
+ [data-pont2-input-group-button][data-size="icon-sm"] {
2136
+ width: 2rem;
2137
+ height: 2rem;
2138
+ padding: 0;
2139
+ }
2140
+ }
2141
+
2142
+ /* ../primitives/item/item.css */
2143
+ /*
2144
+ * Item. shadcn (Base UI, Vega):
2145
+ * group: "group/item-group flex w-full flex-col" + "gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2"
2146
+ * separator: Separator + "my-2"
2147
+ * item: "group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none
2148
+ * focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors"
2149
+ * + "[a]:hover:bg-muted rounded-md border text-sm"
2150
+ * variants: default "border-transparent" · outline "border-border" · muted "bg-muted/50 border-transparent"
2151
+ * sizes: default "gap-3.5 px-4 py-3.5" · sm "gap-2.5 px-3 py-2.5"
2152
+ * · xs "gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"
2153
+ * media: "flex shrink-0 items-center justify-center [&_svg]:pointer-events-none"
2154
+ * + "gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 …:self-start"
2155
+ * icon: "[&_svg:not([class*='size-'])]:size-4"
2156
+ * image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6
2157
+ * [&_img]:size-full [&_img]:object-cover"
2158
+ * content: "flex flex-1 flex-col [&+[data-slot=item-content]]:flex-none" + "gap-1 group-data-[size=xs]/item:gap-0"
2159
+ * title: "line-clamp-1 flex w-fit items-center" + "gap-2 text-sm leading-snug font-medium underline-offset-4"
2160
+ * description: "line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary"
2161
+ * + "text-muted-foreground text-left text-sm leading-normal group-data-[size=xs]/item:text-xs"
2162
+ * actions: "flex items-center" + "gap-2"
2163
+ * header/footer: "flex basis-full items-center justify-between" + "gap-2"
2164
+ */
2165
+ @layer pont2.primitives {
2166
+ :is(pont2-prim-item-group, [data-pont2-item-group]) {
2167
+ display: flex;
2168
+ flex-direction: column;
2169
+ gap: 1rem;
2170
+ width: 100%;
2171
+ }
2172
+ :is(pont2-prim-item-group, [data-pont2-item-group]):has([data-size="sm"]) {
2173
+ gap: 0.625rem;
2174
+ }
2175
+ :is(pont2-prim-item-group, [data-pont2-item-group]):has([data-size="xs"]) {
2176
+ gap: 0.5rem;
2177
+ }
2178
+
2179
+ :is(pont2-prim-item-separator, [data-pont2-item-separator]) {
2180
+ margin-block: 0.5rem;
2181
+ }
2182
+
2183
+ :is(pont2-prim-item, [data-pont2-item]) {
2184
+ box-sizing: border-box;
2185
+ display: flex;
2186
+ flex-wrap: wrap;
2187
+ align-items: center;
2188
+ width: 100%;
2189
+ gap: 0.875rem;
2190
+ margin: 0;
2191
+ padding: 0.875rem 1rem;
2192
+ border: 1px solid transparent;
2193
+ border-radius: var(--pont2-radius-md);
2194
+ color: inherit;
2195
+ font-size: var(--pont2-text-sm);
2196
+ line-height: var(--pont2-text-sm--line-height);
2197
+ text-decoration: none;
2198
+ outline: none;
2199
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
2200
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
2201
+ transition-duration: 100ms;
2202
+ transition-timing-function: var(--pont2-ease);
2203
+ }
2204
+ [data-pont2-item]:focus-visible {
2205
+ border-color: var(--pont2-ring);
2206
+ --pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
2207
+ }
2208
+ a[data-pont2-item]:hover {
2209
+ background-color: var(--pont2-muted);
2210
+ }
2211
+
2212
+ [data-pont2-item][data-variant="outline"] {
2213
+ border-color: var(--pont2-border);
2214
+ }
2215
+ [data-pont2-item][data-variant="muted"] {
2216
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
2217
+ }
2218
+
2219
+ [data-pont2-item][data-size="sm"] {
2220
+ gap: 0.625rem;
2221
+ padding: 0.625rem 0.75rem;
2222
+ }
2223
+ [data-pont2-item][data-size="xs"] {
2224
+ gap: 0.5rem;
2225
+ padding: 0.5rem 0.625rem;
2226
+ }
2227
+ [data-slot="dropdown-menu-content"] [data-pont2-item][data-size="xs"] {
2228
+ padding: 0;
2229
+ }
2230
+
2231
+ :is(pont2-prim-item-media, [data-pont2-item-media]) {
2232
+ box-sizing: border-box;
2233
+ display: flex;
2234
+ flex-shrink: 0;
2235
+ align-items: center;
2236
+ justify-content: center;
2237
+ gap: 0.5rem;
2238
+ }
2239
+ :is(pont2-prim-item-media, [data-pont2-item-media]) svg {
2240
+ pointer-events: none;
2241
+ }
2242
+ [data-pont2-item]:has([data-slot="item-description"]) :is(pont2-prim-item-media, [data-pont2-item-media]) {
2243
+ translate: 0 0.125rem;
2244
+ align-self: flex-start;
2245
+ }
2246
+ [data-pont2-item-media][data-variant="icon"] svg:not([class*="size-"]) {
2247
+ width: 1rem;
2248
+ height: 1rem;
2249
+ }
2250
+ [data-pont2-item-media][data-variant="image"] {
2251
+ width: 2.5rem;
2252
+ height: 2.5rem;
2253
+ overflow: hidden;
2254
+ border-radius: var(--pont2-radius-sm);
2255
+ }
2256
+ [data-pont2-item][data-size="sm"] [data-pont2-item-media][data-variant="image"] {
2257
+ width: 2rem;
2258
+ height: 2rem;
2259
+ }
2260
+ [data-pont2-item][data-size="xs"] [data-pont2-item-media][data-variant="image"] {
2261
+ width: 1.5rem;
2262
+ height: 1.5rem;
2263
+ }
2264
+ [data-pont2-item-media][data-variant="image"] img {
2265
+ display: block;
2266
+ width: 100%;
2267
+ height: 100%;
2268
+ max-width: none;
2269
+ object-fit: cover;
2270
+ }
2271
+
2272
+ :is(pont2-prim-item-content, [data-pont2-item-content]) {
2273
+ display: flex;
2274
+ flex: 1 1 0%;
2275
+ flex-direction: column;
2276
+ gap: 0.25rem;
2277
+ }
2278
+ :is(pont2-prim-item-content, [data-pont2-item-content]) + [data-slot="item-content"] {
2279
+ flex: none;
2280
+ }
2281
+ [data-pont2-item][data-size="xs"] :is(pont2-prim-item-content, [data-pont2-item-content]) {
2282
+ gap: 0;
2283
+ }
2284
+
2285
+ :is(pont2-prim-item-title, [data-pont2-item-title]) {
2286
+ display: flex;
2287
+ width: fit-content;
2288
+ align-items: center;
2289
+ gap: 0.5rem;
2290
+ overflow: hidden;
2291
+ -webkit-line-clamp: 1;
2292
+ -webkit-box-orient: vertical;
2293
+ font-size: var(--pont2-text-sm);
2294
+ line-height: var(--pont2-leading-snug);
2295
+ font-weight: var(--pont2-font-weight-medium);
2296
+ text-underline-offset: 4px;
2297
+ }
2298
+
2299
+ :is(pont2-prim-item-description, [data-pont2-item-description]) {
2300
+ display: -webkit-box;
2301
+ overflow: hidden;
2302
+ -webkit-line-clamp: 2;
2303
+ -webkit-box-orient: vertical;
2304
+ margin: 0;
2305
+ color: var(--pont2-muted-foreground);
2306
+ text-align: left;
2307
+ font-size: var(--pont2-text-sm);
2308
+ line-height: var(--pont2-leading-normal);
2309
+ font-weight: var(--pont2-font-weight-normal);
2310
+ }
2311
+ [data-pont2-item][data-size="xs"] :is(pont2-prim-item-description, [data-pont2-item-description]) {
2312
+ font-size: var(--pont2-text-xs);
2313
+ }
2314
+ :is(pont2-prim-item-description, [data-pont2-item-description]) > a {
2315
+ color: inherit;
2316
+ text-decoration-line: underline;
2317
+ text-underline-offset: 4px;
2318
+ }
2319
+ :is(pont2-prim-item-description, [data-pont2-item-description]) > a:hover {
2320
+ color: var(--pont2-primary);
2321
+ }
2322
+
2323
+ :is(pont2-prim-item-actions, [data-pont2-item-actions]) {
2324
+ display: flex;
2325
+ align-items: center;
2326
+ gap: 0.5rem;
2327
+ }
2328
+
2329
+ :is(pont2-prim-item-header, [data-pont2-item-header], pont2-prim-item-footer, [data-pont2-item-footer]) {
2330
+ display: flex;
2331
+ flex-basis: 100%;
2332
+ align-items: center;
2333
+ justify-content: space-between;
2334
+ gap: 0.5rem;
2335
+ }
2336
+ }
2337
+
2338
+ /* ../primitives/native-select/native-select.css */
2339
+ /*
2340
+ * NativeSelect. shadcn (Base UI, Vega):
2341
+ * wrapper: "group/native-select relative w-fit has-[select:disabled]:opacity-50"
2342
+ * select: "outline-none disabled:pointer-events-none disabled:cursor-not-allowed" + .cn-native-select
2343
+ * "border-input placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground
2344
+ * dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50
2345
+ * aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive
2346
+ * dark:aria-invalid:border-destructive/50 h-9 w-full min-w-0 appearance-none rounded-md border
2347
+ * bg-transparent py-1 pr-8 pl-2.5 text-sm shadow-xs transition-[color,box-shadow] select-none
2348
+ * focus-visible:ring-3 aria-invalid:ring-3 data-[size=sm]:h-8"
2349
+ * icon: "pointer-events-none absolute select-none" + "text-muted-foreground top-1/2 right-2.5 size-4 -translate-y-1/2"
2350
+ * (lucide ChevronDownIcon; pont2 draws it as the wrapper's ::after mask)
2351
+ * option / optgroup: "bg-[Canvas] text-[CanvasText]"
2352
+ */
2353
+ @layer pont2.primitives {
2354
+ :is(pont2-prim-native-select, pont2-native-select, [data-pont2-native-select-wrapper]) {
2355
+ box-sizing: border-box;
2356
+ position: relative;
2357
+ display: block;
2358
+ width: fit-content;
2359
+ }
2360
+ :is(pont2-prim-native-select, pont2-native-select, [data-pont2-native-select-wrapper]):has(select:disabled) {
2361
+ opacity: 0.5;
2362
+ }
2363
+ :is(pont2-prim-native-select, pont2-native-select, [data-pont2-native-select-wrapper])::after {
2364
+ --_pont2-native-select-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
2365
+ content: "";
2366
+ position: absolute;
2367
+ top: 50%;
2368
+ right: 0.625rem;
2369
+ width: 1rem;
2370
+ height: 1rem;
2371
+ translate: 0 -50%;
2372
+ pointer-events: none;
2373
+ user-select: none;
2374
+ background-color: var(--pont2-muted-foreground);
2375
+ -webkit-mask: var(--pont2-native-select-icon, var(--_pont2-native-select-default)) center / contain no-repeat;
2376
+ mask: var(--pont2-native-select-icon, var(--_pont2-native-select-default)) center / contain no-repeat;
2377
+ }
2378
+
2379
+ [data-pont2-native-select] {
2380
+ box-sizing: border-box;
2381
+ margin: 0;
2382
+ font-family: inherit;
2383
+ color: inherit;
2384
+ -webkit-appearance: none;
2385
+ appearance: none;
2386
+
2387
+ width: 100%;
2388
+ min-width: 0;
2389
+ height: 2.25rem;
2390
+ padding: 0.25rem 2rem 0.25rem 0.625rem;
2391
+ border: 1px solid var(--pont2-input);
2392
+ border-radius: var(--pont2-radius-md);
2393
+ background-color: transparent;
2394
+ font-size: var(--pont2-text-sm);
2395
+ line-height: var(--pont2-text-sm--line-height);
2396
+ user-select: none;
2397
+ outline: none;
2398
+ --pont2-shadow: var(--pont2-shadow-xs);
2399
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
2400
+ transition-property: color, box-shadow;
2401
+ transition-duration: var(--pont2-duration);
2402
+ transition-timing-function: var(--pont2-ease);
2403
+ }
2404
+ [data-pont2-native-select][data-size="sm"] {
2405
+ height: 2rem;
2406
+ }
2407
+ [data-pont2-native-select]::selection {
2408
+ background-color: var(--pont2-primary);
2409
+ color: var(--pont2-primary-foreground);
2410
+ }
2411
+ :where(.dark, [data-theme="dark"]) [data-pont2-native-select] {
2412
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
2413
+ }
2414
+ :where(.dark, [data-theme="dark"]) [data-pont2-native-select]:hover {
2415
+ background-color: color-mix(in oklab, var(--pont2-input) 50%, transparent);
2416
+ }
2417
+ [data-pont2-native-select]:focus-visible {
2418
+ border-color: var(--pont2-ring);
2419
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
2420
+ }
2421
+ [data-pont2-native-select][aria-invalid="true"] {
2422
+ border-color: var(--pont2-destructive);
2423
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
2424
+ }
2425
+ :where(.dark, [data-theme="dark"]) [data-pont2-native-select][aria-invalid="true"] {
2426
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
2427
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
2428
+ }
2429
+ [data-pont2-native-select]:disabled {
2430
+ pointer-events: none;
2431
+ cursor: not-allowed;
2432
+ }
2433
+ [data-pont2-native-select] :is(option, optgroup) {
2434
+ background-color: Canvas;
2435
+ color: CanvasText;
2436
+ }
2437
+ }
2438
+
2439
+ /* ../primitives/table/table.css */
2440
+ /*
2441
+ * Table. shadcn (Base UI, Vega):
2442
+ * container: "relative w-full overflow-x-auto"
2443
+ * table: "w-full caption-bottom text-sm"
2444
+ * header: "[&_tr]:border-b"
2445
+ * body: "[&_tr:last-child]:border-0"
2446
+ * footer: "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0"
2447
+ * row: "has-aria-expanded:bg-muted/50" + "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors"
2448
+ * (Base UI flavour also: "data-selected:bg-muted")
2449
+ * head: "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0"
2450
+ * cell: "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0"
2451
+ * caption: "text-muted-foreground mt-4 text-sm"
2452
+ *
2453
+ * Each part is selected two ways: structurally from the container
2454
+ * (`:is(pont2-prim-table, pont2-table) > table …`, works before upgrade / without JS) and by the
2455
+ * recipe attribute (`[data-pont2-table-row]`, works on any native table).
2456
+ * Checkbox cells also match pont2's form-associated checkbox, whose role lives
2457
+ * in ElementInternals and cannot be matched by `[role=checkbox]`.
2458
+ */
2459
+ @layer pont2.primitives {
2460
+ :is(pont2-prim-table, pont2-table, [data-pont2-table-container]) {
2461
+ box-sizing: border-box;
2462
+ position: relative;
2463
+ display: block;
2464
+ width: 100%;
2465
+ overflow-x: auto;
2466
+ }
2467
+
2468
+ :is(:is(pont2-prim-table, pont2-table) > table, [data-pont2-table]) {
2469
+ width: 100%;
2470
+ caption-side: bottom;
2471
+ border-collapse: collapse;
2472
+ text-indent: 0;
2473
+ border-color: inherit;
2474
+ font-size: var(--pont2-text-sm);
2475
+ line-height: var(--pont2-text-sm--line-height);
2476
+ }
2477
+
2478
+ :is(:is(pont2-prim-table, pont2-table) > table > thead, [data-pont2-table-header]) tr {
2479
+ border-bottom: 1px solid var(--pont2-border);
2480
+ }
2481
+ :is(:is(pont2-prim-table, pont2-table) > table > tbody, [data-pont2-table-body]) tr:last-child {
2482
+ border: 0;
2483
+ }
2484
+ :is(:is(pont2-prim-table, pont2-table) > table > tfoot, [data-pont2-table-footer]) {
2485
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
2486
+ border-top: 1px solid var(--pont2-border);
2487
+ font-weight: var(--pont2-font-weight-medium);
2488
+ }
2489
+ :is(:is(pont2-prim-table, pont2-table) > table > tfoot, [data-pont2-table-footer]) > tr:last-child {
2490
+ border-bottom-width: 0;
2491
+ }
2492
+
2493
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]) {
2494
+ border-bottom: 1px solid var(--pont2-border);
2495
+ transition-property: color, background-color, border-color;
2496
+ transition-duration: var(--pont2-duration);
2497
+ transition-timing-function: var(--pont2-ease);
2498
+ }
2499
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]):hover,
2500
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]):has([aria-expanded="true"]) {
2501
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
2502
+ }
2503
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr, [data-pont2-table-row]):is([data-state="selected"], [data-selected]:not([data-selected="false"])) {
2504
+ background-color: var(--pont2-muted);
2505
+ }
2506
+
2507
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr > th, [data-pont2-table-head]) {
2508
+ height: 2.5rem;
2509
+ padding: 0 0.5rem;
2510
+ color: var(--pont2-foreground);
2511
+ text-align: left;
2512
+ vertical-align: middle;
2513
+ font-weight: var(--pont2-font-weight-medium);
2514
+ white-space: nowrap;
2515
+ }
2516
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr > td, [data-pont2-table-cell]) {
2517
+ padding: 0.5rem;
2518
+ vertical-align: middle;
2519
+ white-space: nowrap;
2520
+ }
2521
+ :is(:is(pont2-prim-table, pont2-table) > table > * > tr > :is(th, td), [data-pont2-table-head], [data-pont2-table-cell]):has(
2522
+ [role="checkbox"],
2523
+ [data-slot="checkbox"]
2524
+ ) {
2525
+ padding-right: 0;
2526
+ }
2527
+
2528
+ :is(:is(pont2-prim-table, pont2-table) > table > caption, [data-pont2-table-caption]) {
2529
+ margin-top: 1rem;
2530
+ color: var(--pont2-muted-foreground);
2531
+ font-size: var(--pont2-text-sm);
2532
+ line-height: var(--pont2-text-sm--line-height);
2533
+ }
2534
+ }
2535
+
2536
+ /* --- end structural (A) --- */
2537
+
2538
+ /* --- widgets (B) --- */
2539
+ /* ../primitives/input-otp/input-otp.css */
2540
+ /*
2541
+ * InputOTP. shadcn (Base UI, Vega):
2542
+ * container: "flex items-center has-disabled:opacity-50" + .cn-input-otp (gap-2)
2543
+ * input: "disabled:cursor-not-allowed" (+ input-otp's own inline styles: absolutely
2544
+ * positioned over the slots, transparent text and caret)
2545
+ * group: "flex items-center" + .cn-input-otp-group (rounded-md, has-aria-invalid ring/border)
2546
+ * slot: "relative flex items-center justify-center data-[active=true]:z-10" + .cn-input-otp-slot
2547
+ * (dark:bg-input/30 border-input size-9 border-y border-r text-sm shadow-xs transition-all
2548
+ * first:rounded-l-md first:border-l last:rounded-r-md, active: border-ring ring-3 ring-ring/50,
2549
+ * aria-invalid: border-destructive, active+invalid ring-destructive/20)
2550
+ * caret: "pointer-events-none absolute inset-0 flex items-center justify-center"
2551
+ * caret line:.cn-input-otp-caret-line (animate-caret-blink bg-foreground h-4 w-px duration-1000)
2552
+ * separator: "flex items-center" + .cn-input-otp-separator (svg size-4)
2553
+ *
2554
+ * Slot invalid state: shadcn puts aria-invalid on each slot; pont2 also accepts it on the
2555
+ * InputOTP host, which mirrors it to the slots as data-invalid.
2556
+ */
2557
+ @keyframes pont2-caret-blink {
2558
+ 0%,
2559
+ 70%,
2560
+ 100% {
2561
+ opacity: 1;
2562
+ }
2563
+ 20%,
2564
+ 50% {
2565
+ opacity: 0;
2566
+ }
2567
+ }
2568
+
2569
+ @layer pont2.primitives {
2570
+ :is(pont2-prim-input-otp, [data-pont2-input-otp]) {
2571
+ box-sizing: border-box;
2572
+ position: relative;
2573
+ display: flex;
2574
+ width: fit-content;
2575
+ align-items: center;
2576
+ gap: 0.5rem;
2577
+ cursor: text;
2578
+ user-select: none;
2579
+ }
2580
+ :is(pont2-prim-input-otp, [data-pont2-input-otp]):has(:disabled) {
2581
+ opacity: 0.5;
2582
+ }
2583
+
2584
+ /* The real input, laid transparently over the slots (input-otp's inline styles). */
2585
+ [data-pont2-input-otp-input-wrapper] {
2586
+ position: absolute;
2587
+ inset: 0;
2588
+ z-index: 20;
2589
+ pointer-events: none;
2590
+ }
2591
+ [data-pont2-input-otp-input] {
2592
+ box-sizing: border-box;
2593
+ position: absolute;
2594
+ inset: 0;
2595
+ width: 100%;
2596
+ height: 100%;
2597
+ margin: 0;
2598
+ padding: 0;
2599
+ border: 0;
2600
+ outline: none;
2601
+ background: transparent;
2602
+ color: transparent;
2603
+ caret-color: transparent;
2604
+ font-family: monospace;
2605
+ font-size: 1px;
2606
+ letter-spacing: -0.5em;
2607
+ text-align: left;
2608
+ opacity: 1;
2609
+ pointer-events: all;
2610
+ -webkit-appearance: none;
2611
+ appearance: none;
2612
+ }
2613
+ [data-pont2-input-otp-input]::selection {
2614
+ background: transparent;
2615
+ }
2616
+ [data-pont2-input-otp-input]:disabled {
2617
+ cursor: not-allowed;
2618
+ }
2619
+
2620
+ :is(pont2-prim-input-otp-group, [data-pont2-input-otp-group]) {
2621
+ box-sizing: border-box;
2622
+ display: flex;
2623
+ align-items: center;
2624
+ border-radius: var(--pont2-radius-md);
2625
+ }
2626
+ :is(pont2-prim-input-otp-group, [data-pont2-input-otp-group]):has([aria-invalid="true"], [data-invalid]) {
2627
+ border-color: var(--pont2-destructive);
2628
+ box-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
2629
+ }
2630
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-input-otp-group, [data-pont2-input-otp-group]):has([aria-invalid="true"], [data-invalid]) {
2631
+ box-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
2632
+ }
2633
+
2634
+ :is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]) {
2635
+ box-sizing: border-box;
2636
+ position: relative;
2637
+ display: flex;
2638
+ align-items: center;
2639
+ justify-content: center;
2640
+ width: 2.25rem;
2641
+ height: 2.25rem;
2642
+ border-style: solid;
2643
+ border-color: var(--pont2-input);
2644
+ border-width: 1px 1px 1px 0;
2645
+ background-color: transparent;
2646
+ font-size: var(--pont2-text-sm);
2647
+ line-height: var(--pont2-text-sm--line-height);
2648
+ outline: none;
2649
+ --pont2-shadow: var(--pont2-shadow-xs);
2650
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
2651
+ transition-property: all;
2652
+ transition-duration: var(--pont2-duration);
2653
+ transition-timing-function: var(--pont2-ease);
2654
+ }
2655
+ :is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]):first-child {
2656
+ border-left-width: 1px;
2657
+ border-top-left-radius: var(--pont2-radius-md);
2658
+ border-bottom-left-radius: var(--pont2-radius-md);
2659
+ }
2660
+ :is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]):last-child {
2661
+ border-top-right-radius: var(--pont2-radius-md);
2662
+ border-bottom-right-radius: var(--pont2-radius-md);
2663
+ }
2664
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-input-otp-slot, [data-pont2-input-otp-slot]) {
2665
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
2666
+ }
2667
+
2668
+ [data-pont2-input-otp-slot][data-active="true"] {
2669
+ z-index: 10;
2670
+ border-color: var(--pont2-ring);
2671
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
2672
+ }
2673
+ [data-pont2-input-otp-slot]:is([aria-invalid="true"], [data-invalid]) {
2674
+ border-color: var(--pont2-destructive);
2675
+ }
2676
+ [data-pont2-input-otp-slot]:is([aria-invalid="true"], [data-invalid])[data-active="true"] {
2677
+ border-color: var(--pont2-destructive);
2678
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
2679
+ }
2680
+ :where(.dark, [data-theme="dark"]) [data-pont2-input-otp-slot]:is([aria-invalid="true"], [data-invalid])[data-active="true"] {
2681
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
2682
+ }
2683
+
2684
+ [data-pont2-input-otp-caret] {
2685
+ pointer-events: none;
2686
+ position: absolute;
2687
+ inset: 0;
2688
+ display: flex;
2689
+ align-items: center;
2690
+ justify-content: center;
2691
+ }
2692
+ [data-pont2-input-otp-caret-line] {
2693
+ width: 1px;
2694
+ height: 1rem;
2695
+ background-color: var(--pont2-foreground);
2696
+ animation: pont2-caret-blink 1s ease-out infinite;
2697
+ }
2698
+
2699
+ :is(pont2-prim-input-otp-separator, [data-pont2-input-otp-separator]) {
2700
+ display: flex;
2701
+ align-items: center;
2702
+ }
2703
+ :is(pont2-prim-input-otp-separator, [data-pont2-input-otp-separator]) svg:not([class*="size-"]) {
2704
+ width: 1rem;
2705
+ height: 1rem;
2706
+ }
2707
+ }
2708
+
2709
+ /* ../primitives/progress/progress.css */
2710
+ /*
2711
+ * Progress. shadcn (Base UI, Vega):
2712
+ * root: "flex flex-wrap gap-3" (.cn-progress-root)
2713
+ * track: "relative flex w-full items-center overflow-x-hidden" + .cn-progress-track (bg-muted h-1.5 rounded-full)
2714
+ * indicator: "h-full transition-all" + .cn-progress-indicator (bg-primary)
2715
+ * label: .cn-progress-label (text-sm font-medium)
2716
+ * value: .cn-progress-value (text-muted-foreground ml-auto text-sm tabular-nums)
2717
+ */
2718
+ @layer pont2.primitives {
2719
+ :is(pont2-prim-progress, [data-pont2-progress]) {
2720
+ box-sizing: border-box;
2721
+ display: flex;
2722
+ flex-wrap: wrap;
2723
+ gap: 0.75rem;
2724
+ }
2725
+
2726
+ [data-pont2-progress-track] {
2727
+ box-sizing: border-box;
2728
+ position: relative;
2729
+ display: flex;
2730
+ width: 100%;
2731
+ height: 0.375rem;
2732
+ align-items: center;
2733
+ overflow-x: hidden;
2734
+ border-radius: 9999px;
2735
+ background-color: var(--pont2-muted);
2736
+ }
2737
+
2738
+ [data-pont2-progress-indicator] {
2739
+ height: 100%;
2740
+ background-color: var(--pont2-primary);
2741
+ transition-property: all;
2742
+ transition-duration: var(--pont2-duration);
2743
+ transition-timing-function: var(--pont2-ease);
2744
+ }
2745
+
2746
+ :is(pont2-prim-progress-label, [data-pont2-progress-label]) {
2747
+ font-size: var(--pont2-text-sm);
2748
+ line-height: var(--pont2-text-sm--line-height);
2749
+ font-weight: var(--pont2-font-weight-medium);
2750
+ }
2751
+
2752
+ :is(pont2-prim-progress-value, [data-pont2-progress-value]) {
2753
+ margin-left: auto;
2754
+ color: var(--pont2-muted-foreground);
2755
+ font-size: var(--pont2-text-sm);
2756
+ line-height: var(--pont2-text-sm--line-height);
2757
+ font-variant-numeric: tabular-nums;
2758
+ }
2759
+ }
2760
+
2761
+ /* ../primitives/radio-group/radio-group.css */
2762
+ /*
2763
+ * RadioGroup. shadcn (Base UI, Vega):
2764
+ * group: "w-full" + .cn-radio-group "grid gap-3"
2765
+ * item: "group/radio-group-item peer relative aspect-square shrink-0 border outline-none
2766
+ * after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed
2767
+ * disabled:opacity-50" + .cn-radio-group-item
2768
+ * (border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground
2769
+ * data-checked:border-primary aria-invalid:… flex size-4 rounded-full focus-visible:ring-3 …)
2770
+ * indicator: .cn-radio-group-indicator "flex size-4 items-center justify-center"
2771
+ * icon: .cn-radio-group-indicator-icon "bg-primary-foreground absolute top-1/2 left-1/2 size-2
2772
+ * -translate-x-1/2 -translate-y-1/2 rounded-full"
2773
+ */
2774
+ @layer pont2.primitives {
2775
+ :is(pont2-prim-radio-group, [data-pont2-radio-group]) {
2776
+ box-sizing: border-box;
2777
+ display: grid;
2778
+ gap: 0.75rem;
2779
+ width: 100%;
2780
+ }
2781
+
2782
+ :is(pont2-prim-radio-group-item, [data-pont2-radio-group-item]) {
2783
+ box-sizing: border-box;
2784
+ position: relative;
2785
+ display: flex;
2786
+ flex-shrink: 0;
2787
+ aspect-ratio: 1 / 1;
2788
+ width: 1rem;
2789
+ height: 1rem;
2790
+ border: 1px solid var(--pont2-input);
2791
+ border-radius: 9999px;
2792
+ outline: none;
2793
+ color: inherit;
2794
+ --pont2-shadow: var(--pont2-shadow-xs);
2795
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
2796
+ }
2797
+
2798
+ :is(pont2-prim-radio-group-item, [data-pont2-radio-group-item])::after {
2799
+ content: "";
2800
+ position: absolute;
2801
+ inset: -0.5rem -0.75rem;
2802
+ }
2803
+
2804
+ :where(.dark, [data-theme="dark"]) :is(pont2-prim-radio-group-item, [data-pont2-radio-group-item]) {
2805
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
2806
+ }
2807
+
2808
+ [data-pont2-radio-group-item][data-checked] {
2809
+ background-color: var(--pont2-primary);
2810
+ color: var(--pont2-primary-foreground);
2811
+ border-color: var(--pont2-primary);
2812
+ }
2813
+
2814
+ [data-pont2-radio-group-item]:focus-visible {
2815
+ border-color: var(--pont2-ring);
2816
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
2817
+ }
2818
+
2819
+ /* aria-invalid may sit on the item or on the group */
2820
+ :is([data-pont2-radio-group-item][aria-invalid="true"], [data-pont2-radio-group][aria-invalid="true"] [data-pont2-radio-group-item]) {
2821
+ border-color: var(--pont2-destructive);
2822
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
2823
+ }
2824
+ :is([data-pont2-radio-group-item][aria-invalid="true"], [data-pont2-radio-group][aria-invalid="true"] [data-pont2-radio-group-item])[data-checked] {
2825
+ border-color: var(--pont2-primary);
2826
+ }
2827
+ :where(.dark, [data-theme="dark"]) :is([data-pont2-radio-group-item][aria-invalid="true"], [data-pont2-radio-group][aria-invalid="true"] [data-pont2-radio-group-item]) {
2828
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
2829
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
2830
+ }
2831
+
2832
+ [data-pont2-radio-group-item]:is(:disabled, [data-disabled]) {
2833
+ cursor: not-allowed;
2834
+ opacity: 0.5;
2835
+ }
2836
+
2837
+ /* Inside a choice-card FieldLabel the label draws the focus ring instead. */
2838
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-radio-group-item] {
2839
+ --pont2-ring-shadow: 0 0 #0000;
2840
+ }
2841
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-radio-group-item]:not([data-checked]) {
2842
+ border-color: var(--pont2-input);
2843
+ }
2844
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-radio-group-item][data-checked] {
2845
+ border-color: var(--pont2-primary);
2846
+ }
2847
+
2848
+ [data-pont2-radio-group-indicator] {
2849
+ display: flex;
2850
+ width: 1rem;
2851
+ height: 1rem;
2852
+ align-items: center;
2853
+ justify-content: center;
2854
+ }
2855
+
2856
+ [data-pont2-radio-group-indicator-icon] {
2857
+ position: absolute;
2858
+ top: 50%;
2859
+ left: 50%;
2860
+ width: 0.5rem;
2861
+ height: 0.5rem;
2862
+ translate: -50% -50%;
2863
+ border-radius: 9999px;
2864
+ background-color: var(--pont2-primary-foreground);
2865
+ }
2866
+ }
2867
+
2868
+ /* ../primitives/slider/slider.css */
2869
+ /*
2870
+ * Slider. shadcn (Base UI, Vega):
2871
+ * root: "data-horizontal:w-full data-vertical:h-full"
2872
+ * control: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50
2873
+ * data-vertical:h-full data-vertical:w-auto data-vertical:flex-col" + .cn-slider (data-vertical:min-h-40)
2874
+ * track: "relative grow overflow-hidden select-none" + .cn-slider-track
2875
+ * (bg-muted rounded-full data-horizontal:h-1.5 w-full, data-vertical:h-full w-1.5)
2876
+ * range: "select-none data-horizontal:h-full data-vertical:w-full" + .cn-slider-range (bg-primary)
2877
+ * thumb: "block shrink-0 select-none disabled:pointer-events-none disabled:opacity-50" + .cn-slider-thumb
2878
+ * (border-primary ring-ring/50 size-4 rounded-full border bg-white shadow-sm
2879
+ * transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden)
2880
+ *
2881
+ * Base UI positions thumbs absolutely inside the control with thumbAlignment="edge";
2882
+ * `--_pont2-slider-thumb` is the thumb size those calculations use.
2883
+ */
2884
+ @layer pont2.primitives {
2885
+ :is(pont2-prim-slider, pont2-slider, [data-pont2-slider]) {
2886
+ --_pont2-slider-thumb: 1rem;
2887
+ box-sizing: border-box;
2888
+ display: block;
2889
+ width: 100%;
2890
+ }
2891
+ :is(pont2-prim-slider, pont2-slider, [data-pont2-slider]):is([data-orientation="vertical"], [orientation="vertical"]) {
2892
+ display: inline-block;
2893
+ width: auto;
2894
+ height: 100%;
2895
+ }
2896
+
2897
+ [data-pont2-slider-control] {
2898
+ box-sizing: border-box;
2899
+ position: relative;
2900
+ display: flex;
2901
+ width: 100%;
2902
+ min-height: var(--_pont2-slider-thumb);
2903
+ align-items: center;
2904
+ touch-action: none;
2905
+ user-select: none;
2906
+ }
2907
+ [data-pont2-slider-control][data-orientation="vertical"] {
2908
+ height: 100%;
2909
+ width: auto;
2910
+ min-width: var(--_pont2-slider-thumb);
2911
+ min-height: 10rem;
2912
+ flex-direction: column;
2913
+ justify-content: center;
2914
+ }
2915
+ [data-pont2-slider-control][data-disabled] {
2916
+ opacity: 0.5;
2917
+ }
2918
+
2919
+ [data-pont2-slider-track] {
2920
+ box-sizing: border-box;
2921
+ position: relative;
2922
+ flex-grow: 1;
2923
+ overflow: hidden;
2924
+ user-select: none;
2925
+ border-radius: 9999px;
2926
+ background-color: var(--pont2-muted);
2927
+ }
2928
+ [data-pont2-slider-track][data-orientation="horizontal"] {
2929
+ height: 0.375rem;
2930
+ width: 100%;
2931
+ }
2932
+ [data-pont2-slider-track][data-orientation="vertical"] {
2933
+ height: 100%;
2934
+ width: 0.375rem;
2935
+ }
2936
+
2937
+ [data-pont2-slider-range] {
2938
+ position: absolute;
2939
+ user-select: none;
2940
+ background-color: var(--pont2-primary);
2941
+ }
2942
+ [data-pont2-slider-range][data-orientation="horizontal"] {
2943
+ top: 0;
2944
+ height: 100%;
2945
+ }
2946
+ [data-pont2-slider-range][data-orientation="vertical"] {
2947
+ left: 0;
2948
+ width: 100%;
2949
+ }
2950
+
2951
+ [data-pont2-slider-thumb] {
2952
+ box-sizing: border-box;
2953
+ position: absolute;
2954
+ display: block;
2955
+ flex-shrink: 0;
2956
+ user-select: none;
2957
+ width: var(--_pont2-slider-thumb);
2958
+ height: var(--_pont2-slider-thumb);
2959
+ border: 1px solid var(--pont2-primary);
2960
+ border-radius: 9999px;
2961
+ background-color: white;
2962
+ outline: none;
2963
+ --pont2-shadow: var(--pont2-shadow-sm);
2964
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
2965
+ transition-property: color, box-shadow;
2966
+ transition-duration: var(--pont2-duration);
2967
+ transition-timing-function: var(--pont2-ease);
2968
+ }
2969
+ [data-pont2-slider-thumb][data-orientation="horizontal"] {
2970
+ top: 50%;
2971
+ translate: 0 -50%;
2972
+ }
2973
+ [data-pont2-slider-thumb][data-orientation="vertical"] {
2974
+ left: 50%;
2975
+ translate: -50% 0;
2976
+ }
2977
+ [data-pont2-slider-thumb]:hover,
2978
+ [data-pont2-slider-thumb]:focus-visible {
2979
+ --pont2-ring-shadow: 0 0 0 4px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
2980
+ }
2981
+ /* `disabled:` in shadcn never matches the thumb div; the control's opacity covers it. */
2982
+ [data-pont2-slider-thumb][data-disabled] {
2983
+ pointer-events: none;
2984
+ }
2985
+ }
2986
+
2987
+ /* ../primitives/switch/switch.css */
2988
+ /*
2989
+ * Switch. shadcn (Base UI, Vega):
2990
+ * root: "peer group/switch relative inline-flex items-center transition-all outline-none
2991
+ * after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed
2992
+ * data-disabled:opacity-50" + .cn-switch
2993
+ * (data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80
2994
+ * shrink-0 rounded-full border border-transparent shadow-xs focus-visible:ring-3 …
2995
+ * data-[size=default]:h-[18.4px] w-[32px], data-[size=sm]:h-[14px] w-[24px])
2996
+ * thumb: "pointer-events-none block ring-0 transition-transform" + .cn-switch-thumb
2997
+ * (bg-background dark:data-unchecked:bg-foreground dark:data-checked:bg-primary-foreground
2998
+ * rounded-full size-4 | size-3, data-checked:translate-x-[calc(100%-2px)])
2999
+ *
3000
+ * The thumb's state attributes come from the root's render; `data-size` lives on
3001
+ * the root, so size rules select `[data-size] > thumb` (shadcn's group/switch).
3002
+ */
3003
+ @layer pont2.primitives {
3004
+ :is(pont2-prim-switch, pont2-switch, [data-pont2-switch]) {
3005
+ box-sizing: border-box;
3006
+ position: relative;
3007
+ display: inline-flex;
3008
+ flex-shrink: 0;
3009
+ align-items: center;
3010
+ height: 18.4px;
3011
+ width: 32px;
3012
+ border: 1px solid transparent;
3013
+ border-radius: 9999px;
3014
+ background-color: var(--pont2-input);
3015
+ outline: none;
3016
+ --pont2-shadow: var(--pont2-shadow-xs);
3017
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3018
+ transition-property: all;
3019
+ transition-duration: var(--pont2-duration);
3020
+ transition-timing-function: var(--pont2-ease);
3021
+ }
3022
+
3023
+ :is(pont2-prim-switch, pont2-switch, [data-pont2-switch])::after {
3024
+ content: "";
3025
+ position: absolute;
3026
+ inset: -0.5rem -0.75rem;
3027
+ }
3028
+
3029
+ :is(pont2-prim-switch, pont2-switch, [data-pont2-switch]):is([data-size="sm"], [size="sm"]) {
3030
+ height: 14px;
3031
+ width: 24px;
3032
+ }
3033
+
3034
+ [data-pont2-switch][data-checked] {
3035
+ background-color: var(--pont2-primary);
3036
+ }
3037
+ :where(.dark, [data-theme="dark"]) [data-pont2-switch][data-unchecked] {
3038
+ background-color: color-mix(in oklab, var(--pont2-input) 80%, transparent);
3039
+ }
3040
+
3041
+ [data-pont2-switch]:focus-visible {
3042
+ border-color: var(--pont2-ring);
3043
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
3044
+ }
3045
+
3046
+ [data-pont2-switch][aria-invalid="true"] {
3047
+ border-color: var(--pont2-destructive);
3048
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
3049
+ }
3050
+ :where(.dark, [data-theme="dark"]) [data-pont2-switch][aria-invalid="true"] {
3051
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
3052
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
3053
+ }
3054
+
3055
+ [data-pont2-switch][data-disabled] {
3056
+ cursor: not-allowed;
3057
+ opacity: 0.5;
3058
+ }
3059
+
3060
+ /* Inside a choice-card FieldLabel the label draws the focus ring instead. */
3061
+ [data-slot="field-label"]:has(:focus-visible) [data-pont2-switch] {
3062
+ --pont2-ring-shadow: 0 0 #0000;
3063
+ border-color: transparent;
3064
+ }
3065
+
3066
+ [data-pont2-switch-thumb] {
3067
+ box-sizing: border-box;
3068
+ pointer-events: none;
3069
+ display: block;
3070
+ width: 1rem;
3071
+ height: 1rem;
3072
+ border-radius: 9999px;
3073
+ background-color: var(--pont2-background);
3074
+ translate: 0 0;
3075
+ transition-property: translate, transform;
3076
+ transition-duration: var(--pont2-duration);
3077
+ transition-timing-function: var(--pont2-ease);
3078
+ }
3079
+ [data-pont2-switch][data-size="sm"] > [data-pont2-switch-thumb] {
3080
+ width: 0.75rem;
3081
+ height: 0.75rem;
3082
+ }
3083
+ [data-pont2-switch-thumb][data-checked] {
3084
+ translate: calc(100% - 2px) 0;
3085
+ }
3086
+ :dir(rtl) > [data-pont2-switch-thumb][data-checked] {
3087
+ translate: calc(-100% + 2px) 0;
3088
+ }
3089
+ :where(.dark, [data-theme="dark"]) [data-pont2-switch-thumb][data-unchecked] {
3090
+ background-color: var(--pont2-foreground);
3091
+ }
3092
+ :where(.dark, [data-theme="dark"]) [data-pont2-switch-thumb][data-checked] {
3093
+ background-color: var(--pont2-primary-foreground);
3094
+ }
3095
+ }
3096
+
3097
+ /* ../primitives/tabs/tabs.css */
3098
+ /*
3099
+ * Tabs. shadcn (Base UI, Vega):
3100
+ * root: "group/tabs flex data-horizontal:flex-col" + .cn-tabs (gap-2)
3101
+ * list: "group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground
3102
+ * group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col"
3103
+ * default: bg-muted · line: gap-1 bg-transparent
3104
+ * + .cn-tabs-list (rounded-lg p-[3px] group-data-horizontal/tabs:h-9 data-[variant=line]:rounded-none)
3105
+ * trigger: "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap
3106
+ * text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start
3107
+ * hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50
3108
+ * focus-visible:outline-1 focus-visible:outline-ring disabled/aria-disabled:pointer-events-none opacity-50
3109
+ * dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0"
3110
+ * + line-variant overrides, data-active:bg-background text-foreground (dark: border-input bg-input/30),
3111
+ * + the line indicator drawn with ::after
3112
+ * + .cn-tabs-trigger (gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium
3113
+ * default-list active shadow-sm, svg size-4, inline icon padding)
3114
+ * content: "flex-1 outline-none" + .cn-tabs-content (text-sm)
3115
+ *
3116
+ * shadcn's group/tabs and group/tabs-list selectors become ancestor selectors on
3117
+ * the pont2 root / list hosts.
3118
+ */
3119
+ @layer pont2.primitives {
3120
+ :is(pont2-prim-tabs, [data-pont2-tabs]) {
3121
+ box-sizing: border-box;
3122
+ display: flex;
3123
+ flex-direction: column;
3124
+ gap: 0.5rem;
3125
+ }
3126
+ :is(pont2-prim-tabs, [data-pont2-tabs]):is([data-orientation="vertical"], [orientation="vertical"]) {
3127
+ flex-direction: row;
3128
+ }
3129
+
3130
+ :is(pont2-prim-tabs-list, [data-pont2-tabs-list]) {
3131
+ box-sizing: border-box;
3132
+ display: inline-flex;
3133
+ width: fit-content;
3134
+ height: 2.25rem;
3135
+ align-items: center;
3136
+ justify-content: center;
3137
+ padding: 3px;
3138
+ border-radius: var(--pont2-radius-lg);
3139
+ background-color: var(--pont2-muted);
3140
+ color: var(--pont2-muted-foreground);
3141
+ }
3142
+ [data-pont2-tabs][data-orientation="vertical"] [data-pont2-tabs-list] {
3143
+ height: fit-content;
3144
+ flex-direction: column;
3145
+ }
3146
+ [data-pont2-tabs-list][data-variant="line"] {
3147
+ gap: 0.25rem;
3148
+ background-color: transparent;
3149
+ border-radius: 0;
3150
+ }
3151
+
3152
+ :is(pont2-prim-tabs-trigger, [data-pont2-tabs-trigger]) {
3153
+ box-sizing: border-box;
3154
+ position: relative;
3155
+ display: inline-flex;
3156
+ flex: 1 1 0%;
3157
+ height: calc(100% - 1px);
3158
+ align-items: center;
3159
+ justify-content: center;
3160
+ gap: 0.375rem;
3161
+ padding: 0.25rem 0.5rem;
3162
+ white-space: nowrap;
3163
+ border: 1px solid transparent;
3164
+ border-radius: var(--pont2-radius-md);
3165
+ color: color-mix(in oklab, var(--pont2-foreground) 60%, transparent);
3166
+ font-size: var(--pont2-text-sm);
3167
+ line-height: var(--pont2-text-sm--line-height);
3168
+ font-weight: var(--pont2-font-weight-medium);
3169
+ cursor: default;
3170
+ user-select: none;
3171
+ outline: none;
3172
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3173
+ transition-property: all;
3174
+ transition-duration: var(--pont2-duration);
3175
+ transition-timing-function: var(--pont2-ease);
3176
+ }
3177
+ [data-pont2-tabs][data-orientation="vertical"] [data-pont2-tabs-trigger] {
3178
+ width: 100%;
3179
+ justify-content: flex-start;
3180
+ }
3181
+ [data-pont2-tabs-trigger]:hover {
3182
+ color: var(--pont2-foreground);
3183
+ }
3184
+ [data-pont2-tabs-trigger]:focus-visible {
3185
+ border-color: var(--pont2-ring);
3186
+ --pont2-ring-shadow: 0 0 0 3px color-mix(in oklab, var(--pont2-ring) 50%, transparent);
3187
+ outline: 1px solid var(--pont2-ring);
3188
+ }
3189
+ [data-pont2-tabs-trigger]:is([data-disabled], [aria-disabled="true"]) {
3190
+ pointer-events: none;
3191
+ opacity: 0.5;
3192
+ }
3193
+ :where(.dark, [data-theme="dark"]) [data-pont2-tabs-trigger] {
3194
+ color: var(--pont2-muted-foreground);
3195
+ }
3196
+ :where(.dark, [data-theme="dark"]) [data-pont2-tabs-trigger]:hover {
3197
+ color: var(--pont2-foreground);
3198
+ }
3199
+ [data-pont2-tabs-trigger] svg {
3200
+ pointer-events: none;
3201
+ flex-shrink: 0;
3202
+ }
3203
+ [data-pont2-tabs-trigger] svg:not([class*="size-"]) {
3204
+ width: 1rem;
3205
+ height: 1rem;
3206
+ }
3207
+ [data-pont2-tabs-trigger]:has([data-icon="inline-end"]) {
3208
+ padding-right: 0.375rem;
3209
+ }
3210
+ [data-pont2-tabs-trigger]:has([data-icon="inline-start"]) {
3211
+ padding-left: 0.375rem;
3212
+ }
3213
+
3214
+ /* data-active */
3215
+ [data-pont2-tabs-trigger][data-active] {
3216
+ background-color: var(--pont2-background);
3217
+ color: var(--pont2-foreground);
3218
+ }
3219
+ :where(.dark, [data-theme="dark"]) [data-pont2-tabs-trigger][data-active] {
3220
+ border-color: var(--pont2-input);
3221
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
3222
+ color: var(--pont2-foreground);
3223
+ }
3224
+ [data-pont2-tabs-list]:not([data-variant="line"]) > [data-pont2-tabs-trigger][data-active] {
3225
+ --pont2-shadow: var(--pont2-shadow-sm);
3226
+ }
3227
+
3228
+ /* line variant */
3229
+ [data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger],
3230
+ [data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger][data-active] {
3231
+ background-color: transparent;
3232
+ --pont2-shadow: 0 0 #0000;
3233
+ }
3234
+ :where(.dark, [data-theme="dark"]) [data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger][data-active] {
3235
+ border-color: transparent;
3236
+ background-color: transparent;
3237
+ }
3238
+
3239
+ /* the line indicator */
3240
+ [data-pont2-tabs-trigger]::after {
3241
+ content: "";
3242
+ position: absolute;
3243
+ background-color: var(--pont2-foreground);
3244
+ opacity: 0;
3245
+ transition: opacity var(--pont2-duration) var(--pont2-ease);
3246
+ }
3247
+ [data-pont2-tabs]:not([data-orientation="vertical"]) [data-pont2-tabs-trigger]::after {
3248
+ left: 0;
3249
+ right: 0;
3250
+ bottom: -5px;
3251
+ height: 0.125rem;
3252
+ }
3253
+ [data-pont2-tabs][data-orientation="vertical"] [data-pont2-tabs-trigger]::after {
3254
+ top: 0;
3255
+ bottom: 0;
3256
+ right: -0.25rem;
3257
+ width: 0.125rem;
3258
+ }
3259
+ [data-pont2-tabs-list][data-variant="line"] [data-pont2-tabs-trigger][data-active]::after {
3260
+ opacity: 1;
3261
+ }
3262
+
3263
+ :is(pont2-prim-tabs-content, [data-pont2-tabs-content]) {
3264
+ box-sizing: border-box;
3265
+ display: block;
3266
+ flex: 1 1 0%;
3267
+ outline: none;
3268
+ font-size: var(--pont2-text-sm);
3269
+ line-height: var(--pont2-text-sm--line-height);
3270
+ }
3271
+ }
3272
+
3273
+ /* --- end widgets (B) --- */
3274
+
3275
+ /* --- overlays (C) --- */
3276
+ /* ../core/popup/popup.css */
3277
+ /*
3278
+ * Shared popup machinery (core/popup). Every popup surface carries
3279
+ * `data-pont2-popup` (PopupContent's identity); every root carries
3280
+ * `data-pont2-popup-root` (PopupRoot's identity).
3281
+ *
3282
+ * The enter/exit animations port tw-animate-css as used by shadcn:
3283
+ * data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95
3284
+ * data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95
3285
+ * data-[side=bottom]:slide-in-from-top-2 … duration-100
3286
+ * origin-(--transform-origin)
3287
+ * A component opts into the slide by setting the --pont2-enter-* variables;
3288
+ * the defaults below are exactly that shadcn recipe.
3289
+ */
3290
+ @layer pont2.base {
3291
+ /* Coordinators (Base UI Root renders no element): no box, no role. */
3292
+ [data-pont2-popup-root] {
3293
+ display: contents;
3294
+ }
3295
+
3296
+ @keyframes pont2-popup-enter {
3297
+ from {
3298
+ opacity: var(--pont2-enter-opacity, 1);
3299
+ scale: var(--pont2-enter-scale, 1);
3300
+ translate: var(--pont2-enter-translate-x, 0) var(--pont2-enter-translate-y, 0);
3301
+ }
3302
+ }
3303
+ @keyframes pont2-popup-exit {
3304
+ to {
3305
+ opacity: var(--pont2-exit-opacity, 1);
3306
+ scale: var(--pont2-exit-scale, 1);
3307
+ translate: var(--pont2-exit-translate-x, 0) var(--pont2-exit-translate-y, 0);
3308
+ }
3309
+ }
3310
+ }
3311
+
3312
+ @layer pont2.primitives {
3313
+ [data-pont2-popup] {
3314
+ /* Undo the UA popover box (inset:0; margin:auto; border; padding; Canvas colours) */
3315
+ position: fixed;
3316
+ inset: auto;
3317
+ left: var(--pont2-popup-x, 0px);
3318
+ top: var(--pont2-popup-y, 0px);
3319
+ margin: 0;
3320
+ border: 0;
3321
+ padding: 0;
3322
+ box-sizing: border-box;
3323
+ overflow: visible;
3324
+ color: inherit;
3325
+ background: transparent;
3326
+ font-family: inherit;
3327
+ transform-origin: var(--pont2-transform-origin, center);
3328
+
3329
+ /* shadcn: fade-in-0 zoom-in-95 / fade-out-0 zoom-out-95, duration-100 */
3330
+ --pont2-enter-opacity: 0;
3331
+ --pont2-enter-scale: 0.95;
3332
+ --pont2-exit-opacity: 0;
3333
+ --pont2-exit-scale: 0.95;
3334
+ --pont2-popup-duration: 100ms;
3335
+ }
3336
+
3337
+ /* An author `display` must never reveal a closed popover. */
3338
+ [data-pont2-popup]:not(:popover-open) {
3339
+ display: none;
3340
+ }
3341
+
3342
+ /* data-[side=…]:slide-in-from-…-2 (logical sides: cn-*-content-logical) */
3343
+ [data-pont2-popup][data-side="bottom"] {
3344
+ --pont2-enter-translate-y: -0.5rem;
3345
+ }
3346
+ [data-pont2-popup][data-side="top"] {
3347
+ --pont2-enter-translate-y: 0.5rem;
3348
+ }
3349
+ [data-pont2-popup]:is([data-side="left"], [data-side="inline-start"]) {
3350
+ --pont2-enter-translate-x: 0.5rem;
3351
+ }
3352
+ [data-pont2-popup]:is([data-side="right"], [data-side="inline-end"]) {
3353
+ --pont2-enter-translate-x: -0.5rem;
3354
+ }
3355
+
3356
+ [data-pont2-popup][data-open] {
3357
+ animation: pont2-popup-enter var(--pont2-popup-duration) var(--pont2-ease);
3358
+ }
3359
+ [data-pont2-popup][data-closed] {
3360
+ animation: pont2-popup-exit var(--pont2-popup-duration) var(--pont2-ease) forwards;
3361
+ }
3362
+
3363
+ @media (prefers-reduced-motion: reduce) {
3364
+ [data-pont2-popup]:is([data-open], [data-closed]) {
3365
+ animation: none;
3366
+ }
3367
+ }
3368
+ }
3369
+
3370
+ /* ../primitives/popover/popover.css */
3371
+ /*
3372
+ * Popover. shadcn (Base UI, Vega):
3373
+ * content: "z-50 w-72 origin-(--transform-origin) outline-hidden" + .cn-popover-content
3374
+ * "bg-popover text-popover-foreground flex flex-col gap-4 rounded-md p-4 text-sm
3375
+ * shadow-md ring-1 ring-foreground/10 duration-100" + enter/exit (core/popup/popup.css)
3376
+ * header: "flex flex-col gap-1 text-sm"; title: "font-medium";
3377
+ * description: "text-muted-foreground"
3378
+ */
3379
+ @layer pont2.primitives {
3380
+ :is(pont2-prim-popover-content, [data-pont2-popover-content]) {
3381
+ display: flex;
3382
+ flex-direction: column;
3383
+ gap: 1rem;
3384
+ width: 18rem;
3385
+ padding: 1rem;
3386
+ border-radius: var(--pont2-radius-md);
3387
+ background-color: var(--pont2-popover);
3388
+ color: var(--pont2-popover-foreground);
3389
+ font-size: var(--pont2-text-sm);
3390
+ line-height: var(--pont2-text-sm--line-height);
3391
+ outline: none;
3392
+ --pont2-shadow: var(--pont2-shadow-md);
3393
+ --pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
3394
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3395
+ }
3396
+
3397
+ :is(pont2-prim-popover-header, [data-pont2-popover-header]) {
3398
+ display: flex;
3399
+ flex-direction: column;
3400
+ gap: 0.25rem;
3401
+ font-size: var(--pont2-text-sm);
3402
+ line-height: var(--pont2-text-sm--line-height);
3403
+ }
3404
+
3405
+ :is(pont2-prim-popover-title, [data-pont2-popover-title]) {
3406
+ display: block;
3407
+ margin: 0;
3408
+ font-weight: var(--pont2-font-weight-medium);
3409
+ }
3410
+
3411
+ :is(pont2-prim-popover-description, [data-pont2-popover-description]) {
3412
+ display: block;
3413
+ margin: 0;
3414
+ color: var(--pont2-muted-foreground);
3415
+ }
3416
+ }
3417
+
3418
+ /* ../primitives/dropdown-menu/dropdown-menu.css */
3419
+ /*
3420
+ * DropdownMenu. shadcn (Base UI, Vega). Enter/exit animation and popover
3421
+ * reset come from core/popup/popup.css ([data-pont2-popup]).
3422
+ *
3423
+ * The highlighted item has real focus, so shadcn's `focus:` variants port
3424
+ * as `:focus`; Base UI's `data-highlighted` is set too and selected alike.
3425
+ */
3426
+ @layer pont2.primitives {
3427
+ /* content: "max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin)
3428
+ overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden"
3429
+ + .cn-dropdown-menu-content "ring-foreground/10 bg-popover text-popover-foreground
3430
+ min-w-32 rounded-md p-1 shadow-md ring-1 duration-100" */
3431
+ :is(pont2-prim-dropdown-menu-content, [data-pont2-dropdown-menu-content]) {
3432
+ display: block;
3433
+ max-height: var(--pont2-available-height);
3434
+ width: var(--pont2-anchor-width);
3435
+ min-width: 8rem;
3436
+ overflow-x: hidden;
3437
+ overflow-y: auto;
3438
+ padding: 0.25rem;
3439
+ border-radius: var(--pont2-radius-md);
3440
+ background-color: var(--pont2-popover);
3441
+ color: var(--pont2-popover-foreground);
3442
+ outline: none;
3443
+ --pont2-shadow: var(--pont2-shadow-md);
3444
+ --pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
3445
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3446
+ }
3447
+ [data-pont2-dropdown-menu-content][data-closed] {
3448
+ overflow: hidden;
3449
+ }
3450
+
3451
+ /* sub content: "w-auto" + .cn-dropdown-menu-sub-content "min-w-[96px] shadow-lg" */
3452
+ :is(pont2-prim-dropdown-menu-sub-content, [data-pont2-dropdown-menu-sub-content]) {
3453
+ width: auto;
3454
+ min-width: 96px;
3455
+ --pont2-shadow: var(--pont2-shadow-lg);
3456
+ }
3457
+
3458
+ /* Items: shared base ("relative flex cursor-default items-center outline-hidden select-none
3459
+ data-disabled:pointer-events-none data-disabled:opacity-50") + vega "gap-2 rounded-sm
3460
+ px-2 py-1.5 text-sm data-inset:pl-8 [&_svg:not([class*='size-'])]:size-4" */
3461
+ :is(pont2-prim-dropdown-menu-item, pont2-prim-dropdown-menu-checkbox-item, pont2-prim-dropdown-menu-radio-item,
3462
+ pont2-prim-dropdown-menu-sub-trigger, [data-pont2-menu-item]) {
3463
+ position: relative;
3464
+ display: flex;
3465
+ align-items: center;
3466
+ gap: 0.5rem;
3467
+ padding: 0.375rem 0.5rem;
3468
+ border-radius: var(--pont2-radius-sm);
3469
+ font-size: var(--pont2-text-sm);
3470
+ line-height: var(--pont2-text-sm--line-height);
3471
+ cursor: default;
3472
+ outline: none;
3473
+ user-select: none;
3474
+ }
3475
+ [data-pont2-menu-item] svg {
3476
+ pointer-events: none;
3477
+ flex-shrink: 0;
3478
+ }
3479
+ [data-pont2-menu-item] svg:not([class*="size-"]) {
3480
+ width: 1rem;
3481
+ height: 1rem;
3482
+ }
3483
+ [data-pont2-menu-item][data-inset] {
3484
+ padding-left: 2rem;
3485
+ }
3486
+ [data-pont2-menu-item][data-disabled] {
3487
+ pointer-events: none;
3488
+ opacity: 0.5;
3489
+ }
3490
+
3491
+ /* focus:bg-accent focus:text-accent-foreground (+ not-destructive **:text-accent-foreground) */
3492
+ [data-pont2-menu-item]:is(:focus, [data-highlighted]),
3493
+ [data-pont2-dropdown-menu-sub-trigger][data-popup-open] {
3494
+ background-color: var(--pont2-accent);
3495
+ color: var(--pont2-accent-foreground);
3496
+ }
3497
+ [data-pont2-menu-item]:not([data-variant="destructive"]):is(:focus, [data-highlighted]) * {
3498
+ color: var(--pont2-accent-foreground);
3499
+ }
3500
+
3501
+ /* variant=destructive */
3502
+ [data-pont2-dropdown-menu-item][data-variant="destructive"],
3503
+ [data-pont2-dropdown-menu-item][data-variant="destructive"] > svg {
3504
+ color: var(--pont2-destructive);
3505
+ }
3506
+ [data-pont2-dropdown-menu-item][data-variant="destructive"]:is(:focus, [data-highlighted]) {
3507
+ background-color: color-mix(in oklab, var(--pont2-destructive) 10%, transparent);
3508
+ color: var(--pont2-destructive);
3509
+ }
3510
+ :where(.dark, [data-theme="dark"]) [data-pont2-dropdown-menu-item][data-variant="destructive"]:is(:focus, [data-highlighted]) {
3511
+ background-color: color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
3512
+ }
3513
+
3514
+ /* checkbox / radio items: "py-1.5 pr-8 pl-2" with the indicator at right-2 */
3515
+ :is([data-pont2-dropdown-menu-checkbox-item], [data-pont2-dropdown-menu-radio-item]) {
3516
+ padding: 0.375rem 2rem 0.375rem 0.5rem;
3517
+ }
3518
+ :is([data-pont2-dropdown-menu-checkbox-item], [data-pont2-dropdown-menu-radio-item])[data-inset] {
3519
+ padding-left: 2rem;
3520
+ }
3521
+ /* .cn-dropdown-menu-item-indicator "pointer-events-none absolute right-2 flex items-center justify-center" */
3522
+ [data-pont2-dropdown-menu-item-indicator] {
3523
+ pointer-events: none;
3524
+ position: absolute;
3525
+ right: 0.5rem;
3526
+ display: flex;
3527
+ align-items: center;
3528
+ justify-content: center;
3529
+ }
3530
+
3531
+ /* sub trigger chevron: "cn-rtl-flip ml-auto" */
3532
+ [data-pont2-dropdown-menu-sub-trigger] > svg[data-icon-name="chevron-right"] {
3533
+ margin-left: auto;
3534
+ }
3535
+ [dir="rtl"] [data-pont2-dropdown-menu-sub-trigger] > svg[data-icon-name="chevron-right"] {
3536
+ scale: -1 1;
3537
+ }
3538
+
3539
+ /* label: "text-muted-foreground px-2 py-1.5 text-xs font-medium data-inset:pl-8" */
3540
+ :is(pont2-prim-dropdown-menu-label, [data-pont2-dropdown-menu-label]) {
3541
+ display: block;
3542
+ padding: 0.375rem 0.5rem;
3543
+ color: var(--pont2-muted-foreground);
3544
+ font-size: var(--pont2-text-xs);
3545
+ line-height: var(--pont2-text-xs--line-height);
3546
+ font-weight: var(--pont2-font-weight-medium);
3547
+ }
3548
+ [data-pont2-dropdown-menu-label][data-inset] {
3549
+ padding-left: 2rem;
3550
+ }
3551
+
3552
+ :is(pont2-prim-dropdown-menu-group, pont2-prim-dropdown-menu-radio-group) {
3553
+ display: block;
3554
+ }
3555
+
3556
+ /* separator: is-a Separator; + "bg-border -mx-1 my-1 h-px" */
3557
+ [data-pont2-dropdown-menu-separator] {
3558
+ width: auto;
3559
+ margin: 0.25rem -0.25rem;
3560
+ }
3561
+
3562
+ /* shortcut: "text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground
3563
+ ml-auto text-xs tracking-widest" */
3564
+ :is(pont2-prim-dropdown-menu-shortcut, [data-pont2-dropdown-menu-shortcut]) {
3565
+ margin-left: auto;
3566
+ color: var(--pont2-muted-foreground);
3567
+ font-size: var(--pont2-text-xs);
3568
+ line-height: var(--pont2-text-xs--line-height);
3569
+ letter-spacing: 0.1em;
3570
+ }
3571
+ [data-pont2-menu-item]:focus [data-pont2-dropdown-menu-shortcut] {
3572
+ color: var(--pont2-accent-foreground);
3573
+ }
3574
+ }
3575
+
3576
+ /* ../primitives/select/select.css */
3577
+ /*
3578
+ * Select. shadcn (Base UI, Vega). Popover reset + enter/exit animation come
3579
+ * from core/popup/popup.css ([data-pont2-popup]).
3580
+ */
3581
+ @layer pont2.primitives {
3582
+ /* trigger: "flex w-fit items-center justify-between whitespace-nowrap outline-none
3583
+ disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 …"
3584
+ + .cn-select-trigger "border-input data-placeholder:text-muted-foreground dark:bg-input/30
3585
+ dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 … gap-1.5 rounded-md
3586
+ border bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs transition-[color,box-shadow]
3587
+ focus-visible:ring-3 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8" */
3588
+ [data-pont2-select-trigger] {
3589
+ box-sizing: border-box;
3590
+ margin: 0;
3591
+ font-family: inherit;
3592
+ color: inherit;
3593
+ -webkit-appearance: none;
3594
+ appearance: none;
3595
+
3596
+ display: flex;
3597
+ width: fit-content;
3598
+ align-items: center;
3599
+ justify-content: space-between;
3600
+ gap: 0.375rem;
3601
+ white-space: nowrap;
3602
+ height: 2.25rem;
3603
+ padding: 0.5rem 0.5rem 0.5rem 0.625rem;
3604
+ border: 1px solid var(--pont2-input);
3605
+ border-radius: var(--pont2-radius-md);
3606
+ background-color: transparent;
3607
+ font-size: var(--pont2-text-sm);
3608
+ line-height: var(--pont2-text-sm--line-height);
3609
+ outline: none;
3610
+ --pont2-shadow: var(--pont2-shadow-xs);
3611
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3612
+ transition-property: color, box-shadow;
3613
+ transition-duration: var(--pont2-duration);
3614
+ transition-timing-function: var(--pont2-ease);
3615
+ }
3616
+ [data-pont2-select-trigger][data-size="sm"] {
3617
+ height: 2rem;
3618
+ }
3619
+ [data-pont2-select-trigger][data-placeholder] {
3620
+ color: var(--pont2-muted-foreground);
3621
+ }
3622
+ :where(.dark, [data-theme="dark"]) [data-pont2-select-trigger] {
3623
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
3624
+ }
3625
+ :where(.dark, [data-theme="dark"]) [data-pont2-select-trigger]:hover {
3626
+ background-color: color-mix(in oklab, var(--pont2-input) 50%, transparent);
3627
+ }
3628
+ [data-pont2-select-trigger]:focus-visible {
3629
+ border-color: var(--pont2-ring);
3630
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
3631
+ }
3632
+ [data-pont2-select-trigger][aria-invalid="true"] {
3633
+ border-color: var(--pont2-destructive);
3634
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
3635
+ }
3636
+ :where(.dark, [data-theme="dark"]) [data-pont2-select-trigger][aria-invalid="true"] {
3637
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
3638
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
3639
+ }
3640
+ [data-pont2-select-trigger]:disabled {
3641
+ cursor: not-allowed;
3642
+ opacity: 0.5;
3643
+ }
3644
+ [data-pont2-select-trigger] svg {
3645
+ pointer-events: none;
3646
+ flex-shrink: 0;
3647
+ }
3648
+ [data-pont2-select-trigger] svg:not([class*="size-"]) {
3649
+ width: 1rem;
3650
+ height: 1rem;
3651
+ }
3652
+ /* .cn-select-trigger-icon "text-muted-foreground size-4" */
3653
+ [data-pont2-select-trigger] > svg[data-icon-name="chevron-down"] {
3654
+ color: var(--pont2-muted-foreground);
3655
+ }
3656
+
3657
+ /* value: "flex flex-1 text-left" + line-clamp-1 items-center gap-1.5 */
3658
+ [data-pont2-select-value] {
3659
+ display: flex;
3660
+ flex: 1 1 0%;
3661
+ align-items: center;
3662
+ gap: 0.375rem;
3663
+ text-align: left;
3664
+ /* line-clamp-1 on a flex box: one line, clipped */
3665
+ overflow: hidden;
3666
+ white-space: nowrap;
3667
+ }
3668
+
3669
+ /* content: "relative isolate z-50 max-h-(--available-height) w-(--anchor-width)
3670
+ origin-(--transform-origin) overflow-x-hidden overflow-y-auto data-[align-trigger=true]:animate-none"
3671
+ + .cn-select-content "bg-popover text-popover-foreground ring-foreground/10 min-w-36
3672
+ rounded-md shadow-md ring-1 duration-100" */
3673
+ :is(pont2-prim-select-content, [data-pont2-select-content]) {
3674
+ display: block;
3675
+ isolation: isolate;
3676
+ max-height: var(--pont2-available-height);
3677
+ width: var(--pont2-anchor-width);
3678
+ min-width: 9rem;
3679
+ overflow-x: hidden;
3680
+ overflow-y: auto;
3681
+ border-radius: var(--pont2-radius-md);
3682
+ background-color: var(--pont2-popover);
3683
+ color: var(--pont2-popover-foreground);
3684
+ outline: none;
3685
+ --pont2-shadow: var(--pont2-shadow-md);
3686
+ --pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
3687
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3688
+ }
3689
+ [data-pont2-select-content][data-align-trigger="true"] {
3690
+ animation: none;
3691
+ }
3692
+
3693
+ /* group: "scroll-my-1 p-1" */
3694
+ :is(pont2-prim-select-group, [data-pont2-select-group]) {
3695
+ display: block;
3696
+ padding: 0.25rem;
3697
+ scroll-margin-block: 0.25rem;
3698
+ }
3699
+
3700
+ /* label: "text-muted-foreground px-2 py-1.5 text-xs" */
3701
+ :is(pont2-prim-select-label, [data-pont2-select-label]) {
3702
+ display: block;
3703
+ padding: 0.375rem 0.5rem;
3704
+ color: var(--pont2-muted-foreground);
3705
+ font-size: var(--pont2-text-xs);
3706
+ line-height: var(--pont2-text-xs--line-height);
3707
+ }
3708
+
3709
+ /* item: "relative flex w-full cursor-default items-center outline-hidden select-none
3710
+ data-disabled:pointer-events-none data-disabled:opacity-50" + .cn-select-item
3711
+ "focus:bg-accent focus:text-accent-foreground gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm"
3712
+ + item text "whitespace-nowrap" */
3713
+ :is(pont2-prim-select-item, [data-pont2-select-item]) {
3714
+ position: relative;
3715
+ display: flex;
3716
+ width: 100%;
3717
+ box-sizing: border-box;
3718
+ align-items: center;
3719
+ gap: 0.5rem;
3720
+ padding: 0.375rem 2rem 0.375rem 0.5rem;
3721
+ border-radius: var(--pont2-radius-sm);
3722
+ font-size: var(--pont2-text-sm);
3723
+ line-height: var(--pont2-text-sm--line-height);
3724
+ white-space: nowrap;
3725
+ cursor: default;
3726
+ outline: none;
3727
+ user-select: none;
3728
+ }
3729
+ [data-pont2-select-item]:is(:focus, [data-highlighted]) {
3730
+ background-color: var(--pont2-accent);
3731
+ color: var(--pont2-accent-foreground);
3732
+ }
3733
+ [data-pont2-select-item]:is(:focus, [data-highlighted]) * {
3734
+ color: var(--pont2-accent-foreground);
3735
+ }
3736
+ [data-pont2-select-item][data-disabled] {
3737
+ pointer-events: none;
3738
+ opacity: 0.5;
3739
+ }
3740
+ [data-pont2-select-item] svg {
3741
+ pointer-events: none;
3742
+ flex-shrink: 0;
3743
+ }
3744
+ [data-pont2-select-item] svg:not([class*="size-"]) {
3745
+ width: 1rem;
3746
+ height: 1rem;
3747
+ }
3748
+
3749
+ /* indicator: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" */
3750
+ [data-pont2-select-item-indicator] {
3751
+ pointer-events: none;
3752
+ position: absolute;
3753
+ right: 0.5rem;
3754
+ display: flex;
3755
+ width: 1rem;
3756
+ height: 1rem;
3757
+ align-items: center;
3758
+ justify-content: center;
3759
+ }
3760
+
3761
+ /* separator: is-a Separator + "-mx-1 my-1 pointer-events-none" */
3762
+ [data-pont2-select-separator] {
3763
+ width: auto;
3764
+ margin: 0.25rem -0.25rem;
3765
+ pointer-events: none;
3766
+ }
3767
+ }
3768
+
3769
+ /* ../primitives/combobox/combobox.css */
3770
+ /*
3771
+ * Combobox. shadcn (Base UI, Vega). Popover reset + enter/exit animation come
3772
+ * from core/popup/popup.css ([data-pont2-popup]).
3773
+ */
3774
+ @layer pont2.primitives {
3775
+ /* ComboboxInput = InputGroup: "relative flex w-full min-w-0 items-center outline-none"
3776
+ + .cn-input-group "border-input dark:bg-input/30 has-[control:focus-visible]:border-ring
3777
+ has-[control:focus-visible]:ring-3 ring-ring/50 has-[[aria-invalid=true]]:border-destructive
3778
+ ring-destructive/20 h-9 rounded-md border shadow-xs transition-[color,box-shadow]"
3779
+ + .cn-combobox-input "w-auto" */
3780
+ :is(pont2-prim-combobox-input, [data-pont2-combobox-input]) {
3781
+ position: relative;
3782
+ display: flex;
3783
+ box-sizing: border-box;
3784
+ width: auto;
3785
+ min-width: 0;
3786
+ height: 2.25rem;
3787
+ align-items: center;
3788
+ border: 1px solid var(--pont2-input);
3789
+ border-radius: var(--pont2-radius-md);
3790
+ outline: none;
3791
+ --pont2-shadow: var(--pont2-shadow-xs);
3792
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3793
+ transition-property: color, box-shadow;
3794
+ transition-duration: var(--pont2-duration);
3795
+ transition-timing-function: var(--pont2-ease);
3796
+ }
3797
+ :where(.dark, [data-theme="dark"]) [data-pont2-combobox-input] {
3798
+ background-color: color-mix(in oklab, var(--pont2-input) 30%, transparent);
3799
+ }
3800
+ [data-pont2-combobox-input]:has(> [data-slot="input-group-control"]:focus-visible) {
3801
+ border-color: var(--pont2-ring);
3802
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-ring) 50%, transparent);
3803
+ }
3804
+ [data-pont2-combobox-input]:has([aria-invalid="true"]) {
3805
+ border-color: var(--pont2-destructive);
3806
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 20%, transparent);
3807
+ }
3808
+ :where(.dark, [data-theme="dark"]) [data-pont2-combobox-input]:has([aria-invalid="true"]) {
3809
+ border-color: color-mix(in oklab, var(--pont2-destructive) 50%, transparent);
3810
+ --pont2-ring-shadow: 0 0 0 var(--pont2-ring-width) color-mix(in oklab, var(--pont2-destructive) 40%, transparent);
3811
+ }
3812
+
3813
+ /* InputGroupInput: Input base + "flex-1 rounded-none border-0 bg-transparent shadow-none ring-0"
3814
+ and the group's "has-[>[data-align=inline-end]]:[&>input]:pr-1.5" */
3815
+ [data-pont2-combobox-input-control] {
3816
+ box-sizing: border-box;
3817
+ margin: 0;
3818
+ flex: 1 1 0%;
3819
+ width: 100%;
3820
+ min-width: 0;
3821
+ height: 100%;
3822
+ padding: 0.25rem 0.375rem 0.25rem 0.625rem;
3823
+ border: 0;
3824
+ border-radius: 0;
3825
+ background: transparent;
3826
+ color: inherit;
3827
+ font-family: inherit;
3828
+ font-size: var(--pont2-text-base);
3829
+ line-height: var(--pont2-text-base--line-height);
3830
+ outline: none;
3831
+ box-shadow: none;
3832
+ }
3833
+ @media (width >= 48rem) {
3834
+ [data-pont2-combobox-input-control] {
3835
+ font-size: var(--pont2-text-sm);
3836
+ line-height: var(--pont2-text-sm--line-height);
3837
+ }
3838
+ }
3839
+ [data-pont2-combobox-input-control]::placeholder {
3840
+ color: var(--pont2-muted-foreground);
3841
+ opacity: 1;
3842
+ }
3843
+ [data-pont2-combobox-input-control]:disabled {
3844
+ cursor: not-allowed;
3845
+ opacity: 0.5;
3846
+ }
3847
+
3848
+ /* InputGroupAddon align=inline-end: "flex cursor-text items-center justify-center select-none
3849
+ order-last text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium pr-2 has-[>button]:-mr-1" */
3850
+ [data-pont2-combobox-input-addon] {
3851
+ order: 9999;
3852
+ display: flex;
3853
+ align-items: center;
3854
+ justify-content: center;
3855
+ gap: 0.5rem;
3856
+ padding: 0.375rem 0.5rem 0.375rem 0;
3857
+ color: var(--pont2-muted-foreground);
3858
+ font-size: var(--pont2-text-sm);
3859
+ line-height: var(--pont2-text-sm--line-height);
3860
+ font-weight: var(--pont2-font-weight-medium);
3861
+ cursor: text;
3862
+ user-select: none;
3863
+ }
3864
+ [data-pont2-combobox-input-addon]:has(> button) {
3865
+ margin-right: -0.25rem;
3866
+ }
3867
+ /* InputGroupButton size=icon-xs: "size-6 rounded-[calc(var(--radius)-5px)] p-0 shadow-none" */
3868
+ [data-pont2-combobox-input-addon] > [data-pont2-button][data-size="icon-xs"] {
3869
+ width: 1.5rem;
3870
+ height: 1.5rem;
3871
+ padding: 0;
3872
+ border-radius: calc(var(--pont2-radius) - 5px);
3873
+ --pont2-shadow: 0 0 #0000;
3874
+ }
3875
+ /* .cn-combobox-trigger [&_svg]:size-4, .cn-combobox-trigger-icon text-muted-foreground */
3876
+ [data-pont2-combobox-input-addon] > [data-combobox-trigger] svg {
3877
+ width: 1rem;
3878
+ height: 1rem;
3879
+ color: var(--pont2-muted-foreground);
3880
+ }
3881
+
3882
+ /* content: "relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width)
3883
+ min-w-[calc(var(--pont2-anchor-width)+--spacing(7))] origin-(--transform-origin)"
3884
+ + .cn-combobox-content "bg-popover text-popover-foreground ring-foreground/10 overflow-hidden
3885
+ rounded-md shadow-md ring-1 duration-100".
3886
+ pont2 anchors to the whole input group (shadcn: the input, i.e. the group minus its
3887
+ ~1.75rem addon), so the minimum width is the anchor width itself. */
3888
+ :is(pont2-prim-combobox-content, [data-pont2-combobox-content]) {
3889
+ display: block;
3890
+ max-height: var(--pont2-available-height);
3891
+ width: var(--pont2-anchor-width);
3892
+ max-width: var(--pont2-available-width);
3893
+ min-width: var(--pont2-anchor-width);
3894
+ overflow: hidden;
3895
+ border-radius: var(--pont2-radius-md);
3896
+ background-color: var(--pont2-popover);
3897
+ color: var(--pont2-popover-foreground);
3898
+ outline: none;
3899
+ --pont2-shadow: var(--pont2-shadow-md);
3900
+ --pont2-ring-shadow: 0 0 0 1px color-mix(in oklab, var(--pont2-foreground) 10%, transparent);
3901
+ box-shadow: var(--pont2-ring-shadow), var(--pont2-shadow);
3902
+ }
3903
+
3904
+ /* list: "overflow-y-auto overscroll-contain" + .cn-combobox-list "no-scrollbar
3905
+ max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--pont2-available-height)---spacing(9)))]
3906
+ scroll-py-1 overflow-y-auto p-1 data-empty:p-0" */
3907
+ :is(pont2-prim-combobox-list, [data-pont2-combobox-list]) {
3908
+ display: block;
3909
+ max-height: min(15.75rem, calc(var(--pont2-available-height, 100vh) - 2.25rem));
3910
+ overflow-y: auto;
3911
+ overscroll-behavior: contain;
3912
+ scroll-padding-block: 0.25rem;
3913
+ scrollbar-width: none;
3914
+ padding: 0.25rem;
3915
+ }
3916
+ [data-pont2-combobox-list]::-webkit-scrollbar {
3917
+ display: none;
3918
+ }
3919
+ [data-pont2-combobox-list][data-empty] {
3920
+ padding: 0;
3921
+ }
3922
+
3923
+ /* item: "relative flex w-full cursor-default items-center outline-hidden select-none
3924
+ data-disabled:pointer-events-none data-disabled:opacity-50" + .cn-combobox-item
3925
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground gap-2 rounded-sm
3926
+ py-1.5 pr-8 pl-2 text-sm [&_svg:not([class*='size-'])]:size-4" */
3927
+ :is(pont2-prim-combobox-item, [data-pont2-combobox-item]) {
3928
+ position: relative;
3929
+ display: flex;
3930
+ width: 100%;
3931
+ box-sizing: border-box;
3932
+ align-items: center;
3933
+ gap: 0.5rem;
3934
+ padding: 0.375rem 2rem 0.375rem 0.5rem;
3935
+ border-radius: var(--pont2-radius-sm);
3936
+ font-size: var(--pont2-text-sm);
3937
+ line-height: var(--pont2-text-sm--line-height);
3938
+ cursor: default;
3939
+ outline: none;
3940
+ user-select: none;
3941
+ }
3942
+ [data-pont2-combobox-item][data-highlighted] {
3943
+ background-color: var(--pont2-accent);
3944
+ color: var(--pont2-accent-foreground);
3945
+ }
3946
+ [data-pont2-combobox-item][data-highlighted] * {
3947
+ color: var(--pont2-accent-foreground);
3948
+ }
3949
+ [data-pont2-combobox-item][data-disabled] {
3950
+ pointer-events: none;
3951
+ opacity: 0.5;
3952
+ }
3953
+ [data-pont2-combobox-item] svg {
3954
+ pointer-events: none;
3955
+ flex-shrink: 0;
3956
+ }
3957
+ [data-pont2-combobox-item] svg:not([class*="size-"]) {
3958
+ width: 1rem;
3959
+ height: 1rem;
3960
+ }
3961
+ /* .cn-combobox-item-indicator "pointer-events-none absolute right-2 flex size-4 items-center justify-center" */
3962
+ [data-pont2-combobox-item-indicator] {
3963
+ pointer-events: none;
3964
+ position: absolute;
3965
+ right: 0.5rem;
3966
+ display: flex;
3967
+ width: 1rem;
3968
+ height: 1rem;
3969
+ align-items: center;
3970
+ justify-content: center;
3971
+ }
3972
+
3973
+ /* empty: "text-muted-foreground hidden w-full justify-center py-2 text-center text-sm
3974
+ group-data-empty/combobox-content:flex" */
3975
+ :is(pont2-prim-combobox-empty, [data-pont2-combobox-empty]) {
3976
+ display: none;
3977
+ width: 100%;
3978
+ justify-content: center;
3979
+ padding: 0.5rem 0;
3980
+ text-align: center;
3981
+ color: var(--pont2-muted-foreground);
3982
+ font-size: var(--pont2-text-sm);
3983
+ line-height: var(--pont2-text-sm--line-height);
3984
+ }
3985
+ [data-pont2-combobox-content][data-empty] [data-pont2-combobox-empty] {
3986
+ display: flex;
3987
+ }
3988
+
3989
+ :is(pont2-prim-combobox-group, [data-pont2-combobox-group]) {
3990
+ display: block;
3991
+ }
3992
+
3993
+ /* label: "text-muted-foreground px-2 py-1.5 text-xs" */
3994
+ :is(pont2-prim-combobox-label, [data-pont2-combobox-label]) {
3995
+ display: block;
3996
+ padding: 0.375rem 0.5rem;
3997
+ color: var(--pont2-muted-foreground);
3998
+ font-size: var(--pont2-text-xs);
3999
+ line-height: var(--pont2-text-xs--line-height);
4000
+ }
4001
+
4002
+ /* separator: is-a Separator + "-mx-1 my-1" */
4003
+ [data-pont2-combobox-separator] {
4004
+ width: auto;
4005
+ margin: 0.25rem -0.25rem;
4006
+ }
4007
+ }
4008
+
4009
+ /* ../primitives/tooltip/tooltip.css */
4010
+ /*
4011
+ * Tooltip. shadcn (Base UI, Vega):
4012
+ * content: "z-50 w-fit max-w-xs origin-(--transform-origin) bg-foreground text-background"
4013
+ * + .cn-tooltip-content "inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs
4014
+ * has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:rounded-sm" + enter/exit animation
4015
+ * arrow: "size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground"
4016
+ * placed per side (data-[side=top]:-bottom-2.5, …). pont2 draws it as ::before.
4017
+ */
4018
+ @layer pont2.primitives {
4019
+ :is(pont2-prim-tooltip-content, [data-pont2-tooltip-content]) {
4020
+ display: inline-flex;
4021
+ align-items: center;
4022
+ gap: 0.375rem;
4023
+ width: fit-content;
4024
+ max-width: 20rem;
4025
+ padding: 0.375rem 0.75rem;
4026
+ border-radius: var(--pont2-radius-md);
4027
+ background-color: var(--pont2-foreground);
4028
+ color: var(--pont2-background);
4029
+ font-size: var(--pont2-text-xs);
4030
+ line-height: var(--pont2-text-xs--line-height);
4031
+ overflow: visible;
4032
+ }
4033
+ [data-pont2-tooltip-content]:has([data-slot="kbd"]) {
4034
+ padding-right: 0.375rem;
4035
+ }
4036
+ [data-pont2-tooltip-content] [data-slot="kbd"] {
4037
+ position: relative;
4038
+ isolation: isolate;
4039
+ border-radius: var(--pont2-radius-sm);
4040
+ }
4041
+
4042
+ [data-pont2-tooltip-content]::before {
4043
+ content: "";
4044
+ position: absolute;
4045
+ width: 0.625rem;
4046
+ height: 0.625rem;
4047
+ border-radius: 2px;
4048
+ background-color: var(--pont2-foreground);
4049
+ rotate: 45deg;
4050
+ z-index: -1;
4051
+ }
4052
+ [data-pont2-tooltip-content][data-side="top"]::before {
4053
+ bottom: -0.3125rem;
4054
+ left: calc(var(--pont2-arrow-x, 50%) - 0.3125rem);
4055
+ }
4056
+ [data-pont2-tooltip-content][data-side="bottom"]::before {
4057
+ top: -0.3125rem;
4058
+ left: calc(var(--pont2-arrow-x, 50%) - 0.3125rem);
4059
+ }
4060
+ [data-pont2-tooltip-content]:is([data-side="left"], [data-side="inline-start"])::before {
4061
+ right: -0.3125rem;
4062
+ top: calc(var(--pont2-arrow-y, 50%) - 0.3125rem);
4063
+ }
4064
+ [data-pont2-tooltip-content]:is([data-side="right"], [data-side="inline-end"])::before {
4065
+ left: -0.3125rem;
4066
+ top: calc(var(--pont2-arrow-y, 50%) - 0.3125rem);
4067
+ }
4068
+ }
4069
+
4070
+ /* --- end overlays (C) --- */
4071
+
4072
+ /* Kit: composites (each file wraps itself in @layer pont2.kit). Aliases need no CSS:
4073
+ their tags are listed in the primitive recipes. docs/10-primitives-and-kit.md */
4074
+ /* ../kit/alert/alert.css */
4075
+ /*
4076
+ * <pont2-alert> (kit composite). Everything shadcn defines comes from the
4077
+ * primitive recipe (primitives/alert/alert.css), which matches this element
4078
+ * through [data-pont2-alert]. This file adds only what the composite adds:
4079
+ * the warning / success / info statuses, coloured like shadcn's destructive
4080
+ * variant ("text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90").
4081
+ */
4082
+ @layer pont2.kit {
4083
+ pont2-alert {
4084
+ --_pont2-alert-status: currentColor;
4085
+ }
4086
+ pont2-alert[data-status="warning"] {
4087
+ --_pont2-alert-status: var(--pont2-warning);
4088
+ }
4089
+ pont2-alert[data-status="success"] {
4090
+ --_pont2-alert-status: var(--pont2-success);
4091
+ }
4092
+ pont2-alert[data-status="info"] {
4093
+ --_pont2-alert-status: var(--pont2-info);
4094
+ }
4095
+ pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) {
4096
+ color: var(--_pont2-alert-status);
4097
+ }
4098
+ pont2-alert:is([data-status="warning"], [data-status="success"], [data-status="info"]) > [data-slot="alert-description"] {
4099
+ color: color-mix(in oklab, var(--_pont2-alert-status) 90%, transparent);
4100
+ }
4101
+ }
4102
+
4103
+ /* ../kit/avatar/avatar.css */
4104
+ /*
4105
+ * <pont2-avatar> (kit composite). All styling comes from the primitive recipe
4106
+ * (primitives/avatar/avatar.css) through [data-pont2-avatar] and the parts'
4107
+ * identity attributes; the composite adds no visual rules of its own.
4108
+ *
4109
+ * The file exists so every kit element has a stylesheet in @layer pont2.kit,
4110
+ * where composite-specific rules go when they appear.
4111
+ */
4112
+ @layer pont2.kit {
4113
+ /* Size before upgrade, so a server-rendered composite does not collapse. */
4114
+ pont2-avatar:not([data-pont2-avatar]) {
4115
+ display: inline-flex;
4116
+ width: 2rem;
4117
+ height: 2rem;
4118
+ }
4119
+ pont2-avatar:not([data-pont2-avatar])[size="sm"] {
4120
+ width: 1.5rem;
4121
+ height: 1.5rem;
4122
+ }
4123
+ pont2-avatar:not([data-pont2-avatar])[size="lg"] {
4124
+ width: 2.5rem;
4125
+ height: 2.5rem;
4126
+ }
4127
+ }
4128
+
4129
+ /* ../kit/input-otp/input-otp.css */
4130
+ /*
4131
+ * <pont2-input-otp> (kit composite). All styling comes from the primitive
4132
+ * recipe (primitives/input-otp/input-otp.css) through [data-pont2-input-otp]
4133
+ * and the parts' identity attributes.
4134
+ *
4135
+ * Added here: the composite has no children before upgrade, so it reserves the
4136
+ * primitive's slot height (2.25rem) to avoid a layout shift.
4137
+ */
4138
+ @layer pont2.kit {
4139
+ pont2-input-otp:not([data-pont2-input-otp]) {
4140
+ display: flex;
4141
+ min-height: 2.25rem;
4142
+ }
4143
+ }
4144
+
4145
+ /* ../kit/auth-button/auth-button.css */
4146
+ /*
4147
+ * Auth buttons (kit composites). All visual styling is the button primitive's
4148
+ * recipe (primitives/button/button.css) on the native <button>, including
4149
+ * shadcn's icon spacing (`has-data-[icon=inline-start]`) and the icon sizes.
4150
+ * The busy spinner is the spinner primitive's part.
4151
+ *
4152
+ * Added here:
4153
+ * - before upgrade the shell is empty, so it reserves a default button's
4154
+ * height (h-9) to avoid a layout shift;
4155
+ * - brand marks keep their shape at any button size.
4156
+ */
4157
+ @layer pont2.kit {
4158
+ :is(pont2-provider-button, pont2-passkey-button, pont2-submit-button):not([data-pont2-shell]) {
4159
+ display: inline-block;
4160
+ min-height: 2.25rem;
4161
+ }
4162
+
4163
+ [data-pont2-button] > svg[data-provider-icon] {
4164
+ flex-shrink: 0;
4165
+ }
4166
+
4167
+ /* The busy spinner is decorative (the button carries aria-busy). */
4168
+ [data-pont2-button] > [data-pont2-spinner][aria-hidden="true"] {
4169
+ flex-shrink: 0;
4170
+ }
4171
+ }
4172
+
4173
+ /* ../kit/auth-field/auth-field.css */
4174
+ /*
4175
+ * Auth fields (kit composites). The field, label, input, input-group,
4176
+ * description and error recipes are the primitives'; the field host matches
4177
+ * them through [data-pont2-field], the parts through their identity
4178
+ * attributes. Added here:
4179
+ */
4180
+ @layer pont2.kit {
4181
+ /* Before upgrade the composite is empty: reserve label + gap + input (h-9),
4182
+ so a server-rendered screen does not jump. */
4183
+ :is(pont2-email-field, pont2-phone-field, pont2-username-field, pont2-name-field, pont2-identifier-field,
4184
+ pont2-password-field, pont2-confirm-field):not([data-pont2-field]) {
4185
+ display: block;
4186
+ min-height: 4rem;
4187
+ }
4188
+
4189
+ /* `mark` / required caret after the label text. */
4190
+ [data-pont2-field-label] > [data-slot="field-mark"] {
4191
+ color: var(--pont2-muted-foreground);
4192
+ font-weight: var(--pont2-font-weight-normal, 400);
4193
+ }
4194
+
4195
+ /* Password: label + "Forgot your password?" on one row, as in shadcn's login blocks
4196
+ ("flex items-center" + the link's "ml-auto text-sm underline-offset-4 hover:underline"). */
4197
+ [data-pont2-auth-field-label-row] {
4198
+ display: flex;
4199
+ align-items: center;
4200
+ gap: 0.5rem;
4201
+ }
4202
+ [data-pont2-auth-field-label-row] > [data-slot="field-forgot"] {
4203
+ margin-left: auto;
4204
+ height: auto;
4205
+ padding: 0;
4206
+ font-weight: var(--pont2-font-weight-normal, 400);
4207
+ }
4208
+ }
4209
+
4210
+ /* ../kit/otp-field/otp-field.css */
4211
+ /*
4212
+ * OTP field and resend (kit composites). The field, label, Input OTP and
4213
+ * error styling are the primitives' recipes. Added here:
4214
+ */
4215
+ @layer pont2.kit {
4216
+ /* Before upgrade: reserve the slot row (h-9) so the screen does not jump. */
4217
+ pont2-otp-field:not([data-pont2-field]) {
4218
+ display: block;
4219
+ min-height: 2.25rem;
4220
+ }
4221
+
4222
+ /* Auto-submit pending: the code is being checked. */
4223
+ pont2-otp-field [data-pont2-input-otp][aria-busy="true"] {
4224
+ opacity: 0.6;
4225
+ pointer-events: none;
4226
+ }
4227
+
4228
+ /* Resend row: "Resend code in 42s" / the link, centred, small muted text. */
4229
+ :is(pont2-otp-resend, [data-pont2-otp-resend]) {
4230
+ display: flex;
4231
+ justify-content: center;
4232
+ align-items: center;
4233
+ min-height: 1.25rem;
4234
+ color: var(--pont2-muted-foreground);
4235
+ font-size: var(--pont2-text-sm);
4236
+ line-height: var(--pont2-text-sm--line-height);
4237
+ }
4238
+ [data-pont2-otp-resend] > [data-slot="otp-resend-button"] {
4239
+ height: auto;
4240
+ padding: 0;
4241
+ color: inherit;
4242
+ font-size: inherit;
4243
+ line-height: inherit;
4244
+ font-weight: inherit;
4245
+ text-decoration-line: underline;
4246
+ text-underline-offset: 4px;
4247
+ }
4248
+ [data-pont2-otp-resend] > [data-slot="otp-resend-button"]:hover {
4249
+ color: var(--pont2-primary);
4250
+ }
4251
+ }
4252
+
4253
+ /* ../kit/link/link.css */
4254
+ /*
4255
+ * <pont2-link>. shadcn's login blocks: "text-center text-sm" on the row and
4256
+ * "underline underline-offset-4" on the link. The link itself is the button
4257
+ * primitive's `link` variant; here it is sized as inline text.
4258
+ */
4259
+ @layer pont2.kit {
4260
+ :is(pont2-link, [data-pont2-link]) {
4261
+ display: flex;
4262
+ flex-wrap: wrap;
4263
+ align-items: baseline;
4264
+ justify-content: center;
4265
+ column-gap: 0.25rem;
4266
+ color: var(--pont2-muted-foreground);
4267
+ font-size: var(--pont2-text-sm);
4268
+ line-height: var(--pont2-text-sm--line-height);
4269
+ }
4270
+ [data-pont2-link][data-align="start"] {
4271
+ justify-content: flex-start;
4272
+ }
4273
+ [data-pont2-link][data-align="end"] {
4274
+ justify-content: flex-end;
4275
+ }
4276
+ [data-pont2-link] > [data-slot="link-button"] {
4277
+ height: auto;
4278
+ padding: 0;
4279
+ color: inherit;
4280
+ font-size: inherit;
4281
+ line-height: inherit;
4282
+ font-weight: inherit;
4283
+ text-decoration-line: underline;
4284
+ text-underline-offset: 4px;
4285
+ }
4286
+ [data-pont2-link] > [data-slot="link-button"]:hover {
4287
+ color: var(--pont2-primary);
4288
+ }
4289
+ }
4290
+
4291
+ /* ../kit/divider/divider.css */
4292
+ /*
4293
+ * <pont2-divider>. Styled entirely by the FieldSeparator recipe through
4294
+ * [data-pont2-field-separator]. Added here: before upgrade the composite is
4295
+ * empty, so it reserves the separator's height (h-5).
4296
+ */
4297
+ @layer pont2.kit {
4298
+ pont2-divider:not([data-pont2-field-separator]) {
4299
+ display: block;
4300
+ height: 1.25rem;
4301
+ }
4302
+ }
4303
+
4304
+ /* ../kit/typography/typography.css */
4305
+ /*
4306
+ * <pont2-title> / <pont2-subtitle>: Tier 3 shells around a native <h1>–<h4> / <p>.
4307
+ *
4308
+ * Sizes follow shadcn's auth blocks (login-03/04: `<h1 class="text-2xl
4309
+ * font-bold">` + `<p class="text-muted-foreground text-balance">`); levels 2–4
4310
+ * step down. Margins are reset: spacing belongs to the layout (gap).
4311
+ */
4312
+ @layer pont2.kit {
4313
+ [data-pont2-title] {
4314
+ margin: 0;
4315
+ color: var(--pont2-foreground);
4316
+ font-weight: var(--pont2-font-weight-semibold);
4317
+ letter-spacing: var(--pont2-tracking-tight);
4318
+ text-wrap: balance;
4319
+ }
4320
+ [data-pont2-title][data-level="1"] {
4321
+ font-size: var(--pont2-text-2xl);
4322
+ line-height: var(--pont2-text-2xl--line-height);
4323
+ font-weight: var(--pont2-font-weight-bold);
4324
+ }
4325
+ [data-pont2-title][data-level="2"] {
4326
+ font-size: var(--pont2-text-xl);
4327
+ line-height: var(--pont2-text-xl--line-height);
4328
+ }
4329
+ [data-pont2-title][data-level="3"] {
4330
+ font-size: var(--pont2-text-lg);
4331
+ line-height: var(--pont2-text-lg--line-height);
4332
+ }
4333
+ [data-pont2-title][data-level="4"] {
4334
+ font-size: var(--pont2-text-base);
4335
+ line-height: var(--pont2-text-base--line-height);
4336
+ }
4337
+
4338
+ [data-pont2-subtitle] {
4339
+ margin: 0;
4340
+ color: var(--pont2-muted-foreground);
4341
+ font-size: var(--pont2-text-sm);
4342
+ line-height: var(--pont2-text-sm--line-height);
4343
+ text-wrap: balance;
4344
+ }
4345
+
4346
+ /*
4347
+ * align: `auto` inherits the parent's alignment. An explicit value makes the
4348
+ * element span its parent's inline axis (stretch works in flex and grid
4349
+ * parents, and a block already spans) and aligns the lines inside it, the
4350
+ * legacy kit's approach.
4351
+ */
4352
+ :is([data-pont2-title], [data-pont2-subtitle]):not([data-align="auto"]) {
4353
+ align-self: stretch;
4354
+ justify-self: stretch;
4355
+ }
4356
+ :is([data-pont2-title], [data-pont2-subtitle])[data-align="start"] {
4357
+ text-align: start;
4358
+ }
4359
+ :is([data-pont2-title], [data-pont2-subtitle])[data-align="center"] {
4360
+ text-align: center;
4361
+ }
4362
+ :is([data-pont2-title], [data-pont2-subtitle])[data-align="end"] {
4363
+ text-align: end;
4364
+ }
4365
+ }
4366
+
4367
+ /* ../kit/provider-field/provider-field.css */
4368
+ /*
4369
+ * <pont2-provider-field>: the legacy 12-column grid (provider-field.css in the
4370
+ * legacy kit), on the Field host. The provider buttons' hosts are
4371
+ * `display: contents`, so the grid items are their native buttons, which
4372
+ * stretch to fill their cells (shadcn's login blocks: `w-full`).
4373
+ */
4374
+ @layer pont2.kit {
4375
+ pont2-provider-field {
4376
+ display: grid;
4377
+ grid-template-columns: repeat(12, minmax(0, 1fr));
4378
+ }
4379
+ pont2-provider-field > pont2-provider-button > [data-pont2-button] {
4380
+ grid-column: span 12 / span 12;
4381
+ width: 100%;
4382
+ }
4383
+ pont2-provider-field[data-columns$="three"] > pont2-provider-button > [data-pont2-button] {
4384
+ grid-column: span 4 / span 4;
4385
+ }
4386
+ pont2-provider-field[data-columns$="four"] > pont2-provider-button > [data-pont2-button] {
4387
+ grid-column: span 3 / span 3;
4388
+ }
4389
+ pont2-provider-field[data-columns^="two-"] > pont2-provider-button:nth-child(-n + 2) > [data-pont2-button] {
4390
+ grid-column: span 6 / span 6;
4391
+ }
4392
+ pont2-provider-field[data-columns^="three-"] > pont2-provider-button:nth-child(-n + 3) > [data-pont2-button] {
4393
+ grid-column: span 4 / span 4;
4394
+ }
4395
+
4396
+ /* Before upgrade the composite is empty: reserve one row of buttons (h-9). */
4397
+ pont2-provider-field:not([data-pont2-field]) {
4398
+ display: block;
4399
+ min-height: 2.25rem;
4400
+ }
4401
+ }
4402
+
4403
+ /* ../kit/block/block.css */
4404
+ /*
4405
+ * <pont2-block>: the screen shell. A Card (the primitive recipe styles the
4406
+ * host through [data-pont2-card]) whose content sits directly in the host:
4407
+ * CardContent's inline padding (`px-(--card-spacing)`) is moved onto the host,
4408
+ * and the watermark footer bleeds back to the card's edges.
4409
+ *
4410
+ * Responsive like the legacy block: full-bleed and at least viewport-tall on
4411
+ * narrow screens; a centred card of `--pont2-block-width` from 40rem up.
4412
+ */
4413
+ @layer pont2.kit {
4414
+ pont2-block {
4415
+ display: flex;
4416
+ flex-direction: column;
4417
+ gap: var(--pont2-block-gap, 1rem);
4418
+ width: 100%;
4419
+ max-width: var(--pont2-block-width, 24rem);
4420
+ margin-inline: auto;
4421
+ padding-inline: var(--pont2-card-spacing);
4422
+ }
4423
+ pont2-block[data-align="stretch"] {
4424
+ align-items: stretch;
4425
+ }
4426
+ pont2-block[data-align="start"] {
4427
+ align-items: flex-start;
4428
+ }
4429
+ pont2-block[data-align="center"] {
4430
+ align-items: center;
4431
+ }
4432
+ pont2-block[data-align="end"] {
4433
+ align-items: flex-end;
4434
+ }
4435
+ pont2-block[data-justify="center"] {
4436
+ justify-content: center;
4437
+ }
4438
+ pont2-block[data-justify="end"] {
4439
+ justify-content: flex-end;
4440
+ }
4441
+
4442
+ @media (width < 40rem) {
4443
+ pont2-block {
4444
+ max-width: none;
4445
+ min-height: 100svh;
4446
+ border-radius: 0;
4447
+ }
4448
+ }
4449
+
4450
+ /* The watermark footer: full width, muted band, closes the card. */
4451
+ pont2-block > [data-block-footer] {
4452
+ align-self: stretch;
4453
+ justify-content: center;
4454
+ margin-inline: calc(-1 * var(--pont2-card-spacing));
4455
+ margin-bottom: calc(-1 * var(--pont2-card-spacing));
4456
+ padding-block: 0.75rem;
4457
+ background-color: color-mix(in oklab, var(--pont2-muted) 50%, transparent);
4458
+ }
4459
+
4460
+ /* Before upgrade: the card look comes from the tag-less recipe only after
4461
+ upgrade, so give the shell its width now to avoid a jump. */
4462
+ pont2-block:not([data-pont2-card]) {
4463
+ display: block;
4464
+ width: 100%;
4465
+ max-width: var(--pont2-block-width, 24rem);
4466
+ margin-inline: auto;
4467
+ }
4468
+ }
4469
+
4470
+ /* ../kit/watermark/watermark.css */
4471
+ /*
4472
+ * <pont2-watermark> (and the block footer's watermark part): "Powered by [Pontive]".
4473
+ * The legacy variables, in plain values: gap 1.5 (0.375rem), xs-sm text,
4474
+ * a 0.875rem-tall logo; the mark in Pontive indigo for `brand`.
4475
+ */
4476
+ @layer pont2.kit {
4477
+ :is(pont2-watermark, [data-pont2-watermark]) {
4478
+ display: inline-flex;
4479
+ flex-shrink: 0;
4480
+ align-items: center;
4481
+ gap: 0.375rem;
4482
+ color: currentColor;
4483
+ font-size: 0.8125rem;
4484
+ line-height: 1;
4485
+ --_pont2-watermark-mark: #6366f1;
4486
+ }
4487
+ [data-pont2-watermark][data-variant="theme"] {
4488
+ --_pont2-watermark-mark: currentColor;
4489
+ }
4490
+ [data-pont2-watermark][data-variant="muted"] {
4491
+ color: var(--pont2-muted-foreground);
4492
+ --_pont2-watermark-mark: var(--pont2-muted-foreground);
4493
+ }
4494
+ [data-pont2-watermark] > [data-slot="watermark-logo"] {
4495
+ flex-shrink: 0;
4496
+ width: auto;
4497
+ height: 0.875rem;
4498
+ }
4499
+ [data-pont2-watermark] [data-logo-mark] {
4500
+ fill: var(--_pont2-watermark-mark);
4501
+ }
4502
+ [data-pont2-watermark] [data-logo-wordmark] {
4503
+ fill: currentColor;
4504
+ }
4505
+ }
4506
+
4507
+ /* ../kit/container/container.css */
4508
+ /* <pont2-container>: the host is the flex box (legacy: an inner div). */
4509
+ @layer pont2.kit {
4510
+ :is(pont2-container, [data-pont2-container]) {
4511
+ box-sizing: border-box;
4512
+ display: flex;
4513
+ flex-direction: column;
4514
+ gap: var(--pont2-container-gap, 1rem);
4515
+ width: 100%;
4516
+ }
4517
+ [data-pont2-container][data-type="flex_row"] {
4518
+ flex-direction: row;
4519
+ flex-wrap: wrap;
4520
+ }
4521
+ [data-pont2-container][data-align="start"] {
4522
+ align-items: flex-start;
4523
+ }
4524
+ [data-pont2-container][data-align="center"] {
4525
+ align-items: center;
4526
+ }
4527
+ [data-pont2-container][data-align="end"] {
4528
+ align-items: flex-end;
4529
+ }
4530
+ [data-pont2-container][data-type="flex_row"][data-align="stretch"] {
4531
+ align-items: center; /* a row's cross axis is vertical: don't stretch heights */
4532
+ }
4533
+ [data-pont2-container][data-justify="center"] {
4534
+ justify-content: center;
4535
+ }
4536
+ [data-pont2-container][data-justify="end"] {
4537
+ justify-content: flex-end;
4538
+ }
4539
+ [data-pont2-container][data-justify="between"] {
4540
+ justify-content: space-between;
4541
+ }
4542
+ }
4543
+
4544
+ /* ../kit/header/header.css */
4545
+ /*
4546
+ * <pont2-header>. shadcn's login blocks: "flex flex-col items-center gap-2 text-center".
4547
+ * `align` sets both the boxes and the text, as the legacy header does.
4548
+ */
4549
+ @layer pont2.kit {
4550
+ :is(pont2-header, [data-pont2-header]) {
4551
+ box-sizing: border-box;
4552
+ display: flex;
4553
+ flex-direction: column;
4554
+ align-items: center;
4555
+ gap: var(--pont2-header-gap, 0.5rem);
4556
+ width: 100%;
4557
+ text-align: center;
4558
+ }
4559
+ [data-pont2-header][data-align="start"] {
4560
+ align-items: flex-start;
4561
+ text-align: start;
4562
+ }
4563
+ [data-pont2-header][data-align="end"] {
4564
+ align-items: flex-end;
4565
+ text-align: end;
4566
+ }
4567
+ }
4568
+
4569
+ /* ../kit/gap/gap.css */
4570
+ /* <pont2-gap>: the host is the spacer; its size comes from --pont2-gap-size. */
4571
+ @layer pont2.kit {
4572
+ :is(pont2-gap, [data-pont2-gap]) {
4573
+ display: block;
4574
+ flex-shrink: 0;
4575
+ width: 1px;
4576
+ height: var(--pont2-gap-size, 8px);
4577
+ }
4578
+ [data-pont2-gap][data-type="horizontal"] {
4579
+ width: var(--pont2-gap-size, 8px);
4580
+ height: 1px;
4581
+ }
4582
+ }
4583
+
4584
+ /* ../kit/logo/logo.css */
4585
+ /*
4586
+ * <pont2-logo>: one or two <img>s (light / dark), aligned on the inline axis.
4587
+ * The dark image is shown under the pont2 dark-mode switches, when present.
4588
+ */
4589
+ @layer pont2.kit {
4590
+ :is(pont2-logo, [data-pont2-logo]) {
4591
+ display: flex;
4592
+ justify-content: center;
4593
+ width: 100%;
4594
+ }
4595
+ [data-pont2-logo][data-align="start"] {
4596
+ justify-content: flex-start;
4597
+ }
4598
+ [data-pont2-logo][data-align="end"] {
4599
+ justify-content: flex-end;
4600
+ }
4601
+ [data-pont2-logo] > img {
4602
+ display: block;
4603
+ max-width: 100%;
4604
+ height: auto;
4605
+ }
4606
+ [data-pont2-logo] > img[data-logo-theme="dark"] {
4607
+ display: none;
4608
+ }
4609
+ :where(.dark, [data-theme="dark"]) [data-pont2-logo] > img[data-logo-theme="light"]:has(+ img[data-logo-theme="dark"]) {
4610
+ display: none;
4611
+ }
4612
+ :where(.dark, [data-theme="dark"]) [data-pont2-logo] > img[data-logo-theme="dark"] {
4613
+ display: block;
4614
+ }
4615
+ }
4616
+
4617
+ /* ../kit/countdown/countdown.css */
4618
+ /* <pont2-countdown>: small muted line, digits that do not jitter. */
4619
+ @layer pont2.kit {
4620
+ :is(pont2-countdown, [data-pont2-countdown]) {
4621
+ display: block;
4622
+ color: var(--pont2-muted-foreground);
4623
+ font-size: var(--pont2-text-sm);
4624
+ line-height: var(--pont2-text-sm--line-height);
4625
+ font-variant-numeric: tabular-nums;
4626
+ text-align: center;
4627
+ }
4628
+ }
4629
+
4630
+ /* ../kit/edit-identifier/edit-identifier.css */
4631
+ /* <pont2-edit-identifier>: "ada@example.com ✎", centred, the value truncating. */
4632
+ @layer pont2.kit {
4633
+ :is(pont2-edit-identifier, [data-pont2-edit-identifier]) {
4634
+ display: flex;
4635
+ align-items: center;
4636
+ justify-content: center;
4637
+ gap: 0.25rem;
4638
+ min-width: 0;
4639
+ font-size: var(--pont2-text-sm);
4640
+ line-height: var(--pont2-text-sm--line-height);
4641
+ }
4642
+ [data-pont2-edit-identifier] > [data-slot="edit-identifier-value"] {
4643
+ overflow: hidden;
4644
+ font-weight: var(--pont2-font-weight-medium);
4645
+ text-overflow: ellipsis;
4646
+ white-space: nowrap;
4647
+ }
4648
+ }
4649
+
4650
+ /* ../kit/secret/secret.css */
4651
+ /* <pont2-secret>: title, the secret in an input group, copied status, issuer/account. */
4652
+ @layer pont2.kit {
4653
+ :is(pont2-secret, [data-pont2-secret]) {
4654
+ display: flex;
4655
+ flex-direction: column;
4656
+ gap: 0.5rem;
4657
+ width: 100%;
4658
+ }
4659
+ [data-pont2-secret] > [data-slot="secret-title"] {
4660
+ margin: 0;
4661
+ font-size: var(--pont2-text-sm);
4662
+ line-height: var(--pont2-text-sm--line-height);
4663
+ font-weight: var(--pont2-font-weight-medium);
4664
+ }
4665
+ [data-pont2-secret] [data-secret] {
4666
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
4667
+ letter-spacing: 0.05em;
4668
+ }
4669
+ /* Reserved line, so the status appearing does not shift the layout. */
4670
+ [data-pont2-secret] > [data-slot="secret-copied"] {
4671
+ min-height: 1rem;
4672
+ color: var(--pont2-muted-foreground);
4673
+ font-size: var(--pont2-text-xs);
4674
+ line-height: 1rem;
4675
+ }
4676
+ [data-pont2-secret] > [data-slot="secret-metadata"] {
4677
+ display: flex;
4678
+ flex-wrap: wrap;
4679
+ gap: 0.5rem 1.5rem;
4680
+ margin: 0;
4681
+ }
4682
+ [data-pont2-secret] > [data-slot="secret-metadata"] dt {
4683
+ color: var(--pont2-muted-foreground);
4684
+ font-size: var(--pont2-text-xs);
4685
+ line-height: 1rem;
4686
+ }
4687
+ [data-pont2-secret] > [data-slot="secret-metadata"] dd {
4688
+ margin: 0;
4689
+ font-size: var(--pont2-text-sm);
4690
+ line-height: var(--pont2-text-sm--line-height);
4691
+ font-weight: var(--pont2-font-weight-medium);
4692
+ }
4693
+ }
4694
+
4695
+ /* ../kit/qr-code/qr-code.css */
4696
+ /*
4697
+ * <pont2-qr-code>: a dark-on-white code (scanners need the contrast and the quiet
4698
+ * zone, whatever the theme), fading behind a reveal button when obscured.
4699
+ */
4700
+ @layer pont2.kit {
4701
+ :is(pont2-qr-code, [data-pont2-qr-code]) {
4702
+ position: relative;
4703
+ display: grid;
4704
+ place-items: center;
4705
+ width: fit-content;
4706
+ margin-inline: auto;
4707
+ }
4708
+ [data-pont2-qr-code] > [data-slot="qr-code-image"] {
4709
+ display: block;
4710
+ width: var(--pont2-qr-code-size, 12rem);
4711
+ height: auto;
4712
+ border-radius: var(--pont2-radius-md);
4713
+ box-shadow: 0 0 0 1px var(--pont2-border);
4714
+ transition: opacity 200ms ease;
4715
+ }
4716
+ [data-pont2-qr-code][data-obscured] > [data-slot="qr-code-image"] {
4717
+ opacity: 0.15;
4718
+ }
4719
+ [data-pont2-qr-code] > [data-slot="qr-code-overlay"] {
4720
+ position: absolute;
4721
+ inset: 0;
4722
+ display: grid;
4723
+ place-items: center;
4724
+ }
4725
+ @media (prefers-reduced-motion: reduce) {
4726
+ [data-pont2-qr-code] > [data-slot="qr-code-image"] {
4727
+ transition: none;
4728
+ }
4729
+ }
4730
+ }
4731
+
4732
+ /* ../kit/recovery-codes/recovery-codes.css */
4733
+ /* <pont2-recovery-codes>: title, description, a monospace two-column code grid, actions. */
4734
+ @layer pont2.kit {
4735
+ :is(pont2-recovery-codes, [data-pont2-recovery-codes]) {
4736
+ display: flex;
4737
+ flex-direction: column;
4738
+ gap: 0.75rem;
4739
+ width: 100%;
4740
+ }
4741
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-title"] {
4742
+ margin: 0;
4743
+ font-weight: var(--pont2-font-weight-medium);
4744
+ }
4745
+ [data-pont2-recovery-codes] > :is([data-slot="recovery-codes-description"], [data-slot="recovery-codes-empty"]) {
4746
+ margin: 0;
4747
+ color: var(--pont2-muted-foreground);
4748
+ font-size: var(--pont2-text-sm);
4749
+ line-height: var(--pont2-text-sm--line-height);
4750
+ }
4751
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-list"] {
4752
+ display: grid;
4753
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4754
+ gap: 0.5rem 1rem;
4755
+ margin: 0;
4756
+ padding: 0.75rem 1rem;
4757
+ list-style: none;
4758
+ border-radius: var(--pont2-radius-md);
4759
+ background-color: var(--pont2-muted);
4760
+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
4761
+ font-size: var(--pont2-text-sm);
4762
+ line-height: var(--pont2-text-sm--line-height);
4763
+ text-align: center;
4764
+ }
4765
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] {
4766
+ display: flex;
4767
+ gap: 0.5rem;
4768
+ }
4769
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-actions"] > [data-pont2-button] {
4770
+ flex: 1;
4771
+ }
4772
+ [data-pont2-recovery-codes] > [data-slot="recovery-codes-copied"] {
4773
+ min-height: 1rem;
4774
+ color: var(--pont2-muted-foreground);
4775
+ font-size: var(--pont2-text-xs);
4776
+ line-height: 1rem;
4777
+ text-align: center;
4778
+ }
4779
+ }
4780
+
4781
+ /* ../kit/scope-list/scope-list.css */
4782
+ /* <pont2-scope-list>: one checkbox row per scope (shadcn's checkbox + label row: "flex items-center gap-3"). */
4783
+ @layer pont2.kit {
4784
+ :is(pont2-scope-list, [data-pont2-scope-list]) {
4785
+ display: flex;
4786
+ flex-direction: column;
4787
+ gap: 0.75rem;
4788
+ }
4789
+ [data-pont2-scope-list] [data-slot="scope-list-label"] {
4790
+ display: flex;
4791
+ align-items: center;
4792
+ gap: 0.75rem;
4793
+ font-size: var(--pont2-text-sm);
4794
+ line-height: var(--pont2-text-sm--line-height);
4795
+ cursor: pointer;
4796
+ }
4797
+ [data-pont2-scope-list] [data-required] [data-slot="scope-list-label"],
4798
+ [data-pont2-scope-list][data-disabled] [data-slot="scope-list-label"] {
4799
+ cursor: default;
4800
+ }
4801
+ [data-pont2-scope-list][data-disabled] [data-slot="scope-list-text"] {
4802
+ opacity: 0.5;
4803
+ }
4804
+ }
4805
+
4806
+ /* ../kit/layout/layout.css */
4807
+ /*
4808
+ * <pont2-layout>: the flow host. The host and its form have no box of their own
4809
+ * (the screen's block is the visible shell); a pending request is signalled by
4810
+ * aria-busy on the form, which the elements' own busy states already show.
4811
+ */
4812
+ @layer pont2.kit {
4813
+ :is(pont2-layout, [data-pont2-layout]) {
4814
+ display: block;
4815
+ width: 100%;
4816
+ }
4817
+ [data-pont2-layout] > [data-slot="layout-form"] {
4818
+ display: contents;
4819
+ }
4820
+ /* The error banner sits in the screen's flow (block gap); the restart button spans it. */
4821
+ [data-pont2-layout] pont2-button[data-flow-error] > [data-pont2-button] {
4822
+ width: 100%;
4823
+ }
4824
+ }
4825
+
4826
+ /* ../kit/flow-widget/flow-widget.css */
4827
+ /* <pont2-signin> / <pont2-signup>: a block-level host; a centred spinner until the first screen. */
4828
+ @layer pont2.kit {
4829
+ :is(pont2-signin, pont2-signup, [data-pont2-flow-widget]) {
4830
+ display: block;
4831
+ width: 100%;
4832
+ }
4833
+ [data-pont2-flow-widget] > [data-slot="flow-widget-loading"] {
4834
+ display: grid;
4835
+ place-items: center;
4836
+ min-height: 12rem;
4837
+ color: var(--pont2-muted-foreground);
4838
+ }
4839
+ }