@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40

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 (221) hide show
  1. package/package.json +21 -1
  2. package/src/accordion/accordion.css +31 -13
  3. package/src/accordion/accordion.tokens.json +2 -0
  4. package/src/action-bar/action-bar.css +47 -44
  5. package/src/action-bar/action-bar.tokens.json +1 -0
  6. package/src/action-sheet/action-sheet.css +39 -39
  7. package/src/alert/alert.css +97 -97
  8. package/src/alert/alert.tokens.json +6 -1
  9. package/src/app-shell/app-shell.css +472 -342
  10. package/src/app-shell/app-shell.tokens.json +6 -3
  11. package/src/aspect-ratio/aspect-ratio.css +24 -23
  12. package/src/attachment/attachment.css +118 -114
  13. package/src/avatar/avatar.css +97 -67
  14. package/src/avatar/avatar.tokens.json +8 -0
  15. package/src/avatar-group/avatar-group.css +22 -23
  16. package/src/badge/badge.css +58 -47
  17. package/src/badge/badge.tokens.json +6 -0
  18. package/src/breadcrumb/breadcrumb.css +52 -52
  19. package/src/button/button.css +408 -93
  20. package/src/button/button.tokens.json +13 -0
  21. package/src/button-group/button-group.css +80 -79
  22. package/src/button-group/button-group.tokens.json +1 -0
  23. package/src/calendar/calendar.css +594 -267
  24. package/src/calendar/calendar.tokens.json +35 -3
  25. package/src/card/card.css +133 -70
  26. package/src/card/card.tokens.json +1 -0
  27. package/src/carousel/carousel.css +158 -169
  28. package/src/cascader/cascader.css +174 -159
  29. package/src/cascader/cascader.tokens.json +2 -0
  30. package/src/chart/chart.css +300 -271
  31. package/src/chart/chart.tokens.json +5 -0
  32. package/src/checkbox/checkbox.css +190 -148
  33. package/src/checkbox/checkbox.tokens.json +4 -0
  34. package/src/checkbox-group/checkbox-group.css +7 -7
  35. package/src/clock/clock.css +246 -0
  36. package/src/clock/clock.tokens.json +44 -0
  37. package/src/code-block/code-block.css +85 -89
  38. package/src/collapsible/collapsible.css +273 -85
  39. package/src/collapsible/collapsible.tokens.json +6 -0
  40. package/src/color-picker/color-picker.css +106 -114
  41. package/src/column-manager/column-manager.css +111 -119
  42. package/src/combobox/combobox.css +219 -132
  43. package/src/combobox/combobox.tokens.json +4 -0
  44. package/src/command-palette/command-palette.css +214 -102
  45. package/src/command-palette/command-palette.tokens.json +4 -0
  46. package/src/container/container.css +27 -27
  47. package/src/context-menu/context-menu.css +9 -9
  48. package/src/currency-field/currency-field.css +119 -119
  49. package/src/currency-field/currency-field.tokens.json +1 -0
  50. package/src/dashboard-grid/dashboard-grid.css +231 -115
  51. package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
  52. package/src/data-grid/data-grid.css +637 -496
  53. package/src/data-grid/data-grid.tokens.json +5 -1
  54. package/src/data-list/data-list.css +93 -76
  55. package/src/data-list/data-list.tokens.json +2 -1
  56. package/src/date-field/date-field.css +62 -57
  57. package/src/date-field/date-field.tokens.json +1 -0
  58. package/src/date-picker/date-picker.css +31 -269
  59. package/src/date-picker/date-picker.tokens.json +1 -21
  60. package/src/date-range-picker/date-range-picker.css +72 -528
  61. package/src/date-range-picker/date-range-picker.tokens.json +1 -37
  62. package/src/datetime-field/datetime-field.css +90 -90
  63. package/src/datetime-field/datetime-field.tokens.json +1 -0
  64. package/src/datetime-picker/datetime-picker.css +49 -711
  65. package/src/datetime-picker/datetime-picker.tokens.json +1 -50
  66. package/src/datetime-range-picker/datetime-range-picker.css +60 -985
  67. package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
  68. package/src/description-list/description-list.css +120 -76
  69. package/src/description-list/description-list.tokens.json +1 -0
  70. package/src/detail-panel/detail-panel.css +86 -71
  71. package/src/detail-panel/detail-panel.tokens.json +2 -0
  72. package/src/dialog/dialog.css +462 -199
  73. package/src/dialog/dialog.tokens.json +10 -0
  74. package/src/divider/divider.css +20 -20
  75. package/src/drawer/drawer.css +736 -237
  76. package/src/drawer/drawer.tokens.json +15 -0
  77. package/src/entity-picker/entity-picker.css +402 -272
  78. package/src/entity-picker/entity-picker.tokens.json +6 -0
  79. package/src/event-calendar/event-calendar.css +357 -399
  80. package/src/field/field.css +106 -93
  81. package/src/field/field.tokens.json +2 -0
  82. package/src/field-group/field-group.css +58 -38
  83. package/src/field-group/field-group.tokens.json +3 -0
  84. package/src/filter-bar/filter-bar.css +224 -216
  85. package/src/floating-panel/floating-panel.css +147 -0
  86. package/src/floating-panel/floating-panel.tokens.json +32 -0
  87. package/src/form/form.css +103 -26
  88. package/src/form/form.tokens.json +6 -1
  89. package/src/fullscreen/fullscreen.css +26 -27
  90. package/src/grid/grid.css +32 -31
  91. package/src/highlight/highlight.css +11 -11
  92. package/src/hover-card/hover-card.css +9 -9
  93. package/src/icon/icon.css +67 -20
  94. package/src/icon/icon.tokens.json +1 -0
  95. package/src/image/image.css +42 -42
  96. package/src/import-export-center/import-export-center.css +147 -168
  97. package/src/import-export-center/import-export-center.tokens.json +1 -0
  98. package/src/inline/inline.css +29 -29
  99. package/src/inline-message/inline-message.css +162 -86
  100. package/src/inline-message/inline-message.tokens.json +5 -0
  101. package/src/kbd/kbd.css +63 -51
  102. package/src/kbd/kbd.tokens.json +4 -0
  103. package/src/link/link.css +54 -33
  104. package/src/link/link.tokens.json +4 -0
  105. package/src/list/list.css +55 -24
  106. package/src/list/list.tokens.json +2 -0
  107. package/src/list-item/list-item.css +195 -80
  108. package/src/list-item/list-item.tokens.json +10 -0
  109. package/src/listbox/listbox.css +121 -72
  110. package/src/listbox/listbox.tokens.json +6 -1
  111. package/src/loading-overlay/loading-overlay.css +86 -103
  112. package/src/markdown/markdown.css +20 -20
  113. package/src/media-viewer/media-viewer.css +790 -0
  114. package/src/media-viewer/media-viewer.tokens.json +53 -0
  115. package/src/menu/menu.css +166 -83
  116. package/src/menu/menu.tokens.json +3 -1
  117. package/src/menubar/menubar.css +16 -16
  118. package/src/message/message.css +1296 -1243
  119. package/src/message/message.tokens.json +14 -0
  120. package/src/message-scroller/message-scroller.css +323 -320
  121. package/src/meter/meter.css +136 -0
  122. package/src/meter/meter.tokens.json +23 -0
  123. package/src/multi-select/multi-select.css +246 -174
  124. package/src/multi-select/multi-select.tokens.json +3 -0
  125. package/src/navigation-menu/navigation-menu.css +170 -191
  126. package/src/navigation-menu/navigation-menu.tokens.json +1 -0
  127. package/src/notification-center/notification-center.css +155 -163
  128. package/src/notification-center/notification-center.tokens.json +4 -0
  129. package/src/number-field/number-field.css +93 -93
  130. package/src/number-field/number-field.tokens.json +1 -0
  131. package/src/otp-input/otp-input.css +74 -64
  132. package/src/otp-input/otp-input.tokens.json +1 -0
  133. package/src/page/page.css +109 -31
  134. package/src/page/page.tokens.json +8 -0
  135. package/src/page-header/page-header.css +342 -287
  136. package/src/page-header/page-header.tokens.json +6 -1
  137. package/src/pagination/pagination.css +75 -79
  138. package/src/picker-panel/picker-panel.css +1074 -0
  139. package/src/picker-panel/picker-panel.tokens.json +77 -0
  140. package/src/popover/popover.css +85 -65
  141. package/src/popover/popover.tokens.json +2 -0
  142. package/src/progress-indicator/progress-indicator.css +194 -137
  143. package/src/progress-indicator/progress-indicator.tokens.json +1 -0
  144. package/src/prompt-composer/prompt-composer.css +274 -116
  145. package/src/prompt-composer/prompt-composer.tokens.json +15 -0
  146. package/src/prose/prose.css +77 -82
  147. package/src/radio-group/radio-group.css +107 -112
  148. package/src/rating/rating.css +147 -143
  149. package/src/rating/rating.tokens.json +2 -0
  150. package/src/result-state/result-state.css +95 -102
  151. package/src/result-state/result-state.tokens.json +1 -0
  152. package/src/runtime-properties.mjs +44 -6
  153. package/src/saved-views/saved-views.css +43 -49
  154. package/src/scroll-area/scroll-area.css +50 -37
  155. package/src/section/section.css +311 -46
  156. package/src/section/section.tokens.json +13 -1
  157. package/src/segmented-control/segmented-control.css +221 -133
  158. package/src/segmented-control/segmented-control.tokens.json +7 -11
  159. package/src/select/select.css +226 -149
  160. package/src/select/select.tokens.json +4 -0
  161. package/src/side-navigation/side-navigation.css +204 -201
  162. package/src/side-navigation/side-navigation.tokens.json +2 -0
  163. package/src/skeleton/skeleton.css +76 -58
  164. package/src/slider/slider.css +108 -104
  165. package/src/slider/slider.tokens.json +1 -0
  166. package/src/sparkline/sparkline.css +75 -53
  167. package/src/sparkline/sparkline.tokens.json +2 -0
  168. package/src/spinner/spinner.css +83 -180
  169. package/src/spinner/spinner.tokens.json +0 -1
  170. package/src/split-button/split-button.css +34 -35
  171. package/src/split-button/split-button.tokens.json +1 -0
  172. package/src/splitter/splitter.css +47 -48
  173. package/src/stack/stack.css +26 -26
  174. package/src/stat-card/stat-card.css +420 -245
  175. package/src/stat-card/stat-card.tokens.json +8 -0
  176. package/src/status-indicator/status-indicator.css +126 -101
  177. package/src/status-indicator/status-indicator.tokens.json +0 -3
  178. package/src/stepper/stepper.css +78 -82
  179. package/src/switch/switch.css +143 -125
  180. package/src/switch/switch.tokens.json +4 -0
  181. package/src/table/table.css +653 -222
  182. package/src/table/table.tokens.json +10 -0
  183. package/src/table-of-contents/table-of-contents.css +60 -59
  184. package/src/table-of-contents/table-of-contents.tokens.json +1 -0
  185. package/src/tabs/tabs.css +327 -294
  186. package/src/tabs/tabs.tokens.json +7 -1
  187. package/src/tag/tag.css +113 -89
  188. package/src/tag/tag.tokens.json +11 -0
  189. package/src/tags-input/tags-input.css +152 -87
  190. package/src/tags-input/tags-input.tokens.json +7 -1
  191. package/src/text-field/text-field.css +146 -148
  192. package/src/text-field/text-field.tokens.json +1 -0
  193. package/src/textarea/textarea.css +38 -33
  194. package/src/textarea/textarea.tokens.json +1 -0
  195. package/src/time-field/time-field.css +82 -77
  196. package/src/time-field/time-field.tokens.json +1 -0
  197. package/src/time-picker/time-picker.css +30 -519
  198. package/src/time-picker/time-picker.tokens.json +1 -38
  199. package/src/time-range-picker/time-range-picker.css +53 -895
  200. package/src/time-range-picker/time-range-picker.tokens.json +1 -66
  201. package/src/timeline/timeline.css +280 -292
  202. package/src/timeline/timeline.tokens.json +5 -0
  203. package/src/toast/toast.css +139 -122
  204. package/src/toast/toast.tokens.json +7 -0
  205. package/src/toggle/toggle.css +34 -38
  206. package/src/toggle-group/toggle-group.css +73 -77
  207. package/src/toolbar/toolbar.css +49 -40
  208. package/src/toolbar/toolbar.tokens.json +2 -1
  209. package/src/tooltip/tooltip.css +95 -39
  210. package/src/tooltip/tooltip.tokens.json +1 -0
  211. package/src/top-navigation/top-navigation.css +253 -269
  212. package/src/top-navigation/top-navigation.tokens.json +1 -0
  213. package/src/tour/tour.css +68 -74
  214. package/src/tour/tour.tokens.json +1 -0
  215. package/src/transfer/transfer.css +164 -168
  216. package/src/tree/tree.css +118 -122
  217. package/src/typography/typography.css +67 -38
  218. package/src/typography/typography.tokens.json +2 -0
  219. package/src/upload/upload.css +256 -257
  220. package/src/visually-hidden/visually-hidden.css +1 -1
  221. package/src/wizard/wizard.css +187 -199
@@ -13,8 +13,7 @@
13
13
  * trigger, so the trigger is what draws the ring, through `:has()`. Putting
14
14
  * the label around the trigger rather than around the whole region is what
15
15
  * makes the input's accessible name three words instead of every word in the
16
- * box; the reasoning and its cost are in
17
- * `docs/history/designs/2026-09-10-upload-design.md` §2.
16
+ * box.
18
17
  *
19
18
  * **The family owns its own container.** Four of its layout decisions answer
20
19
  * the width of the box rather than the width of the window — a row folds its
@@ -31,8 +30,8 @@
31
30
  * none of these, and states the same set for itself. They are declared once,
32
31
  * for both, rather than copied into a second block that drifts from the first.
33
32
  */
34
- [data-ui='upload'][data-part='root'],
35
- [data-ui='upload'][data-part='viewer'] {
33
+ [data-ui-upload][data-part-root],
34
+ [data-ui-upload][data-part-viewer] {
36
35
  /**
37
36
  * Type, glyph, control height and inner gap come from the control scales,
38
37
  * the only ones the theme restates per density, so an upload inside a dense
@@ -61,7 +60,7 @@
61
60
  * `alert` restated: the tone's `subtle-hover` is calibrated against the
62
61
  * page, and these controls sit on a row that may already be tinted by its
63
62
  * own status. `currentcolor` is legible on whatever ground it has by
64
- * construction — it is the colour the words beside it are read in.
63
+ * construction — it is the color the words beside it are read in.
65
64
  */
66
65
  --_state-hover: color-mix(
67
66
  in oklab,
@@ -146,9 +145,9 @@
146
145
  );
147
146
 
148
147
  /**
149
- * The status the row is in decides one colour, and every part of the row
148
+ * The status the row is in decides one color, and every part of the row
150
149
  * that says something about the status reads it. Neutral by default, so a
151
- * row that has not been sent yet says nothing in colour at all.
150
+ * row that has not been sent yet says nothing in color at all.
152
151
  */
153
152
  --_status-text: var(--slotted-text-muted);
154
153
  --_item-surface: var(--slotted-upload-item-background, var(--slotted-surface));
@@ -175,7 +174,7 @@
175
174
  }
176
175
 
177
176
  /* The family itself: the column the reader sees in the page. */
178
- [data-ui='upload'][data-part='root'] {
177
+ [data-ui-upload][data-part-root] {
179
178
  container-name: slotted-upload;
180
179
  container-type: inline-size;
181
180
  /**
@@ -193,7 +192,7 @@
193
192
  gap: var(--_section-gap);
194
193
  }
195
194
 
196
- [data-ui='upload'][data-size='sm'] {
195
+ [data-ui-upload][data-size='sm'] {
197
196
  --_font-size: var(--slotted-control-font-size-sm, 12px);
198
197
  --_glyph-size: var(--slotted-control-icon-size-sm, 14px);
199
198
  --_inner-size: var(--slotted-control-inner-size-sm, 22px);
@@ -202,7 +201,7 @@
202
201
  --_gap: var(--slotted-control-gap-sm, 6px);
203
202
  }
204
203
 
205
- [data-ui='upload'][data-size='lg'] {
204
+ [data-ui-upload][data-size='lg'] {
206
205
  --_font-size: var(--slotted-control-font-size-lg, 14px);
207
206
  --_glyph-size: var(--slotted-control-icon-size-lg, 18px);
208
207
  --_inner-size: var(--slotted-control-inner-size-lg, 28px);
@@ -217,13 +216,13 @@
217
216
  * label row, the description and the error slot for every control in this
218
217
  * library. They exist for the upload that stands on its own.
219
218
  */
220
- [data-ui='upload'] [data-part='label'] {
219
+ [data-ui-upload] [data-part-label] {
221
220
  color: var(--slotted-text);
222
221
  flex: none;
223
222
  font-weight: var(--slotted-upload-label-font-weight, var(--slotted-font-weight-medium, 500));
224
223
  }
225
224
 
226
- [data-ui='upload'] [data-part='description'] {
225
+ [data-ui-upload] [data-part-description] {
227
226
  color: var(--slotted-text-muted);
228
227
  flex: none;
229
228
  margin: 0;
@@ -237,7 +236,7 @@
237
236
  * reaches, and WCAG 2.2 SC 2.5.7 is discharged by its being there rather
238
237
  * than by the region pretending to be a control.
239
238
  */
240
- [data-ui='upload'] [data-part='dropzone'] {
239
+ [data-ui-upload] [data-part-dropzone] {
241
240
  --_zone-border-color: var(--_zone-edge);
242
241
  --_zone-surface: var(--_zone-ground);
243
242
 
@@ -264,7 +263,7 @@
264
263
  * the `dropzone` shape only. The `field` shape is one control's height and
265
264
  * has no room for a second mark beside the trigger's.
266
265
  */
267
- [data-ui='upload'] [data-part='dropzone'] > [data-ui='icon'] {
266
+ [data-ui-upload] [data-part-dropzone] > [data-ui-icon] {
268
267
  --slotted-icon-size: var(--_zone-glyph-size);
269
268
 
270
269
  color: var(--slotted-text-muted);
@@ -277,7 +276,7 @@
277
276
  * ratio against the page and against the ground it encloses, and the ground
278
277
  * alone would not.
279
278
  */
280
- [data-ui='upload'] [data-part='dropzone'][data-drop-target] {
279
+ [data-ui-upload] [data-part-dropzone][data-drop-target] {
281
280
  --_zone-border-color: var(--slotted-tone-accent-border);
282
281
  --_zone-surface: var(--slotted-tone-accent-surface);
283
282
  }
@@ -289,7 +288,7 @@
289
288
  * the name or the size — so this is painted for a refusal that is already
290
289
  * certain and never for one that is merely possible.
291
290
  */
292
- [data-ui='upload'] [data-part='dropzone'][data-drop-invalid] {
291
+ [data-ui-upload] [data-part-dropzone][data-drop-invalid] {
293
292
  --_zone-border-color: var(--slotted-tone-danger-border);
294
293
  --_zone-surface: var(--slotted-tone-danger-surface);
295
294
  }
@@ -301,19 +300,19 @@
301
300
  * anything on hover.
302
301
  *
303
302
  * The edge takes the muted ink and the ground takes a share of the text
304
- * colour: four per cent on hover, eight on press. The shares are half the
303
+ * color: four per cent on hover, eight on press. The shares are half the
305
304
  * family's control state layer because the layer here covers a card-sized
306
305
  * box rather than a glyph-sized one, and eight per cent across the whole
307
306
  * region read as a disabled block. Four moves the sunken ground by 0.031 in
308
307
  * OKLab L, above the 0.02 the theme holds every surface step to, and eight
309
308
  * by 0.062.
310
309
  */
311
- [data-ui='upload'] [data-part='dropzone'][data-browsable] {
310
+ [data-ui-upload] [data-part-dropzone][data-browsable] {
312
311
  cursor: pointer;
313
312
  }
314
313
 
315
- [data-ui='upload']:not([data-disabled])
316
- [data-part='dropzone'][data-browsable]:not([data-drop-target], [data-drop-invalid]):hover {
314
+ [data-ui-upload]:not([data-disabled])
315
+ [data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):hover {
317
316
  --_zone-surface: color-mix(
318
317
  in oklab,
319
318
  var(--slotted-text) var(--slotted-upload-zone-state-layer-hover, 4%),
@@ -321,8 +320,8 @@
321
320
  );
322
321
  }
323
322
 
324
- [data-ui='upload']:not([data-disabled])
325
- [data-part='dropzone'][data-browsable]:not([data-drop-target], [data-drop-invalid]):active {
323
+ [data-ui-upload]:not([data-disabled])
324
+ [data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):active {
326
325
  --_zone-surface: color-mix(
327
326
  in oklab,
328
327
  var(--slotted-text) var(--slotted-upload-zone-state-layer-active, 8%),
@@ -331,8 +330,8 @@
331
330
  }
332
331
 
333
332
  /* An invalid region keeps its danger edge under the pointer. */
334
- [data-ui='upload']:not([data-disabled], [data-invalid])
335
- [data-part='dropzone'][data-browsable]:not([data-drop-target], [data-drop-invalid]):is(
333
+ [data-ui-upload]:not([data-disabled], [data-invalid])
334
+ [data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):is(
336
335
  :hover,
337
336
  :active
338
337
  ) {
@@ -344,24 +343,24 @@
344
343
  * hover over the region around it, and the two answering at once drew two
345
344
  * targets for one press.
346
345
  */
347
- [data-ui='upload']:not([data-disabled])
348
- [data-part='dropzone'][data-browsable]:not([data-drop-target], [data-drop-invalid]):has(
349
- [data-part='trigger']:hover
346
+ [data-ui-upload]:not([data-disabled])
347
+ [data-part-dropzone][data-browsable]:not([data-drop-target], [data-drop-invalid]):has(
348
+ [data-part-trigger]:hover
350
349
  ) {
351
350
  --_zone-border-color: var(--_zone-edge);
352
351
  --_zone-surface: var(--_zone-ground);
353
352
  }
354
353
 
355
- [data-ui='upload'][data-disabled][data-part='root'] {
354
+ [data-ui-upload][data-disabled][data-part-root] {
356
355
  --_zone-edge: var(--slotted-disabled-border);
357
356
  --_zone-ground: var(--slotted-disabled-background);
358
357
  }
359
358
 
360
- [data-ui='upload'][data-disabled] [data-part='dropzone'] {
359
+ [data-ui-upload][data-disabled] [data-part-dropzone] {
361
360
  color: var(--slotted-disabled-foreground);
362
361
  }
363
362
 
364
- [data-ui='upload'][data-invalid][data-part='root'] {
363
+ [data-ui-upload][data-invalid][data-part-root] {
365
364
  --_zone-edge: var(--slotted-tone-danger-border);
366
365
  }
367
366
 
@@ -372,7 +371,7 @@
372
371
  * family's contract, and what is wanted is one control-height box that opens
373
372
  * the picker natively.
374
373
  */
375
- [data-ui='upload'] [data-part='trigger'] {
374
+ [data-ui-upload] [data-part-trigger] {
376
375
  align-items: center;
377
376
  background-color: var(--slotted-upload-trigger-background, var(--slotted-surface));
378
377
  block-size: var(--_control-height);
@@ -403,11 +402,11 @@
403
402
  * in the `dropzone` shape the region already carries it, and two of the same
404
403
  * mark eighty pixels apart is one mark too many.
405
404
  */
406
- [data-ui='upload'] [data-part='trigger'] > [data-ui='icon'] {
405
+ [data-ui-upload] [data-part-trigger] > [data-ui-icon] {
407
406
  --slotted-icon-size: var(--_glyph-size);
408
407
  }
409
408
 
410
- [data-ui='upload']:not([data-disabled]) [data-part='trigger']:hover {
409
+ [data-ui-upload]:not([data-disabled]) [data-part-trigger]:hover {
411
410
  background-color: var(--slotted-tone-secondary-subtle-hover);
412
411
  }
413
412
 
@@ -415,12 +414,12 @@
415
414
  * The trigger is drawn as a control and presses like `button` does: the
416
415
  * ground takes the next step and the box settles by a hairline, at once.
417
416
  */
418
- [data-ui='upload']:not([data-disabled]) [data-part='trigger']:active {
417
+ [data-ui-upload]:not([data-disabled]) [data-part-trigger]:active {
419
418
  background-color: var(--slotted-tone-secondary-subtle-active);
420
419
  translate: 0 var(--slotted-border-width-thin, 1px);
421
420
  }
422
421
 
423
- [data-ui='upload'][data-disabled] [data-part='trigger'] {
422
+ [data-ui-upload][data-disabled] [data-part-trigger] {
424
423
  background-color: var(--slotted-disabled-background);
425
424
  border-color: var(--slotted-disabled-border);
426
425
  box-shadow: none;
@@ -432,16 +431,16 @@
432
431
  * The ring belongs to the trigger and the focus belongs to the input inside
433
432
  * it. A ring around a one-pixel input would be a ring around nothing.
434
433
  */
435
- [data-ui='upload'] [data-part='trigger']:has(:focus-visible) {
434
+ [data-ui-upload] [data-part-trigger]:has(:focus-visible) {
436
435
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
437
436
  outline-offset: var(--slotted-focus-ring-offset, 2px);
438
437
  }
439
438
 
440
- [data-ui='upload'][data-invalid] [data-part='trigger'] {
439
+ [data-ui-upload][data-invalid] [data-part-trigger] {
441
440
  --slotted-focus-ring-color: var(--slotted-focus-ring-color-invalid);
442
441
 
443
442
  border-color: var(--slotted-tone-danger-border);
444
- /* Width as well as colour (WCAG 1.4.1): in `high-contrast` the danger
443
+ /* Width as well as color (WCAG 1.4.1): in `high-contrast` the danger
445
444
  border is the resting edge's black. The trigger is the control in both
446
445
  shapes, so it carries the edge `text-field` draws — inside the border,
447
446
  so nothing moves, in place of the resting lift; its focus is an outline
@@ -458,7 +457,7 @@
458
457
  * stretching a transparent input across the region takes the drop away from
459
458
  * the region and makes the drag state unobservable.
460
459
  */
461
- [data-ui='upload'] [data-part='input'] {
460
+ [data-ui-upload] [data-part-input] {
462
461
  block-size: 1px;
463
462
  border: 0;
464
463
  clip-path: inset(50%);
@@ -475,9 +474,9 @@
475
474
  /**
476
475
  * The family draws the ring on the trigger, so the one the browser would
477
476
  * draw on the element holding focus has to go: `tree` moved its ring and
478
- * forgot this, and a focused row carried two rings in two colours.
477
+ * forgot this, and a focused row carried two rings in two colors.
479
478
  */
480
- [data-ui='upload'] [data-part='input']:focus-visible {
479
+ [data-ui-upload] [data-part-input]:focus-visible {
481
480
  outline: none;
482
481
  }
483
482
 
@@ -488,7 +487,7 @@
488
487
  * drawn only when there is more than one file, because for a single file the
489
488
  * row already says all of it.
490
489
  */
491
- [data-ui='upload'] [data-part='summary'] {
490
+ [data-ui-upload] [data-part-summary] {
492
491
  align-items: center;
493
492
  color: var(--slotted-text-muted);
494
493
  display: flex;
@@ -497,7 +496,7 @@
497
496
  justify-content: space-between;
498
497
  }
499
498
 
500
- [data-ui='upload'] [data-part='clear'] {
499
+ [data-ui-upload] [data-part-clear] {
501
500
  appearance: none;
502
501
  flex: none;
503
502
  white-space: nowrap;
@@ -515,20 +514,20 @@
515
514
  var(--slotted-control-transition-easing);
516
515
  }
517
516
 
518
- [data-ui='upload'] [data-part='clear']:enabled:hover {
517
+ [data-ui-upload] [data-part-clear]:enabled:hover {
519
518
  background-color: var(--_state-hover);
520
519
  }
521
520
 
522
- [data-ui='upload'] [data-part='clear']:enabled:active {
521
+ [data-ui-upload] [data-part-clear]:enabled:active {
523
522
  background-color: var(--_state-active);
524
523
  }
525
524
 
526
- [data-ui='upload'] [data-part='clear']:disabled {
525
+ [data-ui-upload] [data-part-clear]:disabled {
527
526
  color: var(--slotted-disabled-foreground);
528
527
  cursor: default;
529
528
  }
530
529
 
531
- [data-ui='upload'] [data-part='clear']:focus-visible {
530
+ [data-ui-upload] [data-part-clear]:focus-visible {
532
531
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
533
532
  outline-offset: var(--slotted-focus-ring-offset, 2px);
534
533
  }
@@ -552,7 +551,7 @@
552
551
  * between two — which is what says there is more below without a shadow, a
553
552
  * gradient or a count.
554
553
  */
555
- [data-ui='upload'] [data-part='list'] {
554
+ [data-ui-upload] [data-part-list] {
556
555
  /** One row, from the parts a row is made of. Used twice below. */
557
556
  --_row-block-size: calc(
558
557
  max(var(--_preview-size), 2lh) + 2 * var(--_item-inset-block) + 2 * var(--_border-width) +
@@ -584,10 +583,10 @@
584
583
  * A row is one object and it is laid out as a grid, not as a flex line. Four
585
584
  * things follow from that, and all four were wrong in the shape before it.
586
585
  *
587
- * **The marks are centred on the block they are about.** The chip and the
586
+ * **The marks are centerd on the block they are about.** The chip and the
588
587
  * controls sit in the first track; the sentence a failure carries spans a
589
588
  * second track underneath. So a row that has something to explain grows
590
- * downwards and moves nothing: centring is over the name and its detail,
589
+ * downwards and moves nothing: centering is over the name and its detail,
591
590
  * which is what the chip and the controls are about, rather than over a box
592
591
  * whose height a two-line message decided.
593
592
  *
@@ -605,7 +604,7 @@
605
604
  * text with icons beside it, and only a failed one had a box; a file is a
606
605
  * thing the reader acts on, and it reads as one.
607
606
  */
608
- [data-ui='upload'] [data-part='item'] {
607
+ [data-ui-upload] [data-part-item] {
609
608
  align-items: center;
610
609
  /*
611
610
  * A row is never squeezed. Flex children shrink by default, so nine rows in
@@ -653,30 +652,30 @@
653
652
  * controlled `files`; the promise is in `docs/process/build-order.md`.
654
653
  */
655
654
  @starting-style {
656
- [data-ui='upload'] [data-part='item'] {
655
+ [data-ui-upload] [data-part-item] {
657
656
  opacity: 0;
658
657
  translate: 0 calc(-1 * var(--slotted-space-2, 0.25rem));
659
658
  }
660
659
  }
661
660
 
662
- [data-ui='upload'] [data-part='item'][data-status='success'] {
661
+ [data-ui-upload] [data-part-item][data-status='success'] {
663
662
  --_status-text: var(--slotted-tone-success-text);
664
663
  }
665
664
 
666
665
  /**
667
666
  * A file the reader has chosen and not yet sent has a dashed edge: the edge
668
667
  * the region has, which already means *waiting for something* in this
669
- * family. It is said in line rather than in colour, which keeps the rule
670
- * above — a row not yet sent says nothing in colour — and it holds under
671
- * forced colours, where the line survives and a tint does not. ReUI draws
668
+ * family. It is said in line rather than in color, which keeps the rule
669
+ * above — a row not yet sent says nothing in color — and it holds under
670
+ * forced colors, where the line survives and a tint does not. ReUI draws
672
671
  * its `idle` attachment the same way (`c-attachment-5`).
673
672
  */
674
- [data-ui='upload'] [data-part='item'][data-status='ready'] {
673
+ [data-ui-upload] [data-part-item][data-status='ready'] {
675
674
  border-style: dashed;
676
675
  }
677
676
 
678
- [data-ui='upload'] [data-part='item'][data-status='paused'],
679
- [data-ui='upload'] [data-part='item'][data-status='stalled'] {
677
+ [data-ui-upload] [data-part-item][data-status='paused'],
678
+ [data-ui-upload] [data-part-item][data-status='stalled'] {
680
679
  --_status-text: var(--slotted-tone-warning-text);
681
680
  }
682
681
 
@@ -686,31 +685,31 @@
686
685
  * both need the reader to do something; a file the reader stopped themselves
687
686
  * does not, so it stays neutral and only its word changes.
688
687
  */
689
- [data-ui='upload'] [data-part='item'][data-status='rejected'],
690
- [data-ui='upload'] [data-part='item'][data-status='error'] {
688
+ [data-ui-upload] [data-part-item][data-status='rejected'],
689
+ [data-ui-upload] [data-part-item][data-status='error'] {
691
690
  --_status-text: var(--slotted-tone-danger-text);
692
691
  --_item-surface: var(--slotted-tone-danger-surface);
693
692
  --_item-border: var(--slotted-tone-danger-border);
694
693
  }
695
694
 
696
- [data-ui='upload'] [data-part='item'][data-status='canceled'] {
695
+ [data-ui-upload] [data-part-item][data-status='canceled'] {
697
696
  --_status-text: var(--slotted-text-muted);
698
697
  }
699
698
 
700
- [data-ui='upload'][data-disabled] [data-part='item'] {
699
+ [data-ui-upload][data-disabled] [data-part-item] {
701
700
  color: var(--slotted-disabled-foreground);
702
701
  }
703
702
 
704
703
  /* ── The chip ──────────────────────────────────────────────────────────
705
704
  *
706
- * A solid tile in the file's own colour with the mark knocked out of it.
705
+ * A solid tile in the file's own color with the mark knocked out of it.
707
706
  *
708
- * The shape this replaced was a grey square with a coloured mark inside, and
707
+ * The shape this replaced was a grey square with a colored mark inside, and
709
708
  * the reviewer's reading of it was the right one: a wash of a tone at twelve
710
- * per cent over a white page is not a colour, it is a grey box with a colour
709
+ * per cent over a white page is not a color, it is a grey box with a color
711
710
  * near it. A tile is a decision; a tint is an apology for not making one.
712
711
  *
713
- * The colours are the ones a reader has already learnt from every product
712
+ * The colors are the ones a reader has already learnt from every product
714
713
  * they use — a PDF red, a word-processed document blue, a spreadsheet green,
715
714
  * a deck orange, a film indigo — and they are a scale of the theme's rather
716
715
  * than five tones stretched over nine kinds, because the tones hold no second
@@ -722,7 +721,7 @@
722
721
  * tile. `packages/themes/test/default-theme.test.mjs` measures all
723
722
  * twenty-seven.
724
723
  */
725
- [data-ui='upload'] [data-part='preview'] {
724
+ [data-ui-upload] [data-part-preview] {
726
725
  align-items: center;
727
726
  background-color: var(--_kind-tile);
728
727
  block-size: var(--_preview-size);
@@ -736,55 +735,55 @@
736
735
  overflow: hidden;
737
736
  }
738
737
 
739
- [data-ui='upload'] [data-part='preview'] > img {
738
+ [data-ui-upload] [data-part-preview] > img {
740
739
  block-size: 100%;
741
740
  inline-size: 100%;
742
741
  object-fit: cover;
743
742
  }
744
743
 
745
744
  /* The kind's glyph, drawn by the binding when there is no picture to show. */
746
- [data-ui='upload'] [data-part='preview'] > [data-ui='icon'] {
745
+ [data-ui-upload] [data-part-preview] > [data-ui-icon] {
747
746
  --slotted-icon-size: var(--_glyph-size);
748
747
  }
749
748
 
750
- [data-ui='upload'] [data-part='preview'][data-kind='pdf'] {
749
+ [data-ui-upload] [data-part-preview][data-kind='pdf'] {
751
750
  --_kind-tile: var(--slotted-upload-kind-pdf);
752
751
  }
753
752
 
754
- [data-ui='upload'] [data-part='preview'][data-kind='document'] {
753
+ [data-ui-upload] [data-part-preview][data-kind='document'] {
755
754
  --_kind-tile: var(--slotted-upload-kind-document);
756
755
  }
757
756
 
758
- [data-ui='upload'] [data-part='preview'][data-kind='spreadsheet'] {
757
+ [data-ui-upload] [data-part-preview][data-kind='spreadsheet'] {
759
758
  --_kind-tile: var(--slotted-upload-kind-spreadsheet);
760
759
  }
761
760
 
762
- [data-ui='upload'] [data-part='preview'][data-kind='presentation'] {
761
+ [data-ui-upload] [data-part-preview][data-kind='presentation'] {
763
762
  --_kind-tile: var(--slotted-upload-kind-presentation);
764
763
  }
765
764
 
766
- [data-ui='upload'] [data-part='preview'][data-kind='image'] {
765
+ [data-ui-upload] [data-part-preview][data-kind='image'] {
767
766
  --_kind-tile: var(--slotted-upload-kind-image);
768
767
  }
769
768
 
770
- [data-ui='upload'] [data-part='preview'][data-kind='video'] {
769
+ [data-ui-upload] [data-part-preview][data-kind='video'] {
771
770
  --_kind-tile: var(--slotted-upload-kind-video);
772
771
  }
773
772
 
774
- [data-ui='upload'] [data-part='preview'][data-kind='audio'] {
773
+ [data-ui-upload] [data-part-preview][data-kind='audio'] {
775
774
  --_kind-tile: var(--slotted-upload-kind-audio);
776
775
  }
777
776
 
778
- [data-ui='upload'] [data-part='preview'][data-kind='archive'] {
777
+ [data-ui-upload] [data-part-preview][data-kind='archive'] {
779
778
  --_kind-tile: var(--slotted-upload-kind-archive);
780
779
  }
781
780
 
782
781
  /*
783
782
  * A tinted row keeps its tiles. The rule here was the other way round for one
784
- * capture — the status took the tile's colour, on the argument that what went
783
+ * capture — the status took the tile's color, on the argument that what went
785
784
  * wrong outranks what the file is — and the capture showed what it cost: a
786
785
  * refused archive turned red on the one row whose message says archives are
787
- * not accepted, so the colour stopped answering the question the reader had.
786
+ * not accepted, so the color stopped answering the question the reader had.
788
787
  *
789
788
  * The status has four signals already: the row's ground, its edge, its word
790
789
  * and its sentence. The tile is about the file. Measured rather than assumed,
@@ -800,7 +799,7 @@
800
799
  * is what makes a long name truncate instead of pushing the controls off the
801
800
  * end.
802
801
  */
803
- [data-ui='upload'] [data-part='item'] > [data-part='body'] {
802
+ [data-ui-upload] [data-part-item] > [data-part-body] {
804
803
  display: flex;
805
804
  flex-direction: column;
806
805
  gap: var(--_line-gap);
@@ -817,7 +816,7 @@
817
816
  * `pdf.claim-form-2026-0914`. Found in the harness capture at `dir="rtl"`,
818
817
  * where nothing failed and the name was backwards.
819
818
  */
820
- [data-ui='upload'] [data-part='filename'] {
819
+ [data-ui-upload] [data-part-filename] {
821
820
  display: flex;
822
821
  /*
823
822
  * The name is the row's title and the detail line under it is at the same
@@ -841,7 +840,7 @@
841
840
  * Nothing about it looks like a control until the pointer is on it — a list
842
841
  * of nine underlined names is a list nobody can read.
843
842
  */
844
- [data-ui='upload'] button[data-part='filename'] {
843
+ [data-ui-upload] button[data-part-filename] {
845
844
  appearance: none;
846
845
  background: none;
847
846
  border: 0;
@@ -856,7 +855,7 @@
856
855
  transition: translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
857
856
  }
858
857
 
859
- [data-ui='upload'] button[data-part='filename']:enabled:hover {
858
+ [data-ui-upload] button[data-part-filename]:enabled:hover {
860
859
  text-decoration-line: underline;
861
860
  text-underline-offset: 0.2em;
862
861
  }
@@ -866,20 +865,20 @@
866
865
  * a press answers in place: the name settles by a hairline — the answer
867
866
  * `timeline` gives its group heading.
868
867
  */
869
- [data-ui='upload'] button[data-part='filename']:enabled:active {
868
+ [data-ui-upload] button[data-part-filename]:enabled:active {
870
869
  text-decoration-line: underline;
871
870
  text-underline-offset: 0.2em;
872
871
  translate: 0 var(--slotted-border-width-thin, 1px);
873
872
  }
874
873
 
875
- [data-ui='upload'] button[data-part='filename']:focus-visible {
874
+ [data-ui-upload] button[data-part-filename]:focus-visible {
876
875
  border-radius: var(--slotted-control-radius, 4px);
877
876
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
878
877
  outline-offset: var(--slotted-focus-ring-offset, 2px);
879
878
  }
880
879
 
881
880
  /* In a wall of pictures the picture is the thing the reader is pointing at. */
882
- [data-ui='upload'][data-layout='grid'] button[data-part='preview'] {
881
+ [data-ui-upload][data-layout='grid'] button[data-part-preview] {
883
882
  appearance: none;
884
883
  border: 0;
885
884
  cursor: pointer;
@@ -893,7 +892,7 @@
893
892
  * the file is. CSS cannot truncate in the middle; the split is made at the
894
893
  * last dot in the binding, and this is the half of the answer the sheet owes.
895
894
  */
896
- [data-ui='upload'] [data-part='name'] {
895
+ [data-ui-upload] [data-part-name] {
897
896
  flex: 0 1 auto;
898
897
  min-inline-size: 0;
899
898
  overflow: hidden;
@@ -901,12 +900,12 @@
901
900
  white-space: nowrap;
902
901
  }
903
902
 
904
- [data-ui='upload'] [data-part='extension'] {
903
+ [data-ui-upload] [data-part-extension] {
905
904
  flex: none;
906
905
  }
907
906
 
908
907
  /** The second line: the size, then the word for what is happening to it. */
909
- [data-ui='upload'] [data-part='detail'] {
908
+ [data-ui-upload] [data-part-detail] {
910
909
  align-items: baseline;
911
910
  color: var(--slotted-text-muted);
912
911
  display: flex;
@@ -916,16 +915,16 @@
916
915
  min-inline-size: 0;
917
916
  }
918
917
 
919
- [data-ui='upload'] [data-part='meta'] {
918
+ [data-ui-upload] [data-part-meta] {
920
919
  font-variant-numeric: tabular-nums;
921
920
  white-space: nowrap;
922
921
  }
923
922
 
924
923
  /**
925
- * The word, in the colour the status set. A status said in colour alone fails
926
- * WCAG 2.2 SC 1.4.1, which is why it is a word first and a colour second.
924
+ * The word, in the color the status set. A status said in color alone fails
925
+ * WCAG 2.2 SC 1.4.1, which is why it is a word first and a color second.
927
926
  */
928
- [data-ui='upload'] [data-part='status'] {
927
+ [data-ui-upload] [data-part-status] {
929
928
  color: var(--_status-text);
930
929
  font-weight: var(--slotted-upload-status-font-weight, var(--slotted-font-weight-medium, 500));
931
930
  min-inline-size: 0;
@@ -941,13 +940,13 @@
941
940
  * it left an orphaned middot at the start of the second line, which is what
942
941
  * the card at 720 pixels showed.
943
942
  */
944
- [data-ui='upload'] [data-part='meta']:has(+ [data-part='status'])::after {
943
+ [data-ui-upload] [data-part-meta]:has(+ [data-part-status])::after {
945
944
  color: var(--slotted-text-muted);
946
945
  content: ' ·';
947
946
  margin-inline-end: 0.4em;
948
947
  }
949
948
 
950
- [data-ui='upload'] [data-part='message'] {
949
+ [data-ui-upload] [data-part-message] {
951
950
  color: var(--_status-text);
952
951
  font-size: var(--slotted-font-size-xs, 0.75rem);
953
952
  line-height: var(--_leading);
@@ -962,7 +961,7 @@
962
961
  * answer to one question, drifting from the first the moment either is
963
962
  * retuned.
964
963
  */
965
- [data-ui='upload'] [data-part='progress'] {
964
+ [data-ui-upload] [data-part-progress] {
966
965
  display: block;
967
966
  inset-block-end: 0;
968
967
  inset-inline: 0;
@@ -989,20 +988,20 @@
989
988
  * is no column to keep and a row that offers one control no longer carries
990
989
  * two empty slots to prove it.
991
990
  */
992
- [data-ui='upload'] [data-part='actions'] {
991
+ [data-ui-upload] [data-part-actions] {
993
992
  display: inline-flex;
994
993
  gap: var(--slotted-space-1, 0.125rem);
995
994
  grid-area: actions;
996
995
  justify-content: flex-end;
997
996
  }
998
997
 
999
- [data-ui='upload'] [data-part='viewerExternal'],
1000
- [data-ui='upload'] [data-part='viewerClose'],
1001
- [data-ui='upload'] [data-part='start'],
1002
- [data-ui='upload'] [data-part='pause'],
1003
- [data-ui='upload'] [data-part='retry'],
1004
- [data-ui='upload'] [data-part='cancel'],
1005
- [data-ui='upload'] [data-part='remove'] {
998
+ [data-ui-upload] [data-part-viewerexternal],
999
+ [data-ui-upload] [data-part-viewerclose],
1000
+ [data-ui-upload] [data-part-start],
1001
+ [data-ui-upload] [data-part-pause],
1002
+ [data-ui-upload] [data-part-retry],
1003
+ [data-ui-upload] [data-part-cancel],
1004
+ [data-ui-upload] [data-part-remove] {
1006
1005
  align-items: center;
1007
1006
  appearance: none;
1008
1007
  background-color: transparent;
@@ -1028,86 +1027,86 @@
1028
1027
  * pause, rotate-ccw, x and trash. A cross means *stop this* and a bin means
1029
1028
  * *take it away*, because the marks appear together on one row.
1030
1029
  */
1031
- [data-ui='upload'] [data-part='viewerExternal'] > [data-ui='icon'],
1032
- [data-ui='upload'] [data-part='viewerClose'] > [data-ui='icon'],
1033
- [data-ui='upload'] [data-part='start'] > [data-ui='icon'],
1034
- [data-ui='upload'] [data-part='pause'] > [data-ui='icon'],
1035
- [data-ui='upload'] [data-part='retry'] > [data-ui='icon'],
1036
- [data-ui='upload'] [data-part='cancel'] > [data-ui='icon'],
1037
- [data-ui='upload'] [data-part='remove'] > [data-ui='icon'] {
1030
+ [data-ui-upload] [data-part-viewerexternal] > [data-ui-icon],
1031
+ [data-ui-upload] [data-part-viewerclose] > [data-ui-icon],
1032
+ [data-ui-upload] [data-part-start] > [data-ui-icon],
1033
+ [data-ui-upload] [data-part-pause] > [data-ui-icon],
1034
+ [data-ui-upload] [data-part-retry] > [data-ui-icon],
1035
+ [data-ui-upload] [data-part-cancel] > [data-ui-icon],
1036
+ [data-ui-upload] [data-part-remove] > [data-ui-icon] {
1038
1037
  --slotted-icon-size: var(--_action-glyph-size);
1039
1038
  }
1040
1039
 
1041
1040
  /**
1042
1041
  * On a finger the target is the comfortable size in both axes and the box
1043
- * is the one a mouse sees: a transparent `::after` centred on each control
1042
+ * is the one a mouse sees: a transparent `::after` centerd on each control
1044
1043
  * reaches 44 pixels, and the ground and the ring stay square. The controls
1045
1044
  * of one row stand two pixels apart, so none reaches across the edge it
1046
1045
  * shares with the one beside it; between two of them each keeps its own
1047
1046
  * width and is 44 tall.
1048
1047
  */
1049
1048
  @media (pointer: coarse) {
1050
- [data-ui='upload']
1049
+ [data-ui-upload]
1051
1050
  :is(
1052
- [data-part='viewerExternal'],
1053
- [data-part='viewerClose'],
1054
- [data-part='start'],
1055
- [data-part='pause'],
1056
- [data-part='retry'],
1057
- [data-part='cancel'],
1058
- [data-part='remove']
1051
+ [data-part-viewerexternal],
1052
+ [data-part-viewerclose],
1053
+ [data-part-start],
1054
+ [data-part-pause],
1055
+ [data-part-retry],
1056
+ [data-part-cancel],
1057
+ [data-part-remove]
1059
1058
  ) {
1060
1059
  position: relative;
1061
1060
  }
1062
1061
 
1063
- [data-ui='upload']
1062
+ [data-ui-upload]
1064
1063
  :is(
1065
- [data-part='viewerExternal'],
1066
- [data-part='viewerClose'],
1067
- [data-part='start'],
1068
- [data-part='pause'],
1069
- [data-part='retry'],
1070
- [data-part='cancel'],
1071
- [data-part='remove']
1064
+ [data-part-viewerexternal],
1065
+ [data-part-viewerclose],
1066
+ [data-part-start],
1067
+ [data-part-pause],
1068
+ [data-part-retry],
1069
+ [data-part-cancel],
1070
+ [data-part-remove]
1072
1071
  )::after {
1073
1072
  content: '';
1074
1073
  inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
1075
1074
  position: absolute;
1076
1075
  }
1077
1076
 
1078
- [data-ui='upload']
1077
+ [data-ui-upload]
1079
1078
  :is(
1080
- [data-part='viewerExternal'],
1081
- [data-part='start'],
1082
- [data-part='pause'],
1083
- [data-part='retry'],
1084
- [data-part='cancel']
1079
+ [data-part-viewerexternal],
1080
+ [data-part-start],
1081
+ [data-part-pause],
1082
+ [data-part-retry],
1083
+ [data-part-cancel]
1085
1084
  ):has(
1086
1085
  + :is(
1087
- [data-part='viewerClose'],
1088
- [data-part='pause'],
1089
- [data-part='retry'],
1090
- [data-part='cancel'],
1091
- [data-part='remove']
1086
+ [data-part-viewerclose],
1087
+ [data-part-pause],
1088
+ [data-part-retry],
1089
+ [data-part-cancel],
1090
+ [data-part-remove]
1092
1091
  ):not([hidden])
1093
1092
  )::after {
1094
1093
  inset-inline-end: 0;
1095
1094
  }
1096
1095
 
1097
- [data-ui='upload']
1096
+ [data-ui-upload]
1098
1097
  :is(
1099
- [data-part='viewerExternal'],
1100
- [data-part='start'],
1101
- [data-part='pause'],
1102
- [data-part='retry'],
1103
- [data-part='cancel']
1098
+ [data-part-viewerexternal],
1099
+ [data-part-start],
1100
+ [data-part-pause],
1101
+ [data-part-retry],
1102
+ [data-part-cancel]
1104
1103
  ):not([hidden])
1105
1104
  + :is(
1106
- [data-part='viewerClose'],
1107
- [data-part='pause'],
1108
- [data-part='retry'],
1109
- [data-part='cancel'],
1110
- [data-part='remove']
1105
+ [data-part-viewerclose],
1106
+ [data-part-pause],
1107
+ [data-part-retry],
1108
+ [data-part-cancel],
1109
+ [data-part-remove]
1111
1110
  )::after {
1112
1111
  inset-inline-start: 0;
1113
1112
  }
@@ -1118,44 +1117,44 @@
1118
1117
  * and the reason it exists: a control the browser has already refused must
1119
1118
  * not answer a pointer.
1120
1119
  */
1121
- [data-ui='upload'] [data-part='viewerExternal']:enabled:hover,
1122
- [data-ui='upload'] [data-part='viewerClose']:enabled:hover,
1123
- [data-ui='upload'] [data-part='start']:enabled:hover,
1124
- [data-ui='upload'] [data-part='pause']:enabled:hover,
1125
- [data-ui='upload'] [data-part='retry']:enabled:hover,
1126
- [data-ui='upload'] [data-part='cancel']:enabled:hover,
1127
- [data-ui='upload'] [data-part='remove']:enabled:hover {
1120
+ [data-ui-upload] [data-part-viewerexternal]:enabled:hover,
1121
+ [data-ui-upload] [data-part-viewerclose]:enabled:hover,
1122
+ [data-ui-upload] [data-part-start]:enabled:hover,
1123
+ [data-ui-upload] [data-part-pause]:enabled:hover,
1124
+ [data-ui-upload] [data-part-retry]:enabled:hover,
1125
+ [data-ui-upload] [data-part-cancel]:enabled:hover,
1126
+ [data-ui-upload] [data-part-remove]:enabled:hover {
1128
1127
  background-color: var(--_state-hover);
1129
1128
  }
1130
1129
 
1131
- [data-ui='upload'] [data-part='viewerExternal']:enabled:active,
1132
- [data-ui='upload'] [data-part='viewerClose']:enabled:active,
1133
- [data-ui='upload'] [data-part='start']:enabled:active,
1134
- [data-ui='upload'] [data-part='pause']:enabled:active,
1135
- [data-ui='upload'] [data-part='retry']:enabled:active,
1136
- [data-ui='upload'] [data-part='cancel']:enabled:active,
1137
- [data-ui='upload'] [data-part='remove']:enabled:active {
1130
+ [data-ui-upload] [data-part-viewerexternal]:enabled:active,
1131
+ [data-ui-upload] [data-part-viewerclose]:enabled:active,
1132
+ [data-ui-upload] [data-part-start]:enabled:active,
1133
+ [data-ui-upload] [data-part-pause]:enabled:active,
1134
+ [data-ui-upload] [data-part-retry]:enabled:active,
1135
+ [data-ui-upload] [data-part-cancel]:enabled:active,
1136
+ [data-ui-upload] [data-part-remove]:enabled:active {
1138
1137
  background-color: var(--_state-active);
1139
1138
  }
1140
1139
 
1141
- [data-ui='upload'] [data-part='viewerExternal']:disabled,
1142
- [data-ui='upload'] [data-part='viewerClose']:disabled,
1143
- [data-ui='upload'] [data-part='start']:disabled,
1144
- [data-ui='upload'] [data-part='pause']:disabled,
1145
- [data-ui='upload'] [data-part='retry']:disabled,
1146
- [data-ui='upload'] [data-part='cancel']:disabled,
1147
- [data-ui='upload'] [data-part='remove']:disabled {
1140
+ [data-ui-upload] [data-part-viewerexternal]:disabled,
1141
+ [data-ui-upload] [data-part-viewerclose]:disabled,
1142
+ [data-ui-upload] [data-part-start]:disabled,
1143
+ [data-ui-upload] [data-part-pause]:disabled,
1144
+ [data-ui-upload] [data-part-retry]:disabled,
1145
+ [data-ui-upload] [data-part-cancel]:disabled,
1146
+ [data-ui-upload] [data-part-remove]:disabled {
1148
1147
  color: var(--slotted-disabled-foreground);
1149
1148
  cursor: default;
1150
1149
  }
1151
1150
 
1152
- [data-ui='upload'] [data-part='viewerExternal']:focus-visible,
1153
- [data-ui='upload'] [data-part='viewerClose']:focus-visible,
1154
- [data-ui='upload'] [data-part='start']:focus-visible,
1155
- [data-ui='upload'] [data-part='pause']:focus-visible,
1156
- [data-ui='upload'] [data-part='retry']:focus-visible,
1157
- [data-ui='upload'] [data-part='cancel']:focus-visible,
1158
- [data-ui='upload'] [data-part='remove']:focus-visible {
1151
+ [data-ui-upload] [data-part-viewerexternal]:focus-visible,
1152
+ [data-ui-upload] [data-part-viewerclose]:focus-visible,
1153
+ [data-ui-upload] [data-part-start]:focus-visible,
1154
+ [data-ui-upload] [data-part-pause]:focus-visible,
1155
+ [data-ui-upload] [data-part-retry]:focus-visible,
1156
+ [data-ui-upload] [data-part-cancel]:focus-visible,
1157
+ [data-ui-upload] [data-part-remove]:focus-visible {
1159
1158
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
1160
1159
  outline-offset: calc(-1 * var(--slotted-focus-ring-width, 2px));
1161
1160
  }
@@ -1172,7 +1171,7 @@
1172
1171
  * survives as the escape hatch inside the viewer, where a PDF is better read
1173
1172
  * in the browser's own full window.
1174
1173
  */
1175
- [data-ui='upload'][data-part='viewer'] {
1174
+ [data-ui-upload][data-part-viewer] {
1176
1175
  background-color: var(--slotted-surface);
1177
1176
  block-size: 100%;
1178
1177
  display: grid;
@@ -1189,7 +1188,7 @@
1189
1188
  inline-size: 100%;
1190
1189
  }
1191
1190
 
1192
- [data-ui='upload'] [data-part='viewerHeader'] {
1191
+ [data-ui-upload] [data-part-viewerheader] {
1193
1192
  align-items: center;
1194
1193
  border-block-end: var(--_border-width) solid var(--slotted-border-subtle);
1195
1194
  column-gap: var(--_gap);
@@ -1199,7 +1198,7 @@
1199
1198
  padding-inline: var(--slotted-space-6, 1rem);
1200
1199
  }
1201
1200
 
1202
- [data-ui='upload'] [data-part='viewerTitle'] {
1201
+ [data-ui-upload] [data-part-viewertitle] {
1203
1202
  font-size: var(--slotted-font-size-md, 0.875rem);
1204
1203
  line-height: var(--_leading);
1205
1204
  font-weight: var(--slotted-font-weight-semibold, 600);
@@ -1209,13 +1208,13 @@
1209
1208
  white-space: nowrap;
1210
1209
  }
1211
1210
 
1212
- [data-ui='upload'] [data-part='viewerMeta'] {
1211
+ [data-ui-upload] [data-part-viewermeta] {
1213
1212
  color: var(--slotted-text-muted);
1214
1213
  font-size: var(--slotted-font-size-xs, 0.75rem);
1215
1214
  line-height: var(--_leading);
1216
1215
  }
1217
1216
 
1218
- [data-ui='upload'] [data-part='viewerActions'] {
1217
+ [data-ui-upload] [data-part-vieweractions] {
1219
1218
  align-items: center;
1220
1219
  display: inline-flex;
1221
1220
  gap: var(--slotted-space-1, 0.125rem);
@@ -1226,7 +1225,7 @@
1226
1225
  * on it is the consumer's content and a photograph with a white border on a
1227
1226
  * white page has no edge at all.
1228
1227
  */
1229
- [data-ui='upload'] [data-part='viewerStage'] {
1228
+ [data-ui-upload] [data-part-viewerstage] {
1230
1229
  background-color: var(--slotted-surface-sunken);
1231
1230
  display: grid;
1232
1231
  min-block-size: 0;
@@ -1251,8 +1250,8 @@
1251
1250
  * a reader saw as an image running off the screen. `contain` is what keeps a
1252
1251
  * portrait scan and a wide dashcam frame both whole in the same box.
1253
1252
  */
1254
- [data-ui='upload'] [data-part='viewerStage'] > img,
1255
- [data-ui='upload'] [data-part='viewerStage'] > iframe {
1253
+ [data-ui-upload] [data-part-viewerstage] > img,
1254
+ [data-ui-upload] [data-part-viewerstage] > iframe {
1256
1255
  align-self: stretch;
1257
1256
  block-size: auto;
1258
1257
  inline-size: auto;
@@ -1261,7 +1260,7 @@
1261
1260
  min-inline-size: 0;
1262
1261
  }
1263
1262
 
1264
- [data-ui='upload'] [data-part='viewerStage'] > img {
1263
+ [data-ui-upload] [data-part-viewerstage] > img {
1265
1264
  object-fit: contain;
1266
1265
  }
1267
1266
 
@@ -1272,14 +1271,14 @@
1272
1271
  * no script. Both bindings state it; it is written here because a reader of
1273
1272
  * this file will ask why one frame differs from the other.
1274
1273
  */
1275
- [data-ui='upload'] [data-part='viewerStage'] > iframe {
1274
+ [data-ui-upload] [data-part-viewerstage] > iframe {
1276
1275
  background-color: var(--slotted-surface);
1277
1276
  border: 0;
1278
1277
  }
1279
1278
 
1280
1279
  /* Sized by the film rather than by the stage, and never past it. */
1281
- [data-ui='upload'] [data-part='viewerStage'] > video,
1282
- [data-ui='upload'] [data-part='viewerStage'] > audio {
1280
+ [data-ui-upload] [data-part-viewerstage] > video,
1281
+ [data-ui-upload] [data-part-viewerstage] > audio {
1283
1282
  max-block-size: 100%;
1284
1283
  max-inline-size: 100%;
1285
1284
  min-block-size: 0;
@@ -1292,12 +1291,12 @@
1292
1291
  * because a browser cannot draw them and drawing them needs a server or a
1293
1292
  * megabyte of engine — which is the honest answer rather than an empty box.
1294
1293
  */
1295
- [data-ui='upload'] [data-part='viewerStage'] > [data-part='preview'] {
1294
+ [data-ui-upload] [data-part-viewerstage] > [data-part-preview] {
1296
1295
  block-size: var(--slotted-upload-viewer-tile-size, 6rem);
1297
1296
  inline-size: var(--slotted-upload-viewer-tile-size, 6rem);
1298
1297
  }
1299
1298
 
1300
- [data-ui='upload'] [data-part='viewerStage'] > [data-part='preview'] > [data-ui='icon'] {
1299
+ [data-ui-upload] [data-part-viewerstage] > [data-part-preview] > [data-ui-icon] {
1301
1300
  --slotted-icon-size: calc(3 * var(--_glyph-size));
1302
1301
  }
1303
1302
 
@@ -1306,7 +1305,7 @@
1306
1305
  * the defaults provider holds, so an application translates it once; the name
1307
1306
  * and the way out are in the header, where they are for every other file.
1308
1307
  */
1309
- [data-ui='upload'] [data-part='viewerStage'] > p {
1308
+ [data-ui-upload] [data-part-viewerstage] > p {
1310
1309
  color: var(--slotted-text-muted);
1311
1310
  margin: 0;
1312
1311
  max-inline-size: 28ch;
@@ -1315,11 +1314,11 @@
1315
1314
 
1316
1315
  /*
1317
1316
  * The unsupported stage is a column rather than a grid. Read at 720 pixels as
1318
- * a grid, the tile and its sentence landed in two cells that centred against
1319
- * different axes and sat diagonally apart; a column of two things centred is
1317
+ * a grid, the tile and its sentence landed in two cells that centerd against
1318
+ * different axes and sat diagonally apart; a column of two things centerd is
1320
1319
  * one rule with one meaning.
1321
1320
  */
1322
- [data-ui='upload'] [data-part='viewerStage']:has(> [data-part='preview']) {
1321
+ [data-ui-upload] [data-part-viewerstage]:has(> [data-part-preview]) {
1323
1322
  align-items: center;
1324
1323
  display: flex;
1325
1324
  flex-direction: column;
@@ -1332,8 +1331,8 @@
1332
1331
  * the header, where the reader's pointer already is, and they are held off
1333
1332
  * the edge so a photograph that fills the stage is not covered at its corner.
1334
1333
  */
1335
- [data-ui='upload'] [data-part='viewerPrevious'],
1336
- [data-ui='upload'] [data-part='viewerNext'] {
1334
+ [data-ui-upload] [data-part-viewerprevious],
1335
+ [data-ui-upload] [data-part-viewernext] {
1337
1336
  align-items: center;
1338
1337
  appearance: none;
1339
1338
  background-color: color-mix(
@@ -1358,11 +1357,11 @@
1358
1357
  translate var(--slotted-duration-instant) var(--slotted-control-transition-easing);
1359
1358
  }
1360
1359
 
1361
- [data-ui='upload'] [data-part='viewerPrevious'] {
1360
+ [data-ui-upload] [data-part-viewerprevious] {
1362
1361
  inset-inline-start: var(--slotted-space-5, 0.75rem);
1363
1362
  }
1364
1363
 
1365
- [data-ui='upload'] [data-part='viewerNext'] {
1364
+ [data-ui-upload] [data-part-viewernext] {
1366
1365
  inset-inline-end: var(--slotted-space-5, 0.75rem);
1367
1366
  }
1368
1367
 
@@ -1372,12 +1371,12 @@
1372
1371
  * chevron rather than a pair. The binding marks both icons `directional`, so
1373
1372
  * they mirror where reading runs right to left.
1374
1373
  */
1375
- [data-ui='upload'] [data-part='viewerPrevious'] > [data-ui='icon'],
1376
- [data-ui='upload'] [data-part='viewerNext'] > [data-ui='icon'] {
1374
+ [data-ui-upload] [data-part-viewerprevious] > [data-ui-icon],
1375
+ [data-ui-upload] [data-part-viewernext] > [data-ui-icon] {
1377
1376
  --slotted-icon-size: var(--_glyph-size);
1378
1377
  }
1379
1378
 
1380
- [data-ui='upload'] [data-part='viewerPrevious'] > [data-ui='icon'] {
1379
+ [data-ui-upload] [data-part-viewerprevious] > [data-ui-icon] {
1381
1380
  rotate: 180deg;
1382
1381
  }
1383
1382
 
@@ -1387,8 +1386,8 @@
1387
1386
  * is mixed into the plate instead, which keeps it opaque over the photograph
1388
1387
  * and steps it by the amount every other control in the family steps.
1389
1388
  */
1390
- [data-ui='upload'] [data-part='viewerPrevious']:enabled:hover,
1391
- [data-ui='upload'] [data-part='viewerNext']:enabled:hover {
1389
+ [data-ui-upload] [data-part-viewerprevious]:enabled:hover,
1390
+ [data-ui-upload] [data-part-viewernext]:enabled:hover {
1392
1391
  background-color: color-mix(
1393
1392
  in oklab,
1394
1393
  currentcolor var(--slotted-upload-state-layer-hover, 8%),
@@ -1396,8 +1395,8 @@
1396
1395
  );
1397
1396
  }
1398
1397
 
1399
- [data-ui='upload'] [data-part='viewerPrevious']:enabled:active,
1400
- [data-ui='upload'] [data-part='viewerNext']:enabled:active {
1398
+ [data-ui-upload] [data-part-viewerprevious]:enabled:active,
1399
+ [data-ui-upload] [data-part-viewernext]:enabled:active {
1401
1400
  background-color: color-mix(
1402
1401
  in oklab,
1403
1402
  currentcolor var(--slotted-upload-state-layer-active, 14%),
@@ -1406,14 +1405,14 @@
1406
1405
  translate: 0 var(--slotted-border-width-thin, 1px);
1407
1406
  }
1408
1407
 
1409
- [data-ui='upload'] [data-part='viewerPrevious']:disabled,
1410
- [data-ui='upload'] [data-part='viewerNext']:disabled {
1408
+ [data-ui-upload] [data-part-viewerprevious]:disabled,
1409
+ [data-ui-upload] [data-part-viewernext]:disabled {
1411
1410
  color: var(--slotted-disabled-foreground);
1412
1411
  cursor: default;
1413
1412
  }
1414
1413
 
1415
- [data-ui='upload'] [data-part='viewerPrevious']:focus-visible,
1416
- [data-ui='upload'] [data-part='viewerNext']:focus-visible {
1414
+ [data-ui-upload] [data-part-viewerprevious]:focus-visible,
1415
+ [data-ui-upload] [data-part-viewernext]:focus-visible {
1417
1416
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
1418
1417
  outline-offset: var(--slotted-focus-ring-offset, 2px);
1419
1418
  }
@@ -1430,9 +1429,9 @@
1430
1429
  * is a third place the DOM is written and a scene that puts an upload in a
1431
1430
  * field has to look like the form does.
1432
1431
  */
1433
- [data-ui='field'] [data-ui='upload'] > [data-part='label'],
1434
- [data-ui='field'] [data-ui='upload'] > [data-part='description'],
1435
- [data-ui='field'] [data-ui='upload'] > [data-part='message'] {
1432
+ [data-ui-field] [data-ui-upload] > [data-part-label],
1433
+ [data-ui-field] [data-ui-upload] > [data-part-description],
1434
+ [data-ui-field] [data-ui-upload] > [data-part-message] {
1436
1435
  display: none;
1437
1436
  }
1438
1437
 
@@ -1442,7 +1441,7 @@
1442
1441
  * one step: the region, the summary and the list are one block rather than
1443
1442
  * three things with a paragraph's air between them.
1444
1443
  */
1445
- [data-ui='field'] [data-ui='upload'][data-part='root'] {
1444
+ [data-ui-field] [data-ui-upload][data-part-root] {
1446
1445
  --_section-gap: var(--slotted-upload-field-section-gap, var(--slotted-space-4, 0.5rem));
1447
1446
  }
1448
1447
 
@@ -1452,7 +1451,7 @@
1452
1451
  * is still a target; what it does not do is claim a box the size of a card
1453
1452
  * for an application that wanted a button.
1454
1453
  */
1455
- [data-ui='upload'][data-variant='button'] [data-part='trigger'] {
1454
+ [data-ui-upload][data-variant='button'] [data-part-trigger] {
1456
1455
  align-self: start;
1457
1456
  }
1458
1457
 
@@ -1467,15 +1466,15 @@
1467
1466
  * The frame a text field has, at rest. It moves the region's resting pair
1468
1467
  * rather than painting over it, so the family's states — invalid, disabled,
1469
1468
  * the drag verdict, a pointer — reach this shape as they reach the other:
1470
- * written as a border colour on the region, it held one colour through all
1469
+ * written as a border color on the region, it held one color through all
1471
1470
  * of them. `:where` keeps it below the invalid and disabled pair.
1472
1471
  */
1473
- [data-ui='upload'][data-variant='field']:where([data-part='root']) {
1472
+ [data-ui-upload][data-variant='field']:where([data-part-root]) {
1474
1473
  --_zone-edge: var(--slotted-control-border-color);
1475
1474
  --_zone-ground: var(--slotted-control-surface, Field);
1476
1475
  }
1477
1476
 
1478
- [data-ui='upload'][data-variant='field'] [data-part='dropzone'] {
1477
+ [data-ui-upload][data-variant='field'] [data-part-dropzone] {
1479
1478
  align-items: center;
1480
1479
  border-style: solid;
1481
1480
  border-width: var(--slotted-control-border-width, 1px);
@@ -1493,13 +1492,13 @@
1493
1492
  * controls move to the corner of the picture, where they are over the one
1494
1493
  * thing the reader is pointing at.
1495
1494
  */
1496
- [data-ui='upload'][data-layout='grid'] [data-part='list'] {
1495
+ [data-ui-upload][data-layout='grid'] [data-part-list] {
1497
1496
  display: grid;
1498
1497
  gap: var(--_gap);
1499
1498
  grid-template-columns: repeat(auto-fill, minmax(var(--slotted-upload-card-measure, 9rem), 1fr));
1500
1499
  }
1501
1500
 
1502
- [data-ui='upload'][data-layout='grid'] [data-part='item'] {
1501
+ [data-ui-upload][data-layout='grid'] [data-part-item] {
1503
1502
  /*
1504
1503
  * Cards in one row share its height, and the spare height of the shorter
1505
1504
  * ones goes under their content rather than between the picture and the
@@ -1523,14 +1522,14 @@
1523
1522
  * the height: 117.66 at 720 pixels, with every edge under it blurred. The
1524
1523
  * card is a container, so `cqi` is the width the picture fills.
1525
1524
  */
1526
- [data-ui='upload'][data-layout='grid'] [data-part='preview'] {
1525
+ [data-ui-upload][data-layout='grid'] [data-part-preview] {
1527
1526
  block-size: round(down, calc(100cqi * 3 / 4), 1px);
1528
1527
  inline-size: 100%;
1529
1528
  }
1530
1529
 
1531
1530
  /**
1532
1531
  * Over the picture, the controls need a ground of their own: the consumer's
1533
- * photograph is any colour, and a dark mark on a mid-blue sky was the reading
1532
+ * photograph is any color, and a dark mark on a mid-blue sky was the reading
1534
1533
  * the first capture at 720 pixels gave. The ground is on the group rather than
1535
1534
  * on each control, so the five keep the frameless rest state R2 requires of
1536
1535
  * them and the reader still gets one legible plate.
@@ -1546,7 +1545,7 @@
1546
1545
  * the frameless rest state R2 requires of them and the reader still gets one
1547
1546
  * legible plate.
1548
1547
  */
1549
- [data-ui='upload'][data-layout='grid'] [data-part='actions'] {
1548
+ [data-ui-upload][data-layout='grid'] [data-part-actions] {
1550
1549
  background-color: color-mix(
1551
1550
  in oklab,
1552
1551
  var(--slotted-surface) var(--slotted-upload-card-actions-opacity, 96%),
@@ -1568,7 +1567,7 @@
1568
1567
  * three letters than by the silhouette. It is drawn from the attribute the
1569
1568
  * binding already writes, so the label costs no element.
1570
1569
  */
1571
- [data-ui='upload'][data-layout='grid'] [data-part='preview']:not(:has(img))::after {
1570
+ [data-ui-upload][data-layout='grid'] [data-part-preview]:not(:has(img))::after {
1572
1571
  content: attr(data-extension);
1573
1572
  font-size: var(--slotted-font-size-sm, 0.8125rem);
1574
1573
  font-weight: var(--slotted-font-weight-semibold, 600);
@@ -1578,7 +1577,7 @@
1578
1577
  }
1579
1578
 
1580
1579
  /* A card's tile carries a mark the size of the card, not the size of a row. */
1581
- [data-ui='upload'][data-layout='grid'] [data-part='preview'] > [data-ui='icon'] {
1580
+ [data-ui-upload][data-layout='grid'] [data-part-preview] > [data-ui-icon] {
1582
1581
  --slotted-icon-size: calc(2 * var(--_glyph-size));
1583
1582
  }
1584
1583
 
@@ -1595,7 +1594,7 @@
1595
1594
  * words broke across two lines with the underline broken between them.
1596
1595
  */
1597
1596
  @container slotted-upload (max-width: 30rem) {
1598
- [data-ui='upload'] [data-part='summary'] {
1597
+ [data-ui-upload] [data-part-summary] {
1599
1598
  align-items: start;
1600
1599
  flex-direction: column;
1601
1600
  }
@@ -1605,10 +1604,10 @@
1605
1604
  /*
1606
1605
  * The chip keeps the start of the row and the controls drop under the text,
1607
1606
  * because at this width three of them beside a name leave the name seven
1608
- * characters. The chip spans both rows, so the block it is centred on is
1607
+ * characters. The chip spans both rows, so the block it is centerd on is
1609
1608
  * still the block it is about.
1610
1609
  */
1611
- [data-ui='upload'] [data-part='item'] {
1610
+ [data-ui-upload] [data-part-item] {
1612
1611
  grid-template-areas:
1613
1612
  'preview body'
1614
1613
  'preview actions'
@@ -1616,47 +1615,47 @@
1616
1615
  grid-template-columns: auto minmax(0, 1fr);
1617
1616
  }
1618
1617
 
1619
- [data-ui='upload'] [data-part='preview'] {
1618
+ [data-ui-upload] [data-part-preview] {
1620
1619
  align-self: start;
1621
1620
  }
1622
1621
 
1623
- [data-ui='upload'] [data-part='actions'] {
1622
+ [data-ui-upload] [data-part-actions] {
1624
1623
  justify-content: flex-start;
1625
1624
  margin-inline-start: calc(-1 * var(--slotted-space-2, 0.25rem));
1626
1625
  }
1627
1626
 
1628
- [data-ui='upload'] [data-part='dropzone'] {
1627
+ [data-ui-upload] [data-part-dropzone] {
1629
1628
  padding-block: var(--slotted-space-6, 1rem);
1630
1629
  }
1631
1630
  }
1632
1631
 
1633
- /* ── Forced colours ────────────────────────────────────────────────────
1632
+ /* ── Forced colors ────────────────────────────────────────────────────
1634
1633
  *
1635
- * The theme remaps every semantic token to a system colour, so a family that
1636
- * reads tokens needs no rule of its own for colour. What it does need is the
1637
- * region's dashed edge, whose colour comes from a token that becomes
1634
+ * The theme remaps every semantic token to a system color, so a family that
1635
+ * reads tokens needs no rule of its own for color. What it does need is the
1636
+ * region's dashed edge, whose color comes from a token that becomes
1638
1637
  * `CanvasText` — correct — and the row tint, which the system flattens to
1639
1638
  * `Canvas` and which then leaves the failed row saying nothing. The border
1640
1639
  * carries it there instead.
1641
1640
  */
1642
1641
  @media (forced-colors: active) {
1643
- [data-ui='upload'] [data-part='item'][data-status='rejected'],
1644
- [data-ui='upload'] [data-part='item'][data-status='error'] {
1642
+ [data-ui-upload] [data-part-item][data-status='rejected'],
1643
+ [data-ui-upload] [data-part-item][data-status='error'] {
1645
1644
  --_item-border: CanvasText;
1646
1645
  }
1647
1646
 
1648
1647
  /*
1649
1648
  * The theme maps every kind to `ButtonFace` and the foreground to
1650
1649
  * `ButtonText`, so the tile is still a tile and the mark is still knocked
1651
- * out of it — in the system's two colours rather than in nine. What kind a
1650
+ * out of it — in the system's two colors rather than in nine. What kind a
1652
1651
  * file is, is then said by its shape, which is what survives this mode.
1653
1652
  */
1654
- [data-ui='upload'] [data-part='preview'] {
1653
+ [data-ui-upload] [data-part-preview] {
1655
1654
  border: var(--_border-width) solid ButtonBorder;
1656
1655
  }
1657
1656
 
1658
- [data-ui='upload'] [data-part='dropzone'][data-drop-target],
1659
- [data-ui='upload'] [data-part='dropzone'][data-drop-invalid] {
1657
+ [data-ui-upload] [data-part-dropzone][data-drop-target],
1658
+ [data-ui-upload] [data-part-dropzone][data-drop-invalid] {
1660
1659
  --_zone-border-color: Highlight;
1661
1660
  }
1662
1661
 
@@ -1666,18 +1665,18 @@
1666
1665
  * the reader could see. The system's own pair answers instead — the one
1667
1666
  * `alert` gives its dismiss.
1668
1667
  */
1669
- [data-ui='upload']
1668
+ [data-ui-upload]
1670
1669
  :is(
1671
- [data-part='clear'],
1672
- [data-part='viewerExternal'],
1673
- [data-part='viewerClose'],
1674
- [data-part='viewerPrevious'],
1675
- [data-part='viewerNext'],
1676
- [data-part='start'],
1677
- [data-part='pause'],
1678
- [data-part='retry'],
1679
- [data-part='cancel'],
1680
- [data-part='remove']
1670
+ [data-part-clear],
1671
+ [data-part-viewerexternal],
1672
+ [data-part-viewerclose],
1673
+ [data-part-viewerprevious],
1674
+ [data-part-viewernext],
1675
+ [data-part-start],
1676
+ [data-part-pause],
1677
+ [data-part-retry],
1678
+ [data-part-cancel],
1679
+ [data-part-remove]
1681
1680
  ):enabled:is(:hover, :active) {
1682
1681
  background-color: Highlight;
1683
1682
  color: HighlightText;
@@ -1685,19 +1684,19 @@
1685
1684
  }
1686
1685
 
1687
1686
  /*
1688
- * Forced colours remove every box shadow, and the edge with them. The width
1687
+ * Forced colors remove every box shadow, and the edge with them. The width
1689
1688
  * comes back as an outline inside the border, and where focus draws the ring
1690
1689
  * on the same box an invalid ring is double, which a valid one is not.
1691
1690
  */
1692
1691
  @media (forced-colors: active) {
1693
- [data-ui='upload'][data-invalid] [data-part='trigger'] {
1692
+ [data-ui-upload][data-invalid] [data-part-trigger] {
1694
1693
  outline: var(--_invalid-edge-width) solid CanvasText;
1695
1694
  outline-offset: calc(
1696
1695
  -1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
1697
1696
  );
1698
1697
  }
1699
1698
 
1700
- [data-ui='upload'][data-invalid] [data-part='trigger']:has(:focus-visible) {
1699
+ [data-ui-upload][data-invalid] [data-part-trigger]:has(:focus-visible) {
1701
1700
  outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
1702
1701
  var(--slotted-focus-ring-color, Highlight);
1703
1702
  outline-offset: var(--slotted-focus-ring-offset, 2px);