hydrateless 0.2.0 → 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.
@@ -1,125 +1,454 @@
1
+ @layer reset, tokens, theme, components;
1
2
 
2
-
3
- @keyframes hl-drawer-in {
4
- from {
5
- transform: translateX(100%);
6
- }
7
- to {
8
- transform: translateX(0%);
9
- }
10
- }
11
-
12
- @keyframes hl-toast-in {
13
- from {
14
- opacity: 0;
15
- transform: translateY(0.5rem);
16
- }
17
- to {
18
- opacity: 1;
19
- transform: translateY(0);
20
- }
21
- }*,
3
+ @layer reset {
4
+ *,
22
5
  *::before,
23
6
  *::after {
24
7
  box-sizing: border-box;
25
- }* {
8
+ }
9
+
10
+ * {
26
11
  margin: 0;
27
- }html:focus-within {
12
+ }
13
+
14
+ html:focus-within {
28
15
  scroll-behavior: smooth;
29
- }html,
16
+ }
17
+
18
+ @media (prefers-reduced-motion: reduce) {
19
+ html:focus-within {
20
+ scroll-behavior: auto;
21
+ }
22
+ }
23
+
24
+ html,
30
25
  body {
31
26
  height: 100%;
32
- }body {
27
+ }
28
+
29
+ body {
33
30
  line-height: 1.5;
34
31
  -webkit-font-smoothing: antialiased;
35
- }img,
32
+ }
33
+
34
+ img,
36
35
  picture,
37
36
  video,
38
37
  canvas,
39
38
  svg {
40
39
  display: block;
41
40
  max-width: 100%;
42
- }input,
41
+ }
42
+
43
+ input,
43
44
  button,
44
45
  textarea,
45
46
  select {
46
47
  font: inherit;
47
- }button {
48
- cursor: pointer;
49
48
  }
50
49
 
51
- :root:not(#\#) {
52
- --hl-color-bg: hsl(0, 0%, 100%);
53
- --hl-color-fg: hsl(222, 47%, 11%);
54
- --hl-color-muted: hsl(220, 14%, 96%);
55
- --hl-color-accent: hsl(221, 75%, 55%);
56
-
57
- --hl-radius-2: 0.25rem;
58
- --hl-radius-3: 0.5rem;
59
-
60
- --hl-spacing-1: 0.25rem;
61
- --hl-spacing-2: 0.5rem;
62
- --hl-spacing-3: 0.75rem;
63
- --hl-spacing-4: 1rem;
50
+ button {
51
+ cursor: pointer;
52
+ }
53
+ }
64
54
 
65
- --hl-focus-ring: 2px solid hsl(221, 80%, 55%);
55
+ /**
56
+ * Raw color ramps. These are the only place literal colors live; everything
57
+ * else references them through the semantic tokens. Ramps follow the familiar
58
+ * 50 (lightest) → 950 (darkest) scale.
59
+ */
60
+
61
+ @layer tokens {
62
+ :root {
63
+ /* Neutral / gray */
64
+ --hl-gray-50: hsl(210, 40%, 98%);
65
+ --hl-gray-100: hsl(210, 40%, 96%);
66
+ --hl-gray-200: hsl(214, 32%, 91%);
67
+ --hl-gray-300: hsl(213, 27%, 84%);
68
+ --hl-gray-400: hsl(215, 20%, 65%);
69
+ --hl-gray-500: hsl(215, 16%, 47%);
70
+ --hl-gray-600: hsl(215, 19%, 35%);
71
+ --hl-gray-700: hsl(215, 25%, 27%);
72
+ --hl-gray-800: hsl(217, 33%, 17%);
73
+ --hl-gray-900: hsl(222, 47%, 11%);
74
+ --hl-gray-950: hsl(229, 41%, 8%);
75
+
76
+ /* Brand / primary (blue) */
77
+ --hl-brand-50: hsl(214, 100%, 97%);
78
+ --hl-brand-100: hsl(214, 95%, 93%);
79
+ --hl-brand-200: hsl(213, 97%, 87%);
80
+ --hl-brand-300: hsl(212, 96%, 78%);
81
+ --hl-brand-400: hsl(213, 94%, 68%);
82
+ --hl-brand-500: hsl(217, 91%, 60%);
83
+ --hl-brand-600: hsl(221, 83%, 53%);
84
+ --hl-brand-700: hsl(224, 76%, 48%);
85
+ --hl-brand-800: hsl(226, 71%, 40%);
86
+ --hl-brand-900: hsl(224, 64%, 33%);
87
+ --hl-brand-950: hsl(226, 57%, 21%);
88
+
89
+ /* Danger (red) */
90
+ --hl-red-50: hsl(0, 86%, 97%);
91
+ --hl-red-100: hsl(0, 93%, 94%);
92
+ --hl-red-200: hsl(0, 96%, 89%);
93
+ --hl-red-300: hsl(0, 94%, 82%);
94
+ --hl-red-400: hsl(0, 91%, 71%);
95
+ --hl-red-500: hsl(0, 84%, 60%);
96
+ --hl-red-600: hsl(0, 72%, 51%);
97
+ --hl-red-700: hsl(0, 74%, 42%);
98
+ --hl-red-800: hsl(0, 70%, 35%);
99
+ --hl-red-900: hsl(0, 63%, 31%);
100
+ --hl-red-950: hsl(0, 75%, 15%);
101
+
102
+ /* Warning (amber) */
103
+ --hl-amber-50: hsl(48, 100%, 96%);
104
+ --hl-amber-100: hsl(48, 96%, 89%);
105
+ --hl-amber-200: hsl(48, 97%, 77%);
106
+ --hl-amber-300: hsl(46, 97%, 65%);
107
+ --hl-amber-400: hsl(43, 96%, 56%);
108
+ --hl-amber-500: hsl(38, 92%, 50%);
109
+ --hl-amber-600: hsl(32, 95%, 44%);
110
+ --hl-amber-700: hsl(26, 90%, 37%);
111
+ --hl-amber-800: hsl(23, 83%, 31%);
112
+ --hl-amber-900: hsl(22, 78%, 26%);
113
+ --hl-amber-950: hsl(21, 92%, 14%);
114
+
115
+ /* Success (green) */
116
+ --hl-green-50: hsl(138, 76%, 97%);
117
+ --hl-green-100: hsl(141, 84%, 93%);
118
+ --hl-green-200: hsl(141, 79%, 85%);
119
+ --hl-green-300: hsl(142, 77%, 73%);
120
+ --hl-green-400: hsl(142, 69%, 58%);
121
+ --hl-green-500: hsl(142, 71%, 45%);
122
+ --hl-green-600: hsl(142, 76%, 36%);
123
+ --hl-green-700: hsl(142, 72%, 29%);
124
+ --hl-green-800: hsl(143, 64%, 24%);
125
+ --hl-green-900: hsl(144, 61%, 20%);
126
+ --hl-green-950: hsl(145, 80%, 10%);
127
+
128
+ /* Info (sky) */
129
+ --hl-sky-50: hsl(204, 100%, 97%);
130
+ --hl-sky-100: hsl(204, 94%, 94%);
131
+ --hl-sky-200: hsl(201, 94%, 86%);
132
+ --hl-sky-300: hsl(199, 95%, 74%);
133
+ --hl-sky-400: hsl(198, 93%, 60%);
134
+ --hl-sky-500: hsl(199, 89%, 48%);
135
+ --hl-sky-600: hsl(200, 98%, 39%);
136
+ --hl-sky-700: hsl(201, 96%, 32%);
137
+ --hl-sky-800: hsl(201, 90%, 27%);
138
+ --hl-sky-900: hsl(202, 80%, 24%);
139
+ --hl-sky-950: hsl(202, 80%, 16%);
66
140
  }
141
+ }
67
142
 
68
- @media (prefers-color-scheme: dark) {
69
- :root:not(#\#) {
70
- --hl-color-bg: hsl(222, 47%, 11%);
71
- --hl-color-fg: hsl(210, 40%, 98%);
72
- --hl-color-muted: hsl(223, 20%, 17%);
73
- --hl-color-accent: hsl(221, 80%, 65%);
74
- --hl-focus-ring: 2px solid hsl(221, 85%, 65%);
143
+ /**
144
+ * Non-color design scales: spacing, radii, typography, elevation, z-index, and
145
+ * motion. These are theme-independent and rarely overridden per component.
146
+ */
147
+
148
+ @layer tokens {
149
+ :root {
150
+ /* Spacing scale (rem) */
151
+ --hl-space-0: 0;
152
+ --hl-space-px: 1px;
153
+ --hl-space-0-5: 0.125rem;
154
+ --hl-space-1: 0.25rem;
155
+ --hl-space-1-5: 0.375rem;
156
+ --hl-space-2: 0.5rem;
157
+ --hl-space-3: 0.75rem;
158
+ --hl-space-4: 1rem;
159
+ --hl-space-5: 1.25rem;
160
+ --hl-space-6: 1.5rem;
161
+ --hl-space-8: 2rem;
162
+ --hl-space-10: 2.5rem;
163
+ --hl-space-12: 3rem;
164
+ --hl-space-16: 4rem;
165
+ --hl-space-20: 5rem;
166
+ --hl-space-24: 6rem;
167
+
168
+ /* Border radii */
169
+ --hl-radius-xs: 0.125rem;
170
+ --hl-radius-sm: 0.25rem;
171
+ --hl-radius-md: 0.375rem;
172
+ --hl-radius-lg: 0.5rem;
173
+ --hl-radius-xl: 0.75rem;
174
+ --hl-radius-2xl: 1rem;
175
+ --hl-radius-full: 9999px;
176
+
177
+ /* Border widths */
178
+ --hl-border-width: 1px;
179
+ --hl-border-width-2: 2px;
180
+
181
+ /* Typography */
182
+ --hl-font-sans:
183
+ ui-sans-serif,system-ui,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, -apple-system, 'Segoe UI', roboto, helvetica, arial, sans-serif,
184
+ 'Apple Color Emoji', 'Segoe UI Emoji';
185
+ --hl-font-mono:
186
+ ui-monospace, sfmono-regular, 'SF Mono', menlo, consolas, 'Liberation Mono', monospace;
187
+ --hl-text-xs: 0.75rem;
188
+ --hl-text-sm: 0.875rem;
189
+ --hl-text-base: 1rem;
190
+ --hl-text-lg: 1.125rem;
191
+ --hl-text-xl: 1.25rem;
192
+ --hl-text-2xl: 1.5rem;
193
+ --hl-text-3xl: 1.875rem;
194
+ --hl-text-4xl: 2.25rem;
195
+ --hl-leading-tight: 1.25;
196
+ --hl-leading-normal: 1.5;
197
+ --hl-leading-relaxed: 1.75;
198
+ --hl-font-normal: 400;
199
+ --hl-font-medium: 500;
200
+ --hl-font-semibold: 600;
201
+ --hl-font-bold: 700;
202
+
203
+ /* Elevation (shadows) — tuned for light surfaces */
204
+ --hl-shadow-xs: 0 1px 2px 0 hsla(222, 47%, 11%, 0.05);
205
+ --hl-shadow-sm: 0 1px 3px 0 hsla(222, 47%, 11%, 0.1), 0 1px 2px -1px hsla(222, 47%, 11%, 0.1);
206
+ --hl-shadow-md:
207
+ 0 4px 6px -1px hsla(222, 47%, 11%, 0.1), 0 2px 4px -2px hsla(222, 47%, 11%, 0.1);
208
+ --hl-shadow-lg:
209
+ 0 10px 15px -3px hsla(222, 47%, 11%, 0.1), 0 4px 6px -4px hsla(222, 47%, 11%, 0.1);
210
+ --hl-shadow-xl:
211
+ 0 20px 25px -5px hsla(222, 47%, 11%, 0.1), 0 8px 10px -6px hsla(222, 47%, 11%, 0.1);
212
+
213
+ /* Control sizing */
214
+ --hl-control-height-sm: 2rem;
215
+ --hl-control-height-md: 2.5rem;
216
+ --hl-control-height-lg: 3rem;
217
+
218
+ /* Z-index scale */
219
+ --hl-z-base: 0;
220
+ --hl-z-dropdown: 1000;
221
+ --hl-z-sticky: 1100;
222
+ --hl-z-drawer: 1200;
223
+ --hl-z-modal: 1300;
224
+ --hl-z-popover: 1400;
225
+ --hl-z-toast: 1500;
226
+ --hl-z-tooltip: 1600;
227
+
228
+ /* Motion */
229
+ --hl-duration-fast: 120ms;
230
+ --hl-duration-base: 180ms;
231
+ --hl-duration-slow: 280ms;
232
+ --hl-ease-standard: cubic-bezier(0.2, 0, 0, 1);
233
+ --hl-ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
234
+ }
235
+
236
+ @media (prefers-reduced-motion: reduce) {
237
+ :root {
238
+ --hl-duration-fast: 0ms;
239
+ --hl-duration-base: 0ms;
240
+ --hl-duration-slow: 0ms;
75
241
  }
76
242
  }
243
+ }
77
244
 
78
- [data-theme='light']:not(#\#) {
79
- --hl-color-bg: hsl(0, 0%, 100%);
80
- --hl-color-fg: hsl(222, 47%, 11%);
81
- --hl-color-muted: hsl(220, 14%, 96%);
82
- --hl-color-accent: hsl(221, 75%, 55%);
83
- --hl-focus-ring: 2px solid hsl(221, 80%, 55%);
245
+ /**
246
+ * Semantic tokens map the raw palette to roles (surface, text, border, intent
247
+ * colors). Components reference only these, so theming and dark mode are a
248
+ * matter of remapping a couple dozen variables — never touching component CSS.
249
+ *
250
+ * Light is the default in `:root`. Dark applies automatically via
251
+ * `prefers-color-scheme` (unless `[data-theme="light"]` opts out) and always
252
+ * via `[data-theme="dark"]`.
253
+ */
254
+
255
+ @layer tokens {
256
+ :root {
257
+ --hl-bg: var(--hl-gray-50);
258
+ --hl-surface: hsl(0, 0%, 100%);
259
+ --hl-surface-2: var(--hl-gray-100);
260
+ --hl-surface-3: var(--hl-gray-200);
261
+ --hl-fg: var(--hl-gray-900);
262
+ --hl-fg-muted: var(--hl-gray-600);
263
+ --hl-fg-subtle: var(--hl-gray-500);
264
+ --hl-border: var(--hl-gray-200);
265
+ --hl-border-strong: var(--hl-gray-300);
266
+ --hl-ring: var(--hl-brand-500);
267
+ --hl-focus-ring: var(--hl-border-width-2) solid var(--hl-ring);
268
+ --hl-primary: var(--hl-brand-600);
269
+ --hl-primary-hover: var(--hl-brand-700);
270
+ --hl-primary-active: var(--hl-brand-800);
271
+ --hl-primary-fg: hsl(0, 0%, 100%);
272
+ --hl-primary-subtle: var(--hl-brand-50);
273
+ --hl-primary-subtle-fg: var(--hl-brand-700);
274
+ --hl-danger: var(--hl-red-600);
275
+ --hl-danger-hover: var(--hl-red-700);
276
+ --hl-danger-fg: hsl(0, 0%, 100%);
277
+ --hl-danger-subtle: var(--hl-red-50);
278
+ --hl-danger-subtle-fg: var(--hl-red-700);
279
+ --hl-success: var(--hl-green-600);
280
+ --hl-success-hover: var(--hl-green-700);
281
+ --hl-success-fg: hsl(0, 0%, 100%);
282
+ --hl-success-subtle: var(--hl-green-50);
283
+ --hl-success-subtle-fg: var(--hl-green-700);
284
+ --hl-warning: var(--hl-amber-500);
285
+ --hl-warning-hover: var(--hl-amber-600);
286
+ --hl-warning-fg: var(--hl-gray-950);
287
+ --hl-warning-subtle: var(--hl-amber-50);
288
+ --hl-warning-subtle-fg: var(--hl-amber-800);
289
+ --hl-info: var(--hl-sky-600);
290
+ --hl-info-hover: var(--hl-sky-700);
291
+ --hl-info-fg: hsl(0, 0%, 100%);
292
+ --hl-info-subtle: var(--hl-sky-50);
293
+ --hl-info-subtle-fg: var(--hl-sky-700);
294
+ --hl-scrim: hsla(222, 47%, 11%, 0.5);
295
+ --hl-overlay: var(--hl-surface);
296
+ --hl-overlay-shadow: var(--hl-shadow-lg);
297
+
298
+ /* Component-facing aliases — a single mapping onto the tokens above so every
299
+ component (old and new) themes and dark-modes from one source of truth. */
300
+ --hl-color-bg: var(--hl-surface);
301
+ --hl-color-fg: var(--hl-fg);
302
+ --hl-color-muted: var(--hl-surface-2);
303
+ --hl-color-accent: var(--hl-primary);
304
+ --hl-radius-2: var(--hl-radius-sm);
305
+ --hl-radius-3: var(--hl-radius-lg);
306
+ --hl-spacing-1: var(--hl-space-1);
307
+ --hl-spacing-2: var(--hl-space-2);
308
+ --hl-spacing-3: var(--hl-space-3);
309
+ --hl-spacing-4: var(--hl-space-4);
310
+ }
311
+
312
+ /* Dark theme values, shared by auto + manual dark. */
313
+ @media (prefers-color-scheme: dark) {
314
+ :root:not([data-theme='light']) {
315
+ --hl-bg: var(--hl-gray-950);
316
+ --hl-surface: var(--hl-gray-900);
317
+ --hl-surface-2: var(--hl-gray-800);
318
+ --hl-surface-3: var(--hl-gray-700);
319
+ --hl-fg: var(--hl-gray-50);
320
+ --hl-fg-muted: var(--hl-gray-400);
321
+ --hl-fg-subtle: var(--hl-gray-500);
322
+ --hl-border: var(--hl-gray-800);
323
+ --hl-border-strong: var(--hl-gray-700);
324
+ --hl-ring: var(--hl-brand-400);
325
+ --hl-primary: var(--hl-brand-500);
326
+ --hl-primary-hover: var(--hl-brand-400);
327
+ --hl-primary-active: var(--hl-brand-300);
328
+ --hl-primary-fg: var(--hl-gray-950);
329
+ --hl-primary-subtle: hsla(226, 57%, 21%, 0.5);
330
+ --hl-primary-subtle-fg: var(--hl-brand-200);
331
+ --hl-danger-subtle: hsla(0, 63%, 31%, 0.35);
332
+ --hl-danger-subtle-fg: var(--hl-red-200);
333
+ --hl-success-subtle: hsla(144, 61%, 20%, 0.35);
334
+ --hl-success-subtle-fg: var(--hl-green-200);
335
+ --hl-warning-subtle: hsla(22, 78%, 26%, 0.35);
336
+ --hl-warning-subtle-fg: var(--hl-amber-200);
337
+ --hl-info-subtle: hsla(202, 80%, 24%, 0.35);
338
+ --hl-info-subtle-fg: var(--hl-sky-200);
339
+ --hl-scrim: hsla(0, 0%, 0%, 0.65);
340
+ --hl-shadow-xs: 0 1px 2px 0 hsla(0, 0%, 0%, 0.3);
341
+ --hl-shadow-sm: 0 1px 3px 0 hsla(0, 0%, 0%, 0.4), 0 1px 2px -1px hsla(0, 0%, 0%, 0.4);
342
+ --hl-shadow-md: 0 4px 6px -1px hsla(0, 0%, 0%, 0.45), 0 2px 4px -2px hsla(0, 0%, 0%, 0.45);
343
+ --hl-shadow-lg: 0 10px 15px -3px hsla(0, 0%, 0%, 0.5), 0 4px 6px -4px hsla(0, 0%, 0%, 0.5);
344
+ --hl-shadow-xl:
345
+ 0 20px 25px -5px hsla(0, 0%, 0%, 0.55), 0 8px 10px -6px hsla(0, 0%, 0%, 0.55);
346
+ }
84
347
  }
85
348
 
86
- [data-theme='dark']:not(#\#) {
87
- --hl-color-bg: hsl(222, 47%, 11%);
88
- --hl-color-fg: hsl(210, 40%, 98%);
89
- --hl-color-muted: hsl(223, 20%, 17%);
90
- --hl-color-accent: hsl(221, 80%, 65%);
91
- --hl-focus-ring: 2px solid hsl(221, 85%, 65%);
349
+ [data-theme='dark'] {
350
+ --hl-bg: var(--hl-gray-950);
351
+ --hl-surface: var(--hl-gray-900);
352
+ --hl-surface-2: var(--hl-gray-800);
353
+ --hl-surface-3: var(--hl-gray-700);
354
+ --hl-fg: var(--hl-gray-50);
355
+ --hl-fg-muted: var(--hl-gray-400);
356
+ --hl-fg-subtle: var(--hl-gray-500);
357
+ --hl-border: var(--hl-gray-800);
358
+ --hl-border-strong: var(--hl-gray-700);
359
+ --hl-ring: var(--hl-brand-400);
360
+ --hl-primary: var(--hl-brand-500);
361
+ --hl-primary-hover: var(--hl-brand-400);
362
+ --hl-primary-active: var(--hl-brand-300);
363
+ --hl-primary-fg: var(--hl-gray-950);
364
+ --hl-primary-subtle: hsla(226, 57%, 21%, 0.5);
365
+ --hl-primary-subtle-fg: var(--hl-brand-200);
366
+ --hl-danger-subtle: hsla(0, 63%, 31%, 0.35);
367
+ --hl-danger-subtle-fg: var(--hl-red-200);
368
+ --hl-success-subtle: hsla(144, 61%, 20%, 0.35);
369
+ --hl-success-subtle-fg: var(--hl-green-200);
370
+ --hl-warning-subtle: hsla(22, 78%, 26%, 0.35);
371
+ --hl-warning-subtle-fg: var(--hl-amber-200);
372
+ --hl-info-subtle: hsla(202, 80%, 24%, 0.35);
373
+ --hl-info-subtle-fg: var(--hl-sky-200);
374
+ --hl-scrim: hsla(0, 0%, 0%, 0.65);
375
+ --hl-shadow-xs: 0 1px 2px 0 hsla(0, 0%, 0%, 0.3);
376
+ --hl-shadow-sm: 0 1px 3px 0 hsla(0, 0%, 0%, 0.4), 0 1px 2px -1px hsla(0, 0%, 0%, 0.4);
377
+ --hl-shadow-md: 0 4px 6px -1px hsla(0, 0%, 0%, 0.45), 0 2px 4px -2px hsla(0, 0%, 0%, 0.45);
378
+ --hl-shadow-lg: 0 10px 15px -3px hsla(0, 0%, 0%, 0.5), 0 4px 6px -4px hsla(0, 0%, 0%, 0.5);
379
+ --hl-shadow-xl: 0 20px 25px -5px hsla(0, 0%, 0%, 0.55), 0 8px 10px -6px hsla(0, 0%, 0%, 0.55);
380
+ }
381
+
382
+ /* Windows High Contrast / forced-colors: defer to system colors. */
383
+ @media (forced-colors: active) {
384
+ :root {
385
+ --hl-border: CanvasText;
386
+ --hl-border-strong: CanvasText;
387
+ --hl-ring: Highlight;
388
+ --hl-primary: Highlight;
389
+ --hl-primary-fg: Canvas;
390
+ }
92
391
  }
392
+ }
93
393
 
94
- :root:not(#\#):not(#\#) {
394
+ @layer theme {
395
+ :root {
95
396
  --csstools-color-scheme--light: initial;
96
397
  color-scheme: light dark;
97
398
  }
98
-
99
- @media (prefers-color-scheme: dark) {
100
- :root:not(#\#):not(#\#) {
399
+ @media (prefers-color-scheme: dark){
400
+ :root {
101
401
  --csstools-color-scheme--light: ;
102
402
  }
103
- }
403
+ }
104
404
 
105
- [data-theme='light']:not(#\#):not(#\#) {
405
+ [data-theme='light'] {
106
406
  --csstools-color-scheme--light: initial;
107
407
  color-scheme: light;
108
408
  }
109
409
 
110
- [data-theme='dark']:not(#\#):not(#\#) {
410
+ [data-theme='dark'] {
111
411
  --csstools-color-scheme--light: ;
112
412
  color-scheme: dark;
113
413
  }
114
414
 
115
- body:not(#\#):not(#\#) {
116
- background-color: hsl(0, 0%, 100%);
117
- background-color: var(--hl-color-bg);
415
+ body {
416
+ background-color: hsl(210, 40%, 98%);
417
+ background-color: var(--hl-bg);
118
418
  color: hsl(222, 47%, 11%);
119
- color: var(--hl-color-fg);
419
+ color: var(--hl-fg);
420
+ font-family: ui-sans-serif,system-ui,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans, -apple-system, 'Segoe UI', roboto, helvetica, arial, sans-serif,
421
+ 'Apple Color Emoji', 'Segoe UI Emoji';
422
+ font-family: var(--hl-font-sans);
423
+ font-size: 1rem;
424
+ font-size: var(--hl-text-base);
425
+ line-height: 1.5;
426
+ line-height: var(--hl-leading-normal);
427
+ -webkit-font-smoothing: antialiased;
428
+ }
429
+
430
+ ::-moz-selection {
431
+ background-color: rgba(36, 99, 235, 0.3);
432
+ }
433
+
434
+ ::selection {
435
+ background-color: rgba(36, 99, 235, 0.3);
120
436
  }
121
437
 
122
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) {
438
+ @supports (color: color-mix(in lch, red, blue)){
439
+ ::-moz-selection {
440
+ background-color: color-mix(in oklab, var(--hl-primary) 30%, transparent);
441
+ }
442
+ ::selection {
443
+ background-color: color-mix(in oklab, var(--hl-primary) 30%, transparent);
444
+ }
445
+ }
446
+ }
447
+
448
+ /* Disclosure & layout */
449
+
450
+ @layer components {
451
+ details.hydrateless-disclosure {
123
452
  border: 1px solid rgba(15, 23, 41, 0.15);
124
453
  border-radius: 0.5rem;
125
454
  border-radius: var(--hl-radius-3, 0.5rem);
@@ -127,57 +456,59 @@ details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) {
127
456
  background: var(--hl-color-bg);
128
457
  }
129
458
 
130
- @supports (color: color-mix(in lch, red, blue)) {
131
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) {
459
+ @supports (color: color-mix(in lch, red, blue)){
460
+ details.hydrateless-disclosure {
132
461
  border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
133
462
  }
134
463
  }
135
464
 
136
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > summary {
465
+ details.hydrateless-disclosure > summary {
137
466
  list-style: none;
138
467
  cursor: pointer;
139
468
  padding: 0.75rem 1rem;
140
469
  padding: var(--hl-spacing-3, 0.75rem) var(--hl-spacing-4, 1rem);
141
470
  }
142
471
 
143
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > summary::-webkit-details-marker {
472
+ details.hydrateless-disclosure > summary::-webkit-details-marker {
144
473
  display: none;
145
474
  }
146
475
 
147
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > summary:focus-visible {
148
- outline: 2px solid hsl(221, 80%, 55%);
476
+ details.hydrateless-disclosure > summary:focus-visible {
477
+ outline: 2px solid hsl(217, 91%, 60%);
149
478
  outline: var(--hl-focus-ring, 2px solid #1f6feb);
150
479
  outline-offset: 2px;
151
480
  }
152
481
 
153
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > summary::after {
482
+ details.hydrateless-disclosure > summary::after {
154
483
  content: '\25B8';
155
484
  float: right;
156
485
  transition: transform 150ms ease;
157
486
  }
158
487
 
159
- details.hydrateless-disclosure[open]:not(#\#):not(#\#):not(#\#) > summary::after {
488
+ details.hydrateless-disclosure[open] > summary::after {
160
489
  transform: rotate(90deg);
161
490
  }
162
491
 
163
- details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > .disclosure-panel {
492
+ details.hydrateless-disclosure > .disclosure-panel {
164
493
  padding: 0.75rem 1rem 1rem;
165
494
  padding: var(--hl-spacing-3, 0.75rem) var(--hl-spacing-4, 1rem) var(--hl-spacing-4, 1rem);
166
495
  }
496
+ }
167
497
 
168
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) {
498
+ @layer components {
499
+ [data-hl-tabs] {
169
500
  border: 1px solid rgba(15, 23, 41, 0.15);
170
501
  border-radius: 0.5rem;
171
502
  border-radius: var(--hl-radius-3, 0.5rem);
172
503
  }
173
504
 
174
- @supports (color: color-mix(in lch, red, blue)) {
175
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) {
505
+ @supports (color: color-mix(in lch, red, blue)){
506
+ [data-hl-tabs] {
176
507
  border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
177
508
  }
178
509
  }
179
510
 
180
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) [role='tablist'] {
511
+ [data-hl-tabs] [role='tablist'] {
181
512
  display: flex;
182
513
  gap: 0.5rem;
183
514
  gap: var(--hl-spacing-2, 0.5rem);
@@ -186,13 +517,13 @@ details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > .disclosure-panel {
186
517
  border-bottom: 1px solid rgba(15, 23, 41, 0.12);
187
518
  }
188
519
 
189
- @supports (color: color-mix(in lch, red, blue)) {
190
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) [role='tablist'] {
520
+ @supports (color: color-mix(in lch, red, blue)){
521
+ [data-hl-tabs] [role='tablist'] {
191
522
  border-bottom: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
192
523
  }
193
524
  }
194
525
 
195
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) [role='tab'] {
526
+ [data-hl-tabs] [role='tab'] {
196
527
  -webkit-appearance: none;
197
528
  -moz-appearance: none;
198
529
  appearance: none;
@@ -205,188 +536,377 @@ details.hydrateless-disclosure:not(#\#):not(#\#):not(#\#) > .disclosure-panel {
205
536
  color: inherit;
206
537
  }
207
538
 
208
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) [role='tab'][aria-selected='true'] {
209
- background: hsl(220, 14%, 96%);
539
+ [data-hl-tabs] [role='tab'][aria-selected='true'] {
540
+ background: hsl(210, 40%, 96%);
210
541
  background: var(--hl-color-muted);
211
542
  }
212
543
 
213
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) [role='tab']:focus-visible {
214
- outline: 2px solid hsl(221, 80%, 55%);
544
+ [data-hl-tabs] [role='tab']:focus-visible {
545
+ outline: 2px solid hsl(217, 91%, 60%);
215
546
  outline: var(--hl-focus-ring, 2px solid #1f6feb);
216
547
  outline-offset: 2px;
217
548
  }
218
549
 
219
- [data-hl-tabs]:not(#\#):not(#\#):not(#\#) [role='tabpanel'] {
550
+ [data-hl-tabs] [role='tabpanel'] {
220
551
  padding: 1rem;
221
552
  padding: var(--hl-spacing-4, 1rem);
222
553
  }
223
554
 
224
- [role='tabpanel'][hidden]:not(#\#):not(#\#):not(#\#) {
555
+ [role='tabpanel'][hidden] {
225
556
  display: none;
226
557
  }
558
+ }
227
559
 
228
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) {
560
+ @layer components {
561
+ [data-hl-accordion] {
229
562
  border: 1px solid rgba(15, 23, 41, 0.15);
230
563
  border-radius: 0.5rem;
231
564
  border-radius: var(--hl-radius-3, 0.5rem);
232
565
  }
233
566
 
234
- @supports (color: color-mix(in lch, red, blue)) {
235
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) {
567
+ @supports (color: color-mix(in lch, red, blue)){
568
+ [data-hl-accordion] {
236
569
  border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
237
570
  }
238
571
  }
239
572
 
240
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details {
573
+ [data-hl-accordion] > details {
241
574
  border-top: 1px solid rgba(15, 23, 41, 0.12);
242
575
  }
243
576
 
244
- @supports (color: color-mix(in lch, red, blue)) {
245
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details {
577
+ @supports (color: color-mix(in lch, red, blue)){
578
+ [data-hl-accordion] > details {
246
579
  border-top: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
247
580
  }
248
581
  }
249
582
 
250
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details:first-child {
583
+ [data-hl-accordion] > details:first-child {
251
584
  border-top: 0;
252
585
  }
253
586
 
254
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details > summary {
587
+ [data-hl-accordion] > details > summary {
255
588
  list-style: none;
256
589
  cursor: pointer;
257
590
  padding: 0.75rem 1rem;
258
591
  padding: var(--hl-spacing-3, 0.75rem) var(--hl-spacing-4, 1rem);
259
592
  }
260
593
 
261
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details > summary::-webkit-details-marker {
594
+ [data-hl-accordion] > details > summary::-webkit-details-marker {
262
595
  display: none;
263
596
  }
264
597
 
265
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details > summary:focus-visible {
266
- outline: 2px solid hsl(221, 80%, 55%);
598
+ [data-hl-accordion] > details > summary:focus-visible {
599
+ outline: 2px solid hsl(217, 91%, 60%);
267
600
  outline: var(--hl-focus-ring, 2px solid #1f6feb);
268
601
  outline-offset: 2px;
269
602
  }
270
603
 
271
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details > summary::after {
604
+ [data-hl-accordion] > details > summary::after {
272
605
  content: '\25BE';
273
606
  float: right;
274
607
  transform: rotate(0deg);
275
608
  transition: transform 150ms ease;
276
609
  }
277
610
 
278
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details[open] > summary::after {
611
+ [data-hl-accordion] > details[open] > summary::after {
279
612
  transform: rotate(180deg);
280
613
  }
281
614
 
282
- [data-hl-accordion]:not(#\#):not(#\#):not(#\#) > details > .accordion-panel {
615
+ [data-hl-accordion] > details > .accordion-panel {
283
616
  padding: 0.75rem 1rem 1rem;
284
617
  padding: var(--hl-spacing-3, 0.75rem) var(--hl-spacing-4, 1rem) var(--hl-spacing-4, 1rem);
285
618
  }
619
+ }
286
620
 
287
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) {
288
- border: none;
621
+ @layer components {
622
+ nav[data-hl-toc] {
623
+ border: 1px solid rgba(15, 23, 41, 0.15);
289
624
  border-radius: 0.5rem;
290
625
  border-radius: var(--hl-radius-3, 0.5rem);
626
+ padding: 0.75rem;
627
+ padding: var(--hl-spacing-3, 0.75rem);
628
+ }
629
+
630
+ @supports (color: color-mix(in lch, red, blue)){
631
+ nav[data-hl-toc] {
632
+ border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
633
+ }
634
+ }
635
+
636
+ nav[data-hl-toc] ul {
637
+ list-style: none;
638
+ margin: 0;
291
639
  padding: 0;
292
- max-width: min(90vw, 640px);
293
- width: 100%;
294
- background: hsl(0, 0%, 100%);
295
- background: var(--hl-color-bg);
296
- color: hsl(222, 47%, 11%);
297
- color: var(--hl-color-fg);
298
640
  }
299
641
 
300
- .hydrateless-modal:not(#\#):not(#\#):not(#\#)::backdrop {
301
- background: rgba(15, 23, 41, 0.4);
642
+ nav[data-hl-toc] li {
643
+ margin: 0;
644
+ padding: 0;
302
645
  }
303
646
 
304
- @supports (color: color-mix(in lch, red, blue)) {
305
- .hydrateless-modal:not(#\#):not(#\#):not(#\#)::backdrop {
306
- background: color-mix(in oklab, var(--hl-color-fg) 40%, transparent);
647
+ nav[data-hl-toc] a {
648
+ display: block;
649
+ padding: 0.25rem 0.5rem;
650
+ padding: var(--hl-spacing-1, 0.25rem) var(--hl-spacing-2, 0.5rem);
651
+ border-radius: 0.25rem;
652
+ border-radius: var(--hl-radius-2, 0.25rem);
653
+ color: inherit;
654
+ -webkit-text-decoration: none;
655
+ text-decoration: none;
656
+ }
657
+
658
+ nav[data-hl-toc] a[aria-current='true'] {
659
+ background: hsl(210, 40%, 96%);
660
+ background: var(--hl-color-muted);
661
+ }
662
+
663
+ nav[data-hl-toc] ul ul {
664
+ padding-left: 0.75rem;
665
+ padding-left: var(--hl-spacing-3, 0.75rem);
307
666
  }
308
667
  }
309
668
 
310
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-header,
311
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-body,
312
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-footer {
313
- padding: 1rem;
314
- padding: var(--hl-spacing-4, 1rem);
669
+ @layer components {
670
+ nav[data-hl-breadcrumb] ol {
671
+ display: flex;
672
+ flex-wrap: wrap;
673
+ align-items: center;
674
+ list-style: none;
675
+ margin: 0;
676
+ padding: 0;
677
+ gap: 0.25rem;
678
+ gap: var(--hl-spacing-1, 0.25rem);
315
679
  }
316
680
 
317
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-header {
318
- border-bottom: 1px solid rgba(15, 23, 41, 0.12);
681
+ nav[data-hl-breadcrumb] li {
682
+ display: flex;
683
+ align-items: center;
684
+ gap: 0.25rem;
685
+ gap: var(--hl-spacing-1, 0.25rem);
319
686
  }
320
687
 
321
- @supports (color: color-mix(in lch, red, blue)) {
322
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-header {
323
- border-bottom: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
688
+ nav[data-hl-breadcrumb] li + li::before {
689
+ content: '/';
690
+ color: rgba(15, 23, 41, 0.4);
691
+ }
692
+
693
+ @supports (color: color-mix(in lch, red, blue)){
694
+ nav[data-hl-breadcrumb] li + li::before {
695
+ color: color-mix(in oklab, var(--hl-color-fg) 40%, transparent);
324
696
  }
325
697
  }
326
698
 
327
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-footer {
328
- border-top: 1px solid rgba(15, 23, 41, 0.12);
699
+ nav[data-hl-breadcrumb] a {
700
+ color: hsl(221, 83%, 53%);
701
+ color: var(--hl-color-accent);
702
+ -webkit-text-decoration: none;
703
+ text-decoration: none;
704
+ border-radius: 0.25rem;
705
+ border-radius: var(--hl-radius-2, 0.25rem);
329
706
  }
330
707
 
331
- @supports (color: color-mix(in lch, red, blue)) {
332
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) .hl-modal-footer {
333
- border-top: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
708
+ nav[data-hl-breadcrumb] a:hover {
709
+ -webkit-text-decoration: underline;
710
+ text-decoration: underline;
334
711
  }
335
- }
336
712
 
337
- .hydrateless-modal:not(#\#):not(#\#):not(#\#) [data-hl-modal-close]:focus-visible {
338
- outline: 2px solid hsl(221, 80%, 55%);
713
+ nav[data-hl-breadcrumb] a:focus-visible {
714
+ outline: 2px solid hsl(217, 91%, 60%);
339
715
  outline: var(--hl-focus-ring, 2px solid #1f6feb);
340
716
  outline-offset: 2px;
341
717
  }
342
718
 
343
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) {
344
- border: 1px solid rgba(15, 23, 41, 0.15);
719
+ nav[data-hl-breadcrumb] [aria-current='page'] {
720
+ color: hsl(222, 47%, 11%);
721
+ color: var(--hl-color-fg);
722
+ }
723
+ }
724
+
725
+ /**
726
+ * Pagination — `<nav class="hl-pagination" aria-label="Pagination">` wrapping a
727
+ * list of `.hl-pagination-item` links/buttons; mark the active page with
728
+ * `aria-current="page"` and use `.hl-pagination-ellipsis` for gaps.
729
+ */
730
+
731
+ @layer components {
732
+ .hl-pagination ul {
733
+ display: flex;
734
+ flex-wrap: wrap;
735
+ align-items: center;
736
+ gap: 0.25rem;
737
+ gap: var(--hl-space-1);
738
+ margin: 0;
739
+ padding: 0;
740
+ list-style: none;
741
+ }
742
+
743
+ .hl-pagination-item {
744
+ display: inline-flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ gap: 0.25rem;
748
+ gap: var(--hl-space-1);
749
+ min-width: 2.25rem;
750
+ height: 2.25rem;
751
+ padding-left: 0.5rem;
752
+ padding-right: 0.5rem;
753
+ padding-left: var(--hl-space-2);
754
+ padding-right: var(--hl-space-2);
755
+ border: 1px solid transparent;
756
+ border: var(--hl-border-width) solid transparent;
757
+ border-radius: 0.375rem;
758
+ border-radius: var(--hl-radius-md);
759
+ background: transparent;
760
+ color: hsl(222, 47%, 11%);
761
+ color: var(--hl-fg);
762
+ font: inherit;
763
+ font-size: 0.875rem;
764
+ font-size: var(--hl-text-sm);
765
+ -webkit-text-decoration: none;
766
+ text-decoration: none;
767
+ cursor: pointer;
768
+ transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1);
769
+ transition: background-color var(--hl-duration-fast) var(--hl-ease-standard);
770
+ }
771
+
772
+ .hl-pagination-item:hover {
773
+ background: hsl(210, 40%, 96%);
774
+ background: var(--hl-surface-2);
775
+ }
776
+
777
+ .hl-pagination-item:focus-visible {
778
+ outline: 2px solid hsl(217, 91%, 60%);
779
+ outline: var(--hl-focus-ring);
780
+ outline-offset: 2px;
781
+ }
782
+
783
+ .hl-pagination-item[aria-current='page'] {
784
+ background: hsl(221, 83%, 53%);
785
+ background: var(--hl-primary);
786
+ color: hsl(0, 0%, 100%);
787
+ color: var(--hl-primary-fg);
788
+ font-weight: 500;
789
+ font-weight: var(--hl-font-medium);
790
+ }
791
+
792
+ .hl-pagination-item[aria-disabled='true'],
793
+ .hl-pagination-item:disabled {
794
+ opacity: 0.45;
795
+ pointer-events: none;
796
+ }
797
+
798
+ .hl-pagination-ellipsis {
799
+ display: inline-flex;
800
+ align-items: center;
801
+ justify-content: center;
802
+ min-width: 2.25rem;
803
+ height: 2.25rem;
804
+ color: hsl(215, 16%, 47%);
805
+ color: var(--hl-fg-subtle);
806
+ -webkit-user-select: none;
807
+ -moz-user-select: none;
808
+ user-select: none;
809
+ }
810
+ }
811
+
812
+ /**
813
+ * Separator — `<hr class="hl-separator">` or
814
+ * `<div class="hl-separator" role="separator" aria-orientation="vertical">`.
815
+ */
816
+
817
+ @layer components {
818
+ .hl-separator {
819
+ flex: none;
820
+ border: 0;
821
+ background: hsl(214, 32%, 91%);
822
+ background: var(--hl-border);
823
+ }
824
+
825
+ .hl-separator:not([aria-orientation='vertical']):not([data-hl-orientation='vertical']) {
826
+ width: 100%;
827
+ height: 1px;
828
+ height: var(--hl-border-width);
829
+ margin-top: 1rem;
830
+ margin-bottom: 1rem;
831
+ margin-top: var(--hl-space-4);
832
+ margin-bottom: var(--hl-space-4);
833
+ }
834
+
835
+ .hl-separator[aria-orientation='vertical'],
836
+ .hl-separator[data-hl-orientation='vertical'] {
837
+ align-self: stretch;
838
+ width: 1px;
839
+ width: var(--hl-border-width);
840
+ min-height: 1rem;
841
+ margin-left: 1rem;
842
+ margin-right: 1rem;
843
+ margin-left: var(--hl-space-4);
844
+ margin-right: var(--hl-space-4);
845
+ }
846
+ }
847
+
848
+ /* Overlays */
849
+
850
+ @layer components {
851
+ .hydrateless-modal {
852
+ border: none;
345
853
  border-radius: 0.5rem;
346
854
  border-radius: var(--hl-radius-3, 0.5rem);
347
- padding: 0.75rem;
348
- padding: var(--hl-spacing-3, 0.75rem);
855
+ padding: 0;
856
+ max-width: min(90vw, 640px);
857
+ width: 100%;
858
+ background: hsl(0, 0%, 100%);
859
+ background: var(--hl-color-bg);
860
+ color: hsl(222, 47%, 11%);
861
+ color: var(--hl-color-fg);
349
862
  }
350
863
 
351
- @supports (color: color-mix(in lch, red, blue)) {
352
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) {
353
- border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
864
+ .hydrateless-modal::backdrop {
865
+ background: rgba(15, 23, 41, 0.4);
866
+ }
867
+
868
+ @supports (color: color-mix(in lch, red, blue)){
869
+ .hydrateless-modal::backdrop {
870
+ background: color-mix(in oklab, var(--hl-color-fg) 40%, transparent);
354
871
  }
355
872
  }
356
873
 
357
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) ul {
358
- list-style: none;
359
- margin: 0;
360
- padding: 0;
874
+ .hydrateless-modal .hl-modal-header,
875
+ .hydrateless-modal .hl-modal-body,
876
+ .hydrateless-modal .hl-modal-footer {
877
+ padding: 1rem;
878
+ padding: var(--hl-spacing-4, 1rem);
361
879
  }
362
880
 
363
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) li {
364
- margin: 0;
365
- padding: 0;
881
+ .hydrateless-modal .hl-modal-header {
882
+ border-bottom: 1px solid rgba(15, 23, 41, 0.12);
366
883
  }
367
884
 
368
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) a {
369
- display: block;
370
- padding: 0.25rem 0.5rem;
371
- padding: var(--hl-spacing-1, 0.25rem) var(--hl-spacing-2, 0.5rem);
372
- border-radius: 0.25rem;
373
- border-radius: var(--hl-radius-2, 0.25rem);
374
- color: inherit;
375
- -webkit-text-decoration: none;
376
- text-decoration: none;
885
+ @supports (color: color-mix(in lch, red, blue)){
886
+ .hydrateless-modal .hl-modal-header {
887
+ border-bottom: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
377
888
  }
889
+ }
378
890
 
379
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) a[aria-current='true'] {
380
- background: hsl(220, 14%, 96%);
381
- background: var(--hl-color-muted);
891
+ .hydrateless-modal .hl-modal-footer {
892
+ border-top: 1px solid rgba(15, 23, 41, 0.12);
382
893
  }
383
894
 
384
- nav[data-hl-toc]:not(#\#):not(#\#):not(#\#) ul ul {
385
- padding-left: 0.75rem;
386
- padding-left: var(--hl-spacing-3, 0.75rem);
895
+ @supports (color: color-mix(in lch, red, blue)){
896
+ .hydrateless-modal .hl-modal-footer {
897
+ border-top: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
898
+ }
899
+ }
900
+
901
+ .hydrateless-modal [data-hl-modal-close]:focus-visible {
902
+ outline: 2px solid hsl(217, 91%, 60%);
903
+ outline: var(--hl-focus-ring, 2px solid #1f6feb);
904
+ outline-offset: 2px;
387
905
  }
906
+ }
388
907
 
389
- dialog.hydrateless-drawer:not(#\#):not(#\#):not(#\#) {
908
+ @layer components {
909
+ dialog.hydrateless-drawer {
390
910
  border: none;
391
911
  padding: 0;
392
912
  width: min(90vw, 360px);
@@ -398,71 +918,83 @@ dialog.hydrateless-drawer:not(#\#):not(#\#):not(#\#) {
398
918
  color: var(--hl-color-fg);
399
919
  }
400
920
 
401
- dialog.hydrateless-drawer:not(#\#):not(#\#):not(#\#)::backdrop {
921
+ dialog.hydrateless-drawer::backdrop {
402
922
  background: rgba(15, 23, 41, 0.4);
403
923
  }
404
924
 
405
- @supports (color: color-mix(in lch, red, blue)) {
406
- dialog.hydrateless-drawer:not(#\#):not(#\#):not(#\#)::backdrop {
925
+ @supports (color: color-mix(in lch, red, blue)){
926
+ dialog.hydrateless-drawer::backdrop {
407
927
  background: color-mix(in oklab, var(--hl-color-fg) 40%, transparent);
408
928
  }
409
929
  }
410
930
 
411
- .hydrateless-drawer[open]:not(#\#):not(#\#):not(#\#) {
931
+ .hydrateless-drawer[open] {
412
932
  animation: hl-drawer-in 160ms ease-out;
413
933
  }
414
934
 
415
- .hydrateless-drawer[data-side='right']:not(#\#):not(#\#):not(#\#) {
416
- width: auto;
935
+ @keyframes hl-drawer-in {
936
+ from {
937
+ transform: translateX(100%);
938
+ }
939
+
940
+ to {
941
+ transform: translateX(0%);
942
+ }
417
943
  }
418
944
 
419
- .hydrateless-drawer[data-side='left']:not(#\#):not(#\#):not(#\#) {
420
- width: auto;
945
+ @media (prefers-reduced-motion: reduce) {
946
+ .hydrateless-drawer[open] {
947
+ animation: none;
948
+ }
421
949
  }
422
950
 
423
- .hydrateless-drawer[data-side='left']:not(#\#):not(#\#):not(#\#) {
951
+ .hydrateless-drawer[data-side='left'] {
952
+ width: auto;
424
953
  top: 0;
425
954
  right: auto;
426
955
  bottom: 0;
427
956
  left: 0;
428
957
  }
429
958
 
430
- .hydrateless-drawer[data-side='right']:not(#\#):not(#\#):not(#\#) {
959
+ .hydrateless-drawer[data-side='right'] {
960
+ width: auto;
431
961
  top: 0;
432
962
  right: 0;
433
963
  bottom: 0;
434
964
  left: auto;
435
965
  }
436
966
 
437
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-header,
438
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-body,
439
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-footer {
967
+ .hydrateless-drawer .hl-drawer-header,
968
+ .hydrateless-drawer .hl-drawer-body,
969
+ .hydrateless-drawer .hl-drawer-footer {
440
970
  padding: 1rem;
441
971
  padding: var(--hl-spacing-4, 1rem);
442
972
  }
443
973
 
444
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-header {
974
+ .hydrateless-drawer .hl-drawer-header {
445
975
  border-bottom: 1px solid rgba(15, 23, 41, 0.12);
446
976
  }
447
977
 
448
- @supports (color: color-mix(in lch, red, blue)) {
449
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-header {
978
+ @supports (color: color-mix(in lch, red, blue)){
979
+ .hydrateless-drawer .hl-drawer-header {
450
980
  border-bottom: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
451
981
  }
452
982
  }
453
983
 
454
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-footer {
984
+ .hydrateless-drawer .hl-drawer-footer {
455
985
  border-top: 1px solid rgba(15, 23, 41, 0.12);
456
986
  }
457
987
 
458
- @supports (color: color-mix(in lch, red, blue)) {
459
- .hydrateless-drawer:not(#\#):not(#\#):not(#\#) .hl-drawer-footer {
988
+ @supports (color: color-mix(in lch, red, blue)){
989
+ .hydrateless-drawer .hl-drawer-footer {
460
990
  border-top: 1px solid color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
461
991
  }
462
992
  }
993
+ }
463
994
 
464
- [popover]:not(#\#):not(#\#):not(#\#),
465
- [data-hl-popover]:not(#\#):not(#\#):not(#\#) {
995
+ @layer components {
996
+ [popover],
997
+ [data-hl-popover] {
466
998
  border: 1px solid rgba(15, 23, 41, 0.15);
467
999
  border-radius: 0.5rem;
468
1000
  border-radius: var(--hl-radius-3, 0.5rem);
@@ -473,19 +1005,21 @@ dialog.hydrateless-drawer:not(#\#):not(#\#):not(#\#)::backdrop {
473
1005
  box-shadow: 0 8px 24px rgba(15, 23, 41, 0.14);
474
1006
  }
475
1007
 
476
- @supports (color: color-mix(in lch, red, blue)) {
477
- [popover]:not(#\#):not(#\#):not(#\#),
478
- [data-hl-popover]:not(#\#):not(#\#):not(#\#) {
1008
+ @supports (color: color-mix(in lch, red, blue)){
1009
+ [popover],
1010
+ [data-hl-popover] {
479
1011
  border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
480
1012
  box-shadow: 0 8px 24px color-mix(in oklab, var(--hl-color-fg) 14%, transparent);
481
1013
  }
482
1014
  }
483
1015
 
484
- [data-hl-popover][hidden]:not(#\#):not(#\#):not(#\#) {
1016
+ [data-hl-popover][hidden] {
485
1017
  display: none;
486
1018
  }
1019
+ }
487
1020
 
488
- [role='tooltip']:not(#\#):not(#\#):not(#\#) {
1021
+ @layer components {
1022
+ [role='tooltip'] {
489
1023
  position: absolute;
490
1024
  z-index: 1000;
491
1025
  top: auto;
@@ -502,151 +1036,24 @@ dialog.hydrateless-drawer:not(#\#):not(#\#):not(#\#)::backdrop {
502
1036
  font-size: 0.875rem;
503
1037
  }
504
1038
 
505
- @supports (color: color-mix(in lch, red, blue)) {
506
- [role='tooltip']:not(#\#):not(#\#):not(#\#) {
1039
+ @supports (color: color-mix(in lch, red, blue)){
1040
+ [role='tooltip'] {
507
1041
  background: color-mix(in oklab, var(--hl-color-fg) 96%, var(--hl-color-bg) 4%);
508
1042
  }
509
1043
  }
510
1044
 
511
- [role='tooltip'][hidden]:not(#\#):not(#\#):not(#\#) {
1045
+ [role='tooltip'][hidden] {
512
1046
  display: none;
513
1047
  }
1048
+ }
1049
+
1050
+ @layer components {
1051
+ [data-hl-dropdown] {
1052
+ position: relative;
1053
+ display: inline-block;
1054
+ }
514
1055
 
515
- .a11y-skip-link:not(#\#):not(#\#):not(#\#) {
516
- position: absolute;
517
- left: -9999px;
518
- top: auto;
519
- width: 1px;
520
- height: 1px;
521
- overflow: hidden;
522
- }
523
-
524
- .a11y-skip-link:focus-visible:not(#\#):not(#\#):not(#\#) {
525
- left: 0;
526
- top: 0;
527
- width: auto;
528
- height: auto;
529
- padding: 0.5rem 0.75rem;
530
- padding: var(--hl-spacing-2, 0.5rem) var(--hl-spacing-3, 0.75rem);
531
- background: hsl(222, 47%, 11%);
532
- background: var(--hl-color-fg);
533
- color: hsl(0, 0%, 100%);
534
- color: var(--hl-color-bg);
535
- border-radius: 0.25rem;
536
- border-radius: var(--hl-radius-2, 0.25rem);
537
- outline: 2px solid hsl(221, 80%, 55%);
538
- outline: var(--hl-focus-ring, 2px solid #1f6feb);
539
- }
540
-
541
- [data-hl-switch]:not(#\#):not(#\#):not(#\#) {
542
- display: inline-flex;
543
- align-items: center;
544
- gap: 0.5rem;
545
- gap: var(--hl-spacing-2, 0.5rem);
546
- }
547
-
548
- [data-hl-switch]:not(#\#):not(#\#):not(#\#) input[type='checkbox'] {
549
- -webkit-appearance: none;
550
- -moz-appearance: none;
551
- appearance: none;
552
- width: 2.25rem;
553
- height: 1.25rem;
554
- border-radius: 1.25rem;
555
- background: rgba(15, 23, 41, 0.16);
556
- position: relative;
557
- outline-offset: 2px;
558
- }
559
-
560
- @supports (color: color-mix(in lch, red, blue)) {
561
- [data-hl-switch]:not(#\#):not(#\#):not(#\#) input[type='checkbox'] {
562
- background: color-mix(in oklab, var(--hl-color-fg) 16%, transparent);
563
- }
564
- }
565
-
566
- [data-hl-switch]:not(#\#):not(#\#):not(#\#) input[type='checkbox']::after {
567
- content: '';
568
- position: absolute;
569
- top: 2px;
570
- right: auto;
571
- bottom: auto;
572
- left: 2px;
573
- width: calc(1.25rem - 4px);
574
- height: calc(1.25rem - 4px);
575
- border-radius: 50%;
576
- background: hsl(0, 0%, 100%);
577
- background: var(--hl-color-bg);
578
- transition: transform 150ms ease;
579
- }
580
-
581
- [data-hl-switch]:not(#\#):not(#\#):not(#\#) input[type='checkbox']:checked::after {
582
- transform: translateX(1rem);
583
- }
584
-
585
- [data-hl-switch]:not(#\#):not(#\#):not(#\#) input[type='checkbox']:checked {
586
- background: hsl(221, 75%, 55%);
587
- background: var(--hl-color-accent);
588
- }
589
-
590
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) ol {
591
- display: flex;
592
- flex-wrap: wrap;
593
- align-items: center;
594
- list-style: none;
595
- margin: 0;
596
- padding: 0;
597
- gap: 0.25rem;
598
- gap: var(--hl-spacing-1, 0.25rem);
599
- }
600
-
601
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) li {
602
- display: flex;
603
- align-items: center;
604
- gap: 0.25rem;
605
- gap: var(--hl-spacing-1, 0.25rem);
606
- }
607
-
608
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) li + li::before {
609
- content: '/';
610
- color: rgba(15, 23, 41, 0.4);
611
- }
612
-
613
- @supports (color: color-mix(in lch, red, blue)) {
614
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) li + li::before {
615
- color: color-mix(in oklab, var(--hl-color-fg) 40%, transparent);
616
- }
617
- }
618
-
619
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) a {
620
- color: hsl(221, 75%, 55%);
621
- color: var(--hl-color-accent);
622
- -webkit-text-decoration: none;
623
- text-decoration: none;
624
- border-radius: 0.25rem;
625
- border-radius: var(--hl-radius-2, 0.25rem);
626
- }
627
-
628
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) a:hover {
629
- -webkit-text-decoration: underline;
630
- text-decoration: underline;
631
- }
632
-
633
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) a:focus-visible {
634
- outline: 2px solid hsl(221, 80%, 55%);
635
- outline: var(--hl-focus-ring, 2px solid #1f6feb);
636
- outline-offset: 2px;
637
- }
638
-
639
- nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
640
- color: hsl(222, 47%, 11%);
641
- color: var(--hl-color-fg);
642
- }
643
-
644
- [data-hl-dropdown]:not(#\#):not(#\#):not(#\#) {
645
- position: relative;
646
- display: inline-block;
647
- }
648
-
649
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) {
1056
+ [data-hl-dropdown-menu] {
650
1057
  position: absolute;
651
1058
  z-index: 100;
652
1059
  min-width: 10rem;
@@ -663,18 +1070,25 @@ nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
663
1070
  margin: var(--hl-spacing-1, 0.25rem) 0 0;
664
1071
  }
665
1072
 
666
- @supports (color: color-mix(in lch, red, blue)) {
667
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) {
1073
+ @supports (color: color-mix(in lch, red, blue)){
1074
+ [data-hl-dropdown-menu] {
668
1075
  border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
669
1076
  box-shadow: 0 8px 24px color-mix(in oklab, var(--hl-color-fg) 14%, transparent);
670
1077
  }
671
1078
  }
672
1079
 
673
- [data-hl-dropdown-menu][hidden]:not(#\#):not(#\#):not(#\#) {
1080
+ [data-hl-dropdown-menu][hidden] {
674
1081
  display: none;
675
1082
  }
676
1083
 
677
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) [role='menuitem'] {
1084
+ [data-hl-dropdown-menu][data-hl-side='top'] {
1085
+ top: auto;
1086
+ bottom: 100%;
1087
+ margin: 0 0 0.25rem;
1088
+ margin: 0 0 var(--hl-spacing-1, 0.25rem);
1089
+ }
1090
+
1091
+ [data-hl-dropdown-menu] [role='menuitem'] {
678
1092
  display: block;
679
1093
  width: 100%;
680
1094
  padding: 0.5rem 0.75rem;
@@ -689,19 +1103,19 @@ nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
689
1103
  font: inherit;
690
1104
  }
691
1105
 
692
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) [role='menuitem']:hover,
693
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) [role='menuitem'][data-hl-active] {
694
- background: hsl(220, 14%, 96%);
1106
+ [data-hl-dropdown-menu] [role='menuitem']:hover,
1107
+ [data-hl-dropdown-menu] [role='menuitem'][data-hl-active] {
1108
+ background: hsl(210, 40%, 96%);
695
1109
  background: var(--hl-color-muted);
696
1110
  }
697
1111
 
698
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) [role='menuitem']:focus-visible {
699
- outline: 2px solid hsl(221, 80%, 55%);
1112
+ [data-hl-dropdown-menu] [role='menuitem']:focus-visible {
1113
+ outline: 2px solid hsl(217, 91%, 60%);
700
1114
  outline: var(--hl-focus-ring, 2px solid #1f6feb);
701
1115
  outline-offset: -2px;
702
1116
  }
703
1117
 
704
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) [role='separator'] {
1118
+ [data-hl-dropdown-menu] [role='separator'] {
705
1119
  height: 1px;
706
1120
  margin: 0.25rem 0;
707
1121
  margin: var(--hl-spacing-1, 0.25rem) 0;
@@ -709,13 +1123,136 @@ nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
709
1123
  border: none;
710
1124
  }
711
1125
 
712
- @supports (color: color-mix(in lch, red, blue)) {
713
- [data-hl-dropdown-menu]:not(#\#):not(#\#):not(#\#) [role='separator'] {
1126
+ @supports (color: color-mix(in lch, red, blue)){
1127
+ [data-hl-dropdown-menu] [role='separator'] {
714
1128
  background: color-mix(in oklab, var(--hl-color-fg) 12%, transparent);
715
1129
  }
716
1130
  }
1131
+ }
1132
+
1133
+ /**
1134
+ * Menubar / navigation menu — `<ul data-hl-menu role="menubar">` with optional
1135
+ * single-level submenus (`<ul role="menu" data-hl-menu-submenu>`). The enhancer
1136
+ * handles roving focus, arrow navigation, and open/close.
1137
+ */
1138
+
1139
+ @layer components {
1140
+ [data-hl-menu] {
1141
+ display: flex;
1142
+ flex-wrap: wrap;
1143
+ align-items: center;
1144
+ gap: 0.25rem;
1145
+ gap: var(--hl-space-1);
1146
+ margin: 0;
1147
+ padding: 0.25rem;
1148
+ padding: var(--hl-space-1);
1149
+ list-style: none;
1150
+ }
1151
+
1152
+ [data-hl-menu][aria-orientation='vertical'] {
1153
+ flex-direction: column;
1154
+ align-items: stretch;
1155
+ }
1156
+
1157
+ [data-hl-menu] > li {
1158
+ position: relative;
1159
+ }
1160
+
1161
+ [data-hl-menu] [role='menuitem'] {
1162
+ display: flex;
1163
+ align-items: center;
1164
+ gap: 0.5rem;
1165
+ gap: var(--hl-space-2);
1166
+ width: 100%;
1167
+ padding: 0.5rem 0.75rem;
1168
+ padding: var(--hl-space-2) var(--hl-space-3);
1169
+ border: 0;
1170
+ border-radius: 0.375rem;
1171
+ border-radius: var(--hl-radius-md);
1172
+ background: transparent;
1173
+ color: hsl(222, 47%, 11%);
1174
+ color: var(--hl-fg);
1175
+ font: inherit;
1176
+ font-size: 0.875rem;
1177
+ font-size: var(--hl-text-sm);
1178
+ text-align: left;
1179
+ -webkit-text-decoration: none;
1180
+ text-decoration: none;
1181
+ white-space: nowrap;
1182
+ cursor: pointer;
1183
+ }
1184
+
1185
+ [data-hl-menu] [role='menuitem']:hover {
1186
+ background: hsl(210, 40%, 96%);
1187
+ background: var(--hl-surface-2);
1188
+ }
1189
+
1190
+ [data-hl-menu] [role='menuitem']:focus-visible {
1191
+ outline: 2px solid hsl(217, 91%, 60%);
1192
+ outline: var(--hl-focus-ring);
1193
+ outline-offset: -2px;
1194
+ }
1195
+
1196
+ [data-hl-menu] [role='menuitem'][aria-expanded='true'] {
1197
+ background: hsl(210, 40%, 96%);
1198
+ background: var(--hl-surface-2);
1199
+ }
1200
+
1201
+ [data-hl-menu] [role='menuitem'][aria-haspopup]::after {
1202
+ content: '';
1203
+ width: 0.4rem;
1204
+ height: 0.4rem;
1205
+ margin-left: auto;
1206
+ border-right: 1.5px solid currentcolor;
1207
+ border-bottom: 1.5px solid currentcolor;
1208
+ transform: rotate(45deg);
1209
+ opacity: 0.6;
1210
+ }
1211
+
1212
+ [data-hl-menu] [role='menu'] {
1213
+ position: absolute;
1214
+ top: calc(100% + 0.25rem);
1215
+ top: calc(100% + var(--hl-space-1));
1216
+ left: 0;
1217
+ z-index: 1000;
1218
+ z-index: var(--hl-z-dropdown);
1219
+ min-width: 12rem;
1220
+ margin: 0;
1221
+ padding: 0.25rem;
1222
+ padding: var(--hl-space-1);
1223
+ list-style: none;
1224
+ background: hsl(0, 0%, 100%);
1225
+ background: var(--hl-overlay);
1226
+ border: 1px solid hsl(214, 32%, 91%);
1227
+ border: var(--hl-border-width) solid var(--hl-border);
1228
+ border-radius: 0.5rem;
1229
+ border-radius: var(--hl-radius-lg);
1230
+ box-shadow: 0 10px 15px -3px hsla(222, 47%, 11%, 0.1), 0 4px 6px -4px hsla(222, 47%, 11%, 0.1);
1231
+ box-shadow: var(--hl-overlay-shadow);
1232
+ }
1233
+
1234
+ [data-hl-menu][aria-orientation='vertical'] [role='menu'] {
1235
+ top: 0;
1236
+ left: calc(100% + 0.25rem);
1237
+ left: calc(100% + var(--hl-space-1));
1238
+ }
1239
+
1240
+ [data-hl-menu] [role='menu'][hidden] {
1241
+ display: none;
1242
+ }
1243
+
1244
+ [data-hl-menu] [role='separator'] {
1245
+ height: 1px;
1246
+ height: var(--hl-border-width);
1247
+ margin: 0.25rem 0;
1248
+ margin: var(--hl-space-1) 0;
1249
+ background: hsl(214, 32%, 91%);
1250
+ background: var(--hl-border);
1251
+ }
1252
+ }
717
1253
 
718
- [data-hl-toast-region]:not(#\#):not(#\#):not(#\#) {
1254
+ @layer components {
1255
+ [data-hl-toast-region] {
719
1256
  position: fixed;
720
1257
  z-index: 1100;
721
1258
  bottom: 1rem;
@@ -730,7 +1267,7 @@ nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
730
1267
  max-width: min(90vw, 24rem);
731
1268
  }
732
1269
 
733
- [data-hl-toast]:not(#\#):not(#\#):not(#\#) {
1270
+ [data-hl-toast] {
734
1271
  pointer-events: auto;
735
1272
  display: flex;
736
1273
  align-items: flex-start;
@@ -747,14 +1284,14 @@ nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
747
1284
  animation: hl-toast-in 200ms ease-out;
748
1285
  }
749
1286
 
750
- @supports (color: color-mix(in lch, red, blue)) {
751
- [data-hl-toast]:not(#\#):not(#\#):not(#\#) {
1287
+ @supports (color: color-mix(in lch, red, blue)){
1288
+ [data-hl-toast] {
752
1289
  border: 1px solid color-mix(in oklab, var(--hl-color-fg) 15%, transparent);
753
1290
  box-shadow: 0 8px 24px color-mix(in oklab, var(--hl-color-fg) 14%, transparent);
754
1291
  }
755
1292
  }
756
1293
 
757
- [data-hl-toast-close]:not(#\#):not(#\#):not(#\#) {
1294
+ [data-hl-toast-close] {
758
1295
  -webkit-appearance: none;
759
1296
  -moz-appearance: none;
760
1297
  appearance: none;
@@ -769,21 +1306,2136 @@ nav[data-hl-breadcrumb]:not(#\#):not(#\#):not(#\#) [aria-current='page'] {
769
1306
  font: inherit;
770
1307
  }
771
1308
 
772
- @supports (color: color-mix(in lch, red, blue)) {
773
- [data-hl-toast-close]:not(#\#):not(#\#):not(#\#) {
1309
+ @supports (color: color-mix(in lch, red, blue)){
1310
+ [data-hl-toast-close] {
774
1311
  color: color-mix(in oklab, var(--hl-color-fg) 50%, transparent);
775
1312
  }
776
1313
  }
777
1314
 
778
- [data-hl-toast-close]:hover:not(#\#):not(#\#):not(#\#) {
1315
+ [data-hl-toast-close]:hover {
779
1316
  color: hsl(222, 47%, 11%);
780
1317
  color: var(--hl-color-fg);
781
1318
  }
782
1319
 
783
- [data-hl-toast-close]:focus-visible:not(#\#):not(#\#):not(#\#) {
784
- outline: 2px solid hsl(221, 80%, 55%);
1320
+ [data-hl-toast-close]:focus-visible {
1321
+ outline: 2px solid hsl(217, 91%, 60%);
785
1322
  outline: var(--hl-focus-ring, 2px solid #1f6feb);
786
1323
  outline-offset: 2px;
787
1324
  border-radius: 0.25rem;
788
1325
  border-radius: var(--hl-radius-2, 0.25rem);
789
1326
  }
1327
+
1328
+ @keyframes hl-toast-in {
1329
+ from {
1330
+ opacity: 0;
1331
+ transform: translateY(0.5rem);
1332
+ }
1333
+
1334
+ to {
1335
+ opacity: 1;
1336
+ transform: translateY(0);
1337
+ }
1338
+ }
1339
+
1340
+ @media (prefers-reduced-motion: reduce) {
1341
+ [data-hl-toast] {
1342
+ animation: none;
1343
+ }
1344
+ }
1345
+ }
1346
+
1347
+ /**
1348
+ * Command palette — `<div data-hl-command>` containing a search input
1349
+ * (`[data-hl-command-input]`), an empty state (`[data-hl-command-empty]`), and a
1350
+ * `[data-hl-command-list] role="listbox"` of grouped `[role="option"]` items.
1351
+ * Often placed inside a `<dialog class="hl-modal">`.
1352
+ */
1353
+
1354
+ @layer components {
1355
+ [data-hl-command] {
1356
+ display: flex;
1357
+ flex-direction: column;
1358
+ min-height: 0;
1359
+ overflow: hidden;
1360
+ background: hsl(0, 0%, 100%);
1361
+ background: var(--hl-overlay);
1362
+ border-radius: 0.5rem;
1363
+ border-radius: var(--hl-radius-lg);
1364
+ }
1365
+
1366
+ [data-hl-command-input] {
1367
+ flex: none;
1368
+ width: 100%;
1369
+ height: 3rem;
1370
+ height: var(--hl-control-height-lg);
1371
+ padding-left: 1rem;
1372
+ padding-right: 1rem;
1373
+ padding-left: var(--hl-space-4);
1374
+ padding-right: var(--hl-space-4);
1375
+ border: 0;
1376
+ border-bottom: 1px solid hsl(214, 32%, 91%);
1377
+ border-bottom: 1px solid hsl(214deg 32% 91%);
1378
+ border-bottom: var(--hl-border-width) solid var(--hl-border);
1379
+ border-radius: 0;
1380
+ background: transparent;
1381
+ color: hsl(222, 47%, 11%);
1382
+ color: var(--hl-fg);
1383
+ font: inherit;
1384
+ font-size: 1rem;
1385
+ font-size: var(--hl-text-base);
1386
+ }
1387
+
1388
+ [data-hl-command-input]:focus-visible {
1389
+ outline: none;
1390
+ }
1391
+
1392
+ [data-hl-command-input]::-moz-placeholder {
1393
+ color: hsl(215, 16%, 47%);
1394
+ color: var(--hl-fg-subtle);
1395
+ }
1396
+
1397
+ [data-hl-command-input]::placeholder {
1398
+ color: hsl(215, 16%, 47%);
1399
+ color: var(--hl-fg-subtle);
1400
+ }
1401
+
1402
+ [data-hl-command-list] {
1403
+ flex: 1 1 auto;
1404
+ max-height: 24rem;
1405
+ overflow-y: auto;
1406
+ padding: 0.5rem;
1407
+ padding: var(--hl-space-2);
1408
+ }
1409
+
1410
+ [data-hl-command-group][hidden] {
1411
+ display: none;
1412
+ }
1413
+
1414
+ .hl-command-group-label {
1415
+ padding: 0.5rem 0.5rem 0.25rem;
1416
+ padding: var(--hl-space-2) var(--hl-space-2) var(--hl-space-1);
1417
+ font-size: 0.75rem;
1418
+ font-size: var(--hl-text-xs);
1419
+ font-weight: 600;
1420
+ font-weight: var(--hl-font-semibold);
1421
+ text-transform: uppercase;
1422
+ letter-spacing: 0.04em;
1423
+ color: hsl(215, 16%, 47%);
1424
+ color: var(--hl-fg-subtle);
1425
+ }
1426
+
1427
+ [data-hl-command] [role='option'] {
1428
+ display: flex;
1429
+ align-items: center;
1430
+ gap: 0.75rem;
1431
+ gap: var(--hl-space-3);
1432
+ padding: 0.5rem 0.75rem;
1433
+ padding: var(--hl-space-2) var(--hl-space-3);
1434
+ border-radius: 0.375rem;
1435
+ border-radius: var(--hl-radius-md);
1436
+ font-size: 0.875rem;
1437
+ font-size: var(--hl-text-sm);
1438
+ color: hsl(222, 47%, 11%);
1439
+ color: var(--hl-fg);
1440
+ cursor: pointer;
1441
+ }
1442
+
1443
+ [data-hl-command] [role='option'][hidden] {
1444
+ display: none;
1445
+ }
1446
+
1447
+ [data-hl-command] [role='option']:hover,
1448
+ [data-hl-command] [role='option'][aria-selected='true'] {
1449
+ background: hsl(214, 100%, 97%);
1450
+ background: var(--hl-primary-subtle);
1451
+ color: hsl(224, 76%, 48%);
1452
+ color: var(--hl-primary-subtle-fg);
1453
+ }
1454
+
1455
+ [data-hl-command] [role='option'] svg {
1456
+ width: 1.1em;
1457
+ height: 1.1em;
1458
+ flex: none;
1459
+ opacity: 0.7;
1460
+ }
1461
+
1462
+ [data-hl-command-empty] {
1463
+ padding: 2rem 1rem;
1464
+ padding: var(--hl-space-8) var(--hl-space-4);
1465
+ text-align: center;
1466
+ font-size: 0.875rem;
1467
+ font-size: var(--hl-text-sm);
1468
+ color: hsl(215, 19%, 35%);
1469
+ color: var(--hl-fg-muted);
1470
+ }
1471
+
1472
+ [data-hl-command-empty][hidden] {
1473
+ display: none;
1474
+ }
1475
+ }
1476
+
1477
+ /* Forms */
1478
+
1479
+ /**
1480
+ * Button — `<button class="hl-button">` (works on `<a>`/`<input>` too).
1481
+ *
1482
+ * Color is driven by a small set of local custom properties so the
1483
+ * intent × variant matrix stays DRY: `data-hl-intent` swaps the accent set,
1484
+ * `data-hl-variant` decides how those values are applied.
1485
+ *
1486
+ * data-hl-variant: solid (default) | soft | outline | ghost | link
1487
+ * data-hl-intent: neutral (default) | primary | danger | success | warning | info
1488
+ * data-hl-size: sm | md (default) | lg
1489
+ * data-hl-block: stretch to container width
1490
+ * data-hl-icon: square, icon-only
1491
+ */
1492
+
1493
+ @layer components {
1494
+ .hl-button {
1495
+ --_solid-bg: var(--hl-surface-2);
1496
+ --_solid-bg-hover: var(--hl-surface-3);
1497
+ --_solid-bg-active: var(--hl-surface-3);
1498
+ --_solid-fg: var(--hl-fg);
1499
+ --_accent: var(--hl-fg);
1500
+ --_soft-bg: var(--hl-surface-2);
1501
+ --_soft-fg: var(--hl-fg);
1502
+ --_height: var(--hl-control-height-md);
1503
+ --_pad-x: var(--hl-space-4);
1504
+ --_font: var(--hl-text-sm);
1505
+ --_gap: var(--hl-space-2);
1506
+
1507
+ display: inline-flex;
1508
+ align-items: center;
1509
+ justify-content: center;
1510
+ gap: 0.5rem;
1511
+ gap: var(--_gap);
1512
+ height: 2.5rem;
1513
+ height: var(--_height);
1514
+ padding-left: 1rem;
1515
+ padding-right: 1rem;
1516
+ padding-left: var(--_pad-x);
1517
+ padding-right: var(--_pad-x);
1518
+ border: 1px solid transparent;
1519
+ border: var(--hl-border-width) solid transparent;
1520
+ border-radius: 0.375rem;
1521
+ border-radius: var(--hl-radius-md);
1522
+ font-family: inherit;
1523
+ font-size: 0.875rem;
1524
+ font-size: var(--_font);
1525
+ font-weight: 500;
1526
+ font-weight: var(--hl-font-medium);
1527
+ line-height: 1;
1528
+ white-space: nowrap;
1529
+ -webkit-text-decoration: none;
1530
+ text-decoration: none;
1531
+ cursor: pointer;
1532
+ -webkit-user-select: none;
1533
+ -moz-user-select: none;
1534
+ user-select: none;
1535
+ background: hsl(210, 40%, 96%);
1536
+ background: var(--_solid-bg);
1537
+ color: hsl(222, 47%, 11%);
1538
+ color: var(--_solid-fg);
1539
+ transition:
1540
+ background-color 120ms cubic-bezier(0.2, 0, 0, 1), border-color 120ms cubic-bezier(0.2, 0, 0, 1), color 120ms cubic-bezier(0.2, 0, 0, 1), box-shadow 120ms cubic-bezier(0.2, 0, 0, 1);
1541
+ transition:
1542
+ background-color var(--hl-duration-fast) var(--hl-ease-standard), border-color var(--hl-duration-fast) var(--hl-ease-standard), color var(--hl-duration-fast) var(--hl-ease-standard), box-shadow var(--hl-duration-fast) var(--hl-ease-standard);
1543
+ }
1544
+
1545
+ .hl-button:hover {
1546
+ background: var(--_solid-bg-hover);
1547
+ }
1548
+
1549
+ .hl-button:active {
1550
+ background: var(--_solid-bg-active);
1551
+ }
1552
+
1553
+ .hl-button:focus-visible {
1554
+ outline: 2px solid hsl(217, 91%, 60%);
1555
+ outline: var(--hl-focus-ring);
1556
+ outline-offset: 2px;
1557
+ }
1558
+
1559
+ .hl-button:disabled,
1560
+ .hl-button[aria-disabled='true'],
1561
+ .hl-button[data-hl-loading] {
1562
+ cursor: not-allowed;
1563
+ opacity: 0.55;
1564
+ }
1565
+
1566
+ .hl-button[data-hl-loading] {
1567
+ cursor: progress;
1568
+ }
1569
+
1570
+ .hl-button[data-hl-intent='primary'] {
1571
+ --_solid-bg: var(--hl-primary);
1572
+ --_solid-bg-hover: var(--hl-primary-hover);
1573
+ --_solid-bg-active: var(--hl-primary-active);
1574
+ --_solid-fg: var(--hl-primary-fg);
1575
+ --_accent: var(--hl-primary);
1576
+ --_soft-bg: var(--hl-primary-subtle);
1577
+ --_soft-fg: var(--hl-primary-subtle-fg);
1578
+ }
1579
+
1580
+ .hl-button[data-hl-intent='danger'] {
1581
+ --_solid-bg: var(--hl-danger);
1582
+ --_solid-bg-hover: var(--hl-danger-hover);
1583
+ --_solid-bg-active: var(--hl-danger-hover);
1584
+ --_solid-fg: var(--hl-danger-fg);
1585
+ --_accent: var(--hl-danger);
1586
+ --_soft-bg: var(--hl-danger-subtle);
1587
+ --_soft-fg: var(--hl-danger-subtle-fg);
1588
+ }
1589
+
1590
+ .hl-button[data-hl-intent='success'] {
1591
+ --_solid-bg: var(--hl-success);
1592
+ --_solid-bg-hover: var(--hl-success-hover);
1593
+ --_solid-bg-active: var(--hl-success-hover);
1594
+ --_solid-fg: var(--hl-success-fg);
1595
+ --_accent: var(--hl-success);
1596
+ --_soft-bg: var(--hl-success-subtle);
1597
+ --_soft-fg: var(--hl-success-subtle-fg);
1598
+ }
1599
+
1600
+ .hl-button[data-hl-intent='warning'] {
1601
+ --_solid-bg: var(--hl-warning);
1602
+ --_solid-bg-hover: var(--hl-warning-hover);
1603
+ --_solid-bg-active: var(--hl-warning-hover);
1604
+ --_solid-fg: var(--hl-warning-fg);
1605
+ --_accent: var(--hl-warning);
1606
+ --_soft-bg: var(--hl-warning-subtle);
1607
+ --_soft-fg: var(--hl-warning-subtle-fg);
1608
+ }
1609
+
1610
+ .hl-button[data-hl-intent='info'] {
1611
+ --_solid-bg: var(--hl-info);
1612
+ --_solid-bg-hover: var(--hl-info-hover);
1613
+ --_solid-bg-active: var(--hl-info-hover);
1614
+ --_solid-fg: var(--hl-info-fg);
1615
+ --_accent: var(--hl-info);
1616
+ --_soft-bg: var(--hl-info-subtle);
1617
+ --_soft-fg: var(--hl-info-subtle-fg);
1618
+ }
1619
+
1620
+ .hl-button[data-hl-variant='soft'] {
1621
+ background: var(--_soft-bg);
1622
+ color: var(--_soft-fg);
1623
+ }
1624
+
1625
+ .hl-button[data-hl-variant='soft']:hover {
1626
+ background: color-mix(in oklab, var(--_accent) 14%, var(--_soft-bg));
1627
+ }
1628
+
1629
+ .hl-button[data-hl-variant='outline'] {
1630
+ background: transparent;
1631
+ color: var(--_accent);
1632
+ border-color: hsl(213, 27%, 84%);
1633
+ border-color: var(--hl-border-strong);
1634
+ }
1635
+
1636
+ .hl-button[data-hl-variant='outline']:hover {
1637
+ background: var(--_soft-bg);
1638
+ border-color: var(--_accent);
1639
+ }
1640
+
1641
+ .hl-button[data-hl-variant='ghost'] {
1642
+ background: transparent;
1643
+ color: var(--_accent);
1644
+ }
1645
+
1646
+ .hl-button[data-hl-variant='ghost']:hover {
1647
+ background: var(--_soft-bg);
1648
+ }
1649
+
1650
+ .hl-button[data-hl-variant='link'] {
1651
+ height: auto;
1652
+ padding: 0;
1653
+ background: transparent;
1654
+ color: var(--_accent);
1655
+ border-color: transparent;
1656
+ -webkit-text-decoration: underline;
1657
+ text-decoration: underline;
1658
+ text-underline-offset: 0.2em;
1659
+ }
1660
+
1661
+ .hl-button[data-hl-variant='link']:hover {
1662
+ background: transparent;
1663
+ text-decoration-thickness: 2px;
1664
+ }
1665
+
1666
+ .hl-button[data-hl-size='sm'] {
1667
+ --_height: var(--hl-control-height-sm);
1668
+ --_pad-x: var(--hl-space-3);
1669
+ --_font: var(--hl-text-xs);
1670
+ --_gap: var(--hl-space-1);
1671
+
1672
+ border-radius: 0.25rem;
1673
+
1674
+ border-radius: var(--hl-radius-sm);
1675
+ }
1676
+
1677
+ .hl-button[data-hl-size='lg'] {
1678
+ --_height: var(--hl-control-height-lg);
1679
+ --_pad-x: var(--hl-space-5);
1680
+ --_font: var(--hl-text-base);
1681
+
1682
+ border-radius: 0.5rem;
1683
+
1684
+ border-radius: var(--hl-radius-lg);
1685
+ }
1686
+
1687
+ .hl-button[data-hl-block] {
1688
+ display: flex;
1689
+ width: 100%;
1690
+ }
1691
+
1692
+ .hl-button[data-hl-icon] {
1693
+ width: var(--_height);
1694
+ padding-left: 0;
1695
+ padding-right: 0;
1696
+ }
1697
+
1698
+ .hl-button > svg {
1699
+ width: 1.1em;
1700
+ height: 1.1em;
1701
+ flex: none;
1702
+ }
1703
+
1704
+ .hl-button[data-hl-loading]::before {
1705
+ content: '';
1706
+ width: 1em;
1707
+ height: 1em;
1708
+ border: 2px solid currentcolor;
1709
+ border-top-color: transparent;
1710
+ border-radius: 9999px;
1711
+ border-radius: var(--hl-radius-full);
1712
+ animation: hl-button-spin 0.6s linear infinite;
1713
+ }
1714
+
1715
+ @media (prefers-reduced-motion: reduce) {
1716
+ .hl-button[data-hl-loading]::before {
1717
+ animation-duration: 1.4s;
1718
+ }
1719
+ }
1720
+
1721
+ @keyframes hl-button-spin {
1722
+ to {
1723
+ transform: rotate(1turn);
1724
+ }
1725
+ }
1726
+
1727
+ .hl-button-group {
1728
+ display: inline-flex;
1729
+ }
1730
+
1731
+ .hl-button-group > .hl-button {
1732
+ border-radius: 0;
1733
+ }
1734
+
1735
+ .hl-button-group > .hl-button:not(:first-child) {
1736
+ margin-left: calc(1px * -1);
1737
+ margin-left: calc(var(--hl-border-width) * -1);
1738
+ }
1739
+
1740
+ .hl-button-group > .hl-button:first-child {
1741
+ border-top-left-radius: 0.375rem;
1742
+ border-top-left-radius: var(--hl-radius-md);
1743
+ border-bottom-left-radius: 0.375rem;
1744
+ border-bottom-left-radius: var(--hl-radius-md);
1745
+ }
1746
+
1747
+ .hl-button-group > .hl-button:last-child {
1748
+ border-top-right-radius: 0.375rem;
1749
+ border-top-right-radius: var(--hl-radius-md);
1750
+ border-bottom-right-radius: 0.375rem;
1751
+ border-bottom-right-radius: var(--hl-radius-md);
1752
+ }
1753
+
1754
+ .hl-button-group > .hl-button:hover,
1755
+ .hl-button-group > .hl-button:focus-visible {
1756
+ z-index: 1;
1757
+ }
1758
+ }
1759
+
1760
+ /**
1761
+ * Text input — `<input class="hl-input">`.
1762
+ * data-hl-size: sm | md (default) | lg
1763
+ * data-hl-invalid: error styling (pair with aria-invalid)
1764
+ */
1765
+
1766
+ @layer components {
1767
+ .hl-input {
1768
+ --_height: var(--hl-control-height-md);
1769
+ --_pad-x: var(--hl-space-3);
1770
+ --_font: var(--hl-text-sm);
1771
+
1772
+ display: block;
1773
+ width: 100%;
1774
+ height: 2.5rem;
1775
+ height: var(--_height);
1776
+ padding-left: 0.75rem;
1777
+ padding-right: 0.75rem;
1778
+ padding-left: var(--_pad-x);
1779
+ padding-right: var(--_pad-x);
1780
+ border: 1px solid hsl(213, 27%, 84%);
1781
+ border: var(--hl-border-width) solid var(--hl-border-strong);
1782
+ border-radius: 0.375rem;
1783
+ border-radius: var(--hl-radius-md);
1784
+ background: hsl(0, 0%, 100%);
1785
+ background: var(--hl-surface);
1786
+ color: hsl(222, 47%, 11%);
1787
+ color: var(--hl-fg);
1788
+ font-family: inherit;
1789
+ font-size: 0.875rem;
1790
+ font-size: var(--_font);
1791
+ line-height: 1.5;
1792
+ line-height: var(--hl-leading-normal);
1793
+ transition:
1794
+ border-color 120ms cubic-bezier(0.2, 0, 0, 1), box-shadow 120ms cubic-bezier(0.2, 0, 0, 1);
1795
+ transition:
1796
+ border-color var(--hl-duration-fast) var(--hl-ease-standard), box-shadow var(--hl-duration-fast) var(--hl-ease-standard);
1797
+ }
1798
+
1799
+ .hl-input::-moz-placeholder {
1800
+ color: hsl(215, 16%, 47%);
1801
+ color: var(--hl-fg-subtle);
1802
+ }
1803
+
1804
+ .hl-input::placeholder {
1805
+ color: hsl(215, 16%, 47%);
1806
+ color: var(--hl-fg-subtle);
1807
+ }
1808
+
1809
+ .hl-input:hover:not(:disabled):not(:focus) {
1810
+ border-color: hsl(215, 16%, 47%);
1811
+ border-color: var(--hl-fg-subtle);
1812
+ }
1813
+
1814
+ .hl-input:focus-visible {
1815
+ outline: none;
1816
+ border-color: hsl(217, 91%, 60%);
1817
+ border-color: var(--hl-ring);
1818
+ box-shadow: 0 0 0 3px rgba(60, 131, 246, 0.3);
1819
+ }
1820
+
1821
+ @supports (color: color-mix(in lch, red, blue)){
1822
+ .hl-input:focus-visible {
1823
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--hl-ring) 30%, transparent);
1824
+ }
1825
+ }
1826
+
1827
+ .hl-input:disabled {
1828
+ cursor: not-allowed;
1829
+ opacity: 0.6;
1830
+ background: hsl(210, 40%, 96%);
1831
+ background: var(--hl-surface-2);
1832
+ }
1833
+
1834
+ .hl-input[data-hl-invalid],
1835
+ .hl-input[aria-invalid='true'] {
1836
+ border-color: hsl(0, 72%, 51%);
1837
+ border-color: var(--hl-danger);
1838
+ }
1839
+
1840
+ .hl-input[data-hl-invalid]:focus-visible,
1841
+ .hl-input[aria-invalid='true']:focus-visible {
1842
+ border-color: hsl(0, 72%, 51%);
1843
+ border-color: var(--hl-danger);
1844
+ box-shadow: 0 0 0 3px rgba(220, 40, 40, 0.3);
1845
+ }
1846
+
1847
+ @supports (color: color-mix(in lch, red, blue)){
1848
+ .hl-input[data-hl-invalid]:focus-visible,
1849
+ .hl-input[aria-invalid='true']:focus-visible {
1850
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--hl-danger) 30%, transparent);
1851
+ }
1852
+ }
1853
+
1854
+ .hl-input[data-hl-size='sm'] {
1855
+ --_height: var(--hl-control-height-sm);
1856
+ --_font: var(--hl-text-xs);
1857
+
1858
+ border-radius: 0.25rem;
1859
+
1860
+ border-radius: var(--hl-radius-sm);
1861
+ }
1862
+
1863
+ .hl-input[data-hl-size='lg'] {
1864
+ --_height: var(--hl-control-height-lg);
1865
+ --_font: var(--hl-text-base);
1866
+ --_pad-x: var(--hl-space-4);
1867
+ }
1868
+
1869
+ .hl-input[type='file'] {
1870
+ height: auto;
1871
+ padding-top: 0.5rem;
1872
+ padding-bottom: 0.5rem;
1873
+ padding-top: var(--hl-space-2);
1874
+ padding-bottom: var(--hl-space-2);
1875
+ }
1876
+
1877
+ .hl-input[type='color'] {
1878
+ width: var(--_height);
1879
+ padding: 0.25rem;
1880
+ padding: var(--hl-space-1);
1881
+ }
1882
+ }
1883
+
1884
+ /**
1885
+ * Multi-line text input — `<textarea class="hl-textarea">`.
1886
+ * data-hl-invalid: error styling (pair with aria-invalid)
1887
+ */
1888
+
1889
+ @layer components {
1890
+ .hl-textarea {
1891
+ display: block;
1892
+ width: 100%;
1893
+ min-height: calc(2.5rem * 2);
1894
+ min-height: calc(var(--hl-control-height-md) * 2);
1895
+ padding: 0.5rem 0.75rem;
1896
+ padding: var(--hl-space-2) var(--hl-space-3);
1897
+ border: 1px solid hsl(213, 27%, 84%);
1898
+ border: var(--hl-border-width) solid var(--hl-border-strong);
1899
+ border-radius: 0.375rem;
1900
+ border-radius: var(--hl-radius-md);
1901
+ background: hsl(0, 0%, 100%);
1902
+ background: var(--hl-surface);
1903
+ color: hsl(222, 47%, 11%);
1904
+ color: var(--hl-fg);
1905
+ font-family: inherit;
1906
+ font-size: 0.875rem;
1907
+ font-size: var(--hl-text-sm);
1908
+ line-height: 1.5;
1909
+ line-height: var(--hl-leading-normal);
1910
+ resize: vertical;
1911
+ transition:
1912
+ border-color 120ms cubic-bezier(0.2, 0, 0, 1), box-shadow 120ms cubic-bezier(0.2, 0, 0, 1);
1913
+ transition:
1914
+ border-color var(--hl-duration-fast) var(--hl-ease-standard), box-shadow var(--hl-duration-fast) var(--hl-ease-standard);
1915
+ }
1916
+
1917
+ .hl-textarea::-moz-placeholder {
1918
+ color: hsl(215, 16%, 47%);
1919
+ color: var(--hl-fg-subtle);
1920
+ }
1921
+
1922
+ .hl-textarea::placeholder {
1923
+ color: hsl(215, 16%, 47%);
1924
+ color: var(--hl-fg-subtle);
1925
+ }
1926
+
1927
+ .hl-textarea:hover:not(:disabled):not(:focus) {
1928
+ border-color: hsl(215, 16%, 47%);
1929
+ border-color: var(--hl-fg-subtle);
1930
+ }
1931
+
1932
+ .hl-textarea:focus-visible {
1933
+ outline: none;
1934
+ border-color: hsl(217, 91%, 60%);
1935
+ border-color: var(--hl-ring);
1936
+ box-shadow: 0 0 0 3px rgba(60, 131, 246, 0.3);
1937
+ }
1938
+
1939
+ @supports (color: color-mix(in lch, red, blue)){
1940
+ .hl-textarea:focus-visible {
1941
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--hl-ring) 30%, transparent);
1942
+ }
1943
+ }
1944
+
1945
+ .hl-textarea:disabled {
1946
+ cursor: not-allowed;
1947
+ opacity: 0.6;
1948
+ background: hsl(210, 40%, 96%);
1949
+ background: var(--hl-surface-2);
1950
+ }
1951
+
1952
+ .hl-textarea[data-hl-invalid],
1953
+ .hl-textarea[aria-invalid='true'] {
1954
+ border-color: hsl(0, 72%, 51%);
1955
+ border-color: var(--hl-danger);
1956
+ }
1957
+
1958
+ .hl-textarea[data-hl-invalid]:focus-visible,
1959
+ .hl-textarea[aria-invalid='true']:focus-visible {
1960
+ border-color: hsl(0, 72%, 51%);
1961
+ border-color: var(--hl-danger);
1962
+ box-shadow: 0 0 0 3px rgba(220, 40, 40, 0.3);
1963
+ }
1964
+
1965
+ @supports (color: color-mix(in lch, red, blue)){
1966
+ .hl-textarea[data-hl-invalid]:focus-visible,
1967
+ .hl-textarea[aria-invalid='true']:focus-visible {
1968
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--hl-danger) 30%, transparent);
1969
+ }
1970
+ }
1971
+ }
1972
+
1973
+ /**
1974
+ * Native select — `<span class="hl-select-wrapper"><select class="hl-select">`.
1975
+ * The wrapper draws a custom caret while the native control keeps full
1976
+ * keyboard/mobile behavior.
1977
+ * data-hl-size: sm | md (default) | lg
1978
+ * data-hl-invalid: error styling (pair with aria-invalid)
1979
+ */
1980
+
1981
+ @layer components {
1982
+ .hl-select-wrapper {
1983
+ position: relative;
1984
+ display: inline-flex;
1985
+ width: 100%;
1986
+ }
1987
+
1988
+ .hl-select-wrapper::after {
1989
+ content: '';
1990
+ position: absolute;
1991
+ top: 50%;
1992
+ right: 0.75rem;
1993
+ right: var(--hl-space-3);
1994
+ width: 0.5rem;
1995
+ height: 0.5rem;
1996
+ border-right: 2px solid hsl(215, 19%, 35%);
1997
+ border-right: 2px solid hsl(215deg 19% 35%);
1998
+ border-right: 2px solid var(--hl-fg-muted);
1999
+ border-bottom: 2px solid hsl(215, 19%, 35%);
2000
+ border-bottom: 2px solid hsl(215deg 19% 35%);
2001
+ border-bottom: 2px solid var(--hl-fg-muted);
2002
+ transform: translateY(-65%) rotate(45deg);
2003
+ pointer-events: none;
2004
+ }
2005
+
2006
+ .hl-select {
2007
+ --_height: var(--hl-control-height-md);
2008
+ --_font: var(--hl-text-sm);
2009
+
2010
+ -webkit-appearance: none;
2011
+
2012
+ -moz-appearance: none;
2013
+
2014
+ appearance: none;
2015
+ width: 100%;
2016
+ height: 2.5rem;
2017
+ height: var(--_height);
2018
+ padding-left: 0.75rem;
2019
+ padding-right: 2rem;
2020
+ padding-left: var(--hl-space-3);
2021
+ padding-right: var(--hl-space-8);
2022
+ border: 1px solid hsl(213, 27%, 84%);
2023
+ border: var(--hl-border-width) solid var(--hl-border-strong);
2024
+ border-radius: 0.375rem;
2025
+ border-radius: var(--hl-radius-md);
2026
+ background: hsl(0, 0%, 100%);
2027
+ background: var(--hl-surface);
2028
+ color: hsl(222, 47%, 11%);
2029
+ color: var(--hl-fg);
2030
+ font-family: inherit;
2031
+ font-size: 0.875rem;
2032
+ font-size: var(--_font);
2033
+ line-height: 1.5;
2034
+ line-height: var(--hl-leading-normal);
2035
+ cursor: pointer;
2036
+ transition:
2037
+ border-color 120ms cubic-bezier(0.2, 0, 0, 1), box-shadow 120ms cubic-bezier(0.2, 0, 0, 1);
2038
+ transition:
2039
+ border-color var(--hl-duration-fast) var(--hl-ease-standard), box-shadow var(--hl-duration-fast) var(--hl-ease-standard);
2040
+ }
2041
+
2042
+ .hl-select:hover:not(:disabled):not(:focus) {
2043
+ border-color: hsl(215, 16%, 47%);
2044
+ border-color: var(--hl-fg-subtle);
2045
+ }
2046
+
2047
+ .hl-select:focus-visible {
2048
+ outline: none;
2049
+ border-color: hsl(217, 91%, 60%);
2050
+ border-color: var(--hl-ring);
2051
+ box-shadow: 0 0 0 3px rgba(60, 131, 246, 0.3);
2052
+ }
2053
+
2054
+ @supports (color: color-mix(in lch, red, blue)){
2055
+ .hl-select:focus-visible {
2056
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--hl-ring) 30%, transparent);
2057
+ }
2058
+ }
2059
+
2060
+ .hl-select:disabled {
2061
+ cursor: not-allowed;
2062
+ opacity: 0.6;
2063
+ background: hsl(210, 40%, 96%);
2064
+ background: var(--hl-surface-2);
2065
+ }
2066
+
2067
+ .hl-select[data-hl-invalid],
2068
+ .hl-select[aria-invalid='true'] {
2069
+ border-color: hsl(0, 72%, 51%);
2070
+ border-color: var(--hl-danger);
2071
+ }
2072
+
2073
+ .hl-select[data-hl-size='sm'] {
2074
+ --_height: var(--hl-control-height-sm);
2075
+ --_font: var(--hl-text-xs);
2076
+
2077
+ border-radius: 0.25rem;
2078
+
2079
+ border-radius: var(--hl-radius-sm);
2080
+ }
2081
+
2082
+ .hl-select[data-hl-size='lg'] {
2083
+ --_height: var(--hl-control-height-lg);
2084
+ --_font: var(--hl-text-base);
2085
+ }
2086
+ }
2087
+
2088
+ /**
2089
+ * Checkbox — `<label class="hl-checkbox"><input type="checkbox"><span>…</span></label>`.
2090
+ * The native input is restyled (appearance:none) with a CSS checkmark, keeping
2091
+ * full keyboard + form semantics.
2092
+ */
2093
+
2094
+ @layer components {
2095
+ .hl-checkbox {
2096
+ display: inline-flex;
2097
+ align-items: center;
2098
+ gap: 0.5rem;
2099
+ gap: var(--hl-space-2);
2100
+ font-size: 0.875rem;
2101
+ font-size: var(--hl-text-sm);
2102
+ line-height: 1.5;
2103
+ line-height: var(--hl-leading-normal);
2104
+ cursor: pointer;
2105
+ }
2106
+
2107
+ .hl-checkbox > input[type='checkbox'] {
2108
+ -webkit-appearance: none;
2109
+ -moz-appearance: none;
2110
+ appearance: none;
2111
+ flex: none;
2112
+ width: 1.15rem;
2113
+ height: 1.15rem;
2114
+ margin: 0;
2115
+ border: 2px solid hsl(213, 27%, 84%);
2116
+ border: var(--hl-border-width-2) solid var(--hl-border-strong);
2117
+ border-radius: 0.25rem;
2118
+ border-radius: var(--hl-radius-sm);
2119
+ background: hsl(0, 0%, 100%);
2120
+ background: var(--hl-surface);
2121
+ display: grid;
2122
+ align-content: center;
2123
+ justify-content: center;
2124
+ place-content: center;
2125
+ cursor: pointer;
2126
+ transition:
2127
+ background-color 120ms cubic-bezier(0.2, 0, 0, 1), border-color 120ms cubic-bezier(0.2, 0, 0, 1);
2128
+ transition:
2129
+ background-color var(--hl-duration-fast) var(--hl-ease-standard), border-color var(--hl-duration-fast) var(--hl-ease-standard);
2130
+ }
2131
+
2132
+ .hl-checkbox > input[type='checkbox']::after {
2133
+ content: '';
2134
+ width: 0.34rem;
2135
+ height: 0.62rem;
2136
+ border: solid hsl(0, 0%, 100%);
2137
+ border: solid var(--hl-primary-fg);
2138
+ border-width: 0 2px 2px 0;
2139
+ margin-top: -2px;
2140
+ transform: rotate(45deg) scale(0);
2141
+ transition: transform 120ms cubic-bezier(0.3, 0, 0, 1);
2142
+ transition: transform var(--hl-duration-fast) var(--hl-ease-emphasized);
2143
+ }
2144
+
2145
+ .hl-checkbox > input[type='checkbox']:checked,
2146
+ .hl-checkbox > input[type='checkbox']:indeterminate {
2147
+ background: hsl(221, 83%, 53%);
2148
+ background: var(--hl-primary);
2149
+ border-color: hsl(221, 83%, 53%);
2150
+ border-color: var(--hl-primary);
2151
+ }
2152
+
2153
+ .hl-checkbox > input[type='checkbox']:checked::after {
2154
+ transform: rotate(45deg) scale(1);
2155
+ }
2156
+
2157
+ .hl-checkbox > input[type='checkbox']:indeterminate::after {
2158
+ width: 0.6rem;
2159
+ height: 0;
2160
+ margin: 0;
2161
+ border-width: 0 0 2px;
2162
+ transform: none;
2163
+ }
2164
+
2165
+ .hl-checkbox > input[type='checkbox']:focus-visible {
2166
+ outline: 2px solid hsl(217, 91%, 60%);
2167
+ outline: var(--hl-focus-ring);
2168
+ outline-offset: 2px;
2169
+ }
2170
+
2171
+ .hl-checkbox > input[type='checkbox']:disabled {
2172
+ cursor: not-allowed;
2173
+ opacity: 0.55;
2174
+ }
2175
+
2176
+ .hl-checkbox:has(> input:disabled) {
2177
+ cursor: not-allowed;
2178
+ color: hsl(215, 16%, 47%);
2179
+ color: var(--hl-fg-subtle);
2180
+ }
2181
+ }
2182
+
2183
+ /**
2184
+ * Radio — `<label class="hl-radio"><input type="radio"><span>…</span></label>`,
2185
+ * grouped in `<div class="hl-radio-group" role="radiogroup">`.
2186
+ */
2187
+
2188
+ @layer components {
2189
+ .hl-radio-group {
2190
+ display: flex;
2191
+ flex-direction: column;
2192
+ gap: 0.5rem;
2193
+ gap: var(--hl-space-2);
2194
+ }
2195
+
2196
+ .hl-radio-group[data-hl-orientation='horizontal'] {
2197
+ flex-direction: row;
2198
+ flex-wrap: wrap;
2199
+ gap: 1rem;
2200
+ gap: var(--hl-space-4);
2201
+ }
2202
+
2203
+ .hl-radio {
2204
+ display: inline-flex;
2205
+ align-items: center;
2206
+ gap: 0.5rem;
2207
+ gap: var(--hl-space-2);
2208
+ font-size: 0.875rem;
2209
+ font-size: var(--hl-text-sm);
2210
+ line-height: 1.5;
2211
+ line-height: var(--hl-leading-normal);
2212
+ cursor: pointer;
2213
+ }
2214
+
2215
+ .hl-radio > input[type='radio'] {
2216
+ -webkit-appearance: none;
2217
+ -moz-appearance: none;
2218
+ appearance: none;
2219
+ flex: none;
2220
+ width: 1.15rem;
2221
+ height: 1.15rem;
2222
+ margin: 0;
2223
+ border: 2px solid hsl(213, 27%, 84%);
2224
+ border: var(--hl-border-width-2) solid var(--hl-border-strong);
2225
+ border-radius: 9999px;
2226
+ border-radius: var(--hl-radius-full);
2227
+ background: hsl(0, 0%, 100%);
2228
+ background: var(--hl-surface);
2229
+ display: grid;
2230
+ align-content: center;
2231
+ justify-content: center;
2232
+ place-content: center;
2233
+ cursor: pointer;
2234
+ transition: border-color 120ms cubic-bezier(0.2, 0, 0, 1);
2235
+ transition: border-color var(--hl-duration-fast) var(--hl-ease-standard);
2236
+ }
2237
+
2238
+ .hl-radio > input[type='radio']::after {
2239
+ content: '';
2240
+ width: 0.6rem;
2241
+ height: 0.6rem;
2242
+ border-radius: 9999px;
2243
+ border-radius: var(--hl-radius-full);
2244
+ background: hsl(221, 83%, 53%);
2245
+ background: var(--hl-primary);
2246
+ transform: scale(0);
2247
+ transition: transform 120ms cubic-bezier(0.3, 0, 0, 1);
2248
+ transition: transform var(--hl-duration-fast) var(--hl-ease-emphasized);
2249
+ }
2250
+
2251
+ .hl-radio > input[type='radio']:checked {
2252
+ border-color: hsl(221, 83%, 53%);
2253
+ border-color: var(--hl-primary);
2254
+ }
2255
+
2256
+ .hl-radio > input[type='radio']:checked::after {
2257
+ transform: scale(1);
2258
+ }
2259
+
2260
+ .hl-radio > input[type='radio']:focus-visible {
2261
+ outline: 2px solid hsl(217, 91%, 60%);
2262
+ outline: var(--hl-focus-ring);
2263
+ outline-offset: 2px;
2264
+ }
2265
+
2266
+ .hl-radio > input[type='radio']:disabled {
2267
+ cursor: not-allowed;
2268
+ opacity: 0.55;
2269
+ }
2270
+
2271
+ .hl-radio:has(> input:disabled) {
2272
+ cursor: not-allowed;
2273
+ color: hsl(215, 16%, 47%);
2274
+ color: var(--hl-fg-subtle);
2275
+ }
2276
+ }
2277
+
2278
+ @layer components {
2279
+ [data-hl-switch] {
2280
+ display: inline-flex;
2281
+ align-items: center;
2282
+ gap: 0.5rem;
2283
+ gap: var(--hl-spacing-2, 0.5rem);
2284
+ }
2285
+
2286
+ [data-hl-switch] input[type='checkbox'] {
2287
+ -webkit-appearance: none;
2288
+ -moz-appearance: none;
2289
+ appearance: none;
2290
+ width: 2.25rem;
2291
+ height: 1.25rem;
2292
+ border-radius: 1.25rem;
2293
+ background: rgba(15, 23, 41, 0.16);
2294
+ position: relative;
2295
+ outline-offset: 2px;
2296
+ }
2297
+
2298
+ @supports (color: color-mix(in lch, red, blue)){
2299
+ [data-hl-switch] input[type='checkbox'] {
2300
+ background: color-mix(in oklab, var(--hl-color-fg) 16%, transparent);
2301
+ }
2302
+ }
2303
+
2304
+ [data-hl-switch] input[type='checkbox']::after {
2305
+ content: '';
2306
+ position: absolute;
2307
+ top: 2px;
2308
+ right: auto;
2309
+ bottom: auto;
2310
+ left: 2px;
2311
+ width: calc(1.25rem - 4px);
2312
+ height: calc(1.25rem - 4px);
2313
+ border-radius: 50%;
2314
+ background: hsl(0, 0%, 100%);
2315
+ background: var(--hl-color-bg);
2316
+ transition: transform 150ms ease;
2317
+ }
2318
+
2319
+ [data-hl-switch] input[type='checkbox']:checked::after {
2320
+ transform: translateX(1rem);
2321
+ }
2322
+
2323
+ [data-hl-switch] input[type='checkbox']:checked {
2324
+ background: hsl(221, 83%, 53%);
2325
+ background: var(--hl-color-accent);
2326
+ }
2327
+ }
2328
+
2329
+ /**
2330
+ * Field — accessible form-control layout: `.hl-field` stacks a `.hl-label`,
2331
+ * the control, `.hl-help`, and `.hl-error`. `.hl-fieldset` + `.hl-legend`
2332
+ * group related fields.
2333
+ */
2334
+
2335
+ @layer components {
2336
+ .hl-field {
2337
+ display: flex;
2338
+ flex-direction: column;
2339
+ gap: 0.375rem;
2340
+ gap: var(--hl-space-1-5);
2341
+ }
2342
+
2343
+ .hl-label {
2344
+ font-size: 0.875rem;
2345
+ font-size: var(--hl-text-sm);
2346
+ font-weight: 500;
2347
+ font-weight: var(--hl-font-medium);
2348
+ color: hsl(222, 47%, 11%);
2349
+ color: var(--hl-fg);
2350
+ }
2351
+
2352
+ .hl-label[data-hl-required]::after {
2353
+ content: '*';
2354
+ margin-left: 0.25rem;
2355
+ margin-left: var(--hl-space-1);
2356
+ color: hsl(0, 72%, 51%);
2357
+ color: var(--hl-danger);
2358
+ }
2359
+
2360
+ .hl-help {
2361
+ margin: 0;
2362
+ font-size: 0.75rem;
2363
+ font-size: var(--hl-text-xs);
2364
+ color: hsl(215, 19%, 35%);
2365
+ color: var(--hl-fg-muted);
2366
+ }
2367
+
2368
+ .hl-error {
2369
+ margin: 0;
2370
+ font-size: 0.75rem;
2371
+ font-size: var(--hl-text-xs);
2372
+ font-weight: 500;
2373
+ font-weight: var(--hl-font-medium);
2374
+ color: hsl(0, 72%, 51%);
2375
+ color: var(--hl-danger);
2376
+ }
2377
+
2378
+ .hl-field[data-hl-invalid] .hl-label {
2379
+ color: hsl(0, 72%, 51%);
2380
+ color: var(--hl-danger);
2381
+ }
2382
+
2383
+ .hl-fieldset {
2384
+ margin: 0;
2385
+ padding: 1rem;
2386
+ padding: var(--hl-space-4);
2387
+ border: 1px solid hsl(214, 32%, 91%);
2388
+ border: var(--hl-border-width) solid var(--hl-border);
2389
+ border-radius: 0.5rem;
2390
+ border-radius: var(--hl-radius-lg);
2391
+ display: flex;
2392
+ flex-direction: column;
2393
+ gap: 1rem;
2394
+ gap: var(--hl-space-4);
2395
+ }
2396
+
2397
+ .hl-legend {
2398
+ padding-left: 0.5rem;
2399
+ padding-right: 0.5rem;
2400
+ padding-left: var(--hl-space-2);
2401
+ padding-right: var(--hl-space-2);
2402
+ font-size: 0.875rem;
2403
+ font-size: var(--hl-text-sm);
2404
+ font-weight: 600;
2405
+ font-weight: var(--hl-font-semibold);
2406
+ color: hsl(222, 47%, 11%);
2407
+ color: var(--hl-fg);
2408
+ }
2409
+ }
2410
+
2411
+ /**
2412
+ * Combobox — `<div data-hl-combobox>` wrapping an `<input>` and a
2413
+ * `<ul role="listbox">` of `<li role="option">`. The enhancer toggles the
2414
+ * listbox and manages `aria-activedescendant`.
2415
+ */
2416
+
2417
+ @layer components {
2418
+ [data-hl-combobox] {
2419
+ position: relative;
2420
+ display: block;
2421
+ }
2422
+
2423
+ [data-hl-combobox] [role='listbox'] {
2424
+ position: absolute;
2425
+ top: calc(100% + 0.25rem);
2426
+ top: calc(100% + var(--hl-space-1));
2427
+ left: 0;
2428
+ right: 0;
2429
+ z-index: 1000;
2430
+ z-index: var(--hl-z-dropdown);
2431
+ max-height: 16rem;
2432
+ margin: 0;
2433
+ padding: 0.25rem;
2434
+ padding: var(--hl-space-1);
2435
+ overflow-y: auto;
2436
+ list-style: none;
2437
+ background: hsl(0, 0%, 100%);
2438
+ background: var(--hl-overlay);
2439
+ border: 1px solid hsl(214, 32%, 91%);
2440
+ border: var(--hl-border-width) solid var(--hl-border);
2441
+ border-radius: 0.5rem;
2442
+ border-radius: var(--hl-radius-lg);
2443
+ box-shadow: 0 10px 15px -3px hsla(222, 47%, 11%, 0.1), 0 4px 6px -4px hsla(222, 47%, 11%, 0.1);
2444
+ box-shadow: var(--hl-overlay-shadow);
2445
+ }
2446
+
2447
+ [data-hl-combobox] [role='listbox'][hidden] {
2448
+ display: none;
2449
+ }
2450
+
2451
+ [data-hl-combobox] [role='option'] {
2452
+ display: flex;
2453
+ align-items: center;
2454
+ gap: 0.5rem;
2455
+ gap: var(--hl-space-2);
2456
+ padding: 0.5rem 0.75rem;
2457
+ padding: var(--hl-space-2) var(--hl-space-3);
2458
+ border-radius: 0.375rem;
2459
+ border-radius: var(--hl-radius-md);
2460
+ font-size: 0.875rem;
2461
+ font-size: var(--hl-text-sm);
2462
+ color: hsl(222, 47%, 11%);
2463
+ color: var(--hl-fg);
2464
+ cursor: pointer;
2465
+ }
2466
+
2467
+ [data-hl-combobox] [role='option']:hover,
2468
+ [data-hl-combobox] [role='option'][aria-selected='true'] {
2469
+ background: hsl(214, 100%, 97%);
2470
+ background: var(--hl-primary-subtle);
2471
+ color: hsl(224, 76%, 48%);
2472
+ color: var(--hl-primary-subtle-fg);
2473
+ }
2474
+
2475
+ [data-hl-combobox] [role='option'][hidden] {
2476
+ display: none;
2477
+ }
2478
+
2479
+ [data-hl-combobox] [role='option'][aria-disabled='true'] {
2480
+ opacity: 0.5;
2481
+ pointer-events: none;
2482
+ }
2483
+ }
2484
+
2485
+ /**
2486
+ * Segmented control — `<div class="hl-segmented" role="radiogroup">` of
2487
+ * `<label class="hl-segmented-item"><input type="radio">…</label>` segments.
2488
+ * Radio inputs give free keyboard navigation; the checked segment is raised.
2489
+ * A button variant using `aria-pressed="true"` is also supported.
2490
+ * data-hl-size: sm | md (default) | lg
2491
+ */
2492
+
2493
+ @layer components {
2494
+ .hl-segmented {
2495
+ display: inline-flex;
2496
+ align-items: stretch;
2497
+ gap: 0.25rem;
2498
+ gap: var(--hl-space-1);
2499
+ padding: 0.25rem;
2500
+ padding: var(--hl-space-1);
2501
+ background: hsl(210, 40%, 96%);
2502
+ background: var(--hl-surface-2);
2503
+ border: 1px solid hsl(214, 32%, 91%);
2504
+ border: var(--hl-border-width) solid var(--hl-border);
2505
+ border-radius: 0.5rem;
2506
+ border-radius: var(--hl-radius-lg);
2507
+ }
2508
+
2509
+ .hl-segmented-item {
2510
+ position: relative;
2511
+ display: inline-flex;
2512
+ align-items: center;
2513
+ justify-content: center;
2514
+ gap: 0.5rem;
2515
+ gap: var(--hl-space-2);
2516
+ padding: 0.25rem 0.75rem;
2517
+ padding: var(--hl-space-1) var(--hl-space-3);
2518
+ border: 0;
2519
+ border-radius: 0.375rem;
2520
+ border-radius: var(--hl-radius-md);
2521
+ background: transparent;
2522
+ color: hsl(215, 19%, 35%);
2523
+ color: var(--hl-fg-muted);
2524
+ font: inherit;
2525
+ font-size: 0.875rem;
2526
+ font-size: var(--hl-text-sm);
2527
+ font-weight: 500;
2528
+ font-weight: var(--hl-font-medium);
2529
+ white-space: nowrap;
2530
+ cursor: pointer;
2531
+ -webkit-user-select: none;
2532
+ -moz-user-select: none;
2533
+ user-select: none;
2534
+ transition:
2535
+ background-color 120ms cubic-bezier(0.2, 0, 0, 1), color 120ms cubic-bezier(0.2, 0, 0, 1);
2536
+ transition:
2537
+ background-color var(--hl-duration-fast) var(--hl-ease-standard), color var(--hl-duration-fast) var(--hl-ease-standard);
2538
+ }
2539
+
2540
+ .hl-segmented-item > input {
2541
+ position: absolute;
2542
+ top: 0;
2543
+ right: 0;
2544
+ bottom: 0;
2545
+ left: 0;
2546
+ margin: 0;
2547
+ opacity: 0;
2548
+ cursor: pointer;
2549
+ }
2550
+
2551
+ .hl-segmented-item:hover {
2552
+ color: hsl(222, 47%, 11%);
2553
+ color: var(--hl-fg);
2554
+ }
2555
+
2556
+ .hl-segmented-item:has(input:checked),
2557
+ .hl-segmented-item[aria-pressed='true'] {
2558
+ background: hsl(0, 0%, 100%);
2559
+ background: var(--hl-surface);
2560
+ color: hsl(222, 47%, 11%);
2561
+ color: var(--hl-fg);
2562
+ box-shadow: 0 1px 3px 0 hsla(222, 47%, 11%, 0.1), 0 1px 2px -1px hsla(222, 47%, 11%, 0.1);
2563
+ box-shadow: var(--hl-shadow-sm);
2564
+ }
2565
+
2566
+ .hl-segmented-item:has(input:focus-visible),
2567
+ .hl-segmented-item[aria-pressed]:focus-visible {
2568
+ outline: 2px solid hsl(217, 91%, 60%);
2569
+ outline: var(--hl-focus-ring);
2570
+ outline-offset: 2px;
2571
+ }
2572
+
2573
+ .hl-segmented-item:has(input:disabled),
2574
+ .hl-segmented-item:disabled {
2575
+ opacity: 0.5;
2576
+ cursor: not-allowed;
2577
+ }
2578
+
2579
+ .hl-segmented[data-hl-size='sm'] .hl-segmented-item {
2580
+ padding: 0.125rem 0.5rem;
2581
+ padding: 0.125rem var(--hl-space-2);
2582
+ font-size: 0.75rem;
2583
+ font-size: var(--hl-text-xs);
2584
+ }
2585
+
2586
+ .hl-segmented[data-hl-size='lg'] .hl-segmented-item {
2587
+ padding: 0.5rem 1rem;
2588
+ padding: var(--hl-space-2) var(--hl-space-4);
2589
+ font-size: 1rem;
2590
+ font-size: var(--hl-text-base);
2591
+ }
2592
+ }
2593
+
2594
+ /**
2595
+ * Slider — native `<input type="range" class="hl-slider">`. Restyled track and
2596
+ * thumb across WebKit/Blink and Firefox while keeping native keyboard support.
2597
+ */
2598
+
2599
+ @layer components {
2600
+ .hl-slider {
2601
+ --_track: 0.375rem;
2602
+ --_thumb: 1.15rem;
2603
+
2604
+ -webkit-appearance: none;
2605
+
2606
+ -moz-appearance: none;
2607
+
2608
+ appearance: none;
2609
+ width: 100%;
2610
+ height: 1.15rem;
2611
+ height: var(--_thumb);
2612
+ margin: 0;
2613
+ background: transparent;
2614
+ cursor: pointer;
2615
+ }
2616
+
2617
+ .hl-slider::-webkit-slider-runnable-track {
2618
+ height: var(--_track);
2619
+ border-radius: 9999px;
2620
+ border-radius: var(--hl-radius-full);
2621
+ background: hsl(214, 32%, 91%);
2622
+ background: var(--hl-surface-3);
2623
+ }
2624
+
2625
+ .hl-slider::-moz-range-track {
2626
+ height: var(--_track);
2627
+ border-radius: 9999px;
2628
+ border-radius: var(--hl-radius-full);
2629
+ background: hsl(214, 32%, 91%);
2630
+ background: var(--hl-surface-3);
2631
+ }
2632
+
2633
+ .hl-slider::-moz-range-progress {
2634
+ height: var(--_track);
2635
+ border-radius: 9999px;
2636
+ border-radius: var(--hl-radius-full);
2637
+ background: hsl(221, 83%, 53%);
2638
+ background: var(--hl-primary);
2639
+ }
2640
+
2641
+ .hl-slider::-webkit-slider-thumb {
2642
+ -webkit-appearance: none;
2643
+ appearance: none;
2644
+ width: var(--_thumb);
2645
+ height: var(--_thumb);
2646
+ margin-top: calc((var(--_track) - var(--_thumb)) / 2);
2647
+ border: 2px solid hsl(0, 0%, 100%);
2648
+ border: 2px solid var(--hl-surface);
2649
+ border-radius: 9999px;
2650
+ border-radius: var(--hl-radius-full);
2651
+ background: hsl(221, 83%, 53%);
2652
+ background: var(--hl-primary);
2653
+ box-shadow: 0 1px 3px 0 hsla(222, 47%, 11%, 0.1), 0 1px 2px -1px hsla(222, 47%, 11%, 0.1);
2654
+ box-shadow: var(--hl-shadow-sm);
2655
+ -webkit-transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);
2656
+ transition: transform 120ms cubic-bezier(0.2, 0, 0, 1);
2657
+ -webkit-transition: transform var(--hl-duration-fast) var(--hl-ease-standard);
2658
+ transition: transform var(--hl-duration-fast) var(--hl-ease-standard);
2659
+ }
2660
+
2661
+ .hl-slider::-moz-range-thumb {
2662
+ width: var(--_thumb);
2663
+ height: var(--_thumb);
2664
+ border: 2px solid hsl(0, 0%, 100%);
2665
+ border: 2px solid var(--hl-surface);
2666
+ border-radius: 9999px;
2667
+ border-radius: var(--hl-radius-full);
2668
+ background: hsl(221, 83%, 53%);
2669
+ background: var(--hl-primary);
2670
+ box-shadow: 0 1px 3px 0 hsla(222, 47%, 11%, 0.1), 0 1px 2px -1px hsla(222, 47%, 11%, 0.1);
2671
+ box-shadow: var(--hl-shadow-sm);
2672
+ }
2673
+
2674
+ .hl-slider:active::-webkit-slider-thumb {
2675
+ transform: scale(1.1);
2676
+ }
2677
+
2678
+ .hl-slider:focus-visible {
2679
+ outline: none;
2680
+ }
2681
+
2682
+ .hl-slider:focus-visible::-webkit-slider-thumb {
2683
+ box-shadow: 0 0 0 4px rgba(60, 131, 246, 0.35);
2684
+ }
2685
+
2686
+ @supports (color: color-mix(in lch, red, blue)){
2687
+ .hl-slider:focus-visible::-webkit-slider-thumb {
2688
+ box-shadow: 0 0 0 4px color-mix(in oklab, var(--hl-ring) 35%, transparent);
2689
+ }
2690
+ }
2691
+
2692
+ .hl-slider:focus-visible::-moz-range-thumb {
2693
+ box-shadow: 0 0 0 4px rgba(60, 131, 246, 0.35);
2694
+ }
2695
+
2696
+ @supports (color: color-mix(in lch, red, blue)){
2697
+ .hl-slider:focus-visible::-moz-range-thumb {
2698
+ box-shadow: 0 0 0 4px color-mix(in oklab, var(--hl-ring) 35%, transparent);
2699
+ }
2700
+ }
2701
+
2702
+ .hl-slider:disabled {
2703
+ cursor: not-allowed;
2704
+ opacity: 0.6;
2705
+ }
2706
+ }
2707
+
2708
+ /* Feedback & data display */
2709
+
2710
+ /**
2711
+ * Alert — `<div class="hl-alert" role="alert" data-hl-intent="…">` with an
2712
+ * optional icon, `.hl-alert-title`, and body content.
2713
+ * data-hl-intent: info (default) | success | warning | danger | neutral
2714
+ */
2715
+
2716
+ @layer components {
2717
+ .hl-alert {
2718
+ --_accent: var(--hl-info);
2719
+ --_bg: var(--hl-info-subtle);
2720
+ --_fg: var(--hl-info-subtle-fg);
2721
+
2722
+ display: flex;
2723
+ gap: 0.75rem;
2724
+ gap: var(--hl-space-3);
2725
+ padding: 0.75rem 1rem;
2726
+ padding: var(--hl-space-3) var(--hl-space-4);
2727
+ border: 1px solid transparent;
2728
+ border: var(--hl-border-width) solid transparent;
2729
+ border-left: 3px solid hsl(200, 98%, 39%);
2730
+ border-left: 3px solid hsl(200deg 98% 39%);
2731
+ border-left: 3px solid var(--_accent);
2732
+ border-radius: 0.375rem;
2733
+ border-radius: var(--hl-radius-md);
2734
+ background: hsl(204, 100%, 97%);
2735
+ background: var(--_bg);
2736
+ color: hsl(201, 96%, 32%);
2737
+ color: var(--_fg);
2738
+ font-size: 0.875rem;
2739
+ font-size: var(--hl-text-sm);
2740
+ line-height: 1.5;
2741
+ line-height: var(--hl-leading-normal);
2742
+ }
2743
+
2744
+ .hl-alert[data-hl-intent='success'] {
2745
+ --_accent: var(--hl-success);
2746
+ --_bg: var(--hl-success-subtle);
2747
+ --_fg: var(--hl-success-subtle-fg);
2748
+ }
2749
+
2750
+ .hl-alert[data-hl-intent='warning'] {
2751
+ --_accent: var(--hl-warning);
2752
+ --_bg: var(--hl-warning-subtle);
2753
+ --_fg: var(--hl-warning-subtle-fg);
2754
+ }
2755
+
2756
+ .hl-alert[data-hl-intent='danger'] {
2757
+ --_accent: var(--hl-danger);
2758
+ --_bg: var(--hl-danger-subtle);
2759
+ --_fg: var(--hl-danger-subtle-fg);
2760
+ }
2761
+
2762
+ .hl-alert[data-hl-intent='neutral'] {
2763
+ --_accent: var(--hl-border-strong);
2764
+ --_bg: var(--hl-surface-2);
2765
+ --_fg: var(--hl-fg);
2766
+ }
2767
+
2768
+ .hl-alert > svg:first-child {
2769
+ flex: none;
2770
+ width: 1.25rem;
2771
+ height: 1.25rem;
2772
+ margin-top: 0.1rem;
2773
+ color: var(--_accent);
2774
+ }
2775
+
2776
+ .hl-alert-body {
2777
+ display: flex;
2778
+ flex-direction: column;
2779
+ gap: 0.25rem;
2780
+ gap: var(--hl-space-1);
2781
+ min-width: 0;
2782
+ }
2783
+
2784
+ .hl-alert-title {
2785
+ margin: 0;
2786
+ font-size: 0.875rem;
2787
+ font-size: var(--hl-text-sm);
2788
+ font-weight: 600;
2789
+ font-weight: var(--hl-font-semibold);
2790
+ }
2791
+
2792
+ .hl-alert p {
2793
+ margin: 0;
2794
+ }
2795
+ }
2796
+
2797
+ /**
2798
+ * Badge — `<span class="hl-badge" data-hl-intent="…" data-hl-variant="…">`.
2799
+ * data-hl-intent: neutral (default) | primary | danger | success | warning | info
2800
+ * data-hl-variant: soft (default) | solid | outline
2801
+ * data-hl-size: sm | md (default)
2802
+ */
2803
+
2804
+ @layer components {
2805
+ .hl-badge {
2806
+ --_solid-bg: var(--hl-surface-3);
2807
+ --_solid-fg: var(--hl-fg);
2808
+ --_soft-bg: var(--hl-surface-2);
2809
+ --_soft-fg: var(--hl-fg);
2810
+ --_accent: var(--hl-border-strong);
2811
+
2812
+ display: inline-flex;
2813
+ align-items: center;
2814
+ gap: 0.25rem;
2815
+ gap: var(--hl-space-1);
2816
+ padding: 0.125rem 0.5rem;
2817
+ padding: 0.125rem var(--hl-space-2);
2818
+ border: 1px solid transparent;
2819
+ border: var(--hl-border-width) solid transparent;
2820
+ border-radius: 9999px;
2821
+ border-radius: var(--hl-radius-full);
2822
+ background: hsl(210, 40%, 96%);
2823
+ background: var(--_soft-bg);
2824
+ color: hsl(222, 47%, 11%);
2825
+ color: var(--_soft-fg);
2826
+ font-size: 0.75rem;
2827
+ font-size: var(--hl-text-xs);
2828
+ font-weight: 500;
2829
+ font-weight: var(--hl-font-medium);
2830
+ line-height: 1.25;
2831
+ line-height: var(--hl-leading-tight);
2832
+ white-space: nowrap;
2833
+ }
2834
+
2835
+ .hl-badge[data-hl-intent='primary'] {
2836
+ --_solid-bg: var(--hl-primary);
2837
+ --_solid-fg: var(--hl-primary-fg);
2838
+ --_soft-bg: var(--hl-primary-subtle);
2839
+ --_soft-fg: var(--hl-primary-subtle-fg);
2840
+ --_accent: var(--hl-primary);
2841
+ }
2842
+
2843
+ .hl-badge[data-hl-intent='danger'] {
2844
+ --_solid-bg: var(--hl-danger);
2845
+ --_solid-fg: var(--hl-danger-fg);
2846
+ --_soft-bg: var(--hl-danger-subtle);
2847
+ --_soft-fg: var(--hl-danger-subtle-fg);
2848
+ --_accent: var(--hl-danger);
2849
+ }
2850
+
2851
+ .hl-badge[data-hl-intent='success'] {
2852
+ --_solid-bg: var(--hl-success);
2853
+ --_solid-fg: var(--hl-success-fg);
2854
+ --_soft-bg: var(--hl-success-subtle);
2855
+ --_soft-fg: var(--hl-success-subtle-fg);
2856
+ --_accent: var(--hl-success);
2857
+ }
2858
+
2859
+ .hl-badge[data-hl-intent='warning'] {
2860
+ --_solid-bg: var(--hl-warning);
2861
+ --_solid-fg: var(--hl-warning-fg);
2862
+ --_soft-bg: var(--hl-warning-subtle);
2863
+ --_soft-fg: var(--hl-warning-subtle-fg);
2864
+ --_accent: var(--hl-warning);
2865
+ }
2866
+
2867
+ .hl-badge[data-hl-intent='info'] {
2868
+ --_solid-bg: var(--hl-info);
2869
+ --_solid-fg: var(--hl-info-fg);
2870
+ --_soft-bg: var(--hl-info-subtle);
2871
+ --_soft-fg: var(--hl-info-subtle-fg);
2872
+ --_accent: var(--hl-info);
2873
+ }
2874
+
2875
+ .hl-badge[data-hl-variant='solid'] {
2876
+ background: var(--_solid-bg);
2877
+ color: var(--_solid-fg);
2878
+ }
2879
+
2880
+ .hl-badge[data-hl-variant='outline'] {
2881
+ background: transparent;
2882
+ color: var(--_accent);
2883
+ border-color: currentcolor;
2884
+ }
2885
+
2886
+ .hl-badge[data-hl-size='sm'] {
2887
+ padding: 0 0.375rem;
2888
+ padding: 0 var(--hl-space-1-5);
2889
+ font-size: 0.6875rem;
2890
+ }
2891
+ }
2892
+
2893
+ /**
2894
+ * Card — `<div class="hl-card">` with optional `.hl-card-header`,
2895
+ * `.hl-card-body`, `.hl-card-footer`, `.hl-card-title`, `.hl-card-description`.
2896
+ * data-hl-interactive: hover/active elevation for clickable cards
2897
+ */
2898
+
2899
+ @layer components {
2900
+ .hl-card {
2901
+ display: flex;
2902
+ flex-direction: column;
2903
+ background: hsl(0, 0%, 100%);
2904
+ background: var(--hl-surface);
2905
+ border: 1px solid hsl(214, 32%, 91%);
2906
+ border: var(--hl-border-width) solid var(--hl-border);
2907
+ border-radius: 0.75rem;
2908
+ border-radius: var(--hl-radius-xl);
2909
+ box-shadow: 0 1px 3px 0 hsla(222, 47%, 11%, 0.1), 0 1px 2px -1px hsla(222, 47%, 11%, 0.1);
2910
+ box-shadow: var(--hl-shadow-sm);
2911
+ overflow: hidden;
2912
+ }
2913
+
2914
+ .hl-card-header {
2915
+ display: flex;
2916
+ flex-direction: column;
2917
+ gap: 0.25rem;
2918
+ gap: var(--hl-space-1);
2919
+ padding: 1rem 1.25rem;
2920
+ padding: var(--hl-space-4) var(--hl-space-5);
2921
+ border-bottom: 1px solid hsl(214, 32%, 91%);
2922
+ border-bottom: 1px solid hsl(214deg 32% 91%);
2923
+ border-bottom: var(--hl-border-width) solid var(--hl-border);
2924
+ }
2925
+
2926
+ .hl-card-body {
2927
+ flex: 1 1 auto;
2928
+ padding: 1.25rem;
2929
+ padding: var(--hl-space-5);
2930
+ }
2931
+
2932
+ .hl-card-footer {
2933
+ display: flex;
2934
+ align-items: center;
2935
+ gap: 0.5rem;
2936
+ gap: var(--hl-space-2);
2937
+ padding: 1rem 1.25rem;
2938
+ padding: var(--hl-space-4) var(--hl-space-5);
2939
+ border-top: 1px solid hsl(214, 32%, 91%);
2940
+ border-top: 1px solid hsl(214deg 32% 91%);
2941
+ border-top: var(--hl-border-width) solid var(--hl-border);
2942
+ background: hsl(210, 40%, 96%);
2943
+ background: var(--hl-surface-2);
2944
+ }
2945
+
2946
+ .hl-card-title {
2947
+ margin: 0;
2948
+ font-size: 1.125rem;
2949
+ font-size: var(--hl-text-lg);
2950
+ font-weight: 600;
2951
+ font-weight: var(--hl-font-semibold);
2952
+ line-height: 1.25;
2953
+ line-height: var(--hl-leading-tight);
2954
+ }
2955
+
2956
+ .hl-card-description {
2957
+ margin: 0;
2958
+ font-size: 0.875rem;
2959
+ font-size: var(--hl-text-sm);
2960
+ color: hsl(215, 19%, 35%);
2961
+ color: var(--hl-fg-muted);
2962
+ }
2963
+
2964
+ .hl-card[data-hl-interactive] {
2965
+ cursor: pointer;
2966
+ transition:
2967
+ border-color 120ms cubic-bezier(0.2, 0, 0, 1), box-shadow 180ms cubic-bezier(0.2, 0, 0, 1), transform 180ms cubic-bezier(0.2, 0, 0, 1);
2968
+ transition:
2969
+ border-color var(--hl-duration-fast) var(--hl-ease-standard), box-shadow var(--hl-duration-base) var(--hl-ease-standard), transform var(--hl-duration-base) var(--hl-ease-standard);
2970
+ }
2971
+
2972
+ .hl-card[data-hl-interactive]:hover {
2973
+ border-color: hsl(213, 27%, 84%);
2974
+ border-color: var(--hl-border-strong);
2975
+ box-shadow: 0 4px 6px -1px hsla(222, 47%, 11%, 0.1), 0 2px 4px -2px hsla(222, 47%, 11%, 0.1);
2976
+ box-shadow: var(--hl-shadow-md);
2977
+ }
2978
+
2979
+ .hl-card[data-hl-interactive]:focus-within {
2980
+ outline: 2px solid hsl(217, 91%, 60%);
2981
+ outline: var(--hl-focus-ring);
2982
+ outline-offset: 2px;
2983
+ }
2984
+
2985
+ .hl-card[data-hl-interactive]:active {
2986
+ transform: translateY(1px);
2987
+ }
2988
+ }
2989
+
2990
+ /**
2991
+ * Avatar — `<span class="hl-avatar">` containing an `<img>` or fallback
2992
+ * initials/icon. Stack with `<div class="hl-avatar-group">`.
2993
+ * data-hl-size: xs | sm | md (default) | lg | xl
2994
+ * data-hl-shape: square
2995
+ */
2996
+
2997
+ @layer components {
2998
+ .hl-avatar {
2999
+ --_size: 2.5rem;
3000
+
3001
+ position: relative;
3002
+ display: inline-grid;
3003
+ align-items: center;
3004
+ justify-items: center;
3005
+ place-items: center;
3006
+ flex: none;
3007
+ width: 2.5rem;
3008
+ width: var(--_size);
3009
+ height: 2.5rem;
3010
+ height: var(--_size);
3011
+ border-radius: 9999px;
3012
+ border-radius: var(--hl-radius-full);
3013
+ overflow: hidden;
3014
+ background: hsl(214, 32%, 91%);
3015
+ background: var(--hl-surface-3);
3016
+ color: hsl(215, 19%, 35%);
3017
+ color: var(--hl-fg-muted);
3018
+ font-size: calc(2.5rem * 0.4);
3019
+ font-size: calc(var(--_size) * 0.4);
3020
+ font-weight: 500;
3021
+ font-weight: var(--hl-font-medium);
3022
+ line-height: 1;
3023
+ text-transform: uppercase;
3024
+ -webkit-user-select: none;
3025
+ -moz-user-select: none;
3026
+ user-select: none;
3027
+ }
3028
+
3029
+ .hl-avatar[data-hl-shape='square'] {
3030
+ border-radius: 0.5rem;
3031
+ border-radius: var(--hl-radius-lg);
3032
+ }
3033
+
3034
+ .hl-avatar > img {
3035
+ width: 100%;
3036
+ height: 100%;
3037
+ -o-object-fit: cover;
3038
+ object-fit: cover;
3039
+ }
3040
+
3041
+ .hl-avatar[data-hl-size='xs'] {
3042
+ --_size: 1.5rem;
3043
+ }
3044
+
3045
+ .hl-avatar[data-hl-size='sm'] {
3046
+ --_size: 2rem;
3047
+ }
3048
+
3049
+ .hl-avatar[data-hl-size='lg'] {
3050
+ --_size: 3rem;
3051
+ }
3052
+
3053
+ .hl-avatar[data-hl-size='xl'] {
3054
+ --_size: 4rem;
3055
+ }
3056
+
3057
+ .hl-avatar-group {
3058
+ display: inline-flex;
3059
+ align-items: center;
3060
+ }
3061
+
3062
+ .hl-avatar-group > .hl-avatar {
3063
+ box-shadow: 0 0 0 2px hsl(0, 0%, 100%);
3064
+ box-shadow: 0 0 0 2px var(--hl-surface);
3065
+ }
3066
+
3067
+ .hl-avatar-group > .hl-avatar:not(:first-child) {
3068
+ margin-left: -0.6rem;
3069
+ }
3070
+ }
3071
+
3072
+ /**
3073
+ * Progress — native `<progress class="hl-progress" value max>`. Omit `value`
3074
+ * for an indeterminate bar.
3075
+ * data-hl-intent: primary (default) | success | warning | danger | info
3076
+ * data-hl-size: sm | md (default) | lg
3077
+ */
3078
+
3079
+ @layer components {
3080
+ .hl-progress {
3081
+ --_color: var(--hl-primary);
3082
+ --_height: 0.5rem;
3083
+
3084
+ -webkit-appearance: none;
3085
+
3086
+ -moz-appearance: none;
3087
+
3088
+ appearance: none;
3089
+ width: 100%;
3090
+ height: 0.5rem;
3091
+ height: var(--_height);
3092
+ border: 0;
3093
+ border-radius: 9999px;
3094
+ border-radius: var(--hl-radius-full);
3095
+ overflow: hidden;
3096
+ background: hsl(214, 32%, 91%);
3097
+ background: var(--hl-surface-3);
3098
+ color: hsl(221, 83%, 53%);
3099
+ color: var(--_color);
3100
+ }
3101
+
3102
+ .hl-progress[data-hl-size='sm'] {
3103
+ --_height: 0.25rem;
3104
+ }
3105
+
3106
+ .hl-progress[data-hl-size='lg'] {
3107
+ --_height: 0.75rem;
3108
+ }
3109
+
3110
+ .hl-progress[data-hl-intent='success'] {
3111
+ --_color: var(--hl-success);
3112
+ }
3113
+
3114
+ .hl-progress[data-hl-intent='warning'] {
3115
+ --_color: var(--hl-warning);
3116
+ }
3117
+
3118
+ .hl-progress[data-hl-intent='danger'] {
3119
+ --_color: var(--hl-danger);
3120
+ }
3121
+
3122
+ .hl-progress[data-hl-intent='info'] {
3123
+ --_color: var(--hl-info);
3124
+ }
3125
+
3126
+ .hl-progress::-webkit-progress-bar {
3127
+ background: transparent;
3128
+ }
3129
+
3130
+ .hl-progress::-webkit-progress-value {
3131
+ background: var(--_color);
3132
+ border-radius: 9999px;
3133
+ border-radius: var(--hl-radius-full);
3134
+ -webkit-transition: width 180ms cubic-bezier(0.2, 0, 0, 1);
3135
+ transition: width 180ms cubic-bezier(0.2, 0, 0, 1);
3136
+ -webkit-transition: width var(--hl-duration-base) var(--hl-ease-standard);
3137
+ transition: width var(--hl-duration-base) var(--hl-ease-standard);
3138
+ }
3139
+
3140
+ .hl-progress::-moz-progress-bar {
3141
+ background: var(--_color);
3142
+ border-radius: 9999px;
3143
+ border-radius: var(--hl-radius-full);
3144
+ }
3145
+
3146
+ .hl-progress:indeterminate {
3147
+ background: linear-gradient(90deg, transparent 0%, var(--_color) 50%, transparent 100%)
3148
+ hsl(214, 32%, 91%);
3149
+ background: linear-gradient(90deg, transparent 0%, var(--_color) 50%, transparent 100%)
3150
+ var(--hl-surface-3);
3151
+ background-size: 40% 100%;
3152
+ background-repeat: no-repeat;
3153
+ animation: hl-progress-indeterminate 1.2s cubic-bezier(0.2, 0, 0, 1) infinite;
3154
+ animation: hl-progress-indeterminate 1.2s var(--hl-ease-standard) infinite;
3155
+ }
3156
+
3157
+ .hl-progress:indeterminate::-moz-progress-bar {
3158
+ background: transparent;
3159
+ }
3160
+
3161
+ @keyframes hl-progress-indeterminate {
3162
+ 0% {
3163
+ background-position: -50% 0;
3164
+ }
3165
+
3166
+ 100% {
3167
+ background-position: 150% 0;
3168
+ }
3169
+ }
3170
+
3171
+ @media (prefers-reduced-motion: reduce) {
3172
+ .hl-progress:indeterminate {
3173
+ animation-duration: 3s;
3174
+ }
3175
+ }
3176
+ }
3177
+
3178
+ /**
3179
+ * Spinner — `<span class="hl-spinner" role="status" aria-label="Loading">`.
3180
+ * Inherits `currentColor`, so set `color` to theme it.
3181
+ * data-hl-size: sm | md (default) | lg | xl
3182
+ */
3183
+
3184
+ @layer components {
3185
+ .hl-spinner {
3186
+ --_size: 1.25rem;
3187
+ --_width: 2px;
3188
+
3189
+ display: inline-block;
3190
+ flex: none;
3191
+ width: 1.25rem;
3192
+ width: var(--_size);
3193
+ height: 1.25rem;
3194
+ height: var(--_size);
3195
+ border: 2px solid color-mix(in oklab, currentcolor 25%, transparent);
3196
+ border-top-color: currentcolor;
3197
+ border-radius: 9999px;
3198
+ border-radius: var(--hl-radius-full);
3199
+ animation: hl-spinner-rotate 0.6s linear infinite;
3200
+ }
3201
+
3202
+ @supports (color: color-mix(in lch, red, blue)){
3203
+ .hl-spinner {
3204
+ border: var(--_width) solid color-mix(in oklab, currentcolor 25%, transparent);
3205
+ }
3206
+ }
3207
+
3208
+ .hl-spinner[data-hl-size='sm'] {
3209
+ --_size: 1rem;
3210
+ }
3211
+
3212
+ .hl-spinner[data-hl-size='lg'] {
3213
+ --_size: 1.75rem;
3214
+ --_width: 3px;
3215
+ }
3216
+
3217
+ .hl-spinner[data-hl-size='xl'] {
3218
+ --_size: 2.5rem;
3219
+ --_width: 3px;
3220
+ }
3221
+
3222
+ @keyframes hl-spinner-rotate {
3223
+ to {
3224
+ transform: rotate(1turn);
3225
+ }
3226
+ }
3227
+
3228
+ @media (prefers-reduced-motion: reduce) {
3229
+ .hl-spinner {
3230
+ animation-duration: 1.4s;
3231
+ }
3232
+ }
3233
+ }
3234
+
3235
+ /**
3236
+ * Skeleton — `<span class="hl-skeleton" data-hl-variant="…" aria-hidden="true">`
3237
+ * placeholder shown while content loads.
3238
+ * data-hl-variant: rect (default) | text | circle
3239
+ */
3240
+
3241
+ @layer components {
3242
+ .hl-skeleton {
3243
+ display: block;
3244
+ width: 100%;
3245
+ height: 1rem;
3246
+ border-radius: 0.375rem;
3247
+ border-radius: var(--hl-radius-md);
3248
+ background: linear-gradient(
3249
+ 90deg,
3250
+ hsl(214, 32%, 91%) 25%,
3251
+ hsl(210, 40%, 96%) 37%,
3252
+ hsl(214, 32%, 91%) 63%
3253
+ );
3254
+ background: linear-gradient(
3255
+ 90deg,
3256
+ var(--hl-surface-3) 25%,
3257
+ var(--hl-surface-2) 37%,
3258
+ var(--hl-surface-3) 63%
3259
+ );
3260
+ background-size: 400% 100%;
3261
+ animation: hl-skeleton-shimmer 1.4s cubic-bezier(0.2, 0, 0, 1) infinite;
3262
+ animation: hl-skeleton-shimmer 1.4s var(--hl-ease-standard) infinite;
3263
+ }
3264
+
3265
+ .hl-skeleton[data-hl-variant='text'] {
3266
+ height: 0.7em;
3267
+ border-radius: 0.25rem;
3268
+ border-radius: var(--hl-radius-sm);
3269
+ }
3270
+
3271
+ .hl-skeleton[data-hl-variant='circle'] {
3272
+ width: 2.5rem;
3273
+ height: 2.5rem;
3274
+ border-radius: 9999px;
3275
+ border-radius: var(--hl-radius-full);
3276
+ }
3277
+
3278
+ @keyframes hl-skeleton-shimmer {
3279
+ 0% {
3280
+ background-position: 100% 0;
3281
+ }
3282
+
3283
+ 100% {
3284
+ background-position: 0 0;
3285
+ }
3286
+ }
3287
+
3288
+ @media (prefers-reduced-motion: reduce) {
3289
+ .hl-skeleton {
3290
+ animation: none;
3291
+ background: hsl(214, 32%, 91%);
3292
+ background: var(--hl-surface-3);
3293
+ }
3294
+ }
3295
+ }
3296
+
3297
+ /**
3298
+ * Keyboard key — `<kbd class="hl-kbd">⌘</kbd>`. Combine inline, e.g.
3299
+ * `<kbd class="hl-kbd">⌘</kbd><kbd class="hl-kbd">K</kbd>`.
3300
+ */
3301
+
3302
+ @layer components {
3303
+ .hl-kbd {
3304
+ display: inline-flex;
3305
+ align-items: center;
3306
+ justify-content: center;
3307
+ min-width: 1.5rem;
3308
+ padding: 0.125rem 0.4rem;
3309
+ border: 1px solid hsl(213, 27%, 84%);
3310
+ border: var(--hl-border-width) solid var(--hl-border-strong);
3311
+ border-bottom-width: 2px;
3312
+ border-bottom-width: var(--hl-border-width-2);
3313
+ border-radius: 0.25rem;
3314
+ border-radius: var(--hl-radius-sm);
3315
+ background: hsl(210, 40%, 96%);
3316
+ background: var(--hl-surface-2);
3317
+ color: hsl(222, 47%, 11%);
3318
+ color: var(--hl-fg);
3319
+ font-family: ui-monospace, sfmono-regular, 'SF Mono', menlo, consolas, 'Liberation Mono', monospace;
3320
+ font-family: var(--hl-font-mono);
3321
+ font-size: 0.8125em;
3322
+ line-height: 1;
3323
+ white-space: nowrap;
3324
+ }
3325
+ }
3326
+
3327
+ /**
3328
+ * Table — `<table class="hl-table">`. Semantic table styling with optional
3329
+ * zebra striping and hover.
3330
+ * data-hl-striped: zebra rows
3331
+ * data-hl-hover: highlight row on hover
3332
+ */
3333
+
3334
+ @layer components {
3335
+ .hl-table {
3336
+ width: 100%;
3337
+ border-collapse: collapse;
3338
+ font-size: 0.875rem;
3339
+ font-size: var(--hl-text-sm);
3340
+ color: hsl(222, 47%, 11%);
3341
+ color: var(--hl-fg);
3342
+ }
3343
+
3344
+ .hl-table caption {
3345
+ padding-top: 0.5rem;
3346
+ padding-bottom: 0.5rem;
3347
+ padding-top: var(--hl-space-2);
3348
+ padding-bottom: var(--hl-space-2);
3349
+ color: hsl(215, 19%, 35%);
3350
+ color: var(--hl-fg-muted);
3351
+ text-align: left;
3352
+ caption-side: bottom;
3353
+ }
3354
+
3355
+ .hl-table th,
3356
+ .hl-table td {
3357
+ padding: 0.5rem 0.75rem;
3358
+ padding: var(--hl-space-2) var(--hl-space-3);
3359
+ text-align: left;
3360
+ vertical-align: middle;
3361
+ border-bottom: 1px solid hsl(214, 32%, 91%);
3362
+ border-bottom: 1px solid hsl(214deg 32% 91%);
3363
+ border-bottom: var(--hl-border-width) solid var(--hl-border);
3364
+ }
3365
+
3366
+ .hl-table thead th {
3367
+ font-size: 0.75rem;
3368
+ font-size: var(--hl-text-xs);
3369
+ font-weight: 600;
3370
+ font-weight: var(--hl-font-semibold);
3371
+ text-transform: uppercase;
3372
+ letter-spacing: 0.03em;
3373
+ color: hsl(215, 19%, 35%);
3374
+ color: var(--hl-fg-muted);
3375
+ border-bottom-color: hsl(213, 27%, 84%);
3376
+ border-bottom-color: hsl(213deg 27% 84%);
3377
+ border-bottom-color: var(--hl-border-strong);
3378
+ }
3379
+
3380
+ .hl-table tfoot td {
3381
+ font-weight: 500;
3382
+ font-weight: var(--hl-font-medium);
3383
+ color: hsl(215, 19%, 35%);
3384
+ color: var(--hl-fg-muted);
3385
+ }
3386
+
3387
+ .hl-table[data-hl-striped] tbody tr:nth-child(even) {
3388
+ background: hsl(210, 40%, 96%);
3389
+ background: var(--hl-surface-2);
3390
+ }
3391
+
3392
+ .hl-table[data-hl-hover] tbody tr:hover {
3393
+ background: rgba(36, 99, 235, 0.08);
3394
+ }
3395
+
3396
+ @supports (color: color-mix(in lch, red, blue)){
3397
+ .hl-table[data-hl-hover] tbody tr:hover {
3398
+ background: color-mix(in oklab, var(--hl-primary) 8%, transparent);
3399
+ }
3400
+ }
3401
+
3402
+ .hl-table td[data-hl-align='end'],
3403
+ .hl-table th[data-hl-align='end'] {
3404
+ text-align: right;
3405
+ }
3406
+
3407
+ .hl-table td[data-hl-align='center'],
3408
+ .hl-table th[data-hl-align='center'] {
3409
+ text-align: center;
3410
+ }
3411
+ }
3412
+
3413
+ /* Navigation utilities */
3414
+
3415
+ @layer components {
3416
+ .a11y-skip-link {
3417
+ position: absolute;
3418
+ left: -9999px;
3419
+ top: auto;
3420
+ width: 1px;
3421
+ height: 1px;
3422
+ overflow: hidden;
3423
+ }
3424
+
3425
+ .a11y-skip-link:focus-visible {
3426
+ left: 0;
3427
+ top: 0;
3428
+ width: auto;
3429
+ height: auto;
3430
+ padding: 0.5rem 0.75rem;
3431
+ padding: var(--hl-spacing-2, 0.5rem) var(--hl-spacing-3, 0.75rem);
3432
+ background: hsl(222, 47%, 11%);
3433
+ background: var(--hl-color-fg);
3434
+ color: hsl(0, 0%, 100%);
3435
+ color: var(--hl-color-bg);
3436
+ border-radius: 0.25rem;
3437
+ border-radius: var(--hl-radius-2, 0.25rem);
3438
+ outline: 2px solid hsl(217, 91%, 60%);
3439
+ outline: var(--hl-focus-ring, 2px solid #1f6feb);
3440
+ }
3441
+ }