mac-human-design 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1158 @@
1
+ :root {
2
+ --hd-mac-font:
3
+ -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
4
+ "Helvetica Neue", Helvetica, Arial, sans-serif;
5
+ --hd-mac-blue: #0a84ff;
6
+ --hd-mac-blue-active: #006edb;
7
+ --hd-mac-red: #ff453a;
8
+ --hd-mac-green: #32d74b;
9
+ --hd-mac-text: #1d1d1f;
10
+ --hd-mac-secondary-text: #5f6068;
11
+ --hd-mac-muted-text: #7d7f89;
12
+ --hd-mac-surface: rgba(255, 255, 255, 0.78);
13
+ --hd-mac-panel: rgba(246, 247, 251, 0.72);
14
+ --hd-mac-raised: rgba(255, 255, 255, 0.94);
15
+ --hd-mac-fill: rgba(118, 118, 128, 0.12);
16
+ --hd-mac-fill-hover: rgba(118, 118, 128, 0.18);
17
+ --hd-mac-fill-pressed: rgba(118, 118, 128, 0.24);
18
+ --hd-mac-border: rgba(60, 60, 67, 0.22);
19
+ --hd-mac-border-strong: rgba(60, 60, 67, 0.34);
20
+ --hd-mac-shadow:
21
+ 0 18px 48px rgba(15, 23, 42, 0.16),
22
+ 0 1px 0 rgba(255, 255, 255, 0.7) inset;
23
+ --hd-mac-control-shadow:
24
+ 0 1px 0 rgba(255, 255, 255, 0.86) inset,
25
+ 0 1px 1px rgba(15, 23, 42, 0.08);
26
+ --hd-mac-focus-ring: 0 0 0 3px color-mix(in srgb, var(--hd-mac-blue) 28%, transparent);
27
+ }
28
+
29
+ @media (prefers-color-scheme: dark) {
30
+ :root {
31
+ --hd-mac-blue: #0a84ff;
32
+ --hd-mac-blue-active: #409cff;
33
+ --hd-mac-red: #ff6961;
34
+ --hd-mac-green: #30d158;
35
+ --hd-mac-text: #f5f5f7;
36
+ --hd-mac-secondary-text: #d0d1d7;
37
+ --hd-mac-muted-text: #9a9ca6;
38
+ --hd-mac-surface: rgba(36, 38, 46, 0.78);
39
+ --hd-mac-panel: rgba(48, 50, 59, 0.68);
40
+ --hd-mac-raised: rgba(58, 60, 70, 0.92);
41
+ --hd-mac-fill: rgba(255, 255, 255, 0.09);
42
+ --hd-mac-fill-hover: rgba(255, 255, 255, 0.13);
43
+ --hd-mac-fill-pressed: rgba(255, 255, 255, 0.18);
44
+ --hd-mac-border: rgba(255, 255, 255, 0.16);
45
+ --hd-mac-border-strong: rgba(255, 255, 255, 0.28);
46
+ --hd-mac-shadow:
47
+ 0 22px 56px rgba(0, 0, 0, 0.48),
48
+ 0 1px 0 rgba(255, 255, 255, 0.08) inset;
49
+ --hd-mac-control-shadow:
50
+ 0 1px 0 rgba(255, 255, 255, 0.09) inset,
51
+ 0 1px 2px rgba(0, 0, 0, 0.32);
52
+ }
53
+ }
54
+
55
+ @media (prefers-reduced-motion: reduce) {
56
+ .hd-mac *,
57
+ .hd-mac-button,
58
+ .hd-mac-select-trigger,
59
+ .hd-mac-toggle,
60
+ .hd-mac-toolbar-button,
61
+ .hd-mac-stepper-button,
62
+ .hd-mac-switch,
63
+ .hd-mac-switch-thumb,
64
+ .hd-mac-slider-thumb {
65
+ transition-duration: 1ms !important;
66
+ animation-duration: 1ms !important;
67
+ animation-iteration-count: 1 !important;
68
+ scroll-behavior: auto !important;
69
+ }
70
+ }
71
+
72
+ .hd-mac,
73
+ .hd-mac-button,
74
+ .hd-mac-input,
75
+ .hd-mac-select-trigger,
76
+ .hd-mac-toggle,
77
+ .hd-mac-toolbar,
78
+ .hd-mac-tooltip,
79
+ .hd-mac-popup,
80
+ .hd-mac-dialog {
81
+ box-sizing: border-box;
82
+ font-family: var(--hd-mac-font);
83
+ letter-spacing: 0;
84
+ color: var(--hd-mac-text);
85
+ }
86
+
87
+ .hd-mac-stack,
88
+ .hd-mac-form,
89
+ .hd-mac-fieldset,
90
+ .hd-mac-choice-group {
91
+ display: grid;
92
+ gap: 8px;
93
+ }
94
+
95
+ .hd-mac-window {
96
+ min-height: 100vh;
97
+ box-sizing: border-box;
98
+ display: flex;
99
+ flex-direction: column;
100
+ background: var(--hd-mac-panel);
101
+ color: var(--hd-mac-text);
102
+ font-family: var(--hd-mac-font);
103
+ }
104
+
105
+ .hd-mac-window-content {
106
+ min-height: 0;
107
+ display: flex;
108
+ flex: 1;
109
+ flex-direction: column;
110
+ }
111
+
112
+ .hd-mac-panel {
113
+ border: 1px solid var(--hd-mac-border);
114
+ border-radius: 12px;
115
+ background: var(--hd-mac-panel);
116
+ }
117
+
118
+ .hd-mac-status-message {
119
+ margin-top: 12px;
120
+ border: 1px solid color-mix(in srgb, var(--hd-mac-blue) 28%, transparent);
121
+ border-radius: 10px;
122
+ padding: 8px 12px;
123
+ background: color-mix(in srgb, var(--hd-mac-blue) 10%, transparent);
124
+ color: var(--hd-mac-blue-active);
125
+ font: 400 13px/18px var(--hd-mac-font);
126
+ }
127
+
128
+ .hd-mac-status-message[data-intent="error"] {
129
+ border-color: color-mix(in srgb, var(--hd-mac-red) 34%, transparent);
130
+ background: color-mix(in srgb, var(--hd-mac-red) 12%, transparent);
131
+ color: var(--hd-mac-red);
132
+ }
133
+
134
+ .hd-mac-status-message[data-intent="success"] {
135
+ border-color: color-mix(in srgb, var(--hd-mac-green) 30%, transparent);
136
+ background: color-mix(in srgb, var(--hd-mac-green) 12%, transparent);
137
+ color: var(--hd-mac-green);
138
+ }
139
+
140
+ .hd-mac-button,
141
+ .hd-mac-select-trigger,
142
+ .hd-mac-toggle,
143
+ .hd-mac-toolbar-button,
144
+ .hd-mac-stepper-button {
145
+ appearance: none;
146
+ min-height: 28px;
147
+ border: 1px solid var(--hd-mac-border);
148
+ border-radius: 7px;
149
+ padding: 4px 12px;
150
+ background:
151
+ linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
152
+ var(--hd-mac-raised);
153
+ box-shadow: var(--hd-mac-control-shadow);
154
+ color: var(--hd-mac-text);
155
+ font: 590 13px/18px var(--hd-mac-font);
156
+ cursor: default;
157
+ user-select: none;
158
+ white-space: nowrap;
159
+ transition:
160
+ background-color 120ms ease,
161
+ border-color 120ms ease,
162
+ box-shadow 120ms ease,
163
+ filter 120ms ease,
164
+ transform 80ms ease;
165
+ }
166
+
167
+ .hd-mac-button:hover,
168
+ .hd-mac-select-trigger:hover,
169
+ .hd-mac-toggle:hover,
170
+ .hd-mac-toolbar-button:hover,
171
+ .hd-mac-stepper-button:hover {
172
+ filter: brightness(1.035);
173
+ }
174
+
175
+ .hd-mac-button:active,
176
+ .hd-mac-select-trigger:active,
177
+ .hd-mac-toggle:active,
178
+ .hd-mac-toolbar-button:active,
179
+ .hd-mac-stepper-button:active {
180
+ transform: translateY(1px);
181
+ filter: brightness(0.98);
182
+ }
183
+
184
+ .hd-mac-button:focus-visible,
185
+ .hd-mac-select-trigger:focus-visible,
186
+ .hd-mac-toggle:focus-visible,
187
+ .hd-mac-toolbar-button:focus-visible,
188
+ .hd-mac-stepper-button:focus-visible,
189
+ .hd-mac-input:focus-visible,
190
+ .hd-mac-checkbox:focus-visible,
191
+ .hd-mac-radio:focus-visible,
192
+ .hd-mac-switch:focus-visible,
193
+ .hd-mac-slider-thumb:focus-visible,
194
+ .hd-mac-tab:focus-visible,
195
+ .hd-mac-menu-item:focus-visible {
196
+ outline: none;
197
+ box-shadow: var(--hd-mac-focus-ring), var(--hd-mac-control-shadow);
198
+ }
199
+
200
+ .hd-mac-button[data-variant="primary"],
201
+ .hd-mac-button-primary {
202
+ border-color: transparent;
203
+ color: #fff;
204
+ background: linear-gradient(180deg, #2994ff 0%, var(--hd-mac-blue) 100%);
205
+ }
206
+
207
+ .hd-mac-button[data-variant="secondary"],
208
+ .hd-mac-button-secondary {
209
+ background:
210
+ linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.02)),
211
+ var(--hd-mac-fill-hover);
212
+ }
213
+
214
+ .hd-mac-button[data-variant="destructive"],
215
+ .hd-mac-button-destructive {
216
+ border-color: transparent;
217
+ color: #fff;
218
+ background: linear-gradient(180deg, #ff6961 0%, var(--hd-mac-red) 100%);
219
+ }
220
+
221
+ .hd-mac-button-plain,
222
+ .hd-mac-clear-button,
223
+ .hd-mac-disclosure-trigger {
224
+ min-height: 24px;
225
+ padding: 2px 7px;
226
+ border-color: transparent;
227
+ background: transparent;
228
+ box-shadow: none;
229
+ }
230
+
231
+ .hd-mac-icon-button {
232
+ display: inline-grid;
233
+ width: 28px;
234
+ min-width: 28px;
235
+ height: 28px;
236
+ min-height: 28px;
237
+ place-items: center;
238
+ padding: 0;
239
+ }
240
+
241
+ .hd-mac-help-button {
242
+ display: inline-grid;
243
+ width: 18px;
244
+ min-width: 18px;
245
+ height: 18px;
246
+ min-height: 18px;
247
+ place-items: center;
248
+ border-radius: 999px;
249
+ padding: 0;
250
+ color: var(--hd-mac-secondary-text);
251
+ font: 700 12px/18px var(--hd-mac-font);
252
+ }
253
+
254
+ .hd-mac-button[disabled],
255
+ .hd-mac-select-trigger[disabled],
256
+ .hd-mac-toggle[disabled],
257
+ .hd-mac-input[disabled],
258
+ .hd-mac-stepper-button[disabled],
259
+ .hd-mac-toolbar-button[disabled],
260
+ [data-disabled].hd-mac-menu-item,
261
+ [data-disabled].hd-mac-tab {
262
+ opacity: 0.48;
263
+ pointer-events: none;
264
+ }
265
+
266
+ .hd-mac-field,
267
+ .hd-mac-number-field {
268
+ display: grid;
269
+ gap: 5px;
270
+ }
271
+
272
+ .hd-mac-field-control {
273
+ min-width: 0;
274
+ }
275
+
276
+ .hd-mac-field-item {
277
+ display: grid;
278
+ gap: 5px;
279
+ }
280
+
281
+ .hd-mac-number-field {
282
+ width: 240px;
283
+ }
284
+
285
+ .hd-mac-label,
286
+ .hd-mac-fieldset-legend {
287
+ color: var(--hd-mac-secondary-text);
288
+ font: 590 13px/18px var(--hd-mac-font);
289
+ }
290
+
291
+ .hd-mac-help-text,
292
+ .hd-mac-status-text,
293
+ .hd-mac-error-text,
294
+ .hd-mac-validity {
295
+ color: var(--hd-mac-muted-text);
296
+ font: 400 12px/16px var(--hd-mac-font);
297
+ }
298
+
299
+ .hd-mac-error-text {
300
+ color: var(--hd-mac-red);
301
+ }
302
+
303
+ .hd-mac-input,
304
+ .hd-mac-input-group {
305
+ min-height: 28px;
306
+ border: 1px solid var(--hd-mac-border);
307
+ border-radius: 7px;
308
+ background: var(--hd-mac-raised);
309
+ box-shadow: var(--hd-mac-control-shadow);
310
+ color: var(--hd-mac-text);
311
+ font: 400 13px/18px var(--hd-mac-font);
312
+ }
313
+
314
+ .hd-mac-input {
315
+ width: 100%;
316
+ padding: 4px 8px;
317
+ }
318
+
319
+ .hd-mac-input-group {
320
+ display: flex;
321
+ align-items: center;
322
+ gap: 6px;
323
+ padding: 0 6px;
324
+ }
325
+
326
+ .hd-mac-input-group > .hd-mac-input {
327
+ min-height: 26px;
328
+ border: 0;
329
+ background: transparent;
330
+ box-shadow: none;
331
+ padding-inline: 2px;
332
+ }
333
+
334
+ .hd-mac-input::placeholder {
335
+ color: var(--hd-mac-muted-text);
336
+ }
337
+
338
+ .hd-mac-search-field {
339
+ min-height: 26px;
340
+ border-radius: 7px;
341
+ padding-left: 28px;
342
+ background:
343
+ linear-gradient(90deg, transparent 0 8px, color-mix(in srgb, var(--hd-mac-muted-text) 70%, transparent) 8px 9px, transparent 9px 100%),
344
+ radial-gradient(circle at 15px 12px, transparent 0 4px, color-mix(in srgb, var(--hd-mac-muted-text) 70%, transparent) 4px 5px, transparent 5px),
345
+ var(--hd-mac-raised);
346
+ background-repeat: no-repeat;
347
+ }
348
+
349
+ .hd-mac-select-trigger {
350
+ display: inline-flex;
351
+ align-items: center;
352
+ justify-content: space-between;
353
+ gap: 8px;
354
+ min-width: 128px;
355
+ text-align: left;
356
+ }
357
+
358
+ .hd-mac-pop-up-button {
359
+ min-width: 150px;
360
+ }
361
+
362
+ .hd-mac-pull-down-button::after,
363
+ .hd-mac-pop-up-button::after {
364
+ content: "⌄";
365
+ margin-left: auto;
366
+ color: var(--hd-mac-muted-text);
367
+ font-size: 11px;
368
+ }
369
+
370
+ .hd-mac-number-field > .hd-mac-input-group {
371
+ gap: 0;
372
+ overflow: hidden;
373
+ padding: 0;
374
+ }
375
+
376
+ .hd-mac-number-input {
377
+ min-width: 48px;
378
+ flex: 1;
379
+ text-align: center;
380
+ }
381
+
382
+ .hd-mac-stepper-button {
383
+ width: 32px;
384
+ min-width: 32px;
385
+ border-top: 0;
386
+ border-bottom: 0;
387
+ border-radius: 0;
388
+ padding: 0;
389
+ }
390
+
391
+ .hd-mac-stepper-button:first-child {
392
+ border-left: 0;
393
+ }
394
+
395
+ .hd-mac-stepper-button:last-child {
396
+ border-right: 0;
397
+ }
398
+
399
+ .hd-mac-scrub-area {
400
+ cursor: ew-resize;
401
+ user-select: none;
402
+ }
403
+
404
+ .hd-mac-scrub-cursor {
405
+ width: 1px;
406
+ height: 18px;
407
+ background: var(--hd-mac-blue);
408
+ }
409
+
410
+ .hd-mac-otp-field {
411
+ display: inline-flex;
412
+ align-items: center;
413
+ gap: 6px;
414
+ }
415
+
416
+ .hd-mac-otp-input {
417
+ width: 42px;
418
+ min-width: 42px;
419
+ text-align: center;
420
+ }
421
+
422
+ .hd-mac-otp-separator {
423
+ color: var(--hd-mac-muted-text);
424
+ font: 590 13px/18px var(--hd-mac-font);
425
+ }
426
+
427
+ .hd-mac-control-value {
428
+ min-width: 0;
429
+ overflow: hidden;
430
+ text-overflow: ellipsis;
431
+ }
432
+
433
+ .hd-mac-control-icon {
434
+ display: inline-flex;
435
+ color: var(--hd-mac-muted-text);
436
+ }
437
+
438
+ .hd-mac-context-trigger,
439
+ .hd-mac-preview-trigger,
440
+ .hd-mac-tooltip-trigger {
441
+ display: inline-flex;
442
+ align-items: center;
443
+ }
444
+
445
+ .hd-mac-backdrop {
446
+ position: fixed;
447
+ inset: 0;
448
+ background: rgba(0, 0, 0, 0.18);
449
+ }
450
+
451
+ .hd-mac-viewport {
452
+ position: fixed;
453
+ inset: 0;
454
+ z-index: 1000;
455
+ pointer-events: none;
456
+ }
457
+
458
+ .hd-mac-viewport > * {
459
+ pointer-events: auto;
460
+ }
461
+
462
+ .hd-mac-positioner {
463
+ z-index: 1000;
464
+ }
465
+
466
+ .hd-mac-popup,
467
+ .hd-mac-popover,
468
+ .hd-mac-preview-card,
469
+ .hd-mac-menu,
470
+ .hd-mac-dialog,
471
+ .hd-mac-drawer,
472
+ .hd-mac-tooltip,
473
+ .hd-mac-toast {
474
+ border: 1px solid var(--hd-mac-border);
475
+ background: var(--hd-mac-surface);
476
+ box-shadow: var(--hd-mac-shadow);
477
+ backdrop-filter: saturate(180%) blur(28px);
478
+ -webkit-backdrop-filter: saturate(180%) blur(28px);
479
+ }
480
+
481
+ .hd-mac-popup,
482
+ .hd-mac-popover,
483
+ .hd-mac-preview-card,
484
+ .hd-mac-menu {
485
+ min-width: 180px;
486
+ border-radius: 10px;
487
+ padding: 5px;
488
+ }
489
+
490
+ .hd-mac-tooltip {
491
+ max-width: 260px;
492
+ border-radius: 7px;
493
+ padding: 5px 8px;
494
+ color: var(--hd-mac-text);
495
+ font: 400 12px/16px var(--hd-mac-font);
496
+ }
497
+
498
+ .hd-mac-popup-arrow,
499
+ .hd-mac-tooltip-arrow {
500
+ fill: var(--hd-mac-surface);
501
+ }
502
+
503
+ .hd-mac-listbox,
504
+ .hd-mac-menu-collection {
505
+ display: grid;
506
+ gap: 1px;
507
+ margin: 0;
508
+ padding: 0;
509
+ }
510
+
511
+ .hd-mac-menu-group {
512
+ display: grid;
513
+ gap: 1px;
514
+ }
515
+
516
+ .hd-mac-menu-group-label {
517
+ padding: 5px 9px 2px;
518
+ color: var(--hd-mac-muted-text);
519
+ font: 590 11px/14px var(--hd-mac-font);
520
+ }
521
+
522
+ .hd-mac-menu-item,
523
+ .hd-mac-menu-row,
524
+ .hd-mac-navigation-link {
525
+ display: flex;
526
+ min-height: 24px;
527
+ align-items: center;
528
+ gap: 8px;
529
+ border-radius: 5px;
530
+ padding: 3px 9px;
531
+ color: var(--hd-mac-text);
532
+ font: 400 13px/18px var(--hd-mac-font);
533
+ text-decoration: none;
534
+ user-select: none;
535
+ }
536
+
537
+ .hd-mac-menu-item[data-highlighted],
538
+ .hd-mac-menu-item[data-selected],
539
+ .hd-mac-menu-item:hover,
540
+ .hd-mac-navigation-link:hover {
541
+ background: var(--hd-mac-blue);
542
+ color: #fff;
543
+ }
544
+
545
+ .hd-mac-menu-item-indicator {
546
+ width: 14px;
547
+ display: inline-flex;
548
+ justify-content: center;
549
+ color: currentColor;
550
+ font-size: 0;
551
+ }
552
+
553
+ .hd-mac-menu-item-text {
554
+ min-width: 0;
555
+ overflow: hidden;
556
+ text-overflow: ellipsis;
557
+ }
558
+
559
+ .hd-mac-menu-checkmark-indicator::before {
560
+ content: "✓";
561
+ font: 700 12px/1 var(--hd-mac-font);
562
+ }
563
+
564
+ .hd-mac-menu-dot-indicator::before {
565
+ content: "";
566
+ width: 6px;
567
+ height: 6px;
568
+ margin-top: 1px;
569
+ border-radius: 999px;
570
+ background: currentColor;
571
+ }
572
+
573
+ .hd-mac-submenu-trigger::after {
574
+ content: "›";
575
+ margin-left: auto;
576
+ }
577
+
578
+ .hd-mac-separator {
579
+ border: 0;
580
+ height: 1px;
581
+ margin: 4px 6px;
582
+ background: var(--hd-mac-border);
583
+ }
584
+
585
+ .hd-mac-empty-state {
586
+ padding: 10px;
587
+ color: var(--hd-mac-muted-text);
588
+ font: 400 13px/18px var(--hd-mac-font);
589
+ text-align: center;
590
+ }
591
+
592
+ .hd-mac-dialog {
593
+ width: min(420px, calc(100vw - 32px));
594
+ border-radius: 14px;
595
+ padding: 18px;
596
+ }
597
+
598
+ .hd-mac-sheet-dialog {
599
+ border-radius: 0 0 14px 14px;
600
+ border-top-color: transparent;
601
+ box-shadow:
602
+ 0 18px 42px rgba(0, 0, 0, 0.28),
603
+ 0 1px 0 rgba(255, 255, 255, 0.1) inset;
604
+ }
605
+
606
+ .hd-mac-alert-dialog {
607
+ width: min(380px, calc(100vw - 32px));
608
+ }
609
+
610
+ .hd-mac-dialog-title,
611
+ .hd-mac-toast-title {
612
+ margin: 0;
613
+ color: var(--hd-mac-text);
614
+ font: 700 17px/22px var(--hd-mac-font);
615
+ }
616
+
617
+ .hd-mac-dialog-description,
618
+ .hd-mac-toast-description {
619
+ margin: 6px 0 0;
620
+ color: var(--hd-mac-secondary-text);
621
+ font: 400 13px/18px var(--hd-mac-font);
622
+ }
623
+
624
+ .hd-mac-drawer {
625
+ position: fixed;
626
+ right: 0;
627
+ bottom: 0;
628
+ left: 0;
629
+ border-radius: 16px 16px 0 0;
630
+ padding: 14px;
631
+ }
632
+
633
+ .hd-mac-sidebar-drawer {
634
+ top: 0;
635
+ right: auto;
636
+ width: min(320px, 82vw);
637
+ border-radius: 0;
638
+ border-top: 0;
639
+ border-bottom: 0;
640
+ }
641
+
642
+ .hd-mac-drawer-content {
643
+ display: grid;
644
+ gap: 10px;
645
+ }
646
+
647
+ .hd-mac-drawer-swipe-area {
648
+ height: 20px;
649
+ }
650
+
651
+ .hd-mac-drawer-indent {
652
+ padding-inline-start: 16px;
653
+ }
654
+
655
+ .hd-mac-drawer-indent-background {
656
+ background: color-mix(in srgb, var(--hd-mac-fill) 72%, transparent);
657
+ }
658
+
659
+ .hd-mac-checkbox,
660
+ .hd-mac-radio {
661
+ display: inline-flex;
662
+ align-items: center;
663
+ justify-content: center;
664
+ width: 16px;
665
+ height: 16px;
666
+ border: 1px solid var(--hd-mac-border-strong);
667
+ background: var(--hd-mac-raised);
668
+ box-shadow: var(--hd-mac-control-shadow);
669
+ color: #fff;
670
+ }
671
+
672
+ .hd-mac-checkbox {
673
+ border-radius: 4px;
674
+ }
675
+
676
+ .hd-mac-radio {
677
+ border-radius: 999px;
678
+ }
679
+
680
+ .hd-mac-checkbox[data-checked],
681
+ .hd-mac-checkbox[data-indeterminate],
682
+ .hd-mac-radio[data-checked] {
683
+ border-color: transparent;
684
+ background: var(--hd-mac-blue);
685
+ }
686
+
687
+ .hd-mac-checkbox-indicator,
688
+ .hd-mac-radio-indicator {
689
+ color: currentColor;
690
+ }
691
+
692
+ .hd-mac-checkbox-indicator::before {
693
+ content: "✓";
694
+ font: 800 11px/1 var(--hd-mac-font);
695
+ }
696
+
697
+ .hd-mac-checkbox[data-indeterminate] .hd-mac-checkbox-indicator::before {
698
+ content: "";
699
+ width: 8px;
700
+ height: 2px;
701
+ border-radius: 999px;
702
+ background: currentColor;
703
+ }
704
+
705
+ .hd-mac-radio-indicator {
706
+ width: 6px;
707
+ height: 6px;
708
+ border-radius: 999px;
709
+ background: currentColor;
710
+ }
711
+
712
+ .hd-mac-switch {
713
+ position: relative;
714
+ display: inline-flex;
715
+ width: 38px;
716
+ height: 22px;
717
+ align-items: center;
718
+ border: 1px solid var(--hd-mac-border);
719
+ border-radius: 999px;
720
+ padding: 2px;
721
+ background: var(--hd-mac-fill-pressed);
722
+ transition: background-color 140ms ease;
723
+ }
724
+
725
+ .hd-mac-switch[data-checked] {
726
+ background: var(--hd-mac-green);
727
+ }
728
+
729
+ .hd-mac-switch-thumb {
730
+ width: 18px;
731
+ height: 18px;
732
+ border-radius: 999px;
733
+ background: #fff;
734
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
735
+ transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
736
+ }
737
+
738
+ .hd-mac-switch[data-checked] .hd-mac-switch-thumb {
739
+ transform: translateX(16px);
740
+ }
741
+
742
+ .hd-mac-toggle-group {
743
+ display: inline-flex;
744
+ align-items: center;
745
+ min-height: 30px;
746
+ gap: 2px;
747
+ border: 1px solid var(--hd-mac-border);
748
+ border-radius: 8px;
749
+ padding: 2px;
750
+ background: var(--hd-mac-fill);
751
+ box-shadow: 0 1px 1px rgba(255, 255, 255, 0.45) inset;
752
+ }
753
+
754
+ .hd-mac-segmented-toggle-group {
755
+ min-height: 28px;
756
+ }
757
+
758
+ .hd-mac-separated-segmented-toggle-group {
759
+ gap: 0;
760
+ padding: 0;
761
+ overflow: hidden;
762
+ }
763
+
764
+ .hd-mac-separated-segmented-toggle-group > .hd-mac-toggle {
765
+ min-height: 28px;
766
+ border-radius: 0;
767
+ border-right: 1px solid var(--hd-mac-border);
768
+ }
769
+
770
+ .hd-mac-separated-segmented-toggle-group > .hd-mac-toggle:last-child {
771
+ border-right: 0;
772
+ }
773
+
774
+ .hd-mac-segmented-control-full-width {
775
+ width: 100%;
776
+ }
777
+
778
+ .hd-mac-segmented-control-full-width > .hd-mac-toggle {
779
+ flex: 1;
780
+ }
781
+
782
+ .hd-mac-toggle {
783
+ min-height: 24px;
784
+ border-color: transparent;
785
+ border-radius: 6px;
786
+ background: transparent;
787
+ box-shadow: none;
788
+ padding: 2px 10px;
789
+ }
790
+
791
+ .hd-mac-symbol-icon-button[data-loading] {
792
+ opacity: 0.62;
793
+ }
794
+
795
+ .hd-mac-toggle[data-pressed] {
796
+ border-color: var(--hd-mac-border);
797
+ background: var(--hd-mac-raised);
798
+ box-shadow: var(--hd-mac-control-shadow);
799
+ }
800
+
801
+ .hd-mac-tabs {
802
+ display: grid;
803
+ gap: 10px;
804
+ }
805
+
806
+ .hd-mac-tab-list,
807
+ .hd-mac-menubar,
808
+ .hd-mac-toolbar {
809
+ display: inline-flex;
810
+ align-items: center;
811
+ gap: 2px;
812
+ border: 1px solid var(--hd-mac-border);
813
+ border-radius: 8px;
814
+ padding: 3px;
815
+ background: var(--hd-mac-fill);
816
+ }
817
+
818
+ .hd-mac-navigation-menu,
819
+ .hd-mac-navigation-list {
820
+ display: inline-flex;
821
+ align-items: center;
822
+ gap: 4px;
823
+ margin: 0;
824
+ padding: 0;
825
+ list-style: none;
826
+ }
827
+
828
+ .hd-mac-navigation-item {
829
+ margin: 0;
830
+ padding: 0;
831
+ list-style: none;
832
+ }
833
+
834
+ .hd-mac-navigation-trigger {
835
+ min-height: 28px;
836
+ }
837
+
838
+ .hd-mac-tab {
839
+ min-height: 24px;
840
+ border: 0;
841
+ border-radius: 6px;
842
+ padding: 2px 10px;
843
+ background: transparent;
844
+ color: var(--hd-mac-secondary-text);
845
+ font: 590 12px/16px var(--hd-mac-font);
846
+ }
847
+
848
+ .hd-mac-tab[data-selected] {
849
+ background: var(--hd-mac-raised);
850
+ box-shadow: var(--hd-mac-control-shadow);
851
+ color: var(--hd-mac-text);
852
+ }
853
+
854
+ .hd-mac-tab-panel {
855
+ color: var(--hd-mac-text);
856
+ font: 400 13px/18px var(--hd-mac-font);
857
+ }
858
+
859
+ .hd-mac-tab-indicator {
860
+ height: 2px;
861
+ border-radius: 999px;
862
+ background: var(--hd-mac-blue);
863
+ }
864
+
865
+ .hd-mac-slider {
866
+ display: grid;
867
+ gap: 6px;
868
+ min-width: 160px;
869
+ }
870
+
871
+ .hd-mac-slider-control {
872
+ position: relative;
873
+ display: flex;
874
+ height: 18px;
875
+ align-items: center;
876
+ }
877
+
878
+ .hd-mac-slider-track,
879
+ .hd-mac-progress-track,
880
+ .hd-mac-meter-track {
881
+ overflow: hidden;
882
+ border-radius: 999px;
883
+ background: var(--hd-mac-fill-pressed);
884
+ }
885
+
886
+ .hd-mac-slider-track {
887
+ height: 4px;
888
+ width: 100%;
889
+ }
890
+
891
+ .hd-mac-slider-indicator,
892
+ .hd-mac-progress-indicator,
893
+ .hd-mac-meter-indicator {
894
+ background: var(--hd-mac-blue);
895
+ }
896
+
897
+ .hd-mac-slider-indicator {
898
+ height: 100%;
899
+ }
900
+
901
+ .hd-mac-slider-thumb {
902
+ width: 17px;
903
+ height: 17px;
904
+ border: 1px solid var(--hd-mac-border);
905
+ border-radius: 999px;
906
+ background: #fff;
907
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
908
+ }
909
+
910
+ .hd-mac-progress,
911
+ .hd-mac-meter {
912
+ display: grid;
913
+ gap: 5px;
914
+ }
915
+
916
+ .hd-mac-progress-track,
917
+ .hd-mac-meter-track {
918
+ height: 6px;
919
+ }
920
+
921
+ .hd-mac-progress-value,
922
+ .hd-mac-meter-value,
923
+ .hd-mac-slider-value {
924
+ color: var(--hd-mac-muted-text);
925
+ font: 400 12px/16px var(--hd-mac-font);
926
+ }
927
+
928
+ .hd-mac-accordion {
929
+ overflow: hidden;
930
+ border: 1px solid var(--hd-mac-border);
931
+ border-radius: 10px;
932
+ background: var(--hd-mac-panel);
933
+ }
934
+
935
+ .hd-mac-accordion-item + .hd-mac-accordion-item {
936
+ border-top: 1px solid var(--hd-mac-border);
937
+ }
938
+
939
+ .hd-mac-accordion-header {
940
+ margin: 0;
941
+ }
942
+
943
+ .hd-mac-accordion-trigger {
944
+ width: 100%;
945
+ justify-content: flex-start;
946
+ border: 0;
947
+ border-radius: 0;
948
+ background: transparent;
949
+ box-shadow: none;
950
+ }
951
+
952
+ .hd-mac-accordion-panel,
953
+ .hd-mac-collapsible-panel,
954
+ .hd-mac-navigation-content {
955
+ padding: 8px 10px;
956
+ color: var(--hd-mac-secondary-text);
957
+ font: 400 13px/18px var(--hd-mac-font);
958
+ }
959
+
960
+ .hd-mac-avatar {
961
+ display: inline-grid;
962
+ width: 32px;
963
+ height: 32px;
964
+ overflow: hidden;
965
+ place-items: center;
966
+ border-radius: 999px;
967
+ background: var(--hd-mac-fill-pressed);
968
+ color: var(--hd-mac-secondary-text);
969
+ font: 590 13px/18px var(--hd-mac-font);
970
+ }
971
+
972
+ .hd-mac-avatar-image {
973
+ width: 100%;
974
+ height: 100%;
975
+ object-fit: cover;
976
+ }
977
+
978
+ .hd-mac-avatar-fallback {
979
+ display: grid;
980
+ width: 100%;
981
+ height: 100%;
982
+ place-items: center;
983
+ }
984
+
985
+ .hd-mac-collapsible {
986
+ display: grid;
987
+ gap: 6px;
988
+ }
989
+
990
+ .hd-mac-chip-list {
991
+ display: flex;
992
+ flex-wrap: wrap;
993
+ gap: 4px;
994
+ }
995
+
996
+ .hd-mac-chip {
997
+ display: inline-flex;
998
+ align-items: center;
999
+ gap: 4px;
1000
+ min-height: 20px;
1001
+ border-radius: 999px;
1002
+ padding: 1px 7px;
1003
+ background: var(--hd-mac-fill);
1004
+ color: var(--hd-mac-text);
1005
+ font: 400 12px/16px var(--hd-mac-font);
1006
+ }
1007
+
1008
+ .hd-mac-chip-remove {
1009
+ border: 0;
1010
+ background: transparent;
1011
+ color: var(--hd-mac-muted-text);
1012
+ }
1013
+
1014
+ .hd-mac-scroll-area {
1015
+ position: relative;
1016
+ overflow: hidden;
1017
+ }
1018
+
1019
+ .hd-mac-scroll-viewport {
1020
+ width: 100%;
1021
+ height: 100%;
1022
+ }
1023
+
1024
+ .hd-mac-scroll-content {
1025
+ padding: 8px;
1026
+ color: var(--hd-mac-text);
1027
+ font: 400 13px/18px var(--hd-mac-font);
1028
+ }
1029
+
1030
+ .hd-mac-scrollbar {
1031
+ display: flex;
1032
+ width: 10px;
1033
+ padding: 2px;
1034
+ background: transparent;
1035
+ }
1036
+
1037
+ .hd-mac-scroll-thumb {
1038
+ flex: 1;
1039
+ border-radius: 999px;
1040
+ background: color-mix(in srgb, var(--hd-mac-muted-text) 42%, transparent);
1041
+ }
1042
+
1043
+ .hd-mac-scroll-corner {
1044
+ background: transparent;
1045
+ }
1046
+
1047
+ .hd-mac-scroll-arrow {
1048
+ display: grid;
1049
+ place-items: center;
1050
+ min-height: 16px;
1051
+ color: var(--hd-mac-muted-text);
1052
+ }
1053
+
1054
+ .hd-mac-toast-viewport {
1055
+ position: fixed;
1056
+ right: 16px;
1057
+ bottom: 16px;
1058
+ z-index: 2000;
1059
+ display: grid;
1060
+ gap: 8px;
1061
+ width: min(360px, calc(100vw - 32px));
1062
+ margin: 0;
1063
+ padding: 0;
1064
+ list-style: none;
1065
+ }
1066
+
1067
+ .hd-mac-toast {
1068
+ border-radius: 12px;
1069
+ padding: 12px;
1070
+ }
1071
+
1072
+ .hd-mac-toast-positioner {
1073
+ z-index: 2000;
1074
+ }
1075
+
1076
+ .hd-mac-toast-content {
1077
+ display: grid;
1078
+ gap: 2px;
1079
+ }
1080
+
1081
+ .hd-mac-toolbar-group {
1082
+ display: inline-flex;
1083
+ align-items: center;
1084
+ gap: 2px;
1085
+ }
1086
+
1087
+ .hd-mac-toolbar-button,
1088
+ .hd-mac-toolbar-link {
1089
+ min-height: 24px;
1090
+ border-radius: 6px;
1091
+ padding: 2px 7px;
1092
+ text-decoration: none;
1093
+ }
1094
+
1095
+ .hd-mac-toolbar-input {
1096
+ min-height: 24px;
1097
+ }
1098
+
1099
+ .hd-mac-toolbar-separator {
1100
+ width: 1px;
1101
+ height: 18px;
1102
+ margin: 0 3px;
1103
+ background: var(--hd-mac-border);
1104
+ }
1105
+
1106
+ .hd-mac-gallery {
1107
+ display: grid;
1108
+ gap: 14px;
1109
+ max-width: 980px;
1110
+ padding: 18px;
1111
+ background: var(--hd-mac-panel);
1112
+ }
1113
+
1114
+ .hd-mac-gallery-section {
1115
+ display: grid;
1116
+ gap: 8px;
1117
+ border: 1px solid var(--hd-mac-border);
1118
+ border-radius: 12px;
1119
+ padding: 12px;
1120
+ background: color-mix(in srgb, var(--hd-mac-raised) 72%, transparent);
1121
+ }
1122
+
1123
+ .hd-mac-gallery-section > h2 {
1124
+ margin: 0;
1125
+ color: var(--hd-mac-secondary-text);
1126
+ font: 700 13px/18px var(--hd-mac-font);
1127
+ }
1128
+
1129
+ .hd-mac-gallery-row {
1130
+ display: flex;
1131
+ flex-wrap: wrap;
1132
+ align-items: center;
1133
+ gap: 10px;
1134
+ }
1135
+
1136
+ .hd-mac-gallery-inline-choice {
1137
+ display: inline-flex;
1138
+ align-items: center;
1139
+ gap: 7px;
1140
+ color: var(--hd-mac-text);
1141
+ font: 400 13px/18px var(--hd-mac-font);
1142
+ }
1143
+
1144
+ .hd-mac-gallery-context-target {
1145
+ min-height: 28px;
1146
+ border: 1px dashed var(--hd-mac-border-strong);
1147
+ border-radius: 7px;
1148
+ padding: 4px 10px;
1149
+ color: var(--hd-mac-secondary-text);
1150
+ font: 400 13px/18px var(--hd-mac-font);
1151
+ }
1152
+
1153
+ .hd-mac-gallery-scroll {
1154
+ width: 190px;
1155
+ height: 48px;
1156
+ border: 1px solid var(--hd-mac-border);
1157
+ border-radius: 8px;
1158
+ }