viewkitjs 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/MIGRATION.md +1 -1
  3. package/README.md +1 -1
  4. package/fields/dist/conventions.d.ts +15 -3
  5. package/fields/dist/conventions.js +25 -0
  6. package/fields/dist/design/category-colors.d.ts +12 -5
  7. package/fields/dist/design/category-colors.js +7 -7
  8. package/fields/dist/query/buckets.js +42 -35
  9. package/fields/dist/query/date.js +2 -13
  10. package/fields/docs/guides/conventions.md +1 -1
  11. package/fields/docs/guides/options.md +2 -1
  12. package/fields/docs/reference/design-category-colors.md +2 -2
  13. package/fields/docs/reference/fields.md +1 -1
  14. package/package.json +13 -1
  15. package/views/dist/atoms/tones.js +7 -7
  16. package/views/dist/contract.d.ts +6 -1
  17. package/views/dist/contract.js +1 -0
  18. package/views/dist/controls/atoms.d.ts +8 -0
  19. package/views/dist/controls/atoms.js +8 -0
  20. package/views/dist/controls/button/button.d.ts +40 -0
  21. package/views/dist/controls/button/button.js +40 -0
  22. package/views/dist/controls/button/looks.d.ts +4 -0
  23. package/views/dist/controls/button/looks.js +20 -0
  24. package/views/dist/controls/button/map-button.d.ts +11 -0
  25. package/views/dist/controls/button/map-button.js +20 -0
  26. package/views/dist/controls/button/own-look.d.ts +59 -0
  27. package/views/dist/controls/button/own-look.js +33 -0
  28. package/views/dist/controls/button/tokens.d.ts +351 -0
  29. package/views/dist/controls/button/tokens.js +90 -0
  30. package/views/dist/controls/button.css +530 -0
  31. package/views/dist/controls/checkbox/checkbox.d.ts +28 -0
  32. package/views/dist/controls/checkbox/checkbox.js +15 -0
  33. package/views/dist/controls/checkbox/looks.d.ts +3 -0
  34. package/views/dist/controls/checkbox/looks.js +8 -0
  35. package/views/dist/controls/checkbox/map-checkbox.d.ts +2 -0
  36. package/views/dist/controls/checkbox/map-checkbox.js +5 -0
  37. package/views/dist/controls/checkbox/tokens.d.ts +131 -0
  38. package/views/dist/controls/checkbox/tokens.js +35 -0
  39. package/views/dist/controls/checkbox.css +133 -0
  40. package/views/dist/controls/controls.d.ts +14 -0
  41. package/views/dist/controls/controls.js +14 -0
  42. package/views/dist/controls/field/field.d.ts +94 -0
  43. package/views/dist/controls/field/field.js +46 -0
  44. package/views/dist/controls/field/looks.d.ts +13 -0
  45. package/views/dist/controls/field/looks.js +22 -0
  46. package/views/dist/controls/field/tokens.d.ts +75 -0
  47. package/views/dist/controls/field/tokens.js +21 -0
  48. package/views/dist/controls/field.css +98 -0
  49. package/views/dist/controls/glass-button/glass-button.d.ts +40 -0
  50. package/views/dist/controls/glass-button/glass-button.js +16 -0
  51. package/views/dist/controls/glass-button/looks.d.ts +4 -0
  52. package/views/dist/controls/glass-button/looks.js +4 -0
  53. package/views/dist/controls/glass-button/tokens.d.ts +127 -0
  54. package/views/dist/controls/glass-button/tokens.js +34 -0
  55. package/views/dist/controls/glass-button.css +111 -0
  56. package/views/dist/controls/index.d.ts +37 -0
  57. package/views/dist/controls/index.js +31 -0
  58. package/views/dist/controls/inline-input/inline-input.d.ts +14 -0
  59. package/views/dist/controls/inline-input/inline-input.js +10 -0
  60. package/views/dist/controls/inline-input/looks.d.ts +3 -0
  61. package/views/dist/controls/inline-input/looks.js +16 -0
  62. package/views/dist/controls/inline-input/tokens.d.ts +79 -0
  63. package/views/dist/controls/inline-input/tokens.js +22 -0
  64. package/views/dist/controls/inline-input.css +78 -0
  65. package/views/dist/controls/input/autofill.d.ts +25 -0
  66. package/views/dist/controls/input/autofill.js +17 -0
  67. package/views/dist/controls/input/input.d.ts +119 -0
  68. package/views/dist/controls/input/input.js +127 -0
  69. package/views/dist/controls/input/looks.d.ts +41 -0
  70. package/views/dist/controls/input/looks.js +48 -0
  71. package/views/dist/controls/input/map-input.d.ts +2 -0
  72. package/views/dist/controls/input/map-input.js +5 -0
  73. package/views/dist/controls/input/tokens.d.ts +171 -0
  74. package/views/dist/controls/input/tokens.js +45 -0
  75. package/views/dist/controls/input.css +381 -0
  76. package/views/dist/controls/internal/anchor.d.ts +16 -0
  77. package/views/dist/controls/internal/anchor.js +8 -0
  78. package/views/dist/controls/internal/close-reason.d.ts +5 -0
  79. package/views/dist/controls/internal/close-reason.js +2 -0
  80. package/views/dist/controls/internal/popup-host.d.ts +7 -0
  81. package/views/dist/controls/internal/popup-host.js +10 -0
  82. package/views/dist/controls/internal/scroll.d.ts +11 -0
  83. package/views/dist/controls/internal/scroll.js +14 -0
  84. package/views/dist/controls/kbd/kbd.d.ts +13 -0
  85. package/views/dist/controls/kbd/kbd.js +10 -0
  86. package/views/dist/controls/kbd/looks.d.ts +4 -0
  87. package/views/dist/controls/kbd/looks.js +4 -0
  88. package/views/dist/controls/kbd/tokens.d.ts +47 -0
  89. package/views/dist/controls/kbd/tokens.js +14 -0
  90. package/views/dist/controls/kbd.css +46 -0
  91. package/views/dist/controls/number-field/number-field.d.ts +48 -0
  92. package/views/dist/controls/number-field/number-field.js +34 -0
  93. package/views/dist/controls/number-field/tokens.d.ts +47 -0
  94. package/views/dist/controls/number-field/tokens.js +14 -0
  95. package/views/dist/controls/number-field.css +54 -0
  96. package/views/dist/controls/option/atom-tag.d.ts +6 -0
  97. package/views/dist/controls/option/atom-tag.js +6 -0
  98. package/views/dist/controls/option/looks.d.ts +7 -0
  99. package/views/dist/controls/option/looks.js +21 -0
  100. package/views/dist/controls/option/option.d.ts +35 -0
  101. package/views/dist/controls/option/option.js +32 -0
  102. package/views/dist/controls/option/tokens.d.ts +223 -0
  103. package/views/dist/controls/option/tokens.js +58 -0
  104. package/views/dist/controls/option.css +92 -0
  105. package/views/dist/controls/phone-header/header-bar.d.ts +18 -0
  106. package/views/dist/controls/phone-header/header-bar.js +9 -0
  107. package/views/dist/controls/phone-header/looks.d.ts +4 -0
  108. package/views/dist/controls/phone-header/looks.js +4 -0
  109. package/views/dist/controls/phone-header/soft-edge.d.ts +5 -0
  110. package/views/dist/controls/phone-header/soft-edge.js +3 -0
  111. package/views/dist/controls/phone-header/tokens.d.ts +59 -0
  112. package/views/dist/controls/phone-header/tokens.js +17 -0
  113. package/views/dist/controls/phone-header.css +51 -0
  114. package/views/dist/controls/popover/looks.d.ts +4 -0
  115. package/views/dist/controls/popover/looks.js +10 -0
  116. package/views/dist/controls/popover/map-popover.d.ts +3 -0
  117. package/views/dist/controls/popover/map-popover.js +5 -0
  118. package/views/dist/controls/popover/popover.d.ts +74 -0
  119. package/views/dist/controls/popover/popover.js +106 -0
  120. package/views/dist/controls/popover/tokens.d.ts +83 -0
  121. package/views/dist/controls/popover/tokens.js +23 -0
  122. package/views/dist/controls/popover.css +94 -0
  123. package/views/dist/controls/scrollbar/scrollbar.d.ts +10 -0
  124. package/views/dist/controls/scrollbar/scrollbar.js +143 -0
  125. package/views/dist/controls/scrollbar/tokens.d.ts +43 -0
  126. package/views/dist/controls/scrollbar/tokens.js +13 -0
  127. package/views/dist/controls/scrollbar.css +47 -0
  128. package/views/dist/controls/sheet/bottom-sheet.d.ts +98 -0
  129. package/views/dist/controls/sheet/bottom-sheet.js +372 -0
  130. package/views/dist/controls/sheet/forms.d.ts +38 -0
  131. package/views/dist/controls/sheet/forms.js +26 -0
  132. package/views/dist/controls/sheet/looks.d.ts +4 -0
  133. package/views/dist/controls/sheet/looks.js +10 -0
  134. package/views/dist/controls/sheet/map-sheet.d.ts +3 -0
  135. package/views/dist/controls/sheet/map-sheet.js +12 -0
  136. package/views/dist/controls/sheet/spring.d.ts +22 -0
  137. package/views/dist/controls/sheet/spring.js +48 -0
  138. package/views/dist/controls/sheet/tokens.d.ts +143 -0
  139. package/views/dist/controls/sheet/tokens.js +38 -0
  140. package/views/dist/controls/sheet.css +220 -0
  141. package/views/dist/controls/smooth.css +101 -0
  142. package/views/dist/controls/spinner/looks.d.ts +4 -0
  143. package/views/dist/controls/spinner/looks.js +32 -0
  144. package/views/dist/controls/spinner/spinner.d.ts +23 -0
  145. package/views/dist/controls/spinner/spinner.js +16 -0
  146. package/views/dist/controls/spinner/tokens.d.ts +55 -0
  147. package/views/dist/controls/spinner/tokens.js +16 -0
  148. package/views/dist/controls/spinner.css +147 -0
  149. package/views/dist/controls/status/atom-status-badge.d.ts +10 -0
  150. package/views/dist/controls/status/atom-status-badge.js +13 -0
  151. package/views/dist/controls/status/looks.d.ts +4 -0
  152. package/views/dist/controls/status/looks.js +22 -0
  153. package/views/dist/controls/status/marks.d.ts +26 -0
  154. package/views/dist/controls/status/marks.js +73 -0
  155. package/views/dist/controls/status/status.d.ts +43 -0
  156. package/views/dist/controls/status/status.js +26 -0
  157. package/views/dist/controls/status/tokens.d.ts +407 -0
  158. package/views/dist/controls/status/tokens.js +104 -0
  159. package/views/dist/controls/status.css +164 -0
  160. package/views/dist/controls/switch/looks.d.ts +4 -0
  161. package/views/dist/controls/switch/looks.js +19 -0
  162. package/views/dist/controls/switch/switch.d.ts +15 -0
  163. package/views/dist/controls/switch/switch.js +11 -0
  164. package/views/dist/controls/switch/tokens.d.ts +139 -0
  165. package/views/dist/controls/switch/tokens.js +37 -0
  166. package/views/dist/controls/switch.css +169 -0
  167. package/views/dist/controls/tag/atom-cell-more.d.ts +3 -0
  168. package/views/dist/controls/tag/atom-cell-more.js +5 -0
  169. package/views/dist/controls/tag/looks.d.ts +4 -0
  170. package/views/dist/controls/tag/looks.js +4 -0
  171. package/views/dist/controls/tag/tag.d.ts +25 -0
  172. package/views/dist/controls/tag/tag.js +19 -0
  173. package/views/dist/controls/tag/tokens.d.ts +63 -0
  174. package/views/dist/controls/tag/tokens.js +18 -0
  175. package/views/dist/controls/tag.css +81 -0
  176. package/views/dist/controls/toggle/looks.d.ts +3 -0
  177. package/views/dist/controls/toggle/looks.js +12 -0
  178. package/views/dist/controls/toggle/toggle.d.ts +47 -0
  179. package/views/dist/controls/toggle/toggle.js +23 -0
  180. package/views/dist/controls/toggle/tokens.d.ts +55 -0
  181. package/views/dist/controls/toggle/tokens.js +16 -0
  182. package/views/dist/controls/toggle.css +67 -0
  183. package/views/dist/controls/tokens.d.ts +16 -0
  184. package/views/dist/controls/tokens.js +45 -0
  185. package/views/dist/controls/tooltip/looks.d.ts +4 -0
  186. package/views/dist/controls/tooltip/looks.js +4 -0
  187. package/views/dist/controls/tooltip/map-tooltip.d.ts +3 -0
  188. package/views/dist/controls/tooltip/map-tooltip.js +5 -0
  189. package/views/dist/controls/tooltip/tokens.d.ts +75 -0
  190. package/views/dist/controls/tooltip/tokens.js +21 -0
  191. package/views/dist/controls/tooltip/tooltip.d.ts +54 -0
  192. package/views/dist/controls/tooltip/tooltip.js +78 -0
  193. package/views/dist/controls/tooltip.css +94 -0
  194. package/views/dist/display/date.js +15 -2
  195. package/views/dist/grid/chrome/GridTable.js +21 -19
  196. package/views/dist/grid/chrome/grid-row-window.js +3 -0
  197. package/views/dist/grid/chrome/useGridColumnLayout.d.ts +4 -1
  198. package/views/dist/grid/chrome/useGridColumnLayout.js +17 -2
  199. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +29 -0
  200. package/views/dist/grid/chrome/useGridFittedWidths.js +46 -0
  201. package/views/dist/looks/index.d.ts +17 -0
  202. package/views/dist/looks/index.js +17 -0
  203. package/views/dist/looks/looks.d.ts +2 -1
  204. package/views/dist/looks/pieces.js +37 -1
  205. package/views/dist/model/column-schema.d.ts +3 -2
  206. package/views/dist/model/column-state.d.ts +11 -1
  207. package/views/dist/model/column-state.js +8 -2
  208. package/views/dist/panels/react/views-row/FoldingViewRow.js +8 -8
  209. package/views/dist/styles.css +2748 -56
  210. package/views/dist/styles.unlayered.css +2765 -56
  211. package/views/docs/contract.md +39 -8
  212. package/views/docs/controls/button.md +93 -0
  213. package/views/docs/controls/checkbox.md +38 -0
  214. package/views/docs/controls/field.md +26 -0
  215. package/views/docs/controls/glass-button.md +37 -0
  216. package/views/docs/controls/inline-input.md +27 -0
  217. package/views/docs/controls/input.md +48 -0
  218. package/views/docs/controls/kbd.md +17 -0
  219. package/views/docs/controls/number-field.md +17 -0
  220. package/views/docs/controls/option.md +61 -0
  221. package/views/docs/controls/phone-header.md +20 -0
  222. package/views/docs/controls/popover.md +26 -0
  223. package/views/docs/controls/scrollbar.md +16 -0
  224. package/views/docs/controls/sheet.md +41 -0
  225. package/views/docs/controls/spinner.md +19 -0
  226. package/views/docs/controls/status.md +107 -0
  227. package/views/docs/controls/switch.md +40 -0
  228. package/views/docs/controls/tag.md +21 -0
  229. package/views/docs/controls/toggle.md +19 -0
  230. package/views/docs/controls/tooltip.md +24 -0
  231. package/views/docs/getting-started.md +1 -1
  232. package/views/docs/guides/the-provider.md +1 -1
  233. package/views/docs/index.md +1 -0
  234. package/views/docs/install.md +2 -0
  235. package/views/docs/reference/controls.md +207 -0
  236. package/views/docs/reference/looks.md +77 -2
  237. package/views/docs/reference/views.md +10 -2
@@ -1,4 +1,5 @@
1
- /*! viewkitjs 0.21.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.23.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
2
+
2
3
  @layer base {
3
4
  @layer viewkit {:where(*):where([data-slot^="vk-"], [data-vk-body], [data-slot^="vk-"] *, [data-vk-body] *),
4
5
  :where(*):where([data-slot^="vk-"], [data-vk-body], [data-slot^="vk-"] *, [data-vk-body] *)::after,
@@ -221,7 +222,2487 @@
221
222
  }
222
223
  }
223
224
  }
225
+
226
+ @property --smooth-t { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
227
+
228
+ @property --smooth-side { syntax: "<length>"; inherits: true; initial-value: 0px; }
229
+
230
+ @property --smooth-x { syntax: "<number>"; inherits: true; initial-value: 0; }
231
+
232
+ @property --smooth-k { syntax: "<number>"; inherits: true; initial-value: 0; }
233
+
234
+ @property --smooth-cc { syntax: "<number>"; inherits: true; initial-value: 0; }
235
+
236
+ @property --smooth-d { syntax: "<number>"; inherits: true; initial-value: 0; }
237
+
238
+ @property --smooth-p { syntax: "<number>"; inherits: true; initial-value: 0; }
239
+
240
+ @property --smooth-a2 { syntax: "<number>"; inherits: true; initial-value: 0; }
241
+
242
+ @property --smooth-a1 { syntax: "<number>"; inherits: true; initial-value: 0; }
243
+
244
+ @property --smooth-bc { syntax: "<number>"; inherits: true; initial-value: 0; }
245
+
246
+ @property --smooth-e { syntax: "<number>"; inherits: true; initial-value: 0; }
247
+
248
+ @property --smooth-hx { syntax: "<number>"; inherits: true; initial-value: 0; }
249
+
250
+ @property --smooth-hy { syntax: "<number>"; inherits: true; initial-value: 0; }
251
+
252
+ @property --smooth-khy { syntax: "<number>"; inherits: true; initial-value: 0; }
253
+
254
+ @property --smooth-khx { syntax: "<number>"; inherits: true; initial-value: 0; }
255
+
224
256
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
257
+
258
+ .o-smooth, .o-smooth::before, .o-smooth::after {
259
+ /* The first curve's reach (e) and drop (d), its handles (a1, a2); the arc's chord (k) and handles (hx, hy, and k less each); the
260
+ last curve's handles (cc, bc); where the bend starts (p). Apple's, at 70%. */
261
+ --smooth-e: 1.222; --smooth-d: 0.147; --smooth-a1: 0.655; --smooth-a2: 0.982; --smooth-k: 0.33; --smooth-hx: 0.135; --smooth-hy: 0.082;
262
+ --smooth-khy: 0.248; --smooth-khx: 0.196; --smooth-cc: 0.24; --smooth-bc: 0.568; --smooth-p: 1.7;
263
+ --smooth-path:
264
+ hline to calc(100% - var(--smooth-in, 0px) - var(--smooth-t) * var(--smooth-p)),
265
+ curve by calc(var(--smooth-t) * var(--smooth-e)) calc(var(--smooth-t) * var(--smooth-d)) with calc(var(--smooth-t) * var(--smooth-a1)) 0 / calc(var(--smooth-t) * var(--smooth-a2)) 0,
266
+ curve by calc(var(--smooth-t) * var(--smooth-k)) calc(var(--smooth-t) * var(--smooth-k)) with calc(var(--smooth-t) * var(--smooth-hx)) calc(var(--smooth-t) * var(--smooth-hy)) / calc(var(--smooth-t) * var(--smooth-khy)) calc(var(--smooth-t) * var(--smooth-khx)),
267
+ curve by calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-e)) with calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-cc)) / calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-bc)),
268
+ vline to calc(var(--smooth-foot, 100%) - var(--smooth-in, 0px) - var(--smooth-b, var(--smooth-t)) * var(--smooth-p)),
269
+ curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e)) with 0 calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a1)) / 0 calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a2)),
270
+ curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k)) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hy) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hx)) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khx) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khy)),
271
+ curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d)) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-cc) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d)) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-bc) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d)),
272
+ hline to calc(var(--smooth-in, 0px) + var(--smooth-b, var(--smooth-t)) * var(--smooth-p)),
273
+ curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a1) * -1) 0 / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-a2) * -1) 0,
274
+ curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-k) * -1) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hx) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-hy) * -1) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khy) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-khx) * -1),
275
+ curve by calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-e) * -1) with calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-cc) * -1) / calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-d) * -1) calc(var(--smooth-b, var(--smooth-t)) * var(--smooth-bc) * -1),
276
+ vline to calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)),
277
+ curve by calc(var(--smooth-t) * var(--smooth-d)) calc(var(--smooth-t) * var(--smooth-e) * -1) with 0 calc(var(--smooth-t) * var(--smooth-a1) * -1) / 0 calc(var(--smooth-t) * var(--smooth-a2) * -1),
278
+ curve by calc(var(--smooth-t) * var(--smooth-k)) calc(var(--smooth-t) * var(--smooth-k) * -1) with calc(var(--smooth-t) * var(--smooth-hy)) calc(var(--smooth-t) * var(--smooth-hx) * -1) / calc(var(--smooth-t) * var(--smooth-khx)) calc(var(--smooth-t) * var(--smooth-khy) * -1),
279
+ curve by calc(var(--smooth-t) * var(--smooth-e)) calc(var(--smooth-t) * var(--smooth-d) * -1) with calc(var(--smooth-t) * var(--smooth-cc)) calc(var(--smooth-t) * var(--smooth-d) * -1) / calc(var(--smooth-t) * var(--smooth-bc)) calc(var(--smooth-t) * var(--smooth-d) * -1),
280
+ close;
281
+ --smooth-outline: from calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)) var(--smooth-in, 0px), var(--smooth-path);
282
+ --smooth-ring: evenodd var(--smooth-outer), move to calc(var(--smooth-in, 0px) + var(--smooth-t) * var(--smooth-p)) var(--smooth-in, 0px), var(--smooth-path);
283
+ }
284
+ /* The element's own outline, as it worked it out: what its ::before or ::after reads for a ring's outer line. */
285
+ .o-smooth { --smooth-outer: var(--smooth-outline); }
286
+
287
+ /* Eased on a short side: the smoothing from the side and the top radius, on the element alone so its ring takes the same; each number
288
+ from it (at 0.7 these give Apple's within a thousandth). */
289
+ .o-smooth.o-smooth-ease { --smooth-x: clamp(0, tan(atan2(var(--smooth-side), var(--smooth-t) * 2)) - 1, var(--smooth-amount, 0.7)); }
290
+ .o-smooth.o-smooth-ease, .o-smooth.o-smooth-ease::before, .o-smooth.o-smooth-ease::after {
291
+ --smooth-k: calc(sin(45deg * (1 - var(--smooth-x))) * 1.414214);
292
+ --smooth-cc: calc(tan(22.5deg * var(--smooth-x)) * cos(45deg * var(--smooth-x)));
293
+ --smooth-d: calc(tan(22.5deg * var(--smooth-x)) * sin(45deg * var(--smooth-x)));
294
+ --smooth-p: calc(1 + var(--smooth-x));
295
+ --smooth-a2: calc(var(--smooth-p) - var(--smooth-k) - var(--smooth-cc) - var(--smooth-d));
296
+ --smooth-a1: calc(var(--smooth-a2) * 2 / 3);
297
+ --smooth-bc: calc(var(--smooth-a2) / 3 + var(--smooth-cc));
298
+ --smooth-e: calc(var(--smooth-p) - var(--smooth-k) - var(--smooth-d));
299
+ --smooth-hx: calc(tan(22.5deg * (1 - var(--smooth-x))) * 4 / 3 * cos(45deg * var(--smooth-x)));
300
+ --smooth-hy: calc(tan(22.5deg * (1 - var(--smooth-x))) * 4 / 3 * sin(45deg * var(--smooth-x)));
301
+ --smooth-khy: calc(var(--smooth-k) - var(--smooth-hy));
302
+ --smooth-khx: calc(var(--smooth-k) - var(--smooth-hx));
303
+ }
304
+
305
+ /* ── At rest ──────────────────────────────────────────────────────────────────────────────────────── */
306
+ :where(.o-button) {
307
+ height: calc(var(--vk-spacing) * 9);
308
+ padding: 0 calc(var(--vk-spacing) * 3.5);
309
+ font-size: var(--vk-font-size-sm);
310
+ --button-r: var(--vk-radius-lg);
311
+ --button-edge: transparent; --button-edge-foot: transparent;
312
+ --button-ground: transparent; --button-light: none; --button-depth: none; --button-line: var(--vk-border-width);
313
+ color: var(--vk-fg);
314
+ /* Drawn as a link (an <a>), it drops the browser's underline at rest; every kind's own underline still wins. */
315
+ text-decoration: none;
316
+ }
317
+ .o-button {
318
+ position: relative; display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 1.5);
319
+ box-sizing: border-box; margin: 0;
320
+ border-width: var(--button-line); border-style: solid;
321
+ /* Its paint, from its variables: every kind, look and state below sets them, never the paint itself, so its cut can
322
+ draw them under Smooth (Corner smoothing, the last section) and it paints them itself under Round. */
323
+ border-radius: var(--button-r); background-color: var(--button-ground); background-image: var(--button-light);
324
+ border-color: var(--button-edge); border-bottom-color: var(--button-edge-foot); box-shadow: var(--button-depth);
325
+ font-family: inherit; line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
326
+ cursor: pointer; user-select: none; outline: none; -webkit-tap-highlight-color: transparent;
327
+ transition-property: background-color, border-color, color, box-shadow, translate, scale;
328
+ transition-duration: var(--vk-duration-fast);
329
+ transition-timing-function: var(--vk-ease-out);
330
+ }
331
+ .o-button > [data-slot="vk-button-icon"] { display: inline-flex; flex: none; transition: color var(--vk-duration-fast) var(--vk-ease-out); }
332
+ .o-button > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.75); height: calc(var(--vk-spacing) * 3.75); }
333
+
334
+ /* ── Sizes and forms: 24 and 28px in dense places (a header beside a 24px face, a chip's row), 32 in
335
+ toolbars and rows, 36 beside fields, 44 on the phone (lg, the next step's words and icons; or 44, md's words and icons
336
+ at 44 high); the smaller two carry smaller words and icons ── */
337
+ .o-button-2xs { height: calc(var(--vk-spacing) * 6); padding: 0 calc(var(--vk-spacing) * 2); gap: calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); }
338
+ .o-button-xs { height: calc(var(--vk-spacing) * 7); padding: 0 calc(var(--vk-spacing) * 2.5); gap: calc(var(--vk-spacing) * 1); }
339
+ .o-button-sm { height: calc(var(--vk-spacing) * 8); padding: 0 calc(var(--vk-spacing) * 3); }
340
+ .o-button-lg { height: calc(var(--vk-spacing) * 11); padding: 0 calc(var(--vk-spacing) * 5); font-size: var(--vk-font-size-base); }
341
+ .o-button-2xs > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
342
+ .o-button-xs > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
343
+ /* Icon only: a square of its height, at every size. */
344
+ .o-button.o-button-icon { aspect-ratio: 1; min-width: 0; padding: 0; }
345
+ /* Round: a circle of its height, at every size; the card's close is the 32px one. */
346
+ .o-button.o-button-round { aspect-ratio: 1; min-width: 0; padding: 0; --button-r: var(--vk-radius-full); }
347
+ /* An icon-only or round button's icon is in proportion to it, a little over half its height: 14px at 24,
348
+ 16 at 28, 18 at 32, 20 at 36, 24 at 44. A button with words keeps its icon beside them, 15px. */
349
+ .o-button:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
350
+ .o-button-2xs:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
351
+ .o-button-xs:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
352
+ .o-button-sm:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
353
+ .o-button-lg:is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
354
+
355
+ /* ── Under the pointer, only on a screen that has one: iOS keeps :hover on what was last tapped,
356
+ so on a phone a hover fill would stay after the tap. Every kind's and every look's hover is here, in the
357
+ order the kinds and the looks below give them; where each rule stands below, only the sheets' forced state
358
+ ([data-force="hover"]) stays, drawn on any screen. A press (:active) stays below too, a fill only while
359
+ pressed, and after this block, so a press under the pointer still wins over the hover ────────────── */
360
+ @media (hover: hover) {
361
+ .o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
362
+ .o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly], :where([data-button-own][data-button-hover="none"], [data-button-own][data-button-hover="words"])) { --button-ground: var(--vk-danger-bold-hovered); }
363
+ .o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
364
+ .o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
365
+ .o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
366
+ .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-hovered); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
367
+ .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
368
+ .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly], :where([data-button-own][data-button-hover="none"], [data-button-own][data-button-hover="words"])) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
369
+ .o-button-link:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { text-decoration: underline; }
370
+ .o-button-text:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { text-decoration-color: currentColor; }
371
+ [data-button-depth="edged"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-depth: var(--vk-shadow-key-subtle-raised); --button-edge-foot: var(--vk-border-bold); }
372
+ [data-button-depth="edged"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-depth: var(--vk-shadow-key-shallow); }
373
+ [data-button-hover="brighter"] .o-button:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: linear-gradient(var(--vk-brighten), var(--vk-brighten)); }
374
+ [data-button-hover="brighter"] .o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); }
375
+ [data-button-hover="brighter"] .o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); }
376
+ [data-button-hover="brighter"] .o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); }
377
+ [data-button-hover="brighter"] .o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); }
378
+ [data-button-hover="brighter"] .o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); }
379
+ [data-button-hover="brighter"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-ground); }
380
+ [data-button-hover="brighter"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
381
+ [data-button-hover="brighter"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
382
+ [data-button-hover="rises"] .o-button:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { translate: 0 calc(var(--vk-hover-lift) * -1); --button-depth: var(--vk-shadow-lift-raised); }
383
+ [data-button-hover="rises"] .o-button-primary:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
384
+ [data-button-hover="rises"] .o-button-danger:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
385
+ [data-button-hover="rises"] .o-button-information:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
386
+ [data-button-hover="rises"] .o-button-success:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
387
+ [data-button-hover="rises"] .o-button-warning:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
388
+ [data-button-hover="rises"] .o-button-outline:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-raised-hovered); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
389
+ [data-button-hover="rises"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-raised-hovered); --button-edge: var(--vk-border); --button-edge-foot: var(--vk-border); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
390
+ [data-button-hover="rises"] .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-raised); --button-edge: var(--vk-border-subtle); --button-edge-foot: var(--vk-border-subtle); --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
391
+ [data-button-hover] :is(.o-button-link, .o-button-text):hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; translate: none; --button-depth: none; }
392
+ [data-button-soft="tint"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-subtler-hovered); }
393
+ [data-button-soft="tint"] .o-button-soft:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) > [data-slot="vk-button-icon"] { color: var(--vk-fg-accent); }
394
+ }
395
+
396
+ /* ── The kinds, as the approved card draws them ─────────────────────────────────────────────────────── */
397
+ /* Primary: the one main action, in the brand. */
398
+ .o-button-primary { --button-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
399
+ .o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
400
+ .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
401
+ /* Danger: primary's form in the danger colours. */
402
+ .o-button-danger { --button-ground: var(--vk-danger-bold); color: var(--vk-fg-inverse); }
403
+ .o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
404
+ .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-hovered); }
405
+ /* Information, Success and Warning: primary's form in the Notice's meanings' colours, for an action that says which it is. Warning
406
+ takes the same white words as the rest. */
407
+ .o-button-information { --button-ground: var(--vk-info-bold); color: var(--vk-fg-on-brand); }
408
+ .o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
409
+ .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
410
+ .o-button-success { --button-ground: var(--vk-success-bold); color: var(--vk-fg-inverse); }
411
+ .o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
412
+ .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
413
+ .o-button-warning { --button-ground: var(--vk-warning-bold); color: var(--vk-fg-inverse); }
414
+ .o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
415
+ .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
416
+ /* Outline: every other action, the surface with an edge. */
417
+ .o-button-outline { --button-ground: var(--vk-ground); --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); }
418
+ .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-hovered); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
419
+ .o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
420
+ /* Soft: beside a field or in a toolbar. */
421
+ .o-button-soft { --button-ground: var(--vk-neutral); }
422
+ .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]),
423
+ .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
424
+ /* Quiet: the way out, only its words until the pointer finds it, on the step of the ground it stands on: the
425
+ page's, or a popup's own. */
426
+ .o-button-quiet { color: var(--vk-fg-subtle); }
427
+ .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
428
+ .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); color: var(--vk-fg); }
429
+ /* On a popup's ground, the overlay's hover: as specific as the page's, so a look's own hover (rises) and a
430
+ component's own over a Button (the Menu's dots) still win. Its press follows the looks' press, below. */
431
+ :where(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-overlay-hovered); }
432
+ @media (hover: hover) { :where(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button-quiet:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly], :where([data-button-own][data-button-hover="none"], [data-button-own][data-button-hover="words"])) { --button-ground: var(--vk-overlay-hovered); } }
433
+ /* Link: words in the brand's text colour, no fill and no edge; underlined under the pointer. */
434
+ .o-button-link { color: var(--vk-fg-accent); text-underline-offset: calc(var(--vk-spacing) * 3 / 4); }
435
+ .o-button-link[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { text-decoration: underline; }
436
+ /* Text: an action in what it acts on (a Notice's Retry, a Toast's Undo, a list's Clear all): words in the text
437
+ colour, no fill and no edge, the underline easing in under the pointer. While it works without a spinner
438
+ ("Retrying…"), its words stay, quieter. */
439
+ .o-button-text {
440
+ color: var(--vk-fg); text-decoration: underline transparent; text-underline-offset: calc(var(--vk-spacing) * 3 / 4);
441
+ transition-property: background-color, border-color, color, box-shadow, translate, scale, text-decoration-color;
442
+ }
443
+ .o-button-text[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { text-decoration-color: currentColor; }
444
+ .o-button-text[aria-busy="true"]:not(:has(> [data-slot="vk-button-spinner"])) { color: var(--vk-fg-subtle); }
445
+ .o-button.o-button-text[aria-busy="true"]:not(:has(> [data-slot="vk-button-spinner"])) > * { visibility: visible; }
446
+ /* Pressed, it settles. */
447
+ .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: var(--vk-press-scale); }
448
+
449
+ /* ── Corners: a step of the radius ────────────────────────────────────────────────────────────────── */
450
+ /* For now, a Button whose own look names its radius (or its words, below) keeps them: the frame's Corners, Pill's padding
451
+ and Label weight skip it; Pill's padding skips its pad and the measured sizes with words too, and Pill's padding at an
452
+ end icon skips its end room. */
453
+ [data-button-radius="xs"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xs); }
454
+ [data-button-radius="sm"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-sm); }
455
+ [data-button-radius="md"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-md); }
456
+ [data-button-radius="lg"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-lg); }
457
+ [data-button-radius="xl"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xl); }
458
+ [data-button-radius="2xl"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-2xl); }
459
+ /* Full: a pill, an icon button a circle. Its round ends leave room, so it takes a step more padding, and
460
+ a step less on the side an icon sits. */
461
+ [data-button-radius="full"] .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-full); }
462
+ [data-button-radius="full"] .o-button:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 4.5); }
463
+ [data-button-radius="full"] .o-button-2xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 2.5); }
464
+ [data-button-radius="full"] .o-button-xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 3); }
465
+ [data-button-radius="full"] .o-button-sm:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 3.5); }
466
+ [data-button-radius="full"] .o-button-lg:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)) { padding: 0 calc(var(--vk-spacing) * 5.5); }
467
+ [data-button-radius="full"] .o-button:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 3.5); }
468
+ [data-button-radius="full"] .o-button:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 3.5); }
469
+ [data-button-radius="full"] .o-button-2xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 1.5); }
470
+ [data-button-radius="full"] .o-button-2xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 1.5); }
471
+ [data-button-radius="full"] .o-button-xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 2); }
472
+ [data-button-radius="full"] .o-button-xs:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 2); }
473
+ [data-button-radius="full"] .o-button-sm:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 2.5); }
474
+ [data-button-radius="full"] .o-button-sm:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 2.5); }
475
+ [data-button-radius="full"] .o-button-lg:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line)):has(> [data-slot="vk-button-icon"]:first-child) { padding-left: calc(var(--vk-spacing) * 4.5); }
476
+ [data-button-radius="full"] .o-button-lg:not(.o-button-icon, .o-button-round, :where([data-button-own][data-button-radius], [data-button-own][data-button-pad], .o-button-20, .o-button-22, .o-button-26, .o-button-line, [data-button-own][data-button-end-room])):has(> [data-slot="vk-button-label"] + [data-slot="vk-button-icon"]) { padding-right: calc(var(--vk-spacing) * 4.5); }
477
+
478
+ /* ── Label weight ─────────────────────────────────────────────────────────────────────────────────── */
479
+ [data-button-weight="semibold"] .o-button:not(:where([data-button-own][data-button-words])) { font-weight: var(--vk-font-weight-semibold); }
480
+
481
+ /* ── Depth: edged, a key; lifted, floating on the page ────────────────────────────────────────────── */
482
+ [data-button-depth="edged"] .o-button-primary, [data-button-depth="edged"] .o-button-danger, [data-button-depth="edged"] .o-button-information, [data-button-depth="edged"] .o-button-success, [data-button-depth="edged"] .o-button-warning { --button-depth: var(--vk-shadow-key); }
483
+ [data-button-depth="edged"] .o-button-outline { --button-depth: var(--vk-shadow-key-subtle); --button-edge-foot: var(--vk-border-input-hovered); }
484
+ [data-button-depth="edged"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-depth: var(--vk-shadow-key-subtle-raised); --button-edge-foot: var(--vk-border-bold); }
485
+ [data-button-depth="edged"] .o-button-soft { --button-depth: var(--vk-shadow-key-soft); }
486
+ [data-button-depth="edged"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-depth: var(--vk-shadow-key-shallow); }
487
+
488
+ [data-button-depth="lifted"] .o-button-primary { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); }
489
+ [data-button-depth="lifted"] .o-button-danger { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); }
490
+ [data-button-depth="lifted"] .o-button-information { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); }
491
+ [data-button-depth="lifted"] .o-button-success { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); }
492
+ [data-button-depth="lifted"] .o-button-warning { --button-depth: var(--vk-shadow-rim-bold), var(--vk-shadow-lift); --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); }
493
+ [data-button-depth="lifted"] .o-button-outline { --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
494
+
495
+ /* ── Under the pointer: brighter, a thin light over the fill; rises, a pixel up on a deeper shadow ── */
496
+ [data-button-hover="brighter"] .o-button[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: linear-gradient(var(--vk-brighten), var(--vk-brighten)); }
497
+ [data-button-hover="brighter"] .o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand); }
498
+ [data-button-hover="brighter"] .o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-danger-bold); }
499
+ [data-button-hover="brighter"] .o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-info-bold); }
500
+ [data-button-hover="brighter"] .o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-success-bold); }
501
+ [data-button-hover="brighter"] .o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-warning-bold); }
502
+ [data-button-hover="brighter"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-ground); }
503
+ [data-button-hover="brighter"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-neutral); }
504
+ [data-button-hover="brighter"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: none; }
505
+
506
+ [data-button-hover="rises"] .o-button { transition-duration: var(--vk-duration-base); }
507
+ [data-button-hover="rises"] .o-button[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { translate: 0 calc(var(--vk-hover-lift) * -1); --button-depth: var(--vk-shadow-lift-raised); }
508
+ [data-button-hover="rises"] .o-button-primary[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand); --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
509
+ [data-button-hover="rises"] .o-button-danger[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-danger-bold); --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
510
+ [data-button-hover="rises"] .o-button-information[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-info-bold); --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
511
+ [data-button-hover="rises"] .o-button-success[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-success-bold); --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
512
+ [data-button-hover="rises"] .o-button-warning[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-warning-bold); --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); --button-depth: var(--vk-shadow-rim-bold-raised), var(--vk-shadow-lift-raised); }
513
+ [data-button-hover="rises"] .o-button-outline[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-raised-hovered); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
514
+ [data-button-hover="rises"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-raised-hovered); --button-edge: var(--vk-border); --button-edge-foot: var(--vk-border); --button-depth: var(--vk-shadow-rim-raised), var(--vk-shadow-lift-raised); }
515
+ [data-button-hover="rises"] .o-button-quiet[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-raised); --button-edge: var(--vk-border-subtle); --button-edge-foot: var(--vk-border-subtle); --button-depth: var(--vk-shadow-rim), var(--vk-shadow-lift); }
516
+
517
+ /* A link, and text, stay words in every look: no light laid over them, no rise. */
518
+ [data-button-hover] :is(.o-button-link, .o-button-text)[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-light: none; translate: none; --button-depth: none; }
519
+
520
+ /* A press under the pointer: the kind's pressed fill comes back over what a look's hover set. */
521
+ [data-button-hover] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
522
+ [data-button-hover] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-hovered); }
523
+ [data-button-hover] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-hovered); }
524
+ [data-button-hover] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-hovered); }
525
+ [data-button-hover] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-hovered); }
526
+ [data-button-hover] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-hovered); }
527
+ [data-button-hover] .o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); --button-edge: var(--vk-border-input-hovered); --button-edge-foot: var(--vk-border-input-hovered); }
528
+ [data-button-hover] .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral-hovered); }
529
+ [data-button-hover] .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-pressed); color: var(--vk-fg); }
530
+ /* On a popup's ground, the overlay's press, in every look. */
531
+ :is(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-overlay-pressed); }
532
+
533
+ /* ── Press: sinks into the page, springs back from a squash, or lands flat ────────────────────────── */
534
+ [data-button-press="sinks"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) {
535
+ scale: none; translate: 0 var(--vk-press-travel); --button-depth: var(--vk-shadow-key-pressed);
536
+ --button-light: linear-gradient(var(--vk-darken), var(--vk-darken)); transition-duration: var(--vk-duration-instant);
537
+ }
538
+ [data-button-press="sinks"] .o-button-lg:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { translate: 0 var(--vk-press-travel-lg); }
539
+ [data-button-press="sinks"] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand); --button-depth: var(--vk-shadow-key-pressed-bold); }
540
+ [data-button-press="sinks"] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
541
+ [data-button-press="sinks"] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
542
+ [data-button-press="sinks"] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
543
+ [data-button-press="sinks"] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold); --button-depth: var(--vk-shadow-key-pressed-bold); }
544
+ [data-button-press="sinks"] .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
545
+ [data-button-press="sinks"] .o-button-outline:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]),
546
+ [data-button-press="sinks"] .o-button-quiet:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; }
547
+
548
+ [data-button-press="springs"] .o-button {
549
+ transition-duration: var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-fast), var(--vk-duration-slow);
550
+ transition-timing-function: var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-out), var(--vk-ease-spring);
551
+ }
552
+ /* Every Button squashes the same, its icon alone and a round one too: one press, whatever it shows. */
553
+ [data-button-press="springs"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: var(--vk-press-squash); transition-duration: var(--vk-duration-instant); }
554
+ [data-button-press="springs"] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-pressed); }
555
+ [data-button-press="springs"] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-danger-bold-pressed); }
556
+ [data-button-press="springs"] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-info-bold-pressed); }
557
+ [data-button-press="springs"] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-success-bold-pressed); }
558
+ [data-button-press="springs"] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-warning-bold-pressed); }
559
+
560
+ [data-button-press] :is(.o-button-link, .o-button-text):is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-light: none; --button-depth: none; }
561
+
562
+ [data-button-press="lands"] .o-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { scale: none; translate: none; --button-depth: none; transition-duration: var(--vk-duration-instant); }
563
+ [data-button-press="lands"] .o-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-brand-hovered); --button-edge-foot: var(--vk-brand-hovered); }
564
+ [data-button-press="lands"] .o-button-danger:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-danger-bold-hovered); --button-edge-foot: var(--vk-danger-bold-hovered); }
565
+ [data-button-press="lands"] .o-button-information:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-info-bold-hovered); --button-edge-foot: var(--vk-info-bold-hovered); }
566
+ [data-button-press="lands"] .o-button-success:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-success-bold-hovered); --button-edge-foot: var(--vk-success-bold-hovered); }
567
+ [data-button-press="lands"] .o-button-warning:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-edge: var(--vk-warning-bold-hovered); --button-edge-foot: var(--vk-warning-bold-hovered); }
568
+
569
+ /* ── The soft kind in the brand's tint, its icon taking the brand under the pointer ───────────────── */
570
+ [data-button-soft="tint"] .o-button-soft { --button-ground: var(--vk-brand-subtler); }
571
+ [data-button-soft="tint"] .o-button-soft > [data-slot="vk-button-icon"] { color: var(--vk-fg-subtle); }
572
+ [data-button-soft="tint"] .o-button-soft[data-force="hover"]:not(:disabled, [data-disabled], [aria-busy="true"]) { --button-ground: var(--vk-brand-subtler-hovered); }
573
+ [data-button-soft="tint"] .o-button-soft:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-brand-subtler-pressed); }
574
+ [data-button-soft="tint"] .o-button-soft:is([data-force="hover"], :active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) > [data-slot="vk-button-icon"] { color: var(--vk-fg-accent); }
575
+
576
+ /* ── Focus, disabled, working: the same in every look ─────────────────────────────────────────────── */
577
+ .o-button:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
578
+ /* Disabled: on the page, grey, no depth; a quiet button keeps no fill. */
579
+ .o-button:is(:disabled, [data-disabled]) {
580
+ --button-ground: var(--vk-neutral); --button-light: none; --button-edge: transparent; --button-edge-foot: transparent; --button-depth: none;
581
+ color: var(--vk-fg-disabled); cursor: not-allowed;
582
+ }
583
+ .o-button:is(.o-button-quiet, .o-button-link, .o-button-text):is(:disabled, [data-disabled]) { --button-ground: transparent; }
584
+ /* Text's ring hugs its words, as it sits inside what it acts on. */
585
+ .o-button.o-button-text:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
586
+ .o-button:is(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] { color: inherit; }
587
+ /* Working: it keeps its place and its width; the label waits under the spinner. */
588
+ .o-button[aria-busy="true"] { cursor: progress; }
589
+ .o-button[aria-busy="true"] > :not([data-slot="vk-button-spinner"], .o-button-cut) { visibility: hidden; }
590
+ .o-button > [data-slot="vk-button-spinner"] { position: absolute; inset: 0; display: grid; place-items: center; }
591
+
592
+ /* ── A group: buttons joined in a row or a column, the corners between them square and the edge between
593
+ them shared; whatever the corners and the looks, only the group's outer corners are rounded. Focus lifts
594
+ a button above its neighbours, so its ring shows whole; groups inside a group stand 8px apart ──────── */
595
+ .o-button-group { display: inline-flex; align-items: stretch; width: fit-content; isolation: isolate; }
596
+ .o-button-group[data-orientation="vertical"] { flex-direction: column; }
597
+ .o-button-group:has(> .o-button-group) { gap: calc(var(--vk-spacing) * 2); }
598
+ .o-button-group > :is(:focus-visible, [data-force="focus"]), .o-button.o-toolbar-button[data-joined]:is(:focus-visible, [data-force="focus"]) { position: relative; z-index: 1; }
599
+ .o-button-group[data-orientation="horizontal"] > :not(:last-child):not(.o-button-group) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
600
+ .o-button-group[data-orientation="horizontal"] > :not(:first-child):not(.o-button-group) { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; }
601
+ .o-button-group[data-orientation="vertical"] > :not(:last-child):not(.o-button-group) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
602
+ .o-button-group[data-orientation="vertical"] > :not(:first-child):not(.o-button-group) { border-top-left-radius: 0; border-top-right-radius: 0; border-top-width: 0; }
603
+ /* Words in a group: on the neutral ground, inside the group's edge. */
604
+ .o-button-group-text {
605
+ display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2); box-sizing: border-box; padding: 0 calc(var(--vk-spacing) * 2.5);
606
+ border: var(--vk-border-width) solid var(--vk-border-input); border-radius: var(--vk-radius-lg);
607
+ background-color: var(--vk-neutral); color: var(--vk-fg-subtle); font-size: var(--vk-font-size-sm); font-weight: var(--vk-font-weight-medium); font-variant-numeric: tabular-nums; white-space: nowrap;
608
+ }
609
+ .o-button-group-text svg { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
610
+ /* The line between two buttons with no edge of their own. */
611
+ .o-button-group-sep { flex: none; align-self: stretch; width: var(--vk-border-width); background-color: var(--vk-border-input); }
612
+ .o-button-group[data-orientation="vertical"] > .o-button-group-sep { width: auto; height: var(--vk-border-width); }
613
+
614
+ /* ── Measured sizes, and a Button's own look ─────────────────────────────────────────────────
615
+ The sizes the looks drew, named by their measures (Attio's captures and the look's sketches): 20 and 22 square as icons, 26 high,
616
+ 20 × 24, 32 × 44 and 40 × 44 boxes, and line, its words' own line with no room round them. A Button's own look (own-look.ts) is
617
+ set on the Button itself, beside data-button-own: each option it names, it keeps; what it doesn't name, the frame sets. */
618
+ .o-button-20 { height: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 2); gap: var(--vk-spacing); font-size: var(--vk-font-size-xs); }
619
+ .o-button-22 { height: calc(var(--vk-spacing) * 5.5); padding: 0 calc(var(--vk-spacing) * 2); gap: var(--vk-spacing); font-size: var(--vk-font-size-xs); }
620
+ .o-button-26 { height: calc(var(--vk-spacing) * 6.5); padding: 0 calc(var(--vk-spacing) * 1.5); gap: var(--vk-spacing); font-size: var(--vk-font-size-xs); }
621
+ .o-button-26:has(> [data-slot="vk-button-icon"]:first-child) { padding-left: var(--vk-spacing); }
622
+ .o-button.o-button-20x24 { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 6); aspect-ratio: auto; min-width: 0; padding: 0; }
623
+ .o-button.o-button-32x44 { width: calc(var(--vk-spacing) * 8); height: calc(var(--vk-spacing) * 11); aspect-ratio: auto; min-width: 0; padding: 0; font-size: var(--vk-font-size-base); }
624
+ /* 44: the md Button 44 high, square when icon-only or round; not a look's measure, so Pill pads it as md. */
625
+ .o-button-44 { height: calc(var(--vk-spacing) * 11); }
626
+ .o-button.o-button-40x44 { width: calc(var(--vk-spacing) * 10); height: calc(var(--vk-spacing) * 11); aspect-ratio: auto; min-width: 0; padding: 0; font-size: var(--vk-font-size-base); }
627
+ .o-button.o-button-line { height: auto; padding: 0; gap: calc(var(--vk-spacing) / 2); font-size: var(--vk-font-size-xs); line-height: inherit; }
628
+ .o-button.o-button-line.o-button-icon { width: auto; aspect-ratio: auto; }
629
+ .o-button:is(.o-button-20, .o-button-22, .o-button-26, .o-button-line) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
630
+ .o-button:is(.o-button-20, .o-button-22, .o-button-26, .o-button-line):is(.o-button-icon, .o-button-round) > [data-slot="vk-button-icon"] > svg,
631
+ .o-button.o-button-20x24 > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
632
+ .o-button:is(.o-button-32x44, .o-button-40x44) > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
633
+
634
+ /* Its radius and its corner, its edge, its words. */
635
+ .o-button[data-button-own][data-button-radius="none"] { --button-r: 0px; }
636
+ .o-button[data-button-own][data-button-radius="xs"] { --button-r: var(--vk-radius-xs); }
637
+ .o-button[data-button-own][data-button-radius="sm"] { --button-r: var(--vk-radius-sm); }
638
+ .o-button[data-button-own][data-button-radius="md"] { --button-r: var(--vk-radius-md); }
639
+ .o-button[data-button-own][data-button-corner="round"] { }
640
+ .o-button[data-button-own][data-button-edge="none"] { --button-line: 0px; }
641
+ .o-button[data-button-own][data-button-words], .o-button[data-button-own][data-button-words="inherit"] { font: inherit; }
642
+ .o-button[data-button-own][data-button-words="xs"] { font-size: var(--vk-font-size-xs); }
643
+ .o-button[data-button-own][data-button-words="sm"] { font-size: var(--vk-font-size-sm); }
644
+ .o-button[data-button-own][data-button-words="xs-medium"] { font-size: var(--vk-font-size-xs); font-weight: var(--vk-font-weight-medium); }
645
+ /* Its colour, kept in every state but disabled (a press's and the pointer's colour among them), unless disabled plain. */
646
+ .o-button[data-button-own][data-button-colour="faint"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg-subtlest); }
647
+ .o-button[data-button-own][data-button-colour="link"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg-brand); }
648
+ .o-button[data-button-own][data-button-colour="text"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: var(--vk-fg); }
649
+ .o-button[data-button-own][data-button-colour="inherit"]:is(:not(:disabled, [data-disabled]), [data-button-disabled="plain"]) { color: inherit; }
650
+ .o-button[data-button-own][data-button-disabled="plain"]:is(:disabled, [data-disabled]) { cursor: default; }
651
+ /* Its icons: their size, and their colour apart from its words. */
652
+ .o-button[data-button-own][data-button-icon="12"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); }
653
+ .o-button[data-button-own][data-button-icon="14"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
654
+ .o-button[data-button-own][data-button-icon="15"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 3.75); height: calc(var(--vk-spacing) * 3.75); }
655
+ .o-button[data-button-own][data-button-icon="16"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
656
+ .o-button[data-button-own][data-button-icon="20"] > [data-slot="vk-button-icon"] > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
657
+ .o-button[data-button-own][data-button-icon-colour="faint"] > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-subtlest); }
658
+ /* Its room left and right, and between its words and its icons. */
659
+ .o-button[data-button-own][data-button-pad="4"] { padding: 0 var(--vk-spacing); }
660
+ .o-button[data-button-own][data-button-pad="6"] { padding: 0 calc(var(--vk-spacing) * 1.5); }
661
+ .o-button[data-button-own][data-button-pad="8"] { padding: 0 calc(var(--vk-spacing) * 2); }
662
+ .o-button[data-button-own][data-button-gap="4"] { gap: var(--vk-spacing); }
663
+ /* Under the pointer: with hover none the kit's own hovers skip it (above); with hover words, its words alone take the text's
664
+ colour. Open, the ground it has under the pointer, on a popup's the overlay's. */
665
+ @media (hover: hover) { .o-button-quiet[data-button-own][data-button-hover="words"]:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { color: var(--vk-fg); } }
666
+ .o-button[data-button-own][data-button-open="hovered"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-hovered); color: var(--vk-fg); }
667
+ :where(.o-popover, .o-sheet, .o-modal, .o-drawer, .o-alert-dialog, .o-pane) .o-button[data-button-own][data-button-open="hovered"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-overlay-hovered); }
668
+ .o-button[data-button-own][data-button-cursor="grab"]:not(:disabled, [data-disabled]) { cursor: grab; }
669
+ /* Pressed on a card in a popup: the card's pressed step, over the popup's own press. */
670
+ .o-button[data-button-own][data-button-press="card"]:is(:active, [data-force="press"]):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-overlay-card-pressed); }
671
+ /* its words at its start, its label growing so an end icon stands at its end; its words semibold, over its words' own. */
672
+ .o-button[data-button-own][data-button-align="start"] { justify-content: flex-start; text-align: start; }
673
+ .o-button[data-button-own][data-button-align="start"] > [data-slot="vk-button-label"] { flex-grow: 1; }
674
+ .o-button[data-button-own][data-button-weight="semibold"] { font-weight: var(--vk-font-weight-semibold); }
675
+ /* Its last icon (its end icon, or its one icon) turns a quarter clockwise while what it opens is open, or a quarter back while shut. */
676
+ .o-button[data-button-own]:is([data-button-turn="quarter"], [data-button-turn="back"]) > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { transition: rotate var(--vk-duration-fast) var(--vk-ease-out); }
677
+ .o-button[data-button-own][data-button-turn="quarter"][aria-expanded="true"] > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { rotate: 90deg; }
678
+ .o-button[data-button-own][data-button-turn="back"][aria-expanded="false"] > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { rotate: -90deg; }
679
+ /* A dot at its top end corner, saying something is on. */
680
+ .o-button[data-button-own][data-button-dot="brand"]::after {
681
+ content: ""; position: absolute; top: var(--vk-spacing); right: var(--vk-spacing); width: var(--vk-dot-size); height: var(--vk-dot-size);
682
+ border-radius: 50%; background-color: var(--vk-brand); pointer-events: none;
683
+ }
684
+ /* Its words cut with … where its place is narrower than they are. Its line is as tall as its words (line-height 1), and their
685
+ ascent and descent reach past it, so the hidden overflow would shave the tails of g, p and y: the label's clip reaches a step
686
+ past its line above and below, taken back by its margin, so the Button's height and its words' place stay. */
687
+ .o-button[data-button-own][data-button-cut="end"] > [data-slot="vk-button-label"] {
688
+ min-width: 0; overflow: hidden; text-overflow: ellipsis;
689
+ padding-block: var(--vk-spacing); margin-block: calc(var(--vk-spacing) * -1);
690
+ }
691
+ /* Room at its end for something laid over it: it wins over Pill's padding by standing after it, as specific (0,3,0). */
692
+ .o-button[data-button-own][data-button-end-room="30"] { padding-right: calc(var(--vk-spacing) * 7.5); }
693
+ /* Its icons subtle, kept while its words take the text's colour under the pointer. */
694
+ .o-button[data-button-own][data-button-icon-colour="subtle"]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-subtle); }
695
+ /* The values the Date and Text editors' looks need, each as measured from Attio's captures or the look's sketches. The
696
+ radius lg; no sides, or 6 at the start and 4 at the end; gaps of 3 to 10; 18px words; medium, after the words (which set the
697
+ place's font); digits one width each; the icon in the brand's colour. */
698
+ .o-button[data-button-own][data-button-radius="lg"] { --button-r: var(--vk-radius-lg); }
699
+ .o-button[data-button-own][data-button-pad="0"] { padding: 0; }
700
+ .o-button[data-button-own][data-button-pad="6-4"] { padding: 0 var(--vk-spacing) 0 calc(var(--vk-spacing) * 1.5); }
701
+ .o-button[data-button-own][data-button-gap="3"] { gap: calc(var(--vk-spacing) * 3 / 4); }
702
+ .o-button[data-button-own][data-button-gap="6"] { gap: calc(var(--vk-spacing) * 1.5); }
703
+ .o-button[data-button-own][data-button-gap="8"] { gap: calc(var(--vk-spacing) * 2); }
704
+ .o-button[data-button-own][data-button-gap="10"] { gap: calc(var(--vk-spacing) * 2.5); }
705
+ .o-button[data-button-own][data-button-words="lg"] { font-size: var(--vk-font-size-lg); }
706
+ .o-button[data-button-own][data-button-weight="medium"] { font-weight: var(--vk-font-weight-medium); }
707
+ .o-button[data-button-own][data-button-digits="tabular"] { font-variant-numeric: tabular-nums; }
708
+ .o-button[data-button-own][data-button-icon-colour="brand"]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-accent); }
709
+ /* Under the pointer, a ground of its own: the popup's hover, or the neutral ground (pressed too). (0,5,0), over the kit's press and
710
+ its popup hover. */
711
+ @media (hover: hover) {
712
+ .o-button[data-button-own][data-button-hover="overlay"]:hover:not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-overlay-hovered); }
713
+ .o-button[data-button-own][data-button-hover="neutral"]:is(:hover, :active):not(:disabled, [data-disabled], [aria-busy="true"], [data-readonly]) { --button-ground: var(--vk-neutral); }
714
+ }
715
+ /* Open: its words and icons in the brand's colour, over its own colour; or the neutral ground. */
716
+ .o-button[data-button-own][data-button-open="brand"][aria-expanded="true"]:not(:disabled, [data-disabled]) { color: var(--vk-fg-accent); }
717
+ .o-button[data-button-own][data-button-open="brand"][aria-expanded="true"]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] > svg { color: var(--vk-fg-accent); }
718
+ .o-button[data-button-own][data-button-open="neutral"][aria-expanded="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral); }
719
+ /* Standing pressed (aria-pressed="true"): the popup's hover as its ground, its words the text's. */
720
+ .o-button[data-button-own][data-button-pressed="hovered"][aria-pressed="true"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-overlay-hovered); color: var(--vk-fg); }
721
+
722
+ /* ── Corner smoothing: the Button's own (data-button-smoothing, looks.ts), The app's, with nothing set, following the
723
+ token corner-smoothing (Round is the token at 0), Smooth and Round setting it apart; the Toggle, the Toolbar
724
+ button and the Menubar's triggers are Buttons, so they follow it (the Toolbar button's own Smooth or Round, data-smoothing, wins).
725
+ Drawn with the smooth outline (smooth.css, beside the controls) in every browser that knows shape(); one that doesn't keeps the corners
726
+ above, and so do Round, a Button whose own corner is round, a dashed edge (the Toolbar's empty place, the Avatar's add) and a
727
+ Button joined in a group or a Toolbar button joined to its neighbours (data-joined) (the outline has no corners apart left
728
+ and right: in Chromium its squircle, as before), which paint
729
+ themselves from their variables as before. The Button itself is never clipped: its depth, its press, its focus ring and a phone's
730
+ pressing area (an app's own, its ::after) stand outside it, whole. Its ground and edge are handed to its cut (.o-button-cut, its
731
+ last child, over its border box): the ground (::before) clipped by the outline, with the depth's inset light again inside it,
732
+ the edge (::after) a ring along it, its foot from a corner's height up. The cut is a size container, so its layers read the
733
+ Button's own side (100cqmin) whatever height a place gives it: the corner its radius fitted to that side as a control's is,
734
+ side / (2 + 2 × amount), and a pill's (a radius of Full's size: round, Full, a pill) half the side, a stadium, smoothing none. ──────── */
735
+ .o-button-cut { display: none; }
736
+ .o-button-group > :is(.o-button, .o-button-group-text):not([data-button-smoothing="round"] *, [data-button-radius="full"] *, .o-button-round, [data-button-own][data-button-corner="round"]), .o-button.o-toolbar-button[data-joined]:not([data-button-smoothing="round"] *, [data-button-radius="full"] *, .o-button-round, [data-button-own][data-button-corner="round"], [data-smoothing="round"], [data-corners="full"]) { corner-shape: squircle; }
737
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) and (container-type: size) {
738
+ /* Its side: the shorter of its sides as each size gives its height (its width where it is the narrower), which its own
739
+ corner, below, is fitted to, as it can't measure it (its cut does, for its ground). Each rule names the Button its height's rule
740
+ names, in the same order, so the same one wins; a place that gives a Button a height of its own says its side there. */
741
+ :where(.o-button) { --button-side: calc(var(--vk-spacing) * 9); }
742
+ .o-button-2xs { --button-side: calc(var(--vk-spacing) * 6); }
743
+ .o-button-xs { --button-side: calc(var(--vk-spacing) * 7); }
744
+ .o-button-sm { --button-side: calc(var(--vk-spacing) * 8); }
745
+ .o-button-lg { --button-side: calc(var(--vk-spacing) * 11); }
746
+ .o-button-20 { --button-side: calc(var(--vk-spacing) * 5); }
747
+ .o-button-22 { --button-side: calc(var(--vk-spacing) * 5.5); }
748
+ .o-button-26 { --button-side: calc(var(--vk-spacing) * 6.5); }
749
+ .o-button.o-button-20x24 { --button-side: calc(var(--vk-spacing) * 5); }
750
+ .o-button.o-button-32x44 { --button-side: calc(var(--vk-spacing) * 8); }
751
+ .o-button-44 { --button-side: calc(var(--vk-spacing) * 11); }
752
+ .o-button.o-button-40x44 { --button-side: calc(var(--vk-spacing) * 10); }
753
+ .o-button.o-button-line { --button-side: calc(1lh + var(--button-line) * 2); }
754
+ .o-button.o-button-line.o-button-icon { --button-side: calc(var(--vk-spacing) * 3.5 + var(--button-line) * 2); }
755
+ /* Its own corner is its ground's, so the focus ring and the depth it paints itself, a place's ring with them (an
756
+ offset, an inset ring, the browser's own), stand on the fitted corner: the cut's sum, from the side its size declares
757
+ (--button-side, above), as it can't measure its own. Where it takes no smoothing (a pill, or the token at Round) its corner is
758
+ its radius, as on main, which the browser holds to half its real side: so a pill's side is never told too short. */
759
+ :is(.o-button:not([data-button-smoothing="round"] *), .o-button.o-toolbar-button[data-smoothing="smooth"]):not(.o-toolbar-button[data-smoothing="round"], [data-button-own][data-button-corner="round"], .o-button-group > *, .o-toolbar-button[data-joined], .o-toolbar-button[data-empty], .o-avatar-add):has(> .o-button-cut) {
760
+ isolation: isolate; background-color: transparent; background-image: none; border-color: transparent;
761
+ --button-own-amount: calc(var(--vk-corner-smoothing) * (1 - clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1)));
762
+ border-radius: min(var(--button-r), var(--button-side) / (2 + 2 * var(--button-own-amount)) + (1 - clamp(0, var(--button-own-amount) * 1000, 1)) * 100000px);
763
+ }
764
+ :is(.o-button:not([data-button-smoothing="round"] *), .o-button.o-toolbar-button[data-smoothing="smooth"]):not(.o-toolbar-button[data-smoothing="round"], [data-button-own][data-button-corner="round"], .o-button-group > *, .o-toolbar-button[data-joined], .o-toolbar-button[data-empty], .o-avatar-add):has(> .o-button-cut):is([data-button-smoothing="smooth"] *, .o-toolbar-button[data-smoothing="smooth"]) {
765
+ --button-own-amount: calc(0.7 * (1 - clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1)));
766
+ }
767
+ :is(.o-button:not([data-button-smoothing="round"] *), .o-button.o-toolbar-button[data-smoothing="smooth"]):not(.o-toolbar-button[data-smoothing="round"], [data-button-own][data-button-corner="round"], .o-button-group > *, .o-toolbar-button[data-joined], .o-toolbar-button[data-empty], .o-avatar-add) > .o-button-cut {
768
+ display: block; position: absolute; inset: calc(var(--button-line) * -1); z-index: -1; pointer-events: none; container-type: size;
769
+ transition-property: none; transition-duration: inherit; transition-timing-function: inherit;
770
+ }
771
+ /* What draws, inside the cut, which reads the cut's side (100cqmin). A pill (a radius of Full's size: round, Full, the pill places)
772
+ takes no smoothing, so its corner, fitted to its side, is half of it: a stadium. Each worked out from the radius alone; the outline
773
+ itself stays small as smooth.css registers its radius, side and numbers. The outline's other inputs inherit, so none of a holder's (a
774
+ Sheet's bottom corners, a Menubar's inset, a list's row) reaches it. */
775
+ .o-button > .o-button-cut > .o-smooth {
776
+ --button-pill: clamp(0, tan(atan2(var(--button-r) - 500px, 1px)), 1); --button-side: 100cqmin; --smooth-side: var(--button-side);
777
+ --smooth-amount: calc(var(--vk-corner-smoothing) * (1 - var(--button-pill)));
778
+ --button-fit: min(var(--button-r), var(--button-side) / (2 + 2 * var(--smooth-amount, 0.7)));
779
+ --smooth-t: var(--button-fit); --smooth-b: initial; --smooth-foot: initial; --smooth-in: initial;
780
+ position: absolute; inset: 0; transition-property: none; transition-duration: inherit; transition-timing-function: inherit;
781
+ }
782
+ [data-button-smoothing="smooth"] .o-button > .o-button-cut > .o-smooth.o-smooth, .o-button.o-toolbar-button[data-smoothing="smooth"] > .o-button-cut > .o-smooth.o-smooth { --smooth-amount: calc(0.7 * (1 - var(--button-pill))); }
783
+ .o-button > .o-button-cut > .o-smooth::before, .o-button > .o-button-cut > .o-smooth::after {
784
+ content: ""; position: absolute; inset: 0; box-sizing: border-box;
785
+ transition-property: background-color, box-shadow; transition-duration: inherit; transition-timing-function: inherit;
786
+ }
787
+ /* The ground over the border box, under a clear edge as wide as the Button's, so the depth's inset light stands where it stood. */
788
+ .o-button > .o-button-cut > .o-smooth::before {
789
+ border: var(--button-line) solid transparent; border-radius: var(--button-fit);
790
+ background-color: var(--button-ground); background-image: var(--button-light); box-shadow: var(--button-depth); clip-path: shape(var(--smooth-outline));
791
+ }
792
+ .o-button > .o-button-cut > .o-smooth::after {
793
+ --smooth-t: max(0px, var(--button-fit) - var(--button-line)); --smooth-in: var(--button-line);
794
+ background-image: linear-gradient(var(--button-edge) calc(100% - var(--button-fit)), var(--button-edge-foot) 0); clip-path: shape(var(--smooth-ring));
795
+ }
796
+ }
797
+
798
+ /* Under reduced motion nothing moves; the colours still change. */
799
+ @media (prefers-reduced-motion: reduce) {
800
+ .o-button { transition-property: background-color, border-color, color, box-shadow; }
801
+ .o-button, .o-button:is(:active, [data-force]) { translate: none !important; scale: none !important; }
802
+ .o-button[data-button-own]:is([data-button-turn="quarter"], [data-button-turn="back"]) > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { transition: none; }
803
+ }
804
+
805
+ /* ── At rest: a 16px box, a soft-cornered edge, see-through; the label 10px to its right presses it. Its ground and edge are
806
+ variables, which every state below sets, so its cut draws them under Smooth: --check-ground, --check-edge ── */
807
+ .o-check { position: relative; display: inline-flex; align-items: flex-start; gap: calc(var(--vk-spacing) * 2.5); cursor: pointer; -webkit-tap-highlight-color: transparent; }
808
+ .o-check-box {
809
+ --check-ground: var(--vk-input); --check-edge: var(--vk-border-input); --check-rr: min(var(--vk-radius-sm), var(--vk-spacing) * 2);
810
+ flex: none; box-sizing: border-box; display: grid; place-items: center;
811
+ width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin-top: calc(var(--vk-spacing) * 0.5);
812
+ border: var(--vk-border-width) solid var(--check-edge); border-radius: var(--vk-radius-sm);
813
+ background-color: var(--check-ground); color: var(--vk-fg-inverse); outline: none;
814
+ transition: background-color var(--vk-duration-fast) var(--vk-ease-out), border-color var(--vk-duration-fast) var(--vk-ease-out);
815
+ }
816
+ .o-check-mark { display: grid; place-items: center; }
817
+ .o-check-mark svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
818
+ /* The tick draws itself in when the box is ticked. */
819
+ /* Its ends are flat while it is hidden: WebKit draws a round end of a dash of no length as a dot, which showed in an unticked box
820
+ on an iPhone; ticked, they are round again. */
821
+ .o-check-tick { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: butt; transition: stroke-dashoffset var(--vk-duration-base) var(--vk-ease-out); }
822
+ .o-check-dash { display: none; }
823
+
824
+ /* ── Under the pointer, on the box or its label: a louder edge; a ticked box a deeper brand ───────── */
825
+ /* A hover only on a screen with a pointer; a press and the forced state stay out. */
826
+ .o-check-box[data-force="hover"]:not([data-disabled]) { --check-edge: var(--vk-border-input-hovered); }
827
+ @media (hover: hover) { .o-check:hover > .o-check-box:not([data-disabled]) { --check-edge: var(--vk-border-input-hovered); } }
828
+
829
+ /* ── On: the brand, with the tick ──────────────────────────────────────────────────────────────────── */
830
+ .o-check-box[data-checked] { --check-edge: var(--vk-brand); --check-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
831
+ .o-check-box[data-force="hover"][data-checked]:not([data-disabled]) { --check-edge: var(--vk-brand-hovered); --check-ground: var(--vk-brand-hovered); }
832
+ @media (hover: hover) { .o-check:hover > .o-check-box[data-checked]:not([data-disabled]) { --check-edge: var(--vk-brand-hovered); --check-ground: var(--vk-brand-hovered); } }
833
+ .o-check-box[data-checked] .o-check-tick { stroke-dashoffset: 0; stroke-linecap: round; }
834
+
835
+ /* ── Partly: a box standing for several when only some are picked keeps its edge, a dash in place of
836
+ the tick; some and all read apart by the fill, not a colour ─────────────────────────────────────── */
837
+ .o-check-box[data-indeterminate] { color: var(--vk-fg-subtle); }
838
+ .o-check-box[data-indeterminate] .o-check-tick { display: none; }
839
+ .o-check-box[data-indeterminate] .o-check-dash { display: block; }
840
+
841
+ /* ── In error (aria-invalid, its Field's error, or a group in error around it): a red edge; ticked, the
842
+ danger colour fills it. The pointer never takes it away; focus rings it in red; disabled wins. ─── */
843
+ .o-check-box:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
844
+ .o-check-box[data-force="hover"]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-border-danger); }
845
+ @media (hover: hover) { .o-check:hover > .o-check-box:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-border-danger); } }
846
+ .o-check-box[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-danger-bold); --check-ground: var(--vk-danger-bold); color: var(--vk-fg-inverse); }
847
+ .o-check-box[data-force="hover"][data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-danger-bold-hovered); --check-ground: var(--vk-danger-bold-hovered); }
848
+ @media (hover: hover) { .o-check:hover > .o-check-box[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-danger-bold-hovered); --check-ground: var(--vk-danger-bold-hovered); } }
849
+ .o-check-box:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
850
+
851
+ /* ── Focus: the outline 2px outside the box ────────────────────────────────────────────────────────── */
852
+ .o-check-box:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
853
+
854
+ /* ── Disabled: a grey box, a softer edge, the tick and the label greyed ─────────────────────────────── */
855
+ .o-check-box[data-disabled] { --check-edge: var(--vk-border-subtle); --check-ground: var(--vk-neutral); color: var(--vk-fg-disabled); }
856
+ .o-check:has(> .o-check-box[data-disabled]) { cursor: not-allowed; }
857
+ .o-check:has(> .o-check-box[data-disabled]) .o-choice-label { color: var(--vk-fg-disabled); }
858
+
859
+ /* ── The box alone in a list's row (CheckboxMark): the row is pressed, so the box reads the row, ticked
860
+ when it is chosen and greyed when it is off ─────────────────────────────────────────────────────── */
861
+ .o-check-box.o-check-in-row { margin-top: 0; }
862
+ :is([data-selected], [aria-selected="true"], [data-checked], [aria-checked="true"]) > .o-check-in-row { --check-edge: var(--vk-brand); --check-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
863
+ :is([data-selected], [aria-selected="true"], [data-checked], [aria-checked="true"]) > .o-check-in-row .o-check-tick { stroke-dashoffset: 0; stroke-linecap: round; }
864
+ [data-disabled] > .o-check-in-row { --check-edge: var(--vk-border-subtle); --check-ground: var(--vk-neutral); color: var(--vk-fg-disabled); }
865
+
866
+ /* ── Corner smoothing: The app's, with nothing set, follows the token corner-smoothing (Round is the
867
+ token at 0), Smooth and Round set the box apart (data-checkbox-smoothing, looks.ts). Under Smooth or The app's the box is drawn
868
+ with the smooth outline (smooth.css), eased on its 16px side, in every browser that knows shape(); one that doesn't
869
+ keeps the corners above, and so does Round, which paints the box as before. The box is never clipped: its focus ring and its
870
+ pressing area (::after, the app's press styles) stand outside it. Its ground and edge are handed to its cut (.o-check-cut, its first
871
+ child), over its border box: the ground (::before) clipped by the outline, the edge (::after) a ring along it, each moving as the
872
+ box's colours do. The list's and the card's corners are the grouped choices' own. ──────────────────────────────── */
873
+ .o-check-cut { display: none; --smooth-amount: var(--vk-corner-smoothing); }
874
+ /* Its layers' colours move as the box's do, a rule light enough that reduced motion (at the file's end) stops it. */
875
+ .o-check-cut::before, .o-check-cut::after { transition: background-color var(--vk-duration-fast) var(--vk-ease-out); }
876
+ [data-checkbox-smoothing="smooth"] .o-check-box > .o-check-cut { --smooth-amount: initial; }
877
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
878
+ /* Its own corner is its ground's, so its focus ring stands on the fitted corner: worked from the token, or the full
879
+ 0.7 under its own Smooth, never from the cut's amount, which stays on the cut. */
880
+ .o-check-box:not([data-checkbox-smoothing="round"] *):has(> .o-check-cut) {
881
+ --smooth-side: calc(var(--vk-spacing) * 4);
882
+ position: relative; isolation: isolate; border-color: transparent; background-color: transparent;
883
+ border-radius: min(var(--check-rr), var(--vk-spacing) * 4 / (2 + 2 * var(--vk-corner-smoothing)));
884
+ }
885
+ [data-checkbox-smoothing="smooth"] .o-check-box:not([data-checkbox-smoothing="round"] *):has(> .o-check-cut) {
886
+ border-radius: min(var(--check-rr), var(--vk-spacing) * 4 / 3.4);
887
+ }
888
+ .o-check-box:not([data-checkbox-smoothing="round"] *) > .o-check-cut {
889
+ --check-fit: min(var(--check-rr), var(--vk-spacing) * 4 / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--check-fit);
890
+ display: block; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: -1; pointer-events: none;
891
+ }
892
+ .o-check-box:not([data-checkbox-smoothing="round"] *) > .o-check-cut::before {
893
+ content: ""; position: absolute; inset: 0; background-color: var(--check-ground); clip-path: shape(var(--smooth-outline));
894
+ }
895
+ .o-check-box:not([data-checkbox-smoothing="round"] *) > .o-check-cut::after {
896
+ --smooth-t: max(0px, var(--check-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
897
+ content: ""; position: absolute; inset: 0; background-color: var(--check-edge); clip-path: shape(var(--smooth-ring));
898
+ }
899
+ }
900
+
901
+ /* ── A list: rows in a bordered box, the first (pick all) on the sunken ground; every row takes its
902
+ ground's hover, a picked row its selected fill ──────────────────────────────────────────────────── */
903
+ .o-check-list { display: grid; border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); overflow: hidden; }
904
+ .o-check.o-check-row { display: flex; width: 100%; box-sizing: border-box; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5); border-top: var(--vk-border-width) solid var(--vk-border-subtle); transition: background-color var(--vk-duration-fast) var(--vk-ease-out); }
905
+ .o-check-row:first-child { border-top: 0; background-color: var(--vk-sunken); }
906
+ @media (hover: hover) { .o-check-row:hover { background-color: var(--vk-hovered); } }
907
+ @media (hover: hover) { .o-check-row:first-child:hover { background-color: var(--vk-sunken-hovered); } }
908
+ .o-check-row:has(> .o-check-box[data-checked]) { background-color: var(--vk-selected); }
909
+
910
+ /* ── The list's card smooth: following the token corner-smoothing, drawn with the smooth outline
911
+ (ViewKit's smooth.css) in every browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one
912
+ row, as a control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it,
913
+ hiding nothing more; its edge is a ring along the curve over its rows (::after), as the Kbd's is. ── */
914
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
915
+ .o-check-list {
916
+ --smooth-amount: var(--vk-corner-smoothing); --list-card-side: calc(var(--vk-spacing) * 6 + var(--vk-font-size-sm) * var(--vk-line-height-sm));
917
+ --list-card-fit: min(var(--vk-radius-lg), var(--list-card-side) / (2 + 2 * var(--smooth-amount, 0.7)));
918
+ --smooth-t: var(--list-card-fit); --smooth-side: var(--list-card-side);
919
+ position: relative; overflow: visible; border-color: transparent; border-radius: var(--list-card-fit); clip-path: shape(var(--smooth-outline));
920
+ }
921
+ .o-check-list::after {
922
+ --smooth-t: max(0px, var(--list-card-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
923
+ content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
924
+ background-color: var(--vk-border); clip-path: shape(var(--smooth-ring));
925
+ }
926
+ }
927
+
928
+ @media (prefers-reduced-motion: reduce) { .o-check-box, .o-check-tick, .o-check-row, .o-check-cut::before, .o-check-cut::after { transition: none; } }
929
+
930
+ /* ── A field: its label, then its control, then its note or its error ──────────────────────────────── */
931
+ /* Its one column never wider than the field: a control holding a long value (a Select's chosen country) ends in its "…",
932
+ never widening what holds it, as the field beside its label already does. */
933
+ .o-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--vk-spacing) * 1.5); min-width: 0; }
934
+ .o-field-label { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); color: var(--vk-fg); }
935
+ /* A quiet label, as a body's parts wear it over their boxes: 12px, regular, subtle; 14px in the phone's form. */
936
+ .o-field[data-field-label="quiet"] > .o-field-label { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); font-weight: var(--vk-font-weight-normal); color: var(--vk-fg-subtle); }
937
+ .o-field[data-field-label="quiet"][data-field-form="phone"] > .o-field-label { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
938
+ /* A required field's asterisk, after its label. */
939
+ .o-field-req { margin-left: calc(var(--vk-spacing) * 0.5); color: var(--vk-danger); }
940
+ /* The note says what the field is for or why it is locked; an error takes its place and says the fix. */
941
+ .o-field-note, .o-field-error { margin: 0; font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
942
+ .o-field-error { color: var(--vk-danger); }
943
+
944
+ /* ── A group: its legend, a note under it, the choices or fields, then its error ───────────────────── */
945
+ .o-fieldset { display: grid; gap: calc(var(--vk-spacing) * 3); min-width: 0; margin: 0; padding: 0; border: 0; }
946
+ /* The legend is drawn as a field's label (.o-field-label); with a note under it, the note sits as close as a
947
+ field's does. */
948
+ .o-fieldset-legend:has(+ .o-field-note) { margin-bottom: calc(var(--vk-spacing) * -1.5); }
949
+ .o-fieldset-body { display: grid; min-width: 0; }
950
+ .o-fieldset[disabled] .o-fieldset-legend { color: var(--vk-fg-disabled); }
951
+ /* A part of a form: the legend a heading over its fields, the fields 20px apart. */
952
+ .o-fieldset-section .o-fieldset-legend { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
953
+ .o-fieldset-section > .o-fieldset-body { gap: calc(var(--vk-spacing) * 5); }
954
+
955
+ /* ── Several errors: a list, each on its own line ──────────────────────────────────────────────────── */
956
+ .o-field-errors { display: grid; gap: calc(var(--vk-spacing) * 0.5); margin: 0; padding-left: calc(var(--vk-spacing) * 4); list-style: disc; }
957
+
958
+ /* ── A line between fields, its word in the middle ─────────────────────────────────────────────────── */
959
+ .o-field-sep { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); min-height: calc(var(--vk-spacing) * 5); }
960
+ .o-field-sep-line { flex: 1; height: var(--vk-border-width); background-color: var(--vk-border-subtle); }
961
+ .o-field-sep-words { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
962
+
963
+ /* ── A field beside its label: the label and its note on the left, the field and its error on the right,
964
+ the label's words on the field's line. Responsive does so on a computer, and stands above the
965
+ field on the phone (the phone switch). ───────────────────────────────────────────────────────────── */
966
+ .o-field:is([data-orientation="horizontal"], [data-orientation="responsive"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; column-gap: calc(var(--vk-spacing) * 4); }
967
+ .o-field:is([data-orientation="horizontal"], [data-orientation="responsive"]) > * { grid-column: 2; }
968
+ .o-field:is([data-orientation="horizontal"], [data-orientation="responsive"]) > :is(.o-field-label, .o-field-note) { grid-column: 1; }
969
+ @media (width < 640px) {
970
+ .o-field[data-orientation="responsive"]:where(:not([data-computer-host], [data-computer-host] *)) { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
971
+ .o-field[data-orientation="responsive"] > :is(*, .o-field-label, .o-field-note):where(:not([data-computer-host], [data-computer-host] *)) { grid-column: 1; }
972
+ }
973
+ @container o-phone (width < 640px) {
974
+ .o-field[data-orientation="responsive"] { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
975
+ .o-field[data-orientation="responsive"] > :is(*, .o-field-label, .o-field-note) { grid-column: 1; }
976
+ }
977
+
978
+ /* ── Field rows: on a phone, fields as rows of a card ──────────────────────────────────────────
979
+ Each option, on a frame or on the card itself (the look its place hands it, whole, which wins), sets the card's and
980
+ its rows' variables; nothing set is Card: one card on the overlay's card ground, its edge, rows 52, the label 104, the line
981
+ between rows from the words. What stands inside a row and where is its place's: a place may set a row's inset and gap. A row
982
+ typed into shows the caret alone. */
983
+ [data-field-rows-edge="on"] { --field-rows-edge: var(--vk-border-width) solid var(--vk-border-subtle); }
984
+ [data-field-rows-edge="off"] { --field-rows-edge: 0 none; }
985
+ [data-field-rows-cards="one"] {
986
+ --field-rows-card-display: block; --field-rows-card-gap: 0px; --field-rows-card-overflow: hidden; --field-rows-card-edge: var(--field-rows-edge);
987
+ --field-rows-card-corners: var(--vk-radius-xl); --field-rows-card-ground: var(--vk-overlay-card);
988
+ --field-rows-row-edge: 0 none; --field-rows-row-corners: 0px; --field-rows-row-ground: transparent;
989
+ }
990
+ [data-field-rows-cards="each"] {
991
+ --field-rows-card-display: grid; --field-rows-card-gap: calc(var(--vk-spacing) * 2.5); --field-rows-card-overflow: visible; --field-rows-card-edge: 0 none;
992
+ --field-rows-card-corners: 0px; --field-rows-card-ground: transparent;
993
+ --field-rows-row-edge: var(--field-rows-edge); --field-rows-row-corners: var(--vk-radius-xl); --field-rows-row-ground: var(--vk-overlay-card);
994
+ }
995
+ [data-field-rows-height="48"] { --field-rows-row: calc(var(--vk-spacing) * 12); }
996
+ [data-field-rows-height="52"] { --field-rows-row: calc(var(--vk-spacing) * 13); }
997
+ [data-field-rows-height="56"] { --field-rows-row: calc(var(--vk-spacing) * 14); }
998
+ [data-field-rows-label="104"] { --field-rows-label: block; }
999
+ [data-field-rows-label="none"] { --field-rows-label: none; }
1000
+ [data-field-rows-lines="words"] { --field-rows-line-image: linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card)); --field-rows-line-shadow: none; }
1001
+ [data-field-rows-lines="across"] { --field-rows-line-image: none; --field-rows-line-shadow: inset 0 var(--vk-border-width) 0 var(--vk-border-overlay-card); }
1002
+ [data-field-rows-lines="none"] { --field-rows-line-image: none; --field-rows-line-shadow: none; }
1003
+
1004
+ .o-field-rows {
1005
+ display: var(--field-rows-card-display, block); grid-template-columns: minmax(0, 1fr); gap: var(--field-rows-card-gap, 0px); min-width: 0;
1006
+ font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); overflow: var(--field-rows-card-overflow, hidden); border: var(--field-rows-card-edge, var(--vk-border-width) solid var(--vk-border-subtle));
1007
+ border-radius: var(--field-rows-card-corners, var(--vk-radius-xl)); background-color: var(--field-rows-card-ground, var(--vk-overlay-card));
1008
+ }
1009
+ .o-field-row {
1010
+ display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; width: 100%; min-height: var(--field-rows-row, calc(var(--vk-spacing) * 13));
1011
+ margin: 0; padding: 0 calc(var(--vk-spacing) * 4); border: var(--field-rows-row-edge, 0 none); border-radius: var(--field-rows-row-corners, 0px);
1012
+ background-color: var(--field-rows-row-ground, transparent); color: var(--vk-fg); font: inherit; text-align: left;
1013
+ }
1014
+ button.o-field-row { cursor: pointer; }
1015
+ .o-field-row + .o-field-row {
1016
+ background-image: var(--field-rows-line-image, linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card))); background-size: calc(100% - var(--vk-spacing) * 4) var(--vk-border-width);
1017
+ background-position: calc(var(--vk-spacing) * 4) 0; background-repeat: no-repeat; box-shadow: var(--field-rows-line-shadow, none);
1018
+ }
1019
+ .o-field-row-label { display: var(--field-rows-label, block); flex: none; width: calc(var(--vk-spacing) * 26); color: var(--vk-fg-subtle); }
1020
+
1021
+ /* ── Glass, written once: what a control floating over a page is made of. What wears it gives it its shape, and stands
1022
+ positioned, for its rim: the Glass button, and the glass pill. ── */
1023
+ .o-glass {
1024
+ background-color: var(--vk-glass); box-shadow: var(--vk-shadow-glass);
1025
+ -webkit-backdrop-filter: blur(var(--vk-blur-md)); backdrop-filter: blur(var(--vk-blur-md));
1026
+ }
1027
+ /* Its rim: a ring of its own, since a border can't change round a curve. Brightest top left and bottom right, fading at the other
1028
+ two corners, in light and dark, so it reads as light catching an edge and never as a border. */
1029
+ .o-glass::after {
1030
+ content: ""; position: absolute; inset: 0; box-sizing: border-box; border-radius: inherit; padding: var(--vk-border-width); pointer-events: none;
1031
+ background: conic-gradient(var(--vk-glass-rim-soft) 0deg, var(--vk-glass-rim-faint) 40deg, var(--vk-glass-rim-soft) 85deg, var(--vk-glass-rim) 140deg, var(--vk-glass-rim-soft) 180deg, var(--vk-glass-rim-faint) 220deg, var(--vk-glass-rim-soft) 265deg, var(--vk-glass-rim) 315deg, var(--vk-glass-rim-soft) 360deg);
1032
+ -webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
1033
+ mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
1034
+ }
1035
+
1036
+
1037
+ .o-glass-button {
1038
+ position: relative; flex: none; display: grid; place-items: center; box-sizing: border-box;
1039
+ width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); margin: 0; padding: 0;
1040
+ border: 0; border-radius: var(--vk-radius-full); color: var(--vk-fg);
1041
+ cursor: pointer; outline: none; text-decoration: none; -webkit-tap-highlight-color: transparent;
1042
+ transition: scale var(--vk-duration-fast) var(--vk-ease-out);
1043
+ }
1044
+ /* Its icon, 28 with a line 2 thick, so an X stands 16 wide. */
1045
+ .o-glass-button svg { width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); stroke-width: var(--vk-glass-icon-stroke); }
1046
+
1047
+ /* Primary: what confirms, Save or Apply. The same glass tinted with the brand, mixed as the soft edge mixes its ground, so it
1048
+ follows the brand picked; its icon in the inverse text. Disabled, it is plain glass again. */
1049
+ .o-glass.o-glass-button-primary { background-color: color-mix(in oklab, var(--vk-brand) 90%, transparent); color: var(--vk-fg-on-brand); }
1050
+ .o-glass.o-glass-button-primary:is(:disabled, [data-disabled]) { background-color: var(--vk-glass); color: var(--vk-fg-disabled); }
1051
+
1052
+ /* A dot in an icon is a small ring: filled, so the thinner line leaves no hole in it. */
1053
+ .o-glass-button path[d*="a1 1 0 1 0 2 0"] { fill: currentColor; }
1054
+
1055
+ /* Pressed, it settles. */
1056
+ .o-glass-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled]) { scale: var(--vk-press-scale); }
1057
+ /* Focus: the outline 2px outside it. */
1058
+ .o-glass-button:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
1059
+ /* Disabled: its icon greyed, no shadow. */
1060
+ .o-glass-button:is(:disabled, [data-disabled]) { box-shadow: none; color: var(--vk-fg-disabled); cursor: not-allowed; }
1061
+
1062
+ @media (prefers-reduced-motion: reduce) { .o-glass-button { transition: none; } .o-glass-button:is(:active, [data-force="press"]) { scale: none; } }
1063
+
1064
+ /* ── What it can hold. A word, or a count: a
1065
+ capsule as wide as what it holds, 16 in from each end, its word text-base at medium weight; an icon before the word is 22 on
1066
+ a line 2 thick, 6 from it, and stands 14 in. An icon alone is as it was, 28 in its 44 round. ──────────────────────────── */
1067
+ .o-glass-button.o-glass-button-worded {
1068
+ display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 1.5);
1069
+ width: auto; min-width: calc(var(--vk-spacing) * 11); padding-inline: calc(var(--vk-spacing) * 4);
1070
+ font: inherit; font-size: var(--vk-font-size-base); line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
1071
+ }
1072
+ .o-glass-button.o-glass-button-worded:has(svg) { padding-inline-start: calc(var(--vk-spacing) * 3.5); }
1073
+ .o-glass-button.o-glass-button-worded svg { flex: none; width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); stroke-width: 2; }
1074
+ /* Its count: the filters in use, the rows picked, a step smaller and semibold, its figures of one width. */
1075
+ .o-glass-button-count { font-size: var(--vk-font-size-sm); font-weight: var(--vk-font-weight-semibold); font-variant-numeric: tabular-nums; }
1076
+ /* Its dot, something new: 8 in the brand, in its corner, ringed in the page's ground so it reads over the glass. */
1077
+ .o-glass-button-dot {
1078
+ position: absolute; top: calc(var(--vk-spacing) * 2.25); right: calc(var(--vk-spacing) * 2.25); width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 2);
1079
+ border-radius: var(--vk-radius-full); background-color: var(--vk-brand); box-shadow: 0 0 0 calc(var(--vk-border-width) * 2) var(--vk-ground);
1080
+ }
1081
+ /* Danger: what takes something away, its word and icon in the danger text, on the same glass. */
1082
+ .o-glass-button.o-glass-button-danger:not(:disabled, [data-disabled]) { color: var(--vk-danger); }
1083
+ /* On: one that stays pressed. The glass tinted with the brand, lighter than a primary's, its word and icon the brand's text. */
1084
+ .o-glass.o-glass-button-on:not(:disabled, [data-disabled]) { background-color: color-mix(in oklab, var(--vk-brand) 18%, var(--vk-glass)); color: var(--vk-fg-accent); }
1085
+ /* sm: 36, for an island on a computer. Its icon 22 alone and 18 before a word, its word text-sm, 14 in from each end. */
1086
+ .o-glass-button.o-glass-button-sm { width: calc(var(--vk-spacing) * 9); height: calc(var(--vk-spacing) * 9); }
1087
+ .o-glass-button.o-glass-button-sm svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
1088
+ .o-glass-button.o-glass-button-worded.o-glass-button-sm { width: auto; min-width: calc(var(--vk-spacing) * 9); padding-inline: calc(var(--vk-spacing) * 3.5); font-size: var(--vk-font-size-sm); }
1089
+ .o-glass-button.o-glass-button-worded.o-glass-button-sm:has(svg) { padding-inline-start: calc(var(--vk-spacing) * 3); }
1090
+ .o-glass-button.o-glass-button-worded.o-glass-button-sm svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
1091
+ .o-glass-button-sm > .o-glass-button-dot { top: calc(var(--vk-spacing) * 1.5); right: calc(var(--vk-spacing) * 1.5); }
1092
+ .o-glass-button-sm > .o-glass-button-count { font-size: var(--vk-font-size-xs); }
1093
+
1094
+ /* ── The Glass button group: Glass buttons standing together, 8
1095
+ apart. Its own layout weighs nothing (:where), so a place that is the group (the phone header's right place) lays it out itself.
1096
+ How two stand is said by the group (data-pair), or else by the Glass button's own option, Two buttons, on the frame or the app
1097
+ around it (data-glass-button-pair, looks.ts; together unless it says separate), where the phone's surface is Glass (the phone header's Surface, which a
1098
+ sheet's head reads too): under Flat nothing shares glass. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
1099
+ :where(.o-glass-group) { position: relative; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2); }
1100
+ /* Two side by side: their shadows add up between them, so each is lighter, and the two read as strong as one. */
1101
+ :is(.o-glass-group:not([data-phone-header-surface="flat"] *), .o-glass-group[data-pair]):has(.o-glass-button ~ .o-glass-button) > .o-glass-button { box-shadow: var(--vk-shadow-glass-pair); }
1102
+ /* The glass pill: one piece of glass two buttons share. The group stands as wide as they do, and they touch, wearing no glass of
1103
+ their own, so it is never glass on glass. A primary stays in it, a solid brand disc in its slot, the pill's glass round it,
1104
+ darker pressed and under the pointer, as the Button's primary; disabled, the pill's plain glass and a greyed icon. */
1105
+ .o-glass.o-glass-pill { display: none; position: absolute; inset: 0; border-radius: var(--vk-radius-full); box-shadow: var(--vk-shadow-glass-pill); }
1106
+ :is(.o-glass-group:not([data-phone-header-surface="flat"] .o-glass-group):not([data-glass-button-pair="separate"] .o-glass-group, [data-pair="separate"]), .o-glass-group[data-pair="together"]):has(.o-glass-button ~ .o-glass-button) {
1107
+ gap: 0;
1108
+ > .o-glass.o-glass-pill { display: block; }
1109
+ > .o-glass-button { background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
1110
+ > .o-glass-button::after { display: none; }
1111
+ > .o-glass-button.o-glass-button-primary:not(:disabled, [data-disabled]) { background-color: var(--vk-brand); background-clip: content-box; padding: calc(var(--vk-spacing) * 1); }
1112
+ > .o-glass-button.o-glass-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled]) { background-color: var(--vk-brand-hovered); }
1113
+ @media (hover: hover) { > .o-glass-button.o-glass-button-primary:hover:not(:disabled, [data-disabled]) { background-color: var(--vk-brand-hovered); } }
1114
+ /* A primary that holds a word is a brand capsule in its slot, 4 from the pill's edge, its word 12 in. One that is on
1115
+ keeps the brand's text and takes no glass of its own: the pill is the one piece of glass. */
1116
+ > .o-glass-button.o-glass-button-worded.o-glass-button-primary:not(:disabled, [data-disabled]) {
1117
+ background-clip: border-box; height: calc(var(--vk-spacing) * 9); min-width: calc(var(--vk-spacing) * 9); margin: calc(var(--vk-spacing) * 1); padding: 0 calc(var(--vk-spacing) * 3);
1118
+ }
1119
+ > .o-glass-button.o-glass-button-sm.o-glass-button-primary:not(:disabled, [data-disabled]) { padding: calc(var(--vk-spacing) * 0.75); }
1120
+ }
1121
+
1122
+ /* ── Its options, from the nearest frame: its edge, its corners, its ground ───────────────────────────────────────────── */
1123
+ [data-inline-input-edge="line"] { --inline-input-edge: var(--vk-border-width); --inline-input-ring: 0px; }
1124
+ [data-inline-input-edge="ring"] { --inline-input-edge: 0px; --inline-input-ring: var(--vk-focus-width); }
1125
+ [data-inline-input-corners="none"] { --inline-input-r: 0px; }
1126
+ [data-inline-input-corners="xs"] { --inline-input-r: var(--vk-radius-xs); }
1127
+ [data-inline-input-corners="sm"] { --inline-input-r: var(--vk-radius-sm); }
1128
+ [data-inline-input-corners="md"] { --inline-input-r: var(--vk-radius-md); }
1129
+ [data-inline-input-corners="lg"] { --inline-input-r: var(--vk-radius-lg); }
1130
+ [data-inline-input-corners="xl"] { --inline-input-r: var(--vk-radius-xl); }
1131
+ [data-inline-input-corners="full"] { --inline-input-r: var(--vk-radius-full); }
1132
+ [data-inline-input-ground="plain"] { --inline-input-ground: var(--vk-overlay); }
1133
+ [data-inline-input-ground="tint"] { --inline-input-ground: color-mix(in oklab, var(--vk-brand-300) var(--inline-input-tint, 20%), var(--vk-overlay)); }
1134
+ /* How strong the tint is: how much of the brand's light step (brand-300) is mixed into the overlay's ground, 10% to 100%, a
1135
+ tenth at a time. The brand's palest (brand-100) is about 20%, its pale
1136
+ (brand-200) about 60%. The frame writes it beside the ground, so it resolves there. */
1137
+ [data-inline-input-tint="1"] { --inline-input-tint: 10%; }
1138
+ [data-inline-input-tint="2"] { --inline-input-tint: 20%; }
1139
+ [data-inline-input-tint="3"] { --inline-input-tint: 30%; }
1140
+ [data-inline-input-tint="4"] { --inline-input-tint: 40%; }
1141
+ [data-inline-input-tint="5"] { --inline-input-tint: 50%; }
1142
+ [data-inline-input-tint="6"] { --inline-input-tint: 60%; }
1143
+ [data-inline-input-tint="7"] { --inline-input-tint: 70%; }
1144
+ [data-inline-input-tint="8"] { --inline-input-tint: 80%; }
1145
+ [data-inline-input-tint="9"] { --inline-input-tint: 90%; }
1146
+ [data-inline-input-tint="10"] { --inline-input-tint: 100%; }
1147
+ [data-inline-input-ground="none"] { --inline-input-ground: var(--vk-input); }
1148
+
1149
+ /* ── The box ──────────────────────────────────────────────────────────────────────────────────────────────────────────── */
1150
+ .o-inline-input.o-inline-input {
1151
+ --inline-input-at: var(--inline-input-row, calc(var(--vk-spacing) * 9));
1152
+ --inline-input-e: var(--inline-input-edge, var(--vk-border-width));
1153
+ --inline-input-colour: var(--vk-border-brand);
1154
+ /* Its words from its outer edge: 12, or 8 in a row under 32 (a list's 28). */
1155
+ --inline-input-words: clamp(calc(var(--vk-spacing) * 2), calc(var(--inline-input-at) - var(--vk-spacing) * 5), calc(var(--vk-spacing) * 3));
1156
+ box-sizing: border-box; width: 100%; min-width: 0; height: var(--inline-input-at); margin: 0;
1157
+ padding: max(0px, calc((var(--inline-input-at) - 1lh) / 2 - var(--inline-input-e))) calc(var(--inline-input-words) - var(--inline-input-e));
1158
+ border: var(--inline-input-e) solid var(--inline-input-colour); border-radius: var(--inline-input-r, var(--vk-radius-md));
1159
+ box-shadow: inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
1160
+ background-color: var(--inline-input-ground, color-mix(in oklab, var(--vk-brand-300) var(--inline-input-tint, 20%), var(--vk-overlay))); color: var(--vk-fg); caret-color: var(--vk-border-brand);
1161
+ font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); outline: none;
1162
+ }
1163
+ /* Refused: its edge red, line or ring. */
1164
+ .o-inline-input.o-inline-input:is([aria-invalid="true"], :has(.o-input-control[aria-invalid="true"])) { --inline-input-colour: var(--vk-border-danger); }
1165
+ /* Long text: at the height its place gives it, its first line where a line's stands, wrapping. */
1166
+ textarea.o-inline-input.o-inline-input { resize: none; white-space: pre-wrap; overflow-wrap: anywhere; }
1167
+ /* Long text never turns into a pill: its corners stop at 2xl, the largest step that still reads as a box. */
1168
+ textarea.o-inline-input.o-inline-input { border-radius: min(var(--inline-input-r, var(--vk-radius-md)), var(--vk-radius-2xl)); }
1169
+
1170
+ /* ── With sides: one row, everything centred in it ────────────────────────────────────────────────────────────────────── */
1171
+ .o-inline-input.o-inline-input-group { display: flex; align-items: center; gap: var(--vk-spacing); padding-block: 0; cursor: text; }
1172
+ /* A button at its start or its end: 4 from its outer edge. */
1173
+ .o-inline-input.o-inline-input-group:has(> .o-input-addon[data-side="start"] > .o-button:first-child) { padding-left: calc(var(--vk-spacing) - var(--inline-input-e)); }
1174
+ .o-inline-input.o-inline-input-group:has(> .o-input-addon[data-side="end"] > .o-button:last-child) { padding-right: calc(var(--vk-spacing) - var(--inline-input-e)); }
1175
+ /* Its buttons' focus ring hugs them, inside its edge. */
1176
+ .o-inline-input-group > .o-input-addon > .o-button:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
1177
+
1178
+ /* On a phone its words are 16px, so iOS never zooms in when it is tapped: its line is kept, and its padding, worked
1179
+ from 1lh, still centres that line in its row. */
1180
+ @media (width < 640px) { .o-inline-input.o-inline-input:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); } }
1181
+ @container o-phone (width < 640px) { .o-inline-input.o-inline-input { font-size: var(--vk-font-size-base); } }
1182
+
1183
+ /* ── At rest: an edge, no fill (the surface shows through), and a 1px lift that is part of the field ── */
1184
+ .o-input {
1185
+ --input-edge: var(--vk-border-input); --input-ground: var(--vk-input); --input-r: var(--vk-radius-lg); --input-side: calc(var(--vk-spacing) * 9);
1186
+ --input-edge-in: var(--vk-border-width); --input-inset: none;
1187
+ box-sizing: border-box; width: 100%; min-width: 0; height: calc(var(--vk-spacing) * 9); margin: 0;
1188
+ --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3); padding: var(--input-pad-block) var(--input-pad-inline);
1189
+ --input-box-r: var(--input-r); --input-inner: var(--input-r);
1190
+ border: var(--vk-border-width) solid var(--input-edge); border-radius: var(--input-box-r); corner-shape: squircle;
1191
+ background: var(--input-ground); box-shadow: var(--vk-shadow-field);
1192
+ color: var(--vk-fg); font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
1193
+ outline: none;
1194
+ transition: border-color var(--vk-duration-fast) var(--vk-ease-out), box-shadow var(--vk-duration-fast) var(--vk-ease-out), background-color var(--vk-duration-fast) var(--vk-ease-out);
1195
+ }
1196
+ .o-input::placeholder { color: var(--vk-fg-subtlest); opacity: 1; }
1197
+ /* Numbers line up. */
1198
+ .o-input-num { font-variant-numeric: tabular-nums; }
1199
+ /* Long text: the same field as a textarea, at least 84px (minLines sets another start), resized only up and down. */
1200
+ .o-input-long { --input-side: calc(2lh + var(--vk-spacing) * 4 + var(--vk-border-width) * 2); height: auto; min-height: calc(var(--vk-spacing) * 21); --input-pad-block: calc(var(--vk-spacing) * 2); --input-pad-inline: calc(var(--vk-spacing) * 3); resize: vertical; }
1201
+ /* Long text of a set number of lines: its height theirs, no floor, never dragged taller; past them it
1202
+ scrolls. Its control is fixed at its lines and its box, a group's or a lone Input's, loses the floor. */
1203
+ .o-input.o-input-long:has(> .o-input-lines) { height: auto; min-height: 0; --input-side: calc(1lh + var(--vk-spacing) * 4 + var(--vk-border-width) * 2); }
1204
+ /* The phone's size: 44px and 16px text, so iOS never zooms in when it is tapped. Every field takes it
1205
+ on a phone (the phone switch); size="lg" asks for it anywhere. Long text keeps its own height and padding, at lg's words, as
1206
+ it does on a phone. */
1207
+ .o-input-lg:not(.o-input-long) { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3.5); }
1208
+ .o-input-lg { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
1209
+ /* The smaller sizes, as the Button's, for a field beside buttons of its size: 32px in toolbars, 28 and 24 in
1210
+ dense rows, 24 with 12px words. Long text keeps its own height. */
1211
+ .o-input-sm:not(.o-input-long) { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
1212
+ .o-input-xs:not(.o-input-long) { height: calc(var(--vk-spacing) * 7); --input-side: calc(var(--vk-spacing) * 7); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 2.5); }
1213
+ .o-input-2xs:not(.o-input-long) { height: calc(var(--vk-spacing) * 6); --input-side: calc(var(--vk-spacing) * 6); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 2); }
1214
+ .o-input-2xs { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); }
1215
+ @media (width < 640px) {
1216
+ .o-input:not(.o-input-long):where(:not([data-computer-host], [data-computer-host] *)) { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3.5); }
1217
+ .o-input:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
1218
+ }
1219
+ @container o-phone (width < 640px) {
1220
+ .o-input:not(.o-input-long) { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3.5); }
1221
+ .o-input { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
1222
+ }
1223
+ /* In a computer host every part is the computer's but a box a finger
1224
+ can type in, which keeps 16px words, so iOS never zooms the page into it. A
1225
+ read-only or disabled box keeps its own size. */
1226
+ [data-computer-host] :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="color"], [type="file"], [type="image"]), textarea, select, [contenteditable=""], [contenteditable="true"]):not([readonly], :disabled) { font-size: var(--vk-font-size-base); }
1227
+
1228
+ /* ── Under the pointer, a louder edge and a deeper lift; in focus, the edge turns blue and glows ──────
1229
+ The states come in the card's order, each as specific as the last, so a later one wins: the pointer
1230
+ never takes a field's focus or its error away (only its lift deepens on an error). The pointer's
1231
+ rule leaves out a disabled field inside :where, which adds nothing to its weight. A browser counts the
1232
+ pointer on a label as the pointer on its field (a click on the label focuses the field), so the
1233
+ pointer's rule also leaves out a field whose label the pointer is on: only the field itself shows it. */
1234
+ @media (hover: hover) { .o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:disabled, [data-disabled], [data-input-hover="fill"] *:not([data-input-own], [data-input-hover="fill"] [data-input-hover]:not([data-input-hover="fill"]) *), [data-input-own][data-input-hover="fill"], [data-input-hover="none"] *:not([data-input-own], [data-input-hover="none"] [data-input-hover]:not([data-input-hover="none"]) *), [data-input-own][data-input-hover="none"], :has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: var(--vk-border-input-hovered); box-shadow: var(--vk-shadow-field-hover); } }
1235
+ .o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { --input-edge: var(--vk-border-brand); box-shadow: var(--vk-shadow-field-focus); }
1236
+ /* In error, the edge is red, and red glows in focus. */
1237
+ .o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-edge: var(--vk-border-danger); }
1238
+ .o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))):is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: var(--vk-shadow-field-focus-danger); }
1239
+ /* Disabled: a softer edge, a grey fill, no lift. */
1240
+ .o-input:is(:disabled, [data-disabled], :where(:has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: var(--vk-border-subtle); --input-ground: var(--vk-neutral); box-shadow: none; color: var(--vk-fg-disabled); cursor: not-allowed; }
1241
+
1242
+ /* Read-only: what it holds can be read, chosen and copied, not changed: a soft edge and no lift; it still
1243
+ takes the focus, and the pointer changes nothing. One that opens something is a
1244
+ box to press, not words to copy, and keeps a resting field's edge and lift. */
1245
+ .o-input:is([readonly], :where(:has(.o-input-control[readonly]))) { cursor: default; }
1246
+ .o-input:is([readonly], :where(:has(.o-input-control[readonly]))):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-haspopup], :has(:is(.o-input-control:focus-visible, .o-input-segment:focus, .o-input-control[aria-haspopup])))) { --input-edge: var(--vk-border-subtle); box-shadow: none; }
1247
+
1248
+ /* ── The options a design picks (input/looks.ts) ─────────────────────────────────────────────────────
1249
+ Data attributes on the frame or the app around the Input; each value only chooses other tokens:
1250
+
1251
+ data-input-radius xs · sm · md · lg · xl · 2xl · full which radius step its corners take
1252
+ data-input-style outlined · filled · underline an edge all round, a fill, or one line under it
1253
+ data-input-depth lift · flat · sunken the 1px lift, none, or a shadow inside it
1254
+ data-input-hover edge · fill · strong what the pointer changes
1255
+ data-input-focus glow · line · thick the blue edge with its glow, alone, or doubled
1256
+ data-input-error edge · tint a red edge, or a red edge on a red tint
1257
+
1258
+ Nothing set is Classic, the card. An option restates every state it touches, in the order above, so the
1259
+ pointer never takes focus or an error away. Set them on one element. Set again on a frame inside it, an
1260
+ option replaces the outer one's: the nearest frame wins, option by option. Each frame read
1261
+ carries a guard inside its :where(), so its weight never moves: <frame> [data-input-X]:not(<its test on X>) *,
1262
+ or for a :not() test <frame> [data-input-X="V"] *, for each option X the frame names (every rule holds to it, so a new rule writes it
1263
+ too). Two limits, which no page shows: a value set back two frames down is not read
1264
+ (A, then B inside it, then A again: a field inside the second A takes the default; nest frames only with
1265
+ different values); and a rule that reads two options together (the filled style's hover, the pill's ends
1266
+ without an underline, the underline's tint) holds only when both come from one frame: inputAttrs writes every option a picker
1267
+ offers and inputFrameAttrs every option a box's own look takes, so a frame either writes holds whole for the options it
1268
+ writes.
1269
+
1270
+ A box's own look is the same attributes on the field's own element,
1271
+ marked data-input-own, every option at once: it wins over its frame's, whole. Each rule reads either, as
1272
+ :is(<frame> :where(.o-input:not([data-input-own])), :where(.o-input[data-input-own]<frame>)), whose weight is
1273
+ the frame's alone, so every rule weighs what it weighed before a box could carry its own look. A box's own
1274
+ look also takes four values a picker never offers: the ground (data-input-ground: input, none, the surface
1275
+ showing through; overlay, the overlay's), Under the pointer none (nothing changes: the hover rules leave it
1276
+ out), the inset (data-input-pad="edge": its words 12px from its outer edge) and its corners round
1277
+ (data-input-corner="round"). A frame takes them too, written whole by inputFrameAttrs. */
1278
+
1279
+ /* ── Corners: a step of the radius; full is round at its ends ──────────────────────────────────────── */
1280
+ :is([data-input-radius="xs"] :where(.o-input:not([data-input-own], [data-input-radius="xs"] [data-input-radius]:not([data-input-radius="xs"]) *)), :where(.o-input[data-input-own][data-input-radius="xs"])).o-input { --input-r: var(--vk-radius-xs); }
1281
+ :is([data-input-radius="sm"] :where(.o-input:not([data-input-own], [data-input-radius="sm"] [data-input-radius]:not([data-input-radius="sm"]) *)), :where(.o-input[data-input-own][data-input-radius="sm"])).o-input { --input-r: var(--vk-radius-sm); }
1282
+ :is([data-input-radius="md"] :where(.o-input:not([data-input-own], [data-input-radius="md"] [data-input-radius]:not([data-input-radius="md"]) *)), :where(.o-input[data-input-own][data-input-radius="md"])).o-input { --input-r: var(--vk-radius-md); }
1283
+ :is([data-input-radius="lg"] :where(.o-input:not([data-input-own], [data-input-radius="lg"] [data-input-radius]:not([data-input-radius="lg"]) *)), :where(.o-input[data-input-own][data-input-radius="lg"])).o-input { --input-r: var(--vk-radius-lg); }
1284
+ :is([data-input-radius="xl"] :where(.o-input:not([data-input-own], [data-input-radius="xl"] [data-input-radius]:not([data-input-radius="xl"]) *)), :where(.o-input[data-input-own][data-input-radius="xl"])).o-input { --input-r: var(--vk-radius-xl); }
1285
+ :is([data-input-radius="2xl"] :where(.o-input:not([data-input-own], [data-input-radius="2xl"] [data-input-radius]:not([data-input-radius="2xl"]) *)), :where(.o-input[data-input-own][data-input-radius="2xl"])).o-input { --input-r: var(--vk-radius-2xl); }
1286
+ :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input:not(.o-input-long) { --input-r: var(--vk-radius-full); corner-shape: round; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed); --input-pad-inline: calc(var(--vk-spacing) * 4); }
1287
+ /* The two smallest round ones keep their ends in proportion, as the Button's do. */
1288
+ :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input-xs:not(.o-input-long) { --input-pad-inline: calc(var(--vk-spacing) * 3); }
1289
+ :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input-2xs:not(.o-input-long) { --input-pad-inline: calc(var(--vk-spacing) * 2.5); }
1290
+ @media (width < 640px) { :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input:is(.o-input-xs, .o-input-2xs):not(.o-input-long):where(:not([data-computer-host], [data-computer-host] *)) { --input-pad-inline: calc(var(--vk-spacing) * 4); } }
1291
+ @container o-phone (width < 640px) { :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input:is(.o-input-xs, .o-input-2xs):not(.o-input-long) { --input-pad-inline: calc(var(--vk-spacing) * 4); } }
1292
+ /* Long text can't be a pill: it takes the largest step that still reads as a box. */
1293
+ :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input-long { --input-r: var(--vk-radius-2xl); }
1294
+
1295
+ /* ── Ground: none (the surface shows through), or the overlay's, for a box over a cell, in a Popover or a Sheet. Filled
1296
+ keeps its fill and an underline its line; disabled keeps its grey. ──────────────────────────────────────────────── */
1297
+ :is([data-input-ground="overlay"] :where(.o-input:not([data-input-own], [data-input-ground="overlay"] [data-input-ground]:not([data-input-ground="overlay"]) *)), :where(.o-input[data-input-own][data-input-ground="overlay"])).o-input:where(:not(:disabled, [data-disabled], :has(.o-input-control:is(:disabled, [data-disabled])))) { --input-ground: var(--vk-overlay); }
1298
+
1299
+ /* ── Filled: a grey fill and no edge until focus or an error gives it one. It stays a filled field in
1300
+ every state: the pointer moves the fill a step (darker in light, lighter in dark), focus keeps that
1301
+ step and draws the blue edge on it, so a click under the pointer only adds the edge, and disabled
1302
+ takes the fainter, sunken fill. ────────────────────────────────────────────────────────────────── */
1303
+ :is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input { --input-edge: transparent; --input-ground: var(--vk-neutral); }
1304
+ @media (hover: hover) { :is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:disabled, [data-disabled], [data-input-hover="edge"] *:not([data-input-own], [data-input-hover="edge"] [data-input-hover]:not([data-input-hover="edge"]) *), [data-input-own][data-input-hover="edge"], [data-input-hover="none"] *:not([data-input-own], [data-input-hover="none"] [data-input-hover]:not([data-input-hover="none"]) *), [data-input-own][data-input-hover="none"], :has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: transparent; --input-ground: var(--vk-neutral-hovered); } }
1305
+ :is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { --input-edge: var(--vk-border-brand); --input-ground: var(--vk-neutral-hovered); }
1306
+ :is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-edge: var(--vk-border-danger); }
1307
+ :is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is(:disabled, [data-disabled], :where(:has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: transparent; --input-ground: var(--vk-sunken); }
1308
+
1309
+ /* ── Depth: flat, no lift; sunken, a shadow along its top inside it. Focus keeps its own. ─────────── */
1310
+ :is([data-input-depth="flat"] :where(.o-input:not([data-input-own], [data-input-depth="flat"] [data-input-depth]:not([data-input-depth="flat"]) *)), :where(.o-input[data-input-own][data-input-depth="flat"])).o-input:where(:not(:focus-visible, [data-force="focus"], [data-popup-open], :has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: none; }
1311
+ :is([data-input-depth="sunken"] :where(.o-input:not([data-input-own], [data-input-depth="sunken"] [data-input-depth]:not([data-input-depth="sunken"]) *)), :where(.o-input[data-input-own][data-input-depth="sunken"])).o-input:where(:not(:focus-visible, [data-force="focus"], [data-popup-open], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, :disabled, [data-disabled]), .o-input-segment:focus)))) { box-shadow: var(--input-sunk, var(--vk-shadow-key-pressed)); --input-inset: var(--vk-shadow-key-pressed); }
1312
+
1313
+ /* ── Under the pointer: the edge (the rules above, the lift deepening with it), the fill alone, or both
1314
+ with the edge a step darker. Never over focus, an error or a disabled field, which keep their
1315
+ own. A filled field's Edge keeps its fill and shows an edge; its Strong takes the fill's step too. ── */
1316
+ @media (hover: hover) { :is([data-input-hover="fill"]:not([data-input-style="filled"]) :where(.o-input:not([data-input-own], [data-input-hover="fill"]:not([data-input-style="filled"]) [data-input-hover]:not([data-input-hover="fill"]) *, [data-input-hover="fill"]:not([data-input-style="filled"]) [data-input-style="filled"] *)), :where(.o-input[data-input-own][data-input-hover="fill"]:not([data-input-style="filled"]))).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-ground: var(--vk-hovered); } }
1317
+ @media (hover: hover) { :is([data-input-hover="strong"]:not([data-input-style="filled"]) :where(.o-input:not([data-input-own], [data-input-hover="strong"]:not([data-input-style="filled"]) [data-input-hover]:not([data-input-hover="strong"]) *, [data-input-hover="strong"]:not([data-input-style="filled"]) [data-input-style="filled"] *)), :where(.o-input[data-input-own][data-input-hover="strong"]:not([data-input-style="filled"]))).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-edge: var(--vk-border-input-strong); } }
1318
+ @media (hover: hover) { :is([data-input-hover="strong"][data-input-style="outlined"] :where(.o-input:not([data-input-own], [data-input-hover="strong"][data-input-style="outlined"] [data-input-hover]:not([data-input-hover="strong"]) *, [data-input-hover="strong"][data-input-style="outlined"] [data-input-style]:not([data-input-style="outlined"]) *)), :where(.o-input[data-input-own][data-input-hover="strong"][data-input-style="outlined"])).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-ground: var(--vk-hovered); } }
1319
+ @media (hover: hover) { :is([data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]) :where(.o-input:not([data-input-own], [data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]) [data-input-style]:not([data-input-style="filled"]) *, [data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]) [data-input-hover]:not([data-input-hover="edge"], [data-input-hover="strong"]) *)), :where(.o-input[data-input-own][data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]))).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-edge: var(--vk-border-input-hovered); } }
1320
+
1321
+ /* ── Focus: the edge alone, or the edge doubled inside it; in error, in red ───────────────────────── */
1322
+ :is([data-input-focus="line"] :where(.o-input:not([data-input-own], [data-input-focus="line"] [data-input-focus]:not([data-input-focus="line"]) *)), :where(.o-input[data-input-own][data-input-focus="line"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: none; }
1323
+ /* Focus within: the edge alone, as Edge only, and the edge also while anything inside it has the focus,
1324
+ a Button in its side too. */
1325
+ :where(.o-input[data-input-own][data-input-focus="within"]).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: none; }
1326
+ .o-input.o-input-group[data-input-own][data-input-focus="within"]:focus-within { --input-edge: var(--vk-border-brand); }
1327
+ :is([data-input-focus="thick"] :where(.o-input:not([data-input-own], [data-input-focus="thick"] [data-input-focus]:not([data-input-focus="thick"]) *)), :where(.o-input[data-input-own][data-input-focus="thick"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 0 0 var(--input-thick, var(--vk-border-width)) var(--vk-border-brand); --input-edge-in: calc(var(--vk-border-width) * 2); }
1328
+ :is([data-input-focus="thick"] :where(.o-input:not([data-input-own], [data-input-focus="thick"] [data-input-focus]:not([data-input-focus="thick"]) *)), :where(.o-input[data-input-own][data-input-focus="thick"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))):is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 0 0 var(--input-thick, var(--vk-border-width)) var(--vk-border-danger); --input-edge-in: calc(var(--vk-border-width) * 2); }
1329
+
1330
+ /* ── Error: the red edge on a red tint ─────────────────────────────────────────────────────────────── */
1331
+ :is([data-input-error="tint"] :where(.o-input:not([data-input-own], [data-input-error="tint"] [data-input-error]:not([data-input-error="tint"]) *)), :where(.o-input[data-input-own][data-input-error="tint"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-ground: var(--vk-danger-subtlest); }
1332
+
1333
+ /* ── Underline: one line under the words, no corners, no lift; focus thickens the line, whatever the
1334
+ focus option says, since a glow round a box you can't see draws a box. ──────────────────────────── */
1335
+ :is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])).o-input {
1336
+ border-width: 0 0 var(--vk-border-width); --input-r: 0px; corner-shape: round; --input-pad-inline: 0px;
1337
+ --input-ground: var(--vk-input); box-shadow: none; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed);
1338
+ }
1339
+ :is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 calc(var(--vk-border-width) * -1) 0 var(--vk-border-brand); }
1340
+ :is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))):is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 calc(var(--vk-border-width) * -1) 0 var(--vk-border-danger); }
1341
+ :is([data-input-style="underline"][data-input-error="tint"] :where(.o-input:not([data-input-own], [data-input-style="underline"][data-input-error="tint"] [data-input-style]:not([data-input-style="underline"]) *, [data-input-style="underline"][data-input-error="tint"] [data-input-error]:not([data-input-error="tint"]) *)), :where(.o-input[data-input-own][data-input-style="underline"][data-input-error="tint"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-ground: var(--vk-danger-subtlest); --input-pad-inline: calc(var(--vk-spacing) * 2); }
1342
+
1343
+ /* ── The inset (a box's own look): its words 12px from its outer edge at every size, the hairline inside that; long
1344
+ text 6px from its top and bottom (10px at the phone's size), as labelled boxes are. It outweighs the sizes and the phone's padding, and an own Underline's none; an own look at
1345
+ radius full keeps the pill's ends. A frame sets it too, as it sets every option. ───────────────────────────────────────────────────────────────────────────────────────────────────────── */
1346
+ /* On a frame too. Each keeps the weight it had as an own look's rule, (0,3,0) and up: .o-input twice. */
1347
+ :is([data-input-pad="edge"] :where(.o-input:not([data-input-own], [data-input-pad="edge"] [data-input-pad]:not([data-input-pad="edge"]) *)), :where(.o-input[data-input-own][data-input-pad="edge"])).o-input.o-input { --input-pad-inline: calc(var(--vk-spacing) * 3 - var(--vk-border-width)); }
1348
+ :is([data-input-pad="edge"] :where(.o-input:not([data-input-own], [data-input-pad="edge"] [data-input-pad]:not([data-input-pad="edge"]) *)), :where(.o-input[data-input-own][data-input-pad="edge"])).o-input.o-input.o-input-long { --input-pad-block: calc(var(--vk-spacing) * 1.5 - var(--vk-border-width)); }
1349
+ :is([data-input-pad="edge"] :where(.o-input:not([data-input-own], [data-input-pad="edge"] [data-input-pad]:not([data-input-pad="edge"]) *)), :where(.o-input[data-input-own][data-input-pad="edge"])).o-input.o-input.o-input-long.o-input-lg { --input-pad-block: calc(var(--vk-spacing) * 2.5 - var(--vk-border-width)); }
1350
+ /* A box's own look's corners, round where said; the smooth outline unless. On a frame too. */
1351
+ :is([data-input-corner="round"] :where(.o-input:not([data-input-own], [data-input-corner="round"] [data-input-corner]:not([data-input-corner="round"]) *)), :where(.o-input[data-input-own][data-input-corner="round"])).o-input.o-input { corner-shape: round; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed); }
1352
+ /* A box's own look in code words: the monospace typeface at xs, for long text that is code. Never a size:
1353
+ its height and its line stay its size's. An own look only; it outweighs the sizes. On a phone a box that can be typed into keeps
1354
+ the phone's 16px, so the phone never zooms in on it; a read-only one keeps xs there too. */
1355
+ .o-input[data-input-own][data-input-words="code"] { font-family: var(--vk-font-mono); font-size: var(--vk-font-size-xs); }
1356
+ @media (width < 640px) { .o-input[data-input-own][data-input-words="code"]:not([readonly], :has(> .o-input-control[readonly])):where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); } }
1357
+ @container o-phone (width < 640px) { .o-input[data-input-own][data-input-words="code"]:not([readonly], :has(> .o-input-control[readonly])) { font-size: var(--vk-font-size-base); } }
1358
+
1359
+ /* ── A group: the field drawn around an Input and its addons ───────────────────────────────────────────
1360
+ The group is the field itself (it carries .o-input), so its edge, lift, size, corners and every look
1361
+ are the Input's own; each state above also reads the Input inside it (its focus, its error, disabled),
1362
+ at the same weight, so a group's states fall in the same order. The Input inside is bare. */
1363
+ /* The room between its parts is --input-group-gap where a place sets it (a body that lays its parts closer), 6px unless said. */
1364
+ .o-input-group { display: flex; align-items: center; gap: var(--input-group-gap, calc(var(--vk-spacing) * 1.5)); cursor: text; }
1365
+ /* The bare control (alone, or a group's): a value wider than it ends in "…" at rest, so a cut address never reads as a wrong one
1366
+ ; typed into, the browser scrolls it whole. */
1367
+ .o-input-control {
1368
+ flex: 1; align-self: stretch; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 0;
1369
+ border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; outline: none; text-overflow: ellipsis;
1370
+ }
1371
+ /* A bare box told not to fill its line (fills={false}) stands at the width and height its place gives it. */
1372
+ .o-input-control[data-fills="off"] { flex: initial; align-self: auto; }
1373
+ .o-input-control::placeholder { color: var(--vk-fg-subtlest); opacity: 1; }
1374
+ /* A segment of a value typed in parts (InputGroupSegment) draws no outline of its own: its group shows the focus. */
1375
+ .o-input-segment { outline: none; }
1376
+ .o-input-control:is(:disabled, [data-disabled]) { cursor: not-allowed; }
1377
+ /* Numbers line up inside a group too: the control's font: inherit, just above, would take .o-input-num's tabular digits away
1378
+ (in DM Sans no pixel moves, its digits already one width). */
1379
+ .o-input-control.o-input-num { font-variant-numeric: tabular-nums; }
1380
+ /* Bare, a box that can be typed into keeps the phone's 16px words on a phone whatever its place's, so iOS never zooms in on it: the Input's, the Number field's, any place's. A field gives the control inside it its words, so this reads only a
1381
+ control no field draws round; a read-only or disabled one keeps its place's. (0,1,0), after the control's font: inherit; a place's
1382
+ own rule for its box still wins (a picker's, a links editor's, each 16 on a phone too). */
1383
+ @media (width < 640px) { .o-input-control:where(:not(.o-input *, [readonly], :disabled, [data-disabled])):where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); } }
1384
+ @container o-phone (width < 640px) { .o-input-control:where(:not(.o-input *, [readonly], :disabled, [data-disabled])) { font-size: var(--vk-font-size-base); } }
1385
+
1386
+ /* ── A lone Input in its field: a box round its control, a group of one, so its corner can wear the smooth outline
1387
+ (the end of this file) in every browser. Inline-level, as the <input> was, so no line it stands on moves. Its padding is its
1388
+ control's (the field form's two variables), so the control fills the box inside its edge: its resize handle, its scrollbar and
1389
+ the browser's autofill fill stand where they stood, every press lands in it (its edge hands one on), and its corners are the
1390
+ box's inside its edge (--input-inner), a quarter circle within the smooth outline.
1391
+ Its value wider than it is cut off at rest, with no "…". Long text keeps its own height, dragged taller by
1392
+ its control's handle; growing, its control grows to ten lines, then scrolls. ──────────────────────────────────────────────── */
1393
+ .o-input.o-input-lone { display: inline-flex; padding: 0; }
1394
+ /* Its edge shows the I-beam, as the <input>'s did; read-only and disabled keep theirs (this weighs nothing). */
1395
+ :where(.o-input.o-input-lone) { cursor: text; }
1396
+ /* Standing on a line (inline, never as a flex or grid item, where it lends its first line), each engine stood the <textarea> where
1397
+ it stands the box only after a nudge, measured at 14 and 16px words and every height in each engine: WebKit
1398
+ on its bottom edge, as the box; Chromium on the textarea's bottom margin edge, its edge's width inside the box, so the box is
1399
+ raised by it; Firefox 3px above its bottom edge. Each engine is known by what it supports (corner-shape: Chromium alone;
1400
+ -moz-appearance: Firefox alone), so an engine that ships the other's moves this 1-3px, and no page yet stands a lone long text on a line to
1401
+ catch it. The measurements left with the proofs: a change here is measured again,
1402
+ by hand, in Chromium, WebKit and Firefox. */
1403
+ .o-input.o-input-lone.o-input-long { display: inline-block; }
1404
+ @supports (corner-shape: round) { .o-input.o-input-lone.o-input-long { vertical-align: var(--vk-border-width); } }
1405
+ @supports (-moz-appearance: none) { .o-input.o-input-lone.o-input-long { vertical-align: -3px; } }
1406
+ .o-input-lone > .o-input-control {
1407
+ padding: var(--input-pad-block) var(--input-pad-inline); border-radius: max(0px, calc(var(--input-inner) - var(--vk-border-width)));
1408
+ text-overflow: clip;
1409
+ }
1410
+ /* Read-only, the arrow, as the box shows it (its own I-beam unless; disabled, not-allowed, above). */
1411
+ .o-input-lone > .o-input-control[readonly] { cursor: default; }
1412
+ /* One line: the box's full height, set, as the <input>'s was (a stretched input sets its words a pixel higher in Chromium). */
1413
+ .o-input-lone > input.o-input-control { height: 100%; }
1414
+ /* Long text: the <textarea> it was, to the pixel. It fills the box to its outer edge, its own edge there transparent, so the box's
1415
+ edge shows through it, and takes the box's floor (min-height: inherit); a block in an inline block. */
1416
+ .o-input-lone > textarea.o-input-control {
1417
+ display: block; box-sizing: border-box; width: calc(100% + var(--vk-border-width) * 2); margin: calc(var(--vk-border-width) * -1);
1418
+ border: var(--vk-border-width) solid transparent; border-radius: var(--input-inner); background-clip: padding-box;
1419
+ min-height: inherit; max-height: none; field-sizing: fixed; resize: vertical;
1420
+ }
1421
+ .o-input-lone > textarea.o-input-control.o-input-lines { resize: none; }
1422
+
1423
+ /* Long text, or a row above or below it: a column, the rows full width, the long text between them
1424
+ growing with its words from two lines to ten, then scrolling (maxLines sets another stop). */
1425
+ .o-input-group.o-input-long { flex-direction: column; align-items: stretch; gap: calc(var(--vk-spacing) * 2); }
1426
+ textarea.o-input-control { flex: 1 0 auto; min-height: calc(1lh * 2); max-height: calc(1lh * 10); resize: none; field-sizing: content; }
1427
+ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height: none; field-sizing: fixed; }
1428
+
1429
+ /* ── An addon: what sits beside the words, in the order its side says, whatever the order it's written
1430
+ in. Its words quieter than the words typed, its icon 16px and quieter still. ──────────────────────── */
1431
+ .o-input-addon { flex: none; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); color: var(--vk-fg-subtle); white-space: nowrap; user-select: none; }
1432
+ .o-input-addon:is([data-side="start"], [data-side="top"]) { order: -1; }
1433
+ .o-input-addon:is([data-side="end"], [data-side="bottom"]) { order: 1; }
1434
+ .o-input-addon > svg { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
1435
+ .o-input-2xs > .o-input-addon > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
1436
+ @media (width < 640px) { .o-input-2xs > .o-input-addon > svg:where(:not([data-computer-host], [data-computer-host] *)) { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); } }
1437
+ @container o-phone (width < 640px) { .o-input-2xs > .o-input-addon > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); } }
1438
+ .o-input-group:has(.o-input-control:is(:disabled, [data-disabled])) .o-input-addon { color: var(--vk-fg-disabled); }
1439
+ .o-input-group:has(.o-input-control:is(:disabled, [data-disabled])) .o-input-addon > svg { color: inherit; }
1440
+
1441
+ /* A row above or below long text: its buttons 4px apart, as a toolbar's, the first and the last as far
1442
+ in from the side as from the top or the bottom (8px), the long text's words where they always are. */
1443
+ .o-input-addon:is([data-side="top"], [data-side="bottom"]) { gap: calc(var(--vk-spacing) * 1); margin-inline: calc(var(--vk-spacing) * -1); }
1444
+ :is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])) .o-input-addon:is([data-side="top"], [data-side="bottom"]) { margin-inline: 0; }
1445
+
1446
+ /* A button at the field's start or end sits as far in from the side as from the top and bottom: 3px inside
1447
+ the edge of a 36px field round a 28px button and of a 32px one round a 24px button, 7px in a 44px one. Its corners are a step smaller than the
1448
+ field's, so the two curves run alike; in a round field it is round. */
1449
+ .o-input.o-input-group:has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child) { padding-right: calc(var(--vk-spacing) * 3 / 4); }
1450
+ .o-input.o-input-group:has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child) { padding-left: calc(var(--vk-spacing) * 3 / 4); }
1451
+ .o-input.o-input-group.o-input-lg:has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child) { padding-right: calc(var(--vk-spacing) * 7 / 4); }
1452
+ .o-input.o-input-group.o-input-lg:has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child) { padding-left: calc(var(--vk-spacing) * 7 / 4); }
1453
+ /* An lg group is the phone's form asked for anywhere, so its button beside the value takes the value's 16px words at any width
1454
+ , as the phone's rule below gives every group's; the same weight, (0,2,0). */
1455
+ :where(.o-input.o-input-group.o-input-lg > .o-input-addon:is([data-side="start"], [data-side="end"]):not(:where([data-flush]))) > .o-button.o-button { font-size: var(--vk-font-size-base); }
1456
+ @media (width < 640px) {
1457
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-right: calc(var(--vk-spacing) * 7 / 4); }
1458
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-left: calc(var(--vk-spacing) * 7 / 4); }
1459
+ /* A 32px field's 24px button, in the phone's 44px field. */
1460
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button-2xs:last-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-right: calc(var(--vk-spacing) * 9 / 4); }
1461
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button-2xs:first-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-left: calc(var(--vk-spacing) * 9 / 4); }
1462
+ /* A button beside the value takes the value's 16px words; a row above or below long text keeps the Button's sizes.
1463
+ (0,2,0): over the Button's sizes, under a Button's own words look (0,3,0); the editors' own phone rules are unlayered. */
1464
+ :where(.o-input.o-input-group > .o-input-addon:is([data-side="start"], [data-side="end"]):not(:where([data-flush]))) > .o-button.o-button:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); }
1465
+ }
1466
+ @container o-phone (width < 640px) {
1467
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child) { padding-right: calc(var(--vk-spacing) * 7 / 4); }
1468
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child) { padding-left: calc(var(--vk-spacing) * 7 / 4); }
1469
+ /* A 32px field's 24px button, in the phone's 44px field. */
1470
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button-2xs:last-child) { padding-right: calc(var(--vk-spacing) * 9 / 4); }
1471
+ .o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button-2xs:first-child) { padding-left: calc(var(--vk-spacing) * 9 / 4); }
1472
+ /* A button beside the value takes the value's 16px words; a row above or below long text keeps the Button's sizes.
1473
+ (0,2,0): over the Button's sizes, under a Button's own words look (0,3,0); the editors' own phone rules are unlayered. */
1474
+ :where(.o-input.o-input-group > .o-input-addon:is([data-side="start"], [data-side="end"]):not(:where([data-flush]))) > .o-button.o-button { font-size: var(--vk-font-size-base); }
1475
+ }
1476
+ /* Its focus ring hugs it, so the ring stays inside the field's edge. */
1477
+ .o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
1478
+ .o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-md); }
1479
+ :is([data-input-radius="xs"] :where(.o-input:not([data-input-own], [data-input-radius="xs"] [data-input-radius]:not([data-input-radius="xs"]) *)), :where(.o-input[data-input-own][data-input-radius="xs"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])),
1480
+ :is([data-input-radius="sm"] :where(.o-input:not([data-input-own], [data-input-radius="sm"] [data-input-radius]:not([data-input-radius="sm"]) *)), :where(.o-input[data-input-own][data-input-radius="sm"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xs); }
1481
+ :is([data-input-radius="md"] :where(.o-input:not([data-input-own], [data-input-radius="md"] [data-input-radius]:not([data-input-radius="md"]) *)), :where(.o-input[data-input-own][data-input-radius="md"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-sm); }
1482
+ :is([data-input-radius="xl"] :where(.o-input:not([data-input-own], [data-input-radius="xl"] [data-input-radius]:not([data-input-radius="xl"]) *)), :where(.o-input[data-input-own][data-input-radius="xl"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-lg); }
1483
+ :is([data-input-radius="2xl"] :where(.o-input:not([data-input-own], [data-input-radius="2xl"] [data-input-radius]:not([data-input-radius="2xl"]) *)), :where(.o-input[data-input-own][data-input-radius="2xl"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xl); }
1484
+ :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input.o-input-group:not(.o-input-long) > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-full); }
1485
+
1486
+ /* ── Long text that grows with its words, and is dragged taller too, as shadcn's Textarea,
1487
+ to ten lines (its padding and edge on top), then scrolls; maxLines sets another stop ─────────────────────────────────── */
1488
+ .o-input-lone.o-input-grow > textarea.o-input-control { field-sizing: content; max-height: calc(1lh * 10 + var(--vk-spacing) * 4 + var(--vk-border-width) * 2); }
1489
+
1490
+ /* Kept at its size: under the phone switch a box whose look or frame says so keeps 32 high and a line of 20, a Select's
1491
+ words 14, as the computer's form of a labelled box is shown on a phone's screen; what is typed stays 16 (its place's rule). */
1492
+ @media (width < 640px) {
1493
+ :is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input:where(:not([data-computer-host], [data-computer-host] *)) { line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
1494
+ :is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input:not(.o-input-long):where(:not([data-computer-host], [data-computer-host] *)) { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
1495
+ :is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-select-field:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-sm); }
1496
+ }
1497
+ @container o-phone (width < 640px) {
1498
+ :is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input { line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
1499
+ :is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input:not(.o-input-long) { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
1500
+ :is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-select-field { font-size: var(--vk-font-size-sm); }
1501
+ }
1502
+ /* A segment its owner says has the focus, or one a page shows typed into: the brand's tint. */
1503
+ .o-input-segment[data-on] { background-color: var(--vk-brand-subtler); }
1504
+
1505
+ /* ── Corner smoothing: following the token corner-smoothing (Round is the token at 0), a box that can
1506
+ hold a layer (o-smooth: an InputGroup in its field, the Number field's among them, and the Select's box) is drawn with the
1507
+ smooth outline (ViewKit's smooth.css) in every browser that knows shape(); one that doesn't keeps the corners above. The box is never
1508
+ clipped, since its lift, its focus glow and its error's glow stand outside it: every state and look above sets its paint as
1509
+ variables (--input-edge, --input-ground, its corner --input-r, its side --input-side: the least it stands at, long text
1510
+ two lines or its set lines, a Toolbar's line its own, so the outline never crosses itself), which its own ::before (the ground, clipped
1511
+ by the outline, Sunken's shadow inside it) and ::after (the edge, a ring along it, Thick's two lines) draw, its round part fitted
1512
+ to its side, min(r, side / (2 + 2 × amount)), so the whole smoothing stays. An underline, a box at Full and a box's own round
1513
+ corner draw themselves as before (--input-cut: none gives the box its paint back). A lone Input is a box round its control
1514
+ , and smooths as a group does. ─────────────── */
1515
+ .o-input.o-smooth { --smooth-amount: var(--vk-corner-smoothing); }
1516
+ /* The Input's own Corner smoothing: The app's, with nothing set, follows the token; Round paints every box as it
1517
+ stood before , a quarter circle, its layers off; Smooth smooths them at Apple's 70% (the outline's own amount) whatever the
1518
+ token says. */
1519
+ :is([data-input-smoothing="round"] :where(.o-input:not([data-input-own], [data-input-smoothing="round"] [data-input-smoothing]:not([data-input-smoothing="round"]) *)), :where(.o-input[data-input-own][data-input-smoothing="round"])).o-input { corner-shape: round; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed); }
1520
+ :is([data-input-smoothing="smooth"] :where(.o-input:not([data-input-own], [data-input-smoothing="smooth"] [data-input-smoothing]:not([data-input-smoothing="smooth"]) *)), :where(.o-input[data-input-own][data-input-smoothing="smooth"])).o-input.o-smooth { --smooth-amount: initial; }
1521
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
1522
+ /* Its own corner is its ground's: the fitted corner, --smooth-t, worked out once on the box (ViewKit's smooth.css), so its lift and
1523
+ its focus or error glow, box-shadows on the box, stand on its ground, a quarter circle in Chromium too (the squircle above would
1524
+ square its shadows past the outline). A lone Input's control (its autofill fill, its scrollbar) is a quarter circle inside the
1525
+ outline's edge: one as small as the fitted corner crosses the hairline where the bend starts, so its round part takes half the
1526
+ smoothing more (--input-inner; the outline itself at Round). Where the box paints itself (--input-given, from --input-thick a
1527
+ width: an underline, Full, a box's own round corner, the Input's own Round), both are its radius, as before. */
1528
+ .o-input.o-smooth {
1529
+ --input-fit: min(var(--input-r), var(--input-side) / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--input-fit); --smooth-side: var(--input-side);
1530
+ --input-thick: var(--input-shown-thick, 0px); --input-sunk: var(--input-shown-sunk, none);
1531
+ --input-given: clamp(0, tan(atan2(var(--input-thick) * 1000, 1px)), 1);
1532
+ --input-box-r: calc(var(--smooth-t) + (var(--input-r) - var(--smooth-t)) * var(--input-given));
1533
+ --input-inner: calc(var(--smooth-t) * (1 + var(--smooth-amount, 0.7) / 2) + (var(--input-r) - var(--smooth-t) * (1 + var(--smooth-amount, 0.7) / 2)) * var(--input-given));
1534
+ position: relative; isolation: isolate; border-color: var(--input-shown-edge, transparent); background-color: var(--input-shown-ground, transparent);
1535
+ corner-shape: round;
1536
+ }
1537
+ .o-input.o-smooth::before, .o-input.o-smooth::after {
1538
+ content: var(--input-cut, ""); position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: -1; pointer-events: none;
1539
+ transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
1540
+ }
1541
+ .o-input.o-smooth::before { border-radius: var(--input-fit); background-color: var(--input-ground); box-shadow: var(--input-inset); clip-path: shape(var(--smooth-outline)); }
1542
+ .o-input.o-smooth::after {
1543
+ --smooth-t: max(0px, var(--input-fit) - var(--input-edge-in)); --smooth-in: var(--input-edge-in);
1544
+ background-color: var(--input-edge); clip-path: shape(var(--smooth-ring));
1545
+ }
1546
+ }
1547
+
1548
+ @media (prefers-reduced-motion: reduce) { .o-input { transition: none; } .o-input.o-smooth::before, .o-input.o-smooth::after { transition: none; } }
1549
+
1550
+ /* ── A key: a 20px cap on the raised ground, half the radius's corners, its bottom edge twice as heavy so
1551
+ it reads as a key; its label in the quieter text colour ───────────────────────────────────────────── */
1552
+ .o-kbd {
1553
+ --kbd-edge: var(--vk-border-bold); --kbd-rr: min(var(--vk-radius-sm), var(--vk-spacing) * 2.5);
1554
+ display: inline-grid; place-items: center; box-sizing: border-box;
1555
+ min-width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.25);
1556
+ border: var(--vk-border-width) solid var(--kbd-edge); border-bottom-width: calc(var(--vk-border-width) * 2);
1557
+ border-radius: var(--vk-radius-sm);
1558
+ background-color: var(--vk-raised); color: var(--vk-fg-subtle);
1559
+ font-family: var(--vk-font-sans); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); font-variant-numeric: tabular-nums;
1560
+ vertical-align: calc(var(--vk-spacing) * 0.25);
1561
+ }
1562
+
1563
+ /* ── Corner smoothing: The app's, with nothing set, follows --vk-corner-smoothing (Round is 0), Smooth and Round set the key
1564
+ apart. Under Smooth or The app's the key is drawn with the smooth outline (smooth.css), eased on its 20px side, in every
1565
+ browser that knows shape(); one that doesn't keeps the corners above, and so does Round. Nothing stands outside a key (no
1566
+ ring, no shadow, no pressing area), so it is clipped itself, and its edge, which the outline would cut, is a ring of its own
1567
+ along the curve (::before), over its border box, its foot twice as heavy. The Tooltip draws its own small key
1568
+ (tooltip.css), which stays as it draws: at 16px with a 3px corner a smooth one can't be told from a round one. ─── */
1569
+ .o-kbd { --smooth-amount: var(--vk-corner-smoothing); }
1570
+ [data-kbd-smoothing="smooth"] .o-kbd { --smooth-amount: initial; }
1571
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
1572
+ .o-kbd:not([data-kbd-smoothing="round"] *, .o-tooltip *) {
1573
+ --kbd-fit: min(var(--kbd-rr), var(--vk-spacing) * 5 / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--kbd-fit); --smooth-side: calc(var(--vk-spacing) * 5);
1574
+ position: relative; isolation: isolate; border-color: transparent; clip-path: shape(var(--smooth-outline));
1575
+ }
1576
+ .o-kbd:not([data-kbd-smoothing="round"] *, .o-tooltip *)::before {
1577
+ --smooth-t: max(0px, var(--kbd-fit) - var(--vk-border-width)); --smooth-b: max(0px, var(--kbd-fit) - var(--vk-border-width) * 2);
1578
+ --smooth-in: var(--vk-border-width); --smooth-foot: calc(100% - var(--vk-border-width));
1579
+ content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -2);
1580
+ z-index: -1; pointer-events: none; background-color: var(--kbd-edge); clip-path: shape(var(--smooth-ring));
1581
+ }
1582
+ }
1583
+
1584
+ /* ── Pressed together, side by side 3px apart; one after the other, "then" between them ──────────────── */
1585
+ .o-keys { display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 0.75); font: inherit; }
1586
+ .o-keys-then { margin: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
1587
+
1588
+ .o-number { min-width: 0; }
1589
+ /* Bare: the control alone, Base UI's root standing aside, so the input is its place's own child, as the Input's bare form. */
1590
+ .o-number-bare { display: contents; }
1591
+
1592
+ /* ── Its steppers, Decrease then Increase, at its end. On the phone each keeps the Input's 28px button and takes a
1593
+ 44px target round it, the two set apart so their targets never meet. ─────────────────────────────────────── */
1594
+ /* Named with the addon it is, so its gap wins over the addon's own wherever the stylesheets stand in the page. */
1595
+ .o-input-addon.o-number-steps { gap: calc(var(--vk-spacing) * 0.5); }
1596
+ .o-number-steps > .o-button { position: relative; }
1597
+ @media (width < 640px) {
1598
+ .o-input-addon.o-number-steps:where(:not([data-computer-host], [data-computer-host] *)) { gap: calc(var(--vk-spacing) * 4); }
1599
+ .o-number-steps > .o-button:where(:not([data-computer-host], [data-computer-host] *))::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); translate: -50% -50%; }
1600
+ }
1601
+ @container o-phone (width < 640px) {
1602
+ .o-input-addon.o-number-steps { gap: calc(var(--vk-spacing) * 4); }
1603
+ .o-number-steps > .o-button::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); translate: -50% -50%; }
1604
+ }
1605
+
1606
+ /* ── Its arrows, up over down at its end, as the Number editor's: 12 × 20 on the overlay's pressed fill, which stays seen in
1607
+ dark, --number-arrows-room from what stands before them, 2px unless said, whatever the group's gap (--input-group-gap).
1608
+ Each fills its row (the side centres what it holds
1609
+ otherwise). Hidden until the field is edited, their room kept so the value never moves; a group in a cell is never .o-input,
1610
+ so there they always show, the box standing only while it is edited. ───────────────────────────────────────────────────── */
1611
+ .o-input-addon.o-number-arrows {
1612
+ display: grid; grid-template-rows: 1fr 1fr; align-items: stretch; gap: 0; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 5);
1613
+ margin-inline-start: calc(var(--number-arrows-room, calc(var(--vk-spacing) / 2)) - var(--input-group-gap, calc(var(--vk-spacing) * 1.5))); border-radius: var(--vk-radius-xs); overflow: hidden; background-color: var(--vk-overlay-pressed); cursor: default;
1614
+ }
1615
+ .o-input:not(:focus-within) > .o-number-arrows { visibility: hidden; }
1616
+ /* In the Inline input the arrows stand as everything beside the value does, its gap from it, in the box's own colour,
1617
+ always shown: the box stands only while it is edited. */
1618
+ .o-inline-input-group > .o-input-addon.o-number-arrows { margin-inline-start: 0; color: inherit; }
1619
+ .o-number-arrow {
1620
+ display: grid; place-items: center; margin: 0; padding: 0; border: 0; background-color: transparent; color: var(--vk-fg-subtle); cursor: default;
1621
+ transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
1622
+ }
1623
+ @media (hover: hover) { .o-number-arrow:hover { background-color: var(--vk-overlay-selected); color: var(--vk-fg); } }
1624
+ .o-number-arrow[data-disabled] { background-color: transparent; color: var(--vk-fg-disabled); }
1625
+ .o-number-arrow > svg { width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 1.25); fill: currentColor; }
1626
+
1627
+ /* ── Its value at its end, as a number in a table's column; its digits line up either way (.o-input-num). ──────────── */
1628
+ .o-input-control.o-number-end { text-align: end; }
1629
+
1630
+ /* ── A unit that is dragged to change it: the pointer says so, and while it drags, the cursor Base UI draws. ─── */
1631
+ .o-number-scrub { cursor: ew-resize; touch-action: none; }
1632
+ .o-number-cursor { display: flex; color: var(--vk-fg); filter: drop-shadow(0 0 var(--vk-border-width) var(--vk-ground)); pointer-events: none; }
1633
+ .o-number-cursor > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
1634
+
1635
+ /* ── Several side by side, 6px apart; none, a dash ─────────────────────────────────────────────────── */
1636
+ .o-options { display: inline-flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vk-spacing) * 1.5); }
1637
+ .o-option-none { color: var(--vk-fg-subtlest); font-size: var(--vk-font-size-sm); }
1638
+
1639
+ /* ── lg: 28 high, for a phone's row, its words text-sm (the Picker's on a phone, rounds 2 to 4 of its sketch) ──────── */
1640
+ .o-tag.o-option.o-option-lg { --tag-h: calc(var(--vk-spacing) * 7); padding: 0 calc(var(--vk-spacing) * 2.5); font-size: var(--vk-font-size-sm); }
1641
+
1642
+ /* ── A colour: an Option given one (data-colour, its value's own) draws it only in a colour look, worn by the frame or
1643
+ the app around it (data-option-colour, looks.ts); with nothing picked it is Attio's pill, the Outright look's pick; in No colour, or
1644
+ given none, it draws as above. Each colour's tokens once: a label hue's, or grey's neutrals. ──────────────────────────────────────────────────────────────────────────── */
1645
+ .o-option[data-colour="blue"] { --o-option-dot: var(--vk-label-blue); --o-option-soft: var(--vk-label-blue-soft); --o-option-soft-words: var(--vk-label-blue); --o-option-fill: var(--vk-label-blue-fill); --o-option-edge: var(--vk-label-blue-edge); --o-option-strong: var(--vk-label-blue-strong); }
1646
+ .o-option[data-colour="green"] { --o-option-dot: var(--vk-label-green); --o-option-soft: var(--vk-label-green-soft); --o-option-soft-words: var(--vk-label-green); --o-option-fill: var(--vk-label-green-fill); --o-option-edge: var(--vk-label-green-edge); --o-option-strong: var(--vk-label-green-strong); }
1647
+ .o-option[data-colour="amber"] { --o-option-dot: var(--vk-label-amber); --o-option-soft: var(--vk-label-amber-soft); --o-option-soft-words: var(--vk-label-amber); --o-option-fill: var(--vk-label-amber-fill); --o-option-edge: var(--vk-label-amber-edge); --o-option-strong: var(--vk-label-amber-strong); }
1648
+ .o-option[data-colour="red"] { --o-option-dot: var(--vk-label-red); --o-option-soft: var(--vk-label-red-soft); --o-option-soft-words: var(--vk-label-red); --o-option-fill: var(--vk-label-red-fill); --o-option-edge: var(--vk-label-red-edge); --o-option-strong: var(--vk-label-red-strong); }
1649
+ .o-option[data-colour="purple"] { --o-option-dot: var(--vk-label-purple); --o-option-soft: var(--vk-label-purple-soft); --o-option-soft-words: var(--vk-label-purple); --o-option-fill: var(--vk-label-purple-fill); --o-option-edge: var(--vk-label-purple-edge); --o-option-strong: var(--vk-label-purple-strong); }
1650
+ .o-option[data-colour="pink"] { --o-option-dot: var(--vk-label-pink); --o-option-soft: var(--vk-label-pink-soft); --o-option-soft-words: var(--vk-label-pink); --o-option-fill: var(--vk-label-pink-fill); --o-option-edge: var(--vk-label-pink-edge); --o-option-strong: var(--vk-label-pink-strong); }
1651
+ .o-option[data-colour="teal"] { --o-option-dot: var(--vk-label-teal); --o-option-soft: var(--vk-label-teal-soft); --o-option-soft-words: var(--vk-label-teal); --o-option-fill: var(--vk-label-teal-fill); --o-option-edge: var(--vk-label-teal-edge); --o-option-strong: var(--vk-label-teal-strong); }
1652
+ .o-option[data-colour="grey"] { --o-option-dot: var(--vk-fg-subtlest); --o-option-soft: var(--vk-neutral); --o-option-soft-words: var(--vk-fg-subtle); --o-option-fill: var(--vk-neutral); --o-option-edge: var(--vk-border); --o-option-strong: var(--vk-fg-subtle); }
1653
+
1654
+ /* Linear's dot: the Option as it is, a dot of its colour before its word, 8 across (9 in a phone's row). */
1655
+ [data-option-colour="dot"] .o-option[data-colour]::before {
1656
+ content: ""; flex: none; width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 2); margin-left: calc(var(--vk-spacing) * -0.25);
1657
+ border-radius: var(--vk-radius-full); background-color: var(--o-option-dot);
1658
+ }
1659
+ [data-option-colour="dot"] .o-option.o-option-lg[data-colour]::before { width: calc(var(--vk-spacing) * 2.25); height: calc(var(--vk-spacing) * 2.25); }
1660
+ /* Attio's pill: its colour's fill, an edge of its hue drawn inside, its words a strong step. */
1661
+ [data-option-colour="pill"] .o-option[data-colour], .o-option[data-colour]:not([data-option-colour] *) { --tag-ground: var(--o-option-fill); --tag-edge: var(--o-option-edge); --tag-shadow: initial; color: var(--o-option-strong); }
1662
+ /* Notion's flat fill: its colour's soft step, no edge, its words the hue. */
1663
+ [data-option-colour="flat"] .o-option[data-colour] { --tag-ground: var(--o-option-soft); --tag-edge: transparent; --tag-shadow: none; color: var(--o-option-soft-words); }
1664
+ /* On a fill the remove button's × takes the Option's words, under the pointer too (this outweighs the Tag's hover colour on
1665
+ purpose), on the Tag's own hover fill; its focus ring stays the Tag's. */
1666
+ :is([data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-colour] .o-tag-remove, .o-option[data-colour]:not([data-option-colour] *) .o-tag-remove { color: inherit; }
1667
+
1668
+ /* ── Its icon (after Linear): at its start the value's own mark, quiet (the Tag's icon's colour and its 1px
1669
+ nudge), in its colour where a colour look draws one, and in Linear's dot in place of the dot, one mark and never two; at its
1670
+ end what a press does, quieter still, on a fill the Option's words. 12px, 14 in a phone's row. While editing the end one is
1671
+ left out, the × in its place. ─────────────────────────────────────────────────────────────────────────────── */
1672
+ .o-option-icon { flex: none; display: inline-grid; place-items: center; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); color: var(--vk-fg-subtle); }
1673
+ .o-option-icon > svg { width: 100%; height: 100%; }
1674
+ .o-option-lg > .o-option-icon { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
1675
+ .o-option-icon[data-side="start"] { margin-left: calc(var(--vk-spacing) * -0.25); }
1676
+ .o-option-icon[data-side="end"] { margin-right: calc(var(--vk-spacing) * -0.25); color: var(--vk-fg-subtlest); }
1677
+ :is([data-option-colour="dot"], [data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-colour] > .o-option-icon[data-side="start"], .o-option[data-colour]:not([data-option-colour] *) > .o-option-icon[data-side="start"] { color: var(--o-option-dot); }
1678
+ :is([data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-colour] > .o-option-icon[data-side="end"], .o-option[data-colour]:not([data-option-colour] *) > .o-option-icon[data-side="end"] { color: inherit; }
1679
+ [data-option-colour="dot"] .o-option[data-colour]:has(> .o-option-icon[data-side="start"])::before { content: none; }
1680
+ /* A person's or a company's Avatar at its start (a typed Select's chip): the icon takes the Avatar's 16, 4px from the
1681
+ chip's edge, the words 4px after it; a mark that wraps its svg once (a stage's glyph) fills the 12px icon as a bare svg does. */
1682
+ .o-option > .o-option-icon:has(> .o-avatar) { width: auto; height: auto; margin-left: calc(var(--vk-spacing) * -1); }
1683
+ .o-option > .o-option-icon > * > svg { width: 100%; height: 100%; }
1684
+
1685
+ /* ── Its shape, worn by the frame or the app around it (looks.ts), each of the kit's defaults drawing nothing of its own,
1686
+ and Corners at lg where nothing is picked, the Outright look's pick. Height: a
1687
+ phone's row keeps its 28, a typed Select's chips their 22 (a field 24 high holds them). Corners: Full truly round, painted as
1688
+ before whatever its Corner smoothing (tag.css). Edge: Subtle the light edge, Grey fill a grey ground and none; a coloured Option
1689
+ in Attio's pill or Notion's flat fill keeps its colour's own, whose rules weigh more. Each sets the Tag's variables (--tag-h,
1690
+ --tag-r, --tag-ground, --tag-edge, --tag-shadow), which the chip and its cut draw.──────────────────────────────────────────────────────────────────────────── */
1691
+ [data-option-height="20"] .o-option:not(.o-option-lg, .o-select-chips > *) { --tag-h: calc(var(--vk-spacing) * 5); }
1692
+ [data-option-height="24"] .o-option:not(.o-option-lg, .o-select-chips > *) { --tag-h: calc(var(--vk-spacing) * 6); }
1693
+ [data-option-radius="xs"] .o-option { --tag-r: var(--vk-radius-xs); }
1694
+ [data-option-radius="sm"] .o-option { --tag-r: var(--vk-radius-sm); }
1695
+ [data-option-radius="lg"] .o-option, .o-option:not([data-option-radius] *) { --tag-r: var(--vk-radius-lg); }
1696
+ [data-option-radius="full"] .o-option { --tag-r: var(--vk-radius-full); }
1697
+ [data-option-edge="subtle"] .o-option { --tag-edge: var(--vk-border); }
1698
+ [data-option-edge="fill"] .o-option { --tag-ground: var(--vk-neutral); --tag-edge: transparent; --tag-shadow: none; }
1699
+
1700
+ /* ── A link (after Attio's record chips): at rest the chip as it is, its words the Option's and never
1701
+ underlined; under the pointer the hover fill (under Grey fill a step darker; a coloured pill or flat fill its colour's fill, a
1702
+ pill's edge its hue), pressed the pressed fill (Grey fill and a coloured fill keep their hover's) at 98%; from the keys the focus
1703
+ ring. The states weigh (0,4,0) and more, over the colour looks' grounds. On the phone it takes taps from 44 (the pressing area the app gives it). ── */
1704
+ .o-option[data-link] {
1705
+ --o-option-hover: var(--vk-hovered); --o-option-pressed: var(--vk-pressed);
1706
+ cursor: pointer; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent;
1707
+ transition: background-color var(--vk-duration-fast) var(--vk-ease-out), box-shadow var(--vk-duration-fast) var(--vk-ease-out), scale var(--vk-duration-instant) var(--vk-ease-out);
1708
+ }
1709
+ [data-option-edge="fill"] .o-option[data-link] { --o-option-hover: var(--vk-neutral-hovered); --o-option-pressed: var(--vk-neutral-hovered); }
1710
+ :is([data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-link][data-colour], .o-option[data-link][data-colour]:not([data-option-colour] *) { --o-option-hover: var(--o-option-fill); --o-option-pressed: var(--o-option-fill); }
1711
+ .o-tag.o-option[data-link][data-force="hover"] { --tag-ground: var(--o-option-hover); }
1712
+ @media (hover: hover) { .o-tag.o-option[data-link]:hover { --tag-ground: var(--o-option-hover); } }
1713
+ .o-tag.o-option[data-link]:is(:active, [data-force="press"]) { --tag-ground: var(--o-option-pressed); scale: var(--vk-press-scale); }
1714
+ [data-option-colour="pill"] .o-tag.o-option[data-link][data-colour]:is(:active, [data-force="hover"], [data-force="press"]), .o-tag.o-option[data-link][data-colour]:not([data-option-colour] *):is(:active, [data-force="hover"], [data-force="press"]) { --tag-edge: var(--o-option-dot); }
1715
+ @media (hover: hover) { [data-option-colour="pill"] .o-tag.o-option[data-link][data-colour]:hover, .o-tag.o-option[data-link][data-colour]:not([data-option-colour] *):hover { --tag-edge: var(--o-option-dot); } }
1716
+ .o-option[data-link]:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
1717
+ @media (prefers-reduced-motion: reduce) { .o-option[data-link] { transition: none; } }
1718
+
1719
+ /* ── The soft edge: three blurs of what passes under a floating head, each fading out lower down, so the blur is strongest at
1720
+ the top and melts into the page with no line, and over them the ground it stands on, fading to nothing. What it stands in
1721
+ gives it its height and, in --soft-edge-ground, its ground. ── */
1722
+ .o-soft-edge { position: absolute; inset: 0 0 auto; pointer-events: none; }
1723
+ .o-soft-edge > i { position: absolute; inset: 0; border-radius: inherit; -webkit-mask-image: linear-gradient(to bottom, #000 var(--soft-edge-from), transparent var(--soft-edge-to)); mask-image: linear-gradient(to bottom, #000 var(--soft-edge-from), transparent var(--soft-edge-to)); }
1724
+ .o-soft-edge > i:nth-child(1) { --soft-edge-from: 75%; --soft-edge-to: 100%; -webkit-backdrop-filter: blur(var(--vk-blur-xs)); backdrop-filter: blur(var(--vk-blur-xs)); }
1725
+ .o-soft-edge > i:nth-child(2) { --soft-edge-from: 55%; --soft-edge-to: 85%; -webkit-backdrop-filter: blur(var(--vk-blur-sm)); backdrop-filter: blur(var(--vk-blur-sm)); }
1726
+ .o-soft-edge > i:nth-child(3) { --soft-edge-from: 30%; --soft-edge-to: 65%; -webkit-backdrop-filter: blur(var(--vk-blur-md)); backdrop-filter: blur(var(--vk-blur-md)); }
1727
+ .o-soft-edge > i:nth-child(4) { --soft-edge-from: 40%; --soft-edge-to: 100%; background: linear-gradient(to bottom, color-mix(in oklab, var(--soft-edge-ground, var(--vk-header)) 85%, transparent), transparent); }
1728
+
1729
+ .o-hd-bar {
1730
+ position: relative; box-sizing: border-box; display: grid; align-items: center; gap: calc(var(--vk-spacing) * 2); min-width: 0;
1731
+ grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
1732
+ height: calc(var(--vk-spacing) * 11); padding-inline: var(--page-padding, calc(var(--vk-spacing) * 6));
1733
+ }
1734
+ .o-hd-bar > .o-hd-bar-edge { top: calc(-1 * var(--hd-bar-room, 0px)); height: calc(var(--hd-bar-room, 0px) + 100% + var(--vk-spacing) * 1); }
1735
+ /* Its places stand over the soft edge. A place stands as wide as the Glass button, so the title keeps clear of an empty one. */
1736
+ .o-hd-bar-side { position: relative; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); min-width: calc(var(--vk-spacing) * 11); }
1737
+ .o-hd-bar-side:last-child { justify-content: flex-end; }
1738
+ .o-hd-bar-title {
1739
+ position: relative; display: grid; min-width: 0; text-align: center; color: var(--vk-fg);
1740
+ font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); font-weight: var(--vk-font-weight-semibold);
1741
+ }
1742
+ :where(.o-hd-bar-title) > * { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
1743
+ /* Its description, a quieter second line. With one, the two together stand as tall as the buttons beside them. */
1744
+ .o-hd-bar-description { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-spacing) * 4); font-weight: var(--vk-font-weight-normal); color: var(--vk-fg-subtle); }
1745
+ .o-hd-bar-title > :has(+ .o-hd-bar-description) { line-height: calc(var(--vk-spacing) * 5); }
1746
+ /* Its right place is the Glass button group (glass-button.css draws how two stand together, apart or on the glass pill). On
1747
+ Together (the Glass button's Two buttons, its default) the place stands as wide as its two, so the pill is theirs alone; under
1748
+ Glass, the surface's default. */
1749
+ .o-hd-bar-side:last-child:not([data-phone-header-surface="flat"] *):not([data-glass-button-pair="separate"] *):has(.o-glass-button ~ .o-glass-button) { justify-self: end; }
1750
+ /* Its title at the left: after what stands on its left, taking the room there is. */
1751
+ .o-hd-bar[data-title-at="left"] { grid-template-columns: auto minmax(0, 1fr) auto; }
1752
+ .o-hd-bar[data-title-at="left"] > .o-hd-bar-title { text-align: start; }
1753
+ /* Flat: no soft edge, and a smaller title. What it stands on is its place's: the page's header on a page, the Sheet's in a sheet. */
1754
+ [data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-edge { display: none; }
1755
+ [data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-title { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
1756
+ [data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-side { gap: calc(var(--vk-spacing) * 0.5); }
1757
+
1758
+ /* ── Where it stands: on the popup layer, over the Modal, the drawer and the sheet; one opened later stands
1759
+ over the one it opened from, being later on the page ─────────────────────────────────────────────────────────── */
1760
+ .o-popover-positioner { z-index: var(--vk-layer-popup); outline: none; }
1761
+ /* What opened it has scrolled fully out of view: it closes (popover/popover.tsx), and goes at once, so no exit plays over nothing. */
1762
+ .o-popover-positioner[data-anchor-hidden] { visibility: hidden; }
1763
+
1764
+ /* ── The shell: the overlay's ground, corners and a shadow; 288 wide unless it is handed a width, as shadcn's, and at
1765
+ least as wide as what opened it. Its edge and what it holds are inside it (.o-popover-cut) ─────────────────── */
1766
+ .o-popover {
1767
+ --popover-corners: var(--vk-radius-xl); --popover-shadow: var(--vk-shadow-md); --popover-pad: calc(var(--vk-spacing) * 2);
1768
+ --popover-gap: var(--vk-spacing); --popover-edge: var(--vk-border); --divider-colour: var(--vk-border);
1769
+ --divider-reach: max(0px, calc(var(--popover-pad) - var(--vk-border-width)));
1770
+ box-sizing: border-box; display: flex; flex-direction: column;
1771
+ width: calc(var(--vk-spacing) * 72); min-width: var(--anchor-width, auto); max-width: var(--available-width, 100%); max-height: var(--available-height, none);
1772
+ border-radius: var(--popover-corners); background-color: var(--vk-overlay); box-shadow: var(--popover-shadow); color: var(--vk-fg);
1773
+ font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); outline: none;
1774
+ transition: opacity var(--vk-duration-fast) var(--vk-ease-out), translate var(--vk-duration-fast) var(--vk-ease-out);
1775
+ }
1776
+
1777
+ /* What it holds, inside its edge, scrolling there when the screen is shorter. The edge is drawn as two shapes, never a
1778
+ border, as the Modal's is: its colour (::before), and the ground just inside it (::after), one line narrower. Each
1779
+ takes its own corner, its inset less, so the edge follows the corners exactly, round or smooth. */
1780
+ .o-popover-cut { position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--popover-pad); border-radius: inherit; }
1781
+ .o-popover-cut::before, .o-popover-cut::after { content: ""; position: absolute; z-index: -1; border-radius: var(--popover-c); pointer-events: none; }
1782
+ .o-popover-cut::before { --popover-c: var(--popover-corners); inset: 0; background-color: var(--popover-edge); }
1783
+ .o-popover-cut::after { --popover-c: calc(var(--popover-corners) - var(--vk-border-width)); inset: var(--vk-border-width); background-color: var(--vk-overlay); }
1784
+
1785
+ /* The gap, on the side it stands on. */
1786
+ .o-popover[data-side="bottom"] { margin-top: var(--popover-gap); }
1787
+ .o-popover[data-side="top"] { margin-bottom: var(--popover-gap); }
1788
+ .o-popover[data-side="left"] { margin-right: var(--popover-gap); }
1789
+ .o-popover[data-side="right"] { margin-left: var(--popover-gap); }
1790
+ /* Laid over what opens it (a negative sideOffset), it stands on it: no gap. */
1791
+ .o-popover[data-over] { margin: 0; }
1792
+
1793
+ /* It fades in and moves 4px out from what opened it; it leaves faster than it came. */
1794
+ .o-popover[data-ending-style] { transition-timing-function: var(--vk-ease-in); }
1795
+ .o-popover:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 calc(var(--vk-spacing) * -1); }
1796
+ .o-popover[data-side="top"]:is([data-starting-style], [data-ending-style]) { translate: 0 var(--vk-spacing); }
1797
+ .o-popover[data-side="left"]:is([data-starting-style], [data-ending-style]) { translate: var(--vk-spacing) 0; }
1798
+ .o-popover[data-side="right"]:is([data-starting-style], [data-ending-style]) { translate: calc(var(--vk-spacing) * -1) 0; }
1799
+
1800
+ /* ── What an app sets once ───────────────────────────────────────────────────────────────────────────────────── */
1801
+ [data-popover-corners="lg"] .o-popover { --popover-corners: var(--vk-radius-lg); }
1802
+ [data-popover-corners="2xl"] .o-popover { --popover-corners: var(--vk-radius-2xl); }
1803
+ [data-popover-shadow="none"] .o-popover { --popover-shadow: none; }
1804
+ [data-popover-shadow="lg"] .o-popover { --popover-shadow: var(--vk-shadow-lg); }
1805
+ [data-popover-shadow="xl"] .o-popover { --popover-shadow: var(--vk-shadow-xl); }
1806
+ [data-popover-edge="subtle"] .o-popover { --popover-edge: var(--vk-border-subtle); --divider-colour: var(--vk-border-subtle); }
1807
+ [data-popover-edge="none"] .o-popover { --popover-edge: var(--vk-overlay); --divider-colour: var(--vk-border-subtle); }
1808
+ [data-popover-padding="0"] .o-popover { --popover-pad: 0px; }
1809
+ [data-popover-padding="4"] .o-popover { --popover-pad: var(--vk-spacing); }
1810
+ [data-popover-padding="12"] .o-popover { --popover-pad: calc(var(--vk-spacing) * 3); }
1811
+ [data-popover-padding="16"] .o-popover { --popover-pad: calc(var(--vk-spacing) * 4); }
1812
+ [data-popover-gap="0"] .o-popover { --popover-gap: 0px; }
1813
+ [data-popover-gap="8"] .o-popover { --popover-gap: calc(var(--vk-spacing) * 2); }
1814
+
1815
+ /* ── Its corners smooth: the smooth outline (smooth.css), Apple's curve as measured, so every browser that knows
1816
+ shape() shows it; one that doesn't keeps the corners above. The shell keeps its shadow, which a cut would take with
1817
+ it, so .o-popover-cut inside it is cut instead, and the edge's two shapes each by the same outline at its own corner,
1818
+ so the edge stays the corners' curve ─────────────────────────────────────────────────────────────────────────── */
1819
+ @supports (clip-path: shape(from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close)) {
1820
+ [data-popover-smoothing="smooth"] .o-popover { background-color: transparent; }
1821
+ [data-popover-smoothing="smooth"] .o-popover-cut { --popover-c: var(--popover-corners); background-color: var(--vk-overlay); }
1822
+ [data-popover-smoothing="smooth"] .o-popover-cut::before, [data-popover-smoothing="smooth"] .o-popover-cut::after { border-radius: 0; }
1823
+ [data-popover-smoothing="smooth"] .o-popover-cut, [data-popover-smoothing="smooth"] .o-popover-cut::before, [data-popover-smoothing="smooth"] .o-popover-cut::after {
1824
+ --smooth-t: var(--popover-c); clip-path: shape(var(--smooth-outline));
1825
+ }
1826
+ }
1827
+
1828
+ /* ── Its title and what it says, when it has them: the title text-sm at medium weight, the words quieter ──────── */
1829
+ .o-popover-title { margin: 0; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); color: var(--vk-fg); }
1830
+ .o-popover-description { margin: 0; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
1831
+
1832
+ /* Under reduced motion it just appears. */
1833
+ @media (prefers-reduced-motion: reduce) { .o-popover { transition: none; } }
1834
+
1835
+ /* Doubled, so a component's own overflow: auto in the same layer never brings the sideways scroll back. */
1836
+ [data-scrollbar][data-scrollbar] { overflow-x: hidden; }
1837
+
1838
+ .o-scrollbar { display: none; --sb-hold: var(--vk-scrollbar-hold); --sb-inset: var(--vk-scrollbar-inset); }
1839
+
1840
+ /* The browser's bar hidden from the first style, read by what stands right before the bar, not by the mark the script sets: WebKit
1841
+ never lays out again what a list holds when its bar goes after the first layout, so a mark set then left the rows 15 short. With
1842
+ no bar, on every screen; drawn, on a computer only. */
1843
+ :has(+ .o-scrollbar:not([data-drawn])) { scrollbar-width: none; }
1844
+ :has(+ .o-scrollbar:not([data-drawn]))::-webkit-scrollbar { display: none; }
1845
+
1846
+ @media (hover: hover) and (pointer: fine) {
1847
+ :has(+ .o-scrollbar[data-drawn]) { scrollbar-width: none; }
1848
+ :has(+ .o-scrollbar[data-drawn])::-webkit-scrollbar { display: none; }
1849
+
1850
+ .o-scrollbar[data-drawn] {
1851
+ --sb-in: calc(var(--sb-track, 0px) - var(--sb-end-t, 0px) - var(--sb-end-b, 0px));
1852
+ --sb-h: max(calc(var(--vk-spacing) * 6), calc(var(--sb-in) * var(--sb-len, 1)));
1853
+ display: block; position: absolute; z-index: 1; box-sizing: border-box;
1854
+ top: calc(var(--sb-top, 0px) + var(--sb-end-t, 0px)); left: calc(var(--sb-right, 0px) - var(--vk-scrollbar-size) - var(--vk-scrollbar-inset));
1855
+ width: var(--vk-scrollbar-size); height: var(--sb-h); translate: 0 calc((var(--sb-in) - var(--sb-h)) * var(--sb-at, 0));
1856
+ border-radius: var(--vk-radius-full); background-color: var(--vk-scrollbar-thumb);
1857
+ opacity: 0; pointer-events: none; touch-action: none;
1858
+ transition: opacity var(--vk-duration-slow) var(--vk-ease-out), background-color var(--vk-duration-fast) var(--vk-ease-out);
1859
+ }
1860
+ .o-scrollbar[data-scrolling] { opacity: 1; pointer-events: auto; transition-duration: var(--vk-duration-fast); }
1861
+ .o-scrollbar:is(:hover, [data-dragging]) { background-color: var(--vk-scrollbar-thumb-hovered); }
1862
+ }
1863
+
1864
+ @media (prefers-reduced-motion: reduce) { .o-scrollbar { transition: none; } }
1865
+
1866
+ .o-sheet, .o-sheet-backdrop, .o-sheet-below {
1867
+ --sheet-spring: var(--vk-spring-quick); --sheet-spring-ease: var(--vk-ease-spring-quick); --sheet-spring-time: var(--vk-duration-spring-quick);
1868
+ }
1869
+ [data-sheet-spring="smooth"] :is(.o-sheet, .o-sheet-backdrop) { --sheet-spring: var(--vk-spring-smooth); --sheet-spring-ease: var(--vk-ease-spring-smooth); --sheet-spring-time: var(--vk-duration-spring-smooth); }
1870
+ [data-sheet-spring="lively"] :is(.o-sheet, .o-sheet-backdrop) { --sheet-spring: var(--vk-spring-lively); --sheet-spring-ease: var(--vk-ease-spring-lively); --sheet-spring-time: var(--vk-duration-spring-lively); }
1871
+ .o-sheet { --sheet-radius: var(--vk-radius-2xl); --sheet-padding: var(--phone-padding, var(--page-padding, calc(var(--vk-spacing) * 6))); }
1872
+ .o-sheet { --sheet-exit: var(--vk-spring-exit); --sheet-past: var(--vk-spring-past); }
1873
+ [data-sheet-padding="12"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 3); }
1874
+ [data-sheet-padding="16"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 4); }
1875
+ [data-sheet-padding="20"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 5); }
1876
+ [data-sheet-padding="24"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 6); }
1877
+ [data-sheet-corners="lg"] .o-sheet { --sheet-radius: var(--vk-radius-lg); }
1878
+ [data-sheet-corners="xl"] .o-sheet { --sheet-radius: var(--vk-radius-xl); }
1879
+ [data-sheet-corners="3xl"] .o-sheet { --sheet-radius: var(--vk-radius-3xl); }
1880
+ [data-sheet-corners="4xl"] .o-sheet { --sheet-radius: var(--vk-radius-4xl); }
1881
+ [data-sheet-corners="5xl"] .o-sheet { --sheet-radius: var(--vk-radius-5xl); }
1882
+
1883
+ /* ── Its dim: whole at any stop, fading only below the lowest; dim and blocked travel together. It moves as the sheet
1884
+ does. A sheet on a sheet has a lighter one of its own ──────────────────────────────────────────────────────────── */
1885
+ .o-sheet-backdrop {
1886
+ position: fixed; inset: 0; z-index: var(--vk-layer-drawer); background-color: var(--vk-backdrop-sheet-light); opacity: calc(1 - var(--sheet-gone, 0));
1887
+ transition: opacity var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease));
1888
+ }
1889
+ [data-sheet-dim="deep"] .o-sheet-backdrop { background-color: var(--vk-backdrop-sheet); }
1890
+ .o-sheet-backdrop[data-stacked] { background-color: var(--vk-backdrop-stacked); }
1891
+ .o-sheet-backdrop:is([data-starting-style], [data-ending-style]) { opacity: 0; }
1892
+ .o-sheet-backdrop[data-swiping] { transition: none; }
1893
+
1894
+ /* ── What goes on under Safari's floating toolbar, in the page, where nothing fixed paints (bottom-sheet.tsx). Under full
1895
+ it goes on as the sheet does until the sheet has gone; under floating it goes on as the dim does ────────────────── */
1896
+ .o-sheet-below { position: absolute; left: 0; right: 0; height: calc(var(--vk-spacing) * 40); z-index: var(--vk-layer-drawer); pointer-events: none; }
1897
+ .o-sheet-below:is([data-sheet-form="floating"], [data-sheet-form="blend"]) {
1898
+ opacity: calc(1 - var(--sheet-gone, 0)); transition: opacity var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease));
1899
+ @starting-style { opacity: 0; }
1900
+ }
1901
+
1902
+ /* ── Where it sits: from the bottom, the gesture its own from the first touch ────────────────────────────────────── */
1903
+ .o-sheet-viewport { position: fixed; inset: 0; z-index: var(--vk-layer-drawer); display: flex; align-items: flex-end; justify-content: center; touch-action: none; }
1904
+ .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 2); }
1905
+ [data-sheet-margin="4"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 1); }
1906
+ [data-sheet-margin="6"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 1.5); }
1907
+ [data-sheet-margin="10"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 2.5); }
1908
+ [data-sheet-margin="12"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 3); }
1909
+ .o-sheet-viewport[data-sheet-form="floating"] {
1910
+ padding: 0 calc(var(--sheet-gap) + var(--safe-area-right, env(safe-area-inset-right, 0px))) var(--sheet-gap) calc(var(--sheet-gap) + var(--safe-area-left, env(safe-area-inset-left, 0px)));
1911
+ }
1912
+ /* Coming in, over all of it, the sheet and its dim: a press lands here and nothing in it is pressed. After the sheet in
1913
+ the page, so it is drawn and pressed over it. */
1914
+ .o-sheet-shield { position: absolute; inset: 0; }
1915
+
1916
+ /* ── It: moved only by transform, from its stop and the finger; on a spring whenever no finger holds it. Base UI holds
1917
+ transition: none on it through a drag, inline, and takes that away itself at the release: a rule of ours would outlive
1918
+ that by a moment, in which Base UI reads its height, and a sheet let go to close would jump to its end ──────────── */
1919
+ .o-sheet {
1920
+ position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; min-height: 0;
1921
+ background-color: var(--vk-overlay); color: var(--vk-fg); box-shadow: var(--vk-shadow-2xl); outline: none;
1922
+ touch-action: none; will-change: transform; transform-origin: 50% 0;
1923
+ transform: translateY(calc(var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px) + var(--sheet-catch, 0px)));
1924
+ transition: transform var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), clip-path var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), transform-origin var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), scale var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), height var(--sheet-spring-time) var(--sheet-spring-ease);
1925
+ }
1926
+ .o-sheet:is([data-starting-style], [data-ending-style]) { transform: translateY(calc(100% + var(--sheet-margin, 0px))); }
1927
+ .o-sheet[data-swiping] { user-select: none; }
1928
+ /* Under a finger where it can drag, a floating sheet or a blend below full grows a little, ready to be moved, and goes back on its spring. It is
1929
+ scale and an animation, since from the touch Base UI writes transform and transition: none inline. */
1930
+ @keyframes o-sheet-press { from { scale: var(--sheet-scale, 1); } }
1931
+ .o-sheet[data-sheet-pressed]:is([data-sheet-form="floating"], [data-sheet-form="blend"]:not([data-expanded])) { scale: calc(var(--sheet-scale, 1) * var(--vk-sheet-press-scale)); animation: o-sheet-press var(--vk-duration-slow) var(--vk-ease-out); }
1932
+
1933
+ /* Full: edge to edge, rounded on top, just under the status bar. Under it, the sheet goes on past its foot, so nothing
1934
+ shows when it is pulled above its top stop or swings past it. */
1935
+ .o-sheet:is([data-sheet-form="full"], [data-sheet-form="blend"]) {
1936
+ height: calc(100% - var(--safe-area-top, env(safe-area-inset-top, 0px)) - var(--vk-spacing) * 2.5); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
1937
+ }
1938
+ .o-sheet:is([data-sheet-form="full"], [data-sheet-form="blend"], [data-sheet-form="edge"])::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 100%; background-color: inherit; }
1939
+ /* Edge: full's shape, as tall as what it holds, as floating is. Its body clears the home bar and no more. */
1940
+ .o-sheet[data-sheet-form="edge"] { height: var(--sheet-fit, auto); max-height: calc(100% - var(--safe-area-top, env(safe-area-inset-top, 0px)) - var(--vk-spacing) * 12); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; }
1941
+ .o-sheet[data-sheet-form="edge"] .o-sheet-body { padding-bottom: calc(var(--vk-spacing) * 3 + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px))); }
1942
+ /* Floating: the same margin from the screen's left, right and bottom, past the home bar, which what it holds clears instead.
1943
+ Its bottom corners follow the phone's own: the screen's curve less the margin, or Corners on a screen no token knows. Its
1944
+ top corners, which stand on no screen's edge, take Corners.
1945
+ As tall as what is in it; past its most, its body scrolls. */
1946
+ .o-sheet[data-sheet-form="floating"] {
1947
+ --sheet-margin: var(--sheet-gap); --sheet-curve: calc(var(--sheet-screen) - var(--sheet-gap));
1948
+ --sheet-home: calc(var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)) - var(--sheet-gap));
1949
+ transform-origin: 50% 100%; height: var(--sheet-fit, auto); max-height: calc(100% - var(--safe-area-top, env(safe-area-inset-top, 0px)) - var(--vk-spacing) * 12); border-radius: var(--sheet-radius) var(--sheet-radius) var(--sheet-curve, var(--sheet-radius)) var(--sheet-curve, var(--sheet-radius)); overflow: clip;
1950
+ }
1951
+
1952
+ /* Blend: the two forms as one. It is laid out once, at full's width and height, and at its lower stops the whole of it is scaled
1953
+ down to floating's width, its head, buttons, text and padding together, and cut to floating's foot and bottom corners. From
1954
+ the stop under full it grows to edge to edge with the sheet, as one piece: nothing is laid out again, so no line wraps
1955
+ differently. It cuts its own foot, so it casts no shadow. It scales from where it stands, so its stops stay where they are. */
1956
+ .o-sheet[data-sheet-form="blend"] {
1957
+ --sheet-margin: var(--sheet-gap); --sheet-curve: calc(var(--sheet-screen) - var(--sheet-gap));
1958
+ --sheet-round: calc(var(--sheet-curve, var(--sheet-radius)) * (1 - var(--sheet-rise, 0)) / var(--sheet-scale, 1));
1959
+ scroll-margin-left: var(--sheet-gap); scale: var(--sheet-scale, 1);
1960
+ transform-origin: 50% calc(var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px));
1961
+ clip-path: inset(0 0 var(--sheet-cut, 0px) round var(--sheet-radius) var(--sheet-radius) var(--sheet-round) var(--sheet-round));
1962
+ }
1963
+
1964
+ /* Its corners smooth: the same corners, drawn as an outline, so every browser that knows shape() shows them; one that doesn't
1965
+ keeps the quarter circles above. Each corner is three curves, Apple's own sheet as measured (smoothing 70%): the bend starts
1966
+ 1.7 radii from the corner and meets the quarter circle at the tip, so a corner stands as large as a round one and only comes
1967
+ in softer. It is the one smooth outline (smooth.css): --smooth-t the top corners' radius, --smooth-b the bottom ones',
1968
+ --smooth-foot where it ends. A blend cuts itself. Full and floating cast a shadow, which a cut would take with it, so they keep it
1969
+ and .o-sheet-cut, inside them, is cut and carries their ground instead. */
1970
+ /* What it holds is cut along its corners, whichever way they bend, so nothing in it, a Glass button's wide shadow, reaches past
1971
+ the curve. It is a cut of its own, not a clip-path: under one, Firefox loses a sticky header's blur and squares what it cuts. */
1972
+ .o-sheet-cut { display: flex; flex-direction: column; flex: 1; width: 100%; min-height: 0; background-color: inherit; border-radius: inherit; overflow: clip; }
1973
+ @supports (clip-path: shape(from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close)) {
1974
+ .o-sheet:not([data-sheet-smoothing="round"] *) { --smooth-t: var(--sheet-radius); --smooth-b: 0px; --smooth-foot: 100%; --sheet-outline: shape(var(--smooth-outline)); }
1975
+ .o-sheet[data-sheet-form="floating"]:not([data-sheet-smoothing="round"] *) { --smooth-b: var(--sheet-curve, var(--sheet-radius)); }
1976
+ .o-sheet[data-sheet-form="blend"]:not([data-sheet-smoothing="round"] *) { --smooth-b: var(--sheet-round); --smooth-foot: calc(100% - var(--sheet-cut, 0px)); clip-path: var(--sheet-outline); }
1977
+ .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) { background-color: transparent; }
1978
+ .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *)::after { background-color: var(--vk-overlay); }
1979
+ .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) > .o-sheet-cut { background-color: var(--vk-overlay); clip-path: var(--sheet-outline); }
1980
+ }
1981
+
1982
+ /* A sheet on a sheet: the one below steps back and stays still; only the top one is live. */
1983
+ .o-sheet[data-nested-drawer-open] { scale: var(--vk-push-scale); }
1984
+
1985
+ /* ── Its handle, then its head, the drag's own ground. Its head is the one header (phone-header.css), standing under the
1986
+ handle; the phone header's options reach it here too. With no head the handle stands alone, its drag a little taller ───────── */
1987
+ .o-sheet-handle { flex: none; align-self: center; width: calc(var(--vk-spacing) * 9); height: calc(var(--vk-spacing) * 1.25); margin-block: calc(var(--vk-spacing) * 1) calc(var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-full); background-color: var(--vk-sheet-handle); }
1988
+ .o-sheet-handle:has(+ .o-sheet-body) { margin-bottom: calc(var(--vk-spacing) * 3); }
1989
+ .o-sheet-head { flex: none; box-sizing: border-box; min-width: 0; user-select: none; }
1990
+ /* The buttons in its corners stand as far from the top as from the sides: the row starts under the handle's 11. */
1991
+ .o-sheet-row { margin: calc(var(--sheet-padding) - var(--vk-spacing) * 2.75) 0 calc(var(--vk-spacing) * 2); }
1992
+ /* Its buttons: Its head says which of the two shows (bottom-sheet.tsx). */
1993
+ [data-phone-header-surface="flat"] .o-sheet-row .o-sheet-glass, .o-sheet-row .o-sheet-plain:not([data-phone-header-surface="flat"] *) { display: none; }
1994
+ .o-sheet-row .o-sheet-glass:not([data-phone-header-surface="flat"] *) { display: grid; }
1995
+ /* One that holds a word lays its icon and its word out in a line, as the Glass button does. */
1996
+ .o-sheet-row .o-sheet-glass.o-glass-button-worded:not([data-phone-header-surface="flat"] *) { display: inline-flex; }
1997
+ /* Glass: its head floats. The soft edge starts at the sheet's top, on the sheet's ground, and the body runs up under it and the
1998
+ handle, by as much as they stand tall, so what scrolls passes under the buttons and what it holds still starts where it did. */
1999
+ .o-sheet-handle:not([data-phone-header-surface="flat"] *) { position: relative; z-index: 2; }
2000
+ .o-sheet-head:not([data-phone-header-surface="flat"] *) { position: relative; z-index: 1; --hd-bar-room: var(--sheet-padding); --soft-edge-ground: var(--vk-overlay); }
2001
+ .o-sheet-head + .o-sheet-body:not([data-phone-header-surface="flat"] *) { --sheet-under: calc(var(--sheet-padding) + var(--vk-spacing) * 13); }
2002
+ /* Its head stands on the sheet's padding, not the page's, which phone-header.css reads; flat's own, below, still wins. */
2003
+ .o-sheet-head > .o-sheet-row { padding-inline: var(--sheet-padding); }
2004
+ .o-sheet-row > .o-hd-bar-edge { border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; }
2005
+ /* Flat, in a sheet: quiet Buttons in a shorter row. A plain button is a glyph in a 36px target, 12
2006
+ inside it, so the target's edge stands 12 short of the padding. With nothing on its left, a title at the left stands on the
2007
+ padding, and Back's arrow does. */
2008
+ [data-phone-header-surface="flat"] .o-sheet-row { gap: 0; height: calc(var(--vk-spacing) * 9); margin: calc(var(--sheet-padding) - var(--vk-spacing) * 5.75) 0 calc(var(--vk-spacing) * 1); padding-inline: calc(var(--sheet-padding) - var(--vk-spacing) * 3); }
2009
+ [data-phone-header-surface="flat"] .o-sheet-row > .o-hd-bar-side { min-width: 0; }
2010
+ [data-phone-header-surface="flat"] .o-sheet-row[data-title-at="left"]:not([data-sides]) { padding-left: var(--sheet-padding); }
2011
+ [data-phone-header-surface="flat"] .o-sheet-row[data-title-at="left"] .o-sheet-back { margin: 0 calc(var(--vk-spacing) * 1) 0 calc(var(--vk-spacing) * -3); }
2012
+
2013
+ /* ── Its body scrolls only at full height; lower, a drag up raises the sheet. Its foot clears the home bar ─────────── */
2014
+ .o-sheet-body {
2015
+ flex: 1; min-height: 0; overflow-y: auto; outline: none; touch-action: pan-y; overscroll-behavior: contain;
2016
+ margin-top: calc(-1 * var(--sheet-under, 0px));
2017
+ padding: calc(var(--vk-spacing) * 2 + var(--sheet-under, 0px)) var(--sheet-padding) max(calc(var(--vk-spacing) * 8 + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px))), var(--sheet-keyboard, 0px));
2018
+ }
2019
+ .o-sheet:is([data-sheet-form="full"], [data-sheet-form="blend"]):not([data-expanded]) .o-sheet-body { overflow-y: hidden; }
2020
+ .o-sheet[data-sheet-form="floating"] .o-sheet-body { padding: calc(var(--vk-spacing) * 1 + var(--sheet-under, 0px)) calc(var(--sheet-padding) - var(--vk-spacing) * 2) max(calc(var(--vk-spacing) * 2), var(--sheet-home)); }
2021
+
2022
+ /* ── Its foot: over the body, on the sheet's ground, a line above it; it stays at the screen's foot at every stop, moved up
2023
+ by as much as the sheet is moved down, on the same spring, and leaves with the sheet below its lowest ──────────── */
2024
+ .o-sheet-foot {
2025
+ flex: none; position: relative; z-index: 1; background-color: var(--vk-overlay); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
2026
+ padding: calc(var(--vk-spacing) * 3) var(--sheet-padding) calc(var(--vk-spacing) * 3 + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)));
2027
+ transform: translateY(calc(-1 * var(--sheet-lift, 0px)));
2028
+ transition: transform var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease));
2029
+ }
2030
+ .o-sheet[data-sheet-form="blend"] .o-sheet-foot { transform: translateY(calc(-1 * var(--sheet-cut, 0px))); }
2031
+ .o-sheet[data-swiping] .o-sheet-foot { transition: none; }
2032
+ .o-sheet[data-sheet-form="floating"] .o-sheet-foot { padding-bottom: max(calc(var(--vk-spacing) * 3), var(--sheet-home)); }
2033
+
2034
+ /* A step coming into a floating sheet, from the right, or from the left going back; the sheet resizes on its spring. */
2035
+ @keyframes o-sheet-step { from { opacity: 0; translate: var(--step-from) 0; } }
2036
+ .o-sheet-step { --step-from: calc(var(--vk-spacing) * 6); animation: o-sheet-step var(--vk-duration-slow) var(--vk-ease-out); }
2037
+ .o-sheet-step[data-back] { --step-from: calc(var(--vk-spacing) * -6); }
2038
+ /* A step takes the focus as it comes, with no ring: what it holds is what is pressed next. While it slides, the body never scrolls
2039
+ sideways (a full Sheet's body scrolls, and a step's slide would otherwise widen it). */
2040
+ .o-sheet-step { outline: none; }
2041
+ .o-sheet-body:has(.o-sheet-step) { overflow-x: hidden; }
2042
+
2043
+ /* Less motion: a fade, no scale. */
2044
+ @media (prefers-reduced-motion: reduce) {
2045
+ .o-sheet { transition: transform var(--vk-duration-fast) var(--vk-ease-out), opacity var(--vk-duration-base) var(--vk-ease-out); }
2046
+ .o-sheet:is([data-starting-style], [data-ending-style]) { opacity: 0; transform: translateY(var(--drawer-snap-point-offset, 0px)); }
2047
+ .o-sheet[data-nested-drawer-open] { scale: 1; }
2048
+ .o-sheet-backdrop { transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
2049
+ .o-sheet-step { animation: none; }
2050
+ }
2051
+
2052
+ /* ── The arc, as a frame that names a kind other than the tail draws it (nothing picked is the tail, below) ─────────────────────────────────────────────────────────────────────── */
2053
+ .o-spinner {
2054
+ --o-spinner-turn: var(--vk-spinner-turn); --o-spinner-breath: var(--vk-spinner-breath); --o-spinner-weight: 1;
2055
+ flex: none; display: inline-block; color: inherit;
2056
+ animation: vk-spin-turn var(--o-spinner-turn) linear infinite; animation-delay: calc(var(--o-spinner-turn) * -0.25);
2057
+ }
2058
+ .o-spinner > :is(.o-spinner-track, .o-spinner-arc) { fill: none; stroke: currentColor; stroke-width: calc(var(--o-spinner-l) * var(--o-spinner-weight) * 1px); }
2059
+ .o-spinner > :is(.o-spinner-track, .o-spinner-bars, .o-spinner-dot, .o-spinner-ring) { display: none; }
2060
+ .o-spinner-track { opacity: 0.14; }
2061
+ .o-spinner-arc {
2062
+ stroke-linecap: round; stroke-dasharray: 1 200; stroke-dashoffset: 0;
2063
+ animation: vk-spin-breath var(--o-spinner-breath) linear infinite; animation-delay: calc(var(--o-spinner-breath) * -0.5);
2064
+ }
2065
+
2066
+ /* ── Breath, the arc's. Slower: the same at two thirds of its speed. Never a dot: the same two beats, eased, between an eighth
2067
+ and five eighths of the ring. Soft: both ends ease out and back round a middle that turns steadily. Barely: the same,
2068
+ between a third and a half of the ring ───────────────────────────────────────────────────────────────────────── */
2069
+ [data-spinner-breath="slow"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 1.45); --o-spinner-breath: calc(var(--vk-spinner-breath) * 1.45); }
2070
+ [data-spinner-breath="open"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 2.2); --o-spinner-breath: calc(var(--vk-spinner-breath) * 1.6); }
2071
+ [data-spinner-breath="soft"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 0.8); --o-spinner-breath: calc(var(--vk-spinner-breath) * 1.85); }
2072
+ [data-spinner-breath="barely"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 0.7); --o-spinner-breath: calc(var(--vk-spinner-breath) * 2.15); }
2073
+ [data-spinner-breath="open"] .o-spinner-arc { animation-name: vk-spin-open; animation-timing-function: var(--vk-ease-in-out); }
2074
+ [data-spinner-breath="soft"] .o-spinner-arc { animation-name: vk-spin-soft; animation-timing-function: var(--vk-ease-in-out); }
2075
+ [data-spinner-breath="barely"] .o-spinner-arc { animation-name: vk-spin-barely; animation-timing-function: var(--vk-ease-in-out); }
2076
+
2077
+ /* ── Line and Track, a ring's: its line lighter, and a faint ring under it ──────────────────────────────────────── */
2078
+ [data-spinner-line="thin"] .o-spinner { --o-spinner-weight: 0.65; }
2079
+ [data-spinner-track="faint"] .o-spinner > .o-spinner-track { display: inline; }
2080
+
2081
+ /* ── Kind. These come after Breath, so a kind that isn't the arc takes its own pace and stills the arc's breath.
2082
+ Tail: the ring fading out behind its head, steady, only its place changing. The fade is painted on the drawing's own box
2083
+ and cut to the ring's line; the arc is its round head, a dot where the fade ends.
2084
+ Two halves: two arcs a fifth of the ring each, opposite each other, turning slowly ─────────────────────────────── */
2085
+ [data-spinner-kind="tail"] .o-spinner, .o-spinner:not([data-spinner-kind] *) {
2086
+ --o-spinner-turn: calc(var(--vk-spinner-turn) * 0.65);
2087
+ --o-spinner-in: calc((20 - var(--o-spinner-l) * var(--o-spinner-weight) / 2) * 4%); --o-spinner-out: calc((20 + var(--o-spinner-l) * var(--o-spinner-weight) / 2) * 4%);
2088
+ border-radius: var(--vk-radius-full);
2089
+ background-image: conic-gradient(transparent 0turn, color-mix(in srgb, currentColor 48%, transparent) 0.133turn, color-mix(in srgb, currentColor 73%, transparent) 0.267turn,
2090
+ color-mix(in srgb, currentColor 86%, transparent) 0.4turn, color-mix(in srgb, currentColor 93%, transparent) 0.533turn, transparent 0.533turn);
2091
+ -webkit-mask-image: radial-gradient(farthest-side, transparent calc(var(--o-spinner-in) - 0.5px), black var(--o-spinner-in), black var(--o-spinner-out), transparent calc(var(--o-spinner-out) + 0.5px));
2092
+ mask-image: radial-gradient(farthest-side, transparent calc(var(--o-spinner-in) - 0.5px), black var(--o-spinner-in), black var(--o-spinner-out), transparent calc(var(--o-spinner-out) + 0.5px));
2093
+ }
2094
+ [data-spinner-kind="tail"] .o-spinner-arc, .o-spinner-arc:not([data-spinner-kind] *) { animation: none; stroke-dasharray: 0.01 200; stroke-dashoffset: -35.57; }
2095
+ [data-spinner-kind="halves"] .o-spinner { --o-spinner-turn: calc(var(--vk-spinner-turn) * 1.1); }
2096
+ [data-spinner-kind="halves"] .o-spinner-arc { animation: none; stroke-dasharray: 25.13 37.7; stroke-dashoffset: 0; }
2097
+
2098
+ /* Bars and the pulse stand still as a whole: only their parts move. */
2099
+ :is([data-spinner-kind="bars"], [data-spinner-kind="pulse"]) .o-spinner { animation: none; }
2100
+ :is([data-spinner-kind="bars"], [data-spinner-kind="pulse"]) .o-spinner > :is(.o-spinner-track, .o-spinner-arc) { display: none; }
2101
+
2102
+ /* Bars: three growing from their middle, from three eighths of their height to all of it, one beat every half turn, each a
2103
+ fifth of a beat after the one before. Eased: each bar slows at its ends, one beat a breath. From the foot: five, from a
2104
+ fifth of their height, each at its own pace (--o-spinner-pace) and place in it (--o-spinner-at) */
2105
+ [data-spinner-kind="bars"]:not([data-spinner-bars="foot"]) .o-spinner > .o-spinner-bars:not(.o-spinner-foot),
2106
+ [data-spinner-kind="bars"][data-spinner-bars="foot"] .o-spinner > .o-spinner-foot { display: inline; }
2107
+ .o-spinner-bars > rect {
2108
+ --o-spinner-beat: calc(var(--vk-spinner-turn) * 0.5);
2109
+ fill: currentColor; transform-box: fill-box; transform-origin: center;
2110
+ animation: vk-spin-bar var(--o-spinner-beat) linear infinite; animation-delay: calc(var(--o-spinner-beat) * var(--o-spinner-at));
2111
+ }
2112
+ [data-spinner-bars="eased"] .o-spinner-bars > rect { --o-spinner-beat: var(--vk-spinner-breath); animation-timing-function: var(--vk-ease-in-out); }
2113
+ .o-spinner-foot > rect {
2114
+ --o-spinner-beat: calc(var(--vk-spinner-breath) * var(--o-spinner-pace)); transform-origin: 50% 100%;
2115
+ animation-name: vk-spin-foot; animation-timing-function: var(--vk-ease-in-out); animation-delay: calc(var(--vk-spinner-breath) * var(--o-spinner-at));
2116
+ }
2117
+
2118
+ /* The pulse: a dot, and a ring that leaves it and fades, once every four fifths of a turn. */
2119
+ [data-spinner-kind="pulse"] .o-spinner > :is(.o-spinner-dot, .o-spinner-ring) { display: inline; }
2120
+ .o-spinner-dot { fill: currentColor; }
2121
+ .o-spinner-ring {
2122
+ --o-spinner-beat: calc(var(--vk-spinner-turn) * 0.8);
2123
+ fill: none; stroke: currentColor; stroke-width: 3.33px; opacity: 0;
2124
+ animation: vk-spin-ring var(--o-spinner-beat) var(--vk-ease-out) infinite, vk-spin-fade var(--o-spinner-beat) linear infinite;
2125
+ }
2126
+
2127
+ /* ── The loading bar: along the top of the box that holds what is loading again, half a spacing step high, in the brand. A
2128
+ third of it slides across, in the Progress's time and on its curve; under Loading bar › Soft ends (data-spinner-loading)
2129
+ a longer piece fades out at both ends and takes a little longer. What it holds dims to loading-dim, quickly, and comes
2130
+ back in duration-base ────────────────────────────────────────────────────────────────────────────────────────── */
2131
+ .o-loading { position: relative; min-width: 0; }
2132
+ .o-loading-bar { --o-loading-share: 0.35; position: absolute; inset: 0 0 auto 0; z-index: 1; display: block; height: calc(var(--vk-spacing) * 0.5); overflow: hidden; pointer-events: none; }
2133
+ .o-loading-bar::before {
2134
+ content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--o-loading-share) * 100%); background-color: var(--vk-brand);
2135
+ animation: vk-loading-slide calc(var(--vk-progress-slide) * 0.85) var(--vk-ease-in-out) infinite;
2136
+ }
2137
+ [data-spinner-loading="soft"] .o-loading-bar, .o-loading-bar:not([data-spinner-loading] *) { --o-loading-share: 0.48; }
2138
+ [data-spinner-loading="soft"] .o-loading-bar::before, .o-loading-bar:not([data-spinner-loading] *)::before {
2139
+ background-color: transparent; animation-duration: calc(var(--vk-progress-slide) * 1.15);
2140
+ background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--vk-brand) 50%, transparent) 17%, color-mix(in srgb, var(--vk-brand) 75%, transparent) 33%,
2141
+ color-mix(in srgb, var(--vk-brand) 88%, transparent) 46% 54%, color-mix(in srgb, var(--vk-brand) 75%, transparent) 67%, color-mix(in srgb, var(--vk-brand) 50%, transparent) 83%, transparent);
2142
+ }
2143
+ .o-loading-held { min-width: 0; transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
2144
+ .o-loading[data-loading] > .o-loading-held { opacity: var(--vk-loading-dim); transition-duration: var(--vk-duration-fast); }
2145
+
2146
+ /* Under reduced motion a ring stops breathing and turns slowly, the bars and the pulse stand still, and the loading bar stands
2147
+ across its box in the pale blue, as the Progress's does. */
2148
+ @media (prefers-reduced-motion: reduce) {
2149
+ .o-spinner { animation-duration: var(--vk-spinner-turn-reduced); }
2150
+ .o-spinner-arc { stroke-dasharray: 80 200; }
2151
+ :is(.o-spinner-arc, [data-spinner-breath] .o-spinner-arc) { animation: none; }
2152
+ :is(.o-spinner-bars, [data-spinner-bars] .o-spinner-bars) > rect { animation: none; }
2153
+ .o-spinner-bars > rect:nth-child(odd) { transform: scaleY(0.6); }
2154
+ .o-spinner-ring { animation: none; opacity: 0.4; }
2155
+ .o-loading-bar::before, [data-spinner-loading] .o-loading-bar::before, .o-loading-bar:not([data-spinner-loading] *)::before { animation: none; width: 100%; background-image: none; background-color: var(--vk-brand-subtler); }
2156
+ .o-loading-held { transition: none; }
2157
+ }
2158
+ @keyframes vk-spin-turn { to { transform: rotate(360deg); } }
2159
+ @keyframes vk-spin-breath {
2160
+ 0% { stroke-dasharray: 1 200; stroke-dashoffset: 0; }
2161
+ 50% { stroke-dasharray: 90 200; stroke-dashoffset: -35; }
2162
+ 100% { stroke-dasharray: 90 200; stroke-dashoffset: -124; }
2163
+ }
2164
+ @keyframes vk-spin-open {
2165
+ 0% { stroke-dasharray: 15.08 110.58; stroke-dashoffset: 0; }
2166
+ 50% { stroke-dasharray: 77.91 47.75; stroke-dashoffset: -30.16; }
2167
+ 100% { stroke-dasharray: 15.08 110.58; stroke-dashoffset: -125.66; }
2168
+ }
2169
+ @keyframes vk-spin-soft {
2170
+ 0%, 100% { stroke-dasharray: 27.65 98.02; stroke-dashoffset: 13.82; }
2171
+ 50% { stroke-dasharray: 72.89 52.78; stroke-dashoffset: 36.44; }
2172
+ }
2173
+ @keyframes vk-spin-barely {
2174
+ 0%, 100% { stroke-dasharray: 42.73 82.94; stroke-dashoffset: 21.36; }
2175
+ 50% { stroke-dasharray: 62.83 62.83; stroke-dashoffset: 31.42; }
2176
+ }
2177
+ @keyframes vk-spin-bar { 0%, 100% { transform: scaleY(0.375); } 50% { transform: scaleY(1); } }
2178
+ @keyframes vk-spin-foot { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(1); } }
2179
+ @keyframes vk-spin-ring { from { r: 8.33px; } to { r: 21.88px; } }
2180
+ @keyframes vk-spin-fade { from { opacity: 0.7; } to { opacity: 0; } }
2181
+ @keyframes vk-loading-slide { from { transform: translateX(-100%); } to { transform: translateX(calc(100% / var(--o-loading-share))); } }
2182
+
2183
+ /* ── The Status, as nothing picked draws it ───────────────────────────────────────────────────────────── */
2184
+ .o-status {
2185
+ --st-g0: calc(var(--vk-spacing) * 3.5); --st-g: var(--st-g0); --st-h: calc(var(--vk-spacing) * 5.5); --st-px: calc(var(--vk-spacing) * 2);
2186
+ --st-cut: var(--vk-ground);
2187
+ position: relative; flex: none; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); height: var(--st-h);
2188
+ color: var(--vk-fg); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
2189
+ }
2190
+ .o-status-svg { display: none; flex: none; height: var(--st-g); width: calc(var(--st-g) * var(--st-w, 1)); overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; color: var(--st-hue); }
2191
+ .o-status-fill, .o-status-num { fill: currentColor; stroke: none; }
2192
+ .o-status-mark { stroke: var(--st-cut); }
2193
+ .o-status-off { opacity: 0.22; }
2194
+ .o-status-spin { align-items: center; justify-content: center; width: var(--st-g); }
2195
+ .o-list .o-status { --st-cut: var(--vk-overlay); }
2196
+
2197
+ /* The glyph alone, as a mark in a list or a menu. */
2198
+ .o-status.o-status-glyph { height: auto; }
2199
+
2200
+ /* ── Sizes: sm in a dense row or a cell, md in a list, lg at the top of a record, xl a record's head on a phone ── */
2201
+ .o-status.o-status-sm { --st-g0: calc(var(--vk-spacing) * 3); --st-h: calc(var(--vk-spacing) * 5); --st-px: calc(var(--vk-spacing) * 1.75); gap: calc(var(--vk-spacing) * 1.25); }
2202
+ .o-status.o-status-lg { --st-g0: calc(var(--vk-spacing) * 4.25); --st-h: calc(var(--vk-spacing) * 7); --st-px: calc(var(--vk-spacing) * 2.5); gap: calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-sm); }
2203
+ .o-status.o-status-xl { --st-g0: calc(var(--vk-spacing) * 4.5); --st-h: calc(var(--vk-spacing) * 8); --st-px: calc(var(--vk-spacing) * 3); gap: calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-base); }
2204
+
2205
+ /* ── Mark: the dot where nothing is picked, the Outright look's pick, or the one picked; a kind's place shows its own unless None is ── */
2206
+ .o-status-svg[data-mark="dot"]:not([data-status-mark] *), .o-status-svg[data-mark="own"] { display: block; }
2207
+ .o-status-svg.o-status-spin[data-mark="own"] { display: inline-flex; }
2208
+ [data-status-mark] .o-status-svg[data-mark="quarters"] { display: none; }
2209
+ [data-status-mark="quarters"] .o-status-svg[data-mark="quarters"], [data-status-mark="linear"] .o-status-svg[data-mark="linear"],
2210
+ [data-status-mark="segments"] .o-status-svg[data-mark="segments"], [data-status-mark="progress"] .o-status-svg[data-mark="progress"],
2211
+ [data-status-mark="pie"] .o-status-svg[data-mark="pie"], [data-status-mark="square"] .o-status-svg[data-mark="square"],
2212
+ [data-status-mark="dot"] .o-status-svg[data-mark="dot"], [data-status-mark="dots"] .o-status-svg[data-mark="dots"],
2213
+ [data-status-mark="bar"] .o-status-svg[data-mark="bar"], [data-status-mark="signal"] .o-status-svg[data-mark="signal"],
2214
+ [data-status-mark="number"] .o-status-svg[data-mark="number"], [data-status-mark="stroke"] .o-status-svg[data-mark="stroke"] { display: block; }
2215
+ [data-status-mark="none"] .o-status-svg[data-mark="own"] { display: none; }
2216
+ /* A list's mark alone has nothing else to say where it stands: under None it is the dot. */
2217
+ [data-status-mark="none"] .o-status-glyph .o-status-svg[data-mark="dot"], [data-status-mark="none"] .o-status-glyph .o-status-svg[data-mark="own"] { display: block; }
2218
+ [data-status-mark="none"] .o-status-glyph .o-status-svg.o-status-spin[data-mark="own"] { display: inline-flex; }
2219
+
2220
+ /* ── Colour by meaning, every place's own: the start the brand, a step between information; then success, danger, warning,
2221
+ and the subtlest grey for what is put away; the rest of a run's, a health's and a publication's places grey ──── */
2222
+ .o-status[data-place="start"] {
2223
+ --st-hue: var(--vk-fg-accent); --st-soft: var(--vk-brand-subtlest); --st-fill: var(--vk-brand-subtler); --st-fg: var(--vk-fg-accent);
2224
+ --st-bold: var(--vk-brand); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-border-accent);
2225
+ }
2226
+ .o-status:is([data-place="between"], [data-place="running"], [data-place="scheduled"]) {
2227
+ --st-hue: var(--vk-info); --st-soft: var(--vk-info-subtlest); --st-fill: var(--vk-info-subtler); --st-fg: var(--vk-info);
2228
+ --st-bold: var(--vk-info-bold); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-border-info);
2229
+ }
2230
+ .o-status:is([data-place="won"], [data-place="succeeded"], [data-place="on-track"], [data-place="live"]) {
2231
+ --st-hue: var(--vk-success); --st-soft: var(--vk-success-subtlest); --st-fill: var(--vk-success-subtler); --st-fg: var(--vk-success);
2232
+ --st-bold: var(--vk-success-bold); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-border-success);
2233
+ }
2234
+ .o-status:is([data-place="lost"], [data-place="failed"], [data-place="off-track"]) {
2235
+ --st-hue: var(--vk-danger); --st-soft: var(--vk-danger-subtlest); --st-fill: var(--vk-danger-subtler); --st-fg: var(--vk-danger);
2236
+ --st-bold: var(--vk-danger-bold); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-border-danger);
2237
+ }
2238
+ .o-status:is([data-place="risk"], [data-place="at-risk"], [data-place="paused"]) {
2239
+ --st-hue: var(--vk-warning); --st-soft: var(--vk-warning-subtlest); --st-fill: var(--vk-warning-subtler); --st-fg: var(--vk-warning);
2240
+ --st-bold: var(--vk-warning-bold); --st-on: var(--vk-fg-warning-inverse); --st-edge: var(--vk-border-warning);
2241
+ }
2242
+ .o-status:is([data-place="archived"], [data-place="ended"]),
2243
+ [data-status-colour="quiet"] .o-status[data-place="lost"] {
2244
+ --st-hue: var(--vk-fg-subtlest); --st-soft: var(--vk-neutral); --st-fill: var(--vk-neutral-hovered); --st-fg: var(--vk-fg-subtle);
2245
+ --st-bold: var(--vk-neutral-hovered); --st-on: var(--vk-fg); --st-edge: var(--vk-border-bold);
2246
+ }
2247
+ .o-status:is([data-place="queued"], [data-place="cancelled"], [data-place="skipped"], [data-place="no-update"], [data-place="draft"]),
2248
+ :is([data-status-colour="quiet"], [data-status-colour="groups"]) .o-status[data-place="start"],
2249
+ [data-status-colour="quiet"] .o-status[data-place="between"] {
2250
+ --st-hue: var(--vk-fg-subtle); --st-soft: var(--vk-neutral); --st-fill: var(--vk-neutral-hovered); --st-fg: var(--vk-fg-subtle);
2251
+ --st-bold: var(--vk-neutral-hovered); --st-on: var(--vk-fg); --st-edge: var(--vk-border-bold);
2252
+ }
2253
+
2254
+ /* ── Colour › Each step its own: the step's own colour where it is given one (data-colour), else its place's on the canvas: the
2255
+ start blue, its steps teal, purple and pink, won green, lost red, at risk amber ──────────────────────── */
2256
+ [data-status-colour="step"] :is(.o-status[data-colour="blue"], .o-status:not([data-colour])[data-place="start"]) {
2257
+ --st-hue: var(--vk-label-blue); --st-soft: var(--vk-label-blue-soft); --st-fill: var(--vk-label-blue-fill); --st-fg: var(--vk-label-blue-strong); --st-bold: var(--vk-blue-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-blue-edge);
2258
+ }
2259
+ [data-status-colour="step"] :is(.o-status[data-colour="teal"], .o-status:not([data-colour])[data-place="between"][data-quarters="1"]) {
2260
+ --st-hue: var(--vk-label-teal); --st-soft: var(--vk-label-teal-soft); --st-fill: var(--vk-label-teal-fill); --st-fg: var(--vk-label-teal-strong); --st-bold: var(--vk-teal-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-teal-edge);
2261
+ }
2262
+ [data-status-colour="step"] :is(.o-status[data-colour="purple"], .o-status:not([data-colour])[data-place="between"][data-quarters="2"]) {
2263
+ --st-hue: var(--vk-label-purple); --st-soft: var(--vk-label-purple-soft); --st-fill: var(--vk-label-purple-fill); --st-fg: var(--vk-label-purple-strong); --st-bold: var(--vk-purple-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-purple-edge);
2264
+ }
2265
+ [data-status-colour="step"] :is(.o-status[data-colour="pink"], .o-status:not([data-colour])[data-place="between"][data-quarters="3"]) {
2266
+ --st-hue: var(--vk-label-pink); --st-soft: var(--vk-label-pink-soft); --st-fill: var(--vk-label-pink-fill); --st-fg: var(--vk-label-pink-strong); --st-bold: var(--vk-pink-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-pink-edge);
2267
+ }
2268
+ [data-status-colour="step"] :is(.o-status[data-colour="green"], .o-status:not([data-colour])[data-place="won"]) {
2269
+ --st-hue: var(--vk-label-green); --st-soft: var(--vk-label-green-soft); --st-fill: var(--vk-label-green-fill); --st-fg: var(--vk-label-green-strong); --st-bold: var(--vk-green-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-green-edge);
2270
+ }
2271
+ [data-status-colour="step"] :is(.o-status[data-colour="red"], .o-status:not([data-colour])[data-place="lost"]) {
2272
+ --st-hue: var(--vk-label-red); --st-soft: var(--vk-label-red-soft); --st-fill: var(--vk-label-red-fill); --st-fg: var(--vk-label-red-strong); --st-bold: var(--vk-red-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-red-edge);
2273
+ }
2274
+ [data-status-colour="step"] :is(.o-status[data-colour="amber"], .o-status:not([data-colour])[data-place="risk"]) {
2275
+ --st-hue: var(--vk-label-amber); --st-soft: var(--vk-label-amber-soft); --st-fill: var(--vk-label-amber-fill); --st-fg: var(--vk-label-amber-strong); --st-bold: var(--vk-amber-700); --st-on: var(--vk-fg-warning-inverse); --st-edge: var(--vk-label-amber-edge);
2276
+ }
2277
+ [data-status-colour="step"] .o-status[data-colour="grey"] {
2278
+ --st-hue: var(--vk-fg-subtle); --st-soft: var(--vk-neutral); --st-fill: var(--vk-neutral-hovered); --st-fg: var(--vk-fg-subtle); --st-bold: var(--vk-neutral-hovered); --st-on: var(--vk-fg); --st-edge: var(--vk-border-bold);
2279
+ }
2280
+
2281
+ /* ── Colour › Deeper as it goes: the brand from its 500 to its 800 along the path; the ends keep their meaning ── */
2282
+ [data-status-colour="deeper"] .o-status[data-place="start"] { --st-hue: var(--vk-brand-500); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-700); --st-bold: var(--vk-brand-500); --st-on: var(--vk-brand-1000); --st-edge: var(--vk-brand-400); }
2283
+ [data-status-colour="deeper"] .o-status[data-place="between"][data-quarters="1"] { --st-hue: var(--vk-brand-600); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-700); --st-bold: var(--vk-brand-600); --st-on: var(--vk-brand-1000); --st-edge: var(--vk-brand-500); }
2284
+ [data-status-colour="deeper"] .o-status[data-place="between"][data-quarters="2"] { --st-hue: var(--vk-brand-700); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-700); --st-bold: var(--vk-brand-700); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-brand-600); }
2285
+ [data-status-colour="deeper"] .o-status[data-place="between"][data-quarters="3"] { --st-hue: var(--vk-brand-800); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-800); --st-bold: var(--vk-brand-800); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-brand-700); }
2286
+
2287
+ /* ── Shape. Word in colour: the word takes the mark's colour. A pill (pale, edged, quiet, solid, a lozenge, a square tag) holds
2288
+ both on its ground, its mark half a step smaller and its cut-out in its ground. Mark alone: the word hidden from sight, still
2289
+ read ─────────────────────────────────────────────────────────────────────────────────────────────── */
2290
+ [data-status-shape="coloured"] .o-status { color: var(--st-hue); }
2291
+ :is([data-status-shape="tint"], [data-status-shape="edged"], [data-status-shape="quiet"], [data-status-shape="solid"], [data-status-shape="lozenge"], [data-status-shape="tag"]) .o-status:not(.o-status-glyph),
2292
+ .o-status:not(.o-status-glyph):not([data-status-shape] *) {
2293
+ --st-g: calc(var(--st-g0) - var(--vk-spacing) * 0.5); --st-cut: var(--st-ground);
2294
+ padding: 0 var(--st-px) 0 calc(var(--st-px) - var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-full); background-color: var(--st-ground); color: var(--st-fg);
2295
+ }
2296
+ :is([data-status-shape="tint"], [data-status-shape="edged"], [data-status-shape="lozenge"]) .o-status, .o-status:not([data-status-shape] *) { --st-ground: var(--st-soft); }
2297
+ [data-status-shape="edged"] .o-status:not(.o-status-glyph) { box-shadow: inset 0 0 0 var(--vk-border-width) var(--st-edge); }
2298
+ [data-status-shape="quiet"] .o-status { --st-ground: var(--vk-raised); }
2299
+ [data-status-shape="quiet"] .o-status:not(.o-status-glyph) { box-shadow: inset 0 0 0 var(--vk-border-width) var(--vk-border); color: var(--vk-fg); }
2300
+ [data-status-shape="solid"] .o-status { --st-ground: var(--st-bold); }
2301
+ [data-status-shape="solid"] .o-status:not(.o-status-glyph) { border-radius: var(--vk-radius-sm); color: var(--st-on); font-weight: var(--vk-font-weight-semibold); }
2302
+ [data-status-shape="solid"] .o-status:not(.o-status-glyph) .o-status-svg { color: var(--st-on); }
2303
+ [data-status-shape="lozenge"] .o-status:not(.o-status-glyph) {
2304
+ height: calc(var(--st-h) - var(--vk-spacing)); padding: 0 var(--vk-spacing); gap: var(--vk-spacing); border-radius: var(--vk-radius-xs);
2305
+ font-weight: var(--vk-font-weight-bold); text-transform: uppercase; letter-spacing: var(--vk-tracking-wide);
2306
+ }
2307
+ [data-status-shape="tag"] .o-status { --st-ground: var(--st-fill); }
2308
+ [data-status-shape="tag"] .o-status:not(.o-status-glyph) { height: calc(var(--st-h) - var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-xs); padding: 0 calc(var(--st-px) - var(--vk-spacing) * 0.5); }
2309
+ [data-status-shape="alone"] .o-status-word { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); }
2310
+ [data-status-shape="alone"] .o-status { --st-g: calc(var(--st-g0) + var(--vk-spacing) * 0.5); }
2311
+
2312
+ /* ── Along the path: what it says of the steps around it, where it is told. Steps under the word, five short bars; a small
2313
+ path, five chevrons before it; in words, its step of five or where it was lost; time there, how long it has stood there,
2314
+ in the warning colour once it has stood too long ─────────────────────────────────────────────────────── */
2315
+ .o-status-path, .o-status-more { display: none; }
2316
+ .o-status-path > span { flex: none; background-color: var(--vk-border); }
2317
+ .o-status-path > span[data-on] { background-color: var(--st-hue); }
2318
+ [data-status-path="before"] .o-status-path[data-form="before"] { display: inline-flex; gap: calc(var(--vk-spacing) * 0.25); order: -1; }
2319
+ [data-status-path="before"] .o-status-path[data-form="before"] > span { width: calc(var(--vk-spacing) * 1.75); height: calc(var(--vk-spacing) * 2.75); clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }
2320
+ /* Under the word: a grid, so the bars take a line of their own across the mark and the word and the status is as wide as the
2321
+ wider of the two, never as wide as all three side by side. */
2322
+ [data-status-path="under"] .o-status:not(.o-status-glyph) { display: inline-grid; grid-template-columns: repeat(3, auto); justify-content: start; height: auto; min-height: var(--st-h); row-gap: calc(var(--vk-spacing) * 1.25); }
2323
+ [data-status-path="under"] .o-status-path[data-form="under"] { display: flex; grid-row: 2; grid-column: 1 / -1; gap: calc(var(--vk-spacing) * 0.75); }
2324
+ [data-status-path="under"] .o-status-path[data-form="under"] > span { width: calc(var(--vk-spacing) * 3.25); height: var(--vk-spacing); border-radius: var(--vk-radius-full); }
2325
+ :is([data-status-path="words"] .o-status-more[data-form="words"], [data-status-path="time"] .o-status-more[data-form="time"]) {
2326
+ display: inline; margin-left: calc(var(--vk-spacing) * -0.5); color: var(--vk-fg-subtlest); font-weight: var(--vk-font-weight-normal);
2327
+ }
2328
+ [data-status-path="time"] .o-status-more[data-form="time"][data-stale] { color: var(--vk-warning); }
2329
+
2330
+ /* A status drawn as a field's value (the StatusBadge atom at size `row`): the size of the text around it, a cell's or a field
2331
+ row's, its mark and its height as above. */
2332
+ .o-status.vk-status-row { font-size: inherit; }
2333
+
2334
+ /* ── Slim (after shadcn), the shape the others start from: a track 18 × 32 barely larger than its 16 thumb, 1 from its edge, with no
2335
+ edge of its own; off, the field edge's grey; on, the brand ─────────────────────────────────────────────────────── */
2336
+ .o-switch {
2337
+ --sw-u: 1; --sw-more: 0px;
2338
+ --sw-h: calc(var(--vk-spacing) * 4.5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 8 * var(--sw-u)); --sw-w: calc(var(--sw-w0) + var(--sw-more));
2339
+ --sw-tw: calc(var(--vk-spacing) * 4 * var(--sw-u)); --sw-th: var(--sw-tw); --sw-inset: calc(var(--vk-spacing) * 0.25 * var(--sw-u)); --sw-bar: 100%;
2340
+ --sw-rest: var(--vk-border-input); --sw-hover: var(--vk-border-input-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
2341
+ --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-xs);
2342
+ --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
2343
+ /* What it paints now: the states below choose. */
2344
+ --sw-off: var(--sw-rest); --sw-edge: var(--sw-edge-rest); --sw-on: var(--vk-brand); --sw-on-track: var(--sw-on);
2345
+ --sw-paint: var(--sw-off); --sw-ring: var(--sw-edge); --sw-knob: var(--sw-thumb-rest); --sw-knob-on: var(--sw-thumb-on); --sw-knob-shadow: var(--sw-thumb-shadow);
2346
+ /* Quick, the motion nothing picked draws: no stretch, duration-fast, fast at first. Lead is its front edge's time, trail its back's. */
2347
+ --sw-time: var(--vk-duration-fast); --sw-ease: var(--vk-ease-out); --sw-lead: var(--sw-time); --sw-trail: var(--sw-time);
2348
+ position: relative; isolation: isolate; flex: none; display: inline-block; box-sizing: border-box;
2349
+ width: var(--sw-w); height: var(--sw-h); border-radius: var(--vk-radius-full);
2350
+ cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
2351
+ }
2352
+ .o-switch::before {
2353
+ content: ""; position: absolute; inset: calc((100% - var(--sw-bar)) / 2) 0; border-radius: inherit;
2354
+ background-color: var(--sw-paint); box-shadow: inset 0 0 0 var(--vk-border-width) var(--sw-ring);
2355
+ transition: background-color var(--sw-time) var(--vk-ease-out), box-shadow var(--sw-time) var(--vk-ease-out);
2356
+ }
2357
+ .o-switch-thumb {
2358
+ position: absolute; z-index: 2; top: 50%; height: var(--sw-th); translate: 0 -50%;
2359
+ left: var(--sw-inset); right: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw));
2360
+ border-radius: var(--vk-radius-full); background-color: var(--sw-knob); box-shadow: var(--sw-knob-shadow);
2361
+ transition: left var(--sw-lead) var(--sw-ease), right var(--sw-trail) var(--sw-ease), background-color var(--sw-time) var(--vk-ease-out);
2362
+ }
2363
+
2364
+ /* ── The other shapes on a computer. Capsule (after iOS 26), what nothing picked draws, the Outright look's pick: a wider
2365
+ track 20 × 46 and a capsule for a thumb. Thin track: the
2366
+ thumb, 20, larger than its 14 track, which takes the brand's pale step when on while the thumb takes the brand. Hairline
2367
+ (after Fluent 2): an outlined, empty track 20 × 40 and a 14 thumb in the edge's grey. Classic, the kit's before these looks:
2368
+ 20 × 34, an edge when off ──────────────────────────────────────────────────────────────────────────────────────── */
2369
+ [data-switch-shape="capsule"] .o-switch, .o-switch:not([data-switch-shape] *) {
2370
+ --sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 11.5 * var(--sw-u)); --sw-tw: calc(var(--vk-spacing) * 6.75 * var(--sw-u)); --sw-th: calc(var(--vk-spacing) * 4 * var(--sw-u)); --sw-inset: calc(var(--vk-spacing) * 0.5 * var(--sw-u));
2371
+ --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-thumb-shadow: var(--vk-shadow-sm);
2372
+ }
2373
+ [data-switch-shape="thin"] .o-switch {
2374
+ --sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 8.5 * var(--sw-u)); --sw-tw: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-inset: 0px; --sw-bar: 70%;
2375
+ --sw-on-track: var(--vk-brand-subtler); --sw-thumb-on: var(--sw-on); --sw-thumb-shadow: var(--vk-shadow-sm); --sw-glyph-on: var(--vk-fg-on-brand); --sw-ink: var(--vk-fg-accent);
2376
+ }
2377
+ [data-switch-shape="hairline"] .o-switch {
2378
+ --sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 10 * var(--sw-u)); --sw-tw: calc(var(--vk-spacing) * 3.5 * var(--sw-u)); --sw-inset: calc(var(--vk-spacing) * 0.75 * var(--sw-u));
2379
+ --sw-rest: transparent; --sw-hover: transparent; --sw-edge-rest: var(--vk-border-bold); --sw-edge-hover: var(--vk-fg-subtle);
2380
+ --sw-thumb-rest: var(--vk-fg-subtle); --sw-thumb-shadow: none; --sw-glyph-off: var(--vk-ground);
2381
+ }
2382
+ [data-switch-shape="classic"] .o-switch {
2383
+ --sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 8.5 * var(--sw-u)); --sw-inset: calc(var(--vk-spacing) * 0.5 * var(--sw-u));
2384
+ --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: var(--vk-border-input); --sw-edge-hover: var(--vk-border-input-hovered); --sw-thumb-shadow: var(--vk-shadow-sm);
2385
+ }
2386
+
2387
+ /* ── Sizes: sm, four fifths of its shape, in dense rows. On a phone every switch but a small one draws the phone's shape, and
2388
+ lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26), what nothing picked draws, 31 × 71, its thumb 27 × 41.
2389
+ Both on the neutral fill with no edge, whatever the computer's shape ─────────────────────────────────────────── */
2390
+ .o-switch.o-switch-sm { --sw-u: 0.8; }
2391
+ .o-switch.o-switch-lg {
2392
+ --sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
2393
+ --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
2394
+ --sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
2395
+ }
2396
+ [data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
2397
+ @media (width < 640px) {
2398
+ .o-switch:not(.o-switch-sm):where(:not([data-computer-host], [data-computer-host] *)) {
2399
+ --sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
2400
+ --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
2401
+ --sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
2402
+ }
2403
+ [data-switch-phone="capsule"] .o-switch:not(.o-switch-sm):where(:not([data-computer-host], [data-computer-host] *)), .o-switch:not(.o-switch-sm):not([data-switch-phone] *):where(:not([data-computer-host], [data-computer-host] *)) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
2404
+ }
2405
+ @container o-phone (width < 640px) {
2406
+ .o-switch:not(.o-switch-sm) {
2407
+ --sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
2408
+ --sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
2409
+ --sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
2410
+ }
2411
+ [data-switch-phone="capsule"] .o-switch:not(.o-switch-sm), .o-switch:not(.o-switch-sm):not([data-switch-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
2412
+ }
2413
+
2414
+ /* ── Motion. Stretch while held, the kit's until duration-base on ease-in-out, the thumb a spacing step longer toward
2415
+ where it is going while pressed. Spring: it runs a little past and settles. Stretch as it goes: its front edge leaves first
2416
+ and its back catches up. Colour follows: the track keeps its off paint and the brand fills in behind the thumb ─────── */
2417
+ [data-switch-motion="held"] .o-switch { --sw-time: var(--vk-duration-base); --sw-ease: var(--vk-ease-in-out); }
2418
+ [data-switch-motion="spring"] .o-switch { --sw-time: calc(var(--vk-duration-slow) * 1.5); --sw-ease: var(--vk-ease-spring); }
2419
+ [data-switch-motion="stretch"] .o-switch { --sw-time: var(--vk-duration-base); --sw-ease: var(--vk-ease-in-out); --sw-lead: var(--vk-duration-fast); --sw-trail: var(--vk-duration-slow); }
2420
+ [data-switch-motion="follow"] .o-switch { --sw-time: calc(var(--vk-duration-base) * 1.2); --sw-ease: var(--vk-ease-in-out); }
2421
+
2422
+ /* ── Under the pointer, on the track or its row: its shape's deeper paint; on, a deeper brand ─────────────────────────── */
2423
+ /* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
2424
+ .o-switch[data-force="hover"]:not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); }
2425
+ @media (hover: hover) { :is(.o-switch:hover, .o-switch-row:hover .o-switch):not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); } }
2426
+
2427
+ /* ── On: the brand fills the track, the thumb crosses, its front edge in lead and its back in trail ───────────────────── */
2428
+ .o-switch[data-checked] { --sw-paint: var(--sw-on-track); --sw-ring: var(--sw-on-track); }
2429
+ .o-switch[data-checked] > .o-switch-thumb {
2430
+ left: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw)); right: var(--sw-inset); background-color: var(--sw-knob-on);
2431
+ transition-duration: var(--sw-trail), var(--sw-lead), var(--sw-time);
2432
+ }
2433
+ [data-switch-motion="held"] .o-switch:is(:active, [data-force="press"]):not([data-disabled], [data-checked]) > .o-switch-thumb { right: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw) - var(--vk-spacing) * var(--sw-u)); }
2434
+ [data-switch-motion="held"] .o-switch[data-checked]:is(:active, [data-force="press"]):not([data-disabled]) > .o-switch-thumb { left: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw) - var(--vk-spacing) * var(--sw-u)); }
2435
+ .o-switch-fill { display: none; }
2436
+ [data-switch-motion="follow"] .o-switch[data-checked] { --sw-paint: var(--sw-off); --sw-ring: var(--sw-edge); }
2437
+ [data-switch-motion="follow"] .o-switch-fill {
2438
+ display: block; position: absolute; z-index: 0; inset: calc((100% - var(--sw-bar)) / 2) auto calc((100% - var(--sw-bar)) / 2) 0; width: var(--sw-h); border-radius: var(--vk-radius-full);
2439
+ background-color: var(--sw-on-track); opacity: 0; transition: width var(--sw-time) var(--sw-ease), opacity var(--sw-time) var(--vk-ease-out);
2440
+ }
2441
+ [data-switch-motion="follow"] .o-switch[data-checked] > .o-switch-fill { width: 100%; opacity: 1; transition-duration: var(--sw-time), calc(var(--vk-duration-fast) * 0.5); }
2442
+
2443
+ /* ── Mark: what it holds. A tick in its thumb when on; a cross when off too; I where it is on and O where it is off, in its
2444
+ track; or its two words there, the track a little wider for them. Each is always in the switch, shown only when picked ── */
2445
+ .o-switch-thumb > svg { display: none; position: absolute; inset: 0; margin: auto; width: calc(var(--sw-th) * 0.68); height: calc(var(--sw-th) * 0.68); stroke-width: calc(var(--vk-spacing) * 0.45); }
2446
+ :is([data-switch-mark="tick"], [data-switch-mark="both"]) .o-switch[data-checked] .o-switch-tick { display: block; color: var(--sw-glyph-on); }
2447
+ [data-switch-mark="both"] .o-switch:not([data-checked]) .o-switch-cross { display: block; color: var(--sw-glyph-off); }
2448
+ .o-switch-i, .o-switch-o, .o-switch-word { display: none; }
2449
+ [data-switch-mark="io"] :is(.o-switch-i, .o-switch-o) { display: block; position: absolute; z-index: 1; top: 50%; box-sizing: border-box; border-radius: var(--vk-radius-full); transition: opacity var(--sw-time) var(--vk-ease-out); }
2450
+ [data-switch-mark="io"] .o-switch-i { left: calc((var(--sw-w) - var(--sw-inset) - var(--sw-tw)) / 2); translate: -50% -50%; width: calc(var(--sw-h) * 0.08); height: calc(var(--sw-h) * 0.36); background-color: var(--sw-ink); opacity: 0; }
2451
+ [data-switch-mark="io"] .o-switch-o { right: calc((var(--sw-w) - var(--sw-inset) - var(--sw-tw)) / 2); translate: 50% -50%; width: calc(var(--sw-h) * 0.32); height: calc(var(--sw-h) * 0.32); border: calc(var(--sw-h) * 0.07) solid var(--vk-fg-subtle); }
2452
+ [data-switch-mark="io"] .o-switch[data-checked] > .o-switch-i { opacity: 1; }
2453
+ [data-switch-mark="io"] .o-switch[data-checked] > .o-switch-o { opacity: 0; }
2454
+ [data-switch-mark="words"] .o-switch { --sw-more: calc(var(--sw-h) * 0.7); }
2455
+ [data-switch-mark="words"] .o-switch-word {
2456
+ display: flex; position: absolute; z-index: 1; inset-block: 0; align-items: center; pointer-events: none;
2457
+ font-size: calc(var(--sw-h) * 0.45); line-height: 1; font-weight: var(--vk-font-weight-semibold); opacity: 0; transition: opacity var(--sw-time) var(--vk-ease-out);
2458
+ }
2459
+ [data-switch-mark="words"] .o-switch-word[data-for="on"] { left: calc(var(--sw-h) * 0.4); color: var(--sw-ink); }
2460
+ [data-switch-mark="words"] .o-switch-word[data-for="off"] { right: calc(var(--sw-h) * 0.35); color: var(--vk-fg-subtle); }
2461
+ [data-switch-mark="words"] .o-switch[data-checked] > .o-switch-word[data-for="on"], [data-switch-mark="words"] .o-switch:not([data-checked]) > .o-switch-word[data-for="off"] { opacity: 1; }
2462
+
2463
+ /* ── What one switch is told. Saving: the Spinner in its thumb while the change is saved, and a press does nothing. Locked: it
2464
+ can't be changed here, a lock in its thumb, which keeps its own colour so the lock reads ───────────────────────────── */
2465
+ .o-switch-thumb > .o-spinner { position: absolute; inset: 0; margin: auto; color: var(--vk-fg-subtle); }
2466
+ .o-switch[data-saving] { cursor: progress; }
2467
+ .o-switch-thumb > .o-switch-lock { display: block; color: var(--vk-fg-subtle); stroke-width: calc(var(--vk-spacing) * 0.35); }
2468
+
2469
+ /* ── In error (aria-invalid, its Field's error, or a group in error around it): a red edge inside the track; on, the danger
2470
+ colour fills it. The pointer never takes it away; focus rings it in red; disabled wins ─────────────────────────────── */
2471
+ .o-switch:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
2472
+ .o-switch[data-force="hover"]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold); --sw-knob-on: var(--vk-fg-inverse); }
2473
+ @media (hover: hover) { :is(.o-switch:hover, .o-switch-row:hover .o-switch):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold-hovered); --sw-knob-on: var(--vk-fg-inverse); } }
2474
+ .o-switch[data-force="hover"][data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-on: var(--vk-danger-bold-hovered); }
2475
+ .o-switch:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
2476
+
2477
+ /* ── Focus: the outline 2px outside the track ──────────────────────────────────────────────────────── */
2478
+ .o-switch:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
2479
+
2480
+ /* ── Disabled: off, grey with a softer edge; on, the brand's palest tint; the thumb greyed, no shadow. Locked keeps its thumb ─ */
2481
+ .o-switch[data-disabled] {
2482
+ --sw-off: var(--vk-neutral); --sw-edge: var(--vk-border-subtle); --sw-on: var(--vk-brand-subtler); --sw-on-track: var(--sw-on);
2483
+ --sw-knob: var(--vk-fg-disabled); --sw-knob-on: var(--vk-fg-disabled); --sw-knob-shadow: none; cursor: not-allowed;
2484
+ }
2485
+ .o-switch[data-disabled][data-locked] { --sw-knob: var(--vk-fg-inverse); --sw-knob-on: var(--vk-fg-inverse); --sw-knob-shadow: var(--sw-thumb-shadow); }
2486
+
2487
+ @media (prefers-reduced-motion: reduce) { .o-switch::before, .o-switch-thumb, .o-switch-fill, .o-switch-i, .o-switch-o, .o-switch-word { transition: none; } }
2488
+
2489
+ /* ── A tag: 22px, its edge drawn inside, the icon then the word; a long word cut at 200px. Its ground, edge, height and corner
2490
+ are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
2491
+ --tag-edge, --tag-h, --tag-r, and --tag-rr, the corner its height leaves room for; --tag-shadow: none where a look draws no
2492
+ edge, which a colour look's own edge outweighs (initial) ──────────────────────────────────────────────────────────────── */
2493
+ .o-tag {
2494
+ --tag-ground: transparent; --tag-edge: var(--vk-border-bold); --tag-h: calc(var(--vk-spacing) * 5.5); --tag-r: var(--vk-radius-md);
2495
+ --tag-rr: min(var(--tag-r), var(--tag-h) / 2);
2496
+ flex: none; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1); box-sizing: border-box; max-width: calc(var(--vk-spacing) * 50);
2497
+ height: var(--tag-h); padding: 0 calc(var(--vk-spacing) * 2);
2498
+ border-radius: var(--tag-r); background-color: var(--tag-ground); box-shadow: var(--tag-shadow, inset 0 0 0 var(--vk-border-width) var(--tag-edge));
2499
+ color: var(--vk-fg); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
2500
+ }
2501
+ /* Its word is cropped so a long one ends in "…". The box that crops it stands as tall as the chip, never only as tall as its
2502
+ letters: at the chip's line-height of 1 the crop took the foot of every g, y and p. The word stays where it was. */
2503
+ .o-tag-word { overflow: hidden; text-overflow: ellipsis; line-height: var(--tag-h); }
2504
+ .o-tag-icon { flex: none; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); margin-left: calc(var(--vk-spacing) * -0.25); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; stroke-linejoin: round; }
2505
+ /* Small, in dense rows; a count for the rest, its number in the quieter colour. */
2506
+ .o-tag.o-tag-sm { --tag-h: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.5); }
2507
+ .o-tag.o-tag-count { color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
2508
+
2509
+ /* ── Its remove button, in a field ─────────────────────────────────────────────────────────────────── */
2510
+ .o-tag-remove {
2511
+ display: inline-grid; place-items: center; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin: 0 calc(var(--vk-spacing) * -1.25) 0 0; padding: 0;
2512
+ border: 0; border-radius: var(--vk-radius-xs); background-color: transparent; color: var(--vk-fg-subtle); cursor: pointer; outline: none;
2513
+ transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
2514
+ }
2515
+ /* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
2516
+ .o-tag-remove[data-force="hover"] { background-color: var(--vk-neutral-hovered); color: var(--vk-fg); }
2517
+ @media (hover: hover) { .o-tag-remove:hover { background-color: var(--vk-neutral-hovered); color: var(--vk-fg); } }
2518
+ .o-tag-remove:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(var(--vk-spacing) * 0.25); }
2519
+ .o-tag-remove svg { width: calc(var(--vk-spacing) * 2.5); height: calc(var(--vk-spacing) * 2.5); fill: none; stroke: currentColor; stroke-linecap: round; }
2520
+
2521
+ /* ── Corner smoothing, the Tag's and the Option's, each its own (data-tag-smoothing, data-option-smoothing; looks.ts): The
2522
+ app's, with nothing set, follows the token corner-smoothing (Round is the token at 0), Smooth and Round set the
2523
+ chip apart. Under Smooth or The app's the chip is drawn with the kit's smooth outline (ViewKit's smooth.css), eased on its side, in
2524
+ every browser that knows shape(); one that doesn't keeps the corners above, and so do Round and an Option at Full (a pill has no
2525
+ corner to smooth), which paint the chip as before. The chip itself is never clipped: its remove button's focus ring reaches its
2526
+ edge, and a link Option's ring and pressing area stand outside it. Its ground and edge are handed to its cut (.o-tag-cut, the
2527
+ chip's first child): the ground (::before) clipped by the outline, the edge (::after) a ring along it. The amount is set on the
2528
+ cut, never the chip, which may hold an Avatar of its own (an Option's mark). ───────────────────────────────────────────────── */
2529
+ .o-tag-cut { display: none; --smooth-amount: var(--vk-corner-smoothing); }
2530
+ /* Its layers' colours move as a link's ground does, a rule light enough that reduced motion (at the file's end) stops it. */
2531
+ .o-tag-cut::before, .o-tag-cut::after { transition: background-color var(--vk-duration-fast) var(--vk-ease-out); }
2532
+ [data-tag-smoothing="smooth"] .o-tag:not(.o-option) > .o-tag-cut, [data-option-smoothing="smooth"] .o-option > .o-tag-cut { --smooth-amount: initial; }
2533
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
2534
+ /* Its own corner is its ground's, so a link Option's focus ring stands on the fitted corner: worked from the token,
2535
+ or the full 0.7 under its own Smooth, never from the cut's amount, which stays on the cut. */
2536
+ .o-tag:not(.o-option, [data-tag-smoothing="round"] *):has(> .o-tag-cut),
2537
+ .o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *):has(> .o-tag-cut) {
2538
+ --smooth-side: var(--tag-h);
2539
+ position: relative; isolation: isolate; background-color: transparent; box-shadow: none;
2540
+ border-radius: min(var(--tag-rr), var(--tag-h) / (2 + 2 * var(--vk-corner-smoothing)));
2541
+ }
2542
+ [data-tag-smoothing="smooth"] .o-tag:not(.o-option, [data-tag-smoothing="round"] *):has(> .o-tag-cut),
2543
+ [data-option-smoothing="smooth"] .o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *):has(> .o-tag-cut) {
2544
+ border-radius: min(var(--tag-rr), var(--tag-h) / 3.4);
2545
+ }
2546
+ .o-tag:not(.o-option, [data-tag-smoothing="round"] *) > .o-tag-cut,
2547
+ .o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *) > .o-tag-cut {
2548
+ --tag-fit: min(var(--tag-rr), var(--tag-h) / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--tag-fit);
2549
+ display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
2550
+ .o-tag:not(.o-option, [data-tag-smoothing="round"] *) > .o-tag-cut::before,
2551
+ .o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *) > .o-tag-cut::before {
2552
+ content: ""; position: absolute; inset: 0; background-color: var(--tag-ground); clip-path: shape(var(--smooth-outline));
2553
+ }
2554
+ .o-tag:not(.o-option, [data-tag-smoothing="round"] *) > .o-tag-cut::after,
2555
+ .o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *) > .o-tag-cut::after {
2556
+ --smooth-t: max(0px, var(--tag-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
2557
+ content: ""; position: absolute; inset: 0; background-color: var(--tag-edge); clip-path: shape(var(--smooth-ring));
2558
+ }
2559
+ }
2560
+
2561
+ @media (prefers-reduced-motion: reduce) { .o-tag-remove, .o-tag-cut::before, .o-tag-cut::after { transition: none; } }
2562
+
2563
+ /* ── On: the neutral fill a step up (background-neutral-hovered), its words and icon in the text colour.
2564
+ The surface's own selected fill sits 2% from its hover in light, so a toggle under the pointer would
2565
+ read as on; this one is clear of it in both themes. It keeps it under the pointer and while pressed, in
2566
+ every look; only a toggle that can't be used drops it (a quiet one keeps the neutral fill, so it still
2567
+ reads as on) ──────────────────────────────────────────────────────────────────────────────────────── */
2568
+ .o-toggle.o-button[data-pressed]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral-hovered); --button-light: none; color: var(--vk-fg); }
2569
+ .o-toggle.o-button-quiet[data-pressed]:is(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral); }
2570
+
2571
+ /* ── With an icon of its own for on (a star, a pin, a bell): on, it takes no fill (the quiet kind none, the
2572
+ outline its surface), the pointer's fill still shows, and the filled icon carries it in its colour:
2573
+ the brand by default; amber (a label's, a colour someone chose) or the text colour as the app picks
2574
+ (data-toggle-mark); or the toggle's own tone, whatever the app picks. Off, or can't be used, it is
2575
+ the toggle's own colour ────────────────────────────────────────────────────────────────────────────── */
2576
+ .o-toggle-mark { --o-toggle-mark: var(--vk-brand); }
2577
+ [data-toggle-mark="amber"] .o-toggle-mark { --o-toggle-mark: var(--vk-label-amber); }
2578
+ [data-toggle-mark="text"] .o-toggle-mark { --o-toggle-mark: var(--vk-fg); }
2579
+ .o-toggle-mark[data-tone="brand"] { --o-toggle-mark: var(--vk-brand); }
2580
+ .o-toggle-mark[data-tone="amber"] { --o-toggle-mark: var(--vk-label-amber); }
2581
+ .o-toggle-mark[data-tone="text"] { --o-toggle-mark: var(--vk-fg); }
2582
+ .o-toggle.o-toggle-mark.o-button-quiet[data-pressed] { --button-ground: transparent; }
2583
+ .o-toggle.o-toggle-mark.o-button-outline[data-pressed]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-ground); }
2584
+ .o-toggle.o-toggle-mark.o-button[data-pressed][data-force="hover"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-hovered); }
2585
+ /* The pointer's fill only on a screen that has one: iOS keeps :hover on what was last tapped, so on a phone the
2586
+ fill would stay after the tap. The sheets' forced state, above, shows on any screen. */
2587
+ @media (hover: hover) {
2588
+ .o-toggle.o-toggle-mark.o-button[data-pressed]:hover:not(:disabled, [data-disabled], [data-readonly]) { --button-ground: var(--vk-hovered); }
2589
+ }
2590
+ .o-toggle-mark[data-pressed]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] { color: var(--o-toggle-mark); }
2591
+
2592
+ /* ── Read-only: shown, never pressed. On, it keeps its fill; nothing dims; the pointer's fill and the press's
2593
+ never come (button.css and the rule above pass data-readonly by), and the pointer is the page's own ────────────── */
2594
+ .o-toggle.o-button[data-readonly] { cursor: default; }
2595
+
2596
+ /* ── In error (aria-invalid, or inside a FieldSet in error): the outline kind's edge turns red, and the
2597
+ pointer never takes it away ───────────────────────────────────────────────────────────────────────── */
2598
+ .o-toggle.o-button-outline:is([aria-invalid="true"], .o-fieldset[data-invalid] *):not(:disabled, [data-disabled]) { --button-edge: var(--vk-border-danger); --button-edge-foot: var(--vk-border-danger); }
2599
+
2600
+ /* ── The pill: the outline Button, fully round at every
2601
+ size (over the frame's Corners), its words padded as the Pill look pads them. Off, no ground, the light edge and its words
2602
+ quiet; under the pointer its words the text's and its edge a step up; on, the Toggle's own on fill above, its words the text's
2603
+ and the outline's edge. Its error edge, focus, and the frame's depth and hover looks are the outline's ──────────────────── */
2604
+ .o-toggle.o-toggle-pill.o-button:not(.o-button-round) { --button-r: var(--vk-radius-full); }
2605
+ .o-toggle-pill.o-button:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 4.5); }
2606
+ .o-toggle-pill.o-button-2xs:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 2.5); }
2607
+ .o-toggle-pill.o-button-xs:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 3); }
2608
+ .o-toggle-pill.o-button-sm:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 3.5); }
2609
+ .o-toggle-pill.o-button-lg:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 5.5); }
2610
+ .o-toggle.o-toggle-pill:not([data-pressed], :disabled, [data-disabled]) { --button-ground: transparent; --button-edge: var(--vk-border); --button-edge-foot: var(--vk-border); color: var(--vk-fg-subtle); }
2611
+ .o-toggle.o-toggle-pill[data-force="hover"]:not([data-pressed], :disabled, [data-disabled], [data-readonly]) { --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); color: var(--vk-fg); }
2612
+ @media (hover: hover) {
2613
+ .o-toggle.o-toggle-pill:hover:not([data-pressed], :disabled, [data-disabled], [data-readonly]) { --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); color: var(--vk-fg); }
2614
+ }
2615
+
2616
+ /* ── A group: its toggles in a row, or a column, apart by its spacing (in spacing steps). Joined, it is a
2617
+ ButtonGroup (button.css): only the group's outer corners round, the edges between shared ──────────── */
2618
+ .o-toggle-group { display: inline-flex; align-items: stretch; width: fit-content; gap: calc(var(--vk-spacing) * var(--o-toggle-gap)); }
2619
+ .o-toggle-group[data-orientation="vertical"] { flex-direction: column; }
2620
+ .o-toggle-group.o-button-group { gap: 0; }
2621
+
2622
+ /* ── The tooltip: the page's text colour as its ground and the page's ground as its words, so it stands
2623
+ out in both themes with no shadow; 6px by 8px, ¾ of the radius, 6px from what it names ──────────── */
2624
+ .o-tooltip {
2625
+ box-sizing: border-box; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2);
2626
+ width: max-content; max-width: calc(var(--vk-spacing) * 80);
2627
+ padding: calc(var(--vk-spacing) * 1.5) calc(var(--vk-spacing) * 2); border-radius: var(--vk-radius-md);
2628
+ background-color: var(--vk-fg); color: var(--vk-ground);
2629
+ font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); font-weight: var(--vk-font-weight-medium);
2630
+ pointer-events: none;
2631
+ transition: opacity var(--vk-duration-fast) var(--vk-ease-out), translate var(--vk-duration-fast) var(--vk-ease-out);
2632
+ }
2633
+ .o-tooltip-positioner { z-index: var(--vk-layer-popup); }
2634
+ /* What it names hands its script its times, read there so a look set round it reaches them: the wait before it shows, how long a
2635
+ tapped reason stays, and a group's warm time. */
2636
+ .o-tooltip-trigger { --tooltip-wait: var(--vk-tooltip-delay); --tooltip-tap: var(--vk-toast-duration); --tooltip-warm-now: var(--vk-tooltip-warm); }
2637
+ /* It fades in and rises 2px. */
2638
+ .o-tooltip:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 calc(var(--vk-spacing) * 0.5); }
2639
+
2640
+ /* ── A longer reason: it wraps, at least 200px wide and at most 320px, in the regular weight ────────── */
2641
+ .o-tooltip.o-tooltip-reason { width: auto; min-width: calc(var(--vk-spacing) * 50); font-weight: var(--vk-font-weight-normal); }
2642
+
2643
+ /* ── Its shortcut: the tooltip's own small key, 16px, outlined in its words' colour (the Kbd inside) ─── */
2644
+ .o-tooltip .o-kbd {
2645
+ min-width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); padding: 0 calc(var(--vk-spacing) * 1);
2646
+ border: 0; border-radius: var(--vk-radius-xs); box-shadow: inset 0 0 0 var(--vk-border-width) currentColor;
2647
+ background-color: transparent; color: inherit; font-size: var(--vk-font-size-2xs); vertical-align: baseline;
2648
+ }
2649
+ .o-tooltip .o-keys { gap: calc(var(--vk-spacing) * 2); }
2650
+
2651
+ /* ── Shown standing open on a sheet: above, below or beside what it names ───────────────────────────── */
2652
+ .o-tooltip-anchor { position: relative; display: inline-flex; }
2653
+ .o-tooltip-anchor > .o-tooltip { position: absolute; z-index: 1; }
2654
+ .o-tooltip-anchor > .o-tooltip[data-side="top"] { bottom: calc(100% + var(--vk-spacing) * 1.5); left: 50%; translate: -50% 0; }
2655
+ .o-tooltip-anchor > .o-tooltip[data-side="bottom"] { top: calc(100% + var(--vk-spacing) * 1.5); left: 50%; translate: -50% 0; }
2656
+ .o-tooltip-anchor > .o-tooltip[data-side="right"] { left: calc(100% + var(--vk-spacing) * 1.5); top: 50%; translate: 0 -50%; }
2657
+ .o-tooltip-anchor > .o-tooltip[data-side="left"] { right: calc(100% + var(--vk-spacing) * 1.5); top: 50%; translate: 0 -50%; }
2658
+
2659
+ /* ── Lined up at its start or its end, shown standing open ────────────────────────────────────────────── */
2660
+ .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="start"] { left: 0; translate: none; }
2661
+ .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="end"] { left: auto; right: 0; translate: none; }
2662
+ .o-tooltip-anchor > .o-tooltip:is([data-side="left"], [data-side="right"])[data-align="start"] { top: 0; translate: none; }
2663
+ .o-tooltip-anchor > .o-tooltip:is([data-side="left"], [data-side="right"])[data-align="end"] { top: auto; bottom: 0; translate: none; }
2664
+
2665
+ /* ── The Arrow: None, or a soft point, a 10px square turned on its corner, its corners softened, half of it
2666
+ showing; with it the tooltip stands 10px off. Base UI places the live one's along its side; the shown one points at the
2667
+ middle of what it names. ─────────────────────────────────────────────────────────────────────────────────────────────── */
2668
+ .o-tooltip-arrow { display: none; }
2669
+ [data-tooltip-arrow="soft"] .o-tooltip-arrow {
2670
+ display: block; position: absolute; width: calc(var(--vk-spacing) * 2.5); height: calc(var(--vk-spacing) * 2.5);
2671
+ border-radius: calc(var(--vk-radius-xs) * 0.75); background-color: var(--vk-fg); rotate: 45deg; pointer-events: none;
2672
+ }
2673
+ [data-tooltip-arrow="soft"] .o-tooltip[data-side="top"] > .o-tooltip-arrow { bottom: calc(var(--vk-spacing) * -1); }
2674
+ [data-tooltip-arrow="soft"] .o-tooltip[data-side="bottom"] > .o-tooltip-arrow { top: calc(var(--vk-spacing) * -1); }
2675
+ [data-tooltip-arrow="soft"] .o-tooltip[data-side="right"] > .o-tooltip-arrow { left: calc(var(--vk-spacing) * -1); }
2676
+ [data-tooltip-arrow="soft"] .o-tooltip[data-side="left"] > .o-tooltip-arrow { right: calc(var(--vk-spacing) * -1); }
2677
+ /* Shown standing open: 10px off, its point at the middle of what it names. */
2678
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="top"] { bottom: calc(100% + var(--vk-spacing) * 2.5); }
2679
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="bottom"] { top: calc(100% + var(--vk-spacing) * 2.5); }
2680
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="right"] { left: calc(100% + var(--vk-spacing) * 2.5); }
2681
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="left"] { right: calc(100% + var(--vk-spacing) * 2.5); }
2682
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"]) > .o-tooltip-arrow { left: calc(50% - var(--vk-spacing) * 1.25); }
2683
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="start"] > .o-tooltip-arrow { left: calc(var(--tooltip-anchor-width, 50%) / 2 - var(--vk-spacing) * 1.25); }
2684
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="end"] > .o-tooltip-arrow { left: auto; right: calc(var(--tooltip-anchor-width, 50%) / 2 - var(--vk-spacing) * 1.25); }
2685
+ [data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="left"], [data-side="right"]) > .o-tooltip-arrow { top: calc(50% - var(--vk-spacing) * 1.25); }
2686
+
2687
+ /* Under reduced motion it just appears. */
2688
+ @media (prefers-reduced-motion: reduce) { .o-tooltip { transition: none; } }
2689
+ /* ── Its corners smooth: following --vk-corner-smoothing, drawn with the smooth outline
2690
+ (smooth.css) in every browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to its
2691
+ one line, as a control's is. Its arrow stands outside it, so it is never clipped: its ground is a layer inside it (::before),
2692
+ clipped, as the Popover's is, over the box its positioner hugs (the tooltip takes no position of its own, so its arrow stands
2693
+ where Base UI puts it); the arrow stays as it draws. Its own small key stays as it draws (kbd.css). ── */
2694
+ @supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
2695
+ .o-tooltip {
2696
+ --smooth-amount: var(--vk-corner-smoothing); --tooltip-side: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs) + var(--vk-spacing) * 3);
2697
+ --tooltip-fit: min(var(--vk-radius-md), var(--tooltip-side) / (2 + 2 * var(--smooth-amount, 0.7)));
2698
+ --smooth-t: var(--tooltip-fit); --smooth-side: var(--tooltip-side);
2699
+ isolation: isolate; border-radius: var(--tooltip-fit); background-color: transparent;
2700
+ }
2701
+ .o-tooltip::before {
2702
+ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
2703
+ background-color: var(--vk-fg); clip-path: shape(var(--smooth-outline));
2704
+ }
2705
+ }
225
2706
  .\@container {
226
2707
  container-type: inline-size;
227
2708
  }
@@ -1392,45 +3873,24 @@
1392
3873
  .bg-label-amber {
1393
3874
  background-color: var(--vk-label-amber);
1394
3875
  }
1395
- .bg-label-amber-soft {
1396
- background-color: var(--vk-label-amber-soft);
1397
- }
1398
3876
  .bg-label-blue {
1399
3877
  background-color: var(--vk-label-blue);
1400
3878
  }
1401
- .bg-label-blue-soft {
1402
- background-color: var(--vk-label-blue-soft);
1403
- }
1404
3879
  .bg-label-green {
1405
3880
  background-color: var(--vk-label-green);
1406
3881
  }
1407
- .bg-label-green-soft {
1408
- background-color: var(--vk-label-green-soft);
1409
- }
1410
3882
  .bg-label-pink {
1411
3883
  background-color: var(--vk-label-pink);
1412
3884
  }
1413
- .bg-label-pink-soft {
1414
- background-color: var(--vk-label-pink-soft);
1415
- }
1416
3885
  .bg-label-purple {
1417
3886
  background-color: var(--vk-label-purple);
1418
3887
  }
1419
- .bg-label-purple-soft {
1420
- background-color: var(--vk-label-purple-soft);
1421
- }
1422
3888
  .bg-label-red {
1423
3889
  background-color: var(--vk-label-red);
1424
3890
  }
1425
- .bg-label-red-soft {
1426
- background-color: var(--vk-label-red-soft);
1427
- }
1428
3891
  .bg-label-teal {
1429
3892
  background-color: var(--vk-label-teal);
1430
3893
  }
1431
- .bg-label-teal-soft {
1432
- background-color: var(--vk-label-teal-soft);
1433
- }
1434
3894
  .bg-muted {
1435
3895
  background-color: var(--vk-neutral);
1436
3896
  }
@@ -1839,54 +4299,54 @@
1839
4299
  .text-\(color\:--vk-head-glyph-fg\,currentColor\) {
1840
4300
  color: var(--vk-head-glyph-fg,currentColor);
1841
4301
  }
1842
- .text-\[color\:var\(--vk-warning\,hsl\(38_92\%_50\%\)\)\] {
1843
- color: var(--vk-warning,hsl(38 92% 50%));
1844
- }
1845
- .text-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
1846
- color: var(--vk-info,hsl(199 89% 48%));
1847
- }
1848
- .text-\[var\(--vk-label-amber-strong\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4302
+ .text-\[color\:var\(--vk-label-amber-strong\,color-mix\(in_oklab\,var\(--vk-label-amber\,hsl\(38_92\%_50\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1849
4303
  color: var(--vk-label-amber-strong,var(--vk-label-amber,hsl(38 92% 50%)));
1850
4304
  @supports (color: color-mix(in lab, red, red)) {
1851
4305
  color: var(--vk-label-amber-strong,color-mix(in oklab,var(--vk-label-amber,hsl(38 92% 50%)) 60%,var(--vk-fg)));
1852
4306
  }
1853
4307
  }
1854
- .text-\[var\(--vk-label-blue-strong\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4308
+ .text-\[color\:var\(--vk-label-blue-strong\,color-mix\(in_oklab\,var\(--vk-label-blue\,hsl\(199_89\%_48\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1855
4309
  color: var(--vk-label-blue-strong,var(--vk-label-blue,hsl(199 89% 48%)));
1856
4310
  @supports (color: color-mix(in lab, red, red)) {
1857
4311
  color: var(--vk-label-blue-strong,color-mix(in oklab,var(--vk-label-blue,hsl(199 89% 48%)) 60%,var(--vk-fg)));
1858
4312
  }
1859
4313
  }
1860
- .text-\[var\(--vk-label-green-strong\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4314
+ .text-\[color\:var\(--vk-label-green-strong\,color-mix\(in_oklab\,var\(--vk-label-green\,hsl\(160_84\%_39\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1861
4315
  color: var(--vk-label-green-strong,var(--vk-label-green,hsl(160 84% 39%)));
1862
4316
  @supports (color: color-mix(in lab, red, red)) {
1863
4317
  color: var(--vk-label-green-strong,color-mix(in oklab,var(--vk-label-green,hsl(160 84% 39%)) 60%,var(--vk-fg)));
1864
4318
  }
1865
4319
  }
1866
- .text-\[var\(--vk-label-pink-strong\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4320
+ .text-\[color\:var\(--vk-label-pink-strong\,color-mix\(in_oklab\,var\(--vk-label-pink\,hsl\(330_81\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1867
4321
  color: var(--vk-label-pink-strong,var(--vk-label-pink,hsl(330 81% 60%)));
1868
4322
  @supports (color: color-mix(in lab, red, red)) {
1869
4323
  color: var(--vk-label-pink-strong,color-mix(in oklab,var(--vk-label-pink,hsl(330 81% 60%)) 60%,var(--vk-fg)));
1870
4324
  }
1871
4325
  }
1872
- .text-\[var\(--vk-label-purple-strong\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4326
+ .text-\[color\:var\(--vk-label-purple-strong\,color-mix\(in_oklab\,var\(--vk-label-purple\,hsl\(258_90\%_66\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1873
4327
  color: var(--vk-label-purple-strong,var(--vk-label-purple,hsl(258 90% 66%)));
1874
4328
  @supports (color: color-mix(in lab, red, red)) {
1875
4329
  color: var(--vk-label-purple-strong,color-mix(in oklab,var(--vk-label-purple,hsl(258 90% 66%)) 60%,var(--vk-fg)));
1876
4330
  }
1877
4331
  }
1878
- .text-\[var\(--vk-label-red-strong\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4332
+ .text-\[color\:var\(--vk-label-red-strong\,color-mix\(in_oklab\,var\(--vk-label-red\,hsl\(0_84\%_60\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1879
4333
  color: var(--vk-label-red-strong,var(--vk-label-red,hsl(0 84% 60%)));
1880
4334
  @supports (color: color-mix(in lab, red, red)) {
1881
4335
  color: var(--vk-label-red-strong,color-mix(in oklab,var(--vk-label-red,hsl(0 84% 60%)) 60%,var(--vk-fg)));
1882
4336
  }
1883
4337
  }
1884
- .text-\[var\(--vk-label-teal-strong\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
4338
+ .text-\[color\:var\(--vk-label-teal-strong\,color-mix\(in_oklab\,var\(--vk-label-teal\,hsl\(173_80\%_40\%\)\)_60\%\,var\(--vk-fg\)\)\)\] {
1885
4339
  color: var(--vk-label-teal-strong,var(--vk-label-teal,hsl(173 80% 40%)));
1886
4340
  @supports (color: color-mix(in lab, red, red)) {
1887
4341
  color: var(--vk-label-teal-strong,color-mix(in oklab,var(--vk-label-teal,hsl(173 80% 40%)) 60%,var(--vk-fg)));
1888
4342
  }
1889
4343
  }
4344
+ .text-\[color\:var\(--vk-warning\,hsl\(38_92\%_50\%\)\)\] {
4345
+ color: var(--vk-warning,hsl(38 92% 50%));
4346
+ }
4347
+ .text-\[var\(--vk-info\,hsl\(199_89\%_48\%\)\)\] {
4348
+ color: var(--vk-info,hsl(199 89% 48%));
4349
+ }
1890
4350
  .text-\[var\(--vk-success\,hsl\(160_84\%_39\%\)\)\] {
1891
4351
  color: var(--vk-success,hsl(160 84% 39%));
1892
4352
  }
@@ -1911,27 +4371,6 @@
1911
4371
  .text-inherit {
1912
4372
  color: inherit;
1913
4373
  }
1914
- .text-label-amber {
1915
- color: var(--vk-label-amber);
1916
- }
1917
- .text-label-blue {
1918
- color: var(--vk-label-blue);
1919
- }
1920
- .text-label-green {
1921
- color: var(--vk-label-green);
1922
- }
1923
- .text-label-pink {
1924
- color: var(--vk-label-pink);
1925
- }
1926
- .text-label-purple {
1927
- color: var(--vk-label-purple);
1928
- }
1929
- .text-label-red {
1930
- color: var(--vk-label-red);
1931
- }
1932
- .text-label-teal {
1933
- color: var(--vk-label-teal);
1934
- }
1935
4374
  .text-muted-foreground {
1936
4375
  color: var(--vk-fg-subtle);
1937
4376
  }
@@ -3157,6 +5596,178 @@
3157
5596
  --vk-label-teal-fill: hsl(196 52% 91.5%);
3158
5597
  --vk-label-teal-edge: hsl(196 52% 74.5%);
3159
5598
  --vk-label-teal-strong: hsl(193 82% 26%);
5599
+ --vk-brand-hovered: hsl(219 70% 46.5%);
5600
+ --vk-brand-pressed: hsl(219 70% 38%);
5601
+ --vk-brand-subtler: hsl(218 100% 94%);
5602
+ --vk-brand-subtler-hovered: hsl(218 100% 89%);
5603
+ --vk-brand-subtler-pressed: hsl(218 97% 82%);
5604
+ --vk-danger-bold: hsl(0 81% 58%);
5605
+ --vk-danger-bold-hovered: hsl(0 59% 49%);
5606
+ --vk-danger-bold-pressed: hsl(0 59% 39%);
5607
+ --vk-info-bold: hsl(219 87% 54%);
5608
+ --vk-info-bold-hovered: hsl(219 70% 46.5%);
5609
+ --vk-info-bold-pressed: hsl(219 70% 38%);
5610
+ --vk-success-bold: hsl(158 98% 26%);
5611
+ --vk-success-bold-hovered: hsl(157 88% 24%);
5612
+ --vk-success-bold-pressed: hsl(156 87% 21%);
5613
+ --vk-warning-bold: hsl(25 92% 41%);
5614
+ --vk-warning-bold-hovered: hsl(24 86% 35.5%);
5615
+ --vk-warning-bold-pressed: hsl(23 85% 29%);
5616
+ --vk-brighten: hsl(0 0% 100% / 0.09);
5617
+ --vk-darken: hsl(214 30% 10% / 0.1);
5618
+ --vk-border-input: hsl(220 3% 86%);
5619
+ --vk-border-input-hovered: hsl(210 1% 82%);
5620
+ --vk-raised: hsl(0 0% 100%);
5621
+ --vk-raised-hovered: hsl(220 3% 97%);
5622
+ --vk-overlay-hovered: hsl(220 3% 97%);
5623
+ --vk-overlay-pressed: hsl(0 0% 94%);
5624
+ --vk-overlay-card-pressed: hsl(220 7% 90%);
5625
+ --vk-fg-disabled: hsl(210 1% 72%);
5626
+ --vk-fg-accent: hsl(219 87% 54%);
5627
+ --vk-border-width: 1px;
5628
+ --vk-corner-smoothing: 0.7;
5629
+ --vk-dot-size: 6px;
5630
+ --vk-duration-instant: 60ms;
5631
+ --vk-duration-fast: 150ms;
5632
+ --vk-duration-base: 200ms;
5633
+ --vk-duration-slow: 300ms;
5634
+ --vk-ease-out: cubic-bezier(0, 0, 0.2, 1);
5635
+ --vk-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
5636
+ --vk-focus-width: 2px;
5637
+ --vk-focus-offset: 2px;
5638
+ --vk-font-weight-medium: 500;
5639
+ --vk-font-weight-semibold: 600;
5640
+ --vk-hover-lift: 1px;
5641
+ --vk-press-scale: 0.98;
5642
+ --vk-press-squash: 1.025 0.92;
5643
+ --vk-press-travel: 1px;
5644
+ --vk-press-travel-lg: 2px;
5645
+ --vk-radius-xs: 2.5px;
5646
+ --vk-radius-sm: 5px;
5647
+ --vk-radius-md: 7.5px;
5648
+ --vk-radius-lg: 10px;
5649
+ --vk-radius-xl: 15px;
5650
+ --vk-radius-2xl: 20px;
5651
+ --vk-radius-full: 9999px;
5652
+ --vk-shadow-key: inset 0 1px 0 0 hsl(0 0% 100% / 0.24), inset 0 -1px 0 0 hsl(214 30% 10% / 0.18), 0 1px 0 0 hsl(214 30% 10% / 0.32), 0 1px 2px 0 hsl(214 30% 10% / 0.12);
5653
+ --vk-shadow-key-pressed: inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.12);
5654
+ --vk-shadow-key-pressed-bold: inset 0 1px 1.5px 0 hsl(214 30% 10% / 0.28);
5655
+ --vk-shadow-key-shallow: inset 0 1px 0 0 hsl(0 0% 100% / 0.24), inset 0 -1px 0 0 hsl(214 30% 10% / 0.064);
5656
+ --vk-shadow-key-soft: inset 0 1px 0 0 hsl(0 0% 100% / 0.3), inset 0 -1px 0 0 hsl(214 30% 10% / 0.088);
5657
+ --vk-shadow-key-subtle: inset 0 1px 0 0 hsl(0 0% 100% / 0.07), 0 1px 0 0 hsl(214 30% 10% / 0.088), 0 1px 2px 0 hsl(214 30% 10% / 0.04);
5658
+ --vk-shadow-key-subtle-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.07), 0 1px 0 0 hsl(214 30% 10% / 0.128), 0 1px 2px 0 hsl(214 30% 10% / 0.04);
5659
+ --vk-shadow-lift: 0 1px 2px 0 hsl(214 30% 10% / 0.104), 0 2px 6px -1px hsl(214 30% 10% / 0.064);
5660
+ --vk-shadow-lift-raised: 0 2px 4px -1px hsl(214 30% 10% / 0.104), 0 9px 20px -6px hsl(214 30% 10% / 0.136), 0 6px 18px -6px hsl(0 0% 100% / 0.1);
5661
+ --vk-shadow-rim: inset 0 1px 0 0 hsl(0 0% 100% / 0.07);
5662
+ --vk-shadow-rim-bold: inset 0 1px 0 0 hsl(0 0% 100% / 0.22);
5663
+ --vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.3);
5664
+ --vk-shadow-rim-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.14);
5665
+ --vk-spacing: 4px;
5666
+ --vk-font-size-xs: 12px;
5667
+ --vk-font-size-sm: 14px;
5668
+ --vk-font-size-base: 16px;
5669
+ --vk-font-size-lg: 18px;
5670
+ --vk-border-danger: hsl(3 87% 68%);
5671
+ --vk-input: hsl(0 0% 100% / 0);
5672
+ --vk-line-height-sm: 1.4286;
5673
+ --vk-selected: hsl(0 0% 94.5%);
5674
+ --vk-sunken: hsl(0 0% 98%);
5675
+ --vk-sunken-hovered: hsl(0 0% 94.5%);
5676
+ --vk-border-overlay-card: hsl(220 3% 86%);
5677
+ --vk-font-weight-normal: 400;
5678
+ --vk-line-height-base: 1.5;
5679
+ --vk-line-height-xs: 1.3333;
5680
+ --vk-overlay-card: hsl(0 0% 94%);
5681
+ --vk-glass: hsl(0 0% 97% / 0.72);
5682
+ --vk-glass-rim-soft: hsl(0 0% 100% / 0.82);
5683
+ --vk-glass-rim-faint: hsl(0 0% 100% / 0.55);
5684
+ --vk-glass-rim: hsl(0 0% 100%);
5685
+ --vk-shadow-glass: 0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.15);
5686
+ --vk-shadow-glass-pair: 0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.12);
5687
+ --vk-shadow-glass-pill: 0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.1);
5688
+ --vk-blur-md: 12px;
5689
+ --vk-glass-icon-stroke: 1.7;
5690
+ --vk-brand-300: hsl(218 100% 89%);
5691
+ --vk-border-input-strong: hsl(210 1% 72%);
5692
+ --vk-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
5693
+ --vk-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
5694
+ --vk-shadow-field-focus: 0 0 10px 0 hsl(219 90% 65.5% / 0.3);
5695
+ --vk-shadow-field-focus-danger: 0 0 10px 0 hsl(3 87% 68% / 0.3);
5696
+ --vk-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
5697
+ --vk-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
5698
+ --vk-overlay-selected: hsl(220 7% 90%);
5699
+ --vk-header: hsl(0 0% 100%);
5700
+ --vk-blur-xs: 4px;
5701
+ --vk-blur-sm: 8px;
5702
+ --vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
5703
+ --vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
5704
+ --vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
5705
+ --vk-layer-popup: 50;
5706
+ --vk-ease-in: cubic-bezier(0.4, 0, 1, 1);
5707
+ --vk-scrollbar-size: 6px;
5708
+ --vk-scrollbar-inset: 2px;
5709
+ --vk-scrollbar-thumb: hsl(210 1% 82%);
5710
+ --vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
5711
+ --vk-scrollbar-hold: 1000ms;
5712
+ --vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
5713
+ --vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
5714
+ --vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
5715
+ --vk-sheet-handle: hsl(210 1% 72%);
5716
+ --vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
5717
+ --vk-spring-exit: 120px;
5718
+ --vk-spring-past: 12px;
5719
+ --vk-radius-3xl: 26.67px;
5720
+ --vk-radius-4xl: 33.33px;
5721
+ --vk-radius-5xl: 40px;
5722
+ --vk-layer-drawer: 40;
5723
+ --vk-spring-smooth: 500ms 1;
5724
+ --vk-ease-spring-smooth: linear(0, 0.0191, 0.0667, 0.1313, 0.2048, 0.2816, 0.3577, 0.4308, 0.4991, 0.562, 0.6189, 0.67, 0.7154, 0.7554, 0.7905, 0.821, 0.8475, 0.8704, 0.89, 0.9069, 0.9213, 0.9336, 0.9441, 0.9529, 0.9605, 0.9668, 0.9722, 0.9767, 0.9805, 0.9837, 0.9864, 0.9887, 0.9905, 0.9921, 0.9934, 0.9945, 0.9955, 0.9962, 0.9969, 0.9974, 0.9978, 0.9982, 0.9985, 0.9988, 0.999, 0.9992, 0.9993, 0.9994, 1);
5725
+ --vk-duration-spring-smooth: 800ms;
5726
+ --vk-spring-quick: 380ms 1;
5727
+ --vk-ease-spring-quick: linear(0, 0.0309, 0.1037, 0.1968, 0.2964, 0.394, 0.4851, 0.5671, 0.6393, 0.7016, 0.7547, 0.7994, 0.8367, 0.8677, 0.8931, 0.914, 0.9309, 0.9447, 0.9558, 0.9648, 0.972, 0.9778, 0.9824, 0.986, 0.989, 0.9913, 0.9931, 0.9946, 0.9957, 0.9967, 0.9974, 0.9979, 0.9984, 0.9987, 0.999, 0.9992, 0.9994, 1);
5728
+ --vk-duration-spring-quick: 608ms;
5729
+ --vk-spring-lively: 450ms 0.8;
5730
+ --vk-ease-spring-lively: linear(0, 0.0239, 0.0843, 0.1672, 0.2617, 0.3601, 0.4568, 0.5478, 0.6309, 0.7048, 0.7689, 0.8236, 0.8692, 0.9065, 0.9364, 0.9599, 0.9779, 0.9913, 1.0009, 1.0075, 1.0117, 1.0141, 1.0151, 1.0151, 1.0144, 1.0133, 1.0119, 1.0105, 1.009, 1.0075, 1.0062, 1.005, 1.004, 1.0031, 1.0023, 1.0017, 1.0012, 1.0008, 1);
5731
+ --vk-duration-spring-lively: 633ms;
5732
+ --vk-sheet-press-scale: 1.005;
5733
+ --vk-push-scale: 0.94;
5734
+ --vk-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
5735
+ --vk-loading-dim: 0.55;
5736
+ --vk-progress-slide: 1400ms;
5737
+ --vk-spinner-breath: 1400ms;
5738
+ --vk-spinner-turn: 2000ms;
5739
+ --vk-spinner-turn-reduced: 3000ms;
5740
+ --vk-amber-700: hsl(25 92% 41%);
5741
+ --vk-blue-700: hsl(219 87% 54%);
5742
+ --vk-border-accent: hsl(219 90% 65.5%);
5743
+ --vk-border-info: hsl(219 90% 65.5%);
5744
+ --vk-border-success: hsl(149 43% 44.5%);
5745
+ --vk-border-warning: hsl(20 63% 57.5%);
5746
+ --vk-brand-100: hsl(218 100% 98%);
5747
+ --vk-brand-200: hsl(218 100% 94%);
5748
+ --vk-brand-400: hsl(218 97% 82%);
5749
+ --vk-brand-500: hsl(218 94% 74.5%);
5750
+ --vk-brand-600: hsl(219 90% 65.5%);
5751
+ --vk-brand-700: hsl(219 87% 54%);
5752
+ --vk-brand-800: hsl(219 70% 46.5%);
5753
+ --vk-brand-1000: hsl(219 72% 29%);
5754
+ --vk-danger-subtler: hsl(6 100% 94%);
5755
+ --vk-green-700: hsl(158 98% 26%);
5756
+ --vk-info-subtler: hsl(218 100% 94%);
5757
+ --vk-pink-700: hsl(335 73% 49.5%);
5758
+ --vk-purple-700: hsl(260 100% 64.5%);
5759
+ --vk-red-700: hsl(0 81% 58%);
5760
+ --vk-success-subtler: hsl(143 41% 91%);
5761
+ --vk-teal-700: hsl(192 87% 32%);
5762
+ --vk-warning-subtler: hsl(19 72% 92.5%);
5763
+ --vk-font-weight-bold: 700;
5764
+ --vk-tracking-wide: 0.025em;
5765
+ --vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
5766
+ --vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
5767
+ --vk-font-size-2xs: 10px;
5768
+ --vk-tooltip-delay: 500ms;
5769
+ --vk-tooltip-warm: 300ms;
5770
+ --vk-toast-duration: 4000ms;
3160
5771
  --vk-t-shadow-menu: 0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04);
3161
5772
  --vk-t-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
3162
5773
  --vk-t-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
@@ -3247,6 +5858,104 @@
3247
5858
  --vk-label-teal-fill: hsl(196 32% 17.5%);
3248
5859
  --vk-label-teal-edge: hsl(195 42% 22.5%);
3249
5860
  --vk-label-teal-strong: hsl(196 67% 75.5%);
5861
+ --vk-brand-hovered: hsl(219 95% 64%);
5862
+ --vk-brand-pressed: hsl(219 100% 72.5%);
5863
+ --vk-brand-subtler: hsl(218 32% 14.5%);
5864
+ --vk-brand-subtler-hovered: hsl(219 46% 21%);
5865
+ --vk-brand-subtler-pressed: hsl(219 55% 29%);
5866
+ --vk-danger-bold: hsl(0 81% 58%);
5867
+ --vk-danger-bold-hovered: hsl(3 90% 66.5%);
5868
+ --vk-danger-bold-pressed: hsl(4 100% 75%);
5869
+ --vk-info-bold: hsl(219 87% 59.5%);
5870
+ --vk-info-bold-hovered: hsl(219 95% 64%);
5871
+ --vk-info-bold-pressed: hsl(219 100% 72.5%);
5872
+ --vk-success-bold: hsl(158 98% 34%);
5873
+ --vk-success-bold-hovered: hsl(150 45% 51.5%);
5874
+ --vk-success-bold-pressed: hsl(148 46% 62.5%);
5875
+ --vk-warning-bold: hsl(25 92% 41%);
5876
+ --vk-warning-bold-hovered: hsl(21 66% 55%);
5877
+ --vk-warning-bold-pressed: hsl(20 73% 65.5%);
5878
+ --vk-brighten: hsl(210 8% 95% / 0.09);
5879
+ --vk-darken: hsl(0 0% 0% / 0.15);
5880
+ --vk-border-input: hsl(220 4% 22%);
5881
+ --vk-border-input-hovered: hsl(210 2% 26.5%);
5882
+ --vk-raised: hsl(226 10% 10%);
5883
+ --vk-raised-hovered: hsl(225 7% 15%);
5884
+ --vk-overlay-hovered: hsl(225 7% 15%);
5885
+ --vk-overlay-pressed: hsl(225 7% 15%);
5886
+ --vk-overlay-card-pressed: hsl(220 4% 22%);
5887
+ --vk-fg-disabled: hsl(210 1% 37%);
5888
+ --vk-fg-accent: hsl(219 87% 59.5%);
5889
+ --vk-shadow-key: inset 0 1px 0 0 hsl(210 8% 95% / 0.24), inset 0 -1px 0 0 hsl(0 0% 0% / 0.27), 0 1px 0 0 hsl(0 0% 0% / 0.5), 0 1px 2px 0 hsl(0 0% 0% / 0.18);
5890
+ --vk-shadow-key-pressed: inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.18);
5891
+ --vk-shadow-key-pressed-bold: inset 0 1px 1.5px 0 hsl(0 0% 0% / 0.42);
5892
+ --vk-shadow-key-shallow: inset 0 1px 0 0 hsl(210 8% 95% / 0.24), inset 0 -1px 0 0 hsl(0 0% 0% / 0.096);
5893
+ --vk-shadow-key-soft: inset 0 1px 0 0 hsl(210 8% 95% / 0.3), inset 0 -1px 0 0 hsl(0 0% 0% / 0.132);
5894
+ --vk-shadow-key-subtle: inset 0 1px 0 0 hsl(210 8% 95% / 0.07), 0 1px 0 0 hsl(0 0% 0% / 0.132), 0 1px 2px 0 hsl(0 0% 0% / 0.06);
5895
+ --vk-shadow-key-subtle-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.07), 0 1px 0 0 hsl(0 0% 0% / 0.192), 0 1px 2px 0 hsl(0 0% 0% / 0.06);
5896
+ --vk-shadow-lift: 0 1px 2px 0 hsl(0 0% 0% / 0.156), 0 2px 6px -1px hsl(0 0% 0% / 0.096);
5897
+ --vk-shadow-lift-raised: 0 2px 4px -1px hsl(0 0% 0% / 0.156), 0 9px 20px -6px hsl(0 0% 0% / 0.204), 0 6px 18px -6px hsl(210 8% 95% / 0.1);
5898
+ --vk-shadow-rim: inset 0 1px 0 0 hsl(210 8% 95% / 0.07);
5899
+ --vk-shadow-rim-bold: inset 0 1px 0 0 hsl(210 8% 95% / 0.22);
5900
+ --vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.3);
5901
+ --vk-shadow-rim-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.14);
5902
+ --vk-border-danger: hsl(1 55% 46.5%);
5903
+ --vk-input: hsl(0 0% 100% / 0);
5904
+ --vk-selected: hsl(225 7% 15%);
5905
+ --vk-sunken: hsl(210 8% 5%);
5906
+ --vk-sunken-hovered: hsl(210 4% 9.5%);
5907
+ --vk-border-overlay-card: hsl(220 4% 22%);
5908
+ --vk-overlay-card: hsl(225 7% 15%);
5909
+ --vk-glass: hsl(0 0% 13% / 0.6);
5910
+ --vk-glass-rim-soft: hsl(0 0% 100% / 0.12);
5911
+ --vk-glass-rim-faint: hsl(0 0% 100% / 0.01);
5912
+ --vk-glass-rim: hsl(0 0% 100% / 0.26);
5913
+ --vk-shadow-glass: 0 8px 40px 4px hsl(0 0% 0% / 0.06);
5914
+ --vk-shadow-glass-pair: 0 8px 40px 4px hsl(0 0% 0% / 0.06);
5915
+ --vk-shadow-glass-pill: 0 8px 40px 4px hsl(0 0% 0% / 0.06);
5916
+ --vk-brand-300: hsl(219 46% 21%);
5917
+ --vk-border-input-strong: hsl(210 1% 37%);
5918
+ --vk-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
5919
+ --vk-shadow-field-focus: 0 0 10px 0 hsl(219 66% 45% / 0.42);
5920
+ --vk-shadow-field-focus-danger: 0 0 10px 0 hsl(1 55% 46.5% / 0.42);
5921
+ --vk-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
5922
+ --vk-overlay-selected: hsl(225 7% 15%);
5923
+ --vk-header: hsl(210 6% 7%);
5924
+ --vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
5925
+ --vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
5926
+ --vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
5927
+ --vk-scrollbar-thumb: hsl(210 2% 26.5%);
5928
+ --vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
5929
+ --vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
5930
+ --vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
5931
+ --vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
5932
+ --vk-sheet-handle: hsl(210 2% 26.5%);
5933
+ --vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
5934
+ --vk-amber-700: hsl(25 92% 41%);
5935
+ --vk-blue-700: hsl(219 87% 59.5%);
5936
+ --vk-border-accent: hsl(219 66% 47%);
5937
+ --vk-border-info: hsl(219 66% 47%);
5938
+ --vk-border-success: hsl(153 64% 32%);
5939
+ --vk-border-warning: hsl(22 74% 36%);
5940
+ --vk-brand-100: hsl(218 15% 10%);
5941
+ --vk-brand-200: hsl(218 32% 14.5%);
5942
+ --vk-brand-400: hsl(219 55% 29%);
5943
+ --vk-brand-500: hsl(219 61% 36.5%);
5944
+ --vk-brand-600: hsl(219 66% 47%);
5945
+ --vk-brand-700: hsl(219 87% 59.5%);
5946
+ --vk-brand-800: hsl(219 95% 64%);
5947
+ --vk-brand-1000: hsl(218 100% 81%);
5948
+ --vk-danger-subtler: hsl(6 27% 14.5%);
5949
+ --vk-green-700: hsl(158 98% 34%);
5950
+ --vk-info-subtler: hsl(218 32% 14.5%);
5951
+ --vk-pink-700: hsl(335 73% 57.5%);
5952
+ --vk-purple-700: hsl(260 100% 69%);
5953
+ --vk-red-700: hsl(0 81% 58%);
5954
+ --vk-success-subtler: hsl(145 17% 12.5%);
5955
+ --vk-teal-700: hsl(192 87% 40%);
5956
+ --vk-warning-subtler: hsl(20 29% 13.5%);
5957
+ --vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
5958
+ --vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
3250
5959
  --vk-t-shadow-menu: 0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%);
3251
5960
  --vk-t-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
3252
5961
  --vk-t-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);