@bloxwap/hig 0.7.0 → 0.9.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 (272) hide show
  1. package/README.md +2 -2
  2. package/chart/README.md +13 -2
  3. package/chart/dist/altimeter-burst.d.ts +4 -0
  4. package/chart/dist/altimeter-burst.js +43 -0
  5. package/chart/dist/altimeter-chart.d.ts +52 -0
  6. package/chart/dist/altimeter-chart.js +275 -0
  7. package/chart/dist/altimeter-model.d.ts +43 -0
  8. package/chart/dist/altimeter-model.js +148 -0
  9. package/chart/dist/altimeter-targets.d.ts +33 -0
  10. package/chart/dist/altimeter-targets.js +88 -0
  11. package/chart/dist/bitcoin-price.d.ts +8 -0
  12. package/chart/dist/bitcoin-price.js +41 -0
  13. package/chart/dist/champions-league.d.ts +19 -0
  14. package/chart/dist/champions-league.js +104 -0
  15. package/chart/dist/index.d.ts +6 -0
  16. package/chart/dist/index.js +5 -0
  17. package/chart/dist/outcome-chart.d.ts +37 -0
  18. package/chart/dist/outcome-chart.js +212 -0
  19. package/chart/dist/outcome-model.d.ts +43 -0
  20. package/chart/dist/outcome-model.js +71 -0
  21. package/chart/dist/plus-grid.d.ts +6 -0
  22. package/chart/dist/plus-grid.js +29 -0
  23. package/contracts/README.md +1 -1
  24. package/contracts/dist/avatar.d.ts +68 -0
  25. package/contracts/dist/avatar.js +93 -0
  26. package/contracts/dist/confetti.d.ts +174 -0
  27. package/contracts/dist/confetti.js +138 -0
  28. package/contracts/dist/decimal.d.ts +7 -0
  29. package/contracts/dist/decimal.js +35 -0
  30. package/contracts/dist/index.d.ts +29 -2
  31. package/contracts/dist/index.js +123 -4
  32. package/contracts/dist/invariants.d.ts +17 -0
  33. package/contracts/dist/invariants.js +24 -0
  34. package/contracts/dist/login.d.ts +34 -0
  35. package/contracts/dist/login.js +43 -0
  36. package/contracts/dist/messages.d.ts +57 -3
  37. package/contracts/dist/messages.js +20 -2
  38. package/contracts/dist/number-flow.d.ts +90 -0
  39. package/contracts/dist/number-flow.js +150 -0
  40. package/contracts/dist/qr.d.ts +151 -0
  41. package/contracts/dist/qr.js +581 -0
  42. package/contracts/dist/toast.d.ts +168 -0
  43. package/contracts/dist/toast.js +171 -0
  44. package/feedback/README.md +1 -1
  45. package/feedback/dist/contract.js +1 -1
  46. package/feedback/dist/react.js +2 -4
  47. package/native/README.md +6 -1
  48. package/native/dist/account-block.d.ts +10 -1
  49. package/native/dist/account-block.js +17 -7
  50. package/native/dist/animated-number-model.d.ts +41 -1
  51. package/native/dist/animated-number-model.js +201 -23
  52. package/native/dist/animated-number.d.ts +39 -1
  53. package/native/dist/animated-number.js +164 -17
  54. package/native/dist/announce.d.ts +2 -0
  55. package/native/dist/announce.js +10 -0
  56. package/native/dist/asset-balance-row.d.ts +3 -1
  57. package/native/dist/asset-balance-row.js +15 -4
  58. package/native/dist/assets-block.d.ts +115 -0
  59. package/native/dist/assets-block.js +87 -0
  60. package/native/dist/async-result.d.ts +2 -0
  61. package/native/dist/async-result.js +11 -0
  62. package/native/dist/avatar-frame.d.ts +29 -0
  63. package/native/dist/avatar-frame.js +56 -0
  64. package/native/dist/avatar.d.ts +21 -0
  65. package/native/dist/avatar.js +31 -0
  66. package/native/dist/bar-mark.d.ts +2 -0
  67. package/native/dist/bar-mark.js +4 -2
  68. package/native/dist/bar-pnl.js +2 -1
  69. package/native/dist/blocks.d.ts +9 -2
  70. package/native/dist/blocks.js +8 -1
  71. package/native/dist/brand.js +2 -1
  72. package/native/dist/button.d.ts +7 -2
  73. package/native/dist/button.js +13 -3
  74. package/native/dist/checkbox.js +2 -1
  75. package/native/dist/confetti.d.ts +33 -0
  76. package/native/dist/confetti.js +143 -0
  77. package/native/dist/confirm-block.d.ts +98 -0
  78. package/native/dist/confirm-block.js +48 -0
  79. package/native/dist/data.d.ts +1 -1
  80. package/native/dist/data.js +5 -1
  81. package/native/dist/deposit-block.d.ts +19 -0
  82. package/native/dist/deposit-block.js +17 -0
  83. package/native/dist/explainer-block.d.ts +91 -0
  84. package/native/dist/explainer-block.js +34 -0
  85. package/native/dist/field.d.ts +5 -1
  86. package/native/dist/field.js +27 -6
  87. package/native/dist/gesture-sheet-model.d.ts +50 -0
  88. package/native/dist/gesture-sheet-model.js +105 -0
  89. package/native/dist/gesture-sheet-next.d.ts +82 -0
  90. package/native/dist/gesture-sheet-next.js +315 -0
  91. package/native/dist/gesture-sheet.d.ts +5 -1
  92. package/native/dist/gesture-sheet.js +13 -6
  93. package/native/dist/icons.d.ts +9 -6
  94. package/native/dist/icons.js +25 -24
  95. package/native/dist/language-block.d.ts +10 -1
  96. package/native/dist/language-block.js +11 -4
  97. package/native/dist/list-group.d.ts +3 -1
  98. package/native/dist/list-group.js +26 -13
  99. package/native/dist/login-block.d.ts +4 -0
  100. package/native/dist/login-block.js +22 -0
  101. package/native/dist/manage-position-block.d.ts +8 -1
  102. package/native/dist/manage-position-block.js +7 -2
  103. package/native/dist/market-row.js +19 -8
  104. package/native/dist/navigation.js +5 -3
  105. package/native/dist/number-format.d.ts +6 -0
  106. package/native/dist/number-format.js +9 -0
  107. package/native/dist/pickers.d.ts +8 -0
  108. package/native/dist/pickers.js +3 -3
  109. package/native/dist/position-block.d.ts +5 -5
  110. package/native/dist/preset-group.d.ts +31 -0
  111. package/native/dist/preset-group.js +39 -0
  112. package/native/dist/preset-picker-block.d.ts +107 -0
  113. package/native/dist/preset-picker-block.js +43 -0
  114. package/native/dist/profile-block.d.ts +10 -1
  115. package/native/dist/profile-block.js +8 -3
  116. package/native/dist/provider.d.ts +5 -2
  117. package/native/dist/provider.js +27 -5
  118. package/native/dist/qr-code.d.ts +33 -0
  119. package/native/dist/qr-code.js +29 -0
  120. package/native/dist/radio-group.d.ts +19 -7
  121. package/native/dist/radio-group.js +39 -10
  122. package/native/dist/reward-block.d.ts +10 -7
  123. package/native/dist/reward-block.js +9 -4
  124. package/native/dist/screen-header.d.ts +13 -3
  125. package/native/dist/screen-header.js +12 -4
  126. package/native/dist/select.js +4 -2
  127. package/native/dist/selection.d.ts +2 -1
  128. package/native/dist/selection.js +1 -0
  129. package/native/dist/setting-switch.d.ts +1 -1
  130. package/native/dist/setting-switch.js +7 -3
  131. package/native/dist/slider.js +5 -1
  132. package/native/dist/sound-haptics-block.js +1 -1
  133. package/native/dist/status.d.ts +41 -9
  134. package/native/dist/status.js +34 -17
  135. package/native/dist/sticky-header.js +9 -1
  136. package/native/dist/swap-amount-card.d.ts +57 -0
  137. package/native/dist/swap-amount-card.js +31 -0
  138. package/native/dist/{swap-panel-block.d.ts → swap-block.d.ts} +18 -8
  139. package/native/dist/{swap-panel-block.js → swap-block.js} +63 -35
  140. package/native/dist/swap-parts.d.ts +3 -10
  141. package/native/dist/swap-parts.js +22 -24
  142. package/native/dist/swap-shared.d.ts +2 -2
  143. package/native/dist/swap-shared.js +10 -6
  144. package/native/dist/swap-sheet.d.ts +3 -3
  145. package/native/dist/swap-sheet.js +3 -3
  146. package/native/dist/swap-views.js +1 -1
  147. package/native/dist/target-block.d.ts +7 -1
  148. package/native/dist/target-block.js +13 -6
  149. package/native/dist/toast.d.ts +47 -0
  150. package/native/dist/toast.js +386 -0
  151. package/native/dist/token-action-block.d.ts +11 -2
  152. package/native/dist/token-action-block.js +10 -4
  153. package/native/dist/trade-history-list-block.js +7 -4
  154. package/native/dist/wallet-address-core.js +6 -3
  155. package/native-fonts/README.md +1 -1
  156. package/og-fonts/README.md +1 -1
  157. package/package.json +155 -11
  158. package/react/README.md +3 -1
  159. package/react/dist/animated-number-flow.d.ts +72 -0
  160. package/react/dist/animated-number-flow.js +316 -0
  161. package/react/dist/animated-number-model.d.ts +18 -0
  162. package/react/dist/animated-number-model.js +75 -5
  163. package/react/dist/animated-number.d.ts +45 -1
  164. package/react/dist/animated-number.js +137 -6
  165. package/react/dist/asset-balance-row.d.ts +3 -1
  166. package/react/dist/asset-balance-row.js +10 -4
  167. package/react/dist/async-result.d.ts +2 -0
  168. package/react/dist/async-result.js +11 -0
  169. package/react/dist/avatar.d.ts +25 -0
  170. package/react/dist/avatar.js +50 -0
  171. package/react/dist/blocks/account-block.d.ts +5 -1
  172. package/react/dist/blocks/account-block.js +11 -6
  173. package/react/dist/blocks/assets-block.d.ts +106 -0
  174. package/react/dist/blocks/assets-block.js +135 -0
  175. package/react/dist/blocks/confirm-block.d.ts +91 -0
  176. package/react/dist/blocks/confirm-block.js +31 -0
  177. package/react/dist/blocks/deposit-block.d.ts +19 -0
  178. package/react/dist/blocks/deposit-block.js +15 -0
  179. package/react/dist/blocks/explainer-block.d.ts +80 -0
  180. package/react/dist/blocks/explainer-block.js +20 -0
  181. package/react/dist/blocks/install-command.js +3 -1
  182. package/react/dist/blocks/language-block.d.ts +5 -1
  183. package/react/dist/blocks/language-block.js +4 -3
  184. package/react/dist/blocks/login-block.d.ts +4 -0
  185. package/react/dist/blocks/login-block.js +14 -0
  186. package/react/dist/blocks/manage-position-block.d.ts +3 -1
  187. package/react/dist/blocks/manage-position-block.js +2 -2
  188. package/react/dist/blocks/market-row.js +8 -3
  189. package/react/dist/blocks/notifications-block.d.ts +3 -1
  190. package/react/dist/blocks/notifications-block.js +2 -2
  191. package/react/dist/blocks/pickers.d.ts +9 -0
  192. package/react/dist/blocks/pickers.js +4 -2
  193. package/react/dist/blocks/position-block.d.ts +3 -3
  194. package/react/dist/blocks/preset-picker-block.d.ts +85 -0
  195. package/react/dist/blocks/preset-picker-block.js +19 -0
  196. package/react/dist/blocks/profile-block.d.ts +5 -1
  197. package/react/dist/blocks/profile-block.js +12 -13
  198. package/react/dist/blocks/reward-block.d.ts +13 -8
  199. package/react/dist/blocks/reward-block.js +7 -4
  200. package/react/dist/blocks/screen-header.d.ts +10 -2
  201. package/react/dist/blocks/screen-header.js +7 -4
  202. package/react/dist/blocks/setting-switch.js +6 -3
  203. package/react/dist/blocks/signals-block.d.ts +3 -1
  204. package/react/dist/blocks/signals-block.js +4 -3
  205. package/react/dist/blocks/sound-haptics-block.d.ts +3 -1
  206. package/react/dist/blocks/sound-haptics-block.js +2 -2
  207. package/react/dist/blocks/sticky-header.d.ts +14 -4
  208. package/react/dist/blocks/sticky-header.js +68 -8
  209. package/react/dist/blocks/swap/settings.js +2 -1
  210. package/react/dist/blocks/swap/shared.d.ts +22 -22
  211. package/react/dist/blocks/swap/shared.js +30 -28
  212. package/react/dist/blocks/{swap-panel-block.d.ts → swap-block.d.ts} +19 -8
  213. package/react/dist/blocks/swap-block.js +215 -0
  214. package/react/dist/blocks/swap-sheet.d.ts +3 -3
  215. package/react/dist/blocks/swap-sheet.js +3 -3
  216. package/react/dist/blocks/target-block.d.ts +7 -1
  217. package/react/dist/blocks/target-block.js +10 -4
  218. package/react/dist/blocks/token-action-block.d.ts +6 -2
  219. package/react/dist/blocks/token-action-block.js +3 -2
  220. package/react/dist/blocks/trade-history-detail-block.d.ts +3 -1
  221. package/react/dist/blocks/trade-history-detail-block.js +2 -2
  222. package/react/dist/blocks/trade-history-list-block.d.ts +3 -1
  223. package/react/dist/blocks/trade-history-list-block.js +7 -4
  224. package/react/dist/blocks.d.ts +8 -2
  225. package/react/dist/blocks.js +7 -1
  226. package/react/dist/brand.js +2 -1
  227. package/react/dist/button.d.ts +9 -3
  228. package/react/dist/button.js +8 -3
  229. package/react/dist/confetti.d.ts +27 -0
  230. package/react/dist/confetti.js +240 -0
  231. package/react/dist/data.js +8 -1
  232. package/react/dist/field.d.ts +6 -1
  233. package/react/dist/field.js +18 -9
  234. package/react/dist/gesture-sheet.d.ts +15 -1
  235. package/react/dist/gesture-sheet.js +53 -8
  236. package/react/dist/list-group.js +11 -7
  237. package/react/dist/navigation.js +11 -3
  238. package/react/dist/overlay.d.ts +1 -4
  239. package/react/dist/overlay.js +1 -3
  240. package/react/dist/popover.d.ts +30 -0
  241. package/react/dist/popover.js +34 -0
  242. package/react/dist/preset-group.d.ts +30 -0
  243. package/react/dist/preset-group.js +13 -0
  244. package/react/dist/provider.d.ts +2 -2
  245. package/react/dist/provider.js +23 -6
  246. package/react/dist/qr-code.d.ts +32 -0
  247. package/react/dist/qr-code.js +28 -0
  248. package/react/dist/select.js +10 -3
  249. package/react/dist/selection.d.ts +13 -5
  250. package/react/dist/selection.js +13 -8
  251. package/react/dist/slider.js +5 -1
  252. package/react/dist/status.d.ts +14 -10
  253. package/react/dist/status.js +17 -9
  254. package/react/dist/styles.css +260 -165
  255. package/react/dist/toast.d.ts +19 -12
  256. package/react/dist/toast.js +29 -7
  257. package/react/dist/wallet-address-core.d.ts +8 -4
  258. package/react/dist/wallet-address-core.js +10 -5
  259. package/tokens/README.md +2 -2
  260. package/tokens/assets/onramps/apple-pay.svg +33 -0
  261. package/tokens/assets/onramps/bank.svg +98 -0
  262. package/tokens/assets/onramps/blink.svg +37 -0
  263. package/tokens/assets/onramps/cashapp.svg +33 -0
  264. package/tokens/assets/onramps/crypto.svg +121 -0
  265. package/tokens/assets/onramps/exchange.svg +105 -0
  266. package/tokens/dist/deposit-icons.d.ts +1 -0
  267. package/tokens/dist/deposit-icons.js +28 -0
  268. package/tokens/dist/index.d.ts +16 -0
  269. package/tokens/dist/index.js +16 -0
  270. package/tokens/dist/manifest.json +8 -0
  271. package/tokens/dist/tokens.css +6 -0
  272. package/react/dist/blocks/swap-panel-block.js +0 -178
@@ -19,23 +19,28 @@
19
19
  /* Every rule is scoped to HIG classes so a host that loads this file on some routes only gets no side effects elsewhere (#95).
20
20
  Element defaults for the whole page (box-sizing, focus ring, table, range) are opt-in: @bloxwap/hig/react/css/base. */
21
21
  :where([class^='hig-'],[class*=' hig-'],.hig-choice input,.hig-filter-chip :is(input,span,img),.hig-segment :is(input,span),.hig-progress progress,.hig-table > * > tr > :is(th,td)) { box-sizing:border-box; }
22
- .hig-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle;min-height:var(--hig-button);min-width:var(--hig-button);max-width:100%;padding:8px 20px;border:1px solid transparent;border-radius:9999px;font:600 1rem/1.5 var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);background:var(--hig-action);color:var(--hig-onAction);cursor:pointer;overflow-wrap:anywhere; }
22
+ .hig-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;vertical-align:middle;min-height:var(--hig-button);min-width:var(--hig-button);max-width:100%;padding:8px 20px;border:1px solid transparent;border-radius:9999px;font:600 1rem/1.5 var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);background:var(--hig-action);color:var(--hig-onAction);text-decoration:none;cursor:pointer;overflow-wrap:break-word; }
23
23
  .hig-button[data-density='compact'] { padding-block:4px; }
24
24
  .hig-button[data-intent='secondary'] { background:var(--hig-nested);color:var(--hig-text); }
25
25
  .hig-button[data-intent='ghost'] { background:transparent;color:var(--hig-muted); }
26
26
  .hig-button > svg,.hig-icon-button > span { display:inline-flex;align-items:center;justify-content:center;flex:none; }
27
27
  .hig-icon-button { min-width:var(--hig-button);padding-inline:8px; }
28
- .hig-button[data-intent='destructive'] { background:var(--hig-negative);color:var(--hig-background); }
28
+ .hig-button[data-intent='destructive'] { --hig-glow:var(--hig-negative);background:var(--hig-negative);color:var(--hig-background); }
29
+ /* Market-direction fills follow HIGProvider marketColors (default buy and sell), with the dark label destructive uses. */
30
+ .hig-button[data-intent='up'] { --hig-glow:var(--hig-up,var(--hig-buy));background:var(--hig-up,var(--hig-buy));color:var(--hig-background); }
31
+ .hig-button[data-intent='down'] { --hig-glow:var(--hig-down,var(--hig-sell));background:var(--hig-down,var(--hig-sell));color:var(--hig-background); }
32
+ .hig-button[data-intent='warning'] { --hig-glow:var(--hig-warning);background:var(--hig-warning);color:var(--hig-background); }
29
33
  .hig-button[data-full] { width:100%; }
34
+ .hig-button[data-glow]:not([data-intent='secondary'],[data-intent='ghost']) { box-shadow:0 0 60px 8px color-mix(in srgb,var(--hig-glow,var(--hig-action)) 45%,transparent),0 0 120px 20px color-mix(in srgb,var(--hig-glow,var(--hig-action)) 20%,transparent); }
30
35
  .hig-button-spinner { flex:none;width:1em;height:1em;border:2px solid color-mix(in srgb,currentColor 30%,transparent);border-top-color:currentColor;border-radius:50%;animation:hig-spin .8s linear infinite; }
31
36
  .hig-icon-button[aria-busy='true'] > .hig-button-spinner ~ span[aria-hidden='true'] { display:none; }
32
- .hig-button:disabled { cursor:default; }
37
+ .hig-button:is(:disabled,[aria-disabled='true']) { cursor:default; }
33
38
  /* Unavailable is neutral: a disabled button drops its intent colour for a well fill and muted text, so a dimmed accent never reads
34
39
  as a second call to action. Busy keeps the intent colour under its spinner. */
35
- .hig-button:disabled:not([aria-busy='true']) { background:var(--hig-fill);color:var(--hig-muted); }
36
- .hig-button[data-intent='ghost']:disabled:not([aria-busy='true']) { background:transparent;color:var(--hig-faint); }
40
+ .hig-button:is(:disabled,[aria-disabled='true']):not([aria-busy='true']) { background:var(--hig-fill);color:var(--hig-muted);box-shadow:none; }
41
+ .hig-button[data-intent='ghost']:is(:disabled,[aria-disabled='true']):not([aria-busy='true']) { background:transparent;color:var(--hig-faint); }
37
42
  .hig-button[aria-busy='true'] { opacity:.7; }
38
- .hig-button:active:not(:disabled) { transform:scale(.98); }
43
+ .hig-button:active:not(:disabled,[aria-disabled='true']) { transform:scale(.98); }
39
44
  .hig-button { transition:transform var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,cubic-bezier(.22,1,.36,1)),filter var(--hig-motion-duration-fast) ease; }
40
45
  :where([class^='hig-'],[class*=' hig-'],.hig-choice input,.hig-segment input):focus-visible { outline:2px solid var(--hig-focus);outline-offset:3px; }
41
46
  .hig-stack,.hig-field,.hig-toast { display:flex;flex-direction:column;gap:var(--hig-gap);min-width:0; }
@@ -54,9 +59,16 @@
54
59
  .hig-input[aria-invalid='true'] { border-color:var(--hig-negative); }
55
60
  .hig-input[aria-invalid='true']:focus-visible { box-shadow:0 0 0 1px var(--hig-negative); }
56
61
  textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
62
+ /* A prefixed input: the capsule carries the fill, stroke and ring, and the prefix sits in flow before the text. */
63
+ .hig-input-affix { display:flex;align-items:center;width:100%;min-width:0;border-radius:9999px;border:1px solid transparent;padding-inline-start:20px;background:var(--hig-fill); }
64
+ .hig-input-prefix { flex:none;color:var(--hig-muted);line-height:1.5; }
65
+ .hig-input-affix > input.hig-input.hig-input { min-height:calc(var(--hig-button) - 2px);border:0;padding-inline-start:4px;background:transparent;box-shadow:none;opacity:1; }
66
+ .hig-input-affix:has(> .hig-input:focus-visible) { border-color:var(--hig-input-ring,var(--hig-faint));box-shadow:0 0 0 1px var(--hig-input-ring,var(--hig-faint)); }
67
+ .hig-input-affix:has(> [aria-invalid='true']) { --hig-input-ring:var(--hig-negative);border-color:var(--hig-negative); }
68
+ .hig-input-affix:has(> :disabled) { opacity:.5;cursor:not-allowed; }
57
69
  /* Text fields are as tall as a button (44 touch, 36 compact). */
58
70
  .hig-search-input { position:relative;display:block;width:100%;min-width:0; }
59
- .hig-search-icon { position:absolute;inset-inline-start:16px;inset-block-start:50%;translate:0 -50%;width:20px;height:20px;color:var(--hig-muted);pointer-events:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }
71
+ .hig-search-icon { position:absolute;inset-inline-start:16px;inset-block-start:50%;translate:0 -50%;width:20px;height:20px;color:var(--hig-muted);pointer-events:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
60
72
  .hig-search-input > .hig-input { padding-inline-start:42px; }
61
73
  .hig-field label,.hig-group legend,.hig-select-option[aria-selected='true'] { font-weight:600; }
62
74
  .hig-field p { margin:0;color:var(--hig-muted); }
@@ -74,16 +86,22 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
74
86
  .hig-dialog-title { margin:0;font-size:1.25rem;font-weight:600;line-height:1.3; }
75
87
  .hig-dialog-description { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
76
88
  .hig-gesture-sheet { position:fixed;z-index:41;display:flex;flex-direction:column;max-height:95dvh;background:var(--hig-overlay,#111);color:var(--hig-text);box-shadow:0 0 64px #000a;outline:none; }
77
- .hig-gesture-sheet[data-vaul-drawer-direction='bottom'] { inset:auto 0 0;border-radius:14px 14px 0 0; }
89
+ /* Match the card curve at the sheet edge: 24px card radius plus the 24px content inset. */
90
+ .hig-gesture-sheet[data-vaul-drawer-direction='bottom'] { inset:auto 0 0;border-radius:48px 48px 0 0; }
78
91
  .hig-gesture-sheet[data-vaul-drawer-direction='top'] { inset:0 0 auto;border-radius:0 0 14px 14px; }
79
92
  .hig-gesture-sheet[data-vaul-drawer-direction='left'] { inset:0 auto 0 0;width:min(420px,95vw);max-height:none;border-radius:0 14px 14px 0; }
80
93
  .hig-gesture-sheet[data-vaul-drawer-direction='right'] { inset:0 0 0 auto;width:min(420px,95vw);max-height:none;border-radius:14px 0 0 14px; }
81
94
  .hig-gesture-sheet[data-hig-content-mode='default'] { overflow:auto;overscroll-behavior:contain;gap:12px;padding:24px; }
82
95
  .hig-gesture-sheet[data-hig-content-mode='custom'] { padding:0; }
83
96
  .hig-gesture-sheet[data-hig-dynamic='true'] { overflow:hidden;gap:0;padding:0; }
97
+ .hig-gesture-views { position:relative;min-width:0; }
98
+ .hig-gesture-view[data-leaving] { position:absolute;inset-block-start:0;inset-inline:0;pointer-events:none; }
84
99
  .hig-gesture-dynamic { display:flex;flex-direction:column;flex:none;min-height:0;max-height:inherit; }
85
100
  .hig-gesture-dynamic[data-hig-content-mode='default'] { overflow:auto;overscroll-behavior:contain;gap:12px;padding:24px; }
86
101
  .hig-gesture-dynamic[data-hig-content-mode='custom'] { padding:0; }
102
+ /* A leaving view is out of flow and can be taller than the view replacing it. It must not make the sheet scrollable for the length of the swap: the content-sized sheet lets it show through to its own animating edge, and no scrollbar is drawn. */
103
+ .hig-gesture-dynamic:has(.hig-gesture-view[data-leaving]) { overflow:visible; }
104
+ :is(.hig-gesture-sheet,.hig-gesture-dynamic):has(.hig-gesture-view[data-leaving]) { scrollbar-width:none; }
87
105
  /* Edge sheets pad default content past the notch and home indicator; dynamic sheets pad the inner wrapper instead.
88
106
  Vaul directions are physical, so side insets are too. env() is 0px unless the host sets viewport-fit=cover. */
89
107
  .hig-gesture-sheet[data-vaul-drawer-direction='bottom'][data-hig-content-mode='default']:not([data-hig-dynamic]),.hig-gesture-sheet[data-vaul-drawer-direction='bottom'] > .hig-gesture-dynamic[data-hig-content-mode='default'] { padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
@@ -91,7 +109,7 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
91
109
  .hig-gesture-sheet:is([data-vaul-drawer-direction='left'],[data-vaul-drawer-direction='right'])[data-hig-content-mode='default']:not([data-hig-dynamic]) { padding-top:calc(24px + env(safe-area-inset-top,0px));padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
92
110
  .hig-gesture-sheet[data-vaul-drawer-direction='left'][data-hig-content-mode='default']:not([data-hig-dynamic]) { padding-left:calc(24px + env(safe-area-inset-left,0px)); }
93
111
  .hig-gesture-sheet[data-vaul-drawer-direction='right'][data-hig-content-mode='default']:not([data-hig-dynamic]) { padding-right:calc(24px + env(safe-area-inset-right,0px)); }
94
- .hig-gesture-handle[data-vaul-handle] { flex:none;align-self:center;width:100px;height:6px;border-radius:9999px;opacity:1;background:var(--hig-action);box-shadow:0 0 12px color-mix(in srgb,var(--hig-action) 60%,transparent);margin-block:4px 12px; }
112
+ .hig-gesture-handle[data-vaul-handle] { flex:none;align-self:center;width:100px;height:6px;border-radius:9999px;opacity:1;background:var(--hig-action);box-shadow:0 0 12px color-mix(in srgb,var(--hig-action) 60%,transparent),0 12px 48px 12px color-mix(in srgb,var(--hig-action) 12%,transparent);margin-block:4px 12px; }
95
113
  .hig-gesture-sheet[data-hig-motion='reduced'],.hig-gesture-backdrop[data-hig-motion='reduced'] { animation:none!important;transition:none!important; }
96
114
  .hig-popover { max-width:min(360px,calc(100vw - 32px));max-height:var(--radix-popover-content-available-height,calc(100dvh - 32px));overflow-y:auto;overscroll-behavior:contain;background:var(--hig-nested);color:var(--hig-text);padding:12px;border:1px solid transparent;border-radius:var(--hig-radius-xl,14px);box-shadow:0 8px 24px #0006;line-height:1.5;overflow-wrap:anywhere;z-index:50; }
97
115
  .hig-menu { min-width:min(12rem,calc(100vw - 32px));max-height:var(--radix-dropdown-menu-content-available-height,calc(100dvh - 32px));padding:4px; }
@@ -105,6 +123,22 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
105
123
  .hig-animated-number-place { position:relative;display:inline-block; }
106
124
  .hig-animated-number-new { display:inline-block; }
107
125
  .hig-animated-number-old { position:absolute;inset-inline-start:0;inset-block-start:0;display:inline-block;opacity:0;pointer-events:none; }
126
+ /* NumberFlow. Every part is its own box so it can slide, and nothing changes how the line is laid out: at rest the figure is the
127
+ same boxes plain text would be. A turning place gets a window one em tall, centred on its digit, with a band above and below
128
+ where the digits rolling through it fade; the strip inside the window is what moves. Set --hig-number-flow-mask-height to
129
+ resize the band; 0 cuts hard. Nothing here transitions: the motion is additive Web Animations started by the component,
130
+ which draws reduced motion at once. */
131
+ .hig-number-flow .hig-animated-number-visual { display:inline-block;position:relative;white-space:nowrap; }
132
+ .hig-number-flow-core { display:inline-block;unicode-bidi:isolate; }
133
+ .hig-number-flow-digits { display:inline-block;position:relative; }
134
+ .hig-number-flow-part,.hig-number-flow-place { display:inline-block;position:relative;white-space:pre; }
135
+ .hig-number-flow-digit { display:inline-block; }
136
+ .hig-number-flow-place[data-spinning]>.hig-number-flow-digit { visibility:hidden; }
137
+ .hig-number-flow-window { --hig-number-flow-edge:var(--hig-number-flow-mask-height,0.15em);position:absolute;inset-inline:0;inset-block-start:50%;height:calc(1em + 2*var(--hig-number-flow-edge));margin-block-start:calc(-0.5em - var(--hig-number-flow-edge));pointer-events:none;-webkit-mask-image:linear-gradient(to bottom,transparent,black var(--hig-number-flow-edge),black calc(100% - var(--hig-number-flow-edge)),transparent);mask-image:linear-gradient(to bottom,transparent,black var(--hig-number-flow-edge),black calc(100% - var(--hig-number-flow-edge)),transparent); }
138
+ .hig-number-flow-strip,.hig-number-flow-ghosts { position:absolute;inset:0;pointer-events:none; }
139
+ .hig-number-flow-glyph { position:absolute;inset-inline:0;inset-block-start:0;height:100%;line-height:calc(1em + 2*var(--hig-number-flow-edge));text-align:center; }
140
+ .hig-number-flow-ghost { position:absolute;margin:0;pointer-events:none; }
141
+ .hig-number-flow [data-will-change] :is(.hig-number-flow-part,.hig-number-flow-place,.hig-number-flow-strip) { will-change:transform; }
108
142
  .hig-row { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0;padding-block:12px; }
109
143
  .hig-data-list,.hig-list-error { display:flex;flex-direction:column;align-items:stretch;gap:var(--hig-gap);min-width:0; }
110
144
  .hig-data-list > .hig-button,.hig-list-error > .hig-button { align-self:flex-start; }
@@ -124,8 +158,7 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
124
158
  .hig-select-option[data-active='true'] { background:var(--hig-border); }
125
159
  .hig-table-sort { appearance:none;display:inline-flex;align-items:center;justify-content:inherit;gap:6px;max-width:100%;min-height:var(--hig-button);margin:-6px;padding:6px;border:0;border-radius:var(--hig-radius-md,6px);background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer; }
126
160
  .hig-table-sort-icon { flex:none; }
127
- .hig-table [aria-sort='ascending'] .hig-table-sort-up,.hig-table [aria-sort='descending'] .hig-table-sort-down,.hig-segment input:checked + span { color:var(--hig-text); }
128
- .hig-table [aria-sort='ascending'] .hig-table-sort-down,.hig-table [aria-sort='descending'] .hig-table-sort-up { opacity:.3; }
161
+ .hig-table [aria-sort='ascending'] .hig-table-sort-icon,.hig-table [aria-sort='descending'] .hig-table-sort-icon,.hig-segment input:checked + span { color:var(--hig-text); }
129
162
  .hig-table[data-sticky-header='true'] > thead > tr > th { position:sticky;inset-block-start:0;z-index:1;background:var(--hig-surface); }
130
163
  .hig-table-state > td { padding-block:24px;color:var(--hig-muted);text-align:center; }
131
164
  /* A host-owned command option supplies its own target, keyboard model and compact row height. */
@@ -133,34 +166,66 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
133
166
  insets the name, which lines the row up with the content of the cards around it. */
134
167
  .hig-market-row[data-mode='action'] { padding-inline-end:20px; }
135
168
  .hig-market-row[data-mode='action'] .hig-button[data-intent='ghost'] { color:var(--hig-text); }
169
+ /* Action mode is one line: the identity (favourite, icon, then the name over its detail) holds the leading edge, the figures,
170
+ trailing content and check sit on the trailing edge, and the name truncates instead of wrapping. The name button is a 44px target
171
+ with no block padding, so a row is 56px (58px with a detail line) like the other capsule rows.
172
+ When the row is too narrow for everything, space is given up in this order: the name truncates down to a floor (the button keeps
173
+ 5em, so the icon never leaves the identity and the start of the name stays readable); then whole figures drop from the end of
174
+ .hig-market-figures (volume, change, price): the group is one 44px line that wraps and clips, so a figure that does not fit moves to
175
+ the hidden second line instead of being cut (the empty ::before item lets even the first figure wrap away); then the trailing content
176
+ is clipped (the figures' shrink factor of 1000 makes them give up their space first; the trailing content's 6px padding keeps the
177
+ fraction of a pixel it gives up meanwhile, and a focus ring, inside its clip). The check always keeps its place. The identity's basis is 0 and the button has inline-size containment, so the floor is
178
+ the favourite + icon + 5em, not the full name. */
179
+ .hig-market-row[data-mode='action'] { flex-wrap:nowrap;padding-block:6px; }
180
+ .hig-market-row[data-mode='action'] .hig-market-identity { display:flex;align-items:center;flex:1 1 0;min-width:min-content; }
181
+ .hig-market-row[data-mode='action'] .hig-market-identity > .hig-button { flex:1 1 0;min-width:5em;contain:inline-size;justify-content:flex-start;padding-block:0;padding-inline-end:8px;text-align:start;overflow:hidden; }
182
+ .hig-market-row[data-mode='action'] :is(.hig-market-favorite,.hig-market-icon) { flex:none;display:inline-flex;align-items:center; }
183
+ .hig-market-row[data-mode='action'] .hig-market-icon + .hig-button { padding-inline-start:12px; }
184
+ .hig-market-row[data-mode='action'] .hig-market-figures { display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:flex-end;flex:0 1000 auto;min-width:0;height:var(--hig-button);margin-inline-start:-12px;overflow:hidden; }
185
+ .hig-market-row[data-mode='action'] .hig-market-figures::before { content:'';flex:none;width:0;height:var(--hig-button); }
186
+ .hig-market-row[data-mode='action'] .hig-market-figures > * { display:inline-flex;align-items:center;flex:none;height:var(--hig-button);margin-inline-start:12px;white-space:nowrap; }
187
+ .hig-market-row[data-mode='action'] .hig-market-trailing { flex:0 1 auto;justify-content:safe flex-end;min-width:0;padding:6px;margin:-6px;overflow:hidden;white-space:nowrap; }
188
+ .hig-market-row[data-mode='action'] :is(.hig-market-text,.hig-market-label,.hig-market-detail) { max-width:100%;min-width:0; }
189
+ .hig-market-row[data-mode='action'] :is(.hig-market-label,.hig-market-detail) { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
190
+ .hig-market-row[data-mode='action'] .hig-market-label { display:block; }
136
191
  .hig-market-row[data-mode='presentation'] { display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--hig-gap);padding-block:0; }
137
192
  .hig-market-row[data-mode='presentation'][data-has-volume] { grid-template-columns:minmax(0,1fr) auto auto auto; }
138
193
  .hig-market-row[data-mode='presentation'] .hig-market-identity { display:flex;align-items:center;gap:8px;min-width:0; }
139
194
  .hig-market-row[data-mode='presentation'] :is(.hig-market-price,.hig-market-change,.hig-market-volume) { text-align:end; }
140
- .hig-market-row[data-mode='presentation'] .hig-number { font-family:inherit; }
195
+ /* A number read like the text around it uses the interface face, still with tabular digits, not the mono face: presentation
196
+ market rows, the swap figures, asset and account balances, action, position, trade, profile and BarMark values, the TargetBlock
197
+ headline and a row value. */
198
+ .hig-market-row[data-mode='presentation'] .hig-number,.hig-swap-amount .hig-number,.hig-swap-pill .hig-number,.hig-swap-meta .hig-number,.hig-swap-row .hig-number,.hig-swap-fees .hig-number,.hig-swap-details .hig-number,.hig-swap-setting-value .hig-number,.hig-swap-identity .hig-number,.hig-asset-row .hig-number,.hig-account-balance .hig-number,.hig-account-section-total .hig-number,.hig-manage-action-value .hig-number,.hig-position-details dd .hig-number,.hig-target-amount .hig-number,.hig-confirm-amount .hig-number,.hig-trade-result .hig-number,.hig-trade-pnl .hig-number,.hig-trade-details .hig-number,.hig-profile-value .hig-number,.hig-bar-mark-description .hig-number,.hig-bar-mark-detail .hig-number,.hig-list-row-value .hig-number { font-family:inherit; }
141
199
  /* Host options: a row without price or change, or with trailing content or a check, flows into as many columns as it has cells. */
142
200
  .hig-market-row[data-mode='presentation'][data-flow] { grid-template-columns:minmax(0,1fr);grid-auto-flow:column;grid-auto-columns:auto; }
143
201
  .hig-market-row[data-mode='presentation'] .hig-market-trailing { text-align:end; }
144
- .hig-market-row[data-flow] .hig-market-identity { flex:1 1 auto;min-width:0; }
202
+ .hig-market-row[data-mode='presentation'][data-flow] .hig-market-identity { flex:1 1 auto;min-width:0; }
145
203
  .hig-market-text { display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:start; }
146
204
  .hig-market-detail { font-size:.875rem;line-height:1.43;font-weight:400;color:var(--hig-muted); }
147
205
  .hig-market-trailing { display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0; }
148
- .hig-market-check { flex:none;color:var(--hig-text); }
206
+ .hig-market-check,.hig-asset-row-check,.hig-list-row-check,.hig-language-check { flex:none;color:var(--hig-text); }
149
207
  .hig-market-row[data-active] { border-radius:var(--hig-radius-xl,14px);background:var(--hig-fill); }
150
208
  .hig-market-row[data-disabled] :is(.hig-market-name,.hig-market-price,.hig-market-change,.hig-market-volume,.hig-market-trailing,.hig-market-icon) { opacity:.5; }
151
209
  .hig-badge { display:inline-flex;align-items:center;gap:4px;width:fit-content;max-width:100%;min-width:0;padding:4px 10px;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);line-height:1.5;vertical-align:middle;overflow-wrap:anywhere; }
210
+ .hig-badge-dot { flex:none;width:6px;height:6px;border-radius:50%;background:currentColor; }
152
211
  .hig-badge[data-tone='positive'] { color:var(--hig-positive);background:color-mix(in srgb,var(--hig-positive) 15%,transparent); }
153
212
  .hig-badge[data-tone='negative'] { color:var(--hig-negative);background:color-mix(in srgb,var(--hig-negative) 15%,transparent); }
154
213
  .hig-badge[data-tone='warning'] { color:var(--hig-warning);background:color-mix(in srgb,var(--hig-warning) 15%,transparent); }
155
214
  .hig-badge[data-tone='info'] { color:var(--hig-info);background:color-mix(in srgb,var(--hig-info) 15%,transparent); }
156
215
  .hig-avatar { display:inline-grid;place-items:center;width:40px;height:40px;border-radius:9999px;background:var(--hig-fill); }
216
+ .hig-avatar[data-square] { border-radius:0; }
217
+ /* A photo that is not square is cropped to the box, as on native, never stretched. */
218
+ img.hig-avatar { object-fit:cover; }
219
+ /* The generated face fills the box and is clipped to its shape here, so the drawing needs no mask of its own. */
220
+ .hig-avatar[data-variant='beam'] { overflow:hidden;background:none; }
221
+ .hig-avatar > svg { display:block;width:100%;height:100%; }
157
222
  .hig-skeleton { width:100%;min-height:48px;background:var(--hig-fill-raised);border-radius:10px;animation:hig-pulse 1.5s ease-in-out infinite; }
158
223
  .hig-alert,.hig-empty-state { display:flex;flex-direction:column;align-items:flex-start;gap:var(--hig-gap);overflow-wrap:anywhere;line-height:1.5; }
159
224
  .hig-alert > :is(strong,p),.hig-empty-state > :is(h3,p) { margin:0;max-width:100%; }
160
225
  .hig-empty-state > p,.hig-select-chevron,.hig-empty-state-icon { color:var(--hig-muted); }
161
226
  .hig-empty-state { align-items:center;text-align:center;padding-block:var(--hig-space-xxxl,32px); }
162
227
  .hig-empty-state-icon { display:inline-flex; }
163
- .hig-empty-state-icon > svg { width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round; }
228
+ .hig-empty-state-icon > svg { width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
164
229
  .hig-alert-actions { display:flex;flex-wrap:wrap;align-items:center;gap:var(--hig-action-gap);max-width:100%; }
165
230
  /* Severity tints the fill and colours the title from a token role: no stroke and no glow, like every other layer. The tint is
166
231
  10% so the negative title keeps 4.5:1 on it (12% measured 4.47). The neutral
@@ -173,12 +238,15 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
173
238
  :where(.hig-surface)[data-severity='default'] { --hig-alert-tone:var(--hig-text);background:color-mix(in srgb,var(--hig-text) 6%,var(--hig-surface)); }
174
239
  /* A notice is one capsule row: severity symbol, message, optional action, close. */
175
240
  .hig-toast-item { display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;min-height:var(--hig-button,44px);padding-block:5px;padding-inline:16px 5px;border:1px solid transparent;border-radius:9999px;background:var(--hig-nested);color:var(--hig-text);box-shadow:0 8px 24px #0006;font:500 1rem/1.5 var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);overflow-wrap:anywhere; }
176
- .hig-toast-icon,.hig-toast-close > svg { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }
241
+ .hig-toast-icon,.hig-toast-close > svg { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
177
242
  .hig-toast-icon { color:var(--hig-info); }
178
243
  .hig-toast-item[data-severity='success'] .hig-toast-icon { color:var(--hig-positive); }
179
244
  .hig-toast-item[data-severity='warning'] .hig-toast-icon { color:var(--hig-warning); }
180
245
  .hig-toast-item[data-severity='error'] .hig-toast-icon { color:var(--hig-negative); }
181
246
  .hig-toast-message { flex:1;min-width:0; }
247
+ /* A notice with a description is two lines tall, so its corners keep the one-line radius. */
248
+ .hig-toast-item[data-described] { border-radius:22px;padding-block:8px; }
249
+ .hig-toast-description { display:block;font-weight:400; }
182
250
  /* Inside Sonner's fixed-width slot the capsule hugs its content and centres. */
183
251
  [data-sonner-toast] .hig-toast-item { margin-inline:auto; }
184
252
  .hig-toast-item .hig-button { min-height:32px;padding-block:2px; }
@@ -188,8 +256,8 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
188
256
  .hig-toast-close::before { content:'';position:absolute;z-index:-1;inset:calc((var(--hig-button,44px) - 32px)/2);border-radius:50%; }
189
257
  .hig-toast-close:active { color:var(--hig-text); }
190
258
  .hig-toast-close:active::before { background:var(--hig-border); }
191
- @media(prefers-reduced-motion:reduce) { .hig-button:active:not(:disabled) {transform:none;} }
192
- [data-hig-motion='reduced'] .hig-button:active:not(:disabled) {transform:none;}
259
+ @media(prefers-reduced-motion:reduce) { .hig-button:active:not(:disabled,[aria-disabled='true']) {transform:none;} }
260
+ [data-hig-motion='reduced'] .hig-button:active:not(:disabled,[aria-disabled='true']) {transform:none;}
193
261
  .hig-tabs { display:grid;gap:var(--hig-gap);min-width:0; }
194
262
  .hig-tab-list,.hig-pagination { gap:var(--hig-action-gap); }
195
263
  .hig-tab-list { flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:4px;margin:-4px; }
@@ -227,7 +295,7 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
227
295
  .hig-select-trigger {text-align:start;line-height:1.5; }
228
296
  .hig-select-trigger[aria-expanded='true'] { border-color:var(--hig-faint); }
229
297
  .hig-select-value { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
230
- .hig-select-chevron,.hig-select-check,.hig-accordion-chevron { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }
298
+ .hig-select-chevron,.hig-select-check,.hig-accordion-chevron { flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
231
299
  .hig-select-trigger[aria-expanded='true'] .hig-select-chevron { transform:rotate(180deg); }
232
300
  .hig-select-list { position:fixed;inset:auto;margin:0;padding:6px;font:inherit;line-height:1.5;background:var(--hig-nested);box-shadow:0 12px 32px #0006;overflow:auto;overscroll-behavior:contain;z-index:50; }
233
301
  /* Floating lists present with a short fade and settle from their anchor edge. */
@@ -269,9 +337,13 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
269
337
  .hig-segment span { display:flex; justify-content:center; align-items:center; min-height:calc(var(--hig-button) - 8px); padding:2px .75rem; border-radius:9999px; color:var(--hig-muted); font-weight:500; line-height:1.5; text-align:center; overflow-wrap:anywhere; }
270
338
  .hig-segment input:focus-visible { outline:0; }
271
339
 
340
+ /* PresetGroup: equal-width chips, `--hig-preset-columns` to a row, each at least a 44px target at any density. */
341
+ .hig-preset-group { display:grid;grid-template-columns:repeat(var(--hig-preset-columns,1),minmax(0,1fr));gap:8px;width:100%;min-width:0; }
342
+ .hig-preset-group > .hig-button { min-height:44px;padding-inline:8px; }
343
+
272
344
  /* Filter: capsules in one row that scrolls sideways. The radio covers its capsule; the circle holds the option's image or an
273
345
  empty ring, and fills while a check draws in when chosen. */
274
- .hig-filter { display:flex;gap:var(--hig-action-gap);min-width:0;margin:-4px;padding:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none; }
346
+ .hig-filter { display:flex;gap:var(--hig-action-gap);min-width:0;margin:-4px calc(-4px - var(--hig-filter-bleed,0px));padding:4px calc(4px + var(--hig-filter-bleed,0px));scroll-padding-inline:var(--hig-filter-bleed,0px);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none; }
275
347
  .hig-filter::-webkit-scrollbar { display:none; }
276
348
  .hig-filter-chip { position:relative;flex:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding-block:6px;padding-inline:8px 16px;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);font-size:.875rem;font-weight:600;line-height:1.5;white-space:nowrap;cursor:pointer;transition:var(--hig-motion-duration-fast,180ms) ease;transition-property:background-color,color; }
277
349
  /* 40px capsule with a 44px hit area. */
@@ -320,25 +392,6 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
320
392
  @keyframes hig-pulse { 50% { opacity:.45; } }
321
393
  @keyframes hig-spin { to { transform:rotate(360deg); } }
322
394
  @keyframes hig-progress { to { background-position:-200% 0; } }
323
- @media(prefers-reduced-motion:reduce) {
324
- .hig-spinner-indicator,.hig-progress progress:not([value]),.hig-skeleton,.hig-status-indicator::before { animation:none; }
325
- .hig-button-spinner { animation:none; }
326
- .hig-progress progress::-webkit-progress-bar,.hig-progress progress:not([value])::-webkit-progress-bar { animation:none; }
327
- .hig-button,.hig-switch input,.hig-switch input::before { transition:none; }
328
- .hig-filter-chip,.hig-filter-mark,.hig-filter-mark > img,.hig-filter-mark path { transition:none; }
329
- .hig-segment-indicator,.hig-accordion-chevron,.hig-accordion-summary,.hig-accordion::details-content { transition:none; }
330
- .hig-select-list,.hig-popover { animation:none; }
331
- }
332
- [data-hig-motion='reduced'] :is(.hig-spinner-indicator,.hig-progress progress,.hig-skeleton) { animation:none; }
333
- [data-hig-motion='reduced'] .hig-status-indicator::before { animation:none; }
334
- [data-hig-motion='reduced'] .hig-button-spinner { animation:none; }
335
- [data-hig-motion='reduced'] :is(.hig-accordion-chevron,.hig-accordion-summary) { transition:none; }
336
- [data-hig-motion='reduced'] .hig-accordion::details-content { transition:none; }
337
- [data-hig-motion='reduced'] .hig-progress progress::-webkit-progress-bar,[data-hig-motion='reduced'] .hig-progress progress:not([value])::-webkit-progress-bar { animation:none; }
338
- [data-hig-motion='reduced'] .hig-button,[data-hig-motion='reduced'] .hig-switch input,[data-hig-motion='reduced'] .hig-switch input::before { transition:none; }
339
- [data-hig-motion='reduced'] .hig-segment-indicator { transition:none; }
340
- [data-hig-motion='reduced'] :is(.hig-filter-chip,.hig-filter-mark,.hig-filter-mark > img,.hig-filter-mark path) { transition:none; }
341
- [data-hig-motion='reduced'] .hig-select-list,[data-hig-motion='reduced'].hig-popover { animation:none; }
342
395
  @media(forced-colors:active) {
343
396
  .hig-choice input,.hig-select select,.hig-range { appearance:auto; -webkit-appearance:auto; }
344
397
  .hig-choice input::before,.hig-select::after { display:none; }
@@ -358,8 +411,8 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
358
411
  @media (pointer:coarse) { :is(input,textarea,select).hig-input { font-size:max(16px,1em); } }
359
412
  /* Touch has no hover: browsers latch :hover on the first tap. Hover styles apply only to a precise hovering pointer. */
360
413
  @media (hover:hover) and (pointer:fine) {
361
- .hig-button:hover:not(:disabled) { filter:brightness(.9); }
362
- .hig-button[data-intent='ghost']:hover:not(:disabled) { background:var(--hig-nested);color:var(--hig-text);filter:none; }
414
+ .hig-button:hover:not(:disabled,[aria-disabled='true']) { filter:brightness(.9); }
415
+ .hig-button[data-intent='ghost']:hover:not(:disabled,[aria-disabled='true']) { background:var(--hig-nested);color:var(--hig-text);filter:none; }
363
416
  .hig-tab[aria-selected='false']:hover:not(:disabled) { color:var(--hig-text);filter:none; }
364
417
  .hig-navigation > .hig-link:hover { background:var(--hig-nested);color:var(--hig-text); }
365
418
  .hig-table-sort:hover { color:var(--hig-text);background:var(--hig-nested); }
@@ -374,15 +427,20 @@ textarea.hig-input { border-radius:var(--hig-radius-xl,14px);resize:vertical; }
374
427
  .hig-vertical-address { display:inline-flex;flex-direction:column;flex:none;font-family:var(--hig-font-mono,'Bloxwap Mono',ui-monospace,monospace);font-size:calc(var(--hig-address-row,1.5em)*.9);line-height:var(--hig-address-row,1.5em);font-weight:500;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--hig-muted);text-align:start;white-space:pre; }
375
428
  .hig-vertical-address > [aria-hidden] { display:flex;flex-direction:column; }
376
429
  .hig-vertical-address [data-anchor] { font-weight:700;color:var(--hig-text); }
430
+ /* QRCode: a square holding one inline SVG, with the arena as an HTML box over it. `size` sets the width; host CSS may resize the square and the drawing and the arena's box scale. */
431
+ .hig-qr-code { position:relative;display:block;flex:none;box-sizing:border-box;width:var(--hig-qr-code-size,196px);max-width:100%;aspect-ratio:1; }
432
+ .hig-qr-code > svg { position:absolute;inset:0;display:block;width:100%;height:100%; }
433
+ .hig-qr-code-arena { position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden; }
434
+ .hig-qr-code-image { display:block;width:100%;height:100%;object-fit:cover; }
377
435
  /* WalletAddress: the QR code and the address column share one height; the hint sits under both. */
378
436
  .hig-wallet-address { appearance:none;display:inline-flex;flex-direction:column;align-items:center;gap:12px;max-width:100%;margin:0;padding:12px;border:0;border-radius:var(--hig-radius-xl,14px);background:transparent;color:var(--hig-text);font:inherit;text-align:start; }
379
- button.hig-wallet-address { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
437
+ button.hig-wallet-address,button.hig-trade-row,button.hig-list-row,a.hig-list-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
380
438
  button.hig-wallet-address:active { opacity:.8; }
381
439
  .hig-wallet-address-body { display:flex;align-items:center;gap:16px;max-width:100%; }
382
440
  .hig-wallet-address-qr { flex:none;display:block;width:var(--hig-qr);height:var(--hig-qr); }
383
- .hig-wallet-address-qr > svg { display:block;width:100%;height:100%; }
441
+ .hig-wallet-address-qr > svg,.hig-wallet-address-qr > .hig-qr-code { display:block;width:100%;height:100%; }
384
442
  .hig-wallet-address-hint { display:inline-flex;align-items:center;gap:8px;font-size:.875rem;line-height:1.5;color:var(--hig-muted); }
385
- .hig-wallet-address-hint > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round; }
443
+ .hig-wallet-address-hint > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
386
444
  /* SwapPanelBlock: two cards joined by a flip control. Each card is one target for its token picker; capsules and the
387
445
  amount sit on a pass-through layer above that target and take their own presses. */
388
446
  .hig-swap-panel { display:flex;flex-direction:column;width:100%;max-width:28rem;min-width:0;color:var(--hig-text);font-family:var(--hig-font-sans,'Bloxwap Sans',system-ui,sans-serif);line-height:1.5;outline:none; }
@@ -411,7 +469,6 @@ button.hig-wallet-address:active { opacity:.8; }
411
469
  .hig-swap-icon { flex:none; }
412
470
  .hig-swap-amount-content { position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 16px 20px;pointer-events:none; }
413
471
  .hig-swap-amount { max-width:100%;border-radius:var(--hig-radius-lg,10px);font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;overflow:hidden;pointer-events:auto;cursor:text; }
414
- .hig-swap-amount .hig-number,.hig-swap-pill .hig-number,.hig-swap-meta .hig-number,.hig-swap-row .hig-number,.hig-swap-fees .hig-number,.hig-swap-details .hig-number,.hig-swap-setting-value .hig-number,.hig-swap-identity .hig-number { font-family:inherit; }
415
472
  .hig-swap-amount[data-muted] { color:var(--hig-muted);pointer-events:none; }
416
473
  /* An account reads name over caption beside one 40px disc; a pending destination is a placeholder. */
417
474
  .hig-swap-selected[data-account] { align-items:center; }
@@ -432,6 +489,8 @@ button.hig-wallet-address:active { opacity:.8; }
432
489
  .hig-swap-note[data-tone='warning'] { --hig-swap-tone:var(--hig-warning); }
433
490
  .hig-swap-note[data-tone='negative'] { --hig-swap-tone:var(--hig-negative); }
434
491
  .hig-swap-panel > .hig-swap-view > .hig-swap-view-header { margin-block-end:12px; }
492
+ /* A titled panel draws the shared ScreenHeader, 12px above the cards as the pushed views' headers are. */
493
+ .hig-swap-panel > .hig-swap-view > .hig-screen-header { margin-block-end:12px; }
435
494
  .hig-swap-view-header[data-plain] { margin-inline-start:4px;min-height:44px; }
436
495
  /* A compact card is the slot row alone: a fixed destination with no amount. */
437
496
  .hig-swap-card[data-compact] > .hig-swap-slot { border-radius:24px; }
@@ -463,14 +522,15 @@ button.hig-swap-receive:active { opacity:.8; }
463
522
  .hig-swap-view { --hig-swap-from:24px;display:flex;flex-direction:column;min-width:0;animation:hig-swap-push var(--hig-motion-duration-base,260ms) var(--hig-motion-easing-standard,cubic-bezier(.22,1,.36,1)); }
464
523
  .hig-swap-view[data-direction='pop'],[dir='rtl'] .hig-swap-view[data-direction='push'] { --hig-swap-from:-24px; }
465
524
  @keyframes hig-swap-push { from { opacity:0;transform:translateX(var(--hig-swap-from)); } }
466
- .hig-swap-picker,.hig-swap-settings-view { display:flex;flex-direction:column;gap:16px;min-width:0; }
525
+ /* Every block's column: the swap views, the blocks and the AssetsBlock list. */
526
+ .hig-swap-picker,.hig-swap-settings-view,.hig-account-block,.hig-token-card,.hig-manage-position-block,.hig-settings-block,.hig-position-block,.hig-reward-block,.hig-trade-history-list,.hig-trade-detail,.hig-language-block,.hig-assets-block,.hig-assets-list,.hig-confirm,.hig-preset-picker,.hig-explainer { display:flex;flex-direction:column;gap:16px;min-width:0; }
467
527
  .hig-swap-view-header { display:flex;align-items:center;gap:4px;min-width:0;margin-inline-start:-8px; }
468
528
  .hig-swap-view-title { margin:0;min-width:0;font-size:1.5rem;line-height:1.25;font-weight:700;overflow-wrap:anywhere;outline:none; }
469
529
  .hig-swap-back { appearance:none;flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--hig-muted);cursor:pointer; }
470
530
  .hig-swap-back:active { background:var(--hig-surface);color:var(--hig-text); }
471
531
  [dir='rtl'] .hig-swap-back > svg,[dir='rtl'] .hig-swap-setting-value > svg { transform:scaleX(-1); }
472
532
  /* In a gesture sheet the panel fills the sheet width and the sheet follows the height of the view on show. */
473
- .hig-gesture-sheet.hig-swap-sheet { max-width:30rem;margin-inline:auto;border-radius:24px 24px 0 0; }
533
+ .hig-gesture-sheet.hig-swap-sheet { max-width:30rem;margin-inline:auto;border-radius:36px 36px 0 0; }
474
534
  .hig-swap-sheet .hig-swap-panel { max-width:none;padding:4px 12px calc(16px + env(safe-area-inset-bottom,0px)); }
475
535
  /* From and To pickers: a wallet or address row, the search, the chain filter and the token list, 16 apart. */
476
536
  .hig-picker { display:flex;flex-direction:column;gap:16px;width:100%;min-width:0;color:var(--hig-text);line-height:1.5; }
@@ -500,8 +560,8 @@ button.hig-swap-receive:active { opacity:.8; }
500
560
  .hig-swap-chain-badge { position:absolute;inset-block-end:0;inset-inline-end:0;width:16px;height:16px;border-radius:50%;object-fit:cover;background:var(--hig-surface);box-shadow:0 0 0 2px var(--hig-background); }
501
561
  .hig-swap-sheet .hig-swap-chain-badge { box-shadow:0 0 0 2px var(--hig-overlay,#111); }
502
562
  .hig-swap-settings { display:flex;flex-direction:column;gap:12px;min-width:0; }
503
- /* The view title already names the presets; the group keeps its legend for assistive technology only. */
504
- .hig-swap-presets .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
563
+ /* The view title already names the presets, the RewardBlock tabs and the TargetBlock unit; each group keeps its legend for assistive technology only. */
564
+ .hig-swap-presets .hig-segmented-control > legend,.hig-reward-block .hig-segmented-control > legend,.hig-target-block .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
505
565
  .hig-swap-setting { appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:var(--hig-control);padding:8px 16px;border:0;border-radius:9999px;background:var(--hig-fill);color:var(--hig-text);font:inherit;font-size:1rem;font-weight:600;text-align:start;cursor:pointer; }
506
566
  .hig-swap-setting-value { display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--hig-muted); }
507
567
  .hig-swap-fees { display:flex;flex-direction:column;gap:12px;margin:0; }
@@ -524,29 +584,27 @@ button.hig-swap-receive:active { opacity:.8; }
524
584
  .hig-swap-key:hover,.hig-swap-back:hover { background:var(--hig-surface); }
525
585
  .hig-swap-back:hover { color:var(--hig-text); }
526
586
  }
527
- @media(prefers-reduced-motion:reduce) { .hig-swap-view { animation:none; } .hig-swap-flip > *,.hig-swap-card { transition:none; } .hig-swap-flip > :active { transform:none; } }
528
- [data-hig-motion='reduced'] .hig-swap-view { animation:none; }
529
- [data-hig-motion='reduced'] :is(.hig-swap-flip > *,.hig-swap-card) { transition:none; }
587
+ @media(prefers-reduced-motion:reduce) { .hig-swap-flip > :active { transform:none; } }
530
588
  [data-hig-motion='reduced'] .hig-swap-flip > :active { transform:none; }
531
589
  /* Inline prose links retain line layout (WCAG inline-text exception). */
532
590
  p .hig-link { display:inline;min-height:0;min-width:0; }
533
591
  .hig-input,.hig-range,.hig-menu-item,.hig-select-option,.hig-table-sort,.hig-choice,.hig-segment { min-width:var(--hig-button); }
534
592
 
535
593
  /* AssetBalanceRow: a capsule row concentric with its 40px avatar (8px padding, 56px row, 28px end radius). */
536
- .hig-asset-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
537
- button.hig-asset-row { cursor:pointer; }
538
- button.hig-asset-row:active { background:var(--hig-fill-raised); }
594
+ .hig-asset-row,.hig-trade-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
595
+ button.hig-asset-row,.hig-asset-row-main { cursor:pointer; }
596
+ button.hig-asset-row:active,.hig-asset-row:has(> .hig-asset-row-main:active:enabled) { background:var(--hig-fill-raised); }
597
+ .hig-asset-row-main { appearance:none;position:relative;flex:1;display:flex;align-items:center;gap:12px;min-width:0;align-self:stretch;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start; }
598
+ .hig-asset-row-main:disabled { cursor:default; }
539
599
  .hig-asset-row-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.625rem;font-weight:600; }
540
- .hig-asset-row-icon > img { width:100%;height:100%;object-fit:cover; }
541
- .hig-asset-row-identity,.hig-asset-row-amounts { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
600
+ .hig-asset-row-icon > img,.hig-reward-avatar > img,.hig-trade-avatar > img,.hig-profile-artwork > img { width:100%;height:100%;object-fit:cover; }
601
+ .hig-asset-row-identity,.hig-asset-row-amounts,.hig-trade-row-identity,.hig-trade-row-result { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
542
602
  .hig-asset-row-identity { flex:1;overflow-wrap:anywhere; }
543
603
  .hig-asset-row-amounts { flex:none;align-items:flex-end;text-align:end; }
544
- .hig-asset-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
545
- .hig-asset-row .hig-number { font-family:inherit; }
604
+ .hig-asset-row strong,.hig-trade-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
546
605
  /* A tag is a caption under the figures; the trailing slot and the selected check follow them, 12px apart like the rest of the row. */
547
606
  .hig-asset-row-tag { font-size:.75rem;line-height:1.5;color:var(--hig-muted); }
548
607
  .hig-asset-row-trailing { flex:none;display:flex;align-items:center;gap:8px;color:var(--hig-muted); }
549
- .hig-asset-row-check { flex:none;color:var(--hig-text); }
550
608
  /* Unavailable: the well fill stays, the text and artwork go muted, and a press does nothing. */
551
609
  .hig-asset-row:is(:disabled,[aria-disabled='true']) { cursor:default; }
552
610
  button.hig-asset-row:disabled:active { background:var(--hig-fill); }
@@ -554,7 +612,6 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
554
612
  .hig-asset-row:is(:disabled,[aria-disabled='true']) .hig-asset-row-icon { opacity:.5; }
555
613
  /* ScreenHeader: Back, a centred title and a trailing control, shared by the cards that are their own screen.
556
614
  AccountBlock: that header, the total with the deposit action, then the holdings 8px apart. */
557
- .hig-account-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
558
615
  .hig-screen-header { display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:44px; }
559
616
  .hig-screen-header-side { display:grid;place-items:center;min-width:0; }
560
617
  .hig-screen-title { margin:0;font-size:1.0625rem;line-height:1.4;font-weight:600;text-align:center;overflow-wrap:anywhere; }
@@ -564,8 +621,8 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
564
621
  /* stickyHeader: pinned in the nearest scroller, transparent at rest so whatever the host draws behind it shows through, and filled
565
622
  once content scrolls under it. The script marks that moment with data-scrolled; where scroll-driven animations exist the fill
566
623
  also follows the scroll position itself (the header's parent leaving the top of the scroller), which needs no script. */
567
- .hig-screen-header[data-sticky] { position:sticky;inset-block-start:0;z-index:1;background-color:transparent;transition:background-color var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,ease); }
568
- .hig-screen-header[data-sticky][data-scrolled] { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); }
624
+ .hig-screen-header[data-sticky],.hig-profile-bar[data-sticky] { position:sticky;inset-block-start:0;z-index:1;background-color:transparent;transition:background-color var(--hig-motion-duration-fast) var(--hig-motion-easing-standard,ease); }
625
+ .hig-screen-header[data-sticky][data-scrolled],.hig-profile-bar[data-sticky][data-scrolled] { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); }
569
626
  @keyframes hig-sticky-fill { from { background-color:transparent; } to { background-color:var(--hig-sticky-header-background,var(--hig-screen-background,var(--hig-background))); } }
570
627
  @supports (animation-timeline:view()) {
571
628
  :has(> .hig-screen-header[data-sticky]) { view-timeline:--hig-sticky-header block; }
@@ -573,31 +630,30 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
573
630
  /* Not when the parent is itself the scroller (data-sticky-own): its view timeline would follow an outer scroller, so the script's data-scrolled rule fills it. */
574
631
  .hig-screen-header[data-sticky][data-sticky-own] { animation:none; }
575
632
  }
576
- @media(prefers-reduced-motion:reduce) { .hig-screen-header[data-sticky] { transition:none;animation:none; } }
577
- [data-hig-motion='reduced'] .hig-screen-header[data-sticky] { transition:none;animation:none; }
633
+ /* ProfileBlock's top bar pins the same way (with the screen header's rule above). */
634
+ /* No jump when it pins: a header that leads its pane sticks where it rests (--hig-sticky-inset, the padding between it and the
635
+ scroller's content edge, measured by the script), and its fill reaches up to the scroller's edge (--hig-sticky-cover) so content
636
+ does not show through above it. An inset header fills on the script's data-scrolled, which marks the moment it pins. */
637
+ :is(.hig-screen-header,.hig-profile-bar)[data-sticky][data-sticky-inset] { inset-block-start:var(--hig-sticky-inset,0px);animation:none; }
638
+ :is(.hig-screen-header,.hig-profile-bar)[data-sticky]::before { content:'';position:absolute;inset-inline:0;inset-block-end:100%;block-size:var(--hig-sticky-cover,0px);background-color:inherit;pointer-events:none; }
578
639
  .hig-account-summary { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px; }
579
640
  .hig-account-balance { min-width:0;font-size:2rem;line-height:1.25;font-weight:600; }
580
- .hig-account-balance .hig-number { font-family:inherit; }
581
641
  .hig-account-assets { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
582
642
  .hig-account-sections { display:flex;flex-direction:column;gap:24px;min-width:0; }
583
- .hig-account-section { display:flex;flex-direction:column;gap:8px;min-width:0; }
643
+ .hig-account-section,.hig-trade-notice,.hig-trade-footer,.hig-list-group { display:flex;flex-direction:column;gap:8px;min-width:0; }
584
644
  .hig-account-section-header { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500; }
585
645
  .hig-account-section-header > h3 { margin:0;min-width:0;font:inherit;overflow-wrap:anywhere; }
586
646
  .hig-account-section-total { flex:none; }
587
- .hig-account-section-total .hig-number { font-family:inherit; }
588
647
  /* TokenActionBlock: header, the assets and chains bars 8px apart, then equal full-width actions 16px below. */
589
- .hig-token-card { display:flex;flex-direction:column;gap:16px;min-width:0; }
590
- .hig-token-bars,.hig-token-actions { display:flex;flex-direction:column;gap:8px; }
648
+ .hig-token-bars,.hig-token-actions,.hig-confirm-warning,.hig-setting-cards,.hig-setting-body,.hig-setting-volume,.hig-notifications-item,.hig-signals-group,.hig-reward-list { display:flex;flex-direction:column;gap:8px; }
591
649
  .hig-token-card > .hig-token-note { margin:0; }
592
650
  .hig-token-card > .hig-token-actions + .hig-token-note { margin-block-start:-8px; }
593
651
  /* ManagePositionBlock: header, two bars 8px apart, action rows and the position row 16px below each other. */
594
- .hig-manage-position-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
595
652
  /* The two bars are read-only, so they sit on the page without a card, further apart than cards would be. */
596
653
  .hig-token-card > .hig-token-bars,.hig-manage-position-block > .hig-token-bars { gap:20px;padding-inline:4px; }
597
654
  .hig-position-side[data-side='long'],.hig-position-row [data-tone='up'] { color:var(--hig-positive); }
598
655
  .hig-position-side[data-side='short'],.hig-position-row [data-tone='down'] { color:var(--hig-negative); }
599
656
  /* An action row's trailing value (a resting trigger's price) is muted unless the host gives it a tone. */
600
- .hig-manage-action-value .hig-number { font-family:inherit; }
601
657
  .hig-manage-action-value[data-tone='positive'] { color:var(--hig-positive); }
602
658
  .hig-manage-action-value[data-tone='negative'] { color:var(--hig-negative); }
603
659
  .hig-manage-action-value[data-tone='muted'] { color:var(--hig-muted); }
@@ -607,8 +663,6 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
607
663
  /* The caption under the position row, such as a stale or estimated result: 8 under the row, on its end inset. */
608
664
  .hig-position-caption { margin:-8px 0 0;padding-inline:16px;color:var(--hig-muted);font-size:.8125rem;line-height:1.5; }
609
665
  /* SoundHapticsBlock, SignalsBlock and NotificationsBlock: a header, then settings as cards 8px apart. Cards inside a list share one rounded container, 2px apart. */
610
- .hig-settings-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
611
- .hig-setting-cards,.hig-setting-body,.hig-setting-volume,.hig-notifications-item,.hig-signals-group { display:flex;flex-direction:column;gap:8px; }
612
666
  .hig-setting-list { display:flex;flex-direction:column;gap:2px;border-radius:20px;overflow:hidden; }
613
667
  .hig-setting-card { display:flex;flex-direction:column;gap:12px;padding:4px 20px;border-radius:20px;background:var(--hig-fill); }
614
668
  .hig-setting-card:has(> .hig-setting-body) { padding-block-end:16px; }
@@ -619,7 +673,26 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
619
673
  .hig-setting-switch[data-locked] { cursor:default; }
620
674
  .hig-setting-switch-accessory { display:inline-flex;align-items:center;margin-inline-start:8px;vertical-align:middle; }
621
675
  .hig-setting-hint { margin:0;padding-inline:20px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
622
- .hig-settings-description { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
676
+ .hig-login-block { display:grid;gap:16px; }
677
+ .hig-login-analytics { display:flex;align-items:center; }
678
+ .hig-login-analytics > .hig-switch { margin-inline-start:auto; }
679
+ .hig-login-providers { display:grid;gap:8px; }
680
+ .hig-login-providers .hig-list-row { border-radius:16px;background:var(--hig-surface); }
681
+ @media (hover: hover) and (pointer: fine) {
682
+ .hig-login-providers .hig-list-row:hover { background:var(--hig-nested); }
683
+ }
684
+ .hig-login-block > footer { display:flex;flex-wrap:wrap;justify-content:center;gap:16px; }
685
+ .hig-login-block > footer a { color:var(--hig-muted);font-size:.875rem;text-decoration:underline; }
686
+ .hig-deposit-icon { display:block;width:44px;height:44px;background:center / contain no-repeat; }
687
+ .hig-deposit-icon[data-method="apple-pay"] { background-image:url("../../tokens/assets/onramps/apple-pay.svg"); }
688
+ .hig-deposit-icon[data-method="cash-app"] { background-image:url("../../tokens/assets/onramps/cashapp.svg"); }
689
+ .hig-deposit-icon[data-method="exchange"] { background-image:url("../../tokens/assets/onramps/exchange.svg"); }
690
+ .hig-deposit-icon[data-method="crypto"] { background-image:url("../../tokens/assets/onramps/crypto.svg"); }
691
+ .hig-deposit-icon[data-method="bank"] { background-image:url("../../tokens/assets/onramps/bank.svg"); }
692
+ .hig-deposit-icon[data-method="blink"] { background-image:url("../../tokens/assets/onramps/blink.svg"); }
693
+ .hig-deposit-block { display:grid;gap:12px; }
694
+ .hig-deposit-block .hig-settings-description { text-align:center; }
695
+ .hig-settings-description,.hig-reward-status { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
623
696
  .hig-notifications-group { display:flex;flex-direction:column;gap:8px;margin-block-start:8px; }
624
697
  .hig-notifications-action { margin-block-start:8px; }
625
698
  .hig-setting-notes {display:flex;flex-direction:column;gap:4px;padding-block-end:12px; }
@@ -629,23 +702,19 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
629
702
  .hig-setting-switch-text { flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;padding-block:calc((var(--hig-control) - 1.5em)/2);overflow-wrap:anywhere; }
630
703
  .hig-setting-switch-description,.hig-setting-caption { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
631
704
  .hig-setting-switch > .hig-switch { flex:none;display:inline-flex;align-items:center;justify-content:flex-end;height:var(--hig-control); }
632
- .hig-setting-meter { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
705
+ .hig-setting-meter,.hig-reward-track { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
633
706
  .hig-setting-meter > span { display:block;height:100%;border-radius:2px;background:var(--hig-action);transition:width var(--hig-motion-duration-fast) linear; }
634
707
  .hig-setting-steps { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
635
708
  .hig-setting-steps > .hig-button { padding-inline:8px; }
636
709
  .hig-setting-error { margin:0;padding-inline:20px;color:var(--hig-negative);font-size:.875rem;line-height:1.5; }
637
710
  .hig-signals-group-header { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--hig-button);padding-inline-start:4px; }
638
711
  .hig-signals-group-header > h3 { display:inline-flex;align-items:center;gap:6px;min-width:0;margin:0;color:var(--hig-muted);font-size:1rem;line-height:1.5;font-weight:500; }
639
- @media(prefers-reduced-motion:reduce) { .hig-setting-meter > span { transition:none; } }
640
- [data-hig-motion='reduced'] .hig-setting-meter > span { transition:none; }
641
712
  @media(forced-colors:active) { .hig-setting-meter > span { forced-color-adjust:none; } }
642
713
  /* PositionBlock: header, the summary lines 12px apart, an optional note, then the paper trading switch and the setting groups 8px apart. */
643
- .hig-position-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
644
714
  /* The summary sits directly on the screen, with no card, on the list rows' text inset; its values use the interface face. */
645
715
  .hig-position-details { display:flex;flex-direction:column;gap:12px;margin:0;padding-inline:20px; }
646
716
  .hig-position-details > div { display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--hig-muted); }
647
717
  .hig-position-details dd { margin:0;color:var(--hig-text);font-family:inherit;font-weight:500;text-align:end;overflow-wrap:anywhere; }
648
- .hig-position-details dd .hig-number { font-family:inherit; }
649
718
  .hig-position-details [data-tone='positive'] dd { color:var(--hig-positive); }
650
719
  .hig-position-details [data-tone='negative'] dd { color:var(--hig-negative); }
651
720
  .hig-position-details [data-tone='muted'] dd { color:var(--hig-muted); }
@@ -664,12 +733,13 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
664
733
  .hig-position-flag-card { display:flex;flex-direction:column;background:var(--hig-fill); }
665
734
  .hig-position-flag-action { display:flex;padding:4px 20px 16px; }
666
735
  /* RewardBlock: header, the promotion card, the standings choice, the viewer's row on a tint, then the ranked rows 2px apart in one rounded container. */
667
- .hig-reward-block { display:flex;flex-direction:column;gap:16px;min-width:0; }
668
- .hig-reward-promo { display:flex;flex-direction:column;gap:12px; }
736
+ .hig-reward-promo,.hig-target-prices,.hig-bar-mark { display:flex;flex-direction:column;gap:12px; }
669
737
  .hig-reward-promo > p,.hig-reward-footnote { margin:0; }
670
738
  .hig-reward-promo-top,.hig-reward-columns { display:flex;align-items:center;justify-content:space-between;gap:12px; }
671
- .hig-reward-eyebrow,.hig-reward-columns { color:var(--hig-muted);font-size:.75rem;line-height:1.33;letter-spacing:.12em;text-transform:uppercase; }
672
- .hig-reward-eyebrow { min-width:0; }
739
+ .hig-reward-eyebrow,.hig-reward-columns,.hig-screen-eyebrow,.hig-explainer-eyebrow { color:var(--hig-muted);font-size:.75rem;line-height:1.33;letter-spacing:.12em;text-transform:uppercase; }
740
+ .hig-reward-eyebrow,.hig-screen-heading { min-width:0; }
741
+ .hig-screen-eyebrow,.hig-explainer-eyebrow { margin:0; }
742
+ .hig-screen-eyebrow { text-align:center; }
673
743
  .hig-reward-rules { appearance:none;flex:none;display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;min-height:var(--hig-button);min-width:var(--hig-button);margin-block:-12px;padding:0;border:0;background:none;color:var(--hig-muted);font:inherit;font-weight:500;cursor:pointer;-webkit-tap-highlight-color:transparent; }
674
744
  .hig-reward-rules:active { color:var(--hig-text); }
675
745
  [dir='rtl'] .hig-reward-rules > svg,[dir='rtl'] .hig-reward-action > svg { transform:scaleX(-1); }
@@ -679,7 +749,6 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
679
749
  .hig-reward-action > svg { flex:none; }
680
750
  .hig-reward-amount { color:var(--hig-action);font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere; }
681
751
  .hig-reward-promo > .hig-reward-caption { margin-block-start:-8px;color:var(--hig-muted);font-size:.9375rem;line-height:1.5; }
682
- .hig-reward-track { height:4px;border-radius:2px;background:var(--hig-fill-raised);overflow:hidden; }
683
752
  .hig-reward-track > span { display:block;height:100%;min-width:8px;border-radius:2px;background:var(--hig-action);transition:width var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
684
753
  .hig-reward-columns > :last-child { text-align:end; }
685
754
  .hig-reward-columns { padding-inline:4px; }
@@ -688,14 +757,11 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
688
757
  .hig-reward-footnote { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
689
758
  @media(hover:hover) and (pointer:fine) { .hig-reward-rules:hover,.hig-reward-action:hover { color:var(--hig-text); } }
690
759
  .hig-reward-footnote { padding-inline:4px; }
691
- .hig-reward-block .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
692
- .hig-reward-list { display:flex;flex-direction:column;gap:8px; }
693
- .hig-reward-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
760
+ .hig-reward-rows,.hig-list-group-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
694
761
  .hig-reward-row { display:flex;align-items:center;gap:12px;min-height:64px;padding:8px 20px;background:var(--hig-fill); }
695
762
  .hig-reward-you > .hig-reward-row { border-radius:20px;background:color-mix(in srgb,var(--hig-action) 12%,var(--hig-background)); }
696
763
  .hig-reward-rank { flex:none;min-width:24px;color:var(--hig-muted);font-weight:600; }
697
764
  .hig-reward-avatar { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600;overflow:hidden; }
698
- .hig-reward-avatar > img { width:100%;height:100%;object-fit:cover; }
699
765
  .hig-reward-identity { flex:1;display:flex;flex-direction:column;min-width:0; }
700
766
  .hig-reward-identity > strong { display:flex;align-items:center;gap:6px;font-weight:600;overflow-wrap:anywhere; }
701
767
  .hig-reward-identity > span { color:var(--hig-muted);font-size:.875rem; }
@@ -703,58 +769,49 @@ button.hig-asset-row:disabled:active { background:var(--hig-fill); }
703
769
  .hig-reward-score { flex:none;font-weight:600; }
704
770
  .hig-reward-row[data-you] :is(.hig-reward-identity > strong,.hig-reward-score) { color:var(--hig-action); }
705
771
  a.hig-reward-rules,a.hig-reward-action { text-decoration:none; }
706
- .hig-reward-status { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
707
772
  .hig-reward-skeleton { min-height:64px;border-radius:20px; }
708
773
  .hig-reward-pagination { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px; }
709
774
  .hig-reward-pagination > :first-child { justify-self:start; }
710
775
  .hig-reward-pagination > :last-child { justify-self:end; }
711
776
  .hig-reward-page { color:var(--hig-muted);font-size:.875rem;text-align:center; }
712
- @media(prefers-reduced-motion:reduce) { .hig-reward-track > span { transition:none; } }
713
- [data-hig-motion='reduced'] .hig-reward-track > span { transition:none; }
714
777
  @media(forced-colors:active) { .hig-reward-track > span { forced-color-adjust:none; } }
715
778
  /* TargetBlock: header, the target as the headline figure, the price card, then the unit, the custom row, the quick choices and the
716
779
  actions 16px below each other. The bar is a price axis: the tinted stretch is what the price still has to travel to the trigger. */
717
780
  .hig-target-block { display:flex;flex-direction:column;gap:16px;min-width:0;--hig-target-tone:var(--hig-positive); }
718
- .hig-target-block[data-kind='stop-loss'] { --hig-target-tone:var(--hig-negative); }
781
+ .hig-target-block[data-kind='stop-loss'],.hig-preset-picker[data-intent='destructive'] { --hig-target-tone:var(--hig-negative);--hig-target-fill:var(--hig-negative);--hig-target-on-fill:var(--hig-background); }
719
782
  /* The headline figure matches the SwapPanel amount: the same size and the interface face, not the mono face. */
720
783
  .hig-target-amount { margin:0;font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-align:center;overflow-wrap:anywhere; }
721
- .hig-target-amount .hig-number { font-family:inherit; }
722
- .hig-target-prices { display:flex;flex-direction:column;gap:12px; }
723
- .hig-target-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
724
- .hig-target-rest,.hig-target-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
784
+ .hig-target-bar,.hig-bar-pnl-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
785
+ .hig-target-rest,.hig-target-move,.hig-bar-mark-segment,.hig-bar-mark-rest,.hig-bar-pnl-rest,.hig-bar-pnl-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
725
786
  .hig-target-rest { background:var(--hig-fill-raised); }
726
- .hig-target-move { box-sizing:border-box;min-width:6px;background:var(--hig-target-tone);border-inline:3px solid var(--hig-text); }
787
+ .hig-target-move { box-sizing:border-box;min-width:6px;background:color-mix(in srgb,var(--hig-target-tone) calc(var(--hig-bar-fill-opacity,.5)*100%),transparent);border-inline:3px solid var(--hig-text); }
727
788
  .hig-target-move[data-lead='trigger'] { border-inline-start-color:var(--hig-target-tone); }
728
789
  .hig-target-move[data-lead='start'] { border-inline-end-color:var(--hig-target-tone); }
729
790
  .hig-target-prices [data-price='trigger'] dd { color:var(--hig-target-tone); }
730
791
  .hig-target-info { position:relative;display:inline-flex; }
731
792
  .hig-target-popover { position:absolute;inset-block-start:calc(100% + 4px);inset-inline-end:0;width:max-content;max-width:min(280px,calc(100vw - 48px));font-size:.875rem;font-weight:400;text-align:start; }
732
793
  .hig-target-note { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5;text-align:center; }
733
- .hig-target-block .hig-segmented-control > legend { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
734
- .hig-target-presets,.hig-target-actions { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
735
- .hig-target-presets > .hig-button { padding-inline:8px; }
736
- /* The Custom row holding the host's value reads as the selected choice: the value on its trailing edge and a ring in the kind's colour. */
737
- .hig-target-block .hig-swap-setting[aria-pressed='true'] { box-shadow:inset 0 0 0 2px var(--hig-target-tone); }
738
- .hig-target-block .hig-swap-setting[aria-pressed='true'] > .hig-swap-setting-value { color:var(--hig-target-tone); }
794
+ .hig-target-actions,.hig-confirm-actions { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px; }
795
+ /* The Custom row holding the host's value reads as the selected choice: filled like a selected quick choice, the value on its trailing
796
+ edge. Its (0,3,0) selector outranks the base `.hig-swap-setting:hover` and `:active` fills (0,2,0), so press and hover only darken it. */
797
+ :is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true'] { background:var(--hig-target-fill,var(--hig-action));color:var(--hig-target-on-fill,var(--hig-onAction)); }
798
+ :is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true'] > .hig-swap-setting-value { color:inherit; }
799
+ :is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true']:active { filter:brightness(.9); }
800
+ @media(hover:hover) and (pointer:fine) { :is(.hig-target-block,.hig-preset-picker) .hig-swap-setting[aria-pressed='true']:hover { filter:brightness(.9); } }
739
801
  /* The info button beside a host header control: both sides of the header widen together so the title stays centred. */
740
802
  .hig-target-header-actions { display:inline-flex;align-items:center;gap:4px; }
741
803
  .hig-target-block > .hig-screen-header:has(.hig-target-header-actions) { grid-template-columns:92px minmax(0,1fr) 92px; }
742
804
  .hig-target-block > .hig-screen-header:has(.hig-target-header-actions) > .hig-screen-header-side:first-child { justify-items:start; }
743
805
  .hig-target-block > .hig-screen-header:has(.hig-target-header-actions) > .hig-screen-header-side:last-child { justify-items:end; }
744
- @media(prefers-reduced-motion:reduce) { .hig-target-rest,.hig-target-move { transition:none; } }
745
- [data-hig-motion='reduced'] .hig-target-rest,[data-hig-motion='reduced'] .hig-target-move { transition:none; }
746
806
  @media(forced-colors:active) { .hig-target-move { forced-color-adjust:none; } }
747
807
  /* TradeHistoryListBlock: a header, then one capsule row per closed trade, 8px apart.
748
808
  TradeHistoryDetailBlock: header, the asset row, the result and the figures 8px apart, then the actions in one row 16px below. */
749
- .hig-trade-history-list { display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--hig-text); }
809
+ .hig-trade-history-list,.hig-language-block,.hig-assets-block { color:var(--hig-text); }
810
+ .hig-assets-block { --hig-filter-bleed:16px; }
750
811
  .hig-trade-rows { display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none; }
751
- .hig-trade-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px;padding-inline-end:16px;border:0;border-radius:28px;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start; }
752
- button.hig-trade-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
753
812
  button.hig-trade-row:active { background:var(--hig-fill-raised); }
754
- .hig-trade-row-identity,.hig-trade-row-result { display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted); }
755
813
  .hig-trade-row-identity { flex:1;overflow-wrap:anywhere; }
756
814
  .hig-trade-row-result { flex:none;align-items:flex-end;text-align:end; }
757
- .hig-trade-row strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
758
815
  .hig-trade-row-side { display:inline-flex;align-items:center;gap:4px;font-weight:600; }
759
816
  .hig-trade-row-side[data-side='long'] { color:var(--hig-up,var(--hig-buy)); }
760
817
  .hig-trade-row-side[data-side='short'] { color:var(--hig-down,var(--hig-sell)); }
@@ -766,9 +823,9 @@ button.hig-trade-row:active { background:var(--hig-fill-raised); }
766
823
  .hig-trade-row-tag { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
767
824
  .hig-trade-skeleton { min-height:56px;border-radius:28px; }
768
825
  .hig-trade-error { color:var(--hig-negative); }
826
+ .hig-trade-history-list>.hig-swap-empty { padding-bottom:0; }
769
827
  .hig-trade-empty-title,.hig-trade-empty-description { display:block; }
770
828
  .hig-trade-empty-title { color:var(--hig-text);font-weight:600; }
771
- .hig-trade-notice,.hig-trade-footer { display:flex;flex-direction:column;gap:8px;min-width:0; }
772
829
  .hig-trade-note { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
773
830
  .hig-screen-badge { font-size:.75rem;line-height:1.33;font-weight:600;vertical-align:middle; }
774
831
  .hig-trade-row-chevron { flex:none;color:var(--hig-muted); }
@@ -778,22 +835,18 @@ button.hig-trade-row:active { background:var(--hig-fill-raised); }
778
835
  .hig-trade-pnl[data-tone='down'],.hig-trade-result[data-tone='down'] :is(.hig-trade-figure,.hig-trade-return) { color:var(--hig-down,var(--hig-sell)); }
779
836
  .hig-trade-side[data-side='long'] { color:var(--hig-up,var(--hig-buy)); }
780
837
  .hig-trade-side[data-side='short'] { color:var(--hig-down,var(--hig-sell)); }
781
- .hig-trade-detail { display:flex;flex-direction:column;gap:16px;min-width:0; }
782
838
  .hig-trade-summary { display:flex;flex-direction:column;gap:20px;padding-inline:4px; }
783
839
  .hig-trade-side { font-weight:600;text-transform:uppercase; }
784
840
  .hig-trade-result { display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center; }
785
841
  .hig-trade-identity { display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;color:var(--hig-muted); }
786
842
  .hig-trade-identity > strong { color:var(--hig-text);font-weight:600; }
787
843
  .hig-trade-avatar { flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--hig-fill);color:var(--hig-muted);font-size:.5625rem;font-weight:600;overflow:hidden; }
788
- .hig-trade-avatar > img { width:100%;height:100%;object-fit:cover; }
789
844
  .hig-trade-figure { font-size:clamp(2rem,10vw,2.5rem);line-height:1.2;font-weight:700;overflow-wrap:anywhere; }
790
845
  .hig-trade-return { color:var(--hig-muted);font-size:.875rem;line-height:1.5; }
791
- .hig-trade-result .hig-number,.hig-trade-pnl .hig-number { font-family:inherit; }
792
846
  .hig-trade-details { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;margin:0; }
793
847
  .hig-trade-details > div { display:flex;flex-direction:column;gap:2px;min-width:0; }
794
848
  .hig-trade-details dt { color:var(--hig-muted);font-size:.75rem;line-height:1.33; }
795
849
  .hig-trade-details dd { margin:0;font-weight:600;overflow-wrap:anywhere; }
796
- .hig-trade-details .hig-number { font-family:inherit; }
797
850
  .hig-trade-actions { display:flex;gap:var(--hig-action-gap); }
798
851
  .hig-trade-actions > * { flex:1 1 0;min-width:0; }
799
852
  /* ProfileBlock: a top bar, the avatar with its status dot, the name, then list groups 24px apart. */
@@ -802,7 +855,6 @@ button.hig-trade-row:active { background:var(--hig-fill-raised); }
802
855
  .hig-profile-identity { display:flex;flex-direction:column;align-items:center;gap:16px;margin-block-start:-16px; }
803
856
  .hig-profile-avatar { position:relative;display:block;width:144px;height:144px;border-radius:50%;background:var(--hig-fill); }
804
857
  .hig-profile-artwork { display:grid;place-items:center;width:100%;height:100%;border-radius:50%;overflow:hidden;color:var(--hig-muted);font-size:2.5rem;font-weight:600; }
805
- .hig-profile-artwork > img { width:100%;height:100%;object-fit:cover; }
806
858
  .hig-profile-status { position:absolute;inset-block-start:10px;inset-inline-end:10px;width:20px;height:20px;border-radius:50%;background:var(--hig-warning);box-shadow:0 0 0 3px var(--hig-background); }
807
859
  .hig-profile-status[data-tone='positive'] { background:var(--hig-positive); }
808
860
  .hig-profile-status[data-tone='negative'] { background:var(--hig-negative); }
@@ -818,59 +870,30 @@ button.hig-profile-artwork:active { opacity:.85; }
818
870
  .hig-profile-value[data-tone='warning'] { color:var(--hig-warning); }
819
871
  .hig-profile-value[data-tone='negative'] { color:var(--hig-negative); }
820
872
  .hig-profile-value[data-tone='muted'] { color:var(--hig-muted); }
821
- .hig-profile-value .hig-number { font-family:inherit; }
822
873
  .hig-profile-block .hig-list-row:has(> .hig-list-row-trailing .hig-switch):not([aria-disabled='true']) { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
823
874
  .hig-profile-footer { min-width:0; }
824
875
  /* BarMark: one bar divided among its elements. Segments are flex shares of the bar with a 2px gap that shows the card, and the
825
876
  remainder of a larger total is an empty track segment. Colours come from tone roles (or a host colour) through one custom property. */
826
- .hig-bar-mark { display:flex;flex-direction:column;gap:12px; }
827
877
  .hig-bar-mark-header { display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px; }
828
878
  .hig-bar-mark-title { font-weight:600;min-width:0; }
829
879
  .hig-bar-mark-description { color:var(--hig-muted);font-size:.875rem;text-align:end;min-width:0; }
830
- .hig-bar-mark-description .hig-number { font-family:inherit; }
831
880
  .hig-bar-mark-bar { display:flex;gap:2px;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
832
881
  .hig-bar-mark[data-size='small'] > .hig-bar-mark-bar { height:12px;border-radius:6px; }
833
- .hig-bar-mark-segment,.hig-bar-mark-rest { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
834
- .hig-bar-mark-segment { min-width:3px;background:var(--hig-bar-mark-color,var(--hig-muted)); }
882
+ .hig-bar-mark-segment { min-width:3px;background:color-mix(in srgb,var(--hig-bar-mark-color,var(--hig-muted)) calc(var(--hig-bar-fill-opacity,.5)*100%),transparent); }
835
883
  .hig-bar-mark-rest { background:var(--hig-fill-raised); }
836
884
  .hig-bar-mark-legend { display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;padding:0;list-style:none;color:var(--hig-muted);font-size:.875rem; }
837
885
  .hig-bar-mark-legend > li { display:inline-flex;align-items:center;gap:6px;min-width:0; }
838
886
  .hig-bar-mark-dot { flex:none;width:8px;height:8px;border-radius:9999px;background:var(--hig-bar-mark-color,var(--hig-muted)); }
839
887
  .hig-bar-mark-detail { color:var(--hig-faint); }
840
- .hig-bar-mark-detail .hig-number { font-family:inherit; }
841
888
  .hig-bar-mark [data-tone='positive'] { --hig-bar-mark-color:var(--hig-positive); }
842
889
  .hig-bar-mark [data-tone='info'] { --hig-bar-mark-color:var(--hig-info); }
843
890
  .hig-bar-mark [data-tone='warning'] { --hig-bar-mark-color:var(--hig-warning); }
844
891
  .hig-bar-mark [data-tone='negative'] { --hig-bar-mark-color:var(--hig-negative); }
845
892
  .hig-bar-mark [data-tone='muted'] { --hig-bar-mark-color:var(--hig-muted); }
846
893
  .hig-bar-mark [data-tone='faint'] { --hig-bar-mark-color:var(--hig-faint); }
847
- @media(prefers-reduced-motion:reduce) { .hig-bar-mark-segment,.hig-bar-mark-rest { transition:none; } }
848
- [data-hig-motion='reduced'] .hig-bar-mark-segment,[data-hig-motion='reduced'] .hig-bar-mark-rest { transition:none; }
849
894
  @media(forced-colors:active) { .hig-bar-mark-segment,.hig-bar-mark-dot { forced-color-adjust:none; } }
850
- /* Reduced-motion stops for the selectors above, one per animated or transitioned selector in each preference path
851
- (tests/motion-css.test.ts). Elements portalled out of the provider carry data-hig-motion themselves and are stopped where they are styled. */
852
- @media(prefers-reduced-motion:reduce) {
853
- .hig-accordion > .hig-accordion-summary { transition:none; }
854
- .hig-status-indicator:is([data-state='online'],[data-state='stale'])::before { animation:none; }
855
- }
856
- [data-hig-motion='reduced'] .hig-accordion > .hig-accordion-summary { transition:none; }
857
- [data-hig-motion='reduced'] .hig-accordion-chevron { transition:none; }
858
- [data-hig-motion='reduced'] .hig-filter-chip { transition:none; }
859
- [data-hig-motion='reduced'] .hig-filter-mark { transition:none; }
860
- [data-hig-motion='reduced'] .hig-filter-mark > img { transition:none; }
861
- [data-hig-motion='reduced'] .hig-filter-mark path { transition:none; }
862
- [data-hig-motion='reduced'] .hig-swap-card { transition:none; }
863
- [data-hig-motion='reduced'] .hig-swap-flip > * { transition:none; }
864
- [data-hig-motion='reduced'] .hig-skeleton { animation:none; }
865
- [data-hig-motion='reduced'] .hig-popover { animation:none; }
866
- [data-hig-motion='reduced'] .hig-progress progress:not([value]) { animation:none; }
867
- [data-hig-motion='reduced'] .hig-spinner-indicator { animation:none; }
868
- [data-hig-motion='reduced'] .hig-status-indicator:is([data-state='online'],[data-state='stale'])::before { animation:none; }
869
- .hig-list-group { display:flex;flex-direction:column;gap:8px;min-width:0; }
870
895
  .hig-list-group-title { margin:0;padding-inline:4px;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500; }
871
- .hig-list-group-rows { display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;border-radius:20px;overflow:hidden; }
872
896
  .hig-list-row { appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:4px 20px;border:0;border-radius:0;background:var(--hig-fill);color:var(--hig-text);font:inherit;text-align:start;text-decoration:none; }
873
- button.hig-list-row,a.hig-list-row { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
874
897
  button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-raised); }
875
898
  .hig-list-row:focus-visible { outline:2px solid var(--hig-focus,var(--hig-text));outline-offset:-2px; }
876
899
  .hig-list-row:disabled,.hig-list-row[aria-disabled='true'] { cursor:default;opacity:.5; }
@@ -899,7 +922,6 @@ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-rai
899
922
  .hig-list-row:has(> .hig-list-row-trailing .hig-switch) > .hig-list-row-text { padding-block:calc((48px - 1.5em)/2); }
900
923
  .hig-list-row-label[data-tone='destructive'] { color:var(--hig-negative); }
901
924
  .hig-list-row-label[data-tone='muted'] { color:var(--hig-muted); }
902
- .hig-list-row-check { flex:none;color:var(--hig-text); }
903
925
  .hig-list-row-spinner { margin:2px;color:var(--hig-muted); }
904
926
  .hig-list-row[aria-busy='true'] { cursor:progress; }
905
927
  .hig-list-row[data-switch]:not([aria-disabled='true']) { cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
@@ -918,17 +940,15 @@ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-rai
918
940
  .hig-search-input[data-trailing] > .hig-input::-webkit-search-cancel-button { display:none;-webkit-appearance:none; }
919
941
  .hig-search-trailing { position:absolute;inset-block:0;inset-inline-end:0;display:flex;align-items:center;gap:4px; }
920
942
  .hig-search-clear { appearance:none;position:relative;display:grid;place-items:center;min-width:var(--hig-button,44px);height:100%;margin:0;padding:0;border:0;border-radius:9999px;background:transparent;color:var(--hig-muted);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
921
- .hig-search-clear > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round; }
943
+ .hig-search-clear > svg { width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round; }
922
944
  .hig-search-clear:active:not(:disabled) { color:var(--hig-text); }
923
945
  .hig-search-clear:disabled { opacity:.5;cursor:not-allowed; }
924
946
  .hig-bar-pnl { display:flex;flex-direction:column;gap:12px;--hig-bar-pnl-tone:var(--hig-muted); }
925
947
  /* The result follows the market direction roles (HIGProvider marketColors), which default to buy and sell. */
926
948
  .hig-bar-pnl[data-result='profit'] { --hig-bar-pnl-tone:var(--hig-up,var(--hig-buy)); }
927
949
  .hig-bar-pnl[data-result='loss'] { --hig-bar-pnl-tone:var(--hig-down,var(--hig-sell)); }
928
- .hig-bar-pnl-bar { position:relative;display:flex;height:24px;border-radius:var(--hig-radius-md,8px);overflow:hidden; }
929
- .hig-bar-pnl-rest,.hig-bar-pnl-move { flex:0 1 0;min-width:0;transition:flex-grow var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
930
950
  .hig-bar-pnl-rest { background:var(--hig-fill-raised); }
931
- .hig-bar-pnl-move { box-sizing:border-box;min-width:6px;background:var(--hig-bar-pnl-tone);border-inline:3px solid var(--hig-text); }
951
+ .hig-bar-pnl-move { box-sizing:border-box;min-width:6px;background:color-mix(in srgb,var(--hig-bar-pnl-tone) calc(var(--hig-bar-fill-opacity,.5)*100%),transparent);border-inline:3px solid var(--hig-text); }
932
952
  .hig-bar-pnl-move[data-lead='mark'] { border-inline-start-color:var(--hig-bar-pnl-tone); }
933
953
  .hig-bar-pnl-move[data-lead='entry'] { border-inline-end-color:var(--hig-bar-pnl-tone); }
934
954
  .hig-bar-pnl-liquidation { position:absolute;inset-block:0;width:3px;margin-inline-start:-1.5px;background:var(--hig-negative);transition:inset-inline-start var(--hig-motion-duration-base) var(--hig-motion-easing-standard,ease); }
@@ -943,22 +963,97 @@ button.hig-list-row:active,a.hig-list-row:active { background:var(--hig-fill-rai
943
963
  .hig-bar-pnl-readouts [data-kind='liquidation'] dd { color:var(--hig-negative); }
944
964
  .hig-bar-pnl-readouts [data-kind='mark'] dd { color:var(--hig-bar-pnl-tone); }
945
965
  .hig-bar-pnl[data-result='flat'] [data-kind='mark'] dd { color:var(--hig-text); }
946
- @media(prefers-reduced-motion:reduce) { .hig-bar-pnl-rest,.hig-bar-pnl-move,.hig-bar-pnl-liquidation { transition:none; } }
947
- [data-hig-motion='reduced'] .hig-bar-pnl-rest,[data-hig-motion='reduced'] .hig-bar-pnl-move,[data-hig-motion='reduced'] .hig-bar-pnl-liquidation { transition:none; }
948
966
  @media(forced-colors:active) { .hig-bar-pnl-move,.hig-bar-pnl-liquidation { forced-color-adjust:none; } }
949
- .hig-language-block { display:flex;flex-direction:column;gap:16px;min-width:0;color:var(--hig-text); }
950
- .hig-language-list { display:flex;flex-direction:column;gap:4px;min-width:0; }
951
- .hig-language-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px 16px 8px 8px;border:0;border-radius:9999px;background:transparent;color:var(--hig-text);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
952
- .hig-language-row:active,.hig-language-row[data-active='true'] { background:var(--hig-fill); }
953
- .hig-language-flag { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600; }
954
- .hig-language-flag > img,.hig-language-flag > svg { width:100%;height:100%;object-fit:cover; }
955
- .hig-language-text { flex:1;display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted);overflow-wrap:anywhere; }
956
- .hig-language-text > strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
957
- .hig-language-check { flex:none;color:var(--hig-text); }
958
- .hig-language-row:disabled { opacity:.5;cursor:not-allowed; }
959
- @media(hover:hover) and (pointer:fine) { .hig-language-row:not(:disabled):hover { background:var(--hig-fill); } }
967
+ /* LanguageBlock and AssetsBlock (header, search, category capsules and views over markets in sections by category) share their rows: an avatar, the name over a muted line, a trailing mark. */
968
+ .hig-language-list,.hig-assets-section { display:flex;flex-direction:column;gap:4px;min-width:0; }
969
+ .hig-language-row,.hig-assets-row { appearance:none;display:flex;align-items:center;gap:12px;width:100%;min-height:56px;margin:0;padding:8px 16px 8px 8px;border:0;border-radius:9999px;background:transparent;color:var(--hig-text);font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation; }
970
+ .hig-assets-row { position:relative;min-height:64px;padding:8px; }
971
+ .hig-language-row:active,.hig-language-row[data-active='true'],.hig-assets-row:active,.hig-assets-row[aria-current='true'],.hig-assets-row[data-active] { background:var(--hig-fill); }
972
+ .hig-language-flag,.hig-assets-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:9999px;overflow:hidden;background:var(--hig-fill-raised);color:var(--hig-muted);font-size:.75rem;font-weight:600; }
973
+ .hig-language-flag > :is(img,svg),.hig-assets-icon > :is(img,svg) { width:100%;height:100%;object-fit:cover; }
974
+ .hig-language-text,.hig-assets-text { flex:1;display:flex;flex-direction:column;min-width:0;font-size:.875rem;line-height:1.43;color:var(--hig-muted);overflow-wrap:anywhere; }
975
+ .hig-language-text > strong,.hig-assets-text > strong { font-size:1rem;line-height:1.5;font-weight:600;color:var(--hig-text); }
976
+ /* A market row is one line each: the name and the symbol line truncate. */
977
+ .hig-assets-text > * { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
978
+ .hig-language-row:disabled,.hig-assets-row:disabled { opacity:.5;cursor:not-allowed; }
979
+ @media(hover:hover) and (pointer:fine) { .hig-language-row:not(:disabled):hover,.hig-assets-row:not(:disabled):hover { background:var(--hig-fill); } .hig-assets-row:not(:disabled):hover .hig-assets-signal:not([data-signal]) { background:var(--hig-fill-raised); } }
980
+ .hig-assets-section > ul { display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none; }
981
+ .hig-assets-section-header { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;padding-inline:8px; }
982
+ .hig-assets-section-header > h3 { margin:0;min-width:0;color:var(--hig-muted);font-size:.875rem;line-height:1.43;font-weight:500;overflow-wrap:anywhere; }
983
+ .hig-confirm-amount { margin:0;font-size:clamp(2rem,10vw,3rem);line-height:1.15;font-weight:700;letter-spacing:-.02em;text-align:center;overflow-wrap:anywhere; }
984
+ .hig-confirm-symbol { font-size:.5em;font-weight:600;letter-spacing:0;color:var(--hig-muted); }
985
+ .hig-confirm-details { display:flex;flex-direction:column;gap:12px;margin:0;padding-inline:4px; }
986
+ .hig-confirm-details > div { display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--hig-muted); }
987
+ .hig-confirm-details dd { margin:0;color:var(--hig-text);font-weight:500;text-align:end;overflow-wrap:anywhere; }
988
+ /* oneLineDetails: the lines after the address keep the label whole and truncate the value. */
989
+ .hig-confirm-details[data-one-line] > div + div > dt { flex:none; }
990
+ .hig-confirm-details[data-one-line] > div + div > dd { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
991
+ .hig-confirm-address { display:inline-flex;font-family:var(--hig-font-mono,'Bloxwap Mono',ui-monospace,monospace);color:var(--hig-muted);text-align:start;white-space:pre; }
992
+ .hig-confirm-address > [aria-hidden] { display:flex;flex-direction:column; }
993
+ .hig-confirm-address [data-anchor] { font-weight:700;color:var(--hig-text); }
994
+ .hig-confirm-warning { padding:20px;border-radius:20px;background:color-mix(in srgb,var(--hig-warning) 16%,transparent); }
995
+ .hig-confirm-warning > strong { font-size:1.5rem;line-height:1.25;font-weight:700;color:var(--hig-warning); }
996
+ .hig-confirm-warning > p { margin:0;line-height:1.5; }
997
+ .hig-confirm-body { display:flex;flex-direction:column;gap:12px;min-width:0; }
998
+ .hig-confirm-body > * { margin:0; }
999
+ .hig-confirm-points { display:flex;flex-direction:column;gap:8px;padding-inline-start:20px;list-style:disc;color:var(--hig-muted);line-height:1.5; }
1000
+ .hig-confirm-tertiary { margin-top:-8px; }
1001
+ .hig-confirm-tertiary[data-tone='destructive']:not(:disabled) { color:var(--hig-negative); }
1002
+ /* ExplainerBlock: sections on the neutral fill, or tinted 10% in their tone with a 15% disc and the heading in the tone. */
1003
+ .hig-explainer-sections,.hig-explainer-section > div { display:flex;flex-direction:column;gap:12px;min-width:0; }
1004
+ .hig-explainer-section > div { flex:1;gap:4px; }
1005
+ .hig-explainer-section { --hig-explainer-tone:var(--hig-text);display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:var(--hig-fill); }
1006
+ /* Icon rows: 20px disc radius + 12px inset. */
1007
+ .hig-explainer-section:has(> .hig-explainer-icon) { border-radius:32px;align-items:flex-start; }
1008
+ .hig-explainer-section[data-tone] { background:color-mix(in srgb,var(--hig-explainer-tone) 10%,transparent); }
1009
+ .hig-explainer-section[data-tone='up'] { --hig-explainer-tone:var(--hig-up,var(--hig-buy)); }
1010
+ .hig-explainer-section[data-tone='down'] { --hig-explainer-tone:var(--hig-down,var(--hig-sell)); }
1011
+ .hig-explainer-section[data-tone='positive'] { --hig-explainer-tone:var(--hig-positive); }
1012
+ .hig-explainer-section[data-tone='negative'] { --hig-explainer-tone:var(--hig-negative); }
1013
+ .hig-explainer-section[data-tone='warning'] { --hig-explainer-tone:var(--hig-warning); }
1014
+ .hig-explainer-icon { flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--hig-explainer-tone);background:color-mix(in srgb,var(--hig-explainer-tone) 15%,transparent); }
1015
+ .hig-explainer-section h3 { margin:0;font-size:1rem;line-height:1.5;font-weight:700;color:var(--hig-explainer-tone); }
1016
+ .hig-explainer-section h3 > span { color:var(--hig-muted); }
1017
+ .hig-explainer-media { display:flex;flex-direction:column;align-items:center;gap:8px;margin-block:12px; }
1018
+ .hig-explainer-text { margin:0;color:var(--hig-muted);font-size:.875rem;line-height:1.43; }
1019
+ .hig-explainer-steps { display:flex;flex-direction:column;gap:8px;padding-inline-start:20px; }
1020
+ .hig-popover[data-tone] { background:color-mix(in srgb,var(--hig-popover-tone) 12%,var(--hig-nested));border-color:color-mix(in srgb,var(--hig-popover-tone) 40%,transparent);box-shadow:0 8px 24px #0006,0 0 24px color-mix(in srgb,var(--hig-popover-tone) 25%,transparent); }
1021
+ .hig-popover[data-tone='info'] { --hig-popover-tone:var(--hig-info); }
1022
+ .hig-popover[data-tone='positive'] { --hig-popover-tone:var(--hig-positive); }
1023
+ .hig-popover[data-tone='warning'] { --hig-popover-tone:var(--hig-warning); }
1024
+ .hig-popover[data-tone='negative'] { --hig-popover-tone:var(--hig-negative); }
1025
+ .hig-explainer-hero { display:flex;flex-direction:column;align-items:center; }
1026
+ .hig-explainer-action-icon { display:inline-flex; }
1027
+ .hig-assets-status { flex:none;padding:2px 10px;font:600 .75rem/1.33 var(--hig-font-mono,'Bloxwap Mono',ui-monospace,monospace);letter-spacing:.08em; }
1028
+ .hig-assets-status[data-countdown] { color:var(--hig-muted);letter-spacing:.02em;font-variant-numeric:tabular-nums; }
1029
+ .hig-assets-status .hig-number { font-family:inherit; }
1030
+ .hig-assets-icon,.hig-assets-signal { width:44px;height:44px; }
1031
+ .hig-assets-signal { flex:none;display:grid;place-items:center;border-radius:9999px;background:var(--hig-fill); }
1032
+ .hig-assets-trailing { flex:none;display:flex;align-items:center; }
1033
+ .hig-assets-signal[data-signal] { color:var(--hig-signal);background:color-mix(in srgb,var(--hig-signal) 15%,transparent); }
1034
+ .hig-assets-signal[data-signal='watch'] { --hig-signal:var(--hig-warning); }
1035
+ .hig-assets-signal[data-signal='up'] { --hig-signal:var(--hig-positive); }
1036
+ .hig-assets-signal[data-signal='down'] { --hig-signal:var(--hig-negative); }
1037
+ /* The empty disc sits on the row's well once the row fills, so it steps up to the raised fill. */
1038
+ .hig-assets-row:is(:active,[aria-current='true'],[data-active]) .hig-assets-signal:not([data-signal]) { background:var(--hig-fill-raised); }
1039
+ .hig-assets-list > .hig-button { align-self:center; }
1040
+ .hig-assets-empty { margin:0;padding-block:32px;text-align:center;color:var(--hig-muted);font-size:.875rem;line-height:1.43; }
960
1041
  /* Press decoration: the host layer HIGProvider pressDecoration draws inside a pressable control. Out of flow, so it changes no
961
1042
  layout; it catches no pointer events itself, its children do. Zero specificity keeps a control that is already positioned as it is. */
962
1043
  :where(:has(> .hig-press-decoration)) { position:relative; }
963
1044
  span.hig-press-decoration[data-kind],.hig-list-row-trailing .hig-switch > span.hig-press-decoration[data-kind] { position:absolute;inset:0;display:block;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:inherit;overflow:hidden;clip:auto;white-space:normal;pointer-events:none; }
964
1045
  span.hig-press-decoration[data-kind] > * { pointer-events:auto; }
1046
+ /* Reduced-motion stops, last so they outrank every motion declaration above: exactly one per animated or transitioned selector
1047
+ in each preference path (tests/motion-css.test.ts). Elements portalled out of the provider carry data-hig-motion themselves. */
1048
+ @media(prefers-reduced-motion:reduce) {
1049
+ .hig-button,.hig-accordion > .hig-accordion-summary,.hig-accordion-chevron,.hig-switch input,.hig-switch input::before,.hig-segment-indicator,.hig-filter-chip,.hig-filter-mark,.hig-filter-mark > img,.hig-filter-mark path,.hig-swap-card,.hig-swap-flip > *,.hig-screen-header[data-sticky],.hig-profile-bar[data-sticky],.hig-setting-meter > span,.hig-reward-track > span,.hig-target-rest,.hig-target-move,.hig-bar-mark-segment,.hig-bar-mark-rest,.hig-bar-pnl-rest,.hig-bar-pnl-move,.hig-bar-pnl-liquidation { transition:none; }
1050
+ .hig-button-spinner,.hig-skeleton,.hig-select-list,.hig-popover,.hig-progress progress:not([value]),.hig-spinner-indicator,.hig-status-indicator:is([data-state='online'],[data-state='stale'])::before,.hig-swap-view,.hig-screen-header[data-sticky] { animation:none; }
1051
+ }
1052
+ [data-hig-motion='reduced'] .hig-button,[data-hig-motion='reduced'] .hig-accordion > .hig-accordion-summary,[data-hig-motion='reduced'] .hig-accordion-chevron,[data-hig-motion='reduced'] .hig-switch input,[data-hig-motion='reduced'] .hig-switch input::before,[data-hig-motion='reduced'] .hig-segment-indicator,[data-hig-motion='reduced'] .hig-filter-chip,[data-hig-motion='reduced'] .hig-filter-mark,[data-hig-motion='reduced'] .hig-filter-mark > img,[data-hig-motion='reduced'] .hig-filter-mark path,[data-hig-motion='reduced'] .hig-swap-card,[data-hig-motion='reduced'] .hig-swap-flip > *,[data-hig-motion='reduced'] .hig-screen-header[data-sticky],[data-hig-motion='reduced'] .hig-profile-bar[data-sticky],[data-hig-motion='reduced'] .hig-setting-meter > span,[data-hig-motion='reduced'] .hig-reward-track > span,[data-hig-motion='reduced'] .hig-target-rest,[data-hig-motion='reduced'] .hig-target-move,[data-hig-motion='reduced'] .hig-bar-mark-segment,[data-hig-motion='reduced'] .hig-bar-mark-rest,[data-hig-motion='reduced'] .hig-bar-pnl-rest,[data-hig-motion='reduced'] .hig-bar-pnl-move,[data-hig-motion='reduced'] .hig-bar-pnl-liquidation { transition:none; }
1053
+ [data-hig-motion='reduced'] .hig-button-spinner,[data-hig-motion='reduced'] .hig-skeleton,[data-hig-motion='reduced'] .hig-select-list,[data-hig-motion='reduced'] .hig-popover,[data-hig-motion='reduced'].hig-popover,[data-hig-motion='reduced'] .hig-progress progress:not([value]),[data-hig-motion='reduced'] .hig-spinner-indicator,[data-hig-motion='reduced'] .hig-status-indicator:is([data-state='online'],[data-state='stale'])::before,[data-hig-motion='reduced'] .hig-swap-view,[data-hig-motion='reduced'] .hig-screen-header[data-sticky] { animation:none; }
1054
+ /* Sonner honours the OS preference itself; this covers a provider that asks for reduced motion on its own. */
1055
+ [data-hig-motion='reduced'] [data-sonner-toast],[data-hig-motion='reduced'] [data-sonner-toast] > * { transition:none!important;animation:none!important; }
1056
+ /* Selectors some engines do not parse stay in rules of their own, so they cannot drop the lists above. */
1057
+ @media(prefers-reduced-motion:reduce) { .hig-accordion::details-content { transition:none; } .hig-progress progress:not([value])::-webkit-progress-bar { animation:none; } }
1058
+ [data-hig-motion='reduced'] .hig-accordion::details-content { transition:none; }
1059
+ [data-hig-motion='reduced'] .hig-progress progress:not([value])::-webkit-progress-bar { animation:none; }