@seanyeh77/ui 0.45.0 → 0.47.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 (210) hide show
  1. package/dist/bundle.js +19 -19
  2. package/dist/components/Alert/Alert.d.ts +2 -1
  3. package/dist/components/Alert/Alert.js +15 -17
  4. package/dist/components/Alert/Alert.js.map +1 -1
  5. package/dist/components/AppShell/AppShell.d.ts +3 -3
  6. package/dist/components/AppShell/AppShell.js +9 -10
  7. package/dist/components/AppShell/AppShell.js.map +1 -1
  8. package/dist/components/Badge/Badge.d.ts +4 -4
  9. package/dist/components/Badge/Badge.js +7 -1
  10. package/dist/components/Badge/Badge.js.map +1 -1
  11. package/dist/components/Breadcrumb/Breadcrumb.js +1 -0
  12. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
  13. package/dist/components/Calendar/Calendar.js +6 -2
  14. package/dist/components/Calendar/Calendar.js.map +1 -1
  15. package/dist/components/ConsoleLayout/ConsoleLayout.js +15 -12
  16. package/dist/components/ConsoleLayout/ConsoleLayout.js.map +1 -1
  17. package/dist/components/DataTable/DataTable.d.ts +8 -0
  18. package/dist/components/DataTable/DataTable.js +188 -34
  19. package/dist/components/DataTable/DataTable.js.map +1 -1
  20. package/dist/components/DataTable/filters.js +10 -4
  21. package/dist/components/DataTable/filters.js.map +1 -1
  22. package/dist/components/DatePicker/DatePicker.js +1 -0
  23. package/dist/components/DatePicker/DatePicker.js.map +1 -1
  24. package/dist/components/DateRangePicker/DateRangePicker.js +1 -0
  25. package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -1
  26. package/dist/components/DetailList/DetailList.d.ts +8 -1
  27. package/dist/components/DetailList/DetailList.js +16 -2
  28. package/dist/components/DetailList/DetailList.js.map +1 -1
  29. package/dist/components/EmptyState/EmptyState.js +19 -1
  30. package/dist/components/EmptyState/EmptyState.js.map +1 -1
  31. package/dist/components/EventTimeline/EventTimeline.js +6 -3
  32. package/dist/components/EventTimeline/EventTimeline.js.map +1 -1
  33. package/dist/components/FileUpload/FileUpload.js +2 -2
  34. package/dist/components/FileUpload/FileUpload.js.map +1 -1
  35. package/dist/components/Grid/Grid.d.ts +5 -2
  36. package/dist/components/Grid/Grid.js +4 -3
  37. package/dist/components/Grid/Grid.js.map +1 -1
  38. package/dist/components/InlineCode/InlineCode.js +7 -6
  39. package/dist/components/InlineCode/InlineCode.js.map +1 -1
  40. package/dist/components/KpiCard/KpiCard.d.ts +6 -4
  41. package/dist/components/KpiCard/KpiCard.js +6 -12
  42. package/dist/components/KpiCard/KpiCard.js.map +1 -1
  43. package/dist/components/LayerGraph/LayerGraph.js +47 -13
  44. package/dist/components/LayerGraph/LayerGraph.js.map +1 -1
  45. package/dist/components/MultiSelect/MultiSelect.js +73 -45
  46. package/dist/components/MultiSelect/MultiSelect.js.map +1 -1
  47. package/dist/components/NotificationBell/NotificationBell.d.ts +6 -3
  48. package/dist/components/NotificationBell/NotificationBell.js +14 -3
  49. package/dist/components/NotificationBell/NotificationBell.js.map +1 -1
  50. package/dist/components/PageHeader/PageHeader.d.ts +3 -2
  51. package/dist/components/PageHeader/PageHeader.js +10 -1
  52. package/dist/components/PageHeader/PageHeader.js.map +1 -1
  53. package/dist/components/RelativeTime/RelativeTime.js +4 -3
  54. package/dist/components/RelativeTime/RelativeTime.js.map +1 -1
  55. package/dist/components/Select/Select.js +1 -1
  56. package/dist/components/Select/Select.js.map +1 -1
  57. package/dist/components/SettingsLayout/SettingsLayout.d.ts +6 -4
  58. package/dist/components/SettingsLayout/SettingsLayout.js +38 -11
  59. package/dist/components/SettingsLayout/SettingsLayout.js.map +1 -1
  60. package/dist/components/SideNav/SideNav.d.ts +10 -5
  61. package/dist/components/SideNav/SideNav.js +10 -6
  62. package/dist/components/SideNav/SideNav.js.map +1 -1
  63. package/dist/components/SplitPane/SplitPane.d.ts +2 -2
  64. package/dist/components/SplitPane/SplitPane.js +29 -9
  65. package/dist/components/SplitPane/SplitPane.js.map +1 -1
  66. package/dist/components/TextField/TextField.d.ts +8 -2
  67. package/dist/components/TextField/TextField.js +59 -13
  68. package/dist/components/TextField/TextField.js.map +1 -1
  69. package/dist/components/TopBar/TopBar.d.ts +2 -2
  70. package/dist/components/TopBar/TopBar.js.map +1 -1
  71. package/dist/components/Workbench/Workbench.d.ts +8 -5
  72. package/dist/components/Workbench/Workbench.js +184 -157
  73. package/dist/components/Workbench/Workbench.js.map +1 -1
  74. package/dist/components/ZoneMap/ZoneMap.js +4 -4
  75. package/dist/components/ZoneMap/ZoneMap.js.map +1 -1
  76. package/dist/components/useFormErrors/useFormErrors.d.ts +5 -2
  77. package/dist/components/useFormErrors/useFormErrors.js +10 -4
  78. package/dist/components/useFormErrors/useFormErrors.js.map +1 -1
  79. package/dist/css/AccentPicker.css +19 -0
  80. package/dist/css/Alert.css +30 -7
  81. package/dist/css/AppShell.css +12 -0
  82. package/dist/css/Calendar.css +7 -0
  83. package/dist/css/ConsoleLayout.css +3 -0
  84. package/dist/css/DataTable.css +70 -8
  85. package/dist/css/DetailList.css +11 -0
  86. package/dist/css/EmptyState.css +8 -0
  87. package/dist/css/EventTimeline.css +11 -4
  88. package/dist/css/Grid.css +15 -0
  89. package/dist/css/KpiCard.css +1 -0
  90. package/dist/css/LayerGraph.css +1 -1
  91. package/dist/css/LoadingBar.css +4 -1
  92. package/dist/css/LoginCard.css +1 -1
  93. package/dist/css/MobileTabBar.css +6 -4
  94. package/dist/css/MultiSelect.css +23 -3
  95. package/dist/css/Select.css +9 -0
  96. package/dist/css/SettingsLayout.css +29 -14
  97. package/dist/css/Tabs.css +36 -17
  98. package/dist/css/Toast.css +7 -0
  99. package/dist/css/TopBar.css +6 -3
  100. package/dist/css/Workbench.css +10 -5
  101. package/dist/css/base.css +90 -3
  102. package/dist/css/end.css +5 -2
  103. package/dist/fonts-latin.css +2 -0
  104. package/dist/fonts-tc.css +2 -0
  105. package/dist/format.d.ts +4 -3
  106. package/dist/format.js +13 -12
  107. package/dist/format.js.map +1 -1
  108. package/dist/i18n.js +17 -6
  109. package/dist/i18n.js.map +1 -1
  110. package/dist/icons/Icon.d.ts +2 -1
  111. package/dist/icons/Icon.js +4 -3
  112. package/dist/icons/Icon.js.map +1 -1
  113. package/dist/icons/all.js +23 -1
  114. package/dist/icons/all.js.map +1 -1
  115. package/dist/icons/names.d.ts +22 -0
  116. package/dist/icons/names.js +11 -0
  117. package/dist/icons/names.js.map +1 -1
  118. package/dist/icons/ph/credit-card.d.ts +10 -0
  119. package/dist/icons/ph/credit-card.js +11 -0
  120. package/dist/icons/ph/credit-card.js.map +1 -0
  121. package/dist/icons/ph/map-pin.d.ts +10 -0
  122. package/dist/icons/ph/map-pin.js +11 -0
  123. package/dist/icons/ph/map-pin.js.map +1 -0
  124. package/dist/icons/ph/package.d.ts +10 -0
  125. package/dist/icons/ph/package.js +11 -0
  126. package/dist/icons/ph/package.js.map +1 -0
  127. package/dist/icons/ph/pause.d.ts +10 -0
  128. package/dist/icons/ph/pause.js +11 -0
  129. package/dist/icons/ph/pause.js.map +1 -0
  130. package/dist/icons/ph/phone.d.ts +10 -0
  131. package/dist/icons/ph/phone.js +11 -0
  132. package/dist/icons/ph/phone.js.map +1 -0
  133. package/dist/icons/ph/play.d.ts +10 -0
  134. package/dist/icons/ph/play.js +11 -0
  135. package/dist/icons/ph/play.js.map +1 -0
  136. package/dist/icons/ph/prohibit.d.ts +10 -0
  137. package/dist/icons/ph/prohibit.js +11 -0
  138. package/dist/icons/ph/prohibit.js.map +1 -0
  139. package/dist/icons/ph/receipt.d.ts +10 -0
  140. package/dist/icons/ph/receipt.js +11 -0
  141. package/dist/icons/ph/receipt.js.map +1 -0
  142. package/dist/icons/ph/shopping-cart.d.ts +10 -0
  143. package/dist/icons/ph/shopping-cart.js +11 -0
  144. package/dist/icons/ph/shopping-cart.js.map +1 -0
  145. package/dist/icons/ph/storefront.d.ts +10 -0
  146. package/dist/icons/ph/storefront.js +11 -0
  147. package/dist/icons/ph/storefront.js.map +1 -0
  148. package/dist/icons/ph/truck.d.ts +10 -0
  149. package/dist/icons/ph/truck.js +11 -0
  150. package/dist/icons/ph/truck.js.map +1 -0
  151. package/dist/icons/store.d.ts +3 -1
  152. package/dist/icons/store.js +17 -12
  153. package/dist/icons/store.js.map +1 -1
  154. package/dist/index.d.ts +2 -2
  155. package/dist/index.js +2 -2
  156. package/dist/internal/FloatingPanel.js +5 -2
  157. package/dist/internal/FloatingPanel.js.map +1 -1
  158. package/dist/internal/clickSteps.js +11 -0
  159. package/dist/internal/clickSteps.js.map +1 -0
  160. package/dist/internal/util.js +7 -1
  161. package/dist/internal/util.js.map +1 -1
  162. package/dist/styles.css +499 -162
  163. package/dist/theme.d.ts +7 -0
  164. package/dist/theme.js +39 -15
  165. package/dist/theme.js.map +1 -1
  166. package/docs/Alert.md +1 -1
  167. package/docs/AppShell.md +4 -4
  168. package/docs/Badge.md +2 -1
  169. package/docs/BarChart.md +1 -1
  170. package/docs/Checkbox.md +2 -2
  171. package/docs/CodeView.md +12 -22
  172. package/docs/ConsoleLayout.md +1 -0
  173. package/docs/DataTable.md +16 -11
  174. package/docs/DatePicker.md +1 -1
  175. package/docs/DateRangePicker.md +1 -0
  176. package/docs/DetailList.md +12 -1
  177. package/docs/Drawer.md +1 -1
  178. package/docs/EmptyState.md +1 -0
  179. package/docs/EventTimeline.md +1 -1
  180. package/docs/Format.md +2 -1
  181. package/docs/Graph.md +1 -0
  182. package/docs/Grid.md +9 -0
  183. package/docs/KpiCard.md +5 -4
  184. package/docs/LoadingBar.md +1 -1
  185. package/docs/LoginCard.md +1 -1
  186. package/docs/Markdown.md +4 -37
  187. package/docs/MobileTabBar.md +1 -1
  188. package/docs/MultiSelect.md +3 -2
  189. package/docs/NotificationBell.md +2 -2
  190. package/docs/PageHeader.md +2 -1
  191. package/docs/RadioGroup.md +1 -1
  192. package/docs/RelativeTime.md +2 -2
  193. package/docs/SettingsLayout.md +5 -4
  194. package/docs/SideNav.md +2 -1
  195. package/docs/Skeleton.md +2 -2
  196. package/docs/SplitPane.md +3 -9
  197. package/docs/Tabs.md +14 -11
  198. package/docs/Tag.md +4 -3
  199. package/docs/TextField.md +2 -0
  200. package/docs/Toast.md +1 -1
  201. package/docs/TopBar.md +2 -2
  202. package/docs/Workbench.md +9 -6
  203. package/docs/agents.md +13 -13
  204. package/docs/data.md +2 -1
  205. package/docs/guidelines.md +4 -4
  206. package/docs/icons.md +2 -2
  207. package/docs/layout.md +3 -3
  208. package/docs/theme.md +6 -3
  209. package/docs/useFormErrors.md +2 -1
  210. package/package.json +4 -2
package/dist/styles.css CHANGED
@@ -180,11 +180,22 @@ html.ui-theme-fade * {
180
180
  .ui-req {
181
181
  color: var(--danger-text);
182
182
  }
183
+ /* As wide as the box and its text (max-content, up to the container, then the text wraps): the focus outline and the
184
+ click area wrap the control, not the whole row, as on Switch. Still a block, so each sits on its own line. */
183
185
  .ui-check,
184
186
  .ui-radio {
185
- display: flex;
186
- align-items: center;
187
- gap: 12px;
187
+ /* A grid, not a flex row: the box sits on the first line of a label that wraps (align-items: start, see the box's
188
+ margin), while one line stays centred in the 40 px height (align-content: center). */
189
+ display: grid;
190
+ grid-template-columns: auto;
191
+ grid-auto-flow: column;
192
+ grid-auto-columns: minmax(0, max-content);
193
+ width: max-content;
194
+ max-width: 100%;
195
+ justify-content: start;
196
+ align-items: start;
197
+ align-content: center;
198
+ column-gap: 12px;
188
199
  min-height: var(--control-height);
189
200
  padding: 0;
190
201
  border: 0;
@@ -195,6 +206,11 @@ html.ui-theme-fade * {
195
206
  text-align: left;
196
207
  cursor: pointer;
197
208
  }
209
+ .ui-check > .ui-check-box,
210
+ .ui-radio > .ui-radio-ring {
211
+ /* Centred on the first line of the label. */
212
+ margin-top: calc((1lh - 22px) / 2);
213
+ }
198
214
  .ui-check:disabled,
199
215
  .ui-radio:disabled {
200
216
  color: var(--ink-muted);
@@ -283,6 +299,77 @@ html.ui-theme-fade * {
283
299
  label:has(> .ui-switch) {
284
300
  font-size: var(--text-control);
285
301
  }
302
+ /* TextField with prefix, suffix or unit: the box draws the border (like the password field) and the input inside is
303
+ bare, so the muted text sits inside the same frame. */
304
+ .ui-field-box.has-affix {
305
+ display: flex;
306
+ align-items: center;
307
+ gap: var(--space-2);
308
+ height: var(--control-height);
309
+ box-sizing: border-box;
310
+ padding: 0 var(--space-3);
311
+ /* The frame is an inset shadow, not a border, so the input inside is the full 40 px (48 px on phones) tall: the
312
+ whole box is its touch target. */
313
+ box-shadow: inset 0 0 0 1px var(--line-strong);
314
+ border-radius: var(--radius-md);
315
+ background: var(--surface-input);
316
+ color: var(--ink);
317
+ }
318
+ .ui-field-box.has-affix .ui-input {
319
+ flex: 1 1 auto;
320
+ min-width: 0;
321
+ height: 100%;
322
+ padding: 0;
323
+ border: 0;
324
+ border-radius: 0;
325
+ background: transparent;
326
+ }
327
+ .ui-field-box.has-affix .ui-input:focus-visible {
328
+ outline: none;
329
+ }
330
+ .has-error .ui-field-box.has-affix {
331
+ box-shadow: inset 0 0 0 1.5px var(--danger);
332
+ }
333
+ .is-disabled .ui-field-box.has-affix {
334
+ box-shadow: none;
335
+ background: var(--surface-sub);
336
+ color: var(--ink-muted);
337
+ }
338
+ .ui-field-affix {
339
+ flex: none;
340
+ color: var(--ink-muted);
341
+ font-size: var(--text-control);
342
+ white-space: nowrap;
343
+ }
344
+ /* The unit after the typed text: an invisible copy of the text, on top of the input, pushes it along. */
345
+ .ui-field-unitwrap {
346
+ flex: 1 1 auto;
347
+ min-width: 0;
348
+ height: 100%;
349
+ display: grid;
350
+ }
351
+ .ui-field-unitwrap > * {
352
+ grid-area: 1 / 1;
353
+ }
354
+ .ui-field-unitline {
355
+ display: flex;
356
+ align-items: center;
357
+ overflow: hidden;
358
+ font-size: var(--text-control);
359
+ white-space: pre;
360
+ pointer-events: none;
361
+ }
362
+ .ui-field-mirror {
363
+ visibility: hidden;
364
+ min-width: 0;
365
+ overflow: hidden;
366
+ }
367
+ /* Forced colors drop shadows: the frame becomes a border. */
368
+ @media (forced-colors: active) {
369
+ .ui-field-box.has-affix {
370
+ border: 1px solid CanvasText;
371
+ }
372
+ }
286
373
  @keyframes ui-rise {
287
374
  from {
288
375
  opacity: 0;
@@ -955,9 +1042,11 @@ label:has(> .ui-switch) {
955
1042
  .ui-alert {
956
1043
  position: relative;
957
1044
  overflow: hidden;
958
- display: flex;
959
- gap: var(--space-3);
960
- align-items: flex-start;
1045
+ /* icon, text, action, ✕: the action at the right end of the text; under the text when the alert is narrow. */
1046
+ display: grid;
1047
+ grid-template-columns: auto minmax(0, 1fr) auto auto;
1048
+ align-items: start;
1049
+ container-type: inline-size;
961
1050
  padding: var(--space-3) var(--space-4);
962
1051
  border-radius: var(--radius-md);
963
1052
  background: var(--surface);
@@ -978,7 +1067,9 @@ label:has(> .ui-switch) {
978
1067
  --alert-color: var(--danger);
979
1068
  }
980
1069
  .ui-alert-icon {
1070
+ grid-column: 1;
981
1071
  margin-top: 1px;
1072
+ margin-right: var(--space-3);
982
1073
  color: var(--alert-color);
983
1074
  }
984
1075
  /* The info icon sits by its text: accent-text, so a light accent still reads. */
@@ -986,7 +1077,7 @@ label:has(> .ui-switch) {
986
1077
  color: var(--accent-text);
987
1078
  }
988
1079
  .ui-alert-content {
989
- flex: 1 1 auto;
1080
+ grid-column: 2;
990
1081
  min-width: 0;
991
1082
  }
992
1083
  .ui-alert-title {
@@ -996,13 +1087,25 @@ label:has(> .ui-switch) {
996
1087
  color: var(--ink-muted);
997
1088
  }
998
1089
  .ui-alert-action {
999
- margin-top: var(--space-2);
1090
+ grid-column: 3;
1091
+ align-self: center;
1092
+ margin-left: var(--space-4);
1093
+ }
1094
+ @container (max-width: 479px) {
1095
+ .ui-alert-action {
1096
+ grid-column: 2;
1097
+ grid-row: 2;
1098
+ justify-self: start;
1099
+ margin: var(--space-2) 0 0;
1100
+ }
1000
1101
  }
1001
1102
  .ui-alert-close {
1002
- flex: 0 0 40px;
1103
+ grid-column: 4;
1104
+ grid-row: 1;
1003
1105
  width: 40px;
1004
1106
  height: 40px;
1005
- margin: -8px -8px -8px 0;
1107
+ /* Its box ends at the padding edge, where an action button ends in an alert without ✕. */
1108
+ margin: -8px 0 -8px var(--space-3);
1006
1109
  border: 0;
1007
1110
  border-radius: var(--radius-sm);
1008
1111
  background: transparent;
@@ -1012,6 +1115,13 @@ label:has(> .ui-switch) {
1012
1115
  align-items: center;
1013
1116
  justify-content: center;
1014
1117
  }
1118
+ /* Beside an action: centred on the same line as the button, not at the top. */
1119
+ @container (min-width: 480px) {
1120
+ .ui-alert:has(> .ui-alert-action) > .ui-alert-close {
1121
+ align-self: center;
1122
+ margin-block: 0;
1123
+ }
1124
+ }
1015
1125
  .ui-alert-close:hover {
1016
1126
  background: var(--surface-sub);
1017
1127
  }
@@ -1070,6 +1180,14 @@ label:has(> .ui-switch) {
1070
1180
  font-size: var(--text-compact);
1071
1181
  color: var(--ink-muted);
1072
1182
  }
1183
+ /* Phones: a description of more than 2 lines (EmptyState adds is-long) left-aligns the whole block, title, steps and
1184
+ button with it, so nothing is centred above left-aligned text; up to 2 lines everything stays centred. */
1185
+ @media (max-width: 599px) {
1186
+ .ui-empty.is-long {
1187
+ align-items: flex-start;
1188
+ text-align: start;
1189
+ }
1190
+ }
1073
1191
  .ui-steps {
1074
1192
  list-style: none;
1075
1193
  margin: var(--space-2) 0;
@@ -1185,6 +1303,13 @@ div.ui-toast[role='status'] {
1185
1303
  font-weight: 400;
1186
1304
  color: var(--ink-muted);
1187
1305
  }
1306
+ /* A touch screen without a pointer that hovers (a phone, a tablet without a mouse): most have no keyboard, so the
1307
+ shortcut is not shown. aria-keyshortcuts stays for a keyboard that is attached. */
1308
+ @media (pointer: coarse) and (hover: none) {
1309
+ .ui-toast-kbd {
1310
+ display: none;
1311
+ }
1312
+ }
1188
1313
  .ui-toast-close {
1189
1314
  flex: none;
1190
1315
  display: inline-flex;
@@ -1276,17 +1401,20 @@ div.ui-toast[role='status'] {
1276
1401
  color: var(--ink);
1277
1402
  font-weight: 600;
1278
1403
  }
1404
+ /* Tabs switch between different content: text on a 1 px baseline rule, the current tab underlined in the accent (an
1405
+ underline, not a raised pill, so it never reads like SegmentedControl, which switches how the same content shows).
1406
+ 40 px tall, the height of the controls beside it in a toolbar. The baseline runs the full width of the container. */
1279
1407
  .ui-tabs {
1280
1408
  position: relative;
1281
- display: inline-flex;
1409
+ display: flex;
1410
+ width: 100%;
1282
1411
  max-width: 100%;
1283
1412
  box-sizing: border-box;
1284
- /* 40 px in all, the height of the controls beside it in a toolbar. */
1285
- padding: 4px;
1286
- border-radius: var(--radius-md);
1287
- background: var(--surface-sub);
1413
+ height: var(--control-height);
1414
+ box-shadow: inset 0 -1px 0 var(--line);
1288
1415
  /* Tabs never wrap or overlap: wider than their box, the row scrolls sideways (the indicator moves with it). */
1289
1416
  overflow-x: auto;
1417
+ overflow-y: hidden;
1290
1418
  scrollbar-width: none;
1291
1419
  }
1292
1420
  .ui-tabs::-webkit-scrollbar {
@@ -1302,28 +1430,23 @@ div.ui-toast[role='status'] {
1302
1430
  .ui-tabs.has-more-left.has-more-right {
1303
1431
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
1304
1432
  }
1305
- /* The selected tab's pill: a line-strong border, so it shows the selection at 3:1 on the gray row (surface on
1306
- surface-sub alone is about 1.1:1). */
1433
+ /* The current tab's underline: 2 px of accent-text (at least 3:1 on every ground, whatever accent is chosen). */
1307
1434
  .ui-tabs-ind {
1308
1435
  position: absolute;
1309
- top: 4px;
1310
- bottom: 4px;
1436
+ bottom: 0;
1437
+ height: 2px;
1311
1438
  box-sizing: border-box;
1312
- border: 1px solid var(--line-strong);
1313
- border-radius: var(--radius-sm);
1314
- background: var(--surface);
1315
- box-shadow: var(--shadow-sm);
1439
+ background: var(--accent-text);
1316
1440
  pointer-events: none;
1317
1441
  }
1318
1442
  .ui-tab {
1319
1443
  position: relative;
1320
1444
  flex: none;
1321
- min-width: 96px;
1322
1445
  white-space: nowrap;
1323
- height: 32px;
1324
- padding: 0 var(--space-4);
1446
+ height: 100%;
1447
+ padding: 0 var(--space-3);
1325
1448
  border: 0;
1326
- border-radius: var(--radius-sm);
1449
+ border-radius: var(--radius-sm) var(--radius-sm) 0 0;
1327
1450
  background: transparent;
1328
1451
  color: var(--ink-muted);
1329
1452
  font: inherit;
@@ -1332,16 +1455,37 @@ div.ui-toast[role='status'] {
1332
1455
  cursor: pointer;
1333
1456
  transition: color var(--dur-hover) ease;
1334
1457
  }
1458
+ .ui-tab:hover {
1459
+ color: var(--ink);
1460
+ }
1335
1461
  .ui-tab.is-selected {
1336
1462
  color: var(--ink);
1337
1463
  font-weight: 700;
1338
1464
  }
1339
1465
 
1466
+ /* Forced colors drop backgrounds and box shadows: the underline is drawn in Highlight and the baseline is a border. */
1467
+ @media (forced-colors: active) {
1468
+ .ui-tabs {
1469
+ box-shadow: none;
1470
+ border-bottom: 1px solid CanvasText;
1471
+ }
1472
+ .ui-tabs-ind {
1473
+ forced-color-adjust: none;
1474
+ background: Highlight;
1475
+ }
1476
+ }
1477
+
1340
1478
  @media (prefers-reduced-motion: reduce) {
1341
1479
  .ui-tabs-ind {
1342
1480
  transition: opacity var(--dur-hover) ease !important;
1343
1481
  }
1344
1482
  }
1483
+ /* Phones: 48 px tall, the touch target. */
1484
+ @media (max-width: 599px) {
1485
+ .ui-tabs {
1486
+ height: var(--touch-target);
1487
+ }
1488
+ }
1345
1489
  .ui-dt-summary .ui-tab {
1346
1490
  white-space: nowrap;
1347
1491
  scroll-snap-align: start;
@@ -1395,17 +1539,19 @@ div.ui-toast[role='status'] {
1395
1539
  .ui-tabbar-item.is-selected {
1396
1540
  color: var(--accent-text);
1397
1541
  }
1398
- /* MA: an 11 px label under each icon; the pill sits behind the icon only. */
1542
+ /* MA: an 11 px label under each icon; the pill sits behind the icon only: centred on it (22 px icon, 28 px pill) and
1543
+ clear of the label (6 px gap). The icon, gap and label (42 px) are centred in the bar, so the pill's centre is the
1544
+ bar's middle less 21 px plus 11 px. */
1399
1545
  .ui-tabbar.has-labels {
1400
1546
  height: 64px;
1401
1547
  }
1402
1548
  .ui-tabbar.has-labels .ui-tabbar-item {
1403
1549
  flex-direction: column;
1404
- gap: 2px;
1405
- padding-top: 2px;
1550
+ gap: 6px;
1406
1551
  }
1407
1552
  .ui-tabbar.has-labels .ui-tabbar-pill {
1408
- top: 8px;
1553
+ top: calc(50% - 24px);
1554
+ height: 28px;
1409
1555
  }
1410
1556
  .ui-tabbar-label {
1411
1557
  font-size: var(--text-mini);
@@ -1628,6 +1774,15 @@ div.ui-toast[role='status'] {
1628
1774
  .ui-select-trigger[data-popup-open] .ui-select-chev {
1629
1775
  transform: rotate(180deg);
1630
1776
  }
1777
+ /* The value or placeholder fills the row, so the error icon and the caret sit together at the right end. */
1778
+ .ui-select-text {
1779
+ flex: 1 1 auto;
1780
+ min-width: 0;
1781
+ overflow: hidden;
1782
+ text-overflow: ellipsis;
1783
+ white-space: nowrap;
1784
+ text-align: left;
1785
+ }
1631
1786
  .is-placeholder {
1632
1787
  color: var(--ink-muted);
1633
1788
  }
@@ -1985,12 +2140,15 @@ div.ui-toast[role='status'] {
1985
2140
  ui-drop-l var(--dur-loop) cubic-bezier(0.65, 0, 0.35, 1) infinite,
1986
2141
  ui-drop-r var(--dur-loop) var(--ease-standard) infinite;
1987
2142
  }
2143
+ /* Reduced motion: a still bar across the whole track, accent stripes on the track (full accent, 3:1 against it), so it
2144
+ reads as 「busy」 and not as a fixed amount done. */
1988
2145
  @media (prefers-reduced-motion: reduce) {
1989
2146
  .ui-loading-drop {
1990
2147
  animation: none;
1991
2148
  left: 0;
1992
2149
  right: 0;
1993
- opacity: 0.5;
2150
+ border-radius: 0;
2151
+ background: repeating-linear-gradient(-45deg, var(--accent) 0 6px, transparent 6px 12px);
1994
2152
  }
1995
2153
  }
1996
2154
  .ui-ring-track {
@@ -2249,14 +2407,18 @@ div.ui-toast[role='status'] {
2249
2407
  max-width: 45%;
2250
2408
  }
2251
2409
  }
2252
- /* tags: right after the title, the title's size (a Tag with an icon takes the size of the text beside it). */
2410
+ /* tags: right after the title, small and muted (12 px, ink-muted, semibold) so they never read as part of the title;
2411
+ a Tag with an icon takes this size, a tone keeps its own color. */
2253
2412
  .ui-topbar-tags {
2254
2413
  flex: 0 0 auto;
2255
2414
  display: flex;
2256
2415
  align-items: center;
2257
2416
  gap: var(--space-2);
2258
2417
  margin-left: calc(var(--space-2) - var(--space-4));
2259
- font-size: var(--text-h4);
2418
+ color: var(--ink-muted);
2419
+ font-size: var(--text-mini);
2420
+ font-weight: 600;
2421
+ line-height: 1.4;
2260
2422
  white-space: nowrap;
2261
2423
  }
2262
2424
  .ui-search {
@@ -2290,7 +2452,6 @@ div.ui-toast[role='status'] {
2290
2452
  }
2291
2453
  .ui-topbar-tags {
2292
2454
  margin-left: 0;
2293
- font-size: inherit;
2294
2455
  }
2295
2456
  .ui-topbar .ui-search {
2296
2457
  display: none;
@@ -2985,6 +3146,25 @@ div.ui-toast[role='status'] {
2985
3146
  width: 130px;
2986
3147
  font-family: var(--font-mono);
2987
3148
  }
3149
+ /* Windows high contrast: the swatches keep their own colors (otherwise every one turns ButtonFace and disappears),
3150
+ each with a CanvasText ring; the chosen one gets a second ring in Highlight. */
3151
+ @media (forced-colors: active) {
3152
+ .ui-swatch {
3153
+ forced-color-adjust: none;
3154
+ box-shadow:
3155
+ 0 0 0 2px Canvas,
3156
+ 0 0 0 3px CanvasText;
3157
+ }
3158
+ .ui-swatch.is-on {
3159
+ box-shadow:
3160
+ 0 0 0 2px Canvas,
3161
+ 0 0 0 4px Highlight;
3162
+ }
3163
+ .ui-accentpick-preview {
3164
+ forced-color-adjust: none;
3165
+ border-color: CanvasText;
3166
+ }
3167
+ }
2988
3168
  /* The page is the plain page ground (bg) and the card sits on it as a raised surface, in light and dark alike. */
2989
3169
  .ui-loginpage {
2990
3170
  min-height: 100dvh;
@@ -3001,7 +3181,7 @@ div.ui-toast[role='status'] {
3001
3181
  box-sizing: border-box;
3002
3182
  padding: 28px;
3003
3183
  border-radius: var(--radius-lg);
3004
- border: 1px solid var(--line);
3184
+ /* Shadow only, like every other card; in the dark theme the surface already stands off the page. */
3005
3185
  background: var(--surface);
3006
3186
  box-shadow: var(--shadow-card);
3007
3187
  display: flex;
@@ -3265,6 +3445,13 @@ div.ui-toast[role='status'] {
3265
3445
  .ui-cal-day.is-today.is-sel::after {
3266
3446
  background: var(--on-accent);
3267
3447
  }
3448
+ /* Windows high contrast: the accent fill of the chosen day is dropped, so it gets an outline as well as bold. */
3449
+ @media (forced-colors: active) {
3450
+ .ui-cal-day.is-sel {
3451
+ outline: 2px solid Highlight;
3452
+ outline-offset: -2px;
3453
+ }
3454
+ }
3268
3455
  .ui-datefield {
3269
3456
  display: flex;
3270
3457
  align-items: center;
@@ -3560,10 +3747,31 @@ div.ui-toast[role='status'] {
3560
3747
  .ui-dt-tools.is-onerow > .ui-dt-actions {
3561
3748
  flex: none;
3562
3749
  }
3750
+ /* The summary keeps the segmented look (a gray track, the current part a raised white pill), the user's choice for
3751
+ summaries; plain Tabs are underlined. */
3752
+ .ui-tabs.ui-dt-summary {
3753
+ display: inline-flex;
3754
+ width: auto;
3755
+ height: auto;
3756
+ padding: 4px;
3757
+ border-radius: var(--radius-md);
3758
+ background: var(--surface-sub);
3759
+ box-shadow: none;
3760
+ }
3761
+ .ui-dt-summary .ui-tabs-ind {
3762
+ top: 4px;
3763
+ bottom: 4px;
3764
+ height: auto;
3765
+ border: 1px solid var(--line-strong);
3766
+ border-radius: var(--radius-sm);
3767
+ background: var(--surface);
3768
+ box-shadow: var(--shadow-sm);
3769
+ }
3563
3770
  .ui-dt-summary .ui-tab {
3564
3771
  min-width: 0;
3565
3772
  height: 32px;
3566
3773
  padding: 0 var(--space-3);
3774
+ border-radius: var(--radius-sm);
3567
3775
  }
3568
3776
  /* Phones, also for tools that moved into a Card title row (outside the table, so not reached by the container). The
3569
3777
  buttons are as tall as the 48 px search field beside them. */
@@ -3710,14 +3918,40 @@ div.ui-toast[role='status'] {
3710
3918
  font-variant-numeric: tabular-nums;
3711
3919
  white-space: nowrap;
3712
3920
  }
3713
- /* Hugging columns are measured on one line (DataTable adds is-measuring for the read only). */
3921
+ .ui-dt-nowrap {
3922
+ white-space: nowrap;
3923
+ }
3924
+ /* Chromium breaks at <wbr> even inside white-space: nowrap: in the table a date and its time stay on one line. The
3925
+ phone cards turn the break back on. */
3926
+ .ui-dt-time wbr {
3927
+ display: none;
3928
+ }
3929
+ /* Code and paths in a row are the row's size, in Geist Mono: one text size per row. */
3930
+ .ui-dt-body .ui-dt-cell .ui-code,
3931
+ .ui-dt-body .ui-dt-cell .ui-code.is-link.is-location {
3932
+ font-size: inherit;
3933
+ }
3934
+ /* Hugging columns are measured on one line (DataTable adds is-measuring for the read only), headings at their full
3935
+ width too, so a column is never narrower than its heading, also while it holds only loading bars. */
3714
3936
  .ui-dt.is-measuring .ui-dt-cell.is-hug {
3715
3937
  white-space: nowrap;
3716
3938
  }
3939
+ .ui-dt.is-measuring .ui-dt-cell.is-hug > .ui-dt-sort {
3940
+ flex: none;
3941
+ max-width: none;
3942
+ }
3943
+ /* Loading bars keep their width in the cell (a flex box would shrink them). */
3944
+ .ui-dt-skelrow .ui-skel {
3945
+ flex: none;
3946
+ }
3717
3947
 
3718
3948
  .ui-dt-body .ui-dt-row:last-child {
3719
3949
  border-bottom: 0;
3720
3950
  }
3951
+ /* Copies of rows that left the page slide out inside the body only: clipped there while they animate. */
3952
+ .ui-dt-body.is-leaving {
3953
+ overflow: clip;
3954
+ }
3721
3955
  .ui-dt-ghost {
3722
3956
  position: absolute;
3723
3957
  left: 0;
@@ -4188,16 +4422,29 @@ div.ui-toast[role='status'] {
4188
4422
  and break mid-word (「ucp_worker_progre / ss」). */
4189
4423
  overflow-wrap: break-word;
4190
4424
  }
4191
- /* Each field on one line: its name (small, muted) in the left 40 %, the value in the rest, wrapping there. A name
4192
- too long for its 40 % is cut with …; the value never moves under it. */
4425
+ /* Each field on one line: its name (small, muted) in a fixed 6 rem column (6 characters), the value in the rest,
4426
+ wrapping there. A longer name is cut with …; the value never moves under it. A date and its time each stay whole. */
4193
4427
  .ui-dt-body .ui-dt-cell[data-label]:not(.is-m-title, .is-m-status) {
4194
4428
  position: relative;
4195
4429
  min-height: 20px;
4196
4430
  margin-top: var(--space-1);
4197
- padding-left: calc(40% + var(--space-3));
4431
+ padding-left: calc(6rem + var(--space-3));
4432
+ }
4433
+ /* A date with its time wraps only between the two (each part is whole, see .ui-dt-nowrap). */
4434
+ .ui-dt-body .ui-dt-cell .ui-dt-time {
4435
+ white-space: normal;
4436
+ }
4437
+ .ui-dt-body .ui-dt-cell .ui-dt-time wbr {
4438
+ display: inline;
4439
+ }
4440
+ /* Each part stays whole while it fits on a line; only a card narrower than the part (320 px, wide text spacing)
4441
+ breaks inside it, rather than overflowing the card. */
4442
+ .ui-dt-body .ui-dt-cell .ui-dt-nowrap {
4443
+ display: inline-block;
4444
+ max-width: 100%;
4445
+ white-space: normal;
4446
+ overflow-wrap: anywhere;
4198
4447
  }
4199
- /* The value has 60 % of the card: a long date (「2026/11/13(五) 05:00」) wraps there instead of running out. */
4200
- .ui-dt-body .ui-dt-cell .ui-dt-time,
4201
4448
  .ui-dt-body .ui-dt-cell.is-num {
4202
4449
  white-space: normal;
4203
4450
  }
@@ -4206,13 +4453,14 @@ div.ui-toast[role='status'] {
4206
4453
  position: absolute;
4207
4454
  top: 0;
4208
4455
  left: 0;
4209
- width: 40%;
4456
+ width: 6rem;
4210
4457
  overflow: hidden;
4211
4458
  text-overflow: ellipsis;
4212
4459
  color: var(--ink-muted);
4213
4460
  font-family: var(--font-sans);
4214
4461
  font-size: var(--text-small);
4215
- line-height: inherit;
4462
+ /* The value's line height (1lh here is the cell's), so the smaller name sits on the value's baseline. */
4463
+ line-height: 1lh;
4216
4464
  font-weight: 400;
4217
4465
  white-space: nowrap;
4218
4466
  }
@@ -5037,8 +5285,9 @@ div.ui-toast[role='status'] {
5037
5285
  flex-wrap: nowrap;
5038
5286
  align-items: center;
5039
5287
  gap: 6px;
5040
- min-height: var(--control-height);
5041
- padding: 4px 8px;
5288
+ /* One row (chips that do not fit become 「+n」): exactly the 40 px of every other field. */
5289
+ height: var(--control-height);
5290
+ padding: 0 4px 0 8px;
5042
5291
  box-sizing: border-box;
5043
5292
  border: 1px solid var(--line-strong);
5044
5293
  border-radius: var(--radius-md);
@@ -5084,8 +5333,9 @@ div.ui-toast[role='status'] {
5084
5333
  white-space: nowrap;
5085
5334
  }
5086
5335
  .ui-ms-input {
5336
+ /* Shrinks before the 清除 button is pushed out of a narrow field. */
5087
5337
  flex: 1 1 80px;
5088
- min-width: 80px;
5338
+ min-width: 32px;
5089
5339
  height: 30px;
5090
5340
  border: 0;
5091
5341
  outline: none;
@@ -5104,6 +5354,24 @@ div.ui-toast[role='status'] {
5104
5354
  .ui-ms-chips {
5105
5355
  display: contents;
5106
5356
  }
5357
+ /* 清除: every value at once, at the field's right end (shown from 2 values; one value has its chip's ×). */
5358
+ .ui-ms-clear {
5359
+ flex: none;
5360
+ width: 32px;
5361
+ height: 32px;
5362
+ border: 0;
5363
+ border-radius: var(--radius-sm);
5364
+ background: transparent;
5365
+ color: var(--ink-muted);
5366
+ display: inline-flex;
5367
+ align-items: center;
5368
+ justify-content: center;
5369
+ cursor: pointer;
5370
+ }
5371
+ .ui-ms-clear:hover {
5372
+ background: var(--surface-sub);
5373
+ color: var(--ink);
5374
+ }
5107
5375
  .ui-errorpage {
5108
5376
  min-height: 100%;
5109
5377
  display: flex;
@@ -5212,7 +5480,30 @@ div.ui-toast[role='status'] {
5212
5480
  flex-direction: column;
5213
5481
  gap: 12px;
5214
5482
  }
5483
+ /* The title row, like a Card's: actions (「還原預設」) at the right end; when they do not fit beside 8 characters of the
5484
+ title they move under it, right-aligned. The row is 40 px only when it has actions. */
5485
+ .ui-settings-head {
5486
+ display: flex;
5487
+ flex-wrap: wrap;
5488
+ align-items: center;
5489
+ gap: var(--space-2) var(--space-3);
5490
+ }
5491
+ .ui-settings-head:has(> .ui-settings-actions) {
5492
+ min-height: var(--control-height);
5493
+ }
5494
+ .ui-settings-actions {
5495
+ display: flex;
5496
+ flex: 0 0 auto;
5497
+ align-items: center;
5498
+ gap: var(--space-2);
5499
+ margin-left: auto;
5500
+ }
5215
5501
  .ui-settings-h {
5502
+ flex: 1 1 8em;
5503
+ min-width: min(8em, 100%);
5504
+ overflow: hidden;
5505
+ text-overflow: ellipsis;
5506
+ white-space: nowrap;
5216
5507
  margin: 0;
5217
5508
  font-size: var(--text-title);
5218
5509
  font-weight: 700;
@@ -5249,21 +5540,11 @@ div.ui-toast[role='status'] {
5249
5540
  .ui-settings-body {
5250
5541
  flex-direction: column;
5251
5542
  align-items: stretch;
5543
+ gap: var(--space-4);
5252
5544
  }
5253
- .ui-settings-nav {
5254
- position: static;
5255
- flex-direction: row;
5256
- overflow-x: auto;
5257
- flex-basis: auto;
5258
- }
5259
- .ui-settings-cat.is-on::before {
5260
- left: 8px;
5261
- right: 8px;
5262
- top: auto;
5263
- bottom: 0;
5264
- width: auto;
5265
- height: 3px;
5266
- border-radius: 3px 3px 0 0;
5545
+ /* The categories as Tabs, like every other row of tabs: the row scrolls sideways when the names do not fit. */
5546
+ .ui-settings-tabs {
5547
+ align-self: stretch;
5267
5548
  }
5268
5549
  }
5269
5550
  /* A card like the SettingsSections beside it (same shadow and padding); only the title is red. */
@@ -5987,6 +6268,7 @@ div.ui-toast[role='status'] {
5987
6268
  .ui-kpi-change.is-bad {
5988
6269
  color: var(--danger-text);
5989
6270
  }
6271
+ .ui-kpi-change.is-flat,
5990
6272
  .ui-kpi-note {
5991
6273
  color: var(--ink-muted);
5992
6274
  }
@@ -6084,6 +6366,16 @@ div.ui-toast[role='status'] {
6084
6366
  min-width: 0;
6085
6367
  overflow-wrap: anywhere;
6086
6368
  }
6369
+ /* A row with href: the whole row opens the link, at least 48 px tall (a touch target), centered on the value. */
6370
+ .ui-dl-item.has-link {
6371
+ min-height: var(--touch-target);
6372
+ box-sizing: border-box;
6373
+ align-items: center;
6374
+ cursor: pointer;
6375
+ }
6376
+ .ui-dl-item.has-link:hover .ui-textlink {
6377
+ text-decoration-thickness: 2px;
6378
+ }
6087
6379
  @container (max-width: 599px) {
6088
6380
  .ui-dl-item {
6089
6381
  grid-template-columns: minmax(0, 1fr);
@@ -7095,6 +7387,96 @@ div.ui-toast[role='status'] {
7095
7387
  display: inline-flex;
7096
7388
  gap: 4px;
7097
7389
  }
7390
+ /* SegmentedControl: a 40 px switch between ways of showing the same thing (the height of a toolbar's controls);
7391
+ the selected part is a raised pill. */
7392
+ .ui-seg {
7393
+ position: relative;
7394
+ display: inline-flex;
7395
+ flex: none;
7396
+ gap: 2px;
7397
+ height: var(--control-height);
7398
+ padding: 3px;
7399
+ box-sizing: border-box;
7400
+ border-radius: var(--radius-sm);
7401
+ background: var(--surface-sub);
7402
+ vertical-align: middle;
7403
+ }
7404
+ /* Like the tab pill: a line-strong border shows the selection at 3:1 (icon-only items differ in color alone). */
7405
+ .ui-seg-ind {
7406
+ position: absolute;
7407
+ top: 3px;
7408
+ bottom: 3px;
7409
+ box-sizing: border-box;
7410
+ border: 1px solid var(--line-strong);
7411
+ border-radius: var(--radius-xs);
7412
+ background: var(--surface);
7413
+ box-shadow: var(--shadow-sm);
7414
+ }
7415
+ .ui-seg-item {
7416
+ position: relative;
7417
+ display: inline-flex;
7418
+ align-items: center;
7419
+ justify-content: center;
7420
+ gap: 6px;
7421
+ height: 100%;
7422
+ padding: 0 var(--space-3);
7423
+ border: 0;
7424
+ border-radius: var(--radius-xs);
7425
+ background: none;
7426
+ color: var(--ink-muted);
7427
+ font: inherit;
7428
+ font-size: var(--text-control);
7429
+ line-height: 20px;
7430
+ white-space: nowrap;
7431
+ cursor: pointer;
7432
+ transition: color var(--dur-hover) ease;
7433
+ }
7434
+ .ui-seg-item:hover,
7435
+ .ui-seg-item.is-selected {
7436
+ color: var(--ink);
7437
+ }
7438
+ .ui-seg-item.is-selected {
7439
+ font-weight: 600;
7440
+ }
7441
+ .ui-seg.is-icons .ui-seg-item {
7442
+ width: 34px;
7443
+ padding: 0;
7444
+ }
7445
+ /* Icons only: the selected one is marked like the words are, ink in the outlined pill (not a color of its own). */
7446
+ .ui-seg.is-icons .ui-seg-item.is-selected {
7447
+ color: var(--ink);
7448
+ }
7449
+ /* Workbench's mainBar is 36 px: the compact 28 px switch, like the bar's other buttons. */
7450
+ .ui-wb-mainbar .ui-seg {
7451
+ height: 28px;
7452
+ padding: 2px;
7453
+ }
7454
+ .ui-wb-mainbar .ui-seg-ind {
7455
+ top: 2px;
7456
+ bottom: 2px;
7457
+ }
7458
+ .ui-wb-mainbar .ui-seg-item {
7459
+ font-size: var(--text-small);
7460
+ }
7461
+ .ui-wb-mainbar .ui-seg.is-icons .ui-seg-item {
7462
+ width: 28px;
7463
+ }
7464
+ /* Touch screens: each part is a 48 px target (the whole switch 48 px tall). In Workbench's 36 px mainBar the switch
7465
+ keeps its 28 px look, like the bar's other buttons, and each part's touch area grows to 48 px (touch.css). */
7466
+ @media (pointer: coarse) {
7467
+ .ui-seg {
7468
+ height: var(--touch-target);
7469
+ }
7470
+ .ui-seg.is-icons .ui-seg-item,
7471
+ .ui-wb-mainbar .ui-seg.is-icons .ui-seg-item {
7472
+ width: 42px;
7473
+ }
7474
+ }
7475
+ @media (prefers-reduced-motion: reduce) {
7476
+ .ui-seg-ind {
7477
+ transition: none !important;
7478
+ }
7479
+ }
7098
7480
  /* LayerGraph */
7099
7481
  .ui-lg-scroller {
7100
7482
  position: relative;
@@ -7690,6 +8072,8 @@ div.ui-toast[role='status'] {
7690
8072
  .ui-shell {
7691
8073
  display: flex;
7692
8074
  height: 100dvh;
8075
+ /* Nothing in the frame reaches past the viewport, so the document itself never scrolls. */
8076
+ overflow: clip;
7693
8077
  background: var(--bg);
7694
8078
  color: var(--ink);
7695
8079
  }
@@ -7746,6 +8130,9 @@ div.ui-toast[role='status'] {
7746
8130
  outline: none;
7747
8131
  }
7748
8132
  .ui-shell-main {
8133
+ /* The scroll container is the containing block of absolutely positioned descendants (visually hidden text, a
8134
+ chart's data table): positioned against the body instead, they grew the document past the viewport on phones. */
8135
+ position: relative;
7749
8136
  flex: 1 1 auto;
7750
8137
  min-height: 0;
7751
8138
  overflow-y: auto;
@@ -7755,6 +8142,13 @@ div.ui-toast[role='status'] {
7755
8142
  .ui-shell.is-phone .ui-shell-main {
7756
8143
  padding: calc(var(--header-height) + var(--space-4)) var(--space-4) var(--space-6);
7757
8144
  }
8145
+ /* No top bar (a detail page whose PageHeader has the title, and nothing else for the bar): content starts at the top. */
8146
+ .ui-shell.is-bare .ui-shell-main {
8147
+ padding-top: var(--space-6);
8148
+ }
8149
+ .ui-shell.is-bare.is-phone .ui-shell-main {
8150
+ padding-top: var(--space-4);
8151
+ }
7758
8152
  @media (prefers-reduced-motion: reduce) {
7759
8153
  .ui-shell-top {
7760
8154
  transition: none;
@@ -7790,6 +8184,18 @@ div.ui-toast[role='status'] {
7790
8184
  grid-template-columns: var(--grid-ratio);
7791
8185
  align-items: start;
7792
8186
  }
8187
+ .ui-grid.is-ratio.is-stretch,
8188
+ .ui-grid.is-stretch {
8189
+ align-items: stretch;
8190
+ }
8191
+ .ui-grid.is-start {
8192
+ align-items: start;
8193
+ }
8194
+ /* A Page as one cell: several cards stacked in one column, 24 px apart like the columns (16 px on phones). */
8195
+ .ui-grid > .ui-page {
8196
+ gap: var(--space-6);
8197
+ min-width: 0;
8198
+ }
7793
8199
  @media (max-width: 1279px) {
7794
8200
  .ui-grid.is-4 {
7795
8201
  --cols: 2;
@@ -7811,6 +8217,9 @@ div.ui-toast[role='status'] {
7811
8217
  --cols: 1 !important;
7812
8218
  gap: var(--space-4);
7813
8219
  }
8220
+ .ui-grid > .ui-page {
8221
+ gap: var(--space-4);
8222
+ }
7814
8223
  }
7815
8224
  /* SplitPane: a main area and a side panel with a draggable divider. Under 960 px (its own width) they stack. */
7816
8225
  .ui-split {
@@ -8356,6 +8765,11 @@ button.ui-md-link.is-row {
8356
8765
  position: relative;
8357
8766
  display: inline-flex;
8358
8767
  }
8768
+ .ui-wb-title {
8769
+ display: flex;
8770
+ margin: 0;
8771
+ font: inherit;
8772
+ }
8359
8773
  .ui-wb-brand {
8360
8774
  flex: none;
8361
8775
  display: inline-flex;
@@ -8411,6 +8825,10 @@ button.ui-md-link.is-row {
8411
8825
  flex: 1 1 auto;
8412
8826
  min-height: 0;
8413
8827
  }
8828
+ /* The main landmark: no box of its own, the bar and the view inside are laid out against the body. */
8829
+ .ui-wb-mainwrap {
8830
+ display: contents;
8831
+ }
8414
8832
  .ui-wb-main {
8415
8833
  position: absolute;
8416
8834
  top: 0;
@@ -8607,13 +9025,9 @@ button.ui-md-link.is-row {
8607
9025
  margin-left: -4px;
8608
9026
  cursor: col-resize;
8609
9027
  }
8610
- .ui-wb-split.is-v[style*='right'] {
8611
- margin-left: 0;
8612
- margin-right: -4px;
8613
- }
8614
9028
  .ui-wb-split.is-h {
8615
9029
  height: 8px;
8616
- margin-bottom: -4px;
9030
+ margin-top: -4px;
8617
9031
  cursor: row-resize;
8618
9032
  }
8619
9033
  .ui-wb-split-line {
@@ -8966,96 +9380,6 @@ button.ui-md-link.is-row {
8966
9380
  opacity: 0;
8967
9381
  }
8968
9382
  }
8969
- /* SegmentedControl: a 40 px switch between ways of showing the same thing (the height of a toolbar's controls);
8970
- the selected part is a raised pill. */
8971
- .ui-seg {
8972
- position: relative;
8973
- display: inline-flex;
8974
- flex: none;
8975
- gap: 2px;
8976
- height: var(--control-height);
8977
- padding: 3px;
8978
- box-sizing: border-box;
8979
- border-radius: var(--radius-sm);
8980
- background: var(--surface-sub);
8981
- vertical-align: middle;
8982
- }
8983
- /* Like the tab pill: a line-strong border shows the selection at 3:1 (icon-only items differ in color alone). */
8984
- .ui-seg-ind {
8985
- position: absolute;
8986
- top: 3px;
8987
- bottom: 3px;
8988
- box-sizing: border-box;
8989
- border: 1px solid var(--line-strong);
8990
- border-radius: var(--radius-xs);
8991
- background: var(--surface);
8992
- box-shadow: var(--shadow-sm);
8993
- }
8994
- .ui-seg-item {
8995
- position: relative;
8996
- display: inline-flex;
8997
- align-items: center;
8998
- justify-content: center;
8999
- gap: 6px;
9000
- height: 100%;
9001
- padding: 0 var(--space-3);
9002
- border: 0;
9003
- border-radius: var(--radius-xs);
9004
- background: none;
9005
- color: var(--ink-muted);
9006
- font: inherit;
9007
- font-size: var(--text-control);
9008
- line-height: 20px;
9009
- white-space: nowrap;
9010
- cursor: pointer;
9011
- transition: color var(--dur-hover) ease;
9012
- }
9013
- .ui-seg-item:hover,
9014
- .ui-seg-item.is-selected {
9015
- color: var(--ink);
9016
- }
9017
- .ui-seg-item.is-selected {
9018
- font-weight: 600;
9019
- }
9020
- .ui-seg.is-icons .ui-seg-item {
9021
- width: 34px;
9022
- padding: 0;
9023
- }
9024
- /* Icons only: the selected one is marked like the words are, ink in the outlined pill (not a color of its own). */
9025
- .ui-seg.is-icons .ui-seg-item.is-selected {
9026
- color: var(--ink);
9027
- }
9028
- /* Workbench's mainBar is 36 px: the compact 28 px switch, like the bar's other buttons. */
9029
- .ui-wb-mainbar .ui-seg {
9030
- height: 28px;
9031
- padding: 2px;
9032
- }
9033
- .ui-wb-mainbar .ui-seg-ind {
9034
- top: 2px;
9035
- bottom: 2px;
9036
- }
9037
- .ui-wb-mainbar .ui-seg-item {
9038
- font-size: var(--text-small);
9039
- }
9040
- .ui-wb-mainbar .ui-seg.is-icons .ui-seg-item {
9041
- width: 28px;
9042
- }
9043
- /* Touch screens: each part is a 48 px target (the whole switch 48 px tall). In Workbench's 36 px mainBar the switch
9044
- keeps its 28 px look, like the bar's other buttons, and each part's touch area grows to 48 px (touch.css). */
9045
- @media (pointer: coarse) {
9046
- .ui-seg {
9047
- height: var(--touch-target);
9048
- }
9049
- .ui-seg.is-icons .ui-seg-item,
9050
- .ui-wb-mainbar .ui-seg.is-icons .ui-seg-item {
9051
- width: 42px;
9052
- }
9053
- }
9054
- @media (prefers-reduced-motion: reduce) {
9055
- .ui-seg-ind {
9056
- transition: none !important;
9057
- }
9058
- }
9059
9383
  /* StatusBand: a 12 px band of classes along time; under a LineChart it lines up with the points. */
9060
9384
  .ui-statusband-bar {
9061
9385
  position: relative;
@@ -9420,14 +9744,17 @@ button.ui-md-link.is-row {
9420
9744
  border-bottom: 0;
9421
9745
  }
9422
9746
  .ui-events-time {
9747
+ /* The row's size: the time, the icon and the sentence are one row, so one text size. */
9423
9748
  font-family: var(--font-mono);
9424
- font-size: var(--text-small);
9425
9749
  color: var(--ink-muted);
9426
9750
  font-variant-numeric: tabular-nums;
9427
9751
  }
9428
9752
  .ui-events-kind {
9429
9753
  display: inline-flex;
9430
- align-self: center;
9754
+ align-items: center;
9755
+ /* As tall as the first line of the text, the icon centred on it: aligned with the time, also when the text wraps. */
9756
+ align-self: start;
9757
+ height: 1lh;
9431
9758
  color: var(--ink-muted);
9432
9759
  }
9433
9760
  .ui-events li.is-tone-info .ui-events-kind {
@@ -9452,10 +9779,14 @@ button.ui-md-link.is-row {
9452
9779
  .ui-events-date:first-child {
9453
9780
  padding-top: 0;
9454
9781
  }
9455
- /* Who did it: after the sentence, muted, the same size. */
9782
+ /* Who did it: after the sentence, muted, the same size, 8 px after it. */
9783
+ .ui-events-gap {
9784
+ word-spacing: calc(var(--space-2) - 0.25em);
9785
+ }
9456
9786
  .ui-events-actor {
9457
- margin-left: var(--space-2);
9458
9787
  color: var(--ink-muted);
9788
+ /* A name stays whole: it moves to the next line rather than splitting (「系/統」). */
9789
+ white-space: nowrap;
9459
9790
  }
9460
9791
  .ui-events-empty {
9461
9792
  margin: 0;
@@ -9550,6 +9881,9 @@ button.ui-md-link.is-row {
9550
9881
  display: flex;
9551
9882
  align-items: stretch;
9552
9883
  }
9884
+ .ui-console-content {
9885
+ display: contents;
9886
+ }
9553
9887
  .ui-console-main {
9554
9888
  grid-column: 1;
9555
9889
  grid-row: 2;
@@ -9697,6 +10031,7 @@ button.ui-md-link.is-row {
9697
10031
  margin: -1px;
9698
10032
  overflow: hidden;
9699
10033
  clip: rect(0 0 0 0);
10034
+ clip-path: inset(50%);
9700
10035
  white-space: nowrap;
9701
10036
  border: 0;
9702
10037
  }
@@ -9787,13 +10122,14 @@ button.ui-md-link.is-row {
9787
10122
  .ui-input,
9788
10123
  .ui-select-trigger,
9789
10124
  .ui-datefield,
9790
- .ui-pwfield {
10125
+ .ui-pwfield,
10126
+ .ui-field-box.has-affix {
9791
10127
  height: var(--touch-target);
9792
10128
  }
9793
10129
  }
9794
10130
  @media (max-width: 599px) {
9795
10131
  .ui-ms {
9796
- min-height: var(--touch-target);
10132
+ height: var(--touch-target);
9797
10133
  }
9798
10134
  }
9799
10135
  @media (max-width: 599px) {
@@ -9869,6 +10205,7 @@ button.ui-md-link.is-row {
9869
10205
  .ui-cal-day:focus-visible,
9870
10206
  .ui-ms:focus-within,
9871
10207
  .ui-pwfield:focus-within,
10208
+ .ui-field-box.has-affix:focus-within,
9872
10209
  .ui-dt-opt:focus-visible,
9873
10210
  .ui-code.is-link:focus-visible,
9874
10211
  .ui-code.is-link.is-name:focus-visible,