@bloxwap/hig 0.6.0 → 0.8.1

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