@azx-pbc/axiom-web 0.0.0-stage → 0.0.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.
Files changed (141) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +161 -2
  3. package/dist/address.d.ts +32 -0
  4. package/dist/address.d.ts.map +1 -0
  5. package/dist/address.js +146 -0
  6. package/dist/address.js.map +1 -0
  7. package/dist/capture/MediaCapture.d.ts +45 -0
  8. package/dist/capture/MediaCapture.d.ts.map +1 -0
  9. package/dist/capture/MediaCapture.js +669 -0
  10. package/dist/capture/MediaCapture.js.map +1 -0
  11. package/dist/capture/SignatureCapture.d.ts +31 -0
  12. package/dist/capture/SignatureCapture.d.ts.map +1 -0
  13. package/dist/capture/SignatureCapture.js +329 -0
  14. package/dist/capture/SignatureCapture.js.map +1 -0
  15. package/dist/capture/copy.d.ts +101 -0
  16. package/dist/capture/copy.d.ts.map +1 -0
  17. package/dist/capture/copy.js +1369 -0
  18. package/dist/capture/copy.js.map +1 -0
  19. package/dist/capture/index.d.ts +19 -0
  20. package/dist/capture/index.d.ts.map +1 -0
  21. package/dist/capture/index.js +14 -0
  22. package/dist/capture/index.js.map +1 -0
  23. package/dist/capture/media-kind.d.ts +16 -0
  24. package/dist/capture/media-kind.d.ts.map +1 -0
  25. package/dist/capture/media-kind.js +64 -0
  26. package/dist/capture/media-kind.js.map +1 -0
  27. package/dist/capture/permissions.d.ts +109 -0
  28. package/dist/capture/permissions.d.ts.map +1 -0
  29. package/dist/capture/permissions.js +172 -0
  30. package/dist/capture/permissions.js.map +1 -0
  31. package/dist/capture/refusal.d.ts +13 -0
  32. package/dist/capture/refusal.d.ts.map +1 -0
  33. package/dist/capture/refusal.js +16 -0
  34. package/dist/capture/refusal.js.map +1 -0
  35. package/dist/controls.d.ts +64 -0
  36. package/dist/controls.d.ts.map +1 -0
  37. package/dist/controls.js +2524 -0
  38. package/dist/controls.js.map +1 -0
  39. package/dist/coordinate.d.ts +38 -0
  40. package/dist/coordinate.d.ts.map +1 -0
  41. package/dist/coordinate.js +220 -0
  42. package/dist/coordinate.js.map +1 -0
  43. package/dist/copy.d.ts +313 -0
  44. package/dist/copy.d.ts.map +1 -0
  45. package/dist/copy.js +2602 -0
  46. package/dist/copy.js.map +1 -0
  47. package/dist/countries.d.ts +14 -0
  48. package/dist/countries.d.ts.map +1 -0
  49. package/dist/countries.js +264 -0
  50. package/dist/countries.js.map +1 -0
  51. package/dist/format/calendar-locale.d.ts +19 -0
  52. package/dist/format/calendar-locale.d.ts.map +1 -0
  53. package/dist/format/calendar-locale.js +38 -0
  54. package/dist/format/calendar-locale.js.map +1 -0
  55. package/dist/format/country-names.d.ts +21 -0
  56. package/dist/format/country-names.d.ts.map +1 -0
  57. package/dist/format/country-names.js +2277 -0
  58. package/dist/format/country-names.js.map +1 -0
  59. package/dist/format/date.d.ts +58 -0
  60. package/dist/format/date.d.ts.map +1 -0
  61. package/dist/format/date.js +155 -0
  62. package/dist/format/date.js.map +1 -0
  63. package/dist/format/digits.d.ts +23 -0
  64. package/dist/format/digits.d.ts.map +1 -0
  65. package/dist/format/digits.js +46 -0
  66. package/dist/format/digits.js.map +1 -0
  67. package/dist/format/index.d.ts +28 -0
  68. package/dist/format/index.d.ts.map +1 -0
  69. package/dist/format/index.js +24 -0
  70. package/dist/format/index.js.map +1 -0
  71. package/dist/format/locale.d.ts +33 -0
  72. package/dist/format/locale.d.ts.map +1 -0
  73. package/dist/format/locale.js +39 -0
  74. package/dist/format/locale.js.map +1 -0
  75. package/dist/format/media-type.d.ts +8 -0
  76. package/dist/format/media-type.d.ts.map +1 -0
  77. package/dist/format/media-type.js +302 -0
  78. package/dist/format/media-type.js.map +1 -0
  79. package/dist/format/money.d.ts +52 -0
  80. package/dist/format/money.d.ts.map +1 -0
  81. package/dist/format/money.js +36 -0
  82. package/dist/format/money.js.map +1 -0
  83. package/dist/format/number.d.ts +28 -0
  84. package/dist/format/number.d.ts.map +1 -0
  85. package/dist/format/number.js +91 -0
  86. package/dist/format/number.js.map +1 -0
  87. package/dist/host.d.ts +122 -0
  88. package/dist/host.d.ts.map +1 -0
  89. package/dist/host.js +20 -0
  90. package/dist/host.js.map +1 -0
  91. package/dist/index.d.ts +57 -0
  92. package/dist/index.d.ts.map +1 -0
  93. package/dist/index.js +49 -0
  94. package/dist/index.js.map +1 -0
  95. package/dist/media.d.ts +42 -0
  96. package/dist/media.d.ts.map +1 -0
  97. package/dist/media.js +151 -0
  98. package/dist/media.js.map +1 -0
  99. package/dist/pickers/DatePicker.d.ts +35 -0
  100. package/dist/pickers/DatePicker.d.ts.map +1 -0
  101. package/dist/pickers/DatePicker.js +212 -0
  102. package/dist/pickers/DatePicker.js.map +1 -0
  103. package/dist/pickers/TimeSegments.d.ts +27 -0
  104. package/dist/pickers/TimeSegments.d.ts.map +1 -0
  105. package/dist/pickers/TimeSegments.js +82 -0
  106. package/dist/pickers/TimeSegments.js.map +1 -0
  107. package/dist/pickers/day-picker-locale.d.ts +15 -0
  108. package/dist/pickers/day-picker-locale.d.ts.map +1 -0
  109. package/dist/pickers/day-picker-locale.js +46 -0
  110. package/dist/pickers/day-picker-locale.js.map +1 -0
  111. package/dist/render/dom.d.ts +100 -0
  112. package/dist/render/dom.d.ts.map +1 -0
  113. package/dist/render/dom.js +882 -0
  114. package/dist/render/dom.js.map +1 -0
  115. package/dist/render/layout.d.ts +45 -0
  116. package/dist/render/layout.d.ts.map +1 -0
  117. package/dist/render/layout.js +8 -0
  118. package/dist/render/layout.js.map +1 -0
  119. package/dist/schedule/SchedulePicker.d.ts +46 -0
  120. package/dist/schedule/SchedulePicker.d.ts.map +1 -0
  121. package/dist/schedule/SchedulePicker.js +160 -0
  122. package/dist/schedule/SchedulePicker.js.map +1 -0
  123. package/dist/schedule/timeslot.d.ts +52 -0
  124. package/dist/schedule/timeslot.d.ts.map +1 -0
  125. package/dist/schedule/timeslot.js +265 -0
  126. package/dist/schedule/timeslot.js.map +1 -0
  127. package/dist/styles.css +2151 -0
  128. package/dist/theme/index.d.ts +12 -0
  129. package/dist/theme/index.d.ts.map +1 -0
  130. package/dist/theme/index.js +11 -0
  131. package/dist/theme/index.js.map +1 -0
  132. package/dist/theme/presets.d.ts +93 -0
  133. package/dist/theme/presets.d.ts.map +1 -0
  134. package/dist/theme/presets.js +200 -0
  135. package/dist/theme/presets.js.map +1 -0
  136. package/dist/tokens.css +234 -0
  137. package/dist/wizard-checkpoints.d.ts +18 -0
  138. package/dist/wizard-checkpoints.d.ts.map +1 -0
  139. package/dist/wizard-checkpoints.js +56 -0
  140. package/dist/wizard-checkpoints.js.map +1 -0
  141. package/package.json +76 -3
@@ -0,0 +1,2151 @@
1
+ /*
2
+ * The Axiom reference component styles.
3
+ *
4
+ * Every selector is one of the adapter's `.ax-*` hooks or a legacy `axiom-*` name kept for the
5
+ * existing examples. Nothing here styles a bare element outside `.ax-form`, so importing this
6
+ * sheet cannot restyle a host's page; and nothing here declares a literal colour, size or
7
+ * duration — every value is a token from `tokens.css`.
8
+ *
9
+ * The renderer stays headless: these rules are what the reference adapter paints when a host
10
+ * copies it. A host that prefers its own design system keeps the same markup and drops the sheet.
11
+ */
12
+
13
+ .ax-form {
14
+ box-sizing: border-box;
15
+ display: grid;
16
+ gap: var(--ax-space-5);
17
+ inline-size: 100%;
18
+ max-inline-size: var(--ax-measure);
19
+ margin-inline: auto;
20
+ color: var(--ax-fg);
21
+ font-family: var(--ax-font-sans);
22
+ font-size: var(--ax-text-body);
23
+ line-height: var(--ax-leading-body);
24
+ }
25
+
26
+ /* The width contract: `measure` is the reading column, `fill` uses the container up to a
27
+ * sensible maximum, and `narrow` is the honest 390 px phone column. A host number arrives as
28
+ * `custom` with its own max-inline-size, which is the one value CSS cannot enumerate. */
29
+ .ax-form[data-width="measure"] {
30
+ max-inline-size: var(--ax-measure);
31
+ }
32
+
33
+ .ax-form[data-width="fill"] {
34
+ max-inline-size: var(--ax-width-fill);
35
+ }
36
+
37
+ .ax-form[data-width="narrow"] {
38
+ inline-size: var(--ax-width-narrow);
39
+ max-inline-size: 100%;
40
+ }
41
+
42
+ /* The authored columns are still the hint above the breakpoint; a phone preview is one column
43
+ * at every width, because that is what makes the preview honest. */
44
+ .ax-form[data-width="narrow"] .ax-grid {
45
+ grid-template-columns: minmax(0, 1fr) !important;
46
+ }
47
+
48
+ /* Prose, not data: a paragraph or list item breaks at the measure rather than stretching. */
49
+ .ax-form :is(p, li) {
50
+ text-wrap: pretty;
51
+ }
52
+
53
+ .ax-form *,
54
+ .ax-form *::before,
55
+ .ax-form *::after {
56
+ box-sizing: inherit;
57
+ }
58
+
59
+ /* ------------------------------------------------------------------------------------------
60
+ * Headings and containers
61
+ * ---------------------------------------------------------------------------------------- */
62
+
63
+ .ax-form :is(h2, h3, h4, h5, h6) {
64
+ margin: 0;
65
+ color: var(--ax-fg);
66
+ font-weight: var(--ax-weight-semibold);
67
+ line-height: 1.25;
68
+ text-wrap: balance;
69
+ }
70
+
71
+ .ax-form h2 {
72
+ font-size: var(--ax-text-page);
73
+ }
74
+
75
+ .ax-form h3 {
76
+ font-size: var(--ax-text-section);
77
+ }
78
+
79
+ .ax-form h4 {
80
+ font-size: var(--ax-text-group);
81
+ }
82
+
83
+ .ax-form :is(h5, h6) {
84
+ font-size: var(--ax-text-body);
85
+ }
86
+
87
+ /* The authored role, not only the HTML depth: a section's own heading is the section size, a
88
+ * group's is the group size, and a layout heading header is the page title. */
89
+ .ax-form .ax-section > :is(h2, h3, h4, h5, h6) {
90
+ font-size: var(--ax-text-section);
91
+ }
92
+
93
+ .ax-form .ax-group > :is(h2, h3, h4, h5, h6) {
94
+ font-size: var(--ax-text-group);
95
+ }
96
+
97
+ .ax-form > header > :is(h2, h3, h4, h5, h6) {
98
+ font-size: var(--ax-text-page);
99
+ }
100
+
101
+ .ax-section,
102
+ .ax-group,
103
+ .ax-step,
104
+ .ax-sop {
105
+ display: grid;
106
+ gap: var(--ax-space-4);
107
+ min-inline-size: 0;
108
+ }
109
+
110
+ .ax-section,
111
+ .ax-group,
112
+ .ax-step {
113
+ padding-block: var(--ax-space-5);
114
+ border-block-start: 1px solid var(--ax-divider);
115
+ }
116
+
117
+ /* The first container on the surface starts at the surface's own edge. */
118
+ .ax-form > :is(.ax-section, .ax-group, .ax-step):first-child,
119
+ .ax-section > :is(.ax-section, .ax-group, .ax-step):first-child {
120
+ padding-block-start: 0;
121
+ border-block-start: 0;
122
+ }
123
+
124
+ .ax-section > p,
125
+ .ax-group > p,
126
+ .ax-step > p,
127
+ .ax-sop > p {
128
+ margin: 0;
129
+ color: var(--ax-fg-muted);
130
+ }
131
+
132
+ /* A section's own toggle is a quiet text button above its body, never one of the card's fields. */
133
+ .ax-section > button,
134
+ .ax-group > button {
135
+ justify-self: start;
136
+ min-block-size: var(--ax-touch-height);
137
+ padding-block: var(--ax-space-1);
138
+ padding-inline: var(--ax-space-2);
139
+ border: 0;
140
+ border-radius: var(--ax-radius-0);
141
+ background: transparent;
142
+ color: var(--ax-accent);
143
+ font: inherit;
144
+ font-size: var(--ax-text-sm);
145
+ font-weight: var(--ax-weight-medium);
146
+ cursor: pointer;
147
+ text-align: start;
148
+ }
149
+
150
+ .ax-section > button:hover,
151
+ .ax-group > button:hover {
152
+ background: var(--ax-accent-soft);
153
+ color: var(--ax-accent-contrast);
154
+ }
155
+
156
+ /* The authored column count is the inline `grid-template-columns` the adapter emits. */
157
+ .ax-grid {
158
+ display: grid;
159
+ gap: var(--ax-space-4);
160
+ align-items: start;
161
+ min-inline-size: 0;
162
+ }
163
+
164
+ .axiom-grid-item {
165
+ min-inline-size: 0;
166
+ }
167
+
168
+ .ax-sop {
169
+ padding: var(--ax-space-4);
170
+ border-inline-start: 2px solid var(--ax-accent);
171
+ border-radius: var(--ax-radius-0);
172
+ background: var(--ax-surface-2);
173
+ }
174
+
175
+ .ax-sop > h4 {
176
+ font-size: var(--ax-text-base);
177
+ }
178
+
179
+ .ax-form hr {
180
+ margin: 0;
181
+ border: 0;
182
+ border-block-start: 1px solid var(--ax-divider);
183
+ }
184
+
185
+ /* A single record or a repeating record is one named group, and the legend is its heading. */
186
+ .ax-form fieldset {
187
+ display: grid;
188
+ gap: var(--ax-space-3);
189
+ min-inline-size: 0;
190
+ margin: 0;
191
+ padding: 0;
192
+ border: 0;
193
+ border-block-start: 1px solid var(--ax-divider);
194
+ border-radius: var(--ax-radius-0);
195
+ background: transparent;
196
+ }
197
+
198
+ .ax-form fieldset:first-child {
199
+ border-block-start: 0;
200
+ }
201
+
202
+ .ax-form legend {
203
+ padding: 0;
204
+ color: var(--ax-fg);
205
+ font-size: var(--ax-text-label);
206
+ font-weight: var(--ax-weight-semibold);
207
+ letter-spacing: var(--ax-letter-label);
208
+ line-height: var(--ax-leading-tight);
209
+ text-transform: uppercase;
210
+ }
211
+
212
+ /* ------------------------------------------------------------------------------------------
213
+ * One field: label, control, help, failure
214
+ * ---------------------------------------------------------------------------------------- */
215
+
216
+ .ax-field {
217
+ display: grid;
218
+ align-content: start;
219
+ gap: var(--ax-space-1);
220
+ min-inline-size: 0;
221
+ }
222
+
223
+ .ax-label {
224
+ color: var(--ax-fg-muted);
225
+ font-size: var(--ax-text-label);
226
+ font-weight: var(--ax-weight-semibold);
227
+ letter-spacing: var(--ax-letter-label);
228
+ line-height: var(--ax-leading-tight);
229
+ overflow-wrap: anywhere;
230
+ text-transform: uppercase;
231
+ }
232
+
233
+ /* The required marker the adapter renders is the label's only span. Shape and text agree: the
234
+ * asterisk is `aria-hidden`, and the control carries `aria-required`. */
235
+ .ax-label > span[aria-hidden="true"] {
236
+ color: var(--ax-danger);
237
+ }
238
+
239
+ .ax-required {
240
+ color: var(--ax-danger);
241
+ }
242
+
243
+ .ax-hint {
244
+ margin: var(--ax-space-1) 0 0;
245
+ color: var(--ax-fg-muted);
246
+ font-size: var(--ax-text-hint);
247
+ font-weight: var(--ax-weight-regular);
248
+ line-height: var(--ax-leading-body);
249
+ overflow-wrap: anywhere;
250
+ }
251
+
252
+ .ax-error {
253
+ margin: var(--ax-space-1) 0 0;
254
+ color: var(--ax-danger);
255
+ font-size: var(--ax-text-error);
256
+ font-weight: var(--ax-weight-medium);
257
+ line-height: var(--ax-leading-body);
258
+ overflow-wrap: anywhere;
259
+ }
260
+
261
+ .ax-field[data-required] .ax-label {
262
+ color: var(--ax-fg);
263
+ }
264
+
265
+ .ax-field[data-invalid] .ax-label {
266
+ color: var(--ax-danger);
267
+ }
268
+
269
+ .ax-field[data-readonly] .ax-label {
270
+ color: var(--ax-fg-muted);
271
+ }
272
+
273
+ /* ------------------------------------------------------------------------------------------
274
+ * Controls, one per declared kind
275
+ * ---------------------------------------------------------------------------------------- */
276
+
277
+ .ax-control {
278
+ inline-size: 100%;
279
+ min-block-size: var(--ax-control-height);
280
+ margin: 0;
281
+ padding-block: var(--ax-space-1);
282
+ padding-inline: var(--ax-space-3);
283
+ border: 1px solid var(--ax-border);
284
+ border-radius: var(--ax-radius-0);
285
+ background: var(--ax-surface);
286
+ color: var(--ax-fg);
287
+ font-family: inherit;
288
+ font-size: var(--ax-text-control);
289
+ font-weight: var(--ax-weight-regular);
290
+ line-height: var(--ax-leading-body);
291
+ transition:
292
+ border-color var(--ax-duration-fast) var(--ax-ease),
293
+ background-color var(--ax-duration-fast) var(--ax-ease);
294
+ }
295
+
296
+ /* A whole number's stepper is one control, not three: the group owns the border, the focus
297
+ * ring and the height, and its three cells share that one box with no gaps. The input keeps no
298
+ * border of its own; the buttons are square at the control height and separated by one hairline.
299
+ * The group never wraps, so a phone shrinks the input rather than stacking the cells. */
300
+ .ax-stepper {
301
+ display: flex;
302
+ flex-wrap: nowrap;
303
+ align-items: stretch;
304
+ inline-size: 100%;
305
+ min-inline-size: 0;
306
+ /* The group's one hairline is an inset outline: it draws the border without adding two
307
+ * pixels to the box, so the group is exactly one control tall and the cells stay square. */
308
+ outline: 1px solid var(--ax-border);
309
+ outline-offset: -1px;
310
+ border-radius: var(--ax-radius-0);
311
+ background: var(--ax-surface);
312
+ }
313
+
314
+ .ax-stepper:focus-within {
315
+ outline: 2px solid var(--ax-focus-ring);
316
+ outline-offset: -2px;
317
+ }
318
+
319
+ .ax-stepper > .ax-control {
320
+ flex: 1 1 auto;
321
+ inline-size: auto;
322
+ min-inline-size: 0;
323
+ min-block-size: var(--ax-control-height);
324
+ border: 0;
325
+ border-radius: 0;
326
+ }
327
+
328
+ .ax-stepper > .ax-control:focus-visible {
329
+ outline: none;
330
+ }
331
+
332
+ .ax-stepper__button {
333
+ flex: 0 0 auto;
334
+ inline-size: var(--ax-control-height);
335
+ min-block-size: var(--ax-control-height);
336
+ margin: 0;
337
+ padding: 0;
338
+ border: 0;
339
+ border-radius: 0;
340
+ background: var(--ax-surface-2);
341
+ color: var(--ax-fg);
342
+ cursor: pointer;
343
+ font-family: inherit;
344
+ font-size: var(--ax-text-control);
345
+ font-weight: var(--ax-weight-semibold);
346
+ line-height: 1;
347
+ }
348
+
349
+ .ax-stepper__button:first-child {
350
+ border-inline-end: 1px solid var(--ax-border);
351
+ }
352
+
353
+ .ax-stepper__button:last-child {
354
+ border-inline-start: 1px solid var(--ax-border);
355
+ }
356
+
357
+ .ax-stepper__button:hover:not(:disabled) {
358
+ background: var(--ax-surface-3);
359
+ color: var(--ax-accent);
360
+ }
361
+
362
+ .ax-stepper__button:focus-visible {
363
+ outline: 2px solid var(--ax-focus-ring);
364
+ outline-offset: -2px;
365
+ }
366
+
367
+ .ax-stepper:has(.ax-stepper__button:focus-visible) {
368
+ outline: 2px solid var(--ax-focus-ring);
369
+ outline-offset: 2px;
370
+ }
371
+
372
+ .ax-stepper__button:disabled {
373
+ background: var(--ax-surface);
374
+ color: var(--ax-fg-subtle);
375
+ cursor: not-allowed;
376
+ }
377
+
378
+ /* A number, an amount or a civil date is scanned by column, so its digits are tabular. */
379
+ .ax-form
380
+ :is(
381
+ .ax-control--integer,
382
+ .ax-control--decimal,
383
+ .ax-control--money,
384
+ .ax-control--percentage,
385
+ .ax-control--quantity,
386
+ .ax-control--date,
387
+ .ax-control--datetime,
388
+ .ax-media-line
389
+ ),
390
+ .ax-form input[type="date"],
391
+ .ax-form input[type="datetime-local"] {
392
+ font-variant-numeric: tabular-nums;
393
+ }
394
+
395
+ .ax-control:hover:not(:disabled) {
396
+ border-color: var(--ax-border-strong);
397
+ }
398
+
399
+ .ax-control:focus-visible {
400
+ border-color: var(--ax-accent);
401
+ outline: 2px solid var(--ax-focus-ring);
402
+ outline-offset: 2px;
403
+ }
404
+
405
+ .ax-control:disabled {
406
+ background: var(--ax-surface-2);
407
+ color: var(--ax-fg-subtle);
408
+ cursor: not-allowed;
409
+ }
410
+
411
+ .ax-control[readonly] {
412
+ background: var(--ax-surface-2);
413
+ }
414
+
415
+ .ax-control[aria-invalid="true"] {
416
+ border-color: var(--ax-danger);
417
+ }
418
+
419
+ .ax-control[aria-busy="true"] {
420
+ border-color: var(--ax-accent);
421
+ cursor: progress;
422
+ }
423
+
424
+ .ax-control::placeholder {
425
+ color: var(--ax-fg-subtle);
426
+ opacity: 1;
427
+ }
428
+
429
+ .ax-control--textarea {
430
+ min-block-size: 7rem;
431
+ resize: vertical;
432
+ }
433
+
434
+ /* A choice mark is a 20px box with a 4px corner, in the accent only when it is checked. The row
435
+ * is 44px whether the label sits beside it (standalone boolean, checkbox group) or above it. */
436
+ input.ax-control--checkbox,
437
+ input.ax-control--radio,
438
+ .ax-choice input[type="checkbox"],
439
+ .ax-choice input[type="radio"],
440
+ .ax-check input[type="checkbox"] {
441
+ appearance: none;
442
+ display: grid;
443
+ place-content: center;
444
+ flex: none;
445
+ inline-size: var(--ax-control-mark);
446
+ block-size: var(--ax-control-mark);
447
+ min-block-size: 0;
448
+ margin: 0;
449
+ padding: 0;
450
+ border: 1px solid var(--ax-border-strong);
451
+ border-radius: var(--ax-radius-xs);
452
+ background: var(--ax-surface);
453
+ color: var(--ax-fg-on-accent);
454
+ cursor: pointer;
455
+ }
456
+
457
+ input.ax-control--checkbox::after,
458
+ .ax-choice input[type="checkbox"]::after,
459
+ .ax-check input[type="checkbox"]::after {
460
+ content: "";
461
+ inline-size: 0.5rem;
462
+ block-size: 0.3rem;
463
+ border: solid currentColor;
464
+ border-width: 0 0 2px 2px;
465
+ opacity: 0;
466
+ transform: rotate(-45deg) translateY(-1px);
467
+ }
468
+
469
+ input.ax-control--checkbox:checked,
470
+ .ax-choice input[type="checkbox"]:checked,
471
+ .ax-check input[type="checkbox"]:checked {
472
+ border-color: var(--ax-accent);
473
+ background: var(--ax-accent);
474
+ }
475
+
476
+ input.ax-control--checkbox:checked::after,
477
+ .ax-choice input[type="checkbox"]:checked::after,
478
+ .ax-check input[type="checkbox"]:checked::after {
479
+ opacity: 1;
480
+ }
481
+
482
+ input.ax-control--radio,
483
+ .ax-choice input[type="radio"] {
484
+ border-radius: var(--ax-radius-xs);
485
+ }
486
+
487
+ input.ax-control--radio::after,
488
+ .ax-choice input[type="radio"]::after {
489
+ content: "";
490
+ inline-size: 0.5rem;
491
+ block-size: 0.5rem;
492
+ border-radius: var(--ax-radius-xs);
493
+ background: currentColor;
494
+ transform: scale(0);
495
+ }
496
+
497
+ input.ax-control--radio:checked,
498
+ .ax-choice input[type="radio"]:checked {
499
+ border-color: var(--ax-accent);
500
+ background: var(--ax-accent);
501
+ }
502
+
503
+ input.ax-control--radio:checked::after,
504
+ .ax-choice input[type="radio"]:checked::after {
505
+ transform: scale(1);
506
+ }
507
+
508
+ /* A switch is a 36×20 track with a 16px thumb; the label is the row, not the track. */
509
+ input.ax-control--switch {
510
+ appearance: none;
511
+ position: relative;
512
+ flex: none;
513
+ inline-size: var(--ax-control-switch-inline);
514
+ block-size: var(--ax-control-switch-block);
515
+ min-block-size: 0;
516
+ margin: 0;
517
+ padding: 0;
518
+ border: 1px solid var(--ax-border-strong);
519
+ border-radius: var(--ax-radius-0);
520
+ background: var(--ax-surface-3);
521
+ cursor: pointer;
522
+ }
523
+
524
+ input.ax-control--switch::after {
525
+ content: "";
526
+ position: absolute;
527
+ inset-block-start: 1px;
528
+ inset-inline-start: 1px;
529
+ inline-size: var(--ax-control-switch-thumb);
530
+ block-size: var(--ax-control-switch-thumb);
531
+ border-radius: var(--ax-radius-0);
532
+ background: var(--ax-surface);
533
+ transition: inset-inline-start var(--ax-duration-fast) var(--ax-ease);
534
+ }
535
+
536
+ input.ax-control--switch:checked {
537
+ border-color: var(--ax-accent);
538
+ background: var(--ax-accent);
539
+ }
540
+
541
+ input.ax-control--switch:checked::after {
542
+ inset-inline-start: calc(100% - var(--ax-control-switch-thumb) - 1px);
543
+ background: var(--ax-fg-on-accent);
544
+ }
545
+
546
+ input.ax-control--checkbox:focus-visible,
547
+ input.ax-control--radio:focus-visible,
548
+ input.ax-control--switch:focus-visible,
549
+ .ax-choice input:focus-visible,
550
+ .ax-check input:focus-visible {
551
+ outline: 2px solid var(--ax-focus-ring);
552
+ outline-offset: 2px;
553
+ }
554
+
555
+ input.ax-control--checkbox:disabled,
556
+ input.ax-control--radio:disabled,
557
+ input.ax-control--switch:disabled,
558
+ .ax-choice input:disabled,
559
+ .ax-check input:disabled {
560
+ border-color: var(--ax-border);
561
+ border-style: dashed;
562
+ background: var(--ax-surface-2);
563
+ cursor: not-allowed;
564
+ }
565
+
566
+ input.ax-control--checkbox:checked:disabled,
567
+ input.ax-control--radio:checked:disabled,
568
+ input.ax-control--switch:checked:disabled,
569
+ .ax-choice input:checked:disabled,
570
+ .ax-check input:checked:disabled {
571
+ border-color: var(--ax-fg-subtle);
572
+ background: var(--ax-fg-subtle);
573
+ }
574
+
575
+ /* The standalone boolean and the radio choice: one 44px row with the label beside the mark. */
576
+ .ax-choice,
577
+ .ax-check {
578
+ display: flex;
579
+ align-items: center;
580
+ gap: var(--ax-space-3);
581
+ min-block-size: var(--ax-touch-height);
582
+ cursor: pointer;
583
+ }
584
+
585
+ .ax-radio-group {
586
+ display: grid;
587
+ gap: var(--ax-space-1);
588
+ min-inline-size: 0;
589
+ margin: 0;
590
+ padding: 0;
591
+ border: 0;
592
+ }
593
+
594
+ select.ax-control {
595
+ padding-block: var(--ax-space-1);
596
+ cursor: pointer;
597
+ }
598
+
599
+ select.ax-control[multiple] {
600
+ min-block-size: 9rem;
601
+ }
602
+
603
+ /* A signature value is a drawing area, not a text box: dashed, taller, and centred. */
604
+ output.ax-control {
605
+ display: flex;
606
+ align-items: center;
607
+ justify-content: space-between;
608
+ gap: var(--ax-space-2);
609
+ background: var(--ax-surface-2);
610
+ overflow-wrap: anywhere;
611
+ }
612
+
613
+ .ax-control.ax-control--signature_capture {
614
+ align-items: center;
615
+ justify-content: center;
616
+ min-block-size: 9rem;
617
+ border: 1px dashed var(--ax-border-strong);
618
+ border-radius: var(--ax-radius-0);
619
+ background:
620
+ repeating-linear-gradient(
621
+ -45deg,
622
+ transparent 0 0.5rem,
623
+ color-mix(in srgb, var(--ax-border) 12%, transparent) 0.5rem 0.5625rem
624
+ ),
625
+ var(--ax-surface);
626
+ font-family: var(--ax-font-mono);
627
+ text-align: center;
628
+ }
629
+
630
+ /* A computed value reads as evidence: monospace, tabular, quiet surface. */
631
+ [data-readonly] bdi,
632
+ [data-summary] bdi {
633
+ font-variant-numeric: tabular-nums;
634
+ unicode-bidi: isolate;
635
+ }
636
+
637
+ /* ------------------------------------------------------------------------------------------
638
+ * Record rows
639
+ * ---------------------------------------------------------------------------------------- */
640
+
641
+ .ax-rows {
642
+ display: grid;
643
+ gap: 0;
644
+ margin: 0;
645
+ padding: 0;
646
+ list-style: none;
647
+ }
648
+
649
+ .ax-row {
650
+ padding-block: var(--ax-space-4);
651
+ border-block-start: 1px solid var(--ax-divider);
652
+ background: transparent;
653
+ min-inline-size: 0;
654
+ }
655
+
656
+ .ax-rows > .ax-row:first-child {
657
+ border-block-start: 0;
658
+ padding-block-start: 0;
659
+ }
660
+
661
+ .ax-row > [role="group"] {
662
+ display: grid;
663
+ grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
664
+ gap: var(--ax-space-3);
665
+ align-items: start;
666
+ min-inline-size: 0;
667
+ }
668
+
669
+ .ax-row-key {
670
+ grid-column: 1 / -1;
671
+ padding-block-end: var(--ax-space-2);
672
+ color: var(--ax-fg-muted);
673
+ font-family: var(--ax-font-mono);
674
+ font-size: var(--ax-text-label);
675
+ font-weight: var(--ax-weight-semibold);
676
+ letter-spacing: var(--ax-letter-label);
677
+ overflow-wrap: anywhere;
678
+ text-transform: uppercase;
679
+ }
680
+
681
+ .ax-row .ax-actions {
682
+ grid-column: 1 / -1;
683
+ justify-content: flex-end;
684
+ }
685
+
686
+ /* ------------------------------------------------------------------------------------------
687
+ * Actions
688
+ * ---------------------------------------------------------------------------------------- */
689
+
690
+ .ax-actions {
691
+ display: flex;
692
+ flex-wrap: wrap;
693
+ align-items: center;
694
+ gap: var(--ax-space-2);
695
+ }
696
+
697
+ .ax-actions button {
698
+ min-block-size: var(--ax-touch-height);
699
+ padding-block: 0;
700
+ padding-inline: var(--ax-space-4);
701
+ border: 1px solid var(--ax-border);
702
+ border-radius: var(--ax-radius-xs);
703
+ background: var(--ax-surface);
704
+ color: var(--ax-fg);
705
+ font: inherit;
706
+ font-size: var(--ax-text-sm);
707
+ font-weight: var(--ax-weight-medium);
708
+ cursor: pointer;
709
+ }
710
+
711
+ .ax-actions button:hover:not(:disabled) {
712
+ border-color: var(--ax-border-strong);
713
+ background: var(--ax-surface-3);
714
+ }
715
+
716
+ .ax-actions button:disabled {
717
+ color: var(--ax-fg-subtle);
718
+ cursor: not-allowed;
719
+ }
720
+
721
+ /* A media action is still a button, but the attach/remove pair reads as one control row:
722
+ * secondary ink for the action that adds, quiet danger for the one that destroys. */
723
+ .ax-button {
724
+ min-block-size: var(--ax-touch-height);
725
+ padding-block: 0;
726
+ padding-inline: var(--ax-space-4);
727
+ border-radius: var(--ax-radius-xs);
728
+ font: inherit;
729
+ font-size: var(--ax-text-sm);
730
+ font-weight: var(--ax-weight-medium);
731
+ cursor: pointer;
732
+ }
733
+
734
+ .ax-button--secondary {
735
+ border: 1px solid var(--ax-border);
736
+ background: var(--ax-surface);
737
+ color: var(--ax-fg);
738
+ }
739
+
740
+ .ax-button--secondary:hover:not(:disabled) {
741
+ border-color: var(--ax-border-strong);
742
+ background: var(--ax-surface-3);
743
+ }
744
+
745
+ .ax-button--danger {
746
+ border: 1px solid var(--ax-border);
747
+ background: transparent;
748
+ color: var(--ax-danger);
749
+ }
750
+
751
+ .ax-button--danger:hover:not(:disabled) {
752
+ border-color: var(--ax-danger);
753
+ background: var(--ax-danger-soft);
754
+ }
755
+
756
+ .ax-button:disabled {
757
+ color: var(--ax-fg-subtle);
758
+ cursor: not-allowed;
759
+ }
760
+
761
+ .ax-button:focus-visible {
762
+ outline: 2px solid var(--ax-focus-ring);
763
+ outline-offset: 2px;
764
+ }
765
+
766
+ /* ------------------------------------------------------------------------------------------
767
+ * Media references
768
+ * ---------------------------------------------------------------------------------------- */
769
+
770
+ /* ------------------------------------------------------------------------------------------
771
+ * Capture panels
772
+ *
773
+ * The panel is a group, so its border comes from the fieldset reset rather than the UA. Every
774
+ * actionable element is at least the 44px touch target, and the only colour used for state is
775
+ * the error ink — every state also states itself in words.
776
+ * ---------------------------------------------------------------------------------------- */
777
+
778
+ .ax-capture,
779
+ .ax-signature {
780
+ display: grid;
781
+ gap: var(--ax-space-3);
782
+ min-inline-size: 0;
783
+ margin: 0;
784
+ padding: 0;
785
+ border: 0;
786
+ }
787
+
788
+ .ax-capture__legend,
789
+ .ax-signature__legend {
790
+ padding: 0;
791
+ color: var(--ax-fg);
792
+ font-size: var(--ax-text-group);
793
+ font-weight: var(--ax-weight-semibold);
794
+ line-height: var(--ax-leading-tight);
795
+ }
796
+
797
+ .ax-capture:focus,
798
+ .ax-signature:focus {
799
+ outline: 2px solid var(--ax-focus-ring);
800
+ outline-offset: 2px;
801
+ }
802
+
803
+ .ax-capture__sources {
804
+ display: grid;
805
+ gap: var(--ax-space-3);
806
+ }
807
+
808
+ .ax-capture__source {
809
+ display: grid;
810
+ justify-items: start;
811
+ gap: var(--ax-space-1);
812
+ }
813
+
814
+ .ax-capture__source .ax-button,
815
+ .ax-capture__file-input,
816
+ .ax-capture__open,
817
+ .ax-signature__typed,
818
+ .ax-signature__upload {
819
+ min-block-size: var(--ax-touch-height);
820
+ }
821
+
822
+ .ax-capture__file {
823
+ display: grid;
824
+ gap: var(--ax-space-1);
825
+ min-inline-size: 0;
826
+ }
827
+
828
+ .ax-capture__file-input {
829
+ inline-size: 100%;
830
+ padding: var(--ax-space-1);
831
+ border: 1px solid var(--ax-border);
832
+ border-radius: var(--ax-radius-xs);
833
+ background: var(--ax-surface);
834
+ color: var(--ax-fg);
835
+ font: inherit;
836
+ font-size: var(--ax-text-sm);
837
+ }
838
+
839
+ .ax-capture__file-input:focus-visible {
840
+ border-color: var(--ax-accent);
841
+ outline: 2px solid var(--ax-focus-ring);
842
+ outline-offset: 2px;
843
+ }
844
+
845
+ .ax-capture__live {
846
+ inline-size: 100%;
847
+ max-inline-size: 32rem;
848
+ aspect-ratio: 4 / 3;
849
+ border: 1px solid var(--ax-border);
850
+ background: var(--ax-fg);
851
+ object-fit: cover;
852
+ }
853
+
854
+ .ax-capture__preview {
855
+ max-inline-size: min(24rem, 100%);
856
+ max-block-size: 16rem;
857
+ border: 1px solid var(--ax-border);
858
+ background: var(--ax-surface-2);
859
+ }
860
+
861
+ .ax-capture__open {
862
+ display: inline-flex;
863
+ align-items: center;
864
+ color: var(--ax-accent);
865
+ font-size: var(--ax-text-sm);
866
+ font-weight: var(--ax-weight-medium);
867
+ }
868
+
869
+ .ax-capture__open:hover {
870
+ color: var(--ax-accent-hover);
871
+ }
872
+
873
+ .ax-capture__open:focus-visible {
874
+ outline: 2px solid var(--ax-focus-ring);
875
+ outline-offset: 2px;
876
+ }
877
+
878
+ .ax-capture__timer {
879
+ margin: 0;
880
+ color: var(--ax-fg);
881
+ font-size: var(--ax-text-control);
882
+ font-variant-numeric: tabular-nums;
883
+ font-weight: var(--ax-weight-semibold);
884
+ }
885
+
886
+ .ax-capture__status,
887
+ .ax-capture__file-line,
888
+ .ax-capture__refusal,
889
+ .ax-capture__error {
890
+ margin: 0;
891
+ font-size: var(--ax-text-sm);
892
+ line-height: var(--ax-leading-body);
893
+ }
894
+
895
+ .ax-capture__refusal,
896
+ .ax-capture__error {
897
+ display: grid;
898
+ justify-items: start;
899
+ gap: var(--ax-space-2);
900
+ }
901
+
902
+ .ax-signature__modes {
903
+ display: flex;
904
+ flex-wrap: wrap;
905
+ gap: var(--ax-space-2) var(--ax-space-4);
906
+ margin: 0;
907
+ padding: 0;
908
+ border: 0;
909
+ }
910
+
911
+ .ax-signature__modes .ax-choice {
912
+ min-block-size: var(--ax-touch-height);
913
+ }
914
+
915
+ .ax-signature__pad {
916
+ display: block;
917
+ max-inline-size: 100%;
918
+ border: 1px solid var(--ax-border);
919
+ background: var(--ax-surface);
920
+ touch-action: none;
921
+ }
922
+
923
+ .ax-signature__field {
924
+ display: grid;
925
+ gap: var(--ax-space-1);
926
+ min-inline-size: 0;
927
+ }
928
+
929
+ .ax-signature__typed,
930
+ .ax-signature__upload {
931
+ inline-size: 100%;
932
+ padding-inline: var(--ax-space-2);
933
+ font: inherit;
934
+ font-size: var(--ax-text-control);
935
+ }
936
+
937
+ .ax-signature__actions {
938
+ flex-wrap: wrap;
939
+ }
940
+
941
+ /* ------------------------------------------------------------------------------------------
942
+ * Date and time entries
943
+ * ---------------------------------------------------------------------------------------- */
944
+
945
+ .ax-date-field {
946
+ position: relative;
947
+ display: grid;
948
+ gap: var(--ax-space-1);
949
+ min-inline-size: 0;
950
+ }
951
+
952
+ .ax-date-row {
953
+ display: grid;
954
+ grid-template-columns: minmax(0, 1fr) auto;
955
+ gap: var(--ax-space-1);
956
+ align-items: stretch;
957
+ }
958
+
959
+ .ax-date-toggle {
960
+ min-inline-size: var(--ax-control-height);
961
+ padding-inline: var(--ax-space-2);
962
+ }
963
+
964
+ .ax-date-popover {
965
+ position: absolute;
966
+ z-index: 20;
967
+ inset-block-start: calc(100% + var(--ax-space-1));
968
+ inset-inline-start: 0;
969
+ padding: var(--ax-space-2);
970
+ border: 1px solid var(--ax-border);
971
+ border-radius: var(--ax-radius-0);
972
+ background: var(--ax-surface);
973
+ }
974
+
975
+ .ax-date-popover .rdp-root {
976
+ --rdp-accent-color: var(--ax-accent);
977
+ --rdp-accent-background-color: var(--ax-accent-soft);
978
+ color: var(--ax-fg);
979
+ font-family: var(--ax-font-sans);
980
+ font-size: var(--ax-text-body);
981
+ }
982
+
983
+ .ax-date-popover .rdp-day_button {
984
+ min-block-size: var(--ax-control-height);
985
+ border: 1px solid transparent;
986
+ border-radius: var(--ax-radius-0);
987
+ background: transparent;
988
+ color: var(--ax-fg);
989
+ font: inherit;
990
+ cursor: pointer;
991
+ }
992
+
993
+ .ax-date-popover .rdp-selected .rdp-day_button {
994
+ border-color: var(--ax-accent);
995
+ background: var(--ax-accent);
996
+ color: var(--ax-fg-on-accent);
997
+ }
998
+
999
+ .ax-date-popover .rdp-today .rdp-day_button {
1000
+ outline: 2px solid var(--ax-focus-ring);
1001
+ outline-offset: -2px;
1002
+ }
1003
+
1004
+ .ax-date-popover .rdp-disabled .rdp-day_button {
1005
+ color: var(--ax-fg-subtle);
1006
+ cursor: not-allowed;
1007
+ text-decoration: line-through;
1008
+ }
1009
+
1010
+ .ax-duration {
1011
+ display: grid;
1012
+ grid-template-columns: minmax(0, 1fr) auto;
1013
+ align-items: stretch;
1014
+ min-inline-size: 0;
1015
+ }
1016
+
1017
+ .ax-duration-unit {
1018
+ display: inline-flex;
1019
+ align-items: center;
1020
+ padding-inline: var(--ax-space-3);
1021
+ border: 1px solid var(--ax-border);
1022
+ border-inline-start: 0;
1023
+ border-start-end-radius: var(--ax-radius-0);
1024
+ border-end-end-radius: var(--ax-radius-0);
1025
+ background: var(--ax-surface-2);
1026
+ color: var(--ax-fg-muted);
1027
+ font-size: var(--ax-text-hint);
1028
+ }
1029
+
1030
+ .ax-datetime {
1031
+ display: grid;
1032
+ gap: var(--ax-space-2);
1033
+ min-inline-size: 0;
1034
+ }
1035
+
1036
+ .ax-time {
1037
+ display: flex;
1038
+ align-items: center;
1039
+ gap: var(--ax-space-1);
1040
+ min-inline-size: 0;
1041
+ }
1042
+
1043
+ .ax-time-segments {
1044
+ display: inline-flex;
1045
+ align-items: center;
1046
+ gap: 2px;
1047
+ min-block-size: var(--ax-control-height);
1048
+ padding-inline: var(--ax-space-2);
1049
+ border: 1px solid var(--ax-border);
1050
+ border-radius: var(--ax-radius-0);
1051
+ background: var(--ax-surface);
1052
+ color: var(--ax-fg);
1053
+ font-size: var(--ax-text-control);
1054
+ font-variant-numeric: tabular-nums;
1055
+ }
1056
+
1057
+ .ax-time-period {
1058
+ min-inline-size: var(--ax-control-height);
1059
+ padding-inline: var(--ax-space-2);
1060
+ font-size: var(--ax-text-hint);
1061
+ }
1062
+
1063
+ /* ------------------------------------------------------------------------------------------
1064
+ * Address and coordinate
1065
+ * ---------------------------------------------------------------------------------------- */
1066
+
1067
+ /* An address is one value of six members: two columns where there is room, one below the grid
1068
+ * breakpoint. Every track is `minmax(0, 1fr)`, so a long street line wraps its own grid cell
1069
+ * rather than widening the form. The fieldset chrome comes from the form's group rule above. */
1070
+ .ax-form .ax-address {
1071
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1072
+ }
1073
+
1074
+ .ax-address-member {
1075
+ display: grid;
1076
+ gap: var(--ax-space-1);
1077
+ min-inline-size: 0;
1078
+ }
1079
+
1080
+ .ax-address-member--wide {
1081
+ grid-column: 1 / -1;
1082
+ }
1083
+
1084
+ .ax-form .ax-address .ax-control {
1085
+ min-inline-size: 0;
1086
+ }
1087
+
1088
+ /* A coordinate is a capture row and two manual entries. The manual pair shares the address
1089
+ * grid's two-column rhythm and collapses with it. */
1090
+ .ax-location-capture {
1091
+ display: flex;
1092
+ flex-wrap: wrap;
1093
+ gap: var(--ax-space-2);
1094
+ }
1095
+
1096
+ .ax-form .ax-location-manual {
1097
+ display: grid;
1098
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1099
+ gap: var(--ax-space-3);
1100
+ min-inline-size: 0;
1101
+ }
1102
+
1103
+ .ax-location-member {
1104
+ display: grid;
1105
+ gap: var(--ax-space-1);
1106
+ min-inline-size: 0;
1107
+ }
1108
+
1109
+ .ax-form .ax-location .ax-control {
1110
+ min-inline-size: 0;
1111
+ }
1112
+
1113
+ .ax-position-status:empty {
1114
+ display: none;
1115
+ }
1116
+
1117
+ .ax-position-summary {
1118
+ display: flex;
1119
+ flex-wrap: wrap;
1120
+ gap: var(--ax-space-4);
1121
+ margin: 0;
1122
+ }
1123
+
1124
+ .ax-position-summary > div {
1125
+ display: flex;
1126
+ gap: var(--ax-space-1);
1127
+ align-items: baseline;
1128
+ }
1129
+
1130
+ .ax-position-summary dt {
1131
+ color: var(--ax-fg-muted);
1132
+ font-size: var(--ax-text-hint);
1133
+ }
1134
+
1135
+ .ax-position-summary dd {
1136
+ margin: 0;
1137
+ color: var(--ax-fg);
1138
+ font-variant-numeric: tabular-nums;
1139
+ }
1140
+
1141
+ /* ------------------------------------------------------------------------------------------
1142
+ * Schedule: a month grid and a proportional day column
1143
+ * ---------------------------------------------------------------------------------------- */
1144
+
1145
+ .ax-schedule {
1146
+ display: grid;
1147
+ grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
1148
+ gap: var(--ax-space-4);
1149
+ align-items: start;
1150
+ min-inline-size: 0;
1151
+ }
1152
+
1153
+ .ax-schedule-calendar,
1154
+ .ax-schedule-day {
1155
+ min-inline-size: 0;
1156
+ }
1157
+
1158
+ .ax-schedule .rdp-root {
1159
+ --rdp-accent-color: var(--ax-accent);
1160
+ --rdp-accent-background-color: var(--ax-accent-soft);
1161
+ --rdp-today-color: var(--ax-accent);
1162
+ color: var(--ax-fg);
1163
+ font-family: var(--ax-font-sans);
1164
+ font-size: var(--ax-text-body);
1165
+ }
1166
+
1167
+ .ax-schedule .rdp-months,
1168
+ .ax-schedule .rdp-month {
1169
+ inline-size: 100%;
1170
+ }
1171
+
1172
+ .ax-schedule .rdp-nav {
1173
+ display: flex;
1174
+ align-items: center;
1175
+ justify-content: space-between;
1176
+ gap: var(--ax-space-2);
1177
+ }
1178
+
1179
+ .ax-schedule .rdp-button_previous,
1180
+ .ax-schedule .rdp-button_next {
1181
+ min-block-size: var(--ax-control-height);
1182
+ min-inline-size: var(--ax-control-height);
1183
+ border: 1px solid var(--ax-border);
1184
+ border-radius: var(--ax-radius-0);
1185
+ background: var(--ax-surface);
1186
+ color: var(--ax-fg);
1187
+ cursor: pointer;
1188
+ }
1189
+
1190
+ .ax-schedule .rdp-month_caption {
1191
+ font-size: var(--ax-text-body);
1192
+ font-weight: var(--ax-weight-semibold);
1193
+ }
1194
+
1195
+ .ax-schedule .rdp-month_grid {
1196
+ inline-size: 100%;
1197
+ border-collapse: collapse;
1198
+ table-layout: fixed;
1199
+ }
1200
+
1201
+ .ax-schedule .rdp-weekday {
1202
+ padding-block: var(--ax-space-1);
1203
+ color: var(--ax-fg-muted);
1204
+ font-size: var(--ax-text-xs);
1205
+ font-weight: var(--ax-weight-medium);
1206
+ }
1207
+
1208
+ .ax-schedule .rdp-day {
1209
+ padding: 2px;
1210
+ text-align: center;
1211
+ }
1212
+
1213
+ .ax-schedule .rdp-day_button {
1214
+ inline-size: 100%;
1215
+ min-block-size: var(--ax-control-height);
1216
+ border: 1px solid transparent;
1217
+ border-radius: var(--ax-radius-0);
1218
+ background: transparent;
1219
+ color: var(--ax-fg);
1220
+ font: inherit;
1221
+ cursor: pointer;
1222
+ }
1223
+
1224
+ .ax-schedule .rdp-day_button:hover {
1225
+ border-color: var(--ax-border-strong);
1226
+ background: var(--ax-surface-2);
1227
+ }
1228
+
1229
+ .ax-schedule .rdp-selected .rdp-day_button {
1230
+ border-color: var(--ax-accent);
1231
+ background: var(--ax-accent);
1232
+ color: var(--ax-fg-on-accent);
1233
+ }
1234
+
1235
+ .ax-schedule .rdp-today .rdp-day_button {
1236
+ outline: 2px solid var(--ax-focus-ring);
1237
+ outline-offset: -2px;
1238
+ }
1239
+
1240
+ .ax-schedule .rdp-disabled .rdp-day_button {
1241
+ color: var(--ax-fg-subtle);
1242
+ cursor: not-allowed;
1243
+ text-decoration: line-through;
1244
+ }
1245
+
1246
+ .ax-schedule .rdp-outside {
1247
+ visibility: hidden;
1248
+ }
1249
+
1250
+ .ax-schedule-day {
1251
+ display: grid;
1252
+ gap: var(--ax-space-2);
1253
+ }
1254
+
1255
+ .ax-schedule-day-title {
1256
+ margin: 0;
1257
+ color: var(--ax-fg);
1258
+ font-size: var(--ax-text-body);
1259
+ font-weight: var(--ax-weight-medium);
1260
+ }
1261
+
1262
+ .ax-schedule-slots {
1263
+ /* The axis labels live in a gutter of the list's own box, sized to the longest label the
1264
+ * clock prints ("12:00 PM"), not in whatever margin happened to sit beside the timeline. A
1265
+ * label painted outside a reserved gutter is off the left edge of a phone. */
1266
+ position: relative;
1267
+ block-size: 22rem;
1268
+ max-inline-size: 100%;
1269
+ margin-inline-start: calc(var(--ax-space-7) + var(--ax-space-2));
1270
+ border-inline-start: 1px solid var(--ax-divider);
1271
+ }
1272
+
1273
+ .ax-schedule-slot {
1274
+ position: absolute;
1275
+ inset-inline: 0;
1276
+ display: flex;
1277
+ flex-direction: column;
1278
+ justify-content: space-between;
1279
+ gap: 2px;
1280
+ min-block-size: var(--ax-control-height);
1281
+ padding: var(--ax-space-1) var(--ax-space-2);
1282
+ border: 1px solid var(--ax-border);
1283
+ border-radius: var(--ax-radius-0);
1284
+ background: var(--ax-surface);
1285
+ color: var(--ax-fg);
1286
+ cursor: pointer;
1287
+ overflow: hidden;
1288
+ }
1289
+
1290
+ .ax-schedule-slot:hover {
1291
+ border-color: var(--ax-border-strong);
1292
+ background: var(--ax-surface-2);
1293
+ }
1294
+
1295
+ .ax-schedule-slot[data-selected] {
1296
+ border-color: var(--ax-accent);
1297
+ background: var(--ax-accent-soft);
1298
+ }
1299
+
1300
+ .ax-schedule-slot[data-active] {
1301
+ outline: 2px solid var(--ax-focus-ring);
1302
+ outline-offset: 2px;
1303
+ }
1304
+
1305
+ .ax-schedule-slot-time {
1306
+ font-size: var(--ax-text-hint);
1307
+ font-weight: var(--ax-weight-medium);
1308
+ font-variant-numeric: tabular-nums;
1309
+ }
1310
+
1311
+ .ax-schedule-slot-duration {
1312
+ color: var(--ax-fg-muted);
1313
+ font-size: var(--ax-text-xs);
1314
+ }
1315
+
1316
+ .ax-schedule-axis {
1317
+ position: absolute;
1318
+ /* The reserved gutter above is the label's box: no negative margin and no -100% mirror, both
1319
+ * of which place the text outside the list instead of inside the space made for it. */
1320
+ inset-inline-start: calc(-1 * calc(var(--ax-space-7) + var(--ax-space-2)));
1321
+ inline-size: calc(calc(var(--ax-space-7) + var(--ax-space-2)) - var(--ax-space-1));
1322
+ color: var(--ax-fg-subtle);
1323
+ font-size: var(--ax-text-xs);
1324
+ font-variant-numeric: tabular-nums;
1325
+ text-align: end;
1326
+ }
1327
+
1328
+ .ax-schedule-axis--start {
1329
+ inset-block-start: 0;
1330
+ }
1331
+
1332
+ .ax-schedule-axis--end {
1333
+ inset-block-end: 0;
1334
+ }
1335
+
1336
+ .ax-schedule-skeleton {
1337
+ block-size: 22rem;
1338
+ border-radius: var(--ax-radius-0);
1339
+ background: repeating-linear-gradient(
1340
+ 180deg,
1341
+ var(--ax-surface-2) 0 2.75rem,
1342
+ var(--ax-surface) 2.75rem 3.5rem
1343
+ );
1344
+ }
1345
+
1346
+ .ax-schedule-error {
1347
+ display: grid;
1348
+ gap: var(--ax-space-2);
1349
+ padding: var(--ax-space-2);
1350
+ border-inline-start: 3px solid var(--ax-danger);
1351
+ background: var(--ax-danger-soft);
1352
+ }
1353
+
1354
+ .ax-schedule-error p {
1355
+ margin: 0;
1356
+ color: var(--ax-danger);
1357
+ font-size: var(--ax-text-hint);
1358
+ }
1359
+
1360
+ @media (max-width: 34rem) {
1361
+ .ax-schedule {
1362
+ grid-template-columns: minmax(0, 1fr);
1363
+ }
1364
+
1365
+ .ax-schedule-slots {
1366
+ block-size: 20rem;
1367
+ /* The gutter is the label's box, so it must not shrink below the label's measure. */
1368
+ margin-inline-start: calc(var(--ax-space-7) + var(--ax-space-2));
1369
+ }
1370
+ }
1371
+
1372
+ /* A slider is a number with a track: the value, both ends and the declared marks are text, and
1373
+ * the input keeps the 44 px target and the global focus ring. */
1374
+ .ax-slider {
1375
+ display: grid;
1376
+ gap: var(--ax-space-1);
1377
+ min-inline-size: 0;
1378
+ }
1379
+
1380
+ .ax-slider-head {
1381
+ display: flex;
1382
+ align-items: baseline;
1383
+ justify-content: space-between;
1384
+ gap: var(--ax-space-2);
1385
+ }
1386
+
1387
+ .ax-slider-value {
1388
+ color: var(--ax-fg);
1389
+ font-size: var(--ax-text-control);
1390
+ font-variant-numeric: tabular-nums;
1391
+ }
1392
+
1393
+ .ax-slider-bounds {
1394
+ color: var(--ax-fg-muted);
1395
+ font-size: var(--ax-text-hint);
1396
+ font-variant-numeric: tabular-nums;
1397
+ }
1398
+
1399
+ .ax-slider input[type="range"] {
1400
+ inline-size: 100%;
1401
+ min-block-size: var(--ax-control-height);
1402
+ accent-color: var(--ax-accent);
1403
+ }
1404
+
1405
+ .ax-slider-ticks {
1406
+ display: flex;
1407
+ justify-content: space-between;
1408
+ gap: var(--ax-space-2);
1409
+ color: var(--ax-fg-muted);
1410
+ font-size: var(--ax-text-hint);
1411
+ }
1412
+
1413
+ .ax-slider-tick {
1414
+ white-space: nowrap;
1415
+ }
1416
+
1417
+ /* A money entry states its currency once, in a prefix attached to the input. The value itself
1418
+ * is the amount at the declared scale, grouped by the locale's mark; the scale is never text. */
1419
+ .ax-money {
1420
+ display: grid;
1421
+ grid-template-columns: auto minmax(0, 1fr);
1422
+ align-items: stretch;
1423
+ min-inline-size: 0;
1424
+ }
1425
+
1426
+ .ax-money-prefix {
1427
+ display: inline-flex;
1428
+ align-items: center;
1429
+ padding-inline: var(--ax-space-3);
1430
+ border: 1px solid var(--ax-border);
1431
+ border-inline-end: 0;
1432
+ border-start-start-radius: var(--ax-radius-0);
1433
+ border-end-start-radius: var(--ax-radius-0);
1434
+ background: var(--ax-surface-2);
1435
+ color: var(--ax-fg-muted);
1436
+ font-size: var(--ax-text-control);
1437
+ font-variant-numeric: tabular-nums;
1438
+ }
1439
+
1440
+ .ax-money > .ax-control {
1441
+ border-start-start-radius: var(--ax-radius-0);
1442
+ border-end-start-radius: var(--ax-radius-0);
1443
+ }
1444
+
1445
+ .ax-form[data-width="fill"] .ax-money {
1446
+ max-inline-size: 18rem;
1447
+ }
1448
+
1449
+ .ax-media {
1450
+ display: grid;
1451
+ grid-template-columns: 3rem minmax(0, 1fr);
1452
+ column-gap: var(--ax-space-3);
1453
+ align-items: start;
1454
+ min-inline-size: 0;
1455
+ }
1456
+
1457
+ .ax-media-thumb {
1458
+ inline-size: 3rem;
1459
+ block-size: 3rem;
1460
+ border: 1px solid var(--ax-border);
1461
+ border-radius: var(--ax-radius-0);
1462
+ background: var(--ax-surface-2);
1463
+ object-fit: cover;
1464
+ }
1465
+
1466
+ .ax-media-thumb--glyph {
1467
+ display: grid;
1468
+ place-content: center;
1469
+ gap: 2px;
1470
+ padding: 2px;
1471
+ text-align: center;
1472
+ color: var(--ax-fg-muted);
1473
+ overflow: hidden;
1474
+ }
1475
+
1476
+ .ax-media-glyph {
1477
+ font-size: 1.25rem;
1478
+ line-height: 1;
1479
+ }
1480
+
1481
+ .ax-media-type {
1482
+ font-size: var(--ax-text-xs);
1483
+ overflow-wrap: anywhere;
1484
+ }
1485
+
1486
+ .ax-media-body {
1487
+ display: grid;
1488
+ gap: var(--ax-space-2);
1489
+ min-inline-size: 0;
1490
+ }
1491
+
1492
+ .ax-media-line {
1493
+ font-family: var(--ax-font-mono);
1494
+ font-size: var(--ax-text-xs);
1495
+ color: var(--ax-fg-muted);
1496
+ overflow-wrap: anywhere;
1497
+ }
1498
+
1499
+ .ax-media-list {
1500
+ gap: var(--ax-space-2);
1501
+ }
1502
+
1503
+ .ax-media-item {
1504
+ display: grid;
1505
+ grid-template-columns: 3rem minmax(0, 1fr);
1506
+ column-gap: var(--ax-space-3);
1507
+ align-items: start;
1508
+ }
1509
+
1510
+ .ax-media-item > .ax-error {
1511
+ grid-column: 2;
1512
+ margin: 0;
1513
+ }
1514
+
1515
+ .ax-media-item .ax-actions {
1516
+ justify-content: flex-start;
1517
+ }
1518
+
1519
+ /* ------------------------------------------------------------------------------------------
1520
+ * Ordered lists (rank)
1521
+ * ---------------------------------------------------------------------------------------- */
1522
+
1523
+ .ax-rank {
1524
+ display: grid;
1525
+ gap: var(--ax-space-2);
1526
+ }
1527
+
1528
+ .ax-rank-list {
1529
+ display: grid;
1530
+ gap: var(--ax-space-2);
1531
+ margin: 0;
1532
+ padding: 0;
1533
+ list-style: none;
1534
+ }
1535
+
1536
+ /* A filtering combobox paints its candidates as options of this list, and keeps focus in the entry
1537
+ * above it: the entry the arrow keys point at is the only thing that says where Enter would land,
1538
+ * so it carries the ring a focused option would. Both declarations come from the background and an
1539
+ * outline, so pointing at an option moves nothing. */
1540
+ .ax-rank-list [role="option"]:hover,
1541
+ .ax-rank-list [role="option"][data-active] {
1542
+ background: var(--ax-surface-2);
1543
+ }
1544
+
1545
+ .ax-rank-list [role="option"][data-active] {
1546
+ border-radius: var(--ax-radius-xs);
1547
+ outline: 2px solid var(--ax-accent);
1548
+ outline-offset: -2px;
1549
+ }
1550
+
1551
+ .ax-rank-item {
1552
+ display: flex;
1553
+ align-items: center;
1554
+ justify-content: space-between;
1555
+ gap: var(--ax-space-2);
1556
+ min-block-size: var(--ax-row-height);
1557
+ padding-block: var(--ax-space-2);
1558
+ border-block-start: 1px solid var(--ax-divider);
1559
+ background: transparent;
1560
+ }
1561
+
1562
+ .ax-rank-label {
1563
+ font-weight: var(--ax-weight-medium);
1564
+ overflow-wrap: anywhere;
1565
+ }
1566
+
1567
+ .ax-rank-item .ax-actions {
1568
+ flex: 0 0 auto;
1569
+ }
1570
+
1571
+ .ax-rank-item .ax-actions button {
1572
+ display: inline-grid;
1573
+ min-inline-size: var(--ax-control-height);
1574
+ padding-inline: var(--ax-space-2);
1575
+ place-items: center;
1576
+ }
1577
+
1578
+ /* ------------------------------------------------------------------------------------------
1579
+ * Wizard
1580
+ * ---------------------------------------------------------------------------------------- */
1581
+
1582
+ .ax-wizard {
1583
+ display: grid;
1584
+ gap: var(--ax-space-4);
1585
+ min-inline-size: 0;
1586
+ }
1587
+
1588
+ /* The checkpoint bar: numbered circles joined by a hairline, each with its title beneath.
1589
+ Every state is carried by a glyph and by text, so a reader who cannot distinguish the accent
1590
+ from the danger colour still reads complete, current, blocked and unvisited apart. */
1591
+ .ax-checkpoints {
1592
+ overflow-x: auto;
1593
+ scrollbar-width: thin;
1594
+ }
1595
+
1596
+ .ax-checkpoints__list {
1597
+ display: flex;
1598
+ align-items: flex-start;
1599
+ margin: 0;
1600
+ padding: 0;
1601
+ list-style: none;
1602
+ }
1603
+
1604
+ .ax-checkpoint {
1605
+ position: relative;
1606
+ display: flex;
1607
+ flex: 1 1 0;
1608
+ justify-content: center;
1609
+ min-inline-size: 0;
1610
+ }
1611
+
1612
+ /* The hairline joins the previous circle's centre to this one's, behind both. */
1613
+ .ax-checkpoint:not(:first-child)::before {
1614
+ position: absolute;
1615
+ inset-block-start: calc(var(--ax-checkpoint-size) / 2);
1616
+ inset-inline-start: -50%;
1617
+ z-index: 0;
1618
+ inline-size: 100%;
1619
+ block-size: 1px;
1620
+ background: var(--ax-divider);
1621
+ content: "";
1622
+ }
1623
+
1624
+ .ax-checkpoint__item {
1625
+ position: relative;
1626
+ z-index: 1;
1627
+ display: grid;
1628
+ /* One column bounded by the checkpoint's own width. An `auto` track grows to the label's
1629
+ * `max-content` and a long step title then overruns the `li` by its own extra pixels. */
1630
+ grid-template-columns: minmax(0, 1fr);
1631
+ inline-size: 100%;
1632
+ max-inline-size: 100%;
1633
+ justify-items: center;
1634
+ gap: var(--ax-space-1);
1635
+ min-inline-size: 0;
1636
+ padding: 0;
1637
+ border: 0;
1638
+ background: transparent;
1639
+ color: inherit;
1640
+ font: inherit;
1641
+ text-align: center;
1642
+ }
1643
+
1644
+ .ax-checkpoint__marker {
1645
+ display: grid;
1646
+ place-items: center;
1647
+ inline-size: var(--ax-checkpoint-size);
1648
+ block-size: var(--ax-checkpoint-size);
1649
+ border: 1px solid var(--ax-divider);
1650
+ border-radius: 2px;
1651
+ background: var(--ax-surface);
1652
+ color: var(--ax-fg-muted);
1653
+ font-size: var(--ax-text-sm);
1654
+ font-weight: var(--ax-weight-semibold);
1655
+ line-height: 1;
1656
+ }
1657
+
1658
+ .ax-checkpoint__label {
1659
+ max-inline-size: min(10rem, 100%);
1660
+ min-inline-size: 0;
1661
+ overflow: hidden;
1662
+ color: var(--ax-fg-muted);
1663
+ font-size: var(--ax-text-sm);
1664
+ line-height: 1.25;
1665
+ text-overflow: ellipsis;
1666
+ white-space: nowrap;
1667
+ }
1668
+
1669
+ .ax-checkpoint__count {
1670
+ color: var(--ax-danger);
1671
+ font-size: var(--ax-text-xs);
1672
+ font-weight: var(--ax-weight-semibold);
1673
+ white-space: nowrap;
1674
+ }
1675
+
1676
+ /* Current: a filled accent ring and a bold label. */
1677
+ .ax-checkpoint__item[aria-current="step"] .ax-checkpoint__marker {
1678
+ border-color: var(--ax-accent);
1679
+ background: var(--ax-accent);
1680
+ color: var(--ax-surface);
1681
+ }
1682
+
1683
+ .ax-checkpoint__item[aria-current="step"] .ax-checkpoint__label {
1684
+ color: var(--ax-fg);
1685
+ font-weight: var(--ax-weight-semibold);
1686
+ }
1687
+
1688
+ /* Complete: a check glyph and normal text. */
1689
+ .ax-checkpoint__item[data-step-state="complete"] .ax-checkpoint__marker {
1690
+ border-color: var(--ax-fg);
1691
+ color: var(--ax-fg);
1692
+ }
1693
+
1694
+ /* Blocked: a warning glyph and the visible count beside it. */
1695
+ .ax-checkpoint__item[data-step-state="blocked"] .ax-checkpoint__marker {
1696
+ border-color: var(--ax-danger);
1697
+ color: var(--ax-danger);
1698
+ font-weight: var(--ax-weight-bold);
1699
+ }
1700
+
1701
+ /* Unvisited: an outlined circle, and a label that is not the current page's. */
1702
+ .ax-checkpoint__item[data-step-state="unvisited"] .ax-checkpoint__marker {
1703
+ border-style: dashed;
1704
+ }
1705
+
1706
+ button.ax-checkpoint__item {
1707
+ cursor: pointer;
1708
+ }
1709
+
1710
+ button.ax-checkpoint__item:hover .ax-checkpoint__marker {
1711
+ border-color: var(--ax-accent);
1712
+ }
1713
+
1714
+ button.ax-checkpoint__item:focus-visible {
1715
+ outline: 2px solid var(--ax-focus-ring);
1716
+ outline-offset: 2px;
1717
+ }
1718
+
1719
+ .ax-wizard > [role="status"] {
1720
+ margin: 0;
1721
+ color: var(--ax-fg-muted);
1722
+ font-size: var(--ax-text-sm);
1723
+ }
1724
+
1725
+ /* ------------------------------------------------------------------------------------------
1726
+ * Error summary and readout
1727
+ * ---------------------------------------------------------------------------------------- */
1728
+
1729
+ .ax-summary {
1730
+ padding: 0 0 0 var(--ax-space-3);
1731
+ border: 0;
1732
+ border-inline-start: 2px solid var(--ax-danger);
1733
+ border-radius: var(--ax-radius-0);
1734
+ background: transparent;
1735
+ color: var(--ax-fg);
1736
+ }
1737
+
1738
+ .ax-summary:focus-visible {
1739
+ outline: 2px solid var(--ax-focus-ring);
1740
+ outline-offset: 2px;
1741
+ }
1742
+
1743
+ .ax-summary-title {
1744
+ margin: 0 0 var(--ax-space-1);
1745
+ color: var(--ax-fg);
1746
+ font-size: var(--ax-text-sm);
1747
+ font-weight: var(--ax-weight-semibold);
1748
+ line-height: 1.4;
1749
+ }
1750
+
1751
+ .ax-summary > ul {
1752
+ display: grid;
1753
+ gap: var(--ax-space-1);
1754
+ margin: 0;
1755
+ padding-inline-start: var(--ax-space-5);
1756
+ }
1757
+
1758
+ .ax-summary-item {
1759
+ color: var(--ax-fg);
1760
+ font-size: var(--ax-text-sm);
1761
+ line-height: 1.45;
1762
+ }
1763
+
1764
+ .ax-summary-item > a {
1765
+ display: inline-block;
1766
+ min-block-size: 2.75rem;
1767
+ padding-block: var(--ax-space-1);
1768
+ color: var(--ax-danger);
1769
+ font-weight: var(--ax-weight-medium);
1770
+ text-decoration: underline;
1771
+ text-underline-offset: 2px;
1772
+ }
1773
+
1774
+ .ax-readout {
1775
+ display: grid;
1776
+ gap: var(--ax-space-3);
1777
+ padding-block: var(--ax-space-4);
1778
+ border-block-start: 1px solid var(--ax-divider);
1779
+ background: transparent;
1780
+ }
1781
+
1782
+ .ax-readout > p {
1783
+ margin: 0;
1784
+ color: var(--ax-fg-muted);
1785
+ font-size: var(--ax-text-sm);
1786
+ }
1787
+
1788
+ .ax-readout > dl {
1789
+ display: grid;
1790
+ margin: 0;
1791
+ }
1792
+
1793
+ .ax-readout > dl > div {
1794
+ display: grid;
1795
+ /* The label keeps a readable floor even beside a value with no break opportunity (a 150
1796
+ * character identifier): an `auto` value track otherwise consumes the whole row and the
1797
+ * label is laid out in a zero-width box. */
1798
+ grid-template-columns: minmax(6rem, 1fr) auto;
1799
+ gap: var(--ax-space-3);
1800
+ align-items: baseline;
1801
+ padding-block: var(--ax-space-2);
1802
+ border-block-start: 1px solid var(--ax-divider);
1803
+ }
1804
+
1805
+ .ax-readout > dl > div:first-child {
1806
+ border-block-start: 0;
1807
+ }
1808
+
1809
+ .ax-readout dt {
1810
+ color: var(--ax-fg-muted);
1811
+ font-size: var(--ax-text-sm);
1812
+ overflow-wrap: anywhere;
1813
+ }
1814
+
1815
+ .ax-readout dd {
1816
+ margin: 0;
1817
+ color: var(--ax-fg);
1818
+ font-weight: var(--ax-weight-semibold);
1819
+ text-align: end;
1820
+ overflow-wrap: anywhere;
1821
+ }
1822
+
1823
+ .ax-readout dd bdi {
1824
+ font-family: var(--ax-font-mono);
1825
+ font-variant-numeric: tabular-nums;
1826
+ }
1827
+
1828
+ /* ------------------------------------------------------------------------------------------
1829
+ * Callouts
1830
+ * ---------------------------------------------------------------------------------------- */
1831
+
1832
+ .ax-callout {
1833
+ display: grid;
1834
+ gap: var(--ax-space-1);
1835
+ padding: var(--ax-space-4);
1836
+ border: 1px solid var(--ax-divider);
1837
+ border-inline-start: 2px solid var(--ax-accent);
1838
+ border-radius: var(--ax-radius-0);
1839
+ background: var(--ax-surface-2);
1840
+ color: var(--ax-fg);
1841
+ }
1842
+
1843
+ .ax-callout > p {
1844
+ margin: 0;
1845
+ overflow-wrap: anywhere;
1846
+ }
1847
+
1848
+ .ax-callout > p:first-child {
1849
+ font-weight: var(--ax-weight-semibold);
1850
+ }
1851
+
1852
+ .ax-callout[data-tone="warning"] {
1853
+ border-color: var(--ax-warn);
1854
+ background: var(--ax-warn-soft);
1855
+ }
1856
+
1857
+ .ax-callout[data-tone="info"] {
1858
+ border-color: var(--ax-info);
1859
+ background: var(--ax-info-soft);
1860
+ }
1861
+
1862
+ .ax-callout[data-tone="danger"] {
1863
+ border-color: var(--ax-danger);
1864
+ background: var(--ax-danger-soft);
1865
+ }
1866
+
1867
+ .ax-callout[data-tone="success"] {
1868
+ border-color: var(--ax-ok);
1869
+ background: var(--ax-ok-soft);
1870
+ }
1871
+
1872
+ /* ------------------------------------------------------------------------------------------
1873
+ * The configurator's choice list and the dialog it opens
1874
+ *
1875
+ * The choice list paints a field whose offered codes the record refuses or cannot decide, so
1876
+ * each entry keeps a reason in words beside the label and stays focusable and pressable. The
1877
+ * dialog the host opens from a staged write is still reserved: the rules below give the reserved
1878
+ * names their first paint from the reserved tokens, so a surface built on them is born themed
1879
+ * rather than arriving unstyled, and the dialog's markup will carry them unchanged.
1880
+ * ---------------------------------------------------------------------------------------- */
1881
+
1882
+ .ax-form .ax-choice-list {
1883
+ display: grid;
1884
+ gap: var(--ax-space-1);
1885
+ padding: 0;
1886
+ border: 0;
1887
+ min-inline-size: 0;
1888
+ }
1889
+
1890
+ .ax-form .ax-choice-list [role="listbox"] {
1891
+ display: grid;
1892
+ gap: var(--ax-space-1);
1893
+ margin: 0;
1894
+ padding: 0;
1895
+ list-style: none;
1896
+ }
1897
+
1898
+ .ax-form .ax-overlay {
1899
+ position: fixed;
1900
+ inset: 0;
1901
+ z-index: 40;
1902
+ display: grid;
1903
+ place-items: center;
1904
+ padding: var(--ax-space-4);
1905
+ background: var(--ax-overlay-scrim);
1906
+ }
1907
+
1908
+ .ax-form .ax-dialog {
1909
+ inline-size: 100%;
1910
+ max-inline-size: var(--ax-dialog-width);
1911
+ max-block-size: calc(100vb - var(--ax-space-8));
1912
+ overflow: auto;
1913
+ padding: var(--ax-space-5);
1914
+ border: 1px solid var(--ax-border);
1915
+ border-radius: var(--ax-radius-0);
1916
+ background: var(--ax-dialog-surface);
1917
+ color: var(--ax-fg);
1918
+ }
1919
+
1920
+ .ax-form .ax-dialog-title {
1921
+ margin: 0 0 var(--ax-space-2);
1922
+ color: var(--ax-fg);
1923
+ font-size: var(--ax-text-section);
1924
+ font-weight: var(--ax-weight-semibold);
1925
+ line-height: var(--ax-leading-tight);
1926
+ }
1927
+
1928
+ .ax-form .ax-option {
1929
+ display: grid;
1930
+ gap: var(--ax-space-1);
1931
+ min-block-size: var(--ax-touch-height);
1932
+ padding-inline: var(--ax-space-2);
1933
+ border: 1px solid transparent;
1934
+ border-radius: var(--ax-radius-xs);
1935
+ align-content: center;
1936
+ cursor: pointer;
1937
+ }
1938
+
1939
+ .ax-form .ax-option:hover {
1940
+ background: var(--ax-surface-2);
1941
+ }
1942
+
1943
+ /* Every entry is a stop the keyboard can land on, and an entry reached by arrow is focused while
1944
+ * its own `tabindex` is -1: the ring is the only thing that says where the reader is. */
1945
+ .ax-form .ax-option:focus-visible {
1946
+ border-color: var(--ax-accent);
1947
+ outline: 2px solid var(--ax-focus-ring);
1948
+ outline-offset: -2px;
1949
+ }
1950
+
1951
+ .ax-form .ax-option[aria-selected="true"] {
1952
+ border-color: var(--ax-accent);
1953
+ background: var(--ax-accent-soft);
1954
+ }
1955
+
1956
+ .ax-form .ax-option[aria-disabled="true"] {
1957
+ cursor: not-allowed;
1958
+ }
1959
+
1960
+ .ax-form .ax-option-label {
1961
+ font-weight: var(--ax-weight-medium);
1962
+ overflow-wrap: anywhere;
1963
+ }
1964
+
1965
+ .ax-form .ax-option-reason {
1966
+ margin: 0;
1967
+ color: var(--ax-fg-muted);
1968
+ font-size: var(--ax-text-hint);
1969
+ line-height: var(--ax-leading-body);
1970
+ }
1971
+
1972
+ /* An unavailable option keeps its reason in words; the muted ink is never the only sign,
1973
+ * because the reason sentence above states the same fact. */
1974
+ .ax-form .ax-option[data-option-state="unavailable"] {
1975
+ color: var(--ax-fg-subtle);
1976
+ }
1977
+
1978
+ .ax-form .ax-option[data-option-state="undetermined"] {
1979
+ color: var(--ax-fg-muted);
1980
+ }
1981
+
1982
+ /* ------------------------------------------------------------------------------------------
1983
+ * Utility and motion
1984
+ * ---------------------------------------------------------------------------------------- */
1985
+
1986
+ .ax-visually-hidden,
1987
+ .axiom-visually-hidden {
1988
+ position: absolute;
1989
+ inline-size: 1px;
1990
+ block-size: 1px;
1991
+ margin: -1px;
1992
+ padding: 0;
1993
+ overflow: hidden;
1994
+ clip-path: inset(50%);
1995
+ white-space: nowrap;
1996
+ border: 0;
1997
+ }
1998
+
1999
+ .ax-form
2000
+ :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
2001
+ outline: 2px solid var(--ax-focus-ring);
2002
+ outline-offset: 2px;
2003
+ }
2004
+
2005
+ /* A multiple selection is a checkbox group: one 44px row per choice, stacked at every width so a
2006
+ * phone never has to modifier-click or open a native listbox. */
2007
+ .ax-checklist {
2008
+ display: grid;
2009
+ gap: var(--ax-space-1);
2010
+ padding: 0;
2011
+ border: 0;
2012
+ min-inline-size: 0;
2013
+ }
2014
+
2015
+ /* WCAG 1.4.10: an authored column count is a presentation hint, not a layout commitment.
2016
+ * The inline `grid-template-columns` the adapter emits is the authored count at every width
2017
+ * above the breakpoint; below it, every grid is one column. The value and the artifact are
2018
+ * untouched. */
2019
+ @media (max-width: 34rem) {
2020
+ .ax-form .ax-grid {
2021
+ grid-template-columns: minmax(0, 1fr) !important;
2022
+ }
2023
+
2024
+ /* At 390 px two 183 px address or coordinate columns would leave no room for a 44 px target
2025
+ * and a label. One column, and the wide members resume their normal flow. */
2026
+ .ax-form .ax-address,
2027
+ .ax-form .ax-location-manual {
2028
+ grid-template-columns: minmax(0, 1fr);
2029
+ }
2030
+
2031
+ .ax-address-member--wide {
2032
+ grid-column: auto;
2033
+ }
2034
+ }
2035
+
2036
+ @media (prefers-reduced-motion: reduce) {
2037
+ .ax-form *,
2038
+ .ax-form *::before,
2039
+ .ax-form *::after {
2040
+ animation-duration: 0.01ms !important;
2041
+ animation-iteration-count: 1 !important;
2042
+ transition-duration: 0.01ms !important;
2043
+ scroll-behavior: auto !important;
2044
+ }
2045
+ }
2046
+
2047
+ /* Forced colours: the platform palette replaces the token palette, and no state is carried
2048
+ * by colour alone. Decorative layers are dropped, focus takes the Highlight outline, and an
2049
+ * invalid field keeps its failure sentence while its label gains an underline no colour
2050
+ * change can take away. */
2051
+ @media (forced-colors: active) {
2052
+ /* Decorative layers are dropped so the platform owns every pixel. */
2053
+ .ax-control.ax-control--signature_capture,
2054
+ .ax-schedule-skeleton {
2055
+ forced-color-adjust: auto;
2056
+ background: Canvas;
2057
+ }
2058
+
2059
+ .ax-form
2060
+ :is(
2061
+ a,
2062
+ button,
2063
+ input,
2064
+ select,
2065
+ textarea,
2066
+ summary,
2067
+ [tabindex]:not([tabindex="-1"])
2068
+ ):focus-visible {
2069
+ outline: 3px solid Highlight;
2070
+ outline-offset: 2px;
2071
+ }
2072
+
2073
+ .ax-summary:focus-visible {
2074
+ outline: 3px solid Highlight;
2075
+ }
2076
+
2077
+ .ax-control {
2078
+ border-color: ButtonText;
2079
+ }
2080
+
2081
+ .ax-control[aria-invalid="true"] {
2082
+ border-color: Mark;
2083
+ border-width: 2px;
2084
+ }
2085
+
2086
+ /* Invalid is never colour alone: the failure sentence stays, and the label gains an
2087
+ * underline beside the Mark ink. */
2088
+ .ax-field[data-invalid] .ax-label {
2089
+ color: Mark;
2090
+ text-decoration: underline;
2091
+ text-decoration-thickness: 2px;
2092
+ text-underline-offset: 2px;
2093
+ }
2094
+
2095
+ .ax-error,
2096
+ .ax-checkpoint__count {
2097
+ color: Mark;
2098
+ }
2099
+
2100
+ .ax-control:disabled,
2101
+ .ax-actions button:disabled,
2102
+ .ax-button:disabled {
2103
+ border-color: GrayText;
2104
+ background: Canvas;
2105
+ color: GrayText;
2106
+ }
2107
+
2108
+ .ax-control[readonly] {
2109
+ border-style: dashed;
2110
+ }
2111
+
2112
+ input.ax-control--checkbox:checked,
2113
+ .ax-choice input[type="checkbox"]:checked,
2114
+ .ax-check input[type="checkbox"]:checked,
2115
+ input.ax-control--radio:checked,
2116
+ .ax-choice input[type="radio"]:checked,
2117
+ input.ax-control--switch:checked {
2118
+ border-color: Highlight;
2119
+ background: Highlight;
2120
+ color: HighlightText;
2121
+ }
2122
+
2123
+ .ax-checkpoint__item[aria-current="step"] .ax-checkpoint__marker {
2124
+ border-color: Highlight;
2125
+ background: Highlight;
2126
+ color: HighlightText;
2127
+ }
2128
+
2129
+ .ax-checkpoint__item[data-step-state="complete"] .ax-checkpoint__marker {
2130
+ border-color: Highlight;
2131
+ color: Highlight;
2132
+ }
2133
+
2134
+ .ax-form .ax-option:focus-visible {
2135
+ outline: 3px solid Highlight;
2136
+ outline-offset: -2px;
2137
+ }
2138
+
2139
+ .ax-form .ax-option[aria-selected="true"] {
2140
+ border-color: Highlight;
2141
+ }
2142
+
2143
+ .ax-schedule-slot[data-selected] {
2144
+ border-color: Highlight;
2145
+ outline: 2px solid Highlight;
2146
+ }
2147
+
2148
+ .ax-schedule-slot[data-active] {
2149
+ outline: 3px solid Highlight;
2150
+ }
2151
+ }