@mkbabb/glass-ui 3.9.0 → 3.10.1

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 (265) hide show
  1. package/dist/{CardAction-DuArVky-.js → CardAction-DrAcAV4d.js} +2 -2
  2. package/dist/{CommandShortcut-CefCj5mt.js → CommandShortcut-mV2e1aG6.js} +2 -2
  3. package/dist/{DataTable-CUHMukiQ.js → DataTable-C3E6jZ5B.js} +2 -2
  4. package/dist/{DialogContent-BRkT1cjP.js → DialogContent-BxaaafFi.js} +1 -1
  5. package/dist/{HoverPopover-2LOIW34a.js → HoverPopover-CDA_SaCe.js} +1 -1
  6. package/dist/{MetricBadge-lTc002u2.js → MetricBadge-idgrkqoP.js} +1 -1
  7. package/dist/{Notification-BxK8LZMw.js → Notification-Cu0nN17_.js} +3 -3
  8. package/dist/{NumberFieldContent-BbLOh8RU.js → NumberFieldContent-CHEWghnY.js} +2 -2
  9. package/dist/{PopoverContent-BId6ggf_.js → PopoverContent-DpUvdYY-.js} +1 -1
  10. package/dist/{Progress-iEuD9pxG.js → Progress-BW-StFw2.js} +1 -1
  11. package/dist/{ScrollingText-BPP84wKo.js → ScrollingText-DruYCni_.js} +1 -1
  12. package/dist/{SelectScrollDownButton-T32cVFeM.js → SelectScrollDownButton-pirzjm--.js} +3 -3
  13. package/dist/{Switch-LDKLmmgx.js → Switch-DeAqg6pi.js} +1 -1
  14. package/dist/{TabsList-B8CVOQPC.js → TabsList-BAVzOZpg.js} +2 -2
  15. package/dist/{Toaster-1rYWrmAm.js → Toaster-CvuuW_y9.js} +49 -46
  16. package/dist/{ToggleGroupItem-Cev4pOVK.js → ToggleGroupItem-DtD37b4G.js} +4 -4
  17. package/dist/animated-digit.js +2 -2
  18. package/dist/api/index.d.ts +4 -4
  19. package/dist/api.js +1 -1
  20. package/dist/aurora.js +238 -547
  21. package/dist/{badge-BvwvT50i.js → badge-NdCQMvvB.js} +2 -2
  22. package/dist/badge.js +1 -1
  23. package/dist/{button-DN39cGqL.js → button-DyiWFAOE.js} +12 -12
  24. package/dist/button.js +1 -1
  25. package/dist/canvas.js +2 -2
  26. package/dist/card.js +1 -1
  27. package/dist/carousel.js +5 -5
  28. package/dist/collapsible.js +1 -1
  29. package/dist/{color-8jBjWiJ6.js → color-B65wWyQz.js} +9 -7
  30. package/dist/color.js +1 -1
  31. package/dist/command.js +1 -1
  32. package/dist/{compile-DAjIoEy2.js → compile-Ce_V55zi.js} +23 -23
  33. package/dist/components/custom/aurora/composables/atoms.d.ts +21 -4
  34. package/dist/components/custom/aurora/composables/runtime.d.ts +0 -9
  35. package/dist/components/custom/aurora/composables/uniformBridge.d.ts +0 -11
  36. package/dist/components/custom/aurora/constants/renderMode.d.ts +0 -32
  37. package/dist/components/custom/aurora/constants/shaders/brush.glsl.d.ts +1 -1
  38. package/dist/components/custom/aurora/constants/shaders/mediums.glsl.d.ts +2 -2
  39. package/dist/components/custom/aurora/constants/shaders/tonemap.glsl.d.ts +1 -1
  40. package/dist/components/custom/aurora/constants/shaders/vangogh-medium.glsl.d.ts +1 -0
  41. package/dist/components/custom/aurora/index.d.ts +1 -1
  42. package/dist/components/custom/constellation/Constellation.vue.d.ts +85 -1
  43. package/dist/components/custom/constellation/composables/createConstellationField.d.ts +35 -0
  44. package/dist/components/custom/constellation/composables/useConstellationPointer.d.ts +35 -0
  45. package/dist/components/custom/constellation/constants.d.ts +36 -0
  46. package/dist/components/custom/constellation/constellationDraw.d.ts +18 -0
  47. package/dist/components/custom/constellation/constellationField.d.ts +174 -63
  48. package/dist/components/custom/constellation/constellationInteraction.d.ts +102 -0
  49. package/dist/components/custom/constellation/index.d.ts +4 -2
  50. package/dist/components/custom/controls/DarkModeToggle.vue.d.ts +11 -0
  51. package/dist/components/custom/dock/GlassDock.vue.d.ts +2 -110
  52. package/dist/components/custom/dock/composables/dockMorphContext.d.ts +36 -0
  53. package/dist/components/custom/dock/composables/useDockMorphWindow.d.ts +15 -0
  54. package/dist/components/custom/dock/composables/useDockShellProps.d.ts +131 -0
  55. package/dist/components/custom/dock/composables/useLayerTransition.d.ts +44 -0
  56. package/dist/components/custom/dock/constants.d.ts +23 -0
  57. package/dist/components/custom/fourier-field/FourierField.vue.d.ts +6 -0
  58. package/dist/components/custom/fourier-field/index.d.ts +25 -1
  59. package/dist/components/custom/fourier-field/math.d.ts +20 -8
  60. package/dist/components/custom/fourier-field/presets.d.ts +54 -0
  61. package/dist/components/custom/goo-blob/GooBlob.vue.d.ts +8 -10
  62. package/dist/components/custom/goo-blob/composables/buildMetaballProgram.d.ts +18 -0
  63. package/dist/components/custom/goo-blob/composables/uploadBlobUniforms.d.ts +41 -0
  64. package/dist/components/custom/goo-blob/composables/useBlobPointer.d.ts +4 -3
  65. package/dist/components/custom/goo-blob/composables/useMetaballRenderer.d.ts +16 -21
  66. package/dist/components/custom/goo-blob/constants.d.ts +52 -0
  67. package/dist/components/custom/goo-blob/index.d.ts +1 -1
  68. package/dist/components/custom/goo-blob/shaders/metaball-uniforms.glsl.d.ts +1 -0
  69. package/dist/components/custom/goo-blob/types.d.ts +59 -25
  70. package/dist/components/custom/instrument-chassis/InstrumentChassis.vue.d.ts +2 -2
  71. package/dist/components/custom/tabs/constants.d.ts +12 -0
  72. package/dist/components/custom/underline/GlassUnderline.vue.d.ts +84 -0
  73. package/dist/components/custom/underline/index.d.ts +2 -0
  74. package/dist/components/custom/underline/types.d.ts +56 -0
  75. package/dist/components/ui/drawer/Drawer.vue.d.ts +1 -0
  76. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
  77. package/dist/components/ui/slider/index.d.ts +25 -18
  78. package/dist/components/ui/toast/use-toast.d.ts +2 -2
  79. package/dist/composables/color/index.d.ts +24 -7
  80. package/dist/composables/glass/useSpecularTracking.d.ts +12 -3
  81. package/dist/composables/glass/webgl/shaders/procedural-color.glsl.d.ts +1 -6
  82. package/dist/composables/motion/curves.d.ts +48 -0
  83. package/dist/composables/motion/index.d.ts +2 -0
  84. package/dist/composables/motion/springPresets.d.ts +33 -0
  85. package/dist/composables/motion/suite.d.ts +2 -0
  86. package/dist/composables/motion/useSpringMount.d.ts +1 -1
  87. package/dist/configurator.js +1 -1
  88. package/dist/confirm-dialog.js +2 -2
  89. package/dist/constellation.js +322 -147
  90. package/dist/controls.js +48 -14
  91. package/dist/dark.js +1 -1
  92. package/dist/data-table.js +1 -1
  93. package/dist/dialog.js +2 -2
  94. package/dist/dock.js +340 -327
  95. package/dist/dockContext-bho8B1A4.js +17 -0
  96. package/dist/{dropdown-menu-D77jX6Df.js → dropdown-menu-DVnQcA0E.js} +7 -4
  97. package/dist/dropdown-menu.js +1 -1
  98. package/dist/expandable-container.js +1 -1
  99. package/dist/forms.js +2 -2
  100. package/dist/fourier-field.js +147 -120
  101. package/dist/fourier-math.d.ts +1 -0
  102. package/dist/fourier-math.js +2 -0
  103. package/dist/glass-ui.css +1 -1
  104. package/dist/glass-ui.js +286 -207
  105. package/dist/goo-blob.js +368 -322
  106. package/dist/hover-popover.js +1 -1
  107. package/dist/icon-tooltip.js +1 -1
  108. package/dist/index.d.ts +0 -2
  109. package/dist/keyboard.js +1 -1
  110. package/dist/labeled-field.js +5 -5
  111. package/dist/math-BUU9hHID.js +43 -0
  112. package/dist/metric-badge.js +1 -1
  113. package/dist/metric-stack.js +2 -2
  114. package/dist/motion-core.js +4 -4
  115. package/dist/motion-curves.d.ts +1 -0
  116. package/dist/motion-curves.js +130 -0
  117. package/dist/motion.js +38 -37
  118. package/dist/notification.js +1 -1
  119. package/dist/number-field.js +1 -1
  120. package/dist/popover.js +1 -1
  121. package/dist/progress.js +1 -1
  122. package/dist/pulse.js +1 -1
  123. package/dist/reactive.js +1 -1
  124. package/dist/scrolling-text.js +1 -1
  125. package/dist/search.js +6 -6
  126. package/dist/select.js +1 -1
  127. package/dist/{sheet-VZEtNFvO.js → sheet-ChSXcJpU.js} +1 -1
  128. package/dist/sheet.js +1 -1
  129. package/dist/{slider-DC2mwuoe.js → slider-sfl8gFDD.js} +8 -8
  130. package/dist/slider.js +1 -1
  131. package/dist/sortable-list.js +2 -2
  132. package/dist/springPresets-aRSm-4_k.js +40 -0
  133. package/dist/stacked-icons.js +6 -6
  134. package/dist/styles/cards.css +2 -2
  135. package/dist/styles/components.css +1 -1
  136. package/dist/styles/dock/layer-group.css +38 -4
  137. package/dist/styles/dock/layers.css +11 -1
  138. package/dist/styles/dock/morph.css +95 -19
  139. package/dist/styles/dock/shell.css +12 -0
  140. package/dist/styles/dock-controls.css +25 -12
  141. package/dist/styles/drawer.css +14 -4
  142. package/dist/styles/floating-panel.css +2 -0
  143. package/dist/styles/glass/a11y-fallback.css +245 -0
  144. package/dist/styles/glass/ladder.css +304 -0
  145. package/dist/styles/glass/material.css +238 -0
  146. package/dist/styles/glass/progress-rail.css +78 -0
  147. package/dist/styles/glass/squircle.css +66 -0
  148. package/dist/styles/glass/surfaces.css +306 -0
  149. package/dist/styles/glass-refract.css +2 -0
  150. package/dist/styles/glass.css +31 -1052
  151. package/dist/styles/hover-popover.css +2 -0
  152. package/dist/styles/index.css +24 -6
  153. package/dist/styles/instrument-chassis.css +4 -0
  154. package/dist/styles/theme.css +14 -14
  155. package/dist/styles/tokens/color-radius.css +250 -0
  156. package/dist/styles/tokens/dark-arm.css +194 -0
  157. package/dist/styles/tokens/glass.css +413 -0
  158. package/dist/styles/tokens/light-dark.css +158 -0
  159. package/dist/styles/tokens/offsets-sizing.css +406 -0
  160. package/dist/styles/tokens/property-regs.css +169 -0
  161. package/dist/styles/tokens/scale-paper.css +361 -0
  162. package/dist/styles/tokens/scheme-motion.css +334 -0
  163. package/dist/styles/tokens/shadow.css +132 -0
  164. package/dist/styles/tokens.css +22 -2269
  165. package/dist/styles/transitions.css +20 -2
  166. package/dist/styles/typography.css +18 -6
  167. package/dist/styles/utilities/a11y-overrides.css +140 -0
  168. package/dist/styles/utilities/animate.css +26 -0
  169. package/dist/styles/utilities/base.css +365 -0
  170. package/dist/styles/utilities/btn.css +399 -0
  171. package/dist/styles/utilities/components.css +317 -0
  172. package/dist/styles/utilities.css +19 -1170
  173. package/dist/switch.js +1 -1
  174. package/dist/tabs.js +98 -98
  175. package/dist/timeline.js +2 -2
  176. package/dist/toast.js +1 -1
  177. package/dist/toggle-group.js +1 -1
  178. package/dist/typewriter.js +1 -1
  179. package/dist/underline.d.ts +1 -0
  180. package/dist/underline.js +85 -0
  181. package/dist/{useAnimatedNumber-C5I3wWd8.js → useAnimatedNumber-DfVgP4te.js} +1 -1
  182. package/dist/{useConfiguratorState-DxAqksK6.js → useConfiguratorState-BdQXh9ie.js} +1 -1
  183. package/dist/useSpecularTracking-DFK_fhpG.js +32 -0
  184. package/dist/useSpringMount-DXUzxBjV.js +108 -0
  185. package/dist/watercolor-dot.js +2 -2
  186. package/package.json +62 -38
  187. package/src/styles/cards.css +2 -2
  188. package/src/styles/dock/layer-group.css +38 -4
  189. package/src/styles/dock/layers.css +11 -1
  190. package/src/styles/dock/morph.css +95 -19
  191. package/src/styles/dock/shell.css +12 -0
  192. package/src/styles/dock-controls.css +25 -12
  193. package/src/styles/drawer.css +12 -4
  194. package/src/styles/glass/a11y-fallback.css +245 -0
  195. package/src/styles/glass/ladder.css +304 -0
  196. package/src/styles/glass/material.css +238 -0
  197. package/src/styles/glass/progress-rail.css +78 -0
  198. package/src/styles/glass/squircle.css +66 -0
  199. package/src/styles/glass/surfaces.css +306 -0
  200. package/src/styles/glass.css +31 -1052
  201. package/src/styles/index.css +24 -6
  202. package/src/styles/theme.css +14 -14
  203. package/src/styles/tokens/color-radius.css +250 -0
  204. package/src/styles/tokens/dark-arm.css +194 -0
  205. package/src/styles/tokens/glass.css +413 -0
  206. package/src/styles/tokens/light-dark.css +158 -0
  207. package/src/styles/tokens/offsets-sizing.css +406 -0
  208. package/src/styles/tokens/property-regs.css +169 -0
  209. package/src/styles/tokens/scale-paper.css +361 -0
  210. package/src/styles/tokens/scheme-motion.css +334 -0
  211. package/src/styles/tokens/shadow.css +132 -0
  212. package/src/styles/tokens.css +22 -2269
  213. package/src/styles/transitions.css +20 -2
  214. package/src/styles/typography.css +18 -6
  215. package/src/styles/utilities/a11y-overrides.css +140 -0
  216. package/src/styles/utilities/animate.css +26 -0
  217. package/src/styles/utilities/base.css +365 -0
  218. package/src/styles/utilities/btn.css +399 -0
  219. package/src/styles/utilities/components.css +317 -0
  220. package/src/styles/utilities.css +19 -1170
  221. package/dist/DeckProgress-Dmk4_AKN.js +0 -23
  222. package/dist/InstrumentRail-CUJ05YVG.js +0 -44
  223. package/dist/components/custom/aurora/composables/gpuRuntime.d.ts +0 -16
  224. package/dist/components/custom/aurora/constants/shaders/aurora.wgsl.d.ts +0 -7
  225. package/dist/components/custom/deck-progress/DeckProgress.vue.d.ts +0 -27
  226. package/dist/components/custom/deck-progress/index.d.ts +0 -2
  227. package/dist/components/custom/dialog-native/GlassDialogNative.vue.d.ts +0 -57
  228. package/dist/components/custom/dialog-native/index.d.ts +0 -1
  229. package/dist/components/custom/glass-panel/GlassPanel.vue.d.ts +0 -41
  230. package/dist/components/custom/glass-panel/index.d.ts +0 -2
  231. package/dist/components/custom/header-ribbon/HeaderRibbon.vue.d.ts +0 -31
  232. package/dist/components/custom/header-ribbon/index.d.ts +0 -2
  233. package/dist/components/custom/header-ribbon/types.d.ts +0 -7
  234. package/dist/components/custom/instrument-rail/InstrumentRail.vue.d.ts +0 -91
  235. package/dist/components/custom/instrument-rail/index.d.ts +0 -2
  236. package/dist/composables/glass/createGPUCanvas.d.ts +0 -40
  237. package/dist/deck-progress.d.ts +0 -1
  238. package/dist/deck-progress.js +0 -2
  239. package/dist/dockContext-BKeIMmNk.js +0 -9
  240. package/dist/glass-panel.d.ts +0 -1
  241. package/dist/glass-panel.js +0 -44
  242. package/dist/header-ribbon.d.ts +0 -1
  243. package/dist/header-ribbon.js +0 -63
  244. package/dist/instrument-rail.d.ts +0 -1
  245. package/dist/instrument-rail.js +0 -2
  246. package/dist/useGlassRenderer-5I0YkI4t.js +0 -69
  247. package/dist/useSpecularTracking-BVRZsRHA.js +0 -26
  248. package/dist/useSpringMount-BJSHcLl3.js +0 -113
  249. /package/dist/{CollapsibleContent-CP9qF1v4.js → CollapsibleContent-Drow5WkV.js} +0 -0
  250. /package/dist/{DialogFooter-Gprw8H_A.js → DialogFooter-DufLHi0y.js} +0 -0
  251. /package/dist/{IconTooltip-yefK7cJc.js → IconTooltip-BrQ5p181.js} +0 -0
  252. /package/dist/{Input-DWQQIOC4.js → Input-B-F818RU.js} +0 -0
  253. /package/dist/{_plugin-vue_export-helper-ok8pgSl5.js → _plugin-vue_export-helper-DWghtRt7.js} +0 -0
  254. /package/dist/{constants-CS75AWHG.js → constants-C8NMonuo.js} +0 -0
  255. /package/dist/{presets-BKVyQfbt.js → presets-1OhFpaIC.js} +0 -0
  256. /package/dist/{prng-wHuHlNHE.js → prng-CjVgzjQT.js} +0 -0
  257. /package/dist/{resolveCanvasColor-BBiYfp8g.js → resolveCanvasColor-CRvVzOvP.js} +0 -0
  258. /package/dist/{useCanvas2D-ClrQuZtp.js → useCanvas2D-CSeH8h16.js} +0 -0
  259. /package/dist/{useGlobalDark-yhL4Wp-s.js → useGlobalDark-D7R9OypB.js} +0 -0
  260. /package/dist/{useIntersectionPause-Cc-H9ees.js → useIntersectionPause-DAdVPVp4.js} +0 -0
  261. /package/dist/{useInterval-Dsmqwi03.js → useInterval-D3USn0yc.js} +0 -0
  262. /package/dist/{useKeyboardShortcuts-Be3w_Rwk.js → useKeyboardShortcuts-i8tHd5WO.js} +0 -0
  263. /package/dist/{useScrollProgress-CAH8Ofwt.js → useScrollProgress-CcgmgMQt.js} +0 -0
  264. /package/dist/{useSortable-C8ReQ50P.js → useSortable-DnyGXKKY.js} +0 -0
  265. /package/dist/{useTextHighlight-DON84L8w.js → useTextHighlight-B3b10W6r.js} +0 -0
@@ -1,22 +1,25 @@
1
1
  /* Glass utilities — glassmorphism surface classes referencing --glass-* tokens
2
2
  *
3
- * ── No-glass-on-glass discipline (AV.W15 D5) ───────────────────────────────
4
- * Apple's Liquid Glass guidance: "glass is best reserved for the navigation
5
- * layer that floats above the content" — there is no glass-on-glass. glass-ui
6
- * adopts the same RUNG-PAIRING rule across three layer bands (the existing
7
- * z-index registry already encodes them, tokens.css §3 `--z-*`):
3
+ * ── No-PLATE-on-PLATE discipline (re-scoped under the glass-first default) ──
4
+ * Apple's Liquid Glass guidance reserves glass for the floating layers; glass-ui
5
+ * adopts the RUNG-PAIRING rule across three layer bands (the z-index registry
6
+ * already encodes them, tokens.css §3 `--z-*`):
8
7
  *
9
- * content (--z-background … --z-content) — the page substrate; NOT glass.
8
+ * content (--z-background … --z-content) — the page substrate.
10
9
  * navigation (--z-controls … --z-dock/panel) — the glass band (dock, panels,
11
10
  * floating chrome).
12
11
  * overlay (--z-overlay … --z-modal) — the glass band (dialog/sheet
13
12
  * over content).
14
13
  *
15
- * A glass surface nested INSIDE another glass surface is a discipline violation
16
- * — the inner surface should read as a FLAT tier (a `--card` / `--muted` fill),
17
- * not a second `.glass-*` plate (the blur stacks muddy, the rim doubles, the
18
- * read collapses). Reach for glass in the navigation/overlay bands only; inside
19
- * a glass panel, compose flat tiers.
14
+ * The discipline bans PLATE-in-PLATE: a second `.glass-*` PANEL nested inside a
15
+ * glass panel is a violation (the blur stacks muddy, the rim doubles, the read
16
+ * collapses) — the inner PANEL should read as a flat tier. But CONTROL-on-plate
17
+ * is SANCTIONED: under the glass-first maximal default, `btn-glass` (a real
18
+ * backdrop-filter control) inside `.glass-card` inside a glass Dialog is the
19
+ * COMMON composition. The depth-3 ceiling + `contain: paint` budget that keeps
20
+ * the nested blur cheap is gated by W-A11Y-PERF (the enforcement half); this
21
+ * header is the doc half. Bottom line: do not nest a glass PANEL inside a glass
22
+ * panel; a glass CONTROL on a glass plate is fine and budget-gated.
20
23
  *
21
24
  * ── iOS-spring-on-controls cross-ref (AV.W15 C/M cross-ref) ────────────────
22
25
  * The momentum-gated press squish (the control's "lift up on touch, quiet at
@@ -26,1046 +29,22 @@
26
29
  * (AV.W9, velocity continuity) and the slider arm (AV.W11); it is cross-
27
30
  * referenced here and authored there, not re-derived. See
28
31
  * `src/components/custom/dock/README.md` for the canonical discipline.
32
+ *
33
+ * ── Thin @import ROOT (cohesion-aware carve) ───────────────────────────────
34
+ * The glass rule body is carved into cohesive `glass/*.css` partials (each
35
+ * under the 500-line no-god-module bound), @import-ed below in CASCADE ORDER.
36
+ * The base ladder splits into three adjacent `@layer components` blocks
37
+ * (material · ladder · surfaces) — same layer, same source order, so the carve
38
+ * is isomorphic. The squircle `@supports` arm and the a11y `@media`/`@supports`
39
+ * overrides MUST stay AFTER the base ladder (they override it). See
40
+ * docs/precepts/design-idioms.md §cohesion-aware partials.
29
41
  */
30
42
 
31
- @layer components {
32
- /* ── The unified glass material (AW.W22) ──────────────────────────────
33
- ONE source for the three material atoms that AV.W15 scattered onto
34
- opt-in classes + single tiers:
35
- (a) the moving-specular `::before` catch-light (folded here from
36
- glass-specular-track.css — that file now keeps only the thin
37
- `.glass-specular-track` ALIAS + the brackets that point HERE),
38
- (b) the `--glass-edge-light` full-perimeter rim (moved off the
39
- floating-only block so EVERY rung carries it),
40
- (c) the pointer interaction-light hooks (the `--specular-*`
41
- `@property` channel mapped from the consumer's --mouse-x/--mouse-y
42
- write).
43
- The five ladder rungs + `.glass-card` + the `.dock-icon-button` CONTROL
44
- compose `.glass-material`, so a Switch thumb, a glass Button, a Dialog,
45
- and a Sheet all read as the SAME material without per-component wiring.
46
-
47
- The `.glass-dock` SHELL is OUT of this group BY DESIGN — it hand-rolls a
48
- parallel surface (its own `--glass-*-dock` family + a local rim + an
49
- instrument-strip `::before`) the dock arm owns; the dock's catch-light
50
- lives on its CONTROL (`.dock-icon-button`, listed below), not the shell.
51
-
52
- The selector GROUP is the single source. Adding a surface to the band
53
- material is one comma-entry here, not a new opt-in class string. */
54
- .glass-material,
55
- .glass-wash,
56
- .glass-quiet,
57
- .glass-resting,
58
- .glass-floating,
59
- .glass-overlay,
60
- .glass-card,
61
- .glass-specular-track,
62
- .dock-icon-button,
63
- .dock-tab-button,
64
- .dock-select-trigger,
65
- .dock-dropdown-trigger {
66
- position: relative;
67
- }
68
-
69
- /* (b) The rim — UNIFORM across all rungs (ONE `--glass-edge-light` token,
70
- not a per-rung family). The floating/overlay tiers previously wired it
71
- into their box-shadow stack; it now rides the material group as a
72
- dedicated `::after` inset ring so it composes alongside (not inside) each
73
- tier's own shadow recipe. The `::after` grain overlay already claims the
74
- five rungs' `::after`; the rim is folded INTO that same overlay's
75
- box-shadow below (the grain `::after` gets the rim inset ring) so no
76
- pseudo-element collides. */
77
-
78
- /* (a)+(c) The moving-specular `::before` catch-light — the iOS-26
79
- illuminate-from-within behaviour. A masked radial-gradient glow rides the
80
- surface at the pointer position (--mouse-x/--mouse-y → the typed
81
- --specular-* channel). Folded VERBATIM from glass-specular-track.css so
82
- there is exactly ONE specular source. */
83
- .glass-material::before,
84
- .glass-wash::before,
85
- .glass-quiet::before,
86
- .glass-resting::before,
87
- .glass-floating::before,
88
- .glass-overlay::before,
89
- .glass-card::before,
90
- .glass-specular-track::before,
91
- .dock-icon-button::before,
92
- .dock-tab-button::before,
93
- .dock-select-trigger::before,
94
- .dock-dropdown-trigger::before {
95
- content: "";
96
- position: absolute;
97
- inset: 0;
98
- border-radius: inherit;
99
- pointer-events: none;
100
- z-index: 1;
101
- /* Map the consumer's pointer write onto the typed properties, ON THE
102
- PSEUDO. The `--mouse-x/--mouse-y` write lands on the HOST (inline
103
- style) as UNREGISTERED props that inherit down to this `::before`;
104
- the registered `--specular-*` props are `inherits: false`, so the
105
- mapping is declared HERE where the pseudo owns its typed value. The
106
- `var(--mouse-x, 50%)` floor is the centred fallback. */
107
- --specular-x: var(--mouse-x, 50%);
108
- --specular-y: var(--mouse-y, 50%);
109
- /* The catch-light intensity at REST — reads the token cohort
110
- (tokens.css §specular-intensity), default 0 so a static, unwired
111
- surface is CLEAN and the @property `initial-value: 0` dormancy is no
112
- longer defeated by a floor. Hover/active lift it through the same
113
- cohort (the interaction-light state machine below). */
114
- --specular-intensity: var(--glass-specular-intensity-rest, 0);
115
- /* AX.W52 D19 — a thin, BOUNDED, pointer-anchored EDGE gleam (not the prior
116
- full-plate central disc that washed small tiles muddy). The geometry is an
117
- EXPLICIT-radius circle bounded by `--glass-specular-size` (36% of the
118
- plate) whose falloff reaches `/0` well INSIDE the plate (70%) — a tracked
119
- catch-light reading the surface near the lit edge, NEVER a whole-surface
120
- wash. The core is genuinely WARM-CREAM (L < 100% so the warm hue survives;
121
- the prior `hsl(40 30% 100%)` blew out to white). The `--specular-intensity`
122
- multiplier drives the layer `opacity`, NOT a per-stop alpha (a
123
- registered-`@property` var() nested in an hsl() alpha computes to 0 in
124
- Chromium — the cross-engine-safe path); the per-stop alphas are literals so
125
- even the lifted hover/active states read as a lens, not a flash. */
126
- background: radial-gradient(
127
- circle var(--glass-specular-size, 36%) at var(--specular-x, 50%) var(--specular-y, 50%),
128
- hsl(40 35% 92% / 0.5) 0%,
129
- hsl(40 35% 92% / 0) 70%,
130
- transparent 100%
131
- );
132
- opacity: var(--specular-intensity, 0);
133
- /* Clip the gleam to ITS OWN radius (not the whole plate) so it stays a
134
- bounded glint. `mask-image` Baseline 2023-12-07; a non-supporting engine
135
- ignores it and the `inset: 0` + radius-inherit + the in-paint falloff
136
- already bound the gleam to the surface. */
137
- mask-image: radial-gradient(
138
- circle var(--glass-specular-size, 36%) at var(--specular-x, 50%) var(--specular-y, 50%),
139
- black 0%,
140
- black 60%,
141
- transparent 100%
142
- );
143
- /* AX.W52 D19 — `plus-lighter` (additive but HDR-clamped, Safari 16.4+) over
144
- the prior `screen` (a non-linear lightener that lifted the whole tile
145
- toward white — the muddy-card defect). A non-supporting engine degrades to
146
- a plain low-alpha warm overlay (the gleam composes normally — no blend, no
147
- blowout), the no-workaround floor; NOT a `screen` fallback. */
148
- mix-blend-mode: plus-lighter;
149
- /* Smooth the position + intensity between pointer samples (the typed
150
- @property regs make the percentage stops interpolable). */
151
- transition:
152
- --specular-x var(--duration-fast, 150ms) var(--ease-standard, ease-out),
153
- --specular-y var(--duration-fast, 150ms) var(--ease-standard, ease-out),
154
- opacity var(--duration-normal, 240ms) var(--ease-standard, ease-out);
155
- }
156
-
157
- .dark .glass-material::before,
158
- .dark .glass-wash::before,
159
- .dark .glass-quiet::before,
160
- .dark .glass-resting::before,
161
- .dark .glass-floating::before,
162
- .dark .glass-overlay::before,
163
- .dark .glass-card::before,
164
- .dark .glass-specular-track::before,
165
- .dark .dock-icon-button::before,
166
- .dark .dock-tab-button::before,
167
- .dark .dock-select-trigger::before,
168
- .dark .dock-dropdown-trigger::before {
169
- /* Softer over the deep canvas — `plus-lighter` still lifts on dark, so the
170
- `.dark` cohort runs a lower hover/active rung (tokens.css §specular-
171
- intensity `.dark` arm); the rest rung is already 0 so the dark arm only
172
- softens hover/active via the cohort. The rest rung re-reads the (dark)
173
- token here so a dark `:root` override resolves. */
174
- --specular-intensity: var(--glass-specular-intensity-rest, 0);
175
- }
176
-
177
- /* (c) Interaction-light lockstep — hover/active lift the intensity in the
178
- SAME rungs the scale-press squish keys off, so material-light fires in
179
- lockstep with the press across every glass surface. Settles back on leave
180
- via the opacity transition above. */
181
- .glass-material:hover::before,
182
- .glass-wash:hover::before,
183
- .glass-quiet:hover::before,
184
- .glass-resting:hover::before,
185
- .glass-floating:hover::before,
186
- .glass-overlay:hover::before,
187
- .glass-card:hover::before,
188
- .glass-specular-track:hover::before,
189
- .dock-icon-button:hover::before,
190
- .dock-tab-button:hover::before,
191
- .dock-select-trigger:hover::before,
192
- .dock-dropdown-trigger:hover::before {
193
- --specular-intensity: var(--glass-specular-intensity-hover, 0.1);
194
- }
195
- .glass-material:active::before,
196
- .glass-wash:active::before,
197
- .glass-quiet:active::before,
198
- .glass-resting:active::before,
199
- .glass-floating:active::before,
200
- .glass-overlay:active::before,
201
- .glass-card:active::before,
202
- .glass-specular-track:active::before,
203
- .dock-icon-button:active::before,
204
- .dock-tab-button:active::before,
205
- .dock-select-trigger:active::before,
206
- .dock-dropdown-trigger:active::before {
207
- --specular-intensity: var(--glass-specular-intensity-active, 0.16);
208
- }
209
-
210
- /* AX.W45-TUNE C5 — the SELECTED dock control reads as the keyframes-dock glass
211
- register: a glass-tier active fill (`--dock-control-active-bg` → the floating
212
- plate, tokens.css) WITH the specular gleam waking over it, not a flat ink
213
- stamp. The CSS `:active` pseudo above only fires on press-down; a SELECTED tile
214
- (`.is-active` / `[aria-pressed]` / `[aria-expanded]` / `[aria-current]`) holds
215
- the gleam lit so the selected element reads as a lit glass tier the substrate
216
- shows through (the model the user named, `pass-3:13`). Family-scoped addition
217
- on the dock-control `::before`, line-disjoint from the shared recipe above. */
218
- .dock-icon-button:is(.is-active, .active, [aria-pressed="true"], [aria-expanded="true"], [aria-current="page"])::before,
219
- .dock-tab-button:is(.is-active, .active, [aria-pressed="true"], [aria-expanded="true"], [aria-current="page"])::before,
220
- .dock-select-trigger:is(.is-active, .active, [aria-pressed="true"], [aria-expanded="true"], [aria-current="page"])::before,
221
- .dock-dropdown-trigger:is(.is-active, .active, [aria-pressed="true"], [aria-expanded="true"], [aria-current="page"])::before {
222
- --specular-intensity: var(--glass-specular-intensity-active, 0.16);
223
- }
224
-
225
- /* ── Five-tier surface ladder (v0.8.0; visual only, no geometry) ──
226
- Tier semantics, alpha-monotonic per R3-spec §A:
227
- wash ~0.30α + light blur (was `subtle`)
228
- quiet ~0.50α + medium blur (the missing rung)
229
- resting ~0.65α + canonical blur (was `default`; the speedtest plate)
230
- floating ~0.80α + heavier blur (was `elevated`)
231
- overlay ~0.95α + heaviest blur (NEW; modal-over-modal) */
232
-
233
- /* The five-rung surface ladder declares the unprefixed
234
- `backdrop-filter` only. Lightning CSS / autoprefixer in the
235
- consumer's pipeline emits the `-webkit-` legacy form when
236
- browserslist targets demand it. Authoring both forms manually
237
- caused Lightning CSS in Tailwind v4 to dedup-and-keep-prefixed,
238
- which modern Chromium then dropped from the CSSOM (the prefixed
239
- alias is parser-rejected post-Chrome 113). Single-source-of-truth
240
- authorship lets the build pipeline deliver the right matrix. */
241
- /* AW.W23 — every rung's background composes the adaptive-tint recipe
242
- (`color-mix(in oklab, <rung bg>, var(--glass-tint-source) var(--glass-tint-
243
- strength))`). With the default `--glass-tint-strength: 0%` the mix is a
244
- no-op = byte-identical to the un-tinted rung; a consumer biases the surface
245
- toward a sampled backdrop hue by setting `--glass-tint-source` + a
246
- strength ≤30%. oklab is the mwg-preferred tint space (NEVER an
247
- `oklch(from …)` lightness-shift — browsers don't gamut-map yet). */
248
- .glass-wash {
249
- position: relative;
250
- background: color-mix(in oklab, var(--glass-bg-wash), var(--glass-tint-source) var(--glass-tint-strength));
251
- backdrop-filter: var(--glass-blur-wash);
252
- border: 1px solid var(--glass-border-wash);
253
- box-shadow: var(--glass-material-rim), var(--glass-shadow-wash);
254
- }
255
-
256
- /* AL-W10 SLIM under-shadow wiring (tokens.css §AL-W10 SLIM —
257
- UNDER-SHADOW recipe rungs). Each tier composes its canonical
258
- iOS Liquid Glass under-shadow (a 0.5px dark hairline along the
259
- bottom edge reading as glass thickness) as a NON-INSET layer
260
- PREPENDED to the existing `--glass-shadow-*` recipe — the under-
261
- shadow lays the floor; the existing shadow stack lays the lift.
262
- quiet → `--glass-under-shadow-quiet` (0 2px 8px -1px α0.04)
263
- resting → `--glass-under-shadow-default` (0 4px 16px -2px α0.08)
264
- floating→ `--glass-under-shadow-vivid` (0 8px 32px -4px α0.12)
265
- `.glass-wash` is sub-perceptual; `.glass-overlay` is modal-heavy
266
- — neither composes an under-shadow rung (Y4/Y6/Y7 SLIM retention).
267
- Spine tier wires its own rung at instrument-chassis.css. */
268
- .glass-quiet {
269
- position: relative;
270
- background: color-mix(in oklab, var(--glass-bg-quiet), var(--glass-tint-source) var(--glass-tint-strength));
271
- backdrop-filter: var(--glass-blur-quiet);
272
- border: 1px solid var(--glass-border-quiet);
273
- box-shadow:
274
- var(--glass-material-rim),
275
- var(--glass-under-shadow-quiet),
276
- var(--glass-shadow-quiet);
277
- }
278
-
279
- .glass-resting {
280
- position: relative;
281
- background: color-mix(in oklab, var(--glass-bg-resting), var(--glass-tint-source) var(--glass-tint-strength));
282
- backdrop-filter: var(--glass-blur-resting);
283
- border: 1px solid var(--glass-border-resting);
284
- box-shadow:
285
- var(--glass-material-rim),
286
- var(--glass-under-shadow-default),
287
- var(--glass-shadow-resting);
288
- }
289
-
290
- /* AV.W15 M3 / AW.W22 — the floating tier carries the full-perimeter rim (the
291
- catch-light that "defines the silhouette", WWDC25 sess. 219). The rim now
292
- comes from the unified `--glass-material-rim` (= `--glass-edge-light`) so
293
- it shares ONE source with the rest of the ladder; it rides INSIDE the
294
- box-shadow stack so it composes with the under-shadow floor + the lift. */
295
- .glass-floating {
296
- position: relative;
297
- background: color-mix(in oklab, var(--glass-bg-floating), var(--glass-tint-source) var(--glass-tint-strength));
298
- backdrop-filter: var(--glass-blur-floating);
299
- border: 1px solid var(--glass-border-floating);
300
- box-shadow:
301
- var(--glass-material-rim),
302
- var(--glass-under-shadow-vivid),
303
- var(--glass-shadow-floating);
304
- }
305
-
306
- .glass-overlay {
307
- position: relative;
308
- background: color-mix(in oklab, var(--glass-bg-overlay), var(--glass-tint-source) var(--glass-tint-strength));
309
- backdrop-filter: var(--glass-blur-overlay);
310
- border: 1px solid var(--glass-border-overlay);
311
- box-shadow: var(--glass-material-rim), var(--glass-shadow-overlay);
312
- }
313
-
314
- /* ── Adaptive legibility: the bright-backdrop bucket (AX.W55 — the iOS-26/27
315
- "locally darken the glass over light content" move; G2) ──────────────────
316
- When a consumer sets `--glass-backdrop: light` on any ancestor (a near-white
317
- card surface, a pale aurora bleed, a bright data grid), the `@container
318
- style()` read engages here and LIFTS the tint toward ink: `--glass-tint-
319
- strength` climbs from the `0%` rest default to the bounded AA floor
320
- (`--glass-tint-strength-aa`, ≤24% — translucent floor preserved) and `--glass-
321
- tint-source` re-points from `var(--card)` to the warm-ink `--glass-tint-ink`.
322
- Both are INHERITING custom properties the rungs' `background:` composite
323
- already reads, so re-pointing them on the material group re-resolves the
324
- EXISTING `color-mix(in oklab, <rung bg>, …)` toward ink — ZERO new compositing
325
- seam, the literal darken-over-light recipe. The `.glass-*::before` specular
326
- `plus-lighter` gleam (W52) is untouched (it composes ON the darkened plate;
327
- the darkening is the orthogonal oklab-tint axis). No `@supports` wrapper:
328
- style queries introduce no new `container-type` value (every element is a
329
- style container by default), so an engine without style-query support parses
330
- the unknown at-rule as invalid, drops the block, and keeps the zero-delta
331
- glass (the graceful degradation — the surface is today's-glass, the pre-W55
332
- state; see utilities.css §density for the same precedent). */
333
- @container style(--glass-backdrop: light) {
334
- .glass-material,
335
- .glass-wash,
336
- .glass-quiet,
337
- .glass-resting,
338
- .glass-floating,
339
- .glass-overlay,
340
- .glass-card {
341
- --glass-tint-source: var(--glass-tint-ink);
342
- --glass-tint-strength: var(--glass-tint-strength-aa);
343
- }
344
- }
345
-
346
- /* AX.W55 — the `contrast-color()` foreground-ink flip (Chrome 147+/Safari 26+).
347
- A PROGRESSIVE-ENHANCEMENT layer, NEVER the load-bearing floor (Open-Q #5
348
- ratified): the declarative bucket above already carries AA on ALL engines (it
349
- darkens the translucent plate so dark text clears ~11:1 over white at the 18%
350
- floor — the live π readback ratifies). On a supporting engine `contrast-color()`
351
- REFINES the foreground-ink pick natively, anchored on the LIGHT BACKDROP signal
352
- (`--card`, the warm-white surface base the bright bucket implies) — NOT on the
353
- ink. `contrast-color(var(--card))` over the light backdrop resolves to the
354
- maximally-legible DARK ink (anchoring on the dark ink instead would invert to
355
- white, illegible on the still-light translucent plate). The bucket is the floor;
356
- this is the native refinement. Scoped to the bright bucket. */
357
- @supports (color: contrast-color(white)) {
358
- @container style(--glass-backdrop: light) {
359
- .glass-material,
360
- .glass-wash,
361
- .glass-quiet,
362
- .glass-resting,
363
- .glass-floating,
364
- .glass-overlay,
365
- .glass-card {
366
- color: contrast-color(var(--card));
367
- }
368
- }
369
- }
370
-
371
- /* ── The opaque escape (AX.W54) ───────────────────
372
- The level-0 endpoint of the SAME glass machinery — a solid `--card` plate
373
- (the opacity seam → 1) with `blur(0)` (the blur seam → 0), routed through
374
- the ONE `--glass-level` knob. NOT a parallel solid `background:` recipe:
375
- a `.glass-*` surface that ALSO carries `.glass-opaque` keeps its glass edge,
376
- rim, and under-shadow (a solid plate with a glass edge, not a bare div), and
377
- the @supports fallback + the a11y brackets compose coherently. This is the
378
- explicit opt-out from the MAXIMAL glass default (dense data, forced-colors,
379
- a consumer that wants a flat surface). */
380
- .glass-opaque {
381
- --glass-level: 0;
382
- }
383
-
384
- /* ── Content-aware under-shadow modifier (AV.W15 M4) ──────────────
385
- Apple raises the under-shadow over text (so the glass reads as
386
- lifting OFF the text) and drops it over solid light. The modifier
387
- is ATTRIBUTE-DRIVEN, no JS: a consumer adds `.glass-over-text`
388
- (or `[data-over-content="text"]`) to a text-bearing glass surface to
389
- swap it ONE under-shadow rung heavier, or `[data-over-content="solid"]`
390
- to lighten it one rung over a solid-light backdrop. It reuses the
391
- existing `--glass-under-shadow-{quiet,default,vivid}` rungs (no new
392
- shadow value — `vivid` is sufficient over text), redefining only the
393
- leading under-shadow layer per tier; the lift stack is untouched.
394
-
395
- The selectors are per-tier so the swap is rung-correct
396
- (quiet→default, resting→vivid). `.glass-floating` already sits at the
397
- `vivid` ceiling over text, so the heavier variant is a no-op there
398
- (the rung saturates) — documented, not an error. */
399
- .glass-quiet.glass-over-text,
400
- .glass-quiet[data-over-content="text"] {
401
- box-shadow: var(--glass-under-shadow-default), var(--glass-shadow-quiet);
402
- }
403
- .glass-resting.glass-over-text,
404
- .glass-resting[data-over-content="text"] {
405
- box-shadow: var(--glass-under-shadow-vivid), var(--glass-shadow-resting);
406
- }
407
-
408
- /* The inverse — over a solid-light backdrop the under-shadow lightens
409
- one rung (the glass need not lift as hard off a flat bright field). */
410
- .glass-resting[data-over-content="solid"] {
411
- box-shadow: var(--glass-under-shadow-quiet), var(--glass-shadow-resting);
412
- }
413
- .glass-floating[data-over-content="solid"] {
414
- box-shadow:
415
- var(--glass-material-rim),
416
- var(--glass-under-shadow-default),
417
- var(--glass-shadow-floating);
418
- }
419
-
420
- /* Grain noise overlay — reuses paper texture SVG, no extra assets */
421
- .glass-wash::after,
422
- .glass-quiet::after,
423
- .glass-resting::after,
424
- .glass-floating::after,
425
- .glass-overlay::after {
426
- content: '';
427
- position: absolute;
428
- inset: 0;
429
- border-radius: inherit;
430
- background: var(--paper-clean-texture);
431
- background-repeat: repeat;
432
- background-size: var(--paper-texture-size);
433
- opacity: var(--glass-grain-opacity);
434
- pointer-events: none;
435
- mix-blend-mode: overlay;
436
- }
437
-
438
- /* (b) The unified rim — `--glass-edge-light` full-perimeter inset ring on
439
- EVERY material surface (AW.W22). Previously the rim was wired only into
440
- the floating/overlay tiers' box-shadow stack; promoting it to the material
441
- group makes wash/quiet/resting/card/dock-control all carry the same
442
- silhouette catch-light from ONE token. The rim is its OWN `box-shadow`
443
- declaration on the material group so it composes uniformly without
444
- perturbing each tier's elevation recipe (the floating/overlay tiers drop
445
- their now-redundant inline `--glass-edge-light` layer below). The alpha is
446
- deliberately low so the rim never eats AA legibility over a busy
447
- backdrop. */
448
- .glass-material,
449
- .glass-wash,
450
- .glass-quiet,
451
- .glass-resting,
452
- .glass-floating,
453
- .glass-overlay,
454
- .glass-card,
455
- .glass-specular-track,
456
- .dock-icon-button {
457
- --glass-material-rim: var(--glass-edge-light);
458
- }
459
-
460
- .dark .glass-wash::after,
461
- .dark .glass-quiet::after,
462
- .dark .glass-resting::after,
463
- .dark .glass-floating::after,
464
- .dark .glass-overlay::after {
465
- mix-blend-mode: soft-light;
466
- }
467
-
468
- /* ── Convenience shorthands (tier + shape) ── */
469
-
470
- /* Static surface utility — no hover lift, no transition.
471
- Interactive cards live in <Card> (which owns its own hover composition)
472
- or in components that explicitly opt into a hover variant. */
473
- .glass-card {
474
- /* Focus-elevation rungs (AQ.W3 §W3.1a) — identity = at-rest paint; the
475
- `:has(:focus-visible)` rule redefines them (one source, shared with
476
- the fallback). */
477
- --card-focus-shadow: var(--shadow-card);
478
- --card-focus-border: var(--glass-border-quiet);
479
- position: relative;
480
- background: color-mix(in oklab, var(--glass-bg-quiet), var(--glass-tint-source) var(--glass-tint-strength));
481
- backdrop-filter: var(--glass-blur-quiet);
482
- border: 1px solid var(--card-focus-border);
483
- border-radius: var(--radius-card);
484
- box-shadow: var(--glass-material-rim), var(--card-focus-shadow);
485
- contain: layout style;
486
- transition:
487
- box-shadow var(--duration-fast) var(--ease-standard),
488
- border-color var(--duration-fast) var(--ease-standard);
489
- }
490
-
491
- /* Elevate one rung on descendant KEYBOARD focus (`:focus-visible`, not
492
- pointer). Scoped to `.glass-card`. `:has()` Baseline Widely; the
493
- `@supports not selector(:has(*))` class fallback (below) ships anyway
494
- (focus-elevation is UX-critical — child-state-styling MANDATORY clause). */
495
- .glass-card:has(:focus-visible) {
496
- --card-focus-shadow: var(--shadow-md);
497
- --card-focus-border: var(--glass-border-floating);
498
- }
499
-
500
- /* ── Glassmorphic circular icon button ── */
501
-
502
- .glass-btn {
503
- @apply flex items-center justify-center cursor-pointer;
504
-
505
- /* Individual-transform identity base (AQ.W3 §W3.2) — `scale: 1` at rest
506
- mints the stacking context once so the hover/press scale below does
507
- not flicker it into being (the z-index/anchor hazard). */
508
- scale: 1;
509
- width: var(--size-icon-btn);
510
- height: var(--size-icon-btn);
511
- border-radius: var(--radius-pill);
512
- border: 1.5px solid var(--glass-border-wash);
513
- background: var(--glass-bg-wash);
514
- backdrop-filter: var(--glass-blur-wash);
515
- color: var(--muted-foreground);
516
- /* AX.W52 §6 doctrine — the surface legs ride the bezier `--ease-standard`;
517
- the `scale` leg is reconciled onto `--spring-smooth` (was `--spring-snappy`)
518
- so the icon-button hover settles on the SAME ONE register as `.btn-pill` /
519
- `.tap-squish` / `btn-interactive` (the gate asserts one scale register
520
- across all four). The press still reads crisp — `--spring-smooth` ζ=0.86
521
- settles fast without a visible bounce. */
522
- transition:
523
- background var(--duration-fast) var(--ease-standard),
524
- border-color var(--duration-fast) var(--ease-standard),
525
- color var(--duration-fast) var(--ease-standard),
526
- scale var(--duration-normal) var(--spring-smooth);
527
- }
528
-
529
- .glass-btn:hover:not(:disabled) {
530
- background: color-mix(in srgb, var(--background) 85%, transparent);
531
- border-color: var(--surface-tint-22);
532
- color: var(--foreground);
533
- scale: var(--scale-hover);
534
- }
535
-
536
- .glass-btn:active:not(:disabled) {
537
- scale: var(--scale-press);
538
- }
539
-
540
- .glass-btn:focus-visible {
541
- outline: none;
542
- box-shadow: var(--focus-ring-shadow);
543
- }
544
-
545
- .glass-btn:disabled {
546
- opacity: 0.35;
547
- cursor: not-allowed;
548
- pointer-events: none;
549
- }
550
-
551
- .glass-btn.is-active,
552
- .glass-btn[aria-pressed="true"] {
553
- background: var(--surface-tint-10);
554
- border-color: var(--surface-tint-25);
555
- color: var(--foreground);
556
- }
557
-
558
- /* ── Pill button base ─────────────────────────── */
559
- .btn-pill {
560
- @apply inline-flex items-center justify-center cursor-pointer font-medium border-none;
561
-
562
- /* AX.W52 §6 identity base — `scale: 1` at rest so the hover/press scale
563
- below animates the `scale` longhand (not `transform`) coherently and
564
- does not flicker the stacking context into being (AQ.W3 §W3.2). */
565
- scale: 1;
566
- /* AX.W51 D18 — the pill GEOMETRY rides the ONE `--ui-scale` comfort axis.
567
- gap / padding scale by the master scalar; the font reads the
568
- `--control-text` register (`calc(--type-small * --ui-scale)`, the same
569
- `text-sm` register the Button CVA paints), so a bare `.btn-pill` consumer
570
- and a `<Button>` agree on the control font, and ONE `--ui-scale` override
571
- grows the pill's height (via padding) + gap + font in lockstep. Desktop
572
- default is the identity (scale 1 → the prior proportion). */
573
- gap: calc(0.375rem * var(--ui-scale));
574
- border-radius: var(--radius-pill);
575
- padding: calc(0.5rem * var(--ui-scale)) calc(1rem * var(--ui-scale));
576
- font-size: var(--control-text);
577
- /* AX.W52 — the ONE coherent button transition (RED witness 5/6). The
578
- SURFACE legs (bg/border/box-shadow/color/opacity) ride the bezier
579
- `--ease-standard` (a colour cross-fade reads as a wobble on a spring);
580
- the TRANSFORM leg (`scale`) rides `--spring-smooth` (the sub-perceptual
581
- settle), so the hover lift + the surface cross-fade read as ONE glide.
582
- The DEAD `transform` leg is retired — the variants animate the `scale`
583
- longhand. CRITICAL: `.tap-squish` (composed alongside on the button
584
- base, utilities.css) ALSO lists this full coherent set, so neither
585
- class's `transition` shorthand can clobber the other down to a
586
- scale-only animation — the cascade bug that left every button
587
- transitioning ONLY `scale` (the live-readback RED, RED witness 5). The
588
- doctrine: surface-props→bezier, transform→spring (tokens.css §2). */
589
- transition:
590
- background-color var(--duration-fast) var(--ease-standard),
591
- border-color var(--duration-fast) var(--ease-standard),
592
- box-shadow var(--duration-fast) var(--ease-standard),
593
- color var(--duration-fast) var(--ease-standard),
594
- opacity var(--duration-fast) var(--ease-standard),
595
- scale var(--duration-fast) var(--spring-smooth);
596
- }
597
-
598
- .btn-pill > * {
599
- @apply flex-shrink-0;
600
- }
601
-
602
-
603
- .btn-pill:disabled {
604
- opacity: var(--opacity-disabled);
605
- cursor: not-allowed;
606
- pointer-events: none;
607
- }
608
-
609
- /* ── Glass-button backdrop ─────────────────────────────────────────────
610
- AX.W52 — the `glass`/`glass-wash` Button variants compose `.glass-wash`,
611
- which resolves `--glass-blur-wash` = `blur(1px)` — a sub-perceptual
612
- diffusion authored for a small detail TILE, not a button the user reads
613
- as "glass" (the live readback found the glass variants at a negligible
614
- 1px). A hero control wants a real glass blur. `.btn-glass` re-points the
615
- backdrop at `--glass-blur-btn` (the `quiet`-tier 10px radius + the gentle
616
- `saturate(1.05) brightness(1.02)` light-concentration), so the glass
617
- button variants actually read as liquid glass while the wash TILE tier
618
- keeps its 1px untouched. Declares the UNPREFIXED `backdrop-filter` ONLY —
619
- Lightning CSS emits the `-webkit-` companion per the single-source
620
- authorship discipline above (hand-authoring both forms makes Lightning
621
- dedup-and-keep-prefixed, which modern Chromium then drops). */
622
- .btn-glass {
623
- backdrop-filter: var(--glass-blur-btn);
624
- }
625
-
626
- /* ── Pill input ───────────────────────────────── */
627
- .input-pill {
628
- @apply flex w-full;
629
-
630
- /* AX.W51 D18 — the input pill rides the ONE `--ui-scale` comfort axis: the
631
- height reads the `--control-h-md` cohort (`max(calc(2.5rem * --ui-scale),
632
- --control-floor)`, the h-10 register with the WCAG-44px coarse clamp), the
633
- font reads `--control-text`, the inline padding scales — so ONE override
634
- grows the field's height + padding + font in lockstep. Desktop default is
635
- the identity. */
636
- height: var(--control-h-md);
637
- border-radius: var(--radius-pill);
638
- /* AW.W13 — the resting field edge reads as an enclosed control at rest
639
- (~15%α — ~2× the prior 8% glass-wash floor that vanished on cream). The
640
- `:focus-visible` accent ring + the `:user-invalid`/`[aria-invalid]`
641
- destructive ring below still win by order + specificity.
642
- AX.W54 — moved off the srgb `--surface-tint-15` fork onto the glass
643
- border seam (`--glass-border-floating`, the matching 15%α rung) so the
644
- pill is ONE glass model with the rest of the ladder, not a divergent
645
- tint axis. */
646
- border: 1.5px solid var(--glass-border-floating);
647
- background: var(--glass-bg-quiet);
648
- /* AX.W54 — the pill reads as REAL glass: the quiet-tier 10px blur (the
649
- same `--glass-blur-quiet` its `--glass-bg-quiet` background pairs with),
650
- not the sub-perceptual `blur(1px)` wash it carried — and the
651
- `--glass-level` knob now clarifies it in lockstep with every surface. */
652
- backdrop-filter: var(--glass-blur-quiet);
653
- padding: 0 calc(1rem * var(--ui-scale));
654
- font-size: var(--control-text);
655
- color: var(--foreground);
656
- transition:
657
- background-color var(--duration-fast) var(--ease-standard),
658
- border-color var(--duration-fast) var(--ease-standard),
659
- box-shadow var(--duration-fast) var(--ease-standard),
660
- color var(--duration-fast) var(--ease-standard),
661
- opacity var(--duration-fast) var(--ease-standard);
662
- }
663
-
664
- .input-pill::placeholder {
665
- color: var(--surface-tint-35);
666
- }
667
-
668
- /* AQ.W4 §W4.6 — keyboard-focus ring only. Was bare `:focus` (showed the
669
- accent ring on a mouse click); `:focus-visible` matches the
670
- `.focus-ring` / `.glass-btn` / dock-control discipline. Ordered BEFORE
671
- the `:user-invalid` rungs so an invalid focused field shows destructive,
672
- not accent (the `:user-invalid:focus-visible` rule below wins by order +
673
- specificity). `:focus-visible` Baseline Widely — no fallback. */
674
- .input-pill:focus-visible {
675
- outline: none;
676
- border-color: var(--color-accent-opaque, var(--ring));
677
- box-shadow: 0 0 0 2px var(--color-accent, color-mix(in srgb, var(--ring) 30%, transparent));
678
- }
679
-
680
- /* AQ.W4 §W4.1 — validity vocabulary on `.input-pill` (Input + Textarea).
681
- The forgiving `:where(:user-invalid, .user-invalid-fallback,
682
- [aria-invalid="true"])` group is ONE rule covering THREE trigger surfaces:
683
- native constraint-validation (`:user-invalid`), the `useUserInvalidAria`
684
- fallback class for engines without `:user-invalid` (css §3.2; NOT a
685
- live+dead alias — the class is the SOLE fallback), AND (AW.W18) the
686
- imperative `[aria-invalid="true"]` attribute. The `[aria-invalid]` arm
687
- serves APP-DRIVEN validity — a custom key match, an async server check —
688
- where there is no native constraint to trip `:user-invalid`, so the app
689
- sets the ARIA attribute and the library's own ring paints with no
690
- `:deep()` re-paint at the consumer. The destructive/success tints reuse
691
- the semantic tokens via `color-mix` per the house pattern (W2). Non-color
692
- reinforcement is the error TEXT (W4.5 `error` slot) + the `required`
693
- asterisk — the border/bg shift is the supplementary cue, never the sole
694
- one. `:user-valid` is intentionally subtle (border only, no bg fill) so
695
- a long valid form is not a wall of green. */
696
- .input-pill:where(:user-invalid, .user-invalid-fallback, [aria-invalid="true"]) {
697
- border-color: var(--destructive);
698
- background: color-mix(in srgb, var(--destructive) 8%, var(--glass-bg-quiet));
699
- }
700
- .input-pill:where(:user-valid, .user-valid-fallback) {
701
- border-color: var(--success);
702
- }
703
- /* Invalid + keyboard-focused → destructive ring (overrides the accent
704
- `:focus-visible` ring above by order + the extra invalid compound). The
705
- `[aria-invalid]` arm rides the same widened group so an app-driven
706
- invalid field shows the destructive ring on focus too. */
707
- .input-pill:where(:user-invalid, .user-invalid-fallback, [aria-invalid="true"]):focus-visible {
708
- border-color: var(--destructive);
709
- box-shadow: 0 0 0 var(--focus-ring-width)
710
- color-mix(in srgb, var(--destructive) 35%, transparent);
711
- }
712
-
713
- /* AQ.W4 §W4.3 — `field-sizing: content` autosize (opt-in via the Textarea
714
- `autosize` prop → `[data-autosize]`). The textarea grows vertically with
715
- content between a 3-line floor and a token-driven ceiling, then scrolls.
716
- `field-sizing` Baseline Newly (Chromium 2024) — on a non-supporting
717
- engine the declaration is ignored and the element keeps the
718
- `min/max-block-size` bounds + standard scroll (no JS, no `@supports`,
719
- no grid-mirror polyfill). The fixed-size path (default, `min-h-20`) is
720
- the unchanged no-op fallback. */
721
- .input-pill[data-autosize] {
722
- field-sizing: content;
723
- width: 100%;
724
- min-block-size: 3lh;
725
- max-block-size: var(--textarea-autosize-max, 12lh);
726
- resize: vertical;
727
- }
728
-
729
- .input-pill:disabled {
730
- opacity: 0.5;
731
- cursor: not-allowed;
732
- }
733
-
734
- /* AW.W13 — the Select trigger mirrors the input pill's resting border lift.
735
- The reka-ui SelectTrigger renders `role="combobox"` over the `.glass-wash`
736
- surface; its 8%α `--glass-border-wash` field edge vanished on cream just
737
- like the input pill, so the same `--surface-tint-15` lift makes the
738
- trigger read as an enclosed control at rest. Scoped to the combobox role
739
- so the lift reaches ONLY the Select trigger, not every `.glass-wash`
740
- surface. */
741
- .glass-wash[role="combobox"] {
742
- border-color: var(--surface-tint-15);
743
- }
744
-
745
- /* ── AW.W23 — chromatic edge dispersion (the polished-glass rim fringe) ──
746
- An opt-in `.glass-chromatic` composes the warm/cool oklab fringe OVER the
747
- W22 uniform rim (it does NOT replace it — the rim still rides each rung's
748
- box-shadow). The fringe is a transparency garnish, so it composes ONLY
749
- under `prefers-reduced-transparency: no-preference` and drops under
750
- `reduce` (handled by the bracket below). The fringe lands as a dedicated
751
- inset box-shadow pair on the material surface so it adds onto the rim. */
752
- @media (prefers-reduced-transparency: no-preference) {
753
- .glass-chromatic {
754
- box-shadow: var(--glass-edge-dispersion), var(--glass-material-rim);
755
- }
756
- }
757
- }
758
-
759
- /* ── Deck-position rail (AW.W16 · AX.W24) ───────────────────────────────────
760
- A Tailwind `@utility` that RESTYLES the shipped `<Progress variant="default">`
761
- (the reka-ui ProgressRoot track + its indicator child) into the thin
762
- bottom-of-deck position rail. It composes the EXISTING fill — it does NOT
763
- re-author a second track/range mechanic. Every visual axis is a
764
- `--progress-rail-*` token, so a consumer/dark-flip re-tints with zero library
765
- edit (`:root { --progress-rail-fill: … }`). The viewport-pinned chrome
766
- (`position: fixed`, `env(safe-area-inset-bottom)`, the z-index) is CONSUMER-
767
- supplied — this recipe owns only the LOOK.
768
-
769
- AX.W24 — WHY `@utility`, not `@layer components`. The rail RESTYLES the default
770
- Progress: it must override the `h-4` height + `rounded-pill` radius utilities the
771
- variant bakes. Those utilities live in `@layer utilities`, which ALWAYS outranks
772
- `@layer components` regardless of source order, so the prior `@layer components`
773
- recipe's `height: 3px` was a silent no-op (the rail painted as a 16px bar). An
774
- `@utility` lands the recipe IN `@layer utilities` alongside `h-4`, where a single-
775
- class selector wins the geometry by source order — the idiomatic Tailwind-v4 way
776
- to author a restyle-class that out-ranks base utilities (the `btn-audacious` /
777
- `cartoon-surface` pattern).
778
-
779
- The COLOUR fix is the SEPARATE token-read-at-source path (NOT a layer-juggle):
780
- `ProgressDefault` reads `--progress-fill`/`--progress-track` and dropped its
781
- `bg-secondary`/`bg-primary` utilities, so this recipe FEEDS those tokens rather
782
- than fighting a utility colour. The `--progress-fill` set on the rail root cascades
783
- to the indicator child (a CSS custom property inherits), so the indicator reads the
784
- override hue. */
785
- @utility glass-progress-rail {
786
- /* The track hairline + zero radius — the rail reads as a thin square sliver, not
787
- the variant's 16px `rounded-pill` bar. A single-class @utility ties `h-4`/
788
- `rounded-pill` on SPECIFICITY (both 0,1,0) and Tailwind's utility sort can emit
789
- `h-4` later, so the bare tie loses. The doubled-class self-reference (`&&` →
790
- `.glass-progress-rail.glass-progress-rail`, specificity 0,2,0) wins the geometry
791
- DETERMINISTICALLY over the base utilities regardless of emit order — the precise,
792
- contained way to out-rank a base utility without `!important`. */
793
- && {
794
- height: var(--progress-rail-h, 3px);
795
- border-radius: 0;
796
- }
797
- /* Feed the token-read default variant — these route the consumer's
798
- `--progress-rail-*` axes into the `--progress-fill`/`--progress-track` tokens
799
- the variant reads at source (the cascade-correct colour path). */
800
- --progress-track: var(
801
- --progress-rail-track,
802
- color-mix(in srgb, var(--foreground) 8%, transparent)
803
- );
804
- --progress-fill: var(--progress-rail-fill, var(--primary));
805
-
806
- /* The fill — the shipped ProgressIndicator child. The indicator paints the
807
- inherited `--progress-fill`; the leading-edge glow is re-authored (AX.W24 F2)
808
- as a TRAILING right-edge INSET box-shadow that lives INSIDE the indicator's
809
- own box. The prior `4px 0 8px` OUTSET rightward shadow extended PAST the fill
810
- boundary into the ProgressRoot's load-bearing `overflow-hidden` clip and was
811
- eaten — invisible at every value. An `inset` shadow offset leftward
812
- (`inset -Npx 0 …`) brightens just inside the indicator's right (leading) edge
813
- — the moving position head — and never crosses the fill boundary, so the clip
814
- cannot eat it (the clip is never lifted; that would re-break the default
815
- Progress look for every other consumer). `box-shadow` is a separate property
816
- from `background`, so it composes cleanly over the token-read fill. */
817
- && > * {
818
- border-radius: 0;
819
- box-shadow:
820
- inset
821
- calc(-1 * var(--progress-rail-glow-x, 4px))
822
- 0
823
- var(--progress-rail-glow-blur, 8px)
824
- calc(-1 * var(--progress-rail-glow-spread, 2px))
825
- color-mix(
826
- in srgb,
827
- hsl(0 0% 100%) var(--progress-rail-glow-strength, 55%),
828
- transparent
829
- );
830
- }
831
- }
832
-
833
- /* ── AX.W56 — the rounded-vs-squircle POLICY (re-homes AW.W23's squircle) ─────
834
- Cards, glass buttons, and pills stay ROUND. The earlier AW.W23 block applied
835
- `corner-shape: squircle` to `.glass-card`/`.glass-btn`/`.btn-pill`, which
836
- inverted the design intent — the superellipse is imperceptible at a 16px card
837
- radius or a stadium pill, so the squircle on those surfaces was visual cost
838
- without read. The squircle is RE-HOMED onto the one surface where it reads: the
839
- big-dock card shell (`dock.css` → `var(--corner-shape-bigdock)` under
840
- `@supports (corner-shape: superellipse(2))`). This is a clean break — no alias,
841
- no `--corner-shape-card` decl here (it resolves `round`, the default, so a
842
- `corner-shape` rule would be a no-op). The `--corner-shape-*` token axis lives
843
- in `theme.css`; a consumer who WANTS a squircle card opts in by re-pointing
844
- `--corner-shape-card` at `superellipse(var(--corner-k-squircle))`. Do NOT
845
- re-add a squircle rule to the card/button/pill surfaces — they are round by
846
- policy. */
847
-
848
- /* ── AX.W56(R1) — squircle coupling onto the overlay-band glass surfaces ───────
849
- W54 makes GLASS the default for the Dialog + Sheet content surfaces; W56 couples
850
- the SQUIRCLE onto them too. Both ride `.glass-floating` at the large
851
- `--radius-dialog` (16px) modal radius where the superellipse READS — the same
852
- iOS-26 idiom the big-dock card shell carries. The compound selectors scope the
853
- shape to the dialog/sheet content ONLY (the `.rounded-dialog` class the
854
- DialogContent surface composes, the `.sheet-animate` class the SheetContent
855
- surface composes via `sheetVariants`) so it never leaks onto a bare
856
- `.glass-floating` panel. Mirrors the big-dock idiom EXACTLY: an `@supports`-
857
- gated ENHANCEMENT (Chrome 139+, no FF/Safari 2026) over the `border-radius`
858
- round CONTRACT — the squircle is the better tier, NOT a degraded fallback. The
859
- shape is the tokenized `var(--corner-shape-{dialog,sheet})` (theme.css) so it is
860
- as overridable as the radius; a consumer dials either back to round by
861
- re-pointing the alias. The `@supports` condition tests the LITERAL
862
- `superellipse(2)` (a `var()` is not evaluable in an `@supports` query) — the same
863
- Chrome-139 feature the token resolves to. */
864
- @layer components {
865
- @supports (corner-shape: superellipse(2)) {
866
- .glass-floating.rounded-dialog {
867
- corner-shape: var(--corner-shape-dialog);
868
- }
869
- .glass-floating.sheet-animate {
870
- corner-shape: var(--corner-shape-sheet);
871
- }
872
- }
873
- }
874
-
875
- /* ── Accessibility: reduced transparency ──────────
876
- AX.W54 — the gestalt collapse: ONE `--glass-level: 0` replaces the ten per-rung
877
- opacity+blur clobbers. The level-0 path resolves solid `--card` + `blur(0)`
878
- through the SAME machinery (the opacity seam → 1, the blur seam → 0), so every
879
- glass surface — current and future — flattens with no per-rung enumeration. The
880
- grain + highlight kills stay (they sit off the level axis). */
881
- @media (prefers-reduced-transparency: reduce) {
882
- :root {
883
- --glass-level: 0;
884
- --glass-grain-opacity: 0;
885
- --glass-highlight: 0 0 0 0 transparent;
886
- }
887
- }
888
-
889
- /* ── Accessibility: high contrast ─────────────────
890
- AX.W54 — a single bounded `--glass-level: 0.3` (mostly-solid, not fully flat)
891
- replaces the five per-rung opacity clobbers: every rung firms up toward solid
892
- for AA while keeping a hint of the glass register. ONE knob, every rung.
893
-
894
- AX.W55 — the Clear↔Tinted user-escape (Apple's iOS-26.2 analog) COORDINATES the
895
- two axes here: the OPACITY axis rides W54's `--glass-level` (firm up toward solid)
896
- AND the TINT axis biases toward ink — `--glass-tint-source` → the warm-ink +
897
- `--glass-tint-strength` → the AA floor, the same darken the automatic bright
898
- bucket applies, now reached by the explicit "more contrast" user request. The two
899
- axes stay DISTINCT (level = opacity+blur, tint = darken) but share the bracket so
900
- a high-contrast user gets BOTH a firmer plate and the ink-tint legibility lift —
901
- one coordinated escape, not two parallel forks. */
902
- @media (prefers-contrast: more) {
903
- :root {
904
- --glass-level: 0.3;
905
- --glass-tint-source: var(--glass-tint-ink);
906
- --glass-tint-strength: var(--glass-tint-strength-aa);
907
- }
908
- }
909
-
910
- /* ── Accessibility: forced-colors (Windows High Contrast) glass-language skin ──
911
- AX.W36 — when the OS forces a palette (Windows High Contrast), the platform
912
- strips the whole decorative glass register: `backdrop-filter` is dropped, the
913
- `--glass-*` inset/box-shadow rungs vanish, and every meaning-bearing chroma
914
- flattens to one system color. A `.glass-floating` Dialog over a `.glass-resting`
915
- Card would read as two borderless transparent rectangles with no edge, and a
916
- green-vs-red StatusDot would resolve to one indistinguishable dot. This skin
917
- restores the STRUCTURE the glass chrome encoded — it does NOT pin glass-ui's
918
- brand colours (no `forced-color-adjust: none`); the chrome is decorative and
919
- YIELDS to the user's forced palette (css forced-colors guidance). Only the
920
- standard WHC system keywords are used (`Canvas`/`CanvasText`/`Highlight`) — no
921
- glass-ui token leaks into the WHC arm.
922
-
923
- COORDINATES WITH W54 — the same `--glass-level: 0` opaque escape the reduced-
924
- transparency / high-contrast brackets ride. Setting the ONE clarity knob to 0
925
- collapses the `--glass-bg-*` opacity recipe to solid `--card` + `blur(0)` through
926
- the SAME machinery (no parallel solid recipe), so the platform sees opaque plates
927
- it maps to `Canvas`. The grain + highlight kills match the reduce bracket (they
928
- sit off the level axis). The W55 tint axis is moot under WHC (the user's palette
929
- supersedes the ink-darken) but harmless — the opaque plate is system-painted. */
930
- @media (forced-colors: active) {
931
- :root {
932
- --glass-level: 0;
933
- --glass-grain-opacity: 0;
934
- --glass-highlight: 0 0 0 0 transparent;
935
- }
936
-
937
- /* Every glass-material ladder rung relied on `backdrop-filter` + an inset
938
- `box-shadow` rim for its silhouette — both gone under WHC. Restore a real
939
- `border` keyed to the system text colour so each tier pane reads as a boxed
940
- region. The selector group MIRRORS the ladder definition above (one source,
941
- not a hand-rolled re-list) so a future rung added to the material group
942
- inherits the WHC edge for free — and a `.glass-material` div that became one
943
- via the GlassPanel retire gets the edge with no per-component arm. */
944
- .glass-material,
945
- .glass-wash,
946
- .glass-quiet,
947
- .glass-resting,
948
- .glass-floating,
949
- .glass-overlay,
950
- .glass-card {
951
- border: 1px solid CanvasText;
952
- }
953
-
954
- /* The floating + overlay rungs (Dialog / Sheet / Popover / DropdownMenu /
955
- HoverCard compose them) get the canonical `Canvas` fill so the modal reads as
956
- a DISTINCT boxed region OVER the page, not a transparent overlap — the
957
- hierarchy survives. The `CanvasText` edge above already draws the box; this
958
- opaque fill separates the floating layer from the content beneath it. */
959
- .glass-floating,
960
- .glass-overlay {
961
- background: Canvas;
962
- }
963
-
964
- /* The decorative specular catch-light (`::before`) + grain overlay (`::after`)
965
- paint nothing meaningful once chroma collapses — yield them entirely (the
966
- same decorative-chrome cede the `--glass-level: 0` opaque escape performs on
967
- the body). They are NOT part of the structure the skin restores. */
968
- .glass-material::before,
969
- .glass-wash::before,
970
- .glass-quiet::before,
971
- .glass-resting::before,
972
- .glass-floating::before,
973
- .glass-overlay::before,
974
- .glass-card::before,
975
- .glass-wash::after,
976
- .glass-quiet::after,
977
- .glass-resting::after,
978
- .glass-floating::after,
979
- .glass-overlay::after {
980
- display: none;
981
- }
982
-
983
- /* Meaning-bearing hue identity → a bordered glyph that keeps ok/warn/error
984
- distinguishable by a WHC-HONORED system color, NOT a glass-ui hue (which WHC
985
- strips to one fill). StatusDot reflects its variant onto `data-status`
986
- (StatusDot.vue) and the inner dot carries `.status-dot__dot`; the
987
- `role="img"` + `aria-label` accessible name already ships, so this is the
988
- VISUAL differentiation only. A bare bordered dot + the per-status fill triplet
989
- below means a sighted WHC user can still tell the row apart.
990
-
991
- `!important` IS load-bearing here: StatusDot paints the dot fill via an INLINE
992
- `:style="dotStyle"` (`background-color`, specificity 1,0,0,0), which outranks
993
- any stylesheet selector AND which forced-colors then `forced-color-adjust:
994
- auto`-remaps to a single Canvas-white — collapsing the row to one indistinct
995
- dot. The WHC arm must override that inline fill, and inline can only be beaten
996
- by `!important`; this is the documented forced-colors degradation path (the
997
- arm only activates under WHC). The component keeps its inline hue in normal
998
- mode untouched. */
999
- .status-dot__dot {
1000
- border: 1px solid CanvasText;
1001
- /* The bordered ring alone separates a dot from its surround; the per-status
1002
- fill below adds the WHC-honored distinction. */
1003
- }
1004
- /* The inner painted fill (`.status-dot__fill`, `h-full w-full`) + the pulse ring
1005
- carry the SAME inline glass-ui hue StatusDot paints — under WHC they cover the
1006
- outer `.status-dot__dot` glyph with a `forced-color-adjust`-remapped Canvas
1007
- fill (the row collapses to one white dot even with the outer system color set).
1008
- Yield them so the outer bordered + system-color glyph is the sole visible dot. */
1009
- .status-dot__fill,
1010
- .status-dot__pulse {
1011
- display: none;
1012
- }
1013
- /* The ok/warn/error/idle distinction rides the standard WHC keyword palette:
1014
- active (ok) → Highlight (the affirmative system accent)
1015
- paused (warn) → Mark (the marked/attention system color)
1016
- error → CanvasText (a solid filled dot — the strongest weight)
1017
- idle/custom → Canvas (a hollow dot — only the CanvasText ring reads)
1018
- Each stays distinguishable by the system color the user's palette assigns,
1019
- never glass-ui chroma. The `!important` beats the component's inline fill. */
1020
- .status-dot__dot[data-status="active"] {
1021
- background: Highlight !important;
1022
- }
1023
- .status-dot__dot[data-status="paused"] {
1024
- background: Mark !important;
1025
- }
1026
- .status-dot__dot[data-status="error"] {
1027
- background: CanvasText !important;
1028
- }
1029
- .status-dot__dot[data-status="idle"],
1030
- .status-dot__dot[data-status="custom"] {
1031
- background: Canvas !important;
1032
- }
1033
- }
1034
-
1035
- /* ── @supports fallbacks for non-backdrop-filter browsers ── */
1036
- @layer components {
1037
- @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
1038
- .glass-wash {
1039
- background: color-mix(in srgb, var(--card) 80%, transparent);
1040
- }
1041
- .glass-quiet {
1042
- background: color-mix(in srgb, var(--card) 88%, transparent);
1043
- }
1044
- .glass-resting {
1045
- background: color-mix(in srgb, var(--card) 94%, transparent);
1046
- }
1047
- .glass-floating {
1048
- background: color-mix(in srgb, var(--card) 98%, transparent);
1049
- }
1050
- .glass-overlay {
1051
- background: var(--card);
1052
- }
1053
- .glass-btn {
1054
- background: color-mix(in srgb, var(--background) 92%, transparent);
1055
- }
1056
- }
1057
- }
1058
-
1059
- /* ── :has() focus-elevation fallback (AQ.W3 §W3.1a) ──────────────────────
1060
- SOLE fallback for engines without `:has()`. `.is-focus-within` is toggled
1061
- by a ≤6-LOC focusin/focusout guard in `Card.vue` that runs ONLY when
1062
- `!CSS.supports('selector(:has(*))')` (modern engines run zero JS). The
1063
- class redefines the SAME `--card-focus-*` rungs as the `:has()` rule, so the
1064
- override values have one source. NOT a live+dead alias — `:has()` is the
1065
- enhancement, this the documented degradation path. */
1066
- @supports not selector(:has(*)) {
1067
- .glass-card.is-focus-within {
1068
- --card-focus-shadow: var(--shadow-md);
1069
- --card-focus-border: var(--glass-border-floating);
1070
- }
1071
- }
43
+ /* CSS @import rules must precede every other rule. The six partials @import in
44
+ cascade order: */
45
+ @import "./glass/material.css";
46
+ @import "./glass/ladder.css";
47
+ @import "./glass/surfaces.css";
48
+ @import "./glass/progress-rail.css";
49
+ @import "./glass/squircle.css";
50
+ @import "./glass/a11y-fallback.css";