@walco-ai/claude-plugin-design-system 0.0.0-stage → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +35 -2
  3. package/dist/breakpoints.d.ts +10 -0
  4. package/dist/components/AppHeader/AppHeader.d.ts +23 -0
  5. package/dist/components/Badge/Badge.d.ts +9 -0
  6. package/dist/components/Banner/Banner.d.ts +23 -0
  7. package/dist/components/Button/Button.d.ts +13 -0
  8. package/dist/components/Card/Card.d.ts +12 -0
  9. package/dist/components/ChangeBar/ChangeBar.d.ts +9 -0
  10. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  11. package/dist/components/CollapsibleRow/CollapsibleRow.d.ts +24 -0
  12. package/dist/components/Field/Field.d.ts +18 -0
  13. package/dist/components/Figure/Figure.d.ts +10 -0
  14. package/dist/components/FilterChip/FilterChip.d.ts +14 -0
  15. package/dist/components/Icon/Icon.d.ts +12 -0
  16. package/dist/components/Icon/icons.d.ts +34 -0
  17. package/dist/components/IconButton/IconButton.d.ts +10 -0
  18. package/dist/components/Link/Link.d.ts +8 -0
  19. package/dist/components/LiveIndicator/LiveIndicator.d.ts +10 -0
  20. package/dist/components/PillButton/PillButton.d.ts +13 -0
  21. package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
  22. package/dist/components/Prose/Prose.d.ts +13 -0
  23. package/dist/components/Radio/Choice.d.ts +10 -0
  24. package/dist/components/Radio/Radio.d.ts +3 -0
  25. package/dist/components/ScrollArea/ScrollArea.d.ts +12 -0
  26. package/dist/components/SegmentedControl/SegmentedControl.d.ts +17 -0
  27. package/dist/components/StatusBadge/StatusBadge.d.ts +9 -0
  28. package/dist/components/StatusDot/StatusDot.d.ts +13 -0
  29. package/dist/components/Tabs/Tabs.d.ts +17 -0
  30. package/dist/components/TextArea/TextArea.d.ts +10 -0
  31. package/dist/components/TextField/TextField.d.ts +10 -0
  32. package/dist/components/TruncatedPath/TruncatedPath.d.ts +7 -0
  33. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +7 -0
  34. package/dist/fonts/OFL.txt +94 -0
  35. package/dist/fonts/fonts.css +91 -0
  36. package/dist/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
  37. package/dist/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
  38. package/dist/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
  39. package/dist/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
  40. package/dist/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  41. package/dist/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
  42. package/dist/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
  43. package/dist/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  44. package/dist/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 +0 -0
  45. package/dist/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 +0 -0
  46. package/dist/index.d.ts +30 -0
  47. package/dist/index.js +758 -0
  48. package/dist/internal/cx.d.ts +2 -0
  49. package/dist/internal/tone.d.ts +2 -0
  50. package/dist/internal/useIndicator.d.ts +9 -0
  51. package/dist/internal/useTonePulse.d.ts +5 -0
  52. package/dist/styles.css +2010 -0
  53. package/package.json +33 -4
@@ -0,0 +1,2010 @@
1
+ @import "./fonts/fonts.css";
2
+ /* Tokens, base and component styles. The published stylesheet also imports fonts/fonts.css, added at build time. *//*
3
+ * Design tokens.
4
+ *
5
+ * Primitive tokens (--palette-*) hold raw values and are used in this file only.
6
+ * Semantic tokens name a role and are what components and interfaces use.
7
+ *
8
+ * Each semantic color holds its light and its dark value through light-dark(): the theme follows the system
9
+ * preference, and an element with data-theme="light" or data-theme="dark" forces one theme on its subtree.
10
+ */
11
+
12
+ :root {
13
+ /* Warm neutrals, light theme */
14
+ --palette-white: #ffffff;
15
+ --palette-stone-50: #fbfaf8;
16
+ --palette-stone-100: #f6f5f2;
17
+ --palette-stone-150: #eeece7;
18
+ --palette-stone-200: #e2e0da;
19
+ --palette-stone-300: #d4d2cb;
20
+ --palette-stone-500: #8f8b83;
21
+
22
+ /* Ink */
23
+ --palette-ink-400: #c9cbd1;
24
+ --palette-ink-600: #5a5f69;
25
+ --palette-ink-700: #3e424a;
26
+ --palette-ink-900: #1a1c20;
27
+
28
+ /* Neutrals, dark theme */
29
+ --palette-night-950: #161513;
30
+ --palette-night-900: #1e1d1a;
31
+ --palette-night-850: #252420;
32
+ --palette-night-750: #312f2b;
33
+ --palette-night-700: #3b3934;
34
+ --palette-night-600: #4c4943;
35
+ --palette-night-500: #74706a;
36
+ --palette-night-400: #a29e95;
37
+ --palette-night-300: #cac7c0;
38
+ --palette-night-100: #eeede9;
39
+
40
+ /* Blue: the accent */
41
+ --palette-blue-50: #f3f6fd;
42
+ --palette-blue-100: #e8edfb;
43
+ --palette-blue-150: #dce4fa;
44
+ --palette-blue-200: #c9d3f3;
45
+ --palette-blue-300: #9db2f4;
46
+ --palette-blue-350: #c4d1fa;
47
+ --palette-blue-550: #3d60d4;
48
+ --palette-blue-600: #2b4fc4;
49
+ --palette-blue-700: #1e3a94;
50
+ --palette-blue-800: #34437a;
51
+ --palette-blue-900: #263266;
52
+ --palette-blue-950: #1d2440;
53
+
54
+ /* Amber: waiting for the user */
55
+ --palette-amber-100: #fbefd9;
56
+ --palette-amber-200: #f2c98a;
57
+ --palette-amber-500: #d4860f;
58
+ --palette-amber-400: #e7a43c;
59
+ --palette-amber-800: #7a4206;
60
+ --palette-amber-950: #3a2a12;
61
+
62
+ /* Teal: queued, waiting for its turn */
63
+ --palette-teal-100: #dff3f0;
64
+ --palette-teal-300: #85d6cc;
65
+ --palette-teal-400: #3fb3a7;
66
+ --palette-teal-600: #21877e;
67
+ --palette-teal-700: #17625c;
68
+ --palette-teal-950: #0f2f2c;
69
+
70
+ /* Green: confirmed, saved, live */
71
+ --palette-green-100: #e3f1e9;
72
+ --palette-green-300: #7acfa0;
73
+ --palette-green-500: #34b27a;
74
+ --palette-green-600: #1f8a5b;
75
+ --palette-green-700: #1f6e4a;
76
+ --palette-green-950: #15301f;
77
+
78
+ /* Red: errors */
79
+ --palette-red-100: #fbe4e1;
80
+ --palette-red-300: #f29b90;
81
+ --palette-red-500: #e5675a;
82
+ --palette-red-700: #a12c22;
83
+ --palette-red-950: #3b1714;
84
+
85
+ /* Type */
86
+ --palette-font-plex-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
87
+ --palette-font-plex-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
88
+
89
+ /* Scales */
90
+ --palette-size-1: 1px;
91
+ --palette-size-2: 2px;
92
+ --palette-size-4: 4px;
93
+ --palette-size-6: 6px;
94
+ --palette-size-8: 8px;
95
+ --palette-size-10: 10px;
96
+ --palette-size-12: 12px;
97
+ --palette-size-13: 13px;
98
+ --palette-size-14: 14px;
99
+ --palette-size-15: 15px;
100
+ --palette-size-16: 16px;
101
+ --palette-size-17: 17px;
102
+ --palette-size-19: 19px;
103
+ --palette-size-20: 20px;
104
+ --palette-size-24: 24px;
105
+ --palette-size-30: 30px;
106
+ --palette-size-32: 32px;
107
+ --palette-size-40: 40px;
108
+ --palette-size-18: 18px;
109
+ --palette-size-44: 44px;
110
+ --palette-size-52: 52px;
111
+ --palette-size-56: 56px;
112
+ --palette-size-720: 720px;
113
+ --palette-size-1200: 1200px;
114
+ --palette-size-pill: 999px;
115
+
116
+ color-scheme: light dark;
117
+ }
118
+
119
+ [data-theme="light"] {
120
+ color-scheme: light;
121
+ }
122
+
123
+ [data-theme="dark"] {
124
+ color-scheme: dark;
125
+ }
126
+
127
+ /* Declared on every themed element too, so that a subtree forced to a theme resolves its own values. */
128
+ :root,
129
+ [data-theme] {
130
+ /* Grounds and surfaces */
131
+ --color-bg: light-dark(var(--palette-stone-100), var(--palette-night-950));
132
+ --color-surface: light-dark(var(--palette-white), var(--palette-night-900));
133
+ --color-surface-subtle: light-dark(var(--palette-stone-50), var(--palette-night-850));
134
+ --color-surface-sunken: light-dark(var(--palette-stone-100), var(--palette-night-950));
135
+ --color-surface-inverse: light-dark(var(--palette-ink-900), var(--palette-night-100));
136
+
137
+ /* Lines */
138
+ --color-border: light-dark(var(--palette-stone-200), var(--palette-night-700));
139
+ --color-border-subtle: light-dark(var(--palette-stone-150), var(--palette-night-750));
140
+ --color-border-strong: light-dark(var(--palette-stone-300), var(--palette-night-600));
141
+ --color-border-control: light-dark(var(--palette-stone-500), var(--palette-night-500));
142
+ --color-border-inverse: light-dark(var(--palette-ink-600), var(--palette-night-400));
143
+
144
+ /* Text */
145
+ --color-text: light-dark(var(--palette-ink-900), var(--palette-night-100));
146
+ --color-text-secondary: light-dark(var(--palette-ink-700), var(--palette-night-300));
147
+ --color-text-muted: light-dark(var(--palette-ink-600), var(--palette-night-400));
148
+ --color-text-inverse: light-dark(var(--palette-white), var(--palette-ink-900));
149
+ --color-text-inverse-muted: light-dark(var(--palette-ink-400), var(--palette-ink-600));
150
+
151
+ /* Accent: actions, links, selection, focus */
152
+ --color-accent: light-dark(var(--palette-blue-600), var(--palette-blue-550));
153
+ --color-accent-hover: light-dark(var(--palette-blue-700), var(--palette-blue-600));
154
+ --color-accent-text: light-dark(var(--palette-blue-600), var(--palette-blue-300));
155
+ --color-accent-text-hover: light-dark(var(--palette-blue-700), var(--palette-blue-350));
156
+ --color-on-accent: var(--palette-white);
157
+ --color-accent-subtle: light-dark(var(--palette-blue-50), var(--palette-blue-950));
158
+ --color-accent-border: light-dark(var(--palette-blue-200), var(--palette-blue-800));
159
+ --color-focus: light-dark(var(--palette-blue-600), var(--palette-blue-300));
160
+
161
+ /* Tones: a background and the text drawn on it */
162
+ --color-neutral-bg: light-dark(var(--palette-stone-150), var(--palette-night-750));
163
+ --color-neutral-text: light-dark(var(--palette-ink-700), var(--palette-night-300));
164
+ --color-info-bg: light-dark(var(--palette-blue-100), var(--palette-blue-950));
165
+ --color-info-text: light-dark(var(--palette-blue-700), var(--palette-blue-350));
166
+ --color-info-indicator: light-dark(var(--palette-blue-600), var(--palette-blue-550));
167
+ --color-accent-bg: light-dark(var(--palette-blue-150), var(--palette-blue-900));
168
+ --color-accent-bg-text: light-dark(var(--palette-blue-700), var(--palette-blue-350));
169
+ --color-waiting-bg: light-dark(var(--palette-amber-100), var(--palette-amber-950));
170
+ --color-waiting-text: light-dark(var(--palette-amber-800), var(--palette-amber-200));
171
+ --color-waiting-indicator: light-dark(var(--palette-amber-500), var(--palette-amber-400));
172
+ --color-queued-bg: light-dark(var(--palette-teal-100), var(--palette-teal-950));
173
+ --color-queued-text: light-dark(var(--palette-teal-700), var(--palette-teal-300));
174
+ --color-queued-indicator: light-dark(var(--palette-teal-600), var(--palette-teal-400));
175
+ --color-success-bg: light-dark(var(--palette-green-100), var(--palette-green-950));
176
+ --color-success-text: light-dark(var(--palette-green-700), var(--palette-green-300));
177
+ --color-success-indicator: light-dark(var(--palette-green-600), var(--palette-green-500));
178
+ --color-danger-bg: light-dark(var(--palette-red-100), var(--palette-red-950));
179
+ --color-danger-text: light-dark(var(--palette-red-700), var(--palette-red-300));
180
+ --color-danger-border: light-dark(var(--palette-red-700), var(--palette-red-500));
181
+ }
182
+
183
+ :root {
184
+ /* Type */
185
+ --font-sans: var(--palette-font-plex-sans);
186
+ --font-mono: var(--palette-font-plex-mono);
187
+ --font-size-xs: var(--palette-size-12);
188
+ --font-size-sm: var(--palette-size-13);
189
+ --font-size-md: var(--palette-size-14);
190
+ --font-size-base: var(--palette-size-15);
191
+ --font-size-lg: var(--palette-size-17);
192
+ --font-size-xl: var(--palette-size-19);
193
+ --font-size-2xl: var(--palette-size-30);
194
+ --font-weight-regular: 400;
195
+ --font-weight-medium: 500;
196
+ --font-weight-semibold: 600;
197
+ --line-height-body: 1.55;
198
+ --line-height-heading: 1.2;
199
+ --line-height-control: 1.3;
200
+
201
+ /* Space */
202
+ --space-1: var(--palette-size-4);
203
+ --space-1-5: var(--palette-size-6);
204
+ --space-2: var(--palette-size-8);
205
+ --space-2-5: var(--palette-size-10);
206
+ --space-3: var(--palette-size-12);
207
+ --space-4: var(--palette-size-16);
208
+ --space-5: var(--palette-size-20);
209
+ --space-6: var(--palette-size-24);
210
+ --space-8: var(--palette-size-32);
211
+ --space-10: var(--palette-size-40);
212
+
213
+ /* Shapes */
214
+ --radius-control: var(--palette-size-8);
215
+ --radius-card: var(--palette-size-12);
216
+ --radius-pill: var(--palette-size-pill);
217
+ --border-width: var(--palette-size-1);
218
+ --border-width-strong: var(--palette-size-2);
219
+ --border-style-inactive: dashed;
220
+
221
+ /* Sizes */
222
+ --size-touch: var(--palette-size-44);
223
+ --size-icon-sm: var(--palette-size-14);
224
+ --size-icon-md: var(--palette-size-16);
225
+ --size-icon-lg: var(--palette-size-20);
226
+ --size-indicator: var(--palette-size-8);
227
+ --size-choice: var(--palette-size-18);
228
+ --size-row: var(--palette-size-52);
229
+ --size-progress: var(--palette-size-56);
230
+ --opacity-disabled: 0.5;
231
+ --focus-ring-width: var(--palette-size-2);
232
+ --focus-ring-offset: var(--palette-size-2);
233
+
234
+ /* Breakpoints: the widths where a layout changes. Custom properties cannot drive media or container queries, so the
235
+ package also exports them as numbers (breakpoints.medium, breakpoints.wide). */
236
+ --breakpoint-medium: var(--palette-size-720);
237
+ --breakpoint-wide: var(--palette-size-1200);
238
+
239
+ /* Motion */
240
+ --duration-fast: 160ms;
241
+ --duration-moderate: 240ms;
242
+ --duration-slow: 320ms;
243
+ --duration-loop: 2s;
244
+ --easing-standard: cubic-bezier(0.2, 0, 0, 1);
245
+ /* Starts gently: a height animated with the standard easing drops most of its change in its first frames. */
246
+ --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
247
+ }
248
+
249
+ /* Base of every interface: the ground, the text color and the type of the page, and of any subtree forced to a theme. */
250
+ :root,
251
+ [data-theme] {
252
+ background-color: var(--color-bg);
253
+ color: var(--color-text);
254
+ }
255
+
256
+ :root {
257
+ font-family: var(--font-sans);
258
+ font-size: var(--font-size-base);
259
+ line-height: var(--line-height-body);
260
+ -webkit-font-smoothing: antialiased;
261
+ -moz-osx-font-smoothing: grayscale;
262
+ }
263
+
264
+ /* Tones, shared by badges, status badges, banners, filter chips and pill buttons: a background and the text drawn on it. */
265
+ .cpds-tone--neutral {
266
+ background-color: var(--color-neutral-bg);
267
+ color: var(--color-neutral-text);
268
+ }
269
+
270
+ .cpds-tone--info {
271
+ background-color: var(--color-info-bg);
272
+ color: var(--color-info-text);
273
+ }
274
+
275
+ .cpds-tone--accent {
276
+ background-color: var(--color-accent-bg);
277
+ color: var(--color-accent-bg-text);
278
+ }
279
+
280
+ .cpds-tone--queued {
281
+ background-color: var(--color-queued-bg);
282
+ color: var(--color-queued-text);
283
+ }
284
+
285
+ .cpds-tone--waiting {
286
+ background-color: var(--color-waiting-bg);
287
+ color: var(--color-waiting-text);
288
+ }
289
+
290
+ .cpds-tone--success {
291
+ background-color: var(--color-success-bg);
292
+ color: var(--color-success-text);
293
+ }
294
+
295
+ .cpds-tone--danger {
296
+ background-color: var(--color-danger-bg);
297
+ color: var(--color-danger-text);
298
+ }
299
+
300
+ /* Status dots, status badges and badges fade their colors to a new tone and pulse once in scale. */
301
+ :is(.cpds-status-dot, .cpds-status-badge, .cpds-badge) {
302
+ transition:
303
+ background-color var(--duration-moderate) var(--easing-standard),
304
+ border-color var(--duration-moderate) var(--easing-standard),
305
+ color var(--duration-moderate) var(--easing-standard);
306
+ }
307
+
308
+ .cpds-pulse-a {
309
+ animation: cpds-pulse-a var(--duration-moderate) var(--easing-standard);
310
+ }
311
+
312
+ .cpds-pulse-b {
313
+ animation: cpds-pulse-b var(--duration-moderate) var(--easing-standard);
314
+ }
315
+
316
+ @keyframes cpds-pulse-a {
317
+ 40% {
318
+ transform: scale(1.12);
319
+ }
320
+ }
321
+
322
+ @keyframes cpds-pulse-b {
323
+ 40% {
324
+ transform: scale(1.12);
325
+ }
326
+ }
327
+
328
+ .cpds-icon {
329
+ flex: none;
330
+ display: inline-block;
331
+ vertical-align: middle;
332
+ }
333
+
334
+ .cpds-icon--sm {
335
+ width: var(--size-icon-sm);
336
+ height: var(--size-icon-sm);
337
+ }
338
+
339
+ .cpds-icon--md {
340
+ width: var(--size-icon-md);
341
+ height: var(--size-icon-md);
342
+ }
343
+
344
+ .cpds-icon--lg {
345
+ width: var(--size-icon-lg);
346
+ height: var(--size-icon-lg);
347
+ }
348
+
349
+ .cpds-button {
350
+ display: inline-flex;
351
+ align-items: center;
352
+ justify-content: center;
353
+ min-height: var(--size-touch);
354
+ padding: 0 var(--space-4);
355
+ border: var(--border-width) solid transparent;
356
+ border-radius: var(--radius-control);
357
+ background-color: transparent;
358
+ color: var(--color-text);
359
+ font-family: inherit;
360
+ font-size: var(--font-size-md);
361
+ font-weight: var(--font-weight-medium);
362
+ line-height: var(--line-height-control);
363
+ text-decoration: none;
364
+ white-space: nowrap;
365
+ cursor: pointer;
366
+ }
367
+
368
+ /* The outline stays out of the list: the focus ring appears at once. */
369
+ .cpds-button {
370
+ transition-property: background-color, border-color, color, filter, transform;
371
+ transition-duration: var(--duration-fast);
372
+ transition-timing-function: var(--easing-standard);
373
+ }
374
+
375
+ .cpds-button:active:not(:disabled) {
376
+ transform: scale(0.98);
377
+ }
378
+
379
+ .cpds-button:focus-visible {
380
+ outline: var(--focus-ring-width) solid var(--color-focus);
381
+ outline-offset: var(--focus-ring-offset);
382
+ }
383
+
384
+ .cpds-button:disabled {
385
+ opacity: var(--opacity-disabled);
386
+ cursor: not-allowed;
387
+ }
388
+
389
+ .cpds-button[data-loading] {
390
+ cursor: progress;
391
+ }
392
+
393
+ /* The icon or spinner before the label: a track that opens and closes instead of appearing at once. */
394
+ .cpds-button__lead {
395
+ display: grid;
396
+ grid-template-columns: 0fr;
397
+ margin-inline-end: 0;
398
+ transition:
399
+ grid-template-columns var(--duration-fast) var(--easing-standard),
400
+ margin-inline-end var(--duration-fast) var(--easing-standard);
401
+ }
402
+
403
+ .cpds-button__lead[data-open] {
404
+ grid-template-columns: 1fr;
405
+ margin-inline-end: var(--space-2);
406
+ }
407
+
408
+ .cpds-button__lead-inner {
409
+ display: flex;
410
+ min-width: 0;
411
+ overflow: hidden;
412
+ }
413
+
414
+ .cpds-button__spinner {
415
+ animation:
416
+ cpds-spin 0.9s linear infinite,
417
+ cpds-fade-in var(--duration-fast) var(--easing-standard);
418
+ }
419
+
420
+ @keyframes cpds-spin {
421
+ to {
422
+ transform: rotate(360deg);
423
+ }
424
+ }
425
+
426
+ @keyframes cpds-fade-in {
427
+ from {
428
+ opacity: 0;
429
+ }
430
+ }
431
+
432
+ .cpds-button--primary {
433
+ padding: 0 var(--space-5);
434
+ background-color: var(--color-accent);
435
+ color: var(--color-on-accent);
436
+ font-weight: var(--font-weight-semibold);
437
+ }
438
+
439
+ .cpds-button--primary:hover:not(:disabled, [data-loading]) {
440
+ background-color: var(--color-accent-hover);
441
+ }
442
+
443
+ .cpds-button--secondary {
444
+ border-color: var(--color-border-strong);
445
+ background-color: var(--color-surface);
446
+ }
447
+
448
+ .cpds-button--secondary:hover:not(:disabled, [data-loading]) {
449
+ background-color: var(--color-surface-sunken);
450
+ }
451
+
452
+ .cpds-button--ghost {
453
+ padding: 0 var(--space-3);
454
+ color: var(--color-accent-text);
455
+ }
456
+
457
+ .cpds-button--ghost:hover:not(:disabled, [data-loading]) {
458
+ background-color: var(--color-accent-subtle);
459
+ color: var(--color-accent-text-hover);
460
+ }
461
+
462
+ .cpds-icon-button {
463
+ display: inline-flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ width: var(--size-touch);
467
+ height: var(--size-touch);
468
+ padding: 0;
469
+ border: var(--border-width) solid transparent;
470
+ border-radius: var(--radius-control);
471
+ background-color: transparent;
472
+ color: var(--color-text-muted);
473
+ cursor: pointer;
474
+ }
475
+
476
+ /* The outline stays out of the list: the focus ring appears at once. */
477
+ .cpds-icon-button {
478
+ transition-property: background-color, border-color, color, filter, transform;
479
+ transition-duration: var(--duration-fast);
480
+ transition-timing-function: var(--easing-standard);
481
+ }
482
+
483
+ .cpds-icon-button:active:not(:disabled) {
484
+ transform: scale(0.98);
485
+ }
486
+
487
+ .cpds-icon-button:focus-visible {
488
+ outline: var(--focus-ring-width) solid var(--color-focus);
489
+ outline-offset: var(--focus-ring-offset);
490
+ }
491
+
492
+ .cpds-icon-button:disabled {
493
+ opacity: var(--opacity-disabled);
494
+ cursor: not-allowed;
495
+ }
496
+
497
+ .cpds-icon-button--primary {
498
+ background-color: var(--color-accent);
499
+ color: var(--color-on-accent);
500
+ }
501
+
502
+ .cpds-icon-button--primary:hover:not(:disabled) {
503
+ background-color: var(--color-accent-hover);
504
+ }
505
+
506
+ .cpds-icon-button--secondary {
507
+ border-color: var(--color-border-strong);
508
+ background-color: var(--color-surface);
509
+ color: var(--color-text);
510
+ }
511
+
512
+ .cpds-icon-button--secondary:hover:not(:disabled) {
513
+ background-color: var(--color-surface-sunken);
514
+ }
515
+
516
+ .cpds-icon-button--ghost:hover:not(:disabled) {
517
+ background-color: var(--color-surface-sunken);
518
+ color: var(--color-text);
519
+ }
520
+
521
+ .cpds-link {
522
+ border-radius: var(--radius-control);
523
+ /* The underline is always there, transparent at rest, so that its color can fade with the text. */
524
+ text-decoration: underline;
525
+ text-decoration-color: transparent;
526
+ text-underline-offset: 0.2em;
527
+ transition-property: color, text-decoration-color;
528
+ transition-duration: var(--duration-fast);
529
+ transition-timing-function: var(--easing-standard);
530
+ }
531
+
532
+ .cpds-link:hover {
533
+ text-decoration-color: currentcolor;
534
+ }
535
+
536
+ .cpds-link:focus-visible {
537
+ outline: var(--focus-ring-width) solid var(--color-focus);
538
+ outline-offset: var(--focus-ring-offset);
539
+ }
540
+
541
+ .cpds-link--accent {
542
+ color: var(--color-accent-text);
543
+ font-weight: var(--font-weight-medium);
544
+ }
545
+
546
+ .cpds-link--accent:hover {
547
+ color: var(--color-accent-text-hover);
548
+ }
549
+
550
+ .cpds-link--muted {
551
+ color: var(--color-text-muted);
552
+ }
553
+
554
+ .cpds-link--muted:hover {
555
+ color: var(--color-text);
556
+ }
557
+
558
+ .cpds-field {
559
+ display: flex;
560
+ flex-direction: column;
561
+ gap: var(--space-1-5);
562
+ }
563
+
564
+ .cpds-field__label {
565
+ color: var(--color-text-muted);
566
+ font-size: var(--font-size-sm);
567
+ font-weight: var(--font-weight-medium);
568
+ }
569
+
570
+ .cpds-field__hint,
571
+ .cpds-field__error {
572
+ margin: 0;
573
+ font-size: var(--font-size-sm);
574
+ }
575
+
576
+ .cpds-field__hint {
577
+ color: var(--color-text-muted);
578
+ }
579
+
580
+ .cpds-field__error {
581
+ display: flex;
582
+ align-items: center;
583
+ gap: var(--space-1-5);
584
+ overflow: hidden;
585
+ /* Pulls the closed error over the frame's gap, so that a closed error takes no space at all. */
586
+ --cpds-field-error-pull: calc(var(--space-1-5) * -1);
587
+ color: var(--color-danger-text);
588
+ interpolate-size: allow-keywords;
589
+ animation: cpds-field-error-in var(--duration-slow) var(--easing-smooth);
590
+ }
591
+
592
+ /* The error's space opens first, then the error fades in, in place, so that it never covers the input. */
593
+ @keyframes cpds-field-error-in {
594
+ from {
595
+ height: 0;
596
+ margin-top: var(--cpds-field-error-pull);
597
+ opacity: 0;
598
+ }
599
+
600
+ 40% {
601
+ opacity: 0;
602
+ }
603
+
604
+ to {
605
+ height: auto;
606
+ margin-top: 0;
607
+ opacity: 1;
608
+ }
609
+ }
610
+
611
+ /* A cleared error fades out in place, then its space closes. The frame keeps it mounted until this ends. */
612
+ .cpds-field__error--leaving {
613
+ animation: cpds-field-error-out var(--duration-slow) var(--easing-smooth) forwards;
614
+ }
615
+
616
+ @keyframes cpds-field-error-out {
617
+ from {
618
+ height: auto;
619
+ margin-top: 0;
620
+ opacity: 1;
621
+ }
622
+
623
+ 40% {
624
+ height: auto;
625
+ margin-top: 0;
626
+ opacity: 0;
627
+ }
628
+
629
+ to {
630
+ height: 0;
631
+ margin-top: var(--cpds-field-error-pull);
632
+ opacity: 0;
633
+ }
634
+ }
635
+
636
+ /* The text input and the text area share one look. */
637
+ .cpds-input {
638
+ box-sizing: border-box;
639
+ width: 100%;
640
+ min-height: var(--size-touch);
641
+ margin: 0;
642
+ padding: var(--space-2-5) var(--space-3);
643
+ border: var(--border-width) solid var(--color-border-control);
644
+ border-radius: var(--radius-control);
645
+ background-color: var(--color-surface-subtle);
646
+ color: var(--color-text);
647
+ font-family: inherit;
648
+ font-size: var(--font-size-base);
649
+ line-height: var(--line-height-body);
650
+ transition:
651
+ border-color var(--duration-moderate) var(--easing-standard),
652
+ background-color var(--duration-moderate) var(--easing-standard);
653
+ }
654
+
655
+ .cpds-input:hover:not(:disabled) {
656
+ background-color: var(--color-surface);
657
+ }
658
+
659
+ .cpds-input:hover:not(:focus-visible, :disabled, [aria-invalid="true"]) {
660
+ border-color: var(--color-border-strong);
661
+ }
662
+
663
+ .cpds-input::placeholder {
664
+ color: var(--color-text-muted);
665
+ }
666
+
667
+ .cpds-input:focus-visible {
668
+ border-color: var(--color-accent);
669
+ background-color: var(--color-surface);
670
+ outline: var(--focus-ring-width) solid var(--color-focus);
671
+ outline-offset: var(--focus-ring-offset);
672
+ }
673
+
674
+ .cpds-input[aria-invalid="true"] {
675
+ border-color: var(--color-danger-border);
676
+ }
677
+
678
+ .cpds-input:disabled {
679
+ opacity: var(--opacity-disabled);
680
+ cursor: not-allowed;
681
+ }
682
+
683
+ textarea.cpds-input {
684
+ resize: vertical;
685
+ }
686
+
687
+ .cpds-choice {
688
+ display: flex;
689
+ align-items: flex-start;
690
+ gap: var(--space-3);
691
+ min-height: var(--size-touch);
692
+ padding: var(--space-2-5) 0;
693
+ box-sizing: border-box;
694
+ color: var(--color-text);
695
+ cursor: pointer;
696
+ }
697
+
698
+ /*
699
+ * A native checkbox or radio draws its own mark, which CSS cannot animate. The input stays native for the keyboard,
700
+ * the form and assistive technologies, and draws itself with the same colors: accent fill, on-accent mark.
701
+ */
702
+ .cpds-choice__input {
703
+ display: grid;
704
+ flex: none;
705
+ place-content: center;
706
+ width: var(--size-choice);
707
+ height: var(--size-choice);
708
+ margin: 0;
709
+ box-sizing: border-box;
710
+ border: var(--border-width-strong) solid var(--color-border-control);
711
+ background-color: var(--color-surface);
712
+ cursor: inherit;
713
+ appearance: none;
714
+ transition:
715
+ background-color var(--duration-moderate) var(--easing-standard),
716
+ border-color var(--duration-moderate) var(--easing-standard),
717
+ border-width var(--duration-moderate) var(--easing-standard);
718
+ }
719
+
720
+ /* The box pops once when it becomes checked. */
721
+ .cpds-choice__input:checked {
722
+ animation: cpds-choice-pop var(--duration-moderate) var(--easing-standard);
723
+ }
724
+
725
+ /* A checkbox's box is smaller than a control: half the control's radius keeps it square-ish. */
726
+ .cpds-choice__input[type="checkbox"] {
727
+ --cpds-choice-box-radius: calc(var(--radius-control) / 2);
728
+
729
+ border-radius: var(--cpds-choice-box-radius);
730
+ }
731
+
732
+ .cpds-choice__input[type="checkbox"]:checked {
733
+ border-color: var(--color-accent);
734
+ background-color: var(--color-accent);
735
+ }
736
+
737
+ /*
738
+ * The check mark: the icon set's check path, used as a mask over the on-accent color. It is wiped from the right, and
739
+ * hidden once the wipe ends; it is drawn from the left after half the fast duration, once the box has started to fill.
740
+ */
741
+ .cpds-choice__input[type="checkbox"]::before {
742
+ width: calc(var(--size-choice) - var(--space-1));
743
+ height: calc(var(--size-choice) - var(--space-1));
744
+ background-color: var(--color-on-accent);
745
+ content: "";
746
+ opacity: 0;
747
+ clip-path: inset(0 100% 0 0);
748
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
749
+ transition:
750
+ clip-path var(--duration-slow) var(--easing-standard),
751
+ opacity 0s linear var(--duration-slow);
752
+ }
753
+
754
+ .cpds-choice__input[type="checkbox"]:checked::before {
755
+ opacity: 1;
756
+ clip-path: inset(0);
757
+ transition:
758
+ clip-path var(--duration-slow) var(--easing-standard) calc(var(--duration-fast) / 2),
759
+ opacity 0s;
760
+ }
761
+
762
+ .cpds-choice__input[type="radio"] {
763
+ border-radius: var(--radius-pill);
764
+ }
765
+
766
+ /* The checked radio's ring thickens. */
767
+ .cpds-choice__input[type="radio"]:checked {
768
+ border-width: calc(var(--border-width-strong) + var(--border-width));
769
+ border-color: var(--color-accent);
770
+ }
771
+
772
+ /*
773
+ * The dot grows past its size and settles when checked, and fades out when unchecked. At rest it keeps its size: a
774
+ * scale of zero there would hide it at once when the radio is unchecked, before its fade.
775
+ */
776
+ .cpds-choice__input[type="radio"]::before {
777
+ width: calc(var(--size-choice) / 2);
778
+ height: calc(var(--size-choice) / 2);
779
+ border-radius: var(--radius-pill);
780
+ background-color: var(--color-accent);
781
+ content: "";
782
+ opacity: 0;
783
+ transition: opacity var(--duration-fast) var(--easing-standard);
784
+ }
785
+
786
+ .cpds-choice__input[type="radio"]:checked::before {
787
+ opacity: 1;
788
+ animation: cpds-choice-dot var(--duration-slow) var(--easing-standard) forwards;
789
+ }
790
+
791
+ @keyframes cpds-choice-pop {
792
+ 40% {
793
+ transform: scale(0.88);
794
+ }
795
+ }
796
+
797
+ @keyframes cpds-choice-dot {
798
+ 0% {
799
+ transform: scale(0);
800
+ }
801
+
802
+ 60% {
803
+ transform: scale(1.25);
804
+ }
805
+
806
+ 100% {
807
+ transform: scale(1);
808
+ }
809
+ }
810
+
811
+ .cpds-choice__input:focus-visible {
812
+ outline: var(--focus-ring-width) solid var(--color-focus);
813
+ outline-offset: var(--focus-ring-offset);
814
+ }
815
+
816
+ .cpds-choice:has(.cpds-choice__input:disabled) {
817
+ opacity: var(--opacity-disabled);
818
+ cursor: not-allowed;
819
+ }
820
+
821
+ .cpds-choice__text {
822
+ display: flex;
823
+ flex-direction: column;
824
+ gap: var(--space-1);
825
+ }
826
+
827
+ .cpds-choice__label {
828
+ line-height: var(--line-height-control);
829
+ }
830
+
831
+ .cpds-choice__description {
832
+ color: var(--color-text-muted);
833
+ font-size: var(--font-size-sm);
834
+ }
835
+
836
+ .cpds-card {
837
+ box-sizing: border-box;
838
+ border: var(--border-width) solid var(--color-border);
839
+ border-radius: var(--radius-card);
840
+ background-color: var(--color-surface);
841
+ color: var(--color-text);
842
+ }
843
+
844
+ .cpds-card--subtle {
845
+ background-color: var(--color-surface-subtle);
846
+ }
847
+
848
+ .cpds-card--dashed {
849
+ border-style: dashed;
850
+ border-color: var(--color-border-strong);
851
+ background-color: transparent;
852
+ }
853
+
854
+ .cpds-card--inset-none {
855
+ padding: 0;
856
+ }
857
+
858
+ .cpds-card--inset-md {
859
+ padding: var(--space-4);
860
+ }
861
+
862
+ .cpds-card--inset-lg {
863
+ padding: var(--space-6);
864
+ }
865
+
866
+ .cpds-badge {
867
+ display: inline-flex;
868
+ align-items: center;
869
+ padding: var(--space-1) var(--space-2);
870
+ border-radius: var(--radius-pill);
871
+ font-size: var(--font-size-xs);
872
+ font-weight: var(--font-weight-medium);
873
+ line-height: var(--line-height-control);
874
+ white-space: nowrap;
875
+ }
876
+
877
+ .cpds-status-badge {
878
+ display: inline-flex;
879
+ align-items: center;
880
+ padding: var(--space-1) var(--space-2-5);
881
+ border-radius: var(--radius-pill);
882
+ font-size: var(--font-size-sm);
883
+ font-weight: var(--font-weight-medium);
884
+ line-height: var(--line-height-control);
885
+ white-space: nowrap;
886
+ }
887
+
888
+ .cpds-collapsible__trigger {
889
+ display: flex;
890
+ align-items: center;
891
+ gap: var(--space-3);
892
+ width: 100%;
893
+ box-sizing: border-box;
894
+ margin: 0;
895
+ border: 0;
896
+ background-color: transparent;
897
+ color: var(--color-text);
898
+ font-family: inherit;
899
+ font-size: var(--font-size-base);
900
+ line-height: var(--line-height-control);
901
+ text-align: left;
902
+ cursor: pointer;
903
+ }
904
+
905
+ .cpds-collapsible__trigger:focus-visible {
906
+ outline: var(--focus-ring-width) solid var(--color-focus);
907
+ outline-offset: var(--focus-ring-offset);
908
+ }
909
+
910
+ .cpds-collapsible__chevron {
911
+ transition: transform var(--duration-fast) var(--easing-standard);
912
+ }
913
+
914
+ .cpds-collapsible[data-expanded="true"] .cpds-collapsible__chevron {
915
+ transform: rotate(90deg);
916
+ }
917
+
918
+ .cpds-collapsible__title {
919
+ font-weight: var(--font-weight-medium);
920
+ }
921
+
922
+ .cpds-collapsible__meta {
923
+ color: var(--color-text-muted);
924
+ font-size: var(--font-size-md);
925
+ }
926
+
927
+ .cpds-collapsible--card {
928
+ border: var(--border-width) solid var(--color-border);
929
+ border-radius: var(--radius-card);
930
+ background-color: var(--color-surface);
931
+ }
932
+
933
+ .cpds-collapsible--card > .cpds-collapsible__trigger {
934
+ min-height: var(--size-row);
935
+ padding: 0 var(--space-4);
936
+ border-radius: var(--radius-card);
937
+ }
938
+
939
+ .cpds-collapsible--card > .cpds-collapsible__content {
940
+ padding: var(--space-4);
941
+ border-top: var(--border-width) solid var(--color-border-subtle);
942
+ }
943
+
944
+ .cpds-collapsible--plain > .cpds-collapsible__trigger {
945
+ width: auto;
946
+ min-height: var(--size-touch);
947
+ padding: 0 var(--space-2);
948
+ border-radius: var(--radius-control);
949
+ color: var(--color-text-muted);
950
+ font-size: var(--font-size-md);
951
+ }
952
+
953
+ .cpds-collapsible--plain > .cpds-collapsible__trigger:hover {
954
+ color: var(--color-text);
955
+ }
956
+
957
+ .cpds-collapsible--plain .cpds-collapsible__title {
958
+ font-weight: var(--font-weight-regular);
959
+ }
960
+
961
+ .cpds-collapsible--plain > .cpds-collapsible__content {
962
+ padding-top: var(--space-2);
963
+ }
964
+
965
+ /* A dense row of a list: separated from the next, its content sliding open below it. */
966
+ .cpds-collapsible--row + .cpds-collapsible--row {
967
+ border-top: var(--border-width) solid var(--color-border-subtle);
968
+ }
969
+
970
+ .cpds-collapsible--row > .cpds-collapsible__trigger {
971
+ gap: var(--space-2-5);
972
+ padding: var(--space-2) var(--space-3);
973
+ font-size: var(--font-size-md);
974
+ }
975
+
976
+ .cpds-collapsible--row > .cpds-collapsible__trigger:hover {
977
+ background-color: var(--color-surface-subtle);
978
+ }
979
+
980
+ .cpds-collapsible--row > .cpds-collapsible__trigger:focus-visible {
981
+ outline-offset: calc(var(--focus-ring-width) * -1);
982
+ }
983
+
984
+ .cpds-collapsible--row .cpds-collapsible__chevron {
985
+ flex-shrink: 0;
986
+ color: var(--color-text-muted);
987
+ }
988
+
989
+ .cpds-collapsible__leading {
990
+ display: inline-flex;
991
+ flex-shrink: 0;
992
+ }
993
+
994
+ .cpds-collapsible--row .cpds-collapsible__title {
995
+ display: flex;
996
+ flex: 1;
997
+ min-width: 0;
998
+ font-weight: var(--font-weight-regular);
999
+ }
1000
+
1001
+ .cpds-collapsible--row .cpds-collapsible__meta {
1002
+ display: inline-flex;
1003
+ flex-shrink: 0;
1004
+ align-items: center;
1005
+ gap: var(--space-2);
1006
+ }
1007
+
1008
+ .cpds-collapsible--row > .cpds-collapsible__content {
1009
+ display: grid;
1010
+ grid-template-rows: 0fr;
1011
+ transition: grid-template-rows var(--duration-slow) var(--easing-standard);
1012
+ }
1013
+
1014
+ .cpds-collapsible--row[data-expanded="true"] > .cpds-collapsible__content {
1015
+ grid-template-rows: 1fr;
1016
+ }
1017
+
1018
+ .cpds-collapsible__inner {
1019
+ min-height: 0;
1020
+ overflow: hidden;
1021
+ }
1022
+
1023
+ .cpds-collapsible--row[data-expanded="true"] .cpds-collapsible__inner {
1024
+ border-top: var(--border-width) solid var(--color-border-subtle);
1025
+ background-color: var(--color-surface-subtle);
1026
+ }
1027
+
1028
+ /* The content fades and slides: out over the fast duration, in over the moderate one after half of it. */
1029
+ .cpds-collapsible--row > .cpds-collapsible__content > .cpds-collapsible__inner {
1030
+ opacity: 0;
1031
+ transition: opacity var(--duration-fast) var(--easing-standard);
1032
+ }
1033
+
1034
+ .cpds-collapsible--row[data-expanded="true"] > .cpds-collapsible__content > .cpds-collapsible__inner {
1035
+ opacity: 1;
1036
+ transition: opacity var(--duration-moderate) var(--easing-standard) calc(var(--duration-moderate) / 2);
1037
+ }
1038
+
1039
+ .cpds-collapsible--row > .cpds-collapsible__content > .cpds-collapsible__inner > * {
1040
+ transform: translateY(calc(var(--space-1) * -1));
1041
+ transition: transform var(--duration-fast) var(--easing-standard);
1042
+ }
1043
+
1044
+ .cpds-collapsible--row[data-expanded="true"] > .cpds-collapsible__content > .cpds-collapsible__inner > * {
1045
+ transform: none;
1046
+ transition: transform var(--duration-moderate) var(--easing-standard) calc(var(--duration-moderate) / 2);
1047
+ }
1048
+
1049
+ /*
1050
+ * Card: the content keeps the hidden attribute, yet opens and closes by its height. The display change is held
1051
+ * for the transition (allow-discrete) and the open state starts from a closed box (@starting-style).
1052
+ */
1053
+ .cpds-collapsible--card > .cpds-collapsible__content {
1054
+ overflow: hidden;
1055
+ height: auto;
1056
+ interpolate-size: allow-keywords;
1057
+ transition:
1058
+ height var(--duration-slow) var(--easing-standard),
1059
+ padding-block var(--duration-slow) var(--easing-standard),
1060
+ border-top-color var(--duration-slow) var(--easing-standard),
1061
+ opacity var(--duration-moderate) var(--easing-standard),
1062
+ display var(--duration-slow) allow-discrete;
1063
+ }
1064
+
1065
+ .cpds-collapsible--card > .cpds-collapsible__content[hidden] {
1066
+ height: 0;
1067
+ padding-block: 0;
1068
+ border-top-color: transparent;
1069
+ opacity: 0;
1070
+ }
1071
+
1072
+ @starting-style {
1073
+ .cpds-collapsible--card > .cpds-collapsible__content:not([hidden]) {
1074
+ height: 0;
1075
+ padding-block: 0;
1076
+ border-top-color: transparent;
1077
+ opacity: 0;
1078
+ }
1079
+ }
1080
+
1081
+ /* The current row of its list: tinted in the accent, whatever its variant. */
1082
+ .cpds-collapsible[data-selected] > .cpds-collapsible__trigger {
1083
+ background-color: var(--color-accent-subtle);
1084
+ }
1085
+
1086
+ .cpds-collapsible--card[data-selected] {
1087
+ border-color: var(--color-accent-border);
1088
+ }
1089
+
1090
+ .cpds-live {
1091
+ display: inline-flex;
1092
+ align-items: center;
1093
+ gap: var(--space-1-5);
1094
+ color: var(--color-text-muted);
1095
+ font-size: var(--font-size-sm);
1096
+ white-space: nowrap;
1097
+ }
1098
+
1099
+ .cpds-live__dot {
1100
+ width: var(--size-indicator);
1101
+ height: var(--size-indicator);
1102
+ border-radius: var(--radius-pill);
1103
+ }
1104
+
1105
+ .cpds-live--live .cpds-live__dot {
1106
+ background-color: var(--color-success-indicator);
1107
+ }
1108
+
1109
+ .cpds-live--offline .cpds-live__dot {
1110
+ box-sizing: border-box;
1111
+ border: var(--border-width-strong) solid var(--color-text-muted);
1112
+ background-color: transparent;
1113
+ }
1114
+
1115
+ /* Only the live dot sends a halo; the offline ring stays still. */
1116
+ .cpds-live--live .cpds-live__dot {
1117
+ --halo-start: color-mix(in srgb, var(--color-success-indicator) 45%, transparent);
1118
+ --halo-end: color-mix(in srgb, var(--color-success-indicator) 0%, transparent);
1119
+
1120
+ animation: cpds-live-halo var(--duration-loop) var(--easing-standard) infinite;
1121
+ }
1122
+
1123
+ @keyframes cpds-live-halo {
1124
+ 0% {
1125
+ box-shadow: 0 0 0 0 var(--halo-start);
1126
+ }
1127
+
1128
+ 70%,
1129
+ 100% {
1130
+ box-shadow: 0 0 0 var(--space-1-5) var(--halo-end);
1131
+ }
1132
+ }
1133
+
1134
+ .cpds-app-header {
1135
+ display: flex;
1136
+ flex-wrap: wrap;
1137
+ align-items: center;
1138
+ gap: var(--space-3) var(--space-6);
1139
+ padding: var(--space-3) var(--space-8);
1140
+ border-bottom: var(--border-width) solid var(--color-border);
1141
+ background-color: var(--color-surface);
1142
+ color: var(--color-text);
1143
+ }
1144
+
1145
+ .cpds-app-header__title {
1146
+ display: flex;
1147
+ align-items: center;
1148
+ gap: var(--space-2-5);
1149
+ font-weight: var(--font-weight-semibold);
1150
+ }
1151
+
1152
+ .cpds-app-header__breadcrumb ol {
1153
+ display: flex;
1154
+ flex-wrap: wrap;
1155
+ align-items: center;
1156
+ gap: var(--space-2);
1157
+ margin: 0;
1158
+ padding: 0;
1159
+ list-style: none;
1160
+ color: var(--color-text-muted);
1161
+ font-size: var(--font-size-md);
1162
+ }
1163
+
1164
+ .cpds-app-header__breadcrumb li {
1165
+ display: flex;
1166
+ align-items: center;
1167
+ gap: var(--space-2);
1168
+ }
1169
+
1170
+ .cpds-app-header__current {
1171
+ color: var(--color-text);
1172
+ }
1173
+
1174
+ .cpds-app-header__end {
1175
+ display: flex;
1176
+ flex-wrap: wrap;
1177
+ align-items: center;
1178
+ gap: var(--space-4);
1179
+ margin-left: auto;
1180
+ }
1181
+
1182
+ @media (max-width: 640px) {
1183
+ .cpds-app-header {
1184
+ padding: var(--space-3) var(--space-4);
1185
+ }
1186
+ }
1187
+
1188
+ .cpds-banner {
1189
+ display: flex;
1190
+ align-items: center;
1191
+ gap: var(--space-2-5);
1192
+ animation: cpds-banner-enter var(--duration-slow) var(--easing-standard);
1193
+ }
1194
+
1195
+ /* The exit fades the banner while it rises, then closes its height and the space below it. */
1196
+ .cpds-banner[data-leaving] {
1197
+ overflow: hidden;
1198
+ interpolate-size: allow-keywords;
1199
+ /* The stack's gap closes with the banner, so that nothing jumps when it leaves. */
1200
+ --cpds-banner-closed-gap: calc(var(--space-4) * -1);
1201
+ animation:
1202
+ cpds-banner-leave var(--duration-moderate) var(--easing-standard) forwards,
1203
+ cpds-banner-collapse var(--duration-moderate) var(--easing-smooth) var(--duration-moderate) forwards;
1204
+ }
1205
+
1206
+ @keyframes cpds-banner-enter {
1207
+ from {
1208
+ opacity: 0;
1209
+ transform: translateY(calc(var(--space-2) * -1));
1210
+ }
1211
+ }
1212
+
1213
+ @keyframes cpds-banner-leave {
1214
+ to {
1215
+ opacity: 0;
1216
+ transform: translateY(calc(var(--space-1) * -1));
1217
+ }
1218
+ }
1219
+
1220
+ @keyframes cpds-banner-collapse {
1221
+ from {
1222
+ height: auto;
1223
+ margin-bottom: 0;
1224
+ }
1225
+
1226
+ to {
1227
+ height: 0;
1228
+ padding-block: 0;
1229
+ margin-bottom: var(--cpds-banner-closed-gap);
1230
+ }
1231
+ }
1232
+
1233
+ .cpds-banner--info {
1234
+ padding: var(--space-3) var(--space-3);
1235
+ border-radius: var(--radius-control);
1236
+ font-size: var(--font-size-md);
1237
+ }
1238
+
1239
+ .cpds-banner--status {
1240
+ gap: var(--space-1-5);
1241
+ font-size: var(--font-size-sm);
1242
+ }
1243
+
1244
+ .cpds-banner--status.cpds-banner-tone--neutral {
1245
+ color: var(--color-text-muted);
1246
+ }
1247
+
1248
+ .cpds-banner--status.cpds-banner-tone--info {
1249
+ color: var(--color-info-text);
1250
+ }
1251
+
1252
+ .cpds-banner--status.cpds-banner-tone--waiting {
1253
+ color: var(--color-waiting-text);
1254
+ }
1255
+
1256
+ .cpds-banner--status.cpds-banner-tone--success {
1257
+ color: var(--color-success-text);
1258
+ }
1259
+
1260
+ .cpds-banner--status.cpds-banner-tone--danger {
1261
+ color: var(--color-danger-text);
1262
+ }
1263
+
1264
+ .cpds-banner__message {
1265
+ flex: 1;
1266
+ min-width: 0;
1267
+ }
1268
+
1269
+ .cpds-banner__title {
1270
+ font-weight: var(--font-weight-semibold);
1271
+ }
1272
+
1273
+ /* Controls at the end: the banner tightens its padding so the buttons sit close to its edge. */
1274
+ .cpds-banner--with-controls {
1275
+ padding-block: var(--space-1);
1276
+ padding-inline-end: var(--space-1);
1277
+ }
1278
+
1279
+ .cpds-banner__controls {
1280
+ display: inline-flex;
1281
+ flex-shrink: 0;
1282
+ align-items: center;
1283
+ gap: var(--space-1);
1284
+ }
1285
+
1286
+ .cpds-figure {
1287
+ display: flex;
1288
+ flex-direction: column;
1289
+ gap: var(--space-3);
1290
+ margin: 0;
1291
+ padding: var(--space-5);
1292
+ border: var(--border-width) dashed var(--color-border-strong);
1293
+ border-radius: var(--radius-control);
1294
+ }
1295
+
1296
+ .cpds-figure__content {
1297
+ overflow-x: auto;
1298
+ }
1299
+
1300
+ .cpds-figure__caption {
1301
+ color: var(--color-text-muted);
1302
+ font-size: var(--font-size-sm);
1303
+ text-align: center;
1304
+ }
1305
+
1306
+ .cpds-prose {
1307
+ color: var(--color-text);
1308
+ overflow-wrap: break-word;
1309
+ }
1310
+
1311
+ .cpds-prose--block {
1312
+ display: block;
1313
+ line-height: var(--line-height-body);
1314
+ }
1315
+
1316
+ .cpds-prose--inline {
1317
+ display: inline;
1318
+ }
1319
+
1320
+ /* Blocks */
1321
+
1322
+ .cpds-prose--block :is(p, ul, ol, pre, table, blockquote, hr) {
1323
+ margin: 0 0 var(--space-4);
1324
+ }
1325
+
1326
+ .cpds-prose.cpds-prose--block > :first-child {
1327
+ margin-top: 0;
1328
+ }
1329
+
1330
+ .cpds-prose.cpds-prose--block > :last-child {
1331
+ margin-bottom: 0;
1332
+ }
1333
+
1334
+ /* Headings: every level stays under the size of a card's title. */
1335
+
1336
+ .cpds-prose :is(h1, h2, h3, h4, h5, h6) {
1337
+ margin: var(--space-6) 0 var(--space-2);
1338
+ font-weight: var(--font-weight-semibold);
1339
+ line-height: var(--line-height-heading);
1340
+ }
1341
+
1342
+ .cpds-prose h1 {
1343
+ font-size: var(--font-size-lg);
1344
+ }
1345
+
1346
+ .cpds-prose h2 {
1347
+ font-size: var(--font-size-base);
1348
+ }
1349
+
1350
+ .cpds-prose h3 {
1351
+ font-size: var(--font-size-md);
1352
+ }
1353
+
1354
+ .cpds-prose :is(h4, h5, h6) {
1355
+ color: var(--color-text-muted);
1356
+ font-size: var(--font-size-xs);
1357
+ letter-spacing: 0.04em;
1358
+ text-transform: uppercase;
1359
+ }
1360
+
1361
+ /* Lists */
1362
+
1363
+ .cpds-prose :is(ul, ol) {
1364
+ padding-inline-start: var(--space-5);
1365
+ }
1366
+
1367
+ .cpds-prose li + li {
1368
+ margin-top: var(--space-1-5);
1369
+ }
1370
+
1371
+ .cpds-prose--block li > :is(ul, ol) {
1372
+ margin: var(--space-1-5) 0 0;
1373
+ }
1374
+
1375
+ .cpds-prose li::marker {
1376
+ color: var(--color-text-muted);
1377
+ }
1378
+
1379
+ /* Code */
1380
+
1381
+ .cpds-prose code {
1382
+ padding: 0 var(--space-1);
1383
+ border: var(--border-width) solid var(--color-border-subtle);
1384
+ border-radius: var(--radius-control);
1385
+ background-color: var(--color-surface-subtle);
1386
+ font-family: var(--font-mono);
1387
+ font-size: var(--font-size-sm);
1388
+ }
1389
+
1390
+ .cpds-prose pre {
1391
+ overflow-x: auto;
1392
+ padding: var(--space-3) var(--space-4);
1393
+ border: var(--border-width) solid var(--color-border);
1394
+ border-radius: var(--radius-control);
1395
+ background-color: var(--color-surface-subtle);
1396
+ font-size: var(--font-size-sm);
1397
+ line-height: var(--line-height-body);
1398
+ }
1399
+
1400
+ .cpds-prose pre code {
1401
+ padding: 0;
1402
+ border: 0;
1403
+ background-color: transparent;
1404
+ }
1405
+
1406
+ /* Tables */
1407
+
1408
+ .cpds-prose table {
1409
+ display: block;
1410
+ max-width: 100%;
1411
+ overflow-x: auto;
1412
+ border-collapse: collapse;
1413
+ }
1414
+
1415
+ .cpds-prose :is(th, td) {
1416
+ padding: var(--space-2) var(--space-3);
1417
+ border: var(--border-width) solid var(--color-border);
1418
+ font-size: var(--font-size-md);
1419
+ text-align: start;
1420
+ vertical-align: top;
1421
+ }
1422
+
1423
+ .cpds-prose th {
1424
+ background-color: var(--color-surface-subtle);
1425
+ font-weight: var(--font-weight-semibold);
1426
+ }
1427
+
1428
+ /* Quotes, strikethrough, rules */
1429
+
1430
+ .cpds-prose blockquote {
1431
+ padding: var(--space-2) var(--space-4);
1432
+ border-inline-start: var(--border-width-strong) solid var(--color-accent-border);
1433
+ border-radius: 0 var(--radius-control) var(--radius-control) 0;
1434
+ background-color: var(--color-surface-subtle);
1435
+ color: var(--color-text-secondary);
1436
+ }
1437
+
1438
+ .cpds-prose del {
1439
+ color: var(--color-text-muted);
1440
+ }
1441
+
1442
+ .cpds-prose hr {
1443
+ border: 0;
1444
+ border-top: var(--border-width) solid var(--color-border);
1445
+ }
1446
+
1447
+ /* Kept in the accessibility tree, out of sight and out of the layout. */
1448
+ .cpds-visually-hidden {
1449
+ position: absolute;
1450
+ width: var(--border-width);
1451
+ height: var(--border-width);
1452
+ overflow: hidden;
1453
+ clip-path: inset(50%);
1454
+ white-space: nowrap;
1455
+ }
1456
+ .cpds-status-dot {
1457
+ display: inline-block;
1458
+ flex-shrink: 0;
1459
+ box-sizing: border-box;
1460
+ width: var(--size-indicator);
1461
+ height: var(--size-indicator);
1462
+ border: var(--border-width-strong) solid transparent;
1463
+ border-radius: var(--radius-pill);
1464
+ vertical-align: middle;
1465
+ }
1466
+
1467
+ .cpds-status-dot--info {
1468
+ background-color: var(--color-info-indicator);
1469
+ }
1470
+
1471
+ .cpds-status-dot--queued {
1472
+ border-color: var(--color-queued-indicator);
1473
+ background-color: var(--color-queued-bg);
1474
+ }
1475
+
1476
+ .cpds-status-dot--waiting {
1477
+ background-color: var(--color-waiting-indicator);
1478
+ }
1479
+
1480
+ .cpds-status-dot--success {
1481
+ background-color: var(--color-success-indicator);
1482
+ }
1483
+
1484
+ .cpds-status-dot--danger {
1485
+ background-color: var(--color-danger-border);
1486
+ }
1487
+
1488
+ .cpds-status-dot--neutral {
1489
+ border-color: var(--color-text-muted);
1490
+ background-color: transparent;
1491
+ }
1492
+
1493
+ .cpds-status-dot--inactive {
1494
+ border-style: var(--border-style-inactive);
1495
+ border-color: var(--color-border-control);
1496
+ background-color: transparent;
1497
+ }
1498
+
1499
+ .cpds-progress {
1500
+ display: inline-flex;
1501
+ align-items: center;
1502
+ gap: var(--space-1-5);
1503
+ color: var(--color-text-muted);
1504
+ font-size: var(--font-size-xs);
1505
+ font-variant-numeric: tabular-nums;
1506
+ line-height: var(--line-height-control);
1507
+ white-space: nowrap;
1508
+ }
1509
+
1510
+ .cpds-progress__track {
1511
+ display: block;
1512
+ flex-shrink: 0;
1513
+ width: var(--size-progress);
1514
+ height: var(--space-1);
1515
+ overflow: hidden;
1516
+ border-radius: var(--radius-pill);
1517
+ background-color: var(--color-border-subtle);
1518
+ }
1519
+
1520
+ .cpds-progress__fill {
1521
+ display: block;
1522
+ width: calc(var(--cpds-progress-ratio) * 100%);
1523
+ height: 100%;
1524
+ border-radius: var(--radius-pill);
1525
+ background-color: var(--color-info-indicator);
1526
+ transition:
1527
+ width var(--duration-slow) var(--easing-standard),
1528
+ background-color var(--duration-moderate) var(--easing-standard);
1529
+ }
1530
+
1531
+ /* Reaching complete, the color waits for the fill to arrive; going back, it returns with the slide. */
1532
+ .cpds-progress[data-complete] .cpds-progress__fill {
1533
+ background-color: var(--color-success-indicator);
1534
+ transition:
1535
+ width var(--duration-slow) var(--easing-standard),
1536
+ background-color var(--duration-moderate) var(--easing-standard) var(--duration-slow);
1537
+ }
1538
+
1539
+ .cpds-progress[data-complete] .cpds-progress__track {
1540
+ animation: cpds-progress-glow calc(var(--duration-slow) * 2) var(--easing-standard) var(--duration-slow);
1541
+ }
1542
+
1543
+ @keyframes cpds-progress-glow {
1544
+ 40% {
1545
+ box-shadow: 0 0 0 var(--space-1) var(--color-success-bg);
1546
+ }
1547
+ }
1548
+
1549
+ .cpds-filter-chip {
1550
+ display: inline-flex;
1551
+ align-items: center;
1552
+ gap: var(--space-1-5);
1553
+ margin: 0;
1554
+ padding: var(--space-1) var(--space-2-5);
1555
+ border: var(--border-width) solid var(--color-border);
1556
+ border-radius: var(--radius-pill);
1557
+ font-family: inherit;
1558
+ font-size: var(--font-size-sm);
1559
+ line-height: var(--line-height-control);
1560
+ white-space: nowrap;
1561
+ cursor: pointer;
1562
+ transition-property: color, background-color, border-color;
1563
+ transition-duration: var(--duration-fast);
1564
+ transition-timing-function: var(--easing-standard);
1565
+ }
1566
+
1567
+ /* Off: outlined on the surface. On: the tone class gives the background and the text. */
1568
+ .cpds-filter-chip[aria-pressed="false"] {
1569
+ background-color: var(--color-surface);
1570
+ color: var(--color-text-secondary);
1571
+ }
1572
+
1573
+ .cpds-filter-chip[aria-pressed="false"]:hover {
1574
+ border-color: var(--color-border-strong);
1575
+ }
1576
+
1577
+ .cpds-filter-chip[aria-pressed="true"] {
1578
+ border-color: transparent;
1579
+ }
1580
+
1581
+ .cpds-filter-chip:focus-visible {
1582
+ outline: var(--focus-ring-width) solid var(--color-focus);
1583
+ outline-offset: var(--focus-ring-offset);
1584
+ }
1585
+
1586
+ .cpds-filter-chip__count {
1587
+ font-family: var(--font-mono);
1588
+ font-weight: var(--font-weight-semibold);
1589
+ font-variant-numeric: tabular-nums;
1590
+ }
1591
+
1592
+ .cpds-segmented {
1593
+ position: relative;
1594
+ isolation: isolate;
1595
+ display: inline-flex;
1596
+ box-sizing: border-box;
1597
+ gap: var(--space-1);
1598
+ padding: var(--space-1);
1599
+ border: var(--border-width) solid var(--color-border-subtle);
1600
+ border-radius: var(--radius-control);
1601
+ background-color: var(--color-surface-sunken);
1602
+ }
1603
+
1604
+ .cpds-segmented--full-width {
1605
+ display: flex;
1606
+ width: 100%;
1607
+ }
1608
+
1609
+ .cpds-segmented__option {
1610
+ margin: 0;
1611
+ padding: var(--space-1-5) var(--space-3);
1612
+ border: var(--border-width) solid transparent;
1613
+ border-radius: var(--radius-control);
1614
+ background-color: transparent;
1615
+ color: var(--color-text-secondary);
1616
+ font-family: inherit;
1617
+ font-size: var(--font-size-sm);
1618
+ font-weight: var(--font-weight-medium);
1619
+ line-height: var(--line-height-control);
1620
+ white-space: nowrap;
1621
+ cursor: pointer;
1622
+ position: relative;
1623
+ transition:
1624
+ color var(--duration-fast) var(--easing-standard),
1625
+ transform var(--duration-fast) var(--easing-standard);
1626
+ }
1627
+
1628
+ .cpds-segmented--full-width > .cpds-segmented__option {
1629
+ flex: 1 1 0;
1630
+ min-width: 0;
1631
+ overflow: hidden;
1632
+ text-align: center;
1633
+ text-overflow: ellipsis;
1634
+ }
1635
+
1636
+ .cpds-segmented__option:hover {
1637
+ color: var(--color-text);
1638
+ }
1639
+
1640
+ .cpds-segmented__option:focus-visible {
1641
+ outline: var(--focus-ring-width) solid var(--color-focus);
1642
+ outline-offset: var(--focus-ring-offset);
1643
+ }
1644
+
1645
+ .cpds-segmented__option[aria-pressed="true"] {
1646
+ border-color: transparent;
1647
+ background-color: transparent;
1648
+ color: var(--color-on-accent);
1649
+ }
1650
+
1651
+ /* One accent block, drawn under the options, sits behind the selected one. */
1652
+ .cpds-segmented::before {
1653
+ position: absolute;
1654
+ top: 0;
1655
+ left: 0;
1656
+ z-index: -1;
1657
+ width: var(--cpds-indicator-w, 0);
1658
+ height: var(--cpds-indicator-h, 0);
1659
+ border-radius: var(--radius-control);
1660
+ background-color: var(--color-accent);
1661
+ content: "";
1662
+ transform: translate(var(--cpds-indicator-x, 0), var(--cpds-indicator-y, 0));
1663
+ }
1664
+
1665
+ .cpds-segmented[data-indicator-ready]::before {
1666
+ transition:
1667
+ transform var(--duration-slow) var(--easing-standard),
1668
+ width var(--duration-slow) var(--easing-standard);
1669
+ }
1670
+
1671
+ .cpds-segmented__option:active {
1672
+ transform: scale(0.96);
1673
+ }
1674
+
1675
+ .cpds-tabs {
1676
+ display: flex;
1677
+ flex-direction: column;
1678
+ min-width: 0;
1679
+ }
1680
+
1681
+ .cpds-tabs__list {
1682
+ display: flex;
1683
+ gap: var(--space-1);
1684
+ position: relative;
1685
+ overflow-x: auto;
1686
+ border-bottom: var(--border-width) solid var(--color-border-subtle);
1687
+ }
1688
+
1689
+ /* Every tab keeps one box whatever is selected: the selected one only changes its colors. */
1690
+ .cpds-tabs__tab {
1691
+ flex: 1 1 0;
1692
+ min-width: 0;
1693
+ margin: 0;
1694
+ padding: var(--space-2) var(--space-3);
1695
+ border: 0;
1696
+ border-bottom: var(--border-width-strong) solid transparent;
1697
+ border-radius: var(--radius-control) var(--radius-control) 0 0;
1698
+ background-color: transparent;
1699
+ color: var(--color-text-secondary);
1700
+ font-family: inherit;
1701
+ font-size: var(--font-size-md);
1702
+ font-weight: var(--font-weight-medium);
1703
+ line-height: var(--line-height-control);
1704
+ text-align: center;
1705
+ white-space: nowrap;
1706
+ cursor: pointer;
1707
+ transition: color var(--duration-fast) var(--easing-standard);
1708
+ }
1709
+
1710
+ .cpds-tabs__tab:hover {
1711
+ color: var(--color-text);
1712
+ }
1713
+
1714
+ .cpds-tabs__tab:focus-visible {
1715
+ outline: var(--focus-ring-width) solid var(--color-focus);
1716
+ outline-offset: calc(var(--focus-ring-width) * -1);
1717
+ }
1718
+
1719
+ /* The selected tab's own underline stays transparent: the list's one underline is drawn under it. */
1720
+ .cpds-tabs__tab[aria-selected="true"] {
1721
+ color: var(--color-accent-text);
1722
+ }
1723
+
1724
+ /* The panels share one cell: the tallest sets its height, only the selected one shows. */
1725
+ .cpds-tabs__panels {
1726
+ display: grid;
1727
+ }
1728
+
1729
+ .cpds-tabs__panel {
1730
+ grid-area: 1 / 1;
1731
+ min-width: 0;
1732
+ visibility: hidden;
1733
+ }
1734
+
1735
+ /* inherit, never visible: a visible descendant would show through a hidden ancestor. */
1736
+ .cpds-tabs__panel[data-active] {
1737
+ visibility: inherit;
1738
+ }
1739
+
1740
+ /* One underline, placed by useIndicator, slides to the selected tab; it sits there at once until the list is ready. */
1741
+ .cpds-tabs__list::after {
1742
+ position: absolute;
1743
+ bottom: 0;
1744
+ left: 0;
1745
+ width: var(--cpds-indicator-w, 0);
1746
+ height: var(--border-width-strong);
1747
+ background-color: var(--color-accent);
1748
+ content: "";
1749
+ transform: translateX(var(--cpds-indicator-x, 0));
1750
+ }
1751
+
1752
+ .cpds-tabs__list[data-indicator-ready]::after {
1753
+ transition:
1754
+ transform var(--duration-moderate) var(--easing-standard),
1755
+ width var(--duration-moderate) var(--easing-standard);
1756
+ }
1757
+
1758
+ /* The leaving panel fades out, then turns hidden; the coming one shows at once and fades in. */
1759
+ .cpds-tabs__panel {
1760
+ opacity: 0;
1761
+ transition:
1762
+ opacity var(--duration-fast) var(--easing-standard),
1763
+ visibility 0s linear var(--duration-fast);
1764
+ }
1765
+
1766
+ .cpds-tabs__panel[data-active] {
1767
+ opacity: 1;
1768
+ transition:
1769
+ opacity var(--duration-fast) var(--easing-standard),
1770
+ visibility 0s;
1771
+ }
1772
+
1773
+ /* Fills what its container gives it and scrolls beyond; in a flex or grid column, it takes the space left. */
1774
+ .cpds-scroll-area {
1775
+ flex: 1 1 auto;
1776
+ min-width: 0;
1777
+ min-height: 0;
1778
+ max-height: 100%;
1779
+ overscroll-behavior: contain;
1780
+ scrollbar-color: var(--color-border-strong) transparent;
1781
+ scrollbar-width: thin;
1782
+ }
1783
+
1784
+ .cpds-scroll-area--vertical {
1785
+ overflow: hidden auto;
1786
+ }
1787
+
1788
+ .cpds-scroll-area--horizontal {
1789
+ overflow: auto hidden;
1790
+ }
1791
+
1792
+ .cpds-scroll-area--both {
1793
+ overflow: auto;
1794
+ }
1795
+
1796
+ .cpds-scroll-area:focus-visible {
1797
+ outline: var(--focus-ring-width) solid var(--color-focus);
1798
+ outline-offset: calc(var(--focus-ring-width) * -1);
1799
+ }
1800
+
1801
+ .cpds-pill-button {
1802
+ display: inline-flex;
1803
+ flex-shrink: 0;
1804
+ align-items: center;
1805
+ gap: var(--space-1);
1806
+ margin: 0;
1807
+ padding: var(--space-1) var(--space-2);
1808
+ border: var(--border-width) solid transparent;
1809
+ border-radius: var(--radius-pill);
1810
+ font-family: inherit;
1811
+ font-size: var(--font-size-xs);
1812
+ font-weight: var(--font-weight-semibold);
1813
+ font-variant-numeric: tabular-nums;
1814
+ line-height: var(--line-height-control);
1815
+ white-space: nowrap;
1816
+ cursor: pointer;
1817
+ }
1818
+
1819
+ /* The outline stays out of the list: the focus ring appears at once. */
1820
+ .cpds-pill-button {
1821
+ transition-property: background-color, border-color, color, filter, transform;
1822
+ transition-duration: var(--duration-fast);
1823
+ transition-timing-function: var(--easing-standard);
1824
+ }
1825
+
1826
+ .cpds-pill-button:active:not(:disabled) {
1827
+ transform: scale(0.98);
1828
+ }
1829
+
1830
+ .cpds-pill-button:focus-visible {
1831
+ outline: var(--focus-ring-width) solid var(--color-focus);
1832
+ outline-offset: var(--focus-ring-offset);
1833
+ }
1834
+
1835
+ .cpds-pill-button--outline {
1836
+ background-color: var(--color-surface);
1837
+ }
1838
+
1839
+ .cpds-pill-button--outline:hover {
1840
+ background-color: var(--color-surface-sunken);
1841
+ }
1842
+
1843
+ .cpds-pill-button--tinted:hover {
1844
+ filter: brightness(0.96);
1845
+ }
1846
+
1847
+ .cpds-pill-button-tone--neutral {
1848
+ border-color: var(--color-border-strong);
1849
+ }
1850
+
1851
+ .cpds-pill-button--outline.cpds-pill-button-tone--neutral {
1852
+ color: var(--color-text-secondary);
1853
+ }
1854
+
1855
+ .cpds-pill-button-tone--info,
1856
+ .cpds-pill-button-tone--accent {
1857
+ border-color: var(--color-accent-border);
1858
+ }
1859
+
1860
+ .cpds-pill-button--outline.cpds-pill-button-tone--info {
1861
+ color: var(--color-info-text);
1862
+ }
1863
+
1864
+ .cpds-pill-button--outline.cpds-pill-button-tone--accent {
1865
+ color: var(--color-accent-text);
1866
+ }
1867
+
1868
+ .cpds-pill-button-tone--queued {
1869
+ border-color: var(--color-queued-indicator);
1870
+ }
1871
+
1872
+ .cpds-pill-button--outline.cpds-pill-button-tone--queued {
1873
+ color: var(--color-queued-text);
1874
+ }
1875
+
1876
+ .cpds-pill-button-tone--waiting {
1877
+ border-color: var(--color-waiting-indicator);
1878
+ }
1879
+
1880
+ .cpds-pill-button--outline.cpds-pill-button-tone--waiting {
1881
+ color: var(--color-waiting-text);
1882
+ }
1883
+
1884
+ .cpds-pill-button-tone--success {
1885
+ border-color: var(--color-success-indicator);
1886
+ }
1887
+
1888
+ .cpds-pill-button--outline.cpds-pill-button-tone--success {
1889
+ color: var(--color-success-text);
1890
+ }
1891
+
1892
+ .cpds-pill-button-tone--danger {
1893
+ border-color: var(--color-danger-border);
1894
+ }
1895
+
1896
+ .cpds-pill-button--outline.cpds-pill-button-tone--danger {
1897
+ color: var(--color-danger-text);
1898
+ }
1899
+
1900
+ .cpds-change-bar {
1901
+ display: inline-flex;
1902
+ flex-shrink: 0;
1903
+ gap: var(--border-width-strong);
1904
+ }
1905
+
1906
+ .cpds-change-bar__cell {
1907
+ width: var(--size-indicator);
1908
+ height: var(--size-indicator);
1909
+ background-color: var(--color-border);
1910
+ }
1911
+
1912
+ .cpds-change-bar__cell[data-change="added"] {
1913
+ background-color: var(--color-success-indicator);
1914
+ }
1915
+
1916
+ .cpds-change-bar__cell[data-change="removed"] {
1917
+ background-color: var(--color-danger-border);
1918
+ }
1919
+
1920
+ .cpds-truncated-path {
1921
+ display: flex;
1922
+ min-width: 0;
1923
+ font-family: var(--font-mono);
1924
+ font-size: var(--font-size-sm);
1925
+ white-space: nowrap;
1926
+ }
1927
+
1928
+ /* The directory gives way first; the file name is cut only once the directory is gone. */
1929
+ .cpds-truncated-path__directory {
1930
+ flex: 0 1 auto;
1931
+ min-width: 0;
1932
+ overflow: hidden;
1933
+ color: var(--color-text-muted);
1934
+ text-overflow: ellipsis;
1935
+ }
1936
+
1937
+ .cpds-truncated-path__name {
1938
+ flex: 0 0 auto;
1939
+ max-width: 100%;
1940
+ overflow: hidden;
1941
+ font-weight: var(--font-weight-medium);
1942
+ text-overflow: ellipsis;
1943
+ }
1944
+
1945
+ /*
1946
+ * The one reduced-motion rule of the package: moves, size changes, opacity fades and loops stop; color changes keep
1947
+ * fading over their usual duration. What appears or disappears does so at once. Imported after every component, so
1948
+ * that it outranks their rules of the same weight.
1949
+ */
1950
+ @media (prefers-reduced-motion: reduce) {
1951
+ :is(.cpds-button, .cpds-icon-button, .cpds-pill-button) {
1952
+ transition-property: background-color, border-color, color, filter;
1953
+ }
1954
+
1955
+ :is(.cpds-button, .cpds-icon-button, .cpds-pill-button):active:not(:disabled),
1956
+ .cpds-segmented__option:active {
1957
+ transform: none;
1958
+ }
1959
+
1960
+ .cpds-segmented__option {
1961
+ transition-property: color;
1962
+ }
1963
+
1964
+ .cpds-choice__input {
1965
+ transition-property: background-color, border-color;
1966
+ }
1967
+
1968
+ .cpds-button__lead,
1969
+ .cpds-segmented[data-indicator-ready]::before,
1970
+ .cpds-tabs__list[data-indicator-ready]::after,
1971
+ .cpds-tabs__panel,
1972
+ .cpds-tabs__panel[data-active],
1973
+ .cpds-choice__input[type]::before,
1974
+ .cpds-choice__input[type]:checked::before,
1975
+ .cpds-collapsible__chevron,
1976
+ .cpds-collapsible--row > .cpds-collapsible__content,
1977
+ .cpds-collapsible--row > .cpds-collapsible__content > .cpds-collapsible__inner,
1978
+ .cpds-collapsible--row[data-expanded="true"] > .cpds-collapsible__content > .cpds-collapsible__inner {
1979
+ transition: none;
1980
+ }
1981
+
1982
+ .cpds-collapsible--row > .cpds-collapsible__content > .cpds-collapsible__inner > *,
1983
+ .cpds-collapsible--row[data-expanded="true"] > .cpds-collapsible__content > .cpds-collapsible__inner > * {
1984
+ transform: none;
1985
+ transition: none;
1986
+ }
1987
+
1988
+ .cpds-collapsible--card > .cpds-collapsible__content {
1989
+ transition: border-top-color var(--duration-slow) var(--easing-standard);
1990
+ }
1991
+
1992
+ .cpds-progress .cpds-progress__fill,
1993
+ .cpds-progress[data-complete] .cpds-progress__fill {
1994
+ transition: background-color var(--duration-moderate) var(--easing-standard);
1995
+ }
1996
+
1997
+ .cpds-button__spinner,
1998
+ .cpds-choice__input:checked,
1999
+ .cpds-choice__input[type]:checked::before,
2000
+ .cpds-progress[data-complete] .cpds-progress__track,
2001
+ .cpds-banner,
2002
+ .cpds-banner[data-leaving],
2003
+ .cpds-field__error,
2004
+ .cpds-field__error--leaving,
2005
+ .cpds-live--live .cpds-live__dot,
2006
+ .cpds-pulse-a,
2007
+ .cpds-pulse-b {
2008
+ animation: none;
2009
+ }
2010
+ }