@partrunner-ai/ui 2.0.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.
@@ -0,0 +1,3445 @@
1
+ /* @partrunner-ai/ui — GENERATED adaptive light/dark bundle. Do not edit. */
2
+
3
+ /* Approved fonts + tokens + every component rule, in that order. */
4
+
5
+ /* @partrunner-ai/tokens — approved self-hosted brand fonts. GENERATED — do not edit. */
6
+
7
+ @font-face {
8
+ font-family: 'Barlow';
9
+ font-style: normal;
10
+ font-display: swap;
11
+ font-weight: 400;
12
+ src: url('./fonts/barlow-latin-400-normal.woff2') format('woff2');
13
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
14
+ }
15
+
16
+ @font-face {
17
+ font-family: 'Barlow';
18
+ font-style: normal;
19
+ font-display: swap;
20
+ font-weight: 500;
21
+ src: url('./fonts/barlow-latin-500-normal.woff2') format('woff2');
22
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
23
+ }
24
+
25
+ @font-face {
26
+ font-family: 'Barlow';
27
+ font-style: normal;
28
+ font-display: swap;
29
+ font-weight: 600;
30
+ src: url('./fonts/barlow-latin-600-normal.woff2') format('woff2');
31
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
32
+ }
33
+
34
+ @font-face {
35
+ font-family: 'Barlow';
36
+ font-style: normal;
37
+ font-display: swap;
38
+ font-weight: 700;
39
+ src: url('./fonts/barlow-latin-700-normal.woff2') format('woff2');
40
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
41
+ }
42
+
43
+ @font-face {
44
+ font-family: 'Bebas Neue';
45
+ font-style: normal;
46
+ font-display: swap;
47
+ font-weight: 400;
48
+ src: url('./fonts/bebas-neue-latin-400-normal.woff2') format('woff2');
49
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
50
+ }
51
+
52
+ /* @partrunner-ai/tokens — crystal theme. GENERATED from src/tokens.ts — do not edit. */
53
+
54
+ :root {
55
+ --pr-accent-hover: #f5c420;
56
+ --pr-accent-deep: #d69e00;
57
+ --pr-accent-tint: #fff6d1;
58
+ --pr-accent-tint-faint: #fffbeb;
59
+ --pr-glow-accent-sm: 0 4px 16px -2px rgba(253, 210, 56, 0.35), 0 1px 4px -1px rgba(253, 210, 56, 0.2);
60
+ --pr-glow-accent: 0 8px 32px -4px rgba(253, 210, 56, 0.45), 0 2px 8px -2px rgba(253, 210, 56, 0.3);
61
+ --pr-glow-accent-lg: 0 16px 48px -8px rgba(253, 210, 56, 0.5), 0 4px 12px -2px rgba(253, 210, 56, 0.35);
62
+ --pr-tracking-display: -0.022em;
63
+ --pr-tracking-display-tighter: -0.028em;
64
+ --pr-glass-blur: 24px;
65
+ --pr-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
66
+ --pr-accent: #fdd238;
67
+ --pr-accent-soft: #ffe573;
68
+ --pr-accent-strong: #f0bc00;
69
+ --pr-accent-ink: #1a1a1a;
70
+ --pr-accent-gradient: linear-gradient(135deg, var(--pr-accent-soft) 0%, var(--pr-accent) 50%, var(--pr-accent-strong) 100%);
71
+ --pr-accent-soft-gradient: linear-gradient(135deg, var(--pr-accent-tint) 0%, var(--pr-accent-soft) 100%);
72
+ --pr-shadow-accent: 0 8px 24px -4px rgba(253, 210, 56, 0.4), 0 2px 6px -1px rgba(253, 210, 56, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
73
+ --pr-shadow-accent-lg: 0 16px 40px -6px rgba(253, 210, 56, 0.5), 0 4px 12px -2px rgba(253, 210, 56, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
74
+ --pr-sidebar-bg: linear-gradient(165deg, var(--pr-accent-soft) 0%, var(--pr-accent) 45%, var(--pr-sidebar-bg-strong) 100%);
75
+ --pr-sidebar-bg-strong: #ecb800;
76
+ --pr-sidebar-fg: #1a1a1a;
77
+ --pr-sidebar-fg-muted: rgba(26, 26, 26, 0.6);
78
+ --pr-sidebar-border: rgba(26, 26, 26, 0.08);
79
+ --pr-sidebar-hover-bg: rgba(26, 26, 26, 0.08);
80
+ --pr-sidebar-active-bg: #1a1a1a;
81
+ --pr-sidebar-active-fg: #fdd238;
82
+ --pr-nav-width: 256px;
83
+ --pr-nav-rail-width: 72px;
84
+ --pr-nav-item-py: 10px;
85
+ --pr-nav-item-px: 14px;
86
+ --pr-nav-item-gap: 2px;
87
+ --pr-nav-brand-size: 30px;
88
+ --pr-nav-icon-size: 18px;
89
+ --pr-nav-label-size: 14px;
90
+ --pr-nav-section-label-size: 10.5px;
91
+ --pr-nav-child-indent: 20px;
92
+ --pr-radius-sm: 10px;
93
+ --pr-radius-md: 14px;
94
+ --pr-radius-card: 18px;
95
+ --pr-radius-lg: 22px;
96
+ --pr-radius-xl: 28px;
97
+ --pr-radius-nav-item: 12px;
98
+ --pr-font-title: 'Bebas Neue', 'Barlow', system-ui, sans-serif;
99
+ --pr-font-body: 'Barlow', 'Inter', system-ui, sans-serif;
100
+ --pr-font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
101
+ --pr-ease: cubic-bezier(0.22, 1, 0.36, 1);
102
+ --pr-focus-ring: 0 0 0 4px rgba(253, 210, 56, 0.35);
103
+ --pr-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
104
+ --pr-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
105
+ --pr-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
106
+ --pr-shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 20px 48px -12px rgba(15, 23, 42, 0.12);
107
+ --pr-shadow-xl: 0 4px 6px rgba(15, 23, 42, 0.04), 0 32px 64px -16px rgba(15, 23, 42, 0.16);
108
+ --pr-shadow-inner-glass: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
109
+ --pr-glass-bg: rgba(255, 255, 255, 0.85);
110
+ --pr-glass-bg-strong: rgba(255, 255, 255, 0.95);
111
+ --pr-glass-bg-soft: rgba(255, 255, 255, 0.6);
112
+ --pr-glass-border: rgba(255, 255, 255, 0.8);
113
+ --pr-glass-border-active: rgba(255, 255, 255, 0.9);
114
+ --pr-surface-gradient: linear-gradient(180deg, #fafbfd 0%, #f4f6fb 100%);
115
+ --pr-card-yellow-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 210, 56, 0.18) 100%);
116
+ --pr-card-amber-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 215, 170, 0.35) 100%);
117
+ --pr-card-blue-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(191, 219, 254, 0.35) 100%);
118
+ --pr-card-purple-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(221, 214, 254, 0.35) 100%);
119
+ --pr-card-green-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(187, 247, 208, 0.4) 100%);
120
+ --pr-card-rose-gradient: linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 205, 211, 0.35) 100%);
121
+ --pr-bg: #fafbfd;
122
+ --pr-surface: #ffffff;
123
+ --pr-elevated: #ffffff;
124
+ --pr-fg: #1a1a1a;
125
+ --pr-fg-muted: #4b5563;
126
+ --pr-fg-faint: #6b7280;
127
+ --pr-border: #e5e7ee;
128
+ --pr-border-strong: #d1d5db;
129
+ --pr-scrollbar-thumb: rgb(26 26 26 / 18%);
130
+ --pr-scrollbar-thumb-hover: rgb(26 26 26 / 32%);
131
+ --pr-danger: #ef4444;
132
+ --pr-danger-fg: #1a1612;
133
+ --pr-success: #059669;
134
+ --pr-warning: #d97706;
135
+ --pr-info: #3b82f6;
136
+ --pr-surface-fg: #1a1a1a;
137
+ --pr-elevated-fg: #1a1a1a;
138
+ --pr-success-fg: #1a1612;
139
+ --pr-warning-fg: #1a1612;
140
+ --pr-info-fg: #1a1612;
141
+ --pr-shadow-elevated: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 24px -8px rgba(15, 23, 42, 0.08);
142
+ --pr-shadow-card: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
143
+ --pr-tone-yellow-bg: rgba(253, 210, 56, 0.2);
144
+ --pr-tone-yellow-fg: #8a6300;
145
+ --pr-tone-yellow-border: rgba(138, 99, 0, 0.35);
146
+ --pr-tone-blue-bg: rgba(59, 130, 246, 0.15);
147
+ --pr-tone-blue-fg: #2563eb;
148
+ --pr-tone-blue-border: rgba(37, 99, 235, 0.35);
149
+ --pr-tone-amber-bg: rgba(245, 158, 11, 0.15);
150
+ --pr-tone-amber-fg: #d97706;
151
+ --pr-tone-amber-border: rgba(217, 119, 6, 0.35);
152
+ --pr-tone-purple-bg: rgba(139, 92, 246, 0.15);
153
+ --pr-tone-purple-fg: #7c3aed;
154
+ --pr-tone-purple-border: rgba(124, 58, 237, 0.35);
155
+ --pr-tone-green-bg: rgba(16, 185, 129, 0.15);
156
+ --pr-tone-green-fg: #059669;
157
+ --pr-tone-green-border: rgba(5, 150, 105, 0.35);
158
+ --pr-tone-rose-bg: rgba(244, 63, 94, 0.15);
159
+ --pr-tone-rose-fg: #e11d48;
160
+ --pr-tone-rose-border: rgba(225, 29, 72, 0.35);
161
+ }
162
+
163
+ .dark {
164
+ --pr-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
165
+ --pr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 8px -4px rgba(0, 0, 0, 0.35);
166
+ --pr-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.45), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
167
+ --pr-shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.45), 0 20px 48px -12px rgba(0, 0, 0, 0.6);
168
+ --pr-shadow-xl: 0 4px 6px rgba(0, 0, 0, 0.5), 0 32px 64px -16px rgba(0, 0, 0, 0.7);
169
+ --pr-shadow-inner-glass: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
170
+ --pr-glass-bg: rgba(22, 22, 24, 0.85);
171
+ --pr-glass-bg-strong: rgba(22, 22, 24, 0.95);
172
+ --pr-glass-bg-soft: rgba(22, 22, 24, 0.6);
173
+ --pr-glass-border: rgba(255, 255, 255, 0.08);
174
+ --pr-glass-border-active: rgba(255, 255, 255, 0.14);
175
+ --pr-surface-gradient: linear-gradient(180deg, #161618 0%, #0e0e10 100%);
176
+ --pr-card-yellow-gradient: linear-gradient(140deg, rgba(30, 30, 34, 0.96) 0%, rgba(253, 210, 56, 0.08) 100%);
177
+ --pr-card-amber-gradient: linear-gradient(140deg, rgba(30, 30, 34, 0.96) 0%, rgba(254, 215, 170, 0.1) 100%);
178
+ --pr-card-blue-gradient: linear-gradient(140deg, rgba(30, 30, 34, 0.96) 0%, rgba(191, 219, 254, 0.1) 100%);
179
+ --pr-card-purple-gradient: linear-gradient(140deg, rgba(30, 30, 34, 0.96) 0%, rgba(221, 214, 254, 0.1) 100%);
180
+ --pr-card-green-gradient: linear-gradient(140deg, rgba(30, 30, 34, 0.96) 0%, rgba(187, 247, 208, 0.1) 100%);
181
+ --pr-card-rose-gradient: linear-gradient(140deg, rgba(30, 30, 34, 0.96) 0%, rgba(254, 205, 211, 0.1) 100%);
182
+ --pr-bg: #0e0e10;
183
+ --pr-surface: #161618;
184
+ --pr-elevated: #1e1e22;
185
+ --pr-fg: #f5f5f4;
186
+ --pr-fg-muted: #b4b4ba;
187
+ --pr-fg-faint: #9698a0;
188
+ --pr-border: #2a2a2e;
189
+ --pr-border-strong: #3a3a3f;
190
+ --pr-scrollbar-thumb: rgb(255 255 255 / 20%);
191
+ --pr-scrollbar-thumb-hover: rgb(255 255 255 / 34%);
192
+ --pr-danger: #f87171;
193
+ --pr-danger-fg: #1a1612;
194
+ --pr-success: #34d399;
195
+ --pr-warning: #fbbf24;
196
+ --pr-info: #60a5fa;
197
+ --pr-surface-fg: #f5f5f4;
198
+ --pr-elevated-fg: #f5f5f4;
199
+ --pr-success-fg: #1a1612;
200
+ --pr-warning-fg: #1a1612;
201
+ --pr-info-fg: #1a1612;
202
+ --pr-shadow-elevated: 0 10px 20px -4px rgba(0, 0, 0, 0.55), 0 4px 8px -4px rgba(0, 0, 0, 0.5);
203
+ --pr-shadow-card: 0 2px 8px 0 rgba(0, 0, 0, 0.28);
204
+ --pr-tone-yellow-fg: #fdd238;
205
+ --pr-tone-yellow-border: rgba(253, 210, 56, 0.45);
206
+ --pr-tone-blue-fg: #60a5fa;
207
+ --pr-tone-blue-border: rgba(96, 165, 250, 0.45);
208
+ --pr-tone-amber-fg: #fbbf24;
209
+ --pr-tone-amber-border: rgba(251, 191, 36, 0.45);
210
+ --pr-tone-purple-fg: #a78bfa;
211
+ --pr-tone-purple-border: rgba(167, 139, 250, 0.45);
212
+ --pr-tone-green-fg: #34d399;
213
+ --pr-tone-green-border: rgba(52, 211, 153, 0.45);
214
+ --pr-tone-rose-fg: #fb7185;
215
+ --pr-tone-rose-border: rgba(251, 113, 133, 0.45);
216
+ }
217
+
218
+ :root {
219
+ scrollbar-width: thin;
220
+ scrollbar-color: var(--pr-scrollbar-thumb) transparent;
221
+ }
222
+
223
+ ::-webkit-scrollbar {
224
+ width: 8px;
225
+ height: 8px;
226
+ }
227
+
228
+ ::-webkit-scrollbar-track {
229
+ background: transparent;
230
+ }
231
+
232
+ ::-webkit-scrollbar-thumb {
233
+ background: var(--pr-scrollbar-thumb);
234
+ border-radius: 999px;
235
+ }
236
+
237
+ ::-webkit-scrollbar-thumb:hover {
238
+ background: var(--pr-scrollbar-thumb-hover);
239
+ }
240
+
241
+ /* Where a horizontal and a vertical bar meet; otherwise an opaque grey block. */
242
+ ::-webkit-scrollbar-corner {
243
+ background: transparent;
244
+ }
245
+
246
+ /* @partrunner-ai/ui — L1 primitives.
247
+ *
248
+ * Plain CSS over the `--pr-*` scale, not Tailwind utilities. Consumers span
249
+ * Tailwind v3 and v4, and shipping utilities would force each host to scan
250
+ * node_modules and agree on a major. This works in both, and with no Tailwind.
251
+ *
252
+ * Import a theme alongside it (`@partrunner-ai/tokens/nexus.css`), or the shell's
253
+ * `styles.css`, which already carries one.
254
+ *
255
+ * Keep these rules unlayered. Tailwind v3 treats third-party rules inside
256
+ * `@layer components` as purgeable candidates, and plain unlayered resets also
257
+ * outrank layered component rules. Unlayered class selectors beat element resets;
258
+ * consumer utilities imported later still win when specificity is equal.
259
+ */
260
+
261
+ /* A scoped reset makes package geometry independent from Tailwind Preflight or
262
+ whatever reset a host app happens to use. `:where` keeps specificity at zero,
263
+ so an intentional consumer override can still win. */
264
+ :where([class^='pr-'], [class*=' pr-']),
265
+ :where([class^='pr-'], [class*=' pr-'])::before,
266
+ :where([class^='pr-'], [class*=' pr-'])::after {
267
+ box-sizing: border-box;
268
+ -webkit-font-smoothing: antialiased;
269
+ -moz-osx-font-smoothing: grayscale;
270
+ }
271
+
272
+ /* ───────────────────────── Button ───────────────────────── */
273
+
274
+ .pr-btn {
275
+ display: inline-flex;
276
+ align-items: center;
277
+ justify-content: center;
278
+ gap: 8px;
279
+ border: 1px solid transparent;
280
+ /* The Crystal field/button step (14px), per the v2 spec: buttons share the
281
+ input radius, not the chip radius. */
282
+ border-radius: var(--pr-radius-md, 0.5rem);
283
+ font-family: var(--pr-font-body, inherit);
284
+ font-weight: 600;
285
+ line-height: 1;
286
+ white-space: nowrap;
287
+ text-decoration: none;
288
+ cursor: pointer;
289
+ min-height: 40px;
290
+ transition:
291
+ background-color 160ms var(--pr-ease, ease),
292
+ border-color 160ms var(--pr-ease, ease),
293
+ box-shadow 160ms var(--pr-ease, ease),
294
+ transform 160ms var(--pr-ease, ease),
295
+ color 160ms var(--pr-ease, ease);
296
+ }
297
+
298
+ .pr-btn:focus-visible {
299
+ outline: none;
300
+ box-shadow: var(--pr-focus-ring);
301
+ }
302
+
303
+ .pr-btn:not(.pr-btn--static):active:not(:disabled):not([aria-disabled='true']) {
304
+ transform: scale(0.96);
305
+ }
306
+
307
+ /* `disabled` for buttons, `aria-disabled` for the asChild anchor case, which
308
+ cannot carry `disabled` at all. */
309
+ .pr-btn:disabled,
310
+ .pr-btn[aria-disabled='true'] {
311
+ opacity: 0.6;
312
+ cursor: not-allowed;
313
+ pointer-events: none;
314
+ }
315
+
316
+ .pr-btn--block {
317
+ width: 100%;
318
+ }
319
+
320
+ .pr-btn__spinner {
321
+ animation: pr-btn-spin 900ms linear infinite;
322
+ }
323
+
324
+ @keyframes pr-btn-spin {
325
+ to {
326
+ transform: rotate(360deg);
327
+ }
328
+ }
329
+
330
+ @media (prefers-reduced-motion: reduce) {
331
+ .pr-btn {
332
+ transition: none;
333
+ }
334
+ .pr-btn__spinner {
335
+ animation-duration: 2400ms;
336
+ }
337
+ }
338
+
339
+ /* sizes */
340
+ .pr-btn--xs {
341
+ height: 40px;
342
+ padding: 0 12px;
343
+ font-size: 12px;
344
+ gap: 6px;
345
+ }
346
+ .pr-btn--sm {
347
+ height: 40px;
348
+ padding: 0 14px;
349
+ font-size: 13px;
350
+ gap: 6px;
351
+ }
352
+ .pr-btn--md {
353
+ height: 40px;
354
+ padding: 0 16px;
355
+ font-size: 14px;
356
+ }
357
+ .pr-btn--lg {
358
+ height: 48px;
359
+ padding: 0 20px;
360
+ font-size: 16px;
361
+ }
362
+ .pr-btn--icon {
363
+ height: 40px;
364
+ width: 40px;
365
+ padding: 0;
366
+ }
367
+
368
+ /* variants */
369
+ /* The Crystal v2 CTA: the brand sweep with its own elevation. The flat accent
370
+ stays underneath as the painted fallback for engines without the gradient. */
371
+ .pr-btn--primary {
372
+ background: var(--pr-accent);
373
+ background-image: var(--pr-accent-gradient);
374
+ color: var(--pr-accent-ink);
375
+ border-color: transparent;
376
+ box-shadow: var(--pr-shadow-accent);
377
+ }
378
+ /* The deepened glow excludes :focus-visible so the focus indicator survives a
379
+ pointer resting on the control — the hover shadow would otherwise win on
380
+ specificity and replace the ring with an unfocusable-looking glow. */
381
+ .pr-btn--primary:hover:not(:focus-visible):not(:disabled):not([aria-disabled='true']) {
382
+ box-shadow: var(--pr-shadow-accent-lg);
383
+ }
384
+ /* `:not(:active)` keeps the base press scale(0.96) in charge during a click —
385
+ this rule comes later in the sheet and would otherwise out-cascade it. */
386
+ .pr-btn--primary:not(.pr-btn--static):hover:not(:active):not(:disabled):not([aria-disabled='true']) {
387
+ transform: translateY(-1px);
388
+ }
389
+ .pr-btn--primary:focus-visible {
390
+ box-shadow: 0 0 0 2px var(--pr-surface), 0 0 0 4px var(--pr-accent-ink);
391
+ }
392
+ .pr-btn--primary:disabled,
393
+ .pr-btn--primary[aria-disabled='true'] {
394
+ background-image: none;
395
+ box-shadow: none;
396
+ transform: none;
397
+ }
398
+ @media (prefers-reduced-motion: reduce) {
399
+ .pr-btn--primary:not(.pr-btn--static):hover:not(:active):not(:disabled):not([aria-disabled='true']) {
400
+ transform: none;
401
+ }
402
+ }
403
+
404
+ .pr-btn--secondary {
405
+ background: var(--pr-surface);
406
+ color: var(--pr-fg);
407
+ border-color: var(--pr-border);
408
+ }
409
+ .pr-btn--secondary:hover:not(:disabled):not([aria-disabled='true']) {
410
+ background: var(--pr-elevated);
411
+ border-color: var(--pr-border-strong);
412
+ }
413
+
414
+ .pr-btn--outline {
415
+ background: transparent;
416
+ color: var(--pr-fg);
417
+ border-color: var(--pr-border-strong);
418
+ }
419
+ .pr-btn--outline:hover:not(:disabled):not([aria-disabled='true']) {
420
+ background: var(--pr-surface);
421
+ }
422
+
423
+ .pr-btn--ghost {
424
+ background: transparent;
425
+ color: var(--pr-fg-muted);
426
+ }
427
+ .pr-btn--ghost:hover:not(:disabled):not([aria-disabled='true']) {
428
+ background: var(--pr-surface);
429
+ color: var(--pr-fg);
430
+ }
431
+
432
+ /* A button that reads as a link: no fill and no padding of its own, underlined on
433
+ hover. It remains a button because it performs an action; use `asChild` when
434
+ the rendered control is a link. */
435
+ .pr-btn--link {
436
+ background: transparent;
437
+ color: var(--pr-fg-muted);
438
+ height: auto;
439
+ padding: 0;
440
+ text-underline-offset: 4px;
441
+ }
442
+ .pr-btn--link:hover:not(:disabled):not([aria-disabled='true']) {
443
+ background: transparent;
444
+ color: var(--pr-fg);
445
+ text-decoration: underline;
446
+ }
447
+
448
+ /* Frosted treatment expressed through semantic surfaces so it follows the
449
+ active theme rather than hardcoding a light fill. */
450
+ .pr-btn--glass {
451
+ background: color-mix(in srgb, var(--pr-surface) 80%, transparent);
452
+ color: var(--pr-fg);
453
+ border-color: color-mix(in srgb, var(--pr-surface) 70%, transparent);
454
+ backdrop-filter: blur(12px);
455
+ }
456
+ .pr-btn--glass:hover:not(:disabled):not([aria-disabled='true']) {
457
+ background: var(--pr-surface);
458
+ }
459
+
460
+ .pr-btn--danger {
461
+ background: var(--pr-danger);
462
+ color: var(--pr-danger-fg);
463
+ }
464
+ .pr-btn--danger:hover:not(:disabled):not([aria-disabled='true']) {
465
+ filter: brightness(0.94);
466
+ }
467
+
468
+ .pr-btn--success {
469
+ background: var(--pr-success);
470
+ color: var(--pr-danger-fg);
471
+ }
472
+ .pr-btn--success:hover:not(:disabled):not([aria-disabled='true']) {
473
+ filter: brightness(0.94);
474
+ }
475
+
476
+ /* ───────────────────────── Badge ───────────────────────── */
477
+
478
+ .pr-badge {
479
+ display: inline-flex;
480
+ align-items: center;
481
+ gap: 5px;
482
+ padding: 3px 8px;
483
+ border-radius: 999px;
484
+ font-family: var(--pr-font-body, inherit);
485
+ font-size: 11.5px;
486
+ font-weight: 650;
487
+ line-height: 1.4;
488
+ white-space: nowrap;
489
+ }
490
+
491
+ .pr-badge--neutral {
492
+ background: var(--pr-bg);
493
+ color: var(--pr-fg-muted);
494
+ box-shadow: inset 0 0 0 1px var(--pr-border);
495
+ }
496
+ /* `md` is identical to the base rule; xs and sm add compact options without
497
+ resizing existing badges. */
498
+ .pr-badge--xs { padding: 2px 8px; font-size: 10px; }
499
+ .pr-badge--sm { padding: 2px 10px; font-size: 11px; }
500
+ .pr-badge--md { padding: 3px 8px; font-size: 11.5px; }
501
+
502
+ /* Transparent, tone carried by the border. `currentColor` so it follows whichever
503
+ tone set the text, instead of needing a rule per tone. */
504
+ .pr-badge--outline {
505
+ background: transparent;
506
+ box-shadow: inset 0 0 0 1px currentColor;
507
+ }
508
+
509
+ /* The dot inherits the tone's text colour for the same reason. */
510
+ .pr-badge__dot {
511
+ width: 6px;
512
+ height: 6px;
513
+ border-radius: 999px;
514
+ background: currentColor;
515
+ flex-shrink: 0;
516
+ }
517
+
518
+ .pr-badge--yellow {
519
+ background: var(--pr-tone-yellow-bg);
520
+ color: var(--pr-tone-yellow-fg);
521
+ }
522
+ .pr-badge--blue {
523
+ background: var(--pr-tone-blue-bg);
524
+ color: var(--pr-tone-blue-fg);
525
+ }
526
+ .pr-badge--amber {
527
+ background: var(--pr-tone-amber-bg);
528
+ color: var(--pr-tone-amber-fg);
529
+ }
530
+ .pr-badge--purple {
531
+ background: var(--pr-tone-purple-bg);
532
+ color: var(--pr-tone-purple-fg);
533
+ }
534
+ .pr-badge--green {
535
+ background: var(--pr-tone-green-bg);
536
+ color: var(--pr-tone-green-fg);
537
+ }
538
+ .pr-badge--rose {
539
+ background: var(--pr-tone-rose-bg);
540
+ color: var(--pr-tone-rose-fg);
541
+ }
542
+
543
+ /* Status tones tint the scale's semantic colours rather than inventing new ones. */
544
+ .pr-badge--danger {
545
+ background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
546
+ color: var(--pr-danger);
547
+ }
548
+ .pr-badge--success {
549
+ background: color-mix(in srgb, var(--pr-success) 14%, transparent);
550
+ color: var(--pr-success);
551
+ }
552
+ .pr-badge--warning {
553
+ background: color-mix(in srgb, var(--pr-warning) 14%, transparent);
554
+ color: var(--pr-warning);
555
+ }
556
+ .pr-badge--info {
557
+ background: color-mix(in srgb, var(--pr-info) 14%, transparent);
558
+ color: var(--pr-info);
559
+ }
560
+
561
+ .pr-badge--solid.pr-badge--danger {
562
+ background: var(--pr-danger);
563
+ color: var(--pr-danger-fg);
564
+ }
565
+ .pr-badge--solid.pr-badge--success {
566
+ background: var(--pr-success);
567
+ color: var(--pr-danger-fg);
568
+ }
569
+ .pr-badge--solid.pr-badge--warning {
570
+ background: var(--pr-warning);
571
+ color: var(--pr-accent-ink);
572
+ }
573
+ .pr-badge--solid.pr-badge--info {
574
+ background: var(--pr-info);
575
+ color: var(--pr-danger-fg);
576
+ }
577
+ .pr-badge--solid.pr-badge--neutral {
578
+ background: var(--pr-fg-muted);
579
+ color: var(--pr-surface);
580
+ box-shadow: none;
581
+ }
582
+
583
+ /* ───────────────────────── Dialog ───────────────────────── */
584
+
585
+ .pr-dialog {
586
+ position: fixed;
587
+ inset: 0;
588
+ z-index: 100;
589
+ display: flex;
590
+ align-items: center;
591
+ justify-content: center;
592
+ padding: 20px;
593
+ }
594
+
595
+ .pr-dialog__backdrop {
596
+ position: absolute;
597
+ inset: 0;
598
+ background: rgba(0, 0, 0, 0.45);
599
+ backdrop-filter: blur(2px);
600
+ }
601
+
602
+ .pr-dialog__panel {
603
+ position: relative;
604
+ display: flex;
605
+ flex-direction: column;
606
+ width: 100%;
607
+ max-height: calc(100vh - 40px);
608
+ /* `elevated`, not `surface`: a dialog sits above the page, and on a dark
609
+ theme a shadow cannot express that — only lightness can. */
610
+ background: var(--pr-elevated);
611
+ color: var(--pr-fg);
612
+ border: 1px solid var(--pr-border);
613
+ /* Modals sit at the top of the Crystal shape scale (28px). */
614
+ border-radius: var(--pr-radius-xl, 1rem);
615
+ box-shadow: var(--pr-shadow-elevated);
616
+ font-family: var(--pr-font-body, inherit);
617
+ }
618
+
619
+ .pr-dialog__panel:focus-visible {
620
+ outline: none;
621
+ box-shadow: var(--pr-shadow-elevated), var(--pr-focus-ring);
622
+ }
623
+
624
+ .pr-dialog__panel--sm { max-width: 380px; }
625
+ .pr-dialog__panel--md { max-width: 520px; }
626
+ .pr-dialog__panel--lg { max-width: 720px; }
627
+ .pr-dialog__panel--xl { max-width: 960px; }
628
+ /* The widest sizes provide room for tables and other dense dialog content. */
629
+ .pr-dialog__panel--2xl { max-width: 1120px; }
630
+ .pr-dialog__panel--4xl { max-width: 1320px; }
631
+
632
+ /* A custom header owns its own padding and layout; the dialog only keeps it from
633
+ scrolling with the body. */
634
+ .pr-dialog__header--custom {
635
+ display: block;
636
+ padding: 0;
637
+ }
638
+
639
+ .pr-dialog__header {
640
+ display: flex;
641
+ align-items: flex-start;
642
+ gap: 16px;
643
+ padding: 20px 20px 12px;
644
+ }
645
+
646
+ .pr-dialog__heading {
647
+ flex: 1;
648
+ min-width: 0;
649
+ }
650
+
651
+ .pr-dialog__title {
652
+ margin: 0;
653
+ font-family: var(--pr-font-body, inherit);
654
+ font-size: 16px;
655
+ font-weight: 700;
656
+ color: var(--pr-fg);
657
+ text-wrap: balance;
658
+ }
659
+
660
+ .pr-dialog__description {
661
+ margin: 4px 0 0;
662
+ font-size: 14px;
663
+ color: var(--pr-fg-muted);
664
+ text-wrap: pretty;
665
+ }
666
+
667
+ .pr-dialog__close {
668
+ flex-shrink: 0;
669
+ display: inline-flex;
670
+ align-items: center;
671
+ justify-content: center;
672
+ height: 40px;
673
+ width: 40px;
674
+ border: none;
675
+ border-radius: var(--pr-radius-sm, 0.5rem);
676
+ background: transparent;
677
+ color: var(--pr-fg-muted);
678
+ cursor: pointer;
679
+ }
680
+ .pr-dialog__close:hover { background: var(--pr-surface); color: var(--pr-fg); }
681
+ .pr-dialog__close:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
682
+
683
+ .pr-dialog__body {
684
+ flex: 1;
685
+ min-height: 0;
686
+ overflow-y: auto;
687
+ padding: 8px 20px 20px;
688
+ font-size: 14px;
689
+ }
690
+
691
+ .pr-dialog__footer {
692
+ display: flex;
693
+ justify-content: flex-end;
694
+ gap: 8px;
695
+ padding: 14px 20px;
696
+ border-top: 1px solid var(--pr-border);
697
+ }
698
+
699
+ /* Compound dialogs keep behavior and chrome in the package while letting apps
700
+ compose their own body. The legacy Dialog above uses the same layer and stays
701
+ visually stable for existing consumers. */
702
+ .pr-dialog__panel--compound {
703
+ display: grid;
704
+ gap: 16px;
705
+ padding: 24px;
706
+ overflow-y: auto;
707
+ animation: pr-dialog-enter 160ms var(--pr-ease, ease) both;
708
+ }
709
+ .pr-dialog__header--compound {
710
+ display: flex;
711
+ flex-direction: column;
712
+ gap: 6px;
713
+ padding: 0 44px 0 0;
714
+ }
715
+ .pr-dialog__footer--compound {
716
+ padding: 16px 0 0;
717
+ }
718
+ .pr-dialog__close--floating {
719
+ position: absolute;
720
+ top: 12px;
721
+ right: 12px;
722
+ }
723
+
724
+ .pr-alert-dialog__panel { max-width: 440px; }
725
+ .pr-alert-dialog__header {
726
+ display: flex;
727
+ flex-direction: column;
728
+ gap: 6px;
729
+ }
730
+ .pr-alert-dialog__title {
731
+ margin: 0;
732
+ font-size: 18px;
733
+ line-height: 1.25;
734
+ font-weight: 700;
735
+ color: var(--pr-fg);
736
+ text-wrap: balance;
737
+ }
738
+ .pr-alert-dialog__description {
739
+ margin: 0;
740
+ font-size: 14px;
741
+ line-height: 1.5;
742
+ color: var(--pr-fg-muted);
743
+ text-wrap: pretty;
744
+ }
745
+ .pr-alert-dialog__footer {
746
+ display: flex;
747
+ justify-content: flex-end;
748
+ gap: 8px;
749
+ padding-top: 4px;
750
+ }
751
+ .pr-alert-dialog__media {
752
+ display: inline-flex;
753
+ align-items: center;
754
+ justify-content: center;
755
+ width: 48px;
756
+ height: 48px;
757
+ border-radius: var(--pr-radius-md, 0.75rem);
758
+ background: var(--pr-surface);
759
+ color: var(--pr-fg-muted);
760
+ }
761
+
762
+ /* ───────────────────────── Sheet ───────────────────────── */
763
+
764
+ .pr-sheet {
765
+ position: fixed;
766
+ inset: 0;
767
+ z-index: 100;
768
+ }
769
+ .pr-sheet__backdrop {
770
+ position: absolute;
771
+ inset: 0;
772
+ background: rgba(0, 0, 0, 0.45);
773
+ backdrop-filter: blur(2px);
774
+ }
775
+ .pr-sheet__panel {
776
+ position: absolute;
777
+ display: flex;
778
+ flex-direction: column;
779
+ gap: 16px;
780
+ width: min(100%, 420px);
781
+ max-width: none;
782
+ height: 100%;
783
+ max-height: none;
784
+ padding: 24px;
785
+ overflow-y: auto;
786
+ border-radius: 0;
787
+ background: var(--pr-elevated);
788
+ color: var(--pr-fg);
789
+ border: 0 solid var(--pr-border);
790
+ box-shadow: var(--pr-shadow-elevated);
791
+ font-family: var(--pr-font-body, inherit);
792
+ }
793
+ .pr-sheet__panel[data-side='right'] {
794
+ inset: 0 0 0 auto;
795
+ border-left-width: 1px;
796
+ animation: pr-sheet-enter-right 200ms var(--pr-ease, ease) both;
797
+ }
798
+ .pr-sheet__panel[data-side='left'] {
799
+ inset: 0 auto 0 0;
800
+ border-right-width: 1px;
801
+ animation: pr-sheet-enter-left 200ms var(--pr-ease, ease) both;
802
+ }
803
+ .pr-sheet__panel[data-side='top'],
804
+ .pr-sheet__panel[data-side='bottom'] {
805
+ left: 0;
806
+ width: 100%;
807
+ height: auto;
808
+ max-height: min(80vh, 720px);
809
+ }
810
+ .pr-sheet__panel[data-side='top'] {
811
+ top: 0;
812
+ border-bottom-width: 1px;
813
+ animation: pr-sheet-enter-top 200ms var(--pr-ease, ease) both;
814
+ }
815
+ .pr-sheet__panel[data-side='bottom'] {
816
+ bottom: 0;
817
+ border-top-width: 1px;
818
+ animation: pr-sheet-enter-bottom 200ms var(--pr-ease, ease) both;
819
+ }
820
+ .pr-sheet__panel[data-width='sm'] { width: min(100%, 340px); }
821
+ .pr-sheet__panel[data-width='md'] { width: min(100%, 420px); }
822
+ .pr-sheet__panel[data-width='lg'] { width: min(100%, 560px); }
823
+ .pr-sheet__panel[data-width='xl'] { width: min(100%, 720px); }
824
+ .pr-sheet__panel[data-width='full'] { width: 100%; }
825
+ .pr-sheet__panel[data-side='top'],
826
+ .pr-sheet__panel[data-side='bottom'] { width: 100%; }
827
+ .pr-sheet__header {
828
+ display: flex;
829
+ flex-direction: column;
830
+ gap: 6px;
831
+ padding-right: 44px;
832
+ }
833
+ .pr-sheet__title {
834
+ margin: 0;
835
+ font-size: 18px;
836
+ font-weight: 700;
837
+ color: var(--pr-fg);
838
+ text-wrap: balance;
839
+ }
840
+ .pr-sheet__description {
841
+ margin: 0;
842
+ font-size: 14px;
843
+ line-height: 1.5;
844
+ color: var(--pr-fg-muted);
845
+ text-wrap: pretty;
846
+ }
847
+ .pr-sheet__footer {
848
+ display: flex;
849
+ justify-content: flex-end;
850
+ gap: 8px;
851
+ margin-top: auto;
852
+ padding-top: 16px;
853
+ border-top: 1px solid var(--pr-border);
854
+ }
855
+ .pr-sheet__close {
856
+ position: absolute;
857
+ top: 12px;
858
+ right: 12px;
859
+ display: inline-flex;
860
+ align-items: center;
861
+ justify-content: center;
862
+ width: 40px;
863
+ height: 40px;
864
+ padding: 0;
865
+ border: 0;
866
+ border-radius: var(--pr-radius-sm, 0.5rem);
867
+ background: transparent;
868
+ color: var(--pr-fg-muted);
869
+ cursor: pointer;
870
+ }
871
+ .pr-sheet__close:hover { background: var(--pr-surface); color: var(--pr-fg); }
872
+ .pr-sheet__close:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
873
+
874
+ @keyframes pr-dialog-enter {
875
+ from { opacity: 0; transform: translateY(4px) scale(0.985); }
876
+ to { opacity: 1; transform: translateY(0) scale(1); }
877
+ }
878
+ @keyframes pr-sheet-enter-right { from { transform: translateX(24px); opacity: 0; } }
879
+ @keyframes pr-sheet-enter-left { from { transform: translateX(-24px); opacity: 0; } }
880
+ @keyframes pr-sheet-enter-top { from { transform: translateY(-24px); opacity: 0; } }
881
+ @keyframes pr-sheet-enter-bottom { from { transform: translateY(24px); opacity: 0; } }
882
+
883
+ @media (prefers-reduced-motion: reduce) {
884
+ .pr-dialog__panel--compound,
885
+ .pr-sheet__panel { animation: none; }
886
+ }
887
+
888
+ @media (max-width: 639px) {
889
+ .pr-dialog { padding: 12px; }
890
+ .pr-dialog__panel--compound { padding: 20px; }
891
+ .pr-alert-dialog__footer { flex-direction: column-reverse; }
892
+ }
893
+
894
+ /* ───────────────────────── Input ───────────────────────── */
895
+
896
+ .pr-field {
897
+ display: inline-flex;
898
+ flex-direction: column;
899
+ gap: 6px;
900
+ font-family: var(--pr-font-body, inherit);
901
+ }
902
+ .pr-field--block { display: flex; width: 100%; }
903
+
904
+ .pr-label,
905
+ .pr-field__label {
906
+ display: inline-flex;
907
+ align-items: baseline;
908
+ gap: 4px;
909
+ font-size: 12.5px;
910
+ font-weight: 650;
911
+ color: var(--pr-fg-muted);
912
+ }
913
+ .pr-label__required { color: var(--pr-danger); }
914
+
915
+ /* `.pr-input` is the same field with nothing around it — see Input.tsx for when it
916
+ is used. The shared declarations are stated once so the two cannot drift. */
917
+ .pr-field__control,
918
+ .pr-input {
919
+ background: var(--pr-surface);
920
+ border: 1px solid var(--pr-border);
921
+ border-radius: var(--pr-radius-md, 0.75rem);
922
+ transition: border-color 160ms var(--pr-ease, ease);
923
+ }
924
+ .pr-field__control {
925
+ display: flex;
926
+ align-items: center;
927
+ gap: 8px;
928
+ }
929
+ .pr-field__control--sm, .pr-input--sm { height: 40px; padding: 0 10px; }
930
+ .pr-field__control--md, .pr-input--md { height: 40px; padding: 0 12px; }
931
+ .pr-field__control--lg, .pr-input--lg { height: 46px; padding: 0 14px; }
932
+
933
+ .pr-field__control:focus-within,
934
+ .pr-input:focus,
935
+ .pr-input:focus-visible {
936
+ border-color: var(--pr-accent-strong);
937
+ border-radius: var(--pr-radius-md, 0.75rem);
938
+ box-shadow: var(--pr-focus-ring);
939
+ outline: none;
940
+ }
941
+
942
+ .pr-input {
943
+ font-family: var(--pr-font-body, inherit);
944
+ font-size: 14px;
945
+ color: var(--pr-fg);
946
+ outline: none;
947
+ min-width: 0;
948
+ }
949
+ .pr-input--block { width: 100%; }
950
+ .pr-input::placeholder { color: var(--pr-fg-faint); }
951
+ .pr-input:disabled { cursor: not-allowed; opacity: 0.6; }
952
+ .pr-input[aria-invalid='true'] { border-color: var(--pr-danger); }
953
+
954
+ .pr-field--invalid .pr-field__control { border-color: var(--pr-danger); }
955
+ .pr-field--disabled .pr-field__control { opacity: 0.6; }
956
+
957
+ .pr-field__input {
958
+ flex: 1;
959
+ min-width: 0;
960
+ border: none;
961
+ outline: none;
962
+ background: transparent;
963
+ color: var(--pr-fg);
964
+ font: inherit;
965
+ font-size: 14px;
966
+ }
967
+ .pr-field__input:focus-visible {
968
+ border-radius: 0;
969
+ box-shadow: none;
970
+ outline: none;
971
+ }
972
+ .pr-field__input::placeholder { color: var(--pr-fg-faint); }
973
+ .pr-field__input:disabled { cursor: not-allowed; }
974
+
975
+ /* ───────────────────── File Dropzone ───────────────────── */
976
+
977
+ .pr-file-dropzone-field {
978
+ display: inline-flex;
979
+ flex-direction: column;
980
+ gap: 6px;
981
+ width: min(100%, 420px);
982
+ min-width: 0;
983
+ font-family: var(--pr-font-body, inherit);
984
+ }
985
+ .pr-file-dropzone-field--block { display: flex; width: 100%; }
986
+
987
+ .pr-file-dropzone {
988
+ position: relative;
989
+ display: flex;
990
+ flex-direction: column;
991
+ justify-content: center;
992
+ gap: 16px;
993
+ min-width: 0;
994
+ min-height: 160px;
995
+ padding: 24px;
996
+ overflow: hidden;
997
+ border: 1px dashed var(--pr-border-strong);
998
+ border-radius: var(--pr-radius-lg);
999
+ background: var(--pr-surface);
1000
+ color: var(--pr-fg);
1001
+ cursor: pointer;
1002
+ transition:
1003
+ background-color 160ms var(--pr-ease, ease),
1004
+ border-color 160ms var(--pr-ease, ease),
1005
+ box-shadow 160ms var(--pr-ease, ease);
1006
+ }
1007
+ .pr-file-dropzone:hover:not([data-state='disabled']):not([data-state='invalid']) {
1008
+ border-color: var(--pr-accent-strong);
1009
+ }
1010
+ .pr-file-dropzone:has(.pr-file-dropzone__input:focus-visible) {
1011
+ border-color: var(--pr-accent-strong);
1012
+ box-shadow: var(--pr-focus-ring);
1013
+ outline: none;
1014
+ }
1015
+ .pr-file-dropzone[data-state='drag-active'] {
1016
+ background: var(--pr-tone-yellow-bg);
1017
+ border-color: var(--pr-tone-yellow-border);
1018
+ border-style: solid;
1019
+ }
1020
+ .pr-file-dropzone[data-state='invalid'] { border-color: var(--pr-danger); }
1021
+ .pr-file-dropzone[data-state='disabled'] {
1022
+ cursor: not-allowed;
1023
+ opacity: 0.6;
1024
+ }
1025
+
1026
+ .pr-file-dropzone__input {
1027
+ position: absolute;
1028
+ z-index: 3;
1029
+ inset: 0;
1030
+ width: 100%;
1031
+ height: 100%;
1032
+ margin: 0;
1033
+ opacity: 0;
1034
+ cursor: pointer;
1035
+ }
1036
+ .pr-file-dropzone__input:disabled { cursor: not-allowed; }
1037
+
1038
+ .pr-file-dropzone__content {
1039
+ display: flex;
1040
+ flex-direction: column;
1041
+ align-items: center;
1042
+ gap: 8px;
1043
+ min-width: 0;
1044
+ text-align: center;
1045
+ pointer-events: none;
1046
+ }
1047
+ .pr-file-dropzone__icon {
1048
+ display: inline-flex;
1049
+ align-items: center;
1050
+ justify-content: center;
1051
+ width: 44px;
1052
+ height: 44px;
1053
+ border-radius: var(--pr-radius-md);
1054
+ background: var(--pr-tone-yellow-bg);
1055
+ color: var(--pr-tone-yellow-fg);
1056
+ box-shadow: inset 0 0 0 1px var(--pr-tone-yellow-border);
1057
+ }
1058
+ .pr-file-dropzone__browse {
1059
+ color: var(--pr-fg);
1060
+ font-size: 14px;
1061
+ font-weight: 650;
1062
+ line-height: 1.35;
1063
+ }
1064
+ .pr-file-dropzone__description {
1065
+ color: var(--pr-fg-muted);
1066
+ font-size: 14px;
1067
+ line-height: 1.45;
1068
+ text-wrap: pretty;
1069
+ }
1070
+
1071
+ .pr-file-dropzone__files {
1072
+ display: grid;
1073
+ gap: 6px;
1074
+ min-width: 0;
1075
+ margin: 0;
1076
+ padding: 0;
1077
+ list-style: none;
1078
+ pointer-events: none;
1079
+ }
1080
+ .pr-file-dropzone__file {
1081
+ display: flex;
1082
+ align-items: center;
1083
+ gap: 8px;
1084
+ min-width: 0;
1085
+ min-height: 40px;
1086
+ padding: 8px 10px;
1087
+ border-radius: var(--pr-radius-md);
1088
+ background: var(--pr-elevated);
1089
+ color: var(--pr-fg-muted);
1090
+ box-shadow: inset 0 0 0 1px var(--pr-border);
1091
+ }
1092
+ .pr-file-dropzone__file-name {
1093
+ min-width: 0;
1094
+ overflow: hidden;
1095
+ color: var(--pr-fg);
1096
+ font-size: 14px;
1097
+ font-weight: 600;
1098
+ text-overflow: ellipsis;
1099
+ white-space: nowrap;
1100
+ }
1101
+ .pr-file-dropzone__file-size {
1102
+ margin-left: auto;
1103
+ color: var(--pr-fg-muted);
1104
+ font-size: 12px;
1105
+ font-variant-numeric: tabular-nums;
1106
+ white-space: nowrap;
1107
+ }
1108
+
1109
+ .pr-file-dropzone-field__message {
1110
+ margin: 0;
1111
+ color: var(--pr-fg-muted);
1112
+ font-size: 14px;
1113
+ line-height: 1.4;
1114
+ }
1115
+ .pr-file-dropzone-field__message--error { color: var(--pr-danger); }
1116
+
1117
+ @media (max-width: 480px) {
1118
+ .pr-file-dropzone { padding: 20px 16px; }
1119
+ }
1120
+
1121
+ @media (prefers-reduced-motion: reduce) {
1122
+ .pr-file-dropzone { transition: none; }
1123
+ }
1124
+
1125
+ /* ─────────────────────── Select ─────────────────────── */
1126
+
1127
+ /* The box is the same box as the Input's, stated once so a select and a text field
1128
+ sitting next to each other in a form cannot drift apart. */
1129
+ .pr-select { display: inline-flex; flex-direction: column; gap: 6px; font-family: var(--pr-font-body, inherit); }
1130
+ .pr-select--block { display: flex; width: 100%; }
1131
+
1132
+ .pr-select__control {
1133
+ position: relative;
1134
+ display: flex;
1135
+ align-items: center;
1136
+ background: var(--pr-surface);
1137
+ border: 1px solid var(--pr-border);
1138
+ border-radius: var(--pr-radius-md, 0.75rem);
1139
+ transition: border-color 160ms var(--pr-ease, ease);
1140
+ }
1141
+ .pr-select__control--sm { height: 40px; }
1142
+ .pr-select__control--md { height: 40px; }
1143
+ .pr-select__control--lg { height: 46px; }
1144
+
1145
+ .pr-select__control:focus-within {
1146
+ border-color: var(--pr-accent-strong);
1147
+ box-shadow: var(--pr-focus-ring);
1148
+ }
1149
+ .pr-field--invalid .pr-select__control { border-color: var(--pr-danger); }
1150
+ .pr-select--disabled .pr-select__control { opacity: 0.6; }
1151
+
1152
+ .pr-select__input {
1153
+ flex: 1;
1154
+ min-width: 0;
1155
+ height: 100%;
1156
+ /* Room for the chevron on the right; the native arrow is removed because it sits
1157
+ at a different offset per platform and would double up with ours. */
1158
+ padding: 0 34px 0 12px;
1159
+ border: none;
1160
+ outline: none;
1161
+ background: transparent;
1162
+ color: var(--pr-fg);
1163
+ font: inherit;
1164
+ font-size: 14px;
1165
+ appearance: none;
1166
+ cursor: pointer;
1167
+ }
1168
+ .pr-select__input:focus-visible {
1169
+ border-radius: 0;
1170
+ box-shadow: none;
1171
+ outline: none;
1172
+ }
1173
+ .pr-select__input:disabled { cursor: not-allowed; }
1174
+ /* An unchosen placeholder should read as placeholder text, not as a value. */
1175
+ .pr-select__input:has(option[value='']:checked) { color: var(--pr-fg-faint); }
1176
+
1177
+ /* The open menu is drawn by the browser, but it takes its ink and paper from the
1178
+ element: the `background: transparent` above leaves Chrome painting the popup
1179
+ on its own white sheet while the options keep `--pr-fg`, which in dark mode is
1180
+ near-white text on white. Stating the pair per option is what carries the theme
1181
+ into the popup — Chrome on Windows/Linux honors it; macOS draws a system menu
1182
+ that ignores it and is legible either way. */
1183
+ .pr-select__input option,
1184
+ .pr-select__input optgroup {
1185
+ background-color: var(--pr-surface);
1186
+ color: var(--pr-fg);
1187
+ }
1188
+ /* Only the empty-value placeholder, to mirror exactly what the `:has()` rule above
1189
+ scopes. Every other disabled option keeps the normal ink and takes the dimming
1190
+ the UA already applies — two dimmings compound into something unreadable, and a
1191
+ Select whose value happens to be disabled would read as an unfilled field. */
1192
+ .pr-select__input option[value='']:disabled { color: var(--pr-fg-faint); }
1193
+
1194
+ .pr-select__chevron {
1195
+ position: absolute;
1196
+ right: 10px;
1197
+ color: var(--pr-fg-faint);
1198
+ pointer-events: none;
1199
+ flex-shrink: 0;
1200
+ }
1201
+
1202
+ /* ─────────────────────── Rich Select ─────────────────────── */
1203
+
1204
+ .pr-rich-select__trigger {
1205
+ display: inline-flex;
1206
+ align-items: center;
1207
+ justify-content: space-between;
1208
+ gap: 8px;
1209
+ min-width: 180px;
1210
+ padding: 0 12px;
1211
+ border: 1px solid var(--pr-border);
1212
+ border-radius: var(--pr-radius-md, 0.75rem);
1213
+ background: var(--pr-surface);
1214
+ color: var(--pr-fg);
1215
+ font: inherit;
1216
+ font-family: var(--pr-font-body, inherit);
1217
+ font-size: 14px;
1218
+ text-align: left;
1219
+ cursor: pointer;
1220
+ transition-property: border-color, box-shadow;
1221
+ transition-duration: 160ms;
1222
+ transition-timing-function: var(--pr-ease, ease);
1223
+ }
1224
+ .pr-rich-select__trigger--sm,
1225
+ .pr-rich-select__trigger--md { min-height: 40px; }
1226
+ .pr-rich-select__trigger--lg { min-height: 46px; }
1227
+ .pr-rich-select__trigger--block { width: 100%; }
1228
+ .pr-rich-select__trigger:hover:not(:disabled) { border-color: var(--pr-border-strong); }
1229
+ .pr-rich-select__trigger:focus-visible,
1230
+ .pr-rich-select__trigger--open {
1231
+ outline: none;
1232
+ border-color: var(--pr-accent-strong);
1233
+ box-shadow: var(--pr-focus-ring);
1234
+ }
1235
+ .pr-rich-select__trigger[aria-invalid='true'] { border-color: var(--pr-danger); }
1236
+ .pr-rich-select__trigger:disabled { cursor: not-allowed; opacity: 0.6; }
1237
+
1238
+ .pr-rich-select__value {
1239
+ flex: 1;
1240
+ min-width: 0;
1241
+ overflow: hidden;
1242
+ text-overflow: ellipsis;
1243
+ white-space: nowrap;
1244
+ }
1245
+ .pr-rich-select__value--placeholder { color: var(--pr-fg-faint); }
1246
+ .pr-rich-select__chevron {
1247
+ flex: 0 0 auto;
1248
+ color: var(--pr-fg-faint);
1249
+ transition: transform 160ms var(--pr-ease, ease);
1250
+ }
1251
+ .pr-rich-select__trigger--open .pr-rich-select__chevron { transform: rotate(180deg); }
1252
+
1253
+ .pr-rich-select__content {
1254
+ z-index: 60;
1255
+ display: flex;
1256
+ flex-direction: column;
1257
+ overflow: hidden;
1258
+ border-radius: var(--pr-radius-md, 0.75rem);
1259
+ background: var(--pr-elevated);
1260
+ color: var(--pr-fg);
1261
+ box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
1262
+ font-family: var(--pr-font-body, inherit);
1263
+ }
1264
+ .pr-rich-select__search-shell {
1265
+ display: flex;
1266
+ align-items: center;
1267
+ gap: 8px;
1268
+ min-height: 40px;
1269
+ padding: 8px 12px;
1270
+ border-bottom: 1px solid var(--pr-border);
1271
+ color: var(--pr-fg-faint);
1272
+ }
1273
+ .pr-rich-select__search-shell:focus-within {
1274
+ box-shadow: inset 0 -2px 0 var(--pr-accent-strong);
1275
+ }
1276
+ .pr-rich-select__search {
1277
+ width: 100%;
1278
+ min-width: 0;
1279
+ border: 0;
1280
+ outline: 0;
1281
+ background: transparent;
1282
+ color: var(--pr-fg);
1283
+ font: inherit;
1284
+ font-size: 14px;
1285
+ appearance: none;
1286
+ }
1287
+ .pr-rich-select__search::-webkit-search-cancel-button { display: none; }
1288
+ .pr-rich-select__search::placeholder { color: var(--pr-fg-faint); }
1289
+ .pr-rich-select__search:focus-visible { outline: none; box-shadow: none; }
1290
+
1291
+ .pr-rich-select__list {
1292
+ overflow-y: auto;
1293
+ overscroll-behavior: contain;
1294
+ padding: 4px;
1295
+ outline: none;
1296
+ }
1297
+ .pr-rich-select__group:not(:has(.pr-rich-select__item:not([hidden]))) { display: none; }
1298
+ .pr-rich-select__label {
1299
+ padding: 8px 8px 4px;
1300
+ color: var(--pr-fg-muted);
1301
+ font-size: 11px;
1302
+ font-weight: 650;
1303
+ letter-spacing: 0.06em;
1304
+ text-transform: uppercase;
1305
+ }
1306
+ .pr-rich-select__separator {
1307
+ height: 1px;
1308
+ margin: 4px;
1309
+ background: var(--pr-border);
1310
+ }
1311
+ .pr-rich-select__item {
1312
+ display: flex;
1313
+ align-items: center;
1314
+ gap: 10px;
1315
+ min-height: 40px;
1316
+ padding: 8px;
1317
+ border-radius: var(--pr-radius-sm, 0.625rem);
1318
+ color: var(--pr-fg);
1319
+ font-size: 14px;
1320
+ cursor: pointer;
1321
+ user-select: none;
1322
+ }
1323
+ .pr-rich-select__item[hidden] { display: none; }
1324
+ .pr-rich-select__item[data-highlighted],
1325
+ .pr-rich-select__item:hover:not([data-disabled]) { background: var(--pr-surface); }
1326
+ .pr-rich-select__item[data-state='checked'] { font-weight: 650; }
1327
+ .pr-rich-select__item[data-disabled] { cursor: not-allowed; opacity: 0.5; }
1328
+ .pr-rich-select__item-content {
1329
+ display: flex;
1330
+ flex: 1;
1331
+ min-width: 0;
1332
+ align-items: center;
1333
+ gap: 8px;
1334
+ }
1335
+ .pr-rich-select__indicator {
1336
+ display: inline-flex;
1337
+ flex: 0 0 20px;
1338
+ align-items: center;
1339
+ justify-content: center;
1340
+ color: var(--pr-accent-strong);
1341
+ }
1342
+ .pr-rich-select__empty {
1343
+ margin: 0;
1344
+ padding: 12px;
1345
+ color: var(--pr-fg-muted);
1346
+ font-size: 14px;
1347
+ text-wrap: pretty;
1348
+ }
1349
+
1350
+ /* ───────────────────── Calendar / DatePicker ───────────────────── */
1351
+
1352
+ .pr-calendar {
1353
+ width: min(100%, 348px);
1354
+ padding: 12px;
1355
+ border: 1px solid var(--pr-border);
1356
+ border-radius: var(--pr-radius-lg, 1rem);
1357
+ background: var(--pr-surface);
1358
+ color: var(--pr-fg);
1359
+ box-shadow: var(--pr-shadow-sm);
1360
+ font-family: var(--pr-font-body, inherit);
1361
+ }
1362
+ .pr-calendar[aria-disabled='true'] { opacity: 0.62; }
1363
+
1364
+ .pr-calendar__header {
1365
+ display: grid;
1366
+ grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px;
1367
+ align-items: center;
1368
+ gap: 2px;
1369
+ margin-bottom: 8px;
1370
+ }
1371
+ .pr-calendar__month {
1372
+ min-width: 0;
1373
+ margin: 0;
1374
+ color: var(--pr-fg);
1375
+ font-family: var(--pr-font-body, inherit);
1376
+ font-size: 14px;
1377
+ font-weight: 700;
1378
+ text-align: center;
1379
+ }
1380
+ .pr-calendar__nav,
1381
+ .pr-calendar__action {
1382
+ display: inline-flex;
1383
+ min-width: 40px;
1384
+ min-height: 40px;
1385
+ align-items: center;
1386
+ justify-content: center;
1387
+ border: 0;
1388
+ border-radius: var(--pr-radius-sm, 0.625rem);
1389
+ background: transparent;
1390
+ color: var(--pr-fg-muted);
1391
+ font: inherit;
1392
+ cursor: pointer;
1393
+ transition-property: background-color, color, box-shadow;
1394
+ transition-duration: 150ms;
1395
+ transition-timing-function: var(--pr-ease, ease);
1396
+ }
1397
+ .pr-calendar__nav:hover:not(:disabled),
1398
+ .pr-calendar__action:hover:not(:disabled) {
1399
+ background: var(--pr-elevated);
1400
+ color: var(--pr-fg);
1401
+ }
1402
+ .pr-calendar__nav:focus-visible,
1403
+ .pr-calendar__action:focus-visible,
1404
+ .pr-calendar__day:focus-visible {
1405
+ position: relative;
1406
+ z-index: 2;
1407
+ outline: none;
1408
+ box-shadow: var(--pr-focus-ring);
1409
+ }
1410
+ .pr-calendar__nav:disabled,
1411
+ .pr-calendar__action:disabled { cursor: not-allowed; opacity: 0.42; }
1412
+
1413
+ .pr-calendar__grid { outline: none; }
1414
+ .pr-calendar__weekdays,
1415
+ .pr-calendar__week {
1416
+ display: grid;
1417
+ grid-template-columns: repeat(7, minmax(0, 1fr));
1418
+ gap: 2px;
1419
+ }
1420
+ .pr-calendar__weekdays { margin-bottom: 2px; }
1421
+ .pr-calendar__weekday {
1422
+ display: flex;
1423
+ min-height: 32px;
1424
+ align-items: center;
1425
+ justify-content: center;
1426
+ color: var(--pr-fg-faint);
1427
+ font-size: 11px;
1428
+ font-weight: 650;
1429
+ letter-spacing: 0.04em;
1430
+ text-transform: uppercase;
1431
+ user-select: none;
1432
+ }
1433
+ .pr-calendar__days { display: grid; gap: 2px; }
1434
+ .pr-calendar__day,
1435
+ .pr-calendar__day-placeholder {
1436
+ display: inline-flex;
1437
+ min-width: 0;
1438
+ min-height: 40px;
1439
+ align-items: center;
1440
+ justify-content: center;
1441
+ border: 0;
1442
+ border-radius: var(--pr-radius-sm, 0.625rem);
1443
+ }
1444
+ .pr-calendar__day {
1445
+ background: transparent;
1446
+ color: var(--pr-fg);
1447
+ font: inherit;
1448
+ font-size: 13px;
1449
+ cursor: pointer;
1450
+ transition-property: background-color, color, box-shadow;
1451
+ transition-duration: 140ms;
1452
+ transition-timing-function: var(--pr-ease, ease);
1453
+ }
1454
+ .pr-calendar__day:hover:not(:disabled):not([data-selected]) { background: var(--pr-elevated); }
1455
+ .pr-calendar__day[data-outside] { color: var(--pr-fg-faint); opacity: 0.62; }
1456
+ .pr-calendar__day[data-today] { box-shadow: inset 0 0 0 2px var(--pr-accent-strong); }
1457
+ .pr-calendar__day[data-selected] {
1458
+ background: color-mix(in srgb, var(--pr-accent) 24%, transparent);
1459
+ color: var(--pr-fg);
1460
+ }
1461
+ .pr-calendar[data-mode='single'] .pr-calendar__day[data-selected],
1462
+ .pr-calendar__day[data-range-start],
1463
+ .pr-calendar__day[data-range-end] {
1464
+ background: var(--pr-accent);
1465
+ color: var(--pr-accent-ink);
1466
+ font-weight: 700;
1467
+ }
1468
+ .pr-calendar__day[data-range-middle] { border-radius: var(--pr-radius-xs, 0.375rem); }
1469
+ .pr-calendar__day:disabled { cursor: not-allowed; opacity: 0.35; }
1470
+ .pr-calendar__actions {
1471
+ display: flex;
1472
+ justify-content: flex-end;
1473
+ gap: 4px;
1474
+ margin-top: 8px;
1475
+ padding-top: 8px;
1476
+ border-top: 1px solid var(--pr-border);
1477
+ }
1478
+ .pr-calendar__action {
1479
+ padding: 0 10px;
1480
+ color: var(--pr-fg-muted);
1481
+ font-size: 13px;
1482
+ font-weight: 650;
1483
+ }
1484
+
1485
+ .pr-date-picker { display: inline-flex; min-width: 0; }
1486
+ .pr-date-picker--block { display: flex; width: 100%; }
1487
+ .pr-date-picker__trigger {
1488
+ display: inline-flex;
1489
+ min-width: 190px;
1490
+ align-items: center;
1491
+ gap: 8px;
1492
+ padding: 0 12px;
1493
+ border: 1px solid var(--pr-border);
1494
+ border-radius: var(--pr-radius-md, 0.75rem);
1495
+ background: var(--pr-surface);
1496
+ color: var(--pr-fg);
1497
+ font: inherit;
1498
+ font-family: var(--pr-font-body, inherit);
1499
+ font-size: 14px;
1500
+ text-align: left;
1501
+ cursor: pointer;
1502
+ transition-property: border-color, box-shadow;
1503
+ transition-duration: 160ms;
1504
+ transition-timing-function: var(--pr-ease, ease);
1505
+ }
1506
+ .pr-date-picker--block .pr-date-picker__trigger { width: 100%; }
1507
+ .pr-date-picker__trigger--sm,
1508
+ .pr-date-picker__trigger--md { min-height: 40px; }
1509
+ .pr-date-picker__trigger--lg { min-height: 46px; }
1510
+ .pr-date-picker__trigger:hover:not(:disabled) { border-color: var(--pr-border-strong); }
1511
+ .pr-date-picker__trigger:focus-visible,
1512
+ .pr-date-picker__trigger--open {
1513
+ outline: none;
1514
+ border-color: var(--pr-accent-strong);
1515
+ box-shadow: var(--pr-focus-ring);
1516
+ }
1517
+ .pr-date-picker__trigger[aria-invalid='true'] { border-color: var(--pr-danger); }
1518
+ .pr-date-picker__trigger:disabled { cursor: not-allowed; opacity: 0.6; }
1519
+ .pr-date-picker__trigger[data-placeholder] .pr-date-picker__value { color: var(--pr-fg-faint); }
1520
+ .pr-date-picker__icon,
1521
+ .pr-date-picker__chevron { flex: 0 0 auto; color: var(--pr-fg-faint); }
1522
+ .pr-date-picker__value {
1523
+ flex: 1;
1524
+ min-width: 0;
1525
+ overflow: hidden;
1526
+ text-overflow: ellipsis;
1527
+ white-space: nowrap;
1528
+ }
1529
+ .pr-date-picker__range-separator { margin: 0 5px; color: var(--pr-fg-faint); }
1530
+ .pr-date-picker__chevron { transition: transform 160ms var(--pr-ease, ease); }
1531
+ .pr-date-picker__trigger--open .pr-date-picker__chevron { transform: rotate(180deg); }
1532
+
1533
+ .pr-date-picker__content {
1534
+ z-index: 60;
1535
+ width: min(348px, calc(100vw - 16px));
1536
+ overflow: auto;
1537
+ overscroll-behavior: contain;
1538
+ border-radius: var(--pr-radius-lg, 1rem);
1539
+ background: var(--pr-elevated);
1540
+ color: var(--pr-fg);
1541
+ box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
1542
+ font-family: var(--pr-font-body, inherit);
1543
+ }
1544
+ .pr-date-picker__content .pr-calendar {
1545
+ width: 100%;
1546
+ border: 0;
1547
+ background: transparent;
1548
+ box-shadow: none;
1549
+ }
1550
+
1551
+ .pr-field__affix {
1552
+ display: inline-flex;
1553
+ align-items: center;
1554
+ color: var(--pr-fg-faint);
1555
+ flex-shrink: 0;
1556
+ }
1557
+
1558
+ .pr-field__message { margin: 0; font-size: 12px; color: var(--pr-fg-muted); }
1559
+ .pr-field__message--error { color: var(--pr-danger); }
1560
+
1561
+ /* ─────────────────────── Textarea ─────────────────────── */
1562
+
1563
+ .pr-textarea {
1564
+ display: block;
1565
+ min-width: 0;
1566
+ padding: 10px 12px;
1567
+ background: var(--pr-surface);
1568
+ border: 1px solid var(--pr-border);
1569
+ border-radius: var(--pr-radius-md, 0.75rem);
1570
+ color: var(--pr-fg);
1571
+ font-family: var(--pr-font-body, inherit);
1572
+ font-size: 14px;
1573
+ line-height: 1.5;
1574
+ outline: none;
1575
+ resize: vertical;
1576
+ transition:
1577
+ border-color 160ms var(--pr-ease, ease),
1578
+ box-shadow 160ms var(--pr-ease, ease);
1579
+ }
1580
+ .pr-textarea--sm { min-height: 80px; }
1581
+ .pr-textarea--md { min-height: 104px; }
1582
+ .pr-textarea--lg { min-height: 132px; }
1583
+ .pr-textarea--block { width: 100%; }
1584
+ .pr-textarea::placeholder { color: var(--pr-fg-faint); }
1585
+ .pr-textarea:focus-visible {
1586
+ border-color: var(--pr-accent-strong);
1587
+ border-radius: var(--pr-radius-md, 0.75rem);
1588
+ box-shadow: var(--pr-focus-ring);
1589
+ outline: none;
1590
+ }
1591
+ .pr-textarea:disabled { cursor: not-allowed; opacity: 0.6; }
1592
+ .pr-textarea[aria-invalid='true'] { border-color: var(--pr-danger); }
1593
+
1594
+ /* ─────────────────── Selection controls ─────────────────── */
1595
+
1596
+ /* The native input remains the source of form, keyboard, checked and disabled
1597
+ behaviour. The label supplies a dependable 40px target around the smaller
1598
+ visual control, so apps never have to rebuild the interaction layer. */
1599
+ .pr-choice {
1600
+ position: relative;
1601
+ display: flex;
1602
+ align-items: flex-start;
1603
+ gap: 10px;
1604
+ min-height: 40px;
1605
+ padding: 8px 0;
1606
+ color: var(--pr-fg);
1607
+ font-family: var(--pr-font-body, inherit);
1608
+ cursor: pointer;
1609
+ }
1610
+
1611
+ .pr-choice__input {
1612
+ position: absolute;
1613
+ width: 1px;
1614
+ height: 1px;
1615
+ margin: -1px;
1616
+ padding: 0;
1617
+ overflow: hidden;
1618
+ clip: rect(0 0 0 0);
1619
+ clip-path: inset(50%);
1620
+ white-space: nowrap;
1621
+ border: 0;
1622
+ }
1623
+
1624
+ .pr-choice__visual {
1625
+ position: relative;
1626
+ display: inline-flex;
1627
+ align-items: center;
1628
+ justify-content: center;
1629
+ flex: 0 0 auto;
1630
+ width: 20px;
1631
+ height: 20px;
1632
+ border: 1px solid var(--pr-border-strong);
1633
+ background: var(--pr-surface);
1634
+ transition:
1635
+ background-color 160ms var(--pr-ease, ease),
1636
+ border-color 160ms var(--pr-ease, ease),
1637
+ box-shadow 160ms var(--pr-ease, ease);
1638
+ }
1639
+
1640
+ .pr-choice--checkbox .pr-choice__visual { border-radius: 5px; }
1641
+ .pr-choice--radio .pr-choice__visual { border-radius: 999px; }
1642
+
1643
+ .pr-choice__mark {
1644
+ display: block;
1645
+ opacity: 0;
1646
+ transition:
1647
+ opacity 120ms var(--pr-ease, ease),
1648
+ transform 120ms var(--pr-ease, ease);
1649
+ }
1650
+
1651
+ .pr-choice--checkbox .pr-choice__mark {
1652
+ width: 6px;
1653
+ height: 11px;
1654
+ margin-top: -2px;
1655
+ border: solid var(--pr-accent-ink);
1656
+ border-width: 0 2px 2px 0;
1657
+ transform: rotate(45deg) scale(0.7);
1658
+ }
1659
+
1660
+ .pr-choice--radio .pr-choice__mark {
1661
+ width: 8px;
1662
+ height: 8px;
1663
+ border-radius: 999px;
1664
+ background: var(--pr-accent-ink);
1665
+ transform: scale(0.7);
1666
+ }
1667
+
1668
+ .pr-choice--checkbox .pr-choice__input:checked + .pr-choice__visual,
1669
+ .pr-choice--checkbox .pr-choice__input[aria-checked='mixed'] + .pr-choice__visual,
1670
+ .pr-choice--radio .pr-choice__input:checked + .pr-choice__visual {
1671
+ border-color: var(--pr-accent-strong);
1672
+ background: var(--pr-accent);
1673
+ }
1674
+
1675
+ .pr-choice--checkbox .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark,
1676
+ .pr-choice--radio .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark {
1677
+ opacity: 1;
1678
+ transform: rotate(45deg) scale(1);
1679
+ }
1680
+
1681
+ .pr-choice--radio .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark {
1682
+ transform: scale(1);
1683
+ }
1684
+
1685
+ .pr-choice--checkbox .pr-choice__input[aria-checked='mixed'] + .pr-choice__visual .pr-choice__mark {
1686
+ width: 10px;
1687
+ height: 2px;
1688
+ margin: 0;
1689
+ border: 0;
1690
+ border-radius: 999px;
1691
+ background: var(--pr-accent-ink);
1692
+ opacity: 1;
1693
+ transform: none;
1694
+ }
1695
+
1696
+ .pr-choice--switch .pr-choice__visual {
1697
+ width: 38px;
1698
+ height: 22px;
1699
+ border-radius: 999px;
1700
+ background: var(--pr-border);
1701
+ }
1702
+
1703
+ .pr-choice--switch .pr-choice__mark {
1704
+ position: absolute;
1705
+ top: 2px;
1706
+ left: 2px;
1707
+ width: 16px;
1708
+ height: 16px;
1709
+ border-radius: 999px;
1710
+ background: var(--pr-surface);
1711
+ box-shadow: 0 1px 2px rgb(0 0 0 / 0.22);
1712
+ opacity: 1;
1713
+ transform: translateX(0);
1714
+ transition:
1715
+ background-color 160ms var(--pr-ease, ease),
1716
+ transform 160ms var(--pr-ease, ease);
1717
+ }
1718
+
1719
+ .pr-choice--switch .pr-choice__input:checked + .pr-choice__visual {
1720
+ border-color: var(--pr-accent-strong);
1721
+ background: var(--pr-accent);
1722
+ }
1723
+
1724
+ .pr-choice--switch .pr-choice__input:checked + .pr-choice__visual .pr-choice__mark {
1725
+ background: var(--pr-accent-ink);
1726
+ transform: translateX(16px);
1727
+ }
1728
+
1729
+ .pr-choice__input:focus-visible {
1730
+ border-radius: 0;
1731
+ box-shadow: none;
1732
+ outline: none;
1733
+ }
1734
+
1735
+ .pr-choice__input:focus-visible + .pr-choice__visual {
1736
+ outline: none;
1737
+ border-color: var(--pr-accent-strong);
1738
+ box-shadow: var(--pr-focus-ring);
1739
+ }
1740
+
1741
+ .pr-choice--invalid .pr-choice__visual { border-color: var(--pr-danger); }
1742
+ .pr-choice--disabled { opacity: 0.6; cursor: not-allowed; }
1743
+
1744
+ .pr-choice__copy {
1745
+ display: flex;
1746
+ flex-direction: column;
1747
+ gap: 2px;
1748
+ min-width: 0;
1749
+ padding-top: 1px;
1750
+ }
1751
+ .pr-choice__label { font-size: 14px; font-weight: 600; line-height: 1.3; }
1752
+ .pr-choice__required,
1753
+ .pr-choice-group__required { margin-left: 3px; color: var(--pr-danger); }
1754
+ .pr-choice__message,
1755
+ .pr-choice-group__message { margin: 0; color: var(--pr-fg-muted); font-size: 12px; line-height: 1.4; }
1756
+ .pr-choice__message--error,
1757
+ .pr-choice-group__message--error { color: var(--pr-danger); }
1758
+
1759
+ .pr-choice-group {
1760
+ min-width: 0;
1761
+ margin: 0;
1762
+ padding: 0;
1763
+ border: 0;
1764
+ color: var(--pr-fg);
1765
+ font-family: var(--pr-font-body, inherit);
1766
+ }
1767
+ .pr-choice-group__legend { margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
1768
+ .pr-choice-group__message { margin-top: 4px; }
1769
+ .pr-choice-group__options { display: flex; margin-top: 4px; }
1770
+ .pr-choice-group__options--vertical { flex-direction: column; }
1771
+ .pr-choice-group__options--horizontal { flex-flow: row wrap; column-gap: 24px; }
1772
+ .pr-choice-group--disabled { opacity: 0.6; }
1773
+ .pr-choice-group--disabled .pr-choice { opacity: 1; }
1774
+
1775
+ /* ─────────────────── Validation summary ─────────────────── */
1776
+
1777
+ .pr-validation-summary {
1778
+ padding: 16px;
1779
+ border: 1px solid var(--pr-danger);
1780
+ border-radius: var(--pr-radius-md, 0.75rem);
1781
+ background: var(--pr-tone-rose-bg);
1782
+ color: var(--pr-fg);
1783
+ font-family: var(--pr-font-body, inherit);
1784
+ }
1785
+ .pr-validation-summary:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
1786
+ .pr-validation-summary__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
1787
+ .pr-validation-summary__list { margin: 8px 0 0; padding: 0; list-style: none; }
1788
+ .pr-validation-summary__item { margin: 0; }
1789
+ .pr-validation-summary__link {
1790
+ display: flex;
1791
+ align-items: center;
1792
+ min-height: 40px;
1793
+ color: var(--pr-danger);
1794
+ font-size: 14px;
1795
+ line-height: 1.4;
1796
+ text-decoration: underline;
1797
+ text-underline-offset: 3px;
1798
+ }
1799
+ .pr-validation-summary__link:hover { color: var(--pr-fg); }
1800
+ .pr-validation-summary__link:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
1801
+ .pr-validation-summary__field { margin-right: 4px; font-weight: 700; }
1802
+
1803
+ @media (prefers-reduced-motion: reduce) {
1804
+ .pr-choice__visual,
1805
+ .pr-choice__mark,
1806
+ .pr-choice--switch .pr-choice__mark { transition: none; }
1807
+ }
1808
+
1809
+ /* ───────────────────────── Tabs ───────────────────────── */
1810
+
1811
+ .pr-tabs {
1812
+ display: flex;
1813
+ gap: 8px;
1814
+ min-width: 0;
1815
+ color: var(--pr-fg);
1816
+ font-family: var(--pr-font-body, inherit);
1817
+ }
1818
+ .pr-tabs--horizontal { flex-direction: column; }
1819
+ .pr-tabs--vertical { flex-direction: row; align-items: flex-start; }
1820
+
1821
+ .pr-tabs__list {
1822
+ display: inline-flex;
1823
+ align-items: center;
1824
+ width: fit-content;
1825
+ max-width: 100%;
1826
+ min-height: 48px;
1827
+ padding: 4px;
1828
+ overflow-x: auto;
1829
+ border-radius: var(--pr-radius-md, 0.75rem);
1830
+ color: var(--pr-fg-muted);
1831
+ }
1832
+ .pr-tabs__list--default {
1833
+ background: var(--pr-surface);
1834
+ box-shadow: inset 0 0 0 1px var(--pr-border);
1835
+ }
1836
+ .pr-tabs__list--line {
1837
+ gap: 4px;
1838
+ padding: 0;
1839
+ border-radius: 0;
1840
+ background: transparent;
1841
+ box-shadow: inset 0 -1px 0 var(--pr-border);
1842
+ }
1843
+ .pr-tabs--vertical .pr-tabs__list {
1844
+ flex: 0 0 auto;
1845
+ flex-direction: column;
1846
+ align-items: stretch;
1847
+ min-width: 160px;
1848
+ overflow: visible;
1849
+ }
1850
+ .pr-tabs--vertical .pr-tabs__list--line {
1851
+ box-shadow: inset -1px 0 0 var(--pr-border);
1852
+ }
1853
+
1854
+ .pr-tabs__trigger {
1855
+ position: relative;
1856
+ display: inline-flex;
1857
+ align-items: center;
1858
+ justify-content: center;
1859
+ flex: 0 0 auto;
1860
+ gap: 6px;
1861
+ min-height: 40px;
1862
+ padding: 8px 14px;
1863
+ border: 0;
1864
+ border-radius: var(--pr-radius-sm, 0.5rem);
1865
+ background: transparent;
1866
+ color: var(--pr-fg-muted);
1867
+ font: inherit;
1868
+ font-size: 14px;
1869
+ font-weight: 600;
1870
+ line-height: 1.2;
1871
+ white-space: nowrap;
1872
+ cursor: pointer;
1873
+ transition:
1874
+ background-color 160ms var(--pr-ease, ease),
1875
+ box-shadow 160ms var(--pr-ease, ease),
1876
+ color 160ms var(--pr-ease, ease),
1877
+ transform 120ms var(--pr-ease, ease);
1878
+ }
1879
+ .pr-tabs--vertical .pr-tabs__trigger { width: 100%; justify-content: flex-start; }
1880
+ .pr-tabs__trigger:hover:not(:disabled) { color: var(--pr-fg); }
1881
+ .pr-tabs__list--default .pr-tabs__trigger:hover:not(:disabled) {
1882
+ background: var(--pr-elevated);
1883
+ }
1884
+ .pr-tabs__list--default .pr-tabs__trigger[data-state='active'] {
1885
+ background: var(--pr-elevated);
1886
+ color: var(--pr-fg);
1887
+ box-shadow: var(--pr-shadow-card);
1888
+ }
1889
+ .pr-tabs__list--line .pr-tabs__trigger[data-state='active'] { color: var(--pr-fg); }
1890
+ .pr-tabs__trigger:active:not(:disabled) { transform: scale(0.96); }
1891
+ .pr-tabs__trigger:focus-visible {
1892
+ z-index: 1;
1893
+ outline: none;
1894
+ box-shadow: var(--pr-focus-ring);
1895
+ }
1896
+ .pr-tabs__trigger:disabled { cursor: not-allowed; opacity: 0.5; }
1897
+
1898
+ .pr-tabs__list--line .pr-tabs__trigger::after {
1899
+ position: absolute;
1900
+ right: 8px;
1901
+ bottom: 0;
1902
+ left: 8px;
1903
+ height: 2px;
1904
+ border-radius: 999px;
1905
+ background: var(--pr-accent-strong);
1906
+ content: '';
1907
+ opacity: 0;
1908
+ transform: scaleX(0.25);
1909
+ transition:
1910
+ opacity 160ms var(--pr-ease, ease),
1911
+ transform 160ms var(--pr-ease, ease);
1912
+ }
1913
+ .pr-tabs__list--line .pr-tabs__trigger[data-state='active']::after {
1914
+ opacity: 1;
1915
+ transform: scaleX(1);
1916
+ }
1917
+ .pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger::after {
1918
+ top: 8px;
1919
+ right: 0;
1920
+ bottom: 8px;
1921
+ left: auto;
1922
+ width: 2px;
1923
+ height: auto;
1924
+ transform: scaleY(0.25);
1925
+ }
1926
+ .pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger[data-state='active']::after {
1927
+ transform: scaleY(1);
1928
+ }
1929
+
1930
+ .pr-tabs__content {
1931
+ flex: 1;
1932
+ min-width: 0;
1933
+ padding: 8px 0;
1934
+ color: var(--pr-fg);
1935
+ font-size: 14px;
1936
+ outline: none;
1937
+ }
1938
+ .pr-tabs__content:focus-visible {
1939
+ border-radius: var(--pr-radius-sm, 0.5rem);
1940
+ box-shadow: var(--pr-focus-ring);
1941
+ }
1942
+
1943
+ @media (prefers-reduced-motion: reduce) {
1944
+ .pr-tabs__trigger,
1945
+ .pr-tabs__trigger::after { transition: none; }
1946
+ }
1947
+
1948
+ @media (max-width: 639px) {
1949
+ .pr-tabs--vertical { flex-direction: column; }
1950
+ .pr-tabs--vertical .pr-tabs__list {
1951
+ flex-direction: row;
1952
+ width: 100%;
1953
+ min-width: 0;
1954
+ overflow-x: auto;
1955
+ }
1956
+ .pr-tabs--vertical .pr-tabs__list--line {
1957
+ box-shadow: inset 0 -1px 0 var(--pr-border);
1958
+ }
1959
+ .pr-tabs--vertical .pr-tabs__trigger { width: auto; justify-content: center; }
1960
+ .pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger::after {
1961
+ top: auto;
1962
+ right: 8px;
1963
+ bottom: 0;
1964
+ left: 8px;
1965
+ width: auto;
1966
+ height: 2px;
1967
+ transform: scaleX(0.25);
1968
+ }
1969
+ .pr-tabs--vertical .pr-tabs__list--line .pr-tabs__trigger[data-state='active']::after {
1970
+ transform: scaleX(1);
1971
+ }
1972
+ }
1973
+
1974
+ /* ─────────────────── Navigation tabs ─────────────────── */
1975
+
1976
+ .pr-navigation-tabs {
1977
+ min-width: 0;
1978
+ color: var(--pr-fg);
1979
+ font-family: var(--pr-font-body, inherit);
1980
+ }
1981
+ .pr-navigation-tabs__list {
1982
+ display: flex;
1983
+ align-items: center;
1984
+ gap: 4px;
1985
+ width: 100%;
1986
+ min-height: 41px;
1987
+ margin: 0;
1988
+ padding: 4px;
1989
+ overflow-x: auto;
1990
+ border-bottom: 1px solid var(--pr-border);
1991
+ list-style: none;
1992
+ scroll-padding-inline: 8px;
1993
+ }
1994
+ .pr-navigation-tabs__list::after {
1995
+ flex: 0 0 1px;
1996
+ content: '';
1997
+ }
1998
+ .pr-navigation-tabs__item { flex: 0 0 auto; }
1999
+ .pr-navigation-tabs__link {
2000
+ position: relative;
2001
+ display: inline-flex;
2002
+ align-items: center;
2003
+ justify-content: center;
2004
+ gap: 6px;
2005
+ min-height: 40px;
2006
+ padding: 8px 12px;
2007
+ border-radius: var(--pr-radius-sm, 0.5rem) var(--pr-radius-sm, 0.5rem) 0 0;
2008
+ color: var(--pr-fg-muted);
2009
+ font: inherit;
2010
+ font-size: 14px;
2011
+ font-weight: 600;
2012
+ line-height: 1.2;
2013
+ text-decoration: none;
2014
+ white-space: nowrap;
2015
+ scroll-margin-inline: 4px;
2016
+ -webkit-tap-highlight-color: transparent;
2017
+ transition:
2018
+ background-color 160ms var(--pr-ease, ease),
2019
+ color 160ms var(--pr-ease, ease),
2020
+ transform 120ms var(--pr-ease, ease);
2021
+ }
2022
+ .pr-navigation-tabs__link:hover {
2023
+ background: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
2024
+ color: var(--pr-fg);
2025
+ }
2026
+ .pr-navigation-tabs__link[data-state='active'] {
2027
+ background: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
2028
+ color: var(--pr-fg);
2029
+ }
2030
+ .pr-navigation-tabs__link::after {
2031
+ position: absolute;
2032
+ right: 8px;
2033
+ bottom: -5px;
2034
+ left: 8px;
2035
+ height: 3px;
2036
+ border-radius: 999px 999px 0 0;
2037
+ background: var(--pr-accent-strong);
2038
+ content: '';
2039
+ opacity: 0;
2040
+ transform: scaleX(0.25);
2041
+ transition:
2042
+ opacity 160ms var(--pr-ease, ease),
2043
+ transform 160ms var(--pr-ease, ease);
2044
+ }
2045
+ .pr-navigation-tabs__link[data-state='active']::after {
2046
+ opacity: 1;
2047
+ transform: scaleX(1);
2048
+ }
2049
+ .pr-navigation-tabs__link:active { transform: scale(0.96); }
2050
+ .pr-navigation-tabs__link:focus-visible {
2051
+ z-index: 1;
2052
+ outline: none;
2053
+ box-shadow: var(--pr-focus-ring);
2054
+ }
2055
+ .pr-navigation-tabs__label { min-width: 0; }
2056
+ .pr-navigation-tabs__badge {
2057
+ display: inline-flex;
2058
+ align-items: center;
2059
+ justify-content: center;
2060
+ min-width: 22px;
2061
+ height: 22px;
2062
+ padding: 0 6px;
2063
+ border: 1px solid var(--pr-tone-yellow-border);
2064
+ border-radius: 999px;
2065
+ background: var(--pr-tone-yellow-bg);
2066
+ color: var(--pr-tone-yellow-fg);
2067
+ font-size: 12px;
2068
+ font-weight: 700;
2069
+ line-height: 1;
2070
+ font-variant-numeric: tabular-nums;
2071
+ }
2072
+ .pr-navigation-tabs__badge[data-loading] {
2073
+ width: 28px;
2074
+ color: transparent;
2075
+ animation: pr-skeleton-pulse 1600ms var(--pr-ease, ease) infinite;
2076
+ }
2077
+
2078
+ @media (prefers-reduced-motion: reduce) {
2079
+ .pr-navigation-tabs__link,
2080
+ .pr-navigation-tabs__link::after,
2081
+ .pr-navigation-tabs__badge[data-loading] { transition: none; animation: none; }
2082
+ }
2083
+
2084
+ /* ───────────────────────── Card ───────────────────────── */
2085
+
2086
+ .pr-card {
2087
+ position: relative;
2088
+ background: var(--pr-surface);
2089
+ color: var(--pr-fg);
2090
+ border: 1px solid var(--pr-border);
2091
+ /* The Crystal card step (18px), distinct from radius-md so fields and cards
2092
+ can be tuned apart. */
2093
+ border-radius: var(--pr-radius-card, 0.75rem);
2094
+ font-family: var(--pr-font-body, inherit);
2095
+ }
2096
+ .pr-card--raised { background: var(--pr-elevated); box-shadow: var(--pr-shadow-elevated); }
2097
+ /* Softer than `raised`: the card stays on `surface` and only lifts off the page.
2098
+ `raised` already carries a shadow, so the two do not stack. */
2099
+ .pr-card--shadow { box-shadow: var(--pr-shadow-card); }
2100
+
2101
+ /* The amount is published as a variable so a bleeding body can cancel exactly it,
2102
+ rather than hardcoding 16px and silently going wrong at `sm` and `lg`. */
2103
+ .pr-card--pad-sm { --pr-card-pad: 12px; padding: var(--pr-card-pad); }
2104
+ .pr-card--pad-md { --pr-card-pad: 16px; padding: var(--pr-card-pad); }
2105
+ .pr-card--pad-lg { --pr-card-pad: 24px; padding: var(--pr-card-pad); }
2106
+
2107
+ .pr-card--interactive { cursor: pointer; transition: border-color 160ms var(--pr-ease, ease); }
2108
+ .pr-card--interactive:hover { border-color: var(--pr-border-strong); }
2109
+ .pr-card--interactive:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
2110
+
2111
+ /* A gradient composes the semantic surface with its tone tint. Without a tone,
2112
+ `.pr-card--gradient` alone does nothing. */
2113
+ .pr-card--gradient.pr-card--yellow {
2114
+ background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-yellow-bg) 100%);
2115
+ background-color: var(--pr-surface);
2116
+ }
2117
+ .pr-card--gradient.pr-card--blue {
2118
+ background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-blue-bg) 100%);
2119
+ background-color: var(--pr-surface);
2120
+ }
2121
+ .pr-card--gradient.pr-card--amber {
2122
+ background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-amber-bg) 100%);
2123
+ background-color: var(--pr-surface);
2124
+ }
2125
+ .pr-card--gradient.pr-card--purple {
2126
+ background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-purple-bg) 100%);
2127
+ background-color: var(--pr-surface);
2128
+ }
2129
+ .pr-card--gradient.pr-card--green {
2130
+ background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-green-bg) 100%);
2131
+ background-color: var(--pr-surface);
2132
+ }
2133
+ .pr-card--gradient.pr-card--rose {
2134
+ background-image: linear-gradient(140deg, var(--pr-surface) 0%, var(--pr-tone-rose-bg) 100%);
2135
+ background-color: var(--pr-surface);
2136
+ }
2137
+
2138
+ /* Tinted cards, over the same tone pairs Badge uses. The existing borderless
2139
+ treatment remains the default; `toneBorder` opts into the matched outline
2140
+ below without changing any current consumer. */
2141
+ .pr-card--yellow {
2142
+ background: var(--pr-tone-yellow-bg);
2143
+ border-color: transparent;
2144
+ }
2145
+ .pr-card--blue {
2146
+ background: var(--pr-tone-blue-bg);
2147
+ border-color: transparent;
2148
+ }
2149
+ .pr-card--amber {
2150
+ background: var(--pr-tone-amber-bg);
2151
+ border-color: transparent;
2152
+ }
2153
+ .pr-card--purple {
2154
+ background: var(--pr-tone-purple-bg);
2155
+ border-color: transparent;
2156
+ }
2157
+ .pr-card--green {
2158
+ background: var(--pr-tone-green-bg);
2159
+ border-color: transparent;
2160
+ }
2161
+ .pr-card--rose {
2162
+ background: var(--pr-tone-rose-bg);
2163
+ border-color: transparent;
2164
+ }
2165
+
2166
+ /* Glass derives its translucency from the current surface instead of literal
2167
+ white, so it rotates with the theme. The solid declaration is the safe
2168
+ fallback for engines without color-mix; blur still remains package-owned. */
2169
+ .pr-card--glass {
2170
+ background: var(--pr-surface);
2171
+ background: var(--pr-glass-bg);
2172
+ border-color: var(--pr-glass-border);
2173
+ /* Cards blur at half the chrome amount: the full `--pr-glass-blur` (24px)
2174
+ belongs to floating chrome; an in-page card reads better at 12px. */
2175
+ -webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
2176
+ backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
2177
+ }
2178
+
2179
+ /* A toned glass card mixes the semantic tint into the translucent surface. */
2180
+ .pr-card--glass.pr-card--yellow {
2181
+ background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-yellow-bg));
2182
+ }
2183
+ .pr-card--glass.pr-card--blue {
2184
+ background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-blue-bg));
2185
+ }
2186
+ .pr-card--glass.pr-card--amber {
2187
+ background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-amber-bg));
2188
+ }
2189
+ .pr-card--glass.pr-card--purple {
2190
+ background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-purple-bg));
2191
+ }
2192
+ .pr-card--glass.pr-card--green {
2193
+ background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-green-bg));
2194
+ }
2195
+ .pr-card--glass.pr-card--rose {
2196
+ background: color-mix(in srgb, var(--pr-surface) 72%, var(--pr-tone-rose-bg));
2197
+ }
2198
+
2199
+ .pr-card--tone-border.pr-card--yellow { border-color: var(--pr-tone-yellow-border); }
2200
+ .pr-card--tone-border.pr-card--blue { border-color: var(--pr-tone-blue-border); }
2201
+ .pr-card--tone-border.pr-card--amber { border-color: var(--pr-tone-amber-border); }
2202
+ .pr-card--tone-border.pr-card--purple { border-color: var(--pr-tone-purple-border); }
2203
+ .pr-card--tone-border.pr-card--green { border-color: var(--pr-tone-green-border); }
2204
+ .pr-card--tone-border.pr-card--rose { border-color: var(--pr-tone-rose-border); }
2205
+
2206
+ .pr-card__header { display: flex; align-items: flex-start; gap: 12px; }
2207
+ .pr-card__heading { flex: 1; min-width: 0; }
2208
+ /* The shared card hierarchy uses 16px titles and 14px descriptions. */
2209
+ .pr-card__title {
2210
+ margin: 0;
2211
+ /* Bebas Neue is the display face and starts at 24px in the identity guide.
2212
+ Compact UI subheadings stay on Barlow instead of shrinking the brand face. */
2213
+ font-family: var(--pr-font-body, inherit);
2214
+ font-size: 16px;
2215
+ font-weight: 700;
2216
+ line-height: 1.35;
2217
+ text-wrap: balance;
2218
+ }
2219
+ .pr-card__description { margin: 4px 0 0; font-size: 14px; color: var(--pr-fg-muted); text-wrap: pretty; }
2220
+ .pr-card__actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
2221
+ /* The body owns its separation from the header, not its own padding — the Card
2222
+ already pads. `:first-child` so a Card with only content is not pushed down. */
2223
+ .pr-card__content { margin-top: 12px; }
2224
+ .pr-card__content:first-child { margin-top: 0; }
2225
+ /* Runs the body to the card's edges while the header keeps its inset. For a body that
2226
+ is its own bounded surface — a table, a chart — where the card's padding reads as a
2227
+ gap around something that should meet the border.
2228
+ `--pr-card-pad` falls back to 0, so on a card with `padding="none"` this is a no-op
2229
+ instead of pulling the body outside the card. */
2230
+ .pr-card__content--bleed {
2231
+ margin-inline: calc(-1 * var(--pr-card-pad, 0px));
2232
+ margin-bottom: calc(-1 * var(--pr-card-pad, 0px));
2233
+ }
2234
+ /* The card clips its corners, so a bled table's own corners cannot poke past the
2235
+ border radius. */
2236
+ .pr-card:has(> .pr-card__content--bleed) { overflow: hidden; }
2237
+
2238
+ /* ─────────────────── Spinner / EmptyState ─────────────────── */
2239
+
2240
+ .pr-visually-hidden {
2241
+ position: absolute;
2242
+ width: 1px;
2243
+ height: 1px;
2244
+ margin: -1px;
2245
+ padding: 0;
2246
+ overflow: hidden;
2247
+ clip: rect(0 0 0 0);
2248
+ clip-path: inset(50%);
2249
+ white-space: nowrap;
2250
+ border: 0;
2251
+ }
2252
+
2253
+ /* The base carries no `color`. `tone="inherit"` therefore emits nothing, leaving the
2254
+ spinner to take the containing colour — and, because this CSS is unlayered, leaving a
2255
+ Tailwind `text-*` utility free to win. Declaring `currentColor` here would look
2256
+ equivalent and would instead outrank that utility. */
2257
+ .pr-spinner { display: inline-flex; align-items: center; }
2258
+ .pr-spinner--muted { color: var(--pr-fg-muted); }
2259
+ .pr-spinner__icon { animation: pr-btn-spin 900ms linear infinite; }
2260
+ @media (prefers-reduced-motion: reduce) {
2261
+ .pr-spinner__icon { animation-duration: 2400ms; }
2262
+ }
2263
+
2264
+ .pr-empty {
2265
+ display: flex;
2266
+ flex-direction: column;
2267
+ align-items: center;
2268
+ gap: 8px;
2269
+ padding: 40px 24px;
2270
+ text-align: center;
2271
+ font-family: var(--pr-font-body, inherit);
2272
+ }
2273
+ .pr-empty__icon {
2274
+ display: inline-flex;
2275
+ align-items: center;
2276
+ justify-content: center;
2277
+ height: 44px;
2278
+ width: 44px;
2279
+ border-radius: 999px;
2280
+ background: var(--pr-bg);
2281
+ color: var(--pr-fg-faint);
2282
+ box-shadow: inset 0 0 0 1px var(--pr-border);
2283
+ }
2284
+ .pr-empty__title { margin: 4px 0 0; font-size: 14px; font-weight: 650; color: var(--pr-fg); }
2285
+ .pr-empty__description {
2286
+ margin: 0;
2287
+ max-width: 46ch;
2288
+ font-size: 14px;
2289
+ color: var(--pr-fg-muted);
2290
+ text-wrap: pretty;
2291
+ }
2292
+ .pr-empty__action { margin-top: 8px; }
2293
+
2294
+
2295
+ /* ─────────────────────── Combobox ─────────────────────── */
2296
+
2297
+ /* The trigger and the clear button are siblings, so the wrapper is what looks like
2298
+ a field and the clear sits on top of the trigger's right edge. */
2299
+ .pr-combobox { position: relative; display: inline-flex; font-family: var(--pr-font-body, inherit); }
2300
+ .pr-combobox--block { display: flex; width: 100%; }
2301
+
2302
+ .pr-combobox__trigger {
2303
+ flex: 1;
2304
+ min-width: 0;
2305
+ display: flex;
2306
+ align-items: center;
2307
+ gap: 8px;
2308
+ min-height: 40px;
2309
+ padding: 0 34px 0 12px;
2310
+ background: var(--pr-surface);
2311
+ border: 1px solid var(--pr-border);
2312
+ border-radius: var(--pr-radius-md, 0.75rem);
2313
+ color: var(--pr-fg);
2314
+ font: inherit;
2315
+ font-size: 14px;
2316
+ text-align: left;
2317
+ cursor: pointer;
2318
+ transition: border-color 160ms var(--pr-ease, ease);
2319
+ }
2320
+ .pr-combobox--has-clear .pr-combobox__trigger { padding-right: 72px; }
2321
+ .pr-combobox__trigger:hover:not(:disabled) { border-color: var(--pr-border-strong); }
2322
+ .pr-combobox__trigger--open,
2323
+ .pr-combobox__trigger:focus-visible {
2324
+ outline: none;
2325
+ border-color: var(--pr-accent-strong);
2326
+ border-radius: var(--pr-radius-md, 0.75rem);
2327
+ box-shadow: var(--pr-focus-ring);
2328
+ }
2329
+ .pr-combobox__trigger:disabled { opacity: 0.6; cursor: not-allowed; }
2330
+
2331
+ .pr-combobox__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2332
+ .pr-combobox__value--empty { color: var(--pr-fg-faint); }
2333
+ .pr-combobox__chevron { flex-shrink: 0; color: var(--pr-fg-faint); }
2334
+
2335
+ .pr-combobox__clear {
2336
+ position: absolute;
2337
+ right: 24px;
2338
+ top: 50%;
2339
+ transform: translateY(-50%);
2340
+ display: inline-flex;
2341
+ align-items: center;
2342
+ justify-content: center;
2343
+ width: 40px;
2344
+ height: 40px;
2345
+ padding: 0;
2346
+ border: none;
2347
+ background: transparent;
2348
+ border-radius: 999px;
2349
+ color: var(--pr-fg-faint);
2350
+ cursor: pointer;
2351
+ }
2352
+ .pr-combobox__clear:hover { color: var(--pr-danger); }
2353
+ .pr-combobox__clear:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
2354
+
2355
+ .pr-combobox__menu {
2356
+ z-index: 60;
2357
+ display: flex;
2358
+ flex-direction: column;
2359
+ overflow: hidden;
2360
+ background: var(--pr-elevated);
2361
+ border: 1px solid var(--pr-border);
2362
+ border-radius: var(--pr-radius-md, 0.75rem);
2363
+ box-shadow: var(--pr-shadow-elevated);
2364
+ }
2365
+ .pr-combobox__search {
2366
+ display: flex;
2367
+ align-items: center;
2368
+ gap: 8px;
2369
+ padding: 8px 12px;
2370
+ min-height: 40px;
2371
+ border-bottom: 1px solid var(--pr-border);
2372
+ color: var(--pr-fg-faint);
2373
+ }
2374
+ .pr-combobox__search:focus-within {
2375
+ box-shadow: inset 0 -2px 0 var(--pr-accent-strong);
2376
+ }
2377
+ .pr-combobox__search input {
2378
+ width: 100%;
2379
+ border: none;
2380
+ outline: none;
2381
+ background: transparent;
2382
+ color: var(--pr-fg);
2383
+ font: inherit;
2384
+ font-size: 14px;
2385
+ }
2386
+ .pr-combobox__search input:focus-visible {
2387
+ border-radius: 0;
2388
+ box-shadow: none;
2389
+ outline: none;
2390
+ }
2391
+ .pr-combobox__search input::placeholder { color: var(--pr-fg-faint); }
2392
+
2393
+ .pr-combobox__list { overflow-y: auto; padding: 4px 0; }
2394
+ .pr-combobox__note { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--pr-fg-muted); }
2395
+
2396
+ .pr-combobox__option {
2397
+ display: flex;
2398
+ align-items: center;
2399
+ width: 100%;
2400
+ min-height: 40px;
2401
+ padding: 8px 12px;
2402
+ border: none;
2403
+ background: transparent;
2404
+ color: var(--pr-fg);
2405
+ font: inherit;
2406
+ font-size: 13px;
2407
+ text-align: left;
2408
+ cursor: pointer;
2409
+ }
2410
+ /* Keyboard and pointer share one highlight, so arrowing down looks the same as
2411
+ hovering rather than producing two competing states. */
2412
+ .pr-combobox__option--active,
2413
+ .pr-combobox__option:hover { background: var(--pr-surface); }
2414
+ .pr-combobox__option:focus-visible {
2415
+ border-radius: 0;
2416
+ box-shadow: inset 0 0 0 2px var(--pr-accent);
2417
+ outline: none;
2418
+ }
2419
+ .pr-combobox__option[aria-selected='true'] { font-weight: 650; }
2420
+ .pr-combobox__option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2421
+
2422
+
2423
+ /* ─────────────────────── MultiSelect ─────────────────────── */
2424
+
2425
+ .pr-multiselect { position: relative; display: inline-flex; font-family: var(--pr-font-body, inherit); }
2426
+ .pr-multiselect--block { display: flex; width: 100%; }
2427
+ .pr-multiselect--filter { min-width: 110px; max-width: 220px; }
2428
+ .pr-multiselect--filter.pr-multiselect--block { max-width: none; }
2429
+
2430
+ .pr-multiselect__trigger {
2431
+ flex: 1;
2432
+ min-width: 0;
2433
+ display: flex;
2434
+ align-items: center;
2435
+ gap: 6px;
2436
+ min-height: 40px;
2437
+ padding: 4px 10px;
2438
+ background: var(--pr-surface);
2439
+ border: 1px solid var(--pr-border);
2440
+ border-radius: var(--pr-radius-md, 0.75rem);
2441
+ color: var(--pr-fg);
2442
+ font-size: 14px;
2443
+ cursor: pointer;
2444
+ transition: border-color 160ms var(--pr-ease, ease);
2445
+ }
2446
+ .pr-multiselect__trigger:hover:not([aria-disabled='true']) { border-color: var(--pr-border-strong); }
2447
+ .pr-multiselect--filter .pr-multiselect__trigger {
2448
+ padding: 0 10px;
2449
+ font-size: 12px;
2450
+ font-weight: 500;
2451
+ }
2452
+ .pr-multiselect--filter .pr-multiselect__trigger--active {
2453
+ background: var(--pr-tone-yellow-bg);
2454
+ border-color: var(--pr-tone-yellow-border);
2455
+ color: var(--pr-fg);
2456
+ font-weight: 650;
2457
+ }
2458
+ .pr-multiselect__trigger--open,
2459
+ .pr-multiselect__trigger:focus-visible {
2460
+ outline: none;
2461
+ border-color: var(--pr-accent-strong);
2462
+ border-radius: var(--pr-radius-md, 0.75rem);
2463
+ box-shadow: var(--pr-focus-ring);
2464
+ }
2465
+ .pr-multiselect__trigger--disabled { opacity: 0.6; cursor: not-allowed; }
2466
+
2467
+ /* One line, always: chips clip rather than wrapping and pushing the form around. */
2468
+ .pr-multiselect__chips {
2469
+ display: flex;
2470
+ align-items: center;
2471
+ gap: 4px;
2472
+ flex: 1;
2473
+ min-width: 0;
2474
+ overflow: hidden;
2475
+ }
2476
+ .pr-multiselect__placeholder { color: var(--pr-fg-faint); }
2477
+ .pr-multiselect__summary {
2478
+ flex: 1;
2479
+ min-width: 0;
2480
+ overflow: hidden;
2481
+ text-overflow: ellipsis;
2482
+ white-space: nowrap;
2483
+ font-variant-numeric: tabular-nums;
2484
+ }
2485
+
2486
+ .pr-multiselect__chip {
2487
+ display: inline-flex;
2488
+ align-items: center;
2489
+ gap: 4px;
2490
+ min-width: 0;
2491
+ min-height: 40px;
2492
+ padding: 0 0 0 10px;
2493
+ background: var(--pr-elevated);
2494
+ border-radius: var(--pr-radius-sm, 0.5rem);
2495
+ font-size: 12px;
2496
+ font-weight: 500;
2497
+ }
2498
+ .pr-multiselect__chip--count { flex-shrink: 0; font-weight: 650; padding: 2px 8px; }
2499
+ .pr-multiselect__chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2500
+ .pr-multiselect__chip-remove {
2501
+ flex-shrink: 0;
2502
+ display: inline-flex;
2503
+ align-items: center;
2504
+ justify-content: center;
2505
+ width: 40px;
2506
+ height: 40px;
2507
+ padding: 0;
2508
+ border: none;
2509
+ background: transparent;
2510
+ color: var(--pr-fg-faint);
2511
+ cursor: pointer;
2512
+ }
2513
+ .pr-multiselect__chip-remove:hover { color: var(--pr-danger); }
2514
+ .pr-multiselect__chip-remove:disabled { color: inherit; cursor: not-allowed; }
2515
+ .pr-multiselect__chip-remove:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); border-radius: 999px; }
2516
+
2517
+ .pr-multiselect__chevron { flex-shrink: 0; color: var(--pr-fg-faint); }
2518
+
2519
+ .pr-multiselect__menu {
2520
+ z-index: 60;
2521
+ display: flex;
2522
+ flex-direction: column;
2523
+ overflow: hidden;
2524
+ background: var(--pr-elevated);
2525
+ border: 1px solid var(--pr-border);
2526
+ border-radius: var(--pr-radius-md, 0.75rem);
2527
+ box-shadow: var(--pr-shadow-elevated);
2528
+ }
2529
+ .pr-multiselect__menu--filter {
2530
+ min-width: 192px;
2531
+ max-width: min(280px, calc(100vw - 16px));
2532
+ }
2533
+ .pr-multiselect__search {
2534
+ display: flex;
2535
+ align-items: center;
2536
+ gap: 8px;
2537
+ padding: 8px 12px;
2538
+ min-height: 40px;
2539
+ border-bottom: 1px solid var(--pr-border);
2540
+ color: var(--pr-fg-faint);
2541
+ }
2542
+ .pr-multiselect__search:focus-within {
2543
+ box-shadow: inset 0 -2px 0 var(--pr-accent-strong);
2544
+ }
2545
+ .pr-multiselect__search input {
2546
+ width: 100%;
2547
+ border: none;
2548
+ outline: none;
2549
+ background: transparent;
2550
+ color: var(--pr-fg);
2551
+ font: inherit;
2552
+ font-size: 14px;
2553
+ }
2554
+ .pr-multiselect__search input:focus-visible {
2555
+ border-radius: 0;
2556
+ box-shadow: none;
2557
+ outline: none;
2558
+ }
2559
+ .pr-multiselect__search input::placeholder { color: var(--pr-fg-faint); }
2560
+
2561
+ .pr-multiselect__list { overflow-y: auto; padding: 4px 0; }
2562
+ .pr-multiselect__note { margin: 0; padding: 8px 12px; font-size: 13px; color: var(--pr-fg-muted); }
2563
+
2564
+ .pr-multiselect__option {
2565
+ display: flex;
2566
+ align-items: center;
2567
+ gap: 8px;
2568
+ width: 100%;
2569
+ min-height: 40px;
2570
+ padding: 7px 12px;
2571
+ border: none;
2572
+ background: transparent;
2573
+ color: var(--pr-fg);
2574
+ font: inherit;
2575
+ font-size: 13px;
2576
+ text-align: left;
2577
+ cursor: pointer;
2578
+ }
2579
+ .pr-multiselect__option:hover { background: var(--pr-surface); }
2580
+ .pr-multiselect__menu--filter .pr-multiselect__option { font-size: 12px; }
2581
+ .pr-multiselect__option--clear { box-shadow: inset 0 -1px 0 var(--pr-border); }
2582
+ .pr-multiselect__option:focus-visible {
2583
+ border-radius: 0;
2584
+ box-shadow: inset 0 0 0 2px var(--pr-accent);
2585
+ outline: none;
2586
+ }
2587
+ .pr-multiselect__check {
2588
+ display: inline-flex;
2589
+ align-items: center;
2590
+ justify-content: center;
2591
+ width: 16px;
2592
+ height: 16px;
2593
+ flex-shrink: 0;
2594
+ border: 1px solid var(--pr-border-strong);
2595
+ border-radius: 4px;
2596
+ color: var(--pr-accent-ink);
2597
+ }
2598
+ .pr-multiselect__check--on { background: var(--pr-accent); border-color: var(--pr-accent-strong); }
2599
+ .pr-multiselect__option-leading {
2600
+ display: inline-flex;
2601
+ align-items: center;
2602
+ justify-content: center;
2603
+ flex-shrink: 0;
2604
+ }
2605
+ .pr-multiselect__option-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2606
+
2607
+ /* ---------------------------------------------------------------------------
2608
+ Table
2609
+
2610
+ Supports clickable rows and an optional sticky first column while preserving
2611
+ native table structure. Sorting, selection, and pagination remain explicit
2612
+ higher-level composition.
2613
+ --------------------------------------------------------------------------- */
2614
+ .pr-table__shell {
2615
+ background: var(--pr-surface);
2616
+ border: 1px solid var(--pr-border);
2617
+ border-radius: var(--pr-radius-md, 0.75rem);
2618
+ overflow: hidden;
2619
+ }
2620
+ .pr-table__shell--bare {
2621
+ background: none;
2622
+ border: 0;
2623
+ border-radius: 0;
2624
+ }
2625
+ .pr-table__scroll {
2626
+ overflow-x: auto;
2627
+ /* The thin themed scrollbar is inherited from `:root`; nothing table-specific is needed. */
2628
+ }
2629
+ .pr-table__scroll--compound {
2630
+ overflow-y: hidden;
2631
+ border-radius: var(--pr-radius-md, 0.75rem);
2632
+ background: var(--pr-surface);
2633
+ box-shadow: inset 0 0 0 1px var(--pr-border);
2634
+ }
2635
+ .pr-table__scroll:focus-visible {
2636
+ outline: none;
2637
+ box-shadow: inset 0 0 0 2px var(--pr-accent);
2638
+ }
2639
+ /* Capped height: the body scrolls vertically under a pinned header. */
2640
+ .pr-table__scroll--capped {
2641
+ overflow-y: auto;
2642
+ /* Breathing room between the last row and the scroll floor. Without it the final row sits
2643
+ flush against the rounded edge and reads as clipped rather than as the end of the list. */
2644
+ scroll-padding-block-end: 4px;
2645
+ }
2646
+ .pr-table--sticky-header .pr-table__th,
2647
+ .pr-table--sticky-header thead th {
2648
+ position: sticky;
2649
+ top: 0;
2650
+ /* The header is opaque or the rows show through it as they pass under. It reads
2651
+ the surface token rather than inheriting, because `bare` tables sit directly on
2652
+ the page and would otherwise pin a transparent strip. */
2653
+ background: var(--pr-surface);
2654
+ /* Above sticky cells in the body, so the two do not fight at the top-left corner
2655
+ when a table pins both a header row and its first column. */
2656
+ z-index: 2;
2657
+ }
2658
+ .pr-table--sticky-header.pr-table--sticky-first .pr-table__th:first-child,
2659
+ .pr-table--sticky-header.pr-table--sticky-first thead th:first-child {
2660
+ z-index: 3;
2661
+ }
2662
+ /* `border-collapse: collapse` drops the borders of sticky cells — the border belongs
2663
+ to the collapsed grid, which scrolls away with the body. A shadow is painted by the
2664
+ cell itself, so it travels with it. */
2665
+ .pr-table--sticky-header .pr-table__th,
2666
+ .pr-table--sticky-header thead th {
2667
+ box-shadow: inset 0 -1px 0 var(--pr-border);
2668
+ }
2669
+ .pr-table {
2670
+ width: 100%;
2671
+ border-collapse: collapse;
2672
+ caption-side: bottom;
2673
+ font-family: var(--pr-font-body, inherit);
2674
+ }
2675
+ .pr-table__header .pr-table__row:first-child { border-top: 0; }
2676
+ .pr-table__footer {
2677
+ border-top: 1px solid var(--pr-border);
2678
+ background: color-mix(in srgb, var(--pr-border) 50%, transparent);
2679
+ color: var(--pr-fg);
2680
+ font-weight: 600;
2681
+ }
2682
+ .pr-table__footer .pr-table__row { border-top: 0; }
2683
+ .pr-table__caption {
2684
+ padding: 12px 16px;
2685
+ color: var(--pr-fg-muted);
2686
+ font-size: 14px;
2687
+ text-align: left;
2688
+ text-wrap: pretty;
2689
+ }
2690
+ .pr-table__th {
2691
+ padding: 12px 16px;
2692
+ text-align: left;
2693
+ font-size: 11px;
2694
+ font-weight: 600;
2695
+ text-transform: uppercase;
2696
+ letter-spacing: 0.08em;
2697
+ color: var(--pr-fg-muted);
2698
+ background: color-mix(in srgb, var(--pr-border) 50%, transparent);
2699
+ white-space: nowrap;
2700
+ }
2701
+ .pr-table__td {
2702
+ padding: 14px 16px;
2703
+ font-size: 14px;
2704
+ color: var(--pr-fg);
2705
+ transition: background-color 0.16s var(--pr-ease, ease);
2706
+ }
2707
+ .pr-table__row {
2708
+ border-top: 1px solid var(--pr-border);
2709
+ }
2710
+ .pr-table__row--clickable {
2711
+ cursor: pointer;
2712
+ }
2713
+ .pr-table__row--clickable:hover .pr-table__td,
2714
+ .pr-table__row--clickable:focus-visible .pr-table__td {
2715
+ background: var(--pr-elevated);
2716
+ }
2717
+ .pr-table__row[data-state='selected'] .pr-table__td,
2718
+ .pr-table__row[aria-expanded='true'] .pr-table__td {
2719
+ background: var(--pr-tone-yellow-bg);
2720
+ }
2721
+ .pr-table__row--clickable:focus-visible {
2722
+ outline: none;
2723
+ box-shadow: inset 0 0 0 2px var(--pr-accent);
2724
+ }
2725
+ .pr-table__row--clickable[aria-disabled='true'] {
2726
+ cursor: not-allowed;
2727
+ opacity: 0.55;
2728
+ }
2729
+ .pr-table__cell--start { text-align: left; }
2730
+ .pr-table__cell--center { text-align: center; }
2731
+ /* Numbers line up on the right, and tabular figures stop them dancing as they
2732
+ change — a money column that shifts width on every poll is unreadable. */
2733
+ .pr-table__cell--end {
2734
+ text-align: right;
2735
+ font-variant-numeric: tabular-nums;
2736
+ }
2737
+
2738
+ .pr-table__hint {
2739
+ display: flex;
2740
+ justify-content: flex-end;
2741
+ gap: 6px;
2742
+ margin: 0;
2743
+ padding: 8px 12px;
2744
+ border-bottom: 1px solid var(--pr-border);
2745
+ font-size: 11px;
2746
+ font-weight: 500;
2747
+ color: var(--pr-fg-muted);
2748
+ }
2749
+
2750
+ /* The sticky column needs an opaque background of its own, or the scrolling
2751
+ cells show through it. */
2752
+ .pr-table--sticky-first .pr-table__td:first-child,
2753
+ .pr-table--sticky-first .pr-table__th:first-child {
2754
+ position: sticky;
2755
+ left: 0;
2756
+ box-shadow: 6px 0 8px -8px rgb(0 0 0 / 0.28);
2757
+ }
2758
+ .pr-table--sticky-first .pr-table__th:first-child {
2759
+ z-index: 2;
2760
+ background: color-mix(in srgb, var(--pr-border) 50%, var(--pr-surface));
2761
+ }
2762
+ .pr-table--sticky-first .pr-table__td:first-child {
2763
+ z-index: 1;
2764
+ background: var(--pr-surface);
2765
+ }
2766
+ .pr-table--sticky-first .pr-table__row--clickable:hover .pr-table__td:first-child {
2767
+ background: var(--pr-elevated);
2768
+ }
2769
+ .pr-table--sticky-first .pr-table__row[data-state='selected'] .pr-table__td:first-child,
2770
+ .pr-table--sticky-first .pr-table__row[aria-expanded='true'] .pr-table__td:first-child {
2771
+ background: var(--pr-tone-yellow-bg);
2772
+ }
2773
+
2774
+ .pr-table__loading-spinner {
2775
+ display: flex;
2776
+ justify-content: center;
2777
+ padding: 12px 0 0;
2778
+ }
2779
+ .pr-table__skeleton {
2780
+ padding: 8px 0 12px;
2781
+ }
2782
+ .pr-table__skeleton-row {
2783
+ display: flex;
2784
+ gap: 16px;
2785
+ padding: 10px 16px;
2786
+ }
2787
+ .pr-table__skeleton-cell {
2788
+ flex: 1;
2789
+ height: 12px;
2790
+ border-radius: 4px;
2791
+ background: var(--pr-border);
2792
+ animation: pr-table-pulse 1.4s ease-in-out infinite;
2793
+ }
2794
+ @keyframes pr-table-pulse {
2795
+ 0%, 100% { opacity: 1; }
2796
+ 50% { opacity: 0.45; }
2797
+ }
2798
+ @media (prefers-reduced-motion: reduce) {
2799
+ .pr-table__skeleton-cell { animation: none; }
2800
+ }
2801
+
2802
+ @media (min-width: 640px) {
2803
+ .pr-table__hint { display: none; }
2804
+ .pr-table--sticky-first .pr-table__th:first-child,
2805
+ .pr-table--sticky-first .pr-table__td:first-child {
2806
+ position: static;
2807
+ box-shadow: none;
2808
+ }
2809
+ }
2810
+ @media (max-width: 639px) {
2811
+ .pr-table__cell--desktop { display: none; }
2812
+ .pr-table--sticky-first { min-width: 720px; }
2813
+ }
2814
+
2815
+ /* Compact table density for a breakdown nested inside a summary card. */
2816
+ .pr-table--compact .pr-table__th {
2817
+ padding: 6px 8px;
2818
+ font-size: 10px;
2819
+ }
2820
+ .pr-table--compact .pr-table__td {
2821
+ padding: 6px 8px;
2822
+ font-size: 13px;
2823
+ }
2824
+
2825
+ /* ─────────────────────── Dropdown menu ─────────────────────── */
2826
+
2827
+ /* Only the native trigger needs a type reset. An `asChild` control keeps its own
2828
+ typography declarations completely untouched, including declarations emitted in
2829
+ a consumer's CSS layer (unlayered package CSS outranks every layered utility). */
2830
+ .pr-menu__trigger--raw {
2831
+ font: inherit;
2832
+ font-family: var(--pr-font-body, inherit);
2833
+ }
2834
+
2835
+ .pr-menu__content {
2836
+ /* Above the rich-select popup's 60: a menu is the thing most often opened from
2837
+ inside another popup's row, and it has to land on top of it. */
2838
+ z-index: 62;
2839
+ display: flex;
2840
+ min-width: 180px;
2841
+ flex-direction: column;
2842
+ overflow-y: auto;
2843
+ overscroll-behavior: contain;
2844
+ padding: 4px;
2845
+ border-radius: var(--pr-radius-md, 0.75rem);
2846
+ background: var(--pr-elevated);
2847
+ color: var(--pr-fg);
2848
+ box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
2849
+ font-family: var(--pr-font-body, inherit);
2850
+ outline: none;
2851
+ }
2852
+
2853
+ .pr-menu__item {
2854
+ display: flex;
2855
+ align-items: center;
2856
+ gap: 10px;
2857
+ min-height: 40px;
2858
+ padding: 8px;
2859
+ border-radius: var(--pr-radius-sm, 0.625rem);
2860
+ color: var(--pr-fg);
2861
+ font-size: 14px;
2862
+ text-align: left;
2863
+ text-decoration: none;
2864
+ cursor: pointer;
2865
+ user-select: none;
2866
+ transition-property: background-color, color;
2867
+ transition-duration: 120ms;
2868
+ transition-timing-function: var(--pr-ease, ease);
2869
+ }
2870
+ /* Rows take real DOM focus, so hover and keyboard land on one highlight — arrowing
2871
+ down has to look identical to moving the mouse or the two disagree on screen. */
2872
+ .pr-menu__item:hover:not([data-disabled]),
2873
+ .pr-menu__item:focus-visible {
2874
+ outline: none;
2875
+ background: var(--pr-surface);
2876
+ }
2877
+ .pr-menu__item[data-disabled] {
2878
+ cursor: not-allowed;
2879
+ opacity: 0.5;
2880
+ }
2881
+ /* The same tint Badge uses for the danger tone, not a solid fill: `--pr-danger-fg`
2882
+ is the copy colour that sits *on* solid danger, so using it over a tint inverts
2883
+ the contrast it was picked for. The row keeps `--pr-danger` as its text. */
2884
+ .pr-menu__item--destructive { color: var(--pr-danger); }
2885
+ .pr-menu__item--destructive:hover:not([data-disabled]),
2886
+ .pr-menu__item--destructive:focus-visible {
2887
+ background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
2888
+ }
2889
+ .pr-menu__item-content {
2890
+ display: flex;
2891
+ flex: 1;
2892
+ min-width: 0;
2893
+ align-items: center;
2894
+ gap: 8px;
2895
+ }
2896
+ .pr-menu__item-icon {
2897
+ display: inline-flex;
2898
+ flex: 0 0 auto;
2899
+ align-items: center;
2900
+ justify-content: center;
2901
+ color: var(--pr-fg-faint);
2902
+ }
2903
+ .pr-menu__item--destructive .pr-menu__item-icon { color: currentColor; }
2904
+ /* Reserved whether or not the row is ticked, so checking one does not shift the
2905
+ labels of every row next to it. */
2906
+ .pr-menu__indicator {
2907
+ display: inline-flex;
2908
+ flex: 0 0 20px;
2909
+ align-items: center;
2910
+ justify-content: center;
2911
+ color: var(--pr-accent-strong);
2912
+ }
2913
+ .pr-menu__item--checkbox[data-state='checked'] { font-weight: 650; }
2914
+ .pr-menu__label {
2915
+ padding: 8px 8px 4px;
2916
+ color: var(--pr-fg-muted);
2917
+ font-size: 11px;
2918
+ font-weight: 650;
2919
+ letter-spacing: 0.06em;
2920
+ text-transform: uppercase;
2921
+ }
2922
+ .pr-menu__separator {
2923
+ height: 1px;
2924
+ margin: 4px;
2925
+ background: var(--pr-border);
2926
+ }
2927
+ /* Not `display: contents` — several browsers drop the accessibility role of a
2928
+ contents box, which would make the group it exists to announce disappear. */
2929
+ .pr-menu__group { display: block; }
2930
+
2931
+ @media (prefers-reduced-motion: reduce) {
2932
+ .pr-menu__item { transition: none; }
2933
+ }
2934
+
2935
+ /* ─────────────────────── Popover ─────────────────────── */
2936
+
2937
+ /* Same raw-only contract as the menu trigger. Applying this shorthand to a composed
2938
+ child resets its size, weight and line-height; zero specificity is insufficient
2939
+ when the consumer's declarations live in a CSS layer. */
2940
+ .pr-popover__trigger--raw {
2941
+ font: inherit;
2942
+ font-family: var(--pr-font-body, inherit);
2943
+ }
2944
+
2945
+ .pr-popover__content {
2946
+ z-index: 62;
2947
+ overflow-y: auto;
2948
+ overscroll-behavior: contain;
2949
+ border-radius: var(--pr-radius-md, 0.75rem);
2950
+ background: var(--pr-elevated);
2951
+ color: var(--pr-fg);
2952
+ box-shadow: var(--pr-shadow-elevated), inset 0 0 0 1px var(--pr-border);
2953
+ font-family: var(--pr-font-body, inherit);
2954
+ font-size: 14px;
2955
+ outline: none;
2956
+ }
2957
+ /* Padding lives on a modifier, not on the base rule, for the same reason `Card`
2958
+ splits it out: `padding="none"` has to emit *no class at all* rather than
2959
+ `padding: 0`.
2960
+ These rules are unlayered so they beat a consumer's Tailwind utility — which sits
2961
+ in `@layer utilities` — at any specificity. That is deliberate for the surface
2962
+ itself, but it means a base `padding` here cannot be turned off from the call site:
2963
+ `className="p-0"` loses, silently, and a list panel gets 12px of inset it did not
2964
+ ask for. Absence composes; zero fights. */
2965
+ .pr-popover__content--pad-md { padding: 12px; }
2966
+ .pr-popover__header {
2967
+ display: flex;
2968
+ flex-direction: column;
2969
+ gap: 2px;
2970
+ margin-bottom: 8px;
2971
+ }
2972
+ .pr-popover__title {
2973
+ margin: 0;
2974
+ color: var(--pr-fg);
2975
+ /* Under 24px stays on the body face, same rule as card and dialog titles. */
2976
+ font-family: var(--pr-font-body, inherit);
2977
+ font-size: 14px;
2978
+ font-weight: 650;
2979
+ }
2980
+ .pr-popover__description {
2981
+ margin: 0;
2982
+ color: var(--pr-fg-muted);
2983
+ font-size: 14px;
2984
+ text-wrap: pretty;
2985
+ }
2986
+
2987
+ /* ─────────────────────── Pagination ─────────────────────── */
2988
+
2989
+ .pr-pagination {
2990
+ display: flex;
2991
+ width: 100%;
2992
+ min-width: 0;
2993
+ align-items: center;
2994
+ justify-content: space-between;
2995
+ gap: 16px;
2996
+ color: var(--pr-fg);
2997
+ font-family: var(--pr-font-body, inherit);
2998
+ }
2999
+ .pr-pagination__summary {
3000
+ min-width: 0;
3001
+ color: var(--pr-fg-muted);
3002
+ font-size: 14px;
3003
+ font-variant-numeric: tabular-nums;
3004
+ line-height: 1.4;
3005
+ text-wrap: pretty;
3006
+ }
3007
+ .pr-pagination__controls {
3008
+ display: flex;
3009
+ flex: 0 0 auto;
3010
+ align-items: center;
3011
+ gap: 8px;
3012
+ }
3013
+ .pr-pagination__controls .pr-btn { min-width: 40px; }
3014
+
3015
+ @media (max-width: 479px) {
3016
+ .pr-pagination { gap: 12px; }
3017
+ .pr-pagination__controls .pr-btn {
3018
+ width: 40px;
3019
+ padding-inline: 0;
3020
+ }
3021
+ .pr-pagination__button-label { display: none; }
3022
+ }
3023
+
3024
+ /* ─────────────────────── Separator ─────────────────────── */
3025
+
3026
+ .pr-separator {
3027
+ flex: 0 0 auto;
3028
+ background: var(--pr-border);
3029
+ border: 0;
3030
+ }
3031
+ .pr-separator--horizontal {
3032
+ width: 100%;
3033
+ height: 1px;
3034
+ }
3035
+ /* `align-self: stretch` rather than a height: every use of this is a divider between
3036
+ toolbar controls, and the rule should be as tall as whatever sits beside it. */
3037
+ .pr-separator--vertical {
3038
+ width: 1px;
3039
+ align-self: stretch;
3040
+ min-height: 1em;
3041
+ }
3042
+
3043
+ /* ─────────────────────── Skeleton ─────────────────────── */
3044
+
3045
+ .pr-skeleton {
3046
+ background: var(--pr-border);
3047
+ border-radius: var(--pr-radius-sm, 0.625rem);
3048
+ animation: pr-skeleton-pulse 1600ms var(--pr-ease, ease) infinite;
3049
+ }
3050
+ .pr-skeleton--block { min-height: 16px; }
3051
+ .pr-skeleton--text {
3052
+ height: 0.85em;
3053
+ border-radius: 4px;
3054
+ }
3055
+ .pr-skeleton--circle {
3056
+ border-radius: 50%;
3057
+ aspect-ratio: 1;
3058
+ }
3059
+ .pr-skeleton__group {
3060
+ display: flex;
3061
+ flex-direction: column;
3062
+ gap: 8px;
3063
+ }
3064
+ .pr-skeleton--text[data-last] { width: 60%; }
3065
+
3066
+ @keyframes pr-skeleton-pulse {
3067
+ 0%, 100% { opacity: 1; }
3068
+ 50% { opacity: 0.45; }
3069
+ }
3070
+
3071
+ /* A placeholder that never resolves is worse than a static one: it is a permanent
3072
+ animation on a page a user may be stuck on. Reduced motion gets the mid tone. */
3073
+ @media (prefers-reduced-motion: reduce) {
3074
+ .pr-skeleton {
3075
+ animation: none;
3076
+ opacity: 0.7;
3077
+ }
3078
+ }
3079
+
3080
+ /* ─────────────────────── Tooltip ─────────────────────── */
3081
+
3082
+ .pr-tooltip {
3083
+ /* Above menus and popovers: a tooltip on a control inside one of them is the
3084
+ last thing drawn and must not be covered by the surface it belongs to. */
3085
+ z-index: 70;
3086
+ max-width: 280px;
3087
+ padding: 6px 10px;
3088
+ border-radius: var(--pr-radius-sm, 0.625rem);
3089
+ /* Inverted against the page rather than sitting on `elevated`. A hint has to read
3090
+ as an annotation over the UI, not as another panel of it, and inverting is the
3091
+ one treatment that stays legible in both modes without a second value. */
3092
+ background: var(--pr-fg);
3093
+ color: var(--pr-bg);
3094
+ box-shadow: var(--pr-shadow-elevated);
3095
+ font-family: var(--pr-font-body, inherit);
3096
+ font-size: 13px;
3097
+ font-weight: 500;
3098
+ line-height: 1.4;
3099
+ text-wrap: pretty;
3100
+ pointer-events: none;
3101
+ }
3102
+
3103
+ /* ─────────────────────── Stepper ─────────────────────── */
3104
+
3105
+ .pr-stepper__list {
3106
+ display: flex;
3107
+ align-items: center;
3108
+ gap: 8px;
3109
+ margin: 0;
3110
+ padding: 0;
3111
+ list-style: none;
3112
+ }
3113
+
3114
+ .pr-stepper__step {
3115
+ display: flex;
3116
+ align-items: center;
3117
+ gap: 8px;
3118
+ min-width: 0;
3119
+ }
3120
+
3121
+ /* The connector between steps: a quiet line that warms up once crossed. */
3122
+ .pr-stepper__step + .pr-stepper__step::before {
3123
+ content: '';
3124
+ flex: 1 0 16px;
3125
+ height: 2px;
3126
+ border-radius: 999px;
3127
+ background: var(--pr-border);
3128
+ }
3129
+ /* A connector is crossed exactly when the step before it is done. */
3130
+ .pr-stepper__step--done + .pr-stepper__step::before {
3131
+ background: var(--pr-accent);
3132
+ }
3133
+
3134
+ /* 40px like every other interactive control in the package — the dot doubles
3135
+ as a button when the wizard allows revisiting, and a target must not shrink
3136
+ depending on whether it happens to be clickable today. */
3137
+ .pr-stepper__dot {
3138
+ display: inline-flex;
3139
+ align-items: center;
3140
+ justify-content: center;
3141
+ width: 40px;
3142
+ height: 40px;
3143
+ flex: none;
3144
+ border: 1px solid var(--pr-border);
3145
+ border-radius: 999px;
3146
+ background: var(--pr-surface);
3147
+ color: var(--pr-fg-faint);
3148
+ font-family: var(--pr-font-body, inherit);
3149
+ font-size: 13px;
3150
+ font-weight: 600;
3151
+ padding: 0;
3152
+ transition:
3153
+ background-color 160ms var(--pr-ease, ease),
3154
+ border-color 160ms var(--pr-ease, ease),
3155
+ box-shadow 160ms var(--pr-ease, ease),
3156
+ color 160ms var(--pr-ease, ease);
3157
+ }
3158
+
3159
+ .pr-stepper__step--done .pr-stepper__dot {
3160
+ background: var(--pr-accent);
3161
+ border-color: transparent;
3162
+ color: var(--pr-accent-ink);
3163
+ box-shadow: var(--pr-glow-accent-sm);
3164
+ }
3165
+ button.pr-stepper__dot { cursor: pointer; }
3166
+ button.pr-stepper__dot:hover { box-shadow: var(--pr-glow-accent); }
3167
+ button.pr-stepper__dot:focus-visible {
3168
+ outline: none;
3169
+ box-shadow: var(--pr-focus-ring);
3170
+ }
3171
+
3172
+ /* Inverted against the page (fg/bg), not painted in `accent-ink`: accent-ink
3173
+ is fixed across modes and vanishes on a dark surface (1.04:1). */
3174
+ .pr-stepper__step--current .pr-stepper__dot {
3175
+ background: var(--pr-fg);
3176
+ border-color: transparent;
3177
+ color: var(--pr-bg);
3178
+ }
3179
+
3180
+ .pr-stepper__label {
3181
+ font-family: var(--pr-font-body, inherit);
3182
+ font-size: 13px;
3183
+ font-weight: 500;
3184
+ color: var(--pr-fg-faint);
3185
+ white-space: nowrap;
3186
+ overflow: hidden;
3187
+ text-overflow: ellipsis;
3188
+ }
3189
+ .pr-stepper__step--current .pr-stepper__label {
3190
+ color: var(--pr-fg);
3191
+ font-weight: 600;
3192
+ }
3193
+ .pr-stepper__step--done .pr-stepper__label { color: var(--pr-fg-muted); }
3194
+
3195
+ /* On narrow viewports only the current label stays visible, but the others
3196
+ collapse to visually-hidden — NOT display:none — so every dot keeps its
3197
+ step name in the accessibility tree. */
3198
+ @media (max-width: 639px) {
3199
+ .pr-stepper__step:not(.pr-stepper__step--current) .pr-stepper__label {
3200
+ position: absolute;
3201
+ width: 1px;
3202
+ height: 1px;
3203
+ padding: 0;
3204
+ margin: -1px;
3205
+ overflow: hidden;
3206
+ clip: rect(0, 0, 0, 0);
3207
+ white-space: nowrap;
3208
+ border: 0;
3209
+ }
3210
+ }
3211
+
3212
+ /* ─────────────────────── ProgressDots ─────────────────────── */
3213
+
3214
+ .pr-progress-dots {
3215
+ display: inline-flex;
3216
+ align-items: center;
3217
+ gap: 6px;
3218
+ }
3219
+
3220
+ .pr-progress-dots__dot {
3221
+ width: 8px;
3222
+ height: 8px;
3223
+ border-radius: 999px;
3224
+ background: var(--pr-border-strong);
3225
+ transition:
3226
+ width 200ms var(--pr-ease, ease),
3227
+ background-color 200ms var(--pr-ease, ease);
3228
+ }
3229
+ .pr-progress-dots__dot--done { background: var(--pr-accent); }
3230
+ .pr-progress-dots__dot--current {
3231
+ width: 24px;
3232
+ background: var(--pr-accent);
3233
+ }
3234
+
3235
+ @media (prefers-reduced-motion: reduce) {
3236
+ .pr-progress-dots__dot { transition: none; }
3237
+ }
3238
+
3239
+ /* ─────────────────────── OtpInput ─────────────────────── */
3240
+
3241
+ .pr-otp {
3242
+ display: inline-flex;
3243
+ gap: 8px;
3244
+ }
3245
+
3246
+ .pr-otp__box {
3247
+ width: 44px;
3248
+ height: 52px;
3249
+ text-align: center;
3250
+ border: 1px solid var(--pr-border);
3251
+ /* Same radius step as .pr-input — an OTP is a field, not a chip. */
3252
+ border-radius: var(--pr-radius-md, 0.75rem);
3253
+ background: var(--pr-surface);
3254
+ color: var(--pr-fg);
3255
+ font-family: var(--pr-font-mono, monospace);
3256
+ font-size: 20px;
3257
+ font-weight: 600;
3258
+ font-variant-numeric: tabular-nums;
3259
+ transition:
3260
+ border-color 160ms var(--pr-ease, ease),
3261
+ box-shadow 160ms var(--pr-ease, ease);
3262
+ }
3263
+ .pr-otp__box:focus {
3264
+ outline: none;
3265
+ border-color: var(--pr-accent);
3266
+ box-shadow: var(--pr-focus-ring);
3267
+ }
3268
+ .pr-otp__box:disabled {
3269
+ opacity: 0.55;
3270
+ background: var(--pr-bg);
3271
+ }
3272
+ .pr-otp--invalid .pr-otp__box { border-color: var(--pr-danger); }
3273
+
3274
+ /* Anti-zoom: iOS zooms into any input under 16px. */
3275
+ @media (max-width: 639px) {
3276
+ .pr-otp__box { font-size: 16px; }
3277
+ }
3278
+
3279
+ /* ─────────────────────── Progress ─────────────────────── */
3280
+
3281
+ .pr-progress-ring {
3282
+ position: relative;
3283
+ display: inline-flex;
3284
+ align-items: center;
3285
+ justify-content: center;
3286
+ }
3287
+ .pr-progress-ring__track { stroke: var(--pr-border); }
3288
+ .pr-progress-ring__value {
3289
+ transition: stroke-dashoffset 500ms var(--pr-ease, ease);
3290
+ }
3291
+ .pr-progress-ring__label {
3292
+ position: absolute;
3293
+ font-family: var(--pr-font-body, inherit);
3294
+ font-size: 13px;
3295
+ font-weight: 600;
3296
+ font-variant-numeric: tabular-nums;
3297
+ color: var(--pr-fg);
3298
+ }
3299
+
3300
+ .pr-progress-bar {
3301
+ display: block;
3302
+ width: 100%;
3303
+ border-radius: 999px;
3304
+ background: var(--pr-border);
3305
+ overflow: hidden;
3306
+ }
3307
+ .pr-progress-bar--xs { height: 2px; }
3308
+ .pr-progress-bar--sm { height: 4px; }
3309
+ .pr-progress-bar--md { height: 6px; }
3310
+ .pr-progress-bar__fill {
3311
+ display: block;
3312
+ height: 100%;
3313
+ border-radius: inherit;
3314
+ background: var(--pr-accent);
3315
+ transition: width 500ms var(--pr-ease, ease);
3316
+ }
3317
+ .pr-progress-bar--complete .pr-progress-bar__fill { background: var(--pr-success); }
3318
+
3319
+ @media (prefers-reduced-motion: reduce) {
3320
+ .pr-progress-ring__value { transition: none; }
3321
+ .pr-progress-bar__fill { transition: none; }
3322
+ }
3323
+
3324
+ /* ─────────────────────── CopyField ─────────────────────── */
3325
+
3326
+ .pr-copy-field {
3327
+ display: inline-flex;
3328
+ align-items: center;
3329
+ gap: 4px;
3330
+ max-width: 100%;
3331
+ padding: 2px 2px 2px 12px;
3332
+ border: 1px solid var(--pr-border);
3333
+ /* Same radius step as .pr-input — this reads as a field. */
3334
+ border-radius: var(--pr-radius-md, 0.75rem);
3335
+ background: var(--pr-bg);
3336
+ }
3337
+
3338
+ .pr-copy-field__value {
3339
+ flex: 1;
3340
+ min-width: 0;
3341
+ overflow: hidden;
3342
+ white-space: nowrap;
3343
+ text-overflow: ellipsis;
3344
+ font-family: var(--pr-font-mono, monospace);
3345
+ font-size: 13px;
3346
+ color: var(--pr-fg-muted);
3347
+ }
3348
+
3349
+ /* 40px, the package-wide interactive minimum. */
3350
+ .pr-copy-field__button {
3351
+ display: inline-flex;
3352
+ align-items: center;
3353
+ justify-content: center;
3354
+ width: 40px;
3355
+ height: 40px;
3356
+ flex: none;
3357
+ border: none;
3358
+ border-radius: calc(var(--pr-radius-md, 0.75rem) - 4px);
3359
+ background: transparent;
3360
+ color: var(--pr-fg-muted);
3361
+ cursor: pointer;
3362
+ transition:
3363
+ background-color 160ms var(--pr-ease, ease),
3364
+ color 160ms var(--pr-ease, ease);
3365
+ }
3366
+ .pr-copy-field__button:hover {
3367
+ background: var(--pr-surface);
3368
+ color: var(--pr-fg);
3369
+ }
3370
+ .pr-copy-field__button:focus-visible {
3371
+ outline: none;
3372
+ box-shadow: var(--pr-focus-ring);
3373
+ }
3374
+
3375
+ /* ─────────────────────── AmbientBackground ─────────────────────── */
3376
+
3377
+ /* Decorative glows behind the page. `overflow: hidden` keeps the blurred
3378
+ circles from widening the scrollable area on small screens. `z-index: -1`
3379
+ puts the layer behind in-flow content — at 0 it would paint OVER any
3380
+ unpositioned text and tint it. */
3381
+ .pr-ambient {
3382
+ position: fixed;
3383
+ inset: 0;
3384
+ overflow: hidden;
3385
+ pointer-events: none;
3386
+ z-index: -1;
3387
+ }
3388
+
3389
+ .pr-ambient__glow {
3390
+ position: absolute;
3391
+ border-radius: 999px;
3392
+ filter: blur(64px);
3393
+ }
3394
+
3395
+ .pr-ambient__glow--warm {
3396
+ top: -120px;
3397
+ right: -100px;
3398
+ width: 480px;
3399
+ height: 480px;
3400
+ background: color-mix(in srgb, var(--pr-accent) 10%, transparent);
3401
+ }
3402
+
3403
+ .pr-ambient__glow--cool {
3404
+ bottom: -140px;
3405
+ left: -120px;
3406
+ width: 520px;
3407
+ height: 520px;
3408
+ background: color-mix(in srgb, var(--pr-info) 8%, transparent);
3409
+ }
3410
+
3411
+ .pr-ambient--login .pr-ambient__glow--warm {
3412
+ width: 640px;
3413
+ height: 640px;
3414
+ background: color-mix(in srgb, var(--pr-accent) 16%, transparent);
3415
+ }
3416
+ .pr-ambient--login .pr-ambient__glow--cool {
3417
+ background: color-mix(in srgb, var(--pr-info) 12%, transparent);
3418
+ }
3419
+
3420
+ /* The accent is a fixed brand token and `info` LIGHTENS in dark, so without
3421
+ explicit dimming the glows come out brighter over a dark page, not softer. */
3422
+ .dark .pr-ambient__glow--warm {
3423
+ background: color-mix(in srgb, var(--pr-accent) 6%, transparent);
3424
+ }
3425
+ .dark .pr-ambient__glow--cool {
3426
+ background: color-mix(in srgb, var(--pr-info) 5%, transparent);
3427
+ }
3428
+ .dark .pr-ambient--login .pr-ambient__glow--warm {
3429
+ background: color-mix(in srgb, var(--pr-accent) 9%, transparent);
3430
+ }
3431
+ .dark .pr-ambient--login .pr-ambient__glow--cool {
3432
+ background: color-mix(in srgb, var(--pr-info) 7%, transparent);
3433
+ }
3434
+
3435
+ /* ─────────────────────── Display tracking ─────────────────────── */
3436
+
3437
+ /* The Crystal type spec tightens display-role text. The package's own titles
3438
+ carry it here so the tokens' claim ("titles tighten automatically") is true
3439
+ of the primitives, not just available to apps. */
3440
+ .pr-card__title,
3441
+ .pr-dialog__title,
3442
+ .pr-alert-dialog__title,
3443
+ .pr-sheet__title {
3444
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3445
+ }