@helixds/react 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/AGENTS.md +292 -0
  2. package/LICENSE +21 -0
  3. package/README.md +49 -2
  4. package/dist/components/Accordion/Accordion.d.ts +14 -0
  5. package/dist/components/Accordion/Accordion.doc.d.ts +4 -0
  6. package/dist/components/Accordion/Accordion.doc.js +27 -0
  7. package/dist/components/Accordion/Accordion.js +76 -0
  8. package/dist/components/Accordion/Accordion.types.d.ts +24 -0
  9. package/dist/components/Accordion/Accordion.types.js +2 -0
  10. package/dist/components/Accordion/index.d.ts +9 -0
  11. package/dist/components/Accordion/index.js +2 -0
  12. package/dist/components/Avatar/Avatar.d.ts +14 -0
  13. package/dist/components/Avatar/Avatar.doc.d.ts +4 -0
  14. package/dist/components/Avatar/Avatar.doc.js +34 -0
  15. package/dist/components/Avatar/Avatar.js +14 -0
  16. package/dist/components/Avatar/Avatar.types.d.ts +20 -0
  17. package/dist/components/Avatar/Avatar.types.js +2 -0
  18. package/dist/components/Avatar/index.d.ts +9 -0
  19. package/dist/components/Avatar/index.js +2 -0
  20. package/dist/components/AvatarGroup/AvatarGroup.d.ts +14 -0
  21. package/dist/components/AvatarGroup/AvatarGroup.doc.d.ts +4 -0
  22. package/dist/components/AvatarGroup/AvatarGroup.doc.js +30 -0
  23. package/dist/components/AvatarGroup/AvatarGroup.js +15 -0
  24. package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +21 -0
  25. package/dist/components/AvatarGroup/AvatarGroup.types.js +2 -0
  26. package/dist/components/AvatarGroup/index.d.ts +9 -0
  27. package/dist/components/AvatarGroup/index.js +2 -0
  28. package/dist/components/Badge/Badge.d.ts +16 -0
  29. package/dist/components/Badge/Badge.doc.d.ts +4 -0
  30. package/dist/components/Badge/Badge.doc.js +69 -0
  31. package/dist/components/Badge/Badge.js +23 -0
  32. package/dist/components/Badge/Badge.types.d.ts +22 -0
  33. package/dist/components/Badge/Badge.types.js +2 -0
  34. package/dist/components/Badge/index.d.ts +9 -0
  35. package/dist/components/Badge/index.js +2 -0
  36. package/dist/components/Button/Button.d.ts +11 -0
  37. package/dist/components/Button/Button.doc.d.ts +4 -0
  38. package/dist/components/Button/Button.doc.js +98 -0
  39. package/dist/components/Button/Button.js +80 -0
  40. package/dist/components/Button/Button.types.d.ts +29 -0
  41. package/dist/components/Button/Button.types.js +2 -0
  42. package/dist/components/Button/index.d.ts +9 -0
  43. package/dist/components/Button/index.js +2 -0
  44. package/dist/components/Card/Card.d.ts +14 -0
  45. package/dist/components/Card/Card.doc.d.ts +4 -0
  46. package/dist/components/Card/Card.doc.js +44 -0
  47. package/dist/components/Card/Card.js +9 -0
  48. package/dist/components/Card/Card.types.d.ts +19 -0
  49. package/dist/components/Card/Card.types.js +2 -0
  50. package/dist/components/Card/index.d.ts +9 -0
  51. package/dist/components/Card/index.js +2 -0
  52. package/dist/components/Chart/Chart.d.ts +14 -0
  53. package/dist/components/Chart/Chart.doc.d.ts +4 -0
  54. package/dist/components/Chart/Chart.doc.js +49 -0
  55. package/dist/components/Chart/Chart.js +184 -0
  56. package/dist/components/Chart/Chart.types.d.ts +21 -0
  57. package/dist/components/Chart/Chart.types.js +2 -0
  58. package/dist/components/Chart/index.d.ts +9 -0
  59. package/dist/components/Chart/index.js +2 -0
  60. package/dist/components/Checkbox/Checkbox.d.ts +12 -0
  61. package/dist/components/Checkbox/Checkbox.doc.d.ts +4 -0
  62. package/dist/components/Checkbox/Checkbox.doc.js +54 -0
  63. package/dist/components/Checkbox/Checkbox.js +23 -0
  64. package/dist/components/Checkbox/Checkbox.types.d.ts +22 -0
  65. package/dist/components/Checkbox/Checkbox.types.js +2 -0
  66. package/dist/components/Checkbox/index.d.ts +9 -0
  67. package/dist/components/Checkbox/index.js +2 -0
  68. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +13 -0
  69. package/dist/components/CheckboxGroup/CheckboxGroup.doc.d.ts +4 -0
  70. package/dist/components/CheckboxGroup/CheckboxGroup.doc.js +56 -0
  71. package/dist/components/CheckboxGroup/CheckboxGroup.js +27 -0
  72. package/dist/components/CheckboxGroup/CheckboxGroup.types.d.ts +28 -0
  73. package/dist/components/CheckboxGroup/CheckboxGroup.types.js +2 -0
  74. package/dist/components/CheckboxGroup/index.d.ts +9 -0
  75. package/dist/components/CheckboxGroup/index.js +2 -0
  76. package/dist/components/Chip/Chip.d.ts +11 -0
  77. package/dist/components/Chip/Chip.doc.d.ts +4 -0
  78. package/dist/components/Chip/Chip.doc.js +105 -0
  79. package/dist/components/Chip/Chip.js +30 -0
  80. package/dist/components/Chip/Chip.types.d.ts +31 -0
  81. package/dist/components/Chip/Chip.types.js +2 -0
  82. package/dist/components/Chip/index.d.ts +9 -0
  83. package/dist/components/Chip/index.js +2 -0
  84. package/dist/components/ChipGroup/ChipGroup.d.ts +12 -0
  85. package/dist/components/ChipGroup/ChipGroup.doc.d.ts +4 -0
  86. package/dist/components/ChipGroup/ChipGroup.doc.js +31 -0
  87. package/dist/components/ChipGroup/ChipGroup.js +9 -0
  88. package/dist/components/ChipGroup/ChipGroup.types.d.ts +27 -0
  89. package/dist/components/ChipGroup/ChipGroup.types.js +2 -0
  90. package/dist/components/ChipGroup/index.d.ts +9 -0
  91. package/dist/components/ChipGroup/index.js +2 -0
  92. package/dist/components/FAB/FAB.d.ts +11 -0
  93. package/dist/components/FAB/FAB.doc.d.ts +4 -0
  94. package/dist/components/FAB/FAB.doc.js +52 -0
  95. package/dist/components/FAB/FAB.js +133 -0
  96. package/dist/components/FAB/FAB.types.d.ts +37 -0
  97. package/dist/components/FAB/FAB.types.js +2 -0
  98. package/dist/components/FAB/index.d.ts +9 -0
  99. package/dist/components/FAB/index.js +2 -0
  100. package/dist/components/Icon/Icon.d.ts +14 -0
  101. package/dist/components/Icon/Icon.doc.d.ts +4 -0
  102. package/dist/components/Icon/Icon.doc.js +38 -0
  103. package/dist/components/Icon/Icon.js +15 -0
  104. package/dist/components/Icon/Icon.types.d.ts +47 -0
  105. package/dist/components/Icon/Icon.types.js +2 -0
  106. package/dist/components/Icon/createIconAdapter.d.ts +24 -0
  107. package/dist/components/Icon/createIconAdapter.js +28 -0
  108. package/dist/components/Icon/iconStroke.d.ts +20 -0
  109. package/dist/components/Icon/iconStroke.js +54 -0
  110. package/dist/components/Icon/index.d.ts +12 -0
  111. package/dist/components/Icon/index.js +4 -0
  112. package/dist/components/IconButton/IconButton.d.ts +11 -0
  113. package/dist/components/IconButton/IconButton.doc.d.ts +4 -0
  114. package/dist/components/IconButton/IconButton.doc.js +76 -0
  115. package/dist/components/IconButton/IconButton.js +20 -0
  116. package/dist/components/IconButton/IconButton.types.d.ts +25 -0
  117. package/dist/components/IconButton/IconButton.types.js +2 -0
  118. package/dist/components/IconButton/index.d.ts +9 -0
  119. package/dist/components/IconButton/index.js +2 -0
  120. package/dist/components/Input/Input.d.ts +11 -0
  121. package/dist/components/Input/Input.doc.d.ts +4 -0
  122. package/dist/components/Input/Input.doc.js +68 -0
  123. package/dist/components/Input/Input.js +48 -0
  124. package/dist/components/Input/Input.types.d.ts +36 -0
  125. package/dist/components/Input/Input.types.js +2 -0
  126. package/dist/components/Input/index.d.ts +9 -0
  127. package/dist/components/Input/index.js +2 -0
  128. package/dist/components/Menu/Menu.d.ts +14 -0
  129. package/dist/components/Menu/Menu.doc.d.ts +4 -0
  130. package/dist/components/Menu/Menu.doc.js +46 -0
  131. package/dist/components/Menu/Menu.js +105 -0
  132. package/dist/components/Menu/Menu.types.d.ts +34 -0
  133. package/dist/components/Menu/Menu.types.js +2 -0
  134. package/dist/components/Menu/index.d.ts +9 -0
  135. package/dist/components/Menu/index.js +2 -0
  136. package/dist/components/Modal/Modal.d.ts +14 -0
  137. package/dist/components/Modal/Modal.doc.d.ts +4 -0
  138. package/dist/components/Modal/Modal.doc.js +52 -0
  139. package/dist/components/Modal/Modal.js +30 -0
  140. package/dist/components/Modal/Modal.types.d.ts +36 -0
  141. package/dist/components/Modal/Modal.types.js +2 -0
  142. package/dist/components/Modal/index.d.ts +9 -0
  143. package/dist/components/Modal/index.js +2 -0
  144. package/dist/components/MultiSelect/MultiSelect.d.ts +17 -0
  145. package/dist/components/MultiSelect/MultiSelect.doc.d.ts +4 -0
  146. package/dist/components/MultiSelect/MultiSelect.doc.js +37 -0
  147. package/dist/components/MultiSelect/MultiSelect.js +165 -0
  148. package/dist/components/MultiSelect/MultiSelect.types.d.ts +50 -0
  149. package/dist/components/MultiSelect/MultiSelect.types.js +2 -0
  150. package/dist/components/MultiSelect/index.d.ts +9 -0
  151. package/dist/components/MultiSelect/index.js +2 -0
  152. package/dist/components/NavItem/NavItem.d.ts +14 -0
  153. package/dist/components/NavItem/NavItem.doc.d.ts +4 -0
  154. package/dist/components/NavItem/NavItem.doc.js +31 -0
  155. package/dist/components/NavItem/NavItem.js +21 -0
  156. package/dist/components/NavItem/NavItem.types.d.ts +20 -0
  157. package/dist/components/NavItem/NavItem.types.js +2 -0
  158. package/dist/components/NavItem/index.d.ts +9 -0
  159. package/dist/components/NavItem/index.js +2 -0
  160. package/dist/components/RadioButton/RadioButton.d.ts +14 -0
  161. package/dist/components/RadioButton/RadioButton.doc.d.ts +4 -0
  162. package/dist/components/RadioButton/RadioButton.doc.js +35 -0
  163. package/dist/components/RadioButton/RadioButton.js +15 -0
  164. package/dist/components/RadioButton/RadioButton.types.d.ts +33 -0
  165. package/dist/components/RadioButton/RadioButton.types.js +2 -0
  166. package/dist/components/RadioButton/index.d.ts +9 -0
  167. package/dist/components/RadioButton/index.js +2 -0
  168. package/dist/components/RadioGroup/RadioGroup.d.ts +12 -0
  169. package/dist/components/RadioGroup/RadioGroup.doc.d.ts +4 -0
  170. package/dist/components/RadioGroup/RadioGroup.doc.js +80 -0
  171. package/dist/components/RadioGroup/RadioGroup.js +19 -0
  172. package/dist/components/RadioGroup/RadioGroup.types.d.ts +28 -0
  173. package/dist/components/RadioGroup/RadioGroup.types.js +2 -0
  174. package/dist/components/RadioGroup/index.d.ts +9 -0
  175. package/dist/components/RadioGroup/index.js +2 -0
  176. package/dist/components/SegmentedControl/SegmentedControl.d.ts +13 -0
  177. package/dist/components/SegmentedControl/SegmentedControl.doc.d.ts +4 -0
  178. package/dist/components/SegmentedControl/SegmentedControl.doc.js +50 -0
  179. package/dist/components/SegmentedControl/SegmentedControl.js +64 -0
  180. package/dist/components/SegmentedControl/SegmentedControl.types.d.ts +26 -0
  181. package/dist/components/SegmentedControl/SegmentedControl.types.js +2 -0
  182. package/dist/components/SegmentedControl/index.d.ts +9 -0
  183. package/dist/components/SegmentedControl/index.js +2 -0
  184. package/dist/components/Select/Select.d.ts +13 -0
  185. package/dist/components/Select/Select.doc.d.ts +4 -0
  186. package/dist/components/Select/Select.doc.js +66 -0
  187. package/dist/components/Select/Select.js +138 -0
  188. package/dist/components/Select/Select.types.d.ts +36 -0
  189. package/dist/components/Select/Select.types.js +2 -0
  190. package/dist/components/Select/index.d.ts +9 -0
  191. package/dist/components/Select/index.js +2 -0
  192. package/dist/components/SidePanel/SidePanel.d.ts +14 -0
  193. package/dist/components/SidePanel/SidePanel.doc.d.ts +4 -0
  194. package/dist/components/SidePanel/SidePanel.doc.js +29 -0
  195. package/dist/components/SidePanel/SidePanel.js +19 -0
  196. package/dist/components/SidePanel/SidePanel.types.d.ts +28 -0
  197. package/dist/components/SidePanel/SidePanel.types.js +2 -0
  198. package/dist/components/SidePanel/index.d.ts +9 -0
  199. package/dist/components/SidePanel/index.js +2 -0
  200. package/dist/components/Switch/Switch.d.ts +13 -0
  201. package/dist/components/Switch/Switch.doc.d.ts +4 -0
  202. package/dist/components/Switch/Switch.doc.js +56 -0
  203. package/dist/components/Switch/Switch.js +45 -0
  204. package/dist/components/Switch/Switch.types.d.ts +21 -0
  205. package/dist/components/Switch/Switch.types.js +2 -0
  206. package/dist/components/Switch/index.d.ts +9 -0
  207. package/dist/components/Switch/index.js +2 -0
  208. package/dist/components/Table/Table.d.ts +34 -0
  209. package/dist/components/Table/Table.doc.d.ts +4 -0
  210. package/dist/components/Table/Table.doc.js +48 -0
  211. package/dist/components/Table/Table.js +17 -0
  212. package/dist/components/Table/Table.types.d.ts +30 -0
  213. package/dist/components/Table/Table.types.js +2 -0
  214. package/dist/components/Table/index.d.ts +9 -0
  215. package/dist/components/Table/index.js +2 -0
  216. package/dist/components/Textarea/Textarea.d.ts +9 -0
  217. package/dist/components/Textarea/Textarea.doc.d.ts +4 -0
  218. package/dist/components/Textarea/Textarea.doc.js +60 -0
  219. package/dist/components/Textarea/Textarea.js +24 -0
  220. package/dist/components/Textarea/Textarea.types.d.ts +22 -0
  221. package/dist/components/Textarea/Textarea.types.js +2 -0
  222. package/dist/components/Textarea/index.d.ts +9 -0
  223. package/dist/components/Textarea/index.js +2 -0
  224. package/dist/components/Toast/Toast.d.ts +16 -0
  225. package/dist/components/Toast/Toast.doc.d.ts +4 -0
  226. package/dist/components/Toast/Toast.doc.js +37 -0
  227. package/dist/components/Toast/Toast.js +134 -0
  228. package/dist/components/Toast/Toast.types.d.ts +11 -0
  229. package/dist/components/Toast/Toast.types.js +2 -0
  230. package/dist/components/Toast/index.d.ts +10 -0
  231. package/dist/components/Toast/index.js +2 -0
  232. package/dist/components/Toast/toastStore.d.ts +36 -0
  233. package/dist/components/Toast/toastStore.js +57 -0
  234. package/dist/components/Tooltip/Tooltip.d.ts +14 -0
  235. package/dist/components/Tooltip/Tooltip.doc.d.ts +4 -0
  236. package/dist/components/Tooltip/Tooltip.doc.js +33 -0
  237. package/dist/components/Tooltip/Tooltip.js +105 -0
  238. package/dist/components/Tooltip/Tooltip.types.d.ts +21 -0
  239. package/dist/components/Tooltip/Tooltip.types.js +2 -0
  240. package/dist/components/Tooltip/index.d.ts +9 -0
  241. package/dist/components/Tooltip/index.js +2 -0
  242. package/dist/contracts/Accordion.json +174 -0
  243. package/dist/contracts/AppShell.json +118 -0
  244. package/dist/contracts/Avatar.json +157 -0
  245. package/dist/contracts/AvatarGroup.json +169 -0
  246. package/dist/contracts/Badge.json +212 -0
  247. package/dist/contracts/Button.json +295 -0
  248. package/dist/contracts/Card.json +125 -0
  249. package/dist/contracts/Chart.json +167 -0
  250. package/dist/contracts/Checkbox.json +333 -0
  251. package/dist/contracts/CheckboxGroup.json +200 -0
  252. package/dist/contracts/Chip.json +320 -0
  253. package/dist/contracts/ChipGroup.json +182 -0
  254. package/dist/contracts/FAB.json +215 -0
  255. package/dist/contracts/Icon.json +306 -0
  256. package/dist/contracts/IconButton.json +213 -0
  257. package/dist/contracts/Input.json +400 -0
  258. package/dist/contracts/Menu.json +197 -0
  259. package/dist/contracts/Modal.json +192 -0
  260. package/dist/contracts/MultiSelect.json +244 -0
  261. package/dist/contracts/NavItem.json +148 -0
  262. package/dist/contracts/PageHeader.json +134 -0
  263. package/dist/contracts/RadioButton.json +202 -0
  264. package/dist/contracts/RadioGroup.json +228 -0
  265. package/dist/contracts/SegmentedControl.json +193 -0
  266. package/dist/contracts/Select.json +241 -0
  267. package/dist/contracts/SideNav.json +138 -0
  268. package/dist/contracts/SidePanel.json +153 -0
  269. package/dist/contracts/Switch.json +201 -0
  270. package/dist/contracts/Table.json +130 -0
  271. package/dist/contracts/Textarea.json +353 -0
  272. package/dist/contracts/Toast.json +186 -0
  273. package/dist/contracts/Tooltip.json +168 -0
  274. package/dist/contracts/TopBar.json +127 -0
  275. package/dist/contracts/manifest.json +675 -0
  276. package/dist/index.d.ts +109 -0
  277. package/dist/index.js +73 -0
  278. package/dist/layout/AppShell/AppShell.d.ts +14 -0
  279. package/dist/layout/AppShell/AppShell.doc.d.ts +4 -0
  280. package/dist/layout/AppShell/AppShell.doc.js +27 -0
  281. package/dist/layout/AppShell/AppShell.js +9 -0
  282. package/dist/layout/AppShell/AppShell.types.d.ts +18 -0
  283. package/dist/layout/AppShell/AppShell.types.js +2 -0
  284. package/dist/layout/AppShell/index.d.ts +9 -0
  285. package/dist/layout/AppShell/index.js +2 -0
  286. package/dist/layout/PageHeader/PageHeader.d.ts +14 -0
  287. package/dist/layout/PageHeader/PageHeader.doc.d.ts +4 -0
  288. package/dist/layout/PageHeader/PageHeader.doc.js +30 -0
  289. package/dist/layout/PageHeader/PageHeader.js +10 -0
  290. package/dist/layout/PageHeader/PageHeader.types.d.ts +21 -0
  291. package/dist/layout/PageHeader/PageHeader.types.js +2 -0
  292. package/dist/layout/PageHeader/index.d.ts +9 -0
  293. package/dist/layout/PageHeader/index.js +2 -0
  294. package/dist/layout/SideNav/SideNav.d.ts +14 -0
  295. package/dist/layout/SideNav/SideNav.doc.d.ts +4 -0
  296. package/dist/layout/SideNav/SideNav.doc.js +32 -0
  297. package/dist/layout/SideNav/SideNav.js +9 -0
  298. package/dist/layout/SideNav/SideNav.types.d.ts +18 -0
  299. package/dist/layout/SideNav/SideNav.types.js +2 -0
  300. package/dist/layout/SideNav/index.d.ts +9 -0
  301. package/dist/layout/SideNav/index.js +2 -0
  302. package/dist/layout/TopBar/TopBar.d.ts +14 -0
  303. package/dist/layout/TopBar/TopBar.doc.d.ts +4 -0
  304. package/dist/layout/TopBar/TopBar.doc.js +28 -0
  305. package/dist/layout/TopBar/TopBar.js +9 -0
  306. package/dist/layout/TopBar/TopBar.types.d.ts +16 -0
  307. package/dist/layout/TopBar/TopBar.types.js +2 -0
  308. package/dist/layout/TopBar/index.d.ts +9 -0
  309. package/dist/layout/TopBar/index.js +2 -0
  310. package/dist/lib/component-doc.d.ts +34 -0
  311. package/dist/lib/component-doc.js +2 -0
  312. package/dist/lib/motionPresets.d.ts +37 -0
  313. package/dist/lib/motionPresets.js +35 -0
  314. package/dist/lib/resolveTokenPx.d.ts +11 -0
  315. package/dist/lib/resolveTokenPx.js +17 -0
  316. package/dist/lib/useDialogTransition.d.ts +21 -0
  317. package/dist/lib/useDialogTransition.js +86 -0
  318. package/dist/lib/useDisclosureTransition.d.ts +19 -0
  319. package/dist/lib/useDisclosureTransition.js +41 -0
  320. package/dist/lib/utils.d.ts +3 -0
  321. package/dist/lib/utils.js +6 -0
  322. package/dist/patterns/action-bar.md +127 -0
  323. package/dist/patterns/border-always.md +40 -0
  324. package/dist/patterns/data-analytics.md +15 -0
  325. package/dist/patterns/disabled-state.md +80 -0
  326. package/dist/patterns/empty-state.md +130 -0
  327. package/dist/patterns/expand-collapse-chevron.md +101 -0
  328. package/dist/patterns/form-field-group.md +139 -0
  329. package/dist/patterns/form-field-spacing.md +99 -0
  330. package/dist/patterns/group-spacing.md +54 -0
  331. package/dist/patterns/motion-effects.md +100 -0
  332. package/dist/patterns/same-row-sizing.md +52 -0
  333. package/dist/patterns/search-filter.md +118 -0
  334. package/dist/patterns/show-hide-parts.md +53 -0
  335. package/dist/patterns/stat-card.md +105 -0
  336. package/dist/patterns/status-row.md +130 -0
  337. package/dist/patterns/view-toggle.md +81 -0
  338. package/dist/prop-map.md +80 -0
  339. package/package.json +70 -3
  340. package/src/globals.css +3195 -0
@@ -0,0 +1,3195 @@
1
+ /* Helix DS — global styles. Import once in your app entry. */
2
+
3
+ @import "tailwindcss";
4
+ @import "@helixds/tokens/helix.css";
5
+
6
+ /* ─── Tailwind v4 theme — expose Helix tokens as Tailwind utilities ─────────
7
+ Note: @theme values must be raw values, not var() references.
8
+ We set the most-used scales here for utility-class convenience.
9
+ Always prefer CSS custom properties in component code.
10
+ ────────────────────────────────────────────────────────────────────────── */
11
+
12
+ @theme {
13
+ --font-sans: system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
14
+ --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
15
+
16
+ --color-brand-50: #eff6ff;
17
+ --color-brand-100: #dbeafe;
18
+ --color-brand-500: #3b82f6;
19
+ --color-brand-600: #2563eb;
20
+ --color-brand-700: #1d4ed8;
21
+
22
+ --radius-xs: 2px;
23
+ --radius-s: 4px;
24
+ --radius-m: 6px;
25
+ --radius-l: 8px;
26
+ --radius-xl: 12px;
27
+ --radius-full: 9999px;
28
+ }
29
+
30
+ /* ─── Base layer ─────────────────────────────────────────────────────────── */
31
+
32
+ @layer base {
33
+ *, *::before, *::after {
34
+ box-sizing: border-box;
35
+ }
36
+
37
+ html {
38
+ -webkit-font-smoothing: antialiased;
39
+ -moz-osx-font-smoothing: grayscale;
40
+ text-rendering: optimizeLegibility;
41
+ }
42
+
43
+ body {
44
+ background: var(--helix-color-fill-page);
45
+ color: var(--helix-color-text-neutral);
46
+ font-size: var(--helix-primitive-fontSize-m);
47
+ line-height: var(--helix-primitive-lineHeight-normal);
48
+ font-family: var(--helix-primitive-fontFamily-sans);
49
+ }
50
+
51
+ :focus-visible {
52
+ outline: 2px solid var(--helix-color-border-focus);
53
+ outline-offset: 2px;
54
+ border-radius: var(--helix-radius-xs);
55
+ }
56
+
57
+ @media (prefers-reduced-motion: reduce) {
58
+ *, *::before, *::after {
59
+ animation-duration: 0.01ms !important;
60
+ animation-iteration-count: 1 !important;
61
+ transition-duration: 0.01ms !important;
62
+ scroll-behavior: auto !important;
63
+ }
64
+ }
65
+ }
66
+
67
+ /* ─── Component layer ────────────────────────────────────────────────────── */
68
+
69
+ @layer components {
70
+ [data-helix-part="chart-root"] { position: relative; font-family: var(--helix-textStyle-body-s-regular-fontFamily); }
71
+ /* Legend: a square swatch + name per series. With 2+ series each entry is a ghost-style toggle button
72
+ (same semantic fills as Button ghost); a single series is a static label with no hover. */
73
+ [data-helix-part="chart-legend"] { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--helix-spacing-2xs); margin-top: var(--helix-spacing-xs); }
74
+ [data-helix-part="chart-legend-item"] {
75
+ display: inline-flex; align-items: center; gap: var(--helix-spacing-xs);
76
+ padding: var(--helix-spacing-2xs) var(--helix-spacing-xs);
77
+ border: 1px solid transparent; border-radius: var(--helix-radius-m);
78
+ background-color: transparent; color: var(--helix-color-text-neutral-light);
79
+ font: inherit; font-size: var(--helix-textStyle-body-s-regular-fontSize); line-height: var(--helix-textStyle-body-s-regular-lineHeight);
80
+ }
81
+ button[data-helix-part="chart-legend-item"] { cursor: pointer; }
82
+ /* Text goes to text-neutral on hover/press: text-neutral-light on the dark-mode press fill is 4.04:1. */
83
+ button[data-helix-part="chart-legend-item"]:hover { background-color: var(--helix-color-fill-secondary-interactive-default); color: var(--helix-color-text-neutral); }
84
+ button[data-helix-part="chart-legend-item"]:active { background-color: var(--helix-color-fill-secondary-interactive-hover); color: var(--helix-color-text-neutral); }
85
+ /* A hidden series: only its name goes gray (text-disabled) — the swatch keeps its color and shape.
86
+ Stays gray on hover too, so the off state never looks like it flipped back on. */
87
+ button[data-helix-part="chart-legend-item"][aria-pressed="false"],
88
+ button[data-helix-part="chart-legend-item"][aria-pressed="false"]:hover,
89
+ button[data-helix-part="chart-legend-item"][aria-pressed="false"]:active { color: var(--helix-color-text-disabled); }
90
+ [data-helix-part="chart-legend-swatch"] {
91
+ flex: none; width: var(--helix-spacing-s); height: var(--helix-spacing-s);
92
+ border-radius: var(--helix-radius-xs); background-color: var(--chart-swatch);
93
+ }
94
+ /* Visually hidden on a wrapper div, not the table itself: a <table> ignores height/overflow, so a hidden
95
+ table kept its full height and stretched the page under every chart. Empty values read "No data", not 0. */
96
+ [data-helix-part="chart-data"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
97
+
98
+ /* Storybook Docs preview block only: keep the prose light, darken the live example. */
99
+ :root[data-theme="dark"] .docs-story {
100
+ background: var(--helix-color-fill-page);
101
+ color: var(--helix-color-text-neutral);
102
+ }
103
+
104
+ /* ════════════════════════════════════════════════════════════════════════
105
+ BUTTON
106
+ Contract: contracts/components/Button.json
107
+ Tokens: --helix-button-* (component layer)
108
+ ════════════════════════════════════════════════════════════════════════ */
109
+
110
+ [data-helix-part="button"] {
111
+ display: inline-flex;
112
+ align-items: center;
113
+ justify-content: center;
114
+ gap: var(--helix-primitive-spacing-50);
115
+ font-family: inherit;
116
+ border-radius: var(--helix-button-radius);
117
+ border: var(--helix-borderWidth-thin) solid transparent;
118
+ cursor: pointer;
119
+ transition:
120
+ background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
121
+ border-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
122
+ color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
123
+ box-shadow var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
124
+ white-space: nowrap;
125
+ user-select: none;
126
+ text-decoration: none;
127
+ outline: none;
128
+ flex-shrink: 0;
129
+ position: relative;
130
+ -webkit-appearance: none;
131
+ }
132
+
133
+ /* Sizes — use component tokens for height + padding */
134
+ [data-helix-part="button"][data-size="s"] {
135
+ height: var(--helix-button-height-s);
136
+ padding: 0 var(--helix-button-padding-x-s);
137
+ font-size: var(--helix-button-fontSize-s);
138
+ font-weight: var(--helix-button-fontWeight-s);
139
+ }
140
+ [data-helix-part="button"][data-size="m"] {
141
+ height: var(--helix-button-height-m);
142
+ padding: 0 var(--helix-button-padding-x-m);
143
+ font-size: var(--helix-button-fontSize-m);
144
+ font-weight: var(--helix-button-fontWeight-m);
145
+ }
146
+ [data-helix-part="button"][data-size="l"] {
147
+ height: var(--helix-button-height-l);
148
+ padding: 0 var(--helix-button-padding-x-l);
149
+ font-size: var(--helix-button-fontSize-l);
150
+ font-weight: var(--helix-button-fontWeight-l);
151
+ }
152
+ /* 16px button padding + 4px label box = 20px per side — two scale steps instead of an off-scale 20px (ADR-004). */
153
+ [data-helix-part="button"][data-size="l"] [data-helix-part="button-label"] {
154
+ padding: 0 var(--helix-button-label-padding-x-l);
155
+ }
156
+
157
+ /* Variant: primary */
158
+ [data-helix-part="button"][data-variant="primary"] {
159
+ background-color: var(--helix-button-fill-primary-default);
160
+ color: var(--helix-button-text-primary);
161
+ border-color: var(--helix-button-fill-primary-default);
162
+ }
163
+ [data-helix-part="button"][data-variant="primary"]:hover:not(:disabled):not([data-loading]) {
164
+ background-color: var(--helix-button-fill-primary-hover);
165
+ border-color: var(--helix-button-fill-primary-hover);
166
+ }
167
+ [data-helix-part="button"][data-variant="primary"]:active:not(:disabled):not([data-loading]) {
168
+ background-color: var(--helix-button-fill-primary-press);
169
+ border-color: var(--helix-button-fill-primary-press);
170
+ }
171
+
172
+ /* Variant: secondary */
173
+ [data-helix-part="button"][data-variant="secondary"] {
174
+ background-color: var(--helix-button-fill-secondary-default);
175
+ color: var(--helix-button-text-secondary);
176
+ border-color: var(--helix-button-border-secondary-default);
177
+ }
178
+ [data-helix-part="button"][data-variant="secondary"]:hover:not(:disabled):not([data-loading]) {
179
+ background-color: var(--helix-button-fill-secondary-hover);
180
+ border-color: var(--helix-button-border-secondary-hover);
181
+ }
182
+ [data-helix-part="button"][data-variant="secondary"]:active:not(:disabled):not([data-loading]) {
183
+ background-color: var(--helix-button-fill-secondary-press);
184
+ }
185
+
186
+ /* Variant: ghost */
187
+ [data-helix-part="button"][data-variant="ghost"] {
188
+ background-color: transparent;
189
+ color: var(--helix-button-text-ghost);
190
+ border-color: transparent;
191
+ }
192
+ /* Own ghost tokens, not secondary's: secondary-default is the page color (white in light mode), so
193
+ reusing it made the ghost hover invisible. Same semantic pair as IconButton ghost. */
194
+ [data-helix-part="button"][data-variant="ghost"]:hover:not(:disabled):not([data-loading]) {
195
+ background-color: var(--helix-button-fill-ghost-hover);
196
+ }
197
+ [data-helix-part="button"][data-variant="ghost"]:active:not(:disabled):not([data-loading]) {
198
+ background-color: var(--helix-button-fill-ghost-press);
199
+ }
200
+
201
+ /* Variant: danger */
202
+ [data-helix-part="button"][data-variant="danger"] {
203
+ background-color: var(--helix-button-fill-danger-default);
204
+ color: var(--helix-button-text-danger);
205
+ border-color: var(--helix-button-fill-danger-default);
206
+ }
207
+ [data-helix-part="button"][data-variant="danger"]:hover:not(:disabled):not([data-loading]) {
208
+ background-color: var(--helix-button-fill-danger-hover);
209
+ border-color: var(--helix-button-fill-danger-hover);
210
+ }
211
+ [data-helix-part="button"][data-variant="danger"]:active:not(:disabled):not([data-loading]) {
212
+ background-color: var(--helix-button-fill-danger-press);
213
+ border-color: var(--helix-button-fill-danger-press);
214
+ }
215
+
216
+ /* States */
217
+ /* Loading keeps the variant's own colors — no graying, no opacity. The spinner in front of the
218
+ label is the only visible change; the button still reads as "this is a primary/danger/etc
219
+ action", just busy right now. `disabled` is native on the element while loading (see
220
+ Button.tsx), so every rule below has to say `:not([data-loading])` to stay loading-only. */
221
+ [data-helix-part="button"][data-loading] {
222
+ cursor: not-allowed;
223
+ pointer-events: none;
224
+ }
225
+ /* True disabled (not loading) — a solid gray state via real disabled tokens, never opacity.
226
+ Opacity is reserved for large surfaces/images going translucent as a whole (e.g. disabling an
227
+ entire table) — a small control like this gets its own explicit disabled colors instead. */
228
+ [data-helix-part="button"]:disabled:not([data-loading]) {
229
+ background-color: var(--helix-button-fill-disabled);
230
+ color: var(--helix-button-text-disabled);
231
+ border-color: var(--helix-button-border-disabled);
232
+ cursor: not-allowed;
233
+ pointer-events: none;
234
+ }
235
+ [data-helix-part="button"]:disabled:not([data-loading]) [data-helix-part="button-icon"],
236
+ [data-helix-part="button"]:disabled:not([data-loading]) [data-helix-part="button-icon-end"] {
237
+ color: var(--helix-button-icon-disabled);
238
+ }
239
+ [data-helix-part="button"]:focus-visible {
240
+ outline: 2px solid var(--helix-button-border-focus);
241
+ outline-offset: 2px;
242
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--helix-button-border-focus) 20%, transparent);
243
+ }
244
+ [data-helix-part="button"][data-full-width] {
245
+ width: 100%;
246
+ }
247
+
248
+ /* Spinner animation */
249
+ [data-helix-part="button-spinner"] {
250
+ animation: helix-spin 0.7s linear infinite;
251
+ flex-shrink: 0;
252
+ }
253
+ @keyframes helix-spin {
254
+ to { transform: rotate(360deg); }
255
+ }
256
+
257
+ /* Swap in place (transitions.dev "icon swap" + "text morph") — Button.tsx keeps the outgoing content
258
+ for the length of the swap (data-swapping) and stacks it under the incoming one in the same grid
259
+ cell: the first child leaves, the last child arrives. The icon cross-fades with blur and scale
260
+ (scale/filter/opacity, never transform — the spinner's own spin owns transform); the label
261
+ cross-blurs while its width eases to the new text's (set inline by Button.tsx). The global
262
+ reduced-motion rule neutralises all of it, and Button.tsx doesn't stack anything under it. */
263
+ [data-helix-part="button-icon"][data-swapping] {
264
+ display: inline-grid;
265
+ place-items: center;
266
+ }
267
+ [data-helix-part="button-icon"][data-swapping] > * { grid-area: 1 / 1; }
268
+ [data-helix-part="button-icon"][data-swapping] > :first-child {
269
+ animation: helix-button-icon-out var(--helix-button-swap-duration-icon) var(--helix-button-swap-easing-icon) forwards;
270
+ }
271
+ [data-helix-part="button-icon"][data-swapping] > :last-child {
272
+ animation: helix-button-icon-in var(--helix-button-swap-duration-icon) var(--helix-button-swap-easing-icon);
273
+ }
274
+ [data-helix-part="button-icon"][data-swapping] > [data-helix-part="button-spinner"]:first-child {
275
+ animation: helix-button-icon-out var(--helix-button-swap-duration-icon) var(--helix-button-swap-easing-icon) forwards, helix-spin 0.7s linear infinite;
276
+ }
277
+ [data-helix-part="button-icon"][data-swapping] > [data-helix-part="button-spinner"]:last-child {
278
+ animation: helix-button-icon-in var(--helix-button-swap-duration-icon) var(--helix-button-swap-easing-icon), helix-spin 0.7s linear infinite;
279
+ }
280
+ @keyframes helix-button-icon-out {
281
+ to { opacity: 0; scale: var(--helix-button-swap-scale); filter: blur(var(--helix-button-swap-blur)); }
282
+ }
283
+ @keyframes helix-button-icon-in {
284
+ from { opacity: 0; scale: var(--helix-button-swap-scale); filter: blur(var(--helix-button-swap-blur)); }
285
+ }
286
+
287
+ [data-helix-part="button-label"] {
288
+ transition: width var(--helix-button-swap-duration-width) var(--helix-button-swap-easing-label);
289
+ }
290
+ [data-helix-part="button-label"][data-swapping] {
291
+ display: inline-grid;
292
+ justify-items: start;
293
+ white-space: nowrap;
294
+ }
295
+ [data-helix-part="button-label"][data-swapping] > * { grid-area: 1 / 1; white-space: pre; }
296
+ [data-helix-part="button-label"][data-swapping] > :first-child {
297
+ animation: helix-button-label-out var(--helix-button-swap-duration-label) var(--helix-button-swap-easing-label) forwards;
298
+ }
299
+ [data-helix-part="button-label"][data-swapping] > :last-child {
300
+ animation: helix-button-label-in var(--helix-button-swap-duration-label) var(--helix-button-swap-easing-label);
301
+ }
302
+ @keyframes helix-button-label-out {
303
+ to { opacity: 0; filter: blur(var(--helix-button-swap-blur)); }
304
+ }
305
+ @keyframes helix-button-label-in {
306
+ from { opacity: 0; filter: blur(var(--helix-button-swap-blur)); }
307
+ }
308
+
309
+ /* Icon sizing by size */
310
+ [data-helix-part="button-icon"],
311
+ [data-helix-part="button-icon-end"] {
312
+ display: flex;
313
+ align-items: center;
314
+ flex-shrink: 0;
315
+ }
316
+ /* Icon color per variant — icon tokens only, never inherited from button-text */
317
+ [data-helix-part="button"][data-variant="primary"] [data-helix-part="button-icon"],
318
+ [data-helix-part="button"][data-variant="primary"] [data-helix-part="button-icon-end"] {
319
+ color: var(--helix-button-icon-primary);
320
+ }
321
+ [data-helix-part="button"][data-variant="secondary"] [data-helix-part="button-icon"],
322
+ [data-helix-part="button"][data-variant="secondary"] [data-helix-part="button-icon-end"] {
323
+ color: var(--helix-button-icon-secondary);
324
+ }
325
+ [data-helix-part="button"][data-variant="ghost"] [data-helix-part="button-icon"],
326
+ [data-helix-part="button"][data-variant="ghost"] [data-helix-part="button-icon-end"] {
327
+ color: var(--helix-button-icon-ghost);
328
+ }
329
+ [data-helix-part="button"][data-variant="danger"] [data-helix-part="button-icon"],
330
+ [data-helix-part="button"][data-variant="danger"] [data-helix-part="button-icon-end"] {
331
+ color: var(--helix-button-icon-danger);
332
+ }
333
+
334
+
335
+ /* ════════════════════════════════════════════════════════════════════════
336
+ ICON BUTTON
337
+ Contract: contracts/components/IconButton.json
338
+ Tokens: --helix-iconButton-* (component layer)
339
+ ════════════════════════════════════════════════════════════════════════ */
340
+
341
+ [data-helix-part="icon-button"] {
342
+ display: inline-flex;
343
+ align-items: center;
344
+ justify-content: center;
345
+ padding: 0;
346
+ border-radius: var(--helix-iconButton-radius);
347
+ border: var(--helix-borderWidth-thin) solid transparent;
348
+ cursor: pointer;
349
+ transition:
350
+ background-color var(--helix-iconButton-transition) var(--helix-primitive-easing-base),
351
+ border-color var(--helix-iconButton-transition) var(--helix-primitive-easing-base),
352
+ color var(--helix-iconButton-transition) var(--helix-primitive-easing-base);
353
+ outline: none;
354
+ flex-shrink: 0;
355
+ position: relative;
356
+ -webkit-appearance: none;
357
+ background-color: transparent;
358
+ border-color: transparent;
359
+ }
360
+
361
+ /* Sizes — square: width matches height, same token */
362
+ [data-helix-part="icon-button"][data-size="s"] {
363
+ width: var(--helix-iconButton-height-s);
364
+ height: var(--helix-iconButton-height-s);
365
+ }
366
+ [data-helix-part="icon-button"][data-size="m"] {
367
+ width: var(--helix-iconButton-height-m);
368
+ height: var(--helix-iconButton-height-m);
369
+ }
370
+ [data-helix-part="icon-button"][data-size="l"] {
371
+ width: var(--helix-iconButton-height-l);
372
+ height: var(--helix-iconButton-height-l);
373
+ }
374
+
375
+ /* Variant: primary */
376
+ [data-helix-part="icon-button"][data-variant="primary"] {
377
+ background-color: var(--helix-iconButton-fill-primary-default);
378
+ color: var(--helix-iconButton-icon-primary);
379
+ border-color: var(--helix-iconButton-fill-primary-default);
380
+ }
381
+ [data-helix-part="icon-button"][data-variant="primary"]:hover:not(:disabled):not([data-loading]) {
382
+ background-color: var(--helix-iconButton-fill-primary-hover);
383
+ border-color: var(--helix-iconButton-fill-primary-hover);
384
+ }
385
+ [data-helix-part="icon-button"][data-variant="primary"]:active:not(:disabled):not([data-loading]) {
386
+ background-color: var(--helix-iconButton-fill-primary-press);
387
+ border-color: var(--helix-iconButton-fill-primary-press);
388
+ }
389
+
390
+ /* Variant: secondary */
391
+ [data-helix-part="icon-button"][data-variant="secondary"] {
392
+ background-color: var(--helix-iconButton-fill-secondary-default);
393
+ color: var(--helix-iconButton-icon-secondary);
394
+ border-color: var(--helix-iconButton-border-secondary-default);
395
+ }
396
+ [data-helix-part="icon-button"][data-variant="secondary"]:hover:not(:disabled):not([data-loading]) {
397
+ background-color: var(--helix-iconButton-fill-secondary-hover);
398
+ border-color: var(--helix-iconButton-border-secondary-hover);
399
+ }
400
+ [data-helix-part="icon-button"][data-variant="secondary"]:active:not(:disabled):not([data-loading]) {
401
+ background-color: var(--helix-iconButton-fill-secondary-press);
402
+ }
403
+
404
+ /* Variant: ghost */
405
+ [data-helix-part="icon-button"][data-variant="ghost"] {
406
+ background-color: transparent;
407
+ color: var(--helix-iconButton-icon-ghost);
408
+ border-color: transparent;
409
+ }
410
+ [data-helix-part="icon-button"][data-variant="ghost"]:hover:not(:disabled):not([data-loading]) {
411
+ background-color: var(--helix-iconButton-fill-secondary-default);
412
+ }
413
+ [data-helix-part="icon-button"][data-variant="ghost"]:active:not(:disabled):not([data-loading]) {
414
+ background-color: var(--helix-iconButton-fill-secondary-hover);
415
+ }
416
+
417
+ /* Variant: danger */
418
+ [data-helix-part="icon-button"][data-variant="danger"] {
419
+ background-color: var(--helix-iconButton-fill-danger-default);
420
+ color: var(--helix-iconButton-icon-danger);
421
+ border-color: var(--helix-iconButton-fill-danger-default);
422
+ }
423
+ [data-helix-part="icon-button"][data-variant="danger"]:hover:not(:disabled):not([data-loading]) {
424
+ background-color: var(--helix-iconButton-fill-danger-hover);
425
+ border-color: var(--helix-iconButton-fill-danger-hover);
426
+ }
427
+ [data-helix-part="icon-button"][data-variant="danger"]:active:not(:disabled):not([data-loading]) {
428
+ background-color: var(--helix-iconButton-fill-danger-press);
429
+ border-color: var(--helix-iconButton-fill-danger-press);
430
+ }
431
+
432
+ /* States — see .ai/maps/patterns/disabled-state.md: loading keeps the variant's own colors,
433
+ disabled gets a real gray via dedicated tokens, never opacity. */
434
+ [data-helix-part="icon-button"][data-loading] {
435
+ cursor: not-allowed;
436
+ pointer-events: none;
437
+ }
438
+ [data-helix-part="icon-button"]:disabled:not([data-loading]) {
439
+ background-color: var(--helix-iconButton-fill-disabled);
440
+ color: var(--helix-iconButton-icon-disabled);
441
+ border-color: var(--helix-iconButton-border-disabled);
442
+ cursor: not-allowed;
443
+ pointer-events: none;
444
+ }
445
+ [data-helix-part="icon-button"]:focus-visible {
446
+ outline: 2px solid var(--helix-iconButton-border-focus);
447
+ outline-offset: 2px;
448
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--helix-iconButton-border-focus) 20%, transparent);
449
+ }
450
+
451
+ /* Spinner animation — shares the same @keyframes helix-spin defined in BUTTON above */
452
+ [data-helix-part="icon-button-spinner"] {
453
+ animation: helix-spin 0.7s linear infinite;
454
+ flex-shrink: 0;
455
+ }
456
+
457
+
458
+ /* ════════════════════════════════════════════════════════════════════════
459
+ FAB
460
+ Contract: contracts/components/FAB.json
461
+ Tokens: --helix-fab-* (component layer)
462
+ Motion: Speed-dial expand/collapse via Motion springs — see ADR-007 and
463
+ .ai/maps/patterns/motion-effects.md. Position/transform of the
464
+ trigger and its actions is owned by motion.button at the JS
465
+ layer (FAB.tsx) — this block only styles the buttons' own
466
+ resting look (fill/icon/radius/shadow), never their transform.
467
+ ════════════════════════════════════════════════════════════════════════ */
468
+
469
+ [data-helix-part="fab-root-wrapper"] {
470
+ position: relative;
471
+ display: inline-flex;
472
+ /* Explicit, guaranteed 48×48 box — fab-actions' `inset: 0` positions itself against THIS box, not
473
+ against whatever size <Liquid>'s own internal rendering happens to produce. Without this, the
474
+ stacked actions' resting anchor point is undefined and the morph offsets read as overlapping
475
+ instead of cleanly separated. */
476
+ width: var(--helix-fab-height);
477
+ height: var(--helix-fab-height);
478
+ }
479
+
480
+ [data-helix-part="fab-root"] {
481
+ /* Above fab-actions, which now follow it in DOM order (Tab order = visual order): collapsing
482
+ actions must still slide in under the trigger, not over it. */
483
+ position: relative;
484
+ z-index: 1;
485
+ display: inline-flex;
486
+ align-items: center;
487
+ justify-content: center;
488
+ width: var(--helix-fab-height);
489
+ height: var(--helix-fab-height);
490
+ border-radius: var(--helix-fab-radius);
491
+ border: none;
492
+ padding: 0;
493
+ background-color: var(--helix-fab-fill-default);
494
+ color: var(--helix-fab-icon);
495
+ box-shadow: var(--helix-fab-shadow);
496
+ cursor: pointer;
497
+ outline: none;
498
+ flex-shrink: 0;
499
+ -webkit-appearance: none;
500
+ transition: background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
501
+ }
502
+ [data-helix-part="fab-root"]:hover:not(:disabled) {
503
+ background-color: var(--helix-fab-fill-hover);
504
+ }
505
+ [data-helix-part="fab-root"]:active:not(:disabled) {
506
+ background-color: var(--helix-fab-fill-press);
507
+ }
508
+ /* Real disabled colors, not opacity — .ai/maps/patterns/disabled-state.md */
509
+ [data-helix-part="fab-root"]:disabled {
510
+ background-color: var(--helix-fab-fill-disabled);
511
+ color: var(--helix-fab-icon-disabled);
512
+ box-shadow: none;
513
+ cursor: not-allowed;
514
+ pointer-events: none;
515
+ }
516
+ [data-helix-part="fab-root"]:focus-visible {
517
+ outline: 2px solid var(--helix-fab-border-focus);
518
+ outline-offset: 2px;
519
+ }
520
+
521
+ /* Trigger icon rotates 45° when the speed-dial is expanded — a plain "+" reads as a close/"×" affordance
522
+ without needing a second icon swap. CSS transform only; independent of the Morph silhouette itself. */
523
+ [data-helix-part="fab-icon"] {
524
+ display: inline-flex;
525
+ transition: transform var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
526
+ }
527
+ [data-helix-part="fab-icon"][data-expanded="true"] {
528
+ transform: rotate(45deg);
529
+ }
530
+
531
+ [data-helix-part="fab-actions"] {
532
+ position: absolute;
533
+ inset: 0;
534
+ pointer-events: none;
535
+ }
536
+
537
+ [data-helix-part="fab-action"] {
538
+ display: inline-flex;
539
+ align-items: center;
540
+ justify-content: center;
541
+ width: var(--helix-fab-action-height);
542
+ height: var(--helix-fab-action-height);
543
+ border-radius: var(--helix-fab-radius);
544
+ border: 1px solid var(--helix-fab-action-border);
545
+ padding: 0;
546
+ background-color: var(--helix-fab-action-fill);
547
+ color: var(--helix-fab-action-icon);
548
+ box-shadow: var(--helix-fab-action-shadow);
549
+ cursor: pointer;
550
+ outline: none;
551
+ pointer-events: auto;
552
+ -webkit-appearance: none;
553
+ }
554
+ [data-helix-part="fab-action"]:disabled {
555
+ background-color: var(--helix-fab-action-fill-disabled);
556
+ border-color: var(--helix-fab-action-border-disabled);
557
+ color: var(--helix-fab-action-icon-disabled);
558
+ box-shadow: none;
559
+ cursor: not-allowed;
560
+ pointer-events: none;
561
+ }
562
+ [data-helix-part="fab-action"]:focus-visible {
563
+ outline: 2px solid var(--helix-fab-border-focus);
564
+ outline-offset: 2px;
565
+ }
566
+
567
+
568
+ /* ════════════════════════════════════════════════════════════════════════
569
+ INPUT
570
+ Contract: contracts/components/Input.json
571
+ Tokens: --helix-input-* (component layer)
572
+ ════════════════════════════════════════════════════════════════════════ */
573
+
574
+ [data-helix-part="input-root"] {
575
+ display: flex;
576
+ flex-direction: column;
577
+ gap: var(--helix-input-gap);
578
+ /* Every form field shares one width and never grows or shrinks with its content (owner's rule 2026-10-21,
579
+ contracts/figma-conversion.json → patterns.form-field.width); fullWidth fills the container. A per-component
580
+ width, not a token (CLAUDE.md token policy: widths are a component characteristic). */
581
+ width: 320px;
582
+ max-width: 100%;
583
+ }
584
+ [data-helix-part="input-root"][data-full-width] {
585
+ width: 100%;
586
+ }
587
+
588
+ [data-helix-part="input-label"] {
589
+ font-family: var(--helix-textStyle-body-m-medium-fontFamily); /* the one form label — same as checkbox-group/radio legends */
590
+ font-size: var(--helix-input-text-labelFontSize);
591
+ font-weight: var(--helix-input-text-labelFontWeight);
592
+ color: var(--helix-input-text-label);
593
+ line-height: var(--helix-textStyle-body-m-medium-lineHeight);
594
+ }
595
+ [data-helix-part="input-required"] {
596
+ color: var(--helix-color-text-danger);
597
+ margin-left: var(--helix-spacing-3xs);
598
+ }
599
+ /* Disabled dims every text part — .ai/maps/patterns/disabled-state.md */
600
+ [data-helix-part="input-root"][data-disabled] :is([data-helix-part="input-label"], [data-helix-part="input-required"], [data-helix-part="input-description"]) {
601
+ color: var(--helix-input-text-disabled);
602
+ }
603
+
604
+ [data-helix-part="input-wrapper"] {
605
+ position: relative;
606
+ display: flex;
607
+ align-items: center;
608
+ background-color: var(--helix-input-fill-default);
609
+ border: var(--helix-borderWidth-thin) solid var(--helix-input-border-default);
610
+ border-radius: var(--helix-input-radius);
611
+ /* Height (border-box, border included) lives here, on the bordered element,
612
+ not on input-field — matching Button/Select's model where the sized,
613
+ bordered element are the same node. Previously input-field alone carried
614
+ a fixed height while this wrapper's own border sat outside it, making
615
+ Input ~3px taller than a same-size Button at the same nominal size. */
616
+ height: var(--helix-input-height-m);
617
+ transition:
618
+ border-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
619
+ border-width var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
620
+ box-shadow var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
621
+ }
622
+ /* :not(:focus-within) — without it, hover's own specificity (4 compound selectors) beats the
623
+ focus rule below (3), so a focused-AND-hovered field silently fell back to the gray hover
624
+ border instead of staying blue. Hover must yield whenever the field is actually focused. */
625
+ [data-helix-part="input-wrapper"]:hover:not([data-disabled]):not([data-invalid]):not(:focus-within) {
626
+ border-color: var(--helix-input-border-hover);
627
+ }
628
+ [data-helix-part="input-wrapper"]:focus-within:not([data-invalid]) {
629
+ border-color: var(--helix-input-border-focus);
630
+ box-shadow: var(--helix-input-shadow-focus);
631
+ }
632
+ [data-helix-part="input-wrapper"][data-invalid] {
633
+ border-color: var(--helix-input-border-invalid);
634
+ }
635
+ [data-helix-part="input-wrapper"][data-invalid]:focus-within {
636
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--helix-input-border-invalid) 20%, transparent);
637
+ }
638
+
639
+ /* Error-state shake — plays once when a field transitions into `invalid`
640
+ (see Input.tsx's remove/reflow/reapply on `data-shaking`), not a Motion
641
+ effect: bespoke per-segment easing authored in Figma, not the shared
642
+ duration/easing scale — same "plain CSS, not Motion" call as Checkbox/
643
+ RadioGroup's check pop-in. See .ai/maps/patterns/motion-effects.md.
644
+ Values are real tokens now (component.input.shake.* in tokens.json,
645
+ documented as an exception in component-token-exceptions.md) — no
646
+ longer declared locally here, `--helix-input-shake-*` comes from
647
+ @helixds/tokens/helix.css like every other component token. */
648
+ [data-helix-part="input-wrapper"][data-shaking="true"] {
649
+ animation: helix-input-shake calc(
650
+ var(--helix-input-shake-dur-a) * 2 + var(--helix-input-shake-dur-b) * 2
651
+ ) linear;
652
+ }
653
+ @keyframes helix-input-shake {
654
+ 0% { transform: translateX(0); animation-timing-function: var(--helix-input-shake-ease); }
655
+ 28.57% { transform: translateX(var(--helix-input-shake-distance)); animation-timing-function: var(--helix-input-shake-ease); }
656
+ 57.14% { transform: translateX(calc(var(--helix-input-shake-distance) * -1)); animation-timing-function: var(--helix-input-shake-ease); }
657
+ 78.57% { transform: translateX(var(--helix-input-shake-overshoot)); animation-timing-function: var(--helix-input-shake-ease); }
658
+ 100% { transform: translateX(0); }
659
+ }
660
+ @media (prefers-reduced-motion: reduce) {
661
+ [data-helix-part="input-wrapper"][data-shaking="true"] {
662
+ animation: none;
663
+ transform: none;
664
+ }
665
+ }
666
+
667
+ [data-helix-part="input-wrapper"][data-disabled] {
668
+ background-color: var(--helix-input-fill-disabled);
669
+ border-color: var(--helix-input-border-disabled);
670
+ cursor: not-allowed;
671
+ }
672
+
673
+ [data-helix-part="input-field"] {
674
+ flex: 1;
675
+ background: transparent;
676
+ border: none;
677
+ outline: none;
678
+ color: var(--helix-input-text-value);
679
+ font-family: inherit;
680
+ font-size: var(--helix-input-text-valueFontSize-m);
681
+ /* Own weight, never inherited — an Input placed in a bold context (a Card header) rendered its
682
+ value bold. Value text is always regular, like every other field. */
683
+ font-weight: var(--helix-textStyle-body-m-regular-fontWeight);
684
+ padding: 0 var(--helix-primitive-spacing-75);
685
+ min-width: 0;
686
+ /* Fills the wrapper's own height (see input-wrapper) — not an independent
687
+ fixed height, so it can never make the wrapper taller than its token. */
688
+ height: 100%;
689
+ }
690
+ /* line height from the shared scale (lineHeight-m = Figma's lineHeight/m) — one size, m: form fields share one size set */
691
+ [data-helix-part="input-field"] { line-height: var(--helix-lineHeight-m); }
692
+ [data-helix-part="input-field"]::placeholder {
693
+ color: var(--helix-input-text-placeholder);
694
+ }
695
+ [data-helix-part="input-field"]:disabled,
696
+ [data-helix-part="input-field"]:disabled::placeholder {
697
+ cursor: not-allowed;
698
+ color: var(--helix-input-text-disabled);
699
+ }
700
+
701
+ [data-helix-part="input-icon"],
702
+ [data-helix-part="input-icon-end"],
703
+ [data-helix-part="input-spinner"] {
704
+ display: flex;
705
+ align-items: center;
706
+ color: var(--helix-input-icon-default);
707
+ flex-shrink: 0;
708
+ height: 100%;
709
+ }
710
+ [data-helix-part="input-icon"] {
711
+ padding-left: var(--helix-primitive-spacing-75);
712
+ padding-right: var(--helix-primitive-spacing-25);
713
+ }
714
+ [data-helix-part="input-icon-end"],
715
+ [data-helix-part="input-spinner"] {
716
+ padding-right: var(--helix-primitive-spacing-75);
717
+ padding-left: var(--helix-primitive-spacing-25);
718
+ }
719
+ [data-helix-part="input-spinner"] > svg {
720
+ animation: helix-spin 0.7s linear infinite; /* reduced motion: the global rule stops it after one turn */
721
+ }
722
+
723
+ [data-helix-part="input-description"] {
724
+ font-size: var(--helix-input-text-descriptionFontSize);
725
+ color: var(--helix-input-text-description);
726
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
727
+ }
728
+ [data-helix-part="input-error"] {
729
+ font-size: var(--helix-input-text-errorFontSize);
730
+ color: var(--helix-input-text-error);
731
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
732
+ display: flex;
733
+ align-items: center;
734
+ gap: var(--helix-primitive-spacing-25);
735
+ }
736
+
737
+
738
+ /* ════════════════════════════════════════════════════════════════════════
739
+ BADGE
740
+ Contract: contracts/components/Badge.json
741
+ Tokens: --helix-badge-* (component layer)
742
+ ════════════════════════════════════════════════════════════════════════ */
743
+
744
+ [data-helix-part="badge"] {
745
+ display: inline-flex;
746
+ align-items: center;
747
+ box-sizing: border-box;
748
+ border-radius: var(--helix-badge-radius);
749
+ height: var(--helix-badge-height-s);
750
+ font-family: var(--helix-badge-fontFamily);
751
+ font-size: var(--helix-badge-fontSize);
752
+ font-weight: var(--helix-badge-fontWeight);
753
+ white-space: nowrap;
754
+ line-height: var(--helix-badge-lineHeight);
755
+ border: 1px solid transparent;
756
+ }
757
+
758
+ /* Side padding = badge padding + badge-content's 2px: xs 4+2 = 6px, s 8+2 = 10px — scale tokens only,
759
+ split across two nested boxes instead of an off-scale literal. No vertical padding: the height is
760
+ fixed and the content centered. */
761
+ [data-helix-part="badge"][data-size="xs"] {
762
+ padding: 0 var(--helix-spacing-2xs);
763
+ height: var(--helix-badge-height-xs);
764
+ }
765
+ [data-helix-part="badge"][data-size="s"] {
766
+ padding: 0 var(--helix-spacing-xs);
767
+ }
768
+ [data-helix-part="badge-content"] {
769
+ display: inline-flex;
770
+ align-items: center;
771
+ gap: var(--helix-spacing-2xs);
772
+ padding: 0 var(--helix-spacing-3xs);
773
+ }
774
+
775
+ [data-helix-part="badge"][data-variant="neutral"] {
776
+ background-color: var(--helix-badge-fill-neutral);
777
+ color: var(--helix-badge-text-neutral);
778
+ border-color: var(--helix-badge-border-neutral);
779
+ }
780
+ [data-helix-part="badge"][data-variant="info"] {
781
+ background-color: var(--helix-badge-fill-info);
782
+ color: var(--helix-badge-text-info);
783
+ border-color: var(--helix-badge-border-info);
784
+ }
785
+ [data-helix-part="badge"][data-variant="success"] {
786
+ background-color: var(--helix-badge-fill-success);
787
+ color: var(--helix-badge-text-success);
788
+ border-color: var(--helix-badge-border-success);
789
+ }
790
+ [data-helix-part="badge"][data-variant="warning"] {
791
+ background-color: var(--helix-badge-fill-warning);
792
+ color: var(--helix-badge-text-warning);
793
+ border-color: var(--helix-badge-border-warning);
794
+ }
795
+ [data-helix-part="badge"][data-variant="danger"] {
796
+ background-color: var(--helix-badge-fill-danger);
797
+ color: var(--helix-badge-text-danger);
798
+ border-color: var(--helix-badge-border-danger);
799
+ }
800
+
801
+ [data-helix-part="badge-icon"] {
802
+ display: flex;
803
+ align-items: center;
804
+ flex-shrink: 0;
805
+ }
806
+ [data-helix-part="badge"][data-variant="neutral"] [data-helix-part="badge-icon"] {
807
+ color: var(--helix-badge-icon-neutral);
808
+ }
809
+ [data-helix-part="badge"][data-variant="info"] [data-helix-part="badge-icon"] {
810
+ color: var(--helix-badge-icon-info);
811
+ }
812
+ [data-helix-part="badge"][data-variant="success"] [data-helix-part="badge-icon"] {
813
+ color: var(--helix-badge-icon-success);
814
+ }
815
+ [data-helix-part="badge"][data-variant="warning"] [data-helix-part="badge-icon"] {
816
+ color: var(--helix-badge-icon-warning);
817
+ }
818
+ [data-helix-part="badge"][data-variant="danger"] [data-helix-part="badge-icon"] {
819
+ color: var(--helix-badge-icon-danger);
820
+ }
821
+
822
+
823
+ /* ════════════════════════════════════════════════════════════════════════
824
+ CHIP
825
+ Contract: contracts/components/Chip.json
826
+ Tokens: --helix-chip-* (component layer)
827
+ ════════════════════════════════════════════════════════════════════════ */
828
+
829
+ /* The pill lives on chip-shell, with the same 12px padding on both sides whatever it contains: the
830
+ icons and the dismiss button are plain show/hide parts that bring their own spacing (2px on the label
831
+ side, spacing-3xs), so toggling any of them never changes a padding — the same structure Figma uses,
832
+ where icon / iconEnd / dismissible are BOOLEAN properties (.ai/maps/patterns/show-hide-parts.md).
833
+ The chip button itself is transparent; its ::after stretches over the whole pill so the full chip is
834
+ still clickable, and the dismiss button sits above it. Hover/press follow the chip button, not the
835
+ shell, so pointing at the × shows only the ×'s own round hover. */
836
+ [data-helix-part="chip-shell"] {
837
+ position: relative;
838
+ display: inline-flex;
839
+ align-items: center;
840
+ box-sizing: border-box;
841
+ gap: var(--helix-chip-gap-m);
842
+ height: var(--helix-chip-height-m);
843
+ padding: 0 var(--helix-chip-padding-x-m);
844
+ border-radius: var(--helix-chip-radius);
845
+ border: var(--helix-chip-border-width) solid var(--helix-color-border-neutral);
846
+ background: var(--helix-color-fill-surface);
847
+ color: var(--helix-color-text-neutral);
848
+ font-size: var(--helix-chip-fontSize-m);
849
+ font-weight: var(--helix-chip-fontWeight);
850
+ line-height: var(--helix-textStyle-body-s-medium-lineHeight); /* Body / s / Medium, as in Figma (the 24/32px height keeps the label centered) */
851
+ white-space: nowrap;
852
+ user-select: none;
853
+ transition:
854
+ background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
855
+ border-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
856
+ color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
857
+ }
858
+ [data-helix-part="chip-shell"][data-size="s"] {
859
+ gap: var(--helix-chip-gap-s);
860
+ height: var(--helix-chip-height-s);
861
+ padding: 0 var(--helix-chip-padding-x-s);
862
+ font-size: var(--helix-chip-fontSize-s);
863
+ }
864
+ [data-helix-part="chip-shell"][data-size="m"] {
865
+ gap: var(--helix-chip-gap-m);
866
+ height: var(--helix-chip-height-m);
867
+ padding: 0 var(--helix-chip-padding-x-m);
868
+ font-size: var(--helix-chip-fontSize-m);
869
+ }
870
+
871
+ [data-helix-part="chip"] {
872
+ display: inline-flex;
873
+ align-items: center;
874
+ gap: inherit;
875
+ height: 100%;
876
+ padding: 0;
877
+ margin: 0;
878
+ border: none;
879
+ background: transparent;
880
+ color: inherit;
881
+ font: inherit;
882
+ line-height: inherit;
883
+ text-decoration: none;
884
+ outline: none;
885
+ -webkit-appearance: none;
886
+ appearance: none;
887
+ cursor: pointer;
888
+ }
889
+ [data-helix-part="chip"]::after {
890
+ content: '';
891
+ position: absolute;
892
+ inset: 0;
893
+ border-radius: var(--helix-chip-radius);
894
+ }
895
+ [data-helix-part="chip-shell"]:has([data-helix-part="chip"]:focus-visible) {
896
+ outline: 2px solid var(--helix-color-border-focus);
897
+ outline-offset: 2px;
898
+ }
899
+
900
+ /* Disabled keeps the variant's colors at 0.72 opacity (as before the restructure). */
901
+ [data-helix-part="chip-shell"][data-disabled] {
902
+ opacity: 0.72;
903
+ cursor: not-allowed;
904
+ }
905
+ [data-helix-part="chip"]:disabled { cursor: not-allowed; }
906
+
907
+ /* One gray step per state on the neutral variant (fill.secondary-interactive-* ladder). */
908
+ [data-helix-part="chip-shell"][data-variant="neutral"] {
909
+ background: var(--helix-color-fill-surface);
910
+ color: var(--helix-color-text-neutral);
911
+ border-color: var(--helix-color-border-neutral);
912
+ }
913
+ [data-helix-part="chip-shell"][data-variant="neutral"]:not([data-disabled]):has([data-helix-part="chip"]:hover) {
914
+ background: var(--helix-color-fill-secondary-interactive-default);
915
+ border-color: var(--helix-color-border-neutral-dark);
916
+ }
917
+ [data-helix-part="chip-shell"][data-variant="neutral"]:not([data-disabled]):has([data-helix-part="chip"]:active) {
918
+ background: var(--helix-color-fill-secondary-interactive-hover);
919
+ }
920
+ [data-helix-part="chip-shell"][data-variant="info"] {
921
+ background: var(--helix-color-fill-info-light);
922
+ color: var(--helix-color-text-info);
923
+ border-color: var(--helix-color-border-info);
924
+ }
925
+ [data-helix-part="chip-shell"][data-variant="info"]:not([data-disabled]):has([data-helix-part="chip"]:hover) {
926
+ background: color-mix(in srgb, var(--helix-color-fill-info-light) 84%, var(--helix-color-fill-page));
927
+ }
928
+ [data-helix-part="chip-shell"][data-variant="info"]:not([data-disabled]):has([data-helix-part="chip"]:active) {
929
+ background: color-mix(in srgb, var(--helix-color-fill-info-light) 72%, var(--helix-color-fill-page));
930
+ }
931
+ [data-helix-part="chip-shell"][data-variant="success"] {
932
+ background: var(--helix-color-fill-success-light);
933
+ color: var(--helix-color-text-success);
934
+ border-color: var(--helix-color-border-success);
935
+ }
936
+ [data-helix-part="chip-shell"][data-variant="success"]:not([data-disabled]):has([data-helix-part="chip"]:hover) {
937
+ background: color-mix(in srgb, var(--helix-color-fill-success-light) 84%, var(--helix-color-fill-page));
938
+ }
939
+ [data-helix-part="chip-shell"][data-variant="success"]:not([data-disabled]):has([data-helix-part="chip"]:active) {
940
+ background: color-mix(in srgb, var(--helix-color-fill-success-light) 72%, var(--helix-color-fill-page));
941
+ }
942
+ [data-helix-part="chip-shell"][data-variant="warning"] {
943
+ background: var(--helix-color-fill-warning-light);
944
+ color: var(--helix-color-text-warning);
945
+ border-color: var(--helix-color-border-warning);
946
+ }
947
+ [data-helix-part="chip-shell"][data-variant="warning"]:not([data-disabled]):has([data-helix-part="chip"]:hover) {
948
+ background: color-mix(in srgb, var(--helix-color-fill-warning-light) 84%, var(--helix-color-fill-page));
949
+ }
950
+ [data-helix-part="chip-shell"][data-variant="warning"]:not([data-disabled]):has([data-helix-part="chip"]:active) {
951
+ background: color-mix(in srgb, var(--helix-color-fill-warning-light) 72%, var(--helix-color-fill-page));
952
+ }
953
+ [data-helix-part="chip-shell"][data-variant="danger"] {
954
+ background: var(--helix-color-fill-danger-interactive-light-default);
955
+ color: var(--helix-color-text-danger);
956
+ border-color: var(--helix-color-border-danger);
957
+ }
958
+ [data-helix-part="chip-shell"][data-variant="danger"]:not([data-disabled]):has([data-helix-part="chip"]:hover) {
959
+ background: color-mix(in srgb, var(--helix-color-fill-danger-interactive-light-default) 84%, var(--helix-color-fill-page));
960
+ }
961
+ [data-helix-part="chip-shell"][data-variant="danger"]:not([data-disabled]):has([data-helix-part="chip"]:active) {
962
+ background: color-mix(in srgb, var(--helix-color-fill-danger-interactive-light-default) 72%, var(--helix-color-fill-page));
963
+ }
964
+
965
+ [data-helix-part="chip-icon"],
966
+ [data-helix-part="chip-icon-end"] {
967
+ display: flex;
968
+ align-items: center;
969
+ flex-shrink: 0;
970
+ }
971
+ /* 4px chip gap + 2px here = 6px icon-to-label, built only from scale tokens (spacing-2xs + spacing-3xs). */
972
+ [data-helix-part="chip-icon"] { padding-right: var(--helix-spacing-3xs); }
973
+ [data-helix-part="chip-icon-end"] { padding-left: var(--helix-spacing-3xs); }
974
+ /* Icon color per variant — icon tokens on neutral; on a colored tint an icon matches its label's text tone. */
975
+ [data-helix-part="chip-shell"][data-variant="neutral"] :is([data-helix-part="chip-icon"], [data-helix-part="chip-icon-end"]) {
976
+ color: var(--helix-color-icon-neutral);
977
+ }
978
+ [data-helix-part="chip-shell"][data-variant="info"] :is([data-helix-part="chip-icon"], [data-helix-part="chip-icon-end"]) {
979
+ color: var(--helix-color-text-info);
980
+ }
981
+ [data-helix-part="chip-shell"][data-variant="success"] :is([data-helix-part="chip-icon"], [data-helix-part="chip-icon-end"]) {
982
+ color: var(--helix-color-text-success);
983
+ }
984
+ [data-helix-part="chip-shell"][data-variant="warning"] :is([data-helix-part="chip-icon"], [data-helix-part="chip-icon-end"]) {
985
+ color: var(--helix-color-text-warning);
986
+ }
987
+ [data-helix-part="chip-shell"][data-variant="danger"] :is([data-helix-part="chip-icon"], [data-helix-part="chip-icon-end"]) {
988
+ color: var(--helix-color-text-danger);
989
+ }
990
+
991
+ /* Dismiss: a show/hide part in the row, exactly like chip-icon-end — it takes 2px (spacing-3xs) + the 12px ×
992
+ of layout, and the chip keeps its own 12px end padding after it. The button box itself is a 24px square
993
+ centered on the × (WCAG 2.5.8 target size): 6px padding each side, pulled back with negative margins
994
+ (−4px left, −6px right) so the extra size takes no layout space. Its round hover/focus surface (20px on
995
+ s, 24px on m) is ::before, centered on the ×. */
996
+ [data-helix-part="chip-dismiss"] {
997
+ position: relative;
998
+ z-index: 1;
999
+ display: inline-flex;
1000
+ align-items: center;
1001
+ justify-content: center;
1002
+ flex-shrink: 0;
1003
+ box-sizing: border-box;
1004
+ height: var(--helix-primitive-size-150);
1005
+ padding: 0 calc(var(--helix-spacing-2xs) + var(--helix-spacing-3xs));
1006
+ margin: 0 calc(-1 * (var(--helix-spacing-2xs) + var(--helix-spacing-3xs))) 0 calc(-1 * var(--helix-spacing-2xs));
1007
+ border: none;
1008
+ background: none;
1009
+ color: var(--helix-color-text-neutral-light);
1010
+ cursor: pointer;
1011
+ outline: none;
1012
+ -webkit-appearance: none;
1013
+ appearance: none;
1014
+ }
1015
+ [data-helix-part="chip-dismiss"]::before {
1016
+ content: '';
1017
+ position: absolute;
1018
+ z-index: -1;
1019
+ top: 50%;
1020
+ left: 50%;
1021
+ transform: translate(-50%, -50%);
1022
+ width: var(--helix-primitive-size-150);
1023
+ height: var(--helix-primitive-size-150);
1024
+ border-radius: var(--helix-radius-full);
1025
+ background: transparent;
1026
+ transition: background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
1027
+ }
1028
+ [data-helix-part="chip-shell"][data-size="s"] [data-helix-part="chip-dismiss"]::before {
1029
+ width: var(--helix-primitive-size-125);
1030
+ height: var(--helix-primitive-size-125);
1031
+ }
1032
+ [data-helix-part="chip-dismiss"]:hover:not(:disabled) { color: var(--helix-color-text-neutral); }
1033
+ [data-helix-part="chip-dismiss"]:hover:not(:disabled)::before { background-color: var(--helix-color-fill-surface-dark); }
1034
+ [data-helix-part="chip-dismiss"]:focus-visible::before {
1035
+ outline: 2px solid var(--helix-color-border-focus);
1036
+ outline-offset: 2px;
1037
+ }
1038
+ /* Real disabled color, not opacity — .ai/maps/patterns/disabled-state.md. */
1039
+ [data-helix-part="chip-dismiss"]:disabled {
1040
+ cursor: not-allowed;
1041
+ color: var(--helix-color-text-disabled);
1042
+ }
1043
+
1044
+ /* ════════════════════════════════════════════════════════════════════════
1045
+ CHIP GROUP — just the chips side by side (no visible header): a wrapping
1046
+ row of real Chips, 4px apart in both directions (group-spacing.md).
1047
+ Semantic token directly — no component tokens of its own.
1048
+ ════════════════════════════════════════════════════════════════════════ */
1049
+
1050
+ [data-helix-part="chip-group"] {
1051
+ display: flex;
1052
+ flex-wrap: wrap;
1053
+ gap: var(--helix-spacing-2xs);
1054
+ }
1055
+
1056
+ /* ════════════════════════════════════════════════════════════════════════
1057
+ TEXTAREA
1058
+ Contract: contracts/components/Textarea.json
1059
+ Tokens: --helix-textarea-*
1060
+ ════════════════════════════════════════════════════════════════════════ */
1061
+
1062
+ [data-helix-part="textarea-root"] {
1063
+ display: flex;
1064
+ flex-direction: column;
1065
+ gap: var(--helix-textarea-gap);
1066
+ /* Every form field shares one width and never grows or shrinks with its content (owner's rule 2026-10-21,
1067
+ contracts/figma-conversion.json → patterns.form-field.width); fullWidth fills the container. A per-component
1068
+ width, not a token (CLAUDE.md token policy: widths are a component characteristic). */
1069
+ width: 320px;
1070
+ max-width: 100%;
1071
+ }
1072
+ [data-helix-part="textarea-root"][data-full-width] { width: 100%; }
1073
+
1074
+ [data-helix-part="textarea-label"] {
1075
+ font-family: var(--helix-textStyle-body-m-medium-fontFamily); /* the one form label — same as checkbox-group/radio legends */
1076
+ font-size: var(--helix-textarea-text-labelFontSize);
1077
+ font-weight: var(--helix-textarea-text-labelFontWeight);
1078
+ color: var(--helix-textarea-text-label);
1079
+ line-height: var(--helix-textStyle-body-m-medium-lineHeight);
1080
+ }
1081
+ [data-helix-part="textarea-required"],
1082
+ [data-helix-part="select-required"],
1083
+ [data-helix-part="multi-select-required"] {
1084
+ color: var(--helix-color-text-danger);
1085
+ margin-left: var(--helix-spacing-3xs);
1086
+ }
1087
+ /* Disabled dims every text part — .ai/maps/patterns/disabled-state.md */
1088
+ [data-helix-part="textarea-root"][data-disabled] :is([data-helix-part="textarea-label"], [data-helix-part="textarea-required"], [data-helix-part="textarea-description"], [data-helix-part="textarea-counter"]) {
1089
+ color: var(--helix-textarea-text-disabled);
1090
+ }
1091
+
1092
+ [data-helix-part="textarea-wrapper"] {
1093
+ position: relative;
1094
+ background-color: var(--helix-textarea-fill-default);
1095
+ border: var(--helix-borderWidth-thin) solid var(--helix-textarea-border-default);
1096
+ border-radius: var(--helix-textarea-radius);
1097
+ transition:
1098
+ border-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
1099
+ border-width var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
1100
+ box-shadow var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
1101
+ }
1102
+ /* :not(:focus-within) — same specificity fix as Input's own hover rule above. */
1103
+ [data-helix-part="textarea-wrapper"]:hover:not([data-disabled]):not([data-invalid]):not(:focus-within) {
1104
+ border-color: var(--helix-textarea-border-hover);
1105
+ }
1106
+ [data-helix-part="textarea-wrapper"]:focus-within:not([data-invalid]) {
1107
+ border-color: var(--helix-textarea-border-focus);
1108
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--helix-textarea-border-focus) 20%, transparent);
1109
+ }
1110
+ [data-helix-part="textarea-wrapper"][data-invalid] {
1111
+ border-color: var(--helix-textarea-border-invalid);
1112
+ }
1113
+ [data-helix-part="textarea-wrapper"][data-invalid]:focus-within {
1114
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--helix-textarea-border-invalid) 20%, transparent);
1115
+ }
1116
+ [data-helix-part="textarea-wrapper"][data-disabled] {
1117
+ background-color: var(--helix-textarea-fill-disabled);
1118
+ border-color: var(--helix-textarea-border-disabled);
1119
+ cursor: not-allowed;
1120
+ }
1121
+
1122
+ [data-helix-part="textarea-field"] {
1123
+ display: block;
1124
+ width: 100%;
1125
+ background: transparent;
1126
+ border: none;
1127
+ outline: none;
1128
+ color: var(--helix-textarea-text-value);
1129
+ font-family: inherit;
1130
+ font-size: var(--helix-textarea-text-valueFontSize-m);
1131
+ line-height: var(--helix-lineHeight-m);
1132
+ padding: var(--helix-primitive-spacing-75);
1133
+ min-width: 0;
1134
+ min-height: var(--helix-textarea-height);
1135
+ box-sizing: border-box;
1136
+ resize: vertical;
1137
+ }
1138
+ [data-helix-part="textarea-field"][data-resize="none"] { resize: none; }
1139
+ [data-helix-part="textarea-field"][data-resize="horizontal"] { resize: horizontal; }
1140
+ [data-helix-part="textarea-field"][data-resize="both"] { resize: both; }
1141
+ [data-helix-part="textarea-field"]::placeholder { color: var(--helix-textarea-text-placeholder); }
1142
+ [data-helix-part="textarea-field"]:disabled,
1143
+ [data-helix-part="textarea-field"]:disabled::placeholder { cursor: not-allowed; color: var(--helix-textarea-text-disabled); }
1144
+
1145
+ [data-helix-part="textarea-counter"] {
1146
+ position: absolute;
1147
+ bottom: var(--helix-primitive-spacing-50);
1148
+ right: var(--helix-primitive-spacing-75);
1149
+ font-size: var(--helix-textarea-text-counterFontSize);
1150
+ color: var(--helix-textarea-text-counter);
1151
+ pointer-events: none;
1152
+ }
1153
+
1154
+ [data-helix-part="textarea-description"] {
1155
+ font-size: var(--helix-textarea-text-descriptionFontSize);
1156
+ color: var(--helix-textarea-text-description);
1157
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
1158
+ }
1159
+ [data-helix-part="textarea-error"] {
1160
+ font-size: var(--helix-textarea-text-errorFontSize);
1161
+ color: var(--helix-textarea-text-error);
1162
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
1163
+ }
1164
+
1165
+
1166
+ /* ════════════════════════════════════════════════════════════════════════
1167
+ SELECT
1168
+ Contract: contracts/components/Select.json
1169
+ Tokens: --helix-select-*
1170
+ ════════════════════════════════════════════════════════════════════════ */
1171
+
1172
+ /* A plain flex gap works here — label→trigger and trigger→description are both 8px per the
1173
+ form-field-spacing pattern (.ai/maps/patterns/form-field-spacing.md), so one shared value
1174
+ serves both without needing per-element margins. */
1175
+ [data-helix-part="select-root"] {
1176
+ display: flex;
1177
+ flex-direction: column;
1178
+ gap: var(--helix-select-gap);
1179
+ /* Every form field shares one width and never grows or shrinks with its content (owner's rule 2026-10-21,
1180
+ contracts/figma-conversion.json → patterns.form-field.width); fullWidth fills the container. A per-component
1181
+ width, not a token (CLAUDE.md token policy: widths are a component characteristic). */
1182
+ width: 320px;
1183
+ max-width: 100%;
1184
+ }
1185
+ [data-helix-part="select-root"][data-full-width] { width: 100%; }
1186
+
1187
+ [data-helix-part="select-label"] {
1188
+ font-family: var(--helix-textStyle-body-m-medium-fontFamily); /* the one form label — same as checkbox-group/radio legends */
1189
+ font-size: var(--helix-select-text-labelFontSize);
1190
+ font-weight: var(--helix-select-text-labelFontWeight);
1191
+ color: var(--helix-select-text-label);
1192
+ line-height: var(--helix-textStyle-body-m-medium-lineHeight);
1193
+ }
1194
+ /* Disabled dims every text part — .ai/maps/patterns/disabled-state.md */
1195
+ [data-helix-part="select-root"][data-disabled] :is([data-helix-part="select-label"], [data-helix-part="select-required"], [data-helix-part="select-description"]) {
1196
+ color: var(--helix-select-text-disabled);
1197
+ }
1198
+
1199
+ [data-helix-part="select-wrapper"] {
1200
+ position: relative;
1201
+ display: flex;
1202
+ }
1203
+ /* Invisible native input for form submit + required validation — pinned to the field's bottom
1204
+ edge so the browser's "fill in this field" bubble points at the Select, not the page corner. */
1205
+ [data-helix-part="select-native"] {
1206
+ position: absolute;
1207
+ left: 0;
1208
+ bottom: 0;
1209
+ width: 100%;
1210
+ height: 1px;
1211
+ padding: 0;
1212
+ margin: 0;
1213
+ border-width: 0;
1214
+ opacity: 0;
1215
+ pointer-events: none;
1216
+ }
1217
+ [data-helix-part="select-wrapper"][data-full-width],
1218
+ [data-helix-part="select-root"][data-full-width] [data-helix-part="select-wrapper"] {
1219
+ width: 100%;
1220
+ }
1221
+
1222
+ [data-helix-part="select-trigger"] {
1223
+ appearance: none;
1224
+ -webkit-appearance: none;
1225
+ display: flex;
1226
+ align-items: center;
1227
+ width: 100%;
1228
+ background-color: var(--helix-select-fill-default);
1229
+ border: var(--helix-borderWidth-thin) solid var(--helix-select-border-default);
1230
+ border-radius: var(--helix-select-radius);
1231
+ color: var(--helix-select-text-value);
1232
+ font-family: inherit;
1233
+ font-size: var(--helix-select-text-valueFontSize);
1234
+ height: var(--helix-select-height);
1235
+ padding: 0 var(--helix-primitive-spacing-250) 0 var(--helix-primitive-spacing-75);
1236
+ text-align: left;
1237
+ cursor: pointer;
1238
+ outline: none;
1239
+ transition:
1240
+ border-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
1241
+ border-width var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
1242
+ box-shadow var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
1243
+ }
1244
+ /* Own block, not inline text — lets the label truncate with an ellipsis inside a fixed-width
1245
+ trigger instead of overflowing or forcing the button (and everything measured from it,
1246
+ including the anchored Menu) to grow with a long option's label. */
1247
+ [data-helix-part="select-trigger-label"] {
1248
+ display: block;
1249
+ min-width: 0;
1250
+ flex: 1;
1251
+ overflow: hidden;
1252
+ white-space: nowrap;
1253
+ text-overflow: ellipsis;
1254
+ }
1255
+ /* :not([aria-expanded="true"]) and :not(:focus-visible) — without them, hover's higher
1256
+ specificity (3 compound selectors vs. 2) silently beat the open/focus rule below whenever the
1257
+ mouse stayed over an opened trigger, turning the border gray instead of staying blue. */
1258
+ [data-helix-part="select-wrapper"]:not([data-invalid]) [data-helix-part="select-trigger"]:hover:not(:disabled):not([aria-expanded="true"]):not(:focus-visible) {
1259
+ border-color: var(--helix-select-border-hover);
1260
+ }
1261
+ /* Same focus treatment on open as on focus — a hand-rolled trigger's "open" state IS its focus
1262
+ state (real DOM focus never leaves the button; see Select.tsx/ADR-013), so both share one rule
1263
+ rather than the open state getting a weaker one-off. */
1264
+ [data-helix-part="select-trigger"]:focus-visible,
1265
+ [data-helix-part="select-trigger"][aria-expanded="true"] {
1266
+ border-color: var(--helix-select-border-focus);
1267
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--helix-select-border-focus) 20%, transparent);
1268
+ }
1269
+ [data-helix-part="select-wrapper"][data-invalid] [data-helix-part="select-trigger"] {
1270
+ border-color: var(--helix-select-border-invalid);
1271
+ }
1272
+ [data-helix-part="select-trigger"]:disabled {
1273
+ background-color: var(--helix-select-fill-disabled);
1274
+ border-color: var(--helix-select-border-disabled);
1275
+ color: var(--helix-select-text-disabled);
1276
+ cursor: not-allowed;
1277
+ }
1278
+ [data-helix-part="select-trigger"][data-placeholder] {
1279
+ color: var(--helix-select-text-placeholder);
1280
+ }
1281
+ [data-helix-part="select-trigger"][data-placeholder]:disabled {
1282
+ color: var(--helix-select-text-disabled);
1283
+ }
1284
+ [data-helix-part="select-trigger"]:disabled ~ [data-helix-part="select-chevron"],
1285
+ [data-helix-part="multi-select-field"][data-disabled] [data-helix-part="multi-select-chevron"] {
1286
+ color: var(--helix-select-icon-disabled);
1287
+ }
1288
+
1289
+ [data-helix-part="select-chevron"] {
1290
+ position: absolute;
1291
+ right: var(--helix-primitive-spacing-75);
1292
+ top: 50%;
1293
+ transform: translateY(-50%) scaleY(1);
1294
+ transform-origin: center;
1295
+ color: var(--helix-select-icon-default);
1296
+ pointer-events: none;
1297
+ display: flex;
1298
+ align-items: center;
1299
+ transition: transform var(--helix-select-duration-chevron) var(--helix-select-easing-collapse);
1300
+ }
1301
+ [data-helix-part="select-trigger"][aria-expanded="true"] ~ [data-helix-part="select-chevron"] {
1302
+ transform: translateY(-50%) scaleY(-1);
1303
+ transition: transform var(--helix-select-duration-chevron) var(--helix-select-easing);
1304
+ }
1305
+ @media (prefers-reduced-motion: reduce) {
1306
+ [data-helix-part="select-chevron"] { transition: none !important; }
1307
+ }
1308
+
1309
+ [data-helix-part="select-description"] {
1310
+ font-size: var(--helix-select-text-descriptionFontSize);
1311
+ color: var(--helix-select-text-description);
1312
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
1313
+ }
1314
+ [data-helix-part="select-error"] {
1315
+ font-size: var(--helix-select-text-errorFontSize);
1316
+ color: var(--helix-select-text-error);
1317
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
1318
+ }
1319
+
1320
+
1321
+ /* ════════════════════════════════════════════════════════════════════════
1322
+ MULTI SELECT
1323
+ Contract: contracts/components/MultiSelect.json · ADR-019
1324
+ Tokens: --helix-select-* (same field as Select, shared on purpose — ADR-019) + Chip's own
1325
+ The field is a container (chips + a combobox button), not a button: the chips' × can't nest
1326
+ inside a <button>. Chip s (24px) centered in the 32px field = 4px from the outer edge.
1327
+ ════════════════════════════════════════════════════════════════════════ */
1328
+
1329
+ [data-helix-part="multi-select-root"] {
1330
+ display: flex;
1331
+ flex-direction: column;
1332
+ gap: var(--helix-select-gap);
1333
+ /* Every form field shares one width and never grows or shrinks with its content (owner's rule 2026-10-21,
1334
+ contracts/figma-conversion.json → patterns.form-field.width); fullWidth fills the container. A per-component
1335
+ width, not a token (CLAUDE.md token policy: widths are a component characteristic). */
1336
+ width: 320px;
1337
+ max-width: 100%;
1338
+ }
1339
+ [data-helix-part="multi-select-root"][data-full-width] { width: 100%; }
1340
+
1341
+ [data-helix-part="multi-select-label"] {
1342
+ font-family: var(--helix-textStyle-body-m-medium-fontFamily); /* the one form label — same as checkbox-group/radio legends */
1343
+ font-size: var(--helix-select-text-labelFontSize);
1344
+ font-weight: var(--helix-select-text-labelFontWeight);
1345
+ color: var(--helix-select-text-label);
1346
+ line-height: var(--helix-textStyle-body-m-medium-lineHeight);
1347
+ }
1348
+ /* Disabled dims every text part — .ai/maps/patterns/disabled-state.md (MultiSelect shares Select's tokens) */
1349
+ [data-helix-part="multi-select-root"][data-disabled] :is([data-helix-part="multi-select-label"], [data-helix-part="multi-select-required"], [data-helix-part="multi-select-description"]) {
1350
+ color: var(--helix-select-text-disabled);
1351
+ }
1352
+
1353
+ [data-helix-part="multi-select-field"] {
1354
+ position: relative;
1355
+ display: flex;
1356
+ flex-wrap: wrap;
1357
+ align-items: center;
1358
+ column-gap: var(--helix-spacing-2xs);
1359
+ row-gap: var(--helix-spacing-2xs);
1360
+ box-sizing: border-box;
1361
+ min-height: var(--helix-select-height);
1362
+ /* Chips centered in the 32px field: padding = (field − chip) / 2 − border, i.e. 4px from the OUTER
1363
+ edge on every side. The chevron side keeps Select's own trailing room. */
1364
+ padding: calc((var(--helix-select-height) - var(--helix-chip-height-s)) / 2 - var(--helix-borderWidth-thin))
1365
+ var(--helix-primitive-spacing-250)
1366
+ calc((var(--helix-select-height) - var(--helix-chip-height-s)) / 2 - var(--helix-borderWidth-thin))
1367
+ calc((var(--helix-select-height) - var(--helix-chip-height-s)) / 2 - var(--helix-borderWidth-thin));
1368
+ background-color: var(--helix-select-fill-default);
1369
+ border: var(--helix-borderWidth-thin) solid var(--helix-select-border-default);
1370
+ border-radius: var(--helix-select-radius);
1371
+ cursor: pointer;
1372
+ transition:
1373
+ border-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base),
1374
+ box-shadow var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
1375
+ }
1376
+ [data-helix-part="multi-select-root"][data-full-width] [data-helix-part="multi-select-field"] { width: 100%; }
1377
+
1378
+ [data-helix-part="multi-select-field"]:hover:not([data-disabled]):not([data-invalid]):not([data-open]):not(:has([data-helix-part="multi-select-trigger"]:focus-visible)) {
1379
+ border-color: var(--helix-select-border-hover);
1380
+ }
1381
+ /* Focus/open = Select's treatment (blue border + glow). The border keeps its width — only its color
1382
+ changes (border-always.md) — so the chips never shift and no padding compensation is needed. */
1383
+ [data-helix-part="multi-select-field"]:has([data-helix-part="multi-select-trigger"]:focus-visible),
1384
+ [data-helix-part="multi-select-field"][data-open] {
1385
+ border-color: var(--helix-select-border-focus);
1386
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--helix-select-border-focus) 20%, transparent);
1387
+ }
1388
+ [data-helix-part="multi-select-field"][data-invalid]:not([data-open]):not(:has([data-helix-part="multi-select-trigger"]:focus-visible)) {
1389
+ border-color: var(--helix-select-border-invalid);
1390
+ }
1391
+ [data-helix-part="multi-select-field"][data-disabled] {
1392
+ background-color: var(--helix-select-fill-disabled);
1393
+ border-color: var(--helix-select-border-disabled);
1394
+ cursor: not-allowed;
1395
+ }
1396
+
1397
+ [data-helix-part="multi-select-chip"] { display: inline-flex; }
1398
+
1399
+ /* The combobox fills whatever room the chips leave on the line; same height as a chip so a row never
1400
+ grows because of it. With no chips, its text lines up with Select's (12px inside the border). */
1401
+ [data-helix-part="multi-select-trigger"] {
1402
+ appearance: none;
1403
+ -webkit-appearance: none;
1404
+ flex: 1;
1405
+ min-width: 40px; /* room to click past the last chip — per-component min-width, not tokenized (CLAUDE.md) */
1406
+ height: var(--helix-chip-height-s);
1407
+ /* With no chips, the placeholder starts 12px inside the border like Select's text. */
1408
+ padding: 0 0 0 calc(var(--helix-primitive-spacing-75) - (var(--helix-select-height) - var(--helix-chip-height-s)) / 2 + var(--helix-borderWidth-thin));
1409
+ border: none;
1410
+ background: transparent;
1411
+ color: var(--helix-select-text-value);
1412
+ font-family: inherit;
1413
+ font-size: var(--helix-select-text-valueFontSize);
1414
+ text-align: left;
1415
+ cursor: pointer;
1416
+ outline: none;
1417
+ }
1418
+ [data-helix-part="multi-select-field"][data-has-value] [data-helix-part="multi-select-trigger"] { padding-left: 0; }
1419
+ [data-helix-part="multi-select-trigger"]:disabled,
1420
+ [data-helix-part="multi-select-trigger"]:disabled [data-helix-part="multi-select-placeholder"] { cursor: not-allowed; color: var(--helix-select-text-disabled); }
1421
+
1422
+ [data-helix-part="multi-select-placeholder"] {
1423
+ display: block;
1424
+ overflow: hidden;
1425
+ white-space: nowrap;
1426
+ text-overflow: ellipsis;
1427
+ color: var(--helix-select-text-placeholder);
1428
+ }
1429
+
1430
+ [data-helix-part="multi-select-chevron"] {
1431
+ position: absolute;
1432
+ right: var(--helix-primitive-spacing-75);
1433
+ top: 50%;
1434
+ transform: translateY(-50%) scaleY(1);
1435
+ transform-origin: center;
1436
+ color: var(--helix-select-icon-default);
1437
+ pointer-events: none;
1438
+ display: flex;
1439
+ align-items: center;
1440
+ transition: transform var(--helix-select-duration-chevron) var(--helix-select-easing-collapse);
1441
+ }
1442
+ [data-helix-part="multi-select-field"][data-open] [data-helix-part="multi-select-chevron"] {
1443
+ transform: translateY(-50%) scaleY(-1);
1444
+ transition: transform var(--helix-select-duration-chevron) var(--helix-select-easing);
1445
+ }
1446
+ @media (prefers-reduced-motion: reduce) {
1447
+ [data-helix-part="multi-select-chevron"] { transition: none !important; }
1448
+ }
1449
+
1450
+ [data-helix-part="multi-select-native"] {
1451
+ position: absolute;
1452
+ left: 0;
1453
+ bottom: 0;
1454
+ width: 100%;
1455
+ height: 1px;
1456
+ padding: 0;
1457
+ margin: 0;
1458
+ border-width: 0;
1459
+ opacity: 0;
1460
+ pointer-events: none;
1461
+ }
1462
+
1463
+ [data-helix-part="multi-select-description"] {
1464
+ font-size: var(--helix-select-text-descriptionFontSize);
1465
+ color: var(--helix-select-text-description);
1466
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
1467
+ }
1468
+ [data-helix-part="multi-select-error"] {
1469
+ font-size: var(--helix-select-text-errorFontSize);
1470
+ color: var(--helix-select-text-error);
1471
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
1472
+ }
1473
+
1474
+
1475
+ /* ════════════════════════════════════════════════════════════════════════
1476
+ MENU
1477
+ Contract: contracts/components/Menu.json
1478
+ Tokens: --helix-menu-*
1479
+ Portaled to document.body (Menu.tsx) — positioned via inline style computed
1480
+ by usePosition(), not CSS. See ADR-013.
1481
+ ════════════════════════════════════════════════════════════════════════ */
1482
+
1483
+ [data-helix-part="menu"] {
1484
+ background: var(--helix-menu-fill);
1485
+ border: var(--helix-borderWidth-thin) solid var(--helix-menu-border);
1486
+ border-radius: var(--helix-menu-radius);
1487
+ box-shadow: var(--helix-menu-shadow);
1488
+ padding: var(--helix-menu-padding);
1489
+ z-index: var(--helix-primitive-zIndex-dropdown);
1490
+ display: flex;
1491
+ flex-direction: column;
1492
+ max-height: 320px;
1493
+ overflow-y: auto;
1494
+ /* Grows from its trigger (transitions.dev "menu dropdown"): it always opens below the anchor at the
1495
+ anchor's width (ADR-013), so the origin is the top edge's centre. Opens from scale-enter over
1496
+ duration-open; closes to the near-resting scale-exit over the shorter duration-close, while
1497
+ Menu.tsx keeps it mounted (data-state="closing"). The global reduced-motion rule neutralises both. */
1498
+ transform-origin: 50% 0;
1499
+ animation: helix-menu-enter var(--helix-menu-duration-open) var(--helix-menu-easing);
1500
+ }
1501
+ [data-helix-part="menu"][data-state="closing"] {
1502
+ pointer-events: none;
1503
+ animation: helix-menu-exit var(--helix-menu-duration-close) var(--helix-menu-easing) forwards;
1504
+ }
1505
+ @keyframes helix-menu-enter {
1506
+ from { opacity: 0; transform: scale(var(--helix-menu-scale-enter)); }
1507
+ }
1508
+ @keyframes helix-menu-exit {
1509
+ to { opacity: 0; transform: scale(var(--helix-menu-scale-exit)); }
1510
+ }
1511
+ /* Minimum popup width when the options are words — the menu takes its trigger's width, and a
1512
+ narrow trigger (Select has no minimum) would otherwise squeeze the options. Numeric-only lists
1513
+ (data-numeric: 1, 2, 1000…) have no minimum. Per-component min-width, not tokenized (CLAUDE.md). */
1514
+ [data-helix-part="menu"]:not([data-numeric]) { min-width: 150px; }
1515
+
1516
+ /* Full-width divider between groups — bleeds past the menu's own padding via a negative
1517
+ inline margin so it reaches both edges, per review feedback. Asymmetric on purpose: 8px above
1518
+ (to whatever content precedes it) but 16px below (to the group label/title right after it) —
1519
+ both real tokens, not one-off literals. Not rendered before the first group (Menu.tsx only
1520
+ emits one when something already precedes it). */
1521
+ [data-helix-part="menu-group-divider"] {
1522
+ height: 1px;
1523
+ border: none;
1524
+ background: var(--helix-menu-groupDivider-color);
1525
+ margin-top: var(--helix-menu-groupDivider-marginTop);
1526
+ margin-bottom: var(--helix-menu-groupDivider-marginBottom);
1527
+ margin-inline: calc(-1 * var(--helix-menu-padding));
1528
+ flex-shrink: 0;
1529
+ }
1530
+
1531
+ [data-helix-part="menu-group-label"] {
1532
+ padding: 0 var(--helix-menu-item-paddingX) var(--helix-menu-groupLabel-marginBottom);
1533
+ font-size: var(--helix-menu-groupLabel-fontSize);
1534
+ font-weight: var(--helix-menu-groupLabel-fontWeight);
1535
+ color: var(--helix-menu-groupLabel-text);
1536
+ text-transform: uppercase;
1537
+ flex-shrink: 0;
1538
+ }
1539
+ /* The first group has no divider above it to supply spacing (Menu.tsx only renders one before a
1540
+ non-first group), so its label would otherwise sit only the menu's own 4px padding from the top
1541
+ edge. Top up to the same 16px every other group gets below its divider, for visual consistency
1542
+ regardless of position — real tokens, not a literal (matches groupDivider's own marginBottom). */
1543
+ [data-helix-part="menu-group-label"]:first-child {
1544
+ margin-top: calc(var(--helix-menu-groupDivider-marginBottom) - var(--helix-menu-padding));
1545
+ }
1546
+
1547
+ [data-helix-part="menu-item"] {
1548
+ display: flex;
1549
+ align-items: center;
1550
+ /* min-height, not height — a fixed height was clipping the hover/selected highlight to one
1551
+ line whenever an option's label wrapped to two (e.g. "Product Manager"), leaving the
1552
+ second line rendered outside its own highlight box. min-height keeps 24px as the floor and
1553
+ lets the row grow to actually hug wrapped content, per review feedback. */
1554
+ min-height: var(--helix-menu-item-height);
1555
+ padding: var(--helix-menu-item-paddingY) var(--helix-menu-item-paddingX);
1556
+ border-radius: var(--helix-menu-item-radius);
1557
+ border: none;
1558
+ background: transparent;
1559
+ color: var(--helix-menu-item-text);
1560
+ font-family: inherit;
1561
+ font-size: var(--helix-menu-item-fontSize);
1562
+ font-weight: var(--helix-menu-item-fontWeight);
1563
+ line-height: var(--helix-textStyle-body-m-regular-lineHeight); /* Body / m / Regular, as in Figma */
1564
+ text-align: left;
1565
+ width: 100%;
1566
+ cursor: pointer;
1567
+ flex-shrink: 0;
1568
+ margin-bottom: var(--helix-menu-gap);
1569
+ }
1570
+ [data-helix-part="menu-item"]:last-child,
1571
+ [data-helix-part="menu-item"]:has(+ [data-helix-part="menu-group-divider"]) {
1572
+ /* No trailing item-gap directly before the menu's own end or a group divider — the divider
1573
+ supplies its own full 8px margin-top, and stacking the item's 2px gap on top of that would
1574
+ make it 10px instead of the requested 8px. */
1575
+ margin-bottom: 0;
1576
+ }
1577
+ [data-helix-part="menu-item"]:hover:not(:disabled),
1578
+ [data-helix-part="menu-item"][data-active] {
1579
+ background: var(--helix-menu-item-fill-hover);
1580
+ }
1581
+ [data-helix-part="menu-item"][aria-selected="true"] {
1582
+ background: var(--helix-menu-item-fill-selected);
1583
+ color: var(--helix-menu-item-text-selected);
1584
+ font-weight: var(--helix-menu-item-fontWeight-selected);
1585
+ }
1586
+ [data-helix-part="menu-item"][aria-selected="true"]:hover,
1587
+ [data-helix-part="menu-item"][aria-selected="true"][data-active] {
1588
+ background: var(--helix-menu-item-fill-selected);
1589
+ }
1590
+ [data-helix-part="menu-item"]:disabled {
1591
+ color: var(--helix-menu-item-text-disabled);
1592
+ cursor: not-allowed;
1593
+ }
1594
+ /* labelEnd: secondary text on the end edge — muted, tabular figures so values line up down the list.
1595
+ A selected option's labelEnd takes the selected color; a disabled one, the disabled color. */
1596
+ [data-helix-part="menu-item-label"] { flex: 1; min-width: 0; }
1597
+ [data-helix-part="menu-item-label-end"] {
1598
+ flex: none; margin-inline-start: var(--helix-spacing-m);
1599
+ color: var(--helix-color-text-neutral-light);
1600
+ font-weight: var(--helix-textStyle-body-s-regular-fontWeight);
1601
+ font-variant-numeric: tabular-nums;
1602
+ }
1603
+ [data-helix-part="menu-item"][aria-selected="true"] [data-helix-part="menu-item-label-end"],
1604
+ [data-helix-part="menu-item"]:disabled [data-helix-part="menu-item-label-end"] { color: inherit; }
1605
+
1606
+
1607
+ /* ════════════════════════════════════════════════════════════════════════
1608
+ CHECKBOX
1609
+ Contract: contracts/components/Checkbox.json
1610
+ Tokens: --helix-checkbox-*
1611
+ ════════════════════════════════════════════════════════════════════════ */
1612
+
1613
+ [data-helix-part="checkbox-root"] {
1614
+ display: flex;
1615
+ flex-direction: column;
1616
+ gap: var(--helix-checkbox-gapDescription);
1617
+ }
1618
+
1619
+ [data-helix-part="checkbox-label"] {
1620
+ display: inline-flex;
1621
+ align-items: flex-start;
1622
+ gap: var(--helix-primitive-spacing-50);
1623
+ cursor: pointer;
1624
+ user-select: none;
1625
+ }
1626
+ /* Real disabled colors, not opacity — .ai/maps/patterns/disabled-state.md */
1627
+ [data-helix-part="checkbox-root"][data-disabled] [data-helix-part="checkbox-label"] {
1628
+ cursor: not-allowed;
1629
+ color: var(--helix-checkbox-text-disabled);
1630
+ }
1631
+
1632
+ /* sr-only hidden native input */
1633
+ [data-helix-part="checkbox-input"] {
1634
+ position: absolute;
1635
+ width: 1px;
1636
+ height: 1px;
1637
+ padding: 0;
1638
+ margin: -1px;
1639
+ overflow: hidden;
1640
+ clip: rect(0, 0, 0, 0);
1641
+ white-space: nowrap;
1642
+ border-width: 0;
1643
+ }
1644
+
1645
+ [data-helix-part="checkbox-control"] {
1646
+ flex-shrink: 0;
1647
+ width: var(--helix-checkbox-size);
1648
+ height: var(--helix-checkbox-size);
1649
+ border-radius: var(--helix-checkbox-radius);
1650
+ border: var(--helix-borderWidth-thin) solid var(--helix-checkbox-border-default);
1651
+ background: var(--helix-checkbox-fill-default);
1652
+ display: flex;
1653
+ align-items: center;
1654
+ justify-content: center;
1655
+ /* Centered on the label's first line, derived from tokens (14px × 1.5 = 21px line → 2.5px), not a
1656
+ raw 1px: Figma draws it as a 21px-tall box with the control centered. */
1657
+ margin-top: calc((var(--helix-checkbox-text-labelFontSize) * var(--helix-checkbox-text-labelLineHeight) - var(--helix-checkbox-size)) / 2);
1658
+ transition:
1659
+ background-color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base),
1660
+ border-color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base),
1661
+ border-width var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base);
1662
+ }
1663
+
1664
+ /* Hover — input not checked */
1665
+ [data-helix-part="checkbox-label"]:hover [data-helix-part="checkbox-input"]:not(:checked):not([data-indeterminate]):not(:disabled) + [data-helix-part="checkbox-control"] {
1666
+ border-color: var(--helix-checkbox-border-hover);
1667
+ }
1668
+
1669
+ /* Checked */
1670
+ [data-helix-part="checkbox-input"]:checked + [data-helix-part="checkbox-control"],
1671
+ [data-helix-part="checkbox-input"][data-indeterminate] + [data-helix-part="checkbox-control"] {
1672
+ /* Indeterminate fills like checked — without it the box stayed white and its white minus mark was
1673
+ invisible. The disabled rule below still wins (same specificity, later). */
1674
+ background: var(--helix-checkbox-fill-checked);
1675
+ border-color: var(--helix-checkbox-border-checked);
1676
+ }
1677
+ /* Indeterminate hovers like checked (it is filled like checked) — it used to get the unchecked gray border. */
1678
+ [data-helix-part="checkbox-label"]:hover [data-helix-part="checkbox-input"]:is(:checked, [data-indeterminate]):not(:disabled) + [data-helix-part="checkbox-control"] {
1679
+ background: var(--helix-checkbox-fill-checked-hover);
1680
+ border-color: var(--helix-checkbox-fill-checked-hover);
1681
+ }
1682
+
1683
+ /* Focus-visible ring */
1684
+ [data-helix-part="checkbox-input"]:focus-visible + [data-helix-part="checkbox-control"] {
1685
+ outline: 2px solid var(--helix-checkbox-border-focus);
1686
+ outline-offset: 2px;
1687
+ }
1688
+
1689
+ /* Invalid — hover never takes the invalid border away (the fill still darkens when checked) */
1690
+ [data-helix-part="checkbox-root"][data-invalid] [data-helix-part="checkbox-control"],
1691
+ [data-helix-part="checkbox-root"][data-invalid] [data-helix-part="checkbox-label"]:hover [data-helix-part="checkbox-input"]:not(:disabled) + [data-helix-part="checkbox-control"] {
1692
+ border-color: var(--helix-checkbox-border-invalid);
1693
+ }
1694
+
1695
+ /* Disabled — real gray fill/border, wins over :checked's colors (placed after it in source order,
1696
+ same specificity). .ai/maps/patterns/disabled-state.md */
1697
+ [data-helix-part="checkbox-input"]:disabled + [data-helix-part="checkbox-control"] {
1698
+ background: var(--helix-checkbox-fill-disabled);
1699
+ border-color: var(--helix-checkbox-border-disabled);
1700
+ }
1701
+
1702
+ /* Pop-in via CSS transform/opacity, not Motion — the icon toggling needs to track :checked on the
1703
+ native input, which correctly reflects both controlled AND uncontrolled usage on its own (that's
1704
+ exactly the CSS mechanism Checkbox already relies on). Driving this with Motion would mean adding a
1705
+ JS-tracked boolean mirroring the input's checked state, which is precisely the kind of extra state
1706
+ layer that introduced the real uncontrolled-mode bug found and fixed in Switch earlier — not worth
1707
+ that risk here for a checkmark pop, where CSS already does the job correctly and can't drift out of
1708
+ sync with the real input. display:none couldn't transition at all before; scale+opacity can. */
1709
+ [data-helix-part="checkbox-indicator"] {
1710
+ color: var(--helix-checkbox-icon-color);
1711
+ display: flex;
1712
+ align-items: center;
1713
+ line-height: 1;
1714
+ transform: scale(0);
1715
+ opacity: 0;
1716
+ transition:
1717
+ transform var(--helix-primitive-duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1),
1718
+ opacity var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base);
1719
+ }
1720
+ [data-helix-part="checkbox-input"]:checked + [data-helix-part="checkbox-control"] [data-helix-part="checkbox-indicator"],
1721
+ [data-helix-part="checkbox-input"][data-indeterminate] + [data-helix-part="checkbox-control"] [data-helix-part="checkbox-indicator"] {
1722
+ transform: scale(1);
1723
+ opacity: 1;
1724
+ }
1725
+ /* Disabled + checked/indeterminate — the checkmark itself also needs its own disabled color,
1726
+ not the inverse (white) it uses at rest; wins by coming after in source order. */
1727
+ [data-helix-part="checkbox-input"]:disabled + [data-helix-part="checkbox-control"] [data-helix-part="checkbox-indicator"] {
1728
+ color: var(--helix-checkbox-icon-disabled);
1729
+ }
1730
+
1731
+ [data-helix-part="checkbox-text"] {
1732
+ font-family: var(--helix-checkbox-text-labelFontFamily);
1733
+ font-size: var(--helix-checkbox-text-labelFontSize);
1734
+ font-weight: var(--helix-checkbox-text-labelFontWeight);
1735
+ line-height: var(--helix-checkbox-text-labelLineHeight);
1736
+ color: var(--helix-checkbox-text-label);
1737
+ }
1738
+ /* The required indicator (the `required` prop) — its own part so Figma has a layer for the BOOLEAN. */
1739
+ [data-helix-part="checkbox-required"] {
1740
+ color: var(--helix-color-text-danger);
1741
+ margin-left: var(--helix-spacing-3xs);
1742
+ }
1743
+ /* checkbox-text sets its own color, so the disabled color on checkbox-label above never reached it. */
1744
+ [data-helix-part="checkbox-root"][data-disabled] [data-helix-part="checkbox-text"] {
1745
+ color: var(--helix-checkbox-text-disabled);
1746
+ }
1747
+ /* Disabled dims everything the checkbox says, not just its label: the required mark and the description
1748
+ (both kept their normal colors before — owner's review 2026-10-20). Inactive UI: no contrast minimum (1.4.3). */
1749
+ [data-helix-part="checkbox-root"][data-disabled] [data-helix-part="checkbox-required"],
1750
+ [data-helix-part="checkbox-root"][data-disabled] [data-helix-part="checkbox-description"] {
1751
+ color: var(--helix-checkbox-text-disabled);
1752
+ }
1753
+
1754
+ [data-helix-part="checkbox-description"] {
1755
+ padding-left: calc(var(--helix-checkbox-size) + var(--helix-primitive-spacing-50));
1756
+ font-family: var(--helix-checkbox-text-descriptionFontFamily);
1757
+ font-size: var(--helix-checkbox-text-descriptionFontSize);
1758
+ font-weight: var(--helix-checkbox-text-descriptionFontWeight);
1759
+ line-height: var(--helix-checkbox-text-descriptionLineHeight);
1760
+ color: var(--helix-checkbox-text-description);
1761
+ }
1762
+ [data-helix-part="checkbox-error"] {
1763
+ padding-left: calc(var(--helix-checkbox-size) + var(--helix-primitive-spacing-50));
1764
+ font-family: var(--helix-checkbox-text-descriptionFontFamily);
1765
+ font-size: var(--helix-checkbox-text-descriptionFontSize);
1766
+ font-weight: var(--helix-checkbox-text-descriptionFontWeight);
1767
+ line-height: var(--helix-checkbox-text-descriptionLineHeight);
1768
+ color: var(--helix-checkbox-text-error);
1769
+ }
1770
+
1771
+ /* ════════════════════════════════════════════════════════════════════════
1772
+ CHECKBOX GROUP
1773
+ Contract: contracts/components/CheckboxGroup.json
1774
+ Composes real Checkbox instances internally — no new visual tokens, just
1775
+ fieldset/legend layout reusing the same primitive spacing/typography
1776
+ vocabulary RadioGroup already uses.
1777
+ ════════════════════════════════════════════════════════════════════════ */
1778
+
1779
+ [data-helix-part="checkbox-group"] {
1780
+ border: none;
1781
+ padding: 0;
1782
+ margin: 0;
1783
+ display: flex;
1784
+ flex-direction: column;
1785
+ gap: var(--helix-checkbox-gap);
1786
+ }
1787
+
1788
+ [data-helix-part="checkbox-group-legend"] {
1789
+ font-family: var(--helix-checkbox-text-legendFontFamily);
1790
+ font-size: var(--helix-checkbox-text-legendFontSize);
1791
+ font-weight: var(--helix-checkbox-text-legendFontWeight);
1792
+ /* Same label as every form field (input-label, select-label, multi-select-label...): body-m-medium,
1793
+ text-neutral, the text style's own line-height (as in Figma). No margin-bottom — the group's own 8px gap already separates it
1794
+ from the options (a margin here stacked on top of it, giving 16px). */
1795
+ line-height: var(--helix-textStyle-body-m-medium-lineHeight);
1796
+ color: var(--helix-checkbox-text-label);
1797
+ padding: 0;
1798
+ float: left;
1799
+ width: 100%;
1800
+ }
1801
+ [data-helix-part="checkbox-group-legend"] + * { clear: left; }
1802
+ [data-helix-part="checkbox-group-required"] {
1803
+ color: var(--helix-color-text-danger);
1804
+ margin-left: var(--helix-spacing-3xs);
1805
+ }
1806
+
1807
+ [data-helix-part="checkbox-group-options"] {
1808
+ display: flex;
1809
+ flex-direction: column;
1810
+ gap: var(--helix-primitive-spacing-75);
1811
+ }
1812
+ [data-helix-part="checkbox-group-options"][data-orientation="horizontal"] {
1813
+ flex-direction: row;
1814
+ flex-wrap: wrap;
1815
+ }
1816
+
1817
+ /* Aligned with each option's own text, not with its checkbox square — same left offset the
1818
+ standalone Checkbox's own description/error already use. */
1819
+ [data-helix-part="checkbox-group-description"],
1820
+ [data-helix-part="checkbox-group-error"] {
1821
+ padding-left: calc(var(--helix-checkbox-size) + var(--helix-primitive-spacing-50));
1822
+ font-family: var(--helix-checkbox-text-descriptionFontFamily);
1823
+ font-size: var(--helix-checkbox-text-descriptionFontSize);
1824
+ font-weight: var(--helix-checkbox-text-descriptionFontWeight);
1825
+ line-height: var(--helix-checkbox-text-descriptionLineHeight);
1826
+ }
1827
+ [data-helix-part="checkbox-group-description"] { color: var(--helix-checkbox-text-description); }
1828
+ [data-helix-part="checkbox-group-error"] { color: var(--helix-checkbox-text-error); }
1829
+ /* Disabled dims every text part — .ai/maps/patterns/disabled-state.md */
1830
+ [data-helix-part="checkbox-group"][data-disabled] :is([data-helix-part="checkbox-group-legend"], [data-helix-part="checkbox-group-required"], [data-helix-part="checkbox-group-description"]) {
1831
+ color: var(--helix-checkbox-text-disabled);
1832
+ }
1833
+
1834
+
1835
+ /* ════════════════════════════════════════════════════════════════════════
1836
+ RADIO GROUP
1837
+ Contract: contracts/components/RadioGroup.json
1838
+ Tokens: --helix-radio-*
1839
+ ════════════════════════════════════════════════════════════════════════ */
1840
+
1841
+ [data-helix-part="radio-group"] {
1842
+ border: none;
1843
+ padding: 0;
1844
+ margin: 0;
1845
+ display: flex;
1846
+ flex-direction: column;
1847
+ gap: var(--helix-radio-gap);
1848
+ }
1849
+
1850
+ [data-helix-part="radio-legend"] {
1851
+ font-family: var(--helix-radio-text-legendFontFamily);
1852
+ font-size: var(--helix-radio-text-legendFontSize);
1853
+ font-weight: var(--helix-radio-text-legendFontWeight);
1854
+ /* Same label as every form field (input-label, select-label, multi-select-label...): body-m-medium,
1855
+ text-neutral, the text style's own line-height (as in Figma). No margin-bottom — the group's own 8px gap already separates it
1856
+ from the options (a margin here stacked on top of it, giving 16px). */
1857
+ line-height: var(--helix-textStyle-body-m-medium-lineHeight);
1858
+ color: var(--helix-radio-text-label);
1859
+ padding: 0;
1860
+ float: left;
1861
+ width: 100%;
1862
+ }
1863
+ [data-helix-part="radio-legend"] + * { clear: left; }
1864
+ [data-helix-part="radio-required"] {
1865
+ color: var(--helix-color-text-danger);
1866
+ margin-left: var(--helix-spacing-3xs);
1867
+ }
1868
+
1869
+ [data-helix-part="radio-options"] {
1870
+ display: flex;
1871
+ flex-direction: column;
1872
+ gap: var(--helix-primitive-spacing-75);
1873
+ }
1874
+ [data-helix-part="radio-options"][data-orientation="horizontal"] {
1875
+ flex-direction: row;
1876
+ flex-wrap: wrap;
1877
+ }
1878
+
1879
+ [data-helix-part="radio-item"] {
1880
+ display: inline-flex;
1881
+ align-items: flex-start;
1882
+ gap: var(--helix-primitive-spacing-50);
1883
+ cursor: pointer;
1884
+ user-select: none;
1885
+ }
1886
+ /* Real disabled colors, not opacity — .ai/maps/patterns/disabled-state.md */
1887
+ [data-helix-part="radio-item"][data-disabled] {
1888
+ cursor: not-allowed;
1889
+ }
1890
+ [data-helix-part="radio-item-required"] {
1891
+ color: var(--helix-color-text-danger);
1892
+ margin-left: var(--helix-spacing-3xs);
1893
+ }
1894
+ [data-helix-part="radio-item"][data-disabled] [data-helix-part="radio-item-label"],
1895
+ [data-helix-part="radio-item"][data-disabled] [data-helix-part="radio-item-required"],
1896
+ [data-helix-part="radio-item"][data-disabled] [data-helix-part="radio-item-description"] {
1897
+ color: var(--helix-radio-text-disabled);
1898
+ }
1899
+
1900
+ /* sr-only native radio */
1901
+ [data-helix-part="radio-input"] {
1902
+ position: absolute;
1903
+ width: 1px;
1904
+ height: 1px;
1905
+ padding: 0;
1906
+ margin: -1px;
1907
+ overflow: hidden;
1908
+ clip: rect(0, 0, 0, 0);
1909
+ white-space: nowrap;
1910
+ border-width: 0;
1911
+ }
1912
+
1913
+ [data-helix-part="radio-control"] {
1914
+ flex-shrink: 0;
1915
+ width: var(--helix-radio-size);
1916
+ height: var(--helix-radio-size);
1917
+ border-radius: 50%;
1918
+ border: var(--helix-borderWidth-thin) solid var(--helix-radio-border-default);
1919
+ background: var(--helix-radio-fill-default);
1920
+ display: flex;
1921
+ align-items: center;
1922
+ justify-content: center;
1923
+ /* Centered on the label's first line, derived from tokens (see checkbox-control). */
1924
+ margin-top: calc((var(--helix-radio-text-labelFontSize) * var(--helix-radio-text-labelLineHeight) - var(--helix-radio-size)) / 2);
1925
+ transition:
1926
+ background-color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base),
1927
+ border-color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base),
1928
+ border-width var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base);
1929
+ }
1930
+
1931
+ [data-helix-part="radio-item"]:hover [data-helix-part="radio-input"]:not(:checked):not(:disabled) + [data-helix-part="radio-control"] {
1932
+ border-color: var(--helix-radio-border-hover);
1933
+ }
1934
+ [data-helix-part="radio-input"]:checked + [data-helix-part="radio-control"] {
1935
+ background: var(--helix-radio-fill-checked);
1936
+ border-color: var(--helix-radio-border-checked);
1937
+ }
1938
+ [data-helix-part="radio-item"]:hover [data-helix-part="radio-input"]:checked:not(:disabled) + [data-helix-part="radio-control"] {
1939
+ background: var(--helix-radio-fill-checked-hover);
1940
+ border-color: var(--helix-radio-fill-checked-hover);
1941
+ }
1942
+ [data-helix-part="radio-input"]:focus-visible + [data-helix-part="radio-control"] {
1943
+ outline: 2px solid var(--helix-radio-border-focus);
1944
+ outline-offset: 2px;
1945
+ }
1946
+ [data-helix-part="radio-group"][data-invalid] [data-helix-part="radio-control"],
1947
+ [data-helix-part="radio-item"][data-invalid] [data-helix-part="radio-control"],
1948
+ /* hover never takes the invalid border away (the fill still darkens when checked) */
1949
+ :is([data-helix-part="radio-group"][data-invalid] [data-helix-part="radio-item"], [data-helix-part="radio-item"][data-invalid]):hover [data-helix-part="radio-input"]:not(:disabled) + [data-helix-part="radio-control"] {
1950
+ border-color: var(--helix-radio-border-invalid);
1951
+ }
1952
+
1953
+ /* Disabled — real gray fill/border, wins over :checked's colors (placed after it in source
1954
+ order, same specificity). .ai/maps/patterns/disabled-state.md */
1955
+ [data-helix-part="radio-input"]:disabled + [data-helix-part="radio-control"] {
1956
+ background: var(--helix-radio-fill-disabled);
1957
+ border-color: var(--helix-radio-border-disabled);
1958
+ }
1959
+ [data-helix-part="radio-input"]:disabled + [data-helix-part="radio-control"] [data-helix-part="radio-dot"] {
1960
+ background: var(--helix-radio-dot-disabled);
1961
+ }
1962
+
1963
+ /* Same reasoning as checkbox-indicator above: CSS transform/opacity, not Motion — :checked already
1964
+ tracks controlled/uncontrolled correctly on its own, no JS state worth adding just for this pop. */
1965
+ [data-helix-part="radio-dot"] {
1966
+ width: 6px;
1967
+ height: 6px;
1968
+ border-radius: 50%;
1969
+ background: var(--helix-radio-dot);
1970
+ display: block;
1971
+ transform: scale(0);
1972
+ transition: transform var(--helix-primitive-duration-fast) cubic-bezier(0.34, 1.56, 0.64, 1);
1973
+ }
1974
+ [data-helix-part="radio-input"]:checked + [data-helix-part="radio-control"] [data-helix-part="radio-dot"] {
1975
+ transform: scale(1);
1976
+ }
1977
+
1978
+ [data-helix-part="radio-item-content"] {
1979
+ display: flex;
1980
+ flex-direction: column;
1981
+ gap: var(--helix-radio-gapDescription);
1982
+ }
1983
+ [data-helix-part="radio-item-label"] {
1984
+ font-family: var(--helix-radio-text-labelFontFamily);
1985
+ font-size: var(--helix-radio-text-labelFontSize);
1986
+ font-weight: var(--helix-radio-text-labelFontWeight);
1987
+ line-height: var(--helix-radio-text-labelLineHeight);
1988
+ color: var(--helix-radio-text-label);
1989
+ }
1990
+ [data-helix-part="radio-item-description"] {
1991
+ font-family: var(--helix-radio-text-descriptionFontFamily);
1992
+ font-size: var(--helix-radio-text-descriptionFontSize);
1993
+ font-weight: var(--helix-radio-text-descriptionFontWeight);
1994
+ line-height: var(--helix-radio-text-descriptionLineHeight);
1995
+ color: var(--helix-radio-text-description);
1996
+ }
1997
+ [data-helix-part="radio-item-error"] {
1998
+ font-family: var(--helix-radio-text-descriptionFontFamily);
1999
+ font-size: var(--helix-radio-text-descriptionFontSize);
2000
+ font-weight: var(--helix-radio-text-descriptionFontWeight);
2001
+ line-height: var(--helix-radio-text-descriptionLineHeight);
2002
+ color: var(--helix-radio-text-error);
2003
+ }
2004
+
2005
+ /* Aligned with each option's own text, not with its radio circle — same left offset the
2006
+ standalone RadioButton's own description already uses. */
2007
+ [data-helix-part="radio-description"],
2008
+ [data-helix-part="radio-error"] {
2009
+ padding-left: calc(var(--helix-radio-size) + var(--helix-primitive-spacing-50));
2010
+ font-family: var(--helix-radio-text-descriptionFontFamily);
2011
+ font-size: var(--helix-radio-text-descriptionFontSize);
2012
+ font-weight: var(--helix-radio-text-descriptionFontWeight);
2013
+ line-height: var(--helix-radio-text-descriptionLineHeight);
2014
+ }
2015
+ [data-helix-part="radio-description"] { color: var(--helix-radio-text-description); }
2016
+ [data-helix-part="radio-error"] { color: var(--helix-radio-text-error); }
2017
+ /* Disabled dims every text part — .ai/maps/patterns/disabled-state.md */
2018
+ [data-helix-part="radio-group"][data-disabled] :is([data-helix-part="radio-legend"], [data-helix-part="radio-required"], [data-helix-part="radio-description"]) {
2019
+ color: var(--helix-radio-text-disabled);
2020
+ }
2021
+
2022
+
2023
+ /* ════════════════════════════════════════════════════════════════════════
2024
+ SWITCH
2025
+ Contract: contracts/components/Switch.json
2026
+ Tokens: --helix-switch-*
2027
+ ════════════════════════════════════════════════════════════════════════ */
2028
+
2029
+ [data-helix-part="switch-root"] {
2030
+ display: flex;
2031
+ flex-direction: column;
2032
+ gap: var(--helix-primitive-spacing-25);
2033
+ }
2034
+
2035
+ [data-helix-part="switch-row"] {
2036
+ display: inline-flex;
2037
+ align-items: center;
2038
+ gap: var(--helix-primitive-spacing-75);
2039
+ }
2040
+
2041
+ [data-helix-part="switch-track"] {
2042
+ appearance: none;
2043
+ position: relative;
2044
+ overflow: hidden;
2045
+ border-radius: var(--helix-radius-full);
2046
+ background: var(--helix-switch-track-fill-off);
2047
+ border: none;
2048
+ cursor: pointer;
2049
+ padding: 0;
2050
+ flex-shrink: 0;
2051
+ transition:
2052
+ background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
2053
+ }
2054
+ [data-helix-part="switch-track"][data-size="s"] {
2055
+ width: var(--helix-switch-width-s);
2056
+ height: var(--helix-switch-height-s);
2057
+ }
2058
+ [data-helix-part="switch-track"][data-size="m"] {
2059
+ width: var(--helix-switch-width-m);
2060
+ height: var(--helix-switch-height-m);
2061
+ }
2062
+ [data-helix-part="switch-track"][aria-checked="false"]:hover:not(:disabled) {
2063
+ background: var(--helix-switch-track-fill-off-hover);
2064
+ }
2065
+ [data-helix-part="switch-track"][aria-checked="true"] {
2066
+ background: var(--helix-switch-track-fill-on);
2067
+ }
2068
+ [data-helix-part="switch-track"][aria-checked="true"]:hover:not(:disabled) {
2069
+ background: var(--helix-switch-track-fill-on-hover);
2070
+ }
2071
+ [data-helix-part="switch-track"]:disabled {
2072
+ background: var(--helix-switch-track-fill-disabled);
2073
+ cursor: not-allowed;
2074
+ opacity: 0.5;
2075
+ }
2076
+ [data-helix-part="switch-track"]:focus-visible {
2077
+ outline: 2px solid var(--helix-switch-border-focus);
2078
+ outline-offset: 2px;
2079
+ }
2080
+
2081
+ /* Position/transform of the thumb is owned by motion.span at the JS layer (Switch.tsx) — see ADR-007
2082
+ and .ai/maps/patterns/motion-effects.md — so this block only styles the thumb's own resting look,
2083
+ never its position. */
2084
+ [data-helix-part="switch-thumb"] {
2085
+ display: block;
2086
+ border-radius: 50%;
2087
+ background: var(--helix-switch-thumb-fill);
2088
+ pointer-events: none;
2089
+ box-shadow: 0 1px 2px rgba(0,0,0,0.2);
2090
+ }
2091
+ [data-helix-part="switch-track"][data-size="s"] [data-helix-part="switch-thumb"] {
2092
+ width: var(--helix-switch-thumb-size-s);
2093
+ height: var(--helix-switch-thumb-size-s);
2094
+ }
2095
+ [data-helix-part="switch-track"][data-size="m"] [data-helix-part="switch-thumb"] {
2096
+ width: var(--helix-switch-thumb-size-m);
2097
+ height: var(--helix-switch-thumb-size-m);
2098
+ }
2099
+
2100
+ [data-helix-part="switch-label"] {
2101
+ font-family: var(--helix-textStyle-body-s-regular-fontFamily); /* "Body / s / Regular" in Figma */
2102
+ font-size: var(--helix-textStyle-body-s-regular-fontSize);
2103
+ color: var(--helix-switch-text-label);
2104
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
2105
+ cursor: pointer;
2106
+ }
2107
+ /* Real disabled color, not opacity — .ai/maps/patterns/disabled-state.md */
2108
+ [data-helix-part="switch-root"][data-disabled] [data-helix-part="switch-label"],
2109
+ [data-helix-part="switch-root"][data-disabled] [data-helix-part="switch-description"] {
2110
+ cursor: not-allowed;
2111
+ color: var(--helix-switch-text-disabled);
2112
+ }
2113
+
2114
+ [data-helix-part="switch-description"] {
2115
+ font-family: var(--helix-textStyle-body-s-regular-fontFamily);
2116
+ font-size: var(--helix-textStyle-body-s-regular-fontSize);
2117
+ color: var(--helix-switch-text-description);
2118
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
2119
+ }
2120
+ [data-helix-part="switch-root"][data-size="s"] [data-helix-part="switch-description"] {
2121
+ padding-left: calc(var(--helix-switch-width-s) + var(--helix-primitive-spacing-75));
2122
+ }
2123
+ [data-helix-part="switch-root"][data-size="m"] [data-helix-part="switch-description"] {
2124
+ padding-left: calc(var(--helix-switch-width-m) + var(--helix-primitive-spacing-75));
2125
+ }
2126
+
2127
+
2128
+ /* ════════════════════════════════════════════════════════════════════════
2129
+ CARD
2130
+ Contract: contracts/components/Card.json
2131
+ Tokens: --helix-card-*
2132
+ ════════════════════════════════════════════════════════════════════════ */
2133
+
2134
+ [data-helix-part="card-root"] {
2135
+ background-color: var(--helix-card-fill);
2136
+ border: 1px solid var(--helix-card-border);
2137
+ border-radius: var(--helix-card-radius);
2138
+ overflow: hidden;
2139
+ /* Each part carries its own spacing (.ai/maps/patterns/show-hide-parts.md): the 24px top lives on
2140
+ the root, so showing/hiding the header never changes the body's padding. */
2141
+ padding-top: var(--helix-card-padding);
2142
+ }
2143
+ [data-helix-part="card-root"][data-padding="none"] {
2144
+ padding-top: 0;
2145
+ }
2146
+
2147
+ [data-helix-part="card-header"] {
2148
+ padding: 0 var(--helix-card-padding) var(--helix-card-header-paddingBottom);
2149
+ font-family: var(--helix-card-header-fontFamily);
2150
+ font-size: var(--helix-card-header-fontSize);
2151
+ font-weight: var(--helix-card-header-fontWeight);
2152
+ line-height: var(--helix-card-header-lineHeight);
2153
+ color: var(--helix-color-text-neutral);
2154
+ }
2155
+
2156
+ [data-helix-part="card-body"] {
2157
+ padding: 0 var(--helix-card-padding) var(--helix-card-padding);
2158
+ font-family: var(--helix-textStyle-body-m-regular-fontFamily);
2159
+ font-size: var(--helix-textStyle-body-m-regular-fontSize);
2160
+ font-weight: var(--helix-textStyle-body-m-regular-fontWeight);
2161
+ line-height: var(--helix-textStyle-body-m-regular-lineHeight);
2162
+ color: var(--helix-color-text-neutral);
2163
+ }
2164
+ /* padding="none": the body goes edge to edge; a header keeps its own 24px top instead of the root's. */
2165
+ [data-helix-part="card-root"][data-padding="none"] [data-helix-part="card-header"] {
2166
+ padding-top: var(--helix-card-padding);
2167
+ }
2168
+ [data-helix-part="card-root"][data-padding="none"] [data-helix-part="card-body"] {
2169
+ padding: 0;
2170
+ }
2171
+
2172
+
2173
+ /* ════════════════════════════════════════════════════════════════════════
2174
+ AVATAR
2175
+ Contract: contracts/components/Avatar.json
2176
+ Tokens: --helix-avatar-*
2177
+ ════════════════════════════════════════════════════════════════════════ */
2178
+
2179
+ [data-helix-part="avatar-root"] {
2180
+ display: inline-flex;
2181
+ align-items: center;
2182
+ justify-content: center;
2183
+ flex-shrink: 0;
2184
+ border-radius: var(--helix-radius-full);
2185
+ overflow: hidden;
2186
+ background-color: var(--helix-avatar-fill);
2187
+ }
2188
+ [data-helix-part="avatar-root"][data-size="s"] { width: var(--helix-avatar-height-s); height: var(--helix-avatar-height-s); }
2189
+ [data-helix-part="avatar-root"][data-size="m"] { width: var(--helix-avatar-height-m); height: var(--helix-avatar-height-m); }
2190
+ [data-helix-part="avatar-root"][data-size="l"] { width: var(--helix-avatar-height-l); height: var(--helix-avatar-height-l); }
2191
+
2192
+ [data-helix-part="avatar-image"] {
2193
+ width: 100%;
2194
+ height: 100%;
2195
+ object-fit: cover;
2196
+ }
2197
+
2198
+ [data-helix-part="avatar-initials"] {
2199
+ line-height: 1;
2200
+ user-select: none;
2201
+ color: var(--helix-avatar-text);
2202
+ }
2203
+ [data-helix-part="avatar-root"][data-size="s"] [data-helix-part="avatar-initials"] { font-size: var(--helix-avatar-fontSize-s); font-weight: var(--helix-avatar-fontWeight-s); }
2204
+ [data-helix-part="avatar-root"][data-size="m"] [data-helix-part="avatar-initials"] { font-size: var(--helix-avatar-fontSize-m); font-weight: var(--helix-avatar-fontWeight-m); }
2205
+ [data-helix-part="avatar-root"][data-size="l"] [data-helix-part="avatar-initials"] { font-size: var(--helix-avatar-fontSize-l); font-weight: var(--helix-avatar-fontWeight-l); }
2206
+
2207
+
2208
+ /* ════════════════════════════════════════════════════════════════════════
2209
+ AVATAR GROUP
2210
+ Contract: contracts/components/AvatarGroup.json
2211
+ Tokens: --helix-avatarGroup-*, --helix-avatar-height-*, fontSize-*, fontWeight-* (shared with Avatar
2212
+ for the overflow indicator's sizing/type, but its own neutral fill/text — never Avatar's
2213
+ tinted ones, see avatarGroup.overflow-fill/overflow-text)
2214
+ ════════════════════════════════════════════════════════════════════════ */
2215
+
2216
+ [data-helix-part="avatar-group-root"] {
2217
+ display: inline-flex;
2218
+ align-items: center;
2219
+ }
2220
+
2221
+ [data-helix-part="avatar-group-item"] {
2222
+ display: inline-flex;
2223
+ flex-shrink: 0;
2224
+ position: relative;
2225
+ border-radius: var(--helix-radius-full);
2226
+ border: var(--helix-avatarGroup-border-width) solid var(--helix-avatarGroup-ring);
2227
+ transform: translateY(0) scale(1);
2228
+ transition: transform var(--helix-duration-base) var(--helix-easing-base);
2229
+ }
2230
+ [data-helix-part="avatar-group-item"] + [data-helix-part="avatar-group-item"] {
2231
+ margin-left: calc(-1 * var(--helix-avatarGroup-overlap));
2232
+ }
2233
+ /* Hover lift — only the hovered avatar moves, no cascade to siblings. Plain CSS :hover, no JS:
2234
+ see .ai/maps/patterns/motion-effects.md's AvatarGroup row for why Motion isn't used here.
2235
+ No z-index override here on purpose: the base rule already gives every item a `transform`
2236
+ (translateY(0) scale(1)), which establishes a stacking context per item ordered by DOM
2237
+ position alone — the item stacked later (visually on top, e.g. further right) already
2238
+ paints above an earlier one with no z-index needed. Forcing z-index:2 on hover used to make
2239
+ the hovered avatar jump above EVERY sibling, including a later one that normally sits on
2240
+ top of it — visually "covering" a neighbor it shouldn't. Removing it keeps each avatar's
2241
+ existing stacking order intact through the lift: it rises in place, never reordering
2242
+ relative to its neighbors. */
2243
+ [data-helix-part="avatar-group-item"]:hover {
2244
+ transform: translateY(var(--helix-avatarGroup-hover-lift)) scale(var(--helix-avatarGroup-hover-scale));
2245
+ transition-duration: var(--helix-duration-fast);
2246
+ transition-timing-function: var(--helix-easing-out);
2247
+ }
2248
+ /* Reduced motion: the hovered avatar doesn't move at all — no lift, no scale, no transition.
2249
+ The name still shows in its Tooltip. */
2250
+ @media (prefers-reduced-motion: reduce) {
2251
+ [data-helix-part="avatar-group-item"],
2252
+ [data-helix-part="avatar-group-item"]:hover {
2253
+ transform: none;
2254
+ transition: none;
2255
+ }
2256
+ }
2257
+
2258
+ [data-helix-part="avatar-group-overflow"] {
2259
+ display: inline-flex;
2260
+ align-items: center;
2261
+ justify-content: center;
2262
+ border-radius: var(--helix-radius-full);
2263
+ user-select: none;
2264
+ background-color: var(--helix-avatarGroup-overflow-fill);
2265
+ color: var(--helix-avatarGroup-overflow-text);
2266
+ }
2267
+ [data-helix-part="avatar-group-root"][data-size="s"] [data-helix-part="avatar-group-overflow"] { width: var(--helix-avatar-height-s); height: var(--helix-avatar-height-s); font-size: var(--helix-avatar-fontSize-s); font-weight: var(--helix-avatar-fontWeight-s); line-height: var(--helix-textStyle-caption-semibold-lineHeight); }
2268
+ [data-helix-part="avatar-group-root"][data-size="m"] [data-helix-part="avatar-group-overflow"] { width: var(--helix-avatar-height-m); height: var(--helix-avatar-height-m); font-size: var(--helix-avatar-fontSize-m); font-weight: var(--helix-avatar-fontWeight-m); line-height: var(--helix-textStyle-caption-semibold-lineHeight); }
2269
+ [data-helix-part="avatar-group-root"][data-size="l"] [data-helix-part="avatar-group-overflow"] { width: var(--helix-avatar-height-l); height: var(--helix-avatar-height-l); font-size: var(--helix-avatar-fontSize-l); font-weight: var(--helix-avatar-fontWeight-l); line-height: var(--helix-textStyle-body-m-semibold-lineHeight); }
2270
+
2271
+
2272
+ /* ════════════════════════════════════════════════════════════════════════
2273
+ TOOLTIP
2274
+ Contract: contracts/components/Tooltip.json
2275
+ ADR: docs/ADR/ADR-008-tooltip-primitive.md — hand-rolled, CSS-only show/hide, no library.
2276
+ Tokens: --helix-tooltip-*, --helix-primitive-zIndex-tooltip
2277
+ ════════════════════════════════════════════════════════════════════════ */
2278
+
2279
+ [data-helix-part="tooltip-root"] {
2280
+ position: relative;
2281
+ display: inline-flex;
2282
+ }
2283
+
2284
+ [data-helix-part="tooltip-content"] {
2285
+ position: absolute;
2286
+ z-index: var(--helix-primitive-zIndex-tooltip);
2287
+ width: max-content;
2288
+ max-width: 240px; /* content-driven width above the token scale — see Tooltip.json's sizing note */
2289
+ background-color: var(--helix-tooltip-fill);
2290
+ color: var(--helix-tooltip-text);
2291
+ border-radius: var(--helix-tooltip-radius);
2292
+ box-shadow: var(--helix-tooltip-shadow);
2293
+ padding: var(--helix-tooltip-padding-y) var(--helix-tooltip-padding-x);
2294
+ font-family: var(--helix-textStyle-caption-regular-fontFamily); /* "Caption / Regular" in Figma */
2295
+ font-size: var(--helix-tooltip-fontSize);
2296
+ font-weight: var(--helix-tooltip-fontWeight);
2297
+ line-height: var(--helix-textStyle-caption-regular-lineHeight);
2298
+ /* pre-line, not normal: AvatarGroup's overflow tooltip joins hidden names with '\n' so each
2299
+ renders on its own line — normal whitespace still collapses/wraps as usual. */
2300
+ white-space: pre-line;
2301
+ pointer-events: none;
2302
+ opacity: 0;
2303
+ visibility: hidden;
2304
+ /* Cross-axis centering + edge-clamp shift come from --tooltip-shift, set inline by Tooltip.tsx's
2305
+ auto-placement (ADR-009) — CSS still owns `transform` itself so :hover/[data-expanded] below can
2306
+ animate the enter/leave `scale()`. Base (leave) state: quick 50ms ease-in, no delay. */
2307
+ transition: opacity var(--helix-tooltip-duration-out) var(--helix-easing-in),
2308
+ transform var(--helix-tooltip-duration-out) var(--helix-easing-in),
2309
+ visibility 0s linear var(--helix-tooltip-duration-out);
2310
+ }
2311
+
2312
+ /* Show on hover/focus — delayed (ADR-008: "don't show instantly"). Hide is immediate: leaving
2313
+ :hover/:focus-within drops back to the base rule above, whose transition-delay is 0s. */
2314
+ [data-helix-part="tooltip-root"]:hover [data-helix-part="tooltip-content"],
2315
+ [data-helix-part="tooltip-root"]:focus-within [data-helix-part="tooltip-content"] {
2316
+ opacity: 1;
2317
+ visibility: visible;
2318
+ transition-duration: var(--helix-tooltip-duration-in);
2319
+ transition-timing-function: var(--helix-easing-out);
2320
+ transition-delay: var(--helix-tooltip-delay), var(--helix-tooltip-delay), var(--helix-tooltip-delay);
2321
+ }
2322
+
2323
+ /* `expanded` prop — forces visible/hidden regardless of interaction. */
2324
+ [data-helix-part="tooltip-root"][data-expanded="true"] [data-helix-part="tooltip-content"] {
2325
+ opacity: 1;
2326
+ visibility: visible;
2327
+ transition-delay: 0s, 0s, 0s;
2328
+ }
2329
+ [data-helix-part="tooltip-root"][data-expanded="false"] [data-helix-part="tooltip-content"] {
2330
+ opacity: 0 !important;
2331
+ visibility: hidden !important;
2332
+ }
2333
+
2334
+ /* transform-origin sits at the edge nearest the trigger, so the scale-in reads as growing OUT of
2335
+ the trigger rather than from its own center. --tooltip-shift defaults to 0px when auto-placement
2336
+ hasn't run yet (first paint, before the layout effect measures). */
2337
+ [data-helix-part="tooltip-root"][data-placement="top"] [data-helix-part="tooltip-content"] {
2338
+ bottom: calc(100% + var(--helix-tooltip-offset));
2339
+ left: 50%;
2340
+ transform-origin: 50% 100%;
2341
+ transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) scale(var(--helix-tooltip-scale-enter));
2342
+ }
2343
+ [data-helix-part="tooltip-root"][data-placement="bottom"] [data-helix-part="tooltip-content"] {
2344
+ top: calc(100% + var(--helix-tooltip-offset));
2345
+ left: 50%;
2346
+ transform-origin: 50% 0%;
2347
+ transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) scale(var(--helix-tooltip-scale-enter));
2348
+ }
2349
+ [data-helix-part="tooltip-root"][data-placement="left"] [data-helix-part="tooltip-content"] {
2350
+ right: calc(100% + var(--helix-tooltip-offset));
2351
+ top: 50%;
2352
+ transform-origin: 100% 50%;
2353
+ transform: translateY(calc(-50% + var(--tooltip-shift, 0px))) scale(var(--helix-tooltip-scale-enter));
2354
+ }
2355
+ [data-helix-part="tooltip-root"][data-placement="right"] [data-helix-part="tooltip-content"] {
2356
+ left: calc(100% + var(--helix-tooltip-offset));
2357
+ top: 50%;
2358
+ transform-origin: 0% 50%;
2359
+ transform: translateY(calc(-50% + var(--tooltip-shift, 0px))) scale(var(--helix-tooltip-scale-enter));
2360
+ }
2361
+ [data-helix-part="tooltip-root"][data-placement="top"]:hover [data-helix-part="tooltip-content"],
2362
+ [data-helix-part="tooltip-root"][data-placement="top"]:focus-within [data-helix-part="tooltip-content"],
2363
+ [data-helix-part="tooltip-root"][data-placement="top"][data-expanded="true"] [data-helix-part="tooltip-content"],
2364
+ [data-helix-part="tooltip-root"][data-placement="bottom"]:hover [data-helix-part="tooltip-content"],
2365
+ [data-helix-part="tooltip-root"][data-placement="bottom"]:focus-within [data-helix-part="tooltip-content"],
2366
+ [data-helix-part="tooltip-root"][data-placement="bottom"][data-expanded="true"] [data-helix-part="tooltip-content"] {
2367
+ transform: translateX(calc(-50% + var(--tooltip-shift, 0px))) scale(1);
2368
+ }
2369
+ [data-helix-part="tooltip-root"][data-placement="left"]:hover [data-helix-part="tooltip-content"],
2370
+ [data-helix-part="tooltip-root"][data-placement="left"]:focus-within [data-helix-part="tooltip-content"],
2371
+ [data-helix-part="tooltip-root"][data-placement="left"][data-expanded="true"] [data-helix-part="tooltip-content"],
2372
+ [data-helix-part="tooltip-root"][data-placement="right"]:hover [data-helix-part="tooltip-content"],
2373
+ [data-helix-part="tooltip-root"][data-placement="right"]:focus-within [data-helix-part="tooltip-content"],
2374
+ [data-helix-part="tooltip-root"][data-placement="right"][data-expanded="true"] [data-helix-part="tooltip-content"] {
2375
+ transform: translateY(calc(-50% + var(--tooltip-shift, 0px))) scale(1);
2376
+ }
2377
+
2378
+
2379
+ /* ════════════════════════════════════════════════════════════════════════
2380
+ ACCORDION
2381
+ Contract: contracts/components/Accordion.json
2382
+ Tokens: --helix-accordion-*
2383
+ Built on native <details>/<summary> — the grid-rows 0fr↔1fr trick needs the panel to stay
2384
+ `display: grid` even while closed, which requires overriding the UA stylesheet's own
2385
+ `details:not([open]) > *:not(summary) { display: none }` rule — the `!important` below is that
2386
+ override, not decoration (same class of justified override as Tooltip's [data-expanded="false"]).
2387
+ ════════════════════════════════════════════════════════════════════════ */
2388
+
2389
+ [data-helix-part="accordion-root"] {
2390
+ background-color: var(--helix-accordion-fill);
2391
+ border: 1px solid var(--helix-accordion-border);
2392
+ border-radius: var(--helix-accordion-radius);
2393
+ }
2394
+
2395
+ [data-helix-part="accordion-header"] {
2396
+ display: flex;
2397
+ align-items: center;
2398
+ justify-content: space-between;
2399
+ gap: var(--helix-accordion-padding-y);
2400
+ padding: var(--helix-accordion-padding-y) var(--helix-accordion-padding-x);
2401
+ cursor: pointer;
2402
+ list-style: none;
2403
+ color: var(--helix-accordion-text);
2404
+ font-size: var(--helix-accordion-fontSize);
2405
+ font-weight: var(--helix-accordion-fontWeight);
2406
+ }
2407
+ [data-helix-part="accordion-header"]::-webkit-details-marker {
2408
+ display: none; /* Chrome/Safari's own disclosure triangle — replaced by our own chevron */
2409
+ }
2410
+ [data-helix-part="accordion-header"][aria-disabled="true"] {
2411
+ cursor: not-allowed;
2412
+ color: var(--helix-accordion-text-disabled);
2413
+ }
2414
+ /* Real disabled colors, not just a cursor — .ai/maps/patterns/disabled-state.md. Before this the
2415
+ disabled accordion looked exactly like an enabled one. */
2416
+ [data-helix-part="accordion-root"]:has(> [data-helix-part="accordion-header"][aria-disabled="true"]) {
2417
+ background-color: var(--helix-accordion-fill-disabled);
2418
+ border-color: var(--helix-accordion-border-disabled);
2419
+ }
2420
+ [data-helix-part="accordion-header"][aria-disabled="true"] [data-helix-part="accordion-chevron"] {
2421
+ color: var(--helix-accordion-chevron-disabled);
2422
+ }
2423
+
2424
+ /* Keyed off data-state (open/closing/closed), not the native [open] attribute — [open] stays true
2425
+ for the entire close transition and only flips false once it finishes. See
2426
+ useDisclosureTransition.ts for why: the browser hides <details> content the instant [open] is
2427
+ removed, which happens synchronously on click and would otherwise skip the collapse transition
2428
+ entirely (only the expand direction would ever animate).
2429
+
2430
+ `height` is set inline by Accordion.tsx (measured via scrollHeight), not animated here via
2431
+ grid-template-rows 0fr/1fr — that technique's 'fr' unit interpolation doesn't track the same
2432
+ visual pace in both directions even with matched duration/easing, which read as a slow/laggy
2433
+ collapse. CSS only owns overflow + the transition itself; the real height value is JS's job,
2434
+ same "shift responsibilities" split as Tooltip's --tooltip-shift. */
2435
+ [data-helix-part="accordion-panel"] {
2436
+ display: block !important; /* overrides the UA's details-closed `display: none` */
2437
+ overflow: hidden;
2438
+ height: 0px;
2439
+ transition: height var(--helix-accordion-duration-collapse) var(--helix-accordion-easing-collapse);
2440
+ }
2441
+ [data-helix-part="accordion-root"][data-state="open"] > [data-helix-part="accordion-panel"] {
2442
+ transition: height var(--helix-accordion-duration-expand) var(--helix-accordion-easing);
2443
+ }
2444
+
2445
+ [data-helix-part="accordion-panel-inner"] {
2446
+ opacity: 0;
2447
+ filter: blur(var(--helix-accordion-blur-enter));
2448
+ padding: 0 var(--helix-accordion-padding-x) var(--helix-accordion-padding-y);
2449
+ transition: opacity var(--helix-accordion-duration-collapse) var(--helix-accordion-easing-collapse),
2450
+ filter var(--helix-accordion-duration-collapse) var(--helix-accordion-easing-collapse);
2451
+ }
2452
+ [data-helix-part="accordion-root"][data-state="open"] [data-helix-part="accordion-panel-inner"] {
2453
+ opacity: 1;
2454
+ filter: blur(0);
2455
+ transition: opacity var(--helix-accordion-duration-expand) var(--helix-accordion-easing),
2456
+ filter var(--helix-accordion-duration-expand) var(--helix-accordion-easing);
2457
+ }
2458
+
2459
+ [data-helix-part="accordion-chevron"] {
2460
+ display: inline-flex;
2461
+ color: var(--helix-accordion-chevron);
2462
+ transform: scaleY(1);
2463
+ transform-origin: center;
2464
+ transition: transform var(--helix-accordion-duration-chevron) var(--helix-accordion-easing-collapse);
2465
+ }
2466
+ [data-helix-part="accordion-root"][data-state="open"] [data-helix-part="accordion-chevron"] {
2467
+ transform: scaleY(-1);
2468
+ transition: transform var(--helix-accordion-duration-chevron) var(--helix-accordion-easing);
2469
+ }
2470
+
2471
+
2472
+ /* ════════════════════════════════════════════════════════════════════════
2473
+ MODAL
2474
+ Contract: contracts/components/Modal.json
2475
+ ADR: docs/ADR/ADR-010-modal-sidepanel-primitive.md — native <dialog> + showModal(), JS-timed
2476
+ close via useDialogTransition (packages/core/src/lib/useDialogTransition.ts).
2477
+ Tokens: --helix-modal-*
2478
+ `data-state` (closed/open/closing) is written by useDialogTransition, not CSS-driven :open-style
2479
+ selectors — see the ADR for why this needs JS timing, not a pure media/attribute transition.
2480
+ ════════════════════════════════════════════════════════════════════════ */
2481
+
2482
+ [data-helix-part="modal-root"] {
2483
+ /* Reset native <dialog> UA styles — border/padding/background are ours, not the browser's. */
2484
+ border: none;
2485
+ padding: 0;
2486
+ /* Explicit position+inset+margin, not left to the UA's own `dialog:modal` centering — Tailwind's
2487
+ preflight zeroes `margin` on every element (`*{margin:0}`), which cancels the UA's `margin:auto`
2488
+ centering trick. Re-declaring it here at author-level restores centering regardless of preflight. */
2489
+ position: fixed;
2490
+ inset: 0;
2491
+ margin: auto;
2492
+ min-height: 400px; /* per-component characteristic, not a token — same policy as min/max-width */
2493
+ max-width: min(560px, calc(100vw - var(--helix-spacing-xl) * 2));
2494
+ display: flex;
2495
+ flex-direction: column;
2496
+ border-radius: var(--helix-modal-radius);
2497
+ box-shadow: var(--helix-modal-shadow);
2498
+ background-color: var(--helix-modal-fill);
2499
+ color: var(--helix-modal-text);
2500
+ transform: scale(var(--helix-modal-scale-enter));
2501
+ opacity: 0;
2502
+ transition: transform var(--helix-modal-duration-close) var(--helix-modal-easing),
2503
+ opacity var(--helix-modal-duration-close) var(--helix-modal-easing);
2504
+ }
2505
+ /* A closed <dialog> must not render. The `display: flex` above overrides the UA's
2506
+ `dialog:not([open]) { display: none }`, so a closed Modal/SidePanel stayed in the page at opacity 0 and
2507
+ Tab reached its invisible buttons (found by the visible-focus check, WCAG 2.4.7 / 2.4.3). The close
2508
+ animation is unaffected: useDialogTransition keeps [open] until the transition has finished. */
2509
+ [data-helix-part="modal-root"]:not([open]),
2510
+ [data-helix-part="side-panel-root"]:not([open]) {
2511
+ display: none;
2512
+ }
2513
+ [data-helix-part="modal-root"][data-state="open"] {
2514
+ transform: scale(1);
2515
+ opacity: 1;
2516
+ transition-duration: var(--helix-modal-duration-open);
2517
+ }
2518
+ [data-helix-part="modal-root"][data-state="closing"] {
2519
+ transform: scale(var(--helix-modal-scale-enter));
2520
+ opacity: 0;
2521
+ transition-duration: var(--helix-modal-duration-close);
2522
+ }
2523
+ [data-helix-part="modal-root"]::backdrop {
2524
+ background-color: color-mix(in srgb, var(--helix-modal-overlay) calc(var(--helix-modal-overlay-opacity) * 100%), transparent);
2525
+ }
2526
+ [data-helix-part="modal-header"] {
2527
+ /* Right-padded clear of the absolutely-positioned close button (inset + its own ~40px box + a
2528
+ small gap), so a long title wraps before it, never runs under it. */
2529
+ padding: var(--helix-modal-padding) calc(var(--helix-modal-closeInset) * 2 + 40px) 0 var(--helix-modal-padding);
2530
+ }
2531
+ [data-helix-part="modal-title"] {
2532
+ margin: 0;
2533
+ font-family: var(--helix-textStyle-heading-xl-bold-fontFamily); /* "Heading / xl / Bold" in Figma */
2534
+ font-size: var(--helix-modal-titleFontSize);
2535
+ font-weight: var(--helix-modal-titleFontWeight);
2536
+ line-height: var(--helix-textStyle-heading-xl-bold-lineHeight);
2537
+ }
2538
+ [data-helix-part="modal-close"] {
2539
+ position: absolute;
2540
+ top: var(--helix-modal-closeInset);
2541
+ right: var(--helix-modal-closeInset);
2542
+ }
2543
+ [data-helix-part="modal-body"] {
2544
+ flex: 1;
2545
+ padding: var(--helix-modal-padding);
2546
+ }
2547
+ [data-helix-part="modal-footer"] {
2548
+ display: flex;
2549
+ flex-shrink: 0;
2550
+ justify-content: space-between;
2551
+ align-items: center;
2552
+ gap: var(--helix-modal-footerGap);
2553
+ padding: 0 var(--helix-modal-padding) var(--helix-modal-padding);
2554
+ }
2555
+ [data-helix-part="modal-footer-start"],
2556
+ [data-helix-part="modal-footer-end"] {
2557
+ display: flex;
2558
+ align-items: center;
2559
+ gap: var(--helix-modal-footerGap);
2560
+ }
2561
+
2562
+
2563
+ /* ════════════════════════════════════════════════════════════════════════
2564
+ SIDE PANEL
2565
+ Contract: contracts/components/SidePanel.json
2566
+ ADR: docs/ADR/ADR-010-modal-sidepanel-primitive.md — same native <dialog> primitive as
2567
+ Modal, positioned against the right edge instead of centered.
2568
+ Tokens: --helix-sidePanel-*
2569
+ ════════════════════════════════════════════════════════════════════════ */
2570
+
2571
+ [data-helix-part="side-panel-root"] {
2572
+ /* Reset native <dialog> UA centering — anchored to an edge instead, per `data-placement`. */
2573
+ border: none;
2574
+ margin: 0;
2575
+ padding: 0;
2576
+ position: fixed;
2577
+ display: flex;
2578
+ flex-direction: column;
2579
+ background-color: var(--helix-sidePanel-fill);
2580
+ color: var(--helix-sidePanel-text);
2581
+ opacity: 0;
2582
+ filter: blur(var(--helix-sidePanel-blur-enter));
2583
+ transition: transform var(--helix-sidePanel-duration-close) var(--helix-sidePanel-easing),
2584
+ opacity var(--helix-sidePanel-duration-close) var(--helix-sidePanel-easing),
2585
+ filter var(--helix-sidePanel-duration-close) var(--helix-sidePanel-easing);
2586
+ }
2587
+ [data-helix-part="side-panel-root"][data-state="open"] {
2588
+ opacity: 1;
2589
+ filter: blur(0);
2590
+ transition-duration: var(--helix-sidePanel-duration-open);
2591
+ }
2592
+ [data-helix-part="side-panel-root"][data-state="closing"] {
2593
+ opacity: 0;
2594
+ filter: blur(var(--helix-sidePanel-blur-enter));
2595
+ transition-duration: var(--helix-sidePanel-duration-close);
2596
+ }
2597
+
2598
+ /* placement="right" (default) — full height, fixed width, slides in from the right edge.
2599
+ shadow (not shadowBottom): the visible edge facing the page is the left edge, and shadow.xl's
2600
+ blur radius already reaches it — no directional flip needed the way "bottom" does below. */
2601
+ [data-helix-part="side-panel-root"][data-placement="right"] {
2602
+ inset: 0 0 0 auto;
2603
+ height: 100vh;
2604
+ max-height: 100vh;
2605
+ width: var(--helix-sidePanel-width);
2606
+ max-width: calc(100vw - var(--helix-spacing-xl) * 2);
2607
+ box-shadow: var(--helix-sidePanel-shadow);
2608
+ transform: translateX(100%);
2609
+ }
2610
+ [data-helix-part="side-panel-root"][data-placement="right"][data-state="open"] {
2611
+ transform: translateX(0);
2612
+ }
2613
+ [data-helix-part="side-panel-root"][data-placement="right"][data-state="closing"] {
2614
+ transform: translateX(100%);
2615
+ }
2616
+
2617
+ /* placement="bottom" — full width, content-driven height up to 80vh, slides up from the bottom edge.
2618
+ shadowBottom, not shadow: the visible edge facing the page is the TOP edge here, and shadow.xl's
2619
+ positive Y-offset casts most of its strength downward (off-screen, behind the sheet) — barely
2620
+ anything shows above. shadowBottom is the same weight/blur with the Y sign flipped, so the
2621
+ visible side actually gets the strong part of the shadow. */
2622
+ [data-helix-part="side-panel-root"][data-placement="bottom"] {
2623
+ inset: auto 0 0 0;
2624
+ width: 100vw;
2625
+ max-width: 100vw;
2626
+ max-height: 80vh;
2627
+ box-shadow: var(--helix-sidePanel-shadowBottom);
2628
+ transform: translateY(100%);
2629
+ }
2630
+ [data-helix-part="side-panel-root"][data-placement="bottom"][data-state="open"] {
2631
+ transform: translateY(0);
2632
+ }
2633
+ [data-helix-part="side-panel-root"][data-placement="bottom"][data-state="closing"] {
2634
+ transform: translateY(100%);
2635
+ }
2636
+ /* No scrim — unlike Modal, SidePanel leaves the page behind fully visible. showModal() still gives
2637
+ the focus trap/Escape/top-layer stacking. `background: transparent` here is NOT decorative —
2638
+ browsers apply their own default ::backdrop dimming (e.g. Chrome's ~10% black) even with no
2639
+ author rule at all, so simply omitting a background-color declaration still shows a grey scrim. */
2640
+ [data-helix-part="side-panel-root"]::backdrop {
2641
+ background: transparent;
2642
+ }
2643
+ [data-helix-part="side-panel-header"] {
2644
+ /* Right-padded clear of the absolutely-positioned close button — same reasoning as Modal's header. */
2645
+ padding: var(--helix-sidePanel-padding) calc(var(--helix-sidePanel-closeInset) * 2 + 40px) 0 var(--helix-sidePanel-padding);
2646
+ flex-shrink: 0;
2647
+ }
2648
+ [data-helix-part="side-panel-title"] {
2649
+ margin: 0;
2650
+ font-family: var(--helix-textStyle-heading-xl-bold-fontFamily); /* "Heading / xl / Bold" in Figma, like Modal's */
2651
+ font-size: var(--helix-sidePanel-titleFontSize);
2652
+ font-weight: var(--helix-sidePanel-titleFontWeight);
2653
+ line-height: var(--helix-textStyle-heading-xl-bold-lineHeight);
2654
+ }
2655
+ [data-helix-part="side-panel-close"] {
2656
+ position: absolute;
2657
+ top: var(--helix-sidePanel-closeInset);
2658
+ right: var(--helix-sidePanel-closeInset);
2659
+ }
2660
+ [data-helix-part="side-panel-body"] {
2661
+ padding: var(--helix-sidePanel-padding);
2662
+ overflow-y: auto;
2663
+ flex: 1;
2664
+ }
2665
+
2666
+
2667
+ /* ════════════════════════════════════════════════════════════════════════
2668
+ PAGE HEADER
2669
+ Contract: contracts/components/PageHeader.json
2670
+ Tokens: --helix-pageHeader-*
2671
+ ════════════════════════════════════════════════════════════════════════ */
2672
+
2673
+ [data-helix-part="page-header-root"] {
2674
+ display: flex;
2675
+ flex-wrap: wrap; /* WCAG 1.4.10 Reflow: at 320px the actions drop below the title instead of being cut off */
2676
+ align-items: flex-start;
2677
+ justify-content: space-between;
2678
+ gap: var(--helix-primitive-spacing-100);
2679
+ }
2680
+ /* The title block takes the row and gives way to the actions only when there's room beside it. */
2681
+ [data-helix-part="page-header-root"] > :first-child {
2682
+ flex: 1 1 16rem;
2683
+ min-width: 0;
2684
+ }
2685
+
2686
+ /* level 1 = "Heading / 2xl / Bold", level 2 = "Heading / xl / Bold" — the text styles, as in Figma */
2687
+ [data-helix-part="page-header-title"] {
2688
+ margin: 0;
2689
+ color: var(--helix-pageHeader-title-color);
2690
+ font-family: var(--helix-textStyle-heading-2xl-bold-fontFamily);
2691
+ }
2692
+ [data-helix-part="page-header-title"][data-level="1"] { font-size: var(--helix-pageHeader-title-fontSize-1); font-weight: var(--helix-pageHeader-title-fontWeight-1); line-height: var(--helix-textStyle-heading-2xl-bold-lineHeight); }
2693
+ [data-helix-part="page-header-title"][data-level="2"] { font-size: var(--helix-pageHeader-title-fontSize-2); font-weight: var(--helix-pageHeader-title-fontWeight-2); line-height: var(--helix-textStyle-heading-xl-bold-lineHeight); }
2694
+
2695
+ [data-helix-part="page-header-description"] {
2696
+ margin: var(--helix-primitive-spacing-25) 0 0;
2697
+ font-family: var(--helix-textStyle-body-s-regular-fontFamily); /* "Body / s / Regular" */
2698
+ font-size: var(--helix-pageHeader-description-fontSize);
2699
+ font-weight: var(--helix-pageHeader-description-fontWeight);
2700
+ line-height: var(--helix-textStyle-body-s-regular-lineHeight);
2701
+ color: var(--helix-pageHeader-description-color);
2702
+ }
2703
+
2704
+ [data-helix-part="page-header-actions"] {
2705
+ display: flex;
2706
+ flex-wrap: wrap;
2707
+ align-items: center;
2708
+ gap: var(--helix-primitive-spacing-50);
2709
+ flex-shrink: 0;
2710
+ }
2711
+
2712
+
2713
+
2714
+ /* ════════════════════════════════════════════════════════════════════════
2715
+ TABLE
2716
+ Contract: contracts/components/Table.json
2717
+ Tokens: --helix-table-*
2718
+ ════════════════════════════════════════════════════════════════════════ */
2719
+
2720
+ [data-helix-part="table"] {
2721
+ width: 100%;
2722
+ border-collapse: collapse;
2723
+ }
2724
+
2725
+ [data-helix-part="table-header-cell"] {
2726
+ padding: var(--helix-primitive-spacing-50) var(--helix-primitive-spacing-100);
2727
+ text-align: left;
2728
+ font-size: var(--helix-table-header-fontSize);
2729
+ font-weight: var(--helix-table-header-fontWeight);
2730
+ color: var(--helix-table-header-color);
2731
+ text-transform: uppercase;
2732
+ letter-spacing: var(--helix-primitive-letterSpacing-wide); /* "Label / Uppercase" + case/spacing at the call site */
2733
+ white-space: nowrap;
2734
+ border-bottom: 1px solid var(--helix-table-header-border);
2735
+ }
2736
+
2737
+ [data-helix-part="table-row"] {
2738
+ border-bottom: 1px solid var(--helix-table-row-border);
2739
+ transition: background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
2740
+ }
2741
+ [data-helix-part="table-body"] [data-helix-part="table-row"]:last-child {
2742
+ border-bottom: none;
2743
+ }
2744
+ [data-helix-part="table-body"] [data-helix-part="table-row"]:hover {
2745
+ background-color: var(--helix-table-row-hoverFill);
2746
+ }
2747
+
2748
+ /* Drag-to-reorder (Motion Reorder pattern — the row sets data-dragging while it's being dragged).
2749
+ While any row is dragging: the dragged row stays highlighted, the others drop their hover fill and
2750
+ its transition — rows sliding under the pointer would otherwise fade the fill in/out (a flash) —
2751
+ and no text can be selected as the pointer crosses rows. */
2752
+ [data-helix-part="table-body"]:has([data-dragging]) {
2753
+ user-select: none;
2754
+ cursor: grabbing;
2755
+ }
2756
+ [data-helix-part="table-body"]:has([data-dragging]) [data-helix-part="table-row"] {
2757
+ transition: none;
2758
+ }
2759
+ [data-helix-part="table-body"]:has([data-dragging]) [data-helix-part="table-row"]:not([data-dragging]):hover {
2760
+ background-color: transparent;
2761
+ }
2762
+ [data-helix-part="table-body"] [data-helix-part="table-row"][data-dragging] {
2763
+ background-color: var(--helix-table-row-hoverFill);
2764
+ }
2765
+
2766
+ [data-helix-part="table-cell"] {
2767
+ padding: var(--helix-primitive-spacing-75) var(--helix-primitive-spacing-100);
2768
+ font-size: var(--helix-table-cell-fontSize);
2769
+ font-weight: var(--helix-table-cell-fontWeight);
2770
+ color: var(--helix-table-cell-color);
2771
+ }
2772
+
2773
+
2774
+ /* ════════════════════════════════════════════════════════════════════════
2775
+ NAV ITEM
2776
+ Contract: contracts/components/NavItem.json
2777
+ Tokens: --helix-navItem-*
2778
+ ════════════════════════════════════════════════════════════════════════ */
2779
+
2780
+ [data-helix-part="nav-item"] {
2781
+ position: relative;
2782
+ display: flex;
2783
+ align-items: center;
2784
+ gap: var(--helix-primitive-spacing-50);
2785
+ padding: var(--helix-primitive-spacing-50) var(--helix-primitive-spacing-75);
2786
+ border-radius: var(--helix-navItem-radius);
2787
+ text-decoration: none;
2788
+ cursor: pointer;
2789
+ transition: background-color var(--helix-primitive-duration-base) var(--helix-primitive-easing-base);
2790
+ }
2791
+ [data-helix-part="nav-item"]:hover:not([data-current]) {
2792
+ background-color: var(--helix-navItem-fill-hover);
2793
+ }
2794
+
2795
+ /* The "current" background lives on this indicator, not the <a> itself — it's a motion.span with a
2796
+ shared layoutId (NavItem.tsx), so Motion animates it sliding from the previous current item to this
2797
+ one instead of the background just cutting over. Icon/label get z-index above it (position:relative,
2798
+ see below) since a positioned sibling with no z-index would otherwise paint over static content. */
2799
+ [data-helix-part="nav-item-indicator"] {
2800
+ position: absolute;
2801
+ inset: 0;
2802
+ z-index: 0;
2803
+ /* square on the left, where the bar sits; the other states keep all four corners (owner 2026-10-21) */
2804
+ border-radius: var(--helix-radius-none) var(--helix-navItem-radius) var(--helix-navItem-radius) var(--helix-radius-none);
2805
+ background-color: var(--helix-navItem-fill-current);
2806
+ }
2807
+ /* The blue bar at the left edge of the current item — part of the indicator, so it slides with it. */
2808
+ [data-helix-part="nav-item-indicator"]::before {
2809
+ content: '';
2810
+ position: absolute;
2811
+ top: 0;
2812
+ bottom: 0;
2813
+ left: 0;
2814
+ width: var(--helix-navItem-bar-width);
2815
+ border-radius: var(--helix-radius-full);
2816
+ background-color: var(--helix-navItem-fill-bar);
2817
+ }
2818
+
2819
+ [data-helix-part="nav-item-icon"] {
2820
+ position: relative;
2821
+ z-index: 1;
2822
+ display: flex;
2823
+ align-items: center;
2824
+ flex-shrink: 0;
2825
+ color: var(--helix-navItem-icon-default);
2826
+ }
2827
+ [data-helix-part="nav-item"][data-current] [data-helix-part="nav-item-icon"] {
2828
+ color: var(--helix-navItem-icon-current);
2829
+ }
2830
+
2831
+ [data-helix-part="nav-item-label"] {
2832
+ position: relative;
2833
+ z-index: 1;
2834
+ font-size: var(--helix-navItem-fontSize);
2835
+ font-weight: var(--helix-navItem-fontWeight);
2836
+ color: var(--helix-navItem-text-default);
2837
+ white-space: nowrap;
2838
+ overflow: hidden;
2839
+ text-overflow: ellipsis;
2840
+ }
2841
+ [data-helix-part="nav-item"][data-current] [data-helix-part="nav-item-label"] {
2842
+ color: var(--helix-navItem-text-current);
2843
+ }
2844
+
2845
+
2846
+ /* ════════════════════════════════════════════════════════════════════════
2847
+ SEGMENTED CONTROL
2848
+ Contract: contracts/components/SegmentedControl.json
2849
+ Tokens: --helix-segmentedControl-*
2850
+ The sliding pill reuses NavItem's exact layering: the pill is a motion.span
2851
+ with a shared layoutId (SegmentedControl.tsx), absolutely positioned to fill
2852
+ its parent button, with the label given z-index above it — see ADR-012.
2853
+ ════════════════════════════════════════════════════════════════════════ */
2854
+
2855
+ [data-helix-part="segmented-control-root"] {
2856
+ position: relative;
2857
+ display: inline-flex;
2858
+ align-items: center;
2859
+ gap: var(--helix-segmentedControl-padding);
2860
+ padding: var(--helix-segmentedControl-padding);
2861
+ border-radius: var(--helix-segmentedControl-radius);
2862
+ background-color: var(--helix-segmentedControl-fill-track);
2863
+ }
2864
+ /* Real disabled colors, not opacity — .ai/maps/patterns/disabled-state.md */
2865
+ [data-helix-part="segmented-control-root"][data-disabled] {
2866
+ background-color: var(--helix-segmentedControl-fill-disabled);
2867
+ pointer-events: none;
2868
+ }
2869
+ [data-helix-part="segmented-control-root"][data-disabled] [data-helix-part="segmented-control-item-label"] {
2870
+ color: var(--helix-segmentedControl-text-disabled);
2871
+ }
2872
+
2873
+ [data-helix-part="segmented-control-item"] {
2874
+ position: relative;
2875
+ appearance: none;
2876
+ -webkit-appearance: none;
2877
+ border: 0;
2878
+ background-color: transparent;
2879
+ font-family: inherit;
2880
+ height: var(--helix-segmentedControl-height);
2881
+ padding: 0 var(--helix-segmentedControl-paddingX);
2882
+ border-radius: var(--helix-segmentedControl-radius);
2883
+ cursor: pointer;
2884
+ outline: none;
2885
+ transition: color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base);
2886
+ }
2887
+ [data-helix-part="segmented-control-item"]:disabled {
2888
+ cursor: not-allowed;
2889
+ }
2890
+ [data-helix-part="segmented-control-item"]:focus-visible {
2891
+ outline: 2px solid var(--helix-color-border-focus);
2892
+ outline-offset: 2px;
2893
+ }
2894
+
2895
+ /* Same layering NavItem's indicator uses: absolutely positioned, z-index below the label, so a
2896
+ single shared motion.span (one per checked item at a time) can slide between siblings via
2897
+ Motion's layoutId instead of the background just cutting over. */
2898
+ [data-helix-part="segmented-control-pill"] {
2899
+ position: absolute;
2900
+ inset: 0;
2901
+ z-index: 0;
2902
+ border-radius: var(--helix-segmentedControl-radius);
2903
+ background-color: var(--helix-segmentedControl-fill-pill);
2904
+ }
2905
+
2906
+ [data-helix-part="segmented-control-item-label"] {
2907
+ position: relative;
2908
+ z-index: 1;
2909
+ display: block;
2910
+ font-size: var(--helix-segmentedControl-fontSize);
2911
+ font-weight: var(--helix-segmentedControl-fontWeight);
2912
+ color: var(--helix-segmentedControl-text-default);
2913
+ white-space: nowrap;
2914
+ transition: color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base);
2915
+ }
2916
+ [data-helix-part="segmented-control-item"][aria-checked="true"] [data-helix-part="segmented-control-item-label"],
2917
+ [data-helix-part="segmented-control-item"]:not([aria-checked="true"]):not(:disabled):hover [data-helix-part="segmented-control-item-label"] {
2918
+ color: var(--helix-segmentedControl-text-checked);
2919
+ }
2920
+
2921
+ /* Icon-only option: the icon takes the label's colors; the label stays as the accessible name, hidden.
2922
+ Side padding drops to spacing-xs (8px) so the segment is close to square at the 24px height. */
2923
+ [data-helix-part="segmented-control-item"][data-icon-only] {
2924
+ display: inline-flex; align-items: center; justify-content: center;
2925
+ padding: 0 var(--helix-spacing-xs);
2926
+ }
2927
+ [data-helix-part="segmented-control-item-icon"] {
2928
+ position: relative; z-index: 1; display: inline-flex;
2929
+ color: var(--helix-segmentedControl-text-default);
2930
+ transition: color var(--helix-primitive-duration-fast) var(--helix-primitive-easing-base);
2931
+ }
2932
+ [data-helix-part="segmented-control-item"][aria-checked="true"] [data-helix-part="segmented-control-item-icon"],
2933
+ [data-helix-part="segmented-control-item"]:not([aria-checked="true"]):not(:disabled):hover [data-helix-part="segmented-control-item-icon"] {
2934
+ color: var(--helix-segmentedControl-text-checked);
2935
+ }
2936
+ [data-helix-part="segmented-control-root"][data-disabled] [data-helix-part="segmented-control-item-icon"] {
2937
+ color: var(--helix-segmentedControl-text-disabled);
2938
+ }
2939
+ [data-helix-part="segmented-control-item"][data-icon-only] [data-helix-part="segmented-control-item-label"] {
2940
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
2941
+ clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
2942
+ }
2943
+ /* After the checked rule on purpose (same specificity): a disabled option reads as disabled whether
2944
+ it's one option or the whole group, checked or not — before, a disabled option looked exactly like
2945
+ an enabled one and a disabled group kept its checked label at full color. */
2946
+ [data-helix-part="segmented-control-item"]:disabled [data-helix-part="segmented-control-item-label"] {
2947
+ color: var(--helix-segmentedControl-text-disabled);
2948
+ }
2949
+
2950
+ @media (prefers-reduced-motion: reduce) {
2951
+ [data-helix-part="segmented-control-pill"] { transition: none !important; }
2952
+ }
2953
+
2954
+
2955
+ /* ════════════════════════════════════════════════════════════════════════
2956
+ TOP BAR
2957
+ Contract: contracts/components/TopBar.json
2958
+ Tokens: --helix-topBar-*
2959
+ ════════════════════════════════════════════════════════════════════════ */
2960
+
2961
+ [data-helix-part="topbar-root"] {
2962
+ display: flex;
2963
+ align-items: center;
2964
+ gap: var(--helix-primitive-spacing-75);
2965
+ height: var(--helix-topBar-height);
2966
+ flex-shrink: 0;
2967
+ padding: 0 var(--helix-primitive-spacing-150);
2968
+ background-color: var(--helix-topBar-fill);
2969
+ border-bottom: 1px solid var(--helix-topBar-border);
2970
+ }
2971
+
2972
+ [data-helix-part="topbar-start"] {
2973
+ flex: 1;
2974
+ min-width: 0; /* WCAG 1.4.10 Reflow: the search gives way on a narrow screen instead of pushing the end slot off it */
2975
+ max-width: 320px;
2976
+ }
2977
+ /* A search Input in the start slot keeps its natural width when there's room and shrinks when there
2978
+ isn't (input-root is fit-content and the native <input> has an intrinsic ~20ch width otherwise). */
2979
+ [data-helix-part="topbar-start"] [data-helix-part="input-root"],
2980
+ [data-helix-part="topbar-start"] [data-helix-part="input-wrapper"],
2981
+ [data-helix-part="topbar-start"] [data-helix-part="input-field"] {
2982
+ min-width: 0;
2983
+ max-width: 100%;
2984
+ }
2985
+
2986
+ [data-helix-part="topbar-end"] {
2987
+ display: flex;
2988
+ align-items: center;
2989
+ gap: var(--helix-spacing-component-xs);
2990
+ margin-left: auto;
2991
+ flex-shrink: 0; /* actions keep their size; the search shrinks first */
2992
+ }
2993
+
2994
+
2995
+ /* ════════════════════════════════════════════════════════════════════════
2996
+ SIDE NAV
2997
+ Contract: contracts/components/SideNav.json
2998
+ Tokens: --helix-sideNav-*
2999
+ ════════════════════════════════════════════════════════════════════════ */
3000
+
3001
+ [data-helix-part="side-nav-root"] {
3002
+ display: flex;
3003
+ flex-direction: column;
3004
+ width: var(--helix-sideNav-width);
3005
+ flex-shrink: 0;
3006
+ background-color: var(--helix-sideNav-fill);
3007
+ /* No divider against the main content — the sidebar sits flush with the page. */
3008
+ padding: var(--helix-primitive-spacing-75) 0;
3009
+ }
3010
+
3011
+ [data-helix-part="side-nav-brand"] {
3012
+ padding: var(--helix-primitive-spacing-50) var(--helix-primitive-spacing-75);
3013
+ margin-bottom: var(--helix-primitive-spacing-75);
3014
+ }
3015
+
3016
+ [data-helix-part="side-nav-items"] {
3017
+ flex: 1;
3018
+ display: flex;
3019
+ flex-direction: column;
3020
+ gap: var(--helix-primitive-spacing-25);
3021
+ padding: 0 var(--helix-primitive-spacing-50);
3022
+ overflow-y: auto;
3023
+ }
3024
+
3025
+ [data-helix-part="side-nav-footer"] {
3026
+ padding: var(--helix-primitive-spacing-50);
3027
+ margin: var(--helix-primitive-spacing-50);
3028
+ border-top: 1px solid var(--helix-sideNav-border);
3029
+ }
3030
+
3031
+
3032
+ /* ════════════════════════════════════════════════════════════════════════
3033
+ APP SHELL
3034
+ Contract: contracts/components/AppShell.json
3035
+ Tokens: --helix-color-fill-page (no new component.* tokens needed)
3036
+ ════════════════════════════════════════════════════════════════════════ */
3037
+
3038
+ /* Exactly one viewport tall (the contract's "full-viewport-height" root), not min-height: with
3039
+ min-height the whole page grew with its content and main's overflow-y never kicked in. Now the
3040
+ SideNav and TopBar stay put and only main scrolls. */
3041
+ [data-helix-part="app-shell-root"] {
3042
+ display: flex;
3043
+ height: 100vh;
3044
+ background-color: var(--helix-color-fill-page);
3045
+ }
3046
+
3047
+ [data-helix-part="app-shell-content"] {
3048
+ flex: 1;
3049
+ display: flex;
3050
+ flex-direction: column;
3051
+ min-width: 0;
3052
+ min-height: 0;
3053
+ }
3054
+
3055
+ [data-helix-part="app-shell-main"] {
3056
+ flex: 1;
3057
+ min-height: 0; /* lets the flex item shrink below its content so overflow-y scrolls */
3058
+ overflow-y: auto;
3059
+ padding: var(--helix-spacing-l);
3060
+ }
3061
+
3062
+ /* WCAG 1.4.10 Reflow: below primitive.breakpoint.tablet (768px — media queries can't read a var()) the
3063
+ 224px side nav would leave ~96px for the page at 320px. The shell stacks instead: nav on top, full
3064
+ width, then the content, and the page scrolls as one column. Desktop and tablet are unchanged. */
3065
+ @media (max-width: 767px) {
3066
+ [data-helix-part="app-shell-root"] {
3067
+ flex-direction: column;
3068
+ height: auto;
3069
+ min-height: 100vh;
3070
+ }
3071
+ [data-helix-part="app-shell-root"] > [data-helix-part="side-nav-root"] {
3072
+ width: 100%;
3073
+ }
3074
+ [data-helix-part="app-shell-main"] {
3075
+ overflow-y: visible;
3076
+ }
3077
+ }
3078
+
3079
+
3080
+ /* ════════════════════════════════════════════════════════════════════════
3081
+ TOAST
3082
+ Contract: contracts/components/Toast.json
3083
+ ADR: docs/ADR/ADR-011-toast-primitive.md — imperative API, portal to document.body,
3084
+ JS-measured stacking (not grid/percentage tricks — see that ADR for why).
3085
+ Tokens: --helix-toast-*, --helix-badge-icon-* (icon color only — the one place variant
3086
+ color shows; background/text never tint per variant, unlike Badge itself).
3087
+ ════════════════════════════════════════════════════════════════════════ */
3088
+
3089
+ [data-helix-part="toast-viewport"] {
3090
+ position: fixed;
3091
+ top: var(--helix-spacing-l);
3092
+ right: var(--helix-spacing-l);
3093
+ width: var(--helix-toast-width);
3094
+ z-index: var(--helix-primitive-zIndex-toast);
3095
+ }
3096
+
3097
+ [data-helix-part="toast"] {
3098
+ position: absolute;
3099
+ top: 0;
3100
+ right: 0;
3101
+ width: var(--helix-toast-width);
3102
+ display: flex;
3103
+ align-items: flex-start;
3104
+ gap: var(--helix-toast-gap);
3105
+ padding: var(--helix-toast-padding);
3106
+ background-color: var(--helix-toast-fill);
3107
+ border-radius: var(--helix-toast-radius);
3108
+ box-shadow: var(--helix-toast-shadow);
3109
+ /* Top-center, not bottom — the viewport is anchored to the TOP of the screen, so depth grows
3110
+ downward into the page (see the depth/spread rules below), same reasoning as SidePanel's
3111
+ bottom placement needing its own shadow direction. */
3112
+ transform-origin: 50% 0%;
3113
+ will-change: transform, opacity, filter;
3114
+ transition:
3115
+ transform var(--helix-toast-durationClose) var(--helix-toast-easing),
3116
+ opacity var(--helix-toast-durationClose) var(--helix-toast-easing),
3117
+ filter var(--helix-toast-durationClose) var(--helix-toast-easing);
3118
+ }
3119
+
3120
+ [data-helix-part="toast-icon"] {
3121
+ flex-shrink: 0;
3122
+ display: flex; /* top-aligned with the title, no raw nudge — Figma draws the same */
3123
+ width: var(--helix-toast-iconSize);
3124
+ height: var(--helix-toast-iconSize);
3125
+ }
3126
+ /* flex, not the span's default inline: an inline wrapper added a 25px line box around the 24px button */
3127
+ [data-helix-part="toast-close"] { display: flex; flex-shrink: 0; }
3128
+ [data-helix-part="toast-content"] { flex: 1; min-width: 0; display: flex; flex-direction: column; }
3129
+ [data-helix-part="toast-title"] {
3130
+ font-size: var(--helix-primitive-fontSize-s);
3131
+ font-weight: var(--helix-primitive-fontWeight-bold);
3132
+ color: var(--helix-toast-text);
3133
+ }
3134
+ [data-helix-part="toast-description"] {
3135
+ font-size: var(--helix-primitive-fontSize-s);
3136
+ color: var(--helix-toast-textDescription);
3137
+ margin-top: var(--helix-spacing-3xs);
3138
+ }
3139
+
3140
+ /* Depth grows DOWNWARD (positive translateY), not upward — the viewport is pinned to the top of the
3141
+ screen, so stacking upward would push older toasts off-screen. Same "must stay inside the visible
3142
+ page" principle ADR-009 established for Tooltip's auto-placement.
3143
+ --peek-y is a measured pixel offset (React computes it in Toast.tsx from real offsetHeight), not
3144
+ `peek * depth` — a flat multiple only gives an equal-looking sliver between each pair of toasts
3145
+ when every toast happens to be the same height; two different heights (a 2-line description vs.
3146
+ a 1-line one) immediately made the gaps look uneven. Same root cause, and the same fix, as
3147
+ --spread-y below. */
3148
+ [data-helix-part="toast"][data-depth="0"] { z-index: 3; transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
3149
+ [data-helix-part="toast"][data-depth="1"] {
3150
+ z-index: 2;
3151
+ transform: translateY(var(--peek-y, 0px)) scale(calc(1 - var(--helix-toast-depthScale)));
3152
+ opacity: calc(1 - var(--helix-toast-depthFade));
3153
+ /* Toasts further back go softer — half the depth blur one step back, the full blur two steps back
3154
+ (transitions.dev banner stacking: 1px / 2px). Explicit blur(0) on the front toast and on spread,
3155
+ never an unset filter: blur → none isn't reliably interpolated and would snap. */
3156
+ filter: blur(calc(var(--helix-toast-depthBlur) * 0.5));
3157
+ }
3158
+ [data-helix-part="toast"][data-depth="2"] {
3159
+ z-index: 1;
3160
+ transform: translateY(var(--peek-y, 0px)) scale(calc(1 - var(--helix-toast-depthScale) * 2));
3161
+ opacity: calc(1 - var(--helix-toast-depthFade) * 1.6);
3162
+ filter: blur(var(--helix-toast-depthBlur));
3163
+ }
3164
+
3165
+ /* --spread-y is a real measured pixel offset (React sets it inline via offsetHeight — see
3166
+ Toast.tsx), not `100% * depth` — percentage math broke as soon as two toasts had different
3167
+ heights, since each only knows its OWN height, not the taller one actually sitting above it.
3168
+ See ADR-011 for the full story (caught in the pre-implementation preview, not after shipping). */
3169
+ [data-helix-part="toast-viewport"][data-spread="true"] [data-helix-part="toast"][data-depth="1"],
3170
+ [data-helix-part="toast-viewport"][data-spread="true"] [data-helix-part="toast"][data-depth="2"] {
3171
+ opacity: 1;
3172
+ transform: translateY(var(--spread-y, 0px)) scale(1);
3173
+ filter: blur(0);
3174
+ }
3175
+
3176
+ [data-helix-part="toast"][data-state="closed"] {
3177
+ transition: none !important;
3178
+ transform: translateY(calc(var(--helix-toast-rise) * -1)) scale(var(--helix-toast-scaleEnter));
3179
+ opacity: 0;
3180
+ filter: blur(var(--helix-toast-blurEnter));
3181
+ }
3182
+ [data-helix-part="toast"][data-state="open"] {
3183
+ transition-duration: var(--helix-toast-durationOpen);
3184
+ }
3185
+ [data-helix-part="toast"][data-state="closing"] {
3186
+ z-index: 0;
3187
+ transform: translateY(calc(var(--helix-toast-peek) * 3)) scale(calc(1 - var(--helix-toast-depthScale) * 3));
3188
+ opacity: 0;
3189
+ filter: blur(var(--helix-toast-blurEnter));
3190
+ }
3191
+
3192
+ @media (prefers-reduced-motion: reduce) {
3193
+ [data-helix-part="toast"] { transition: none !important; transform: none !important; filter: none !important; }
3194
+ }
3195
+ }